@layers-app/editor 0.2.2 → 0.2.3-specific.2

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 (227) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +9 -8
  4. package/dist/{layers.CMXxlWls.js → layers.-XvKfoNX.js} +5 -4
  5. package/dist/{layers.CZm6rGMB.js → layers.0GRR9YT7.js} +1 -1
  6. package/dist/{layers.DVnFApRs.js → layers.0VdaSArj.js} +1 -1
  7. package/dist/{layers.aqWSxJBA.js → layers.1bg2KhyH.js} +1 -1
  8. package/dist/{layers.qqCEeUgc.js → layers.2HTptZb2.js} +1 -1
  9. package/dist/{layers.D3ie5lZH.js → layers.32OjTYno.js} +1 -1
  10. package/dist/{layers.C63_nn-c.js → layers.38Kl2PQX.js} +1 -1
  11. package/dist/{layers.ClXOWap_.js → layers.43ZJhWls.js} +1 -1
  12. package/dist/{layers.JV8VqxPJ.js → layers.5ES_Crwv.js} +1 -1
  13. package/dist/{layers.CBHqAOYd.js → layers.6AzSVuWE.js} +1 -1
  14. package/dist/{layers.DjWiinie.js → layers.8Um6ftSi.js} +1 -1
  15. package/dist/{layers.Dbl9SWXe.js → layers.9rcgLwAD.js} +7 -6
  16. package/dist/{layers.BN6XfzOG.js → layers.A-sifJ96.js} +1 -1
  17. package/dist/{layers.DjkEfBcd.js → layers.A37s9q4p.js} +1 -1
  18. package/dist/{layers.BHu9OC6O.js → layers.B0eX1IPn.js} +1 -1
  19. package/dist/{layers.f1mppJzZ.js → layers.B3E750WN.js} +1 -1
  20. package/dist/{layers.DJyLK8NN.js → layers.B3V6REg0.js} +6 -5
  21. package/dist/layers.B3ZxwGUL.js +230 -0
  22. package/dist/{layers.QhXcTlNu.js → layers.B3u4zmm1.js} +1 -1
  23. package/dist/{layers.N0r3OrGA.js → layers.B78GgPHB.js} +1 -1
  24. package/dist/{layers.BYBbRM55.js → layers.B8-_sf47.js} +3 -3
  25. package/dist/{layers.B-D6NGcR.js → layers.BBUU-bj1.js} +1 -1
  26. package/dist/{layers.B3bY-ou_.js → layers.BBjjkf11.js} +2 -2
  27. package/dist/{layers.Dos5JhV7.js → layers.BC33r--_.js} +1 -1
  28. package/dist/{layers.CCgXCoxo.js → layers.BCEZRZJx.js} +27 -26
  29. package/dist/{layers.H7ZdlWaz.js → layers.BDG2Pb81.js} +1 -1
  30. package/dist/{layers.DhYiQsca.js → layers.BGY9QXw7.js} +1 -1
  31. package/dist/{layers.cCX18abj.js → layers.BGxfPQjD.js} +7 -6
  32. package/dist/{layers.B_0_ehec.js → layers.BIs4HgIw.js} +1 -1
  33. package/dist/{layers.Dr_GuX3B.js → layers.BK_cvwOS.js} +1 -1
  34. package/dist/{layers.CUjzCCDm.js → layers.BOgR2qiF.js} +1 -1
  35. package/dist/{layers.Dfjo7U5Y.js → layers.BRH_NhKA.js} +1 -1
  36. package/dist/{layers.B-JWed8S.js → layers.BSCx8bip.js} +3 -3
  37. package/dist/{layers.CBdo3bZY.js → layers.BSVlyKsO.js} +1 -1
  38. package/dist/{layers.Du3MtzCK.js → layers.BSeadBvw.js} +1 -1
  39. package/dist/{layers.Cmd31MCh.js → layers.BTNbaRtS.js} +90 -89
  40. package/dist/{layers.qkfFfzYb.js → layers.BW6ATV1c.js} +6 -5
  41. package/dist/{layers.Bcyj5-mw.js → layers.BWrnVw2b.js} +1 -1
  42. package/dist/{layers.9kMKYgzy.js → layers.BX-s1kOG.js} +1 -1
  43. package/dist/{layers.BI9sEtHQ.js → layers.B_NZASmW.js} +7 -6
  44. package/dist/{layers.CWD_iM8P.js → layers.BaDcOxBT.js} +4 -4
  45. package/dist/{layers.Qoe7c5zq.js → layers.Bd-ObMVZ.js} +1 -1
  46. package/dist/{layers.Bn0pZfJP.js → layers.Be9LimT9.js} +1 -1
  47. package/dist/{layers.CXvVwX4x.js → layers.BeB3rrar.js} +1 -1
  48. package/dist/{layers.YAOhWgD1.js → layers.Bep10kxM.js} +1 -1
  49. package/dist/layers.BgtQ5VOT.js +1 -0
  50. package/dist/{layers.DkVk5c8Y.js → layers.BmxbWAms.js} +5 -4
  51. package/dist/{layers.Cy_zyir1.js → layers.BpHj8c4N.js} +1 -1
  52. package/dist/{layers.BUbI0ic-.js → layers.BqWxCz9w.js} +1 -1
  53. package/dist/layers.BqZYk_RB.js +8 -0
  54. package/dist/{layers.CsnR-FHC.js → layers.Btl2oHvL.js} +1 -1
  55. package/dist/{layers.DUIaCr3w.js → layers.BwsQlMOg.js} +1 -1
  56. package/dist/{layers.BYDDbIIf.js → layers.BxVm65jg.js} +1 -1
  57. package/dist/{layers.BLB-_Qmf.js → layers.BxyZWVn3.js} +1 -1
  58. package/dist/{layers.2c8neW9s.js → layers.ByPssizq.js} +1 -1
  59. package/dist/{layers.BffSZvB5.js → layers.C-lLaVkk.js} +1 -1
  60. package/dist/{layers.BEBnBBBW.js → layers.C0FFwqPQ.js} +1 -1
  61. package/dist/{layers.BvxaTTGy.js → layers.C1CW0hq2.js} +1 -1
  62. package/dist/layers.C1OPiWNh.js +1 -0
  63. package/dist/{layers.D-KUaT13.js → layers.C3oM_Z_B.js} +1 -1
  64. package/dist/{layers.zbIcrERn.js → layers.C4yr7Bvn.js} +1 -1
  65. package/dist/{layers.BRemUPLR.js → layers.C5Z_GZgt.js} +1 -1
  66. package/dist/{layers.B7z4hw4p.js → layers.C5mx5899.js} +1 -1
  67. package/dist/{layers.5QTOXn6B.js → layers.C6HgSw-u.js} +6 -5
  68. package/dist/{layers.BvY9Vbf5.js → layers.C77dlgiy.js} +1 -1
  69. package/dist/{layers.BoGiK5Q3.js → layers.C7t8-w47.js} +1 -1
  70. package/dist/{layers.DVU5gOz7.js → layers.CAHBVqsb.js} +1 -1
  71. package/dist/{layers.CCA_JMcB.js → layers.CALzUvcv.js} +1 -1
  72. package/dist/{layers.bd4UZYau.js → layers.CARmWZ3k.js} +1 -1
  73. package/dist/{layers.BgMZDjpU.js → layers.CAjQftZa.js} +1 -1
  74. package/dist/layers.CAq3juZx.js +1 -0
  75. package/dist/{layers.DnzgqxNL.js → layers.CAwWIoP7.js} +1 -1
  76. package/dist/{layers.rFaWtL_v.js → layers.CBIkqalL.js} +7 -6
  77. package/dist/{layers.f5MGtbUo.js → layers.CBxYHy77.js} +1 -1
  78. package/dist/{layers.CFFbs4Fg.js → layers.CEUy0QHv.js} +8 -7
  79. package/dist/{layers.Dy5HywqQ.js → layers.CFNd387B.js} +9 -8
  80. package/dist/layers.CFNnGeSl.js +95 -0
  81. package/dist/{layers.CvPWRTZP.js → layers.CGgTvPFy.js} +1 -1
  82. package/dist/{layers.BYzGqi2X.js → layers.CIElrD0q.js} +1 -1
  83. package/dist/{layers.DLvSgg1j.js → layers.CK-G086U.js} +1 -1
  84. package/dist/{layers.an4EkQNe.js → layers.CKya1h02.js} +1 -1
  85. package/dist/{layers.uU2u2bPA.js → layers.CL-fS44M.js} +1 -1
  86. package/dist/layers.CLSVgdVS.js +1 -0
  87. package/dist/{layers.SZnQBQCh.js → layers.CPih5uml.js} +1 -1
  88. package/dist/{layers.DLrHHn6O.js → layers.CPsDp0uN.js} +1 -1
  89. package/dist/{layers.CCOSIepd.js → layers.CWsKgPuy.js} +1 -1
  90. package/dist/layers.CaaRoYDd.js +1 -0
  91. package/dist/{layers.C7Bp-YD0.js → layers.CcqzpKUG.js} +1 -1
  92. package/dist/{layers.DadXDcU9.js → layers.CgCYYkou.js} +9 -8
  93. package/dist/{layers.CLJ_bqDt.js → layers.ChCb549Y.js} +6 -5
  94. package/dist/{layers.l8pum33R.js → layers.ChD5umPz.js} +1 -1
  95. package/dist/{layers.CbgVuTnA.js → layers.Chy6t345.js} +1 -1
  96. package/dist/{layers.Cd1w5n0X.js → layers.Ci_OJf8t.js} +1 -1
  97. package/dist/layers.CierJEIm.js +8 -0
  98. package/dist/{layers.9FcR61sH.js → layers.CjNDdz10.js} +1 -1
  99. package/dist/{layers.Yq02aUNE.js → layers.Cm1oauyl.js} +1 -1
  100. package/dist/{layers.NW_jMcHV.js → layers.CmKOQ7PE.js} +1 -1
  101. package/dist/{layers.BLvIp7w9.js → layers.Cn1Na0Wu.js} +2994 -3518
  102. package/dist/layers.CnWCIOdG.js +1 -0
  103. package/dist/{layers.CB16iL01.js → layers.CoUTnPJg.js} +1 -1
  104. package/dist/{layers.CwSCM7t9.js → layers.Coag23Cb.js} +1 -1
  105. package/dist/{layers.DxT3M_n_.js → layers.CrRfGRSk.js} +1 -1
  106. package/dist/layers.CtA1oXbw.js +1 -0
  107. package/dist/{layers.5MjpdN9h.js → layers.CtoAvhVa.js} +1 -1
  108. package/dist/layers.CuaeDlks.js +6 -0
  109. package/dist/{layers._7y-Xj15.js → layers.CvFIfvgV.js} +1 -1
  110. package/dist/{layers.AR5MtL5j.js → layers.D0KEzUNs.js} +1 -1
  111. package/dist/{layers.B-WhNV_G.js → layers.D0QaXwRB.js} +1 -1
  112. package/dist/{layers.CTvU95kc.js → layers.D1-pcTWs.js} +7 -6
  113. package/dist/{layers.Bycyf6i4.js → layers.D1l3jYMe.js} +3 -3
  114. package/dist/{layers.D8VZU5xA.js → layers.D3DAI-Y9.js} +1 -1
  115. package/dist/{layers.D0LUaNf6.js → layers.D3xGpUhW.js} +7166 -7368
  116. package/dist/{layers.DRThkhb-.js → layers.D5TqF1m6.js} +1 -1
  117. package/dist/{layers.CpTgN5MB.js → layers.D6ctHYw5.js} +1 -1
  118. package/dist/{layers.CcBXzLii.js → layers.D7WiyTFl.js} +2 -2
  119. package/dist/{layers.s4QuadEl.js → layers.D7gSHjSe.js} +1 -1
  120. package/dist/layers.D7hA5zQV.js +257 -0
  121. package/dist/{layers.DmGNcA03.js → layers.D8BVoBSi.js} +1 -1
  122. package/dist/{layers.BeEd9b3v.js → layers.D8ECLiWh.js} +1 -1
  123. package/dist/{layers.4CKvGDBj.js → layers.D90WPXeX.js} +1 -1
  124. package/dist/{layers.l1b8DDPI.js → layers.DBJVf5HI.js} +1 -1
  125. package/dist/{layers.C5qx0lm-.js → layers.DCS9_1KQ.js} +1 -1
  126. package/dist/{layers.BBMUBp9d.js → layers.DDXQWa2D.js} +1 -1
  127. package/dist/{layers.CvJTPHg2.js → layers.DE7ZNFmc.js} +1 -1
  128. package/dist/{layers.D6zG1isk.js → layers.DEbL6FTQ.js} +1 -1
  129. package/dist/{layers.CDCOafi_.js → layers.DFQIa9t-.js} +1 -1
  130. package/dist/{layers.BC8EPkM1.js → layers.DFZLPuHe.js} +1 -1
  131. package/dist/{layers.BkI15sb3.js → layers.DGUzcx0q.js} +14 -13
  132. package/dist/{layers.DDSZLEv8.js → layers.DGapyfQg.js} +3 -3
  133. package/dist/{layers.5bRls69E.js → layers.DHDpUhu2.js} +1 -1
  134. package/dist/layers.DIc2ocu9.js +2 -0
  135. package/dist/{layers.BrLfRSb6.js → layers.DJWtcxPs.js} +21276 -18135
  136. package/dist/{layers.B-YVtk3d.js → layers.DJiZjqd3.js} +1 -1
  137. package/dist/{layers.MUAIuNwW.js → layers.DK5hDIgq.js} +1 -1
  138. package/dist/{layers.8Xhcyc3R.js → layers.DKkZI8QM.js} +1 -1
  139. package/dist/{layers.DyW56kfJ.js → layers.DLBicNKQ.js} +1 -1
  140. package/dist/{layers.B31sa6rr.js → layers.DLP3Buvi.js} +1 -1
  141. package/dist/{layers.CXvT2UC9.js → layers.DLvaW33Z.js} +1 -1
  142. package/dist/{layers.CMlDQ4cq.js → layers.DQLSMStt.js} +1 -1
  143. package/dist/{layers.Cs4xvX_E.js → layers.DRILpcy-.js} +1 -1
  144. package/dist/{layers.C7wlXQdJ.js → layers.DVfl1YTs.js} +1 -1
  145. package/dist/{layers.CeVO_M7c.js → layers.DXe--WiI.js} +39 -39
  146. package/dist/{layers.C6KSH7-K.js → layers.DY8GDhNt.js} +8 -7
  147. package/dist/{layers.BQMg8YcH.js → layers.DY8P3e36.js} +12 -11
  148. package/dist/layers.D_f28ay7.js +342 -0
  149. package/dist/{layers.DSCDI0hj.js → layers.DfZcJTXu.js} +1 -1
  150. package/dist/{layers.CV6zTkfI.js → layers.DgIEbUr7.js} +1 -1
  151. package/dist/{layers.CfhsXiUG.js → layers.Dhv_WQNj.js} +1 -1
  152. package/dist/{layers.vcAXI_CD.js → layers.DiZ4GcAf.js} +1 -1
  153. package/dist/{layers.DnbyHEyP.js → layers.DiniISYO.js} +1 -1
  154. package/dist/{layers.CsZt8Z7H.js → layers.Djp8mUBq.js} +1 -1
  155. package/dist/{layers.BzBY9_VP.js → layers.DlZ0LfPy.js} +1 -1
  156. package/dist/{layers.CkrYzAn-.js → layers.Dm4HG7_j.js} +1 -1
  157. package/dist/{layers.D8v17Kex.js → layers.DngaL_Dg.js} +1 -1
  158. package/dist/{layers.BxUcR6lS.js → layers.Dnwy8-9h.js} +1 -1
  159. package/dist/layers.DolIOCod.js +52846 -0
  160. package/dist/{layers.CYTk83wT.js → layers.Dpfdz298.js} +1 -1
  161. package/dist/{layers.B26uOkwH.js → layers.DpjlP1hM.js} +1 -1
  162. package/dist/{layers.CG2_6S6j.js → layers.DqE75_Os.js} +1 -1
  163. package/dist/layers.DqKp4SoC.js +159 -0
  164. package/dist/{layers.CIUNTFjL.js → layers.DrqOVfH7.js} +1 -1
  165. package/dist/layers.Ds0hCAJ6.js +137 -0
  166. package/dist/{layers.CXj15Ps-.js → layers.DuDN4-7K.js} +1 -1
  167. package/dist/{layers.G0Hy6_r0.js → layers.DyxuEOE_.js} +1 -1
  168. package/dist/layers.GHnZTJ9O.js +2 -0
  169. package/dist/{layers.B02pzIIg.js → layers.IFrCTc6-.js} +1 -1
  170. package/dist/{layers.DeZkhcY6.js → layers.K8oVteWB.js} +1 -1
  171. package/dist/{layers.0VD_lQDW.js → layers.KXBlO4Vv.js} +1 -1
  172. package/dist/{layers.Clyu9Us_.js → layers.MZiVtaDL.js} +1 -1
  173. package/dist/{layers.yretCoWE.js → layers.NrgRfKYO.js} +1 -1
  174. package/dist/{layers.Cg4yfmEg.js → layers.OtxX209t.js} +1 -1
  175. package/dist/{layers.DICExkiD.js → layers.PcA9C8s_.js} +1 -1
  176. package/dist/{layers.8yJMoQR5.js → layers.QRP6oG16.js} +1 -1
  177. package/dist/{layers.35zYsSGA.js → layers.TjfMk2px.js} +2 -2
  178. package/dist/{layers.HZDrvVZ_.js → layers.VL_qr1SH.js} +1 -1
  179. package/dist/{layers.b4JJbLKL.js → layers.Yd8l884W.js} +1 -1
  180. package/dist/{layers.V1JpmTJ-.js → layers.Z4CahB42.js} +1 -1
  181. package/dist/{layers.BN5jyCHu.js → layers.ZP84EmSh.js} +1 -1
  182. package/dist/{layers.DrZ_6nLR.js → layers.ZTvGclL4.js} +1 -1
  183. package/dist/{layers.DKgc2UPF.js → layers.ZkBjKiJ9.js} +5 -4
  184. package/dist/{layers.D42Q8AOa.js → layers._f3fQ0iz.js} +1 -1
  185. package/dist/{layers.DyOerMOO.js → layers.a5xEdyXv.js} +6 -5
  186. package/dist/{layers.DXQ151AT.js → layers.bP_iN3G7.js} +74 -74
  187. package/dist/{layers.CTJult8H.js → layers.dgKEVLlQ.js} +1 -1
  188. package/dist/{layers.BTqJA0pT.js → layers.e1ZRnuDD.js} +1 -1
  189. package/dist/layers.eYFoHPwR.js +528 -0
  190. package/dist/{layers.EJCk5q9h.js → layers.exGM67os.js} +1 -1
  191. package/dist/{layers.K-5OCs0S.js → layers.fkAKFky6.js} +1 -1
  192. package/dist/{layers.DeWpRm8S.js → layers.fs0IZ_S0.js} +1 -1
  193. package/dist/{layers._-TDHzf7.js → layers.gqOA4baa.js} +4 -4
  194. package/dist/{layers.BmnCi3BA.js → layers.hb7uCRVn.js} +1 -1
  195. package/dist/{layers.qsV-U57E.js → layers.j9rBO6Wa.js} +1 -1
  196. package/dist/{layers.3fHuIWPj.js → layers.lCJjaEvB.js} +1 -1
  197. package/dist/{layers.sErNmXIW.js → layers.lRYdKIIK.js} +1 -1
  198. package/dist/{layers.B2IUimpm.js → layers.laidEAs2.js} +1 -1
  199. package/dist/{layers.70-mDRns.js → layers.pXjnGV4O.js} +6 -6
  200. package/dist/{layers.B9cgMIYN.js → layers.qi3Kimyf.js} +1 -1
  201. package/dist/layers.qxDJOymK.js +2 -0
  202. package/dist/{layers.DWKh0bxp.js → layers.qxP56dZh.js} +1 -1
  203. package/dist/{layers.BKQGrfL6.js → layers.seazICvC.js} +7 -6
  204. package/dist/{layers.D4ynF3yn.js → layers.uobjGWTC.js} +1 -1
  205. package/dist/{layers.DEh849IH.js → layers.vVItDXN7.js} +1 -1
  206. package/dist/{layers.4hMJo09s.js → layers.yy0ucRjW.js} +1 -1
  207. package/dist/{layers.vBwtO_oV.js → layers.ztXMRhLo.js} +1 -1
  208. package/package.json +3 -5
  209. package/dist/layers.0F4YVLp2.js +0 -1
  210. package/dist/layers.B8GNrynA.js +0 -6
  211. package/dist/layers.BAZ7VG7y.js +0 -1
  212. package/dist/layers.BSmQmuya.js +0 -1
  213. package/dist/layers.BT-Zowct.js +0 -96
  214. package/dist/layers.Bf8DIIJg.js +0 -2
  215. package/dist/layers.Bix14Gyj.js +0 -1
  216. package/dist/layers.BnzcEpZ-.js +0 -133
  217. package/dist/layers.BxgEYHek.js +0 -1
  218. package/dist/layers.CPpq-0-3.js +0 -1
  219. package/dist/layers.CSOcpruf.js +0 -257
  220. package/dist/layers.C_-Ax18X.js +0 -8
  221. package/dist/layers.CdpHcFy4.js +0 -8
  222. package/dist/layers.CoyIFAVi.js +0 -1
  223. package/dist/layers.CxungwaX.js +0 -2
  224. package/dist/layers.DURGPkGd.js +0 -1
  225. package/dist/layers.Dkcn0PJ4.js +0 -58
  226. package/dist/layers.JkI-2tky.js +0 -233
  227. package/dist/layers.jeBs5I3w.js +0 -230
@@ -0,0 +1,342 @@
1
+ "use strict";var yJ=Object.defineProperty;var TI=e=>{throw TypeError(e)};var vJ=(e,t,r)=>t in e?yJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Y=(e,t,r)=>vJ(e,typeof t!="symbol"?t+"":t,r),jI=(e,t,r)=>t.has(e)||TI("Cannot "+r);var or=(e,t,r)=>(jI(e,t,"read from private field"),r?r.call(e):t.get(e)),as=(e,t,r)=>t.has(e)?TI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),oo=(e,t,r,n)=>(jI(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _r=require("react/jsx-runtime"),Mt=require("react"),bJ=require("react-i18next"),Ve=require("./layers.DqKp4SoC.js"),In=require("@mantine/core"),kt=require("./layers.BgtQ5VOT.js"),_J=require("react-dom"),EJ=require("./layers.GHnZTJ9O.js"),SJ=require("@layers-app/shared");function FL(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}function mO(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const ut=FL(Mt),wJ=FL(_J);var Pf={exports:{}},kf={exports:{}},$t={};/** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */var PI;function xJ(){if(PI)return $t;PI=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function E(S){if(typeof S=="object"&&S!==null){var A=S.$$typeof;switch(A){case t:switch(S=S.type,S){case u:case c:case n:case s:case i:case f:return S;default:switch(S=S&&S.$$typeof,S){case o:case l:case g:case d:case a:return S;default:return A}}case r:return A}}}function w(S){return E(S)===c}return $t.AsyncMode=u,$t.ConcurrentMode=c,$t.ContextConsumer=o,$t.ContextProvider=a,$t.Element=t,$t.ForwardRef=l,$t.Fragment=n,$t.Lazy=g,$t.Memo=d,$t.Portal=r,$t.Profiler=s,$t.StrictMode=i,$t.Suspense=f,$t.isAsyncMode=function(S){return w(S)||E(S)===u},$t.isConcurrentMode=w,$t.isContextConsumer=function(S){return E(S)===o},$t.isContextProvider=function(S){return E(S)===a},$t.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},$t.isForwardRef=function(S){return E(S)===l},$t.isFragment=function(S){return E(S)===n},$t.isLazy=function(S){return E(S)===g},$t.isMemo=function(S){return E(S)===d},$t.isPortal=function(S){return E(S)===r},$t.isProfiler=function(S){return E(S)===s},$t.isStrictMode=function(S){return E(S)===i},$t.isSuspense=function(S){return E(S)===f},$t.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===c||S===s||S===i||S===f||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===d||S.$$typeof===a||S.$$typeof===o||S.$$typeof===l||S.$$typeof===v||S.$$typeof===_||S.$$typeof===b||S.$$typeof===y)},$t.typeOf=E,$t}var Ft={};/** @license React v16.13.1
9
+ * react-is.development.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */var kI;function AJ(){return kI||(kI=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function E(pe){return typeof pe=="string"||typeof pe=="function"||pe===n||pe===c||pe===s||pe===i||pe===f||pe===h||typeof pe=="object"&&pe!==null&&(pe.$$typeof===g||pe.$$typeof===d||pe.$$typeof===a||pe.$$typeof===o||pe.$$typeof===l||pe.$$typeof===v||pe.$$typeof===_||pe.$$typeof===b||pe.$$typeof===y)}function w(pe){if(typeof pe=="object"&&pe!==null){var Te=pe.$$typeof;switch(Te){case t:var Le=pe.type;switch(Le){case u:case c:case n:case s:case i:case f:return Le;default:var be=Le&&Le.$$typeof;switch(be){case o:case l:case g:case d:case a:return be;default:return Te}}case r:return Te}}}var S=u,A=c,R=o,T=a,O=t,D=l,N=n,$=g,M=d,X=r,ee=s,J=i,Q=f,te=!1;function re(pe){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(pe)||w(pe)===u}function L(pe){return w(pe)===c}function K(pe){return w(pe)===o}function ne(pe){return w(pe)===a}function ce(pe){return typeof pe=="object"&&pe!==null&&pe.$$typeof===t}function ue(pe){return w(pe)===l}function se(pe){return w(pe)===n}function V(pe){return w(pe)===g}function z(pe){return w(pe)===d}function de(pe){return w(pe)===r}function ge(pe){return w(pe)===s}function Ce(pe){return w(pe)===i}function Pe(pe){return w(pe)===f}Ft.AsyncMode=S,Ft.ConcurrentMode=A,Ft.ContextConsumer=R,Ft.ContextProvider=T,Ft.Element=O,Ft.ForwardRef=D,Ft.Fragment=N,Ft.Lazy=$,Ft.Memo=M,Ft.Portal=X,Ft.Profiler=ee,Ft.StrictMode=J,Ft.Suspense=Q,Ft.isAsyncMode=re,Ft.isConcurrentMode=L,Ft.isContextConsumer=K,Ft.isContextProvider=ne,Ft.isElement=ce,Ft.isForwardRef=ue,Ft.isFragment=se,Ft.isLazy=V,Ft.isMemo=z,Ft.isPortal=de,Ft.isProfiler=ge,Ft.isStrictMode=Ce,Ft.isSuspense=Pe,Ft.isValidElementType=E,Ft.typeOf=w})()),Ft}var NI;function BL(){return NI||(NI=1,process.env.NODE_ENV==="production"?kf.exports=xJ():kf.exports=AJ()),kf.exports}/*
16
+ object-assign
17
+ (c) Sindre Sorhus
18
+ @license MIT
19
+ */var Jm,MI;function OJ(){if(MI)return Jm;MI=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var u=Object.getOwnPropertyNames(a).map(function(l){return a[l]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(l){c[l]=l}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jm=i()?Object.assign:function(s,a){for(var o,u=n(s),c,l=1;l<arguments.length;l++){o=Object(arguments[l]);for(var f in o)t.call(o,f)&&(u[f]=o[f]);if(e){c=e(o);for(var h=0;h<c.length;h++)r.call(o,c[h])&&(u[c[h]]=o[c[h]])}}return u},Jm}var Km,DI;function gO(){if(DI)return Km;DI=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Km=e,Km}var Hm,qI;function LL(){return qI||(qI=1,Hm=Function.call.bind(Object.prototype.hasOwnProperty)),Hm}var Gm,$I;function CJ(){if($I)return Gm;$I=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=gO(),r={},n=LL();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,o,u,c){if(process.env.NODE_ENV!=="production"){for(var l in s)if(n(s,l)){var f;try{if(typeof s[l]!="function"){var h=Error((u||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=s[l](a,l,u,o,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var d=c?c():"";e("Failed "+o+" type: "+f.message+(d??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Gm=i,Gm}var Ym,FI;function RJ(){if(FI)return Ym;FI=1;var e=BL(),t=OJ(),r=gO(),n=LL(),i=CJ(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var u="Warning: "+o;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Ym=function(o,u){var c=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(L){var K=L&&(c&&L[c]||L[l]);if(typeof K=="function")return K}var h="<<anonymous>>",d={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:b(),arrayOf:E,element:w(),elementType:S(),instanceOf:A,node:D(),objectOf:T,oneOf:R,oneOfType:O,shape:$,exact:M};function g(L,K){return L===K?L!==0||1/L===1/K:L!==L&&K!==K}function y(L,K){this.message=L,this.data=K&&typeof K=="object"?K:{},this.stack=""}y.prototype=Error.prototype;function v(L){if(process.env.NODE_ENV!=="production")var K={},ne=0;function ce(se,V,z,de,ge,Ce,Pe){if(de=de||h,Ce=Ce||z,Pe!==r){if(u){var pe=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw pe.name="Invariant Violation",pe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Te=de+":"+z;!K[Te]&&ne<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),K[Te]=!0,ne++)}}return V[z]==null?se?V[z]===null?new y("The "+ge+" `"+Ce+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new y("The "+ge+" `"+Ce+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:L(V,z,de,ge,Ce)}var ue=ce.bind(null,!1);return ue.isRequired=ce.bind(null,!0),ue}function _(L){function K(ne,ce,ue,se,V,z){var de=ne[ce],ge=J(de);if(ge!==L){var Ce=Q(de);return new y("Invalid "+se+" `"+V+"` of type "+("`"+Ce+"` supplied to `"+ue+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return v(K)}function b(){return v(a)}function E(L){function K(ne,ce,ue,se,V){if(typeof L!="function")return new y("Property `"+V+"` of component `"+ue+"` has invalid PropType notation inside arrayOf.");var z=ne[ce];if(!Array.isArray(z)){var de=J(z);return new y("Invalid "+se+" `"+V+"` of type "+("`"+de+"` supplied to `"+ue+"`, expected an array."))}for(var ge=0;ge<z.length;ge++){var Ce=L(z,ge,ue,se,V+"["+ge+"]",r);if(Ce instanceof Error)return Ce}return null}return v(K)}function w(){function L(K,ne,ce,ue,se){var V=K[ne];if(!o(V)){var z=J(V);return new y("Invalid "+ue+" `"+se+"` of type "+("`"+z+"` supplied to `"+ce+"`, expected a single ReactElement."))}return null}return v(L)}function S(){function L(K,ne,ce,ue,se){var V=K[ne];if(!e.isValidElementType(V)){var z=J(V);return new y("Invalid "+ue+" `"+se+"` of type "+("`"+z+"` supplied to `"+ce+"`, expected a single ReactElement type."))}return null}return v(L)}function A(L){function K(ne,ce,ue,se,V){if(!(ne[ce]instanceof L)){var z=L.name||h,de=re(ne[ce]);return new y("Invalid "+se+" `"+V+"` of type "+("`"+de+"` supplied to `"+ue+"`, expected ")+("instance of `"+z+"`."))}return null}return v(K)}function R(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function K(ne,ce,ue,se,V){for(var z=ne[ce],de=0;de<L.length;de++)if(g(z,L[de]))return null;var ge=JSON.stringify(L,function(Pe,pe){var Te=Q(pe);return Te==="symbol"?String(pe):pe});return new y("Invalid "+se+" `"+V+"` of value `"+String(z)+"` "+("supplied to `"+ue+"`, expected one of "+ge+"."))}return v(K)}function T(L){function K(ne,ce,ue,se,V){if(typeof L!="function")return new y("Property `"+V+"` of component `"+ue+"` has invalid PropType notation inside objectOf.");var z=ne[ce],de=J(z);if(de!=="object")return new y("Invalid "+se+" `"+V+"` of type "+("`"+de+"` supplied to `"+ue+"`, expected an object."));for(var ge in z)if(n(z,ge)){var Ce=L(z,ge,ue,se,V+"."+ge,r);if(Ce instanceof Error)return Ce}return null}return v(K)}function O(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var K=0;K<L.length;K++){var ne=L[K];if(typeof ne!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(ne)+" at index "+K+"."),a}function ce(ue,se,V,z,de){for(var ge=[],Ce=0;Ce<L.length;Ce++){var Pe=L[Ce],pe=Pe(ue,se,V,z,de,r);if(pe==null)return null;pe.data&&n(pe.data,"expectedType")&&ge.push(pe.data.expectedType)}var Te=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new y("Invalid "+z+" `"+de+"` supplied to "+("`"+V+"`"+Te+"."))}return v(ce)}function D(){function L(K,ne,ce,ue,se){return X(K[ne])?null:new y("Invalid "+ue+" `"+se+"` supplied to "+("`"+ce+"`, expected a ReactNode."))}return v(L)}function N(L,K,ne,ce,ue){return new y((L||"React class")+": "+K+" type `"+ne+"."+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ue+"`.")}function $(L){function K(ne,ce,ue,se,V){var z=ne[ce],de=J(z);if(de!=="object")return new y("Invalid "+se+" `"+V+"` of type `"+de+"` "+("supplied to `"+ue+"`, expected `object`."));for(var ge in L){var Ce=L[ge];if(typeof Ce!="function")return N(ue,se,V,ge,Q(Ce));var Pe=Ce(z,ge,ue,se,V+"."+ge,r);if(Pe)return Pe}return null}return v(K)}function M(L){function K(ne,ce,ue,se,V){var z=ne[ce],de=J(z);if(de!=="object")return new y("Invalid "+se+" `"+V+"` of type `"+de+"` "+("supplied to `"+ue+"`, expected `object`."));var ge=t({},ne[ce],L);for(var Ce in ge){var Pe=L[Ce];if(n(L,Ce)&&typeof Pe!="function")return N(ue,se,V,Ce,Q(Pe));if(!Pe)return new y("Invalid "+se+" `"+V+"` key `"+Ce+"` supplied to `"+ue+"`.\nBad object: "+JSON.stringify(ne[ce],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var pe=Pe(z,Ce,ue,se,V+"."+Ce,r);if(pe)return pe}return null}return v(K)}function X(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(X);if(L===null||o(L))return!0;var K=f(L);if(K){var ne=K.call(L),ce;if(K!==L.entries){for(;!(ce=ne.next()).done;)if(!X(ce.value))return!1}else for(;!(ce=ne.next()).done;){var ue=ce.value;if(ue&&!X(ue[1]))return!1}}else return!1;return!0;default:return!1}}function ee(L,K){return L==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function J(L){var K=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":ee(K,L)?"symbol":K}function Q(L){if(typeof L>"u"||L===null)return""+L;var K=J(L);if(K==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return K}function te(L){var K=Q(L);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function re(L){return!L.constructor||!L.constructor.name?h:L.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Ym}var Xm,BI;function IJ(){if(BI)return Xm;BI=1;var e=gO();function t(){}function r(){}return r.resetWarningCache=t,Xm=function(){function n(a,o,u,c,l,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Xm}var LI;function TJ(){if(LI)return Pf.exports;if(LI=1,process.env.NODE_ENV!=="production"){var e=BL(),t=!0;Pf.exports=RJ()(e.isElement,t)}else Pf.exports=IJ()();return Pf.exports}var jJ=TJ();const PJ=Ve.getDefaultExportFromCjs(jJ);var Nf={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var UI;function UL(){return UI||(UI=1,Nf.read=function(e,t,r,n,i){var s,a,o=i*8-n-1,u=(1<<o)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,s=d&(1<<-l)-1,d>>=-l,l+=o;l>0;s=s*256+e[t+f],f+=h,l-=8);for(a=s&(1<<-l)-1,s>>=-l,l+=n;l>0;a=a*256+e[t+f],f+=h,l-=8);if(s===0)s=1-c;else{if(s===u)return a?NaN:(d?-1:1)*(1/0);a=a+Math.pow(2,n),s=s-c}return(d?-1:1)*a*Math.pow(2,s-n)},Nf.write=function(e,t,r,n,i,s){var a,o,u,c=s*8-i-1,l=(1<<c)-1,f=l>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:s-1,g=n?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?t+=h/u:t+=h*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=l?(o=0,a=l):a+f>=1?(o=(t*u-1)*Math.pow(2,i),a=a+f):(o=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=o&255,d+=g,o/=256,i-=8);for(a=a<<i|o,c+=i;c>0;e[r+d]=a&255,d+=g,a/=256,c-=8);e[r+d-g]|=y*128}),Nf}var VL=UL();const kJ=Ve.getDefaultExportFromCjs(VL),NJ=mO({__proto__:null,default:kJ},[VL]);var Mf={exports:{}},Zm={},ku={},VI;function zL(){if(VI)return ku;VI=1,ku.byteLength=o,ku.toByteArray=c,ku.fromByteArray=h;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=n.length;i<s;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function a(d){var g=d.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=d.indexOf("=");y===-1&&(y=g);var v=y===g?0:4-y%4;return[y,v]}function o(d){var g=a(d),y=g[0],v=g[1];return(y+v)*3/4-v}function u(d,g,y){return(g+y)*3/4-y}function c(d){var g,y=a(d),v=y[0],_=y[1],b=new r(u(d,v,_)),E=0,w=_>0?v-4:v,S;for(S=0;S<w;S+=4)g=t[d.charCodeAt(S)]<<18|t[d.charCodeAt(S+1)]<<12|t[d.charCodeAt(S+2)]<<6|t[d.charCodeAt(S+3)],b[E++]=g>>16&255,b[E++]=g>>8&255,b[E++]=g&255;return _===2&&(g=t[d.charCodeAt(S)]<<2|t[d.charCodeAt(S+1)]>>4,b[E++]=g&255),_===1&&(g=t[d.charCodeAt(S)]<<10|t[d.charCodeAt(S+1)]<<4|t[d.charCodeAt(S+2)]>>2,b[E++]=g>>8&255,b[E++]=g&255),b}function l(d){return e[d>>18&63]+e[d>>12&63]+e[d>>6&63]+e[d&63]}function f(d,g,y){for(var v,_=[],b=g;b<y;b+=3)v=(d[b]<<16&16711680)+(d[b+1]<<8&65280)+(d[b+2]&255),_.push(l(v));return _.join("")}function h(d){for(var g,y=d.length,v=y%3,_=[],b=16383,E=0,w=y-v;E<w;E+=b)_.push(f(d,E,E+b>w?w:E+b));return v===1?(g=d[y-1],_.push(e[g>>2]+e[g<<4&63]+"==")):v===2&&(g=(d[y-2]<<8)+d[y-1],_.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),_.join("")}return ku}/*!
21
+ * The buffer module from node.js, for the browser.
22
+ *
23
+ * @author Feross Aboukhadijeh <https://feross.org>
24
+ * @license MIT
25
+ */var zI;function MJ(){return zI||(zI=1,(function(e){const t=zL(),r=UL(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const B=new Uint8Array(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,Uint8Array.prototype),Object.setPrototypeOf(B,C),B.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(B){if(B>i)throw new RangeError('The value "'+B+'" is invalid for option "size"');const C=new Uint8Array(B);return Object.setPrototypeOf(C,o.prototype),C}function o(B,C,j){if(typeof B=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(B)}return u(B,C,j)}o.poolSize=8192;function u(B,C,j){if(typeof B=="string")return h(B,C);if(ArrayBuffer.isView(B))return g(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(ie(B,ArrayBuffer)||B&&ie(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(B,SharedArrayBuffer)||B&&ie(B.buffer,SharedArrayBuffer)))return y(B,C,j);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Z=B.valueOf&&B.valueOf();if(Z!=null&&Z!==B)return o.from(Z,C,j);const fe=v(B);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return o.from(B[Symbol.toPrimitive]("string"),C,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}o.from=function(B,C,j){return u(B,C,j)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function c(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function l(B,C,j){return c(B),B<=0?a(B):C!==void 0?typeof j=="string"?a(B).fill(C,j):a(B).fill(C):a(B)}o.alloc=function(B,C,j){return l(B,C,j)};function f(B){return c(B),a(B<0?0:_(B)|0)}o.allocUnsafe=function(B){return f(B)},o.allocUnsafeSlow=function(B){return f(B)};function h(B,C){if((typeof C!="string"||C==="")&&(C="utf8"),!o.isEncoding(C))throw new TypeError("Unknown encoding: "+C);const j=E(B,C)|0;let Z=a(j);const fe=Z.write(B,C);return fe!==j&&(Z=Z.slice(0,fe)),Z}function d(B){const C=B.length<0?0:_(B.length)|0,j=a(C);for(let Z=0;Z<C;Z+=1)j[Z]=B[Z]&255;return j}function g(B){if(ie(B,Uint8Array)){const C=new Uint8Array(B);return y(C.buffer,C.byteOffset,C.byteLength)}return d(B)}function y(B,C,j){if(C<0||B.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<C+(j||0))throw new RangeError('"length" is outside of buffer bounds');let Z;return C===void 0&&j===void 0?Z=new Uint8Array(B):j===void 0?Z=new Uint8Array(B,C):Z=new Uint8Array(B,C,j),Object.setPrototypeOf(Z,o.prototype),Z}function v(B){if(o.isBuffer(B)){const C=_(B.length)|0,j=a(C);return j.length===0||B.copy(j,0,0,C),j}if(B.length!==void 0)return typeof B.length!="number"||oe(B.length)?a(0):d(B);if(B.type==="Buffer"&&Array.isArray(B.data))return d(B.data)}function _(B){if(B>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return B|0}function b(B){return+B!=B&&(B=0),o.alloc(+B)}o.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==o.prototype},o.compare=function(C,j){if(ie(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),ie(j,Uint8Array)&&(j=o.from(j,j.offset,j.byteLength)),!o.isBuffer(C)||!o.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===j)return 0;let Z=C.length,fe=j.length;for(let ve=0,Oe=Math.min(Z,fe);ve<Oe;++ve)if(C[ve]!==j[ve]){Z=C[ve],fe=j[ve];break}return Z<fe?-1:fe<Z?1:0},o.isEncoding=function(C){switch(String(C).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(C,j){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return o.alloc(0);let Z;if(j===void 0)for(j=0,Z=0;Z<C.length;++Z)j+=C[Z].length;const fe=o.allocUnsafe(j);let ve=0;for(Z=0;Z<C.length;++Z){let Oe=C[Z];if(ie(Oe,Uint8Array))ve+Oe.length>fe.length?(o.isBuffer(Oe)||(Oe=o.from(Oe)),Oe.copy(fe,ve)):Uint8Array.prototype.set.call(fe,Oe,ve);else if(o.isBuffer(Oe))Oe.copy(fe,ve);else throw new TypeError('"list" argument must be an Array of Buffers');ve+=Oe.length}return fe};function E(B,C){if(o.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||ie(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const j=B.length,Z=arguments.length>2&&arguments[2]===!0;if(!Z&&j===0)return 0;let fe=!1;for(;;)switch(C){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return xe(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j*2;case"hex":return j>>>1;case"base64":return k(B).length;default:if(fe)return Z?-1:xe(B).length;C=(""+C).toLowerCase(),fe=!0}}o.byteLength=E;function w(B,C,j){let Z=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,C>>>=0,j<=C))return"";for(B||(B="utf8");;)switch(B){case"hex":return re(this,C,j);case"utf8":case"utf-8":return X(this,C,j);case"ascii":return Q(this,C,j);case"latin1":case"binary":return te(this,C,j);case"base64":return M(this,C,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,C,j);default:if(Z)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),Z=!0}}o.prototype._isBuffer=!0;function S(B,C,j){const Z=B[C];B[C]=B[j],B[j]=Z}o.prototype.swap16=function(){const C=this.length;if(C%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<C;j+=2)S(this,j,j+1);return this},o.prototype.swap32=function(){const C=this.length;if(C%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<C;j+=4)S(this,j,j+3),S(this,j+1,j+2);return this},o.prototype.swap64=function(){const C=this.length;if(C%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<C;j+=8)S(this,j,j+7),S(this,j+1,j+6),S(this,j+2,j+5),S(this,j+3,j+4);return this},o.prototype.toString=function(){const C=this.length;return C===0?"":arguments.length===0?X(this,0,C):w.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(C){if(!o.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C?!0:o.compare(this,C)===0},o.prototype.inspect=function(){let C="";const j=e.INSPECT_MAX_BYTES;return C=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(C+=" ... "),"<Buffer "+C+">"},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(C,j,Z,fe,ve){if(ie(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),!o.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(j===void 0&&(j=0),Z===void 0&&(Z=C?C.length:0),fe===void 0&&(fe=0),ve===void 0&&(ve=this.length),j<0||Z>C.length||fe<0||ve>this.length)throw new RangeError("out of range index");if(fe>=ve&&j>=Z)return 0;if(fe>=ve)return-1;if(j>=Z)return 1;if(j>>>=0,Z>>>=0,fe>>>=0,ve>>>=0,this===C)return 0;let Oe=ve-fe,rt=Z-j;const at=Math.min(Oe,rt),Ut=this.slice(fe,ve),pt=C.slice(j,Z);for(let le=0;le<at;++le)if(Ut[le]!==pt[le]){Oe=Ut[le],rt=pt[le];break}return Oe<rt?-1:rt<Oe?1:0};function A(B,C,j,Z,fe){if(B.length===0)return-1;if(typeof j=="string"?(Z=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,oe(j)&&(j=fe?0:B.length-1),j<0&&(j=B.length+j),j>=B.length){if(fe)return-1;j=B.length-1}else if(j<0)if(fe)j=0;else return-1;if(typeof C=="string"&&(C=o.from(C,Z)),o.isBuffer(C))return C.length===0?-1:R(B,C,j,Z,fe);if(typeof C=="number")return C=C&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(B,C,j):Uint8Array.prototype.lastIndexOf.call(B,C,j):R(B,[C],j,Z,fe);throw new TypeError("val must be string, number or Buffer")}function R(B,C,j,Z,fe){let ve=1,Oe=B.length,rt=C.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(B.length<2||C.length<2)return-1;ve=2,Oe/=2,rt/=2,j/=2}function at(pt,le){return ve===1?pt[le]:pt.readUInt16BE(le*ve)}let Ut;if(fe){let pt=-1;for(Ut=j;Ut<Oe;Ut++)if(at(B,Ut)===at(C,pt===-1?0:Ut-pt)){if(pt===-1&&(pt=Ut),Ut-pt+1===rt)return pt*ve}else pt!==-1&&(Ut-=Ut-pt),pt=-1}else for(j+rt>Oe&&(j=Oe-rt),Ut=j;Ut>=0;Ut--){let pt=!0;for(let le=0;le<rt;le++)if(at(B,Ut+le)!==at(C,le)){pt=!1;break}if(pt)return Ut}return-1}o.prototype.includes=function(C,j,Z){return this.indexOf(C,j,Z)!==-1},o.prototype.indexOf=function(C,j,Z){return A(this,C,j,Z,!0)},o.prototype.lastIndexOf=function(C,j,Z){return A(this,C,j,Z,!1)};function T(B,C,j,Z){j=Number(j)||0;const fe=B.length-j;Z?(Z=Number(Z),Z>fe&&(Z=fe)):Z=fe;const ve=C.length;Z>ve/2&&(Z=ve/2);let Oe;for(Oe=0;Oe<Z;++Oe){const rt=parseInt(C.substr(Oe*2,2),16);if(oe(rt))return Oe;B[j+Oe]=rt}return Oe}function O(B,C,j,Z){return W(xe(C,B.length-j),B,j,Z)}function D(B,C,j,Z){return W(U(C),B,j,Z)}function N(B,C,j,Z){return W(k(C),B,j,Z)}function $(B,C,j,Z){return W(I(C,B.length-j),B,j,Z)}o.prototype.write=function(C,j,Z,fe){if(j===void 0)fe="utf8",Z=this.length,j=0;else if(Z===void 0&&typeof j=="string")fe=j,Z=this.length,j=0;else if(isFinite(j))j=j>>>0,isFinite(Z)?(Z=Z>>>0,fe===void 0&&(fe="utf8")):(fe=Z,Z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ve=this.length-j;if((Z===void 0||Z>ve)&&(Z=ve),C.length>0&&(Z<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");let Oe=!1;for(;;)switch(fe){case"hex":return T(this,C,j,Z);case"utf8":case"utf-8":return O(this,C,j,Z);case"ascii":case"latin1":case"binary":return D(this,C,j,Z);case"base64":return N(this,C,j,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,C,j,Z);default:if(Oe)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Oe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(B,C,j){return C===0&&j===B.length?t.fromByteArray(B):t.fromByteArray(B.slice(C,j))}function X(B,C,j){j=Math.min(B.length,j);const Z=[];let fe=C;for(;fe<j;){const ve=B[fe];let Oe=null,rt=ve>239?4:ve>223?3:ve>191?2:1;if(fe+rt<=j){let at,Ut,pt,le;switch(rt){case 1:ve<128&&(Oe=ve);break;case 2:at=B[fe+1],(at&192)===128&&(le=(ve&31)<<6|at&63,le>127&&(Oe=le));break;case 3:at=B[fe+1],Ut=B[fe+2],(at&192)===128&&(Ut&192)===128&&(le=(ve&15)<<12|(at&63)<<6|Ut&63,le>2047&&(le<55296||le>57343)&&(Oe=le));break;case 4:at=B[fe+1],Ut=B[fe+2],pt=B[fe+3],(at&192)===128&&(Ut&192)===128&&(pt&192)===128&&(le=(ve&15)<<18|(at&63)<<12|(Ut&63)<<6|pt&63,le>65535&&le<1114112&&(Oe=le))}}Oe===null?(Oe=65533,rt=1):Oe>65535&&(Oe-=65536,Z.push(Oe>>>10&1023|55296),Oe=56320|Oe&1023),Z.push(Oe),fe+=rt}return J(Z)}const ee=4096;function J(B){const C=B.length;if(C<=ee)return String.fromCharCode.apply(String,B);let j="",Z=0;for(;Z<C;)j+=String.fromCharCode.apply(String,B.slice(Z,Z+=ee));return j}function Q(B,C,j){let Z="";j=Math.min(B.length,j);for(let fe=C;fe<j;++fe)Z+=String.fromCharCode(B[fe]&127);return Z}function te(B,C,j){let Z="";j=Math.min(B.length,j);for(let fe=C;fe<j;++fe)Z+=String.fromCharCode(B[fe]);return Z}function re(B,C,j){const Z=B.length;(!C||C<0)&&(C=0),(!j||j<0||j>Z)&&(j=Z);let fe="";for(let ve=C;ve<j;++ve)fe+=me[B[ve]];return fe}function L(B,C,j){const Z=B.slice(C,j);let fe="";for(let ve=0;ve<Z.length-1;ve+=2)fe+=String.fromCharCode(Z[ve]+Z[ve+1]*256);return fe}o.prototype.slice=function(C,j){const Z=this.length;C=~~C,j=j===void 0?Z:~~j,C<0?(C+=Z,C<0&&(C=0)):C>Z&&(C=Z),j<0?(j+=Z,j<0&&(j=0)):j>Z&&(j=Z),j<C&&(j=C);const fe=this.subarray(C,j);return Object.setPrototypeOf(fe,o.prototype),fe};function K(B,C,j){if(B%1!==0||B<0)throw new RangeError("offset is not uint");if(B+C>j)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||K(C,j,this.length);let fe=this[C],ve=1,Oe=0;for(;++Oe<j&&(ve*=256);)fe+=this[C+Oe]*ve;return fe},o.prototype.readUintBE=o.prototype.readUIntBE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||K(C,j,this.length);let fe=this[C+--j],ve=1;for(;j>0&&(ve*=256);)fe+=this[C+--j]*ve;return fe},o.prototype.readUint8=o.prototype.readUInt8=function(C,j){return C=C>>>0,j||K(C,1,this.length),this[C]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(C,j){return C=C>>>0,j||K(C,2,this.length),this[C]|this[C+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(C,j){return C=C>>>0,j||K(C,2,this.length),this[C]<<8|this[C+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(C,j){return C=C>>>0,j||K(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(C,j){return C=C>>>0,j||K(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},o.prototype.readBigUInt64LE=Ne(function(C){C=C>>>0,Te(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Le(C,this.length-8);const fe=j+this[++C]*2**8+this[++C]*2**16+this[++C]*2**24,ve=this[++C]+this[++C]*2**8+this[++C]*2**16+Z*2**24;return BigInt(fe)+(BigInt(ve)<<BigInt(32))}),o.prototype.readBigUInt64BE=Ne(function(C){C=C>>>0,Te(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Le(C,this.length-8);const fe=j*2**24+this[++C]*2**16+this[++C]*2**8+this[++C],ve=this[++C]*2**24+this[++C]*2**16+this[++C]*2**8+Z;return(BigInt(fe)<<BigInt(32))+BigInt(ve)}),o.prototype.readIntLE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||K(C,j,this.length);let fe=this[C],ve=1,Oe=0;for(;++Oe<j&&(ve*=256);)fe+=this[C+Oe]*ve;return ve*=128,fe>=ve&&(fe-=Math.pow(2,8*j)),fe},o.prototype.readIntBE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||K(C,j,this.length);let fe=j,ve=1,Oe=this[C+--fe];for(;fe>0&&(ve*=256);)Oe+=this[C+--fe]*ve;return ve*=128,Oe>=ve&&(Oe-=Math.pow(2,8*j)),Oe},o.prototype.readInt8=function(C,j){return C=C>>>0,j||K(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},o.prototype.readInt16LE=function(C,j){C=C>>>0,j||K(C,2,this.length);const Z=this[C]|this[C+1]<<8;return Z&32768?Z|4294901760:Z},o.prototype.readInt16BE=function(C,j){C=C>>>0,j||K(C,2,this.length);const Z=this[C+1]|this[C]<<8;return Z&32768?Z|4294901760:Z},o.prototype.readInt32LE=function(C,j){return C=C>>>0,j||K(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},o.prototype.readInt32BE=function(C,j){return C=C>>>0,j||K(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},o.prototype.readBigInt64LE=Ne(function(C){C=C>>>0,Te(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Le(C,this.length-8);const fe=this[C+4]+this[C+5]*2**8+this[C+6]*2**16+(Z<<24);return(BigInt(fe)<<BigInt(32))+BigInt(j+this[++C]*2**8+this[++C]*2**16+this[++C]*2**24)}),o.prototype.readBigInt64BE=Ne(function(C){C=C>>>0,Te(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Le(C,this.length-8);const fe=(j<<24)+this[++C]*2**16+this[++C]*2**8+this[++C];return(BigInt(fe)<<BigInt(32))+BigInt(this[++C]*2**24+this[++C]*2**16+this[++C]*2**8+Z)}),o.prototype.readFloatLE=function(C,j){return C=C>>>0,j||K(C,4,this.length),r.read(this,C,!0,23,4)},o.prototype.readFloatBE=function(C,j){return C=C>>>0,j||K(C,4,this.length),r.read(this,C,!1,23,4)},o.prototype.readDoubleLE=function(C,j){return C=C>>>0,j||K(C,8,this.length),r.read(this,C,!0,52,8)},o.prototype.readDoubleBE=function(C,j){return C=C>>>0,j||K(C,8,this.length),r.read(this,C,!1,52,8)};function ne(B,C,j,Z,fe,ve){if(!o.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>fe||C<ve)throw new RangeError('"value" argument is out of bounds');if(j+Z>B.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(C,j,Z,fe){if(C=+C,j=j>>>0,Z=Z>>>0,!fe){const rt=Math.pow(2,8*Z)-1;ne(this,C,j,Z,rt,0)}let ve=1,Oe=0;for(this[j]=C&255;++Oe<Z&&(ve*=256);)this[j+Oe]=C/ve&255;return j+Z},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(C,j,Z,fe){if(C=+C,j=j>>>0,Z=Z>>>0,!fe){const rt=Math.pow(2,8*Z)-1;ne(this,C,j,Z,rt,0)}let ve=Z-1,Oe=1;for(this[j+ve]=C&255;--ve>=0&&(Oe*=256);)this[j+ve]=C/Oe&255;return j+Z},o.prototype.writeUint8=o.prototype.writeUInt8=function(C,j,Z){return C=+C,j=j>>>0,Z||ne(this,C,j,1,255,0),this[j]=C&255,j+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ne(this,C,j,2,65535,0),this[j]=C&255,this[j+1]=C>>>8,j+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ne(this,C,j,2,65535,0),this[j]=C>>>8,this[j+1]=C&255,j+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ne(this,C,j,4,4294967295,0),this[j+3]=C>>>24,this[j+2]=C>>>16,this[j+1]=C>>>8,this[j]=C&255,j+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ne(this,C,j,4,4294967295,0),this[j]=C>>>24,this[j+1]=C>>>16,this[j+2]=C>>>8,this[j+3]=C&255,j+4};function ce(B,C,j,Z,fe){pe(C,Z,fe,B,j,7);let ve=Number(C&BigInt(4294967295));B[j++]=ve,ve=ve>>8,B[j++]=ve,ve=ve>>8,B[j++]=ve,ve=ve>>8,B[j++]=ve;let Oe=Number(C>>BigInt(32)&BigInt(4294967295));return B[j++]=Oe,Oe=Oe>>8,B[j++]=Oe,Oe=Oe>>8,B[j++]=Oe,Oe=Oe>>8,B[j++]=Oe,j}function ue(B,C,j,Z,fe){pe(C,Z,fe,B,j,7);let ve=Number(C&BigInt(4294967295));B[j+7]=ve,ve=ve>>8,B[j+6]=ve,ve=ve>>8,B[j+5]=ve,ve=ve>>8,B[j+4]=ve;let Oe=Number(C>>BigInt(32)&BigInt(4294967295));return B[j+3]=Oe,Oe=Oe>>8,B[j+2]=Oe,Oe=Oe>>8,B[j+1]=Oe,Oe=Oe>>8,B[j]=Oe,j+8}o.prototype.writeBigUInt64LE=Ne(function(C,j=0){return ce(this,C,j,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ne(function(C,j=0){return ue(this,C,j,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(C,j,Z,fe){if(C=+C,j=j>>>0,!fe){const at=Math.pow(2,8*Z-1);ne(this,C,j,Z,at-1,-at)}let ve=0,Oe=1,rt=0;for(this[j]=C&255;++ve<Z&&(Oe*=256);)C<0&&rt===0&&this[j+ve-1]!==0&&(rt=1),this[j+ve]=(C/Oe>>0)-rt&255;return j+Z},o.prototype.writeIntBE=function(C,j,Z,fe){if(C=+C,j=j>>>0,!fe){const at=Math.pow(2,8*Z-1);ne(this,C,j,Z,at-1,-at)}let ve=Z-1,Oe=1,rt=0;for(this[j+ve]=C&255;--ve>=0&&(Oe*=256);)C<0&&rt===0&&this[j+ve+1]!==0&&(rt=1),this[j+ve]=(C/Oe>>0)-rt&255;return j+Z},o.prototype.writeInt8=function(C,j,Z){return C=+C,j=j>>>0,Z||ne(this,C,j,1,127,-128),C<0&&(C=255+C+1),this[j]=C&255,j+1},o.prototype.writeInt16LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ne(this,C,j,2,32767,-32768),this[j]=C&255,this[j+1]=C>>>8,j+2},o.prototype.writeInt16BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ne(this,C,j,2,32767,-32768),this[j]=C>>>8,this[j+1]=C&255,j+2},o.prototype.writeInt32LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ne(this,C,j,4,2147483647,-2147483648),this[j]=C&255,this[j+1]=C>>>8,this[j+2]=C>>>16,this[j+3]=C>>>24,j+4},o.prototype.writeInt32BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ne(this,C,j,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[j]=C>>>24,this[j+1]=C>>>16,this[j+2]=C>>>8,this[j+3]=C&255,j+4},o.prototype.writeBigInt64LE=Ne(function(C,j=0){return ce(this,C,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ne(function(C,j=0){return ue(this,C,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function se(B,C,j,Z,fe,ve){if(j+Z>B.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function V(B,C,j,Z,fe){return C=+C,j=j>>>0,fe||se(B,C,j,4),r.write(B,C,j,Z,23,4),j+4}o.prototype.writeFloatLE=function(C,j,Z){return V(this,C,j,!0,Z)},o.prototype.writeFloatBE=function(C,j,Z){return V(this,C,j,!1,Z)};function z(B,C,j,Z,fe){return C=+C,j=j>>>0,fe||se(B,C,j,8),r.write(B,C,j,Z,52,8),j+8}o.prototype.writeDoubleLE=function(C,j,Z){return z(this,C,j,!0,Z)},o.prototype.writeDoubleBE=function(C,j,Z){return z(this,C,j,!1,Z)},o.prototype.copy=function(C,j,Z,fe){if(!o.isBuffer(C))throw new TypeError("argument should be a Buffer");if(Z||(Z=0),!fe&&fe!==0&&(fe=this.length),j>=C.length&&(j=C.length),j||(j=0),fe>0&&fe<Z&&(fe=Z),fe===Z||C.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(Z<0||Z>=this.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),C.length-j<fe-Z&&(fe=C.length-j+Z);const ve=fe-Z;return this===C&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,Z,fe):Uint8Array.prototype.set.call(C,this.subarray(Z,fe),j),ve},o.prototype.fill=function(C,j,Z,fe){if(typeof C=="string"){if(typeof j=="string"?(fe=j,j=0,Z=this.length):typeof Z=="string"&&(fe=Z,Z=this.length),fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!o.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);if(C.length===1){const Oe=C.charCodeAt(0);(fe==="utf8"&&Oe<128||fe==="latin1")&&(C=Oe)}}else typeof C=="number"?C=C&255:typeof C=="boolean"&&(C=Number(C));if(j<0||this.length<j||this.length<Z)throw new RangeError("Out of range index");if(Z<=j)return this;j=j>>>0,Z=Z===void 0?this.length:Z>>>0,C||(C=0);let ve;if(typeof C=="number")for(ve=j;ve<Z;++ve)this[ve]=C;else{const Oe=o.isBuffer(C)?C:o.from(C,fe),rt=Oe.length;if(rt===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(ve=0;ve<Z-j;++ve)this[ve+j]=Oe[ve%rt]}return this};const de={};function ge(B,C,j){de[B]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:C.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,this.stack,delete this.name}get code(){return B}set code(fe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:fe,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}ge("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ge("ERR_INVALID_ARG_TYPE",function(B,C){return`The "${B}" argument must be of type number. Received type ${typeof C}`},TypeError),ge("ERR_OUT_OF_RANGE",function(B,C,j){let Z=`The value of "${B}" is out of range.`,fe=j;return Number.isInteger(j)&&Math.abs(j)>2**32?fe=Ce(String(j)):typeof j=="bigint"&&(fe=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(fe=Ce(fe)),fe+="n"),Z+=` It must be ${C}. Received ${fe}`,Z},RangeError);function Ce(B){let C="",j=B.length;const Z=B[0]==="-"?1:0;for(;j>=Z+4;j-=3)C=`_${B.slice(j-3,j)}${C}`;return`${B.slice(0,j)}${C}`}function Pe(B,C,j){Te(C,"offset"),(B[C]===void 0||B[C+j]===void 0)&&Le(C,B.length-(j+1))}function pe(B,C,j,Z,fe,ve){if(B>j||B<C){const Oe=typeof C=="bigint"?"n":"";let rt;throw C===0||C===BigInt(0)?rt=`>= 0${Oe} and < 2${Oe} ** ${(ve+1)*8}${Oe}`:rt=`>= -(2${Oe} ** ${(ve+1)*8-1}${Oe}) and < 2 ** ${(ve+1)*8-1}${Oe}`,new de.ERR_OUT_OF_RANGE("value",rt,B)}Pe(Z,fe,ve)}function Te(B,C){if(typeof B!="number")throw new de.ERR_INVALID_ARG_TYPE(C,"number",B)}function Le(B,C,j){throw Math.floor(B)!==B?(Te(B,j),new de.ERR_OUT_OF_RANGE("offset","an integer",B)):C<0?new de.ERR_BUFFER_OUT_OF_BOUNDS:new de.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${C}`,B)}const be=/[^+/0-9A-Za-z-_]/g;function we(B){if(B=B.split("=")[0],B=B.trim().replace(be,""),B.length<2)return"";for(;B.length%4!==0;)B=B+"=";return B}function xe(B,C){C=C||1/0;let j;const Z=B.length;let fe=null;const ve=[];for(let Oe=0;Oe<Z;++Oe){if(j=B.charCodeAt(Oe),j>55295&&j<57344){if(!fe){if(j>56319){(C-=3)>-1&&ve.push(239,191,189);continue}else if(Oe+1===Z){(C-=3)>-1&&ve.push(239,191,189);continue}fe=j;continue}if(j<56320){(C-=3)>-1&&ve.push(239,191,189),fe=j;continue}j=(fe-55296<<10|j-56320)+65536}else fe&&(C-=3)>-1&&ve.push(239,191,189);if(fe=null,j<128){if((C-=1)<0)break;ve.push(j)}else if(j<2048){if((C-=2)<0)break;ve.push(j>>6|192,j&63|128)}else if(j<65536){if((C-=3)<0)break;ve.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((C-=4)<0)break;ve.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return ve}function U(B){const C=[];for(let j=0;j<B.length;++j)C.push(B.charCodeAt(j)&255);return C}function I(B,C){let j,Z,fe;const ve=[];for(let Oe=0;Oe<B.length&&!((C-=2)<0);++Oe)j=B.charCodeAt(Oe),Z=j>>8,fe=j%256,ve.push(fe),ve.push(Z);return ve}function k(B){return t.toByteArray(we(B))}function W(B,C,j,Z){let fe;for(fe=0;fe<Z&&!(fe+j>=C.length||fe>=B.length);++fe)C[fe+j]=B[fe];return fe}function ie(B,C){return B instanceof C||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===C.name}function oe(B){return B!==B}const me=(function(){const B="0123456789abcdef",C=new Array(256);for(let j=0;j<16;++j){const Z=j*16;for(let fe=0;fe<16;++fe)C[Z+fe]=B[j]+B[fe]}return C})();function Ne(B){return typeof BigInt>"u"?Xe:B}function Xe(){throw new Error("BigInt not supported")}})(Zm)),Zm}/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var WI;function DJ(){return WI||(WI=1,(function(e,t){var r=MJ(),n=r.Buffer;function i(a,o){for(var u in a)o[u]=a[u]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s);function s(a,o,u){return n(a,o,u)}s.prototype=Object.create(n.prototype),i(n,s),s.from=function(a,o,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,o,u)},s.alloc=function(a,o,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return o!==void 0?typeof u=="string"?c.fill(o,u):c.fill(o):c.fill(0),c},s.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},s.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}})(Mf,Mf.exports)),Mf.exports}var Qm,JI;function qJ(){if(JI)return Qm;JI=1;var e={}.toString;return Qm=Array.isArray||function(t){return e.call(t)=="[object Array]"},Qm}var eg,KI;function Dc(){return KI||(KI=1,eg=TypeError),eg}var tg,HI;function WL(){return HI||(HI=1,tg=Object),tg}var rg,GI;function $J(){return GI||(GI=1,rg=Error),rg}var ng,YI;function FJ(){return YI||(YI=1,ng=EvalError),ng}var ig,XI;function BJ(){return XI||(XI=1,ig=RangeError),ig}var sg,ZI;function LJ(){return ZI||(ZI=1,sg=ReferenceError),sg}var ag,QI;function JL(){return QI||(QI=1,ag=SyntaxError),ag}var og,eT;function UJ(){return eT||(eT=1,og=URIError),og}var ug,tT;function VJ(){return tT||(tT=1,ug=Math.abs),ug}var cg,rT;function zJ(){return rT||(rT=1,cg=Math.floor),cg}var lg,nT;function WJ(){return nT||(nT=1,lg=Math.max),lg}var fg,iT;function JJ(){return iT||(iT=1,fg=Math.min),fg}var pg,sT;function KJ(){return sT||(sT=1,pg=Math.pow),pg}var dg,aT;function HJ(){return aT||(aT=1,dg=Math.round),dg}var hg,oT;function GJ(){return oT||(oT=1,hg=Number.isNaN||function(t){return t!==t}),hg}var mg,uT;function YJ(){if(uT)return mg;uT=1;var e=GJ();return mg=function(r){return e(r)||r===0?r:r<0?-1:1},mg}var gg,cT;function XJ(){return cT||(cT=1,gg=Object.getOwnPropertyDescriptor),gg}var yg,lT;function qc(){if(lT)return yg;lT=1;var e=XJ();if(e)try{e([],"length")}catch{e=null}return yg=e,yg}var vg,fT;function Wd(){if(fT)return vg;fT=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return vg=e,vg}var bg,pT;function KL(){return pT||(pT=1,bg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),bg}var _g,dT;function ZJ(){if(dT)return _g;dT=1;var e=typeof Symbol<"u"&&Symbol,t=KL();return _g=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},_g}var Eg,hT;function HL(){return hT||(hT=1,Eg=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Eg}var Sg,mT;function GL(){if(mT)return Sg;mT=1;var e=WL();return Sg=e.getPrototypeOf||null,Sg}var wg,gT;function QJ(){if(gT)return wg;gT=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(u,c){for(var l=[],f=0;f<u.length;f+=1)l[f]=u[f];for(var h=0;h<c.length;h+=1)l[h+u.length]=c[h];return l},s=function(u,c){for(var l=[],f=c,h=0;f<u.length;f+=1,h+=1)l[h]=u[f];return l},a=function(o,u){for(var c="",l=0;l<o.length;l+=1)c+=o[l],l+1<o.length&&(c+=u);return c};return wg=function(u){var c=this;if(typeof c!="function"||t.apply(c)!==n)throw new TypeError(e+c);for(var l=s(arguments,1),f,h=function(){if(this instanceof f){var _=c.apply(this,i(l,arguments));return Object(_)===_?_:this}return c.apply(u,i(l,arguments))},d=r(0,c.length-l.length),g=[],y=0;y<d;y++)g[y]="$"+y;if(f=Function("binder","return function ("+a(g,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var v=function(){};v.prototype=c.prototype,f.prototype=new v,v.prototype=null}return f},wg}var xg,yT;function $c(){if(yT)return xg;yT=1;var e=QJ();return xg=Function.prototype.bind||e,xg}var Ag,vT;function yO(){return vT||(vT=1,Ag=Function.prototype.call),Ag}var Og,bT;function vO(){return bT||(bT=1,Og=Function.prototype.apply),Og}var Cg,_T;function eK(){return _T||(_T=1,Cg=typeof Reflect<"u"&&Reflect&&Reflect.apply),Cg}var Rg,ET;function YL(){if(ET)return Rg;ET=1;var e=$c(),t=vO(),r=yO(),n=eK();return Rg=n||e.call(r,t),Rg}var Ig,ST;function bO(){if(ST)return Ig;ST=1;var e=$c(),t=Dc(),r=yO(),n=YL();return Ig=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},Ig}var Tg,wT;function tK(){if(wT)return Tg;wT=1;var e=bO(),t=qc(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return Tg=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(o){return s(o==null?o:i(o))}:!1,Tg}var jg,xT;function XL(){if(xT)return jg;xT=1;var e=HL(),t=GL(),r=tK();return jg=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,jg}var Pg,AT;function rK(){if(AT)return Pg;AT=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=$c();return Pg=r.call(e,t),Pg}var kg,OT;function ZL(){if(OT)return kg;OT=1;var e,t=WL(),r=$J(),n=FJ(),i=BJ(),s=LJ(),a=JL(),o=Dc(),u=UJ(),c=VJ(),l=zJ(),f=WJ(),h=JJ(),d=KJ(),g=HJ(),y=YJ(),v=Function,_=function(ge){try{return v('"use strict"; return ('+ge+").constructor;")()}catch{}},b=qc(),E=Wd(),w=function(){throw new o},S=b?(function(){try{return arguments.callee,w}catch{try{return b(arguments,"callee").get}catch{return w}}})():w,A=ZJ()(),R=XL(),T=GL(),O=HL(),D=vO(),N=yO(),$={},M=typeof Uint8Array>"u"||!R?e:R(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&R?R([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&R?R(R([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!R?e:R(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!R?e:R(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&R?R(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":S,"%TypedArray%":M,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":D,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":T,"%Math.abs%":c,"%Math.floor%":l,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":d,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":O};if(R)try{null.error}catch(ge){var ee=R(R(ge));X["%Error.prototype%"]=ee}var J=function ge(Ce){var Pe;if(Ce==="%AsyncFunction%")Pe=_("async function () {}");else if(Ce==="%GeneratorFunction%")Pe=_("function* () {}");else if(Ce==="%AsyncGeneratorFunction%")Pe=_("async function* () {}");else if(Ce==="%AsyncGenerator%"){var pe=ge("%AsyncGeneratorFunction%");pe&&(Pe=pe.prototype)}else if(Ce==="%AsyncIteratorPrototype%"){var Te=ge("%AsyncGenerator%");Te&&R&&(Pe=R(Te.prototype))}return X[Ce]=Pe,Pe},Q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},te=$c(),re=rK(),L=te.call(N,Array.prototype.concat),K=te.call(D,Array.prototype.splice),ne=te.call(N,String.prototype.replace),ce=te.call(N,String.prototype.slice),ue=te.call(N,RegExp.prototype.exec),se=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,z=function(Ce){var Pe=ce(Ce,0,1),pe=ce(Ce,-1);if(Pe==="%"&&pe!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(pe==="%"&&Pe!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Te=[];return ne(Ce,se,function(Le,be,we,xe){Te[Te.length]=we?ne(xe,V,"$1"):be||Le}),Te},de=function(Ce,Pe){var pe=Ce,Te;if(re(Q,pe)&&(Te=Q[pe],pe="%"+Te[0]+"%"),re(X,pe)){var Le=X[pe];if(Le===$&&(Le=J(pe)),typeof Le>"u"&&!Pe)throw new o("intrinsic "+Ce+" exists, but is not available. Please file an issue!");return{alias:Te,name:pe,value:Le}}throw new a("intrinsic "+Ce+" does not exist!")};return kg=function(Ce,Pe){if(typeof Ce!="string"||Ce.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Pe!="boolean")throw new o('"allowMissing" argument must be a boolean');if(ue(/^%?[^%]*%?$/,Ce)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var pe=z(Ce),Te=pe.length>0?pe[0]:"",Le=de("%"+Te+"%",Pe),be=Le.name,we=Le.value,xe=!1,U=Le.alias;U&&(Te=U[0],K(pe,L([0,1],U)));for(var I=1,k=!0;I<pe.length;I+=1){var W=pe[I],ie=ce(W,0,1),oe=ce(W,-1);if((ie==='"'||ie==="'"||ie==="`"||oe==='"'||oe==="'"||oe==="`")&&ie!==oe)throw new a("property names with quotes must have matching quotes");if((W==="constructor"||!k)&&(xe=!0),Te+="."+W,be="%"+Te+"%",re(X,be))we=X[be];else if(we!=null){if(!(W in we)){if(!Pe)throw new o("base intrinsic for "+Ce+" exists, but the property is not available.");return}if(b&&I+1>=pe.length){var me=b(we,W);k=!!me,k&&"get"in me&&!("originalValue"in me.get)?we=me.get:we=we[W]}else k=re(we,W),we=we[W];k&&!xe&&(X[be]=we)}}return we},kg}var Ng,CT;function QL(){if(CT)return Ng;CT=1;var e=ZL(),t=bO(),r=t([e("%String.prototype.indexOf%")]);return Ng=function(i,s){var a=e(i,!!s);return typeof a=="function"&&r(i,".prototype.")>-1?t([a]):a},Ng}var Mg,RT;function nK(){if(RT)return Mg;RT=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(b){b!==n&&(t=null)}else t=null;var i=/^\s*class\b/,s=function(E){try{var w=e.call(E);return i.test(w)}catch{return!1}},a=function(E){try{return s(E)?!1:(e.call(E),!0)}catch{return!1}},o=Object.prototype.toString,u="[object Object]",c="[object Function]",l="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",d="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),v=function(){return!1};if(typeof document=="object"){var _=document.all;o.call(_)===o.call(document.all)&&(v=function(E){if((y||!E)&&(typeof E>"u"||typeof E=="object"))try{var w=o.call(E);return(w===f||w===h||w===d||w===u)&&E("")==null}catch{}return!1})}return Mg=t?function(E){if(v(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;try{t(E,null,r)}catch(w){if(w!==n)return!1}return!s(E)&&a(E)}:function(E){if(v(E))return!0;if(!E||typeof E!="function"&&typeof E!="object")return!1;if(g)return a(E);if(s(E))return!1;var w=o.call(E);return w!==c&&w!==l&&!/^\[object HTML/.test(w)?!1:a(E)},Mg}var Dg,IT;function iK(){if(IT)return Dg;IT=1;var e=nK(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,c,l){for(var f=0,h=u.length;f<h;f++)r.call(u,f)&&(l==null?c(u[f],f,u):c.call(l,u[f],f,u))},i=function(u,c,l){for(var f=0,h=u.length;f<h;f++)l==null?c(u.charAt(f),f,u):c.call(l,u.charAt(f),f,u)},s=function(u,c,l){for(var f in u)r.call(u,f)&&(l==null?c(u[f],f,u):c.call(l,u[f],f,u))};function a(o){return t.call(o)==="[object Array]"}return Dg=function(u,c,l){if(!e(c))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=l),a(u)?n(u,c,f):typeof u=="string"?i(u,c,f):s(u,c,f)},Dg}var qg,TT;function sK(){return TT||(TT=1,qg=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),qg}var $g,jT;function aK(){if(jT)return $g;jT=1;var e=sK(),t=typeof globalThis>"u"?Ve.commonjsGlobal:globalThis;return $g=function(){for(var n=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(n[n.length]=e[i]);return n},$g}var Fg={exports:{}},Bg,PT;function oK(){if(PT)return Bg;PT=1;var e=Wd(),t=JL(),r=Dc(),n=qc();return Bg=function(s,a,o){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,h=!!n&&n(s,a);if(e)e(s,a,{configurable:l===null&&h?h.configurable:!l,enumerable:u===null&&h?h.enumerable:!u,value:o,writable:c===null&&h?h.writable:!c});else if(f||!u&&!c&&!l)s[a]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Bg}var Lg,kT;function uK(){if(kT)return Lg;kT=1;var e=Wd(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Lg=t,Lg}var Ug,NT;function cK(){if(NT)return Ug;NT=1;var e=ZL(),t=oK(),r=uK()(),n=qc(),i=Dc(),s=e("%Math.floor%");return Ug=function(o,u){if(typeof o!="function")throw new i("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||s(u)!==u)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],l=!0,f=!0;if("length"in o&&n){var h=n(o,"length");h&&!h.configurable&&(l=!1),h&&!h.writable&&(f=!1)}return(l||f||!c)&&(r?t(o,"length",u,!0,!0):t(o,"length",u)),o},Ug}var Vg,MT;function lK(){if(MT)return Vg;MT=1;var e=$c(),t=vO(),r=YL();return Vg=function(){return r(e,t,arguments)},Vg}var DT;function fK(){return DT||(DT=1,(function(e){var t=cK(),r=Wd(),n=bO(),i=lK();e.exports=function(a){var o=n(arguments),u=a.length-(arguments.length-1);return t(o,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i})(Fg)),Fg.exports}var zg,qT;function pK(){if(qT)return zg;qT=1;var e=KL();return zg=function(){return e()&&!!Symbol.toStringTag},zg}var Wg,$T;function dK(){if($T)return Wg;$T=1;var e=iK(),t=aK(),r=fK(),n=QL(),i=qc(),s=XL(),a=n("Object.prototype.toString"),o=pK()(),u=typeof globalThis>"u"?Ve.commonjsGlobal:globalThis,c=t(),l=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(v,_){for(var b=0;b<v.length;b+=1)if(v[b]===_)return b;return-1},h={__proto__:null};o&&i&&s?e(c,function(y){var v=new u[y];if(Symbol.toStringTag in v&&s){var _=s(v),b=i(_,Symbol.toStringTag);if(!b&&_){var E=s(_);b=i(E,Symbol.toStringTag)}h["$"+y]=r(b.get)}}):e(c,function(y){var v=new u[y],_=v.slice||v.set;_&&(h["$"+y]=r(_))});var d=function(v){var _=!1;return e(h,function(b,E){if(!_)try{"$"+b(v)===E&&(_=l(E,1))}catch{}}),_},g=function(v){var _=!1;return e(h,function(b,E){if(!_)try{b(v),_=l(E,1)}catch{}}),_};return Wg=function(v){if(!v||typeof v!="object")return!1;if(!o){var _=l(a(v),8,-1);return f(c,_)>-1?_:_!=="Object"?!1:g(v)}return i?d(v):null},Wg}var Jg,FT;function hK(){if(FT)return Jg;FT=1;var e=dK();return Jg=function(r){return!!e(r)},Jg}var Kg,BT;function mK(){if(BT)return Kg;BT=1;var e=Dc(),t=QL(),r=t("TypedArray.prototype.buffer",!0),n=hK();return Kg=r||function(s){if(!n(s))throw new e("Not a Typed Array");return s.buffer},Kg}var Hg,LT;function gK(){if(LT)return Hg;LT=1;var e=DJ().Buffer,t=qJ(),r=mK(),n=ArrayBuffer.isView||function(u){try{return r(u),!0}catch{return!1}},i=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return Hg=function(u,c){if(u instanceof e)return u;if(typeof u=="string")return e.from(u,c);if(s&&n(u)){if(u.byteLength===0)return e.alloc(0);if(a){var l=e.from(u.buffer,u.byteOffset,u.byteLength);if(l.byteLength===u.byteLength)return l}var f=u instanceof Uint8Array?u:new Uint8Array(u.buffer,u.byteOffset,u.byteLength),h=e.from(f);if(h.length===u.byteLength)return h}if(i&&u instanceof Uint8Array)return e.from(u);var d=t(u);if(d)for(var g=0;g<u.length;g+=1){var y=u[g];if(typeof y!="number"||y<0||y>255||~~y!==y)throw new RangeError("Array items must be numbers in the range 0-255.")}if(d||e.isBuffer(u)&&u.constructor&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u))return e.from(u);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Hg}var e6=gK();const yK=Ve.getDefaultExportFromCjs(e6),vK=mO({__proto__:null,default:yK},[e6]);var t6=zL();const bK=Ve.getDefaultExportFromCjs(t6),_K=mO({__proto__:null,default:bK},[t6]);function an(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var EK=typeof Symbol=="function"&&Symbol.observable||"@@observable",UT=EK,VT=()=>Math.random().toString(36).substring(7).split("").join("."),SK={INIT:`@@redux/INIT${VT()}`,REPLACE:`@@redux/REPLACE${VT()}`},zT=SK;function wK(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function xK(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(CK(e))return"date";if(OK(e))return"error";const r=AK(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function AK(e){return typeof e.constructor=="function"?e.constructor.name:null}function OK(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function CK(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function js(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=xK(e)),t}function r6(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?an(2):`Expected the root reducer to be a function. Instead, received: '${js(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?an(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?an(1):`Expected the enhancer to be a function. Instead, received: '${js(r)}'`);return r(r6)(e,t)}let n=e,i=t,s=new Map,a=s,o=0,u=!1;function c(){a===s&&(a=new Map,s.forEach((v,_)=>{a.set(_,v)}))}function l(){if(u)throw new Error(process.env.NODE_ENV==="production"?an(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?an(4):`Expected the listener to be a function. Instead, received: '${js(v)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?an(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let _=!0;c();const b=o++;return a.set(b,v),function(){if(_){if(u)throw new Error(process.env.NODE_ENV==="production"?an(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");_=!1,c(),a.delete(b),s=null}}}function h(v){if(!wK(v))throw new Error(process.env.NODE_ENV==="production"?an(7):`Actions must be plain objects. Instead, the actual type was: '${js(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?an(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?an(17):`Action "type" property must be a string. Instead, the actual type was: '${js(v.type)}'. Value was: '${v.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?an(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,v)}finally{u=!1}return(s=a).forEach(b=>{b()}),v}function d(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?an(10):`Expected the nextReducer to be a function. Instead, received: '${js(v)}`);n=v,h({type:zT.REPLACE})}function g(){const v=f;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(process.env.NODE_ENV==="production"?an(11):`Expected the observer to be an object. Instead, received: '${js(_)}'`);function b(){const w=_;w.next&&w.next(l())}return b(),{unsubscribe:v(b)}},[UT](){return this}}}return h({type:zT.INIT}),{dispatch:h,subscribe:f,getState:l,replaceReducer:d,[UT]:g}}function WT(e,t){return function(...r){return t(e.apply(this,r))}}function RK(e,t){if(typeof e=="function")return WT(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?an(16):`bindActionCreators expected an object or a function, but instead received: '${js(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=WT(i,t))}return r}function n6(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function IK(...e){return t=>(r,n)=>{const i=t(r,n);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?an(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(u,...c)=>s(u,...c)},o=e.map(u=>u(a));return s=n6(...o)(i.dispatch),{...i,dispatch:s}}}var op={exports:{}},TK=op.exports,JT;function _O(){return JT||(JT=1,(function(e,t){(function(r,n){e.exports=n()})(TK,function(){var r=Array.prototype.slice;function n(m,x){x&&(m.prototype=Object.create(x.prototype)),m.prototype.constructor=m}function i(m){return u(m)?m:Te(m)}n(s,i);function s(m){return c(m)?m:Le(m)}n(a,i);function a(m){return l(m)?m:be(m)}n(o,i);function o(m){return u(m)&&!f(m)?m:we(m)}function u(m){return!!(m&&m[d])}function c(m){return!!(m&&m[g])}function l(m){return!!(m&&m[y])}function f(m){return c(m)||l(m)}function h(m){return!!(m&&m[v])}i.isIterable=u,i.isKeyed=c,i.isIndexed=l,i.isAssociative=f,i.isOrdered=h,i.Keyed=s,i.Indexed=a,i.Set=o;var d="@@__IMMUTABLE_ITERABLE__@@",g="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",v="@@__IMMUTABLE_ORDERED__@@",_="delete",b=5,E=1<<b,w=E-1,S={},A={value:!1},R={value:!1};function T(m){return m.value=!1,m}function O(m){m&&(m.value=!0)}function D(){}function N(m,x){x=x||0;for(var P=Math.max(0,m.length-x),q=new Array(P),F=0;F<P;F++)q[F]=m[F+x];return q}function $(m){return m.size===void 0&&(m.size=m.__iterate(X)),m.size}function M(m,x){if(typeof x!="number"){var P=x>>>0;if(""+P!==x||P===4294967295)return NaN;x=P}return x<0?$(m)+x:x}function X(){return!0}function ee(m,x,P){return(m===0||P!==void 0&&m<=-P)&&(x===void 0||P!==void 0&&x>=P)}function J(m,x){return te(m,x,0)}function Q(m,x){return te(m,x,x)}function te(m,x,P){return m===void 0?P:m<0?Math.max(0,x+m):x===void 0?m:Math.min(x,m)}var re=0,L=1,K=2,ne=typeof Symbol=="function"&&Symbol.iterator,ce="@@iterator",ue=ne||ce;function se(m){this.next=m}se.prototype.toString=function(){return"[Iterator]"},se.KEYS=re,se.VALUES=L,se.ENTRIES=K,se.prototype.inspect=se.prototype.toSource=function(){return this.toString()},se.prototype[ue]=function(){return this};function V(m,x,P,q){var F=m===0?x:m===1?P:[x,P];return q?q.value=F:q={value:F,done:!1},q}function z(){return{value:void 0,done:!0}}function de(m){return!!Pe(m)}function ge(m){return m&&typeof m.next=="function"}function Ce(m){var x=Pe(m);return x&&x.call(m)}function Pe(m){var x=m&&(ne&&m[ne]||m[ce]);if(typeof x=="function")return x}function pe(m){return m&&typeof m.length=="number"}n(Te,i);function Te(m){return m==null?me():u(m)?m.toSeq():B(m)}Te.of=function(){return Te(arguments)},Te.prototype.toSeq=function(){return this},Te.prototype.toString=function(){return this.__toString("Seq {","}")},Te.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Te.prototype.__iterate=function(m,x){return j(this,m,x,!0)},Te.prototype.__iterator=function(m,x){return Z(this,m,x,!0)},n(Le,Te);function Le(m){return m==null?me().toKeyedSeq():u(m)?c(m)?m.toSeq():m.fromEntrySeq():Ne(m)}Le.prototype.toKeyedSeq=function(){return this},n(be,Te);function be(m){return m==null?me():u(m)?c(m)?m.entrySeq():m.toIndexedSeq():Xe(m)}be.of=function(){return be(arguments)},be.prototype.toIndexedSeq=function(){return this},be.prototype.toString=function(){return this.__toString("Seq [","]")},be.prototype.__iterate=function(m,x){return j(this,m,x,!1)},be.prototype.__iterator=function(m,x){return Z(this,m,x,!1)},n(we,Te);function we(m){return(m==null?me():u(m)?c(m)?m.entrySeq():m:Xe(m)).toSetSeq()}we.of=function(){return we(arguments)},we.prototype.toSetSeq=function(){return this},Te.isSeq=ie,Te.Keyed=Le,Te.Set=we,Te.Indexed=be;var xe="@@__IMMUTABLE_SEQ__@@";Te.prototype[xe]=!0,n(U,be);function U(m){this._array=m,this.size=m.length}U.prototype.get=function(m,x){return this.has(m)?this._array[M(this,m)]:x},U.prototype.__iterate=function(m,x){for(var P=this._array,q=P.length-1,F=0;F<=q;F++)if(m(P[x?q-F:F],F,this)===!1)return F+1;return F},U.prototype.__iterator=function(m,x){var P=this._array,q=P.length-1,F=0;return new se(function(){return F>q?z():V(m,F,P[x?q-F++:F++])})},n(I,Le);function I(m){var x=Object.keys(m);this._object=m,this._keys=x,this.size=x.length}I.prototype.get=function(m,x){return x!==void 0&&!this.has(m)?x:this._object[m]},I.prototype.has=function(m){return this._object.hasOwnProperty(m)},I.prototype.__iterate=function(m,x){for(var P=this._object,q=this._keys,F=q.length-1,G=0;G<=F;G++){var ae=q[x?F-G:G];if(m(P[ae],ae,this)===!1)return G+1}return G},I.prototype.__iterator=function(m,x){var P=this._object,q=this._keys,F=q.length-1,G=0;return new se(function(){var ae=q[x?F-G:G];return G++>F?z():V(m,ae,P[ae])})},I.prototype[v]=!0,n(k,be);function k(m){this._iterable=m,this.size=m.length||m.size}k.prototype.__iterateUncached=function(m,x){if(x)return this.cacheResult().__iterate(m,x);var P=this._iterable,q=Ce(P),F=0;if(ge(q))for(var G;!(G=q.next()).done&&m(G.value,F++,this)!==!1;);return F},k.prototype.__iteratorUncached=function(m,x){if(x)return this.cacheResult().__iterator(m,x);var P=this._iterable,q=Ce(P);if(!ge(q))return new se(z);var F=0;return new se(function(){var G=q.next();return G.done?G:V(m,F++,G.value)})},n(W,be);function W(m){this._iterator=m,this._iteratorCache=[]}W.prototype.__iterateUncached=function(m,x){if(x)return this.cacheResult().__iterate(m,x);for(var P=this._iterator,q=this._iteratorCache,F=0;F<q.length;)if(m(q[F],F++,this)===!1)return F;for(var G;!(G=P.next()).done;){var ae=G.value;if(q[F]=ae,m(ae,F++,this)===!1)break}return F},W.prototype.__iteratorUncached=function(m,x){if(x)return this.cacheResult().__iterator(m,x);var P=this._iterator,q=this._iteratorCache,F=0;return new se(function(){if(F>=q.length){var G=P.next();if(G.done)return G;q[F]=G.value}return V(m,F,q[F++])})};function ie(m){return!!(m&&m[xe])}var oe;function me(){return oe||(oe=new U([]))}function Ne(m){var x=Array.isArray(m)?new U(m).fromEntrySeq():ge(m)?new W(m).fromEntrySeq():de(m)?new k(m).fromEntrySeq():typeof m=="object"?new I(m):void 0;if(!x)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+m);return x}function Xe(m){var x=C(m);if(!x)throw new TypeError("Expected Array or iterable object of values: "+m);return x}function B(m){var x=C(m)||typeof m=="object"&&new I(m);if(!x)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+m);return x}function C(m){return pe(m)?new U(m):ge(m)?new W(m):de(m)?new k(m):void 0}function j(m,x,P,q){var F=m._cache;if(F){for(var G=F.length-1,ae=0;ae<=G;ae++){var he=F[P?G-ae:ae];if(x(he[1],q?he[0]:ae,m)===!1)return ae+1}return ae}return m.__iterateUncached(x,P)}function Z(m,x,P,q){var F=m._cache;if(F){var G=F.length-1,ae=0;return new se(function(){var he=F[P?G-ae:ae];return ae++>G?z():V(x,q?he[0]:ae-1,he[1])})}return m.__iteratorUncached(x,P)}function fe(m,x){return x?ve(x,m,"",{"":m}):Oe(m)}function ve(m,x,P,q){return Array.isArray(x)?m.call(q,P,be(x).map(function(F,G){return ve(m,F,G,x)})):rt(x)?m.call(q,P,Le(x).map(function(F,G){return ve(m,F,G,x)})):x}function Oe(m){return Array.isArray(m)?be(m).map(Oe).toList():rt(m)?Le(m).map(Oe).toMap():m}function rt(m){return m&&(m.constructor===Object||m.constructor===void 0)}function at(m,x){if(m===x||m!==m&&x!==x)return!0;if(!m||!x)return!1;if(typeof m.valueOf=="function"&&typeof x.valueOf=="function"){if(m=m.valueOf(),x=x.valueOf(),m===x||m!==m&&x!==x)return!0;if(!m||!x)return!1}return!!(typeof m.equals=="function"&&typeof x.equals=="function"&&m.equals(x))}function Ut(m,x){if(m===x)return!0;if(!u(x)||m.size!==void 0&&x.size!==void 0&&m.size!==x.size||m.__hash!==void 0&&x.__hash!==void 0&&m.__hash!==x.__hash||c(m)!==c(x)||l(m)!==l(x)||h(m)!==h(x))return!1;if(m.size===0&&x.size===0)return!0;var P=!f(m);if(h(m)){var q=m.entries();return x.every(function(Se,Ae){var je=q.next().value;return je&&at(je[1],Se)&&(P||at(je[0],Ae))})&&q.next().done}var F=!1;if(m.size===void 0)if(x.size===void 0)typeof m.cacheResult=="function"&&m.cacheResult();else{F=!0;var G=m;m=x,x=G}var ae=!0,he=x.__iterate(function(Se,Ae){if(P?!m.has(Se):F?!at(Se,m.get(Ae,S)):!at(m.get(Ae,S),Se))return ae=!1,!1});return ae&&m.size===he}n(pt,be);function pt(m,x){if(!(this instanceof pt))return new pt(m,x);if(this._value=m,this.size=x===void 0?1/0:Math.max(0,x),this.size===0){if(le)return le;le=this}}pt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},pt.prototype.get=function(m,x){return this.has(m)?this._value:x},pt.prototype.includes=function(m){return at(this._value,m)},pt.prototype.slice=function(m,x){var P=this.size;return ee(m,x,P)?this:new pt(this._value,Q(x,P)-J(m,P))},pt.prototype.reverse=function(){return this},pt.prototype.indexOf=function(m){return at(this._value,m)?0:-1},pt.prototype.lastIndexOf=function(m){return at(this._value,m)?this.size:-1},pt.prototype.__iterate=function(m,x){for(var P=0;P<this.size;P++)if(m(this._value,P,this)===!1)return P+1;return P},pt.prototype.__iterator=function(m,x){var P=this,q=0;return new se(function(){return q<P.size?V(m,q++,P._value):z()})},pt.prototype.equals=function(m){return m instanceof pt?at(this._value,m._value):Ut(m)};var le;function Ie(m,x){if(!m)throw new Error(x)}n(Me,be);function Me(m,x,P){if(!(this instanceof Me))return new Me(m,x,P);if(Ie(P!==0,"Cannot step a Range by 0"),m=m||0,x===void 0&&(x=1/0),P=P===void 0?1:Math.abs(P),x<m&&(P=-P),this._start=m,this._end=x,this._step=P,this.size=Math.max(0,Math.ceil((x-m)/P-1)+1),this.size===0){if(et)return et;et=this}}Me.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},Me.prototype.get=function(m,x){return this.has(m)?this._start+M(this,m)*this._step:x},Me.prototype.includes=function(m){var x=(m-this._start)/this._step;return x>=0&&x<this.size&&x===Math.floor(x)},Me.prototype.slice=function(m,x){return ee(m,x,this.size)?this:(m=J(m,this.size),x=Q(x,this.size),x<=m?new Me(0,0):new Me(this.get(m,this._end),this.get(x,this._end),this._step))},Me.prototype.indexOf=function(m){var x=m-this._start;if(x%this._step===0){var P=x/this._step;if(P>=0&&P<this.size)return P}return-1},Me.prototype.lastIndexOf=function(m){return this.indexOf(m)},Me.prototype.__iterate=function(m,x){for(var P=this.size-1,q=this._step,F=x?this._start+P*q:this._start,G=0;G<=P;G++){if(m(F,G,this)===!1)return G+1;F+=x?-q:q}return G},Me.prototype.__iterator=function(m,x){var P=this.size-1,q=this._step,F=x?this._start+P*q:this._start,G=0;return new se(function(){var ae=F;return F+=x?-q:q,G>P?z():V(m,G++,ae)})},Me.prototype.equals=function(m){return m instanceof Me?this._start===m._start&&this._end===m._end&&this._step===m._step:Ut(this,m)};var et;n(yt,i);function yt(){throw TypeError("Abstract")}n(St,yt);function St(){}n(Yt,yt);function Yt(){}n(Ue,yt);function Ue(){}yt.Keyed=St,yt.Indexed=Yt,yt.Set=Ue;var Ge=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(x,P){x=x|0,P=P|0;var q=x&65535,F=P&65535;return q*F+((x>>>16)*F+q*(P>>>16)<<16>>>0)|0};function ot(m){return m>>>1&1073741824|m&3221225471}function tt(m){if(m===!1||m===null||m===void 0||typeof m.valueOf=="function"&&(m=m.valueOf(),m===!1||m===null||m===void 0))return 0;if(m===!0)return 1;var x=typeof m;if(x==="number"){if(m!==m||m===1/0)return 0;var P=m|0;for(P!==m&&(P^=m*4294967295);m>4294967295;)m/=4294967295,P^=m;return ot(P)}if(x==="string")return m.length>Nm?ir(m):Un(m);if(typeof m.hashCode=="function")return m.hashCode();if(x==="object")return _u(m);if(typeof m.toString=="function")return Un(m.toString());throw new Error("Value type "+x+" cannot be hashed.")}function ir(m){var x=ca[m];return x===void 0&&(x=Un(m),Au===xu&&(Au=0,ca={}),Au++,ca[m]=x),x}function Un(m){for(var x=0,P=0;P<m.length;P++)x=31*x+m.charCodeAt(P)|0;return ot(x)}function _u(m){var x;if(Eu&&(x=Su.get(m),x!==void 0)||(x=m[Vn],x!==void 0)||!gf&&(x=m.propertyIsEnumerable&&m.propertyIsEnumerable[Vn],x!==void 0||(x=km(m),x!==void 0)))return x;if(x=++wu,wu&1073741824&&(wu=0),Eu)Su.set(m,x);else{if(to!==void 0&&to(m)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(gf)Object.defineProperty(m,Vn,{enumerable:!1,configurable:!1,writable:!1,value:x});else if(m.propertyIsEnumerable!==void 0&&m.propertyIsEnumerable===m.constructor.prototype.propertyIsEnumerable)m.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},m.propertyIsEnumerable[Vn]=x;else if(m.nodeType!==void 0)m[Vn]=x;else throw new Error("Unable to set a non-enumerable property on object.")}return x}var to=Object.isExtensible,gf=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})();function km(m){if(m&&m.nodeType>0)switch(m.nodeType){case 1:return m.uniqueID;case 9:return m.documentElement&&m.documentElement.uniqueID}}var Eu=typeof WeakMap=="function",Su;Eu&&(Su=new WeakMap);var wu=0,Vn="__immutablehash__";typeof Symbol=="function"&&(Vn=Symbol(Vn));var Nm=16,xu=255,Au=0,ca={};function Hr(m){Ie(m!==1/0,"Cannot perform this action with an infinite size.")}n(At,St);function At(m){return m==null?ze():Ou(m)&&!h(m)?m:ze().withMutations(function(x){var P=s(m);Hr(P.size),P.forEach(function(q,F){return x.set(F,q)})})}At.of=function(){var m=r.call(arguments,0);return ze().withMutations(function(x){for(var P=0;P<m.length;P+=2){if(P+1>=m.length)throw new Error("Missing value for key: "+m[P]);x.set(m[P],m[P+1])}})},At.prototype.toString=function(){return this.__toString("Map {","}")},At.prototype.get=function(m,x){return this._root?this._root.get(0,void 0,m,x):x},At.prototype.set=function(m,x){return wt(this,m,x)},At.prototype.setIn=function(m,x){return this.updateIn(m,S,function(){return x})},At.prototype.remove=function(m){return wt(this,m,S)},At.prototype.deleteIn=function(m){return this.updateIn(m,function(){return S})},At.prototype.update=function(m,x,P){return arguments.length===1?m(this):this.updateIn([m],x,P)},At.prototype.updateIn=function(m,x,P){P||(P=x,x=void 0);var q=Sf(this,mI(m),x,P);return q===S?void 0:q},At.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ze()},At.prototype.merge=function(){return On(this,void 0,arguments)},At.prototype.mergeWith=function(m){var x=r.call(arguments,1);return On(this,m,x)},At.prototype.mergeIn=function(m){var x=r.call(arguments,1);return this.updateIn(m,ze(),function(P){return typeof P.merge=="function"?P.merge.apply(P,x):x[x.length-1]})},At.prototype.mergeDeep=function(){return On(this,bf,arguments)},At.prototype.mergeDeepWith=function(m){var x=r.call(arguments,1);return On(this,_f(m),x)},At.prototype.mergeDeepIn=function(m){var x=r.call(arguments,1);return this.updateIn(m,ze(),function(P){return typeof P.mergeDeep=="function"?P.mergeDeep.apply(P,x):x[x.length-1]})},At.prototype.sort=function(m){return gr(so(this,m))},At.prototype.sortBy=function(m,x){return gr(so(this,x,m))},At.prototype.withMutations=function(m){var x=this.asMutable();return m(x),x.wasAltered()?x.__ensureOwner(this.__ownerID):this},At.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new D)},At.prototype.asImmutable=function(){return this.__ensureOwner()},At.prototype.wasAltered=function(){return this.__altered},At.prototype.__iterator=function(m,x){return new Cu(this,m,x)},At.prototype.__iterate=function(m,x){var P=this,q=0;return this._root&&this._root.iterate(function(F){return q++,m(F[1],F[0],P)},x),q},At.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Ru(this.size,this._root,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)};function Ou(m){return!!(m&&m[yf])}At.isMap=Ou;var yf="@@__IMMUTABLE_MAP__@@",_t=At.prototype;_t[yf]=!0,_t[_]=_t.remove,_t.removeIn=_t.deleteIn;function la(m,x){this.ownerID=m,this.entries=x}la.prototype.get=function(m,x,P,q){for(var F=this.entries,G=0,ae=F.length;G<ae;G++)if(at(P,F[G][0]))return F[G][1];return q},la.prototype.update=function(m,x,P,q,F,G,ae){for(var he=F===S,Se=this.entries,Ae=0,je=Se.length;Ae<je&&!at(q,Se[Ae][0]);Ae++);var We=Ae<je;if(We?Se[Ae][1]===F:he)return this;if(O(ae),(he||!We)&&O(G),!(he&&Se.length===1)){if(!We&&!he&&Se.length>=Tu)return zn(m,Se,q,F);var He=m&&m===this.ownerID,lt=He?Se:N(Se);return We?he?Ae===je-1?lt.pop():lt[Ae]=lt.pop():lt[Ae]=[q,F]:lt.push([q,F]),He?(this.entries=lt,this):new la(m,lt)}};function Gr(m,x,P){this.ownerID=m,this.bitmap=x,this.nodes=P}Gr.prototype.get=function(m,x,P,q){x===void 0&&(x=tt(P));var F=1<<((m===0?x:x>>>m)&w),G=this.bitmap;return(G&F)===0?q:this.nodes[fa(G&F-1)].get(m+b,x,P,q)},Gr.prototype.update=function(m,x,P,q,F,G,ae){P===void 0&&(P=tt(q));var he=(x===0?P:P>>>x)&w,Se=1<<he,Ae=this.bitmap,je=(Ae&Se)!==0;if(!je&&F===S)return this;var We=fa(Ae&Se-1),He=this.nodes,lt=je?He[We]:void 0,Et=qt(lt,m,x+b,P,q,F,G,ae);if(Et===lt)return this;if(!je&&Et&&He.length>=vt)return Jn(m,He,Ae,he,Et);if(je&&!Et&&He.length===2&&mr(He[We^1]))return He[We^1];if(je&&Et&&He.length===1&&mr(Et))return Et;var ar=m&&m===this.ownerID,mi=je?Et?Ae:Ae^Se:Ae|Se,Di=je?Et?Iu(He,We,Et,ar):Mm(He,We,ar):Cs(He,We,Et,ar);return ar?(this.bitmap=mi,this.nodes=Di,this):new Gr(m,mi,Di)};function As(m,x,P){this.ownerID=m,this.count=x,this.nodes=P}As.prototype.get=function(m,x,P,q){x===void 0&&(x=tt(P));var F=(m===0?x:x>>>m)&w,G=this.nodes[F];return G?G.get(m+b,x,P,q):q},As.prototype.update=function(m,x,P,q,F,G,ae){P===void 0&&(P=tt(q));var he=(x===0?P:P>>>x)&w,Se=F===S,Ae=this.nodes,je=Ae[he];if(Se&&!je)return this;var We=qt(je,m,x+b,P,q,F,G,ae);if(We===je)return this;var He=this.count;if(!je)He++;else if(!We&&(He--,He<wf))return Wn(m,Ae,He,he);var lt=m&&m===this.ownerID,Et=Iu(Ae,he,We,lt);return lt?(this.count=He,this.nodes=Et,this):new As(m,He,Et)};function is(m,x,P){this.ownerID=m,this.keyHash=x,this.entries=P}is.prototype.get=function(m,x,P,q){for(var F=this.entries,G=0,ae=F.length;G<ae;G++)if(at(P,F[G][0]))return F[G][1];return q},is.prototype.update=function(m,x,P,q,F,G,ae){P===void 0&&(P=tt(q));var he=F===S;if(P!==this.keyHash)return he?this:(O(ae),O(G),hi(this,m,x,P,[q,F]));for(var Se=this.entries,Ae=0,je=Se.length;Ae<je&&!at(q,Se[Ae][0]);Ae++);var We=Ae<je;if(We?Se[Ae][1]===F:he)return this;if(O(ae),(he||!We)&&O(G),he&&je===2)return new di(m,this.keyHash,Se[Ae^1]);var He=m&&m===this.ownerID,lt=He?Se:N(Se);return We?he?Ae===je-1?lt.pop():lt[Ae]=lt.pop():lt[Ae]=[q,F]:lt.push([q,F]),He?(this.entries=lt,this):new is(m,this.keyHash,lt)};function di(m,x,P){this.ownerID=m,this.keyHash=x,this.entry=P}di.prototype.get=function(m,x,P,q){return at(P,this.entry[0])?this.entry[1]:q},di.prototype.update=function(m,x,P,q,F,G,ae){var he=F===S,Se=at(q,this.entry[0]);if(Se?F===this.entry[1]:he)return this;if(O(ae),he){O(G);return}return Se?m&&m===this.ownerID?(this.entry[1]=F,this):new di(m,this.keyHash,[q,F]):(O(G),hi(this,m,x,tt(q),[q,F]))},la.prototype.iterate=is.prototype.iterate=function(m,x){for(var P=this.entries,q=0,F=P.length-1;q<=F;q++)if(m(P[x?F-q:q])===!1)return!1},Gr.prototype.iterate=As.prototype.iterate=function(m,x){for(var P=this.nodes,q=0,F=P.length-1;q<=F;q++){var G=P[x?F-q:q];if(G&&G.iterate(m,x)===!1)return!1}},di.prototype.iterate=function(m,x){return m(this.entry)},n(Cu,se);function Cu(m,x,P){this._type=x,this._reverse=P,this._stack=m._root&&vf(m._root)}Cu.prototype.next=function(){for(var m=this._type,x=this._stack;x;){var P=x.node,q=x.index++,F;if(P.entry){if(q===0)return Os(m,P.entry)}else if(P.entries){if(F=P.entries.length-1,q<=F)return Os(m,P.entries[this._reverse?F-q:q])}else if(F=P.nodes.length-1,q<=F){var G=P.nodes[this._reverse?F-q:q];if(G){if(G.entry)return Os(m,G.entry);x=this._stack=vf(G,x)}continue}x=this._stack=this._stack.__prev}return z()};function Os(m,x){return V(m,x[0],x[1])}function vf(m,x){return{node:m,index:0,__prev:x}}function Ru(m,x,P,q){var F=Object.create(_t);return F.size=m,F._root=x,F.__ownerID=P,F.__hash=q,F.__altered=!1,F}var ke;function ze(){return ke||(ke=Ru(0))}function wt(m,x,P){var q,F;if(m._root){var G=T(A),ae=T(R);if(q=qt(m._root,m.__ownerID,0,void 0,x,P,G,ae),!ae.value)return m;F=m.size+(G.value?P===S?-1:1:0)}else{if(P===S)return m;F=1,q=new la(m.__ownerID,[[x,P]])}return m.__ownerID?(m.size=F,m._root=q,m.__hash=void 0,m.__altered=!0,m):q?Ru(F,q):ze()}function qt(m,x,P,q,F,G,ae,he){return m?m.update(x,P,q,F,G,ae,he):G===S?m:(O(he),O(ae),new di(x,q,[F,G]))}function mr(m){return m.constructor===di||m.constructor===is}function hi(m,x,P,q,F){if(m.keyHash===q)return new is(x,q,[m.entry,F]);var G=(P===0?m.keyHash:m.keyHash>>>P)&w,ae=(P===0?q:q>>>P)&w,he,Se=G===ae?[hi(m,x,P+b,q,F)]:(he=new di(x,q,F),G<ae?[m,he]:[he,m]);return new Gr(x,1<<G|1<<ae,Se)}function zn(m,x,P,q){m||(m=new D);for(var F=new di(m,tt(P),[P,q]),G=0;G<x.length;G++){var ae=x[G];F=F.update(m,0,void 0,ae[0],ae[1])}return F}function Wn(m,x,P,q){for(var F=0,G=0,ae=new Array(P),he=0,Se=1,Ae=x.length;he<Ae;he++,Se<<=1){var je=x[he];je!==void 0&&he!==q&&(F|=Se,ae[G++]=je)}return new Gr(m,F,ae)}function Jn(m,x,P,q,F){for(var G=0,ae=new Array(E),he=0;P!==0;he++,P>>>=1)ae[he]=P&1?x[G++]:void 0;return ae[q]=F,new As(m,G+1,ae)}function On(m,x,P){for(var q=[],F=0;F<P.length;F++){var G=P[F],ae=s(G);u(G)||(ae=ae.map(function(he){return fe(he)})),q.push(ae)}return Ef(m,x,q)}function bf(m,x,P){return m&&m.mergeDeep&&u(x)?m.mergeDeep(x):at(m,x)?m:x}function _f(m){return function(x,P,q){if(x&&x.mergeDeepWith&&u(P))return x.mergeDeepWith(m,P);var F=m(x,P,q);return at(x,F)?x:F}}function Ef(m,x,P){return P=P.filter(function(q){return q.size!==0}),P.length===0?m:m.size===0&&!m.__ownerID&&P.length===1?m.constructor(P[0]):m.withMutations(function(q){for(var F=x?function(ae,he){q.update(he,S,function(Se){return Se===S?ae:x(Se,ae,he)})}:function(ae,he){q.set(he,ae)},G=0;G<P.length;G++)P[G].forEach(F)})}function Sf(m,x,P,q){var F=m===S,G=x.next();if(G.done){var ae=F?P:m,he=q(ae);return he===ae?m:he}Ie(F||m&&m.set,"invalid keyPath");var Se=G.value,Ae=F?S:m.get(Se,S),je=Sf(Ae,x,P,q);return je===Ae?m:je===S?m.remove(Se):(F?ze():m).set(Se,je)}function fa(m){return m=m-(m>>1&1431655765),m=(m&858993459)+(m>>2&858993459),m=m+(m>>4)&252645135,m=m+(m>>8),m=m+(m>>16),m&127}function Iu(m,x,P,q){var F=q?m:N(m);return F[x]=P,F}function Cs(m,x,P,q){var F=m.length+1;if(q&&x+1===F)return m[x]=P,m;for(var G=new Array(F),ae=0,he=0;he<F;he++)he===x?(G[he]=P,ae=-1):G[he]=m[he+ae];return G}function Mm(m,x,P){var q=m.length-1;if(P&&x===q)return m.pop(),m;for(var F=new Array(q),G=0,ae=0;ae<q;ae++)ae===x&&(G=1),F[ae]=m[ae+G];return F}var Tu=E/4,vt=E/2,wf=E/4;n(dt,Yt);function dt(m){var x=Pt();if(m==null)return x;if(cr(m))return m;var P=a(m),q=P.size;return q===0?x:(Hr(q),q>0&&q<E?Ze(0,q,b,null,new Kn(P.toArray())):x.withMutations(function(F){F.setSize(q),P.forEach(function(G,ae){return F.set(ae,G)})}))}dt.of=function(){return this(arguments)},dt.prototype.toString=function(){return this.__toString("List [","]")},dt.prototype.get=function(m,x){if(m=M(this,m),m>=0&&m<this.size){m+=this._origin;var P=tI(this,m);return P&&P.array[m&w]}return x},dt.prototype.set=function(m,x){return Yr(this,m,x)},dt.prototype.remove=function(m){return this.has(m)?m===0?this.shift():m===this.size-1?this.pop():this.splice(m,1):this},dt.prototype.insert=function(m,x){return this.splice(m,0,x)},dt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=b,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Pt()},dt.prototype.push=function(){var m=arguments,x=this.size;return this.withMutations(function(P){Ts(P,0,x+m.length);for(var q=0;q<m.length;q++)P.set(x+q,m[q])})},dt.prototype.pop=function(){return Ts(this,0,-1)},dt.prototype.unshift=function(){var m=arguments;return this.withMutations(function(x){Ts(x,-m.length);for(var P=0;P<m.length;P++)x.set(P,m[P])})},dt.prototype.shift=function(){return Ts(this,1)},dt.prototype.merge=function(){return xf(this,void 0,arguments)},dt.prototype.mergeWith=function(m){var x=r.call(arguments,1);return xf(this,m,x)},dt.prototype.mergeDeep=function(){return xf(this,bf,arguments)},dt.prototype.mergeDeepWith=function(m){var x=r.call(arguments,1);return xf(this,_f(m),x)},dt.prototype.setSize=function(m){return Ts(this,0,m)},dt.prototype.slice=function(m,x){var P=this.size;return ee(m,x,P)?this:Ts(this,J(m,P),Q(x,P))},dt.prototype.__iterator=function(m,x){var P=0,q=Ye(this,x);return new se(function(){var F=q();return F===ss?z():V(m,P++,F)})},dt.prototype.__iterate=function(m,x){for(var P=0,q=Ye(this,x),F;(F=q())!==ss&&m(F,P++,this)!==!1;);return P},dt.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Ze(this._origin,this._capacity,this._level,this._root,this._tail,m,this.__hash):(this.__ownerID=m,this)};function cr(m){return!!(m&&m[pa])}dt.isList=cr;var pa="@@__IMMUTABLE_LIST__@@",fr=dt.prototype;fr[pa]=!0,fr[_]=fr.remove,fr.setIn=_t.setIn,fr.deleteIn=fr.removeIn=_t.removeIn,fr.update=_t.update,fr.updateIn=_t.updateIn,fr.mergeIn=_t.mergeIn,fr.mergeDeepIn=_t.mergeDeepIn,fr.withMutations=_t.withMutations,fr.asMutable=_t.asMutable,fr.asImmutable=_t.asImmutable,fr.wasAltered=_t.wasAltered;function Kn(m,x){this.array=m,this.ownerID=x}Kn.prototype.removeBefore=function(m,x,P){if(P===x?1<<x:this.array.length===0)return this;var q=P>>>x&w;if(q>=this.array.length)return new Kn([],m);var F=q===0,G;if(x>0){var ae=this.array[q];if(G=ae&&ae.removeBefore(m,x-b,P),G===ae&&F)return this}if(F&&!G)return this;var he=Is(this,m);if(!F)for(var Se=0;Se<q;Se++)he.array[Se]=void 0;return G&&(he.array[q]=G),he},Kn.prototype.removeAfter=function(m,x,P){if(P===(x?1<<x:0)||this.array.length===0)return this;var q=P-1>>>x&w;if(q>=this.array.length)return this;var F;if(x>0){var G=this.array[q];if(F=G&&G.removeAfter(m,x-b,P),F===G&&q===this.array.length-1)return this}var ae=Is(this,m);return ae.array.splice(q+1),F&&(ae.array[q]=F),ae};var ss={};function Ye(m,x){var P=m._origin,q=m._capacity,F=ju(q),G=m._tail;return ae(m._root,m._level,0);function ae(Ae,je,We){return je===0?he(Ae,We):Se(Ae,je,We)}function he(Ae,je){var We=je===F?G&&G.array:Ae&&Ae.array,He=je>P?0:P-je,lt=q-je;return lt>E&&(lt=E),function(){if(He===lt)return ss;var Et=x?--lt:He++;return We&&We[Et]}}function Se(Ae,je,We){var He,lt=Ae&&Ae.array,Et=We>P?0:P-We>>je,ar=(q-We>>je)+1;return ar>E&&(ar=E),function(){do{if(He){var mi=He();if(mi!==ss)return mi;He=null}if(Et===ar)return ss;var Di=x?--ar:Et++;He=ae(lt&&lt[Di],je-b,We+(Di<<je))}while(!0)}}}function Ze(m,x,P,q,F,G,ae){var he=Object.create(fr);return he.size=x-m,he._origin=m,he._capacity=x,he._level=P,he._root=q,he._tail=F,he.__ownerID=G,he.__hash=ae,he.__altered=!1,he}var gt;function Pt(){return gt||(gt=Ze(0,0,b))}function Yr(m,x,P){if(x=M(m,x),x!==x)return m;if(x>=m.size||x<0)return m.withMutations(function(ae){x<0?Ts(ae,x).set(0,P):Ts(ae,0,x+1).set(x,P)});x+=m._origin;var q=m._tail,F=m._root,G=T(R);return x>=ju(m._capacity)?q=Rs(q,m.__ownerID,0,x,P,G):F=Rs(F,m.__ownerID,m._level,x,P,G),G.value?m.__ownerID?(m._root=F,m._tail=q,m.__hash=void 0,m.__altered=!0,m):Ze(m._origin,m._capacity,m._level,F,q):m}function Rs(m,x,P,q,F,G){var ae=q>>>P&w,he=m&&ae<m.array.length;if(!he&&F===void 0)return m;var Se;if(P>0){var Ae=m&&m.array[ae],je=Rs(Ae,x,P-b,q,F,G);return je===Ae?m:(Se=Is(m,x),Se.array[ae]=je,Se)}return he&&m.array[ae]===F?m:(O(G),Se=Is(m,x),F===void 0&&ae===Se.array.length-1?Se.array.pop():Se.array[ae]=F,Se)}function Is(m,x){return x&&m&&x===m.ownerID?m:new Kn(m?m.array.slice():[],x)}function tI(m,x){if(x>=ju(m._capacity))return m._tail;if(x<1<<m._level+b){for(var P=m._root,q=m._level;P&&q>0;)P=P.array[x>>>q&w],q-=b;return P}}function Ts(m,x,P){x!==void 0&&(x=x|0),P!==void 0&&(P=P|0);var q=m.__ownerID||new D,F=m._origin,G=m._capacity,ae=F+x,he=P===void 0?G:P<0?G+P:F+P;if(ae===F&&he===G)return m;if(ae>=he)return m.clear();for(var Se=m._level,Ae=m._root,je=0;ae+je<0;)Ae=new Kn(Ae&&Ae.array.length?[void 0,Ae]:[],q),Se+=b,je+=1<<Se;je&&(ae+=je,F+=je,he+=je,G+=je);for(var We=ju(G),He=ju(he);He>=1<<Se+b;)Ae=new Kn(Ae&&Ae.array.length?[Ae]:[],q),Se+=b;var lt=m._tail,Et=He<We?tI(m,he-1):He>We?new Kn([],q):lt;if(lt&&He>We&&ae<G&&lt.array.length){Ae=Is(Ae,q);for(var ar=Ae,mi=Se;mi>b;mi-=b){var Di=We>>>mi&w;ar=ar.array[Di]=Is(ar.array[Di],q)}ar.array[We>>>b&w]=lt}if(he<G&&(Et=Et&&Et.removeAfter(q,0,he)),ae>=He)ae-=He,he-=He,Se=b,Ae=null,Et=Et&&Et.removeBefore(q,0,ae);else if(ae>F||He<We){for(je=0;Ae;){var jf=ae>>>Se&w;if(jf!==He>>>Se&w)break;jf&&(je+=(1<<Se)*jf),Se-=b,Ae=Ae.array[jf]}Ae&&ae>F&&(Ae=Ae.removeBefore(q,Se,ae-je)),Ae&&He<We&&(Ae=Ae.removeAfter(q,Se,He-je)),je&&(ae-=je,he-=je)}return m.__ownerID?(m.size=he-ae,m._origin=ae,m._capacity=he,m._level=Se,m._root=Ae,m._tail=Et,m.__hash=void 0,m.__altered=!0,m):Ze(ae,he,Se,Ae,Et)}function xf(m,x,P){for(var q=[],F=0,G=0;G<P.length;G++){var ae=P[G],he=a(ae);he.size>F&&(F=he.size),u(ae)||(he=he.map(function(Se){return fe(Se)})),q.push(he)}return F>m.size&&(m=m.setSize(F)),Ef(m,x,q)}function ju(m){return m<E?0:m-1>>>b<<b}n(gr,At);function gr(m){return m==null?Af():rI(m)?m:Af().withMutations(function(x){var P=s(m);Hr(P.size),P.forEach(function(q,F){return x.set(F,q)})})}gr.of=function(){return this(arguments)},gr.prototype.toString=function(){return this.__toString("OrderedMap {","}")},gr.prototype.get=function(m,x){var P=this._map.get(m);return P!==void 0?this._list.get(P)[1]:x},gr.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Af()},gr.prototype.set=function(m,x){return iI(this,m,x)},gr.prototype.remove=function(m){return iI(this,m,S)},gr.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},gr.prototype.__iterate=function(m,x){var P=this;return this._list.__iterate(function(q){return q&&m(q[1],q[0],P)},x)},gr.prototype.__iterator=function(m,x){return this._list.fromEntrySeq().__iterator(m,x)},gr.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map.__ensureOwner(m),P=this._list.__ensureOwner(m);return m?Dm(x,P,m,this.__hash):(this.__ownerID=m,this._map=x,this._list=P,this)};function rI(m){return Ou(m)&&h(m)}gr.isOrderedMap=rI,gr.prototype[v]=!0,gr.prototype[_]=gr.prototype.remove;function Dm(m,x,P,q){var F=Object.create(gr.prototype);return F.size=m?m.size:0,F._map=m,F._list=x,F.__ownerID=P,F.__hash=q,F}var nI;function Af(){return nI||(nI=Dm(ze(),Pt()))}function iI(m,x,P){var q=m._map,F=m._list,G=q.get(x),ae=G!==void 0,he,Se;if(P===S){if(!ae)return m;F.size>=E&&F.size>=q.size*2?(Se=F.filter(function(Ae,je){return Ae!==void 0&&G!==je}),he=Se.toKeyedSeq().map(function(Ae){return Ae[0]}).flip().toMap(),m.__ownerID&&(he.__ownerID=Se.__ownerID=m.__ownerID)):(he=q.remove(x),Se=G===F.size-1?F.pop():F.set(G,void 0))}else if(ae){if(P===F.get(G)[1])return m;he=q,Se=F.set(G,[x,P])}else he=q.set(x,F.size),Se=F.set(F.size,[x,P]);return m.__ownerID?(m.size=he.size,m._map=he,m._list=Se,m.__hash=void 0,m):Dm(he,Se)}n(Hn,Le);function Hn(m,x){this._iter=m,this._useKeys=x,this.size=m.size}Hn.prototype.get=function(m,x){return this._iter.get(m,x)},Hn.prototype.has=function(m){return this._iter.has(m)},Hn.prototype.valueSeq=function(){return this._iter.valueSeq()},Hn.prototype.reverse=function(){var m=this,x=qm(this,!0);return this._useKeys||(x.valueSeq=function(){return m._iter.toSeq().reverse()}),x},Hn.prototype.map=function(m,x){var P=this,q=aI(this,m,x);return this._useKeys||(q.valueSeq=function(){return P._iter.toSeq().map(m,x)}),q},Hn.prototype.__iterate=function(m,x){var P=this,q;return this._iter.__iterate(this._useKeys?function(F,G){return m(F,G,P)}:(q=x?pI(this):0,function(F){return m(F,x?--q:q++,P)}),x)},Hn.prototype.__iterator=function(m,x){if(this._useKeys)return this._iter.__iterator(m,x);var P=this._iter.__iterator(L,x),q=x?pI(this):0;return new se(function(){var F=P.next();return F.done?F:V(m,x?--q:q++,F.value,F)})},Hn.prototype[v]=!0,n(ro,be);function ro(m){this._iter=m,this.size=m.size}ro.prototype.includes=function(m){return this._iter.includes(m)},ro.prototype.__iterate=function(m,x){var P=this,q=0;return this._iter.__iterate(function(F){return m(F,q++,P)},x)},ro.prototype.__iterator=function(m,x){var P=this._iter.__iterator(L,x),q=0;return new se(function(){var F=P.next();return F.done?F:V(m,q++,F.value,F)})},n(no,we);function no(m){this._iter=m,this.size=m.size}no.prototype.has=function(m){return this._iter.includes(m)},no.prototype.__iterate=function(m,x){var P=this;return this._iter.__iterate(function(q){return m(q,q,P)},x)},no.prototype.__iterator=function(m,x){var P=this._iter.__iterator(L,x);return new se(function(){var q=P.next();return q.done?q:V(m,q.value,q.value,q)})},n(io,Le);function io(m){this._iter=m,this.size=m.size}io.prototype.entrySeq=function(){return this._iter.toSeq()},io.prototype.__iterate=function(m,x){var P=this;return this._iter.__iterate(function(q){if(q){fI(q);var F=u(q);return m(F?q.get(1):q[1],F?q.get(0):q[0],P)}},x)},io.prototype.__iterator=function(m,x){var P=this._iter.__iterator(L,x);return new se(function(){for(;;){var q=P.next();if(q.done)return q;var F=q.value;if(F){fI(F);var G=u(F);return V(m,G?F.get(0):F[0],G?F.get(1):F[1],q)}}})},ro.prototype.cacheResult=Hn.prototype.cacheResult=no.prototype.cacheResult=io.prototype.cacheResult=Bm;function sI(m){var x=ki(m);return x._iter=m,x.size=m.size,x.flip=function(){return m},x.reverse=function(){var P=m.reverse.apply(this);return P.flip=function(){return m.reverse()},P},x.has=function(P){return m.includes(P)},x.includes=function(P){return m.has(P)},x.cacheResult=Bm,x.__iterateUncached=function(P,q){var F=this;return m.__iterate(function(G,ae){return P(ae,G,F)!==!1},q)},x.__iteratorUncached=function(P,q){if(P===K){var F=m.__iterator(P,q);return new se(function(){var G=F.next();if(!G.done){var ae=G.value[0];G.value[0]=G.value[1],G.value[1]=ae}return G})}return m.__iterator(P===L?re:L,q)},x}function aI(m,x,P){var q=ki(m);return q.size=m.size,q.has=function(F){return m.has(F)},q.get=function(F,G){var ae=m.get(F,S);return ae===S?G:x.call(P,ae,F,m)},q.__iterateUncached=function(F,G){var ae=this;return m.__iterate(function(he,Se,Ae){return F(x.call(P,he,Se,Ae),Se,ae)!==!1},G)},q.__iteratorUncached=function(F,G){var ae=m.__iterator(K,G);return new se(function(){var he=ae.next();if(he.done)return he;var Se=he.value,Ae=Se[0];return V(F,Ae,x.call(P,Se[1],Ae,m),he)})},q}function qm(m,x){var P=ki(m);return P._iter=m,P.size=m.size,P.reverse=function(){return m},m.flip&&(P.flip=function(){var q=sI(m);return q.reverse=function(){return m.flip()},q}),P.get=function(q,F){return m.get(x?q:-1-q,F)},P.has=function(q){return m.has(x?q:-1-q)},P.includes=function(q){return m.includes(q)},P.cacheResult=Bm,P.__iterate=function(q,F){var G=this;return m.__iterate(function(ae,he){return q(ae,he,G)},!F)},P.__iterator=function(q,F){return m.__iterator(q,!F)},P}function oI(m,x,P,q){var F=ki(m);return q&&(F.has=function(G){var ae=m.get(G,S);return ae!==S&&!!x.call(P,ae,G,m)},F.get=function(G,ae){var he=m.get(G,S);return he!==S&&x.call(P,he,G,m)?he:ae}),F.__iterateUncached=function(G,ae){var he=this,Se=0;return m.__iterate(function(Ae,je,We){if(x.call(P,Ae,je,We))return Se++,G(Ae,q?je:Se-1,he)},ae),Se},F.__iteratorUncached=function(G,ae){var he=m.__iterator(K,ae),Se=0;return new se(function(){for(;;){var Ae=he.next();if(Ae.done)return Ae;var je=Ae.value,We=je[0],He=je[1];if(x.call(P,He,We,m))return V(G,q?We:Se++,He,Ae)}})},F}function nJ(m,x,P){var q=At().asMutable();return m.__iterate(function(F,G){q.update(x.call(P,F,G,m),0,function(ae){return ae+1})}),q.asImmutable()}function iJ(m,x,P){var q=c(m),F=(h(m)?gr():At()).asMutable();m.__iterate(function(ae,he){F.update(x.call(P,ae,he,m),function(Se){return Se=Se||[],Se.push(q?[he,ae]:ae),Se})});var G=dI(m);return F.map(function(ae){return Kt(m,G(ae))})}function $m(m,x,P,q){var F=m.size;if(x!==void 0&&(x=x|0),P!==void 0&&(P===1/0?P=F:P=P|0),ee(x,P,F))return m;var G=J(x,F),ae=Q(P,F);if(G!==G||ae!==ae)return $m(m.toSeq().cacheResult(),x,P,q);var he=ae-G,Se;he===he&&(Se=he<0?0:he);var Ae=ki(m);return Ae.size=Se===0?Se:m.size&&Se||void 0,!q&&ie(m)&&Se>=0&&(Ae.get=function(je,We){return je=M(this,je),je>=0&&je<Se?m.get(je+G,We):We}),Ae.__iterateUncached=function(je,We){var He=this;if(Se===0)return 0;if(We)return this.cacheResult().__iterate(je,We);var lt=0,Et=!0,ar=0;return m.__iterate(function(mi,Di){if(!(Et&&(Et=lt++<G)))return ar++,je(mi,q?Di:ar-1,He)!==!1&&ar!==Se}),ar},Ae.__iteratorUncached=function(je,We){if(Se!==0&&We)return this.cacheResult().__iterator(je,We);var He=Se!==0&&m.__iterator(je,We),lt=0,Et=0;return new se(function(){for(;lt++<G;)He.next();if(++Et>Se)return z();var ar=He.next();return q||je===L?ar:je===re?V(je,Et-1,void 0,ar):V(je,Et-1,ar.value[1],ar)})},Ae}function sJ(m,x,P){var q=ki(m);return q.__iterateUncached=function(F,G){var ae=this;if(G)return this.cacheResult().__iterate(F,G);var he=0;return m.__iterate(function(Se,Ae,je){return x.call(P,Se,Ae,je)&&++he&&F(Se,Ae,ae)}),he},q.__iteratorUncached=function(F,G){var ae=this;if(G)return this.cacheResult().__iterator(F,G);var he=m.__iterator(K,G),Se=!0;return new se(function(){if(!Se)return z();var Ae=he.next();if(Ae.done)return Ae;var je=Ae.value,We=je[0],He=je[1];return x.call(P,He,We,ae)?F===K?Ae:V(F,We,He,Ae):(Se=!1,z())})},q}function uI(m,x,P,q){var F=ki(m);return F.__iterateUncached=function(G,ae){var he=this;if(ae)return this.cacheResult().__iterate(G,ae);var Se=!0,Ae=0;return m.__iterate(function(je,We,He){if(!(Se&&(Se=x.call(P,je,We,He))))return Ae++,G(je,q?We:Ae-1,he)}),Ae},F.__iteratorUncached=function(G,ae){var he=this;if(ae)return this.cacheResult().__iterator(G,ae);var Se=m.__iterator(K,ae),Ae=!0,je=0;return new se(function(){var We,He,lt;do{if(We=Se.next(),We.done)return q||G===L?We:G===re?V(G,je++,void 0,We):V(G,je++,We.value[1],We);var Et=We.value;He=Et[0],lt=Et[1],Ae&&(Ae=x.call(P,lt,He,he))}while(Ae);return G===K?We:V(G,He,lt,We)})},F}function aJ(m,x){var P=c(m),q=[m].concat(x).map(function(ae){return u(ae)?P&&(ae=s(ae)):ae=P?Ne(ae):Xe(Array.isArray(ae)?ae:[ae]),ae}).filter(function(ae){return ae.size!==0});if(q.length===0)return m;if(q.length===1){var F=q[0];if(F===m||P&&c(F)||l(m)&&l(F))return F}var G=new U(q);return P?G=G.toKeyedSeq():l(m)||(G=G.toSetSeq()),G=G.flatten(!0),G.size=q.reduce(function(ae,he){if(ae!==void 0){var Se=he.size;if(Se!==void 0)return ae+Se}},0),G}function cI(m,x,P){var q=ki(m);return q.__iterateUncached=function(F,G){var ae=0,he=!1;function Se(Ae,je){var We=this;Ae.__iterate(function(He,lt){return(!x||je<x)&&u(He)?Se(He,je+1):F(He,P?lt:ae++,We)===!1&&(he=!0),!he},G)}return Se(m,0),ae},q.__iteratorUncached=function(F,G){var ae=m.__iterator(F,G),he=[],Se=0;return new se(function(){for(;ae;){var Ae=ae.next();if(Ae.done!==!1){ae=he.pop();continue}var je=Ae.value;if(F===K&&(je=je[1]),(!x||he.length<x)&&u(je))he.push(ae),ae=je.__iterator(F,G);else return P?Ae:V(F,Se++,je,Ae)}return z()})},q}function oJ(m,x,P){var q=dI(m);return m.toSeq().map(function(F,G){return q(x.call(P,F,G,m))}).flatten(!0)}function uJ(m,x){var P=ki(m);return P.size=m.size&&m.size*2-1,P.__iterateUncached=function(q,F){var G=this,ae=0;return m.__iterate(function(he,Se){return(!ae||q(x,ae++,G)!==!1)&&q(he,ae++,G)!==!1},F),ae},P.__iteratorUncached=function(q,F){var G=m.__iterator(L,F),ae=0,he;return new se(function(){return(!he||ae%2)&&(he=G.next(),he.done)?he:ae%2?V(q,ae++,x):V(q,ae++,he.value,he)})},P}function so(m,x,P){x||(x=hI);var q=c(m),F=0,G=m.toSeq().map(function(ae,he){return[he,ae,F++,P?P(ae,he,m):ae]}).toArray();return G.sort(function(ae,he){return x(ae[3],he[3])||ae[2]-he[2]}).forEach(q?function(ae,he){G[he].length=2}:function(ae,he){G[he]=ae[1]}),q?Le(G):l(m)?be(G):we(G)}function Of(m,x,P){if(x||(x=hI),P){var q=m.toSeq().map(function(F,G){return[F,P(F,G,m)]}).reduce(function(F,G){return lI(x,F[1],G[1])?G:F});return q&&q[0]}else return m.reduce(function(F,G){return lI(x,F,G)?G:F})}function lI(m,x,P){var q=m(P,x);return q===0&&P!==x&&(P==null||P!==P)||q>0}function Fm(m,x,P){var q=ki(m);return q.size=new U(P).map(function(F){return F.size}).min(),q.__iterate=function(F,G){for(var ae=this.__iterator(L,G),he,Se=0;!(he=ae.next()).done&&F(he.value,Se++,this)!==!1;);return Se},q.__iteratorUncached=function(F,G){var ae=P.map(function(Ae){return Ae=i(Ae),Ce(G?Ae.reverse():Ae)}),he=0,Se=!1;return new se(function(){var Ae;return Se||(Ae=ae.map(function(je){return je.next()}),Se=Ae.some(function(je){return je.done})),Se?z():V(F,he++,x.apply(null,Ae.map(function(je){return je.value})))})},q}function Kt(m,x){return ie(m)?x:m.constructor(x)}function fI(m){if(m!==Object(m))throw new TypeError("Expected [K, V] tuple: "+m)}function pI(m){return Hr(m.size),$(m)}function dI(m){return c(m)?s:l(m)?a:o}function ki(m){return Object.create((c(m)?Le:l(m)?be:we).prototype)}function Bm(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Te.prototype.cacheResult.call(this)}function hI(m,x){return m>x?1:m<x?-1:0}function mI(m){var x=Ce(m);if(!x){if(!pe(m))throw new TypeError("Expected iterable or array-like: "+m);x=Ce(i(m))}return x}n(Cn,St);function Cn(m,x){var P,q=function(ae){if(ae instanceof q)return ae;if(!(this instanceof q))return new q(ae);if(!P){P=!0;var he=Object.keys(m);cJ(F,he),F.size=he.length,F._name=x,F._keys=he,F._defaultValues=m}this._map=At(ae)},F=q.prototype=Object.create(Dr);return F.constructor=q,q}Cn.prototype.toString=function(){return this.__toString(gI(this)+" {","}")},Cn.prototype.has=function(m){return this._defaultValues.hasOwnProperty(m)},Cn.prototype.get=function(m,x){if(!this.has(m))return x;var P=this._defaultValues[m];return this._map?this._map.get(m,P):P},Cn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var m=this.constructor;return m._empty||(m._empty=Cf(this,ze()))},Cn.prototype.set=function(m,x){if(!this.has(m))throw new Error('Cannot set unknown key "'+m+'" on '+gI(this));if(this._map&&!this._map.has(m)){var P=this._defaultValues[m];if(x===P)return this}var q=this._map&&this._map.set(m,x);return this.__ownerID||q===this._map?this:Cf(this,q)},Cn.prototype.remove=function(m){if(!this.has(m))return this;var x=this._map&&this._map.remove(m);return this.__ownerID||x===this._map?this:Cf(this,x)},Cn.prototype.wasAltered=function(){return this._map.wasAltered()},Cn.prototype.__iterator=function(m,x){var P=this;return s(this._defaultValues).map(function(q,F){return P.get(F)}).__iterator(m,x)},Cn.prototype.__iterate=function(m,x){var P=this;return s(this._defaultValues).map(function(q,F){return P.get(F)}).__iterate(m,x)},Cn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map&&this._map.__ensureOwner(m);return m?Cf(this,x,m):(this.__ownerID=m,this._map=x,this)};var Dr=Cn.prototype;Dr[_]=Dr.remove,Dr.deleteIn=Dr.removeIn=_t.removeIn,Dr.merge=_t.merge,Dr.mergeWith=_t.mergeWith,Dr.mergeIn=_t.mergeIn,Dr.mergeDeep=_t.mergeDeep,Dr.mergeDeepWith=_t.mergeDeepWith,Dr.mergeDeepIn=_t.mergeDeepIn,Dr.setIn=_t.setIn,Dr.update=_t.update,Dr.updateIn=_t.updateIn,Dr.withMutations=_t.withMutations,Dr.asMutable=_t.asMutable,Dr.asImmutable=_t.asImmutable;function Cf(m,x,P){var q=Object.create(Object.getPrototypeOf(m));return q._map=x,q.__ownerID=P,q}function gI(m){return m._name||m.constructor.name||"Record"}function cJ(m,x){try{x.forEach(lJ.bind(void 0,m))}catch{}}function lJ(m,x){Object.defineProperty(m,x,{get:function(){return this.get(x)},set:function(P){Ie(this.__ownerID,"Cannot set on an immutable record."),this.set(x,P)}})}n(sr,Ue);function sr(m){return m==null?Vm():Lm(m)&&!h(m)?m:Vm().withMutations(function(x){var P=o(m);Hr(P.size),P.forEach(function(q){return x.add(q)})})}sr.of=function(){return this(arguments)},sr.fromKeys=function(m){return this(s(m).keySeq())},sr.prototype.toString=function(){return this.__toString("Set {","}")},sr.prototype.has=function(m){return this._map.has(m)},sr.prototype.add=function(m){return Um(this,this._map.set(m,!0))},sr.prototype.remove=function(m){return Um(this,this._map.remove(m))},sr.prototype.clear=function(){return Um(this,this._map.clear())},sr.prototype.union=function(){var m=r.call(arguments,0);return m=m.filter(function(x){return x.size!==0}),m.length===0?this:this.size===0&&!this.__ownerID&&m.length===1?this.constructor(m[0]):this.withMutations(function(x){for(var P=0;P<m.length;P++)o(m[P]).forEach(function(q){return x.add(q)})})},sr.prototype.intersect=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(P){return o(P)});var x=this;return this.withMutations(function(P){x.forEach(function(q){m.every(function(F){return F.includes(q)})||P.remove(q)})})},sr.prototype.subtract=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(P){return o(P)});var x=this;return this.withMutations(function(P){x.forEach(function(q){m.some(function(F){return F.includes(q)})&&P.remove(q)})})},sr.prototype.merge=function(){return this.union.apply(this,arguments)},sr.prototype.mergeWith=function(m){var x=r.call(arguments,1);return this.union.apply(this,x)},sr.prototype.sort=function(m){return Ni(so(this,m))},sr.prototype.sortBy=function(m,x){return Ni(so(this,x,m))},sr.prototype.wasAltered=function(){return this._map.wasAltered()},sr.prototype.__iterate=function(m,x){var P=this;return this._map.__iterate(function(q,F){return m(F,F,P)},x)},sr.prototype.__iterator=function(m,x){return this._map.map(function(P,q){return q}).__iterator(m,x)},sr.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map.__ensureOwner(m);return m?this.__make(x,m):(this.__ownerID=m,this._map=x,this)};function Lm(m){return!!(m&&m[yI])}sr.isSet=Lm;var yI="@@__IMMUTABLE_SET__@@",Rn=sr.prototype;Rn[yI]=!0,Rn[_]=Rn.remove,Rn.mergeDeep=Rn.merge,Rn.mergeDeepWith=Rn.mergeWith,Rn.withMutations=_t.withMutations,Rn.asMutable=_t.asMutable,Rn.asImmutable=_t.asImmutable,Rn.__empty=Vm,Rn.__make=vI;function Um(m,x){return m.__ownerID?(m.size=x.size,m._map=x,m):x===m._map?m:x.size===0?m.__empty():m.__make(x)}function vI(m,x){var P=Object.create(Rn);return P.size=m?m.size:0,P._map=m,P.__ownerID=x,P}var bI;function Vm(){return bI||(bI=vI(ze()))}n(Ni,sr);function Ni(m){return m==null?zm():_I(m)?m:zm().withMutations(function(x){var P=o(m);Hr(P.size),P.forEach(function(q){return x.add(q)})})}Ni.of=function(){return this(arguments)},Ni.fromKeys=function(m){return this(s(m).keySeq())},Ni.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function _I(m){return Lm(m)&&h(m)}Ni.isOrderedSet=_I;var Rf=Ni.prototype;Rf[v]=!0,Rf.__empty=zm,Rf.__make=EI;function EI(m,x){var P=Object.create(Rf);return P.size=m?m.size:0,P._map=m,P.__ownerID=x,P}var SI;function zm(){return SI||(SI=EI(Af()))}n(vr,Yt);function vr(m){return m==null?Wm():wI(m)?m:Wm().unshiftAll(m)}vr.of=function(){return this(arguments)},vr.prototype.toString=function(){return this.__toString("Stack [","]")},vr.prototype.get=function(m,x){var P=this._head;for(m=M(this,m);P&&m--;)P=P.next;return P?P.value:x},vr.prototype.peek=function(){return this._head&&this._head.value},vr.prototype.push=function(){if(arguments.length===0)return this;for(var m=this.size+arguments.length,x=this._head,P=arguments.length-1;P>=0;P--)x={value:arguments[P],next:x};return this.__ownerID?(this.size=m,this._head=x,this.__hash=void 0,this.__altered=!0,this):Pu(m,x)},vr.prototype.pushAll=function(m){if(m=a(m),m.size===0)return this;Hr(m.size);var x=this.size,P=this._head;return m.reverse().forEach(function(q){x++,P={value:q,next:P}}),this.__ownerID?(this.size=x,this._head=P,this.__hash=void 0,this.__altered=!0,this):Pu(x,P)},vr.prototype.pop=function(){return this.slice(1)},vr.prototype.unshift=function(){return this.push.apply(this,arguments)},vr.prototype.unshiftAll=function(m){return this.pushAll(m)},vr.prototype.shift=function(){return this.pop.apply(this,arguments)},vr.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Wm()},vr.prototype.slice=function(m,x){if(ee(m,x,this.size))return this;var P=J(m,this.size),q=Q(x,this.size);if(q!==this.size)return Yt.prototype.slice.call(this,m,x);for(var F=this.size-P,G=this._head;P--;)G=G.next;return this.__ownerID?(this.size=F,this._head=G,this.__hash=void 0,this.__altered=!0,this):Pu(F,G)},vr.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Pu(this.size,this._head,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},vr.prototype.__iterate=function(m,x){if(x)return this.reverse().__iterate(m);for(var P=0,q=this._head;q&&m(q.value,P++,this)!==!1;)q=q.next;return P},vr.prototype.__iterator=function(m,x){if(x)return this.reverse().__iterator(m);var P=0,q=this._head;return new se(function(){if(q){var F=q.value;return q=q.next,V(m,P++,F)}return z()})};function wI(m){return!!(m&&m[xI])}vr.isStack=wI;var xI="@@__IMMUTABLE_STACK__@@",ao=vr.prototype;ao[xI]=!0,ao.withMutations=_t.withMutations,ao.asMutable=_t.asMutable,ao.asImmutable=_t.asImmutable,ao.wasAltered=_t.wasAltered;function Pu(m,x,P,q){var F=Object.create(ao);return F.size=m,F._head=x,F.__ownerID=P,F.__hash=q,F.__altered=!1,F}var AI;function Wm(){return AI||(AI=Pu(0))}function Mi(m,x){var P=function(q){m.prototype[q]=x[q]};return Object.keys(x).forEach(P),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(x).forEach(P),m}i.Iterator=se,Mi(i,{toArray:function(){Hr(this.size);var m=new Array(this.size||0);return this.valueSeq().__iterate(function(x,P){m[P]=x}),m},toIndexedSeq:function(){return new ro(this)},toJS:function(){return this.toSeq().map(function(m){return m&&typeof m.toJS=="function"?m.toJS():m}).__toJS()},toJSON:function(){return this.toSeq().map(function(m){return m&&typeof m.toJSON=="function"?m.toJSON():m}).__toJS()},toKeyedSeq:function(){return new Hn(this,!0)},toMap:function(){return At(this.toKeyedSeq())},toObject:function(){Hr(this.size);var m={};return this.__iterate(function(x,P){m[P]=x}),m},toOrderedMap:function(){return gr(this.toKeyedSeq())},toOrderedSet:function(){return Ni(c(this)?this.valueSeq():this)},toSet:function(){return sr(c(this)?this.valueSeq():this)},toSetSeq:function(){return new no(this)},toSeq:function(){return l(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return vr(c(this)?this.valueSeq():this)},toList:function(){return dt(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(m,x){return this.size===0?m+x:m+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+x},concat:function(){var m=r.call(arguments,0);return Kt(this,aJ(this,m))},includes:function(m){return this.some(function(x){return at(x,m)})},entries:function(){return this.__iterator(K)},every:function(m,x){Hr(this.size);var P=!0;return this.__iterate(function(q,F,G){if(!m.call(x,q,F,G))return P=!1,!1}),P},filter:function(m,x){return Kt(this,oI(this,m,x,!0))},find:function(m,x,P){var q=this.findEntry(m,x);return q?q[1]:P},forEach:function(m,x){return Hr(this.size),this.__iterate(x?m.bind(x):m)},join:function(m){Hr(this.size),m=m!==void 0?""+m:",";var x="",P=!0;return this.__iterate(function(q){P?P=!1:x+=m,x+=q!=null?q.toString():""}),x},keys:function(){return this.__iterator(re)},map:function(m,x){return Kt(this,aI(this,m,x))},reduce:function(m,x,P){Hr(this.size);var q,F;return arguments.length<2?F=!0:q=x,this.__iterate(function(G,ae,he){F?(F=!1,q=G):q=m.call(P,q,G,ae,he)}),q},reduceRight:function(m,x,P){var q=this.toKeyedSeq().reverse();return q.reduce.apply(q,arguments)},reverse:function(){return Kt(this,qm(this,!0))},slice:function(m,x){return Kt(this,$m(this,m,x,!0))},some:function(m,x){return!this.every(Tf(m),x)},sort:function(m){return Kt(this,so(this,m))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(m,x){return $(m?this.toSeq().filter(m,x):this)},countBy:function(m,x){return nJ(this,m,x)},equals:function(m){return Ut(this,m)},entrySeq:function(){var m=this;if(m._cache)return new U(m._cache);var x=m.toSeq().map(pJ).toIndexedSeq();return x.fromEntrySeq=function(){return m.toSeq()},x},filterNot:function(m,x){return this.filter(Tf(m),x)},findEntry:function(m,x,P){var q=P;return this.__iterate(function(F,G,ae){if(m.call(x,F,G,ae))return q=[G,F],!1}),q},findKey:function(m,x){var P=this.findEntry(m,x);return P&&P[0]},findLast:function(m,x,P){return this.toKeyedSeq().reverse().find(m,x,P)},findLastEntry:function(m,x,P){return this.toKeyedSeq().reverse().findEntry(m,x,P)},findLastKey:function(m,x){return this.toKeyedSeq().reverse().findKey(m,x)},first:function(){return this.find(X)},flatMap:function(m,x){return Kt(this,oJ(this,m,x))},flatten:function(m){return Kt(this,cI(this,m,!0))},fromEntrySeq:function(){return new io(this)},get:function(m,x){return this.find(function(P,q){return at(q,m)},void 0,x)},getIn:function(m,x){for(var P=this,q=mI(m),F;!(F=q.next()).done;){var G=F.value;if(P=P&&P.get?P.get(G,S):S,P===S)return x}return P},groupBy:function(m,x){return iJ(this,m,x)},has:function(m){return this.get(m,S)!==S},hasIn:function(m){return this.getIn(m,S)!==S},isSubset:function(m){return m=typeof m.includes=="function"?m:i(m),this.every(function(x){return m.includes(x)})},isSuperset:function(m){return m=typeof m.isSubset=="function"?m:i(m),m.isSubset(this)},keyOf:function(m){return this.findKey(function(x){return at(x,m)})},keySeq:function(){return this.toSeq().map(fJ).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(m){return this.toKeyedSeq().reverse().keyOf(m)},max:function(m){return Of(this,m)},maxBy:function(m,x){return Of(this,x,m)},min:function(m){return Of(this,m?OI(m):RI)},minBy:function(m,x){return Of(this,x?OI(x):RI,m)},rest:function(){return this.slice(1)},skip:function(m){return this.slice(Math.max(0,m))},skipLast:function(m){return Kt(this,this.toSeq().reverse().skip(m).reverse())},skipWhile:function(m,x){return Kt(this,uI(this,m,x,!0))},skipUntil:function(m,x){return this.skipWhile(Tf(m),x)},sortBy:function(m,x){return Kt(this,so(this,x,m))},take:function(m){return this.slice(0,Math.max(0,m))},takeLast:function(m){return Kt(this,this.toSeq().reverse().take(m).reverse())},takeWhile:function(m,x){return Kt(this,sJ(this,m,x))},takeUntil:function(m,x){return this.takeWhile(Tf(m),x)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hJ(this))}});var nn=i.prototype;nn[d]=!0,nn[ue]=nn.values,nn.__toJS=nn.toArray,nn.__toStringMapper=CI,nn.inspect=nn.toSource=function(){return this.toString()},nn.chain=nn.flatMap,nn.contains=nn.includes,Mi(s,{flip:function(){return Kt(this,sI(this))},mapEntries:function(m,x){var P=this,q=0;return Kt(this,this.toSeq().map(function(F,G){return m.call(x,[G,F],q++,P)}).fromEntrySeq())},mapKeys:function(m,x){var P=this;return Kt(this,this.toSeq().flip().map(function(q,F){return m.call(x,q,F,P)}).flip())}});var If=s.prototype;If[g]=!0,If[ue]=nn.entries,If.__toJS=nn.toObject,If.__toStringMapper=function(m,x){return JSON.stringify(x)+": "+CI(m)},Mi(a,{toKeyedSeq:function(){return new Hn(this,!1)},filter:function(m,x){return Kt(this,oI(this,m,x,!1))},findIndex:function(m,x){var P=this.findEntry(m,x);return P?P[0]:-1},indexOf:function(m){var x=this.keyOf(m);return x===void 0?-1:x},lastIndexOf:function(m){var x=this.lastKeyOf(m);return x===void 0?-1:x},reverse:function(){return Kt(this,qm(this,!1))},slice:function(m,x){return Kt(this,$m(this,m,x,!1))},splice:function(m,x){var P=arguments.length;if(x=Math.max(x|0,0),P===0||P===2&&!x)return this;m=J(m,m<0?this.count():this.size);var q=this.slice(0,m);return Kt(this,P===1?q:q.concat(N(arguments,2),this.slice(m+x)))},findLastIndex:function(m,x){var P=this.findLastEntry(m,x);return P?P[0]:-1},first:function(){return this.get(0)},flatten:function(m){return Kt(this,cI(this,m,!1))},get:function(m,x){return m=M(this,m),m<0||this.size===1/0||this.size!==void 0&&m>this.size?x:this.find(function(P,q){return q===m},void 0,x)},has:function(m){return m=M(this,m),m>=0&&(this.size!==void 0?this.size===1/0||m<this.size:this.indexOf(m)!==-1)},interpose:function(m){return Kt(this,uJ(this,m))},interleave:function(){var m=[this].concat(N(arguments)),x=Fm(this.toSeq(),be.of,m),P=x.flatten(!0);return x.size&&(P.size=x.size*m.length),Kt(this,P)},keySeq:function(){return Me(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(m,x){return Kt(this,uI(this,m,x,!1))},zip:function(){var m=[this].concat(N(arguments));return Kt(this,Fm(this,dJ,m))},zipWith:function(m){var x=N(arguments);return x[0]=this,Kt(this,Fm(this,m,x))}}),a.prototype[y]=!0,a.prototype[v]=!0,Mi(o,{get:function(m,x){return this.has(m)?m:x},includes:function(m){return this.has(m)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=nn.includes,o.prototype.contains=o.prototype.includes,Mi(Le,s.prototype),Mi(be,a.prototype),Mi(we,o.prototype),Mi(St,s.prototype),Mi(Yt,a.prototype),Mi(Ue,o.prototype);function fJ(m,x){return x}function pJ(m,x){return[x,m]}function Tf(m){return function(){return!m.apply(this,arguments)}}function OI(m){return function(){return-m.apply(this,arguments)}}function CI(m){return typeof m=="string"?JSON.stringify(m):String(m)}function dJ(){return N(arguments)}function RI(m,x){return m<x?1:m>x?-1:0}function hJ(m){if(m.size===1/0)return 0;var x=h(m),P=c(m),q=x?1:0,F=m.__iterate(P?x?function(G,ae){q=31*q+II(tt(G),tt(ae))|0}:function(G,ae){q=q+II(tt(G),tt(ae))|0}:x?function(G){q=31*q+tt(G)|0}:function(G){q=q+tt(G)|0});return mJ(F,q)}function mJ(m,x){return x=Ge(x,3432918353),x=Ge(x<<15|x>>>-15,461845907),x=Ge(x<<13|x>>>-13,5),x=(x+3864292196|0)^m,x=Ge(x^x>>>16,2246822507),x=Ge(x^x>>>13,3266489909),x=ot(x^x>>>16),x}function II(m,x){return m^x+2654435769+(m<<6)+(m>>2)|0}var gJ={Iterable:i,Seq:Te,Collection:yt,Map:At,OrderedMap:gr,List:dt,Stack:vr,Set:sr,OrderedSet:Ni,Record:Cn,Range:Me,Repeat:pt,is:at,fromJS:fe};return gJ})})(op)),op.exports}var ya=_O();const jK=Ve.getDefaultExportFromCjs(ya);var Nu={},Df={exports:{}},os={},qf={exports:{}},KT;function i6(){return KT||(KT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r){return r&&r.type==="@@redux/INIT"?"initialState argument passed to createStore":"previous state received by the reducer"},e.exports=t.default})(qf,qf.exports)),qf.exports}var $f={exports:{}},HT;function PK(){return HT||(HT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=_O(),n=a(r),i=i6(),s=a(i);function a(o){return o&&o.__esModule?o:{default:o}}t.default=function(o,u,c){var l=Object.keys(u);if(!l.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var f=(0,s.default)(c);if(n.default.isImmutable?!n.default.isImmutable(o):!n.default.Iterable.isIterable(o))return"The "+f+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+l.join('", "')+'".';var h=o.toSeq().keySeq().toArray().filter(function(d){return!u.hasOwnProperty(d)});return h.length>0?"Unexpected "+(h.length===1?"property":"properties")+' "'+h.join('", "')+'" found in '+f+'. Expected to find one of the known reducer property names instead: "'+l.join('", "')+'". Unexpected properties will be ignored.':null},e.exports=t.default})($f,$f.exports)),$f.exports}var Ff={exports:{}},GT;function kK(){return GT||(GT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,n,i){if(r===void 0)throw new Error('Reducer "'+n+'" returned undefined when handling "'+i.type+'" action. To ignore an action, you must explicitly return the previous state.')},e.exports=t.default})(Ff,Ff.exports)),Ff.exports}var YT;function NK(){if(YT)return os;YT=1,Object.defineProperty(os,"__esModule",{value:!0}),os.validateNextState=os.getUnexpectedInvocationParameterMessage=os.getStateName=void 0;var e=i6(),t=a(e),r=PK(),n=a(r),i=kK(),s=a(i);function a(o){return o&&o.__esModule?o:{default:o}}return os.getStateName=t.default,os.getUnexpectedInvocationParameterMessage=n.default,os.validateNextState=s.default,os}var XT;function MK(){return XT||(XT=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=_O(),n=s(r),i=NK();function s(a){return a&&a.__esModule?a:{default:a}}t.default=function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.Map,u=Object.keys(a);return function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),l=arguments[1];if(process.env.NODE_ENV!=="production"){var f=(0,i.getUnexpectedInvocationParameterMessage)(c,a,l);f&&console.error(f)}return c.withMutations(function(h){u.forEach(function(d){var g=a[d],y=h.get(d),v=g(y,l);(0,i.validateNextState)(v,d,l),h.set(d,v)})})}},e.exports=t.default})(Df,Df.exports)),Df.exports}var ZT;function DK(){if(ZT)return Nu;ZT=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.combineReducers=void 0;var e=MK(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return Nu.combineReducers=t.default,Nu}var qK=DK(),Gg,QT;function $K(){if(QT)return Gg;QT=1;class e extends Error{constructor(u){super(e._prepareSuperMessage(u)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(u){try{return JSON.stringify(u)}catch{return String(u)}}}const t=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],r=Symbol(".toJSON called"),n=o=>{o[r]=!0;const u=o.toJSON();return delete o[r],u},i=({from:o,seen:u,to_:c,forceEnumerable:l,maxDepth:f,depth:h})=>{const d=c||(Array.isArray(o)?[]:{});if(u.push(o),h>=f)return d;if(typeof o.toJSON=="function"&&o[r]!==!0)return n(o);for(const[g,y]of Object.entries(o)){if(typeof Buffer=="function"&&Buffer.isBuffer(y)){d[g]="[object Buffer]";continue}if(typeof y!="function"){if(!y||typeof y!="object"){d[g]=y;continue}if(!u.includes(o[g])){h++,d[g]=i({from:o[g],seen:u.slice(),forceEnumerable:l,maxDepth:f,depth:h});continue}d[g]="[Circular]"}}for(const{property:g,enumerable:y}of t)typeof o[g]=="string"&&Object.defineProperty(d,g,{value:o[g],enumerable:l?!0:y,configurable:!0,writable:!0});return d};return Gg={serializeError:(o,u={})=>{const{maxDepth:c=Number.POSITIVE_INFINITY}=u;return typeof o=="object"&&o!==null?i({from:o,seen:[],forceEnumerable:!0,maxDepth:c,depth:0}):typeof o=="function"?`[Function: ${o.name||"anonymous"}]`:o},deserializeError:(o,u={})=>{const{maxDepth:c=Number.POSITIVE_INFINITY}=u;if(o instanceof Error)return o;if(typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=new Error;return i({from:o,seen:[],to_:l,maxDepth:c,depth:0}),l}return new e(o)}},Gg}var FK=$K(),Yg,ej;function BK(){if(ej)return Yg;ej=1;function e(){this.__data__=[],this.size=0}return Yg=e,Yg}var Xg,tj;function Go(){if(tj)return Xg;tj=1;function e(t,r){return t===r||t!==t&&r!==r}return Xg=e,Xg}var Zg,rj;function Jd(){if(rj)return Zg;rj=1;var e=Go();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Zg=t,Zg}var Qg,nj;function LK(){if(nj)return Qg;nj=1;var e=Jd(),t=Array.prototype,r=t.splice;function n(i){var s=this.__data__,a=e(s,i);if(a<0)return!1;var o=s.length-1;return a==o?s.pop():r.call(s,a,1),--this.size,!0}return Qg=n,Qg}var ey,ij;function UK(){if(ij)return ey;ij=1;var e=Jd();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return ey=t,ey}var ty,sj;function VK(){if(sj)return ty;sj=1;var e=Jd();function t(r){return e(this.__data__,r)>-1}return ty=t,ty}var ry,aj;function zK(){if(aj)return ry;aj=1;var e=Jd();function t(r,n){var i=this.__data__,s=e(i,r);return s<0?(++this.size,i.push([r,n])):i[s][1]=n,this}return ry=t,ry}var ny,oj;function Kd(){if(oj)return ny;oj=1;var e=BK(),t=LK(),r=UK(),n=VK(),i=zK();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,ny=s,ny}var iy,uj;function WK(){if(uj)return iy;uj=1;var e=Kd();function t(){this.__data__=new e,this.size=0}return iy=t,iy}var sy,cj;function JK(){if(cj)return sy;cj=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return sy=e,sy}var ay,lj;function KK(){if(lj)return ay;lj=1;function e(t){return this.__data__.get(t)}return ay=e,ay}var oy,fj;function HK(){if(fj)return oy;fj=1;function e(t){return this.__data__.has(t)}return oy=e,oy}var uy,pj;function s6(){if(pj)return uy;pj=1;var e=typeof Ve.commonjsGlobal=="object"&&Ve.commonjsGlobal&&Ve.commonjsGlobal.Object===Object&&Ve.commonjsGlobal;return uy=e,uy}var cy,dj;function fn(){if(dj)return cy;dj=1;var e=s6(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return cy=r,cy}var ly,hj;function Yo(){if(hj)return ly;hj=1;var e=fn(),t=e.Symbol;return ly=t,ly}var fy,mj;function GK(){if(mj)return fy;mj=1;var e=Yo(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function s(a){var o=r.call(a,i),u=a[i];try{a[i]=void 0;var c=!0}catch{}var l=n.call(a);return c&&(o?a[i]=u:delete a[i]),l}return fy=s,fy}var py,gj;function YK(){if(gj)return py;gj=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return py=r,py}var dy,yj;function Gi(){if(yj)return dy;yj=1;var e=Yo(),t=GK(),r=YK(),n="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function a(o){return o==null?o===void 0?i:n:s&&s in Object(o)?t(o):r(o)}return dy=a,dy}var hy,vj;function pn(){if(vj)return hy;vj=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return hy=e,hy}var my,bj;function Fc(){if(bj)return my;bj=1;var e=Gi(),t=pn(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function a(o){if(!t(o))return!1;var u=e(o);return u==n||u==i||u==r||u==s}return my=a,my}var gy,_j;function XK(){if(_j)return gy;_j=1;var e=fn(),t=e["__core-js_shared__"];return gy=t,gy}var yy,Ej;function ZK(){if(Ej)return yy;Ej=1;var e=XK(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return yy=r,yy}var vy,Sj;function a6(){if(Sj)return vy;Sj=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return vy=r,vy}var by,wj;function QK(){if(wj)return by;wj=1;var e=Fc(),t=ZK(),r=pn(),n=a6(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,u=a.toString,c=o.hasOwnProperty,l=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var d=e(h)?l:s;return d.test(n(h))}return by=f,by}var _y,xj;function eH(){if(xj)return _y;xj=1;function e(t,r){return t==null?void 0:t[r]}return _y=e,_y}var Ey,Aj;function qa(){if(Aj)return Ey;Aj=1;var e=QK(),t=eH();function r(n,i){var s=t(n,i);return e(s)?s:void 0}return Ey=r,Ey}var Sy,Oj;function EO(){if(Oj)return Sy;Oj=1;var e=qa(),t=fn(),r=e(t,"Map");return Sy=r,Sy}var wy,Cj;function Hd(){if(Cj)return wy;Cj=1;var e=qa(),t=e(Object,"create");return wy=t,wy}var xy,Rj;function tH(){if(Rj)return xy;Rj=1;var e=Hd();function t(){this.__data__=e?e(null):{},this.size=0}return xy=t,xy}var Ay,Ij;function rH(){if(Ij)return Ay;Ij=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ay=e,Ay}var Oy,Tj;function nH(){if(Tj)return Oy;Tj=1;var e=Hd(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(s){var a=this.__data__;if(e){var o=a[s];return o===t?void 0:o}return n.call(a,s)?a[s]:void 0}return Oy=i,Oy}var Cy,jj;function iH(){if(jj)return Cy;jj=1;var e=Hd(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var s=this.__data__;return e?s[i]!==void 0:r.call(s,i)}return Cy=n,Cy}var Ry,Pj;function sH(){if(Pj)return Ry;Pj=1;var e=Hd(),t="__lodash_hash_undefined__";function r(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=e&&i===void 0?t:i,this}return Ry=r,Ry}var Iy,kj;function aH(){if(kj)return Iy;kj=1;var e=tH(),t=rH(),r=nH(),n=iH(),i=sH();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,Iy=s,Iy}var Ty,Nj;function oH(){if(Nj)return Ty;Nj=1;var e=aH(),t=Kd(),r=EO();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ty=n,Ty}var jy,Mj;function uH(){if(Mj)return jy;Mj=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return jy=e,jy}var Py,Dj;function Gd(){if(Dj)return Py;Dj=1;var e=uH();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Py=t,Py}var ky,qj;function cH(){if(qj)return ky;qj=1;var e=Gd();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ky=t,ky}var Ny,$j;function lH(){if($j)return Ny;$j=1;var e=Gd();function t(r){return e(this,r).get(r)}return Ny=t,Ny}var My,Fj;function fH(){if(Fj)return My;Fj=1;var e=Gd();function t(r){return e(this,r).has(r)}return My=t,My}var Dy,Bj;function pH(){if(Bj)return Dy;Bj=1;var e=Gd();function t(r,n){var i=e(this,r),s=i.size;return i.set(r,n),this.size+=i.size==s?0:1,this}return Dy=t,Dy}var qy,Lj;function SO(){if(Lj)return qy;Lj=1;var e=oH(),t=cH(),r=lH(),n=fH(),i=pH();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,qy=s,qy}var $y,Uj;function dH(){if(Uj)return $y;Uj=1;var e=Kd(),t=EO(),r=SO(),n=200;function i(s,a){var o=this.__data__;if(o instanceof e){var u=o.__data__;if(!t||u.length<n-1)return u.push([s,a]),this.size=++o.size,this;o=this.__data__=new r(u)}return o.set(s,a),this.size=o.size,this}return $y=i,$y}var Fy,Vj;function Yd(){if(Vj)return Fy;Vj=1;var e=Kd(),t=WK(),r=JK(),n=KK(),i=HK(),s=dH();function a(o){var u=this.__data__=new e(o);this.size=u.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=s,Fy=a,Fy}var By,zj;function o6(){if(zj)return By;zj=1;var e=qa(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return By=t,By}var Ly,Wj;function wO(){if(Wj)return Ly;Wj=1;var e=o6();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Ly=t,Ly}var Uy,Jj;function u6(){if(Jj)return Uy;Jj=1;var e=wO(),t=Go();function r(n,i,s){(s!==void 0&&!t(n[i],s)||s===void 0&&!(i in n))&&e(n,i,s)}return Uy=r,Uy}var Vy,Kj;function hH(){if(Kj)return Vy;Kj=1;function e(t){return function(r,n,i){for(var s=-1,a=Object(r),o=i(r),u=o.length;u--;){var c=o[t?u:++s];if(n(a[c],c,a)===!1)break}return r}}return Vy=e,Vy}var zy,Hj;function c6(){if(Hj)return zy;Hj=1;var e=hH(),t=e();return zy=t,zy}var Lu={exports:{}};Lu.exports;var Gj;function l6(){return Gj||(Gj=1,(function(e,t){var r=fn(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===n,a=s?r.Buffer:void 0,o=a?a.allocUnsafe:void 0;function u(c,l){if(l)return c.slice();var f=c.length,h=o?o(f):new c.constructor(f);return c.copy(h),h}e.exports=u})(Lu,Lu.exports)),Lu.exports}var Wy,Yj;function f6(){if(Yj)return Wy;Yj=1;var e=fn(),t=e.Uint8Array;return Wy=t,Wy}var Jy,Xj;function xO(){if(Xj)return Jy;Xj=1;var e=f6();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return Jy=t,Jy}var Ky,Zj;function p6(){if(Zj)return Ky;Zj=1;var e=xO();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return Ky=t,Ky}var Hy,Qj;function Bc(){if(Qj)return Hy;Qj=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Hy=e,Hy}var Gy,eP;function Xd(){if(eP)return Gy;eP=1;var e=pn(),t=Object.create,r=(function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var s=new n;return n.prototype=void 0,s}})();return Gy=r,Gy}var Yy,tP;function d6(){if(tP)return Yy;tP=1;function e(t,r){return function(n){return t(r(n))}}return Yy=e,Yy}var Xy,rP;function AO(){if(rP)return Xy;rP=1;var e=d6(),t=e(Object.getPrototypeOf,Object);return Xy=t,Xy}var Zy,nP;function Zd(){if(nP)return Zy;nP=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Zy=t,Zy}var Qy,iP;function h6(){if(iP)return Qy;iP=1;var e=Xd(),t=AO(),r=Zd();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return Qy=n,Qy}var ev,sP;function dn(){if(sP)return ev;sP=1;function e(t){return t!=null&&typeof t=="object"}return ev=e,ev}var tv,aP;function mH(){if(aP)return tv;aP=1;var e=Gi(),t=dn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return tv=n,tv}var rv,oP;function Lc(){if(oP)return rv;oP=1;var e=mH(),t=dn(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(a){return t(a)&&n.call(a,"callee")&&!i.call(a,"callee")};return rv=s,rv}var nv,uP;function Mr(){if(uP)return nv;uP=1;var e=Array.isArray;return nv=e,nv}var iv,cP;function OO(){if(cP)return iv;cP=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return iv=t,iv}var sv,lP;function $a(){if(lP)return sv;lP=1;var e=Fc(),t=OO();function r(n){return n!=null&&t(n.length)&&!e(n)}return sv=r,sv}var av,fP;function gH(){if(fP)return av;fP=1;var e=$a(),t=dn();function r(n){return t(n)&&e(n)}return av=r,av}var Uu={exports:{}},ov,pP;function yH(){if(pP)return ov;pP=1;function e(){return!1}return ov=e,ov}Uu.exports;var dP;function Uc(){return dP||(dP=1,(function(e,t){var r=fn(),n=yH(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a?r.Buffer:void 0,u=o?o.isBuffer:void 0,c=u||n;e.exports=c})(Uu,Uu.exports)),Uu.exports}var uv,hP;function Qd(){if(hP)return uv;hP=1;var e=Gi(),t=AO(),r=dn(),n="[object Object]",i=Function.prototype,s=Object.prototype,a=i.toString,o=s.hasOwnProperty,u=a.call(Object);function c(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var h=o.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&a.call(h)==u}return uv=c,uv}var cv,mP;function vH(){if(mP)return cv;mP=1;var e=Gi(),t=OO(),r=dn(),n="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",o="[object Error]",u="[object Function]",c="[object Map]",l="[object Number]",f="[object Object]",h="[object RegExp]",d="[object Set]",g="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",_="[object DataView]",b="[object Float32Array]",E="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",R="[object Uint8Array]",T="[object Uint8ClampedArray]",O="[object Uint16Array]",D="[object Uint32Array]",N={};N[b]=N[E]=N[w]=N[S]=N[A]=N[R]=N[T]=N[O]=N[D]=!0,N[n]=N[i]=N[v]=N[s]=N[_]=N[a]=N[o]=N[u]=N[c]=N[l]=N[f]=N[h]=N[d]=N[g]=N[y]=!1;function $(M){return r(M)&&t(M.length)&&!!N[e(M)]}return cv=$,cv}var lv,gP;function CO(){if(gP)return lv;gP=1;function e(t){return function(r){return t(r)}}return lv=e,lv}var Vu={exports:{}};Vu.exports;var yP;function RO(){return yP||(yP=1,(function(e,t){var r=s6(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===n,a=s&&r.process,o=(function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}})();e.exports=o})(Vu,Vu.exports)),Vu.exports}var fv,vP;function eh(){if(vP)return fv;vP=1;var e=vH(),t=CO(),r=RO(),n=r&&r.isTypedArray,i=n?t(n):e;return fv=i,fv}var pv,bP;function m6(){if(bP)return pv;bP=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return pv=e,pv}var dv,_P;function th(){if(_P)return dv;_P=1;var e=wO(),t=Go(),r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o){var u=s[a];(!(n.call(s,a)&&t(u,o))||o===void 0&&!(a in s))&&e(s,a,o)}return dv=i,dv}var hv,EP;function Xo(){if(EP)return hv;EP=1;var e=th(),t=wO();function r(n,i,s,a){var o=!s;s||(s={});for(var u=-1,c=i.length;++u<c;){var l=i[u],f=a?a(s[l],n[l],l,s,n):void 0;f===void 0&&(f=n[l]),o?t(s,l,f):e(s,l,f)}return s}return hv=r,hv}var mv,SP;function bH(){if(SP)return mv;SP=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return mv=e,mv}var gv,wP;function Vc(){if(wP)return gv;wP=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var s=typeof n;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return gv=r,gv}var yv,xP;function g6(){if(xP)return yv;xP=1;var e=bH(),t=Lc(),r=Mr(),n=Uc(),i=Vc(),s=eh(),a=Object.prototype,o=a.hasOwnProperty;function u(c,l){var f=r(c),h=!f&&t(c),d=!f&&!h&&n(c),g=!f&&!h&&!d&&s(c),y=f||h||d||g,v=y?e(c.length,String):[],_=v.length;for(var b in c)(l||o.call(c,b))&&!(y&&(b=="length"||d&&(b=="offset"||b=="parent")||g&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,_)))&&v.push(b);return v}return yv=u,yv}var vv,AP;function _H(){if(AP)return vv;AP=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return vv=e,vv}var bv,OP;function EH(){if(OP)return bv;OP=1;var e=pn(),t=Zd(),r=_H(),n=Object.prototype,i=n.hasOwnProperty;function s(a){if(!e(a))return r(a);var o=t(a),u=[];for(var c in a)c=="constructor"&&(o||!i.call(a,c))||u.push(c);return u}return bv=s,bv}var _v,CP;function zc(){if(CP)return _v;CP=1;var e=g6(),t=EH(),r=$a();function n(i){return r(i)?e(i,!0):t(i)}return _v=n,_v}var Ev,RP;function SH(){if(RP)return Ev;RP=1;var e=Xo(),t=zc();function r(n){return e(n,t(n))}return Ev=r,Ev}var Sv,IP;function wH(){if(IP)return Sv;IP=1;var e=u6(),t=l6(),r=p6(),n=Bc(),i=h6(),s=Lc(),a=Mr(),o=gH(),u=Uc(),c=Fc(),l=pn(),f=Qd(),h=eh(),d=m6(),g=SH();function y(v,_,b,E,w,S,A){var R=d(v,b),T=d(_,b),O=A.get(T);if(O){e(v,b,O);return}var D=S?S(R,T,b+"",v,_,A):void 0,N=D===void 0;if(N){var $=a(T),M=!$&&u(T),X=!$&&!M&&h(T);D=T,$||M||X?a(R)?D=R:o(R)?D=n(R):M?(N=!1,D=t(T,!0)):X?(N=!1,D=r(T,!0)):D=[]:f(T)||s(T)?(D=R,s(R)?D=g(R):(!l(R)||c(R))&&(D=i(T))):N=!1}N&&(A.set(T,D),w(D,T,E,S,A),A.delete(T)),e(v,b,D)}return Sv=y,Sv}var wv,TP;function xH(){if(TP)return wv;TP=1;var e=Yd(),t=u6(),r=c6(),n=wH(),i=pn(),s=zc(),a=m6();function o(u,c,l,f,h){u!==c&&r(c,function(d,g){if(h||(h=new e),i(d))n(u,c,g,l,o,f,h);else{var y=f?f(a(u,g),d,g+"",u,c,h):void 0;y===void 0&&(y=d),t(u,g,y)}},s)}return wv=o,wv}var xv,jP;function Wc(){if(jP)return xv;jP=1;function e(t){return t}return xv=e,xv}var Av,PP;function IO(){if(PP)return Av;PP=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Av=e,Av}var Ov,kP;function y6(){if(kP)return Ov;kP=1;var e=IO(),t=Math.max;function r(n,i,s){return i=t(i===void 0?n.length-1:i,0),function(){for(var a=arguments,o=-1,u=t(a.length-i,0),c=Array(u);++o<u;)c[o]=a[i+o];o=-1;for(var l=Array(i+1);++o<i;)l[o]=a[o];return l[i]=s(c),e(n,this,l)}}return Ov=r,Ov}var Cv,NP;function v6(){if(NP)return Cv;NP=1;function e(t){return function(){return t}}return Cv=e,Cv}var Rv,MP;function AH(){if(MP)return Rv;MP=1;var e=v6(),t=o6(),r=Wc(),n=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:r;return Rv=n,Rv}var Iv,DP;function b6(){if(DP)return Iv;DP=1;var e=800,t=16,r=Date.now;function n(i){var s=0,a=0;return function(){var o=r(),u=t-(o-a);if(a=o,u>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return Iv=n,Iv}var Tv,qP;function TO(){if(qP)return Tv;qP=1;var e=AH(),t=b6(),r=t(e);return Tv=r,Tv}var jv,$P;function OH(){if($P)return jv;$P=1;var e=Wc(),t=y6(),r=TO();function n(i,s){return r(t(i,s,e),i+"")}return jv=n,jv}var Pv,FP;function _6(){if(FP)return Pv;FP=1;var e=Go(),t=$a(),r=Vc(),n=pn();function i(s,a,o){if(!n(o))return!1;var u=typeof a;return(u=="number"?t(o)&&r(a,o.length):u=="string"&&a in o)?e(o[a],s):!1}return Pv=i,Pv}var kv,BP;function CH(){if(BP)return kv;BP=1;var e=OH(),t=_6();function r(n){return e(function(i,s){var a=-1,o=s.length,u=o>1?s[o-1]:void 0,c=o>2?s[2]:void 0;for(u=n.length>3&&typeof u=="function"?(o--,u):void 0,c&&t(s[0],s[1],c)&&(u=o<3?void 0:u,o=1),i=Object(i);++a<o;){var l=s[a];l&&n(i,l,a,u)}return i})}return kv=r,kv}var Nv,LP;function RH(){if(LP)return Nv;LP=1;var e=xH(),t=CH(),r=t(function(n,i,s){e(n,i,s)});return Nv=r,Nv}var IH=RH();const TH=Ve.getDefaultExportFromCjs(IH);var Mv,UP;function jO(){if(UP)return Mv;UP=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=r(t[n],n,t);return s}return Mv=e,Mv}var Dv,VP;function Jc(){if(VP)return Dv;VP=1;var e=Gi(),t=dn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Dv=n,Dv}var qv,zP;function jH(){if(zP)return qv;zP=1;var e=Yo(),t=jO(),r=Mr(),n=Jc(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function a(o){if(typeof o=="string")return o;if(r(o))return t(o,a)+"";if(n(o))return s?s.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}return qv=a,qv}var $v,WP;function bs(){if(WP)return $v;WP=1;var e=jH();function t(r){return r==null?"":e(r)}return $v=t,$v}var Fv,JP;function E6(){if(JP)return Fv;JP=1;function e(t,r,n){var i=-1,s=t.length;r<0&&(r=-r>s?0:s+r),n=n>s?s:n,n<0&&(n+=s),s=r>n?0:n-r>>>0,r>>>=0;for(var a=Array(s);++i<s;)a[i]=t[i+r];return a}return Fv=e,Fv}var Bv,KP;function PH(){if(KP)return Bv;KP=1;var e=E6();function t(r,n,i){var s=r.length;return i=i===void 0?s:i,!n&&i>=s?r:e(r,n,i)}return Bv=t,Bv}var Lv,HP;function S6(){if(HP)return Lv;HP=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",a="\\u200d",o=RegExp("["+a+e+i+s+"]");function u(c){return o.test(c)}return Lv=u,Lv}var Uv,GP;function kH(){if(GP)return Uv;GP=1;function e(t){return t.split("")}return Uv=e,Uv}var Vv,YP;function NH(){if(YP)return Vv;YP=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",a="["+e+"]",o="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+o+"|"+u+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",g=c+"?",y="["+s+"]?",v="(?:"+d+"(?:"+[l,f,h].join("|")+")"+y+g+")*",_=y+g+v,b="(?:"+[l+o+"?",o,f,h,a].join("|")+")",E=RegExp(u+"(?="+u+")|"+b+_,"g");function w(S){return S.match(E)||[]}return Vv=w,Vv}var zv,XP;function MH(){if(XP)return zv;XP=1;var e=kH(),t=S6(),r=NH();function n(i){return t(i)?r(i):e(i)}return zv=n,zv}var Wv,ZP;function DH(){if(ZP)return Wv;ZP=1;var e=PH(),t=S6(),r=MH(),n=bs();function i(s){return function(a){a=n(a);var o=t(a)?r(a):void 0,u=o?o[0]:a.charAt(0),c=o?e(o,1).join(""):a.slice(1);return u[s]()+c}}return Wv=i,Wv}var Jv,QP;function w6(){if(QP)return Jv;QP=1;var e=DH(),t=e("toUpperCase");return Jv=t,Jv}var Kv,ek;function qH(){if(ek)return Kv;ek=1;var e=bs(),t=w6();function r(n){return t(e(n).toLowerCase())}return Kv=r,Kv}var Hv,tk;function x6(){if(tk)return Hv;tk=1;function e(t,r,n,i){var s=-1,a=t==null?0:t.length;for(i&&a&&(n=t[++s]);++s<a;)n=r(n,t[s],s,t);return n}return Hv=e,Hv}var Gv,rk;function $H(){if(rk)return Gv;rk=1;function e(t){return function(r){return t==null?void 0:t[r]}}return Gv=e,Gv}var Yv,nk;function FH(){if(nk)return Yv;nk=1;var e=$H(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},r=e(t);return Yv=r,Yv}var Xv,ik;function BH(){if(ik)return Xv;ik=1;var e=FH(),t=bs(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",a=n+i+s,o="["+a+"]",u=RegExp(o,"g");function c(l){return l=t(l),l&&l.replace(r,e).replace(u,"")}return Xv=c,Xv}var Zv,sk;function LH(){if(sk)return Zv;sk=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return Zv=t,Zv}var Qv,ak;function UH(){if(ak)return Qv;ak=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return Qv=t,Qv}var e0,ok;function VH(){if(ok)return e0;ok=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\u2700-\\u27bf",a="a-z\\xdf-\\xf6\\xf8-\\xff",o="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c="\\u2000-\\u206f",l=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",f="A-Z\\xc0-\\xd6\\xd8-\\xde",h="\\ufe0e\\ufe0f",d=o+u+c+l,g="['’]",y="["+d+"]",v="["+i+"]",_="\\d+",b="["+s+"]",E="["+a+"]",w="[^"+e+d+_+s+a+f+"]",S="\\ud83c[\\udffb-\\udfff]",A="(?:"+v+"|"+S+")",R="[^"+e+"]",T="(?:\\ud83c[\\udde6-\\uddff]){2}",O="[\\ud800-\\udbff][\\udc00-\\udfff]",D="["+f+"]",N="\\u200d",$="(?:"+E+"|"+w+")",M="(?:"+D+"|"+w+")",X="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",ee="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",J=A+"?",Q="["+h+"]?",te="(?:"+N+"(?:"+[R,T,O].join("|")+")"+Q+J+")*",re="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",L="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",K=Q+J+te,ne="(?:"+[b,T,O].join("|")+")"+K,ce=RegExp([D+"?"+E+"+"+X+"(?="+[y,D,"$"].join("|")+")",M+"+"+ee+"(?="+[y,D+$,"$"].join("|")+")",D+"?"+$+"+"+X,D+"+"+ee,L,re,_,ne].join("|"),"g");function ue(se){return se.match(ce)||[]}return e0=ue,e0}var t0,uk;function zH(){if(uk)return t0;uk=1;var e=LH(),t=UH(),r=bs(),n=VH();function i(s,a,o){return s=r(s),a=o?void 0:a,a===void 0?t(s)?n(s):e(s):s.match(a)||[]}return t0=i,t0}var r0,ck;function WH(){if(ck)return r0;ck=1;var e=x6(),t=BH(),r=zH(),n="['’]",i=RegExp(n,"g");function s(a){return function(o){return e(r(t(o).replace(i,"")),a,"")}}return r0=s,r0}var n0,lk;function JH(){if(lk)return n0;lk=1;var e=qH(),t=WH(),r=t(function(n,i,s){return i=i.toLowerCase(),n+(s?e(i):i)});return n0=r,n0}JH();w6();var i0,fk;function A6(){if(fk)return i0;fk=1;var e=SO(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var a=arguments,o=i?i.apply(this,a):a[0],u=s.cache;if(u.has(o))return u.get(o);var c=n.apply(this,a);return s.cache=u.set(o,c)||u,c};return s.cache=new(r.Cache||e),s}return r.Cache=e,i0=r,i0}var KH=A6();const HH=Ve.getDefaultExportFromCjs(KH);var s0,pk;function GH(){if(pk)return s0;pk=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return s0=t,s0}var a0,dk;function YH(){if(dk)return a0;dk=1;function e(t){return this.__data__.has(t)}return a0=e,a0}var o0,hk;function XH(){if(hk)return o0;hk=1;var e=SO(),t=GH(),r=YH();function n(i){var s=-1,a=i==null?0:i.length;for(this.__data__=new e;++s<a;)this.add(i[s])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,o0=n,o0}var u0,mk;function O6(){if(mk)return u0;mk=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return u0=e,u0}var c0,gk;function ZH(){if(gk)return c0;gk=1;function e(t,r){return t.has(r)}return c0=e,c0}var l0,yk;function C6(){if(yk)return l0;yk=1;var e=XH(),t=O6(),r=ZH(),n=1,i=2;function s(a,o,u,c,l,f){var h=u&n,d=a.length,g=o.length;if(d!=g&&!(h&&g>d))return!1;var y=f.get(a),v=f.get(o);if(y&&v)return y==o&&v==a;var _=-1,b=!0,E=u&i?new e:void 0;for(f.set(a,o),f.set(o,a);++_<d;){var w=a[_],S=o[_];if(c)var A=h?c(S,w,_,o,a,f):c(w,S,_,a,o,f);if(A!==void 0){if(A)continue;b=!1;break}if(E){if(!t(o,function(R,T){if(!r(E,T)&&(w===R||l(w,R,u,c,f)))return E.push(T)})){b=!1;break}}else if(!(w===S||l(w,S,u,c,f))){b=!1;break}}return f.delete(a),f.delete(o),b}return l0=s,l0}var f0,vk;function QH(){if(vk)return f0;vk=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,s){n[++r]=[s,i]}),n}return f0=e,f0}var p0,bk;function eG(){if(bk)return p0;bk=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return p0=e,p0}var d0,_k;function tG(){if(_k)return d0;_k=1;var e=Yo(),t=f6(),r=Go(),n=C6(),i=QH(),s=eG(),a=1,o=2,u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Map]",h="[object Number]",d="[object RegExp]",g="[object Set]",y="[object String]",v="[object Symbol]",_="[object ArrayBuffer]",b="[object DataView]",E=e?e.prototype:void 0,w=E?E.valueOf:void 0;function S(A,R,T,O,D,N,$){switch(T){case b:if(A.byteLength!=R.byteLength||A.byteOffset!=R.byteOffset)return!1;A=A.buffer,R=R.buffer;case _:return!(A.byteLength!=R.byteLength||!N(new t(A),new t(R)));case u:case c:case h:return r(+A,+R);case l:return A.name==R.name&&A.message==R.message;case d:case y:return A==R+"";case f:var M=i;case g:var X=O&a;if(M||(M=s),A.size!=R.size&&!X)return!1;var ee=$.get(A);if(ee)return ee==R;O|=o,$.set(A,R);var J=n(M(A),M(R),O,D,N,$);return $.delete(A),J;case v:if(w)return w.call(A)==w.call(R)}return!1}return d0=S,d0}var h0,Ek;function PO(){if(Ek)return h0;Ek=1;function e(t,r){for(var n=-1,i=r.length,s=t.length;++n<i;)t[s+n]=r[n];return t}return h0=e,h0}var m0,Sk;function R6(){if(Sk)return m0;Sk=1;var e=PO(),t=Mr();function r(n,i,s){var a=i(n);return t(n)?a:e(a,s(n))}return m0=r,m0}var g0,wk;function rG(){if(wk)return g0;wk=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=0,a=[];++n<i;){var o=t[n];r(o,n,t)&&(a[s++]=o)}return a}return g0=e,g0}var y0,xk;function I6(){if(xk)return y0;xk=1;function e(){return[]}return y0=e,y0}var v0,Ak;function kO(){if(Ak)return v0;Ak=1;var e=rG(),t=I6(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(o){return n.call(a,o)}))}:t;return v0=s,v0}var b0,Ok;function nG(){if(Ok)return b0;Ok=1;var e=d6(),t=e(Object.keys,Object);return b0=t,b0}var _0,Ck;function NO(){if(Ck)return _0;Ck=1;var e=Zd(),t=nG(),r=Object.prototype,n=r.hasOwnProperty;function i(s){if(!e(s))return t(s);var a=[];for(var o in Object(s))n.call(s,o)&&o!="constructor"&&a.push(o);return a}return _0=i,_0}var E0,Rk;function Zo(){if(Rk)return E0;Rk=1;var e=g6(),t=NO(),r=$a();function n(i){return r(i)?e(i):t(i)}return E0=n,E0}var S0,Ik;function T6(){if(Ik)return S0;Ik=1;var e=R6(),t=kO(),r=Zo();function n(i){return e(i,r,t)}return S0=n,S0}var w0,Tk;function iG(){if(Tk)return w0;Tk=1;var e=T6(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o,u,c,l){var f=o&t,h=e(s),d=h.length,g=e(a),y=g.length;if(d!=y&&!f)return!1;for(var v=d;v--;){var _=h[v];if(!(f?_ in a:n.call(a,_)))return!1}var b=l.get(s),E=l.get(a);if(b&&E)return b==a&&E==s;var w=!0;l.set(s,a),l.set(a,s);for(var S=f;++v<d;){_=h[v];var A=s[_],R=a[_];if(u)var T=f?u(R,A,_,a,s,l):u(A,R,_,s,a,l);if(!(T===void 0?A===R||c(A,R,o,u,l):T)){w=!1;break}S||(S=_=="constructor")}if(w&&!S){var O=s.constructor,D=a.constructor;O!=D&&"constructor"in s&&"constructor"in a&&!(typeof O=="function"&&O instanceof O&&typeof D=="function"&&D instanceof D)&&(w=!1)}return l.delete(s),l.delete(a),w}return w0=i,w0}var x0,jk;function sG(){if(jk)return x0;jk=1;var e=qa(),t=fn(),r=e(t,"DataView");return x0=r,x0}var A0,Pk;function aG(){if(Pk)return A0;Pk=1;var e=qa(),t=fn(),r=e(t,"Promise");return A0=r,A0}var O0,kk;function oG(){if(kk)return O0;kk=1;var e=qa(),t=fn(),r=e(t,"Set");return O0=r,O0}var C0,Nk;function j6(){if(Nk)return C0;Nk=1;var e=qa(),t=fn(),r=e(t,"WeakMap");return C0=r,C0}var R0,Mk;function Qo(){if(Mk)return R0;Mk=1;var e=sG(),t=EO(),r=aG(),n=oG(),i=j6(),s=Gi(),a=a6(),o="[object Map]",u="[object Object]",c="[object Promise]",l="[object Set]",f="[object WeakMap]",h="[object DataView]",d=a(e),g=a(t),y=a(r),v=a(n),_=a(i),b=s;return(e&&b(new e(new ArrayBuffer(1)))!=h||t&&b(new t)!=o||r&&b(r.resolve())!=c||n&&b(new n)!=l||i&&b(new i)!=f)&&(b=function(E){var w=s(E),S=w==u?E.constructor:void 0,A=S?a(S):"";if(A)switch(A){case d:return h;case g:return o;case y:return c;case v:return l;case _:return f}return w}),R0=b,R0}var I0,Dk;function uG(){if(Dk)return I0;Dk=1;var e=Yd(),t=C6(),r=tG(),n=iG(),i=Qo(),s=Mr(),a=Uc(),o=eh(),u=1,c="[object Arguments]",l="[object Array]",f="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function g(y,v,_,b,E,w){var S=s(y),A=s(v),R=S?l:i(y),T=A?l:i(v);R=R==c?f:R,T=T==c?f:T;var O=R==f,D=T==f,N=R==T;if(N&&a(y)){if(!a(v))return!1;S=!0,O=!1}if(N&&!O)return w||(w=new e),S||o(y)?t(y,v,_,b,E,w):r(y,v,R,_,b,E,w);if(!(_&u)){var $=O&&d.call(y,"__wrapped__"),M=D&&d.call(v,"__wrapped__");if($||M){var X=$?y.value():y,ee=M?v.value():v;return w||(w=new e),E(X,ee,_,b,w)}}return N?(w||(w=new e),n(y,v,_,b,E,w)):!1}return I0=g,I0}var T0,qk;function MO(){if(qk)return T0;qk=1;var e=uG(),t=dn();function r(n,i,s,a,o){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,s,a,r,o)}return T0=r,T0}var j0,$k;function cG(){if($k)return j0;$k=1;var e=Yd(),t=MO(),r=1,n=2;function i(s,a,o,u){var c=o.length,l=c,f=!u;if(s==null)return!l;for(s=Object(s);c--;){var h=o[c];if(f&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++c<l;){h=o[c];var d=h[0],g=s[d],y=h[1];if(f&&h[2]){if(g===void 0&&!(d in s))return!1}else{var v=new e;if(u)var _=u(g,y,d,s,a,v);if(!(_===void 0?t(y,g,r|n,u,v):_))return!1}}return!0}return j0=i,j0}var P0,Fk;function P6(){if(Fk)return P0;Fk=1;var e=pn();function t(r){return r===r&&!e(r)}return P0=t,P0}var k0,Bk;function lG(){if(Bk)return k0;Bk=1;var e=P6(),t=Zo();function r(n){for(var i=t(n),s=i.length;s--;){var a=i[s],o=n[a];i[s]=[a,o,e(o)]}return i}return k0=r,k0}var N0,Lk;function k6(){if(Lk)return N0;Lk=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return N0=e,N0}var M0,Uk;function fG(){if(Uk)return M0;Uk=1;var e=cG(),t=lG(),r=k6();function n(i){var s=t(i);return s.length==1&&s[0][2]?r(s[0][0],s[0][1]):function(a){return a===i||e(a,i,s)}}return M0=n,M0}var D0,Vk;function DO(){if(Vk)return D0;Vk=1;var e=Mr(),t=Jc(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(s,a){if(e(s))return!1;var o=typeof s;return o=="number"||o=="symbol"||o=="boolean"||s==null||t(s)?!0:n.test(s)||!r.test(s)||a!=null&&s in Object(a)}return D0=i,D0}var q0,zk;function pG(){if(zk)return q0;zk=1;var e=A6(),t=500;function r(n){var i=e(n,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return q0=r,q0}var $0,Wk;function N6(){if(Wk)return $0;Wk=1;var e=pG(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(a,o,u,c){s.push(u?c.replace(r,"$1"):o||a)}),s});return $0=n,$0}var F0,Jk;function Kc(){if(Jk)return F0;Jk=1;var e=Mr(),t=DO(),r=N6(),n=bs();function i(s,a){return e(s)?s:t(s,a)?[s]:r(n(s))}return F0=i,F0}var B0,Kk;function Fa(){if(Kk)return B0;Kk=1;var e=Jc();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return B0=t,B0}var L0,Hk;function qO(){if(Hk)return L0;Hk=1;var e=Kc(),t=Fa();function r(n,i){i=e(i,n);for(var s=0,a=i.length;n!=null&&s<a;)n=n[t(i[s++])];return s&&s==a?n:void 0}return L0=r,L0}var U0,Gk;function M6(){if(Gk)return U0;Gk=1;var e=qO();function t(r,n,i){var s=r==null?void 0:e(r,n);return s===void 0?i:s}return U0=t,U0}var V0,Yk;function dG(){if(Yk)return V0;Yk=1;function e(t,r){return t!=null&&r in Object(t)}return V0=e,V0}var z0,Xk;function D6(){if(Xk)return z0;Xk=1;var e=Kc(),t=Lc(),r=Mr(),n=Vc(),i=OO(),s=Fa();function a(o,u,c){u=e(u,o);for(var l=-1,f=u.length,h=!1;++l<f;){var d=s(u[l]);if(!(h=o!=null&&c(o,d)))break;o=o[d]}return h||++l!=f?h:(f=o==null?0:o.length,!!f&&i(f)&&n(d,f)&&(r(o)||t(o)))}return z0=a,z0}var W0,Zk;function hG(){if(Zk)return W0;Zk=1;var e=dG(),t=D6();function r(n,i){return n!=null&&t(n,i,e)}return W0=r,W0}var J0,Qk;function mG(){if(Qk)return J0;Qk=1;var e=MO(),t=M6(),r=hG(),n=DO(),i=P6(),s=k6(),a=Fa(),o=1,u=2;function c(l,f){return n(l)&&i(f)?s(a(l),f):function(h){var d=t(h,l);return d===void 0&&d===f?r(h,l):e(f,d,o|u)}}return J0=c,J0}var K0,eN;function gG(){if(eN)return K0;eN=1;function e(t){return function(r){return r==null?void 0:r[t]}}return K0=e,K0}var H0,tN;function yG(){if(tN)return H0;tN=1;var e=qO();function t(r){return function(n){return e(n,r)}}return H0=t,H0}var G0,rN;function vG(){if(rN)return G0;rN=1;var e=gG(),t=yG(),r=DO(),n=Fa();function i(s){return r(s)?e(n(s)):t(s)}return G0=i,G0}var Y0,nN;function Hc(){if(nN)return Y0;nN=1;var e=fG(),t=mG(),r=Wc(),n=Mr(),i=vG();function s(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):i(a)}return Y0=s,Y0}var X0,iN;function bG(){if(iN)return X0;iN=1;var e=Hc(),t=$a(),r=Zo();function n(i){return function(s,a,o){var u=Object(s);if(!t(s)){var c=e(a,3);s=r(s),a=function(f){return c(u[f],f,u)}}var l=i(s,a,o);return l>-1?u[c?s[l]:l]:void 0}}return X0=n,X0}var Z0,sN;function q6(){if(sN)return Z0;sN=1;function e(t,r,n,i){for(var s=t.length,a=n+(i?1:-1);i?a--:++a<s;)if(r(t[a],a,t))return a;return-1}return Z0=e,Z0}var Q0,aN;function _G(){if(aN)return Q0;aN=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Q0=t,Q0}var eb,oN;function EG(){if(oN)return eb;oN=1;var e=_G(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return eb=r,eb}var tb,uN;function $6(){if(uN)return tb;uN=1;var e=EG(),t=pn(),r=Jc(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt;function u(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var l=typeof c.valueOf=="function"?c.valueOf():c;c=t(l)?l+"":l}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=s.test(c);return f||a.test(c)?o(c.slice(2),f?2:8):i.test(c)?n:+c}return tb=u,tb}var rb,cN;function SG(){if(cN)return rb;cN=1;var e=$6(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var s=i<0?-1:1;return s*r}return i===i?i:0}return rb=n,rb}var nb,lN;function $O(){if(lN)return nb;lN=1;var e=SG();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return nb=t,nb}var ib,fN;function wG(){if(fN)return ib;fN=1;var e=q6(),t=Hc(),r=$O(),n=Math.max;function i(s,a,o){var u=s==null?0:s.length;if(!u)return-1;var c=o==null?0:r(o);return c<0&&(c=n(u+c,0)),e(s,t(a,3),c)}return ib=i,ib}var sb,pN;function xG(){if(pN)return sb;pN=1;var e=bG(),t=wG(),r=e(t);return sb=r,sb}var AG=xG();const OG=Ve.getDefaultExportFromCjs(AG);var ab,dN;function CG(){if(dN)return ab;dN=1;var e=c6(),t=Zo();function r(n,i){return n&&e(n,i,t)}return ab=r,ab}var ob,hN;function RG(){if(hN)return ob;hN=1;var e=$a();function t(r,n){return function(i,s){if(i==null)return i;if(!e(i))return r(i,s);for(var a=i.length,o=n?a:-1,u=Object(i);(n?o--:++o<a)&&s(u[o],o,u)!==!1;);return i}}return ob=t,ob}var ub,mN;function F6(){if(mN)return ub;mN=1;var e=CG(),t=RG(),r=t(e);return ub=r,ub}var cb,gN;function IG(){if(gN)return cb;gN=1;var e=F6();function t(r,n){var i;return e(r,function(s,a,o){return i=n(s,a,o),!i}),!!i}return cb=t,cb}var lb,yN;function TG(){if(yN)return lb;yN=1;var e=O6(),t=Hc(),r=IG(),n=Mr(),i=_6();function s(a,o,u){var c=n(a)?e:r;return u&&i(a,o,u)&&(o=void 0),c(a,t(o,3))}return lb=s,lb}var jG=TG();const PG=Ve.getDefaultExportFromCjs(jG);var kG=Go();const NG=Ve.getDefaultExportFromCjs(kG);var MG=Fc();const DG=Ve.getDefaultExportFromCjs(MG);var up={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */var qG=up.exports,vN;function $G(){return vN||(vN=1,(function(e,t){(function(r,n){e.exports=n(r)})(typeof Ve.commonjsGlobal<"u"?Ve.commonjsGlobal:qG,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(i){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var s=String(i),a=s.length,o=-1,u,c="",l=s.charCodeAt(0);++o<a;){if(u=s.charCodeAt(o),u==0){c+="�";continue}if(u>=1&&u<=31||u==127||o==0&&u>=48&&u<=57||o==1&&u>=48&&u<=57&&l==45){c+="\\"+u.toString(16)+" ";continue}if(o==0&&a==1&&u==45){c+="\\"+s.charAt(o);continue}if(u>=128||u==45||u==95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122){c+=s.charAt(o);continue}c+="\\"+s.charAt(o)}return c};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})})(up)),up.exports}var FG=$G();const BG=Ve.getDefaultExportFromCjs(FG);var fb,bN;function LG(){return bN||(bN=1,fb=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),fb}var Bf={},_N;function UG(){if(_N)return Bf;_N=1;var e=Object.prototype.hasOwnProperty,t;function r(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch{return null}}function n(a){try{return encodeURIComponent(a)}catch{return null}}function i(a){for(var o=/([^=?#&]+)=?([^&]*)/g,u={},c;c=o.exec(a);){var l=r(c[1]),f=r(c[2]);l===null||f===null||l in u||(u[l]=f)}return u}function s(a,o){o=o||"";var u=[],c,l;typeof o!="string"&&(o="?");for(l in a)if(e.call(a,l)){if(c=a[l],!c&&(c===null||c===t||isNaN(c))&&(c=""),l=n(l),c=n(c),l===null||c===null)continue;u.push(l+"="+c)}return u.length?o+u.join("&"):""}return Bf.stringify=s,Bf.parse=i,Bf}var pb,EN;function VG(){if(EN)return pb;EN=1;var e=LG(),t=UG(),r=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,a=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,o=/^[a-zA-Z]:/;function u(b){return(b||"").toString().replace(r,"")}var c=[["#","hash"],["?","query"],function(E,w){return h(w.protocol)?E.replace(/\\/g,"/"):E},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function f(b){var E;typeof window<"u"?E=window:typeof Ve.commonjsGlobal<"u"?E=Ve.commonjsGlobal:typeof self<"u"?E=self:E={};var w=E.location||{};b=b||w;var S={},A=typeof b,R;if(b.protocol==="blob:")S=new y(unescape(b.pathname),{});else if(A==="string"){S=new y(b,{});for(R in l)delete S[R]}else if(A==="object"){for(R in b)R in l||(S[R]=b[R]);S.slashes===void 0&&(S.slashes=i.test(b.href))}return S}function h(b){return b==="file:"||b==="ftp:"||b==="http:"||b==="https:"||b==="ws:"||b==="wss:"}function d(b,E){b=u(b),b=b.replace(n,""),E=E||{};var w=a.exec(b),S=w[1]?w[1].toLowerCase():"",A=!!w[2],R=!!w[3],T=0,O;return A?R?(O=w[2]+w[3]+w[4],T=w[2].length+w[3].length):(O=w[2]+w[4],T=w[2].length):R?(O=w[3]+w[4],T=w[3].length):O=w[4],S==="file:"?T>=2&&(O=O.slice(2)):h(S)?O=w[4]:S?A&&(O=O.slice(2)):T>=2&&h(E.protocol)&&(O=w[4]),{protocol:S,slashes:A||h(S),slashesCount:T,rest:O}}function g(b,E){if(b==="")return E;for(var w=(E||"/").split("/").slice(0,-1).concat(b.split("/")),S=w.length,A=w[S-1],R=!1,T=0;S--;)w[S]==="."?w.splice(S,1):w[S]===".."?(w.splice(S,1),T++):T&&(S===0&&(R=!0),w.splice(S,1),T--);return R&&w.unshift(""),(A==="."||A==="..")&&w.push(""),w.join("/")}function y(b,E,w){if(b=u(b),b=b.replace(n,""),!(this instanceof y))return new y(b,E,w);var S,A,R,T,O,D,N=c.slice(),$=typeof E,M=this,X=0;for($!=="object"&&$!=="string"&&(w=E,E=null),w&&typeof w!="function"&&(w=t.parse),E=f(E),A=d(b||"",E),S=!A.protocol&&!A.slashes,M.slashes=A.slashes||S&&E.slashes,M.protocol=A.protocol||E.protocol||"",b=A.rest,(A.protocol==="file:"&&(A.slashesCount!==2||o.test(b))||!A.slashes&&(A.protocol||A.slashesCount<2||!h(M.protocol)))&&(N[3]=[/(.*)/,"pathname"]);X<N.length;X++){if(T=N[X],typeof T=="function"){b=T(b,M);continue}R=T[0],D=T[1],R!==R?M[D]=b:typeof R=="string"?(O=R==="@"?b.lastIndexOf(R):b.indexOf(R),~O&&(typeof T[2]=="number"?(M[D]=b.slice(0,O),b=b.slice(O+T[2])):(M[D]=b.slice(O),b=b.slice(0,O)))):(O=R.exec(b))&&(M[D]=O[1],b=b.slice(0,O.index)),M[D]=M[D]||S&&T[3]&&E[D]||"",T[4]&&(M[D]=M[D].toLowerCase())}w&&(M.query=w(M.query)),S&&E.slashes&&M.pathname.charAt(0)!=="/"&&(M.pathname!==""||E.pathname!=="")&&(M.pathname=g(M.pathname,E.pathname)),M.pathname.charAt(0)!=="/"&&h(M.protocol)&&(M.pathname="/"+M.pathname),e(M.port,M.protocol)||(M.host=M.hostname,M.port=""),M.username=M.password="",M.auth&&(O=M.auth.indexOf(":"),~O?(M.username=M.auth.slice(0,O),M.username=encodeURIComponent(decodeURIComponent(M.username)),M.password=M.auth.slice(O+1),M.password=encodeURIComponent(decodeURIComponent(M.password))):M.username=encodeURIComponent(decodeURIComponent(M.auth)),M.auth=M.password?M.username+":"+M.password:M.username),M.origin=M.protocol!=="file:"&&h(M.protocol)&&M.host?M.protocol+"//"+M.host:"null",M.href=M.toString()}function v(b,E,w){var S=this;switch(b){case"query":typeof E=="string"&&E.length&&(E=(w||t.parse)(E)),S[b]=E;break;case"port":S[b]=E,e(E,S.protocol)?E&&(S.host=S.hostname+":"+E):(S.host=S.hostname,S[b]="");break;case"hostname":S[b]=E,S.port&&(E+=":"+S.port),S.host=E;break;case"host":S[b]=E,s.test(E)?(E=E.split(":"),S.port=E.pop(),S.hostname=E.join(":")):(S.hostname=E,S.port="");break;case"protocol":S.protocol=E.toLowerCase(),S.slashes=!w;break;case"pathname":case"hash":if(E){var A=b==="pathname"?"/":"#";S[b]=E.charAt(0)!==A?A+E:E}else S[b]=E;break;case"username":case"password":S[b]=encodeURIComponent(E);break;case"auth":var R=E.indexOf(":");~R?(S.username=E.slice(0,R),S.username=encodeURIComponent(decodeURIComponent(S.username)),S.password=E.slice(R+1),S.password=encodeURIComponent(decodeURIComponent(S.password))):S.username=encodeURIComponent(decodeURIComponent(E))}for(var T=0;T<c.length;T++){var O=c[T];O[4]&&(S[O[1]]=S[O[1]].toLowerCase())}return S.auth=S.password?S.username+":"+S.password:S.username,S.origin=S.protocol!=="file:"&&h(S.protocol)&&S.host?S.protocol+"//"+S.host:"null",S.href=S.toString(),S}function _(b){(!b||typeof b!="function")&&(b=t.stringify);var E,w=this,S=w.host,A=w.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var R=A+(w.protocol&&w.slashes||h(w.protocol)?"//":"");return w.username?(R+=w.username,w.password&&(R+=":"+w.password),R+="@"):w.password?(R+=":"+w.password,R+="@"):w.protocol!=="file:"&&h(w.protocol)&&!S&&w.pathname!=="/"&&(R+="@"),(S[S.length-1]===":"||s.test(w.hostname)&&!w.port)&&(S+=":"),R+=S+w.pathname,E=typeof w.query=="object"?b(w.query):w.query,E&&(R+=E.charAt(0)!=="?"?"?"+E:E),w.hash&&(R+=w.hash),R}return y.prototype={set:v,toString:_},y.extractProtocol=d,y.location=f,y.trimLeft=u,y.qs=t,pb=y,pb}var zG=VG();const WG=Ve.getDefaultExportFromCjs(zG);var JG=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const i={};e(i)===i&&(n=!0)}catch{}if(n){let i;try{throw new Error}catch(s){({stack:i}=s)}console.warn(`The result function returned its own inputs without modification. e.g
26
+ \`createSelector([state => state.todos], todos => todos)\`
27
+ This could lead to inefficient memoization and unnecessary re-renders.
28
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},KG=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:s,inputSelectorResultsCopy:a}=e,o=n(()=>({}),...i);if(!(o.apply(null,s)===o.apply(null,a))){let c;try{throw new Error}catch(l){({stack:c}=l)}console.warn(`An input selector returned a different result when passed same arguments.
29
+ This means your output selector will likely run more frequently than intended.
30
+ Avoid returning a new reference inside your input selector, e.g.
31
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:a,stack:c})}},HG={inputStabilityCheck:"once",identityFunctionCheck:"once"};function GG(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function YG(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function XG(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var SN=e=>Array.isArray(e)?e:[e];function ZG(e){const t=Array.isArray(e[0])?e[0]:e;return XG(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function wN(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var QG=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...HG,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:JG},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:KG}}},eY=class{constructor(e){this.value=e}deref(){return this.value}},tY=typeof WeakRef<"u"?WeakRef:eY,rY=0,xN=1;function Lf(){return{s:rY,v:void 0,o:null,p:null}}function B6(e,t={}){let r=Lf();const{resultEqualityCheck:n}=t;let i,s=0;function a(){var f;let o=r;const{length:u}=arguments;for(let h=0,d=u;h<d;h++){const g=arguments[h];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=o.o;y===null&&(o.o=y=new WeakMap);const v=y.get(g);v===void 0?(o=Lf(),y.set(g,o)):o=v}else{let y=o.p;y===null&&(o.p=y=new Map);const v=y.get(g);v===void 0?(o=Lf(),y.set(g,o)):o=v}}const c=o;let l;if(o.s===xN)l=o.v;else if(l=e.apply(null,arguments),s++,n){const h=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;h!=null&&n(h,l)&&(l=h,s!==0&&s--),i=typeof l=="object"&&l!==null||typeof l=="function"?new tY(l):l}return c.s=xN,c.v=l,l}return a.clearCache=()=>{r=Lf(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function nY(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let s=0,a=0,o,u={},c=i.pop();typeof c=="object"&&(u=c,c=i.pop()),GG(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...r,...u},{memoize:f,memoizeOptions:h=[],argsMemoize:d=B6,argsMemoizeOptions:g=[],devModeChecks:y={}}=l,v=SN(h),_=SN(g),b=ZG(i),E=f(function(){return s++,c.apply(null,arguments)},...v);let w=!0;const S=d(function(){a++;const R=wN(b,arguments);if(o=E.apply(null,R),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:T,inputStabilityCheck:O}=QG(w,y);if(T.shouldRun&&T.run(c,R,o),O.shouldRun){const D=wN(b,arguments);O.run({inputSelectorResults:R,inputSelectorResultsCopy:D},{memoize:f,memoizeOptions:v},arguments)}w&&(w=!1)}return o},..._);return Object.assign(S,{resultFunc:c,memoizedResultFunc:E,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>o,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:d})};return Object.assign(n,{withTypes:()=>n}),n}var L6=nY(B6),iY=Object.assign((e,t=L6)=>{YG(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(s=>e[s]);return t(n,(...s)=>s.reduce((a,o,u)=>(a[r[u]]=o,a),{}))},{withTypes:()=>iY}),db,AN;function FO(){if(AN)return db;AN=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return db=e,db}var hb,ON;function U6(){if(ON)return hb;ON=1;var e=Xo(),t=Zo();function r(n,i){return n&&e(i,t(i),n)}return hb=r,hb}var mb,CN;function sY(){if(CN)return mb;CN=1;var e=Xo(),t=zc();function r(n,i){return n&&e(i,t(i),n)}return mb=r,mb}var gb,RN;function aY(){if(RN)return gb;RN=1;var e=Xo(),t=kO();function r(n,i){return e(n,t(n),i)}return gb=r,gb}var yb,IN;function V6(){if(IN)return yb;IN=1;var e=PO(),t=AO(),r=kO(),n=I6(),i=Object.getOwnPropertySymbols,s=i?function(a){for(var o=[];a;)e(o,r(a)),a=t(a);return o}:n;return yb=s,yb}var vb,TN;function oY(){if(TN)return vb;TN=1;var e=Xo(),t=V6();function r(n,i){return e(n,t(n),i)}return vb=r,vb}var bb,jN;function z6(){if(jN)return bb;jN=1;var e=R6(),t=V6(),r=zc();function n(i){return e(i,r,t)}return bb=n,bb}var _b,PN;function uY(){if(PN)return _b;PN=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,s=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(s.index=n.index,s.input=n.input),s}return _b=r,_b}var Eb,kN;function cY(){if(kN)return Eb;kN=1;var e=xO();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Eb=t,Eb}var Sb,NN;function lY(){if(NN)return Sb;NN=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return Sb=t,Sb}var wb,MN;function fY(){if(MN)return wb;MN=1;var e=Yo(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return wb=n,wb}var xb,DN;function pY(){if(DN)return xb;DN=1;var e=xO(),t=cY(),r=lY(),n=fY(),i=p6(),s="[object Boolean]",a="[object Date]",o="[object Map]",u="[object Number]",c="[object RegExp]",l="[object Set]",f="[object String]",h="[object Symbol]",d="[object ArrayBuffer]",g="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",_="[object Int8Array]",b="[object Int16Array]",E="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",R="[object Uint32Array]";function T(O,D,N){var $=O.constructor;switch(D){case d:return e(O);case s:case a:return new $(+O);case g:return t(O,N);case y:case v:case _:case b:case E:case w:case S:case A:case R:return i(O,N);case o:return new $;case u:case f:return new $(O);case c:return r(O);case l:return new $;case h:return n(O)}}return xb=T,xb}var Ab,qN;function dY(){if(qN)return Ab;qN=1;var e=Qo(),t=dn(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return Ab=n,Ab}var Ob,$N;function hY(){if($N)return Ob;$N=1;var e=dY(),t=CO(),r=RO(),n=r&&r.isMap,i=n?t(n):e;return Ob=i,Ob}var Cb,FN;function mY(){if(FN)return Cb;FN=1;var e=Qo(),t=dn(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Cb=n,Cb}var Rb,BN;function gY(){if(BN)return Rb;BN=1;var e=mY(),t=CO(),r=RO(),n=r&&r.isSet,i=n?t(n):e;return Rb=i,Rb}var Ib,LN;function BO(){if(LN)return Ib;LN=1;var e=Yd(),t=FO(),r=th(),n=U6(),i=sY(),s=l6(),a=Bc(),o=aY(),u=oY(),c=T6(),l=z6(),f=Qo(),h=uY(),d=pY(),g=h6(),y=Mr(),v=Uc(),_=hY(),b=pn(),E=gY(),w=Zo(),S=zc(),A=1,R=2,T=4,O="[object Arguments]",D="[object Array]",N="[object Boolean]",$="[object Date]",M="[object Error]",X="[object Function]",ee="[object GeneratorFunction]",J="[object Map]",Q="[object Number]",te="[object Object]",re="[object RegExp]",L="[object Set]",K="[object String]",ne="[object Symbol]",ce="[object WeakMap]",ue="[object ArrayBuffer]",se="[object DataView]",V="[object Float32Array]",z="[object Float64Array]",de="[object Int8Array]",ge="[object Int16Array]",Ce="[object Int32Array]",Pe="[object Uint8Array]",pe="[object Uint8ClampedArray]",Te="[object Uint16Array]",Le="[object Uint32Array]",be={};be[O]=be[D]=be[ue]=be[se]=be[N]=be[$]=be[V]=be[z]=be[de]=be[ge]=be[Ce]=be[J]=be[Q]=be[te]=be[re]=be[L]=be[K]=be[ne]=be[Pe]=be[pe]=be[Te]=be[Le]=!0,be[M]=be[X]=be[ce]=!1;function we(xe,U,I,k,W,ie){var oe,me=U&A,Ne=U&R,Xe=U&T;if(I&&(oe=W?I(xe,k,W,ie):I(xe)),oe!==void 0)return oe;if(!b(xe))return xe;var B=y(xe);if(B){if(oe=h(xe),!me)return a(xe,oe)}else{var C=f(xe),j=C==X||C==ee;if(v(xe))return s(xe,me);if(C==te||C==O||j&&!W){if(oe=Ne||j?{}:g(xe),!me)return Ne?u(xe,i(oe,xe)):o(xe,n(oe,xe))}else{if(!be[C])return W?xe:{};oe=d(xe,C,me)}}ie||(ie=new e);var Z=ie.get(xe);if(Z)return Z;ie.set(xe,oe),E(xe)?xe.forEach(function(Oe){oe.add(we(Oe,U,I,Oe,xe,ie))}):_(xe)&&xe.forEach(function(Oe,rt){oe.set(rt,we(Oe,U,I,rt,xe,ie))});var fe=Xe?Ne?l:c:Ne?S:w,ve=B?void 0:fe(xe);return t(ve||xe,function(Oe,rt){ve&&(rt=Oe,Oe=xe[rt]),r(oe,rt,we(Oe,U,I,rt,xe,ie))}),oe}return Ib=we,Ib}var Tb,UN;function yY(){if(UN)return Tb;UN=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Tb=e,Tb}var jb,VN;function vY(){if(VN)return jb;VN=1;var e=qO(),t=E6();function r(n,i){return i.length<2?n:e(n,t(i,0,-1))}return jb=r,jb}var Pb,zN;function bY(){if(zN)return Pb;zN=1;var e=Kc(),t=yY(),r=vY(),n=Fa();function i(s,a){return a=e(a,s),s=r(s,a),s==null||delete s[n(t(a))]}return Pb=i,Pb}var kb,WN;function _Y(){if(WN)return kb;WN=1;var e=Qd();function t(r){return e(r)?void 0:r}return kb=t,kb}var Nb,JN;function EY(){if(JN)return Nb;JN=1;var e=Yo(),t=Lc(),r=Mr(),n=e?e.isConcatSpreadable:void 0;function i(s){return r(s)||t(s)||!!(n&&s&&s[n])}return Nb=i,Nb}var Mb,KN;function SY(){if(KN)return Mb;KN=1;var e=PO(),t=EY();function r(n,i,s,a,o){var u=-1,c=n.length;for(s||(s=t),o||(o=[]);++u<c;){var l=n[u];i>0&&s(l)?i>1?r(l,i-1,s,a,o):e(o,l):a||(o[o.length]=l)}return o}return Mb=r,Mb}var Db,HN;function wY(){if(HN)return Db;HN=1;var e=SY();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Db=t,Db}var qb,GN;function W6(){if(GN)return qb;GN=1;var e=wY(),t=y6(),r=TO();function n(i){return r(t(i,void 0,e),i+"")}return qb=n,qb}var $b,YN;function xY(){if(YN)return $b;YN=1;var e=jO(),t=BO(),r=bY(),n=Kc(),i=Xo(),s=_Y(),a=W6(),o=z6(),u=1,c=2,l=4,f=a(function(h,d){var g={};if(h==null)return g;var y=!1;d=e(d,function(_){return _=n(_,h),y||(y=_.length>1),_}),i(h,o(h),g),y&&(g=t(g,u|c|l,s));for(var v=d.length;v--;)r(g,d[v]);return g});return $b=f,$b}var AY=xY();const OY=Ve.getDefaultExportFromCjs(AY);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function J6(e){return typeof e>"u"||e===null}function CY(e){return typeof e=="object"&&e!==null}function RY(e){return Array.isArray(e)?e:J6(e)?[]:[e]}function IY(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function TY(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function jY(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var PY=J6,kY=CY,NY=RY,MY=TY,DY=jY,qY=IY,Ir={isNothing:PY,isObject:kY,toArray:NY,repeat:MY,isNegativeZero:DY,extend:qY};function K6(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
32
+
33
+ `+e.mark.snippet),n+" "+r):n}function cc(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=K6(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}cc.prototype=Object.create(Error.prototype);cc.prototype.constructor=cc;cc.prototype.toString=function(t){return this.name+": "+K6(this,t)};var on=cc;function Fb(e,t,r,n,i){var s="",a="",o=Math.floor(i/2)-1;return n-t>o&&(s=" ... ",t=n-o+s.length),r-n>o&&(a=" ...",r=n+o-a.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+s.length}}function Bb(e,t){return Ir.repeat(" ",t-e.length)+e}function $Y(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,a=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",u,c,l=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+l+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)c=Fb(e.buffer,n[a-u],i[a-u],e.position-(n[a]-n[a-u]),f),o=Ir.repeat(" ",t.indent)+Bb((e.line-u+1).toString(),l)+" | "+c.str+`
34
+ `+o;for(c=Fb(e.buffer,n[a],i[a],e.position,f),o+=Ir.repeat(" ",t.indent)+Bb((e.line+1).toString(),l)+" | "+c.str+`
35
+ `,o+=Ir.repeat("-",t.indent+l+3+c.pos)+`^
36
+ `,u=1;u<=t.linesAfter&&!(a+u>=i.length);u++)c=Fb(e.buffer,n[a+u],i[a+u],e.position-(n[a]-n[a+u]),f),o+=Ir.repeat(" ",t.indent)+Bb((e.line+u+1).toString(),l)+" | "+c.str+`
37
+ `;return o.replace(/\n$/,"")}var FY=$Y,BY=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],LY=["scalar","sequence","mapping"];function UY(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function VY(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(BY.indexOf(r)===-1)throw new on('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=UY(t.styleAliases||null),LY.indexOf(this.kind)===-1)throw new on('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Vr=VY;function XN(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,a){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=a)}),r[i]=n}),r}function zY(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function ix(e){return this.extend(e)}ix.prototype.extend=function(t){var r=[],n=[];if(t instanceof Vr)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new on("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Vr))throw new on("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new on("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new on("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Vr))throw new on("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(ix.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=XN(i,"implicit"),i.compiledExplicit=XN(i,"explicit"),i.compiledTypeMap=zY(i.compiledImplicit,i.compiledExplicit),i};var H6=ix,G6=new Vr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Y6=new Vr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),X6=new Vr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Z6=new H6({explicit:[G6,Y6,X6]});function WY(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function JY(){return null}function KY(e){return e===null}var Q6=new Vr("tag:yaml.org,2002:null",{kind:"scalar",resolve:WY,construct:JY,predicate:KY,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function HY(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function GY(e){return e==="true"||e==="True"||e==="TRUE"}function YY(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var e8=new Vr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:HY,construct:GY,predicate:YY,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function XY(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ZY(e){return 48<=e&&e<=55}function QY(e){return 48<=e&&e<=57}function eX(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!XY(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!ZY(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!QY(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function tX(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function rX(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ir.isNegativeZero(e)}var t8=new Vr("tag:yaml.org,2002:int",{kind:"scalar",resolve:eX,construct:tX,predicate:rX,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),nX=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function iX(e){return!(e===null||!nX.test(e)||e[e.length-1]==="_")}function sX(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var aX=/^[-+]?[0-9]+e/;function oX(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ir.isNegativeZero(e))return"-0.0";return r=e.toString(10),aX.test(r)?r.replace("e",".e"):r}function uX(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ir.isNegativeZero(e))}var r8=new Vr("tag:yaml.org,2002:float",{kind:"scalar",resolve:iX,construct:sX,predicate:uX,represent:oX,defaultStyle:"lowercase"}),n8=Z6.extend({implicit:[Q6,e8,t8,r8]}),i8=n8,s8=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),a8=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function cX(e){return e===null?!1:s8.exec(e)!==null||a8.exec(e)!==null}function lX(e){var t,r,n,i,s,a,o,u=0,c=null,l,f,h;if(t=s8.exec(e),t===null&&(t=a8.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],o=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=+t[10],f=+(t[11]||0),c=(l*60+f)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,a,o,u)),c&&h.setTime(h.getTime()-c),h}function fX(e){return e.toISOString()}var o8=new Vr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:cX,construct:lX,instanceOf:Date,represent:fX});function pX(e){return e==="<<"||e===null}var u8=new Vr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:pX}),LO=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
38
+ \r`;function dX(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=LO;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function hX(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=LO,a=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)):r===18?(o.push(a>>10&255),o.push(a>>2&255)):r===12&&o.push(a>>4&255),new Uint8Array(o)}function mX(e){var t="",r=0,n,i,s=e.length,a=LO;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}function gX(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var c8=new Vr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:dX,construct:hX,predicate:gX,represent:mX}),yX=Object.prototype.hasOwnProperty,vX=Object.prototype.toString;function bX(e){if(e===null)return!0;var t=[],r,n,i,s,a,o=e;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],a=!1,vX.call(i)!=="[object Object]")return!1;for(s in i)if(yX.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function _X(e){return e!==null?e:[]}var l8=new Vr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:bX,construct:_X}),EX=Object.prototype.toString;function SX(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],EX.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function wX(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var f8=new Vr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:SX,construct:wX}),xX=Object.prototype.hasOwnProperty;function AX(e){if(e===null)return!0;var t,r=e;for(t in r)if(xX.call(r,t)&&r[t]!==null)return!1;return!0}function OX(e){return e!==null?e:{}}var p8=new Vr("tag:yaml.org,2002:set",{kind:"mapping",resolve:AX,construct:OX}),UO=i8.extend({implicit:[o8,u8],explicit:[c8,l8,f8,p8]}),zs=Object.prototype.hasOwnProperty,xp=1,d8=2,h8=3,Ap=4,Lb=1,CX=2,ZN=3,RX=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,IX=/[\x85\u2028\u2029]/,TX=/[,\[\]\{\}]/,m8=/^(?:!|!!|![a-z\-]+!)$/i,g8=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function QN(e){return Object.prototype.toString.call(e)}function zi(e){return e===10||e===13}function Aa(e){return e===9||e===32}function vn(e){return e===9||e===32||e===10||e===13}function bo(e){return e===44||e===91||e===93||e===123||e===125}function jX(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function PX(e){return e===120?2:e===117?4:e===85?8:0}function kX(e){return 48<=e&&e<=57?e-48:-1}function eM(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
39
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function NX(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var y8=new Array(256),v8=new Array(256);for(var uo=0;uo<256;uo++)y8[uo]=eM(uo)?1:0,v8[uo]=eM(uo);function MX(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||UO,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function b8(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=FY(r),new on(t,r)}function Qe(e,t){throw b8(e,t)}function Op(e,t){e.onWarning&&e.onWarning.call(null,b8(e,t))}var tM={YAML:function(t,r,n){var i,s,a;t.version!==null&&Qe(t,"duplication of %YAML directive"),n.length!==1&&Qe(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Qe(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&Qe(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Op(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&Qe(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],m8.test(i)||Qe(t,"ill-formed tag handle (first argument) of the TAG directive"),zs.call(t.tagMap,i)&&Qe(t,'there is a previously declared suffix for "'+i+'" tag handle'),g8.test(s)||Qe(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Qe(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Ls(e,t,r,n){var i,s,a,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,s=o.length;i<s;i+=1)a=o.charCodeAt(i),a===9||32<=a&&a<=1114111||Qe(e,"expected valid JSON character");else RX.test(o)&&Qe(e,"the stream contains non-printable characters");e.result+=o}}function rM(e,t,r,n){var i,s,a,o;for(Ir.isObject(r)||Qe(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,o=i.length;a<o;a+=1)s=i[a],zs.call(t,s)||(t[s]=r[s],n[s]=!0)}function _o(e,t,r,n,i,s,a,o,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&Qe(e,"nested arrays are not supported inside keys"),typeof i=="object"&&QN(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&QN(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)rM(e,t,s[c],r);else rM(e,t,s,r);else!e.json&&!zs.call(r,i)&&zs.call(t,i)&&(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=u||e.position,Qe(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function VO(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Qe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Er(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Aa(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(zi(i))for(VO(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Op(e,"deficient indentation"),n}function rh(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||vn(r)))}function zO(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ir.repeat(`
40
+ `,t-1))}function DX(e,t,r){var n,i,s,a,o,u,c,l,f=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),vn(d)||bo(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),vn(i)||r&&bo(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,o=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),vn(i)||r&&bo(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),vn(n))break}else{if(e.position===e.lineStart&&rh(e)||r&&bo(d))break;if(zi(d))if(u=e.line,c=e.lineStart,l=e.lineIndent,Er(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=c,e.lineIndent=l;break}}o&&(Ls(e,s,a,!1),zO(e,e.line-u),s=a=e.position,o=!1),Aa(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return Ls(e,s,a,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function qX(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ls(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else zi(r)?(Ls(e,n,i,!0),zO(e,Er(e,!1,t)),n=i=e.position):e.position===e.lineStart&&rh(e)?Qe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Qe(e,"unexpected end of the stream within a single quoted scalar")}function $X(e,t){var r,n,i,s,a,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Ls(e,r,e.position,!0),e.position++,!0;if(o===92){if(Ls(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),zi(o))Er(e,!1,t);else if(o<256&&y8[o])e.result+=v8[o],e.position++;else if((a=PX(o))>0){for(i=a,s=0;i>0;i--)o=e.input.charCodeAt(++e.position),(a=jX(o))>=0?s=(s<<4)+a:Qe(e,"expected hexadecimal character");e.result+=NX(s),e.position++}else Qe(e,"unknown escape sequence");r=n=e.position}else zi(o)?(Ls(e,r,n,!0),zO(e,Er(e,!1,t)),r=n=e.position):e.position===e.lineStart&&rh(e)?Qe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Qe(e,"unexpected end of the stream within a double quoted scalar")}function FX(e,t){var r=!0,n,i,s,a=e.tag,o,u=e.anchor,c,l,f,h,d,g=Object.create(null),y,v,_,b;if(b=e.input.charCodeAt(e.position),b===91)l=93,d=!1,o=[];else if(b===123)l=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),b=e.input.charCodeAt(++e.position);b!==0;){if(Er(e,!0,t),b=e.input.charCodeAt(e.position),b===l)return e.position++,e.tag=a,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=o,!0;r?b===44&&Qe(e,"expected the node content, but found ','"):Qe(e,"missed comma between flow collection entries"),v=y=_=null,f=h=!1,b===63&&(c=e.input.charCodeAt(e.position+1),vn(c)&&(f=h=!0,e.position++,Er(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,To(e,t,xp,!1,!0),v=e.tag,y=e.result,Er(e,!0,t),b=e.input.charCodeAt(e.position),(h||e.line===n)&&b===58&&(f=!0,b=e.input.charCodeAt(++e.position),Er(e,!0,t),To(e,t,xp,!1,!0),_=e.result),d?_o(e,o,g,v,y,_,n,i,s):f?o.push(_o(e,null,g,v,y,_,n,i,s)):o.push(y),Er(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}Qe(e,"unexpected end of the stream within a flow collection")}function BX(e,t){var r,n,i=Lb,s=!1,a=!1,o=t,u=0,c=!1,l,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Lb===i?i=f===43?ZN:CX:Qe(e,"repeat of a chomping mode identifier");else if((l=kX(f))>=0)l===0?Qe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Qe(e,"repeat of an indentation width identifier"):(o=t+l-1,a=!0);else break;if(Aa(f)){do f=e.input.charCodeAt(++e.position);while(Aa(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!zi(f)&&f!==0)}for(;f!==0;){for(VO(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<o)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>o&&(o=e.lineIndent),zi(f)){u++;continue}if(e.lineIndent<o){i===ZN?e.result+=Ir.repeat(`
41
+ `,s?1+u:u):i===Lb&&s&&(e.result+=`
42
+ `);break}for(n?Aa(f)?(c=!0,e.result+=Ir.repeat(`
43
+ `,s?1+u:u)):c?(c=!1,e.result+=Ir.repeat(`
44
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=Ir.repeat(`
45
+ `,u):e.result+=Ir.repeat(`
46
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!zi(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Ls(e,r,e.position,!1)}return!0}function nM(e,t){var r,n=e.tag,i=e.anchor,s=[],a,o=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Qe(e,"tab characters must not be used in indentation")),!(u!==45||(a=e.input.charCodeAt(e.position+1),!vn(a))));){if(o=!0,e.position++,Er(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,To(e,t,h8,!1,!0),s.push(e.result),Er(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)Qe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function LX(e,t,r){var n,i,s,a,o,u,c=e.tag,l=e.anchor,f={},h=Object.create(null),d=null,g=null,y=null,v=!1,_=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),b=e.input.charCodeAt(e.position);b!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Qe(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(b===63||b===58)&&vn(n))b===63?(v&&(_o(e,f,h,d,g,null,a,o,u),d=g=y=null),_=!0,v=!0,i=!0):v?(v=!1,i=!0):Qe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=n;else{if(a=e.line,o=e.lineStart,u=e.position,!To(e,r,d8,!1,!0))break;if(e.line===s){for(b=e.input.charCodeAt(e.position);Aa(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),vn(b)||Qe(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(_o(e,f,h,d,g,null,a,o,u),d=g=y=null),_=!0,v=!1,i=!1,d=e.tag,g=e.result;else if(_)Qe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(_)Qe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===s||e.lineIndent>t)&&(v&&(a=e.line,o=e.lineStart,u=e.position),To(e,t,Ap,!0,i)&&(v?g=e.result:y=e.result),v||(_o(e,f,h,d,g,y,a,o,u),d=g=y=null),Er(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&b!==0)Qe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&_o(e,f,h,d,g,null,a,o,u),_&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=f),_}function UX(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Qe(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):Qe(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!vn(a);)a===33&&(n?Qe(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),m8.test(i)||Qe(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),TX.test(s)&&Qe(e,"tag suffix cannot contain flow indicator characters")}s&&!g8.test(s)&&Qe(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Qe(e,"tag name is malformed: "+s)}return r?e.tag=s:zs.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:Qe(e,'undeclared tag handle "'+i+'"'),!0}function VX(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Qe(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!vn(r)&&!bo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Qe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function zX(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!vn(n)&&!bo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Qe(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),zs.call(e.anchorMap,r)||Qe(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Er(e,!0,-1),!0}function To(e,t,r,n,i){var s,a,o,u=1,c=!1,l=!1,f,h,d,g,y,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=o=Ap===r||h8===r,n&&Er(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;UX(e)||VX(e);)Er(e,!0,-1)?(c=!0,o=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):o=!1;if(o&&(o=c||i),(u===1||Ap===r)&&(xp===r||d8===r?y=t:y=t+1,v=e.position-e.lineStart,u===1?o&&(nM(e,v)||LX(e,v,y))||FX(e,y)?l=!0:(a&&BX(e,y)||qX(e,y)||$X(e,y)?l=!0:zX(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&Qe(e,"alias node should not have any properties")):DX(e,y,xp===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=o&&nM(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Qe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,h=e.implicitTypes.length;f<h;f+=1)if(g=e.implicitTypes[f],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(zs.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],f=0,h=d.length;f<h;f+=1)if(e.tag.slice(0,d[f].tag.length)===d[f].tag){g=d[f];break}g||Qe(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&Qe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Qe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function WX(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Er(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!vn(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&Qe(e,"directive name must not be less than one character in length");a!==0;){for(;Aa(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!zi(a));break}if(zi(a))break;for(r=e.position;a!==0&&!vn(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&VO(e),zs.call(tM,n)?tM[n](e,n,i):Op(e,'unknown document directive "'+n+'"')}if(Er(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Er(e,!0,-1)):s&&Qe(e,"directives end mark is expected"),To(e,e.lineIndent-1,Ap,!1,!0),Er(e,!0,-1),e.checkLineBreaks&&IX.test(e.input.slice(t,e.position))&&Op(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&rh(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Er(e,!0,-1));return}if(e.position<e.length-1)Qe(e,"end of the stream or a document separator is expected");else return}function _8(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
47
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new MX(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Qe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)WX(r);return r.documents}function JX(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=_8(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function KX(e,t){var r=_8(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new on("expected a single document in the stream, but found more")}}var HX=JX,GX=KX,E8={loadAll:HX,load:GX},S8=Object.prototype.toString,w8=Object.prototype.hasOwnProperty,WO=65279,YX=9,lc=10,XX=13,ZX=32,QX=33,eZ=34,sx=35,tZ=37,rZ=38,nZ=39,iZ=42,x8=44,sZ=45,Cp=58,aZ=61,oZ=62,uZ=63,cZ=64,A8=91,O8=93,lZ=96,C8=123,fZ=124,R8=125,tn={};tn[0]="\\0";tn[7]="\\a";tn[8]="\\b";tn[9]="\\t";tn[10]="\\n";tn[11]="\\v";tn[12]="\\f";tn[13]="\\r";tn[27]="\\e";tn[34]='\\"';tn[92]="\\\\";tn[133]="\\N";tn[160]="\\_";tn[8232]="\\L";tn[8233]="\\P";var pZ=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],dZ=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function hZ(e,t){var r,n,i,s,a,o,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],o=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&w8.call(u.styleAliases,o)&&(o=u.styleAliases[o]),r[a]=o;return r}function mZ(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new on("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ir.repeat("0",n-t.length)+t}var gZ=1,fc=2;function yZ(e){this.schema=e.schema||UO,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ir.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=hZ(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?fc:gZ,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function iM(e,t){for(var r=Ir.repeat(" ",t),n=0,i=-1,s="",a,o=e.length;n<o;)i=e.indexOf(`
48
+ `,n),i===-1?(a=e.slice(n),n=o):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
49
+ `&&(s+=r),s+=a;return s}function ax(e,t){return`
50
+ `+Ir.repeat(" ",e.indent*t)}function vZ(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Rp(e){return e===ZX||e===YX}function pc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==WO||65536<=e&&e<=1114111}function sM(e){return pc(e)&&e!==WO&&e!==XX&&e!==lc}function aM(e,t,r){var n=sM(e),i=n&&!Rp(e);return(r?n:n&&e!==x8&&e!==A8&&e!==O8&&e!==C8&&e!==R8)&&e!==sx&&!(t===Cp&&!i)||sM(t)&&!Rp(t)&&e===sx||t===Cp&&i}function bZ(e){return pc(e)&&e!==WO&&!Rp(e)&&e!==sZ&&e!==uZ&&e!==Cp&&e!==x8&&e!==A8&&e!==O8&&e!==C8&&e!==R8&&e!==sx&&e!==rZ&&e!==iZ&&e!==QX&&e!==fZ&&e!==aZ&&e!==oZ&&e!==nZ&&e!==eZ&&e!==tZ&&e!==cZ&&e!==lZ}function _Z(e){return!Rp(e)&&e!==Cp}function zu(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function I8(e){var t=/^\n* /;return t.test(e)}var T8=1,ox=2,j8=3,P8=4,go=5;function EZ(e,t,r,n,i,s,a,o){var u,c=0,l=null,f=!1,h=!1,d=n!==-1,g=-1,y=bZ(zu(e,0))&&_Z(zu(e,e.length-1));if(t||a)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=zu(e,u),!pc(c))return go;y=y&&aM(c,l,o),l=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=zu(e,u),c===lc)f=!0,d&&(h=h||u-g-1>n&&e[g+1]!==" ",g=u);else if(!pc(c))return go;y=y&&aM(c,l,o),l=c}h=h||d&&u-g-1>n&&e[g+1]!==" "}return!f&&!h?y&&!a&&!i(e)?T8:s===fc?go:ox:r>9&&I8(e)?go:a?s===fc?go:ox:h?P8:j8}function SZ(e,t,r,n,i){e.dump=(function(){if(t.length===0)return e.quotingType===fc?'""':"''";if(!e.noCompatMode&&(pZ.indexOf(t)!==-1||dZ.test(t)))return e.quotingType===fc?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),o=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return vZ(e,c)}switch(EZ(t,o,e.indent,a,u,e.quotingType,e.forceQuotes&&!n,i)){case T8:return t;case ox:return"'"+t.replace(/'/g,"''")+"'";case j8:return"|"+oM(t,e.indent)+uM(iM(t,s));case P8:return">"+oM(t,e.indent)+uM(iM(wZ(t,a),s));case go:return'"'+xZ(t)+'"';default:throw new on("impossible error: invalid scalar style")}})()}function oM(e,t){var r=I8(e)?String(t):"",n=e[e.length-1]===`
51
+ `,i=n&&(e[e.length-2]===`
52
+ `||e===`
53
+ `),s=i?"+":n?"":"-";return r+s+`
54
+ `}function uM(e){return e[e.length-1]===`
55
+ `?e.slice(0,-1):e}function wZ(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=e.indexOf(`
56
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,cM(e.slice(0,c),t)})(),i=e[0]===`
57
+ `||e[0]===" ",s,a;a=r.exec(e);){var o=a[1],u=a[2];s=u[0]===" ",n+=o+(!i&&!s&&u!==""?`
58
+ `:"")+cM(u,t),i=s}return n}function cM(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,o=0,u="";n=r.exec(e);)o=n.index,o-i>t&&(s=a>i?a:o,u+=`
59
+ `+e.slice(i,s),i=s+1),a=o;return u+=`
60
+ `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
61
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}function xZ(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=zu(e,i),n=tn[r],!n&&pc(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||mZ(r);return t}function AZ(e,t,r){var n="",i=e.tag,s,a,o;for(s=0,a=r.length;s<a;s+=1)o=r[s],e.replacer&&(o=e.replacer.call(r,String(s),o)),(hs(e,t,o,!1,!1)||typeof o>"u"&&hs(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function lM(e,t,r,n){var i="",s=e.tag,a,o,u;for(a=0,o=r.length;a<o;a+=1)u=r[a],e.replacer&&(u=e.replacer.call(r,String(a),u)),(hs(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&hs(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=ax(e,t)),e.dump&&lc===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function OZ(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,o,u,c,l;for(a=0,o=s.length;a<o;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),u=s[a],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),hs(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),hs(e,t,c,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function CZ(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),o,u,c,l,f,h;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new on("sortKeys must be a boolean or a function");for(o=0,u=a.length;o<u;o+=1)h="",(!n||i!=="")&&(h+=ax(e,t)),c=a[o],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),hs(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&lc===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,f&&(h+=ax(e,t)),hs(e,t+1,l,!0,f)&&(e.dump&&lc===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function fM(e,t,r){var n,i,s,a,o,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(o=i[s],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(u=e.styleMap[o.tag]||o.defaultStyle,S8.call(o.represent)==="[object Function]")n=o.represent(t,u);else if(w8.call(o.represent,u))n=o.represent[u](t,u);else throw new on("!<"+o.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function hs(e,t,r,n,i,s,a){e.tag=null,e.dump=r,fM(e,r,!1)||fM(e,r,!0);var o=S8.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var l=o==="[object Object]"||o==="[object Array]",f,h;if(l&&(f=e.duplicates.indexOf(r),h=f!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(l&&h&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(CZ(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(OZ(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?lM(e,t-1,e.dump,i):lM(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(AZ(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&SZ(e,e.dump,t,s,u);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new on("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function RZ(e,t){var r=[],n=[],i,s;for(ux(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function ux(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)ux(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)ux(e[n[i]],t,r)}function IZ(e,t){t=t||{};var r=new yZ(t);r.noRefs||RZ(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),hs(r,0,n,!0,!0)?r.dump+`
62
+ `:""}var TZ=IZ,jZ={dump:TZ};function JO(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var PZ=Vr,kZ=H6,NZ=Z6,dc=n8,MZ=i8,DZ=UO,qZ=E8.load,$Z=E8.loadAll,FZ=jZ.dump,BZ=on,LZ={binary:c8,float:r8,map:X6,null:Q6,pairs:f8,set:p8,timestamp:o8,bool:e8,int:t8,merge:u8,omap:l8,seq:Y6,str:G6},UZ=JO("safeLoad","load"),VZ=JO("safeLoadAll","loadAll"),zZ=JO("safeDump","dump"),Ta={Type:PZ,Schema:kZ,FAILSAFE_SCHEMA:NZ,JSON_SCHEMA:dc,CORE_SCHEMA:MZ,DEFAULT_SCHEMA:DZ,load:qZ,loadAll:$Z,dump:FZ,YAMLException:BZ,types:LZ,safeLoad:UZ,safeLoadAll:VZ,safeDump:zZ},cp={exports:{}},WZ=cp.exports,pM;function JZ(){return pM||(pM=1,(function(e){(function(t,r){e.exports?e.exports=r():(function n(){document&&document.body?t.zenscroll=r():setTimeout(n,9)})()})(WZ,function(){var t=function(c){return c&&"getComputedStyle"in window&&window.getComputedStyle(c)["scroll-behavior"]==="smooth"};if(typeof window>"u"||!("document"in window))return{};var r=function(c,l,f){l=l||999,!f&&f!==0&&(f=9);var h,d=function(S){h=S},g=function(){clearTimeout(h),d(0)},y=function(S){return Math.max(0,c.getTopOf(S)-f)},v=function(S,A,R){if(g(),A===0||A&&A<0||t(c.body))c.toY(S),R&&R();else{var T=c.getY(),O=Math.max(0,S)-T,D=new Date().getTime();A=A||Math.min(Math.abs(O),l),(function N(){d(setTimeout(function(){var $=Math.min(1,(new Date().getTime()-D)/A),M=Math.max(0,Math.floor(T+O*($<.5?2*$*$:$*(4-$*2)-1)));c.toY(M),$<1&&c.getHeight()+M<c.body.scrollHeight?N():(setTimeout(g,99),R&&R())},9))})()}},_=function(S,A,R){v(y(S),A,R)},b=function(S,A,R){var T=S.getBoundingClientRect().height,O=c.getTopOf(S)+T,D=c.getHeight(),N=c.getY(),$=N+D;y(S)<N||T+f>D?_(S,A,R):O+f>$?v(O-D+f,A,R):R&&R()},E=function(S,A,R,T){v(Math.max(0,c.getTopOf(S)-c.getHeight()/2+(R||S.getBoundingClientRect().height/2)),A,T)},w=function(S,A){return(S===0||S)&&(l=S),(A===0||A)&&(f=A),{defaultDuration:l,edgeOffset:f}};return{setup:w,to:_,toY:v,intoView:b,center:E,stop:g,moving:function(){return!!h},getY:c.getY,getTopOf:c.getTopOf}},n=document.documentElement,i=function(){return window.scrollY||n.scrollTop},s=r({body:document.scrollingElement||document.body,toY:function(c){window.scrollTo(0,c)},getY:i,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(c){return c.getBoundingClientRect().top+i()-n.offsetTop}});if(s.createScroller=function(c,l,f){return r({body:c,toY:function(h){c.scrollTop=h},getY:function(){return c.scrollTop},getHeight:function(){return Math.min(c.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(h){return h.offsetTop}},l,f)},"addEventListener"in window&&!window.noZensmooth&&!t(document.body)){var a="history"in window&&"pushState"in history,o=a&&"scrollRestoration"in history;o&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){o&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(c){c.state&&"zenscrollY"in c.state&&s.toY(c.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var c=s.setup().edgeOffset;if(c){var l=document.getElementById(window.location.href.split("#")[1]);if(l){var f=Math.max(0,s.getTopOf(l)-c),h=s.getY()-f;0<=h&&h<9&&window.scrollTo(0,f)}}},9)},!1);var u=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(c){for(var l=c.target;l&&l.tagName!=="A";)l=l.parentNode;if(!(!l||c.which!==1||c.shiftKey||c.metaKey||c.ctrlKey||c.altKey)){if(o){var f=history.state&&typeof history.state=="object"?history.state:{};f.zenscrollY=s.getY();try{history.replaceState(f,"")}catch{}}var h=l.getAttribute("href")||"";if(h.indexOf("#")===0&&!u.test(l.className)){var d=0,g=document.getElementById(h.substring(1));if(h!=="#"){if(!g)return;d=s.getTopOf(g)}c.preventDefault();var y=function(){window.location=h},v=s.setup().edgeOffset;v&&(d=Math.max(0,d-v),a&&(y=function(){history.pushState({},"",h)})),s.toY(d,null,y)}}},!1)}return s})})(cp)),cp.exports}var KZ=JZ();const HZ=Ve.getDefaultExportFromCjs(KZ);/**
63
+ * @license
64
+ * MIT License
65
+ *
66
+ * Copyright (c) 2014-present, Lee Byron and other contributors.
67
+ *
68
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
69
+ * of this software and associated documentation files (the "Software"), to deal
70
+ * in the Software without restriction, including without limitation the rights
71
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
72
+ * copies of the Software, and to permit persons to whom the Software is
73
+ * furnished to do so, subject to the following conditions:
74
+ *
75
+ * The above copyright notice and this permission notice shall be included in all
76
+ * copies or substantial portions of the Software.
77
+ *
78
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
80
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
81
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
82
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
84
+ * SOFTWARE.
85
+ */var Gc="delete",Gt=5,Pn=1<<Gt,un=Pn-1,Ot={};function cx(){return{value:!1}}function ei(e){e&&(e.value=!0)}function KO(){}function jo(e){return e.size===void 0&&(e.size=e.__iterate(k8)),e.size}function Ws(e,t){if(typeof t!="number"){var r=t>>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?jo(e)+t:t}function k8(){return!0}function Yc(e,t,r){return(e===0&&!M8(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function eu(e,t){return N8(e,t,0)}function Xc(e,t){return N8(e,t,t)}function N8(e,t,r){return e===void 0?r:M8(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function M8(e){return e<0||e===0&&1/e===-1/0}var D8="@@__IMMUTABLE_ITERABLE__@@";function _n(e){return!!(e&&e[D8])}var Ip="@@__IMMUTABLE_KEYED__@@";function Xt(e){return!!(e&&e[Ip])}var Tp="@@__IMMUTABLE_INDEXED__@@";function En(e){return!!(e&&e[Tp])}function nh(e){return Xt(e)||En(e)}var kr=function(t){return _n(t)?t:Qr(t)},si=(function(e){function t(r){return Xt(r)?r:Xs(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(kr),Ba=(function(e){function t(r){return En(r)?r:oi(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(kr),tu=(function(e){function t(r){return _n(r)&&!nh(r)?r:iu(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(kr);kr.Keyed=si;kr.Indexed=Ba;kr.Set=tu;var q8="@@__IMMUTABLE_SEQ__@@";function ih(e){return!!(e&&e[q8])}var $8="@@__IMMUTABLE_RECORD__@@";function Ys(e){return!!(e&&e[$8])}function ai(e){return _n(e)||Ys(e)}var Js="@@__IMMUTABLE_ORDERED__@@";function Si(e){return!!(e&&e[Js])}var ru=0,Mn=1,Dn=2,lx=typeof Symbol=="function"&&Symbol.iterator,F8="@@iterator",sh=lx||F8,It=function(t){this.next=t};It.prototype.toString=function(){return"[Iterator]"};It.KEYS=ru;It.VALUES=Mn;It.ENTRIES=Dn;It.prototype.inspect=It.prototype.toSource=function(){return this.toString()};It.prototype[sh]=function(){return this};function rr(e,t,r,n){var i=e===ru?t:e===Mn?r:[t,r];return n?n.value=i:n={value:i,done:!1},n}function Zr(){return{value:void 0,done:!0}}function HO(e){return Array.isArray(e)?!0:!!ah(e)}function dM(e){return e&&typeof e.next=="function"}function fx(e){var t=ah(e);return t&&t.call(e)}function ah(e){var t=e&&(lx&&e[lx]||e[F8]);if(typeof t=="function")return t}function GZ(e){var t=ah(e);return t&&t===e.entries}function YZ(e){var t=ah(e);return t&&t===e.keys}var nu=Object.prototype.hasOwnProperty;function GO(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var Qr=(function(e){function t(r){return r==null?XO():ai(r)?r.toSeq():ZZ(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(n,i){var s=this._cache;if(s){for(var a=s.length,o=0;o!==a;){var u=s[i?a-++o:o++];if(n(u[1],u[0],this)===!1)break}return o}return this.__iterateUncached(n,i)},t.prototype.__iterator=function(n,i){var s=this._cache;if(s){var a=s.length,o=0;return new It(function(){if(o===a)return Zr();var u=s[i?a-++o:o++];return rr(n,u[0],u[1])})}return this.__iteratorUncached(n,i)},t})(kr),Xs=(function(e){function t(r){return r==null?XO().toKeyedSeq():_n(r)?Xt(r)?r.toSeq():r.fromEntrySeq():Ys(r)?r.toSeq():ZO(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t})(Qr),oi=(function(e){function t(r){return r==null?XO():_n(r)?Xt(r)?r.entrySeq():r.toIndexedSeq():Ys(r)?r.toSeq().entrySeq():B8(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t})(Qr),iu=(function(e){function t(r){return(_n(r)&&!nh(r)?r:oi(r)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t})(Qr);Qr.isSeq=ih;Qr.Keyed=Xs;Qr.Set=iu;Qr.Indexed=oi;Qr.prototype[q8]=!0;var Po=(function(e){function t(r){this._array=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return this.has(n)?this._array[Ws(this,n)]:i},t.prototype.__iterate=function(n,i){for(var s=this._array,a=s.length,o=0;o!==a;){var u=i?a-++o:o++;if(n(s[u],u,this)===!1)break}return o},t.prototype.__iterator=function(n,i){var s=this._array,a=s.length,o=0;return new It(function(){if(o===a)return Zr();var u=i?a-++o:o++;return rr(n,u,s[u])})},t})(oi),YO=(function(e){function t(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return i!==void 0&&!this.has(n)?i:this._object[n]},t.prototype.has=function(n){return nu.call(this._object,n)},t.prototype.__iterate=function(n,i){for(var s=this._object,a=this._keys,o=a.length,u=0;u!==o;){var c=a[i?o-++u:u++];if(n(s[c],c,this)===!1)break}return u},t.prototype.__iterator=function(n,i){var s=this._object,a=this._keys,o=a.length,u=0;return new It(function(){if(u===o)return Zr();var c=a[i?o-++u:u++];return rr(n,c,s[c])})},t})(Xs);YO.prototype[Js]=!0;var XZ=(function(e){function t(r){this._collection=r,this.size=r.length||r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,i){if(i)return this.cacheResult().__iterate(n,i);var s=this._collection,a=fx(s),o=0;if(dM(a))for(var u;!(u=a.next()).done&&n(u.value,o++,this)!==!1;);return o},t.prototype.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var s=this._collection,a=fx(s);if(!dM(a))return new It(Zr);var o=0;return new It(function(){var u=a.next();return u.done?u:rr(n,o++,u.value)})},t})(oi),hM;function XO(){return hM||(hM=new Po([]))}function ZO(e){var t=QO(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new YO(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function B8(e){var t=QO(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ZZ(e){var t=QO(e);if(t)return GZ(e)?t.fromEntrySeq():YZ(e)?t.toSetSeq():t;if(typeof e=="object")return new YO(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function QO(e){return GO(e)?new Po(e):HO(e)?new XZ(e):void 0}var L8="@@__IMMUTABLE_MAP__@@";function oh(e){return!!(e&&e[L8])}function e2(e){return oh(e)&&Si(e)}function px(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function Sr(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(px(e)&&px(t)&&e.equals(t))}var Mu=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,r){t|=0,r|=0;var n=t&65535,i=r&65535;return n*i+((t>>>16)*i+n*(r>>>16)<<16>>>0)|0};function uh(e){return e>>>1&1073741824|e&3221225471}var QZ=Object.prototype.valueOf;function yn(e){if(e==null)return mM(e);if(typeof e.hashCode=="function")return uh(e.hashCode(e));var t=sQ(e);if(t==null)return mM(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return eQ(t);case"string":return t.length>aQ?tQ(t):dx(t);case"object":case"function":return nQ(t);case"symbol":return rQ(t);default:if(typeof t.toString=="function")return dx(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function mM(e){return e===null?1108378658:1108378659}function eQ(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return uh(t)}function tQ(e){var t=zb[e];return t===void 0&&(t=dx(e),Vb===oQ&&(Vb=0,zb={}),Vb++,zb[e]=t),t}function dx(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return uh(t)}function rQ(e){var t=vM[e];return t!==void 0||(t=U8(),vM[e]=t),t}function nQ(e){var t;if(hx&&(t=mx.get(e),t!==void 0)||(t=e[ba],t!==void 0)||!yM&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ba],t!==void 0||(t=iQ(e),t!==void 0)))return t;if(t=U8(),hx)mx.set(e,t);else{if(gM!==void 0&&gM(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(yM)Object.defineProperty(e,ba,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ba]=t;else if(e.nodeType!==void 0)e[ba]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var gM=Object.isExtensible,yM=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})();function iQ(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function sQ(e){return e.valueOf!==QZ&&typeof e.valueOf=="function"?e.valueOf(e):e}function U8(){var e=++Ub;return Ub&1073741824&&(Ub=0),e}var hx=typeof WeakMap=="function",mx;hx&&(mx=new WeakMap);var vM=Object.create(null),Ub=0,ba="__immutablehash__";typeof Symbol=="function"&&(ba=Symbol(ba));var aQ=16,oQ=255,Vb=0,zb={},ch=(function(e){function t(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return this._iter.get(n,i)},t.prototype.has=function(n){return this._iter.has(n)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var n=this,i=t2(this,!0);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().reverse()}),i},t.prototype.map=function(n,i){var s=this,a=K8(this,n,i);return this._useKeys||(a.valueSeq=function(){return s._iter.toSeq().map(n,i)}),a},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(a,o){return n(a,o,s)},i)},t.prototype.__iterator=function(n,i){return this._iter.__iterator(n,i)},t})(Xs);ch.prototype[Js]=!0;var V8=(function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,i){var s=this,a=0;return i&&jo(this),this._iter.__iterate(function(o){return n(o,i?s.size-++a:a++,s)},i)},t.prototype.__iterator=function(n,i){var s=this,a=this._iter.__iterator(Mn,i),o=0;return i&&jo(this),new It(function(){var u=a.next();return u.done?u:rr(n,i?s.size-++o:o++,u.value,u)})},t})(oi),z8=(function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(a){return n(a,a,s)},i)},t.prototype.__iterator=function(n,i){var s=this._iter.__iterator(Mn,i);return new It(function(){var a=s.next();return a.done?a:rr(n,a.value,a.value,a)})},t})(iu),W8=(function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(a){if(a){_M(a);var o=_n(a);return n(o?a.get(1):a[1],o?a.get(0):a[0],s)}},i)},t.prototype.__iterator=function(n,i){var s=this._iter.__iterator(Mn,i);return new It(function(){for(;;){var a=s.next();if(a.done)return a;var o=a.value;if(o){_M(o);var u=_n(o);return rr(n,u?o.get(0):o[0],u?o.get(1):o[1],a)}}})},t})(Xs);V8.prototype.cacheResult=ch.prototype.cacheResult=z8.prototype.cacheResult=W8.prototype.cacheResult=i2;function J8(e){var t=Yi(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var r=e.reverse.apply(this);return r.flip=function(){return e.reverse()},r},t.has=function(r){return e.includes(r)},t.includes=function(r){return e.has(r)},t.cacheResult=i2,t.__iterateUncached=function(r,n){var i=this;return e.__iterate(function(s,a){return r(a,s,i)!==!1},n)},t.__iteratorUncached=function(r,n){if(r===Dn){var i=e.__iterator(r,n);return new It(function(){var s=i.next();if(!s.done){var a=s.value[0];s.value[0]=s.value[1],s.value[1]=a}return s})}return e.__iterator(r===Mn?ru:Mn,n)},t}function K8(e,t,r){var n=Yi(e);return n.size=e.size,n.has=function(i){return e.has(i)},n.get=function(i,s){var a=e.get(i,Ot);return a===Ot?s:t.call(r,a,i,e)},n.__iterateUncached=function(i,s){var a=this;return e.__iterate(function(o,u,c){return i(t.call(r,o,u,c),u,a)!==!1},s)},n.__iteratorUncached=function(i,s){var a=e.__iterator(Dn,s);return new It(function(){var o=a.next();if(o.done)return o;var u=o.value,c=u[0];return rr(i,c,t.call(r,u[1],c,e),o)})},n}function t2(e,t){var r=this,n=Yi(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var i=J8(e);return i.reverse=function(){return e.flip()},i}),n.get=function(i,s){return e.get(t?i:-1-i,s)},n.has=function(i){return e.has(t?i:-1-i)},n.includes=function(i){return e.includes(i)},n.cacheResult=i2,n.__iterate=function(i,s){var a=this,o=0;return s&&jo(e),e.__iterate(function(u,c){return i(u,t?c:s?a.size-++o:o++,a)},!s)},n.__iterator=function(i,s){var a=0;s&&jo(e);var o=e.__iterator(Dn,!s);return new It(function(){var u=o.next();if(u.done)return u;var c=u.value;return rr(i,t?c[0]:s?r.size-++a:a++,c[1],u)})},n}function H8(e,t,r,n){var i=Yi(e);return n&&(i.has=function(s){var a=e.get(s,Ot);return a!==Ot&&!!t.call(r,a,s,e)},i.get=function(s,a){var o=e.get(s,Ot);return o!==Ot&&t.call(r,o,s,e)?o:a}),i.__iterateUncached=function(s,a){var o=this,u=0;return e.__iterate(function(c,l,f){if(t.call(r,c,l,f))return u++,s(c,n?l:u-1,o)},a),u},i.__iteratorUncached=function(s,a){var o=e.__iterator(Dn,a),u=0;return new It(function(){for(;;){var c=o.next();if(c.done)return c;var l=c.value,f=l[0],h=l[1];if(t.call(r,h,f,e))return rr(s,n?f:u++,h,c)}})},i}function uQ(e,t,r){var n=Ua().asMutable();return e.__iterate(function(i,s){n.update(t.call(r,i,s,e),0,function(a){return a+1})}),n.asImmutable()}function cQ(e,t,r){var n=Xt(e),i=(Si(e)?Wi():Ua()).asMutable();e.__iterate(function(a,o){i.update(t.call(r,a,o,e),function(u){return u=u||[],u.push(n?[o,a]:a),u})});var s=n2(e);return i.map(function(a){return Ht(e,s(a))}).asImmutable()}function lQ(e,t,r){var n=Xt(e),i=[[],[]];e.__iterate(function(a,o){i[t.call(r,a,o,e)?1:0].push(n?[o,a]:a)});var s=n2(e);return i.map(function(a){return Ht(e,s(a))})}function r2(e,t,r,n){var i=e.size;if(Yc(t,r,i))return e;if(typeof i>"u"&&(t<0||r<0))return r2(e.toSeq().cacheResult(),t,r,n);var s=eu(t,i),a=Xc(r,i),o=a-s,u;o===o&&(u=o<0?0:o);var c=Yi(e);return c.size=u===0?u:e.size&&u||void 0,!n&&ih(e)&&u>=0&&(c.get=function(l,f){return l=Ws(this,l),l>=0&&l<u?e.get(l+s,f):f}),c.__iterateUncached=function(l,f){var h=this;if(u===0)return 0;if(f)return this.cacheResult().__iterate(l,f);var d=0,g=!0,y=0;return e.__iterate(function(v,_){if(!(g&&(g=d++<s)))return y++,l(v,n?_:y-1,h)!==!1&&y!==u}),y},c.__iteratorUncached=function(l,f){if(u!==0&&f)return this.cacheResult().__iterator(l,f);if(u===0)return new It(Zr);var h=e.__iterator(l,f),d=0,g=0;return new It(function(){for(;d++<s;)h.next();if(++g>u)return Zr();var y=h.next();return n||l===Mn||y.done?y:l===ru?rr(l,g-1,void 0,y):rr(l,g-1,y.value[1],y)})},c}function fQ(e,t,r){var n=Yi(e);return n.__iterateUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterate(i,s);var o=0;return e.__iterate(function(u,c,l){return t.call(r,u,c,l)&&++o&&i(u,c,a)}),o},n.__iteratorUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterator(i,s);var o=e.__iterator(Dn,s),u=!0;return new It(function(){if(!u)return Zr();var c=o.next();if(c.done)return c;var l=c.value,f=l[0],h=l[1];return t.call(r,h,f,a)?i===Dn?c:rr(i,f,h,c):(u=!1,Zr())})},n}function G8(e,t,r,n){var i=Yi(e);return i.__iterateUncached=function(s,a){var o=this;if(a)return this.cacheResult().__iterate(s,a);var u=!0,c=0;return e.__iterate(function(l,f,h){if(!(u&&(u=t.call(r,l,f,h))))return c++,s(l,n?f:c-1,o)}),c},i.__iteratorUncached=function(s,a){var o=this;if(a)return this.cacheResult().__iterator(s,a);var u=e.__iterator(Dn,a),c=!0,l=0;return new It(function(){var f,h,d;do{if(f=u.next(),f.done)return n||s===Mn?f:s===ru?rr(s,l++,void 0,f):rr(s,l++,f.value[1],f);var g=f.value;h=g[0],d=g[1],c&&(c=t.call(r,d,h,o))}while(c);return s===Dn?f:rr(s,h,d,f)})},i}var pQ=(function(e){function t(r){this._wrappedIterables=r.flatMap(function(n){return n._wrappedIterables?n._wrappedIterables:[n]}),this.size=this._wrappedIterables.reduce(function(n,i){if(n!==void 0){var s=i.size;if(s!==void 0)return n+s}},0),this[Ip]=this._wrappedIterables[0][Ip],this[Tp]=this._wrappedIterables[0][Tp],this[Js]=this._wrappedIterables[0][Js]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,i){if(this._wrappedIterables.length!==0){if(i)return this.cacheResult().__iterate(n,i);for(var s=0,a=Xt(this),o=a?Dn:Mn,u=this._wrappedIterables[s].__iterator(o,i),c=!0,l=0;c;){for(var f=u.next();f.done;){if(s++,s===this._wrappedIterables.length)return l;u=this._wrappedIterables[s].__iterator(o,i),f=u.next()}var h=a?n(f.value[1],f.value[0],this):n(f.value,l,this);c=h!==!1,l++}return l}},t.prototype.__iteratorUncached=function(n,i){var s=this;if(this._wrappedIterables.length===0)return new It(Zr);if(i)return this.cacheResult().__iterator(n,i);var a=0,o=this._wrappedIterables[a].__iterator(n,i);return new It(function(){for(var u=o.next();u.done;){if(a++,a===s._wrappedIterables.length)return u;o=s._wrappedIterables[a].__iterator(n,i),u=o.next()}return u})},t})(Qr);function dQ(e,t){var r=Xt(e),n=[e].concat(t).map(function(s){return _n(s)?r&&(s=si(s)):s=r?ZO(s):B8(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(n.length===0)return e;if(n.length===1){var i=n[0];if(i===e||r&&Xt(i)||En(e)&&En(i))return i}return new pQ(n)}function Y8(e,t,r){var n=Yi(e);return n.__iterateUncached=function(i,s){if(s)return this.cacheResult().__iterate(i,s);var a=0,o=!1;function u(c,l){c.__iterate(function(f,h){return(!t||l<t)&&_n(f)?u(f,l+1):(a++,i(f,r?h:a-1,n)===!1&&(o=!0)),!o},s)}return u(e,0),a},n.__iteratorUncached=function(i,s){if(s)return this.cacheResult().__iterator(i,s);var a=e.__iterator(i,s),o=[],u=0;return new It(function(){for(;a;){var c=a.next();if(c.done!==!1){a=o.pop();continue}var l=c.value;if(i===Dn&&(l=l[1]),(!t||o.length<t)&&_n(l))o.push(a),a=l.__iterator(i,s);else return r?c:rr(i,u++,l,c)}return Zr()})},n}function hQ(e,t,r){var n=n2(e);return e.toSeq().map(function(i,s){return n(t.call(r,i,s,e))}).flatten(!0)}function mQ(e,t){var r=Yi(e);return r.size=e.size&&e.size*2-1,r.__iterateUncached=function(n,i){var s=this,a=0;return e.__iterate(function(o){return(!a||n(t,a++,s)!==!1)&&n(o,a++,s)!==!1},i),a},r.__iteratorUncached=function(n,i){var s=e.__iterator(Mn,i),a=0,o;return new It(function(){return(!o||a%2)&&(o=s.next(),o.done)?o:a%2?rr(n,a++,t):rr(n,a++,o.value,o)})},r}function ko(e,t,r){t||(t=X8);var n=Xt(e),i=0,s=e.toSeq().map(function(a,o){return[o,a,i++,r?r(a,o,e):a]}).valueSeq().toArray();return s.sort(function(a,o){return t(a[3],o[3])||a[2]-o[2]}).forEach(n?function(a,o){s[o].length=2}:function(a,o){s[o]=a[1]}),n?Xs(s):En(e)?oi(s):iu(s)}function Uf(e,t,r){if(t||(t=X8),r){var n=e.toSeq().map(function(i,s){return[i,r(i,s,e)]}).reduce(function(i,s){return bM(t,i[1],s[1])?s:i});return n&&n[0]}return e.reduce(function(i,s){return bM(t,i,s)?s:i})}function bM(e,t,r){var n=e(r,t);return n===0&&r!==t&&(r==null||r!==r)||n>0}function Vf(e,t,r,n){var i=Yi(e),s=new Po(r).map(function(a){return a.size});return i.size=n?s.max():s.min(),i.__iterate=function(a,o){for(var u=this.__iterator(Mn,o),c,l=0;!(c=u.next()).done&&a(c.value,l++,this)!==!1;);return l},i.__iteratorUncached=function(a,o){var u=r.map(function(f){return f=kr(f),fx(o?f.reverse():f)}),c=0,l=!1;return new It(function(){var f;return l||(f=u.map(function(h){return h.next()}),l=n?f.every(function(h){return h.done}):f.some(function(h){return h.done})),l?Zr():rr(a,c++,t.apply(null,f.map(function(h){return h.value})))})},i}function Ht(e,t){return e===t?e:ih(e)?t:e.constructor(t)}function _M(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function n2(e){return Xt(e)?si:En(e)?Ba:tu}function Yi(e){return Object.create((Xt(e)?Xs:En(e)?oi:iu).prototype)}function i2(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Qr.prototype.cacheResult.call(this)}function X8(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function Li(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),i=0;i<r;i++)n[i]=e[i+t];return n}function rc(e,t){if(!e)throw new Error(t)}function jn(e){rc(e!==1/0,"Cannot perform this action with an infinite size.")}function Z8(e){if(GO(e)&&typeof e!="string")return e;if(Si(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}var gQ=Object.prototype.toString;function s2(e){if(!e||typeof e!="object"||gQ.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t,n=Object.getPrototypeOf(t);n!==null;)r=n,n=Object.getPrototypeOf(r);return r===t}function Ks(e){return typeof e=="object"&&(ai(e)||Array.isArray(e)||s2(e))}function hc(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function Q8(e,t){return ai(e)?e.has(t):Ks(e)&&nu.call(e,t)}function a2(e,t,r){return ai(e)?e.get(t,r):Q8(e,t)?typeof e.get=="function"?e.get(t):e[t]:r}function jp(e){if(Array.isArray(e))return Li(e);var t={};for(var r in e)nu.call(e,r)&&(t[r]=e[r]);return t}function e4(e,t){if(!Ks(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(ai(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!nu.call(e,t))return e;var r=jp(e);return Array.isArray(r)?r.splice(t,1):delete r[t],r}function t4(e,t,r){if(!Ks(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(ai(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,r)}if(nu.call(e,t)&&r===e[t])return e;var n=jp(e);return n[t]=r,n}function La(e,t,r,n){n||(n=r,r=void 0);var i=r4(ai(e),e,Z8(t),0,r,n);return i===Ot?r:i}function r4(e,t,r,n,i,s){var a=t===Ot;if(n===r.length){var o=a?i:t,u=s(o);return u===o?t:u}if(!a&&!Ks(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(r).slice(0,n).map(hc)+"]: "+t);var c=r[n],l=a?Ot:a2(t,c,Ot),f=r4(l===Ot?e:ai(l),l,r,n+1,i,s);return f===l?t:f===Ot?e4(t,c):t4(a?e?Vi():{}:t,c,f)}function n4(e,t,r){return La(e,t,Ot,function(){return r})}function o2(e,t){return n4(this,e,t)}function i4(e,t){return La(e,t,function(){return Ot})}function u2(e){return i4(this,e)}function c2(e,t,r,n){return La(e,[t],r,n)}function l2(e,t,r){return arguments.length===1?e(this):c2(this,e,t,r)}function f2(e,t,r){return La(this,e,t,r)}function s4(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return o4(this,e)}function a4(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return o4(this,t,e)}function o4(e,t,r){for(var n=[],i=0;i<t.length;i++){var s=si(t[i]);s.size!==0&&n.push(s)}return n.length===0?e:e.toSeq().size===0&&!e.__ownerID&&n.length===1?Ys(e)?e:e.constructor(n[0]):e.withMutations(function(a){for(var o=r?function(c,l){c2(a,l,Ot,function(f){return f===Ot?c:r(f,c,l)})}:function(c,l){a.set(l,c)},u=0;u<n.length;u++)n[u].forEach(o)})}function yQ(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Qc(e,t)}function vQ(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return Qc(t,r,e)}function bQ(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Zc(e,t)}function _Q(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return Zc(t,r,e)}function Zc(e,t,r){return Qc(e,t,EQ(r))}function Qc(e,t,r){if(!Ks(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(ai(e))return typeof r=="function"&&e.mergeWith?e.mergeWith.apply(e,[r].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var n=Array.isArray(e),i=e,s=n?Ba:si,a=n?function(u){i===e&&(i=jp(i)),i.push(u)}:function(u,c){var l=nu.call(i,c),f=l&&r?r(i[c],u,c):u;(!l||f!==i[c])&&(i===e&&(i=jp(i)),i[c]=f)},o=0;o<t.length;o++)s(t[o]).forEach(a);return i}function EQ(e){function t(r,n,i){return Ks(r)&&Ks(n)&&SQ(r,n)?Qc(r,[n],t):e?e(r,n,i):n}return t}function SQ(e,t){var r=Qr(e),n=Qr(t);return En(r)===En(n)&&Xt(r)===Xt(n)}function u4(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Zc(this,e)}function c4(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return Zc(this,t,e)}function p2(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return La(this,e,Vi(),function(n){return Qc(n,t)})}function d2(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return La(this,e,Vi(),function(n){return Zc(n,t)})}function el(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function tl(){return this.__ownerID?this:this.__ensureOwner(new KO)}function rl(){return this.__ensureOwner()}function h2(){return this.__altered}var Ua=(function(e){function t(r){return r==null?Vi():oh(r)&&!Si(r)?r:Vi().withMutations(function(n){var i=e(r);jn(i.size),i.forEach(function(s,a){return n.set(a,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(n,i){return this._root?this._root.get(0,void 0,n,i):i},t.prototype.set=function(n,i){return wM(this,n,i)},t.prototype.remove=function(n){return wM(this,n,Ot)},t.prototype.deleteAll=function(n){var i=kr(n);return i.size===0?this:this.withMutations(function(s){i.forEach(function(a){return s.remove(a)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Vi()},t.prototype.sort=function(n){return Wi(ko(this,n))},t.prototype.sortBy=function(n,i){return Wi(ko(this,i,n))},t.prototype.map=function(n,i){var s=this;return this.withMutations(function(a){a.forEach(function(o,u){a.set(u,n.call(i,o,u,s))})})},t.prototype.__iterator=function(n,i){return new wQ(this,n,i)},t.prototype.__iterate=function(n,i){var s=this,a=0;return this._root&&this._root.iterate(function(o){return a++,n(o[1],o[0],s)},i),a},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?m2(this.size,this._root,n,this.__hash):this.size===0?Vi():(this.__ownerID=n,this.__altered=!1,this)},t})(si);Ua.isMap=oh;var nr=Ua.prototype;nr[L8]=!0;nr[Gc]=nr.remove;nr.removeAll=nr.deleteAll;nr.setIn=o2;nr.removeIn=nr.deleteIn=u2;nr.update=l2;nr.updateIn=f2;nr.merge=nr.concat=s4;nr.mergeWith=a4;nr.mergeDeep=u4;nr.mergeDeepWith=c4;nr.mergeIn=p2;nr.mergeDeepIn=d2;nr.withMutations=el;nr.wasAltered=h2;nr.asImmutable=rl;nr["@@transducer/init"]=nr.asMutable=tl;nr["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};nr["@@transducer/result"]=function(e){return e.asImmutable()};var mc=function(t,r){this.ownerID=t,this.entries=r};mc.prototype.get=function(t,r,n,i){for(var s=this.entries,a=0,o=s.length;a<o;a++)if(Sr(n,s[a][0]))return s[a][1];return i};mc.prototype.update=function(t,r,n,i,s,a,o){for(var u=s===Ot,c=this.entries,l=0,f=c.length;l<f&&!Sr(i,c[l][0]);l++);var h=l<f;if(h?c[l][1]===s:u)return this;if(ei(o),(u||!h)&&ei(a),!(u&&c.length===1)){if(!h&&!u&&c.length>=IQ)return xQ(t,c,i,s);var d=t&&t===this.ownerID,g=d?c:Li(c);return h?u?l===f-1?g.pop():g[l]=g.pop():g[l]=[i,s]:g.push([i,s]),d?(this.entries=g,this):new mc(t,g)}};var No=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};No.prototype.get=function(t,r,n,i){r===void 0&&(r=yn(n));var s=1<<((t===0?r:r>>>t)&un),a=this.bitmap;return(a&s)===0?i:this.nodes[l4(a&s-1)].get(t+Gt,r,n,i)};No.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=yn(i));var u=(r===0?n:n>>>r)&un,c=1<<u,l=this.bitmap,f=(l&c)!==0;if(!f&&s===Ot)return this;var h=l4(l&c-1),d=this.nodes,g=f?d[h]:void 0,y=g2(g,t,r+Gt,n,i,s,a,o);if(y===g)return this;if(!f&&y&&d.length>=TQ)return OQ(t,d,l,u,y);if(f&&!y&&d.length===2&&xM(d[h^1]))return d[h^1];if(f&&y&&d.length===1&&xM(y))return y;var v=t&&t===this.ownerID,_=f?y?l:l^c:l|c,b=f?y?f4(d,h,y,v):RQ(d,h,v):CQ(d,h,y,v);return v?(this.bitmap=_,this.nodes=b,this):new No(t,_,b)};var gc=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};gc.prototype.get=function(t,r,n,i){r===void 0&&(r=yn(n));var s=(t===0?r:r>>>t)&un,a=this.nodes[s];return a?a.get(t+Gt,r,n,i):i};gc.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=yn(i));var u=(r===0?n:n>>>r)&un,c=s===Ot,l=this.nodes,f=l[u];if(c&&!f)return this;var h=g2(f,t,r+Gt,n,i,s,a,o);if(h===f)return this;var d=this.count;if(!f)d++;else if(!h&&(d--,d<jQ))return AQ(t,l,d,u);var g=t&&t===this.ownerID,y=f4(l,u,h,g);return g?(this.count=d,this.nodes=y,this):new gc(t,d,y)};var Mo=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entries=n};Mo.prototype.get=function(t,r,n,i){for(var s=this.entries,a=0,o=s.length;a<o;a++)if(Sr(n,s[a][0]))return s[a][1];return i};Mo.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=yn(i));var u=s===Ot;if(n!==this.keyHash)return u?this:(ei(o),ei(a),y2(this,t,r,n,[i,s]));for(var c=this.entries,l=0,f=c.length;l<f&&!Sr(i,c[l][0]);l++);var h=l<f;if(h?c[l][1]===s:u)return this;if(ei(o),(u||!h)&&ei(a),u&&f===2)return new ms(t,this.keyHash,c[l^1]);var d=t&&t===this.ownerID,g=d?c:Li(c);return h?u?l===f-1?g.pop():g[l]=g.pop():g[l]=[i,s]:g.push([i,s]),d?(this.entries=g,this):new Mo(t,this.keyHash,g)};var ms=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entry=n};ms.prototype.get=function(t,r,n,i){return Sr(n,this.entry[0])?this.entry[1]:i};ms.prototype.update=function(t,r,n,i,s,a,o){var u=s===Ot,c=Sr(i,this.entry[0]);if(c?s===this.entry[1]:u)return this;if(ei(o),u){ei(a);return}return c?t&&t===this.ownerID?(this.entry[1]=s,this):new ms(t,this.keyHash,[i,s]):(ei(a),y2(this,t,r,yn(i),[i,s]))};mc.prototype.iterate=Mo.prototype.iterate=function(e,t){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(e(r[t?i-n:n])===!1)return!1};No.prototype.iterate=gc.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var s=r[t?i-n:n];if(s&&s.iterate(e,t)===!1)return!1}};ms.prototype.iterate=function(e,t){return e(this.entry)};var wQ=(function(e){function t(r,n,i){this._type=n,this._reverse=i,this._stack=r._root&&EM(r._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var n=this._type,i=this._stack;i;){var s=i.node,a=i.index++,o=void 0;if(s.entry){if(a===0)return Wb(n,s.entry)}else if(s.entries){if(o=s.entries.length-1,a<=o)return Wb(n,s.entries[this._reverse?o-a:a])}else if(o=s.nodes.length-1,a<=o){var u=s.nodes[this._reverse?o-a:a];if(u){if(u.entry)return Wb(n,u.entry);i=this._stack=EM(u,i)}continue}i=this._stack=this._stack.__prev}return Zr()},t})(It);function Wb(e,t){return rr(e,t[0],t[1])}function EM(e,t){return{node:e,index:0,__prev:t}}function m2(e,t,r,n){var i=Object.create(nr);return i.size=e,i._root=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var SM;function Vi(){return SM||(SM=m2(0))}function wM(e,t,r){var n,i;if(e._root){var s=cx(),a=cx();if(n=g2(e._root,e.__ownerID,0,void 0,t,r,s,a),!a.value)return e;i=e.size+(s.value?r===Ot?-1:1:0)}else{if(r===Ot)return e;i=1,n=new mc(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=i,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?m2(i,n):Vi()}function g2(e,t,r,n,i,s,a,o){return e?e.update(t,r,n,i,s,a,o):s===Ot?e:(ei(o),ei(a),new ms(t,n,[i,s]))}function xM(e){return e.constructor===ms||e.constructor===Mo}function y2(e,t,r,n,i){if(e.keyHash===n)return new Mo(t,n,[e.entry,i]);var s=(r===0?e.keyHash:e.keyHash>>>r)&un,a=(r===0?n:n>>>r)&un,o,u=s===a?[y2(e,t,r+Gt,n,i)]:(o=new ms(t,n,i),s<a?[e,o]:[o,e]);return new No(t,1<<s|1<<a,u)}function xQ(e,t,r,n){e||(e=new KO);for(var i=new ms(e,yn(r),[r,n]),s=0;s<t.length;s++){var a=t[s];i=i.update(e,0,void 0,a[0],a[1])}return i}function AQ(e,t,r,n){for(var i=0,s=0,a=new Array(r),o=0,u=1,c=t.length;o<c;o++,u<<=1){var l=t[o];l!==void 0&&o!==n&&(i|=u,a[s++]=l)}return new No(e,i,a)}function OQ(e,t,r,n,i){for(var s=0,a=new Array(Pn),o=0;r!==0;o++,r>>>=1)a[o]=r&1?t[s++]:void 0;return a[n]=i,new gc(e,s+1,a)}function l4(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function f4(e,t,r,n){var i=n?e:Li(e);return i[t]=r,i}function CQ(e,t,r,n){var i=e.length+1;if(n&&t+1===i)return e[t]=r,e;for(var s=new Array(i),a=0,o=0;o<i;o++)o===t?(s[o]=r,a=-1):s[o]=e[o+a];return s}function RQ(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var i=new Array(n),s=0,a=0;a<n;a++)a===t&&(s=1),i[a]=e[a+s];return i}var IQ=Pn/4,TQ=Pn/2,jQ=Pn/4,p4="@@__IMMUTABLE_LIST__@@";function v2(e){return!!(e&&e[p4])}var nl=(function(e){function t(r){var n=lp();if(r==null)return n;if(v2(r))return r;var i=e(r),s=i.size;return s===0?n:(jn(s),s>0&&s<Pn?yc(0,s,Gt,null,new Us(i.toArray())):n.withMutations(function(a){a.setSize(s),i.forEach(function(o,u){return a.set(u,o)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(n,i){if(n=Ws(this,n),n>=0&&n<this.size){n+=this._origin;var s=d4(this,n);return s&&s.array[n&un]}return i},t.prototype.set=function(n,i){return PQ(this,n,i)},t.prototype.remove=function(n){return this.has(n)?n===0?this.shift():n===this.size-1?this.pop():this.splice(n,1):this},t.prototype.insert=function(n,i){return this.splice(n,0,i)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Gt,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):lp()},t.prototype.push=function(){var n=arguments,i=this.size;return this.withMutations(function(s){Ms(s,0,i+n.length);for(var a=0;a<n.length;a++)s.set(i+a,n[a])})},t.prototype.pop=function(){return Ms(this,0,-1)},t.prototype.unshift=function(){var n=arguments;return this.withMutations(function(i){Ms(i,-n.length);for(var s=0;s<n.length;s++)i.set(s,n[s])})},t.prototype.shift=function(){return Ms(this,1)},t.prototype.shuffle=function(n){return n===void 0&&(n=Math.random),this.withMutations(function(i){for(var s=i.size,a,o;s;)a=Math.floor(n()*s--),o=i.get(a),i.set(a,i.get(s)),i.set(s,o)})},t.prototype.concat=function(){for(var n=arguments,i=[],s=0;s<arguments.length;s++){var a=n[s],o=e(typeof a!="string"&&HO(a)?a:[a]);o.size!==0&&i.push(o)}return i.length===0?this:this.size===0&&!this.__ownerID&&i.length===1?this.constructor(i[0]):this.withMutations(function(u){i.forEach(function(c){return c.forEach(function(l){return u.push(l)})})})},t.prototype.setSize=function(n){return Ms(this,0,n)},t.prototype.map=function(n,i){var s=this;return this.withMutations(function(a){for(var o=0;o<s.size;o++)a.set(o,n.call(i,a.get(o),o,s))})},t.prototype.slice=function(n,i){var s=this.size;return Yc(n,i,s)?this:Ms(this,eu(n,s),Xc(i,s))},t.prototype.__iterator=function(n,i){var s=i?this.size:0,a=AM(this,i);return new It(function(){var o=a();return o===nc?Zr():rr(n,i?--s:s++,o)})},t.prototype.__iterate=function(n,i){for(var s=i?this.size:0,a=AM(this,i),o;(o=a())!==nc&&n(o,i?--s:s++,this)!==!1;);return s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?yc(this._origin,this._capacity,this._level,this._root,this._tail,n,this.__hash):this.size===0?lp():(this.__ownerID=n,this.__altered=!1,this)},t})(Ba);nl.isList=v2;var wr=nl.prototype;wr[p4]=!0;wr[Gc]=wr.remove;wr.merge=wr.concat;wr.setIn=o2;wr.deleteIn=wr.removeIn=u2;wr.update=l2;wr.updateIn=f2;wr.mergeIn=p2;wr.mergeDeepIn=d2;wr.withMutations=el;wr.wasAltered=h2;wr.asImmutable=rl;wr["@@transducer/init"]=wr.asMutable=tl;wr["@@transducer/step"]=function(e,t){return e.push(t)};wr["@@transducer/result"]=function(e){return e.asImmutable()};var Us=function(t,r){this.array=t,this.ownerID=r};Us.prototype.removeBefore=function(t,r,n){if((n&(1<<r+Gt)-1)===0||this.array.length===0)return this;var i=n>>>r&un;if(i>=this.array.length)return new Us([],t);var s=i===0,a;if(r>0){var o=this.array[i];if(a=o&&o.removeBefore(t,r-Gt,n),a===o&&s)return this}if(s&&!a)return this;var u=Do(this,t);if(!s)for(var c=0;c<i;c++)u.array[c]=void 0;return a&&(u.array[i]=a),u};Us.prototype.removeAfter=function(t,r,n){if(n===(r?1<<r+Gt:Pn)||this.array.length===0)return this;var i=n-1>>>r&un;if(i>=this.array.length)return this;var s;if(r>0){var a=this.array[i];if(s=a&&a.removeAfter(t,r-Gt,n),s===a&&i===this.array.length-1)return this}var o=Do(this,t);return o.array.splice(i+1),s&&(o.array[i]=s),o};var nc={};function AM(e,t){var r=e._origin,n=e._capacity,i=vc(n),s=e._tail;return a(e._root,e._level,0);function a(c,l,f){return l===0?o(c,f):u(c,l,f)}function o(c,l){var f=l===i?s&&s.array:c&&c.array,h=l>r?0:r-l,d=n-l;return d>Pn&&(d=Pn),function(){if(h===d)return nc;var g=t?--d:h++;return f&&f[g]}}function u(c,l,f){var h,d=c&&c.array,g=f>r?0:r-f>>l,y=(n-f>>l)+1;return y>Pn&&(y=Pn),function(){for(;;){if(h){var v=h();if(v!==nc)return v;h=null}if(g===y)return nc;var _=t?--y:g++;h=a(d&&d[_],l-Gt,f+(_<<l))}}}}function yc(e,t,r,n,i,s,a){var o=Object.create(wr);return o.size=t-e,o._origin=e,o._capacity=t,o._level=r,o._root=n,o._tail=i,o.__ownerID=s,o.__hash=a,o.__altered=!1,o}function lp(){return yc(0,0,Gt)}function PQ(e,t,r){if(t=Ws(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(a){t<0?Ms(a,t).set(0,r):Ms(a,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,i=e._root,s=cx();return t>=vc(e._capacity)?n=gx(n,e.__ownerID,0,t,r,s):i=gx(i,e.__ownerID,e._level,t,r,s),s.value?e.__ownerID?(e._root=i,e._tail=n,e.__hash=void 0,e.__altered=!0,e):yc(e._origin,e._capacity,e._level,i,n):e}function gx(e,t,r,n,i,s){var a=n>>>r&un,o=e&&a<e.array.length;if(!o&&i===void 0)return e;var u;if(r>0){var c=e&&e.array[a],l=gx(c,t,r-Gt,n,i,s);return l===c?e:(u=Do(e,t),u.array[a]=l,u)}return o&&e.array[a]===i?e:(s&&ei(s),u=Do(e,t),i===void 0&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function Do(e,t){return t&&e&&t===e.ownerID?e:new Us(e?e.array.slice():[],t)}function d4(e,t){if(t>=vc(e._capacity))return e._tail;if(t<1<<e._level+Gt){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&un],n-=Gt;return r}}function Ms(e,t,r){t!==void 0&&(t|=0),r!==void 0&&(r|=0);var n=e.__ownerID||new KO,i=e._origin,s=e._capacity,a=i+t,o=r===void 0?s:r<0?s+r:i+r;if(a===i&&o===s)return e;if(a>=o)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new Us(c&&c.array.length?[void 0,c]:[],n),u+=Gt,l+=1<<u;l&&(a+=l,i+=l,o+=l,s+=l);for(var f=vc(s),h=vc(o);h>=1<<u+Gt;)c=new Us(c&&c.array.length?[c]:[],n),u+=Gt;var d=e._tail,g=h<f?d4(e,o-1):h>f?new Us([],n):d;if(d&&h>f&&a<s&&d.array.length){c=Do(c,n);for(var y=c,v=u;v>Gt;v-=Gt){var _=f>>>v&un;y=y.array[_]=Do(y.array[_],n)}y.array[f>>>Gt&un]=d}if(o<s&&(g=g&&g.removeAfter(n,0,o)),a>=h)a-=h,o-=h,u=Gt,c=null,g=g&&g.removeBefore(n,0,a);else if(a>i||h<f){for(l=0;c;){var b=a>>>u&un;if(b!==h>>>u&un)break;b&&(l+=(1<<u)*b),u-=Gt,c=c.array[b]}c&&a>i&&(c=c.removeBefore(n,u,a-l)),c&&h<f&&(c=c.removeAfter(n,u,h-l)),l&&(a-=l,o-=l)}return e.__ownerID?(e.size=o-a,e._origin=a,e._capacity=o,e._level=u,e._root=c,e._tail=g,e.__hash=void 0,e.__altered=!0,e):yc(a,o,u,c,g)}function vc(e){return e<Pn?0:e-1>>>Gt<<Gt}var Wi=(function(e){function t(r){return r==null?Wu():e2(r)?r:Wu().withMutations(function(n){var i=si(r);jn(i.size),i.forEach(function(s,a){return n.set(a,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(n,i){var s=this._map.get(n);return s!==void 0?this._list.get(s)[1]:i},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Wu()},t.prototype.set=function(n,i){return CM(this,n,i)},t.prototype.remove=function(n){return CM(this,n,Ot)},t.prototype.__iterate=function(n,i){var s=this;return this._list.__iterate(function(a){return a&&n(a[1],a[0],s)},i)},t.prototype.__iterator=function(n,i){return this._list.fromEntrySeq().__iterator(n,i)},t.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var i=this._map.__ensureOwner(n),s=this._list.__ensureOwner(n);return n?b2(i,s,n,this.__hash):this.size===0?Wu():(this.__ownerID=n,this.__altered=!1,this._map=i,this._list=s,this)},t})(Ua);Wi.isOrderedMap=e2;Wi.prototype[Js]=!0;Wi.prototype[Gc]=Wi.prototype.remove;function b2(e,t,r,n){var i=Object.create(Wi.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var OM;function Wu(){return OM||(OM=b2(Vi(),lp()))}function CM(e,t,r){var n=e._map,i=e._list,s=n.get(t),a=s!==void 0,o,u;if(r===Ot){if(!a)return e;i.size>=Pn&&i.size>=n.size*2?(u=i.filter(function(c,l){return c!==void 0&&s!==l}),o=u.toKeyedSeq().map(function(c){return c[0]}).flip().toMap(),e.__ownerID&&(o.__ownerID=u.__ownerID=e.__ownerID)):(o=n.remove(t),u=s===i.size-1?i.pop():i.set(s,void 0))}else if(a){if(r===i.get(s)[1])return e;o=n,u=i.set(s,[t,r])}else o=n.set(t,i.size),u=i.set(i.size,[t,r]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=u,e.__hash=void 0,e.__altered=!0,e):b2(o,u)}var h4="@@__IMMUTABLE_STACK__@@";function Pp(e){return!!(e&&e[h4])}var lh=(function(e){function t(r){return r==null?zf():Pp(r)?r:zf().pushAll(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(n,i){var s=this._head;for(n=Ws(this,n);s&&n--;)s=s.next;return s?s.value:i},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var i=this.size+arguments.length,s=this._head,a=arguments.length-1;a>=0;a--)s={value:n[a],next:s};return this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):Ju(i,s)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&Pp(n))return n;jn(n.size);var i=this.size,s=this._head;return n.__iterate(function(a){i++,s={value:a,next:s}},!0),this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):Ju(i,s)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):zf()},t.prototype.slice=function(n,i){if(Yc(n,i,this.size))return this;var s=eu(n,this.size),a=Xc(i,this.size);if(a!==this.size)return e.prototype.slice.call(this,n,i);for(var o=this.size-s,u=this._head;s--;)u=u.next;return this.__ownerID?(this.size=o,this._head=u,this.__hash=void 0,this.__altered=!0,this):Ju(o,u)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?Ju(this.size,this._head,n,this.__hash):this.size===0?zf():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,i){var s=this;if(i)return new Po(this.toArray()).__iterate(function(u,c){return n(u,c,s)},i);for(var a=0,o=this._head;o&&n(o.value,a++,this)!==!1;)o=o.next;return a},t.prototype.__iterator=function(n,i){if(i)return new Po(this.toArray()).__iterator(n,i);var s=0,a=this._head;return new It(function(){if(a){var o=a.value;return a=a.next,rr(n,s++,o)}return Zr()})},t})(Ba);lh.isStack=Pp;var cn=lh.prototype;cn[h4]=!0;cn.shift=cn.pop;cn.unshift=cn.push;cn.unshiftAll=cn.pushAll;cn.withMutations=el;cn.wasAltered=h2;cn.asImmutable=rl;cn["@@transducer/init"]=cn.asMutable=tl;cn["@@transducer/step"]=function(e,t){return e.unshift(t)};cn["@@transducer/result"]=function(e){return e.asImmutable()};function Ju(e,t,r,n){var i=Object.create(cn);return i.size=e,i._head=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var RM;function zf(){return RM||(RM=Ju(0))}var m4="@@__IMMUTABLE_SET__@@";function fh(e){return!!(e&&e[m4])}function _2(e){return fh(e)&&Si(e)}function E2(e,t){if(e===t)return!0;if(!_n(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||Xt(e)!==Xt(t)||En(e)!==En(t)||Si(e)!==Si(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!nh(e);if(Si(e)){var n=e.entries();return t.every(function(u,c){var l=n.next().value;return l&&Sr(l[1],u)&&(r||Sr(l[0],c))})&&n.next().done}var i=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{i=!0;var s=e;e=t,t=s}var a=!0,o=t.__iterate(function(u,c){if(r?!e.has(u):i?!Sr(u,e.get(c,Ot)):!Sr(e.get(c,Ot),u))return a=!1,!1});return a&&e.size===o}function Va(e,t){var r=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}function kp(e){if(!e||typeof e!="object")return e;if(!_n(e)){if(!Ks(e))return e;e=Qr(e)}if(Xt(e)){var t={};return e.__iterate(function(n,i){t[i]=kp(n)}),t}var r=[];return e.__iterate(function(n){r.push(kp(n))}),r}var il=(function(e){function t(r){return r==null?Ku():fh(r)&&!Si(r)?r:Ku().withMutations(function(n){var i=e(r);jn(i.size),i.forEach(function(s){return n.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(si(n).keySeq())},t.intersect=function(n){return n=kr(n).toArray(),n.length?zr.intersect.apply(t(n.pop()),n):Ku()},t.union=function(n){return n=kr(n).toArray(),n.length?zr.union.apply(t(n.pop()),n):Ku()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(n){return this._map.has(n)},t.prototype.add=function(n){return Wf(this,this._map.set(n,n))},t.prototype.remove=function(n){return Wf(this,this._map.remove(n))},t.prototype.clear=function(){return Wf(this,this._map.clear())},t.prototype.map=function(n,i){var s=this,a=!1,o=Wf(this,this._map.mapEntries(function(u){var c=u[1],l=n.call(i,c,c,s);return l!==c&&(a=!0),[l,l]},i));return a?o:this},t.prototype.union=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return n=n.filter(function(s){return s.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(s){for(var a=0;a<n.length;a++)typeof n[a]=="string"?s.add(n[a]):e(n[a]).forEach(function(o){return s.add(o)})})},t.prototype.intersect=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n.length===0)return this;n=n.map(function(a){return e(a)});var s=[];return this.forEach(function(a){n.every(function(o){return o.includes(a)})||s.push(a)}),this.withMutations(function(a){s.forEach(function(o){a.remove(o)})})},t.prototype.subtract=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n.length===0)return this;n=n.map(function(a){return e(a)});var s=[];return this.forEach(function(a){n.some(function(o){return o.includes(a)})&&s.push(a)}),this.withMutations(function(a){s.forEach(function(o){a.remove(o)})})},t.prototype.sort=function(n){return $o(ko(this,n))},t.prototype.sortBy=function(n,i){return $o(ko(this,i,n))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(n,i){var s=this;return this._map.__iterate(function(a){return n(a,a,s)},i)},t.prototype.__iterator=function(n,i){return this._map.__iterator(n,i)},t.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var i=this._map.__ensureOwner(n);return n?this.__make(i,n):this.size===0?this.__empty():(this.__ownerID=n,this._map=i,this)},t})(tu);il.isSet=fh;var zr=il.prototype;zr[m4]=!0;zr[Gc]=zr.remove;zr.merge=zr.concat=zr.union;zr.withMutations=el;zr.asImmutable=rl;zr["@@transducer/init"]=zr.asMutable=tl;zr["@@transducer/step"]=function(e,t){return e.add(t)};zr["@@transducer/result"]=function(e){return e.asImmutable()};zr.__empty=Ku;zr.__make=g4;function Wf(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function g4(e,t){var r=Object.create(zr);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var IM;function Ku(){return IM||(IM=g4(Vi()))}var y4=(function(e){function t(r,n,i){if(i===void 0&&(i=1),!(this instanceof t))return new t(r,n,i);if(rc(i!==0,"Cannot step a Range by 0"),rc(r!==void 0,"You must define a start value when using Range"),rc(n!==void 0,"You must define an end value when using Range"),i=Math.abs(i),n<r&&(i=-i),this._start=r,this._end=n,this._step=i,this.size=Math.max(0,Math.ceil((n-r)/i-1)+1),this.size===0){if(Jb)return Jb;Jb=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},t.prototype.get=function(n,i){return this.has(n)?this._start+Ws(this,n)*this._step:i},t.prototype.includes=function(n){var i=(n-this._start)/this._step;return i>=0&&i<this.size&&i===Math.floor(i)},t.prototype.slice=function(n,i){return Yc(n,i,this.size)?this:(n=eu(n,this.size),i=Xc(i,this.size),i<=n?new t(0,0):new t(this.get(n,this._end),this.get(i,this._end),this._step))},t.prototype.indexOf=function(n){var i=n-this._start;if(i%this._step===0){var s=i/this._step;if(s>=0&&s<this.size)return s}return-1},t.prototype.lastIndexOf=function(n){return this.indexOf(n)},t.prototype.__iterate=function(n,i){for(var s=this.size,a=this._step,o=i?this._start+(s-1)*a:this._start,u=0;u!==s&&n(o,i?s-++u:u++,this)!==!1;)o+=i?-a:a;return u},t.prototype.__iterator=function(n,i){var s=this.size,a=this._step,o=i?this._start+(s-1)*a:this._start,u=0;return new It(function(){if(u===s)return Zr();var c=o;return o+=i?-a:a,rr(n,i?s-++u:u++,c)})},t.prototype.equals=function(n){return n instanceof t?this._start===n._start&&this._end===n._end&&this._step===n._step:E2(this,n)},t})(oi),Jb;function S2(e,t,r){for(var n=Z8(t),i=0;i!==n.length;)if(e=a2(e,n[i++],Ot),e===Ot)return r;return e}function v4(e,t){return S2(this,e,t)}function b4(e,t){return S2(e,t,Ot)!==Ot}function kQ(e){return b4(this,e)}function _4(){jn(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e}kr.Iterator=It;Va(kr,{toArray:function(){jn(this.size);var t=new Array(this.size||0),r=Xt(this),n=0;return this.__iterate(function(i,s){t[n++]=r?[s,i]:i}),t},toIndexedSeq:function(){return new V8(this)},toJS:function(){return kp(this)},toKeyedSeq:function(){return new ch(this,!0)},toMap:function(){return Ua(this.toKeyedSeq())},toObject:_4,toOrderedMap:function(){return Wi(this.toKeyedSeq())},toOrderedSet:function(){return $o(Xt(this)?this.valueSeq():this)},toSet:function(){return il(Xt(this)?this.valueSeq():this)},toSetSeq:function(){return new z8(this)},toSeq:function(){return En(this)?this.toIndexedSeq():Xt(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return lh(Xt(this)?this.valueSeq():this)},toList:function(){return nl(Xt(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,r){return this.size===0?t+r:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+r},concat:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return Ht(this,dQ(this,t))},includes:function(t){return this.some(function(r){return Sr(r,t)})},entries:function(){return this.__iterator(Dn)},every:function(t,r){jn(this.size);var n=!0;return this.__iterate(function(i,s,a){if(!t.call(r,i,s,a))return n=!1,!1}),n},filter:function(t,r){return Ht(this,H8(this,t,r,!0))},partition:function(t,r){return lQ(this,t,r)},find:function(t,r,n){var i=this.findEntry(t,r);return i?i[1]:n},forEach:function(t,r){return jn(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){jn(this.size),t=t!==void 0?""+t:",";var r="",n=!0;return this.__iterate(function(i){n?n=!1:r+=t,r+=i!=null?i.toString():""}),r},keys:function(){return this.__iterator(ru)},map:function(t,r){return Ht(this,K8(this,t,r))},reduce:function(t,r,n){return TM(this,t,r,n,arguments.length<2,!1)},reduceRight:function(t,r,n){return TM(this,t,r,n,arguments.length<2,!0)},reverse:function(){return Ht(this,t2(this,!0))},slice:function(t,r){return Ht(this,r2(this,t,r,!0))},some:function(t,r){jn(this.size);var n=!1;return this.__iterate(function(i,s,a){if(t.call(r,i,s,a))return n=!0,!1}),n},sort:function(t){return Ht(this,ko(this,t))},values:function(){return this.__iterator(Mn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,r){return jo(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return uQ(this,t,r)},equals:function(t){return E2(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Po(t._cache);var r=t.toSeq().map(MQ).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(Kb(t),r)},findEntry:function(t,r,n){var i=n;return this.__iterate(function(s,a,o){if(t.call(r,s,a,o))return i=[a,s],!1}),i},findKey:function(t,r){var n=this.findEntry(t,r);return n&&n[0]},findLast:function(t,r,n){return this.toKeyedSeq().reverse().find(t,r,n)},findLastEntry:function(t,r,n){return this.toKeyedSeq().reverse().findEntry(t,r,n)},findLastKey:function(t,r){return this.toKeyedSeq().reverse().findKey(t,r)},first:function(t){return this.find(k8,null,t)},flatMap:function(t,r){return Ht(this,hQ(this,t,r))},flatten:function(t){return Ht(this,Y8(this,t,!0))},fromEntrySeq:function(){return new W8(this)},get:function(t,r){return this.find(function(n,i){return Sr(i,t)},void 0,r)},getIn:v4,groupBy:function(t,r){return cQ(this,t,r)},has:function(t){return this.get(t,Ot)!==Ot},hasIn:kQ,isSubset:function(t){return t=typeof t.includes=="function"?t:kr(t),this.every(function(r){return t.includes(r)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:kr(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(r){return Sr(r,t)})},keySeq:function(){return this.toSeq().map(NQ).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Uf(this,t)},maxBy:function(t,r){return Uf(this,r,t)},min:function(t){return Uf(this,t?jM(t):kM)},minBy:function(t,r){return Uf(this,r?jM(r):kM,t)},rest:function(){return this.slice(1)},skip:function(t){return t===0?this:this.slice(Math.max(0,t))},skipLast:function(t){return t===0?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,r){return Ht(this,G8(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(Kb(t),r)},sortBy:function(t,r){return Ht(this,ko(this,r,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,r){return Ht(this,fQ(this,t,r))},takeUntil:function(t,r){return this.takeWhile(Kb(t),r)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=DQ(this))}});var en=kr.prototype;en[D8]=!0;en[sh]=en.values;en.toJSON=en.toArray;en.__toStringMapper=hc;en.inspect=en.toSource=function(){return this.toString()};en.chain=en.flatMap;en.contains=en.includes;Va(si,{flip:function(){return Ht(this,J8(this))},mapEntries:function(t,r){var n=this,i=0;return Ht(this,this.toSeq().map(function(s,a){return t.call(r,[a,s],i++,n)}).fromEntrySeq())},mapKeys:function(t,r){var n=this;return Ht(this,this.toSeq().flip().map(function(i,s){return t.call(r,i,s,n)}).flip())}});var sl=si.prototype;sl[Ip]=!0;sl[sh]=en.entries;sl.toJSON=_4;sl.__toStringMapper=function(e,t){return hc(t)+": "+hc(e)};Va(Ba,{toKeyedSeq:function(){return new ch(this,!1)},filter:function(t,r){return Ht(this,H8(this,t,r,!1))},findIndex:function(t,r){var n=this.findEntry(t,r);return n?n[0]:-1},indexOf:function(t){var r=this.keyOf(t);return r===void 0?-1:r},lastIndexOf:function(t){var r=this.lastKeyOf(t);return r===void 0?-1:r},reverse:function(){return Ht(this,t2(this,!1))},slice:function(t,r){return Ht(this,r2(this,t,r,!1))},splice:function(t,r){var n=arguments.length;if(r=Math.max(r||0,0),n===0||n===2&&!r)return this;t=eu(t,t<0?this.count():this.size);var i=this.slice(0,t);return Ht(this,n===1?i:i.concat(Li(arguments,2),this.slice(t+r)))},findLastIndex:function(t,r){var n=this.findLastEntry(t,r);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Ht(this,Y8(this,t,!1))},get:function(t,r){return t=Ws(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?r:this.find(function(n,i){return i===t},void 0,r)},has:function(t){return t=Ws(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return Ht(this,mQ(this,t))},interleave:function(){var t=[this].concat(Li(arguments)),r=Vf(this.toSeq(),oi.of,t),n=r.flatten(!0);return r.size&&(n.size=r.size*t.length),Ht(this,n)},keySeq:function(){return y4(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,r){return Ht(this,G8(this,t,r,!1))},zip:function(){var t=[this].concat(Li(arguments));return Ht(this,Vf(this,PM,t))},zipAll:function(){var t=[this].concat(Li(arguments));return Ht(this,Vf(this,PM,t,!0))},zipWith:function(t){var r=Li(arguments);return r[0]=this,Ht(this,Vf(this,t,r))}});var su=Ba.prototype;su[Tp]=!0;su[Js]=!0;Va(tu,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var qo=tu.prototype;qo.has=en.includes;qo.contains=qo.includes;qo.keys=qo.values;Va(Xs,sl);Va(oi,su);Va(iu,qo);function TM(e,t,r,n,i,s){return jn(e.size),e.__iterate(function(a,o,u){i?(i=!1,r=a):r=t.call(n,r,a,o,u)},s),r}function NQ(e,t){return t}function MQ(e,t){return[t,e]}function Kb(e){return function(){return!e.apply(this,arguments)}}function jM(e){return function(){return-e.apply(this,arguments)}}function PM(){return Li(arguments)}function kM(e,t){return e<t?1:e>t?-1:0}function DQ(e){if(e.size===1/0)return 0;var t=Si(e),r=Xt(e),n=t?1:0;return e.__iterate(r?t?function(i,s){n=31*n+NM(yn(i),yn(s))|0}:function(i,s){n=n+NM(yn(i),yn(s))|0}:t?function(i){n=31*n+yn(i)|0}:function(i){n=n+yn(i)|0}),qQ(e.size,n)}function qQ(e,t){return t=Mu(t,3432918353),t=Mu(t<<15|t>>>-15,461845907),t=Mu(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Mu(t^t>>>16,2246822507),t=Mu(t^t>>>13,3266489909),t=uh(t^t>>>16),t}function NM(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var $o=(function(e){function t(r){return r==null?yx():_2(r)?r:yx().withMutations(function(n){var i=tu(r);jn(i.size),i.forEach(function(s){return n.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(si(n).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t})(il);$o.isOrderedSet=_2;var za=$o.prototype;za[Js]=!0;za.zip=su.zip;za.zipWith=su.zipWith;za.zipAll=su.zipAll;za.__empty=yx;za.__make=E4;function E4(e,t){var r=Object.create(za);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var MM;function yx(){return MM||(MM=E4(Wu()))}var $Q={LeftThenRight:-1,RightThenLeft:1};function FQ(e){if(Ys(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(ai(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Tr=function(t,r){var n;FQ(t);var i=function(o){var u=this;if(o instanceof i)return o;if(!(this instanceof i))return new i(o);if(!n){n=!0;var c=Object.keys(t),l=s._indices={};s._name=r,s._keys=c,s._defaultValues=t;for(var f=0;f<c.length;f++){var h=c[f];l[h]=f,s[h]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+x2(this)+' with property "'+h+'" since that property name is part of the Record API.'):BQ(s,h)}}return this.__ownerID=void 0,this._values=nl().withMutations(function(d){d.setSize(u._keys.length),si(o).forEach(function(g,y){d.set(u._indices[y],g===u._defaultValues[y]?void 0:g)})}),this},s=i.prototype=Object.create(Qt);return s.constructor=i,r&&(i.displayName=r),i};Tr.prototype.toString=function(){for(var t=x2(this)+" { ",r=this._keys,n,i=0,s=r.length;i!==s;i++)n=r[i],t+=(i?", ":"")+n+": "+hc(this.get(n));return t+" }"};Tr.prototype.equals=function(t){return this===t||Ys(t)&&Fo(this).equals(Fo(t))};Tr.prototype.hashCode=function(){return Fo(this).hashCode()};Tr.prototype.has=function(t){return this._indices.hasOwnProperty(t)};Tr.prototype.get=function(t,r){if(!this.has(t))return r;var n=this._indices[t],i=this._values.get(n);return i===void 0?this._defaultValues[t]:i};Tr.prototype.set=function(t,r){if(this.has(t)){var n=this._values.set(this._indices[t],r===this._defaultValues[t]?void 0:r);if(n!==this._values&&!this.__ownerID)return w2(this,n)}return this};Tr.prototype.remove=function(t){return this.set(t)};Tr.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:w2(this,t)};Tr.prototype.wasAltered=function(){return this._values.wasAltered()};Tr.prototype.toSeq=function(){return Fo(this)};Tr.prototype.toJS=function(){return kp(this)};Tr.prototype.entries=function(){return this.__iterator(Dn)};Tr.prototype.__iterator=function(t,r){return Fo(this).__iterator(t,r)};Tr.prototype.__iterate=function(t,r){return Fo(this).__iterate(t,r)};Tr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._values.__ensureOwner(t);return t?w2(this,r,t):(this.__ownerID=t,this._values=r,this)};Tr.isRecord=Ys;Tr.getDescriptiveName=x2;var Qt=Tr.prototype;Qt[$8]=!0;Qt[Gc]=Qt.remove;Qt.deleteIn=Qt.removeIn=u2;Qt.getIn=v4;Qt.hasIn=en.hasIn;Qt.merge=s4;Qt.mergeWith=a4;Qt.mergeIn=p2;Qt.mergeDeep=u4;Qt.mergeDeepWith=c4;Qt.mergeDeepIn=d2;Qt.setIn=o2;Qt.update=l2;Qt.updateIn=f2;Qt.withMutations=el;Qt.asMutable=tl;Qt.asImmutable=rl;Qt[sh]=Qt.entries;Qt.toJSON=Qt.toObject=en.toObject;Qt.inspect=Qt.toSource=function(){return this.toString()};function w2(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._values=t,n.__ownerID=r,n}function x2(e){return e.constructor.displayName||e.constructor.name||"Record"}function Fo(e){return ZO(e._keys.map(function(t){return[t,e.get(t)]}))}function BQ(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(r){rc(this.__ownerID,"Cannot set on an immutable record."),this.set(t,r)}})}catch{}}var LQ=(function(e){function t(r,n){if(!(this instanceof t))return new t(r,n);if(this._value=r,this.size=n===void 0?1/0:Math.max(0,n),this.size===0){if(Hb)return Hb;Hb=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(n,i){return this.has(n)?this._value:i},t.prototype.includes=function(n){return Sr(this._value,n)},t.prototype.slice=function(n,i){var s=this.size;return Yc(n,i,s)?this:new t(this._value,Xc(i,s)-eu(n,s))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(n){return Sr(this._value,n)?0:-1},t.prototype.lastIndexOf=function(n){return Sr(this._value,n)?this.size:-1},t.prototype.__iterate=function(n,i){for(var s=this.size,a=0;a!==s&&n(this._value,i?s-++a:a++,this)!==!1;);return a},t.prototype.__iterator=function(n,i){var s=this,a=this.size,o=0;return new It(function(){return o===a?Zr():rr(n,i?a-++o:o++,s._value)})},t.prototype.equals=function(n){return n instanceof t?Sr(this._value,n._value):E2(this,n)},t})(oi),Hb;function UQ(e,t){return S4([],t||VQ,e,"",t&&t.length>2?[]:void 0,{"":e})}function S4(e,t,r,n,i,s){if(typeof r!="string"&&!ai(r)&&(GO(r)||HO(r)||s2(r))){if(~e.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");e.push(r),i&&n!==""&&i.push(n);var a=t.call(s,n,Qr(r).map(function(o,u){return S4(e,t,o,u,i,r)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return r}function VQ(e,t){return En(t)?t.toList():Xt(t)?t.toMap():t.toSet()}var zQ="5.1.3",WQ=kr;const JQ=Object.freeze(Object.defineProperty({__proto__:null,Collection:kr,Iterable:WQ,List:nl,Map:Ua,OrderedMap:Wi,OrderedSet:$o,PairSorting:$Q,Range:y4,Record:Tr,Repeat:LQ,Seq:Qr,Set:il,Stack:lh,fromJS:UQ,get:a2,getIn:S2,has:Q8,hasIn:b4,hash:yn,is:Sr,isAssociative:nh,isCollection:_n,isImmutable:ai,isIndexed:En,isKeyed:Xt,isList:v2,isMap:oh,isOrdered:Si,isOrderedMap:e2,isOrderedSet:_2,isPlainObject:s2,isRecord:Ys,isSeq:ih,isSet:fh,isStack:Pp,isValueObject:px,merge:yQ,mergeDeep:bQ,mergeDeepWith:_Q,mergeWith:vQ,remove:e4,removeIn:i4,set:t4,setIn:n4,update:c2,updateIn:La,version:zQ},Symbol.toStringTag,{value:"Module"})),KQ=Ve.getAugmentedNamespace(JQ);var Gb,DM;function HQ(){if(DM)return Gb;DM=1;var e=KQ,t="<<anonymous>>",r;if(process.env.NODE_ENV!=="production")r={listOf:f,mapOf:d,orderedMapOf:g,setOf:y,orderedSetOf:v,stackOf:_,iterableOf:b,recordOf:E,shape:S,contains:S,mapContains:A,orderedMapContains:R,list:o("List",e.List.isList),map:o("Map",e.Map.isMap),orderedMap:o("OrderedMap",e.OrderedMap.isOrderedMap),set:o("Set",e.Set.isSet),orderedSet:o("OrderedSet",e.OrderedSet.isOrderedSet),stack:o("Stack",e.Stack.isStack),seq:o("Seq",e.Seq.isSeq),record:o("Record",function(T){return T instanceof e.Record}),iterable:o("Iterable",e.Iterable.isIterable)};else{var n=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};n.isRequired=n;var i=function(){return n};r={listOf:i,mapOf:i,orderedMapOf:i,setOf:i,orderedSetOf:i,stackOf:i,iterableOf:i,recordOf:i,shape:i,contains:i,mapContains:i,orderedMapContains:i,list:n,map:n,orderedMap:n,set:n,orderedSet:n,stack:n,seq:n,record:n,iterable:n}}r.iterable.indexed=u("Indexed",e.Iterable.isIndexed),r.iterable.keyed=u("Keyed",e.Iterable.isKeyed);function s(T){var O=typeof T;return Array.isArray(T)?"array":T instanceof RegExp?"object":T instanceof e.Iterable?"Immutable."+T.toSource().split(" ")[0]:O}function a(T){function O(N,$,M,X,ee,J){for(var Q=arguments.length,te=Array(Q>6?Q-6:0),re=6;re<Q;re++)te[re-6]=arguments[re];if(J=J||M,X=X||t,$[M]==null){var L=ee;if(N)return new Error("Required "+L+" `"+J+"` was not specified in "+("`"+X+"`."))}else return T.apply(void 0,[$,M,X,ee,J].concat(te))}var D=O.bind(null,!1);return D.isRequired=O.bind(null,!0),D}function o(T,O){function D(N,$,M,X,ee){var J=N[$];if(!O(J)){var Q=s(J);return new Error("Invalid "+X+" `"+ee+"` of type `"+Q+"` "+("supplied to `"+M+"`, expected `"+T+"`."))}return null}return a(D)}function u(T,O){return o("Iterable."+T,function(D){return e.Iterable.isIterable(D)&&O(D)})}function c(T,O,D){function N($,M,X,ee,J){for(var Q=arguments.length,te=Array(Q>5?Q-5:0),re=5;re<Q;re++)te[re-5]=arguments[re];var L=$[M];if(!D(L)){var K=ee,ne=s(L);return new Error("Invalid "+K+" `"+J+"` of type "+("`"+ne+"` supplied to `"+X+"`, expected an Immutable.js "+O+"."))}if(typeof T!="function")return new Error("Invalid typeChecker supplied to `"+X+"` "+("for propType `"+J+"`, expected a function."));for(var ce=L.valueSeq().toArray(),ue=0,se=ce.length;ue<se;ue++){var V=T.apply(void 0,[ce,ue,X,ee,""+J+"["+ue+"]"].concat(te));if(V instanceof Error)return V}}return a(N)}function l(T){function O(D,N,$,M,X){for(var ee=arguments.length,J=Array(ee>5?ee-5:0),Q=5;Q<ee;Q++)J[Q-5]=arguments[Q];var te=D[N];if(typeof T!="function")return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+$+"` "+("for propType `"+X+"`, expected a function."));for(var re=te.keySeq().toArray(),L=0,K=re.length;L<K;L++){var ne=T.apply(void 0,[re,L,$,M,""+X+" -> key("+re[L]+")"].concat(J));if(ne instanceof Error)return ne}}return a(O)}function f(T){return c(T,"List",e.List.isList)}function h(T,O,D,N){function $(){for(var M=arguments.length,X=Array(M),ee=0;ee<M;ee++)X[ee]=arguments[ee];return c(T,D,N).apply(void 0,X)||O&&l(O).apply(void 0,X)}return a($)}function d(T,O){return h(T,O,"Map",e.Map.isMap)}function g(T,O){return h(T,O,"OrderedMap",e.OrderedMap.isOrderedMap)}function y(T){return c(T,"Set",e.Set.isSet)}function v(T){return c(T,"OrderedSet",e.OrderedSet.isOrderedSet)}function _(T){return c(T,"Stack",e.Stack.isStack)}function b(T){return c(T,"Iterable",e.Iterable.isIterable)}function E(T){function O(D,N,$,M,X){for(var ee=arguments.length,J=Array(ee>5?ee-5:0),Q=5;Q<ee;Q++)J[Q-5]=arguments[Q];var te=D[N];if(!(te instanceof e.Record)){var re=s(te),L=M;return new Error("Invalid "+L+" `"+X+"` of type `"+re+"` "+("supplied to `"+$+"`, expected an Immutable.js Record."))}for(var K in T){var ne=T[K];if(ne){var ce=te.toObject(),ue=ne.apply(void 0,[ce,K,$,M,""+X+"."+K].concat(J));if(ue)return ue}}}return a(O)}function w(T){var O=arguments[1]===void 0?"Iterable":arguments[1],D=arguments[2]===void 0?e.Iterable.isIterable:arguments[2];function N($,M,X,ee,J){for(var Q=arguments.length,te=Array(Q>5?Q-5:0),re=5;re<Q;re++)te[re-5]=arguments[re];var L=$[M];if(!D(L)){var K=s(L),ne=ee;return new Error("Invalid "+ne+" `"+J+"` of type `"+K+"` "+("supplied to `"+X+"`, expected an Immutable.js "+O+"."))}var ce=L.toObject();for(var ue in T){var se=T[ue];if(se){var V=se.apply(void 0,[ce,ue,X,ee,""+J+"."+ue].concat(te));if(V)return V}}}return a(N)}function S(T){return w(T)}function A(T){return w(T,"Map",e.Map.isMap)}function R(T){return w(T,"OrderedMap",e.OrderedMap.isOrderedMap)}return Gb=r,Gb}var GQ=HQ();const YQ=Ve.getDefaultExportFromCjs(GQ);var Yb,qM;function XQ(){if(qM)return Yb;qM=1;function e(t,r,n,i,s){return s(t,function(a,o,u){n=i?(i=!1,a):r(n,a,o,u)}),n}return Yb=e,Yb}var Xb,$M;function ZQ(){if($M)return Xb;$M=1;var e=x6(),t=F6(),r=Hc(),n=XQ(),i=Mr();function s(a,o,u){var c=i(a)?e:n,l=arguments.length<3;return c(a,r(o,4),u,l,t)}return Xb=s,Xb}var QQ=ZQ();const eee=Ve.getDefaultExportFromCjs(QQ);var tee=M6();const ree=Ve.getDefaultExportFromCjs(tee);var FM={},Du,BM;function Sn(){if(BM)return Du;BM=1;var e=function(t){return t&&t.Math===Math&&t};return Du=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Ve.commonjsGlobal=="object"&&Ve.commonjsGlobal)||e(typeof Du=="object"&&Du)||(function(){return this})()||Function("return this")(),Du}var Zb,LM;function ui(){return LM||(LM=1,Zb=function(e){try{return!!e()}catch{return!0}}),Zb}var Qb,UM;function al(){if(UM)return Qb;UM=1;var e=ui();return Qb=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Qb}var e_,VM;function A2(){if(VM)return e_;VM=1;var e=al(),t=Function.prototype,r=t.apply,n=t.call;return e_=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),e_}var t_,zM;function wn(){if(zM)return t_;zM=1;var e=al(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return t_=e?n:function(i){return function(){return r.apply(i,arguments)}},t_}var r_,WM;function O2(){if(WM)return r_;WM=1;var e=wn(),t=e({}.toString),r=e("".slice);return r_=function(n){return r(t(n),8,-1)},r_}var n_,JM;function w4(){if(JM)return n_;JM=1;var e=O2(),t=wn();return n_=function(r){if(e(r)==="Function")return t(r)},n_}var i_,KM;function $n(){if(KM)return i_;KM=1;var e=typeof document=="object"&&document.all;return i_=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},i_}var s_={},a_,HM;function Xi(){if(HM)return a_;HM=1;var e=ui();return a_=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),a_}var o_,GM;function Zs(){if(GM)return o_;GM=1;var e=al(),t=Function.prototype.call;return o_=e?t.bind(t):function(){return t.apply(t,arguments)},o_}var u_={},YM;function x4(){if(YM)return u_;YM=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return u_.f=r?function(i){var s=t(this,i);return!!s&&s.enumerable}:e,u_}var c_,XM;function ol(){return XM||(XM=1,c_=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),c_}var l_,ZM;function A4(){if(ZM)return l_;ZM=1;var e=wn(),t=ui(),r=O2(),n=Object,i=e("".split);return l_=t(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?i(s,""):n(s)}:n,l_}var f_,QM;function C2(){return QM||(QM=1,f_=function(e){return e==null}),f_}var p_,eD;function ph(){if(eD)return p_;eD=1;var e=C2(),t=TypeError;return p_=function(r){if(e(r))throw new t("Can't call method on "+r);return r},p_}var d_,tD;function ul(){if(tD)return d_;tD=1;var e=A4(),t=ph();return d_=function(r){return e(t(r))},d_}var h_,rD;function Ci(){if(rD)return h_;rD=1;var e=$n();return h_=function(t){return typeof t=="object"?t!==null:e(t)},h_}var m_,nD;function cl(){return nD||(nD=1,m_={}),m_}var g_,iD;function ll(){if(iD)return g_;iD=1;var e=cl(),t=Sn(),r=$n(),n=function(i){return r(i)?i:void 0};return g_=function(i,s){return arguments.length<2?n(e[i])||n(t[i]):e[i]&&e[i][s]||t[i]&&t[i][s]},g_}var y_,sD;function fl(){if(sD)return y_;sD=1;var e=wn();return y_=e({}.isPrototypeOf),y_}var v_,aD;function nee(){if(aD)return v_;aD=1;var e=Sn(),t=e.navigator,r=t&&t.userAgent;return v_=r?String(r):"",v_}var b_,oD;function iee(){if(oD)return b_;oD=1;var e=Sn(),t=nee(),r=e.process,n=e.Deno,i=r&&r.versions||n&&n.version,s=i&&i.v8,a,o;return s&&(a=s.split("."),o=a[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&t&&(a=t.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=t.match(/Chrome\/(\d+)/),a&&(o=+a[1]))),b_=o,b_}var __,uD;function O4(){if(uD)return __;uD=1;var e=iee(),t=ui(),r=Sn(),n=r.String;return __=!!Object.getOwnPropertySymbols&&!t(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),__}var E_,cD;function C4(){if(cD)return E_;cD=1;var e=O4();return E_=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",E_}var S_,lD;function R4(){if(lD)return S_;lD=1;var e=ll(),t=$n(),r=fl(),n=C4(),i=Object;return S_=n?function(s){return typeof s=="symbol"}:function(s){var a=e("Symbol");return t(a)&&r(a.prototype,i(s))},S_}var w_,fD;function R2(){if(fD)return w_;fD=1;var e=String;return w_=function(t){try{return e(t)}catch{return"Object"}},w_}var x_,pD;function pl(){if(pD)return x_;pD=1;var e=$n(),t=R2(),r=TypeError;return x_=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},x_}var A_,dD;function I2(){if(dD)return A_;dD=1;var e=pl(),t=C2();return A_=function(r,n){var i=r[n];return t(i)?void 0:e(i)},A_}var O_,hD;function see(){if(hD)return O_;hD=1;var e=Zs(),t=$n(),r=Ci(),n=TypeError;return O_=function(i,s){var a,o;if(s==="string"&&t(a=i.toString)&&!r(o=e(a,i))||t(a=i.valueOf)&&!r(o=e(a,i))||s!=="string"&&t(a=i.toString)&&!r(o=e(a,i)))return o;throw new n("Can't convert object to primitive value")},O_}var C_={exports:{}},R_,mD;function dl(){return mD||(mD=1,R_=!0),R_}var I_,gD;function aee(){if(gD)return I_;gD=1;var e=Sn(),t=Object.defineProperty;return I_=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},I_}var yD;function I4(){if(yD)return C_.exports;yD=1;var e=dl(),t=Sn(),r=aee(),n="__core-js_shared__",i=C_.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.45.1",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),C_.exports}var T_,vD;function T4(){if(vD)return T_;vD=1;var e=I4();return T_=function(t,r){return e[t]||(e[t]=r||{})},T_}var j_,bD;function T2(){if(bD)return j_;bD=1;var e=ph(),t=Object;return j_=function(r){return t(e(r))},j_}var P_,_D;function Ri(){if(_D)return P_;_D=1;var e=wn(),t=T2(),r=e({}.hasOwnProperty);return P_=Object.hasOwn||function(i,s){return r(t(i),s)},P_}var k_,ED;function j4(){if(ED)return k_;ED=1;var e=wn(),t=0,r=Math.random(),n=e(1.1.toString);return k_=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++t+r,36)},k_}var N_,SD;function _s(){if(SD)return N_;SD=1;var e=Sn(),t=T4(),r=Ri(),n=j4(),i=O4(),s=C4(),a=e.Symbol,o=t("wks"),u=s?a.for||a:a&&a.withoutSetter||n;return N_=function(c){return r(o,c)||(o[c]=i&&r(a,c)?a[c]:u("Symbol."+c)),o[c]},N_}var M_,wD;function oee(){if(wD)return M_;wD=1;var e=Zs(),t=Ci(),r=R4(),n=I2(),i=see(),s=_s(),a=TypeError,o=s("toPrimitive");return M_=function(u,c){if(!t(u)||r(u))return u;var l=n(u,o),f;if(l){if(c===void 0&&(c="default"),f=e(l,u,c),!t(f)||r(f))return f;throw new a("Can't convert object to primitive value")}return c===void 0&&(c="number"),i(u,c)},M_}var D_,xD;function P4(){if(xD)return D_;xD=1;var e=oee(),t=R4();return D_=function(r){var n=e(r,"string");return t(n)?n:n+""},D_}var q_,AD;function k4(){if(AD)return q_;AD=1;var e=Sn(),t=Ci(),r=e.document,n=t(r)&&t(r.createElement);return q_=function(i){return n?r.createElement(i):{}},q_}var $_,OD;function N4(){if(OD)return $_;OD=1;var e=Xi(),t=ui(),r=k4();return $_=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),$_}var CD;function M4(){if(CD)return s_;CD=1;var e=Xi(),t=Zs(),r=x4(),n=ol(),i=ul(),s=P4(),a=Ri(),o=N4(),u=Object.getOwnPropertyDescriptor;return s_.f=e?u:function(l,f){if(l=i(l),f=s(f),o)try{return u(l,f)}catch{}if(a(l,f))return n(!t(r.f,l,f),l[f])},s_}var F_,RD;function uee(){if(RD)return F_;RD=1;var e=ui(),t=$n(),r=/#|\.prototype\./,n=function(u,c){var l=s[i(u)];return l===o?!0:l===a?!1:t(c)?e(c):!!c},i=n.normalize=function(u){return String(u).replace(r,".").toLowerCase()},s=n.data={},a=n.NATIVE="N",o=n.POLYFILL="P";return F_=n,F_}var B_,ID;function D4(){if(ID)return B_;ID=1;var e=w4(),t=pl(),r=al(),n=e(e.bind);return B_=function(i,s){return t(i),s===void 0?i:r?n(i,s):function(){return i.apply(s,arguments)}},B_}var L_={},U_,TD;function q4(){if(TD)return U_;TD=1;var e=Xi(),t=ui();return U_=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),U_}var V_,jD;function Wa(){if(jD)return V_;jD=1;var e=Ci(),t=String,r=TypeError;return V_=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},V_}var PD;function au(){if(PD)return L_;PD=1;var e=Xi(),t=N4(),r=q4(),n=Wa(),i=P4(),s=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return L_.f=e?r?function(h,d,g){if(n(h),d=i(d),n(g),typeof h=="function"&&d==="prototype"&&"value"in g&&l in g&&!g[l]){var y=o(h,d);y&&y[l]&&(h[d]=g.value,g={configurable:c in g?g[c]:y[c],enumerable:u in g?g[u]:y[u],writable:!1})}return a(h,d,g)}:a:function(h,d,g){if(n(h),d=i(d),n(g),t)try{return a(h,d,g)}catch{}if("get"in g||"set"in g)throw new s("Accessors not supported");return"value"in g&&(h[d]=g.value),h},L_}var z_,kD;function Es(){if(kD)return z_;kD=1;var e=Xi(),t=au(),r=ol();return z_=e?function(n,i,s){return t.f(n,i,r(1,s))}:function(n,i,s){return n[i]=s,n},z_}var W_,ND;function ou(){if(ND)return W_;ND=1;var e=Sn(),t=A2(),r=w4(),n=$n(),i=M4().f,s=uee(),a=cl(),o=D4(),u=Es(),c=Ri(),l=function(f){var h=function(d,g,y){if(this instanceof h){switch(arguments.length){case 0:return new f;case 1:return new f(d);case 2:return new f(d,g)}return new f(d,g,y)}return t(f,this,arguments)};return h.prototype=f.prototype,h};return W_=function(f,h){var d=f.target,g=f.global,y=f.stat,v=f.proto,_=g?e:y?e[d]:e[d]&&e[d].prototype,b=g?a:a[d]||u(a,d,{})[d],E=b.prototype,w,S,A,R,T,O,D,N,$;for(R in h)w=s(g?R:d+(y?".":"#")+R,f.forced),S=!w&&_&&c(_,R),O=b[R],S&&(f.dontCallGetSet?($=i(_,R),D=$&&$.value):D=_[R]),T=S&&D?D:h[R],!(!w&&!v&&typeof O==typeof T)&&(f.bind&&S?N=o(T,e):f.wrap&&S?N=l(T):v&&n(T)?N=r(T):N=T,(f.sham||T&&T.sham||O&&O.sham)&&u(N,"sham",!0),u(b,R,N),v&&(A=d+"Prototype",c(a,A)||u(a,A,{}),u(a[A],R,T),f.real&&E&&(w||!E[R])&&u(E,R,T)))},W_}var J_,MD;function cee(){if(MD)return J_;MD=1;var e=Math.ceil,t=Math.floor;return J_=Math.trunc||function(n){var i=+n;return(i>0?t:e)(i)},J_}var K_,DD;function j2(){if(DD)return K_;DD=1;var e=cee();return K_=function(t){var r=+t;return r!==r||r===0?0:e(r)},K_}var H_,qD;function lee(){if(qD)return H_;qD=1;var e=j2(),t=Math.max,r=Math.min;return H_=function(n,i){var s=e(n);return s<0?t(s+i,0):r(s,i)},H_}var G_,$D;function fee(){if($D)return G_;$D=1;var e=j2(),t=Math.min;return G_=function(r){var n=e(r);return n>0?t(n,9007199254740991):0},G_}var Y_,FD;function $4(){if(FD)return Y_;FD=1;var e=fee();return Y_=function(t){return e(t.length)},Y_}var X_,BD;function pee(){if(BD)return X_;BD=1;var e=ul(),t=lee(),r=$4(),n=function(i){return function(s,a,o){var u=e(s),c=r(u);if(c===0)return!i&&-1;var l=t(o,c),f;if(i&&a!==a){for(;c>l;)if(f=u[l++],f!==f)return!0}else for(;c>l;l++)if((i||l in u)&&u[l]===a)return i||l||0;return!i&&-1}};return X_={includes:n(!0),indexOf:n(!1)},X_}var Z_,LD;function P2(){return LD||(LD=1,Z_={}),Z_}var Q_,UD;function F4(){if(UD)return Q_;UD=1;var e=wn(),t=Ri(),r=ul(),n=pee().indexOf,i=P2(),s=e([].push);return Q_=function(a,o){var u=r(a),c=0,l=[],f;for(f in u)!t(i,f)&&t(u,f)&&s(l,f);for(;o.length>c;)t(u,f=o[c++])&&(~n(l,f)||s(l,f));return l},Q_}var eE,VD;function k2(){return VD||(VD=1,eE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),eE}var tE,zD;function B4(){if(zD)return tE;zD=1;var e=F4(),t=k2();return tE=Object.keys||function(n){return e(n,t)},tE}var rE={},WD;function L4(){return WD||(WD=1,rE.f=Object.getOwnPropertySymbols),rE}var nE,JD;function dee(){if(JD)return nE;JD=1;var e=Xi(),t=wn(),r=Zs(),n=ui(),i=B4(),s=L4(),a=x4(),o=T2(),u=A4(),c=Object.assign,l=Object.defineProperty,f=t([].concat);return nE=!c||n(function(){if(e&&c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var h={},d={},g=Symbol("assign detection"),y="abcdefghijklmnopqrst";return h[g]=7,y.split("").forEach(function(v){d[v]=v}),c({},h)[g]!==7||i(c({},d)).join("")!==y})?function(d,g){for(var y=o(d),v=arguments.length,_=1,b=s.f,E=a.f;v>_;)for(var w=u(arguments[_++]),S=b?f(i(w),b(w)):i(w),A=S.length,R=0,T;A>R;)T=S[R++],(!e||r(E,w,T))&&(y[T]=w[T]);return y}:c,nE}var KD;function hee(){if(KD)return FM;KD=1;var e=ou(),t=dee();return e({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t}),FM}var iE,HD;function mee(){if(HD)return iE;HD=1,hee();var e=cl();return iE=e.Object.assign,iE}var sE,GD;function gee(){if(GD)return sE;GD=1;var e=mee();return sE=e,sE}var aE,YD;function yee(){if(YD)return aE;YD=1;var e=gee();return aE=e,aE}var oE,XD;function vee(){if(XD)return oE;XD=1;var e=yee();return oE=e,oE}var uE,ZD;function bee(){return ZD||(ZD=1,uE=vee()),uE}var _ee=bee();const QD=Ve.getDefaultExportFromCjs(_ee);var eq={},cE,tq;function Eee(){if(tq)return cE;tq=1;var e=wn();return cE=e([].slice),cE}var lE,rq;function See(){if(rq)return lE;rq=1;var e=wn(),t=pl(),r=Ci(),n=Ri(),i=Eee(),s=al(),a=Function,o=e([].concat),u=e([].join),c={},l=function(f,h,d){if(!n(c,h)){for(var g=[],y=0;y<h;y++)g[y]="a["+y+"]";c[h]=a("C,a","return new C("+u(g,",")+")")}return c[h](f,d)};return lE=s?a.bind:function(h){var d=t(this),g=d.prototype,y=i(arguments,1),v=function(){var b=o(y,i(arguments));return this instanceof v?l(d,b.length,b):d.apply(h,b)};return r(g)&&(v.prototype=g),v},lE}var nq;function wee(){if(nq)return eq;nq=1;var e=ou(),t=See();return e({target:"Function",proto:!0,forced:Function.bind!==t},{bind:t}),eq}var fE,iq;function xee(){if(iq)return fE;iq=1;var e=Sn(),t=cl();return fE=function(r,n){var i=t[r+"Prototype"],s=i&&i[n];if(s)return s;var a=e[r],o=a&&a.prototype;return o&&o[n]},fE}var pE,sq;function Aee(){if(sq)return pE;sq=1,wee();var e=xee();return pE=e("Function","bind"),pE}var dE,aq;function Oee(){if(aq)return dE;aq=1;var e=fl(),t=Aee(),r=Function.prototype;return dE=function(n){var i=n.bind;return n===r||e(r,n)&&i===r.bind?t:i},dE}var hE,oq;function Cee(){if(oq)return hE;oq=1;var e=Oee();return hE=e,hE}var mE,uq;function Ree(){if(uq)return mE;uq=1;var e=Cee();return mE=e,mE}var gE,cq;function Iee(){if(cq)return gE;cq=1;var e=Ree();return gE=e,gE}var yE,lq;function Tee(){return lq||(lq=1,yE=Iee()),yE}var jee=Tee();const Pee=Ve.getDefaultExportFromCjs(jee);function vx(){var e;return vx=QD?Pee(e=QD).call(e):function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},vx.apply(null,arguments)}var vE={exports:{}};/*!
86
+ Copyright (c) 2018 Jed Watson.
87
+ Licensed under the MIT License (MIT), see
88
+ http://jedwatson.github.io/classnames
89
+ */var fq;function kee(){return fq||(fq=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(s=i(s,n(o)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var o in s)t.call(s,o)&&s[o]&&(a=i(a,o));return a}function i(s,a){return a?s?s+" "+a:s+a:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(vE)),vE.exports}var Nee=kee();const Mee=Ve.getDefaultExportFromCjs(Nee);var qu={},bE,pq;function Dee(){return pq||(pq=1,bE=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),bE}var _E,dq;function qee(){if(dq)return _E;dq=1;var e=Dee(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(s){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,a)}function i(s,a){var o,u,c,l,f,h,d=!1;a||(a={}),o=a.debug||!1;try{c=e(),l=document.createRange(),f=document.getSelection(),h=document.createElement("span"),h.textContent=s,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(y){if(y.stopPropagation(),a.format)if(y.preventDefault(),typeof y.clipboardData>"u"){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=t[a.format]||t.default;window.clipboardData.setData(v,s)}else y.clipboardData.clearData(),y.clipboardData.setData(a.format,s);a.onCopy&&(y.preventDefault(),a.onCopy(y.clipboardData))}),document.body.appendChild(h),l.selectNodeContents(h),f.addRange(l);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");d=!0}catch(y){o&&console.error("unable to copy using execCommand: ",y),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",s),a.onCopy&&a.onCopy(window.clipboardData),d=!0}catch(v){o&&console.error("unable to copy using clipboardData: ",v),o&&console.error("falling back to prompt"),u=n("message"in a?a.message:r),window.prompt(u,s)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(l):f.removeAllRanges()),h&&document.body.removeChild(h),c()}return d}return _E=i,_E}var hq;function $ee(){if(hq)return qu;hq=1;function e(S){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},e(S)}Object.defineProperty(qu,"__esModule",{value:!0}),qu.CopyToClipboard=void 0;var t=i(Mt),r=i(qee()),n=["text","onCopy","options","children"];function i(S){return S&&S.__esModule?S:{default:S}}function s(S,A){var R=Object.keys(S);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(S);A&&(T=T.filter(function(O){return Object.getOwnPropertyDescriptor(S,O).enumerable})),R.push.apply(R,T)}return R}function a(S){for(var A=1;A<arguments.length;A++){var R=arguments[A]!=null?arguments[A]:{};A%2?s(Object(R),!0).forEach(function(T){E(S,T,R[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(R)):s(Object(R)).forEach(function(T){Object.defineProperty(S,T,Object.getOwnPropertyDescriptor(R,T))})}return S}function o(S,A){if(S==null)return{};var R=u(S,A),T,O;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(S);for(O=0;O<D.length;O++)T=D[O],!(A.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(S,T)&&(R[T]=S[T])}return R}function u(S,A){if(S==null)return{};var R={},T=Object.keys(S),O,D;for(D=0;D<T.length;D++)O=T[D],!(A.indexOf(O)>=0)&&(R[O]=S[O]);return R}function c(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function l(S,A){for(var R=0;R<A.length;R++){var T=A[R];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(S,T.key,T)}}function f(S,A,R){return A&&l(S.prototype,A),Object.defineProperty(S,"prototype",{writable:!1}),S}function h(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),A&&d(S,A)}function d(S,A){return d=Object.setPrototypeOf||function(T,O){return T.__proto__=O,T},d(S,A)}function g(S){var A=_();return function(){var T=b(S),O;if(A){var D=b(this).constructor;O=Reflect.construct(T,arguments,D)}else O=T.apply(this,arguments);return y(this,O)}}function y(S,A){if(A&&(e(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(S)}function v(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(S){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},b(S)}function E(S,A,R){return A in S?Object.defineProperty(S,A,{value:R,enumerable:!0,configurable:!0,writable:!0}):S[A]=R,S}var w=(function(S){h(R,S);var A=g(R);function R(){var T;c(this,R);for(var O=arguments.length,D=new Array(O),N=0;N<O;N++)D[N]=arguments[N];return T=A.call.apply(A,[this].concat(D)),E(v(T),"onClick",function($){var M=T.props,X=M.text,ee=M.onCopy,J=M.children,Q=M.options,te=t.default.Children.only(J),re=(0,r.default)(X,Q);ee&&ee(X,re),te&&te.props&&typeof te.props.onClick=="function"&&te.props.onClick($)}),T}return f(R,[{key:"render",value:function(){var O=this.props;O.text,O.onCopy,O.options;var D=O.children,N=o(O,n),$=t.default.Children.only(D);return t.default.cloneElement($,a(a({},N),{},{onClick:this.onClick}))}}]),R})(t.default.PureComponent);return qu.CopyToClipboard=w,E(w,"defaultProps",{onCopy:void 0,options:void 0}),qu}var EE,mq;function Fee(){if(mq)return EE;mq=1;var e=$ee(),t=e.CopyToClipboard;return t.CopyToClipboard=t,EE=t,EE}var Bee=Fee();function fp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fp=function(t){return typeof t}:fp=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fp(e)}function Lee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vee(e,t,r){return t&&Uee(e.prototype,t),e}function zee(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gq(r,!0).forEach(function(n){zee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gq(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_x(e,t)}function bx(e){return bx=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},bx(e)}function _x(e,t){return _x=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},_x(e,t)}function Kee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hee(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:Kee(e)}var yq={};function Gee(e){return e!==null&&fp(e)==="object"&&typeof e.get=="function"&&typeof e.has=="function"}function Yee(e){return e==null}function Xee(e,t,r){return Yee(e)?r:Gee(e)?e.has(t)?e.get(t):r:hasOwnProperty.call(e,t)?e[t]:r}function vq(e,t,r){for(var n=0;n!==t.length;)if(e=Xee(e,t[n++],yq),e===yq)return r;return e}function bq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Zee(t,r),i=e||Object.keys(Wee({},r,{},t));return i.every(n)}function Zee(e,t){return function(r){if(typeof r=="string")return Sr(t[r],e[r]);if(Array.isArray(r))return Sr(vq(t,r),vq(e,r));throw new TypeError("Invalid key: expected Array or string: "+r)}}var Qee=(function(e){Jee(t,e);function t(){return Lee(this,t),Hee(this,bx(t).apply(this,arguments))}return Vee(t,[{key:"shouldComponentUpdate",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!bq(this.updateOnProps,this.props,n,"updateOnProps")||!bq(this.updateOnStates,this.state,i,"updateOnStates")}}]),t})(Mt.Component),$u={},_q;function ete(){if(_q)return $u;_q=1;function e(S){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},e(S)}Object.defineProperty($u,"__esModule",{value:!0}),$u.DebounceInput=void 0;var t=i(Mt),r=i(kt.requireLodash_debounce()),n=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function i(S){return S&&S.__esModule?S:{default:S}}function s(S,A){if(S==null)return{};var R=a(S,A),T,O;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(S);for(O=0;O<D.length;O++)T=D[O],!(A.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(S,T)&&(R[T]=S[T])}return R}function a(S,A){if(S==null)return{};var R={},T=Object.keys(S),O,D;for(D=0;D<T.length;D++)O=T[D],!(A.indexOf(O)>=0)&&(R[O]=S[O]);return R}function o(S,A){var R=Object.keys(S);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(S);A&&(T=T.filter(function(O){return Object.getOwnPropertyDescriptor(S,O).enumerable})),R.push.apply(R,T)}return R}function u(S){for(var A=1;A<arguments.length;A++){var R=arguments[A]!=null?arguments[A]:{};A%2?o(Object(R),!0).forEach(function(T){E(S,T,R[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(R)):o(Object(R)).forEach(function(T){Object.defineProperty(S,T,Object.getOwnPropertyDescriptor(R,T))})}return S}function c(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function l(S,A){for(var R=0;R<A.length;R++){var T=A[R];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(S,T.key,T)}}function f(S,A,R){return A&&l(S.prototype,A),Object.defineProperty(S,"prototype",{writable:!1}),S}function h(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),A&&d(S,A)}function d(S,A){return d=Object.setPrototypeOf||function(T,O){return T.__proto__=O,T},d(S,A)}function g(S){var A=_();return function(){var T=b(S),O;if(A){var D=b(this).constructor;O=Reflect.construct(T,arguments,D)}else O=T.apply(this,arguments);return y(this,O)}}function y(S,A){if(A&&(e(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(S)}function v(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(S){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},b(S)}function E(S,A,R){return A in S?Object.defineProperty(S,A,{value:R,enumerable:!0,configurable:!0,writable:!0}):S[A]=R,S}var w=(function(S){h(R,S);var A=g(R);function R(T){var O;c(this,R),O=A.call(this,T),E(v(O),"onChange",function(N){N.persist();var $=O.state.value,M=O.props.minLength;O.setState({value:N.target.value},function(){var X=O.state.value;if(X.length>=M){O.notify(N);return}$.length>X.length&&O.notify(u(u({},N),{},{target:u(u({},N.target),{},{value:""})}))})}),E(v(O),"onKeyDown",function(N){N.key==="Enter"&&O.forceNotify(N);var $=O.props.onKeyDown;$&&(N.persist(),$(N))}),E(v(O),"onBlur",function(N){O.forceNotify(N);var $=O.props.onBlur;$&&(N.persist(),$(N))}),E(v(O),"createNotifier",function(N){if(N<0)O.notify=function(){return null};else if(N===0)O.notify=O.doNotify;else{var $=(0,r.default)(function(M){O.isDebouncing=!1,O.doNotify(M)},N);O.notify=function(M){O.isDebouncing=!0,$(M)},O.flush=function(){return $.flush()},O.cancel=function(){O.isDebouncing=!1,$.cancel()}}}),E(v(O),"doNotify",function(){var N=O.props.onChange;N.apply(void 0,arguments)}),E(v(O),"forceNotify",function(N){var $=O.props.debounceTimeout;if(!(!O.isDebouncing&&$>0)){O.cancel&&O.cancel();var M=O.state.value,X=O.props.minLength;M.length>=X?O.doNotify(N):O.doNotify(u(u({},N),{},{target:u(u({},N.target),{},{value:M})}))}}),O.isDebouncing=!1,O.state={value:typeof T.value>"u"||T.value===null?"":T.value};var D=O.props.debounceTimeout;return O.createNotifier(D),O}return f(R,[{key:"componentDidUpdate",value:function(O){if(!this.isDebouncing){var D=this.props,N=D.value,$=D.debounceTimeout,M=O.debounceTimeout,X=O.value,ee=this.state.value;typeof N<"u"&&X!==N&&ee!==N&&this.setState({value:N}),$!==M&&this.createNotifier($)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var O=this.props,D=O.element;O.onChange,O.value,O.minLength,O.debounceTimeout;var N=O.forceNotifyByEnter,$=O.forceNotifyOnBlur,M=O.onKeyDown,X=O.onBlur,ee=O.inputRef,J=s(O,n),Q=this.state.value,te;N?te={onKeyDown:this.onKeyDown}:M?te={onKeyDown:M}:te={};var re;$?re={onBlur:this.onBlur}:X?re={onBlur:X}:re={};var L=ee?{ref:ee}:{};return t.default.createElement(D,u(u(u(u({},J),{},{onChange:this.onChange,value:Q},te),re),L))}}]),R})(t.default.PureComponent);return $u.DebounceInput=w,E(w,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0}),$u}var SE,Eq;function tte(){if(Eq)return SE;Eq=1;var e=ete(),t=e.DebounceInput;return t.DebounceInput=t,SE=t,SE}var rte=tte();const nte=Ve.getDefaultExportFromCjs(rte);var ite=Qd();const ste=Ve.getDefaultExportFromCjs(ite);var Jf={exports:{}},wE={},xE,Sq;function dh(){return Sq||(Sq=1,xE={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}),xE}var us={},wq;function U4(){if(wq)return us;wq=1;const e=dh(),t=()=>[{type:e.RANGE,from:48,to:57}],r=()=>[{type:e.CHAR,value:95},{type:e.RANGE,from:97,to:122},{type:e.RANGE,from:65,to:90}].concat(t()),n=()=>[{type:e.CHAR,value:9},{type:e.CHAR,value:10},{type:e.CHAR,value:11},{type:e.CHAR,value:12},{type:e.CHAR,value:13},{type:e.CHAR,value:32},{type:e.CHAR,value:160},{type:e.CHAR,value:5760},{type:e.RANGE,from:8192,to:8202},{type:e.CHAR,value:8232},{type:e.CHAR,value:8233},{type:e.CHAR,value:8239},{type:e.CHAR,value:8287},{type:e.CHAR,value:12288},{type:e.CHAR,value:65279}],i=()=>[{type:e.CHAR,value:10},{type:e.CHAR,value:13},{type:e.CHAR,value:8232},{type:e.CHAR,value:8233}];return us.words=()=>({type:e.SET,set:r(),not:!1}),us.notWords=()=>({type:e.SET,set:r(),not:!0}),us.ints=()=>({type:e.SET,set:t(),not:!1}),us.notInts=()=>({type:e.SET,set:t(),not:!0}),us.whitespace=()=>({type:e.SET,set:n(),not:!1}),us.notWhitespace=()=>({type:e.SET,set:n(),not:!0}),us.anyChar=()=>({type:e.SET,set:i(),not:!0}),us}var xq;function ate(){return xq||(xq=1,(function(e){const t=dh(),r=U4(),n="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",i={0:0,t:9,n:10,v:11,f:12,r:13};e.strToChars=function(s){var a=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return s=s.replace(a,function(o,u,c,l,f,h,d,g){if(c)return o;var y=u?8:l?parseInt(l,16):f?parseInt(f,16):h?parseInt(h,8):d?n.indexOf(d):i[g],v=String.fromCharCode(y);return/[[\]{}^$.|?*+()]/.test(v)&&(v="\\"+v),v}),s},e.tokenizeClass=(s,a)=>{for(var o=[],u=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,c,l;(c=u.exec(s))!=null;)if(c[1])o.push(r.words());else if(c[2])o.push(r.ints());else if(c[3])o.push(r.whitespace());else if(c[4])o.push(r.notWords());else if(c[5])o.push(r.notInts());else if(c[6])o.push(r.notWhitespace());else if(c[7])o.push({type:t.RANGE,from:(c[8]||c[9]).charCodeAt(0),to:c[10].charCodeAt(0)});else if(l=c[12])o.push({type:t.CHAR,value:l.charCodeAt(0)});else return[o,u.lastIndex];e.error(a,"Unterminated character class")},e.error=(s,a)=>{throw new SyntaxError("Invalid regular expression: /"+s+"/: "+a)}})(wE)),wE}var co={},Aq;function ote(){if(Aq)return co;Aq=1;const e=dh();return co.wordBoundary=()=>({type:e.POSITION,value:"b"}),co.nonWordBoundary=()=>({type:e.POSITION,value:"B"}),co.begin=()=>({type:e.POSITION,value:"^"}),co.end=()=>({type:e.POSITION,value:"$"}),co}var Oq;function ute(){if(Oq)return Jf.exports;Oq=1;const e=ate(),t=dh(),r=U4(),n=ote();return Jf.exports=i=>{var s=0,a,o,u={type:t.ROOT,stack:[]},c=u,l=u.stack,f=[],h=S=>{e.error(i,`Nothing to repeat at column ${S-1}`)},d=e.strToChars(i);for(a=d.length;s<a;)switch(o=d[s++],o){case"\\":switch(o=d[s++],o){case"b":l.push(n.wordBoundary());break;case"B":l.push(n.nonWordBoundary());break;case"w":l.push(r.words());break;case"W":l.push(r.notWords());break;case"d":l.push(r.ints());break;case"D":l.push(r.notInts());break;case"s":l.push(r.whitespace());break;case"S":l.push(r.notWhitespace());break;default:/\d/.test(o)?l.push({type:t.REFERENCE,value:parseInt(o,10)}):l.push({type:t.CHAR,value:o.charCodeAt(0)})}break;case"^":l.push(n.begin());break;case"$":l.push(n.end());break;case"[":var g;d[s]==="^"?(g=!0,s++):g=!1;var y=e.tokenizeClass(d.slice(s),i);s+=y[1],l.push({type:t.SET,set:y[0],not:g});break;case".":l.push(r.anyChar());break;case"(":var v={type:t.GROUP,stack:[],remember:!0};o=d[s],o==="?"&&(o=d[s+1],s+=2,o==="="?v.followedBy=!0:o==="!"?v.notFollowedBy=!0:o!==":"&&e.error(i,`Invalid group, character '${o}' after '?' at column ${s-1}`),v.remember=!1),l.push(v),f.push(c),c=v,l=v.stack;break;case")":f.length===0&&e.error(i,`Unmatched ) at column ${s-1}`),c=f.pop(),l=c.options?c.options[c.options.length-1]:c.stack;break;case"|":c.options||(c.options=[c.stack],delete c.stack);var _=[];c.options.push(_),l=_;break;case"{":var b=/^(\d+)(,(\d+)?)?\}/.exec(d.slice(s)),E,w;b!==null?(l.length===0&&h(s),E=parseInt(b[1],10),w=b[2]?b[3]?parseInt(b[3],10):1/0:E,s+=b[0].length,l.push({type:t.REPETITION,min:E,max:w,value:l.pop()})):l.push({type:t.CHAR,value:123});break;case"?":l.length===0&&h(s),l.push({type:t.REPETITION,min:0,max:1,value:l.pop()});break;case"+":l.length===0&&h(s),l.push({type:t.REPETITION,min:1,max:1/0,value:l.pop()});break;case"*":l.length===0&&h(s),l.push({type:t.REPETITION,min:0,max:1/0,value:l.pop()});break;default:l.push({type:t.CHAR,value:o.charCodeAt(0)})}return f.length!==0&&e.error(i,"Unterminated group"),u},Jf.exports.types=t,Jf.exports}var AE,Cq;function cte(){if(Cq)return AE;Cq=1;class e{constructor(n,i){this.low=n,this.high=i,this.length=1+i-n}overlaps(n){return!(this.high<n.low||this.low>n.high)}touches(n){return!(this.high+1<n.low||this.low-1>n.high)}add(n){return new e(Math.min(this.low,n.low),Math.max(this.high,n.high))}subtract(n){return n.low<=this.low&&n.high>=this.high?[]:n.low>this.low&&n.high<this.high?[new e(this.low,n.low-1),new e(n.high+1,this.high)]:n.low<=this.low?[new e(n.high+1,this.high)]:[new e(this.low,n.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class t{constructor(n,i){this.ranges=[],this.length=0,n!=null&&this.add(n,i)}_update_length(){this.length=this.ranges.reduce((n,i)=>n+i.length,0)}add(n,i){var s=a=>{for(var o=0;o<this.ranges.length&&!a.touches(this.ranges[o]);)o++;for(var u=this.ranges.slice(0,o);o<this.ranges.length&&a.touches(this.ranges[o]);)a=a.add(this.ranges[o]),o++;u.push(a),this.ranges=u.concat(this.ranges.slice(o)),this._update_length()};return n instanceof t?n.ranges.forEach(s):(i==null&&(i=n),s(new e(n,i))),this}subtract(n,i){var s=a=>{for(var o=0;o<this.ranges.length&&!a.overlaps(this.ranges[o]);)o++;for(var u=this.ranges.slice(0,o);o<this.ranges.length&&a.overlaps(this.ranges[o]);)u=u.concat(this.ranges[o].subtract(a)),o++;this.ranges=u.concat(this.ranges.slice(o)),this._update_length()};return n instanceof t?n.ranges.forEach(s):(i==null&&(i=n),s(new e(n,i))),this}intersect(n,i){var s=[],a=o=>{for(var u=0;u<this.ranges.length&&!o.overlaps(this.ranges[u]);)u++;for(;u<this.ranges.length&&o.overlaps(this.ranges[u]);){var c=Math.max(this.ranges[u].low,o.low),l=Math.min(this.ranges[u].high,o.high);s.push(new e(c,l)),u++}};return n instanceof t?n.ranges.forEach(a):(i==null&&(i=n),a(new e(n,i))),this.ranges=s,this._update_length(),this}index(n){for(var i=0;i<this.ranges.length&&this.ranges[i].length<=n;)n-=this.ranges[i].length,i++;return this.ranges[i].low+n}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new t(this)}numbers(){return this.ranges.reduce((n,i)=>{for(var s=i.low;s<=i.high;)n.push(s),s++;return n},[])}subranges(){return this.ranges.map(n=>({low:n.low,high:n.high,length:1+n.high-n.low}))}}return AE=t,AE}var OE,Rq;function lte(){if(Rq)return OE;Rq=1;const e=ute(),t=cte(),r=e.types;return OE=class Hu{constructor(i,s){if(this._setDefaults(i),i instanceof RegExp)this.ignoreCase=i.ignoreCase,this.multiline=i.multiline,i=i.source;else if(typeof i=="string")this.ignoreCase=s&&s.indexOf("i")!==-1,this.multiline=s&&s.indexOf("m")!==-1;else throw new Error("Expected a regexp or string");this.tokens=e(i)}_setDefaults(i){this.max=i.max!=null?i.max:Hu.prototype.max!=null?Hu.prototype.max:100,this.defaultRange=i.defaultRange?i.defaultRange:this.defaultRange.clone(),i.randInt&&(this.randInt=i.randInt)}gen(){return this._gen(this.tokens,[])}_gen(i,s){var a,o,u,c,l;switch(i.type){case r.ROOT:case r.GROUP:if(i.followedBy||i.notFollowedBy)return"";for(i.remember&&i.groupNumber===void 0&&(i.groupNumber=s.push(null)-1),a=i.options?this._randSelect(i.options):i.stack,o="",c=0,l=a.length;c<l;c++)o+=this._gen(a[c],s);return i.remember&&(s[i.groupNumber]=o),o;case r.POSITION:return"";case r.SET:var f=this._expand(i);return f.length?String.fromCharCode(this._randSelect(f)):"";case r.REPETITION:for(u=this.randInt(i.min,i.max===1/0?i.min+this.max:i.max),o="",c=0;c<u;c++)o+=this._gen(i.value,s);return o;case r.REFERENCE:return s[i.value-1]||"";case r.CHAR:var h=this.ignoreCase&&this._randBool()?this._toOtherCase(i.value):i.value;return String.fromCharCode(h)}}_toOtherCase(i){return i+(97<=i&&i<=122?-32:65<=i&&i<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(i){return i instanceof t?i.index(this.randInt(0,i.length-1)):i[this.randInt(0,i.length-1)]}_expand(i){if(i.type===e.types.CHAR)return new t(i.value);if(i.type===e.types.RANGE)return new t(i.from,i.to);{let s=new t;for(let a=0;a<i.set.length;a++){let o=this._expand(i.set[a]);if(s.add(o),this.ignoreCase)for(let u=0;u<o.length;u++){let c=o.index(u),l=this._toOtherCase(c);c!==l&&s.add(l)}}return i.not?this.defaultRange.clone().subtract(s):this.defaultRange.clone().intersect(s)}}randInt(i,s){return i+Math.floor(Math.random()*(1+s-i))}get defaultRange(){return this._range=this._range||new t(32,126)}set defaultRange(i){this._range=i}static randexp(i,s){var a;return typeof i=="string"&&(i=new RegExp(i,s)),i._randexp===void 0?(a=new Hu(i,s),i._randexp=a):(a=i._randexp,a._setDefaults(i)),a.gen()}static sugar(){RegExp.prototype.gen=function(){return Hu.randexp(this)}}},OE}var fte=lte();const pte=Ve.getDefaultExportFromCjs(fte);var CE,Iq;function dte(){if(Iq)return CE;Iq=1;var e=NO(),t=Qo(),r=Lc(),n=Mr(),i=$a(),s=Uc(),a=Zd(),o=eh(),u="[object Map]",c="[object Set]",l=Object.prototype,f=l.hasOwnProperty;function h(d){if(d==null)return!0;if(i(d)&&(n(d)||typeof d=="string"||typeof d.splice=="function"||s(d)||o(d)||r(d)))return!d.length;var g=t(d);if(g==u||g==c)return!d.size;if(a(d))return!e(d).length;for(var y in d)if(f.call(d,y))return!1;return!0}return CE=h,CE}var hte=dte();const mte=Ve.getDefaultExportFromCjs(hte);var gte=v6();const yte=Ve.getDefaultExportFromCjs(gte);var RE,Tq;function V4(){if(Tq)return RE;Tq=1;var e=Gi(),t=Mr(),r=dn(),n="[object String]";function i(s){return typeof s=="string"||!t(s)&&r(s)&&e(s)==n}return RE=i,RE}var vte=V4();const bte=Ve.getDefaultExportFromCjs(vte);var IE,jq;function _te(){if(jq)return IE;jq=1;var e=fn(),t=function(){return e.Date.now()};return IE=t,IE}var TE,Pq;function Ete(){if(Pq)return TE;Pq=1;var e=pn(),t=_te(),r=$6(),n="Expected a function",i=Math.max,s=Math.min;function a(o,u,c){var l,f,h,d,g,y,v=0,_=!1,b=!1,E=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(_=!!c.leading,b="maxWait"in c,h=b?i(r(c.maxWait)||0,u):h,E="trailing"in c?!!c.trailing:E);function w(M){var X=l,ee=f;return l=f=void 0,v=M,d=o.apply(ee,X),d}function S(M){return v=M,g=setTimeout(T,u),_?w(M):d}function A(M){var X=M-y,ee=M-v,J=u-X;return b?s(J,h-ee):J}function R(M){var X=M-y,ee=M-v;return y===void 0||X>=u||X<0||b&&ee>=h}function T(){var M=t();if(R(M))return O(M);g=setTimeout(T,A(M))}function O(M){return g=void 0,E&&l?w(M):(l=f=void 0,d)}function D(){g!==void 0&&clearTimeout(g),v=0,l=y=f=g=void 0}function N(){return g===void 0?d:O(t())}function $(){var M=t(),X=R(M);if(l=arguments,f=this,y=M,X){if(g===void 0)return S(y);if(b)return clearTimeout(g),g=setTimeout(T,u),w(y)}return g===void 0&&(g=setTimeout(T,u)),d}return $.cancel=D,$.flush=N,$}return TE=a,TE}var Ste=Ete();const wte=Ve.getDefaultExportFromCjs(Ste);var jE,kq;function xte(){if(kq)return jE;kq=1;var e=th(),t=Kc(),r=Vc(),n=pn(),i=Fa();function s(a,o,u,c){if(!n(a))return a;o=t(o,a);for(var l=-1,f=o.length,h=f-1,d=a;d!=null&&++l<f;){var g=i(o[l]),y=u;if(g==="__proto__"||g==="constructor"||g==="prototype")return a;if(l!=h){var v=d[g];y=c?c(v,g,d):void 0,y===void 0&&(y=n(v)?v:r(o[l+1])?[]:{})}e(d,g,y),d=d[g]}return a}return jE=s,jE}var PE,Nq;function z4(){if(Nq)return PE;Nq=1;var e=xte();function t(r,n,i){return r==null?r:e(r,n,i)}return PE=t,PE}var Ate=z4();const Ote=Ve.getDefaultExportFromCjs(Ate);var kE={},Mq;function Cte(){return Mq||(Mq=1,(function(e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=(function(){var t=Object.prototype.hasOwnProperty,r=e.aliasToReal,n={};for(var i in r){var s=r[i];t.call(n,s)?n[s].push(i):n[s]=[i]}return n})(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})(kE)),kE}var NE,Dq;function W4(){return Dq||(Dq=1,NE={}),NE}var ME,qq;function Rte(){if(qq)return ME;qq=1;var e=Cte(),t=W4(),r=Array.prototype.push;function n(l,f){return f==2?function(h,d){return l.apply(void 0,arguments)}:function(h){return l.apply(void 0,arguments)}}function i(l,f){return f==2?function(h,d){return l(h,d)}:function(h){return l(h)}}function s(l){for(var f=l?l.length:0,h=Array(f);f--;)h[f]=l[f];return h}function a(l){return function(f){return l({},f)}}function o(l,f){return function(){for(var h=arguments.length,d=h-1,g=Array(h);h--;)g[h]=arguments[h];var y=g[f],v=g.slice(0,f);return y&&r.apply(v,y),f!=d&&r.apply(v,g.slice(f+1)),l.apply(this,v)}}function u(l,f){return function(){var h=arguments.length;if(h){for(var d=Array(h);h--;)d[h]=arguments[h];var g=d[0]=f.apply(void 0,d);return l.apply(void 0,d),g}}}function c(l,f,h,d){var g=typeof f=="function",y=f===Object(f);if(y&&(d=h,h=f,f=void 0),h==null)throw new TypeError;d||(d={});var v={cap:"cap"in d?d.cap:!0,curry:"curry"in d?d.curry:!0,fixed:"fixed"in d?d.fixed:!0,immutable:"immutable"in d?d.immutable:!0,rearg:"rearg"in d?d.rearg:!0},_=g?h:t,b="curry"in d&&d.curry,E="fixed"in d&&d.fixed,w="rearg"in d&&d.rearg,S=g?h.runInContext():void 0,A=g?h:{ary:l.ary,assign:l.assign,clone:l.clone,curry:l.curry,forEach:l.forEach,isArray:l.isArray,isError:l.isError,isFunction:l.isFunction,isWeakMap:l.isWeakMap,iteratee:l.iteratee,keys:l.keys,rearg:l.rearg,toInteger:l.toInteger,toPath:l.toPath},R=A.ary,T=A.assign,O=A.clone,D=A.curry,N=A.forEach,$=A.isArray,M=A.isError,X=A.isFunction,ee=A.isWeakMap,J=A.keys,Q=A.rearg,te=A.toInteger,re=A.toPath,L=J(e.aryMethod),K={castArray:function(be){return function(){var we=arguments[0];return $(we)?be(s(we)):be.apply(void 0,arguments)}},iteratee:function(be){return function(){var we=arguments[0],xe=arguments[1],U=be(we,xe),I=U.length;return v.cap&&typeof xe=="number"?(xe=xe>2?xe-2:1,I&&I<=xe?U:i(U,xe)):U}},mixin:function(be){return function(we){var xe=this;if(!X(xe))return be(xe,Object(we));var U=[];return N(J(we),function(I){X(we[I])&&U.push([I,xe.prototype[I]])}),be(xe,Object(we)),N(U,function(I){var k=I[1];X(k)?xe.prototype[I[0]]=k:delete xe.prototype[I[0]]}),xe}},nthArg:function(be){return function(we){var xe=we<0?1:te(we)+1;return D(be(we),xe)}},rearg:function(be){return function(we,xe){var U=xe?xe.length:0;return D(be(we,xe),U)}},runInContext:function(be){return function(we){return c(l,be(we),d)}}};function ne(be,we){if(v.cap){var xe=e.iterateeRearg[be];if(xe)return Ce(we,xe);var U=!g&&e.iterateeAry[be];if(U)return ge(we,U)}return we}function ce(be,we,xe){return b||v.curry&&xe>1?D(we,xe):we}function ue(be,we,xe){if(v.fixed&&(E||!e.skipFixed[be])){var U=e.methodSpread[be],I=U&&U.start;return I===void 0?R(we,xe):o(we,I)}return we}function se(be,we,xe){return v.rearg&&xe>1&&(w||!e.skipRearg[be])?Q(we,e.methodRearg[be]||e.aryRearg[xe]):we}function V(be,we){we=re(we);for(var xe=-1,U=we.length,I=U-1,k=O(Object(be)),W=k;W!=null&&++xe<U;){var ie=we[xe],oe=W[ie];oe!=null&&!(X(oe)||M(oe)||ee(oe))&&(W[ie]=O(xe==I?oe:Object(oe))),W=W[ie]}return k}function z(be){return Te.runInContext.convert(be)(void 0)}function de(be,we){var xe=e.aliasToReal[be]||be,U=e.remap[xe]||xe,I=d;return function(k){var W=g?S:A,ie=g?S[U]:we,oe=T(T({},I),k);return c(W,xe,ie,oe)}}function ge(be,we){return Pe(be,function(xe){return typeof xe=="function"?i(xe,we):xe})}function Ce(be,we){return Pe(be,function(xe){var U=we.length;return n(Q(i(xe,U),we),U)})}function Pe(be,we){return function(){var xe=arguments.length;if(!xe)return be();for(var U=Array(xe);xe--;)U[xe]=arguments[xe];var I=v.rearg?0:xe-1;return U[I]=we(U[I]),be.apply(void 0,U)}}function pe(be,we,xe){var U,I=e.aliasToReal[be]||be,k=we,W=K[I];return W?k=W(we):v.immutable&&(e.mutate.array[I]?k=u(we,s):e.mutate.object[I]?k=u(we,a(we)):e.mutate.set[I]&&(k=u(we,V))),N(L,function(ie){return N(e.aryMethod[ie],function(oe){if(I==oe){var me=e.methodSpread[I],Ne=me&&me.afterRearg;return U=Ne?ue(I,se(I,k,ie),ie):se(I,ue(I,k,ie),ie),U=ne(I,U),U=ce(I,U,ie),!1}}),!U}),U||(U=k),U==we&&(U=b?D(U,1):function(){return we.apply(this,arguments)}),U.convert=de(I,we),U.placeholder=we.placeholder=xe,U}if(!y)return pe(f,h,_);var Te=h,Le=[];return N(L,function(be){N(e.aryMethod[be],function(we){var xe=Te[e.remap[we]||we];xe&&Le.push([we,pe(we,xe,Te)])})}),N(J(Te),function(be){var we=Te[be];if(typeof we=="function"){for(var xe=Le.length;xe--;)if(Le[xe][0]==be)return;we.convert=de(be,we),Le.push([be,we])}}),N(Le,function(be){Te[be[0]]=be[1]}),Te.convert=z,Te.placeholder=Te,N(J(Te),function(be){N(e.realToAlias[be]||[],function(we){Te[we]=Te[be]})}),Te}return ME=c,ME}var DE,$q;function J4(){if($q)return DE;$q=1;var e=j6(),t=e&&new e;return DE=t,DE}var qE,Fq;function K4(){if(Fq)return qE;Fq=1;var e=Wc(),t=J4(),r=t?function(n,i){return t.set(n,i),n}:e;return qE=r,qE}var $E,Bq;function hh(){if(Bq)return $E;Bq=1;var e=Xd(),t=pn();function r(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=e(n.prototype),a=n.apply(s,i);return t(a)?a:s}}return $E=r,$E}var FE,Lq;function Ite(){if(Lq)return FE;Lq=1;var e=hh(),t=fn(),r=1;function n(i,s,a){var o=s&r,u=e(i);function c(){var l=this&&this!==t&&this instanceof c?u:i;return l.apply(o?a:this,arguments)}return c}return FE=n,FE}var BE,Uq;function H4(){if(Uq)return BE;Uq=1;var e=Math.max;function t(r,n,i,s){for(var a=-1,o=r.length,u=i.length,c=-1,l=n.length,f=e(o-u,0),h=Array(l+f),d=!s;++c<l;)h[c]=n[c];for(;++a<u;)(d||a<o)&&(h[i[a]]=r[a]);for(;f--;)h[c++]=r[a++];return h}return BE=t,BE}var LE,Vq;function G4(){if(Vq)return LE;Vq=1;var e=Math.max;function t(r,n,i,s){for(var a=-1,o=r.length,u=-1,c=i.length,l=-1,f=n.length,h=e(o-c,0),d=Array(h+f),g=!s;++a<h;)d[a]=r[a];for(var y=a;++l<f;)d[y+l]=n[l];for(;++u<c;)(g||a<o)&&(d[y+i[u]]=r[a++]);return d}return LE=t,LE}var UE,zq;function Tte(){if(zq)return UE;zq=1;function e(t,r){for(var n=t.length,i=0;n--;)t[n]===r&&++i;return i}return UE=e,UE}var VE,Wq;function N2(){if(Wq)return VE;Wq=1;function e(){}return VE=e,VE}var zE,Jq;function M2(){if(Jq)return zE;Jq=1;var e=Xd(),t=N2(),r=4294967295;function n(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=r,this.__views__=[]}return n.prototype=e(t.prototype),n.prototype.constructor=n,zE=n,zE}var WE,Kq;function jte(){if(Kq)return WE;Kq=1;function e(){}return WE=e,WE}var JE,Hq;function Y4(){if(Hq)return JE;Hq=1;var e=J4(),t=jte(),r=e?function(n){return e.get(n)}:t;return JE=r,JE}var KE,Gq;function Pte(){if(Gq)return KE;Gq=1;var e={};return KE=e,KE}var HE,Yq;function kte(){if(Yq)return HE;Yq=1;var e=Pte(),t=Object.prototype,r=t.hasOwnProperty;function n(i){for(var s=i.name+"",a=e[s],o=r.call(e,s)?a.length:0;o--;){var u=a[o],c=u.func;if(c==null||c==i)return u.name}return s}return HE=n,HE}var GE,Xq;function X4(){if(Xq)return GE;Xq=1;var e=Xd(),t=N2();function r(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=void 0}return r.prototype=e(t.prototype),r.prototype.constructor=r,GE=r,GE}var YE,Zq;function Nte(){if(Zq)return YE;Zq=1;var e=M2(),t=X4(),r=Bc();function n(i){if(i instanceof e)return i.clone();var s=new t(i.__wrapped__,i.__chain__);return s.__actions__=r(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}return YE=n,YE}var XE,Qq;function Mte(){if(Qq)return XE;Qq=1;var e=M2(),t=X4(),r=N2(),n=Mr(),i=dn(),s=Nte(),a=Object.prototype,o=a.hasOwnProperty;function u(c){if(i(c)&&!n(c)&&!(c instanceof e)){if(c instanceof t)return c;if(o.call(c,"__wrapped__"))return s(c)}return new t(c)}return u.prototype=r.prototype,u.prototype.constructor=u,XE=u,XE}var ZE,e$;function Dte(){if(e$)return ZE;e$=1;var e=M2(),t=Y4(),r=kte(),n=Mte();function i(s){var a=r(s),o=n[a];if(typeof o!="function"||!(a in e.prototype))return!1;if(s===o)return!0;var u=t(o);return!!u&&s===u[0]}return ZE=i,ZE}var QE,t$;function Z4(){if(t$)return QE;t$=1;var e=K4(),t=b6(),r=t(e);return QE=r,QE}var eS,r$;function qte(){if(r$)return eS;r$=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;function r(n){var i=n.match(e);return i?i[1].split(t):[]}return eS=r,eS}var tS,n$;function $te(){if(n$)return tS;n$=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function t(r,n){var i=n.length;if(!i)return r;var s=i-1;return n[s]=(i>1?"& ":"")+n[s],n=n.join(i>2?", ":" "),r.replace(e,`{
90
+ /* [wrapped with `+n+`] */
91
+ `)}return tS=t,tS}var rS,i$;function Fte(){if(i$)return rS;i$=1;function e(t){return t!==t}return rS=e,rS}var nS,s$;function Bte(){if(s$)return nS;s$=1;function e(t,r,n){for(var i=n-1,s=t.length;++i<s;)if(t[i]===r)return i;return-1}return nS=e,nS}var iS,a$;function Lte(){if(a$)return iS;a$=1;var e=q6(),t=Fte(),r=Bte();function n(i,s,a){return s===s?r(i,s,a):e(i,t,a)}return iS=n,iS}var sS,o$;function Ute(){if(o$)return sS;o$=1;var e=Lte();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return sS=t,sS}var aS,u$;function Vte(){if(u$)return aS;u$=1;var e=FO(),t=Ute(),r=1,n=2,i=8,s=16,a=32,o=64,u=128,c=256,l=512,f=[["ary",u],["bind",r],["bindKey",n],["curry",i],["curryRight",s],["flip",l],["partial",a],["partialRight",o],["rearg",c]];function h(d,g){return e(f,function(y){var v="_."+y[0];g&y[1]&&!t(d,v)&&d.push(v)}),d.sort()}return aS=h,aS}var oS,c$;function Q4(){if(c$)return oS;c$=1;var e=qte(),t=$te(),r=TO(),n=Vte();function i(s,a,o){var u=a+"";return r(s,t(u,n(e(u),o)))}return oS=i,oS}var uS,l$;function eU(){if(l$)return uS;l$=1;var e=Dte(),t=Z4(),r=Q4(),n=4,i=8,s=32,a=64;function o(u,c,l,f,h,d,g,y,v,_){var b=c&i,E=b?g:void 0,w=b?void 0:g,S=b?d:void 0,A=b?void 0:d;c|=b?s:a,c&=~(b?a:s),c&n||(c&=-4);var R=[u,c,h,S,E,A,w,y,v,_],T=l.apply(void 0,R);return e(u)&&t(T,R),T.placeholder=f,r(T,u,c)}return uS=o,uS}var cS,f$;function tU(){if(f$)return cS;f$=1;function e(t){var r=t;return r.placeholder}return cS=e,cS}var lS,p$;function zte(){if(p$)return lS;p$=1;var e=Bc(),t=Vc(),r=Math.min;function n(i,s){for(var a=i.length,o=r(s.length,a),u=e(i);o--;){var c=s[o];i[o]=t(c,a)?u[c]:void 0}return i}return lS=n,lS}var fS,d$;function D2(){if(d$)return fS;d$=1;var e="__lodash_placeholder__";function t(r,n){for(var i=-1,s=r.length,a=0,o=[];++i<s;){var u=r[i];(u===n||u===e)&&(r[i]=e,o[a++]=i)}return o}return fS=t,fS}var pS,h$;function rU(){if(h$)return pS;h$=1;var e=H4(),t=G4(),r=Tte(),n=hh(),i=eU(),s=tU(),a=zte(),o=D2(),u=fn(),c=1,l=2,f=8,h=16,d=128,g=512;function y(v,_,b,E,w,S,A,R,T,O){var D=_&d,N=_&c,$=_&l,M=_&(f|h),X=_&g,ee=$?void 0:n(v);function J(){for(var Q=arguments.length,te=Array(Q),re=Q;re--;)te[re]=arguments[re];if(M)var L=s(J),K=r(te,L);if(E&&(te=e(te,E,w,M)),S&&(te=t(te,S,A,M)),Q-=K,M&&Q<O){var ne=o(te,L);return i(v,_,y,J.placeholder,b,te,ne,R,T,O-Q)}var ce=N?b:this,ue=$?ce[v]:v;return Q=te.length,R?te=a(te,R):X&&Q>1&&te.reverse(),D&&T<Q&&(te.length=T),this&&this!==u&&this instanceof J&&(ue=ee||n(ue)),ue.apply(ce,te)}return J}return pS=y,pS}var dS,m$;function Wte(){if(m$)return dS;m$=1;var e=IO(),t=hh(),r=rU(),n=eU(),i=tU(),s=D2(),a=fn();function o(u,c,l){var f=t(u);function h(){for(var d=arguments.length,g=Array(d),y=d,v=i(h);y--;)g[y]=arguments[y];var _=d<3&&g[0]!==v&&g[d-1]!==v?[]:s(g,v);if(d-=_.length,d<l)return n(u,c,r,h.placeholder,void 0,g,_,void 0,void 0,l-d);var b=this&&this!==a&&this instanceof h?f:u;return e(b,this,g)}return h}return dS=o,dS}var hS,g$;function Jte(){if(g$)return hS;g$=1;var e=IO(),t=hh(),r=fn(),n=1;function i(s,a,o,u){var c=a&n,l=t(s);function f(){for(var h=-1,d=arguments.length,g=-1,y=u.length,v=Array(y+d),_=this&&this!==r&&this instanceof f?l:s;++g<y;)v[g]=u[g];for(;d--;)v[g++]=arguments[++h];return e(_,c?o:this,v)}return f}return hS=i,hS}var mS,y$;function Kte(){if(y$)return mS;y$=1;var e=H4(),t=G4(),r=D2(),n="__lodash_placeholder__",i=1,s=2,a=4,o=8,u=128,c=256,l=Math.min;function f(h,d){var g=h[1],y=d[1],v=g|y,_=v<(i|s|u),b=y==u&&g==o||y==u&&g==c&&h[7].length<=d[8]||y==(u|c)&&d[7].length<=d[8]&&g==o;if(!(_||b))return h;y&i&&(h[2]=d[2],v|=g&i?0:a);var E=d[3];if(E){var w=h[3];h[3]=w?e(w,E,d[4]):E,h[4]=w?r(h[3],n):d[4]}return E=d[5],E&&(w=h[5],h[5]=w?t(w,E,d[6]):E,h[6]=w?r(h[5],n):d[6]),E=d[7],E&&(h[7]=E),y&u&&(h[8]=h[8]==null?d[8]:l(h[8],d[8])),h[9]==null&&(h[9]=d[9]),h[0]=d[0],h[1]=v,h}return mS=f,mS}var gS,v$;function q2(){if(v$)return gS;v$=1;var e=K4(),t=Ite(),r=Wte(),n=rU(),i=Jte(),s=Y4(),a=Kte(),o=Z4(),u=Q4(),c=$O(),l="Expected a function",f=1,h=2,d=8,g=16,y=32,v=64,_=Math.max;function b(E,w,S,A,R,T,O,D){var N=w&h;if(!N&&typeof E!="function")throw new TypeError(l);var $=A?A.length:0;if($||(w&=-97,A=R=void 0),O=O===void 0?O:_(c(O),0),D=D===void 0?D:c(D),$-=R?R.length:0,w&v){var M=A,X=R;A=R=void 0}var ee=N?void 0:s(E),J=[E,w,S,A,R,M,X,T,O,D];if(ee&&a(J,ee),E=J[0],w=J[1],S=J[2],A=J[3],R=J[4],D=J[9]=J[9]===void 0?N?0:E.length:_(J[9]-$,0),!D&&w&(d|g)&&(w&=-25),!w||w==f)var Q=t(E,w,S);else w==d||w==g?Q=r(E,w,D):(w==y||w==(f|y))&&!R.length?Q=i(E,w,S,A):Q=n.apply(void 0,J);var te=ee?e:o;return u(te(Q,J),E,w)}return gS=b,gS}var yS,b$;function Hte(){if(b$)return yS;b$=1;var e=q2(),t=128;function r(n,i,s){return i=s?void 0:i,i=n&&i==null?n.length:i,e(n,t,void 0,void 0,void 0,void 0,i)}return yS=r,yS}var vS,_$;function Gte(){if(_$)return vS;_$=1;var e=BO(),t=4;function r(n){return e(n,t)}return vS=r,vS}var bS,E$;function Yte(){if(E$)return bS;E$=1;var e=q2(),t=8;function r(n,i,s){i=s?void 0:i;var a=e(n,t,void 0,void 0,void 0,void 0,void 0,i);return a.placeholder=r.placeholder,a}return r.placeholder={},bS=r,bS}var _S,S$;function Xte(){if(S$)return _S;S$=1;var e=Gi(),t=dn(),r=Qd(),n="[object DOMException]",i="[object Error]";function s(a){if(!t(a))return!1;var o=e(a);return o==i||o==n||typeof a.message=="string"&&typeof a.name=="string"&&!r(a)}return _S=s,_S}var ES,w$;function Zte(){if(w$)return ES;w$=1;var e=Qo(),t=dn(),r="[object WeakMap]";function n(i){return t(i)&&e(i)==r}return ES=n,ES}var SS,x$;function Qte(){if(x$)return SS;x$=1;var e=BO(),t=Hc(),r=1;function n(i){return t(typeof i=="function"?i:e(i,r))}return SS=n,SS}var wS,A$;function ere(){if(A$)return wS;A$=1;var e=q2(),t=W6(),r=256,n=t(function(i,s){return e(i,r,void 0,void 0,void 0,s)});return wS=n,wS}var xS,O$;function tre(){if(O$)return xS;O$=1;var e=jO(),t=Bc(),r=Mr(),n=Jc(),i=N6(),s=Fa(),a=bs();function o(u){return r(u)?e(u,s):n(u)?[u]:t(i(a(u)))}return xS=o,xS}var AS,C$;function rre(){return C$||(C$=1,AS={ary:Hte(),assign:U6(),clone:Gte(),curry:Yte(),forEach:FO(),isArray:Mr(),isError:Xte(),isFunction:Fc(),isWeakMap:Zte(),iteratee:Qte(),keys:NO(),rearg:ere(),toInteger:$O(),toPath:tre()}),AS}var OS,R$;function nre(){if(R$)return OS;R$=1;var e=Rte(),t=rre();function r(n,i,s){return e(t,n,i,s)}return OS=r,OS}var CS,I$;function nU(){if(I$)return CS;I$=1;var e=nre(),t=e("set",z4());return t.placeholder=W4(),CS=t,CS}var RS,T$;function ire(){return T$||(T$=1,RS=nU()),RS}var sre=ire();const are=Ve.getDefaultExportFromCjs(sre);/*!
92
+ * https://github.com/Starcounter-Jack/JSON-Patch
93
+ * (c) 2017-2022 Joachim Wester
94
+ * MIT licensed
95
+ */var ore=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ure=Object.prototype.hasOwnProperty;function Ex(e,t){return ure.call(e,t)}function Sx(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var i in e)Ex(e,i)&&n.push(i);return n}function kn(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function wx(e){for(var t=0,r=e.length,n;t<r;){if(n=e.charCodeAt(t),n>=48&&n<=57){t++;continue}return!1}return!0}function va(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function iU(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function xx(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(xx(e[t]))return!0}else if(typeof e=="object"){for(var n=Sx(e),i=n.length,s=0;s<i;s++)if(xx(e[n[s]]))return!0}}return!1}function j$(e,t){var r=[e];for(var n in t){var i=typeof t[n]=="object"?JSON.stringify(t[n],null,2):t[n];typeof i<"u"&&r.push(n+": "+i)}return r.join(`
96
+ `)}var sU=(function(e){ore(t,e);function t(r,n,i,s,a){var o=this.constructor,u=e.call(this,j$(r,{name:n,index:i,operation:s,tree:a}))||this;return u.name=n,u.index=i,u.operation=s,u.tree=a,Object.setPrototypeOf(u,o.prototype),u.message=j$(r,{name:n,index:i,operation:s,tree:a}),u}return t})(Error),pr=sU,cre=kn,Eo={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=bc(r,this.path);n&&(n=kn(n));var i=Oa(r,{op:"remove",path:this.from}).removed;return Oa(r,{op:"add",path:this.path,value:i}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=bc(r,this.from);return Oa(r,{op:"add",path:this.path,value:kn(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:_c(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},lre={add:function(e,t,r){return wx(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){var n=e.splice(t,1);return{newDocument:r,removed:n[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:Eo.move,copy:Eo.copy,test:Eo.test,_get:Eo._get};function bc(e,t){if(t=="")return e;var r={op:"_get",path:t};return Oa(e,r),r.value}function Oa(e,t,r,n,i,s){if(r===void 0&&(r=!1),n===void 0&&(n=!0),i===void 0&&(i=!0),s===void 0&&(s=0),r&&(typeof r=="function"?r(t,0,e,t.path):Np(t,0)),t.path===""){var a={newDocument:e};if(t.op==="add")return a.newDocument=t.value,a;if(t.op==="replace")return a.newDocument=t.value,a.removed=e,a;if(t.op==="move"||t.op==="copy")return a.newDocument=bc(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=_c(e,t.value),a.test===!1)throw new pr("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a.newDocument=e,a}else{if(t.op==="remove")return a.removed=e,a.newDocument=null,a;if(t.op==="_get")return t.value=e,a;if(r)throw new pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",s,t,e);return a}}else{n||(e=kn(e));var o=t.path||"",u=o.split("/"),c=e,l=1,f=u.length,h=void 0,d=void 0,g=void 0;for(typeof r=="function"?g=r:g=Np;;){if(d=u[l],d&&d.indexOf("~")!=-1&&(d=iU(d)),i&&(d=="__proto__"||d=="prototype"&&l>0&&u[l-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&h===void 0&&(c[d]===void 0?h=u.slice(0,l).join("/"):l==f-1&&(h=t.path),h!==void 0&&g(t,0,e,h)),l++,Array.isArray(c)){if(d==="-")d=c.length;else{if(r&&!wx(d))throw new pr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",s,t,e);wx(d)&&(d=~~d)}if(l>=f){if(r&&t.op==="add"&&d>c.length)throw new pr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s,t,e);var a=lre[t.op].call(t,c,d,e);if(a.test===!1)throw new pr("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}}else if(l>=f){var a=Eo[t.op].call(t,c,d,e);if(a.test===!1)throw new pr("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}if(c=c[d],r&&l<f&&(!c||typeof c!="object"))throw new pr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",s,t,e)}}}function qs(e,t,r,n,i){if(n===void 0&&(n=!0),i===void 0&&(i=!0),r&&!Array.isArray(t))throw new pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=kn(e));for(var s=new Array(t.length),a=0,o=t.length;a<o;a++)s[a]=Oa(e,t[a],r,!0,i,a),e=s[a].newDocument;return s.newDocument=e,s}function fre(e,t,r){var n=Oa(e,t);if(n.test===!1)throw new pr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function Np(e,t,r,n){if(typeof e!="object"||e===null||Array.isArray(e))throw new pr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(Eo[e.op]){if(typeof e.path!="string")throw new pr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new pr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new pr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new pr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&xx(e.value))throw new pr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var i=e.path.split("/").length,s=n.split("/").length;if(i!==s+1&&i!==s)throw new pr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new pr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},o=aU([a],r);if(o&&o.name==="OPERATION_PATH_UNRESOLVABLE")throw new pr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function aU(e,t,r){try{if(!Array.isArray(e))throw new pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)qs(kn(t),kn(e),r||!0);else{r=r||Np;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(i){if(i instanceof pr)return i;throw i}}function _c(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Array.isArray(e),n=Array.isArray(t),i,s,a;if(r&&n){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!_c(e[i],t[i]))return!1;return!0}if(r!=n)return!1;var o=Object.keys(e);if(s=o.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!t.hasOwnProperty(o[i]))return!1;for(i=s;i--!==0;)if(a=o[i],!_c(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}const pre=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:pr,_areEquals:_c,applyOperation:Oa,applyPatch:qs,applyReducer:fre,deepClone:cre,getValueByPointer:bc,validate:aU,validator:Np},Symbol.toStringTag,{value:"Module"}));/*!
97
+ * https://github.com/Starcounter-Jack/JSON-Patch
98
+ * (c) 2017-2021 Joachim Wester
99
+ * MIT license
100
+ */var $2=new WeakMap,dre=(function(){function e(t){this.observers=new Map,this.obj=t}return e})(),hre=(function(){function e(t,r){this.callback=t,this.observer=r}return e})();function mre(e){return $2.get(e)}function gre(e,t){return e.observers.get(t)}function yre(e,t){e.observers.delete(t.callback)}function vre(e,t){t.unobserve()}function bre(e,t){var r=[],n,i=mre(e);if(!i)i=new dre(e),$2.set(e,i);else{var s=gre(i,t);n=s&&s.observer}if(n)return n;if(n={},i.value=kn(e),t){n.callback=t,n.next=null;var a=function(){Ax(n)},o=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return n.patches=r,n.object=e,n.unobserve=function(){Ax(n),clearTimeout(n.next),yre(i,n),typeof window<"u"&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},i.observers.set(t,new hre(t,n)),n}function Ax(e,t){t===void 0&&(t=!1);var r=$2.get(e.object);F2(r.value,e.object,e.patches,"",t),e.patches.length&&qs(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function F2(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var s=Sx(t),a=Sx(e),o=!1,u=a.length-1;u>=0;u--){var c=a[u],l=e[c];if(Ex(t,c)&&!(t[c]===void 0&&l!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof l=="object"&&l!=null&&typeof f=="object"&&f!=null&&Array.isArray(l)===Array.isArray(f)?F2(l,f,r,n+"/"+va(c),i):l!==f&&(i&&r.push({op:"test",path:n+"/"+va(c),value:kn(l)}),r.push({op:"replace",path:n+"/"+va(c),value:kn(f)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+va(c),value:kn(l)}),r.push({op:"remove",path:n+"/"+va(c)}),o=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}))}if(!(!o&&s.length==a.length))for(var u=0;u<s.length;u++){var c=s[u];!Ex(e,c)&&t[c]!==void 0&&r.push({op:"add",path:n+"/"+va(c),value:kn(t[c])})}}}function _re(e,t,r){r===void 0&&(r=!1);var n=[];return F2(e,t,n,"",r),n}const Ere=Object.freeze(Object.defineProperty({__proto__:null,compare:_re,generate:Ax,observe:bre,unobserve:vre},Symbol.toStringTag,{value:"Module"}));Object.assign({},pre,Ere,{JsonPatchError:sU,deepClone:kn,escapePathComponent:va,unescapePathComponent:iU});var IS,P$;function Sre(){if(P$)return IS;P$=1;var e=function(b){return t(b)&&!r(b)};function t(_){return!!_&&typeof _=="object"}function r(_){var b=Object.prototype.toString.call(_);return b==="[object RegExp]"||b==="[object Date]"||s(_)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function s(_){return _.$$typeof===i}function a(_){return Array.isArray(_)?[]:{}}function o(_,b){return b.clone!==!1&&b.isMergeableObject(_)?y(a(_),_,b):_}function u(_,b,E){return _.concat(b).map(function(w){return o(w,E)})}function c(_,b){if(!b.customMerge)return y;var E=b.customMerge(_);return typeof E=="function"?E:y}function l(_){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(_).filter(function(b){return Object.propertyIsEnumerable.call(_,b)}):[]}function f(_){return Object.keys(_).concat(l(_))}function h(_,b){try{return b in _}catch{return!1}}function d(_,b){return h(_,b)&&!(Object.hasOwnProperty.call(_,b)&&Object.propertyIsEnumerable.call(_,b))}function g(_,b,E){var w={};return E.isMergeableObject(_)&&f(_).forEach(function(S){w[S]=o(_[S],E)}),f(b).forEach(function(S){d(_,S)||(h(_,S)&&E.isMergeableObject(b[S])?w[S]=c(S,E)(_[S],b[S],E):w[S]=o(b[S],E))}),w}function y(_,b,E){E=E||{},E.arrayMerge=E.arrayMerge||u,E.isMergeableObject=E.isMergeableObject||e,E.cloneUnlessOtherwiseSpecified=o;var w=Array.isArray(b),S=Array.isArray(_),A=w===S;return A?w?E.arrayMerge(_,b,E):g(_,b,E):o(b,E)}y.all=function(b,E){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(w,S){return y(w,S,E)},{})};var v=y;return IS=v,IS}var wre=Sre();const k$=Ve.getDefaultExportFromCjs(wre),Bt={add:Are,replace:pp,remove:Ore,merge:Cre,mergeDeep:Rre,context:Ire,getIn:kre,applyPatch:xre,parentPathMatch:Pre,flatten:hl,fullyNormalizeArray:Nre,normalizeArray:uU,isPromise:Mre,forEachNew:Tre,forEachNewPrimitive:jre,isJsonPatch:fU,isContextPatch:$re,isPatch:mh,isMutation:pU,isAdditiveMutation:Mp,isGenerator:qre,isFunction:lU,isObject:Ca,isError:Dre};function xre(e,t,r){if(r=r||{},t={...t,path:t.path&&N$(t.path)},t.op==="merge"){const n=TS(e,t.path);Object.assign(n,t.value),qs(e,[pp(t.path,n)])}else if(t.op==="mergeDeep"){const n=TS(e,t.path),i=k$(n,t.value,{customMerge:s=>{if(s==="enum")return(a,o)=>Array.isArray(a)&&Array.isArray(o)?[...new Set([...a,...o])]:k$(a,o)}});e=qs(e,[pp(t.path,i)]).newDocument}else if(t.op==="add"&&t.path===""&&Ca(t.value)){const n=Object.keys(t.value).reduce((i,s)=>(i.push({op:"add",path:`/${N$(s)}`,value:t.value[s]}),i),[]);qs(e,n)}else if(t.op==="replace"&&t.path===""){let{value:n}=t;r.allowMetaPatches&&t.meta&&Mp(t)&&(Array.isArray(t.value)||Ca(t.value))&&(n={...n,...t.meta}),e=n}else if(qs(e,[t]),r.allowMetaPatches&&t.meta&&Mp(t)&&(Array.isArray(t.value)||Ca(t.value))){const i={...TS(e,t.path),...t.meta};qs(e,[pp(t.path,i)])}return e}function N$(e){return Array.isArray(e)?e.length<1?"":`/${e.map(t=>(t+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:e}function Are(e,t){return{op:"add",path:e,value:t}}function pp(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function Ore(e){return{op:"remove",path:e}}function Cre(e,t){return{type:"mutation",op:"merge",path:e,value:t}}function Rre(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}}function Ire(e,t){return{type:"context",path:e,value:t}}function Tre(e,t){try{return oU(e,Cx,t)}catch(r){return r}}function jre(e,t){try{return oU(e,Ox,t)}catch(r){return r}}function oU(e,t,r){const n=e.filter(Mp).map(a=>t(a.value,r,a.path))||[],i=hl(n);return cU(i)}function Ox(e,t,r){return r=r||[],Array.isArray(e)?e.map((n,i)=>Ox(n,t,r.concat(i))):Ca(e)?Object.keys(e).map(n=>Ox(e[n],t,r.concat(n))):t(e,r[r.length-1],r)}function Cx(e,t,r){r=r||[];let n=[];if(r.length>0){const i=t(e,r[r.length-1],r);i&&(n=n.concat(i))}if(Array.isArray(e)){const i=e.map((s,a)=>Cx(s,t,r.concat(a)));i&&(n=n.concat(i))}else if(Ca(e)){const i=Object.keys(e).map(s=>Cx(e[s],t,r.concat(s)));i&&(n=n.concat(i))}return n=hl(n),n}function Pre(e,t){if(!Array.isArray(t))return!1;for(let r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0}function kre(e,t){return t.reduce((r,n)=>typeof n<"u"&&r?r[n]:r,e)}function Nre(e){return cU(hl(uU(e)))}function uU(e){return Array.isArray(e)?e:[e]}function hl(e){return[].concat(...e.map(t=>Array.isArray(t)?hl(t):t))}function cU(e){return e.filter(t=>typeof t<"u")}function Ca(e){return e&&typeof e=="object"}function Mre(e){return Ca(e)&&lU(e.then)}function lU(e){return e&&typeof e=="function"}function Dre(e){return e instanceof Error}function fU(e){if(mh(e)){const{op:t}=e;return t==="add"||t==="remove"||t==="replace"}return!1}function qre(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function pU(e){return fU(e)||mh(e)&&e.type==="mutation"}function Mp(e){return pU(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function $re(e){return mh(e)&&e.type==="context"}function mh(e){return e&&typeof e=="object"}function TS(e,t){try{return bc(e,t)}catch(r){return console.error(r),{}}}var M$={},D$={},q$={},jS,$$;function B2(){if($$)return jS;$$=1;var e=T4(),t=j4(),r=e("keys");return jS=function(n){return r[n]||(r[n]=t(n))},jS}var PS,F$;function Fre(){if(F$)return PS;F$=1;var e=ui();return PS=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),PS}var kS,B$;function L2(){if(B$)return kS;B$=1;var e=Ri(),t=$n(),r=T2(),n=B2(),i=Fre(),s=n("IE_PROTO"),a=Object,o=a.prototype;return kS=i?a.getPrototypeOf:function(u){var c=r(u);if(e(c,s))return c[s];var l=c.constructor;return t(l)&&c instanceof l?l.prototype:c instanceof a?o:null},kS}var NS,L$;function Bre(){if(L$)return NS;L$=1;var e=wn(),t=pl();return NS=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch{}},NS}var MS,U$;function Lre(){if(U$)return MS;U$=1;var e=Ci();return MS=function(t){return e(t)||t===null},MS}var DS,V$;function Ure(){if(V$)return DS;V$=1;var e=Lre(),t=String,r=TypeError;return DS=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")},DS}var qS,z$;function gh(){if(z$)return qS;z$=1;var e=Bre(),t=Ci(),r=ph(),n=Ure();return qS=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,s={},a;try{a=e(Object.prototype,"__proto__","set"),a(s,[]),i=s instanceof Array}catch{}return function(u,c){return r(u),n(c),t(u)&&(i?a(u,c):u.__proto__=c),u}})():void 0),qS}var $S={},W$;function Vre(){if(W$)return $S;W$=1;var e=F4(),t=k2(),r=t.concat("length","prototype");return $S.f=Object.getOwnPropertyNames||function(i){return e(i,r)},$S}var FS,J$;function zre(){if(J$)return FS;J$=1;var e=ll(),t=wn(),r=Vre(),n=L4(),i=Wa(),s=t([].concat);return FS=e("Reflect","ownKeys")||function(o){var u=r.f(i(o)),c=n.f;return c?s(u,c(o)):u},FS}var BS,K$;function dU(){if(K$)return BS;K$=1;var e=Ri(),t=zre(),r=M4(),n=au();return BS=function(i,s,a){for(var o=t(s),u=n.f,c=r.f,l=0;l<o.length;l++){var f=o[l];!e(i,f)&&!(a&&e(a,f))&&u(i,f,c(s,f))}},BS}var LS={},H$;function Wre(){if(H$)return LS;H$=1;var e=Xi(),t=q4(),r=au(),n=Wa(),i=ul(),s=B4();return LS.f=e&&!t?Object.defineProperties:function(o,u){n(o);for(var c=i(u),l=s(u),f=l.length,h=0,d;f>h;)r.f(o,d=l[h++],c[d]);return o},LS}var US,G$;function Jre(){if(G$)return US;G$=1;var e=ll();return US=e("document","documentElement"),US}var VS,Y$;function U2(){if(Y$)return VS;Y$=1;var e=Wa(),t=Wre(),r=k2(),n=P2(),i=Jre(),s=k4(),a=B2(),o=">",u="<",c="prototype",l="script",f=a("IE_PROTO"),h=function(){},d=function(b){return u+l+o+b+u+"/"+l+o},g=function(b){b.write(d("")),b.close();var E=b.parentWindow.Object;return b=null,E},y=function(){var b=s("iframe"),E="java"+l+":",w;return b.style.display="none",i.appendChild(b),b.src=String(E),w=b.contentWindow.document,w.open(),w.write(d("document.F=Object")),w.close(),w.F},v,_=function(){try{v=new ActiveXObject("htmlfile")}catch{}_=typeof document<"u"?document.domain&&v?g(v):y():g(v);for(var b=r.length;b--;)delete _[c][r[b]];return _()};return n[f]=!0,VS=Object.create||function(E,w){var S;return E!==null?(h[c]=e(E),S=new h,h[c]=null,S[f]=E):S=_(),w===void 0?S:t.f(S,w)},VS}var zS,X$;function hU(){if(X$)return zS;X$=1;var e=Ci(),t=Es();return zS=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)},zS}var WS,Z$;function Kre(){if(Z$)return WS;Z$=1;var e=wn(),t=Error,r=e("".replace),n=(function(a){return String(new t(a).stack)})("zxcasd"),i=/\n\s*at [^:]*:[^\n]*/,s=i.test(n);return WS=function(a,o){if(s&&typeof a=="string"&&!t.prepareStackTrace)for(;o--;)a=r(a,i,"");return a},WS}var JS,Q$;function Hre(){if(Q$)return JS;Q$=1;var e=ui(),t=ol();return JS=!e(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",t(1,7)),r.stack!==7):!0}),JS}var KS,e3;function mU(){if(e3)return KS;e3=1;var e=Es(),t=Kre(),r=Hre(),n=Error.captureStackTrace;return KS=function(i,s,a,o){r&&(n?n(i,s):e(i,"stack",t(a,o)))},KS}var HS,t3;function uu(){return t3||(t3=1,HS={}),HS}var GS,r3;function Gre(){if(r3)return GS;r3=1;var e=_s(),t=uu(),r=e("iterator"),n=Array.prototype;return GS=function(i){return i!==void 0&&(t.Array===i||n[r]===i)},GS}var YS,n3;function V2(){if(n3)return YS;n3=1;var e=_s(),t=e("toStringTag"),r={};return r[t]="z",YS=String(r)==="[object z]",YS}var XS,i3;function z2(){if(i3)return XS;i3=1;var e=V2(),t=$n(),r=O2(),n=_s(),i=n("toStringTag"),s=Object,a=r((function(){return arguments})())==="Arguments",o=function(u,c){try{return u[c]}catch{}};return XS=e?r:function(u){var c,l,f;return u===void 0?"Undefined":u===null?"Null":typeof(l=o(c=s(u),i))=="string"?l:a?r(c):(f=r(c))==="Object"&&t(c.callee)?"Arguments":f},XS}var ZS,s3;function gU(){if(s3)return ZS;s3=1;var e=z2(),t=I2(),r=C2(),n=uu(),i=_s(),s=i("iterator");return ZS=function(a){if(!r(a))return t(a,s)||t(a,"@@iterator")||n[e(a)]},ZS}var QS,a3;function Yre(){if(a3)return QS;a3=1;var e=Zs(),t=pl(),r=Wa(),n=R2(),i=gU(),s=TypeError;return QS=function(a,o){var u=arguments.length<2?i(a):o;if(t(u))return r(e(u,a));throw new s(n(a)+" is not iterable")},QS}var e1,o3;function Xre(){if(o3)return e1;o3=1;var e=Zs(),t=Wa(),r=I2();return e1=function(n,i,s){var a,o;t(n);try{if(a=r(n,"return"),!a){if(i==="throw")throw s;return s}a=e(a,n)}catch(u){o=!0,a=u}if(i==="throw")throw s;if(o)throw a;return t(a),s},e1}var t1,u3;function Zre(){if(u3)return t1;u3=1;var e=D4(),t=Zs(),r=Wa(),n=R2(),i=Gre(),s=$4(),a=fl(),o=Yre(),u=gU(),c=Xre(),l=TypeError,f=function(d,g){this.stopped=d,this.result=g},h=f.prototype;return t1=function(d,g,y){var v=y&&y.that,_=!!(y&&y.AS_ENTRIES),b=!!(y&&y.IS_RECORD),E=!!(y&&y.IS_ITERATOR),w=!!(y&&y.INTERRUPTED),S=e(g,v),A,R,T,O,D,N,$,M=function(ee){return A&&c(A,"normal"),new f(!0,ee)},X=function(ee){return _?(r(ee),w?S(ee[0],ee[1],M):S(ee[0],ee[1])):w?S(ee,M):S(ee)};if(b)A=d.iterator;else if(E)A=d;else{if(R=u(d),!R)throw new l(n(d)+" is not iterable");if(i(R)){for(T=0,O=s(d);O>T;T++)if(D=X(d[T]),D&&a(h,D))return D;return new f(!1)}A=o(d,R)}for(N=b?d.next:A.next;!($=t(N,A)).done;){try{D=X($.value)}catch(ee){c(A,"throw",ee)}if(typeof D=="object"&&D&&a(h,D))return D}return new f(!1)},t1}var r1,c3;function W2(){if(c3)return r1;c3=1;var e=z2(),t=String;return r1=function(r){if(e(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(r)},r1}var n1,l3;function yU(){if(l3)return n1;l3=1;var e=W2();return n1=function(t,r){return t===void 0?arguments.length<2?"":r:e(t)},n1}var f3;function Qre(){if(f3)return q$;f3=1;var e=ou(),t=fl(),r=L2(),n=gh(),i=dU(),s=U2(),a=Es(),o=ol(),u=hU(),c=mU(),l=Zre(),f=yU(),h=_s(),d=h("toStringTag"),g=Error,y=[].push,v=function(E,w){var S=t(_,this),A;n?A=n(new g,S?r(this):_):(A=S?this:s(_),a(A,d,"Error")),w!==void 0&&a(A,"message",f(w)),c(A,v,A.stack,1),arguments.length>2&&u(A,arguments[2]);var R=[];return l(E,y,{that:R}),a(A,"errors",R),A};n?n(v,g):i(v,g,{name:!0});var _=v.prototype=s(g.prototype,{constructor:o(1,v),message:o(1,""),name:o(1,"AggregateError")});return e({global:!0,constructor:!0,arity:2},{AggregateError:v}),q$}var p3;function vU(){return p3||(p3=1,Qre()),D$}var d3;function bU(){return d3||(d3=1,vU()),M$}var h3={},i1,m3;function ene(){if(m3)return i1;m3=1;var e=au().f;return i1=function(t,r,n){n in t||e(t,n,{configurable:!0,get:function(){return r[n]},set:function(i){r[n]=i}})},i1}var s1,g3;function tne(){if(g3)return s1;g3=1;var e=$n(),t=Ci(),r=gh();return s1=function(n,i,s){var a,o;return r&&e(a=i.constructor)&&a!==s&&t(o=a.prototype)&&o!==s.prototype&&r(n,o),n},s1}var a1,y3;function _U(){if(y3)return a1;y3=1;var e=ll(),t=Ri(),r=Es(),n=fl(),i=gh(),s=dU(),a=ene(),o=tne(),u=yU(),c=hU(),l=mU(),f=Xi(),h=dl();return a1=function(d,g,y,v){var _="stackTraceLimit",b=v?2:1,E=d.split("."),w=E[E.length-1],S=e.apply(null,E);if(S){var A=S.prototype;if(!h&&t(A,"cause")&&delete A.cause,!y)return S;var R=e("Error"),T=g(function(O,D){var N=u(v?D:O,void 0),$=v?new S(O):new S;return N!==void 0&&r($,"message",N),l($,T,$.stack,2),this&&n(A,this)&&o($,this,T),arguments.length>b&&c($,arguments[b]),$});if(T.prototype=A,w!=="Error"?i?i(T,R):s(T,R,{name:!0}):f&&_ in S&&(a(T,S,_),a(T,S,"prepareStackTrace")),s(T,S),!h)try{A.name!==w&&r(A,"name",w),A.constructor=T}catch{}return T}},a1}var v3;function rne(){if(v3)return h3;v3=1;var e=ou(),t=Sn(),r=A2(),n=_U(),i="WebAssembly",s=t[i],a=new Error("e",{cause:7}).cause!==7,o=function(c,l){var f={};f[c]=n(c,l,a),e({global:!0,constructor:!0,arity:1,forced:a},f)},u=function(c,l){if(s&&s[c]){var f={};f[c]=n(i+"."+c,l,a),e({target:i,stat:!0,constructor:!0,arity:1,forced:a},f)}};return o("Error",function(c){return function(f){return r(c,this,arguments)}}),o("EvalError",function(c){return function(f){return r(c,this,arguments)}}),o("RangeError",function(c){return function(f){return r(c,this,arguments)}}),o("ReferenceError",function(c){return function(f){return r(c,this,arguments)}}),o("SyntaxError",function(c){return function(f){return r(c,this,arguments)}}),o("TypeError",function(c){return function(f){return r(c,this,arguments)}}),o("URIError",function(c){return function(f){return r(c,this,arguments)}}),u("CompileError",function(c){return function(f){return r(c,this,arguments)}}),u("LinkError",function(c){return function(f){return r(c,this,arguments)}}),u("RuntimeError",function(c){return function(f){return r(c,this,arguments)}}),h3}var b3={},_3;function nne(){if(_3)return b3;_3=1;var e=ou(),t=ll(),r=A2(),n=ui(),i=_U(),s="AggregateError",a=t(s),o=!n(function(){return a([1]).errors[0]!==1})&&n(function(){return a([1],s,{cause:7}).cause!==7});return e({global:!0,constructor:!0,arity:2,forced:o},{AggregateError:i(s,function(u){return function(l,f){return r(u,this,arguments)}},o,!0)}),b3}var o1,E3;function ine(){return E3||(E3=1,o1=function(){}),o1}var u1,S3;function sne(){if(S3)return u1;S3=1;var e=Sn(),t=$n(),r=e.WeakMap;return u1=t(r)&&/native code/.test(String(r)),u1}var c1,w3;function EU(){if(w3)return c1;w3=1;var e=sne(),t=Sn(),r=Ci(),n=Es(),i=Ri(),s=I4(),a=B2(),o=P2(),u="Object already initialized",c=t.TypeError,l=t.WeakMap,f,h,d,g=function(b){return d(b)?h(b):f(b,{})},y=function(b){return function(E){var w;if(!r(E)||(w=h(E)).type!==b)throw new c("Incompatible receiver, "+b+" required");return w}};if(e||s.state){var v=s.state||(s.state=new l);v.get=v.get,v.has=v.has,v.set=v.set,f=function(b,E){if(v.has(b))throw new c(u);return E.facade=b,v.set(b,E),E},h=function(b){return v.get(b)||{}},d=function(b){return v.has(b)}}else{var _=a("state");o[_]=!0,f=function(b,E){if(i(b,_))throw new c(u);return E.facade=b,n(b,_,E),E},h=function(b){return i(b,_)?b[_]:{}},d=function(b){return i(b,_)}}return c1={set:f,get:h,has:d,enforce:g,getterFor:y},c1}var l1,x3;function ane(){if(x3)return l1;x3=1;var e=Xi(),t=Ri(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),s=i&&(function(){}).name==="something",a=i&&(!e||e&&n(r,"name").configurable);return l1={EXISTS:i,PROPER:s,CONFIGURABLE:a},l1}var f1,A3;function SU(){if(A3)return f1;A3=1;var e=Es();return f1=function(t,r,n,i){return i&&i.enumerable?t[r]=n:e(t,r,n),t},f1}var p1,O3;function wU(){if(O3)return p1;O3=1;var e=ui(),t=$n(),r=Ci(),n=U2(),i=L2(),s=SU(),a=_s(),o=dl(),u=a("iterator"),c=!1,l,f,h;[].keys&&(h=[].keys(),"next"in h?(f=i(i(h)),f!==Object.prototype&&(l=f)):c=!0);var d=!r(l)||e(function(){var g={};return l[u].call(g)!==g});return d?l={}:o&&(l=n(l)),t(l[u])||s(l,u,function(){return this}),p1={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:c},p1}var d1,C3;function one(){if(C3)return d1;C3=1;var e=V2(),t=z2();return d1=e?{}.toString:function(){return"[object "+t(this)+"]"},d1}var h1,R3;function J2(){if(R3)return h1;R3=1;var e=V2(),t=au().f,r=Es(),n=Ri(),i=one(),s=_s(),a=s("toStringTag");return h1=function(o,u,c,l){var f=c?o:o&&o.prototype;f&&(n(f,a)||t(f,a,{configurable:!0,value:u}),l&&!e&&r(f,"toString",i))},h1}var m1,I3;function une(){if(I3)return m1;I3=1;var e=wU().IteratorPrototype,t=U2(),r=ol(),n=J2(),i=uu(),s=function(){return this};return m1=function(a,o,u,c){var l=o+" Iterator";return a.prototype=t(e,{next:r(+!c,u)}),n(a,l,!1,!0),i[l]=s,a},m1}var g1,T3;function xU(){if(T3)return g1;T3=1;var e=ou(),t=Zs(),r=dl(),n=ane(),i=$n(),s=une(),a=L2(),o=gh(),u=J2(),c=Es(),l=SU(),f=_s(),h=uu(),d=wU(),g=n.PROPER,y=n.CONFIGURABLE,v=d.IteratorPrototype,_=d.BUGGY_SAFARI_ITERATORS,b=f("iterator"),E="keys",w="values",S="entries",A=function(){return this};return g1=function(R,T,O,D,N,$,M){s(O,T,D);var X=function(ue){if(ue===N&&re)return re;if(!_&&ue&&ue in Q)return Q[ue];switch(ue){case E:return function(){return new O(this,ue)};case w:return function(){return new O(this,ue)};case S:return function(){return new O(this,ue)}}return function(){return new O(this)}},ee=T+" Iterator",J=!1,Q=R.prototype,te=Q[b]||Q["@@iterator"]||N&&Q[N],re=!_&&te||X(N),L=T==="Array"&&Q.entries||te,K,ne,ce;if(L&&(K=a(L.call(new R)),K!==Object.prototype&&K.next&&(!r&&a(K)!==v&&(o?o(K,v):i(K[b])||l(K,b,A)),u(K,ee,!0,!0),r&&(h[ee]=A))),g&&N===w&&te&&te.name!==w&&(!r&&y?c(Q,"name",w):(J=!0,re=function(){return t(te,this)})),N)if(ne={values:X(w),keys:$?re:X(E),entries:X(S)},M)for(ce in ne)(_||J||!(ce in Q))&&l(Q,ce,ne[ce]);else e({target:T,proto:!0,forced:_||J},ne);return(!r||M)&&Q[b]!==re&&l(Q,b,re,{name:N}),h[T]=re,ne},g1}var y1,j3;function AU(){return j3||(j3=1,y1=function(e,t){return{value:e,done:t}}),y1}var v1,P3;function OU(){if(P3)return v1;P3=1;var e=ul(),t=ine(),r=uu(),n=EU(),i=au().f,s=xU(),a=AU(),o=dl(),u=Xi(),c="Array Iterator",l=n.set,f=n.getterFor(c);v1=s(Array,"Array",function(d,g){l(this,{type:c,target:e(d),index:0,kind:g})},function(){var d=f(this),g=d.target,y=d.index++;if(!g||y>=g.length)return d.target=null,a(void 0,!0);switch(d.kind){case"keys":return a(y,!1);case"values":return a(g[y],!1)}return a([y,g[y]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!o&&u&&h.name!=="values")try{i(h,"name",{value:"values"})}catch{}return v1}var k3={},b1,N3;function cne(){if(N3)return b1;N3=1;var e=wn(),t=j2(),r=W2(),n=ph(),i=e("".charAt),s=e("".charCodeAt),a=e("".slice),o=function(u){return function(c,l){var f=r(n(c)),h=t(l),d=f.length,g,y;return h<0||h>=d?u?"":void 0:(g=s(f,h),g<55296||g>56319||h+1===d||(y=s(f,h+1))<56320||y>57343?u?i(f,h):g:u?a(f,h,h+2):(g-55296<<10)+(y-56320)+65536)}};return b1={codeAt:o(!1),charAt:o(!0)},b1}var M3;function lne(){if(M3)return k3;M3=1;var e=cne().charAt,t=W2(),r=EU(),n=xU(),i=AU(),s="String Iterator",a=r.set,o=r.getterFor(s);return n(String,"String",function(u){a(this,{type:s,string:t(u),index:0})},function(){var c=o(this),l=c.string,f=c.index,h;return f>=l.length?i(void 0,!0):(h=e(l,f),c.index+=h.length,i(h,!1))}),k3}var _1,D3;function fne(){if(D3)return _1;D3=1,rne(),vU(),nne(),OU(),lne();var e=cl();return _1=e.AggregateError,_1}var q3={},E1,$3;function pne(){return $3||($3=1,E1={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),E1}var F3;function dne(){if(F3)return q3;F3=1,OU();var e=pne(),t=Sn(),r=J2(),n=uu();for(var i in e)r(t[i],i),n[i]=n.Array;return q3}var S1,B3;function hne(){if(B3)return S1;B3=1,bU();var e=fne();return dne(),S1=e,S1}var w1,L3;function mne(){if(L3)return w1;L3=1;var e=hne();return w1=e,w1}var x1,U3;function gne(){if(U3)return x1;U3=1,bU();var e=mne();return x1=e,x1}var A1,V3;function yne(){return V3||(V3=1,A1=gne()),A1}var O1,z3;function vne(){return z3||(z3=1,O1=yne()),O1}var bne=vne();const _ne=Ve.getDefaultExportFromCjs(bne);class Ene extends _ne{constructor(t,r,n){if(super(t,r,n),this.name=this.constructor.name,typeof r=="string"&&(this.message=r),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack,n!=null&&typeof n=="object"&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:i}=n;this.cause=i,i instanceof Error&&"stack"in i&&(this.stack=`${this.stack}
101
+ CAUSE: ${i.stack}`)}}}class lr extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(Ene,t)}constructor(t,r){if(super(t,r),this.name=this.constructor.name,typeof t=="string"&&(this.message=t),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack}
102
+ CAUSE: ${n.stack}`)}}}class Ji extends lr{constructor(t,r){if(super(t,r),r!=null&&typeof r=="object"){const{cause:n,...i}=r;Object.assign(this,i)}}}class bt extends lr{}class C1 extends bt{}var K2=function(){return!1},Ss=function(){return!0};function tr(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Lt(e){return function t(r){return arguments.length===0||tr(r)?t:e.apply(this,arguments)}}function ct(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return tr(r)?t:Lt(function(i){return e(r,i)});default:return tr(r)&&tr(n)?t:tr(r)?Lt(function(i){return e(i,n)}):tr(n)?Lt(function(i){return e(r,i)}):e(r,n)}}}function Sne(e,t){e=e||[],t=t||[];var r,n=e.length,i=t.length,s=[];for(r=0;r<n;)s[s.length]=e[r],r+=1;for(r=0;r<i;)s[s.length]=t[r],r+=1;return s}function yh(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,i){return t.apply(this,arguments)};case 4:return function(r,n,i,s){return t.apply(this,arguments)};case 5:return function(r,n,i,s,a){return t.apply(this,arguments)};case 6:return function(r,n,i,s,a,o){return t.apply(this,arguments)};case 7:return function(r,n,i,s,a,o,u){return t.apply(this,arguments)};case 8:return function(r,n,i,s,a,o,u,c){return t.apply(this,arguments)};case 9:return function(r,n,i,s,a,o,u,c,l){return t.apply(this,arguments)};case 10:return function(r,n,i,s,a,o,u,c,l,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function H2(e,t,r){return function(){for(var n=[],i=0,s=e,a=0,o=!1;a<t.length||i<arguments.length;){var u;a<t.length&&(!tr(t[a])||i>=arguments.length)?u=t[a]:(u=arguments[i],i+=1),n[a]=u,tr(u)?o=!0:s-=1,a+=1}return!o&&s<=0?r.apply(this,n):yh(Math.max(0,s),H2(e,n,r))}}var xr=ct(function(t,r){return t===1?Lt(r):yh(t,H2(t,[],r))});function rn(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return tr(r)?t:ct(function(s,a){return e(r,s,a)});case 2:return tr(r)&&tr(n)?t:tr(r)?ct(function(s,a){return e(s,n,a)}):tr(n)?ct(function(s,a){return e(r,s,a)}):Lt(function(s){return e(r,n,s)});default:return tr(r)&&tr(n)&&tr(i)?t:tr(r)&&tr(n)?ct(function(s,a){return e(s,a,i)}):tr(r)&&tr(i)?ct(function(s,a){return e(s,n,a)}):tr(n)&&tr(i)?ct(function(s,a){return e(r,s,a)}):tr(r)?Lt(function(s){return e(s,n,i)}):tr(n)?Lt(function(s){return e(r,s,i)}):tr(i)?Lt(function(s){return e(r,n,s)}):e(r,n,i)}}}const Ja=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function wne(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function Qs(e,t,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!Ja(n)){for(var i=0;i<e.length;){if(typeof n[e[i]]=="function")return n[e[i]].apply(n,Array.prototype.slice.call(arguments,0,-1));i+=1}if(wne(n)){var s=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(n)}}return r.apply(this,arguments)}}function vh(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const qn={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var xne=(function(){function e(t,r){this.xf=r,this.f=t,this.all=!0}return e.prototype["@@transducer/init"]=qn.init,e.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)||(this.all=!1,t=vh(this.xf["@@transducer/step"](t,!1))),t},e})();function Ane(e){return function(t){return new xne(e,t)}}var G2=ct(Qs(["all"],Ane,function(t,r){for(var n=0;n<r.length;){if(!t(r[n]))return!1;n+=1}return!0}));function W3(e){for(var t=[],r;!(r=e.next()).done;)t.push(r.value);return t}function Dp(e,t,r){for(var n=0,i=r.length;n<i;){if(e(t,r[n]))return!0;n+=1}return!1}function One(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function ti(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function Cne(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const ic=typeof Object.is=="function"?Object.is:Cne;var J3=Object.prototype.toString,CU=(function(){return J3.call(arguments)==="[object Arguments]"?function(t){return J3.call(t)==="[object Arguments]"}:function(t){return ti("callee",t)}})(),Rne=!{toString:null}.propertyIsEnumerable("toString"),K3=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],H3=(function(){return arguments.propertyIsEnumerable("length")})(),Ine=function(t,r){for(var n=0;n<t.length;){if(t[n]===r)return!0;n+=1}return!1},ja=Lt(typeof Object.keys=="function"&&!H3?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var r,n,i=[],s=H3&&CU(t);for(r in t)ti(r,t)&&(!s||r!=="length")&&(i[i.length]=r);if(Rne)for(n=K3.length-1;n>=0;)r=K3[n],ti(r,t)&&!Ine(i,r)&&(i[i.length]=r),n-=1;return i}),wi=Lt(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function G3(e,t,r,n){var i=W3(e),s=W3(t);function a(o,u){return Y2(o,u,r.slice(),n.slice())}return!Dp(function(o,u){return!Dp(a,u,o)},s,i)}function Y2(e,t,r,n){if(ic(e,t))return!0;var i=wi(e);if(i!==wi(t))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&One(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&ic(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!ic(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var s=r.length-1;s>=0;){if(r[s]===e)return n[s]===t;s-=1}switch(i){case"Map":return e.size!==t.size?!1:G3(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size!==t.size?!1:G3(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=ja(e);if(a.length!==ja(t).length)return!1;var o=r.concat([e]),u=n.concat([t]);for(s=a.length-1;s>=0;){var c=a[s];if(!(ti(c,t)&&Y2(t[c],e[c],o,u)))return!1;s-=1}return!0}var ea=ct(function(t,r){return Y2(t,r,[],[])});function Tne(e,t,r){var n,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(n=1/t;r<e.length;){if(i=e[r],i===0&&1/i===n)return r;r+=1}return-1}else if(t!==t){for(;r<e.length;){if(i=e[r],typeof i=="number"&&i!==i)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(t===null)return e.indexOf(t,r)}for(;r<e.length;){if(ea(e[r],t))return r;r+=1}return-1}function qp(e,t){return Tne(t,e,0)>=0}function dp(e,t){for(var r=0,n=t.length,i=Array(n);r<n;)i[r]=e(t[r]),r+=1;return i}function R1(e){var t=e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}var Fu=function(t){return(t<10?"0":"")+t},jne=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Fu(t.getUTCMonth()+1)+"-"+Fu(t.getUTCDate())+"T"+Fu(t.getUTCHours())+":"+Fu(t.getUTCMinutes())+":"+Fu(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function RU(e){return function(){return!e.apply(this,arguments)}}function ml(e,t,r){for(var n=0,i=r.length;n<i;)t=e(t,r[n]),n+=1;return t}function Pne(e,t){for(var r=0,n=t.length,i=[];r<n;)e(t[r])&&(i[i.length]=t[r]),r+=1;return i}function $p(e){return Object.prototype.toString.call(e)==="[object Object]"}var kne=(function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=qn.init,e.prototype["@@transducer/result"]=qn.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t},e})();function Nne(e){return function(t){return new kne(e,t)}}var Mne=ct(Qs(["fantasy-land/filter","filter"],Nne,function(e,t){return $p(t)?ml(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{},ja(t)):Pne(e,t)})),Dne=ct(function(t,r){return Mne(RU(t),r)});function IU(e,t){var r=function(a){var o=t.concat([e]);return qp(a,o)?"<Circular>":IU(a,o)},n=function(s,a){return dp(function(o){return R1(o)+": "+r(s[o])},a.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+dp(r,e).join(", ")+"))";case"[object Array]":return"["+dp(r,e).concat(n(e,Dne(function(s){return/^\d+$/.test(s)},ja(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):R1(jne(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+r(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return typeof e=="object"?"new String("+r(e.valueOf())+")":R1(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+n(e,ja(e)).join(", ")+"}"}}var Bo=Lt(function(t){return IU(t,[])}),TU=ct(function(t,r){if(t===r)return r;function n(u,c){if(u>c!=c>u)return c>u?c:u}var i=n(t,r);if(i!==void 0)return i;var s=n(typeof t,typeof r);if(s!==void 0)return s===typeof t?t:r;var a=Bo(t),o=n(a,Bo(r));return o!==void 0&&o===a?t:r}),qne=(function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=qn.init,e.prototype["@@transducer/result"]=qn.result,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e})(),$ne=function(t){return function(r){return new qne(t,r)}},bh=ct(Qs(["fantasy-land/map","map"],$ne,function(t,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return xr(r.length,function(){return t.call(this,r.apply(this,arguments))});case"[object Object]":return ml(function(n,i){return n[i]=t(r[i]),n},{},ja(r));default:return dp(t,r)}}));const cu=Number.isInteger||function(t){return t<<0===t};function X2(e){return Object.prototype.toString.call(e)==="[object String]"}function _h(e,t){var r=e<0?t.length+e:e;return X2(t)?t.charAt(r):t[r]}var gl=ct(function(t,r){if(r!=null)return cu(t)?_h(t,r):r[t]}),jU=ct(function(t,r){return bh(gl(t),r)}),Fne=Lt(function(t){return Ja(t)?!0:!t||typeof t!="object"||X2(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),Y3=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function PU(e,t,r){return function(i,s,a){if(Fne(a))return e(i,s,a);if(a==null)return s;if(typeof a["fantasy-land/reduce"]=="function")return t(i,s,a,"fantasy-land/reduce");if(a[Y3]!=null)return r(i,s,a[Y3]());if(typeof a.next=="function")return r(i,s,a);if(typeof a.reduce=="function")return t(i,s,a,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Bne(e,t,r){for(var n=0,i=r.length;n<i;){if(t=e["@@transducer/step"](t,r[n]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var kU=ct(function(t,r){return yh(t.length,function(){return t.apply(r,arguments)})});function Lne(e,t,r){for(var n=r.next();!n.done;){if(t=e["@@transducer/step"](t,n.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function Une(e,t,r,n){return e["@@transducer/result"](r[n](kU(e["@@transducer/step"],e),t))}var Z2=PU(Bne,Une,Lne),Vne=(function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e})();function NU(e){return new Vne(e)}var lu=rn(function(e,t,r){return Z2(typeof e=="function"?NU(e):e,t,r)}),zne=Lt(function(t){return xr(lu(TU,0,jU("length",t)),function(){for(var r=0,n=t.length;r<n;){if(!t[r].apply(this,arguments))return!1;r+=1}return!0})}),it=Lt(function(t){return function(){return t}}),Wne=ct(function(t,r){return t&&r}),Jne=Lt(function(t){return xr(lu(TU,0,jU("length",t)),function(){for(var r=0,n=t.length;r<n;){if(t[r].apply(this,arguments))return!0;r+=1}return!1})});function Kne(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Hne(e,t,r,n){return r[n](e,t)}var Gne=PU(ml,Hne,Kne),Yne=ct(function(t,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(r):typeof t=="function"?function(n){return t(n)(r(n))}:Gne(function(n,i){return Sne(n,bh(i,r))},[],t)}),Xne=ct(function(t,r){return t.apply(this,r)}),Q2=Lt(function(t){return xr(t.length,t)});function Zne(e,t,r){if(cu(e)&&Ja(r)){var n=[].concat(r);return n[e]=t,n}var i={};for(var s in r)i[s]=r[s];return i[e]=t,i}var Fp=Lt(function(t){return t==null}),$e=rn(function e(t,r,n){if(t.length===0)return r;var i=t[0];if(t.length>1){var s=!Fp(n)&&ti(i,n)&&typeof n[i]=="object"?n[i]:cu(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,s)}return Zne(i,r,n)}),Qne=rn(function(t,r,n){return $e([t],r,n)});function eC(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var eie=ct(function(t,r){var n=xr(t,r);return xr(t,function(){return ml(Yne,bh(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),tC=Lt(function(t){return eie(t.length,t)}),yl=ct(function(t,r){return eC(t)?function(){return t.apply(this,arguments)&&r.apply(this,arguments)}:tC(Wne)(t,r)});function MU(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function DU(e,t,r){if(r||(r=new rie),tie(e))return e;var n=function(s){var a=r.get(e);if(a)return a;r.set(e,s);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(s[o]=e[o]);return s};switch(wi(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return MU(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}function tie(e){var t=typeof e;return e==null||t!="object"&&t!="function"}var rie=(function(){function e(){this.map={},this.length=0}return e.prototype.set=function(t,r){var n=this.hash(t),i=this.map[n];i||(this.map[n]=i=[]),i.push([t,r]),this.length+=1},e.prototype.hash=function(t){var r=[];for(var n in t)r.push(Object.prototype.toString.call(t[n]));return r.join()},e.prototype.get=function(t){if(this.length<=180){for(var r in this.map)for(var a=this.map[r],n=0;n<a.length;n+=1){var i=a[n];if(i[0]===t)return i[1]}return}var s=this.hash(t),a=this.map[s];if(a)for(var n=0;n<a.length;n+=1){var i=a[n];if(i[0]===t)return i[1]}},e})(),nie=Lt(function(t){return function(r,n){return t(r,n)?-1:t(n,r)?1:0}}),iie=Lt(function(t){return!t}),vl=tC(iie);function sie(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function rC(e,t){return function(){var r=arguments.length;if(r===0)return t();var n=arguments[r-1];return Ja(n)||typeof n[e]!="function"?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var bl=rn(rC("slice",function(t,r,n){return Array.prototype.slice.call(n,t,r)})),aie=Lt(rC("tail",bl(1,1/0)));function Kr(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return yh(arguments[0].length,lu(sie,arguments[0],aie(arguments)))}var oie=Lt(function(e){return _h(0,e)});function uie(e){return e}var qU=Lt(uie),cie=(function(){function e(t,r,n,i){this.valueFn=t,this.valueAcc=r,this.keyFn=n,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=qn.init,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(ti(r,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[r]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,DU(this.valueAcc)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),t},e})();function lie(e,t,r){return function(n){return new cie(e,t,r,n)}}var fie=H2(4,[],Qs([],lie,function(t,r,n,i){var s=NU(function(a,o){var u=n(o),c=t(ti(u,a)?a[u]:DU(r),o);return c&&c["@@transducer/reduced"]?vh(a):(a[u]=c,a)});return Z2(s,{},i)})),Lo=ct(function(t,r){return r==null||r!==r?t:r}),pie=(function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!X3(t,!0,this)},e.prototype.has=function(t){return X3(t,!1,this)},e})();function X3(e,t,r){var n=typeof e,i,s;switch(n){case"string":case"number":return e===0&&1/e===-1/0?r._items["-0"]?!0:(t&&(r._items["-0"]=!0),!1):r._nativeSet!==null?t?(i=r._nativeSet.size,r._nativeSet.add(e),s=r._nativeSet.size,s===i):r._nativeSet.has(e):n in r._items?e in r._items[n]?!0:(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var a=e?1:0;return r._items[n][a]?!0:(t&&(r._items[n][a]=!0),!1)}else return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?t?(i=r._nativeSet.size,r._nativeSet.add(e),s=r._nativeSet.size,s===i):r._nativeSet.has(e):n in r._items?qp(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return r._items[n]?!0:(t&&(r._items[n]=!0),!1);case"object":if(e===null)return r._items.null?!0:(t&&(r._items.null=!0),!1);default:return n=Object.prototype.toString.call(e),n in r._items?qp(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}var die=ct(function(t,r){for(var n=[],i=0,s=t.length,a=r.length,o=new pie,u=0;u<a;u+=1)o.add(r[u]);for(;i<s;)o.add(t[i])&&(n[n.length]=t[i]),i+=1;return n}),hie=rn(function(t,r,n){var i=Array.prototype.slice.call(n,0);return i.splice(t,r),i});function mie(e,t){if(t==null)return t;if(cu(e)&&Ja(t))return hie(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}function gie(e,t){if(cu(e)&&Ja(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}var Nn=ct(function e(t,r){if(r==null)return r;switch(t.length){case 0:return r;case 1:return mie(t[0],r);default:var n=t[0],i=Array.prototype.slice.call(t,1);return r[n]==null?gie(n,r):Qne(n,e(i,r[n]),r)}}),yie=(function(){function e(t,r){this.xf=r,this.n=t,this.i=0}return e.prototype["@@transducer/init"]=qn.init,e.prototype["@@transducer/result"]=qn.result,e.prototype["@@transducer/step"]=function(t,r){this.i+=1;var n=this.n===0?t:this.xf["@@transducer/step"](t,r);return this.n>=0&&this.i>=this.n?vh(n):n},e})();function vie(e){return function(t){return new yie(e,t)}}var bie=ct(Qs(["take"],vie,function(t,r){return bl(0,t<0?1/0:t,r)}));function _ie(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return bl(0,r+1,t)}var Eie=(function(){function e(t,r){this.f=t,this.retained=[],this.xf=r}return e.prototype["@@transducer/init"]=qn.init,e.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.retain(t,r):this.flush(t,r)},e.prototype.flush=function(t,r){return t=Z2(this.xf,t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,r)},e.prototype.retain=function(t,r){return this.retained.push(r),t},e})();function Sie(e){return function(t){return new Eie(e,t)}}var wie=ct(Qs([],Sie,_ie)),Eh=Lt(function(e){return _h(-1,e)}),xie=(function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=qn.init,e.prototype["@@transducer/result"]=qn.result,e.prototype["@@transducer/step"]=function(t,r){if(this.f){if(this.f(r))return t;this.f=null}return this.xf["@@transducer/step"](t,r)},e})();function Aie(e){return function(t){return new xie(e,t)}}var Oie=ct(Qs(["dropWhile"],Aie,function(t,r){for(var n=0,i=r.length;n<i&&t(r[n]);)n+=1;return bl(n,1/0,r)})),Cie=ct(function(t,r){return t||r}),Rie=ct(function(t,r){return eC(t)?function(){return t.apply(this,arguments)||r.apply(this,arguments)}:tC(Cie)(t,r)});function Iie(e){var t=Object.prototype.toString.call(e);return t==="[object Uint8ClampedArray]"||t==="[object Int8Array]"||t==="[object Uint8Array]"||t==="[object Int16Array]"||t==="[object Uint16Array]"||t==="[object Int32Array]"||t==="[object Uint32Array]"||t==="[object Float32Array]"||t==="[object Float64Array]"||t==="[object BigInt64Array]"||t==="[object BigUint64Array]"}var Tie=Lt(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():Ja(t)?[]:X2(t)?"":$p(t)?{}:CU(t)?(function(){return arguments})():Iie(t)?t.constructor.from(""):void 0}),jie=Lt(function(t){return xr(t.length,function(r,n){var i=Array.prototype.slice.call(arguments,0);return i[0]=n,i[1]=r,t.apply(this,i)})}),Pie=ct(rC("groupBy",fie(function(e,t){return e.push(t),e},[]))),kie=ct(function(t,r){if(t.length===0||Fp(r))return!1;for(var n=r,i=0;i<t.length;)if(!Fp(n)&&ti(t[i],n))n=n[t[i]],i+=1;else return!1;return!0}),sc=ct(function(t,r){return kie([t],r)}),ta=function(e,t){switch(arguments.length){case 0:return ta;case 1:return(function(){return function r(n){switch(arguments.length){case 0:return r;default:return ic(e,n)}}})();default:return ic(e,t)}},nC=rn(function(t,r,n){return xr(Math.max(t.length,r.length,n.length),function(){return t.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})}),Nie=ct(qp),Mie=bl(0,-1),iC=ct(function(t,r){return xr(t+1,function(){var n=arguments[t];if(n!=null&&eC(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Bo(n)+' does not have a method named "'+r+'"')})}),_l=Lt(function(t){return t!=null&&ea(t,Tie(t))}),$U=Lt(function(t){return!_l(t)}),FU=iC(1,"join");function Z3(e){return Object.prototype.toString.call(e)==="[object Number]"}var Die=ct(function(t,r){return function(n){return function(i){return bh(function(s){return r(s,i)},n(t(i)))}}});function sC(e,t){for(var r=t,n=0;n<e.length;n+=1){if(r==null)return;var i=e[n];cu(i)?r=_h(i,r):r=r[i]}return r}var qie=ct(function(t,r){return ml(function(n,i){return n[i]=t(r[i],i,r),n},{},ja(r))}),$ie=rn(function(t,r,n){var i={},s;r=r||{},n=n||{};for(s in r)ti(s,r)&&(i[s]=ti(s,n)?t(s,r[s],n[s]):r[s]);for(s in n)ti(s,n)&&!ti(s,i)&&(i[s]=n[s]);return i}),Fie=rn(function e(t,r,n){return $ie(function(i,s,a){return $p(s)&&$p(a)?e(t,s,a):t(i,s,a)},r,n)}),Sh=ct(function(t,r){return Fie(function(n,i,s){return s},t,r)}),Bie=ct(function(t,r){return G2(RU(t),r)}),BU=function(e){return{value:e,map:function(t){return BU(t(e))}}},Lie=rn(function(t,r,n){return t(function(i){return BU(r(i))})(n).value}),Nr=ct(sC),LU=rn(function(t,r,n){return Lo(t,sC(r,n))}),wh=rn(function(t,r,n){return t(sC(r,n))}),UU=ct(function(t,r){for(var n={},i=0;i<t.length;)t[i]in r&&(n[t[i]]=r[t[i]]),i+=1;return n}),VU=rn(function(t,r,n){return ea(t,gl(r,n))}),Bp=rn(function(t,r,n){return Lo(t,gl(r,n))}),Uie=rn(function(t,r,n){return t(gl(r,n))}),Vie=ct(function(t,r){if(!(Z3(t)&&Z3(r)))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(t<r?r-t:0),i=t<0?r+Math.abs(t):r-t,s=0;s<i;)n[s]=s+t,s+=1;return n}),zie=Lt(vh),zU=rn(function(t,r,n){return n.replace(t,r)}),Wie=ct(function(t,r){return Array.prototype.slice.call(r,0).sort(t)}),WU=iC(1,"split"),Jie=ct(function(e,t){return ea(bie(e.length,t),e)});function Kie(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Hie=ct(function(t,r){if(!Kie(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Bo(t));return MU(t).test(r)}),Gie=(function(){function e(t,r){this.xf=r,this.pred=t,this.items=[]}return e.prototype["@@transducer/init"]=qn.init,e.prototype["@@transducer/result"]=qn.result,e.prototype["@@transducer/step"]=function(t,r){return Dp(this.pred,r,this.items)?t:(this.items.push(r),this.xf["@@transducer/step"](t,r))},e})();function Yie(e){return function(t){return new Gie(e,t)}}var JU=ct(Qs([],Yie,function(e,t){for(var r=0,n=t.length,i=[],s;r<n;)s=t[r],Dp(e,s,i)||(i[i.length]=s),r+=1;return i})),Xie=rn(function(t,r,n){return t(n)?r(n):n}),xh=it(void 0),ra=ea(xh()),KU=vl(ra),HU=ea(null),GU=vl(HU),Zie=vl(Fp),Qie=xr(1,Kr(wi,ta("GeneratorFunction"))),ese=xr(1,Kr(wi,ta("AsyncFunction"))),Ka=Jne([Kr(wi,ta("Function")),Qie,ese]),YU=xr(1,Ka(Array.isArray)?Array.isArray:Kr(wi,ta("Array"))),tse=yl(YU,_l),rse=yl(YU,$U),Ha=xr(1,Kr(wi,ta("String"))),nse=ea("");function Rx(e){"@babel/helpers - typeof";return Rx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rx(e)}var XU=function(t){return Rx(t)==="object"},ise=xr(1,yl(GU,Rie(XU,Ka))),sse=vl(ise),Ah=zne([Ha,sse,$U]),ase=vl(Ka),ose=xr(1,yl(GU,XU)),use=Kr(wi,ta("Object")),cse=Kr(Bo,ea(Bo(Object))),lse=wh(yl(Ka,cse),["constructor"]),xi=xr(1,function(e){if(!ose(e)||!use(e))return!1;var t=Object.getPrototypeOf(e);return HU(t)?!0:lse(t)}),fse=xr(1,Kr(wi,ta("RegExp")));function pse(e){return gse(e)||mse(e)||hse(e)||dse()}function dse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
103
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hse(e,t){if(e){if(typeof e=="string")return Ix(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ix(e,t):void 0}}function mse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gse(e){if(Array.isArray(e))return Ix(e)}function Ix(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var yse=nie(function(e,t){return e.length>t.length}),vse=Kr(Wie(yse),oie,gl("length")),bse=Q2(function(e,t,r){var n=r.apply(void 0,pse(e));return Zie(n)?zie(n):t}),_se=function(t){var r=vse(t);return xr(r,function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return lu(bse(i),void 0,t)})},ZU=nC(rse,_se,xh),Oh=jie(Nie),Ec=xr(3,function(e,t,r){var n=Nr(e,r),i=Nr(Mie(e),r);if(!ase(n)&&!tse(e)){var s=kU(n,i);return Xne(s,t)}}),Ese=Xie(Ha,zU(/[.*+?^${}()|[\]\\-]/g,"\\$&")),Sse=function(t,r,n){if(n==null||t==null||r==null)throw TypeError("Input values must not be `null` or `undefined`")},Q3=function(t,r){if(typeof t!="string"&&!(t instanceof String))throw TypeError("`".concat(r,"` must be a string"))},wse=function(t){if(typeof t!="string"&&!(t instanceof String)&&!(t instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},xse=function(t,r,n){Sse(t,r,n),Q3(n,"str"),Q3(r,"replaceValue"),wse(t);var i=new RegExp(fse(t)?t:Ese(t),"g");return zU(i,r,n)},Ase=xr(3,xse),Ose=iC(2,"replaceAll"),Cse=Ka(String.prototype.replaceAll)?Ose:Ase,Rse=Q2(function(e,t){return Kr(WU(""),wie(Oh(e)),FU(""))(t)}),QU=Q2(function(e,t){return Kr(WU(""),Oie(Oh(e)),FU(""))(t)}),I1={exports:{}},eF;function Ise(){if(eF)return I1.exports;eF=1;var e=I1.exports={},t,r;function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=n}catch{t=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=i}catch{r=i}})();function s(y){if(t===setTimeout)return setTimeout(y,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(y,0);try{return t(y,0)}catch{try{return t.call(null,y,0)}catch{return t.call(this,y,0)}}}function a(y){if(r===clearTimeout)return clearTimeout(y);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(y);try{return r(y)}catch{try{return r.call(null,y)}catch{return r.call(this,y)}}}var o=[],u=!1,c,l=-1;function f(){!u||!c||(u=!1,c.length?o=c.concat(o):l=-1,o.length&&h())}function h(){if(!u){var y=s(f);u=!0;for(var v=o.length;v;){for(c=o,o=[];++l<v;)c&&c[l].run();l=-1,v=o.length}c=null,u=!1,a(y)}}e.nextTick=function(y){var v=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)v[_-1]=arguments[_];o.push(new d(y,v)),o.length===1&&!u&&s(h)};function d(y,v){this.fun=y,this.array=v}d.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function g(){}return e.on=g,e.addListener=g,e.once=g,e.off=g,e.removeListener=g,e.removeAllListeners=g,e.emit=g,e.prependListener=g,e.prependOnceListener=g,e.listeners=function(y){return[]},e.binding=function(y){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(y){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},I1.exports}var Tse=Ise();const Lp=Ve.getDefaultExportFromCjs(Tse),aC=()=>wh(Hie(/^win/),["platform"],Lp),oC=e=>{try{const t=new URL(e);return Rse(":",t.protocol)}catch{return}};Kr(oC,KU);const jse=e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""},e5=e=>{if(Lp.browser)return!1;const t=oC(e);return ra(t)||t==="file"||/^[a-zA-Z]$/.test(t)},uC=e=>{const t=oC(e);return t==="http"||t==="https"},t5=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Bp(!1,"keepFileProtocol",t),i=Bp(aC,"isWindows",t);let s=decodeURI(e);for(let o=0;o<r.length;o+=2)s=s.replace(r[o],r[o+1]);let a=s.substring(0,7).toLowerCase()==="file://";return a&&(s=s[7]==="/"?s.substring(8):s.substring(7),i()&&s[1]==="/"&&(s=`${s[0]}:${s.substring(1)}`),n?s=`file:///${s}`:(a=!1,s=i()?s:`/${s}`)),i()&&!a&&(s=Cse("/","\\",s),s.substring(1,3)===":\\"&&(s=s[0].toUpperCase()+s.substring(1))),s},Pse=e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;aC()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let n=0;n<t.length;n+=2)r=r.replace(t[n],t[n+1]);return r},r5=e=>{const t=e.indexOf("#");return t!==-1?e.substring(t):"#"},zt=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Tx=()=>{if(Lp.browser)return zt(globalThis.location.href);const e=Lp.cwd(),t=Eh(e);return["/","\\"].includes(t)?e:e+(aC()?"\\":"/")},Lr=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if(r.protocol==="resolve:"){const{pathname:n,search:i,hash:s}=r;return n+i+s}return r.toString()},Ch=e=>{if(e5(e))return Pse(t5(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},$i=e=>e5(e)?t5(e):decodeURI(e);let Sc=class{constructor({uri:t,mediaType:r="text/plain",data:n,parseResult:i}){Y(this,"uri");Y(this,"mediaType");Y(this,"data");Y(this,"parseResult");this.uri=t,this.mediaType=r,this.data=n,this.parseResult=i}get extension(){return Ha(this.uri)?jse(this.uri):""}toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(wi(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}};class Uo{constructor({refs:t=[],circular:r=!1}={}){Y(this,"rootRef");Y(this,"refs");Y(this,"circular");this.refs=[],this.circular=r,t.forEach(this.add.bind(this))}get size(){return this.refs.length}add(t){return this.has(t)||(this.refs.push(t),this.rootRef=this.rootRef===void 0?t:this.rootRef,t.refSet=this),this}merge(t){for(const r of t.values())this.add(r);return this}has(t){const r=Ha(t)?t:t.uri;return KU(this.find(n=>n.uri===r))}find(t){return this.refs.find(t)}*values(){yield*this.refs}clean(){this.refs.forEach(t=>{t.refSet=void 0}),this.rootRef=void 0,this.refs.length=0}}const n5={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:qU,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},kse=Die(Nr(["resolve","baseURI"]),$e(["resolve","baseURI"])),Nse=e=>nse(e)?Tx():e,i5=(e,t)=>{const r=Sh(e,t);return Lie(kse,Nse,r)};class Mse extends lr{constructor(r,n){super(r,{cause:n.cause});Y(this,"plugin");this.plugin=n.plugin}}const cC=async(e,t,r)=>{const n=await Promise.all(r.map(Ec([e],t)));return r.filter((i,s)=>n[s])},lC=async(e,t,r)=>{let n;for(const i of r)try{const s=await i[e].call(i,...t);return{plugin:i,result:s}}catch(s){n=new Mse("Error while running plugin",{cause:s,plugin:i})}return Promise.reject(n)};class jx extends lr{}class fC extends lr{}class s5 extends fC{}class a5 extends s5{}const Dse=async(e,t)=>{const r=t.resolve.resolvers.map(i=>{const s=Object.create(i);return Object.assign(s,t.resolve.resolverOpts)}),n=await cC("canRead",[e,t],r);if(_l(n))throw new a5(e.uri);try{const{result:i}=await lC("read",[e],n);return i}catch(i){throw new fC(`Error while reading file "${e.uri}"`,{cause:i})}},qse=async(e,t)=>{const r=t.parse.parsers.map(i=>{const s=Object.create(i);return Object.assign(s,t.parse.parserOpts)}),n=await cC("canParse",[e,t],r);if(_l(n))throw new a5(e.uri);try{const{plugin:i,result:s}=await lC("parse",[e,t],n);return!i.allowEmpty&&s.isEmpty?Promise.reject(new jx(`Error while parsing file "${e.uri}". File is empty.`)):s}catch(i){throw new jx(`Error while parsing file "${e.uri}"`,{cause:i})}},$se=async(e,t)=>{const r=new Sc({uri:Ch(zt(e)),mediaType:t.parse.mediaType}),n=await Dse(r,t);return qse(new Sc({...r,data:n}),t)};var br={},T1,tF;function Fse(){if(tF)return T1;tF=1;function e(t){return t===null}return T1=e,T1}var j1,rF;function Bse(){if(rF)return j1;rF=1;var e=Gi(),t=dn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return j1=n,j1}var P1,nF;function Lse(){if(nF)return P1;nF=1;var e=Gi(),t=dn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return P1=n,P1}var k1,iF;function pC(){if(iF)return k1;iF=1;class e{constructor(r){this.namespace=r||new this.Namespace}serialise(r){if(!(r instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${r}\` is not an Element instance`);const n={element:r.element};r._meta&&r._meta.length>0&&(n.meta=this.serialiseObject(r.meta)),r._attributes&&r._attributes.length>0&&(n.attributes=this.serialiseObject(r.attributes));const i=this.serialiseContent(r.content);return i!==void 0&&(n.content=i),n}deserialise(r){if(!r.element)throw new Error("Given value is not an object containing an element name");const n=this.namespace.getElementClass(r.element),i=new n;i.element!==r.element&&(i.element=r.element),r.meta&&this.deserialiseObject(r.meta,i.meta),r.attributes&&this.deserialiseObject(r.attributes,i.attributes);const s=this.deserialiseContent(r.content);return(s!==void 0||i.content===null)&&(i.content=s),i}serialiseContent(r){if(r instanceof this.namespace.elements.Element)return this.serialise(r);if(r instanceof this.namespace.KeyValuePair){const n={key:this.serialise(r.key)};return r.value&&(n.value=this.serialise(r.value)),n}return r&&r.map?r.length===0?void 0:r.map(this.serialise,this):r}deserialiseContent(r){if(r){if(r.element)return this.deserialise(r);if(r.key){const n=new this.namespace.KeyValuePair(this.deserialise(r.key));return r.value&&(n.value=this.deserialise(r.value)),n}if(r.map)return r.map(this.deserialise,this)}return r}serialiseObject(r){const n={};if(r.forEach((i,s)=>{i&&(n[s.toValue()]=this.serialise(i))}),Object.keys(n).length!==0)return n}deserialiseObject(r,n){Object.keys(r).forEach(i=>{n.set(i,this.deserialise(r[i]))})}}return k1=e,k1}var N1,sF;function Use(){if(sF)return N1;sF=1;var e=MO();function t(r,n){return e(r,n)}return N1=t,N1}var M1,aF;function Rh(){if(aF)return M1;aF=1;class e{constructor(r,n){this.key=r,this.value=n}clone(){const r=new e;return this.key&&(r.key=this.key.clone()),this.value&&(r.value=this.value.clone()),r}}return M1=e,M1}var D1,oF;function Ih(){if(oF)return D1;oF=1;var e="Expected a function";function t(r){if(typeof r!="function")throw new TypeError(e);return function(){var n=arguments;switch(n.length){case 0:return!r.call(this);case 1:return!r.call(this,n[0]);case 2:return!r.call(this,n[0],n[1]);case 3:return!r.call(this,n[0],n[1],n[2])}return!r.apply(this,n)}}return D1=t,D1}var q1,uF;function Th(){if(uF)return q1;uF=1;const e=Ih();function t(n){return typeof n=="string"?i=>i.element===n:n.constructor&&n.extend?i=>i instanceof n:n}class r{constructor(i){this.elements=i||[]}toValue(){return this.elements.map(i=>i.toValue())}map(i,s){return this.elements.map(i,s)}flatMap(i,s){return this.map(i,s).reduce((a,o)=>a.concat(o),[])}compactMap(i,s){const a=[];return this.forEach(o=>{const u=i.bind(s)(o);u&&a.push(u)}),a}filter(i,s){return i=t(i),new r(this.elements.filter(i,s))}reject(i,s){return i=t(i),new r(this.elements.filter(e(i),s))}find(i,s){return i=t(i),this.elements.find(i,s)}forEach(i,s){this.elements.forEach(i,s)}reduce(i,s){return this.elements.reduce(i,s)}includes(i){return this.elements.some(s=>s.equals(i))}shift(){return this.elements.shift()}unshift(i){this.elements.unshift(this.refract(i))}push(i){return this.elements.push(this.refract(i)),this}add(i){this.push(i)}get(i){return this.elements[i]}getValue(i){const s=this.elements[i];if(s)return s.toValue()}get length(){return this.elements.length}get isEmpty(){return this.elements.length===0}get first(){return this.elements[0]}}return typeof Symbol<"u"&&(r.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),q1=r,q1}var $1,cF;function ws(){if(cF)return $1;cF=1;const e=Use(),t=Rh(),r=Th();class n{constructor(s,a,o){a&&(this.meta=a),o&&(this.attributes=o),this.content=s}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach(s=>{s.parent=this,s.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const s=new this.constructor;return s.element=this.element,this.meta.length&&(s._meta=this.meta.clone()),this.attributes.length&&(s._attributes=this.attributes.clone()),this.content?this.content.clone?s.content=this.content.clone():Array.isArray(this.content)?s.content=this.content.map(a=>a.clone()):s.content=this.content:s.content=this.content,s}toValue(){return this.content instanceof n?this.content.toValue():this.content instanceof t?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map(s=>s.toValue(),this):this.content}toRef(s){if(this.id.toValue()==="")throw Error("Cannot create reference to an element that does not contain an ID");const a=new this.RefElement(this.id.toValue());return s&&(a.path=s),a}findRecursive(...s){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const a=s.pop();let o=new r;const u=(l,f)=>(l.push(f),l),c=(l,f)=>{f.element===a&&l.push(f);const h=f.findRecursive(a);return h&&h.reduce(u,l),f.content instanceof t&&(f.content.key&&c(l,f.content.key),f.content.value&&c(l,f.content.value)),l};return this.content&&(this.content.element&&c(o,this.content),Array.isArray(this.content)&&this.content.reduce(c,o)),s.isEmpty||(o=o.filter(l=>{let f=l.parents.map(h=>h.element);for(const h in s){const d=s[h],g=f.indexOf(d);if(g!==-1)f=f.splice(0,g);else return!1}return!0})),o}set(s){return this.content=s,this}equals(s){return e(this.toValue(),s)}getMetaProperty(s,a){if(!this.meta.hasKey(s)){if(this.isFrozen){const o=this.refract(a);return o.freeze(),o}this.meta.set(s,a)}return this.meta.get(s)}setMetaProperty(s,a){this.meta.set(s,a)}get element(){return this._storedElement||"element"}set element(s){this._storedElement=s}get content(){return this._content}set content(s){if(s instanceof n)this._content=s;else if(s instanceof r)this.content=s.elements;else if(typeof s=="string"||typeof s=="number"||typeof s=="boolean"||s==="null"||s==null)this._content=s;else if(s instanceof t)this._content=s;else if(Array.isArray(s))this._content=s.map(this.refract);else if(typeof s=="object")this._content=Object.keys(s).map(a=>new this.MemberElement(a,s[a]));else throw new Error("Cannot set content to given value")}get meta(){if(!this._meta){if(this.isFrozen){const s=new this.ObjectElement;return s.freeze(),s}this._meta=new this.ObjectElement}return this._meta}set meta(s){s instanceof this.ObjectElement?this._meta=s:this.meta.set(s||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const s=new this.ObjectElement;return s.freeze(),s}this._attributes=new this.ObjectElement}return this._attributes}set attributes(s){s instanceof this.ObjectElement?this._attributes=s:this.attributes.set(s||{})}get id(){return this.getMetaProperty("id","")}set id(s){this.setMetaProperty("id",s)}get classes(){return this.getMetaProperty("classes",[])}set classes(s){this.setMetaProperty("classes",s)}get title(){return this.getMetaProperty("title","")}set title(s){this.setMetaProperty("title",s)}get description(){return this.getMetaProperty("description","")}set description(s){this.setMetaProperty("description",s)}get links(){return this.getMetaProperty("links",[])}set links(s){this.setMetaProperty("links",s)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:s}=this;const a=new r;for(;s;)a.push(s),s=s.parent;return a}get children(){if(Array.isArray(this.content))return new r(this.content);if(this.content instanceof t){const s=new r([this.content.key]);return this.content.value&&s.push(this.content.value),s}return this.content instanceof n?new r([this.content]):new r}get recursiveChildren(){const s=new r;return this.children.forEach(a=>{s.push(a),a.recursiveChildren.forEach(o=>{s.push(o)})}),s}}return $1=n,$1}var F1,lF;function Vse(){if(lF)return F1;lF=1;const e=ws();class t extends e{constructor(n,i,s){super(n||null,i,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}return F1=t,F1}var B1,fF;function zse(){if(fF)return B1;fF=1;const e=ws();return B1=class extends e{constructor(r,n,i){super(r,n,i),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},B1}var L1,pF;function Wse(){if(pF)return L1;pF=1;const e=ws();return L1=class extends e{constructor(r,n,i){super(r,n,i),this.element="number"}primitive(){return"number"}},L1}var U1,dF;function Jse(){if(dF)return U1;dF=1;const e=ws();return U1=class extends e{constructor(r,n,i){super(r,n,i),this.element="boolean"}primitive(){return"boolean"}},U1}var V1,hF;function o5(){if(hF)return V1;hF=1;const e=Ih(),t=ws(),r=Th();class n extends t{constructor(s,a,o){super(s||[],a,o),this.element="array"}primitive(){return"array"}get(s){return this.content[s]}getValue(s){const a=this.get(s);if(a)return a.toValue()}getIndex(s){return this.content[s]}set(s,a){return this.content[s]=this.refract(a),this}remove(s){const a=this.content.splice(s,1);return a.length?a[0]:null}map(s,a){return this.content.map(s,a)}flatMap(s,a){return this.map(s,a).reduce((o,u)=>o.concat(u),[])}compactMap(s,a){const o=[];return this.forEach(u=>{const c=s.bind(a)(u);c&&o.push(c)}),o}filter(s,a){return new r(this.content.filter(s,a))}reject(s,a){return this.filter(e(s),a)}reduce(s,a){let o,u;a!==void 0?(o=0,u=this.refract(a)):(o=1,u=this.primitive()==="object"?this.first.value:this.first);for(let c=o;c<this.length;c+=1){const l=this.content[c];this.primitive()==="object"?u=this.refract(s(u,l.value,l.key,l,this)):u=this.refract(s(u,l,c,this))}return u}forEach(s,a){this.content.forEach((o,u)=>{s.bind(a)(o,this.refract(u))})}shift(){return this.content.shift()}unshift(s){this.content.unshift(this.refract(s))}push(s){return this.content.push(this.refract(s)),this}add(s){this.push(s)}findElements(s,a){const o=a||{},u=!!o.recursive,c=o.results===void 0?[]:o.results;return this.forEach((l,f,h)=>{u&&l.findElements!==void 0&&l.findElements(s,{results:c,recursive:u}),s(l,f,h)&&c.push(l)}),c}find(s){return new r(this.findElements(s,{recursive:!0}))}findByElement(s){return this.find(a=>a.element===s)}findByClass(s){return this.find(a=>a.classes.includes(s))}getById(s){return this.find(a=>a.id.toValue()===s).first}includes(s){return this.content.some(a=>a.equals(s))}contains(s){return this.includes(s)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(s){return new this.constructor(this.content.concat(s.content))}"fantasy-land/concat"(s){return this.concat(s)}"fantasy-land/map"(s){return new this.constructor(this.map(s))}"fantasy-land/chain"(s){return this.map(a=>s(a),this).reduce((a,o)=>a.concat(o),this.empty())}"fantasy-land/filter"(s){return new this.constructor(this.content.filter(s))}"fantasy-land/reduce"(s,a){return this.content.reduce(s,a)}get length(){return this.content.length}get isEmpty(){return this.content.length===0}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}return n.empty=function(){return new this},n["fantasy-land/empty"]=n.empty,typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),V1=n,V1}var z1,mF;function u5(){if(mF)return z1;mF=1;const e=Rh(),t=ws();return z1=class extends t{constructor(n,i,s,a){super(new e,s,a),this.element="member",this.key=n,this.value=i}get key(){return this.content.key}set key(n){this.content.key=this.refract(n)}get value(){return this.content.value}set value(n){this.content.value=this.refract(n)}},z1}var W1,gF;function c5(){if(gF)return W1;gF=1;const e=Ih(),t=Th();class r extends t{map(i,s){return this.elements.map(a=>i.bind(s)(a.value,a.key,a))}filter(i,s){return new r(this.elements.filter(a=>i.bind(s)(a.value,a.key,a)))}reject(i,s){return this.filter(e(i.bind(s)))}forEach(i,s){return this.elements.forEach((a,o)=>{i.bind(s)(a.value,a.key,a,o)})}keys(){return this.map((i,s)=>s.toValue())}values(){return this.map(i=>i.toValue())}}return W1=r,W1}var J1,yF;function Kse(){if(yF)return J1;yF=1;const e=Ih(),t=pn(),r=o5(),n=u5(),i=c5();class s extends r{constructor(o,u,c){super(o||[],u,c),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce((o,u)=>(o[u.key.toValue()]=u.value?u.value.toValue():void 0,o),{})}get(o){const u=this.getMember(o);if(u)return u.value}getMember(o){if(o!==void 0)return this.content.find(u=>u.key.toValue()===o)}remove(o){let u=null;return this.content=this.content.filter(c=>c.key.toValue()===o?(u=c,!1):!0),u}getKey(o){const u=this.getMember(o);if(u)return u.key}set(o,u){if(t(o))return Object.keys(o).forEach(f=>{this.set(f,o[f])}),this;const c=o,l=this.getMember(c);return l?l.value=u:this.content.push(new n(c,u)),this}keys(){return this.content.map(o=>o.key.toValue())}values(){return this.content.map(o=>o.value.toValue())}hasKey(o){return this.content.some(u=>u.key.equals(o))}items(){return this.content.map(o=>[o.key.toValue(),o.value.toValue()])}map(o,u){return this.content.map(c=>o.bind(u)(c.value,c.key,c))}compactMap(o,u){const c=[];return this.forEach((l,f,h)=>{const d=o.bind(u)(l,f,h);d&&c.push(d)}),c}filter(o,u){return new i(this.content).filter(o,u)}reject(o,u){return this.filter(e(o),u)}forEach(o,u){return this.content.forEach(c=>o.bind(u)(c.value,c.key,c))}}return J1=s,J1}var K1,vF;function Hse(){if(vF)return K1;vF=1;const e=ws();return K1=class extends e{constructor(r,n,i){super(r||[],n,i),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(r){this.attributes.set("relation",r)}get href(){return this.attributes.get("href")}set href(r){this.attributes.set("href",r)}},K1}var H1,bF;function Gse(){if(bF)return H1;bF=1;const e=ws();return H1=class extends e{constructor(r,n,i){super(r||[],n,i),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(r){this.attributes.set("path",r)}},H1}var G1,_F;function l5(){if(_F)return G1;_F=1;const e=ws(),t=Vse(),r=zse(),n=Wse(),i=Jse(),s=o5(),a=u5(),o=Kse(),u=Hse(),c=Gse(),l=Th(),f=c5(),h=Rh();function d(g){return g instanceof e?g:typeof g=="string"?new r(g):typeof g=="number"?new n(g):typeof g=="boolean"?new i(g):g===null?new t:Array.isArray(g)?new s(g.map(d)):typeof g=="object"?new o(g):g}return e.prototype.ObjectElement=o,e.prototype.RefElement=c,e.prototype.MemberElement=a,e.prototype.refract=d,l.prototype.refract=d,G1={Element:e,NullElement:t,StringElement:r,NumberElement:n,BooleanElement:i,ArrayElement:s,MemberElement:a,ObjectElement:o,LinkElement:u,RefElement:c,refract:d,ArraySlice:l,ObjectSlice:f,KeyValuePair:h},G1}var Y1,EF;function Yse(){if(EF)return Y1;EF=1;const e=Fse(),t=V4(),r=Bse(),n=Lse(),i=pn(),s=pC(),a=l5();class o{constructor(c){this.elementMap={},this.elementDetection=[],this.Element=a.Element,this.KeyValuePair=a.KeyValuePair,(!c||!c.noDefault)&&this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(c){return c.namespace&&c.namespace({base:this}),c.load&&c.load({base:this}),this}useDefault(){return this.register("null",a.NullElement).register("string",a.StringElement).register("number",a.NumberElement).register("boolean",a.BooleanElement).register("array",a.ArrayElement).register("object",a.ObjectElement).register("member",a.MemberElement).register("ref",a.RefElement).register("link",a.LinkElement),this.detect(e,a.NullElement,!1).detect(t,a.StringElement,!1).detect(r,a.NumberElement,!1).detect(n,a.BooleanElement,!1).detect(Array.isArray,a.ArrayElement,!1).detect(i,a.ObjectElement,!1),this}register(c,l){return this._elements=void 0,this.elementMap[c]=l,this}unregister(c){return this._elements=void 0,delete this.elementMap[c],this}detect(c,l,f){return(f===void 0?!0:f)?this.elementDetection.unshift([c,l]):this.elementDetection.push([c,l]),this}toElement(c){if(c instanceof this.Element)return c;let l;for(let f=0;f<this.elementDetection.length;f+=1){const h=this.elementDetection[f][0],d=this.elementDetection[f][1];if(h(c)){l=new d(c);break}}return l}getElementClass(c){const l=this.elementMap[c];return l===void 0?this.Element:l}fromRefract(c){return this.serialiser.deserialise(c)}toRefract(c){return this.serialiser.serialise(c)}get elements(){return this._elements===void 0&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(c=>{const l=c[0].toUpperCase()+c.substr(1);this._elements[l]=this.elementMap[c]})),this._elements}get serialiser(){return new s(this)}}return s.prototype.Namespace=o,Y1=o,Y1}var X1,SF;function Xse(){if(SF)return X1;SF=1;const e=pC();return X1=class extends e{serialise(r){if(!(r instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${r}\` is not an Element instance`);let n;r._attributes&&r.attributes.get("variable")&&(n=r.attributes.get("variable"));const i={element:r.element};r._meta&&r._meta.length>0&&(i.meta=this.serialiseObject(r.meta));const s=r.element==="enum"||r.attributes.keys().indexOf("enumerations")!==-1;if(s){const a=this.enumSerialiseAttributes(r);a&&(i.attributes=a)}else if(r._attributes&&r._attributes.length>0){let{attributes:a}=r;a.get("metadata")&&(a=a.clone(),a.set("meta",a.get("metadata")),a.remove("metadata")),r.element==="member"&&n&&(a=a.clone(),a.remove("variable")),a.length>0&&(i.attributes=this.serialiseObject(a))}if(s)i.content=this.enumSerialiseContent(r,i);else if(this[`${r.element}SerialiseContent`])i.content=this[`${r.element}SerialiseContent`](r,i);else if(r.content!==void 0){let a;n&&r.content.key?(a=r.content.clone(),a.key.attributes.set("variable",n),a=this.serialiseContent(a)):a=this.serialiseContent(r.content),this.shouldSerialiseContent(r,a)&&(i.content=a)}else this.shouldSerialiseContent(r,r.content)&&r instanceof this.namespace.elements.Array&&(i.content=[]);return i}shouldSerialiseContent(r,n){return r.element==="parseResult"||r.element==="httpRequest"||r.element==="httpResponse"||r.element==="category"||r.element==="link"?!0:!(n===void 0||Array.isArray(n)&&n.length===0)}refSerialiseContent(r,n){return delete n.attributes,{href:r.toValue(),path:r.path.toValue()}}sourceMapSerialiseContent(r){return r.toValue()}dataStructureSerialiseContent(r){return[this.serialiseContent(r.content)]}enumSerialiseAttributes(r){const n=r.attributes.clone(),i=n.remove("enumerations")||new this.namespace.elements.Array([]),s=n.get("default");let a=n.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),n.set("default",new this.namespace.elements.Array([s.content]))),a.forEach(o=>{o.content&&o.content.element&&o.content.attributes.remove("typeAttributes")}),r.content&&i.length!==0&&a.unshift(r.content),a=a.map(o=>o instanceof this.namespace.elements.Array?[o]:new this.namespace.elements.Array([o.content])),a.length&&n.set("samples",a),n.length>0)return this.serialiseObject(n)}enumSerialiseContent(r){if(r._attributes){const n=r.attributes.get("enumerations");if(n&&n.length>0)return n.content.map(i=>{const s=i.clone();return s.attributes.remove("typeAttributes"),this.serialise(s)})}if(r.content){const n=r.content.clone();return n.attributes.remove("typeAttributes"),[this.serialise(n)]}return[]}deserialise(r){if(typeof r=="string")return new this.namespace.elements.String(r);if(typeof r=="number")return new this.namespace.elements.Number(r);if(typeof r=="boolean")return new this.namespace.elements.Boolean(r);if(r===null)return new this.namespace.elements.Null;if(Array.isArray(r))return new this.namespace.elements.Array(r.map(this.deserialise,this));const n=this.namespace.getElementClass(r.element),i=new n;i.element!==r.element&&(i.element=r.element),r.meta&&this.deserialiseObject(r.meta,i.meta),r.attributes&&this.deserialiseObject(r.attributes,i.attributes);const s=this.deserialiseContent(r.content);if((s!==void 0||i.content===null)&&(i.content=s),i.element==="enum"){i.content&&i.attributes.set("enumerations",i.content);let a=i.attributes.get("samples");if(i.attributes.remove("samples"),a){const u=a;a=new this.namespace.elements.Array,u.forEach(l=>{l.forEach(f=>{const h=new n(f);h.element=i.element,a.push(h)})});const c=a.shift();c?i.content=c.content:i.content=void 0,i.attributes.set("samples",a)}else i.content=void 0;let o=i.attributes.get("default");if(o&&o.length>0){o=o.get(0);const u=new n(o);u.element=i.element,i.attributes.set("default",u)}}else if(i.element==="dataStructure"&&Array.isArray(i.content))[i.content]=i.content;else if(i.element==="category"){const a=i.attributes.get("meta");a&&(i.attributes.set("metadata",a),i.attributes.remove("meta"))}else i.element==="member"&&i.key&&i.key._attributes&&i.key._attributes.getValue("variable")&&(i.attributes.set("variable",i.key.attributes.get("variable")),i.key.attributes.remove("variable"));return i}serialiseContent(r){if(r instanceof this.namespace.elements.Element)return this.serialise(r);if(r instanceof this.namespace.KeyValuePair){const n={key:this.serialise(r.key)};return r.value&&(n.value=this.serialise(r.value)),n}return r&&r.map?r.map(this.serialise,this):r}deserialiseContent(r){if(r){if(r.element)return this.deserialise(r);if(r.key){const n=new this.namespace.KeyValuePair(this.deserialise(r.key));return r.value&&(n.value=this.deserialise(r.value)),n}if(r.map)return r.map(this.deserialise,this)}return r}shouldRefract(r){return r._attributes&&r.attributes.keys().length||r._meta&&r.meta.keys().length?!0:r.element==="enum"?!1:r.element!==r.primitive()||r.element==="member"}convertKeyToRefract(r,n){return this.shouldRefract(n)?this.serialise(n):n.element==="enum"?this.serialiseEnum(n):n.element==="array"?n.map(i=>this.shouldRefract(i)||r==="default"?this.serialise(i):i.element==="array"||i.element==="object"||i.element==="enum"?i.children.map(s=>this.serialise(s)):i.toValue()):n.element==="object"?(n.content||[]).map(this.serialise,this):n.toValue()}serialiseEnum(r){return r.children.map(n=>this.serialise(n))}serialiseObject(r){const n={};return r.forEach((i,s)=>{if(i){const a=s.toValue();n[a]=this.convertKeyToRefract(a,i)}}),n}deserialiseObject(r,n){Object.keys(r).forEach(i=>{n.set(i,this.deserialise(r[i]))})}},X1}var wF;function Zse(){if(wF)return br;wF=1;const e=Yse(),t=l5();return br.Namespace=e,br.namespace=function(n){return new e(n)},br.KeyValuePair=Rh(),br.ArraySlice=t.ArraySlice,br.ObjectSlice=t.ObjectSlice,br.Element=t.Element,br.StringElement=t.StringElement,br.NumberElement=t.NumberElement,br.BooleanElement=t.BooleanElement,br.NullElement=t.NullElement,br.ArrayElement=t.ArrayElement,br.ObjectElement=t.ObjectElement,br.MemberElement=t.MemberElement,br.RefElement=t.RefElement,br.LinkElement=t.LinkElement,br.refract=t.refract,br.JSONSerialiser=pC(),br.JSON06Serialiser=Xse(),br}var ye=Zse();class Up extends ye.StringElement{constructor(t,r,n){super(t,r,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}class Vp extends ye.StringElement{constructor(t,r,n){super(t,r,n),this.element="comment"}}class Ai extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.element="parseResult"}get api(){return this.children.filter(t=>t.classes.contains("api")).first}get results(){return this.children.filter(t=>t.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(t=>t.element==="annotation")}get warnings(){return this.children.filter(t=>t.element==="annotation"&&t.classes.contains("warning"))}get errors(){return this.children.filter(t=>t.element==="annotation"&&t.classes.contains("error"))}get isEmpty(){return this.children.reject(t=>t.element==="annotation").isEmpty}replaceResult(t){const{result:r}=this;if(ra(r))return!1;const n=this.content.findIndex(i=>i===r);return n===-1?!1:(this.content[n]=t,!0)}}class zp extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.element="sourceMap"}get positionStart(){return this.children.filter(t=>t.classes.contains("position")).get(0)}get positionEnd(){return this.children.filter(t=>t.classes.contains("position")).get(1)}set position(t){if(typeof t>"u")return;const r=new ye.ArrayElement([t.start.row,t.start.column,t.start.char]),n=new ye.ArrayElement([t.end.row,t.end.column,t.end.char]);r.classes.push("position"),n.classes.push("position"),this.push(r).push(n)}}const Qse=(e,t)=>typeof t=="object"&&t!==null&&e in t&&typeof t[e]=="function",eae=e=>typeof e=="object"&&e!=null&&"_storedElement"in e&&typeof e._storedElement=="string"&&"_content"in e,tae=(e,t)=>typeof t=="object"&&t!==null&&"primitive"in t?typeof t.primitive=="function"&&t.primitive()===e:!1,rae=(e,t)=>typeof t=="object"&&t!==null&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ye.ArrayElement)&&t.classes.includes(e),Ps=(e,t)=>typeof t=="object"&&t!==null&&"element"in t&&t.element===e,Fe=e=>e({hasMethod:Qse,hasBasicElementProps:eae,primitiveEq:tae,isElementType:Ps,hasClass:rae}),yr=Fe(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ye.Element||e(r)&&t(void 0,r)),st=Fe(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ye.StringElement||e(r)&&t("string",r)),dC=Fe(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ye.NumberElement||e(r)&&t("number",r)),hC=Fe(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ye.NullElement||e(r)&&t("null",r)),El=Fe(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ye.BooleanElement||e(r)&&t("boolean",r)),Tt=Fe(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ye.ObjectElement||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n)),Wr=Fe(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ye.ArrayElement&&!(n instanceof ye.ObjectElement)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n)),Ii=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ye.MemberElement||e(n)&&t("member",n)&&r(void 0,n)),f5=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ye.LinkElement||e(n)&&t("link",n)&&r(void 0,n)),p5=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ye.RefElement||e(n)&&t("ref",n)&&r(void 0,n)),nae=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Up||e(n)&&t("annotation",n)&&r("array",n)),iae=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vp||e(n)&&t("comment",n)&&r("string",n)),d5=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ai||e(n)&&t("parseResult",n)&&r("array",n)),h5=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zp||e(n)&&t("sourceMap",n)&&r("array",n)),Ra=e=>Ps("object",e)||Ps("array",e)||Ps("boolean",e)||Ps("number",e)||Ps("string",e)||Ps("null",e)||Ps("member",e),Sl=e=>h5(e.meta.get("sourceMap")),sae=(e,t)=>{if(e.length===0)return!0;const r=t.attributes.get("symbols");return Wr(r)?G2(Oh(r.toValue()),e):!1},Vo=(e,t)=>e.length===0?!0:G2(Oh(t.classes.toValue()),e),aae=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:Sl,includesClasses:Vo,includesSymbols:sae,isAnnotationElement:nae,isArrayElement:Wr,isBooleanElement:El,isCommentElement:iae,isElement:yr,isLinkElement:f5,isMemberElement:Ii,isNullElement:hC,isNumberElement:dC,isObjectElement:Tt,isParseResultElement:d5,isPrimitiveElement:Ra,isRefElement:p5,isSourceMapElement:h5,isStringElement:st},Symbol.toStringTag,{value:"Module"}));class m5 extends ye.Namespace{constructor(){super(),this.register("annotation",Up),this.register("comment",Vp),this.register("parseResult",Ai),this.register("sourceMap",zp)}}const g5=new m5,xs=e=>{const t=new m5;return xi(e)&&t.use(e),t},y5=()=>({predicates:{...aae},namespace:g5}),jh=(e,t,r)=>{const n=e[t];if(n!=null){if(!r&&typeof n=="function")return n;const i=r?n.leave:n.enter;if(typeof i=="function")return i}else{const i=r?e.leave:e.enter;if(i!=null){if(typeof i=="function")return i;const s=i[t];if(typeof s=="function")return s}}return null},xt={},wl=e=>e==null?void 0:e.type,v5=e=>typeof wl(e)=="string",mC=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Ph=(e,{visitFnGetter:t=jh,nodeTypeGetter:r=wl,breakSymbol:n=xt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(e.length).fill(o);return{enter(c,l,f,h,d,g){let y=c,v=!1;const _={...g,replaceWith(b,E){g.replaceWith(b,E),y=b}};for(let b=0;b<e.length;b+=1)if(u[b]===o){const E=t(e[b],r(y),!1);if(typeof E=="function"){const w=E.call(e[b],y,l,f,h,d,_);if(typeof(w==null?void 0:w.then)=="function")throw new Ji("Async visitor not supported in sync mode",{visitor:e[b],visitFn:E});if(w===s)u[b]=y;else if(w===n)u[b]=n;else{if(w===i)return w;if(w!==void 0)if(a)y=w,v=!0;else return w}}}return v?y:void 0},leave(c,l,f,h,d,g){let y=c;const v={...g,replaceWith(_,b){g.replaceWith(_,b),y=_}};for(let _=0;_<e.length;_+=1)if(u[_]===o){const b=t(e[_],r(y),!0);if(typeof b=="function"){const E=b.call(e[_],y,l,f,h,d,v);if(typeof(E==null?void 0:E.then)=="function")throw new Ji("Async visitor not supported in sync mode",{visitor:e[_],visitFn:b});if(E===n)u[_]=n;else if(E!==void 0&&E!==s)return E}}else u[_]===y&&(u[_]=o)}}},oae=(e,{visitFnGetter:t=jh,nodeTypeGetter:r=wl,breakSymbol:n=xt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(e.length).fill(o);return{async enter(c,l,f,h,d,g){let y=c,v=!1;const _={...g,replaceWith(b,E){g.replaceWith(b,E),y=b}};for(let b=0;b<e.length;b+=1)if(u[b]===o){const E=t(e[b],r(y),!1);if(typeof E=="function"){const w=await E.call(e[b],y,l,f,h,d,_);if(w===s)u[b]=y;else if(w===n)u[b]=n;else{if(w===i)return w;if(w!==void 0)if(a)y=w,v=!0;else return w}}}return v?y:void 0},async leave(c,l,f,h,d,g){let y=c;const v={...g,replaceWith(_,b){g.replaceWith(_,b),y=_}};for(let _=0;_<e.length;_+=1)if(u[_]===o){const b=t(e[_],r(y),!0);if(typeof b=="function"){const E=await b.call(e[_],y,l,f,h,d,v);if(E===n)u[_]=n;else if(E!==void 0&&E!==s)return E}}else u[_]===y&&(u[_]=o)}}};Ph[Symbol.for("nodejs.util.promisify.custom")]=oae;const gC=(e,t,{keyMap:r=null,state:n={},breakSymbol:i=xt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=jh,nodeTypeGetter:u=wl,nodePredicate:c=v5,nodeCloneFn:l=mC,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let g,y=Array.isArray(e),v=[e],_=-1,b,E=[],w=e;const S=[],A=[];do{_+=1;const O=_===v.length;let D;const N=O&&E.length!==0;if(O){if(D=A.length===0?void 0:S.pop(),w=b,b=A.pop(),N)if(y){w=w.slice();let M=0;for(const[X,ee]of E){const J=X-M;ee===s?(w.splice(J,1),M+=1):w[J]=ee}}else{w=l(w);for(const[M,X]of E)w[M]=X}_=g.index,v=g.keys,E=g.edits,y=g.inArray,g=g.prev}else if(b!==s&&b!==void 0){if(D=y?_:v[_],w=b[D],w===s||w===void 0)continue;S.push(D)}let $;if(!Array.isArray(w)){var R;if(!c(w))throw new Ji(`Invalid AST Node: ${String(w)}`,{node:w});if(f&&A.includes(w)){typeof h=="function"&&h(w,D,b,S,A),S.pop();continue}const M=o(t,u(w),O);if(M){for(const[ee,J]of Object.entries(n))t[ee]=J;const X={replaceWith(ee,J){typeof J=="function"?J(ee,w,D,b,S,A):b&&(b[D]=ee),O||(w=ee)}};$=M.call(t,w,D,b,S,A,X)}if(typeof((R=$)===null||R===void 0?void 0:R.then)=="function")throw new Ji("Async visitor not supported in sync mode",{visitor:t,visitFn:M});if($===i)break;if($===a){if(!O){S.pop();continue}}else if($!==void 0&&(E.push([D,$]),!O))if(c($))w=$;else{S.pop();continue}}if($===void 0&&N&&E.push([D,w]),!O){var T;g={inArray:y,index:_,keys:v,edits:E,prev:g},y=Array.isArray(w),v=y?w:(T=d[u(w)])!==null&&T!==void 0?T:[],_=-1,E=[],b!==s&&b!==void 0&&A.push(b),b=w}}while(g!==void 0);return E.length!==0?E[E.length-1][1]:e};gC[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:i=xt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=jh,nodeTypeGetter:u=wl,nodePredicate:c=v5,nodeCloneFn:l=mC,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let g,y=Array.isArray(e),v=[e],_=-1,b,E=[],w=e;const S=[],A=[];do{_+=1;const T=_===v.length;let O;const D=T&&E.length!==0;if(T){if(O=A.length===0?void 0:S.pop(),w=b,b=A.pop(),D)if(y){w=w.slice();let $=0;for(const[M,X]of E){const ee=M-$;X===s?(w.splice(ee,1),$+=1):w[ee]=X}}else{w=l(w);for(const[$,M]of E)w[$]=M}_=g.index,v=g.keys,E=g.edits,y=g.inArray,g=g.prev}else if(b!==s&&b!==void 0){if(O=y?_:v[_],w=b[O],w===s||w===void 0)continue;S.push(O)}let N;if(!Array.isArray(w)){if(!c(w))throw new Ji(`Invalid AST Node: ${String(w)}`,{node:w});if(f&&A.includes(w)){typeof h=="function"&&h(w,O,b,S,A),S.pop();continue}const $=o(t,u(w),T);if($){for(const[X,ee]of Object.entries(n))t[X]=ee;const M={replaceWith(X,ee){typeof ee=="function"?ee(X,w,O,b,S,A):b&&(b[O]=X),T||(w=X)}};N=await $.call(t,w,O,b,S,A,M)}if(N===i)break;if(N===a){if(!T){S.pop();continue}}else if(N!==void 0&&(E.push([O,N]),!T))if(c(N))w=N;else{S.pop();continue}}if(N===void 0&&D&&E.push([O,w]),!T){var R;g={inArray:y,index:_,keys:v,edits:E,prev:g},y=Array.isArray(w),v=y?w:(R=d[u(w)])!==null&&R!==void 0?R:[],_=-1,E=[],b!==s&&b!==void 0&&A.push(b),b=w}}while(g!==void 0);return E.length!==0?E[E.length-1][1]:e};class b5 extends Ji{constructor(r,n){super(r,n);Y(this,"value");typeof n<"u"&&(this.value=n.value)}}class uae extends b5{}class cae extends b5{}const Je=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ye.KeyValuePair){const{key:i,value:s}=e,a=yr(i)?Je(i,n):i,o=yr(s)?Je(s,n):s,u=new ye.KeyValuePair(a,o);return r.set(e,u),u}if(e instanceof ye.ObjectSlice){const i=o=>Je(o,n),s=[...e].map(i),a=new ye.ObjectSlice(s);return r.set(e,a),a}if(e instanceof ye.ArraySlice){const i=o=>Je(o,n),s=[...e].map(i),a=new ye.ArraySlice(s);return r.set(e,a),a}if(yr(e)){const i=Pr(e);if(r.set(e,i),e.content)if(yr(e.content))i.content=Je(e.content,n);else if(e.content instanceof ye.KeyValuePair)i.content=Je(e.content,n);else if(Array.isArray(e.content)){const s=a=>Je(a,n);i.content=e.content.map(s)}else i.content=e.content;else i.content=e.content;return i}throw new uae("Value provided to cloneDeep function couldn't be cloned",{value:e})};Je.safe=e=>{try{return Je(e)}catch{return e}};const _5=e=>{const{key:t,value:r}=e;return new ye.KeyValuePair(t,r)},lae=e=>{const t=[...e];return new ye.ArraySlice(t)},fae=e=>{const t=[...e];return new ye.ObjectSlice(t)},E5=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Je(e.meta)),e.attributes.length>0&&(t._attributes=Je(e.attributes)),yr(e.content)){const r=e.content;t.content=E5(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ye.KeyValuePair?t.content=_5(e.content):t.content=e.content;return t},Pr=e=>{if(e instanceof ye.KeyValuePair)return _5(e);if(e instanceof ye.ObjectSlice)return fae(e);if(e instanceof ye.ArraySlice)return lae(e);if(yr(e))return E5(e);throw new cae("Value provided to cloneShallow function couldn't be cloned",{value:e})};Pr.safe=e=>{try{return Pr(e)}catch{return e}};const fu=e=>Tt(e)?"ObjectElement":Wr(e)?"ArrayElement":Ii(e)?"MemberElement":st(e)?"StringElement":El(e)?"BooleanElement":dC(e)?"NumberElement":hC(e)?"NullElement":f5(e)?"LinkElement":p5(e)?"RefElement":void 0,S5=e=>yr(e)?Pr(e):mC(e),w5=Kr(fu,Ha),Zi={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class x5{constructor({predicate:t=K2,returnOnTrue:r,returnOnFalse:n}={}){Y(this,"result");Y(this,"predicate");Y(this,"returnOnTrue");Y(this,"returnOnFalse");this.result=[],this.predicate=t,this.returnOnTrue=r,this.returnOnFalse=n}enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}const Ar=(e,t,{keyMap:r=Zi,...n}={})=>gC(e,t,{keyMap:r,nodeTypeGetter:fu,nodePredicate:w5,nodeCloneFn:S5,...n});Ar[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Zi,...n}={})=>gC[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:fu,nodePredicate:w5,nodeCloneFn:S5,...n});const A5={toolboxCreator:y5,visitorOptions:{nodeTypeGetter:fu,exposeEdits:!0}},Qi=(e,t,r={})=>{if(t.length===0)return e;const n=Sh(A5,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=t.map(l=>l(a)),u=Ph(o.map(Bp({},"visitor")),{...s});o.forEach(Ec(["pre"],[]));const c=Ar(e,u,s);return o.forEach(Ec(["post"],[])),c},pae=async(e,t,r={})=>{if(t.length===0)return e;const n=Sh(A5,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=t.map(h=>h(a)),u=Ph[Symbol.for("nodejs.util.promisify.custom")],c=Ar[Symbol.for("nodejs.util.promisify.custom")],l=u(o.map(Bp({},"visitor")),{...s});await Promise.allSettled(o.map(Ec(["pre"],[])));const f=await c(e,l,s);return await Promise.allSettled(o.map(Ec(["post"],[]))),f};Qi[Symbol.for("nodejs.util.promisify.custom")]=pae;var Z1={exports:{}},xF;function dae(){return xF||(xF=1,(function(e){var t=(()=>{var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,u=(w,S,A)=>S in w?r(w,S,{enumerable:!0,configurable:!0,writable:!0,value:A}):w[S]=A,c=(w,S)=>{for(var A in S||(S={}))a.call(S,A)&&u(w,A,S[A]);if(s)for(var A of s(S))o.call(S,A)&&u(w,A,S[A]);return w},l=(w,S)=>{for(var A in S)r(w,A,{get:S[A],enumerable:!0})},f=(w,S,A,R)=>{if(S&&typeof S=="object"||typeof S=="function")for(let T of i(S))!a.call(w,T)&&T!==A&&r(w,T,{get:()=>S[T],enumerable:!(R=n(S,T))||R.enumerable});return w},h=w=>f(r({},"__esModule",{value:!0}),w),d=(w,S,A)=>u(w,typeof S!="symbol"?S+"":S,A),g={};l(g,{DEFAULT_OPTIONS:()=>_,DEFAULT_UUID_LENGTH:()=>v,default:()=>E});var y="5.3.2",v=6,_={dictionary:"alphanum",shuffle:!0,debug:!1,length:v,counter:0},b=class{constructor(S={}){d(this,"counter"),d(this,"debug"),d(this,"dict"),d(this,"version"),d(this,"dictIndex",0),d(this,"dictRange",[]),d(this,"lowerBound",0),d(this,"upperBound",0),d(this,"dictLength",0),d(this,"uuidLength"),d(this,"_digit_first_ascii",48),d(this,"_digit_last_ascii",58),d(this,"_alpha_lower_first_ascii",97),d(this,"_alpha_lower_last_ascii",123),d(this,"_hex_last_ascii",103),d(this,"_alpha_upper_first_ascii",65),d(this,"_alpha_upper_last_ascii",91),d(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),d(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),d(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),d(this,"log",(...N)=>{const $=[...N];if($[0]="[short-unique-id] ".concat(N[0]),this.debug===!0&&typeof console<"u"&&console!==null){console.log(...$);return}}),d(this,"_normalizeDictionary",(N,$)=>{let M;if(N&&Array.isArray(N)&&N.length>1)M=N;else{M=[],this.dictIndex=0;const X="_".concat(N,"_dict_ranges"),ee=this._dict_ranges[X];let J=0;for(const[,te]of Object.entries(ee)){const[re,L]=te;J+=Math.abs(L-re)}M=new Array(J);let Q=0;for(const[,te]of Object.entries(ee)){this.dictRange=te,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const re=this.lowerBound<=this.upperBound,L=this.lowerBound,K=this.upperBound;if(re)for(let ne=L;ne<K;ne++)M[Q++]=String.fromCharCode(ne),this.dictIndex=ne;else for(let ne=L;ne>K;ne--)M[Q++]=String.fromCharCode(ne),this.dictIndex=ne}M.length=Q}if($){const X=M.length;for(let ee=X-1;ee>0;ee--){const J=Math.floor(Math.random()*(ee+1));[M[ee],M[J]]=[M[J],M[ee]]}}return M}),d(this,"setDictionary",(N,$)=>{this.dict=this._normalizeDictionary(N,$),this.dictLength=this.dict.length,this.setCounter(0)}),d(this,"seq",()=>this.sequentialUUID()),d(this,"sequentialUUID",()=>{const N=this.dictLength,$=this.dict;let M=this.counter;const X=[];do{const J=M%N;M=Math.trunc(M/N),X.push($[J])}while(M!==0);const ee=X.join("");return this.counter+=1,ee}),d(this,"rnd",(N=this.uuidLength||v)=>this.randomUUID(N)),d(this,"randomUUID",(N=this.uuidLength||v)=>{if(N===null||typeof N>"u"||N<1)throw new Error("Invalid UUID Length Provided");const $=new Array(N),M=this.dictLength,X=this.dict;for(let ee=0;ee<N;ee++){const J=Math.floor(Math.random()*M);$[ee]=X[J]}return $.join("")}),d(this,"fmt",(N,$)=>this.formattedUUID(N,$)),d(this,"formattedUUID",(N,$)=>{const M={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return N.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,ee=>{const J=ee.slice(0,2),Q=Number.parseInt(ee.slice(2),10);return J==="$s"?M[J]().padStart(Q,"0"):J==="$t"&&$?M[J](Q,$):M[J](Q)})}),d(this,"availableUUIDs",(N=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**N).toFixed(0))),d(this,"_collisionCache",new Map),d(this,"approxMaxBeforeCollision",(N=this.availableUUIDs(this.uuidLength))=>{const $=N,M=this._collisionCache.get($);if(M!==void 0)return M;const X=Number.parseFloat(Math.sqrt(Math.PI/2*N).toFixed(20));return this._collisionCache.set($,X),X}),d(this,"collisionProbability",(N=this.availableUUIDs(this.uuidLength),$=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(N)/this.availableUUIDs($)).toFixed(20))),d(this,"uniqueness",(N=this.availableUUIDs(this.uuidLength))=>{const $=Number.parseFloat((1-this.approxMaxBeforeCollision(N)/N).toFixed(20));return $>1?1:$<0?0:$}),d(this,"getVersion",()=>this.version),d(this,"stamp",(N,$)=>{const M=Math.floor(+($||new Date)/1e3).toString(16);if(typeof N=="number"&&N===0)return M;if(typeof N!="number"||N<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join(`
104
+ `));const X=N-9,ee=Math.round(Math.random()*(X>15?15:X)),J=this.randomUUID(X);return"".concat(J.substring(0,ee)).concat(M).concat(J.substring(ee)).concat(ee.toString(16))}),d(this,"parseStamp",(N,$)=>{if($&&!/t0|t[1-9]\d{1,}/.test($))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const M=$?$.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,ee=>{const J={$r:re=>[...Array(re)].map(()=>"r").join(""),$s:re=>[...Array(re)].map(()=>"s").join(""),$t:re=>[...Array(re)].map(()=>"t").join("")},Q=ee.slice(0,2),te=Number.parseInt(ee.slice(2),10);return J[Q](te)}).replace(/^(.*?)(t{8,})(.*)$/g,(ee,J,Q)=>N.substring(J.length,J.length+Q.length)):N;if(M.length===8)return new Date(Number.parseInt(M,16)*1e3);if(M.length<10)throw new Error("Stamp length invalid");const X=Number.parseInt(M.substring(M.length-1),16);return new Date(Number.parseInt(M.substring(X,X+8),16)*1e3)}),d(this,"setCounter",N=>{this.counter=N}),d(this,"validate",(N,$)=>{const M=$?this._normalizeDictionary($):this.dict;return N.split("").every(X=>M.includes(X))});const A=c(c({},_),S);this.counter=0,this.debug=!1,this.dict=[],this.version=y;const{dictionary:R,shuffle:T,length:O,counter:D}=A;this.uuidLength=O,this.setDictionary(R,T),this.setCounter(D),this.debug=A.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};d(b,"default",b);var E=b;return h(g)})();e.exports=t.default,typeof window<"u"&&(t=t.default)})(Z1)),Z1.exports}var hae=dae();const mae=Ve.getDefaultExportFromCjs(hae);class gae extends Ji{constructor(r,n){super(r,n);Y(this,"value");typeof n<"u"&&(this.value=n.value)}}class yC{constructor({length:t=6}={}){Y(this,"uuid");Y(this,"identityMap");this.uuid=new mae({length:t}),this.identityMap=new WeakMap}identify(t){if(!yr(t))throw new gae("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:t});if(t.meta.hasKey("id")&&st(t.meta.get("id"))&&!t.meta.get("id").equals(""))return t.id;if(this.identityMap.has(t))return this.identityMap.get(t);const r=new ye.StringElement(this.generateId());return this.identityMap.set(t,r),r}forget(t){return this.identityMap.has(t)?(this.identityMap.delete(t),!0):!1}generateId(){return this.uuid.randomUUID()}}new yC;class yae extends Array{constructor(){super(...arguments);Y(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new C1("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new C1("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new C1("latest method in MediaTypes class is not yet implemented.")}}const vae=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return yr(e)&&(e.meta.length>0&&(n.meta=Je(e.meta)),e.attributes.length>0&&(n.attributes=Je(e.attributes))),Qi(n,r,{toolboxCreator:y5,visitorOptions:{nodeTypeGetter:fu}})},ci=e=>(t,r={})=>vae(t,{...r,Type:e});ye.ObjectElement.refract=ci(ye.ObjectElement);ye.ArrayElement.refract=ci(ye.ArrayElement);ye.StringElement.refract=ci(ye.StringElement);ye.BooleanElement.refract=ci(ye.BooleanElement);ye.NullElement.refract=ci(ye.NullElement);ye.NumberElement.refract=ci(ye.NumberElement);ye.LinkElement.refract=ci(ye.LinkElement);ye.RefElement.refract=ci(ye.RefElement);Up.refract=ci(Up);Vp.refract=ci(Vp);Ai.refract=ci(Ai);zp.refract=ci(zp);const bae=(e,t)=>{const r=new x5({predicate:e});return Ar(t,r),new ye.ArraySlice(r.result)},O5=(e,t)=>{const r=new x5({predicate:e,returnOnTrue:xt});return Ar(t,r),LU(void 0,[0],r.result)},C5=e=>typeof(e==null?void 0:e.type)=="string"?e.type:fu(e),R5={EphemeralObject:["content"],EphemeralArray:["content"],...Zi},I5=(e,t,{keyMap:r=R5,...n}={})=>Ar(e,t,{keyMap:r,nodeTypeGetter:C5,nodePredicate:Ss,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});I5[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=R5,...r}={})=>Ar[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:C5,nodePredicate:Ss,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class _ae{constructor(t){Y(this,"type","EphemeralArray");Y(this,"content",[]);Y(this,"reference");this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class Eae{constructor(t){Y(this,"type","EphemeralObject");Y(this,"content",[]);Y(this,"reference");this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}let Sae=class{constructor(){Y(this,"ObjectElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new Eae(t.content);return this.references.set(t,r),r}});Y(this,"EphemeralObject",{leave:t=>t.toObject()});Y(this,"MemberElement",{enter:t=>[t.key,t.value]});Y(this,"ArrayElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new _ae(t.content);return this.references.set(t,r),r}});Y(this,"EphemeralArray",{leave:t=>t.toArray()});Y(this,"references",new WeakMap)}BooleanElement(t){return t.toValue()}NumberElement(t){return t.toValue()}StringElement(t){return t.toValue()}NullElement(){return null}RefElement(t,...r){var n;const i=r[3];return((n=i[i.length-1])===null||n===void 0?void 0:n.type)==="EphemeralObject"?Symbol.for("delete-node"):String(t.toValue())}LinkElement(t){return st(t.href)?t.href.toValue():""}};const Re=e=>yr(e)?st(e)||dC(e)||El(e)||hC(e)?e.toValue():I5(e,new Sae):e,hp=(e,t=new WeakMap)=>(Ii(e)?(t.set(e.key,e),hp(e.key,t),t.set(e.value,e),hp(e.value,t)):e.children.forEach(r=>{t.set(r,e),hp(r,t)}),t),wae=(e,t,r)=>{const n=r.get(e);Ii(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))},xae=(e,t,r)=>{const n=r.get(e);Tt(n)&&(n.content=n.map((i,s,a)=>a===e?(r.delete(e),r.set(t,n),t):a))},Aae=(e,t,r)=>{const n=r.get(e);Wr(n)&&(n.content=n.map(i=>i===e?(r.delete(e),r.set(t,n),t):i))};class Oae{constructor({element:t}){Y(this,"element");Y(this,"edges");this.element=t}transclude(t,r){var n;if(t===this.element)return r;if(t===r)return this.element;this.edges=(n=this.edges)!==null&&n!==void 0?n:hp(this.element);const i=this.edges.get(t);if(!ra(i))return Tt(i)?xae(t,r,this.edges):Wr(i)?Aae(t,r,this.edges):Ii(i)&&wae(t,r,this.edges),this.element}}const Cae=(e,t,r)=>new Oae({element:r}).transclude(e,t),na=(e,t)=>{const r=Lo(e,t);return qie(n=>{if(xi(n)&&sc("$ref",n)&&Uie(Ha,"$ref",n)){const i=Nr(["$ref"],n),s=QU("#/",i);return Nr(s.split("/"),r)}return xi(n)?na(n,r):n},e)},T5=(e,t=g5)=>{if(Ha(e))try{return t.fromRefract(JSON.parse(e))}catch{}return xi(e)&&sc("element",e)?t.fromRefract(e):t.toElement(e)},Wp=e=>{const t=e.meta.length>0?Je(e.meta):void 0,r=e.attributes.length>0?Je(e.attributes):void 0;return new e.constructor(void 0,t,r)},Jp=(e,t)=>t.clone&&t.isMergeableElement(e)?ni(Wp(e),e,t):e,Rae=(e,t)=>{if(typeof t.customMerge!="function")return ni;const r=t.customMerge(e,t);return typeof r=="function"?r:ni},Iae=e=>typeof e.customMetaMerge!="function"?t=>Je(t):e.customMetaMerge,Tae=e=>typeof e.customAttributesMerge!="function"?t=>Je(t):e.customAttributesMerge,jae=(e,t,r)=>e.concat(t)["fantasy-land/map"](n=>Jp(n,r)),Pae=(e,t,r)=>{const n=Tt(e)?Wp(e):Wp(t);return Tt(e)&&e.forEach((i,s,a)=>{const o=Pr(a);o.value=Jp(i,r),n.content.push(o)}),t.forEach((i,s,a)=>{const o=Re(s);let u;if(Tt(e)&&e.hasKey(o)&&r.isMergeableElement(i)){const c=e.get(o);u=Pr(a),u.value=Rae(s,r)(c,i,r)}else u=Pr(a),u.value=Jp(i,r);n.remove(o),n.content.push(u)}),n},Kf={clone:!0,isMergeableElement:e=>Tt(e)||Wr(e),arrayElementMerge:jae,objectElementMerge:Pae,customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},ni=(e,t,r)=>{var n,i,s;const a={...Kf,...r};a.isMergeableElement=(n=a.isMergeableElement)!==null&&n!==void 0?n:Kf.isMergeableElement,a.arrayElementMerge=(i=a.arrayElementMerge)!==null&&i!==void 0?i:Kf.arrayElementMerge,a.objectElementMerge=(s=a.objectElementMerge)!==null&&s!==void 0?s:Kf.objectElementMerge;const o=Wr(t),u=Wr(e);if(!(o===u))return Jp(t,a);const l=o&&typeof a.arrayElementMerge=="function"?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a);return l.meta=Iae(a)(e.meta,t.meta),l.attributes=Tae(a)(e.attributes,t.attributes),l};ni.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return e.length===0?new ye.ObjectElement:e.reduce((r,n)=>ni(r,n,t),Wp(e[0]))};class vC extends lr{}class j5 extends vC{}const kae=async(e,t)=>{let r=e,n=!1;if(!d5(e)){const a=Pr(e);a.classes.push("result"),r=new Ai([a]),n=!0}const i=new Sc({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),s=await cC("canDereference",[i,t],t.dereference.strategies);if(_l(s))throw new j5(i.uri);try{const{result:a}=await lC("dereference",[i,t],s);return n?a.get(0):a}catch(a){throw new vC(`Error while dereferencing file "${i.uri}"`,{cause:a})}};let xl=class{constructor({name:t,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:i=[],mediaTypes:s=[]}){Y(this,"name");Y(this,"allowEmpty");Y(this,"sourceMap");Y(this,"fileExtensions");Y(this,"mediaTypes");this.name=t,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=i,this.mediaTypes=s}};class Nae{constructor({name:t}){Y(this,"name");this.name=t}}class Mae extends Nae{constructor(r){const{name:n="http-resolver",timeout:i=5e3,redirects:s=5,withCredentials:a=!1}=r??{};super({name:n});Y(this,"timeout");Y(this,"redirects");Y(this,"withCredentials");this.timeout=i,this.redirects=s,this.withCredentials=a}canRead(r){return uC(r.uri)}}class Dae{constructor({name:t}){Y(this,"name");this.name=t}}class qae{constructor({name:t}){Y(this,"name");this.name=t}}class Q1 extends Array{includesCycle(t){return this.filter(r=>r.has(t)).length>1}includes(t,r){return t instanceof Set?super.includes(t,r):this.some(n=>n.has(t))}findItem(t){for(const r of this)for(const n of r)if(yr(n)&&t(n))return n}}let ps=class{constructor({uri:t,depth:r=0,refSet:n,value:i}){Y(this,"uri");Y(this,"depth");Y(this,"value");Y(this,"refSet");Y(this,"errors");this.uri=t,this.value=i,this.depth=r,this.refSet=n,this.errors=[]}};class P5 extends lr{}class $ae extends P5{}class Fae extends lr{}class bC extends Fae{}class Bae extends P5{constructor(t){super(`Invalid JSON Schema $anchor "${t}".`)}}class Ao extends vC{}class Lae extends fC{}class gs extends jx{}const Uae=async(e,t={})=>{const r=i5(n5,t);return kae(e,r)},{fetch:Vae,Response:zae,Headers:Wae,Request:Jae,FormData:Kae,File:Hae,Blob:Gae}=globalThis;typeof globalThis.fetch>"u"&&(globalThis.fetch=Vae);typeof globalThis.Headers>"u"&&(globalThis.Headers=Wae);typeof globalThis.Request>"u"&&(globalThis.Request=Jae);typeof globalThis.Response>"u"&&(globalThis.Response=zae);typeof globalThis.FormData>"u"&&(globalThis.FormData=Kae);typeof globalThis.File>"u"&&(globalThis.File=Hae);typeof globalThis.Blob>"u"&&(globalThis.Blob=Gae);function AF(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yae(e){if(Array.isArray(e))return e}function Xae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qae(e,t,r){return t&&Zae(e.prototype,t),e}function k5(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function eoe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,s=!1,a,o;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){s=!0,o=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(s)throw o}}return n}}function toe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function roe(e,t){return Yae(e)||eoe(e,t)||noe(e,t)||toe()}function Oo(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function noe(e,t){if(e){if(typeof e=="string")return AF(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return AF(e,t)}}var N5=function(e){throw TypeError(e)},M5=function(e,t,r){return t.has(e)||N5("Cannot "+r)},sn=function(e,t,r){return M5(e,t,"read from private field"),r?r.call(e):t.get(e)},OF=function(e,t,r){return t.has(e)?N5("Cannot add the same private member more than once"):k5(t,WeakSet)?t.add(e):t.set(e,r)},ew=function(e,t,r,n){return M5(e,t,"write to private field"),t.set(e,r),r},pu=function(e){return Object.prototype.toString.call(e)},D5=function(e){return ArrayBuffer.isView(e)&&!k5(e,DataView)},ioe=function(e){return pu(e)==="[object Date]"},soe=function(e){return pu(e)==="[object RegExp]"},aoe=function(e){return pu(e)==="[object Error]"},ooe=function(e){return pu(e)==="[object Boolean]"},uoe=function(e){return pu(e)==="[object Number]"},coe=function(e){return pu(e)==="[object String]"},q5=Array.isArray,loe=Object.getOwnPropertyDescriptor,foe=Object.prototype.propertyIsEnumerable,poe=Object.getOwnPropertySymbols,mp=Object.prototype.hasOwnProperty;function _C(e){for(var t=Object.keys(e),r=poe(e),n=0;n<r.length;n++)foe.call(e,r[n])&&t.push(r[n]);return t}function doe(e,t){var r;return!(!((r=loe(e,t))===null||r===void 0)&&r.writable)}function $5(e,t){if((typeof e>"u"?"undefined":Oo(e))==="object"&&e!==null){var r;if(q5(e))r=[];else if(ioe(e))r=new Date(e.getTime?e.getTime():e);else if(soe(e))r=new RegExp(e);else if(aoe(e))r={message:e.message};else if(ooe(e)||uoe(e)||coe(e))r=Object(e);else{if(D5(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var n=t.includeSymbols?_C:Object.keys,i=!0,s=!1,a=void 0;try{for(var o=n(e)[Symbol.iterator](),u;!(i=(u=o.next()).done);i=!0){var c=u.value;r[c]=e[c]}}catch(l){s=!0,a=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(s)throw a}}return r}return e}var F5={includeSymbols:!1,immutable:!1};function CF(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:F5,n=[],i=[],s=!0,a=r.includeSymbols?_C:Object.keys,o=!!r.immutable;return(function u(c){var l=o?$5(c,r):c,f={},h=!0,d={node:l,node_:c,path:[].concat(n),parent:i[i.length-1],parents:i,key:n[n.length-1],isRoot:n.length===0,level:n.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function($){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;d.isRoot||(d.parent.node[d.key]=$),d.node=$,M&&(h=!1)},delete:function($){delete d.parent.node[d.key],$&&(h=!1)},remove:function($){q5(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],$&&(h=!1)},keys:null,before:function($){f.before=$},after:function($){f.after=$},pre:function($){f.pre=$},post:function($){f.post=$},stop:function(){s=!1},block:function(){h=!1}};if(!s)return d;function g(){if(Oo(d.node)==="object"&&d.node!==null){(!d.keys||d.node_!==d.node)&&(d.keys=a(d.node)),d.isLeaf=d.keys.length===0;for(var N=0;N<i.length;N++)if(i[N].node_===c){d.circular=i[N];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}g();var y=t.call(d,d.node);if(y!==void 0&&d.update&&d.update(y),f.before&&f.before.call(d,d.node),!h)return d;if(Oo(d.node)==="object"&&d.node!==null&&!d.circular){i.push(d),g();var v,_=!0,b=!1,E=void 0;try{for(var w=Object.entries((v=d.keys)!==null&&v!==void 0?v:[])[Symbol.iterator](),S;!(_=(S=w.next()).done);_=!0){var A=roe(S.value,2),R=A[0],T=A[1],O;n.push(T),f.pre&&f.pre.call(d,d.node[T],T);var D=u(d.node[T]);o&&mp.call(d.node,T)&&!doe(d.node,T)&&(d.node[T]=D.node),D.isLast=!((O=d.keys)===null||O===void 0)&&O.length?+R===d.keys.length-1:!1,D.isFirst=+R==0,f.post&&f.post.call(d,D),n.pop()}}catch(N){b=!0,E=N}finally{try{!_&&w.return!=null&&w.return()}finally{if(b)throw E}}i.pop()}return f.after&&f.after.call(d,d.node),d})(e).node}var hn,ks,es=(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:F5;Xae(this,e),OF(this,hn),OF(this,ks),ew(this,hn,t),ew(this,ks,r)}return Qae(e,[{key:"get",value:function(r){for(var n=sn(this,hn),i=0;n&&i<r.length;i++){var s=r[i];if(!mp.call(n,s)||!sn(this,ks).includeSymbols&&(typeof s>"u"?"undefined":Oo(s))==="symbol")return;n=n[s]}return n}},{key:"has",value:function(r){for(var n=sn(this,hn),i=0;n&&i<r.length;i++){var s=r[i];if(!mp.call(n,s)||!sn(this,ks).includeSymbols&&(typeof s>"u"?"undefined":Oo(s))==="symbol")return!1;n=n[s]}return!0}},{key:"set",value:function(r,n){var i=sn(this,hn),s=0;for(s=0;s<r.length-1;s++){var a=r[s];mp.call(i,a)||(i[a]={}),i=i[a]}return i[r[s]]=n,n}},{key:"map",value:function(r){return CF(sn(this,hn),r,{immutable:!0,includeSymbols:!!sn(this,ks).includeSymbols})}},{key:"forEach",value:function(r){return ew(this,hn,CF(sn(this,hn),r,sn(this,ks))),sn(this,hn)}},{key:"reduce",value:function(r,n){var i=arguments.length===1,s=i?sn(this,hn):n;return this.forEach(function(a){(!this.isRoot||!i)&&(s=r.call(this,s,a))}),s}},{key:"paths",value:function(){var r=[];return this.forEach(function(){r.push(this.path)}),r}},{key:"nodes",value:function(){var r=[];return this.forEach(function(){r.push(this.node)}),r}},{key:"clone",value:function(){var r=[],n=[],i=sn(this,ks);return D5(sn(this,hn))?sn(this,hn).slice():(function s(a){for(var o=0;o<r.length;o++)if(r[o]===a)return n[o];if((typeof a>"u"?"undefined":Oo(a))==="object"&&a!==null){var u=$5(a,i);r.push(a),n.push(u);var c=i.includeSymbols?_C:Object.keys,l=!0,f=!1,h=void 0;try{for(var d=c(a)[Symbol.iterator](),g;!(l=(g=d.next()).done);l=!0){var y=g.value;u[y]=s(a[y])}}catch(v){f=!0,h=v}finally{try{!l&&d.return!=null&&d.return()}finally{if(f)throw h}}return r.pop(),n.pop(),u}return a})(sn(this,hn))}}]),e})();hn=new WeakMap;ks=new WeakMap;var ts=function(e,t){return new es(e,t)};ts.get=function(e,t,r){return new es(e,r).get(t)};ts.set=function(e,t,r,n){return new es(e,n).set(t,r)};ts.has=function(e,t,r){return new es(e,r).has(t)};ts.map=function(e,t,r){return new es(e,r).map(t)};ts.forEach=function(e,t,r){return new es(e,r).forEach(t)};ts.reduce=function(e,t,r,n){return new es(e,n).reduce(t,r)};ts.paths=function(e,t){return new es(e,t).paths()};ts.nodes=function(e,t){return new es(e,t).nodes()};ts.clone=function(e,t){return new es(e,t).clone()};var hoe=ts;const B5="application/json, application/yaml",Kp="https://swagger.io",moe=Object.freeze({url:"/"}),L5=3e3,goe=["properties"],yoe=["properties"],voe=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],boe=["schema/example","items/example"];function U5(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return goe.indexOf(t)>-1&&yoe.indexOf(r)===-1||voe.indexOf(n)>-1||boe.some(i=>n.indexOf(i)>-1)}function _oe(e,t,{specmap:r,getBaseUrlForNodePath:n=s=>r.getContext([...t,...s]).baseDoc,targetKeys:i=["$ref","$$ref"]}={}){const s=[];return hoe(e).forEach(function(){if(i.includes(this.key)&&typeof this.node=="string"){const o=this.path,u=t.concat(this.path),c=Px(this.node,n(o));s.push(r.replace(u,c))}}),s}function Px(e,t){const[r,n]=e.split("#"),i=t??"",s=r??"";let a;if(uC(i))a=Lr(i,s);else{const o=Lr(Kp,i),c=Lr(o,s).replace(Kp,"");a=s.startsWith("/")?c:c.substring(1)}return n?`${a}#${n}`:a}const Eoe=/^([a-z]+:\/\/|\/\/)/i;class zo extends Ji{}const fs={},RF=new WeakMap,Soe=[e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples",e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example",e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value",e=>e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example",e=>e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value",e=>e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"],woe=e=>Soe.some(t=>t(e)),xoe={key:"$ref",plugin:(e,t,r,n)=>{const i=n.getInstance(),s=r.slice(0,-1);if(U5(s)||woe(s))return;const{baseDoc:a}=n.getContext(r);if(typeof e!="string")return new zo("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:a,fullPath:r});const o=z5(e),u=o[0],c=o[1]||"";let l;try{l=a||u?V5(u,a):null}catch(y){return kx(y,{pointer:c,$ref:e,basePath:l,fullPath:r})}let f,h;if(Ioe(c,l,s,n)&&!i.useCircularStructures){const y=Px(e,l);return e===y?null:Bt.replace(r,y)}if(l==null?(h=SC(c),f=n.get(h),typeof f>"u"&&(f=new zo(`Could not resolve reference: ${e}`,{pointer:c,$ref:e,baseDoc:a,fullPath:r}))):(f=W5(l,c),f.__value!=null?f=f.__value:f=f.catch(y=>{throw kx(y,{pointer:c,$ref:e,baseDoc:a,fullPath:r})})),f instanceof Error)return[Bt.remove(r),f];const d=Px(e,l),g=Bt.replace(s,f,{$$ref:d});if(l&&l!==a)return[g,Bt.context(s,{baseDoc:l})];try{if(!Toe(n.state,g)||i.useCircularStructures)return g}catch{return null}}},EC=Object.assign(xoe,{docCache:fs,absoluteify:V5,clearCache:Aoe,JSONRefError:zo,wrapError:kx,getDoc:J5,split:z5,extractFromDoc:W5,fetchJSON:Ooe,extract:Nx,jsonPointerToArray:SC,unescapeJsonPointerToken:K5});function V5(e,t){if(!Eoe.test(e)){if(!t)throw new zo(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Lr(t,e)}return e}function kx(e,t){let r;return e&&e.response&&e.response.body?r=`${e.response.body.code} ${e.response.body.message}`:r=e.message,new zo(`Could not resolve reference: ${r}`,{...t,cause:e})}function z5(e){return(e+"").split("#")}function W5(e,t){const r=fs[e];if(r&&!Bt.isPromise(r))try{const n=Nx(t,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return J5(e).then(n=>Nx(t,n))}function Aoe(e){typeof e<"u"?delete fs[e]:Object.keys(fs).forEach(t=>{delete fs[t]})}function J5(e){const t=fs[e];return t?Bt.isPromise(t)?t:Promise.resolve(t):(fs[e]=EC.fetchJSON(e).then(r=>(fs[e]=r,r)),fs[e])}function Ooe(e){return fetch(e,{headers:{Accept:B5},loadSpec:!0}).then(t=>t.text()).then(t=>Ta.load(t))}function Nx(e,t){const r=SC(e);if(r.length<1)return t;const n=Bt.getIn(t,r);if(typeof n>"u")throw new zo(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function SC(e){if(typeof e!="string")throw new TypeError(`Expected a string, got a ${typeof e}`);return e[0]==="/"&&(e=e.substr(1)),e===""?[]:e.split("/").map(K5)}function K5(e){return typeof e!="string"?e:new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function H5(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function Coe(e){return e.length===0?"":`/${e.map(H5).join("/")}`}const Roe=e=>!e||e==="/"||e==="#";function tw(e,t){if(Roe(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return e.indexOf(t)===0&&(!r||r==="/"||r==="#")&&n!=="#"}function Ioe(e,t,r,n){let i=RF.get(n);i||(i={},RF.set(n,i));const s=Coe(r),a=`${t||"<specmap-base>"}#${e}`,o=s.replace(/allOf\/\d+\/?/g,""),u=n.contextTree.get([]).baseDoc;if(t===u&&tw(o,e))return!0;let c="";if(r.some(f=>(c=`${c}/${H5(f)}`,i[c]&&i[c].some(h=>tw(h,a)||tw(a,h)))))return!0;i[o]=(i[o]||[]).concat(a)}function Toe(e,t){const r=[e];return t.path.reduce((i,s)=>(r.push(i[s]),i[s]),e),n(t.value);function n(i){return Bt.isObject(i)&&(r.indexOf(i)>=0||Object.keys(i).some(s=>n(i[s])))}}const joe={key:"allOf",plugin:(e,t,r,n,i)=>{if(i.meta&&i.meta.$$ref)return;const s=r.slice(0,-1);if(U5(s))return;if(!Array.isArray(e)){const c=new TypeError("allOf must be an array");return c.fullPath=r,c}let a=!1,o=i.value;if(s.forEach(c=>{o&&(o=o[c])}),o={...o},Object.keys(o).length===0)return;delete o.allOf;const u=[];return u.push(n.replace(s,{})),e.forEach((c,l)=>{if(!n.isObject(c)){if(a)return null;a=!0;const d=new TypeError("Elements in allOf must be objects");return d.fullPath=r,u.push(d)}u.push(n.mergeDeep(s,c));const f=r.slice(0,-1),h=_oe(c,f,{getBaseUrlForNodePath:d=>n.getContext([...r,l,...d]).baseDoc,specmap:n});u.push(...h)}),o.example&&u.push(n.remove([].concat(s,"example"))),u.push(n.mergeDeep(s,o)),o.$$ref||u.push(n.remove([].concat(s,"$$ref"))),u}},Poe={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const i=Object.assign([],e),s=r.slice(0,-1),a={...Bt.getIn(n.spec,s)};for(let o=0;o<e.length;o+=1){const u=e[o];try{i[o].default=n.parameterMacro(a,u)}catch(c){const l=new Error(c);return l.fullPath=r,l}}return Bt.replace(r,i)}return Bt.replace(r,e)}},koe={key:"properties",plugin:(e,t,r,n)=>{const i={...e};for(const a in e)try{i[a].default=n.modelPropertyMacro(i[a])}catch(o){const u=new Error(o);return u.fullPath=r,u}return Bt.replace(r,i)}};class Noe{constructor(t){this.root=rw(t||{})}set(t,r){const n=this.getParent(t,!0);if(!n){Hp(this.root,r,null);return}const i=t[t.length-1],{children:s}=n;if(s[i]){Hp(s[i],r,n);return}s[i]=rw(r,n)}get(t){if(t=t||[],t.length<1)return this.root.value;let r=this.root,n,i;for(let s=0;s<t.length&&(i=t[s],n=r.children,!!n[i]);s+=1)r=n[i];return r&&r.protoValue}getParent(t,r){return!t||t.length<1?null:t.length<2?this.root:t.slice(0,-1).reduce((n,i)=>{if(!n)return n;const{children:s}=n;return!s[i]&&r&&(s[i]=rw(null,n)),s[i]},this.root)}}function rw(e,t){return Hp({children:{}},e,t)}function Hp(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach(n=>{const i=e.children[n];e.children[n]=Hp(i,i.value,e)}),e}const IF=100,TF=()=>{};class Moe{static getPluginName(t){return t.pluginName}static getPatchesOfType(t,r){return t.filter(r)}constructor(t){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Noe,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Bt,{getInstance:()=>this}),allowMetaPatches:!1},t),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(Bt.isFunction),this.patches.push(Bt.add([],this.spec)),this.patches.push(Bt.context([],this.context)),this.updatePatches(this.patches)}debug(t,...r){this.debugLevel===t&&console.log(...r)}verbose(t,...r){this.debugLevel==="verbose"&&console.log(`[${t}] `,...r)}wrapPlugin(t,r){const{pathDiscriminator:n}=this;let i=null,s;return t[this.pluginProp]?(i=t,s=t[this.pluginProp]):Bt.isFunction(t)?s=t:Bt.isObject(t)&&(s=a(t)),Object.assign(s.bind(i),{pluginName:t.name||r,isGenerator:Bt.isGenerator(s)});function a(o){const u=(c,l)=>Array.isArray(c)?c.every((f,h)=>f===l[h]):!0;return function*(l,f){const h={};for(const[g,y]of l.filter(Bt.isAdditiveMutation).entries())if(g<L5)yield*d(y.value,y.path,y);else return;function*d(g,y,v){if(!Bt.isObject(g))o.key===y[y.length-1]&&(yield o.plugin(g,o.key,y,f));else{const _=y.length-1,b=y[_],E=y.indexOf("properties"),w=b==="properties"&&_===E,S=f.allowMetaPatches&&h[g.$$ref];for(const A of Object.keys(g)){const R=g[A],T=y.concat(A),O=Bt.isObject(R),D=g.$$ref;if(S||O&&(f.allowMetaPatches&&D&&u(n,T)&&(h[D]=!0),yield*d(R,T,v)),!w&&A===o.key){const N=u(n,y);(!n||N)&&(yield o.plugin(R,A,T,f,v))}}}}}}}nextPlugin(){return this.wrappedPlugins.find(t=>this.getMutationsForPlugin(t).length>0)}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map(t=>t.value))}getPluginHistory(t){const r=this.constructor.getPluginName(t);return this.pluginHistory[r]||[]}getPluginRunCount(t){return this.getPluginHistory(t).length}getPluginHistoryTip(t){const r=this.getPluginHistory(t);return r&&r[r.length-1]||{}}getPluginMutationIndex(t){const r=this.getPluginHistoryTip(t).mutationIndex;return typeof r!="number"?-1:r}updatePluginHistory(t,r){const n=this.constructor.getPluginName(t);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(r)}updatePatches(t){Bt.normalizeArray(t).forEach(r=>{if(r instanceof Error){this.errors.push(r);return}try{if(!Bt.isObject(r)){this.debug("updatePatches","Got a non-object patch",r);return}if(this.showDebug&&this.allPatches.push(r),Bt.isPromise(r.value)){this.promisedPatches.push(r),this.promisedPatchThen(r);return}if(Bt.isContextPatch(r)){this.setContext(r.path,r.value);return}Bt.isMutation(r)&&this.updateMutations(r)}catch(n){console.error(n),this.errors.push(n)}})}updateMutations(t){typeof t.value=="object"&&!Array.isArray(t.value)&&this.allowMetaPatches&&(t.value={...t.value});const r=Bt.applyPatch(this.state,t,{allowMetaPatches:this.allowMetaPatches});r&&(this.mutations.push(t),this.state=r)}removePromisedPatch(t){const r=this.promisedPatches.indexOf(t);if(r<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}this.promisedPatches.splice(r,1)}promisedPatchThen(t){return t.value=t.value.then(r=>{const n={...t,value:r};this.removePromisedPatch(t),this.updatePatches(n)}).catch(r=>{this.removePromisedPatch(t),this.updatePatches(r)}),t.value}getMutations(t,r){return t=t||0,typeof r!="number"&&(r=this.mutations.length),this.mutations.slice(t,r)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(t){const r=this.getPluginMutationIndex(t);return this.getMutations(r+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(t){return Bt.getIn(this.state,t)}_getContext(t){return this.contextTree.get(t)}setContext(t,r){return this.contextTree.set(t,r)}_hasRun(t){return this.getPluginRunCount(this.getCurrentPlugin())>(t||0)}dispatch(){const t=this,r=this.nextPlugin();if(!r){const s=this.nextPromisedPatch();if(s)return s.then(()=>this.dispatch()).catch(()=>this.dispatch());const a={spec:this.state,errors:this.errors};return this.showDebug&&(a.patches=this.allPatches),Promise.resolve(a)}if(t.pluginCount=t.pluginCount||new WeakMap,t.pluginCount.set(r,(t.pluginCount.get(r)||0)+1),t.pluginCount[r]>IF)return Promise.resolve({spec:t.state,errors:t.errors.concat(new Error(`We've reached a hard limit of ${IF} plugin runs`))});if(r!==this.currentPlugin&&this.promisedPatches.length){const s=this.promisedPatches.map(a=>a.value);return Promise.all(s.map(a=>a.then(TF,TF))).then(()=>this.dispatch())}return n();function n(){t.currentPlugin=r;const s=t.getCurrentMutations(),a=t.mutations.length-1;try{if(r.isGenerator)for(const o of r(s,t.getLib()))i(o);else{const o=r(s,t.getLib());i(o)}}catch(o){console.error(o),i([Object.assign(Object.create(o),{plugin:r})])}finally{t.updatePluginHistory(r,{mutationIndex:a})}return t.dispatch()}function i(s){s&&(s=Bt.fullyNormalizeArray(s),t.updatePatches(s,r))}}}function Doe(e){return new Moe(e).dispatch()}const lo={refs:EC,allOf:joe,parameters:Poe,properties:koe};function G5(e,t={}){const{requestInterceptor:r,responseInterceptor:n}=t,i=e.withCredentials?"include":"same-origin";return s=>e({url:s,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:B5},credentials:i}).then(a=>a.body)}function wC(e,t){return!t&&typeof navigator<"u"&&(t=navigator),t&&t.product==="ReactNative"?!!(e&&typeof e=="object"&&typeof e.uri=="string"):typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob||ArrayBuffer.isView(e)?!0:e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function Y5(e,t){return Array.isArray(e)&&e.some(r=>wC(r,t))}class Mx extends File{constructor(t,r="",n={}){super([t],r,n),this.data=t}valueOf(){return this.data}toString(){return this.valueOf()}}const qoe=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,$oe=e=>/^[a-z0-9\-._~]+$/i.test(e);function X5(e,t="reserved"){return[...e].map(r=>{if($oe(r)||qoe(r)&&t==="unsafe")return r;const n=new TextEncoder;return Array.from(n.encode(r)).map(s=>`0${s.toString(16).toUpperCase()}`.slice(-2)).map(s=>`%${s}`).join("")}).join("")}function xC(e){const{value:t}=e;return Array.isArray(t)?Foe(e):typeof t=="object"?Boe(e):Loe(e)}function Ur(e,t=!1){return Array.isArray(e)||e!==null&&typeof e=="object"?e=JSON.stringify(e):(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),t&&typeof e=="string"&&e.length>0?X5(e,t):e??""}function Foe({key:e,value:t,style:r,explode:n,escape:i}){if(r==="simple")return t.map(s=>Ur(s,i)).join(",");if(r==="label")return`.${t.map(s=>Ur(s,i)).join(".")}`;if(r==="matrix")return t.map(s=>Ur(s,i)).reduce((s,a)=>!s||n?`${s||""};${e}=${a}`:`${s},${a}`,"");if(r==="form"){const s=n?`&${e}=`:",";return t.map(a=>Ur(a,i)).join(s)}if(r==="spaceDelimited"){const s=n?`${e}=`:"";return t.map(a=>Ur(a,i)).join(` ${s}`)}if(r==="pipeDelimited"){const s=n?`${e}=`:"";return t.map(a=>Ur(a,i)).join(`|${s}`)}}function Boe({key:e,value:t,style:r,explode:n,escape:i}){const s=Object.keys(t);if(r==="simple")return s.reduce((a,o)=>{const u=Ur(t[o],i),c=n?"=":",";return`${a?`${a},`:""}${o}${c}${u}`},"");if(r==="label")return s.reduce((a,o)=>{const u=Ur(t[o],i),c=n?"=":".";return`${a?`${a}.`:"."}${o}${c}${u}`},"");if(r==="matrix"&&n)return s.reduce((a,o)=>{const u=Ur(t[o],i);return`${a?`${a};`:";"}${o}=${u}`},"");if(r==="matrix")return s.reduce((a,o)=>{const u=Ur(t[o],i);return`${a?`${a},`:`;${e}=`}${o},${u}`},"");if(r==="form")return s.reduce((a,o)=>{const u=Ur(t[o],i);return`${a?`${a}${n?"&":","}`:""}${o}${n?"=":","}${u}`},"")}function Loe({key:e,value:t,style:r,escape:n}){if(r==="simple")return Ur(t,n);if(r==="label")return`.${Ur(t,n)}`;if(r==="matrix")return`;${e}=${Ur(t,n)}`;if(r==="form"||r==="deepObject")return Ur(t,n)}const Uoe={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Voe={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Z5(e,t,r=!1){const{collectionFormat:n,allowEmptyValue:i,serializationOption:s,encoding:a}=t,o=typeof t=="object"&&!Array.isArray(t)?t.value:t,u=r?l=>l.toString():l=>encodeURIComponent(l),c=u(e);if(typeof o>"u"&&i)return[[c,""]];if(wC(o)||Y5(o))return[[c,o]];if(s)return jF(e,o,r,s);if(a){if([typeof a.style,typeof a.explode,typeof a.allowReserved].some(l=>l!=="undefined")){const{style:l,explode:f,allowReserved:h}=a;return jF(e,o,r,{style:l,explode:f,allowReserved:h})}if(typeof a.contentType=="string"){if(a.contentType.startsWith("application/json")){const h=typeof o=="string"?o:JSON.stringify(o),d=u(h),g=new Mx(d,"blob",{type:a.contentType});return[[c,g]]}const l=u(String(o)),f=new Mx(l,"blob",{type:a.contentType});return[[c,f]]}return typeof o!="object"?[[c,u(o)]]:Array.isArray(o)&&o.every(l=>typeof l!="object")?[[c,o.map(u).join(",")]]:[[c,u(JSON.stringify(o))]]}return typeof o!="object"?[[c,u(o)]]:Array.isArray(o)?n==="multi"?[[c,o.map(u)]]:[[c,o.map(u).join(Voe[n||"csv"])]]:[[c,""]]}function jF(e,t,r,n){const i=n.style||"form",s=typeof n.explode>"u"?i==="form":n.explode,a=r?!1:n&&n.allowReserved?"unsafe":"reserved",o=c=>Ur(c,a),u=r?c=>c:c=>o(c);return typeof t!="object"?[[u(e),o(t)]]:Array.isArray(t)?s?[[u(e),t.map(o)]]:[[u(e),t.map(o).join(Uoe[i])]]:i==="deepObject"?Object.keys(t).map(c=>[u(`${e}[${c}]`),o(t[c])]):s?Object.keys(t).map(c=>[u(c),o(t[c])]):[[u(e),Object.keys(t).map(c=>[`${u(c)},${o(t[c])}`]).join(",")]]}function zoe(e){return Object.entries(e).reduce((t,[r,n])=>{for(const[i,s]of Z5(r,n,!0))if(Array.isArray(s))for(const a of s)if(ArrayBuffer.isView(a)){const o=new Blob([a]);t.append(i,o)}else t.append(i,a);else if(ArrayBuffer.isView(s)){const a=new Blob([s]);t.append(i,a)}else t.append(i,s);return t},new FormData)}const Woe=(e,{encode:t=!0}={})=>{const r=(s,a,o)=>(Array.isArray(o)?o.reduce((u,c)=>r(s,a,c),s):o instanceof Date?s.append(a,o.toISOString()):typeof o=="object"?Object.entries(o).reduce((u,[c,l])=>r(s,`${a}[${c}]`,l),s):s.append(a,o),s),n=Object.entries(e).reduce((s,[a,o])=>r(s,a,o),new URLSearchParams),i=String(n);return t?i:decodeURIComponent(i)};function PF(e){const t=Object.keys(e).reduce((r,n)=>{for(const[i,s]of Z5(n,e[n]))s instanceof Mx?r[i]=s.valueOf():r[i]=s;return r},{});return Woe(t,{encode:!1})}function AC(e={}){const{url:t="",query:r,form:n}=e,i=(...s)=>{const a=s.filter(o=>o).join("&");return a?`?${a}`:""};if(n){const s=Object.keys(n).some(o=>{const{value:u}=n[o];return wC(u)||Y5(u)}),a=e.headers["content-type"]||e.headers["Content-Type"];if(s||/multipart\/form-data/i.test(a)){const o=zoe(e.form);e.formdata=o,e.body=o}else e.body=PF(n);delete e.form}if(r){const[s,a]=t.split("?");let o="";if(a){const c=new URLSearchParams(a);Object.keys(r).forEach(f=>c.delete(f)),o=String(c)}const u=i(o,PF(r));e.url=s+u,delete e.query}return e}const Joe=(e="")=>/(json|xml|yaml|text)\b/.test(e);function Koe(e,t){if(t){if(t.indexOf("application/json")===0||t.indexOf("+json")>0)return JSON.parse(e);if(t.indexOf("application/xml")===0||t.indexOf("+xml")>0)return e}return Ta.load(e)}function Hoe(e){return e.includes(", ")?e.split(", "):e}function Goe(e={}){return typeof e.entries!="function"?{}:Array.from(e.entries()).reduce((t,[r,n])=>(t[r]=Hoe(n),t),{})}function Q5(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Goe(e.headers)},i=n.headers["content-type"],s=r||Joe(i);return(s?e.text:e.blob||e.buffer).call(e).then(o=>{if(n.text=o,n.data=o,s)try{const u=Koe(o,i);n.body=u,n.obj=u}catch(u){n.parseError=u}return n})}async function wc(e,t={}){typeof e=="object"&&(t=e,e=t.url),t.headers=t.headers||{},t=AC(t),t.headers&&Object.keys(t.headers).forEach(i=>{const s=t.headers[i];typeof s=="string"&&(t.headers[i]=s.replace(/\n+/g," "))}),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);let n;try{n=await(t.userFetch||fetch)(t.url,t),n=await Q5(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(i){if(!n)throw i;const s=new Error(n.statusText||`response status is ${n.status}`);throw s.status=n.status,s.statusCode=n.status,s.responseError=i,s}if(!n.ok){const i=new Error(n.statusText||`response status is ${n.status}`);throw i.status=n.status,i.statusCode=n.status,i.response=n,i}return n}function Yoe(e,t,r){return r=r||(n=>n),t=t||(n=>n),n=>(typeof n=="string"&&(n={url:n}),n=AC(n),n=t(n),r(e(n)))}const OC=e=>{var t,r;const{baseDoc:n,url:i}=e,s=(t=n??i)!==null&&t!==void 0?t:"";return typeof((r=globalThis.document)===null||r===void 0?void 0:r.baseURI)=="string"?String(new URL(s,globalThis.document.baseURI)):s},e9=e=>{const{fetch:t,http:r}=e;return t||r||wc};async function CC(e){const{spec:t,mode:r,allowMetaPatches:n=!0,pathDiscriminator:i,modelPropertyMacro:s,parameterMacro:a,requestInterceptor:o,responseInterceptor:u,skipNormalization:c=!1,useCircularStructures:l,strategies:f}=e,h=OC(e),d=e9(e),g=f.find(v=>v.match(t));return y(t);async function y(v){h&&(lo.refs.docCache[h]=v),lo.refs.fetchJSON=G5(d,{requestInterceptor:o,responseInterceptor:u});const _=[lo.refs];typeof a=="function"&&_.push(lo.parameters),typeof s=="function"&&_.push(lo.properties),r!=="strict"&&_.push(lo.allOf);const b=await Doe({spec:v,context:{baseDoc:h},plugins:_,allowMetaPatches:n,pathDiscriminator:i,parameterMacro:a,modelPropertyMacro:s,useCircularStructures:l});return c||(b.spec=g.normalize(b.spec)),b}}const t9=e=>e.replace(/\W/gi,"_");function Xoe(e,t,{v2OperationIdCompatibilityMode:r}={}){if(r){let n=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return n=n||`${e.substring(1)}_${t}`,n.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${t9(e)}`}function kh(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){return!e||typeof e!="object"?null:(e.operationId||"").replace(/\s/g,"").length?t9(e.operationId):Xoe(t,r,{v2OperationIdCompatibilityMode:n})}function RC(e){const{spec:t}=e,{paths:r}=t,n={};if(!r||t.$$normalized)return e;for(const i in r){const s=r[i];if(s==null||!["object","function"].includes(typeof s))continue;const a=s.parameters;for(const o in s){const u=s[o];if(u==null||!["object","function"].includes(typeof u))continue;const c=kh(u,i,o);if(c){n[c]?n[c].push(u):n[c]=[u];const l=n[c];if(l.length>1)l.forEach((f,h)=>{f.__originalOperationId=f.__originalOperationId||f.operationId,f.operationId=`${c}${h+1}`});else if(typeof u.operationId<"u"){const f=l[0];f.__originalOperationId=f.__originalOperationId||u.operationId,f.operationId=c}}if(o!=="parameters"){const l=[],f={};for(const h in t)(h==="produces"||h==="consumes"||h==="security")&&(f[h]=t[h],l.push(f));if(a&&(f.parameters=a,l.push(f)),l.length){for(const h of l)for(const d in h)if(!Array.isArray(u[d]))u[d]=h[d];else if(d==="parameters")for(const g of h[d])u[d].some(v=>!xi(v)&&!xi(g)?!1:v===g?!0:["name","$ref","$$ref"].some(_=>typeof v[_]=="string"&&typeof g[_]=="string"&&v[_]===g[_]))||u[d].push(g)}}}}return t.$$normalized=!0,e}const r9={name:"generic",match(){return!0},normalize(e){const{spec:t}=RC({spec:e});return t},async resolve(e){return CC(e)}};async function Zoe(e){return CC(e)}const Qoe=e=>{try{const{swagger:t}=e;return t==="2.0"}catch{return!1}},n9=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},IC=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},i9=e=>n9(e)||IC(e),s9={name:"openapi-2",match(e){return Qoe(e)},normalize(e){const{spec:t}=RC({spec:e});return t},async resolve(e){return Zoe(e)}};async function eue(e){return CC(e)}const a9={name:"openapi-3-0",match(e){return n9(e)},normalize(e){const{spec:t}=RC({spec:e});return t},async resolve(e){return eue(e)}},tue=e=>{try{const t=e.startsWith("#")?e.slice(1):e;return decodeURIComponent(t)}catch{return e}},Qn=e=>{const t=e.indexOf("#"),r=t===-1?"#":e.substring(t);return tue(r)};function Al(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let t="";return t+=`; JavaScript Object Notation (JSON) Pointer ABNF syntax
105
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6901
106
+ `,t+=`json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used
107
+ `,t+=`reference-token = *( unescaped / escaped )
108
+ `,t+=`unescaped = %x00-2E / %x30-7D / %x7F-10FFFF
109
+ `,t+=` ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'
110
+ `,t+=`escaped = "~" ( "0" / "1" )
111
+ `,t+=` ; representing '~' and '/', respectively
112
+ `,t+=`
113
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6901#section-4
114
+ `,t+=`array-location = array-index / array-dash
115
+ `,t+=`array-index = %x30 / ( %x31-39 *(%x30-39) )
116
+ `,t+=` ; "0", or digits without a leading "0"
117
+ `,t+=`array-dash = "-"
118
+ `,t+=`
119
+ `,t+=`; Surrogate named rules
120
+ `,t+=`slash = "/"
121
+ `,t}}const li=function(){const t=ht,r=Fn,n=this,i="parser.js: Parser(): ",s=function(){this.state=t.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=t.ACTIVE,this.phraseLength=0}};n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let a=0,o=0,u=0,c=0,l=0,f,h,d,g,y=new s,v,_,b;const E=()=>{a=0,o=0,u=0,c=0,l=0,f=void 0,h=void 0,d=void 0,g=void 0,y.refresh(),v=void 0,_=void 0,b=void 0},w=()=>{const te=`${i}initializeCallbacks(): `;let re;for(v=[],_=[],re=0;re<f.length;re+=1)v[re]=void 0;for(re=0;re<h.length;re+=1)_[re]=void 0;let L;const K=[];for(re=0;re<f.length;re+=1)K.push(f[re].lower);for(re=0;re<h.length;re+=1)K.push(h[re].lower);for(const ne in n.callbacks)if(n.callbacks.hasOwnProperty(ne)){if(re=K.indexOf(ne.toLowerCase()),re<0)throw new Error(`${te}syntax callback '${ne}' not a rule or udt name`);if(L=n.callbacks[ne]?n.callbacks[ne]:void 0,typeof L=="function"||L===void 0)re<f.length?v[re]=L:_[re-f.length]=L;else throw new Error(`${te}syntax callback[${ne}] must be function reference or falsy)`)}};n.parse=(te,re,L,K)=>{const ne=`${i}parse(): `;E(),g=r.stringToChars(L),f=te.rules,h=te.udts;const ce=re.toLowerCase();let ue;for(const V in f)if(f.hasOwnProperty(V)&&ce===f[V].lower){ue=f[V].index;break}if(ue===void 0)throw new Error(`${ne}start rule name '${startRule}' not recognized`);w(),n.trace&&n.trace.init(f,h,g),n.stats&&n.stats.init(f,h),n.ast&&n.ast.init(f,h,g),b=K,d=[{type:t.RNM,index:ue}],Q(0,0),d=void 0;let se=!1;switch(y.state){case t.ACTIVE:throw new Error(`${ne}final state should never be 'ACTIVE'`);case t.NOMATCH:se=!1;break;case t.EMPTY:case t.MATCH:y.phraseLength===g.length?se=!0:se=!1;break;default:throw new Error("unrecognized state")}return{success:se,state:y.state,stateName:t.idName(y.state),length:g.length,matched:y.phraseLength,maxMatched:l,maxTreeDepth:u,nodeHits:c}};const S=(te,re)=>{const L=d[te];for(let K=0;K<L.children.length&&(Q(L.children[K],re),y.state===t.NOMATCH);K+=1);},A=(te,re)=>{let L,K,ne,ce;const ue=d[te];n.ast&&(K=n.ast.getLength()),L=!0,ne=re,ce=0;for(let se=0;se<ue.children.length;se+=1)if(Q(ue.children[se],ne),y.state===t.NOMATCH){L=!1;break}else ne+=y.phraseLength,ce+=y.phraseLength;L?(y.state=ce===0?t.EMPTY:t.MATCH,y.phraseLength=ce):(y.state=t.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(K))},R=(te,re)=>{let L,K,ne,ce;const ue=d[te];if(ue.max===0){y.state=t.EMPTY,y.phraseLength=0;return}for(K=re,ne=0,ce=0,n.ast&&(L=n.ast.getLength());!(K>=g.length||(Q(te+1,K),y.state===t.NOMATCH)||y.state===t.EMPTY||(ce+=1,ne+=y.phraseLength,K+=y.phraseLength,ce===ue.max)););y.state===t.EMPTY||ce>=ue.min?(y.state=ne===0?t.EMPTY:t.MATCH,y.phraseLength=ne):(y.state=t.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(L))},T=(te,re,L,K)=>{if(re.phraseLength>L){let ne=`${i}opRNM(${te.name}): callback function error: `;throw ne+=`sysData.phraseLength: ${re.phraseLength}`,ne+=` must be <= remaining chars: ${L}`,new Error(ne)}switch(re.state){case t.ACTIVE:if(!K)throw new Error(`${i}opRNM(${te.name}): callback function return error. ACTIVE state not allowed.`);break;case t.EMPTY:re.phraseLength=0;break;case t.MATCH:re.phraseLength===0&&(re.state=t.EMPTY);break;case t.NOMATCH:re.phraseLength=0;break;default:throw new Error(`${i}opRNM(${te.name}): callback function return error. Unrecognized return state: ${re.state}`)}},O=(te,re)=>{let L,K,ne;const ce=d[te],ue=f[ce.index],se=v[ue.index];if(a||(K=n.ast&&n.ast.ruleDefined(ce.index),K&&(L=n.ast.getLength(),n.ast.down(ce.index,f[ce.index].name))),se){const V=g.length-re;se(y,g,re,b),T(ue,y,V,!0),y.state===t.ACTIVE&&(ne=d,d=ue.opcodes,Q(0,re),d=ne,se(y,g,re,b),T(ue,y,V,!1))}else ne=d,d=ue.opcodes,Q(0,re),d=ne;a||K&&(y.state===t.NOMATCH?n.ast.setLength(L):n.ast.up(ce.index,ue.name,re,y.phraseLength))},D=(te,re)=>{const L=d[te];y.state=t.NOMATCH,re<g.length&&L.min<=g[re]&&g[re]<=L.max&&(y.state=t.MATCH,y.phraseLength=1)},N=(te,re)=>{const L=d[te],K=L.string.length;if(y.state=t.NOMATCH,re+K<=g.length){for(let ne=0;ne<K;ne+=1)if(g[re+ne]!==L.string[ne])return;y.state=t.MATCH,y.phraseLength=K}},$=(te,re)=>{let L;const K=d[te];y.state=t.NOMATCH;const ne=K.string.length;if(ne===0){y.state=t.EMPTY;return}if(re+ne<=g.length){for(let ce=0;ce<ne;ce+=1)if(L=g[re+ce],L>=65&&L<=90&&(L+=32),L!==K.string[ce])return;y.state=t.MATCH,y.phraseLength=ne}},M=(te,re,L)=>{if(re.phraseLength>L){let K=`${i}opUDT(${te.name}): callback function error: `;throw K+=`sysData.phraseLength: ${re.phraseLength}`,K+=` must be <= remaining chars: ${L}`,new Error(K)}switch(re.state){case t.ACTIVE:throw new Error(`${i}opUDT(${te.name}) ACTIVE state return not allowed.`);case t.EMPTY:if(te.empty)re.phraseLength=0;else throw new Error(`${i}opUDT(${te.name}) may not return EMPTY.`);break;case t.MATCH:if(re.phraseLength===0)if(te.empty)re.state=t.EMPTY;else throw new Error(`${i}opUDT(${te.name}) may not return EMPTY.`);break;case t.NOMATCH:re.phraseLength=0;break;default:throw new Error(`${i}opUDT(${te.name}): callback function return error. Unrecognized return state: ${re.state}`)}},X=(te,re)=>{let L,K,ne;const ce=d[te],ue=h[ce.index];y.UdtIndex=ue.index,a||(ne=n.ast&&n.ast.udtDefined(ce.index),ne&&(K=f.length+ce.index,L=n.ast.getLength(),n.ast.down(K,ue.name)));const se=g.length-re;_[ce.index](y,g,re,b),M(ue,y,se),a||ne&&(y.state===t.NOMATCH?n.ast.setLength(L):n.ast.up(K,ue.name,re,y.phraseLength))},ee=(te,re)=>{switch(a+=1,Q(te+1,re),a-=1,y.phraseLength=0,y.state){case t.EMPTY:y.state=t.EMPTY;break;case t.MATCH:y.state=t.EMPTY;break;case t.NOMATCH:y.state=t.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}},J=(te,re)=>{switch(a+=1,Q(te+1,re),a-=1,y.phraseLength=0,y.state){case t.EMPTY:case t.MATCH:y.state=t.NOMATCH;break;case t.NOMATCH:y.state=t.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}},Q=(te,re)=>{const L=`${i}opExecute(): `,K=d[te];switch(c+=1,o>u&&(u=o),o+=1,y.refresh(),n.trace&&n.trace.down(K,re),K.type){case t.ALT:S(te,re);break;case t.CAT:A(te,re);break;case t.REP:R(te,re);break;case t.RNM:O(te,re);break;case t.TRG:D(te,re);break;case t.TBS:N(te,re);break;case t.TLS:$(te,re);break;case t.UDT:X(te,re);break;case t.AND:ee(te,re);break;case t.NOT:J(te,re);break;default:throw new Error(`${L}unrecognized operator`)}a||re+y.phraseLength>l&&(l=re+y.phraseLength),n.stats&&n.stats.collect(K,y),n.trace&&n.trace.up(K,y.state,re,y.phraseLength),o-=1}},TC=function(){const t="parser.js: Ast()): ",r=ht,n=Fn,i=this;let s,a,o,u=0;const c=[],l=[],f=[];i.callbacks=[],i.init=(d,g,y)=>{l.length=0,f.length=0,u=0,s=d,a=g,o=y;let v;const _=[];for(v=0;v<s.length;v+=1)_.push(s[v].lower);for(v=0;v<a.length;v+=1)_.push(a[v].lower);for(u=s.length+a.length,v=0;v<u;v+=1)c[v]=void 0;for(const b in i.callbacks)if(i.callbacks.hasOwnProperty(b)){const E=b.toLowerCase();if(v=_.indexOf(E),v<0)throw new Error(`${t}init: node '${b}' not a rule or udt name`);c[v]=i.callbacks[b]}},i.ruleDefined=d=>!!c[d],i.udtDefined=d=>!!c[s.length+d],i.down=(d,g)=>{const y=f.length;return l.push(y),f.push({name:g,thisIndex:y,thatIndex:void 0,state:r.SEM_PRE,callbackIndex:d,phraseIndex:void 0,phraseLength:void 0,stack:l.length}),y},i.up=(d,g,y,v)=>{const _=f.length,b=l.pop();return f.push({name:g,thisIndex:_,thatIndex:b,state:r.SEM_POST,callbackIndex:d,phraseIndex:y,phraseLength:v,stack:l.length}),f[b].thatIndex=_,f[b].phraseIndex=y,f[b].phraseLength=v,_},i.translate=d=>{let g,y;for(let v=0;v<f.length;v+=1)y=f[v],g=c[y.callbackIndex],g&&(y.state===r.SEM_PRE?g(r.SEM_PRE,o,y.phraseIndex,y.phraseLength,d):g&&g(r.SEM_POST,o,y.phraseIndex,y.phraseLength,d))},i.setLength=d=>{f.length=d,d>0?l.length=f[d-1].stack:l.length=0},i.getLength=()=>f.length;function h(d){let g="";for(;d-- >0;)g+=" ";return g}i.toXml=()=>{let d="",g=0;return d+=`<?xml version="1.0" encoding="utf-8"?>
122
+ `,d+=`<root nodes="${f.length/2}" characters="${o.length}">
123
+ `,d+=`<!-- input string -->
124
+ `,d+=h(g+2),d+=n.charsToString(o),d+=`
125
+ `,f.forEach(y=>{y.state===r.SEM_PRE?(g+=1,d+=h(g),d+=`<node name="${y.name}" index="${y.phraseIndex}" length="${y.phraseLength}">
126
+ `,d+=h(g+2),d+=n.charsToString(o,y.phraseIndex,y.phraseLength),d+=`
127
+ `):(d+=h(g),d+=`</node><!-- name="${y.name}" -->
128
+ `,g-=1)}),d+=`</root>
129
+ `,d}},rue=function(){const t=ht,r=Fn,n="parser.js: Trace(): ";let i,s,a,o="",u=0;const c=100,l=this,f=d=>{let g="",y=0;if(d>=0)for(;d--;)y+=1,y===5?(g+="|",y=0):g+=".";return g};l.init=(d,g,y)=>{s=d,a=g,i=y};const h=d=>{let g;switch(d.type){case t.ALT:g="ALT";break;case t.CAT:g="CAT";break;case t.REP:d.max===1/0?g=`REP(${d.min},inf)`:g=`REP(${d.min},${d.max})`;break;case t.RNM:g=`RNM(${s[d.index].name})`;break;case t.TRG:g=`TRG(${d.min},${d.max})`;break;case t.TBS:d.string.length>6?g=`TBS(${r.charsToString(d.string,0,3)}...)`:g=`TBS(${r.charsToString(d.string,0,6)})`;break;case t.TLS:d.string.length>6?g=`TLS(${r.charsToString(d.string,0,3)}...)`:g=`TLS(${r.charsToString(d.string,0,6)})`;break;case t.UDT:g=`UDT(${a[d.index].name})`;break;case t.AND:g="AND";break;case t.NOT:g="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return g};l.down=(d,g)=>{const y=f(u),v=Math.min(c,i.length-g);let _=r.charsToString(i,g,v);v<i.length-g&&(_+="..."),_=`${y}|-|[${h(d)}]${_}
130
+ `,o+=_,u+=1},l.up=(d,g,y,v)=>{const _=`${n}trace.up: `;u-=1;const b=f(u);let E,w,S;switch(g){case t.EMPTY:S="|E|",w="''";break;case t.MATCH:S="|M|",E=Math.min(c,v),E<v?w=`'${r.charsToString(i,y,E)}...'`:w=`'${r.charsToString(i,y,E)}'`;break;case t.NOMATCH:S="|N|",w="";break;default:throw new Error(`${_} unrecognized state`)}w=`${b}${S}[${h(d)}]${w}
131
+ `,o+=w},l.displayTrace=()=>o},nue=function(){const t=ht,r="parser.js: Stats(): ";let n,i,s;const a=[],o=[],u=[];this.init=(v,_)=>{n=v,i=_,g()},this.collect=(v,_)=>{y(s,_.state,_.phraseLength),y(a[v.type],_.state,_.phraseLength),v.type===t.RNM&&y(o[v.index],_.state,_.phraseLength),v.type===t.UDT&&y(u[v.index],_.state,_.phraseLength)},this.displayStats=()=>{let v="";const _={match:0,empty:0,nomatch:0,total:0},b=(E,w,S,A,R)=>{_.match+=w,_.empty+=S,_.nomatch+=A,_.total+=R;const T=c(w),O=c(S),D=c(A),N=c(R);return`${E} | ${T} | ${O} | ${D} | ${N} |
132
+ `};return v+=` OPERATOR STATS
133
+ `,v+=` | MATCH | EMPTY | NOMATCH | TOTAL |
134
+ `,v+=b(" ALT",a[t.ALT].match,a[t.ALT].empty,a[t.ALT].nomatch,a[t.ALT].total),v+=b(" CAT",a[t.CAT].match,a[t.CAT].empty,a[t.CAT].nomatch,a[t.CAT].total),v+=b(" REP",a[t.REP].match,a[t.REP].empty,a[t.REP].nomatch,a[t.REP].total),v+=b(" RNM",a[t.RNM].match,a[t.RNM].empty,a[t.RNM].nomatch,a[t.RNM].total),v+=b(" TRG",a[t.TRG].match,a[t.TRG].empty,a[t.TRG].nomatch,a[t.TRG].total),v+=b(" TBS",a[t.TBS].match,a[t.TBS].empty,a[t.TBS].nomatch,a[t.TBS].total),v+=b(" TLS",a[t.TLS].match,a[t.TLS].empty,a[t.TLS].nomatch,a[t.TLS].total),v+=b(" UDT",a[t.UDT].match,a[t.UDT].empty,a[t.UDT].nomatch,a[t.UDT].total),v+=b(" AND",a[t.AND].match,a[t.AND].empty,a[t.AND].nomatch,a[t.AND].total),v+=b(" NOT",a[t.NOT].match,a[t.NOT].empty,a[t.NOT].nomatch,a[t.NOT].total),v+=b("TOTAL",_.match,_.empty,_.nomatch,_.total),v},this.displayHits=v=>{let _="";const b=(E,w,S,A,R)=>{s.match+=E,s.empty+=w,s.nomatch+=S,s.total+=A;const T=c(E),O=c(w),D=c(S),N=c(A);return`| ${T} | ${O} | ${D} | ${N} | ${R}
135
+ `};typeof v=="string"&&v.toLowerCase()[0]==="a"?(o.sort(l),u.sort(l),_+=` RULES/UDTS ALPHABETICALLY
136
+ `):typeof v=="string"&&v.toLowerCase()[0]==="i"?(o.sort(h),u.sort(h),_+=` RULES/UDTS BY INDEX
137
+ `):(o.sort(f),u.sort(f),_+=` RULES/UDTS BY HIT COUNT
138
+ `),_+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME
139
+ `;for(let E=0;E<o.length;E+=1){let w=o[E];w.total&&(_+=b(w.match,w.empty,w.nomatch,w.total,w.name))}for(let E=0;E<u.length;E+=1){let w=u[E];w.total&&(_+=b(w.match,w.empty,w.nomatch,w.total,w.name))}return _};const c=v=>v<10?` ${v}`:v<100?` ${v}`:v<1e3?` ${v}`:v<1e4?` ${v}`:v<1e5?` ${v}`:v<1e6?` ${v}`:`${v}`,l=(v,_)=>v.lower<_.lower?-1:v.lower>_.lower?1:0,f=(v,_)=>v.total<_.total?1:v.total>_.total?-1:l(v,_),h=(v,_)=>v.index<_.index?-1:v.index>_.index?1:0,d=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},g=()=>{a.length=0,s=new d,a[t.ALT]=new d,a[t.CAT]=new d,a[t.REP]=new d,a[t.RNM]=new d,a[t.TRG]=new d,a[t.TBS]=new d,a[t.TLS]=new d,a[t.UDT]=new d,a[t.AND]=new d,a[t.NOT]=new d,o.length=0;for(let v=0;v<n.length;v+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:n[v].name,lower:n[v].lower,index:n[v].index});if(i.length>0){u.length=0;for(let v=0;v<i.length;v+=1)u.push({empty:0,match:0,nomatch:0,total:0,name:i[v].name,lower:i[v].lower,index:i[v].index})}},y=(v,_)=>{switch(v.total+=1,_){case t.EMPTY:v.empty+=1;break;case t.MATCH:v.match+=1;break;case t.NOMATCH:v.nomatch+=1;break;default:throw new Error(`${r}collect(): incStat(): unrecognized state: ${_}`)}}},Fn={stringToChars:e=>[...e].map(t=>t.codePointAt(0)),charsToString:(e,t,r)=>{let n=e;for(;!(t===void 0||t<0);){if(r===void 0){n=e.slice(t);break}if(r<=0)return"";n=e.slice(t,t+r);break}return String.fromCodePoint(...n)}},ht={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case ht.ALT:return"ALT";case ht.CAT:return"CAT";case ht.REP:return"REP";case ht.RNM:return"RNM";case ht.TRG:return"TRG";case ht.TBS:return"TBS";case ht.TLS:return"TLS";case ht.UDT:return"UDT";case ht.AND:return"AND";case ht.NOT:return"NOT";case ht.ACTIVE:return"ACTIVE";case ht.EMPTY:return"EMPTY";case ht.MATCH:return"MATCH";case ht.NOMATCH:return"NOMATCH";case ht.SEM_PRE:return"SEM_PRE";case ht.SEM_POST:return"SEM_POST";case ht.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};class $s extends Error{constructor(t,r=void 0){if(super(t,r),this.name=this.constructor.name,typeof t=="string"&&(this.message=t),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,r!=null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack}
140
+ CAUSE: ${n.stack}`)}if(r!=null&&typeof r=="object"){const{cause:n,...i}=r;Object.assign(this,i)}}}class o9 extends $s{}const nw=e=>(t,r,n,i,s)=>{if(!(typeof s=="object"&&s!==null&&!Array.isArray(s)))throw new o9("parser's user data must be an object");if(t===ht.SEM_PRE){const a={type:e,text:Fn.charsToString(r,n,i),start:n,length:i,children:[]};s.stack.length>0?s.stack[s.stack.length-1].children.push(a):s.root=a,s.stack.push(a)}t===ht.SEM_POST&&s.stack.pop()};class iue extends TC{constructor(){super(),this.callbacks["json-pointer"]=nw("json-pointer"),this.callbacks["reference-token"]=nw("reference-token"),this.callbacks.slash=nw("text")}getTree(){const t={stack:[],root:null};return this.translate(t),delete t.stack,t}}const sue=e=>{if(typeof e!="string")throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")};class aue extends iue{getTree(){const{root:t}=super.getTree();return t.children.filter(({type:r})=>r==="reference-token").map(({text:r})=>sue(r))}}class oue extends Array{toString(){return this.map(t=>`"${String(t)}"`).join(", ")}}class uue extends rue{inferExpectations(){const t=this.displayTrace().split(`
141
+ `),r=new Set;let n=-1;for(let i=0;i<t.length;i++){const s=t[i];if(s.includes("M|")){const a=s.match(/]'(.*)'$/);a&&a[1]&&(n=i)}if(i>n){const a=s.match(/N\|\[TLS\(([^)]+)\)]/);a&&r.add(a[1])}}return new oue(...r)}}const cue=new Al,lue=(e,{translator:t=new aue,stats:r=!1,trace:n=!1}={})=>{if(typeof e!="string")throw new TypeError("JSON Pointer must be a string");try{const i=new li;t&&(i.ast=t),r&&(i.stats=new nue),n&&(i.trace=new uue);const s=i.parse(cue,"json-pointer",e);return{result:s,tree:s.success&&t?i.ast.getTree():void 0,stats:i.stats,trace:i.trace}}catch(i){throw new o9("Unexpected error during JSON Pointer parsing",{cause:i,jsonPointer:e})}};new Al;new li;new Al;new li;const fue=new Al,pue=new li,due=e=>{if(typeof e!="string")return!1;try{return pue.parse(fue,"array-index",e).success}catch{return!1}},hue=new Al,mue=new li,gue=e=>{if(typeof e!="string")return!1;try{return mue.parse(hue,"array-dash",e).success}catch{return!1}},yue=e=>{if(typeof e!="string"&&typeof e!="number")throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};class vue extends $s{}const u9=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return e.length===0?"":`/${e.map(t=>{if(typeof t!="string"&&typeof t!="number")throw new TypeError("Reference token must be a string or number");return yue(String(t))}).join("/")}`}catch(t){throw new vue("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};var Tn,Ro,Io;class bue{constructor(t,r={}){as(this,Tn);as(this,Ro);as(this,Io);oo(this,Tn,t),or(this,Tn).steps=[],or(this,Tn).failed=!1,or(this,Tn).failedAt=-1,or(this,Tn).message=`JSON Pointer "${r.jsonPointer}" was successfully evaluated against the provided value`,or(this,Tn).context={...r,realm:r.realm.name},oo(this,Ro,[]),oo(this,Io,r.realm)}step({referenceToken:t,input:r,output:n,success:i=!0,reason:s}){const a=or(this,Ro).length;or(this,Ro).push(t);const o={referenceToken:t,referenceTokenPosition:a,input:r,inputType:or(this,Io).isObject(r)?"object":or(this,Io).isArray(r)?"array":"unrecognized",output:n,success:i};s&&(o.reason=s),or(this,Tn).steps.push(o),i||(or(this,Tn).failed=!0,or(this,Tn).failedAt=a,or(this,Tn).message=s)}}Tn=new WeakMap,Ro=new WeakMap,Io=new WeakMap;class c9{constructor(){Y(this,"name","")}isArray(t){throw new $s("Realm.isArray(node) must be implemented in a subclass")}isObject(t){throw new $s("Realm.isObject(node) must be implemented in a subclass")}sizeOf(t){throw new $s("Realm.sizeOf(node) must be implemented in a subclass")}has(t,r){throw new $s("Realm.has(node) must be implemented in a subclass")}evaluate(t,r){throw new $s("Realm.evaluate(node) must be implemented in a subclass")}}class Ia extends $s{}class So extends Ia{}class _ue extends c9{constructor(){super(...arguments);Y(this,"name","json")}isArray(r){return Array.isArray(r)}isObject(r){return typeof r=="object"&&r!==null&&!this.isArray(r)}sizeOf(r){return this.isArray(r)?r.length:this.isObject(r)?Object.keys(r).length:0}has(r,n){if(this.isArray(r)){const i=Number(n),s=i>>>0;if(i!==s)throw new So(`Invalid array index "${n}": index must be an unsinged 32-bit integer`,{referenceToken:n,currentValue:r,realm:this.name});return s<this.sizeOf(r)&&Object.prototype.hasOwnProperty.call(r,i)}return this.isObject(r)?Object.prototype.hasOwnProperty.call(r,n):!1}evaluate(r,n){return this.isArray(r)?r[Number(n)]:r[n]}}class Eue extends Ia{}class l9 extends Ia{}const Sue=(e,t,{strictArrays:r=!0,strictObjects:n=!0,realm:i=new _ue,trace:s=!0}={})=>{const{result:a,tree:o,trace:u}=lue(t,{trace:!!s}),c=typeof s=="object"&&s!==null?new bue(s,{jsonPointer:t,referenceTokens:o,strictArrays:r,strictObjects:n,realm:i,value:e}):null;try{let l;if(!a.success){let f=`Invalid JSON Pointer: "${t}". Syntax error at position ${a.maxMatched}`;throw f+=u?`, expected ${u.inferExpectations()}`:"",new Ia(f,{jsonPointer:t,currentValue:e,realm:i.name})}return o.reduce((f,h,d)=>{if(i.isArray(f)){if(gue(h)){if(r)throw new So(`Invalid array index "-" at position ${d} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});return l=i.evaluate(f,String(i.sizeOf(f))),c==null||c.step({referenceToken:h,input:f,output:l}),l}if(!due(h))throw new So(`Invalid array index "${h}" at position ${d} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});const g=Number(h);if(!Number.isSafeInteger(g))throw new So(`Invalid array index "${h}" at position ${d} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});if(!i.has(f,h)&&r)throw new So(`Invalid array index "${h}" at position ${d} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});return l=i.evaluate(f,h),c==null||c.step({referenceToken:h,input:f,output:l}),l}if(i.isObject(f)){if(!i.has(f,h)&&n)throw new l9(`Invalid object key "${h}" at position ${d} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});return l=i.evaluate(f,h),c==null||c.step({referenceToken:h,input:f,output:l}),l}throw new Eue(`Invalid reference token "${h}" at position ${d} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name})},e)}catch(l){throw c==null||c.step({referenceToken:l.referenceToken,input:l.currentValue,success:!1,reason:l.message}),l instanceof Ia?l:new Ia("Unexpected error during JSON Pointer evaluation",{cause:l,jsonPointer:t,referenceTokens:o})}};class wue extends c9{constructor(){super(...arguments);Y(this,"name","apidom")}isArray(r){return Wr(r)}isObject(r){return Tt(r)}sizeOf(r){return this.isArray(r)||this.isObject(r)?r.length:0}has(r,n){if(this.isArray(r)){const i=Number(n),s=i>>>0;if(i!==s)throw new So(`Invalid array index "${n}": index must be an unsinged 32-bit integer`,{referenceToken:n,currentValue:r,realm:this.name});return s<this.sizeOf(r)}if(this.isObject(r)){const i=r.keys(),s=new Set(i);if(i.length!==s.size)throw new l9(`Object key "${n}" is not unique — JSON Pointer requires unique member names`,{referenceToken:n,currentValue:r,realm:this.name});return r.hasKey(n)}return!1}evaluate(r,n){return this.isArray(r)?r.get(Number(n)):r.get(n)}}const bi=(e,t,r={})=>Sue(e,t,{...r,realm:new wue});class jC extends yae{filterByFormat(t="generic"){const r=t==="generic"?"openapi;version":t;return this.filter(n=>n.includes(r))}findBy(t="3.1.0",r="generic"){const n=r==="generic"?`vnd.oai.openapi;version=${t}`:`vnd.oai.openapi+${r};version=${t}`;return this.find(s=>s.includes(n))||this.unknownMediaType}latest(t="generic"){return Eh(this.filterByFormat(t))}}const Wo=new jC("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");let Ol=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="callback"}},Cl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="components"}get schemas(){return this.get("schemas")}set schemas(t){this.set("schemas",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get requestBodies(){return this.get("requestBodies")}set requestBodies(t){this.set("requestBodies",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(t){this.set("securitySchemes",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}},Rl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="contact"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}get email(){return this.get("email")}set email(t){this.set("email",t)}},Il=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(t){this.set("propertyName",t)}get mapping(){return this.get("mapping")}set mapping(t){this.set("mapping",t)}},Nh=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(t){this.set("contentType",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(t){this.set("allowedReserved",t)}},Tl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="example"}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get value(){return this.get("value")}set value(t){this.set("value",t)}get externalValue(){return this.get("externalValue")}set externalValue(t){this.set("externalValue",t)}},jl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(t){this.set("description",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}},du=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ye.BooleanElement(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ye.BooleanElement(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}};Object.defineProperty(du.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let Pl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get termsOfService(){return this.get("termsOfService")}set termsOfService(t){this.set("termsOfService",t)}get contact(){return this.get("contact")}set contact(t){this.set("contact",t)}get license(){return this.get("license")}set license(t){this.set("license",t)}get version(){return this.get("version")}set version(t){this.set("version",t)}},kl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="license"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}},Nl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(t){this.set("operationRef",t)}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get operation(){if(st(this.operationRef)){var t;return(t=this.operationRef)===null||t===void 0?void 0:t.meta.get("operation")}if(st(this.operationId)){var r;return(r=this.operationId)===null||r===void 0?void 0:r.meta.get("operation")}}set operation(t){this.set("operation",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get server(){return this.get("server")}set server(t){this.set("server",t)}},Ml=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="mediaType"}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get encoding(){return this.get("encoding")}set encoding(t){this.set("encoding",t)}},Mh=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(t){this.set("authorizationUrl",t)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(t){this.set("tokenUrl",t)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(t){this.set("refreshUrl",t)}get scopes(){return this.get("scopes")}set scopes(t){this.set("scopes",t)}},Dh=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(t){this.set("implicit",t)}get password(){return this.get("password")}set password(t){this.set("password",t)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(t){this.set("clientCredentials",t)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(t){this.set("authorizationCode",t)}},Dl=class extends ye.StringElement{constructor(t,r,n){super(t,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};class qh extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}let ql=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="operation"}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}set externalDocs(t){this.set("externalDocs",t)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ye.BooleanElement(!1)}set deprecated(t){this.set("deprecated",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get servers(){return this.get("severs")}set servers(t){this.set("servers",t)}},hu=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="parameter"}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get required(){return this.hasKey("required")?this.get("required"):new ye.BooleanElement(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ye.BooleanElement(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}};Object.defineProperty(hu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let $l=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get GET(){return this.get("get")}set GET(t){this.set("GET",t)}get PUT(){return this.get("put")}set PUT(t){this.set("PUT",t)}get POST(){return this.get("post")}set POST(t){this.set("POST",t)}get DELETE(){return this.get("delete")}set DELETE(t){this.set("DELETE",t)}get OPTIONS(){return this.get("options")}set OPTIONS(t){this.set("OPTIONS",t)}get HEAD(){return this.get("head")}set HEAD(t){this.set("HEAD",t)}get PATCH(){return this.get("patch")}set PATCH(t){this.set("PATCH",t)}get TRACE(){return this.get("trace")}set TRACE(t){this.set("TRACE",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}},Fl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="paths"}},Bl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}},Ll=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="requestBody"}get description(){return this.get("description")}set description(t){this.set("description",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get required(){return this.hasKey("required")?this.get("required"):new ye.BooleanElement(!1)}set required(t){this.set("required",t)}},Ul=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="response"}get description(){return this.get("description")}set description(t){this.set("description",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}},Vl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="responses"}get default(){return this.get("default")}set default(t){this.set("default",t)}},mu=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(t){this.set("id",t)}get $schema(){return this.get("$schema")}set $schema(t){this.set("$schema",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get dependencies(){return this.get("dependencies")}set dependencies(t){this.set("dependencies",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get definitions(){return this.get("definitions")}set definitions(t){this.set("definitions",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get base(){return this.get("base")}set base(t){this.set("base",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get media(){return this.get("media")}set media(t){this.set("media",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}};class gu extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}}class zl extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(t){this.set("binaryEncoding",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}}let Wl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="linkDescription"}get href(){return this.get("href")}set href(t){this.set("href",t)}get rel(){return this.get("rel")}set rel(t){this.set("rel",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get mediaType(){return this.get("mediaType")}set mediaType(t){this.set("mediaType",t)}get method(){return this.get("method")}set method(t){this.set("method",t)}get encType(){return this.get("encType")}set encType(t){this.set("encType",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}};const xue={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",mu),t.register("jSONReference",gu),t.register("media",zl),t.register("linkDescription",Wl),t}},Jl=e=>{if(yr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Aue={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Zi};let f9=class{constructor(t){Y(this,"element");Object.assign(this,t)}copyMetaAndAttributes(t,r){(t.meta.length>0||r.meta.length>0)&&(r.meta=ni(r.meta,t.meta),Sl(t)&&r.meta.set("sourceMap",t.meta.get("sourceMap"))),(t.attributes.length>0||t.meta.length>0)&&(r.attributes=ni(r.attributes,t.attributes))}},jt=class extends f9{enter(t){return this.element=Je(t),xt}};const p9=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let i of r)delete n[i];Object.defineProperties(e,n)},xc=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return r===null?t:xc(r,[...t,r])},Oue=(...e)=>{if(e.length===0)return;let t;const r=e.map(n=>xc(n));for(;r.every(n=>n.length>0);){const n=r.map(s=>s.pop()),i=n[0];if(n.every(s=>s===i))t=i;else break}return t},kF=(e,t,r=[])=>{var n;const i=(n=Oue(...e))!==null&&n!==void 0?n:Object.prototype,s=Object.create(i),a=xc(i);for(let o of e){let u=xc(o);for(let c=u.length-1;c>=0;c--){let l=u[c];a.indexOf(l)===-1&&(p9(s,l,["constructor",...r]),a.push(l))}}return s.constructor=t,s},Dx=e=>e.filter((t,r)=>e.indexOf(t)==r),d9=new WeakMap,Cue=e=>d9.get(e),Rue=(e,t)=>d9.set(e,t),NF=(e,t)=>{var r,n;const i=Dx([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),s={};for(let a of i)s[a]=Dx([...(r=e==null?void 0:e[a])!==null&&r!==void 0?r:[],...(n=t==null?void 0:t[a])!==null&&n!==void 0?n:[]]);return s},MF=(e,t)=>{var r,n,i,s;return{property:NF((r=e==null?void 0:e.property)!==null&&r!==void 0?r:{},(n=t==null?void 0:t.property)!==null&&n!==void 0?n:{}),method:NF((i=e==null?void 0:e.method)!==null&&i!==void 0?i:{},(s=t==null?void 0:t.method)!==null&&s!==void 0?s:{})}},Iue=(e,t)=>{var r,n,i,s,a,o;return{class:Dx([...(r=e==null?void 0:e.class)!==null&&r!==void 0?r:[],...(n=t==null?void 0:t.class)!==null&&n!==void 0?n:[]]),static:MF((i=e==null?void 0:e.static)!==null&&i!==void 0?i:{},(s=t==null?void 0:t.static)!==null&&s!==void 0?s:{}),instance:MF((a=e==null?void 0:e.instance)!==null&&a!==void 0?a:{},(o=t==null?void 0:t.instance)!==null&&o!==void 0?o:{})}},Tue=new Map,jue=(...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let i of n){const s=xc(i.prototype).map(c=>c.constructor),a=(t=Cue(i))!==null&&t!==void 0?t:[],u=[...s,...a].filter(c=>!r.has(c));for(let c of u)n.add(c);r.add(i),n.delete(i)}return[...r]},Pue=(...e)=>{const t=jue(...e).map(r=>Tue.get(r)).filter(r=>!!r);return t.length==0?{}:t.length==1?t[0]:t.reduce((r,n)=>Iue(r,n))};function qe(...e){var t,r,n;const i=e.map(o=>o.prototype);function s(...o){for(const u of e)p9(this,new u(...o))}s.prototype=kF(i,s),Object.setPrototypeOf(s,kF(e,null,["prototype"]));let a=s;{const o=Pue(...e);for(let u of(t=o==null?void 0:o.class)!==null&&t!==void 0?t:[]){const c=u(a);c&&(a=c)}DF((r=o==null?void 0:o.static)!==null&&r!==void 0?r:{},a),DF((n=o==null?void 0:o.instance)!==null&&n!==void 0?n:{},a.prototype)}return Rue(a,e),a}const DF=(e,t)=>{const r=e.property,n=e.method;if(r)for(let i in r)for(let s of r[i])s(t,i);if(n)for(let i in n)for(let s of n[i])s(t,i,Object.getOwnPropertyDescriptor(t,i))};let Bn=class extends f9{constructor({specObj:r,...n}){super({...n});Y(this,"specObj");Y(this,"passingOptionsNames",["specObj","parent"]);this.specObj=r}retrievePassingOptions(){return UU(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=Nr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return wh(Ka,["visitors",...r],this.specObj)?Nr(["visitors",...r],this.specObj):Nr(["visitors",...r,"$visitor"],this.specObj)}retrieveVisitorInstance(r,n={}){const i=this.retrievePassingOptions(),s=this.retrieveVisitor(r),a={...i,...n};return new s(a)}toRefractedElement(r,n,i={}){const s=this.retrieveVisitorInstance(r,i);return s instanceof jt&&(s==null?void 0:s.constructor)===jt?Je(n):(Ar(n,s,i),s.element)}},Pa=class extends Bn{constructor({specPath:r,ignoredFields:n,...i}){super({...i});Y(this,"specPath");Y(this,"ignoredFields");this.specPath=r,this.ignoredFields=n||[]}ObjectElement(r){const n=this.specPath(r),i=this.retrieveFixedFields(n);return r.forEach((s,a,o)=>{if(st(a)&&i.includes(Re(a))&&!this.ignoredFields.includes(Re(a))){const u=this.toRefractedElement([...n,"fixedFields",Re(a)],s),c=new ye.MemberElement(Je(a),u);this.copyMetaAndAttributes(o,c),c.classes.push("fixed-field"),this.element.content.push(c)}else this.ignoredFields.includes(Re(a))||this.element.content.push(Je(o))}),this.copyMetaAndAttributes(r,this.element),xt}};class Or{constructor({parent:t}){Y(this,"parent");this.parent=t}}const h9=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mu||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n)),PC=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gu||e(n)&&t("JSONReference",n)&&r("object",n)),m9=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zl||e(n)&&t("media",n)&&r("object",n)),kue=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wl||e(n)&&t("linkDescription",n)&&r("object",n)),Nue=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:PC,isJSONSchemaElement:h9,isLinkDescriptionElement:kue,isMediaElement:m9},Symbol.toStringTag,{value:"Module"}));let g9=class extends qe(Pa,Or,jt){constructor(t){super(t),this.element=new mu,this.specPath=it(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(t){return this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,Pa.prototype.ObjectElement.call(this,t)}handleDialectIdentifier(t){if(ra(this.parent)&&!st(t.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(h9(this.parent)&&!st(t.get("$schema"))){const r=Lo(Re(this.parent.meta.get("inheritedDialectIdentifier")),Re(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(t,r="id"){const n=this.parent!==void 0?Je(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ye.ArrayElement,i=Re(t.get(r));Ah(i)&&n.push(i),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}};const Ki=e=>Tt(e)&&e.hasKey("$ref");let y9=class extends qe(Bn,Or,jt){ObjectElement(t){const r=Ki(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,t),xt}ArrayElement(t){return this.element=new ye.ArrayElement,this.element.classes.push("json-schema-items"),t.forEach(r=>{const n=Ki(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),xt}};class Mue extends jt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-required"),r}}let Due=class extends Bn{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:i,...s}){super({...s});Y(this,"specPath");Y(this,"ignoredFields");Y(this,"fieldPatternPredicate",K2);this.specPath=r,this.ignoredFields=n||[],typeof i=="function"&&(this.fieldPatternPredicate=i)}ObjectElement(r){return r.forEach((n,i,s)=>{if(!this.ignoredFields.includes(Re(i))&&this.fieldPatternPredicate(Re(i))){const a=this.specPath(n),o=this.toRefractedElement(a,n),u=new ye.MemberElement(Je(i),o);this.copyMetaAndAttributes(s,u),u.classes.push("patterned-field"),this.element.content.push(u)}else this.ignoredFields.includes(Re(i))||this.element.content.push(Je(s))}),this.copyMetaAndAttributes(r,this.element),xt}},ia=class extends Due{constructor(t){super(t),this.fieldPatternPredicate=Ah}},que=class extends qe(ia,Or,jt){constructor(t){super(t),this.element=new ye.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=r=>Ki(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}},$ue=class extends qe(ia,Or,jt){constructor(t){super(t),this.element=new ye.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>Ki(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class Fue extends qe(ia,Or,jt){constructor(t){super(t),this.element=new ye.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>Ki(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class Bue extends jt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-enum"),r}}let Lue=class extends jt{StringElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-type"),r}ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-type"),r}},Uue=class extends qe(Bn,Or,jt){constructor(t){super(t),this.element=new ye.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(t){return t.forEach(r=>{const n=Ki(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),xt}},Vue=class extends qe(Bn,Or,jt){constructor(t){super(t),this.element=new ye.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(t){return t.forEach(r=>{const n=Ki(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),xt}},zue=class extends qe(Bn,Or,jt){constructor(t){super(t),this.element=new ye.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(t){return t.forEach(r=>{const n=Ki(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),xt}};class Wue extends qe(ia,Or,jt){constructor(t){super(t),this.element=new ye.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=r=>Ki(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let Jue=class extends qe(Bn,Or,jt){constructor(t){super(t),this.element=new ye.ArrayElement,this.element.classes.push("json-schema-links")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","LinkDescription"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),xt}};class Kue extends qe(Pa,jt){constructor(t){super(t),this.element=new gu,this.specPath=it(["document","objects","JSONReference"])}ObjectElement(t){const r=Pa.prototype.ObjectElement.call(this,t);return st(this.element.$ref)&&this.element.classes.push("reference-element"),r}}let Hue=class extends jt{StringElement(t){const r=this.enter(t);return this.element.classes.push("reference-value"),r}},Gue=class extends Bn{constructor({alternator:r,...n}){super({...n});Y(this,"alternator");this.alternator=r}enter(r){const n=this.alternator.map(({predicate:s,specPath:a})=>nC(s,it(a),xh)),i=ZU(n)(r);return this.element=this.toRefractedElement(i,r),xt}},fo=class extends Gue{constructor(t){super(t),this.alternator=[{predicate:Ki,specPath:["document","objects","JSONReference"]},{predicate:Ss,specPath:["document","objects","JSONSchema"]}]}};class Yue extends qe(Pa,jt){constructor(t){super(t),this.element=new zl,this.specPath=it(["document","objects","Media"])}}let v9=class extends qe(Pa,jt){constructor(t){super(t),this.element=new Wl,this.specPath=it(["document","objects","LinkDescription"])}};const Br={visitors:{value:jt,JSONSchemaOrJSONReferenceVisitor:fo,document:{objects:{JSONSchema:{$visitor:g9,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:fo,items:y9,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Mue,properties:que,additionalProperties:fo,patternProperties:$ue,dependencies:Fue,enum:Bue,type:Lue,allOf:Uue,anyOf:Vue,oneOf:zue,not:fo,definitions:Wue,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Jue,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Kue,fixedFields:{$ref:Hue}},Media:{$visitor:Yue,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:v9,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:fo,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:fo}}}}}},Xue=()=>{const e=xs(xue);return{predicates:{...Nue,isStringElement:st},namespace:e}},Zue=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Br}={})=>{const i=ye.refract(e),s=na(n),a=Nr(t,s),o=new a({specObj:s});return Ar(i,o),Qi(o.element,r,{toolboxCreator:Xue,visitorOptions:{keyMap:Aue,nodeTypeGetter:Jl}})},$h=e=>(t,r={})=>Zue(t,{specPath:e,...r});mu.refract=$h(["visitors","document","objects","JSONSchema","$visitor"]);gu.refract=$h(["visitors","document","objects","JSONReference","$visitor"]);zl.refract=$h(["visitors","document","objects","Media","$visitor"]);Wl.refract=$h(["visitors","document","objects","LinkDescription","$visitor"]);let Fh=class extends mu{constructor(t,r,n){super(t,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new bt("idProp getter in Schema class is not not supported.")}set idProp(t){throw new bt("idProp setter in Schema class is not not supported.")}get $schema(){throw new bt("$schema getter in Schema class is not not supported.")}set $schema(t){throw new bt("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get patternProperties(){throw new bt("patternProperties getter in Schema class is not not supported.")}set patternProperties(t){throw new bt("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new bt("dependencies getter in Schema class is not not supported.")}set dependencies(t){throw new bt("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(t){this.set("type",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get definitions(){throw new bt("definitions getter in Schema class is not not supported.")}set definitions(t){throw new bt("definitions setter in Schema class is not not supported.")}get base(){throw new bt("base getter in Schema class is not not supported.")}set base(t){throw new bt("base setter in Schema class is not not supported.")}get links(){throw new bt("links getter in Schema class is not not supported.")}set links(t){throw new bt("links setter in Schema class is not not supported.")}get media(){throw new bt("media getter in Schema class is not not supported.")}set media(t){throw new bt("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(t){this.set("nullable",t)}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}},Kl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="securityRequirement"}},Hl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="securityScheme"}get type(){return this.get("type")}set type(t){this.set("type",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get scheme(){return this.get("scheme")}set scheme(t){this.set("scheme",t)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(t){this.set("bearerFormat",t)}get flows(){return this.get("flows")}set flows(t){this.set("flows",t)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(t){this.set("openIdConnectUrl",t)}},Gl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="server"}get url(){return this.get("url")}set url(t){this.set("url",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get variables(){return this.get("variables")}set variables(t){this.set("variables",t)}},Yl=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}},Bh=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="tag"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}},Lh=class extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="xml"}get name(){return this.get("name")}set name(t){this.set("name",t)}get namespace(){return this.get("namespace")}set namespace(t){this.set("namespace",t)}get prefix(){return this.get("prefix")}set prefix(t){this.set("prefix",t)}get attribute(){return this.get("attribute")}set attribute(t){this.set("attribute",t)}get wrapped(){return this.get("wrapped")}set wrapped(t){this.set("wrapped",t)}};const Que={namespace:e=>{const{base:t}=e;return t.register("callback",Ol),t.register("components",Cl),t.register("contact",Rl),t.register("discriminator",Il),t.register("encoding",Nh),t.register("example",Tl),t.register("externalDocumentation",jl),t.register("header",du),t.register("info",Pl),t.register("license",kl),t.register("link",Nl),t.register("mediaType",Ml),t.register("oAuthFlow",Mh),t.register("oAuthFlows",Dh),t.register("openapi",Dl),t.register("openApi3_0",qh),t.register("operation",ql),t.register("parameter",hu),t.register("pathItem",$l),t.register("paths",Fl),t.register("reference",Bl),t.register("requestBody",Ll),t.register("response",Ul),t.register("responses",Vl),t.register("schema",Fh),t.register("securityRequirement",Kl),t.register("securityScheme",Hl),t.register("server",Gl),t.register("serverVariable",Yl),t.register("tag",Bh),t.register("xml",Lh),t}},ad=class ad extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(ad.primaryClass)}};Y(ad,"primaryClass","servers");let Gp=ad;const od=class od extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(od.primaryClass)}};Y(od,"primaryClass","security");let qx=od;const ud=class ud extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(ud.primaryClass)}};Y(ud,"primaryClass","tags");let $x=ud;const cd=class cd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(cd.primaryClass)}};Y(cd,"primaryClass","server-variables");let Fx=cd;const ld=class ld extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(ld.primaryClass)}};Y(ld,"primaryClass","components-schemas");let Yp=ld;const fd=class fd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(fd.primaryClass)}};Y(fd,"primaryClass","components-responses");let Bx=fd;const pd=class pd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(pd.primaryClass),this.classes.push("parameters")}};Y(pd,"primaryClass","components-parameters");let Lx=pd;const dd=class dd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(dd.primaryClass),this.classes.push("examples")}};Y(dd,"primaryClass","components-examples");let Ux=dd;const hd=class hd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(hd.primaryClass)}};Y(hd,"primaryClass","components-request-bodies");let Vx=hd;const md=class md extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(md.primaryClass)}};Y(md,"primaryClass","components-headers");let zx=md;const gd=class gd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(gd.primaryClass)}};Y(gd,"primaryClass","components-security-schemes");let Wx=gd;const yd=class yd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(yd.primaryClass)}};Y(yd,"primaryClass","components-links");let Jx=yd;const vd=class vd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(vd.primaryClass)}};Y(vd,"primaryClass","components-callbacks");let Kx=vd;const bd=class bd extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(bd.primaryClass),this.classes.push("servers")}};Y(bd,"primaryClass","path-item-servers");let Hx=bd;const _d=class _d extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(_d.primaryClass),this.classes.push("parameters")}};Y(_d,"primaryClass","path-item-parameters");let Gx=_d;const Ed=class Ed extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ed.primaryClass),this.classes.push("parameters")}};Y(Ed,"primaryClass","operation-parameters");let Xp=Ed;const Sd=class Sd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Sd.primaryClass),this.classes.push("examples")}};Y(Sd,"primaryClass","parameter-examples");let Yx=Sd;const wd=class wd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(wd.primaryClass),this.classes.push("content")}};Y(wd,"primaryClass","parameter-content");let Xx=wd;const xd=class xd extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(xd.primaryClass)}};Y(xd,"primaryClass","operation-tags");let Zx=xd;const Ad=class Ad extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ad.primaryClass)}};Y(Ad,"primaryClass","operation-callbacks");let Qx=Ad;const Od=class Od extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Od.primaryClass),this.classes.push("security")}};Y(Od,"primaryClass","operation-security");let Zp=Od;var wa;let ece=(wa=class extends ye.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(wa.primaryClass),this.classes.push("servers")}},Y(wa,"primaryClass","operation-servers"),wa);const Cd=class Cd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Cd.primaryClass),this.classes.push("content")}};Y(Cd,"primaryClass","request-body-content");let eA=Cd;const Rd=class Rd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Rd.primaryClass),this.classes.push("examples")}};Y(Rd,"primaryClass","media-type-examples");let tA=Rd;const Id=class Id extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Id.primaryClass)}};Y(Id,"primaryClass","media-type-encoding");let rA=Id;const Td=class Td extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Td.primaryClass)}};Y(Td,"primaryClass","encoding-headers");let nA=Td;const jd=class jd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(jd.primaryClass)}};Y(jd,"primaryClass","response-headers");let iA=jd;const Pd=class Pd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Pd.primaryClass),this.classes.push("content")}};Y(Pd,"primaryClass","response-content");let sA=Pd;const kd=class kd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(kd.primaryClass)}};Y(kd,"primaryClass","response-links");let aA=kd;const Nd=class Nd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Nd.primaryClass)}};Y(Nd,"primaryClass","discriminator-mapping");let oA=Nd;const Md=class Md extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Md.primaryClass)}};Y(Md,"primaryClass","oauth-flow-scopes");let uA=Md;const Dd=class Dd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Dd.primaryClass)}};Y(Dd,"primaryClass","link-parameters");let cA=Dd;const qd=class qd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(qd.primaryClass),this.classes.push("examples")}};Y(qd,"primaryClass","header-examples");let lA=qd;const $d=class $d extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push($d.primaryClass),this.classes.push("content")}};Y($d,"primaryClass","header-content");let fA=$d;const tce=e=>{if(yr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},rce={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Zi};class b9{constructor(t={}){Y(this,"element");Object.assign(this,t)}copyMetaAndAttributes(t,r){(t.meta.length>0||r.meta.length>0)&&(r.meta=ni(r.meta,t.meta),Sl(t)&&r.meta.set("sourceMap",t.meta.get("sourceMap"))),(t.attributes.length>0||t.meta.length>0)&&(r.attributes=ni(r.attributes,t.attributes))}}class Be extends b9{enter(t){return this.element=Je(t),xt}}class Ti extends b9{constructor({specObj:r,passingOptionsNames:n,openApiGenericElement:i,openApiSemanticElement:s,...a}){super({...a});Y(this,"specObj");Y(this,"passingOptionsNames",["specObj","openApiGenericElement","openApiSemanticElement"]);Y(this,"openApiGenericElement");Y(this,"openApiSemanticElement");this.specObj=r,this.openApiGenericElement=i,this.openApiSemanticElement=s,Array.isArray(n)&&(this.passingOptionsNames=n)}retrievePassingOptions(){return UU(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=Nr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return wh(Ka,["visitors",...r],this.specObj)?Nr(["visitors",...r],this.specObj):Nr(["visitors",...r,"$visitor"],this.specObj)}retrieveVisitorInstance(r,n={}){const i=this.retrievePassingOptions(),s=this.retrieveVisitor(r),a={...i,...n};return new s(a)}toRefractedElement(r,n,i={}){const s=this.retrieveVisitorInstance(r,i);return s instanceof Be&&(s==null?void 0:s.constructor)===Be?Je(n):(Ar(n,s,i),s.element)}}const er=e=>Tt(e)&&e.hasKey("$ref"),nce=Tt,ice=Tt,_9=e=>st(e.key)&&Jie("x-",Re(e.key));class mt extends Ti{constructor({specPath:r,ignoredFields:n,canSupportSpecificationExtensions:i,specificationExtensionPredicate:s,...a}){super({...a});Y(this,"specPath");Y(this,"ignoredFields");Y(this,"canSupportSpecificationExtensions",!0);Y(this,"specificationExtensionPredicate",_9);this.specPath=r,this.ignoredFields=n||[],typeof i=="boolean"&&(this.canSupportSpecificationExtensions=i),typeof s=="function"&&(this.specificationExtensionPredicate=s)}ObjectElement(r){const n=this.specPath(r),i=this.retrieveFixedFields(n);return r.forEach((s,a,o)=>{if(st(a)&&i.includes(Re(a))&&!this.ignoredFields.includes(Re(a))){const u=this.toRefractedElement([...n,"fixedFields",Re(a)],s),c=new ye.MemberElement(Je(a),u);this.copyMetaAndAttributes(o,c),c.classes.push("fixed-field"),this.element.content.push(c)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(o)){const u=this.toRefractedElement(["document","extension"],o);this.element.content.push(u)}else this.ignoredFields.includes(Re(a))||this.element.content.push(Je(o))}),this.copyMetaAndAttributes(r,this.element),xt}}class sce extends qe(mt,Be){constructor(t){super(t),this.element=new qh,this.specPath=it(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){return mt.prototype.ObjectElement.call(this,t)}}class ace extends qe(Ti,Be){StringElement(t){const r=new Dl(Re(t));return this.copyMetaAndAttributes(t,r),this.element=r,xt}}class oce extends Ti{MemberElement(t){return this.element=Je(t),this.element.classes.push("specification-extension"),xt}}let uce=class extends qe(mt,Be){constructor(t){super(t),this.element=new Pl,this.specPath=it(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};class cce extends Be{StringElement(t){const r=super.enter(t);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}}let lce=class extends qe(mt,Be){constructor(t){super(t),this.element=new Rl,this.specPath=it(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}},fce=class extends qe(mt,Be){constructor(t){super(t),this.element=new kl,this.specPath=it(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},pce=class extends qe(mt,Be){constructor(t){super(t),this.element=new Nl,this.specPath=it(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=mt.prototype.ObjectElement.call(this,t);return(st(this.element.operationId)||st(this.element.operationRef))&&this.element.classes.push("reference-element"),r}};class dce extends Be{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class hce extends Be{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class Jo extends Ti{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:i,canSupportSpecificationExtensions:s,specificationExtensionPredicate:a,...o}){super({...o});Y(this,"specPath");Y(this,"ignoredFields");Y(this,"fieldPatternPredicate",K2);Y(this,"canSupportSpecificationExtensions",!1);Y(this,"specificationExtensionPredicate",_9);this.specPath=r,this.ignoredFields=n||[],typeof i=="function"&&(this.fieldPatternPredicate=i),typeof s=="boolean"&&(this.canSupportSpecificationExtensions=s),typeof a=="function"&&(this.specificationExtensionPredicate=a)}ObjectElement(r){return r.forEach((n,i,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const a=this.toRefractedElement(["document","extension"],s);this.element.content.push(a)}else if(!this.ignoredFields.includes(Re(i))&&this.fieldPatternPredicate(Re(i))){const a=this.specPath(n),o=this.toRefractedElement(a,n),u=new ye.MemberElement(Je(i),o);this.copyMetaAndAttributes(s,u),u.classes.push("patterned-field"),this.element.content.push(u)}else this.ignoredFields.includes(Re(i))||this.element.content.push(Je(s))}),this.copyMetaAndAttributes(r,this.element),xt}}class ft extends Jo{constructor(t){super(t),this.fieldPatternPredicate=Ah}}let mce=class extends qe(ft,Be){constructor(t){super(t),this.element=new cA,this.specPath=it(["value"])}},gce=class extends qe(mt,Be){constructor(t){super(t),this.element=new Gl,this.specPath=it(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};class yce extends Be{StringElement(t){const r=super.enter(t);return this.element.classes.push("server-url"),r}}let kC=class extends qe(Ti,Be){constructor(t){super(t),this.element=new Gp}ArrayElement(t){return t.forEach(r=>{const n=nce(r)?["document","objects","Server"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),xt}},vce=class extends qe(mt,Be){constructor(t){super(t),this.element=new Yl,this.specPath=it(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};class bce extends qe(ft,Be){constructor(t){super(t),this.element=new Fx,this.specPath=it(["document","objects","ServerVariable"])}}let _ce=class extends qe(mt,Be){constructor(t){super(t),this.element=new Ml,this.specPath=it(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};class Hi extends Ti{constructor({alternator:r,...n}){super({...n});Y(this,"alternator");this.alternator=r||[]}enter(r){const n=this.alternator.map(({predicate:s,specPath:a})=>nC(s,it(a),xh)),i=ZU(n)(r);return this.element=this.toRefractedElement(i,r),xt}}const Ece=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ol||e(n)&&t("callback",n)&&r("object",n)),Sce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cl||e(n)&&t("components",n)&&r("object",n)),wce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rl||e(n)&&t("contact",n)&&r("object",n)),xce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tl||e(n)&&t("example",n)&&r("object",n)),Ace=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof jl||e(n)&&t("externalDocumentation",n)&&r("object",n)),yu=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof du||e(n)&&t("header",n)&&r("object",n)),Oce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Pl||e(n)&&t("info",n)&&r("object",n)),Cce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kl||e(n)&&t("license",n)&&r("object",n)),Rce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nl||e(n)&&t("link",n)&&r("object",n)),Ice=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dl||e(n)&&t("openapi",n)&&r("string",n)),Tce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof qh||e(i)&&t("openApi3_0",i)&&r("object",i)&&n("api",i)),E9=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ql||e(n)&&t("operation",n)&&r("object",n)),jce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hu||e(n)&&t("parameter",n)&&r("object",n)),NC=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $l||e(n)&&t("pathItem",n)&&r("object",n)),Pce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fl||e(n)&&t("paths",n)&&r("object",n)),Jt=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bl||e(n)&&t("reference",n)&&r("object",n)),kce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ll||e(n)&&t("requestBody",n)&&r("object",n)),Uh=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ul||e(n)&&t("response",n)&&r("object",n)),Nce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vl||e(n)&&t("responses",n)&&r("object",n)),Mce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fh||e(n)&&t("schema",n)&&r("object",n)),Dce=e=>El(e)&&e.classes.includes("boolean-json-schema"),qce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kl||e(n)&&t("securityRequirement",n)&&r("object",n)),$ce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hl||e(n)&&t("securityScheme",n)&&r("object",n)),Fce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gl||e(n)&&t("server",n)&&r("object",n)),Bce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yl||e(n)&&t("serverVariable",n)&&r("object",n)),Vh=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ml||e(n)&&t("mediaType",n)&&r("object",n)),S9=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof Gp||e(i)&&t("array",i)&&r("array",i)&&n("servers",i)),Lce=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Il||e(n)&&t("discriminator",n)&&r("object",n)),Uce=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:Dce,isCallbackElement:Ece,isComponentsElement:Sce,isContactElement:wce,isDiscriminatorElement:Lce,isExampleElement:xce,isExternalDocumentationElement:Ace,isHeaderElement:yu,isInfoElement:Oce,isLicenseElement:Cce,isLinkElement:Rce,isMediaTypeElement:Vh,isOpenApi3_0Element:Tce,isOpenapiElement:Ice,isOperationElement:E9,isParameterElement:jce,isPathItemElement:NC,isPathsElement:Pce,isReferenceElement:Jt,isRequestBodyElement:kce,isResponseElement:Uh,isResponsesElement:Nce,isSchemaElement:Mce,isSecurityRequirementElement:qce,isSecuritySchemeElement:$ce,isServerElement:Fce,isServerVariableElement:Bce,isServersElement:S9},Symbol.toStringTag,{value:"Module"}));let Vce=class extends qe(Hi,Be){constructor(t){super(t),this.alternator=[{predicate:er,specPath:["document","objects","Reference"]},{predicate:Ss,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=Hi.prototype.enter.call(this,t);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},MC=class extends qe(ft,Be){constructor(t){super(t),this.element=new ye.ObjectElement,this.element.classes.push("examples"),this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}},zce=class extends MC{constructor(t){super(t),this.element=new tA}},Wce=class extends qe(ft,Be){constructor(t){super(t),this.element=new rA,this.specPath=it(["document","objects","Encoding"])}},Jce=class extends qe(ft,Be){constructor(t){super(t),this.element=new Kl,this.specPath=it(["value"])}},Kce=class extends qe(Ti,Be){constructor(t){super(t),this.element=new qx}ArrayElement(t){return t.forEach(r=>{if(Tt(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(Je(r))}),this.copyMetaAndAttributes(t,this.element),xt}},Hce=class extends qe(mt,Be){constructor(t){super(t),this.element=new Cl,this.specPath=it(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}},Gce=class extends qe(mt,Be){constructor(t){super(t),this.element=new Bh,this.specPath=it(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}},Yce=class extends qe(mt,Be){constructor(t){super(t),this.element=new Bl,this.specPath=it(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(t){const r=mt.prototype.ObjectElement.call(this,t);return st(this.element.$ref)&&this.element.classes.push("reference-element"),r}},Xce=class extends Be{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}},Zce=class extends qe(mt,Be){constructor(t){super(t),this.element=new hu,this.specPath=it(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=mt.prototype.ObjectElement.call(this,t);return Tt(this.element.contentProp)&&this.element.contentProp.filter(Vh).forEach((n,i)=>{n.setMetaProperty("media-type",Re(i))}),r}},Qce=class extends qe(Hi,Be){constructor(t){super(t),this.alternator=[{predicate:er,specPath:["document","objects","Reference"]},{predicate:Ss,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=Hi.prototype.enter.call(this,t);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},ele=class extends qe(mt,Be){constructor(t){super(t),this.element=new du,this.specPath=it(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}},tle=class extends qe(Hi,Be){constructor(t){super(t),this.alternator=[{predicate:er,specPath:["document","objects","Reference"]},{predicate:Ss,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=Hi.prototype.enter.call(this,t);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},rle=class extends MC{constructor(t){super(t),this.element=new lA}},zh=class extends qe(ft,Be){constructor(t){super(t),this.element=new ye.ObjectElement,this.element.classes.push("content"),this.specPath=it(["document","objects","MediaType"])}},nle=class extends zh{constructor(t){super(t),this.element=new fA}},ile=class extends qe(mt,Be){constructor(t){super(t),this.element=new Fh,this.specPath=it(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}};const qF=Br.visitors.document.objects.JSONSchema.fixedFields.allOf;let sle=class extends qF{ArrayElement(t){const r=qF.prototype.ArrayElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const $F=Br.visitors.document.objects.JSONSchema.fixedFields.anyOf;let ale=class extends $F{ArrayElement(t){const r=$F.prototype.ArrayElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const FF=Br.visitors.document.objects.JSONSchema.fixedFields.oneOf;let ole=class extends FF{ArrayElement(t){const r=FF.prototype.ArrayElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const BF=Br.visitors.document.objects.JSONSchema.fixedFields.items;let ule=class extends BF{ObjectElement(t){const r=BF.prototype.ObjectElement.call(this,t);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(t){return this.enter(t)}};const LF=Br.visitors.document.objects.JSONSchema.fixedFields.properties;let cle=class extends LF{ObjectElement(t){const r=LF.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const lle=Br.visitors.document.objects.JSONSchema.fixedFields.type;class fle extends lle{ArrayElement(t){return this.enter(t)}}const UF=Br.visitors.JSONSchemaOrJSONReferenceVisitor;class VF extends UF{ObjectElement(t){const r=UF.prototype.enter.call(this,t);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}let ple=class extends qe(mt,Be){constructor(t){super(t),this.element=new Il,this.specPath=it(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};class dle extends qe(ft,Be){constructor(t){super(t),this.element=new oA,this.specPath=it(["value"])}}let hle=class extends qe(mt,Be){constructor(t){super(t),this.element=new Lh,this.specPath=it(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}},mle=class extends MC{constructor(t){super(t),this.element=new Yx}},gle=class extends zh{constructor(t){super(t),this.element=new Xx}},yle=class extends qe(ft,Be){constructor(t){super(t),this.element=new Yp,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}},vle=class extends qe(ft,Be){constructor(t){super(t),this.element=new Bx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(Uh).forEach((n,i)=>{n.setMetaProperty("http-status-code",Re(i))}),r}},ble=class extends qe(ft,Be){constructor(t){super(t),this.element=new Lx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","parameter")}),r}},_le=class extends qe(ft,Be){constructor(t){super(t),this.element=new Ux,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}};class Ele extends qe(ft,Be){constructor(t){super(t),this.element=new Vx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","requestBody")}),r}}let Sle=class extends qe(ft,Be){constructor(t){super(t),this.element=new zx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.filter(yu).forEach((n,i)=>{n.setMetaProperty("header-name",Re(i))}),r}};class wle extends qe(ft,Be){constructor(t){super(t),this.element=new Wx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","securityScheme")}),r}}let xle=class extends qe(ft,Be){constructor(t){super(t),this.element=new Jx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}},Ale=class extends qe(ft,Be){constructor(t){super(t),this.element=new Kx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),r}},Ole=class extends qe(mt,Be){constructor(t){super(t),this.element=new Tl,this.specPath=it(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=mt.prototype.ObjectElement.call(this,t);return st(this.element.externalValue)&&this.element.classes.push("reference-element"),r}};class Cle extends Be{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}let Rle=class extends qe(mt,Be){constructor(t){super(t),this.element=new jl,this.specPath=it(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}},Ile=class extends qe(mt,Be){constructor(t){super(t),this.element=new Nh,this.specPath=it(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=mt.prototype.ObjectElement.call(this,t);return Tt(this.element.headers)&&this.element.headers.filter(yu).forEach((n,i)=>{n.setMetaProperty("header-name",Re(i))}),r}},Tle=class extends qe(ft,Be){constructor(t){super(t),this.element=new nA,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!yu(n))return;const s=Re(i);n.setMetaProperty("headerName",s)}),r}},jle=class extends qe(Jo,Be){constructor(t){super(t),this.element=new Fl,this.specPath=it(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ss}ObjectElement(t){const r=Jo.prototype.ObjectElement.call(this,t);return this.element.filter(NC).forEach((n,i)=>{i.classes.push("openapi-path-template"),i.classes.push("path-template"),n.setMetaProperty("path",Je(i))}),r}},Ple=class extends qe(mt,Be){constructor(t){super(t),this.element=new Ll,this.specPath=it(["document","objects","RequestBody"])}ObjectElement(t){const r=mt.prototype.ObjectElement.call(this,t);return Tt(this.element.contentProp)&&this.element.contentProp.filter(Vh).forEach((n,i)=>{n.setMetaProperty("media-type",Re(i))}),r}},kle=class extends zh{constructor(t){super(t),this.element=new eA}},Nle=class extends qe(Jo,Be){constructor(t){super(t),this.element=new Ol,this.specPath=it(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?<expression>[^}]{1,2083})}/.test(String(r))}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(NC).forEach((n,i)=>{n.setMetaProperty("runtime-expression",Re(i))}),r}},Mle=class extends qe(mt,Be){constructor(t){super(t),this.element=new Ul,this.specPath=it(["document","objects","Response"])}ObjectElement(t){const r=mt.prototype.ObjectElement.call(this,t);return Tt(this.element.contentProp)&&this.element.contentProp.filter(Vh).forEach((n,i)=>{n.setMetaProperty("media-type",Re(i))}),Tt(this.element.headers)&&this.element.headers.filter(yu).forEach((n,i)=>{n.setMetaProperty("header-name",Re(i))}),r}};class Dle extends qe(ft,Be){constructor(t){super(t),this.element=new iA,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!yu(n))return;const s=Re(i);n.setMetaProperty("header-name",s)}),r}}class qle extends zh{constructor(t){super(t),this.element=new sA}}class $le extends qe(ft,Be){constructor(t){super(t),this.element=new aA,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}}class zF extends qe(mt,Jo){constructor({specPathFixedFields:r,specPathPatternedFields:n,...i}){super({...i});Y(this,"specPathFixedFields");Y(this,"specPathPatternedFields");this.specPathFixedFields=r,this.specPathPatternedFields=n}ObjectElement(r){const{specPath:n,ignoredFields:i}=this;try{this.specPath=this.specPathFixedFields;const s=this.retrieveFixedFields(this.specPath(r));this.ignoredFields=[...i,...die(r.keys(),s)],mt.prototype.ObjectElement.call(this,r),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,Jo.prototype.ObjectElement.call(this,r)}catch(s){throw this.specPath=n,s}return xt}}let Fle=class extends qe(zF,Be){constructor(t){super(t),this.element=new Vl,this.specPathFixedFields=it(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=r=>er(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Vie(100,600).join("|")})$`).test(String(r))}ObjectElement(t){const r=zF.prototype.ObjectElement.call(this,t);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(Uh).forEach((n,i)=>{const s=Je(i);this.fieldPatternPredicate(Re(s))&&n.setMetaProperty("http-status-code",s)}),r}};class Ble extends qe(Hi,Be){constructor(t){super(t),this.alternator=[{predicate:er,specPath:["document","objects","Reference"]},{predicate:Ss,specPath:["document","objects","Response"]}]}ObjectElement(t){const r=Hi.prototype.enter.call(this,t);return Jt(this.element)?this.element.setMetaProperty("referenced-element","response"):Uh(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}let Lle=class extends qe(mt,Be){constructor(t){super(t),this.element=new ql,this.specPath=it(["document","objects","Operation"])}},Ule=class extends Be{constructor(t){super(t),this.element=new Zx}ArrayElement(t){return this.element=this.element.concat(Je(t)),xt}},w9=class extends qe(Ti,Be){constructor(t){super(t),this.element=new ye.ArrayElement,this.element.classes.push("parameters")}ArrayElement(t){return t.forEach(r=>{const n=er(r)?["document","objects","Reference"]:["document","objects","Parameter"],i=this.toRefractedElement(n,r);Jt(i)&&i.setMetaProperty("referenced-element","parameter"),this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),xt}},Vle=class extends w9{constructor(t){super(t),this.element=new Xp}},zle=class extends Hi{constructor(t){super(t),this.alternator=[{predicate:er,specPath:["document","objects","Reference"]},{predicate:Ss,specPath:["document","objects","RequestBody"]}]}ObjectElement(t){const r=Hi.prototype.enter.call(this,t);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class Wle extends qe(ft,Be){constructor(r){super(r);Y(this,"specPath");this.element=new Qx,this.specPath=n=>er(n)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(r){const n=ft.prototype.ObjectElement.call(this,r);return this.element.filter(Jt).forEach(i=>{i.setMetaProperty("referenced-element","callback")}),n}}class Jle extends qe(Ti,Be){constructor(t){super(t),this.element=new Zp}ArrayElement(t){return t.forEach(r=>{const n=Tt(r)?["document","objects","SecurityRequirement"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),xt}}let Kle=class extends kC{constructor(t){super(t),this.element=new ece}},Hle=class extends qe(mt,Be){constructor(t){super(t),this.element=new $l,this.specPath=it(["document","objects","PathItem"])}ObjectElement(t){const r=mt.prototype.ObjectElement.call(this,t);return this.element.filter(E9).forEach((n,i)=>{const s=Je(i);s.content=Re(s).toUpperCase(),n.setMetaProperty("http-method",s)}),st(this.element.$ref)&&this.element.classes.push("reference-element"),r}};class Gle extends Be{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class Yle extends kC{constructor(t){super(t),this.element=new Hx}}class Xle extends w9{constructor(t){super(t),this.element=new Gx}}let Zle=class extends qe(mt,Be){constructor(t){super(t),this.element=new Hl,this.specPath=it(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}},Qle=class extends qe(mt,Be){constructor(t){super(t),this.element=new Dh,this.specPath=it(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}},efe=class extends qe(mt,Be){constructor(t){super(t),this.element=new Mh,this.specPath=it(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};class tfe extends qe(ft,Be){constructor(t){super(t),this.element=new uA,this.specPath=it(["value"])}}class rfe extends qe(Ti,Be){constructor(t){super(t),this.element=new $x}ArrayElement(t){return t.forEach(r=>{const n=ice(r)?["document","objects","Tag"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),xt}}const{fixedFields:Cr}=Br.visitors.document.objects.JSONSchema,Ee={visitors:{value:Be,document:{objects:{OpenApi:{$visitor:sce,fixedFields:{openapi:ace,info:{$ref:"#/visitors/document/objects/Info"},servers:kC,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Kce,tags:rfe,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:uce,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:cce}},Contact:{$visitor:lce,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:fce,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:gce,fixedFields:{url:yce,description:{$ref:"#/visitors/value"},variables:bce}},ServerVariable:{$visitor:vce,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Hce,fixedFields:{schemas:yle,responses:vle,parameters:ble,examples:_le,requestBodies:Ele,headers:Sle,securitySchemes:wle,links:xle,callbacks:Ale}},Paths:{$visitor:jle},PathItem:{$visitor:Hle,fixedFields:{$ref:Gle,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Yle,parameters:Xle}},Operation:{$visitor:Lle,fixedFields:{tags:Ule,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Vle,requestBody:zle,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Wle,deprecated:{$ref:"#/visitors/value"},security:Jle,servers:Kle}},ExternalDocumentation:{$visitor:Rle,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Zce,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Qce,example:{$ref:"#/visitors/value"},examples:mle,content:gle}},RequestBody:{$visitor:Ple,fixedFields:{description:{$ref:"#/visitors/value"},content:kle,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:_ce,fixedFields:{schema:Vce,example:{$ref:"#/visitors/value"},examples:zce,encoding:Wce}},Encoding:{$visitor:Ile,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Tle,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Fle,fixedFields:{default:Ble}},Response:{$visitor:Mle,fixedFields:{description:{$ref:"#/visitors/value"},headers:Dle,content:qle,links:$le}},Callback:{$visitor:Nle},Example:{$visitor:Ole,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Cle}},Link:{$visitor:pce,fixedFields:{operationRef:dce,operationId:hce,parameters:mce,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:ele,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:tle,example:{$ref:"#/visitors/value"},examples:rle,content:nle}},Tag:{$visitor:Gce,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Yce,fixedFields:{$ref:Xce}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:ile,fixedFields:{title:Cr.title,multipleOf:Cr.multipleOf,maximum:Cr.maximum,exclusiveMaximum:Cr.exclusiveMaximum,minimum:Cr.minimum,exclusiveMinimum:Cr.exclusiveMinimum,maxLength:Cr.maxLength,minLength:Cr.minLength,pattern:Cr.pattern,maxItems:Cr.maxItems,minItems:Cr.minItems,uniqueItems:Cr.uniqueItems,maxProperties:Cr.maxProperties,minProperties:Cr.minProperties,required:Cr.required,enum:Cr.enum,type:fle,allOf:sle,anyOf:ale,oneOf:ole,not:VF,items:ule,properties:cle,additionalProperties:VF,description:Cr.description,format:Cr.format,default:Cr.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:ple,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:dle}},XML:{$visitor:hle,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Zle,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:Qle,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:efe,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:tfe}},SecurityRequirement:{$visitor:Jce}},extension:{$visitor:oce}}}},nfe=()=>{const e=xs(Que);return{predicates:{...Uce,isElement:yr,isStringElement:st,isArrayElement:Wr,isObjectElement:Tt,isMemberElement:Ii,includesClasses:Vo,hasElementSourceMap:Sl},namespace:e}},ife=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=ye.refract(e),i=na(Ee),s=Nr(t,i),a=new s({specObj:i});return Ar(n,a),Qi(a.element,r,{toolboxCreator:nfe,visitorOptions:{keyMap:rce,nodeTypeGetter:tce}})},Dt=e=>(t,r={})=>ife(t,{specPath:e,...r});Ol.refract=Dt(["visitors","document","objects","Callback","$visitor"]);Cl.refract=Dt(["visitors","document","objects","Components","$visitor"]);Rl.refract=Dt(["visitors","document","objects","Contact","$visitor"]);Tl.refract=Dt(["visitors","document","objects","Example","$visitor"]);Il.refract=Dt(["visitors","document","objects","Discriminator","$visitor"]);Nh.refract=Dt(["visitors","document","objects","Encoding","$visitor"]);jl.refract=Dt(["visitors","document","objects","ExternalDocumentation","$visitor"]);du.refract=Dt(["visitors","document","objects","Header","$visitor"]);Pl.refract=Dt(["visitors","document","objects","Info","$visitor"]);kl.refract=Dt(["visitors","document","objects","License","$visitor"]);Nl.refract=Dt(["visitors","document","objects","Link","$visitor"]);Ml.refract=Dt(["visitors","document","objects","MediaType","$visitor"]);Mh.refract=Dt(["visitors","document","objects","OAuthFlow","$visitor"]);Dh.refract=Dt(["visitors","document","objects","OAuthFlows","$visitor"]);Dl.refract=Dt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);qh.refract=Dt(["visitors","document","objects","OpenApi","$visitor"]);ql.refract=Dt(["visitors","document","objects","Operation","$visitor"]);hu.refract=Dt(["visitors","document","objects","Parameter","$visitor"]);$l.refract=Dt(["visitors","document","objects","PathItem","$visitor"]);Fl.refract=Dt(["visitors","document","objects","Paths","$visitor"]);Bl.refract=Dt(["visitors","document","objects","Reference","$visitor"]);Ll.refract=Dt(["visitors","document","objects","RequestBody","$visitor"]);Ul.refract=Dt(["visitors","document","objects","Response","$visitor"]);Vl.refract=Dt(["visitors","document","objects","Responses","$visitor"]);Fh.refract=Dt(["visitors","document","objects","Schema","$visitor"]);Kl.refract=Dt(["visitors","document","objects","SecurityRequirement","$visitor"]);Hl.refract=Dt(["visitors","document","objects","SecurityScheme","$visitor"]);Gl.refract=Dt(["visitors","document","objects","Server","$visitor"]);Yl.refract=Dt(["visitors","document","objects","ServerVariable","$visitor"]);Bh.refract=Dt(["visitors","document","objects","Tag","$visitor"]);Lh.refract=Dt(["visitors","document","objects","XML","$visitor"]);class Wh extends Ol{}class Jh extends Cl{get pathItems(){return this.get("pathItems")}set pathItems(t){this.set("pathItems",t)}}let Kh=class extends Rl{};class DC extends Il{}class qC extends Nh{}let Hh=class extends Tl{};class Gh extends jl{}class Yh extends du{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}let Xh=class extends Pl{get license(){return this.get("license")}set license(t){this.set("license",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}};const Fd=class Fd extends ye.StringElement{constructor(t,r,n){super(t,r,n),this.element="jsonSchemaDialect"}};Y(Fd,"default",new Fd("https://spec.openapis.org/oas/3.1/dialect/base"));let ka=Fd,Zh=class extends kl{get identifier(){return this.get("identifier")}set identifier(t){this.set("identifier",t)}},Qh=class extends Nl{};class em extends Ml{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}class $C extends Mh{}class FC extends Dh{}class BC extends Dl{}class sa extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(t){this.set("jsonSchemaDialect",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get webhooks(){return this.get("webhooks")}set webhooks(t){this.set("webhooks",t)}}let Xl=class extends ql{get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}};class tm extends hu{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}class Hs extends $l{get GET(){return this.get("get")}set GET(t){this.set("GET",t)}get PUT(){return this.get("put")}set PUT(t){this.set("PUT",t)}get POST(){return this.get("post")}set POST(t){this.set("POST",t)}get DELETE(){return this.get("delete")}set DELETE(t){this.set("DELETE",t)}get OPTIONS(){return this.get("options")}set OPTIONS(t){this.set("OPTIONS",t)}get HEAD(){return this.get("head")}set HEAD(t){this.set("HEAD",t)}get PATCH(){return this.get("patch")}set PATCH(t){this.set("PATCH",t)}get TRACE(){return this.get("trace")}set TRACE(t){this.set("TRACE",t)}}class rm extends Fl{}class aa extends Bl{}Object.defineProperty(aa.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});Object.defineProperty(aa.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});class nm extends Ll{}let im=class extends Ul{},sm=class extends Vl{},Zl=class extends mu{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new bt("id keyword from Core vocabulary has been renamed to $id.")}set idProp(t){throw new bt("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(t){this.set("$id",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get const(){return this.get("const")}set const(t){this.set("const",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}},Ql=class extends Wl{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get schema(){throw new bt("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(t){throw new bt("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}get method(){throw new bt("method keyword from Hyper-Schema vocabulary has been removed.")}set method(t){throw new bt("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new bt("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(t){throw new bt("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(t){this.set("submissionEncType",t)}};const sfe={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Zl),t.register("jSONReference",gu),t.register("media",zl),t.register("linkDescription",Ql),t}},afe={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Zi};let x9=class extends g9{constructor(t){super(t),this.element=new Zl}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(t){const r=this.enter(t);return this.element.classes.push("boolean-json-schema"),r}handleSchemaIdentifier(t,r="$id"){return super.handleSchemaIdentifier(t,r)}},ofe=class extends y9{BooleanElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),xt}};class ufe extends jt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-examples"),r}}let A9=class extends v9{constructor(t){super(t),this.element=new Ql}};const $r=Kr($e(["visitors","document","objects","JSONSchema","$visitor"],x9),Nn(["visitors","document","objects","JSONSchema","fixedFields","id"]),$e(["visitors","document","objects","JSONSchema","fixedFields","$id"],Br.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","contains"],Br.visitors.JSONSchemaOrJSONReferenceVisitor),$e(["visitors","document","objects","JSONSchema","fixedFields","items"],ofe),$e(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Br.visitors.JSONSchemaOrJSONReferenceVisitor),$e(["visitors","document","objects","JSONSchema","fixedFields","const"],Br.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","examples"],ufe),$e(["visitors","document","objects","LinkDescription","$visitor"],A9),$e(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Br.visitors.JSONSchemaOrJSONReferenceVisitor),Nn(["visitors","document","objects","LinkDescription","fixedFields","schema"]),$e(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Br.visitors.JSONSchemaOrJSONReferenceVisitor),Nn(["visitors","document","objects","LinkDescription","fixedFields","method"]),Nn(["visitors","document","objects","LinkDescription","fixedFields","encType"]),$e(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Br.visitors.value))(Br),cfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zl||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n)),lfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ql||e(n)&&t("linkDescription",n)&&r("object",n)),ffe=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:PC,isJSONSchemaElement:cfe,isLinkDescriptionElement:lfe,isMediaElement:m9},Symbol.toStringTag,{value:"Module"})),pfe=()=>{const e=xs(sfe);return{predicates:{...ffe,isStringElement:st},namespace:e}},dfe=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=$r}={})=>{const i=ye.refract(e),s=na(n),a=Nr(t,s),o=new a({specObj:s});return Ar(i,o),Qi(o.element,r,{toolboxCreator:pfe,visitorOptions:{keyMap:afe,nodeTypeGetter:Jl}})},O9=e=>(t,r={})=>dfe(t,{specPath:e,...r});Zl.refract=O9(["visitors","document","objects","JSONSchema","$visitor"]);Ql.refract=O9(["visitors","document","objects","LinkDescription","$visitor"]);let ef=class extends Zl{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(t){this.set("contentEncoding",t)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(t){this.set("contentMediaType",t)}get media(){throw new bt('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(t){throw new bt('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}},tf=class extends Ql{get anchor(){return this.get("anchor")}set anchor(t){this.set("anchor",t)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(t){this.set("anchorPointer",t)}get templatePointers(){return this.get("templatePointers")}set templatePointers(t){this.set("templatePointers",t)}get templateRequired(){return this.get("templateRequired")}set templateRequired(t){this.set("templateRequired",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get mediaType(){throw new bt("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(t){throw new bt("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(t){this.set("targetMediaType",t)}get targetHints(){return this.get("targetHints")}set targetHints(t){this.set("targetHints",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get headerSchema(){return this.get("headerSchema")}set headerSchema(t){this.set("headerSchema",t)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}get submissionEncType(){throw new bt("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(t){throw new bt("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(t){this.set("submissionMediaType",t)}};const hfe={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",ef),t.register("jSONReference",gu),t.register("linkDescription",tf),t}},mfe={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Zi};let C9=class extends x9{constructor(t){super(t),this.element=new ef}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},R9=class extends A9{constructor(t){super(t),this.element=new tf}};const Ns=Kr($e(["visitors","document","objects","JSONSchema","$visitor"],C9),$e(["visitors","document","objects","JSONSchema","fixedFields","$comment"],$r.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","if"],$r.visitors.JSONSchemaOrJSONReferenceVisitor),$e(["visitors","document","objects","JSONSchema","fixedFields","then"],$r.visitors.JSONSchemaOrJSONReferenceVisitor),$e(["visitors","document","objects","JSONSchema","fixedFields","else"],$r.visitors.JSONSchemaOrJSONReferenceVisitor),Nn(["visitors","document","objects","JSONSchema","fixedFields","media"]),$e(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],$r.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],$r.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],$r.visitors.value),$e(["visitors","document","objects","LinkDescription","$visitor"],R9),$e(["visitors","document","objects","LinkDescription","fixedFields","anchor"],$r.visitors.value),$e(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],$r.visitors.value),Nn(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),$e(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],$r.visitors.value),$e(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],$r.visitors.value),$e(["visitors","document","objects","LinkDescription","fixedFields","description"],$r.visitors.value),$e(["visitors","document","objects","LinkDescription","fixedFields","$comment"],$r.visitors.value),$e(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],$r.visitors.JSONSchemaOrJSONReferenceVisitor),Nn(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),$e(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],$r.visitors.value))($r),gfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ef||e(n)&&t("JSONSchemaDraft7",n)&&r("object",n)),yfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tf||e(n)&&t("linkDescription",n)&&r("object",n)),vfe=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:PC,isJSONSchemaElement:gfe,isLinkDescriptionElement:yfe},Symbol.toStringTag,{value:"Module"})),bfe=()=>{const e=xs(hfe);return{predicates:{...vfe,isStringElement:st},namespace:e}},_fe=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Ns}={})=>{const i=ye.refract(e),s=na(n),a=Nr(t,s),o=new a({specObj:s});return Ar(i,o),Qi(o.element,r,{toolboxCreator:bfe,visitorOptions:{keyMap:mfe,nodeTypeGetter:Jl}})},I9=e=>(t,r={})=>_fe(t,{specPath:e,...r});ef.refract=I9(["visitors","document","objects","JSONSchema","$visitor"]);tf.refract=I9(["visitors","document","objects","LinkDescription","$visitor"]);let rf=class extends ef{constructor(t,r,n){super(t,r,n),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(t){this.set("$vocabulary",t)}get $anchor(){return this.get("$anchor")}set $anchor(t){this.set("$anchor",t)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(t){this.set("$recursiveAnchor",t)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(t){this.set("$recursiveRef",t)}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get $defs(){return this.get("$defs")}set $defs(t){this.set("$defs",t)}get definitions(){throw new bt("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(t){throw new bt("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(t){this.set("not",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(t){this.set("dependentSchemas",t)}get dependencies(){throw new bt("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(t){throw new bt("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(t){this.set("items",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(t){this.set("unevaluatedItems",t)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(t){this.set("unevaluatedProperties",t)}get maxContains(){return this.get("maxContains")}set maxContains(t){this.set("maxContains",t)}get minContains(){return this.get("minContains")}set minContains(t){this.set("minContains",t)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(t){this.set("dependentRequired",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}get contentSchema(){return this.get("contentSchema")}set contentSchema(t){this.set("contentSchema",t)}},nf=class extends tf{get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get headerSchema(){return this.get("headerSchema")}set headerSchema(t){this.set("headerSchema",t)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}};const Efe={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",rf),t.register("linkDescription",nf),t}},Sfe={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Zi};let Fr=class extends C9{constructor(t){super(t),this.element=new rf}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(t){this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element;const r=Pa.prototype.ObjectElement.call(this,t);return st(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}};class wfe extends jt{ObjectElement(t){const r=super.enter(t);return this.element.classes.push("json-schema-$vocabulary"),r}}class xfe extends jt{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}let T9=class extends qe(ia,Or,jt){constructor(t){super(t),this.element=new ye.ObjectElement,this.element.classes.push("json-schema-$defs"),this.specPath=it(["document","objects","JSONSchema"])}},j9=class extends qe(Bn,Or,jt){constructor(t){super(t),this.element=new ye.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),xt}},P9=class extends qe(Bn,Or,jt){constructor(t){super(t),this.element=new ye.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),xt}},k9=class extends qe(Bn,Or,jt){constructor(t){super(t),this.element=new ye.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),xt}},N9=class extends qe(ia,Or,jt){constructor(t){super(t),this.element=new ye.ObjectElement,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=it(["document","objects","JSONSchema"])}};class Afe extends qe(Bn,Or,jt){ObjectElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),xt}ArrayElement(t){return this.element=new ye.ArrayElement,this.element.classes.push("json-schema-items"),t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),xt}BooleanElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),xt}}let M9=class extends qe(ia,Or,jt){constructor(t){super(t),this.element=new ye.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=it(["document","objects","JSONSchema"])}},D9=class extends qe(ia,Or,jt){constructor(t){super(t),this.element=new ye.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=it(["document","objects","JSONSchema"])}};class Ofe extends jt{ObjectElement(t){const r=super.enter(t);return this.element.classes.push("json-schema-dependentRequired"),r}}let q9=class extends R9{constructor(t){super(t),this.element=new nf}};const gp=Kr($e(["visitors","document","objects","JSONSchema","$visitor"],Fr),$e(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],wfe),$e(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Ns.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Ns.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Ns.visitors.value),Nn(["visitors","document","objects","JSONReference","$visitor"]),$e(["visitors","document","objects","JSONSchema","fixedFields","$ref"],xfe),Nn(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),$e(["visitors","document","objects","JSONSchema","fixedFields","$defs"],T9),$e(["visitors","document","objects","JSONSchema","fixedFields","allOf"],j9),$e(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],P9),$e(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],k9),$e(["visitors","document","objects","JSONSchema","fixedFields","not"],Fr),$e(["visitors","document","objects","JSONSchema","fixedFields","if"],Fr),$e(["visitors","document","objects","JSONSchema","fixedFields","then"],Fr),$e(["visitors","document","objects","JSONSchema","fixedFields","else"],Fr),Nn(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),$e(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],N9),$e(["visitors","document","objects","JSONSchema","fixedFields","items"],Afe),$e(["visitors","document","objects","JSONSchema","fixedFields","contains"],Fr),$e(["visitors","document","objects","JSONSchema","fixedFields","properties"],M9),$e(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],D9),$e(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Fr),$e(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Fr),$e(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Fr),$e(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Fr),$e(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Fr),$e(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Ns.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Ns.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Ofe),$e(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Ns.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Fr),$e(["visitors","document","objects","LinkDescription","$visitor"],q9),$e(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Fr),$e(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Fr),$e(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Fr),$e(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Fr))(Ns),Cfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rf||e(n)&&t("JSONSchema201909",n)&&r("object",n)),Rfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nf||e(n)&&t("linkDescription",n)&&r("object",n)),Ife=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:Cfe,isLinkDescriptionElement:Rfe},Symbol.toStringTag,{value:"Module"})),Tfe=()=>{const e=xs(Efe);return{predicates:{...Ife,isStringElement:st},namespace:e}},jfe=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=gp}={})=>{const i=ye.refract(e),s=na(n),a=Nr(t,s),o=new a({specObj:s});return Ar(i,o),Qi(o.element,r,{toolboxCreator:Tfe,visitorOptions:{keyMap:Sfe,nodeTypeGetter:Jl}})},$9=e=>(t,r={})=>jfe(t,{specPath:e,...r});rf.refract=$9(["visitors","document","objects","JSONSchema","$visitor"]);nf.refract=$9(["visitors","document","objects","LinkDescription","$visitor"]);class sf extends rf{constructor(t,r,n){super(t,r,n),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(t){this.set("$dynamicAnchor",t)}get $recursiveAnchor(){throw new bt("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(t){throw new bt("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(t){this.set("$dynamicRef",t)}get $recursiveRef(){throw new bt("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(t){throw new bt("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(t){this.set("prefixItems",t)}}class am extends nf{get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get headerSchema(){return this.get("headerSchema")}set headerSchema(t){this.set("headerSchema",t)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}}const Pfe={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",sf),t.register("linkDescription",am),t}},kfe={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Zi};let Rr=class extends Fr{constructor(t){super(t),this.element=new sf}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}},F9=class extends qe(Bn,Or,jt){constructor(t){super(t),this.element=new ye.ArrayElement,this.element.classes.push("json-schema-prefixItems")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),xt}},Nfe=class extends q9{constructor(t){super(t),this.element=new am}};const B9=Kr($e(["visitors","document","objects","JSONSchema","$visitor"],Rr),Nn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),$e(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],gp.visitors.value),Nn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),$e(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],gp.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","not"],Rr),$e(["visitors","document","objects","JSONSchema","fixedFields","if"],Rr),$e(["visitors","document","objects","JSONSchema","fixedFields","then"],Rr),$e(["visitors","document","objects","JSONSchema","fixedFields","else"],Rr),$e(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],F9),$e(["visitors","document","objects","JSONSchema","fixedFields","items"],Rr),$e(["visitors","document","objects","JSONSchema","fixedFields","contains"],Rr),$e(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Rr),Nn(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),$e(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Rr),$e(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Rr),$e(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Rr),$e(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Rr),$e(["visitors","document","objects","LinkDescription","$visitor"],Nfe),$e(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Rr),$e(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Rr),$e(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Rr),$e(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Rr))(gp),Mfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sf||e(n)&&t("JSONSchema202012",n)&&r("object",n)),Dfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof am||e(n)&&t("linkDescription",n)&&r("object",n)),qfe=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:Mfe,isLinkDescriptionElement:Dfe},Symbol.toStringTag,{value:"Module"})),$fe=()=>{const e=xs(Pfe);return{predicates:{...qfe,isStringElement:st},namespace:e}},Ffe=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=B9}={})=>{const i=ye.refract(e),s=na(n),a=Nr(t,s),o=new a({specObj:s});return Ar(i,o),Qi(o.element,r,{toolboxCreator:$fe,visitorOptions:{keyMap:kfe,nodeTypeGetter:Jl}})},L9=e=>(t,r={})=>Ffe(t,{specPath:e,...r});sf.refract=L9(["visitors","document","objects","JSONSchema","$visitor"]);am.refract=L9(["visitors","document","objects","LinkDescription","$visitor"]);class Gs extends sf{constructor(t,r,n){super(t,r,n),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}}class om extends Kl{}class um extends Hl{}class cm extends Gl{}class lm extends Yl{}class LC extends Bh{}class UC extends Lh{}const VC={namespace:e=>{const{base:t}=e;return t.register("callback",Wh),t.register("components",Jh),t.register("contact",Kh),t.register("discriminator",DC),t.register("encoding",qC),t.register("example",Hh),t.register("externalDocumentation",Gh),t.register("header",Yh),t.register("info",Xh),t.register("jsonSchemaDialect",ka),t.register("license",Zh),t.register("link",Qh),t.register("mediaType",em),t.register("oAuthFlow",$C),t.register("oAuthFlows",FC),t.register("openapi",BC),t.register("openApi3_1",sa),t.register("operation",Xl),t.register("parameter",tm),t.register("pathItem",Hs),t.register("paths",rm),t.register("reference",aa),t.register("requestBody",nm),t.register("response",im),t.register("responses",sm),t.register("schema",Gs),t.register("securityRequirement",om),t.register("securityScheme",um),t.register("server",cm),t.register("serverVariable",lm),t.register("tag",LC),t.register("xml",UC),t}},Bd=class Bd extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Bd.primaryClass)}};Y(Bd,"primaryClass","components-path-items");let pA=Bd;const Ld=class Ld extends ye.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ld.primaryClass)}};Y(Ld,"primaryClass","webhooks");let dA=Ld;const ri=e=>{if(yr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},_i={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Zi};class af{constructor(t,r,n){Y(this,"internalStore");this.storageElement=t,this.storageField=r,this.storageSubField=n}get store(){if(!this.internalStore){let t=this.storageElement.get(this.storageField);Tt(t)||(t=new ye.ObjectElement,this.storageElement.set(this.storageField,t));let r=t.get(this.storageSubField);Wr(r)||(r=new ye.ArrayElement,t.set(this.storageSubField,r)),this.internalStore=r}return this.internalStore}append(t){this.includes(t)||this.store.push(t)}includes(t){return this.store.includes(t)}}const Bfe=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t,i=(o,u)=>!r.isParameterElement(o)||!r.isParameterElement(u)||!r.isStringElement(o.name)||!r.isStringElement(o.in)||!r.isStringElement(u.name)||!r.isStringElement(u.in)?!1:Re(o.name)===Re(u.name)&&Re(o.in)===Re(u.in),s=[];let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new af(o,e,"parameters")},leave(){a=void 0}},PathItemElement:{enter(o,u,c,l,f){if(f.some(r.isComponentsElement))return;const{parameters:h}=o;r.isArrayElement(h)?s.push([...h.content]):s.push([])},leave(){s.pop()}},OperationElement:{leave(o,u,c,l,f){const h=Eh(s);if(!Array.isArray(h)||h.length===0)return;const d=n([...f,c,o]);if(a.includes(d))return;const g=LU([],["parameters","content"],o),y=JU(i,[...g,...h]);o.parameters=new Xp(y),a.append(d)}}}}},Lfe=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i,s;return{visitor:{OpenApi3_1Element:{enter(a){s=new af(a,e,"security-requirements"),r.isArrayElement(a.security)&&(i=a.security)},leave(){s=void 0,i=void 0}},OperationElement:{leave(a,o,u,c,l){if(l.some(r.isComponentsElement))return;const f=n([...l,u,a]);if(s.includes(f))return;if(typeof a.security>"u"&&typeof i<"u"){var g;a.security=new Zp((g=i)===null||g===void 0?void 0:g.content),s.append(f)}}}}}},hA=e=>e.replace(/\s/g,""),mA=e=>e.replace(/\W/gi,"_"),Ufe=(e,t)=>{const r=mA(hA(t.toLowerCase())),n=mA(hA(e));return`${r}${n}`},Vfe=(e,t,r)=>{const n=hA(e);return n.length>0?mA(n):Ufe(t,r)},zfe=({storageField:e="x-normalized",operationIdNormalizer:t=Vfe}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:i,namespace:s}=r,a=[],o=[],u=[];let c;return{visitor:{OpenApi3_1Element:{enter(l){c=new af(l,e,"operation-ids")},leave(){const l=Pie(f=>Re(f.operationId),o);Object.entries(l).forEach(([f,h])=>{Array.isArray(h)&&(h.length<=1||h.forEach((d,g)=>{const y=`${f}${g+1}`;d.operationId=new s.elements.String(y)}))}),u.forEach(f=>{if(typeof f.operationId>"u")return;const h=String(Re(f.operationId)),d=o.find(g=>Re(g.meta.get("originalOperationId"))===h);typeof d>"u"||(f.operationId=Je.safe(d.operationId),f.meta.set("originalOperationId",h),f.set("__originalOperationId",h))}),o.length=0,u.length=0,c=void 0}},PathItemElement:{enter(l){const f=Lo("path",Re(l.meta.get("path")));a.push(f)},leave(){a.pop()}},OperationElement:{enter(l,f,h,d,g){if(typeof l.operationId>"u")return;const y=i([...g,h,l]);if(c.includes(y))return;const v=String(Re(l.operationId)),_=Eh(a),b=Lo("method",Re(l.meta.get("http-method"))),E=t(v,_,b);v!==E&&(l.operationId=new s.elements.String(E),l.set("__originalOperationId",v),l.meta.set("originalOperationId",v),o.push(l),c.append(y))}},LinkElement:{leave(l){n.isLinkElement(l)&&(typeof l.operationId>"u"||u.push(l))}}}}},Wfe=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new af(s,e,"parameter-examples")},leave(){i=void 0}},ParameterElement:{leave(s,a,o,u,c){var l,f;if(c.some(r.isComponentsElement)||typeof s.schema>"u"||!r.isSchemaElement(s.schema)||typeof((l=s.schema)===null||l===void 0?void 0:l.example)>"u"&&typeof((f=s.schema)===null||f===void 0?void 0:f.examples)>"u")return;const h=n([...c,o,s]);if(!i.includes(h)){if(typeof s.examples<"u"&&r.isObjectElement(s.examples)){const d=s.examples.map(g=>Je.safe(g.value));typeof s.schema.examples<"u"&&(s.schema.set("examples",d),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",d[0]),i.append(h));return}typeof s.example<"u"&&(typeof s.schema.examples<"u"&&(s.schema.set("examples",[Je(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Je(s.example)),i.append(h)))}}}}}},Jfe=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new af(s,e,"header-examples")},leave(){i=void 0}},HeaderElement:{leave(s,a,o,u,c){var l,f;if(c.some(r.isComponentsElement)||typeof s.schema>"u"||!r.isSchemaElement(s.schema)||typeof((l=s.schema)===null||l===void 0?void 0:l.example)>"u"&&typeof((f=s.schema)===null||f===void 0?void 0:f.examples)>"u")return;const h=n([...c,o,s]);if(!i.includes(h)){if(typeof s.examples<"u"&&r.isObjectElement(s.examples)){const d=s.examples.map(g=>Je.safe(g.value));typeof s.schema.examples<"u"&&(s.schema.set("examples",d),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",d[0]),i.append(h));return}typeof s.example<"u"&&(typeof s.schema.examples<"u"&&(s.schema.set("examples",[Je(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Je(s.example)),i.append(h)))}}}}}},Kfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wh||e(n)&&t("callback",n)&&r("object",n)),Hfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jh||e(n)&&t("components",n)&&r("object",n)),Gfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kh||e(n)&&t("contact",n)&&r("object",n)),Yfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hh||e(n)&&t("example",n)&&r("object",n)),Xfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gh||e(n)&&t("externalDocumentation",n)&&r("object",n)),Zfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yh||e(n)&&t("header",n)&&r("object",n)),Qfe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xh||e(n)&&t("info",n)&&r("object",n)),U9=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ka||e(n)&&t("jsonSchemaDialect",n)&&r("string",n)),epe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zh||e(n)&&t("license",n)&&r("object",n)),tpe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qh||e(n)&&t("link",n)&&r("object",n)),rpe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof BC||e(n)&&t("openapi",n)&&r("string",n)),V9=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof sa||e(i)&&t("openApi3_1",i)&&r("object",i)&&n("api",i)),z9=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xl||e(n)&&t("operation",n)&&r("object",n)),npe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tm||e(n)&&t("parameter",n)&&r("object",n)),Na=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hs||e(n)&&t("pathItem",n)&&r("object",n)),ipe=e=>{if(!Na(e)||!st(e.$ref))return!1;const t=Re(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},spe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rm||e(n)&&t("paths",n)&&r("object",n)),Ga=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof aa||e(n)&&t("reference",n)&&r("object",n)),ape=e=>{if(!Ga(e)||!st(e.$ref))return!1;const t=Re(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},ope=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nm||e(n)&&t("requestBody",n)&&r("object",n)),upe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof im||e(n)&&t("response",n)&&r("object",n)),cpe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sm||e(n)&&t("responses",n)&&r("object",n)),Ei=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gs||e(n)&&t("schema",n)&&r("object",n)),zC=e=>El(e)&&e.classes.includes("boolean-json-schema"),lpe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof om||e(n)&&t("securityRequirement",n)&&r("object",n)),fpe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof um||e(n)&&t("securityScheme",n)&&r("object",n)),ppe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cm||e(n)&&t("server",n)&&r("object",n)),dpe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lm||e(n)&&t("serverVariable",n)&&r("object",n)),hpe=Fe(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof em||e(n)&&t("mediaType",n)&&r("object",n)),mpe=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:zC,isCallbackElement:Kfe,isComponentsElement:Hfe,isContactElement:Gfe,isExampleElement:Yfe,isExternalDocumentationElement:Xfe,isHeaderElement:Zfe,isInfoElement:Qfe,isJsonSchemaDialectElement:U9,isLicenseElement:epe,isLinkElement:tpe,isMediaTypeElement:hpe,isOpenApi3_1Element:V9,isOpenapiElement:rpe,isOperationElement:z9,isParameterElement:npe,isPathItemElement:Na,isPathItemElementExternal:ipe,isPathsElement:spe,isReferenceElement:Ga,isReferenceElementExternal:ape,isRequestBodyElement:ope,isResponseElement:upe,isResponsesElement:cpe,isSchemaElement:Ei,isSecurityRequirementElement:lpe,isSecuritySchemeElement:fpe,isServerElement:ppe,isServerVariableElement:dpe},Symbol.toStringTag,{value:"Module"})),gpe=e=>{const t=e.reduce((r,n,i)=>{if(Ii(n)){const s=String(Re(n.key));r.push(s)}else if(Wr(e[i-2])){const s=String(e[i-2].content.indexOf(n));r.push(s)}return r},[]);return u9(t)},W9=()=>{const e=xs(VC);return{predicates:{...mpe,isElement:yr,isStringElement:st,isArrayElement:Wr,isObjectElement:Tt,isMemberElement:Ii,isServersElement:S9,includesClasses:Vo,hasElementSourceMap:Sl},ancestorLineageToJSONPointer:gpe,namespace:e}};class ype extends qe(mt,Be){constructor(t){super(t),this.element=new sa,this.specPath=it(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(t){return this.openApiGenericElement=t,mt.prototype.ObjectElement.call(this,t)}}const vpe=Ee.visitors.document.objects.Info.$visitor;class bpe extends vpe{constructor(t){super(t),this.element=new Xh}}const _pe=Ee.visitors.document.objects.Contact.$visitor;class Epe extends _pe{constructor(t){super(t),this.element=new Kh}}const Spe=Ee.visitors.document.objects.License.$visitor;class wpe extends Spe{constructor(t){super(t),this.element=new Zh}}const xpe=Ee.visitors.document.objects.Link.$visitor;class Ape extends xpe{constructor(t){super(t),this.element=new Qh}}class Ope extends qe(Ti,Be){StringElement(t){const r=new ka(Re(t));return this.copyMetaAndAttributes(t,r),this.element=r,xt}}const Cpe=Ee.visitors.document.objects.Server.$visitor;class Rpe extends Cpe{constructor(t){super(t),this.element=new cm}}const Ipe=Ee.visitors.document.objects.ServerVariable.$visitor;class Tpe extends Ipe{constructor(t){super(t),this.element=new lm}}const jpe=Ee.visitors.document.objects.MediaType.$visitor;class Ppe extends jpe{constructor(t){super(t),this.element=new em}}const kpe=Ee.visitors.document.objects.SecurityRequirement.$visitor;class Npe extends kpe{constructor(t){super(t),this.element=new om}}const Mpe=Ee.visitors.document.objects.Components.$visitor;class Dpe extends Mpe{constructor(t){super(t),this.element=new Jh}}const qpe=Ee.visitors.document.objects.Tag.$visitor;class $pe extends qpe{constructor(t){super(t),this.element=new LC}}const Fpe=Ee.visitors.document.objects.Reference.$visitor;class Bpe extends Fpe{constructor(t){super(t),this.element=new aa}}const Lpe=Ee.visitors.document.objects.Parameter.$visitor;class Upe extends Lpe{constructor(t){super(t),this.element=new tm}}const Vpe=Ee.visitors.document.objects.Header.$visitor;class zpe extends Vpe{constructor(t){super(t),this.element=new Yh}}class Wpe extends qe(mt,Or,Be){constructor(t){super(t),this.element=new Gs,this.specPath=it(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=ka.default,this.passingOptionsNames.push("parent")}ObjectElement(t){this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element;const r=mt.prototype.ObjectElement.call(this,t);return st(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(t){return Rr.prototype.BooleanElement.call(this,t)}get defaultDialectIdentifier(){let t;return this.openApiSemanticElement!==void 0&&U9(this.openApiSemanticElement.jsonSchemaDialect)?t=Re(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&st(this.openApiGenericElement.get("jsonSchemaDialect"))?t=Re(this.openApiGenericElement.get("jsonSchemaDialect")):t=Re(this.jsonSchemaDefaultDialect),t}handleDialectIdentifier(t){return Rr.prototype.handleDialectIdentifier.call(this,t)}handleSchemaIdentifier(t){return Rr.prototype.handleSchemaIdentifier.call(this,t)}}class Jpe extends T9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}let Kpe=class extends j9{constructor(t){super(t),this.passingOptionsNames.push("parent")}};class Hpe extends P9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Gpe extends k9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Ype extends N9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Xpe extends F9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Zpe extends M9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Qpe extends D9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}const ede=Ee.visitors.document.objects.Discriminator.$visitor;class tde extends ede{constructor(t){super(t),this.element=new DC,this.canSupportSpecificationExtensions=!0}}const rde=Ee.visitors.document.objects.XML.$visitor;class nde extends rde{constructor(t){super(t),this.element=new UC}}class ide extends qe(ft,Be){constructor(t){super(t),this.element=new Yp,this.specPath=it(["document","objects","Schema"])}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Ei).forEach((n,i)=>{n.setMetaProperty("schemaName",Re(i))}),r}}class sde extends qe(ft,Be){constructor(t){super(t),this.element=new pA,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Ga).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const ade=Ee.visitors.document.objects.Example.$visitor;class ode extends ade{constructor(t){super(t),this.element=new Hh}}const ude=Ee.visitors.document.objects.ExternalDocumentation.$visitor;class cde extends ude{constructor(t){super(t),this.element=new Gh}}const lde=Ee.visitors.document.objects.Encoding.$visitor;class fde extends lde{constructor(t){super(t),this.element=new qC}}const pde=Ee.visitors.document.objects.Paths.$visitor;class dde extends pde{constructor(t){super(t),this.element=new rm}}const hde=Ee.visitors.document.objects.RequestBody.$visitor;class mde extends hde{constructor(t){super(t),this.element=new nm}}const WF=Ee.visitors.document.objects.Callback.$visitor;class gde extends WF{constructor(t){super(t),this.element=new Wh,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=WF.prototype.ObjectElement.call(this,t);return this.element.filter(Ga).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const yde=Ee.visitors.document.objects.Response.$visitor;class vde extends yde{constructor(t){super(t),this.element=new im}}const bde=Ee.visitors.document.objects.Responses.$visitor;class _de extends bde{constructor(t){super(t),this.element=new sm}}const Ede=Ee.visitors.document.objects.Operation.$visitor;class Sde extends Ede{constructor(t){super(t),this.element=new Xl}}const wde=Ee.visitors.document.objects.PathItem.$visitor;class xde extends wde{constructor(t){super(t),this.element=new Hs}}const Ade=Ee.visitors.document.objects.SecurityScheme.$visitor;class Ode extends Ade{constructor(t){super(t),this.element=new um}}const Cde=Ee.visitors.document.objects.OAuthFlows.$visitor;class Rde extends Cde{constructor(t){super(t),this.element=new FC}}const Ide=Ee.visitors.document.objects.OAuthFlow.$visitor;class Tde extends Ide{constructor(t){super(t),this.element=new $C}}class jde extends qe(ft,Be){constructor(t){super(t),this.element=new dA,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=ft.prototype.ObjectElement.call(this,t);return this.element.filter(Ga).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),this.element.filter(Na).forEach((n,i)=>{n.setMetaProperty("webhook-name",Re(i))}),r}}const{JSONSchema:Pde,LinkDescription:kde}=B9.visitors.document.objects,Nde={visitors:{value:Ee.visitors.value,document:{objects:{OpenApi:{$visitor:ype,fixedFields:{openapi:Ee.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Ope,servers:Ee.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:jde,components:{$ref:"#/visitors/document/objects/Components"},security:Ee.visitors.document.objects.OpenApi.fixedFields.security,tags:Ee.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:bpe,fixedFields:{title:Ee.visitors.document.objects.Info.fixedFields.title,description:Ee.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Ee.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Ee.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Epe,fixedFields:{name:Ee.visitors.document.objects.Contact.fixedFields.name,url:Ee.visitors.document.objects.Contact.fixedFields.url,email:Ee.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:wpe,fixedFields:{name:Ee.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Ee.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Rpe,fixedFields:{url:Ee.visitors.document.objects.Server.fixedFields.url,description:Ee.visitors.document.objects.Server.fixedFields.description,variables:Ee.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Tpe,fixedFields:{enum:Ee.visitors.document.objects.ServerVariable.fixedFields.enum,default:Ee.visitors.document.objects.ServerVariable.fixedFields.default,description:Ee.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Dpe,fixedFields:{schemas:ide,responses:Ee.visitors.document.objects.Components.fixedFields.responses,parameters:Ee.visitors.document.objects.Components.fixedFields.parameters,examples:Ee.visitors.document.objects.Components.fixedFields.examples,requestBodies:Ee.visitors.document.objects.Components.fixedFields.requestBodies,headers:Ee.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Ee.visitors.document.objects.Components.fixedFields.securitySchemes,links:Ee.visitors.document.objects.Components.fixedFields.links,callbacks:Ee.visitors.document.objects.Components.fixedFields.callbacks,pathItems:sde}},Paths:{$visitor:dde},PathItem:{$visitor:xde,fixedFields:{$ref:Ee.visitors.document.objects.PathItem.fixedFields.$ref,summary:Ee.visitors.document.objects.PathItem.fixedFields.summary,description:Ee.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Ee.visitors.document.objects.PathItem.fixedFields.servers,parameters:Ee.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Sde,fixedFields:{tags:Ee.visitors.document.objects.Operation.fixedFields.tags,summary:Ee.visitors.document.objects.Operation.fixedFields.summary,description:Ee.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Ee.visitors.document.objects.Operation.fixedFields.operationId,parameters:Ee.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Ee.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Ee.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Ee.visitors.document.objects.Operation.fixedFields.deprecated,security:Ee.visitors.document.objects.Operation.fixedFields.security,servers:Ee.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:cde,fixedFields:{description:Ee.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Ee.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Upe,fixedFields:{name:Ee.visitors.document.objects.Parameter.fixedFields.name,in:Ee.visitors.document.objects.Parameter.fixedFields.in,description:Ee.visitors.document.objects.Parameter.fixedFields.description,required:Ee.visitors.document.objects.Parameter.fixedFields.required,deprecated:Ee.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Ee.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Ee.visitors.document.objects.Parameter.fixedFields.style,explode:Ee.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Ee.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ee.visitors.document.objects.Parameter.fixedFields.example,examples:Ee.visitors.document.objects.Parameter.fixedFields.examples,content:Ee.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:mde,fixedFields:{description:Ee.visitors.document.objects.RequestBody.fixedFields.description,content:Ee.visitors.document.objects.RequestBody.fixedFields.content,required:Ee.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Ppe,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Ee.visitors.document.objects.MediaType.fixedFields.example,examples:Ee.visitors.document.objects.MediaType.fixedFields.examples,encoding:Ee.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:fde,fixedFields:{contentType:Ee.visitors.document.objects.Encoding.fixedFields.contentType,headers:Ee.visitors.document.objects.Encoding.fixedFields.headers,style:Ee.visitors.document.objects.Encoding.fixedFields.style,explode:Ee.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Ee.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:_de,fixedFields:{default:Ee.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:vde,fixedFields:{description:Ee.visitors.document.objects.Response.fixedFields.description,headers:Ee.visitors.document.objects.Response.fixedFields.headers,content:Ee.visitors.document.objects.Response.fixedFields.content,links:Ee.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:gde},Example:{$visitor:ode,fixedFields:{summary:Ee.visitors.document.objects.Example.fixedFields.summary,description:Ee.visitors.document.objects.Example.fixedFields.description,value:Ee.visitors.document.objects.Example.fixedFields.value,externalValue:Ee.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Ape,fixedFields:{operationRef:Ee.visitors.document.objects.Link.fixedFields.operationRef,operationId:Ee.visitors.document.objects.Link.fixedFields.operationId,parameters:Ee.visitors.document.objects.Link.fixedFields.parameters,requestBody:Ee.visitors.document.objects.Link.fixedFields.requestBody,description:Ee.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:zpe,fixedFields:{description:Ee.visitors.document.objects.Header.fixedFields.description,required:Ee.visitors.document.objects.Header.fixedFields.required,deprecated:Ee.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Ee.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Ee.visitors.document.objects.Header.fixedFields.style,explode:Ee.visitors.document.objects.Header.fixedFields.explode,allowReserved:Ee.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ee.visitors.document.objects.Header.fixedFields.example,examples:Ee.visitors.document.objects.Header.fixedFields.examples,content:Ee.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:$pe,fixedFields:{name:Ee.visitors.document.objects.Tag.fixedFields.name,description:Ee.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Bpe,fixedFields:{$ref:Ee.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...kde},Schema:{$visitor:Wpe,fixedFields:{...Pde.fixedFields,$defs:Jpe,allOf:Kpe,anyOf:Hpe,oneOf:Gpe,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:Ype,prefixItems:Xpe,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Zpe,patternProperties:Qpe,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:tde,fixedFields:{propertyName:Ee.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Ee.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:nde,fixedFields:{name:Ee.visitors.document.objects.XML.fixedFields.name,namespace:Ee.visitors.document.objects.XML.fixedFields.namespace,prefix:Ee.visitors.document.objects.XML.fixedFields.prefix,attribute:Ee.visitors.document.objects.XML.fixedFields.attribute,wrapped:Ee.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Ode,fixedFields:{type:Ee.visitors.document.objects.SecurityScheme.fixedFields.type,description:Ee.visitors.document.objects.SecurityScheme.fixedFields.description,name:Ee.visitors.document.objects.SecurityScheme.fixedFields.name,in:Ee.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Ee.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Ee.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Ee.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Rde,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Tde,fixedFields:{authorizationUrl:Ee.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Ee.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Ee.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Ee.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Npe}},extension:{$visitor:Ee.visitors.document.extension.$visitor}}}},Mde=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=ye.refract(e),i=na(Nde),s=Nr(t,i),a=new s({specObj:i});return Ar(n,a),Qi(a.element,r,{toolboxCreator:W9,visitorOptions:{keyMap:_i,nodeTypeGetter:ri}})},Nt=e=>(t,r={})=>Mde(t,{specPath:e,...r});Wh.refract=Nt(["visitors","document","objects","Callback","$visitor"]);Jh.refract=Nt(["visitors","document","objects","Components","$visitor"]);Kh.refract=Nt(["visitors","document","objects","Contact","$visitor"]);Hh.refract=Nt(["visitors","document","objects","Example","$visitor"]);DC.refract=Nt(["visitors","document","objects","Discriminator","$visitor"]);qC.refract=Nt(["visitors","document","objects","Encoding","$visitor"]);Gh.refract=Nt(["visitors","document","objects","ExternalDocumentation","$visitor"]);Yh.refract=Nt(["visitors","document","objects","Header","$visitor"]);Xh.refract=Nt(["visitors","document","objects","Info","$visitor"]);ka.refract=Nt(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]);Zh.refract=Nt(["visitors","document","objects","License","$visitor"]);Qh.refract=Nt(["visitors","document","objects","Link","$visitor"]);em.refract=Nt(["visitors","document","objects","MediaType","$visitor"]);$C.refract=Nt(["visitors","document","objects","OAuthFlow","$visitor"]);FC.refract=Nt(["visitors","document","objects","OAuthFlows","$visitor"]);BC.refract=Nt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);sa.refract=Nt(["visitors","document","objects","OpenApi","$visitor"]);Xl.refract=Nt(["visitors","document","objects","Operation","$visitor"]);tm.refract=Nt(["visitors","document","objects","Parameter","$visitor"]);Hs.refract=Nt(["visitors","document","objects","PathItem","$visitor"]);rm.refract=Nt(["visitors","document","objects","Paths","$visitor"]);aa.refract=Nt(["visitors","document","objects","Reference","$visitor"]);nm.refract=Nt(["visitors","document","objects","RequestBody","$visitor"]);im.refract=Nt(["visitors","document","objects","Response","$visitor"]);sm.refract=Nt(["visitors","document","objects","Responses","$visitor"]);Gs.refract=Nt(["visitors","document","objects","Schema","$visitor"]);om.refract=Nt(["visitors","document","objects","SecurityRequirement","$visitor"]);um.refract=Nt(["visitors","document","objects","SecurityScheme","$visitor"]);cm.refract=Nt(["visitors","document","objects","Server","$visitor"]);lm.refract=Nt(["visitors","document","objects","ServerVariable","$visitor"]);LC.refract=Nt(["visitors","document","objects","Tag","$visitor"]);UC.refract=Nt(["visitors","document","objects","XML","$visitor"]);class Dde extends xl{constructor(t){super({...t??{},name:"binary"})}canParse(t){return this.fileExtensions.length===0?!0:this.fileExtensions.includes(t.extension)}parse(t){try{const r=unescape(encodeURIComponent(t.toString())),n=btoa(r),i=new Ai;if(n.length!==0){const s=new ye.StringElement(n);s.classes.push("result"),i.push(s)}return i}catch(r){throw new gs(`Error parsing "${t.uri}"`,{cause:r})}}}class qde extends Dae{constructor(t){super({...t??{},name:"openapi-3-1"})}canResolve(t,r){const n=r.dereference.strategies.find(i=>i.name==="openapi-3-1");return n===void 0?!1:n.canDereference(t,r)}async resolve(t,r){const n=r.dereference.strategies.find(a=>a.name==="openapi-3-1");if(n===void 0)throw new j5('"openapi-3-1" dereference strategy is not available.');const i=new Uo,s=i5(r,{resolve:{internal:!1},dereference:{refSet:i}});return await n.dereference(t,s),i}}const{AbortController:$de,AbortSignal:Fde}=globalThis;typeof globalThis.AbortController>"u"&&(globalThis.AbortController=$de);typeof globalThis.AbortSignal>"u"&&(globalThis.AbortSignal=Fde);class Bde extends Mae{constructor({swaggerHTTPClient:r=wc,swaggerHTTPClientConfig:n={},...i}={}){super({...i,name:"http-swagger-client"});Y(this,"swaggerHTTPClient",wc);Y(this,"swaggerHTTPClientConfig");this.swaggerHTTPClient=r,this.swaggerHTTPClientConfig=n}getHttpClient(){return this.swaggerHTTPClient}async read(r){const n=this.getHttpClient(),i=new AbortController,{signal:s}=i,a=setTimeout(()=>{i.abort()},this.timeout),o=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",u=this.redirects===0?"error":"follow",c=this.redirects>0?this.redirects:void 0;try{return(await n({url:r.uri,signal:s,userFetch:async(f,h)=>{let d=await fetch(f,h);try{d.headers.delete("Content-Type")}catch{d=new Response(d.body,{...d,headers:new Headers(d.headers)}),d.headers.delete("Content-Type")}return d},credentials:o,redirect:u,follow:c,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(l){throw new s5(`Error downloading "${r.uri}"`,{cause:l})}finally{clearTimeout(a)}}}class Lde extends xl{constructor(t={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...t})}async canParse(t){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(t.extension),n=this.mediaTypes.includes(t.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{return JSON.parse(t.toString()),!0}catch{return!1}return!1}async parse(t){if(this.sourceMap)throw new gs("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new Ai,n=t.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const i=T5(JSON.parse(n));return i.classes.push("result"),r.push(i),r}catch(i){throw new gs(`Error parsing "${t.uri}"`,{cause:i})}}}class Ude extends xl{constructor(t={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...t})}async canParse(t){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(t.extension),n=this.mediaTypes.includes(t.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{return Ta.load(t.toString(),{schema:dc}),!0}catch{return!1}return!1}async parse(t){if(this.sourceMap)throw new gs("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new Ai,n=t.toString();try{const i=Ta.load(n,{schema:dc});if(this.allowEmpty&&typeof i>"u")return r;const s=T5(i);return s.classes.push("result"),r.push(s),r}catch(i){throw new gs(`Error parsing "${t.uri}"`,{cause:i})}}}class Vde extends xl{constructor(r={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new jC(...Wo.filterByFormat("generic"),...Wo.filterByFormat("json")),...r});Y(this,"detectionRegExp",/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/)}async canParse(r){const n=this.fileExtensions.length===0?!0:this.fileExtensions.includes(r.extension),i=this.mediaTypes.includes(r.mediaType);if(!n)return!1;if(i)return!0;if(!i)try{const s=r.toString();return JSON.parse(s),this.detectionRegExp.test(s)}catch{return!1}return!1}async parse(r){if(this.sourceMap)throw new gs("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Ai,i=r.toString();if(this.allowEmpty&&i.trim()==="")return n;try{const s=JSON.parse(i),a=sa.refract(s,this.refractorOpts);return a.classes.push("result"),n.push(a),n}catch(s){throw new gs(`Error parsing "${r.uri}"`,{cause:s})}}}class zde extends xl{constructor(r={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new jC(...Wo.filterByFormat("generic"),...Wo.filterByFormat("yaml")),...r});Y(this,"detectionRegExp",/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m)}async canParse(r){const n=this.fileExtensions.length===0?!0:this.fileExtensions.includes(r.extension),i=this.mediaTypes.includes(r.mediaType);if(!n)return!1;if(i)return!0;if(!i)try{const s=r.toString();return Ta.load(s),this.detectionRegExp.test(s)}catch{return!1}return!1}async parse(r){if(this.sourceMap)throw new gs("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Ai,i=r.toString();try{const s=Ta.load(i,{schema:dc});if(this.allowEmpty&&typeof s>"u")return n;const a=sa.refract(s,this.refractorOpts);return a.classes.push("result"),n.push(a),n}catch(s){throw new gs(`Error parsing "${r.uri}"`,{cause:s})}}}const fm=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Ko=e=>{const t=r5(e);return QU("#",t)},Wde=e=>{if(!fm(e))throw new Bae(e);return e},WC=(e,t)=>{const r=Wde(e),n=O5(i=>Ei(i)&&Re(i.$anchor)===r,t);if(ra(n))throw new $ae(`Evaluation failed on token: "${r}"`);return n},J9=(e,t)=>{if(typeof t.$ref>"u")return;const r=r5(Re(t.$ref)),n=Re(t.meta.get("ancestorsSchemaIdentifiers"));return`${lu((s,a)=>Lr(s,Ch(zt(a))),e,[...n,Re(t.$ref)])}${r==="#"?"":r}`},Jde=(e,t)=>{if(typeof t.$id>"u")return;const r=Re(t.meta.get("ancestorsSchemaIdentifiers"));return lu((n,i)=>Lr(n,Ch(zt(i))),e,r)},ac=e=>{if(ac.cache.has(e))return ac.cache.get(e);const t=Gs.refract(e);return ac.cache.set(e,t),t};ac.cache=new WeakMap;const Xr=e=>Ra(e)?ac(e):e,pm=(e,t)=>{const{cache:r}=pm,n=zt(e),i=a=>Ei(a)&&typeof a.$id<"u";if(!r.has(t)){const a=bae(i,t);r.set(t,Array.from(a))}const s=r.get(t).find(a=>Jde(n,a)===n);if(ra(s))throw new bC(`Evaluation failed on URI: "${e}"`);return fm(Ko(e))?WC(Ko(e),s):bi(s,Qn(e))};pm.cache=new WeakMap;const Hf=Ar[Symbol.for("nodejs.util.promisify.custom")],qr=new yC,Gn=(e,t,r,n)=>{Ii(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class _a{constructor({reference:t,namespace:r,options:n,indirections:i=[],ancestors:s=new Q1,refractCache:a=new Map,allOfDiscriminatorMapping:o=new Map}){Y(this,"indirections");Y(this,"namespace");Y(this,"reference");Y(this,"options");Y(this,"ancestors");Y(this,"refractCache");Y(this,"allOfDiscriminatorMapping");Y(this,"OpenApi3_1Element",{leave:(t,r,n,i,s,a)=>{var o;if(!((o=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&o!==void 0&&o.dereferenceDiscriminatorMapping))return;const u=Pr(t);return u.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),a.replaceWith(u,Gn),n?void 0:u}});this.indirections=i,this.namespace=r,this.reference=t,this.options=n,this.ancestors=new Q1(...s),this.refractCache=a,this.allOfDiscriminatorMapping=o}toBaseURI(t){return Lr(this.reference.uri,Ch(zt(t)))}async toReference(t){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Lae(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const r=this.toBaseURI(t),{refSet:n}=this.reference;if(n.has(r))return n.find(VU(r,"uri"));const i=await $se($i(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=new ps({uri:r,value:Je(i),depth:this.reference.depth+1});if(n.add(s),this.options.dereference.immutable){const a=new ps({uri:`immutable://${r}`,value:i,depth:this.reference.depth+1});n.add(a)}return s}toAncestorLineage(t){const r=new Set(t.filter(yr));return[new Q1(...this.ancestors,r),r]}async ReferenceElement(t,r,n,i,s,a){if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]),c=this.toBaseURI(Re(t.$ref)),l=zt(this.reference.uri)===c,f=!l;if(!this.options.resolve.internal&&l||!this.options.resolve.external&&f)return!1;const h=await this.toReference(Re(t.$ref)),d=Lr(c,Re(t.$ref));this.indirections.push(t);const g=Qn(d);let y=bi(h.value.result,g);if(y.id=qr.identify(y),Ra(y)){const S=Re(t.meta.get("referenced-element")),A=`${S}-${Re(qr.identify(y))}`;this.refractCache.has(A)?y=this.refractCache.get(A):er(y)?(y=aa.refract(y),y.setMetaProperty("referenced-element",S),this.refractCache.set(A,y)):(y=this.namespace.getElementClass(S).refract(y),this.refractCache.set(A,y))}if(t===y)throw new lr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ao(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(y)){if(h.refSet.circular=!0,this.options.dereference.circular==="error")throw new lr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,_;const S=new ye.RefElement(y.id,{type:"reference",uri:h.uri,$ref:Re(t.$ref)}),R=((v=(_=this.options.dereference.strategyOpts["openapi-3-1"])===null||_===void 0?void 0:_.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(S);return a.replaceWith(R,Gn),n?!1:R}}const b=zt(h.refSet.rootRef.uri)!==h.uri,E=["error","replace"].includes(this.options.dereference.circular);if((f||b||Ga(y)||E)&&!o.includesCycle(y)){u.add(t);const S=new _a({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});y=await Hf(y,S,{keyMap:_i,nodeTypeGetter:ri}),u.delete(t)}this.indirections.pop();const w=Pr(y);return w.setMetaProperty("id",qr.generateId()),w.setMetaProperty("ref-fields",{$ref:Re(t.$ref),description:Re(t.description),summary:Re(t.summary)}),w.setMetaProperty("ref-origin",h.uri),w.setMetaProperty("ref-referencing-element-id",Je(qr.identify(t))),Tt(y)&&Tt(w)&&(t.hasKey("description")&&"description"in y&&(w.remove("description"),w.set("description",t.get("description"))),t.hasKey("summary")&&"summary"in y&&(w.remove("summary"),w.set("summary",t.get("summary")))),a.replaceWith(w,Gn),n?!1:w}async PathItemElement(t,r,n,i,s,a){if(!st(t.$ref))return;if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]),c=this.toBaseURI(Re(t.$ref)),l=zt(this.reference.uri)===c,f=!l;if(!this.options.resolve.internal&&l||!this.options.resolve.external&&f)return;const h=await this.toReference(Re(t.$ref)),d=Lr(c,Re(t.$ref));this.indirections.push(t);const g=Qn(d);let y=bi(h.value.result,g);if(y.id=qr.identify(y),Ra(y)){const w=`path-item-${Re(qr.identify(y))}`;this.refractCache.has(w)?y=this.refractCache.get(w):(y=Hs.refract(y),this.refractCache.set(w,y))}if(t===y)throw new lr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ao(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(y)){if(h.refSet.circular=!0,this.options.dereference.circular==="error")throw new lr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,_;const w=new ye.RefElement(y.id,{type:"path-item",uri:h.uri,$ref:Re(t.$ref)}),A=((v=(_=this.options.dereference.strategyOpts["openapi-3-1"])===null||_===void 0?void 0:_.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(w);return a.replaceWith(A,Gn),n?!1:A}}const b=zt(h.refSet.rootRef.uri)!==h.uri,E=["error","replace"].includes(this.options.dereference.circular);if((f||b||Na(y)&&st(y.$ref)||E)&&!o.includesCycle(y)){u.add(t);const w=new _a({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});y=await Hf(y,w,{keyMap:_i,nodeTypeGetter:ri}),u.delete(t)}if(this.indirections.pop(),Na(y)){const w=new Hs([...y.content],Je(y.meta),Je(y.attributes));w.setMetaProperty("id",qr.generateId()),t.forEach((S,A,R)=>{w.remove(Re(A)),w.content.push(R)}),w.remove("$ref"),w.setMetaProperty("ref-fields",{$ref:Re(t.$ref)}),w.setMetaProperty("ref-origin",h.uri),w.setMetaProperty("ref-referencing-element-id",Je(qr.identify(t))),y=w}return a.replaceWith(y,Gn),n?void 0:y}async LinkElement(t,r,n,i,s,a){if(!st(t.operationRef)&&!st(t.operationId))return;if(st(t.operationRef)&&st(t.operationId))throw new lr("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(st(t.operationRef)){var u;const l=Qn(Re(t.operationRef)),f=this.toBaseURI(Re(t.operationRef)),h=zt(this.reference.uri)===f,d=!h;if(!this.options.resolve.internal&&h||!this.options.resolve.external&&d)return;const g=await this.toReference(Re(t.operationRef));if(o=bi(g.value.result,l),Ra(o)){const v=`operation-${Re(qr.identify(o))}`;this.refractCache.has(v)?o=this.refractCache.get(v):(o=Xl.refract(o),this.refractCache.set(v,o))}o=Pr(o),o.setMetaProperty("ref-origin",g.uri);const y=Pr(t);return(u=y.operationRef)===null||u===void 0||u.meta.set("operation",o),a.replaceWith(y,Gn),n?void 0:y}if(st(t.operationId)){var c;const l=Re(t.operationId),f=await this.toReference($i(this.reference.uri));if(o=O5(d=>z9(d)&&yr(d.operationId)&&d.operationId.equals(l),f.value.result),ra(o))throw new lr(`OperationElement(operationId=${l}) not found.`);const h=Pr(t);return(c=h.operationId)===null||c===void 0||c.meta.set("operation",o),a.replaceWith(h,Gn),n?void 0:h}}async ExampleElement(t,r,n,i,s,a){if(!st(t.externalValue))return;if(t.hasKey("value")&&st(t.externalValue))throw new lr("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(Re(t.externalValue)),u=zt(this.reference.uri)===o,c=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&c)return;const l=await this.toReference(Re(t.externalValue)),f=Pr(l.value.result);f.setMetaProperty("ref-origin",l.uri);const h=Pr(t);return h.value=f,a.replaceWith(h,Gn),n?void 0:h}async MemberElement(t,r,n,i,s,a){var o;const u=s[s.length-1];if(!Tt(u)||!u.classes.contains("discriminator-mapping"))return;if(!((o=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&o!==void 0&&o.dereferenceDiscriminatorMapping)||!st(t.key)||!st(t.value)||this.indirections.includes(t))return!1;this.indirections.push(t);const[c,l]=this.toAncestorLineage([...s,n]),f=[...l].findLast(Ei),h=Je(f.getMetaProperty("ancestorsSchemaIdentifiers")),d=Re(t.value),y=/^[a-zA-Z0-9\\.\\-_]+$/.test(d)?`#/components/schemas/${d}`:d,v=new Gs({$ref:y});v.setMetaProperty("ancestorsSchemaIdentifiers",h),l.add(v);const _=new _a({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping}),b=await Hf(v,_,{keyMap:_i,nodeTypeGetter:ri});l.delete(v),this.indirections.pop();const E=Pr(t);return E.value.setMetaProperty("ref-schema",b),a.replaceWith(E,Gn),n?void 0:E}async SchemaElement(t,r,n,i,s,a){if(!st(t.$ref))return;if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]);let c=await this.toReference($i(this.reference.uri)),{uri:l}=c;const f=J9(l,t),h=zt(f),d=new Sc({uri:h}),g=Bie(D=>D.canRead(d),this.options.resolve.resolvers),y=!g;let v=zt(this.reference.uri)===f,_=!v;this.indirections.push(t);let b;try{if(g||y){l=this.toBaseURI(f);const D=f,N=Xr(c.value.result);if(b=pm(D,N),b=Xr(b),b.id=qr.identify(b),!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return}else{if(l=this.toBaseURI(f),v=zt(this.reference.uri)===l,_=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return;c=await this.toReference($i(f));const D=Qn(f),N=Xr(c.value.result);b=bi(N,D),b=Xr(b),b.id=qr.identify(b)}}catch(D){if(y&&D instanceof bC)if(fm(Ko(f))){if(v=zt(this.reference.uri)===l,_=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return;c=await this.toReference($i(f));const N=Ko(f),$=Xr(c.value.result);b=WC(N,$),b=Xr(b),b.id=qr.identify(b)}else{if(l=this.toBaseURI(f),v=zt(this.reference.uri)===l,_=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return;c=await this.toReference($i(f));const N=Qn(f),$=Xr(c.value.result);b=bi($,N),b=Xr(b),b.id=qr.identify(b)}else throw D}if(t===b)throw new lr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ao(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(b)){if(c.refSet.circular=!0,this.options.dereference.circular==="error")throw new lr("Circular reference detected");if(this.options.dereference.circular==="replace"){var E,w;const D=new ye.RefElement(b.id,{type:"json-schema",uri:c.uri,$ref:Re(t.$ref)}),$=((E=(w=this.options.dereference.strategyOpts["openapi-3-1"])===null||w===void 0?void 0:w.circularReplacer)!==null&&E!==void 0?E:this.options.dereference.circularReplacer)(D);return a.replaceWith($,Gn),n?!1:$}}const S=zt(c.refSet.rootRef.uri)!==c.uri,A=["error","replace"].includes(this.options.dereference.circular);if((_||S||Ei(b)&&st(b.$ref)||A)&&!o.includesCycle(b)){u.add(t);const D=new _a({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});b=await Hf(b,D,{keyMap:_i,nodeTypeGetter:ri}),u.delete(t)}if(this.indirections.pop(),zC(b)){const D=Je(b);return D.setMetaProperty("id",qr.generateId()),D.setMetaProperty("ref-fields",{$ref:Re(t.$ref),$refBaseURI:f}),D.setMetaProperty("ref-origin",c.uri),D.setMetaProperty("ref-referencing-element-id",Je(qr.identify(t))),a.replaceWith(D,Gn),n?!1:D}if(Ei(b)){var R;const D=new Gs([...b.content],Je(b.meta),Je(b.attributes));if(D.setMetaProperty("id",qr.generateId()),t.forEach((N,$,M)=>{D.remove(Re($)),D.content.push(M)}),D.remove("$ref"),D.setMetaProperty("ref-fields",{$ref:Re(t.$ref),$refBaseURI:f}),D.setMetaProperty("ref-origin",c.uri),D.setMetaProperty("ref-referencing-element-id",Je(qr.identify(t))),(R=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&R!==void 0&&R.dereferenceDiscriminatorMapping){var T;const N=s[s.length-1],$=[...u].findLast(Ei),M=$==null?void 0:$.getMetaProperty("schemaName"),X=Re(D.getMetaProperty("schemaName"));if(X&&M&&N!==null&&N!==void 0&&(T=N.classes)!==null&&T!==void 0&&T.contains("json-schema-allOf")){var O;const ee=(O=this.allOfDiscriminatorMapping.get(X))!==null&&O!==void 0?O:[];ee.push($),this.allOfDiscriminatorMapping.set(X,ee)}}b=D}return a.replaceWith(b,Gn),n?void 0:b}}const Kde=Ar[Symbol.for("nodejs.util.promisify.custom")];class Hde extends qae{constructor(t){super({...t??{},name:"openapi-3-1"})}canDereference(t){var r;return t.mediaType!=="text/plain"?Wo.includes(t.mediaType):V9((r=t.parseResult)===null||r===void 0?void 0:r.result)}async dereference(t,r){var n;const i=xs(VC),s=(n=r.dereference.refSet)!==null&&n!==void 0?n:new Uo,a=new Uo;let o=s,u;s.has(t.uri)?u=s.find(VU(t.uri,"uri")):(u=new ps({uri:t.uri,value:t.parseResult}),s.add(u)),r.dereference.immutable&&(s.refs.map(f=>new ps({...f,value:Je(f.value)})).forEach(f=>a.add(f)),u=a.find(f=>f.uri===t.uri),o=a);const c=new _a({reference:u,namespace:i,options:r}),l=await Kde(o.rootRef.value,c,{keyMap:_i,nodeTypeGetter:ri});return r.dereference.immutable&&a.refs.filter(f=>f.uri.startsWith("immutable://")).map(f=>new ps({...f,uri:f.uri.replace(/^immutable:\/\//,"")})).forEach(f=>s.add(f)),r.dereference.refSet===null&&s.clean(),a.clean(),l}}const Gde=e=>e.slice(2),yi=e=>{const t=Gde(e);return t.reduce((r,n,i)=>{if(Ii(n)){const s=String(Re(n.key));r.push(s)}else if(Wr(t[i-2])){const s=t[i-2].content.indexOf(n);r.push(s)}return r},[])};class Yde{constructor({modelPropertyMacro:t,options:r}){Y(this,"modelPropertyMacro");Y(this,"options");Y(this,"SchemaElement",{leave:(t,r,n,i,s)=>{typeof t.properties>"u"||Tt(t.properties)&&t.properties.forEach(a=>{if(Tt(a))try{const c=this.modelPropertyMacro(Re(a));a.set("default",c)}catch(c){var o,u;const l=new Error(c,{cause:c});l.fullPath=[...yi([...s,n,t]),"properties"],(o=this.options.dereference.dereferenceOpts)===null||o===void 0||(o=o.errors)===null||o===void 0||(u=o.push)===null||u===void 0||u.call(o,l)}})}});this.modelPropertyMacro=t,this.options=r}}class Xde{constructor({options:t}){Y(this,"options");Y(this,"SchemaElement",{leave(t,r,n,i,s){if(typeof t.allOf>"u")return;if(!Wr(t.allOf)){var a,o;const f=new TypeError("allOf must be an array");f.fullPath=[...yi([...s,n,t]),"allOf"],(a=this.options.dereference.dereferenceOpts)===null||a===void 0||(a=a.errors)===null||a===void 0||(o=a.push)===null||o===void 0||o.call(a,f);return}if(t.allOf.isEmpty){t.remove("allOf");return}if(!t.allOf.content.every(Ei)){var c,l;const f=new TypeError("Elements in allOf must be objects");f.fullPath=[...yi([...s,n,t]),"allOf"],(c=this.options.dereference.dereferenceOpts)===null||c===void 0||(c=c.errors)===null||c===void 0||(l=c.push)===null||l===void 0||l.call(c,f);return}for(;t.hasKey("allOf");){const{allOf:f}=t;t.remove("allOf");const h=ni.all([...f.content,t],{customMerge:d=>Re(d)==="enum"?(g,y)=>{if(Vo(["json-schema-enum"],g)&&Vo(["json-schema-enum"],y)){const v=(b,E)=>Wr(b)||Wr(E)||Tt(b)||Tt(E)?!1:b.equals(Re(E)),_=Pr(g);return _.content=JU(v)([...g.content,...y.content]),_}return ni(g,y)}:ni});if(t.hasKey("$$ref")||h.remove("$$ref"),t.hasKey("example")){const d=h.getMember("example");d&&(d.value=t.get("example"))}if(t.hasKey("examples")){const d=h.getMember("examples");d&&(d.value=t.get("examples"))}t.content=h.content}}});this.options=t}}var xa;class Zde{constructor({parameterMacro:t,options:r}){Y(this,"parameterMacro");Y(this,"options");as(this,xa);Y(this,"OperationElement",{enter:t=>{oo(this,xa,t)},leave:()=>{oo(this,xa,void 0)}});Y(this,"ParameterElement",{leave:(t,r,n,i,s)=>{const a=or(this,xa)?Re(or(this,xa)):null,o=Re(t);try{const l=this.parameterMacro(a,o);t.set("default",l)}catch(l){var u,c;const f=new Error(l,{cause:l});f.fullPath=yi([...s,n]),(u=this.options.dereference.dereferenceOpts)===null||u===void 0||(u=u.errors)===null||u===void 0||(c=u.push)===null||c===void 0||c.call(u,f)}}});this.parameterMacro=t,this.options=r}}xa=new WeakMap;const Gf=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t};class Qde extends Ji{}const{wrapError:iw}=EC,sw=Ar[Symbol.for("nodejs.util.promisify.custom")],Yn=new yC,da=(e,t,r,n)=>{Ii(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class oc extends _a{constructor({allowMetaPatches:r=!0,useCircularStructures:n=!1,basePath:i=null,...s}){super(s);Y(this,"useCircularStructures");Y(this,"allowMetaPatches");Y(this,"basePath");this.allowMetaPatches=r,this.useCircularStructures=n,this.basePath=i}async ReferenceElement(r,n,i,s,a,o){try{if(this.indirections.includes(r))return!1;const[g,y]=this.toAncestorLineage([...a,i]),v=this.toBaseURI(Re(r.$ref)),_=zt(this.reference.uri)===v,b=!_;if(!this.options.resolve.internal&&_||!this.options.resolve.external&&b)return!1;const E=await this.toReference(Re(r.$ref)),w=Lr(v,Re(r.$ref));this.indirections.push(r);const S=Qn(w);let A=bi(E.value.result,S);if(A.id=Yn.identify(A),Ra(A)){const D=Re(r.meta.get("referenced-element")),N=`${D}-${Re(Yn.identify(A))}`;this.refractCache.has(N)?A=this.refractCache.get(N):er(A)?(A=aa.refract(A),A.setMetaProperty("referenced-element",D),this.refractCache.set(N,A)):(A=this.namespace.getElementClass(D).refract(A),this.refractCache.set(N,A))}if(r===A)throw new lr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ao(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(A)){if(E.refSet.circular=!0,this.options.dereference.circular==="error")throw new lr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const D=new ye.RefElement(A.id,{type:"reference",uri:E.uri,$ref:Re(r.$ref),baseURI:w,referencingElement:r}),$=((u=(c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0?void 0:c.circularReplacer)!==null&&u!==void 0?u:this.options.dereference.circularReplacer)(D);return o.replaceWith(D,da),i?!1:$}}const R=zt(E.refSet.rootRef.uri)!==E.uri,T=["error","replace"].includes(this.options.dereference.circular);if((b||R||Ga(A)||T)&&!g.includesCycle(A)){var l;y.add(r);const D=new oc({reference:E,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:g,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...yi([...a,i,r]),"$ref"]});A=await sw(A,D,{keyMap:_i,nodeTypeGetter:ri}),y.delete(r)}this.indirections.pop();const O=Pr(A);if(O.setMetaProperty("ref-fields",{$ref:Re(r.$ref),description:Re(r.description),summary:Re(r.summary)}),O.setMetaProperty("ref-origin",E.uri),O.setMetaProperty("ref-referencing-element-id",Je(Yn.identify(r))),Tt(A)&&(r.hasKey("description")&&"description"in A&&(O.remove("description"),O.set("description",r.get("description"))),r.hasKey("summary")&&"summary"in A&&(O.remove("summary"),O.set("summary",r.get("summary")))),this.allowMetaPatches&&Tt(O)&&!O.hasKey("$$ref")){const D=Lr(v,w);O.set("$$ref",D)}return o.replaceWith(O,da),i?!1:O}catch(g){var f,h,d;const y=Gf(g),v=iw(y,{baseDoc:this.reference.uri,$ref:Re(r.$ref),pointer:Qn(Re(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...yi([...a,i,r]),"$ref"]});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(d=h.push)===null||d===void 0||d.call(h,v);return}}async PathItemElement(r,n,i,s,a,o){try{if(!st(r.$ref))return;if(this.indirections.includes(r)||Vo(["cycle"],r.$ref))return!1;const[g,y]=this.toAncestorLineage([...a,i]),v=this.toBaseURI(Re(r.$ref)),_=zt(this.reference.uri)===v,b=!_;if(!this.options.resolve.internal&&_||!this.options.resolve.external&&b)return;const E=await this.toReference(Re(r.$ref)),w=Lr(v,Re(r.$ref));this.indirections.push(r);const S=Qn(w);let A=bi(E.value.result,S);if(A.id=Yn.identify(A),Ra(A)){const O=`path-item-${Re(Yn.identify(A))}`;this.refractCache.has(O)?A=this.refractCache.get(O):(A=Hs.refract(A),this.refractCache.set(O,A))}if(r===A)throw new lr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ao(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(A)){if(E.refSet.circular=!0,this.options.dereference.circular==="error")throw new lr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const O=new ye.RefElement(A.id,{type:"path-item",uri:E.uri,$ref:Re(r.$ref),baseURI:w,referencingElement:r}),N=((u=(c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0?void 0:c.circularReplacer)!==null&&u!==void 0?u:this.options.dereference.circularReplacer)(O);return o.replaceWith(O,da),i?!1:N}}const R=zt(E.refSet.rootRef.uri)!==E.uri,T=["error","replace"].includes(this.options.dereference.circular);if((b||R||Na(A)&&st(A.$ref)||T)&&!g.includesCycle(A)){var l;y.add(r);const O=new oc({reference:E,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:g,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...yi([...a,i,r]),"$ref"]});A=await sw(A,O,{keyMap:_i,nodeTypeGetter:ri}),y.delete(r)}if(this.indirections.pop(),Na(A)){const O=new Hs([...A.content],Je(A.meta),Je(A.attributes));if(r.forEach((D,N,$)=>{O.remove(Re(N)),O.content.push($)}),O.remove("$ref"),O.setMetaProperty("ref-fields",{$ref:Re(r.$ref)}),O.setMetaProperty("ref-origin",E.uri),O.setMetaProperty("ref-referencing-element-id",Je(Yn.identify(r))),this.allowMetaPatches&&typeof O.get("$$ref")>"u"){const D=Lr(v,w);O.set("$$ref",D)}A=O}return o.replaceWith(A,da),i?void 0:A}catch(g){var f,h,d;const y=Gf(g),v=iw(y,{baseDoc:this.reference.uri,$ref:Re(r.$ref),pointer:Qn(Re(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...yi([...a,i,r]),"$ref"]});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(d=h.push)===null||d===void 0||d.call(h,v);return}}async SchemaElement(r,n,i,s,a,o){try{if(!st(r.$ref))return;if(this.indirections.includes(r))return!1;const[g,y]=this.toAncestorLineage([...a,i]);let v=await this.toReference($i(this.reference.uri)),{uri:_}=v;const b=J9(_,r),E=zt(b),w=new Sc({uri:E}),S=!this.options.resolve.resolvers.some($=>$.canRead(w)),A=!S;let R=zt(this.reference.uri)===b,T=!R;this.indirections.push(r);let O;try{if(S||A){_=this.toBaseURI(b);const $=b,M=Xr(v.value.result);if(O=pm($,M),O=Xr(O),O.id=Yn.identify(O),!this.options.resolve.internal&&R||!this.options.resolve.external&&T)return}else{if(_=this.toBaseURI(b),R=zt(this.reference.uri)===_,T=!R,!this.options.resolve.internal&&R||!this.options.resolve.external&&T)return;v=await this.toReference($i(b));const $=Qn(b),M=Xr(v.value.result);O=bi(M,$),O=Xr(O),O.id=Yn.identify(O)}}catch($){if(A&&$ instanceof bC)if(fm(Ko(b))){if(R=zt(this.reference.uri)===_,T=!R,!this.options.resolve.internal&&R||!this.options.resolve.external&&T)return;v=await this.toReference($i(b));const M=Ko(b),X=Xr(v.value.result);O=WC(M,X),O=Xr(O),O.id=Yn.identify(O)}else{if(_=this.toBaseURI(Re(b)),R=zt(this.reference.uri)===_,T=!R,!this.options.resolve.internal&&R||!this.options.resolve.external&&T)return;v=await this.toReference($i(b));const M=Qn(b),X=Xr(v.value.result);O=bi(X,M),O=Xr(O),O.id=Yn.identify(O)}else throw $}if(r===O)throw new lr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ao(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(O)){if(v.refSet.circular=!0,this.options.dereference.circular==="error")throw new lr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const $=new ye.RefElement(O.id,{type:"json-schema",uri:v.uri,$ref:Re(r.$ref),baseURI:Lr(_,b),referencingElement:r}),X=((u=(c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0?void 0:c.circularReplacer)!==null&&u!==void 0?u:this.options.dereference.circularReplacer)($);return o.replaceWith(X,da),i?!1:X}}const D=zt(v.refSet.rootRef.uri)!==v.uri,N=["error","replace"].includes(this.options.dereference.circular);if((T||D||Ei(O)&&st(O.$ref)||N)&&!g.includesCycle(O)){var l;y.add(r);const $=new oc({reference:v,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:g,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...yi([...a,i,r]),"$ref"]});O=await sw(O,$,{keyMap:_i,nodeTypeGetter:ri}),y.delete(r)}if(this.indirections.pop(),zC(O)){const $=Je(O);return $.setMetaProperty("ref-fields",{$ref:Re(r.$ref)}),$.setMetaProperty("ref-origin",v.uri),$.setMetaProperty("ref-referencing-element-id",Je(Yn.identify(r))),o.replaceWith($,da),i?!1:$}if(Ei(O)){const $=new Gs([...O.content],Je(O.meta),Je(O.attributes));if(r.forEach((M,X,ee)=>{$.remove(Re(X)),$.content.push(ee)}),$.remove("$ref"),$.setMetaProperty("ref-fields",{$ref:Re(r.$ref)}),$.setMetaProperty("ref-origin",v.uri),$.setMetaProperty("ref-referencing-element-id",Je(Yn.identify(r))),this.allowMetaPatches&&typeof $.get("$$ref")>"u"){const M=Lr(_,b);$.set("$$ref",M)}O=$}return o.replaceWith(O,da),i?void 0:O}catch(g){var f,h,d;const y=Gf(g),v=new Qde(`Could not resolve reference: ${y.message}`,{baseDoc:this.reference.uri,$ref:Re(r.$ref),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...yi([...a,i,r]),"$ref"],cause:y});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(d=h.push)===null||d===void 0||d.call(h,v);return}}async LinkElement(){}async ExampleElement(r,n,i,s,a,o){try{return await super.ExampleElement(r,n,i,s,a,o)}catch(f){var u,c,l;const h=Gf(f),d=iw(h,{baseDoc:this.reference.uri,externalValue:Re(r.externalValue),fullPath:(u=this.basePath)!==null&&u!==void 0?u:[...yi([...a,i,r]),"externalValue"]});(c=this.options.dereference.dereferenceOpts)===null||c===void 0||(c=c.errors)===null||c===void 0||(l=c.push)===null||l===void 0||l.call(c,d);return}}}const ehe=Ph[Symbol.for("nodejs.util.promisify.custom")];class the{constructor({parameterMacro:t,modelPropertyMacro:r,mode:n,options:i,...s}){const a=[];a.push(new oc({...s,options:i})),typeof r=="function"&&a.push(new Yde({modelPropertyMacro:r,options:i})),n!=="strict"&&a.push(new Xde({options:i})),typeof t=="function"&&a.push(new Zde({parameterMacro:t,options:i}));const o=ehe(a,{nodeTypeGetter:ri});Object.assign(this,o)}}const rhe=Ar[Symbol.for("nodejs.util.promisify.custom")];class nhe extends Hde{constructor({allowMetaPatches:r=!1,parameterMacro:n=null,modelPropertyMacro:i=null,mode:s="non-strict",ancestors:a=[],...o}={}){super({...o});Y(this,"allowMetaPatches");Y(this,"parameterMacro");Y(this,"modelPropertyMacro");Y(this,"mode");Y(this,"ancestors");this.name="openapi-3-1-swagger-client",this.allowMetaPatches=r,this.parameterMacro=n,this.modelPropertyMacro=i,this.mode=s,this.ancestors=[...a]}async dereference(r,n){var i;const s=xs(VC),a=(i=n.dereference.refSet)!==null&&i!==void 0?i:new Uo,o=new Uo;let u=a,c;a.has(r.uri)?c=a.find(h=>h.uri===r.uri):(c=new ps({uri:r.uri,value:r.parseResult}),a.add(c)),n.dereference.immutable&&(a.refs.map(h=>new ps({...h,value:Je(h.value)})).forEach(h=>o.add(h)),c=o.find(h=>h.uri===r.uri),u=o);const l=new the({reference:c,namespace:s,options:n,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),f=await rhe(u.rootRef.value,l,{keyMap:_i,nodeTypeGetter:ri});return n.dereference.immutable&&o.refs.filter(h=>h.uri.startsWith("immutable://")).map(h=>new ps({...h,uri:h.uri.replace(/^immutable:\/\//,"")})).forEach(h=>a.add(h)),n.dereference.refSet===null&&a.clean(),o.clean(),f}}const ihe=e=>{const t=Re(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new ye.ObjectElement({$ref:t},Je(r.meta),Je(r.attributes))},dm=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:i,responseInterceptor:s,pathDiscriminator:a=[],allowMetaPatches:o=!1,useCircularStructures:u=!1,skipNormalization:c=!1,parameterMacro:l=null,modelPropertyMacro:f=null,mode:h="non-strict",strategies:d}=e;try{const{cache:g}=dm,y=d.find(ee=>ee.match(t)),v=uC(Tx())?Tx():Kp,_=OC(e),b=Lr(v,_);let E;g.has(t)?E=g.get(t):(E=sa.refract(t),E.classes.push("result"),g.set(t,E));const w=new Ai([E]),S=u9(a),A=S===""?"":`#${S}`,R=bi(E,S),T=new ps({uri:b,value:w}),O=new Uo({refs:[T]});S!==""&&(O.rootRef=void 0);const D=[new Set([R])],N=[],$=await Uae(R,{resolve:{baseURI:`${b}${A}`,resolvers:[new Bde({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:s}},strategies:[new qde]},parse:{mediaType:Wo.latest(),parsers:[new Vde({allowEmpty:!1,sourceMap:!1}),new zde({allowEmpty:!1,sourceMap:!1}),new Lde({allowEmpty:!1,sourceMap:!1}),new Ude({allowEmpty:!1,sourceMap:!1}),new Dde({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new nhe({allowMetaPatches:o,useCircularStructures:u,parameterMacro:l,modelPropertyMacro:f,mode:h,ancestors:D})],refSet:O,dereferenceOpts:{errors:N},immutable:!1,circular:u?"ignore":"replace",circularReplacer:u?n5.dereference.circularReplacer:ihe}}),M=Cae(R,$,E),X=c?M:y.normalize(M);return{spec:Re(X),errors:N}}catch(g){if(g instanceof Ia)return{spec:t,errors:[]};throw g}};dm.cache=new WeakMap;const JF=e=>{if(!Tt(e))return e;const t=[zfe({operationIdNormalizer:(n,i,s)=>kh({operationId:n},i,s,{v2OperationIdCompatibilityMode:!1})}),Bfe(),Lfe(),Wfe(),Jfe()];return Qi(e,t,{toolboxCreator:W9,visitorOptions:{keyMap:_i,nodeTypeGetter:ri}})},she=e=>t=>{const r=sa.refract(t);r.classes.push("result");const n=e(r),i=Re(n);return dm.cache.set(i,n),Re(n)},ahe={name:"openapi-3-1-apidom",match(e){return IC(e)},normalize(e){if(!yr(e)&&xi(e)&&!e.$$normalized){const t=she(JF)(e);return t.$$normalized=!0,t}return yr(e)?JF(e):e},async resolve(e){return dm(e)}},ohe=async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,i=OC(e),s=e9(e),a=t||await G5(s,{requestInterceptor:r,responseInterceptor:n})(i),o={...e,spec:a};return e.strategies.find(c=>c.match(a)).resolve(o)},K9=e=>async t=>{const r={...e,...t};return ohe(r)},uhe=K9({strategies:[a9,s9,r9]});function che(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let t="";return t+=`; OpenAPI Server URL templating ABNF syntax
142
+ `,t+=`server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2
143
+ `,t+=`server-variable = "{" server-variable-name "}"
144
+ `,t+=`server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
145
+ `,t+=`
146
+ `,t+=`; https://www.rfc-editor.org/rfc/rfc6570#section-2.1
147
+ `,t+=`; https://www.rfc-editor.org/errata/eid6937
148
+ `,t+=`literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B
149
+ `,t+=` / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate
150
+ `,t+=` / pct-encoded)
151
+ `,t+=` ; any Unicode character except: CTL, SP,
152
+ `,t+=` ; DQUOTE, "%" (aside from pct-encoded),
153
+ `,t+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',t+=`
154
+ `,t+=`; https://www.rfc-editor.org/rfc/rfc6570#section-1.5
155
+ `,t+=`DIGIT = %x30-39 ; 0-9
156
+ `,t+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive
157
+ `,t+=`
158
+ `,t+=`pct-encoded = "%" HEXDIG HEXDIG
159
+ `,t+=`
160
+ `,t+=`ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF
161
+ `,t+=` / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD
162
+ `,t+=` / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD
163
+ `,t+=` / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
164
+ `,t+=` / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD
165
+ `,t+=` / %xD0000-DFFFD / %xE1000-EFFFD
166
+ `,t+=`
167
+ `,t+=`iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD
168
+ `,t}}const lhe=(e,t,r,n,i)=>{if(e===ht.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-url-template",Fn.charsToString(t,r,n)])}return ht.SEM_OK},fhe=(e,t,r,n,i)=>{if(e===ht.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable",Fn.charsToString(t,r,n)])}return ht.SEM_OK},phe=(e,t,r,n,i)=>{if(e===ht.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable-name",Fn.charsToString(t,r,n)])}return ht.SEM_OK},dhe=(e,t,r,n,i)=>{if(e===ht.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["literals",Fn.charsToString(t,r,n)])}return ht.SEM_OK},hhe=new che,H9=e=>{const t=new li;return t.ast=new TC,t.ast.callbacks["server-url-template"]=lhe,t.ast.callbacks["server-variable"]=fhe,t.ast.callbacks["server-variable-name"]=phe,t.ast.callbacks.literals=dhe,{result:t.parse(hhe,"server-url-template",e),ast:t.ast}},mhe=(e,{strict:t=!1}={})=>{try{const r=H9(e);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const i=n.some(([s])=>s==="server-variable");if(!t&&!i)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return t?i:!0}catch{return!1}},ghe=e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}},yhe=e=>ghe(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),vhe=["literals","server-variable-name"],bhe=(e,t,r={})=>{const i={...{encoder:yhe},...r},s=H9(e);if(!s.result.success)return e;const a=[];return s.ast.translate(a),a.filter(([u])=>vhe.includes(u)).map(([u,c])=>u==="server-variable-name"?Object.hasOwn(t,c)?i.encoder(t[c],c):`{${c}}`:c).join("")};function G9(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let t="";return t+=`; OpenAPI Path Templating ABNF syntax
169
+ `,t+=`; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
170
+ `,t+=`path-template = slash *( path-segment slash ) [ path-segment ]
171
+ `,t+=`path-segment = 1*( path-literal / template-expression )
172
+ `,t+=`slash = "/"
173
+ `,t+=`path-literal = 1*pchar
174
+ `,t+=`template-expression = "{" template-expression-param-name "}"
175
+ `,t+=`template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
176
+ `,t+=`
177
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
178
+ `,t+=`pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
179
+ `,t+=`unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
180
+ `,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3
181
+ `,t+=`pct-encoded = "%" HEXDIG HEXDIG
182
+ `,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1
183
+ `,t+=`sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
184
+ `,t+=` / "*" / "+" / "," / ";" / "="
185
+ `,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2
186
+ `,t+=`
187
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
188
+ `,t+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
189
+ `,t+=`DIGIT = %x30-39 ; 0-9
190
+ `,t+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
191
+ `,t}}const _he=(e,t,r,n,i)=>(e===ht.SEM_PRE&&i.push(["slash",Fn.charsToString(t,r,n)]),ht.SEM_OK),Ehe=(e,t,r,n,i)=>{if(e===ht.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["path-template",Fn.charsToString(t,r,n)])}return ht.SEM_OK},She=(e,t,r,n,i)=>(e===ht.SEM_PRE&&i.push(["path-literal",Fn.charsToString(t,r,n)]),ht.SEM_OK),whe=(e,t,r,n,i)=>(e===ht.SEM_PRE&&i.push(["template-expression",Fn.charsToString(t,r,n)]),ht.SEM_OK),xhe=(e,t,r,n,i)=>(e===ht.SEM_PRE&&i.push(["template-expression-param-name",Fn.charsToString(t,r,n)]),ht.SEM_OK),Ahe=new G9,Ohe=e=>{const t=new li;return t.ast=new TC,t.ast.callbacks["path-template"]=Ehe,t.ast.callbacks.slash=_he,t.ast.callbacks["path-literal"]=She,t.ast.callbacks["template-expression"]=whe,t.ast.callbacks["template-expression-param-name"]=xhe,{result:t.parse(Ahe,"path-template",e),ast:t.ast}},Che=e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}},Rhe=e=>Che(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Ihe=["slash","path-literal","template-expression-param-name"],gA=(e,t,r={})=>{const i={...{encoder:Rhe},...r},s=Ohe(e);if(!s.result.success)return e;const a=[];return s.ast.translate(a),a.filter(([u])=>Ihe.includes(u)).map(([u,c])=>u==="template-expression-param-name"?Object.prototype.hasOwnProperty.call(t,c)?i.encoder(t[c],c):`{${c}}`:c).join("")};new G9;new li;const The={body:jhe,header:khe,query:Mhe,path:Nhe,formData:Phe};function jhe({req:e,value:t}){t!==void 0&&(e.body=t)}function Phe({req:e,value:t,parameter:r}){if(t===!1&&r.type==="boolean"&&(t="false"),t===0&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&t!==void 0){e.form=e.form||{};const n=r.name;e.form[n]=e.form[n]||{},e.form[n].allowEmptyValue=!0}}function khe({req:e,parameter:t,value:r}){e.headers=e.headers||{},typeof r<"u"&&(e.headers[t.name]=r)}function Nhe({req:e,value:t,parameter:r,baseURL:n}){if(t!==void 0){const i=e.url.replace(n,""),s=gA(i,{[r.name]:t});e.url=n+s}}function Mhe({req:e,value:t,parameter:r}){if(e.query=e.query||{},t===!1&&r.type==="boolean"&&(t="false"),t===0&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&t!==void 0){const n=r.name;e.query[n]=e.query[n]||{},e.query[n].allowEmptyValue=!0}}function hm(e,t){return t.includes("application/json")?typeof e=="string"?e:(Array.isArray(e)&&(e=e.map(r=>{try{return JSON.parse(r)}catch{return r}})),JSON.stringify(e)):String(e)}function of(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){let t="";return t+=`; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
192
+ `,t+=`lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )
193
+ `,t+=`lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid
194
+ `,t+=`lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS
195
+ `,t+=`lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored
196
+ `,t+=`lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="
197
+ `,t+=`lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet
198
+ `,t+=`lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE
199
+ `,t+=`lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE
200
+ `,t+=`lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E
201
+ `,t+=` ; Allow all printable characters except CTLs, semicolon and SP
202
+ `,t+=`
203
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
204
+ `,t+=`cookie-string = cookie-pair *( ";" SP cookie-pair )
205
+ `,t+=`
206
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
207
+ `,t+=`; https://www.rfc-editor.org/errata/eid5518
208
+ `,t+=`cookie-pair = cookie-name "=" cookie-value
209
+ `,t+=`cookie-name = token
210
+ `,t+=`cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet
211
+ `,t+=` ; https://www.rfc-editor.org/errata/eid8242
212
+ `,t+=`cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
213
+ `,t+=` ; US-ASCII characters excluding CTLs,
214
+ `,t+=` ; whitespace, DQUOTE, comma, semicolon,
215
+ `,t+=` ; and backslash
216
+ `,t+=`
217
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2
218
+ `,t+=`OWS = *( [ CRLF ] WSP ) ; "optional" whitespace
219
+ `,t+=`
220
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2
221
+ `,t+=`token = 1*(tchar)
222
+ `,t+=`tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
223
+ `,t+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',t+=` / DIGIT / ALPHA
224
+ `,t+=` ; any VCHAR, except delimiters
225
+ `,t+=`
226
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
227
+ `,t+=`CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)
228
+ `,t+=`CTL = %x00-1F / %x7F ; any US-ASCII control character
229
+ `,t+=`separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT
230
+ `,t+=`SP = %x20 ; US-ASCII SP, space (32)
231
+ `,t+=`HT = %x09 ; US-ASCII HT, horizontal-tab (9)
232
+ `,t+=`
233
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
234
+ `,t+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
235
+ `,t+=`DIGIT = %x30-39 ; 0-9
236
+ `,t+=`DQUOTE = %x22 ; " (Double Quote)
237
+ `,t+=`WSP = SP / HTAB ; white space
238
+ `,t+=`HTAB = %x09 ; horizontal tab
239
+ `,t+=`CRLF = CR LF ; Internet standard newline
240
+ `,t+=`CR = %x0D ; carriage return
241
+ `,t+=`LF = %x0A ; linefeed
242
+ `,t}}new of;const Dhe=e=>{if(typeof e!="string"||[...e].length!==1)throw new TypeError("Input must be a single character string.");const t=e.codePointAt(0);return t<=127?`%${t.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(e)},qhe=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),mm=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),Y9=e=>mm(e)?e.slice(1,-1):e,X9=e=>`"${e}"`,Z9=e=>e,$he=new li,Fhe=new of,JC=(e,{strict:t=!0,quoted:r=null}={})=>{try{const n=t?"cookie-value":"lenient-cookie-value",i=$he.parse(Fhe,n,e);return typeof r=="boolean"?i.success&&r===mm(e):i.success}catch{return!1}},Q9=e=>{const r=new TextEncoder().encode(e).reduce((n,i)=>n+String.fromCharCode(i),"");return btoa(r)},Bhe=(e,t=Q9)=>{const r=String(e);if(JC(r))return r;const n=mm(r),i=n?Y9(r):r,s=t(i);return n?X9(s):s},Lhe=e=>qhe(Q9(e)),Uhe=e=>Bhe(e,Lhe),Vhe=new li,zhe=new of,e7=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return Vhe.parse(zhe,r,e).success}catch{return!1}},Whe=e=>{if(!e7(e))throw new TypeError(`Invalid cookie name: ${e}`)},t7=e=>{if(!JC(e))throw new TypeError(`Invalid cookie value: ${e}`)},KF={encoders:{name:Z9,value:Uhe},validators:{name:Whe,value:t7}},Jhe=(e,t,r={})=>{const n={...r,encoders:{...KF.encoders,...r.encoders},validators:{...KF.validators,...r.validators}},i=n.encoders.name(e),s=n.encoders.value(t);return n.validators.name(i),n.validators.value(s),`${i}=${s}`},Khe=(e,t={})=>(Array.isArray(e)?e:typeof e=="object"&&e!==null?Object.entries(e):[]).map(([n,i])=>Jhe(n,i,t)).join("; "),Hhe=new li,Ghe=new of,Yhe=e=>{const t=String(e);if(JC(t))return t;const r=mm(t),n=r?Y9(t):t;let i="";for(const s of n)i+=Hhe.parse(Ghe,"cookie-octet",s).success?s:Dhe(s);return r?X9(i):i};new li;new of;const Xhe=e=>{if(!e7(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)},Zhe="%3D",Qhe="%26",eme=e=>Yhe(e).replace(/[=&]/gu,t=>t==="="?Zhe:Qhe),yA=(e,t={})=>Khe(e,Sh({encoders:{name:Z9,value:eme},validators:{name:Xhe,value:t7}},t));function tme({req:e,value:t,parameter:r,baseURL:n}){const{name:i,style:s,explode:a,content:o}=r;if(t===void 0)return;const u=e.url.replace(n,"");let c;if(o){const l=Object.keys(o)[0];c=gA(u,{[i]:t},{encoder:f=>X5(hm(f,l))})}else c=gA(u,{[i]:t},{encoder:l=>xC({key:r.name,value:l,style:s||"simple",explode:a??!1,escape:"reserved"})});e.url=n+c}function rme({req:e,value:t,parameter:r}){if(e.query=e.query||{},t!==void 0&&r.content){const n=Object.keys(r.content)[0],i=hm(t,n);if(i)e.query[r.name]=i;else if(r.allowEmptyValue){const s=r.name;e.query[s]=e.query[s]||{},e.query[s].allowEmptyValue=!0}return}if(t===!1&&(t="false"),t===0&&(t="0"),t){const{style:n,explode:i,allowReserved:s}=r;e.query[r.name]={value:t,serializationOption:{style:n,explode:i,allowReserved:s}}}else if(r.allowEmptyValue&&t!==void 0){const n=r.name;e.query[n]=e.query[n]||{},e.query[n].allowEmptyValue=!0}}const nme=["accept","authorization","content-type"];function ime({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(nme.indexOf(t.name.toLowerCase())>-1)){if(r!==void 0&&t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=hm(r,n);return}r!==void 0&&!(Array.isArray(r)&&r.length===0)&&(e.headers[t.name]=xC({key:t.name,value:r,style:t.style||"simple",explode:typeof t.explode>"u"?!1:t.explode,escape:!1}))}}function sme({req:e,parameter:t,value:r}){const{name:n}=t;if(e.headers=e.headers||{},r!==void 0&&t.content){const s=Object.keys(t.content)[0],a=hm(r,s);e.headers.Cookie=yA({[n]:a});return}if(r!==void 0&&!(Array.isArray(r)&&r.length===0)){var i;const s=xC({key:t.name,value:r,escape:!1,style:t.style||"form",explode:(i=t.explode)!==null&&i!==void 0?i:!1}),a=Array.isArray(r)&&t.explode?`${n}=${s}`:s;e.headers.Cookie=yA({[n]:a})}}const ame=Object.freeze(Object.defineProperty({__proto__:null,cookie:sme,header:ime,path:tme,query:rme},Symbol.toStringTag,{value:"Module"})),ome=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:r7}=ome;function ume(e,t){const{operation:r,requestBody:n,securities:i,spec:s,attachContentTypeForEmptyPayload:a}=e;let{requestContentType:o}=e;t=cme({request:t,securities:i,operation:r,spec:s});const u=r.requestBody||{},c=Object.keys(u.content||{}),l=o&&c.indexOf(o)>-1;if(n||a){if(o&&l)t.headers["Content-Type"]=o;else if(!o){const y=c[0];y&&(t.headers["Content-Type"]=y,o=y)}}else o&&l&&(t.headers["Content-Type"]=o);if(!e.responseContentType&&r.responses){const y=Object.entries(r.responses).filter(([v,_])=>{const b=parseInt(v,10);return b>=200&&b<300&&xi(_.content)}).reduce((v,[,_])=>v.concat(Object.keys(_.content)),[]);y.length>0&&(t.headers.accept=y.join(", "))}if(n)if(o){if(c.indexOf(o)>-1)if(o==="application/x-www-form-urlencoded"||o==="multipart/form-data")if(typeof n=="object"){var f,h;const y=(f=(h=u.content[o])===null||h===void 0?void 0:h.encoding)!==null&&f!==void 0?f:{};t.form={},Object.keys(n).forEach(v=>{let _;try{_=JSON.parse(n[v])}catch{_=n[v]}t.form[v]={value:_,encoding:y[v]||{}}})}else if(typeof n=="string"){var d,g;const y=(d=(g=u.content[o])===null||g===void 0?void 0:g.encoding)!==null&&d!==void 0?d:{};try{t.form={};const v=JSON.parse(n);Object.entries(v).forEach(([_,b])=>{t.form[_]={value:b,encoding:y[_]||{}}})}catch{t.form=n}}else t.form=n;else t.body=n}else t.body=n;return t}function cme({request:e,securities:t={},operation:r={},spec:n}){var i;const s={...e},{authorized:a={}}=t,o=r.security||n.security||[],u=a&&!!Object.keys(a).length,c=(n==null||(i=n.components)===null||i===void 0?void 0:i.securitySchemes)||{};return s.headers=s.headers||{},s.query=s.query||{},!Object.keys(t).length||!u||!o||Array.isArray(r.security)&&!r.security.length?e:(o.forEach(l=>{Object.keys(l).forEach(f=>{const h=a[f],d=c[f];if(!h)return;const g=h.value||h,{type:y}=d;if(h){if(y==="apiKey")d.in==="query"&&(s.query[d.name]=g),d.in==="header"&&(s.headers[d.name]=g),d.in==="cookie"&&(s.cookies[d.name]=g);else if(y==="http"){if(/^basic$/i.test(d.scheme)){const v=g.username||"",_=g.password||"",b=r7(`${v}:${_}`);s.headers.Authorization=`Basic ${b}`}/^bearer$/i.test(d.scheme)&&(s.headers.Authorization=`Bearer ${g}`)}else if(y==="oauth2"||y==="openIdConnect"){const v=h.token||{},_=d["x-tokenName"]||"access_token",b=v[_];let E=v.token_type;(!E||E.toLowerCase()==="bearer")&&(E="Bearer"),s.headers.Authorization=`${E} ${b}`}}})}),s)}function lme(e,t){const{spec:r,operation:n,securities:i,requestContentType:s,responseContentType:a,attachContentTypeForEmptyPayload:o}=e;if(t=fme({request:t,securities:i,operation:n,spec:r}),t.body||t.form||o)s?t.headers["Content-Type"]=s:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter(u=>u.type==="file").length?t.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter(u=>u.in==="formData").length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){const u=n.parameters&&n.parameters.filter(l=>l.in==="body").length>0,c=n.parameters&&n.parameters.filter(l=>l.in==="formData").length>0;(u||c)&&(t.headers["Content-Type"]=s)}return!a&&Array.isArray(n.produces)&&n.produces.length>0&&(t.headers.accept=n.produces.join(", ")),t}function fme({request:e,securities:t={},operation:r={},spec:n}){const i={...e},{authorized:s={},specSecurity:a=[]}=t,o=r.security||a,u=s&&!!Object.keys(s).length,c=n.securityDefinitions;return i.headers=i.headers||{},i.query=i.query||{},!Object.keys(t).length||!u||!o||Array.isArray(r.security)&&!r.security.length?e:(o.forEach(l=>{Object.keys(l).forEach(f=>{const h=s[f];if(!h)return;const{token:d}=h,g=h.value||h,y=c[f],{type:v}=y,_=y["x-tokenName"]||"access_token",b=d&&d[_];let E=d&&d.token_type;if(h)if(v==="apiKey"){const w=y.in==="query"?"query":"headers";i[w]=i[w]||{},i[w][y.name]=g}else if(v==="basic")if(g.header)i.headers.authorization=g.header;else{const w=g.username||"",S=g.password||"";g.base64=r7(`${w}:${S}`),i.headers.authorization=`Basic ${g.base64}`}else v==="oauth2"&&b&&(E=!E||E.toLowerCase()==="bearer"?"Bearer":E,i.headers.authorization=`${E} ${b}`)})}),i)}function pme(e,t,r){if(!e||typeof e!="object"||!e.paths||typeof e.paths!="object")return null;const{paths:n}=e;for(const i in n)for(const s in n[i]){if(s.toUpperCase()==="PARAMETERS")continue;const a=n[i][s];if(!a||typeof a!="object")continue;const o={spec:e,pathName:i,method:s.toUpperCase(),operation:a};if(t(o))return o}}function dme(e,t){return pme(e,t)||null}function n7(e,t){return`${t.toLowerCase()}-${e}`}function hme(e,t){return!e||!e.paths?null:dme(e,({pathName:r,method:n,operation:i})=>{if(!i||typeof i!="object")return!1;const s=i.operationId,a=kh(i,r,n),o=n7(r,n);return[a,o,s].some(u=>u&&u===t)})}const HF=e=>Array.isArray(e)?e:[],uc=(e,{recurse:t=!0,depth:r=1}={})=>{if(xi(e)){if(e.type==="object"||e.type==="array"||Array.isArray(e.type)&&(e.type.includes("object")||e.type.includes("array")))return e;if(!(r>L5)&&t){const n=Array.isArray(e.oneOf)?e.oneOf.find(s=>uc(s,{recurse:t,depth:r+1})):void 0;if(n)return n;const i=Array.isArray(e.anyOf)?e.anyOf.find(s=>uc(s,{recurse:t,depth:r+1})):void 0;if(i)return i}}},aw=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(xi(r)||Array.isArray(r))return r;if(!t)throw new Error("Expected JSON serialized object or array")}catch{if(!t)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return e},yp=e=>{try{return new URL(e)}catch{const t=new URL(e,Kp),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class mme extends Ji{}const gme=(e,t)=>t.filter(r=>r.name===e),yme=e=>{const t={};e.forEach(n=>{t[n.in]||(t[n.in]={}),t[n.in][n.name]=n});const r=[];return Object.keys(t).forEach(n=>{Object.keys(t[n]).forEach(i=>{r.push(t[n][i])})}),r},vme={buildRequest:i7};function bme({http:e,fetch:t,spec:r,operationId:n,pathName:i,method:s,parameters:a,securities:o,...u}){const c=e||t||wc;i&&s&&!n&&(n=n7(i,s));const l=vme.buildRequest({spec:r,operationId:n,parameters:a,securities:o,http:c,...u});return l.body&&(xi(l.body)||Array.isArray(l.body))&&(l.body=JSON.stringify(l.body)),c(l)}function i7(e){const{spec:t,operationId:r,responseContentType:n,scheme:i,requestInterceptor:s,responseInterceptor:a,contextUrl:o,userFetch:u,server:c,serverVariables:l,http:f,signal:h,serverVariableEncoder:d}=e;let{parameters:g,parameterBuilders:y,baseURL:v}=e;const _=i9(t);y||(_?y=ame:y=The);let E={url:"",credentials:f&&f.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(E.signal=h),s&&(E.requestInterceptor=s),a&&(E.responseInterceptor=a),u&&(E.userFetch=u);const w=hme(t,r);if(!w)throw new mme(`Operation ${r} not found`);const{operation:S={},method:A,pathName:R}=w;if(v=v??_me({spec:t,scheme:i,contextUrl:o,server:c,serverVariables:l,pathName:R,method:A,serverVariableEncoder:d}),E.url+=v,!r)return delete E.cookies,E;E.url+=R,E.method=`${A}`.toUpperCase(),g=g||{};const T=t.paths[R]||{};n&&(E.headers.accept=n);const O=yme([].concat(HF(S.parameters)).concat(HF(T.parameters)));O.forEach(N=>{const $=y[N.in];let M;if(N.in==="body"&&N.schema&&N.schema.properties&&(M=g),M=N&&N.name&&g[N.name],typeof M>"u"?M=N&&N.name&&g[`${N.in}.${N.name}`]:gme(N.name,O).length>1&&console.warn(`Parameter '${N.name}' is ambiguous because the defined spec has more than one parameter with the name: '${N.name}' and the passed-in parameter values did not define an 'in' value.`),M!==null){if(typeof N.default<"u"&&typeof M>"u"&&(M=N.default),typeof M>"u"&&N.required&&!N.allowEmptyValue)throw new Error(`Required parameter ${N.name} is not provided`);_&&typeof M=="string"&&(sc("type",N.schema)&&typeof N.schema.type=="string"&&uc(N.schema,{recurse:!1})?M=aw({value:M,silentFail:!1}):sc("type",N.schema)&&Array.isArray(N.schema.type)&&uc(N.schema,{recurse:!1})?M=aw({value:M,silentFail:!0}):!sc("type",N.schema)&&uc(N.schema,{recurse:!0})&&(M=aw({value:M,silentFail:!0}))),$&&$({req:E,parameter:N,value:M,operation:S,spec:t,baseURL:v})}});const D={...e,operation:S};if(_?E=ume(D,E):E=lme(D,E),E.cookies&&Object.keys(E.cookies).length>0){const N=yA(E.cookies);Ah(E.headers.Cookie)?E.headers.Cookie+=`; ${N}`:E.headers.Cookie=N}return E.cookies&&delete E.cookies,AC(E)}const vA=e=>e?e.replace(/\W/g,""):null;function _me(e){return i9(e.spec)?Eme(e):wme(e)}const ow=e=>Array.isArray(e)&&e.length>0;function Eme({spec:e,pathName:t,method:r,server:n,contextUrl:i,serverVariables:s={},serverVariableEncoder:a}){var o,u;let c=[],l="",f;const h=e==null||(o=e.paths)===null||o===void 0||(o=o[t])===null||o===void 0||(o=o[(r||"").toLowerCase()])===null||o===void 0?void 0:o.servers,d=e==null||(u=e.paths)===null||u===void 0||(u=u[t])===null||u===void 0?void 0:u.servers,g=e==null?void 0:e.servers;if(c=ow(h)?h:ow(d)?d:ow(g)?g:[moe],n&&(f=c.find(y=>y.url===n),f&&(l=n)),l||([f]=c,l=f.url),mhe(l,{strict:!0})){const y=Object.entries({...f.variables}).reduce((v,[_,b])=>(v[_]=b.default,v),{});l=bhe(l,{...y,...s},{encoder:typeof a=="function"?a:qU})}return Sme(l,i)}function Sme(e="",t=""){const r=yp(e&&t?Lr(t,e):e),n=yp(t),i=vA(r.protocol)||vA(n.protocol),s=r.host||n.host,a=r.pathname;let o;return i&&s?o=`${i}://${s+a}`:o=a,o[o.length-1]==="/"?o.slice(0,-1):o}function wme({spec:e,scheme:t,contextUrl:r=""}){const n=yp(r),i=Array.isArray(e.schemes)?e.schemes[0]:null,s=t||i||vA(n.protocol)||"http",a=e.host||n.host||"",o=e.basePath||"";let u;return a?u=`${s}://${a+o}`:u=o,u[u.length-1]==="/"?u.slice(0,-1):u}const xme=async(e,t,r={})=>{const{returnEntireTree:n,baseDoc:i,requestInterceptor:s,responseInterceptor:a,parameterMacro:o,modelPropertyMacro:u,useCircularStructures:c,strategies:l}=r,f={spec:e,pathDiscriminator:t,baseDoc:i,requestInterceptor:s,responseInterceptor:a,parameterMacro:o,modelPropertyMacro:u,useCircularStructures:c,strategies:l},d=l.find(y=>y.match(e)).normalize(e),g=await uhe({spec:d,...f,allowMetaPatches:!0,skipNormalization:!IC(e)});return!n&&Array.isArray(t)&&t.length&&(g.spec=t.reduce((y,v)=>y==null?void 0:y[v],g.spec)||null),g},Ame=e=>async(t,r,n={})=>{const i={...e,...n};return xme(t,r,i)};var Yf={exports:{}},uw={};/**
243
+ * @license React
244
+ * use-sync-external-store-with-selector.production.js
245
+ *
246
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
247
+ *
248
+ * This source code is licensed under the MIT license found in the
249
+ * LICENSE file in the root directory of this source tree.
250
+ */var GF;function Ome(){if(GF)return uw;GF=1;var e=Mt;function t(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,o=e.useDebugValue;return uw.useSyncExternalStoreWithSelector=function(u,c,l,f,h){var d=i(null);if(d.current===null){var g={hasValue:!1,value:null};d.current=g}else g=d.current;d=a(function(){function v(S){if(!_){if(_=!0,b=S,S=f(S),h!==void 0&&g.hasValue){var A=g.value;if(h(A,S))return E=A}return E=S}if(A=E,r(b,S))return A;var R=f(S);return h!==void 0&&h(A,R)?(b=S,A):(b=S,E=R)}var _=!1,b,E,w=l===void 0?null:l;return[function(){return v(c())},w===null?void 0:function(){return v(w())}]},[c,l,f,h]);var y=n(u,d[0],d[1]);return s(function(){g.hasValue=!0,g.value=y},[y]),o(y),y},uw}var cw={};/**
251
+ * @license React
252
+ * use-sync-external-store-with-selector.development.js
253
+ *
254
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
255
+ *
256
+ * This source code is licensed under the MIT license found in the
257
+ * LICENSE file in the root directory of this source tree.
258
+ */var YF;function Cme(){return YF||(YF=1,process.env.NODE_ENV!=="production"&&(function(){function e(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Mt,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,o=t.useDebugValue;cw.useSyncExternalStoreWithSelector=function(u,c,l,f,h){var d=i(null);if(d.current===null){var g={hasValue:!1,value:null};d.current=g}else g=d.current;d=a(function(){function v(S){if(!_){if(_=!0,b=S,S=f(S),h!==void 0&&g.hasValue){var A=g.value;if(h(A,S))return E=A}return E=S}if(A=E,r(b,S))return A;var R=f(S);return h!==void 0&&h(A,R)?(b=S,A):(b=S,E=R)}var _=!1,b,E,w=l===void 0?null:l;return[function(){return v(c())},w===null?void 0:function(){return v(w())}]},[c,l,f,h]);var y=n(u,d[0],d[1]);return s(function(){g.hasValue=!0,g.value=y},[y]),o(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cw}var XF;function Rme(){return XF||(XF=1,process.env.NODE_ENV==="production"?Yf.exports=Ome():Yf.exports=Cme()),Yf.exports}Rme();var s7=ut.version.startsWith("19"),Ime=Symbol.for(s7?"react.transitional.element":"react.element"),Tme=Symbol.for("react.portal"),a7=Symbol.for("react.fragment"),o7=Symbol.for("react.strict_mode"),u7=Symbol.for("react.profiler"),KC=Symbol.for("react.consumer"),HC=Symbol.for("react.context"),GC=Symbol.for("react.forward_ref"),c7=Symbol.for("react.suspense"),l7=Symbol.for("react.suspense_list"),gm=Symbol.for("react.memo"),f7=Symbol.for("react.lazy"),jme=Symbol.for("react.offscreen"),Pme=Symbol.for("react.client.reference"),kme=GC,Nme=gm;function Mme(e){return typeof e=="string"||typeof e=="function"||e===a7||e===u7||e===o7||e===c7||e===l7||e===jme||typeof e=="object"&&e!==null&&(e.$$typeof===f7||e.$$typeof===gm||e.$$typeof===HC||e.$$typeof===KC||e.$$typeof===GC||e.$$typeof===Pme||e.getModuleId!==void 0)}function bA(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case Ime:switch(e=e.type,e){case a7:case u7:case o7:case c7:case l7:return e;default:switch(e=e&&e.$$typeof,e){case HC:case GC:case f7:case gm:return e;case KC:return e;default:return t}}case Tme:return t}}}function Dme(e){return s7?bA(e)===KC:bA(e)===HC}function qme(e){return bA(e)===gm}function YC(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function lw(e,t){if(e)(t==="mapStateToProps"||t==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||YC(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${t} in connect.`)}function $me(e,t,r){lw(e,"mapStateToProps"),lw(t,"mapDispatchToProps"),lw(r,"mergeProps")}function Fme(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:s,areStatePropsEqual:a}){let o=!1,u,c,l,f,h;function d(b,E){return u=b,c=E,l=e(u,c),f=t(n,c),h=r(l,f,c),o=!0,h}function g(){return l=e(u,c),t.dependsOnOwnProps&&(f=t(n,c)),h=r(l,f,c),h}function y(){return e.dependsOnOwnProps&&(l=e(u,c)),t.dependsOnOwnProps&&(f=t(n,c)),h=r(l,f,c),h}function v(){const b=e(u,c),E=!a(b,l);return l=b,E&&(h=r(l,f,c)),h}function _(b,E){const w=!s(E,c),S=!i(b,u,E,c);return u=b,c=E,w&&S?g():w?y():S?v():h}return function(E,w){return o?_(E,w):d(E,w)}}function Bme(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const s=t(e,i),a=r(e,i),o=n(e,i);return process.env.NODE_ENV!=="production"&&$me(s,a,o),Fme(s,a,o,e,i)}function Lme(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...s)=>t(i(...s)))}return r}function Ume(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function p7(e,t,r){Ume(e)||YC(`${r}() in ${t} must return a plain object. Instead received ${e}.`)}function _A(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function ZF(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function d7(e,t){return function(n,{displayName:i}){const s=function(o,u){return s.dependsOnOwnProps?s.mapToProps(o,u):s.mapToProps(o,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(o,u){s.mapToProps=e,s.dependsOnOwnProps=ZF(e);let c=s(o,u);return typeof c=="function"&&(s.mapToProps=c,s.dependsOnOwnProps=ZF(c),c=s(o,u)),process.env.NODE_ENV!=="production"&&p7(c,i,t),c},s}}function XC(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function Vme(e){return e&&typeof e=="object"?_A(t=>Lme(e,t)):e?typeof e=="function"?d7(e,"mapDispatchToProps"):XC(e,"mapDispatchToProps"):_A(t=>({dispatch:t}))}function zme(e){return e?typeof e=="function"?d7(e,"mapStateToProps"):XC(e,"mapStateToProps"):_A(()=>({}))}function Wme(e,t,r){return{...r,...e,...t}}function Jme(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let s=!1,a;return function(u,c,l){const f=e(u,c,l);return s?i(f,a)||(a=f):(s=!0,a=f,process.env.NODE_ENV!=="production"&&p7(a,n,"mergeProps")),a}}}function Kme(e){return e?typeof e=="function"?Jme(e):XC(e,"mergeProps"):()=>Wme}function Hme(e){e()}function Gme(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Hme(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var QF={notify(){},get:()=>[]};function h7(e,t){let r,n=QF,i=0,s=!1;function a(y){l();const v=n.subscribe(y);let _=!1;return()=>{_||(_=!0,v(),f())}}function o(){n.notify()}function u(){g.onStateChange&&g.onStateChange()}function c(){return s}function l(){i++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=Gme())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=QF)}function h(){s||(s=!0,l())}function d(){s&&(s=!1,f())}const g={addNestedSub:a,notifyNestedSubs:o,handleChangeWrapper:u,isSubscribed:c,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return g}var Yme=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xme=Yme(),Zme=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Qme=Zme(),ege=()=>Xme||Qme?ut.useLayoutEffect:ut.useEffect,Qp=ege();function eB(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function fw(e,t){if(eB(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!eB(e[r[i]],t[r[i]]))return!1;return!0}var tge={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},rge={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},nge={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},m7={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ige={[kme]:nge,[Nme]:m7};function tB(e){return qme(e)?m7:ige[e.$$typeof]||tge}var sge=Object.defineProperty,age=Object.getOwnPropertyNames,rB=Object.getOwnPropertySymbols,oge=Object.getOwnPropertyDescriptor,uge=Object.getPrototypeOf,nB=Object.prototype;function EA(e,t){if(typeof t!="string"){if(nB){const s=uge(t);s&&s!==nB&&EA(e,s)}let r=age(t);rB&&(r=r.concat(rB(t)));const n=tB(e),i=tB(t);for(let s=0;s<r.length;++s){const a=r[s];if(!rge[a]&&!(i&&i[a])&&!(n&&n[a])){const o=oge(t,a);try{sge(e,a,o)}catch{}}}}return e}var pw=Symbol.for("react-redux-context"),dw=typeof globalThis<"u"?globalThis:{};function cge(){if(!ut.createContext)return{};const e=dw[pw]??(dw[pw]=new Map);let t=e.get(ut.createContext);return t||(t=ut.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(ut.createContext,t)),t}var g7=cge(),lge=[null,null],fge=e=>{try{return JSON.stringify(e)}catch{return String(e)}};function pge(e,t,r){Qp(()=>e(...t),r)}function dge(e,t,r,n,i,s){e.current=n,r.current=!1,i.current&&(i.current=null,s())}function hge(e,t,r,n,i,s,a,o,u,c,l){if(!e)return()=>{};let f=!1,h=null;const d=()=>{if(f||!o.current)return;const y=t.getState();let v,_;try{v=n(y,i.current)}catch(b){_=b,h=b}_||(h=null),v===s.current?a.current||c():(s.current=v,u.current=v,a.current=!0,l())};return r.onStateChange=d,r.trySubscribe(),d(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}function mge(e,t){return e===t}var iB=!1;function gge(e,t,r,{pure:n,areStatesEqual:i=mge,areOwnPropsEqual:s=fw,areStatePropsEqual:a=fw,areMergedPropsEqual:o=fw,forwardRef:u=!1,context:c=g7}={}){process.env.NODE_ENV!=="production"&&n!==void 0&&!iB&&(iB=!0,YC('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const l=c,f=zme(e),h=Vme(t),d=Kme(r),g=!!e;return v=>{if(process.env.NODE_ENV!=="production"&&!Mme(v))throw new Error(`You must pass a component to the function returned by connect. Instead received ${fge(v)}`);const _=v.displayName||v.name||"Component",b=`Connect(${_})`,E={shouldHandleStateChanges:g,displayName:b,wrappedComponentName:_,WrappedComponent:v,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:d,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:s,areMergedPropsEqual:o};function w(R){const[T,O,D]=ut.useMemo(()=>{const{reactReduxForwardedRef:pe,...Te}=R;return[R.context,pe,Te]},[R]),N=ut.useMemo(()=>{let pe=l;if(T!=null&&T.Consumer&&process.env.NODE_ENV!=="production"){if(!Dme(ut.createElement(T.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");pe=T}return pe},[T,l]),$=ut.useContext(N),M=!!R.store&&!!R.store.getState&&!!R.store.dispatch,X=!!$&&!!$.store;if(process.env.NODE_ENV!=="production"&&!M&&!X)throw new Error(`Could not find "store" in the context of "${b}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${b} in connect options.`);const ee=M?R.store:$.store,J=X?$.getServerState:ee.getState,Q=ut.useMemo(()=>Bme(ee.dispatch,E),[ee]),[te,re]=ut.useMemo(()=>{if(!g)return lge;const pe=h7(ee,M?void 0:$.subscription),Te=pe.notifyNestedSubs.bind(pe);return[pe,Te]},[ee,M,$]),L=ut.useMemo(()=>M?$:{...$,subscription:te},[M,$,te]),K=ut.useRef(void 0),ne=ut.useRef(D),ce=ut.useRef(void 0),ue=ut.useRef(!1),se=ut.useRef(!1),V=ut.useRef(void 0);Qp(()=>(se.current=!0,()=>{se.current=!1}),[]);const z=ut.useMemo(()=>()=>ce.current&&D===ne.current?ce.current:Q(ee.getState(),D),[ee,D]),de=ut.useMemo(()=>Te=>te?hge(g,ee,te,Q,ne,K,ue,se,ce,re,Te):()=>{},[te]);pge(dge,[ne,K,ue,D,ce,re]);let ge;try{ge=ut.useSyncExternalStore(de,z,J?()=>Q(J(),D):z)}catch(pe){throw V.current&&(pe.message+=`
259
+ The error may be correlated with this previous error:
260
+ ${V.current.stack}
261
+
262
+ `),pe}Qp(()=>{V.current=void 0,ce.current=void 0,K.current=ge});const Ce=ut.useMemo(()=>ut.createElement(v,{...ge,ref:O}),[O,v,ge]);return ut.useMemo(()=>g?ut.createElement(N.Provider,{value:L},Ce):Ce,[N,Ce,L])}const A=ut.memo(w);if(A.WrappedComponent=v,A.displayName=w.displayName=b,u){const T=ut.forwardRef(function(D,N){return ut.createElement(A,{...D,reactReduxForwardedRef:N})});return T.displayName=b,T.WrappedComponent=v,EA(T,v)}return EA(A,v)}}var yge=gge;function vge(e){const{children:t,context:r,serverState:n,store:i}=e,s=ut.useMemo(()=>{const u=h7(i),c={store:i,subscription:u,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:l="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:l})}},[i,n]),a=ut.useMemo(()=>i.getState(),[i]);Qp(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const o=r||g7;return ut.createElement(o.Provider,{value:s},t)}var bge=vge,_ge=Wc();const Ege=Ve.getDefaultExportFromCjs(_ge);function Sge(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function wge(e,t){if(e==null)return{};var r,n,i=Sge(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function SA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function xge(e){if(Array.isArray(e))return SA(e)}function Age(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Oge(e,t){if(e){if(typeof e=="string")return SA(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?SA(e,t):void 0}}function Cge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
263
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wA(e){return xge(e)||Age(e)||Oge(e)||Cge()}function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function Rge(e,t){if(Ac(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ac(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ige(e){var t=Rge(e,"string");return Ac(t)=="symbol"?t:t+""}function y7(e,t,r){return(t=Ige(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sB(Object(r),!0).forEach(function(n){y7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tge(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var hw={};function jge(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return hw[t]||(hw[t]=Tge(e)),hw[t]}function Pge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(s){return s!=="token"}),i=jge(n);return i.reduce(function(s,a){return wo(wo({},s),r[a])},t)}function aB(e){return e.join(" ")}function kge(e,t){var r=0;return function(n){return r+=1,n.map(function(i,s){return v7({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(s)})})}}function v7(e){var t=e.node,r=e.stylesheet,n=e.style,i=n===void 0?{}:n,s=e.useInlineStyles,a=e.key,o=t.properties,u=t.type,c=t.tagName,l=t.value;if(u==="text")return l;if(c){var f=kge(r,s),h;if(!s)h=wo(wo({},o),{},{className:aB(o.className)});else{var d=Object.keys(r).reduce(function(_,b){return b.split(".").forEach(function(E){_.includes(E)||_.push(E)}),_},[]),g=o.className&&o.className.includes("token")?["token"]:[],y=o.className&&g.concat(o.className.filter(function(_){return!d.includes(_)}));h=wo(wo({},o),{},{className:aB(y)||void 0,style:Pge(o.className,Object.assign({},o.style,i),r)})}var v=f(t.children);return Mt.createElement(c,kt._extends({key:a},h),v)}}const Nge=(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1});var Mge=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function oB(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oB(Object(r),!0).forEach(function(n){y7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oB(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Dge=/\n/g;function qge(e){return e.match(Dge)}function $ge(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(i,s){var a=s+r;return Mt.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(a):n},"".concat(a,`
264
+ `))})}function Fge(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,i=n===void 0?{float:"left",paddingRight:"10px"}:n,s=e.numberStyle,a=s===void 0?{}:s,o=e.startingLineNumber;return Mt.createElement("code",{style:Object.assign({},r,i)},$ge({lines:t.replace(/\n$/,"").split(`
265
+ `),style:a,startingLineNumber:o}))}function Bge(e){return"".concat(e.toString().length,".25em")}function b7(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function _7(e,t,r){var n={display:"inline-block",minWidth:Bge(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,s=Fs(Fs({},n),i);return s}function vp(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,i=e.largestLineNumber,s=e.showInlineLineNumbers,a=e.lineProps,o=a===void 0?{}:a,u=e.className,c=u===void 0?[]:u,l=e.showLineNumbers,f=e.wrapLongLines,h=e.wrapLines,d=h===void 0?!1:h,g=d?Fs({},typeof o=="function"?o(r):o):{};if(g.className=g.className?[].concat(wA(g.className.trim().split(/\s+/)),wA(c)):c,r&&s){var y=_7(n,r,i);t.unshift(b7(r,y))}return f&l&&(g.style=Fs({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:t}}function E7(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<e.length;n++){var i=e[n];if(i.type==="text")r.push(vp({children:[i],className:wA(new Set(t))}));else if(i.children){var s=t.concat(i.properties.className);E7(i.children,s).forEach(function(a){return r.push(a)})}}return r}function Lge(e,t,r,n,i,s,a,o,u){var c,l=E7(e.value),f=[],h=-1,d=0;function g(S,A){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return vp({children:S,lineNumber:A,lineNumberStyle:o,largestLineNumber:a,showInlineLineNumbers:i,lineProps:r,className:R,showLineNumbers:n,wrapLongLines:u,wrapLines:t})}function y(S,A){if(n&&A&&i){var R=_7(o,A,a);S.unshift(b7(A,R))}return S}function v(S,A){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||R.length>0?g(S,A,R):y(S,A)}for(var _=function(){var A=l[d],R=A.children[0].value,T=qge(R);if(T){var O=R.split(`
266
+ `);O.forEach(function(D,N){var $=n&&f.length+s,M={type:"text",value:"".concat(D,`
267
+ `)};if(N===0){var X=l.slice(h+1,d).concat(vp({children:[M],className:A.properties.className})),ee=v(X,$);f.push(ee)}else if(N===O.length-1){var J=l[d+1]&&l[d+1].children&&l[d+1].children[0],Q={type:"text",value:"".concat(D)};if(J){var te=vp({children:[Q],className:A.properties.className});l.splice(d+1,0,te)}else{var re=[Q],L=v(re,$,A.properties.className);f.push(L)}}else{var K=[M],ne=v(K,$,A.properties.className);f.push(ne)}}),h=d}d++};d<l.length;)_();if(h!==l.length-1){var b=l.slice(h+1,l.length);if(b&&b.length){var E=n&&f.length+s,w=v(b,E);f.push(w)}}return t?f:(c=[]).concat.apply(c,f)}function Uge(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(i,s){return v7({node:i,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(s)})})}function S7(e){return e&&typeof e.highlightAuto<"u"}function Vge(e){var t=e.astGenerator,r=e.language,n=e.code,i=e.defaultCodeValue;if(S7(t)){var s=Nge(t,r);return r==="text"?{value:i,language:"text"}:s?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:i}}catch{return{value:i}}}function zge(e,t){return function(n){var i,s,a=n.language,o=n.children,u=n.style,c=u===void 0?t:u,l=n.customStyle,f=l===void 0?{}:l,h=n.codeTagProps,d=h===void 0?{className:a?"language-".concat(a):void 0,style:Fs(Fs({},c['code[class*="language-"]']),c['code[class*="language-'.concat(a,'"]')])}:h,g=n.useInlineStyles,y=g===void 0?!0:g,v=n.showLineNumbers,_=v===void 0?!1:v,b=n.showInlineLineNumbers,E=b===void 0?!0:b,w=n.startingLineNumber,S=w===void 0?1:w,A=n.lineNumberContainerStyle,R=n.lineNumberStyle,T=R===void 0?{}:R,O=n.wrapLines,D=n.wrapLongLines,N=D===void 0?!1:D,$=n.lineProps,M=$===void 0?{}:$,X=n.renderer,ee=n.PreTag,J=ee===void 0?"pre":ee,Q=n.CodeTag,te=Q===void 0?"code":Q,re=n.code,L=re===void 0?(Array.isArray(o)?o[0]:o)||"":re,K=n.astGenerator,ne=wge(n,Mge);K=K||e;var ce=_?Mt.createElement(Fge,{containerStyle:A,codeStyle:d.style||{},numberStyle:T,startingLineNumber:S,codeString:L}):null,ue=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},se=S7(K)?"hljs":"prismjs",V=y?Object.assign({},ne,{style:Object.assign({},ue,f)}):Object.assign({},ne,{className:ne.className?"".concat(se," ").concat(ne.className):se,style:Object.assign({},f)});if(N?d.style=Fs({whiteSpace:"pre-wrap"},d.style):d.style=Fs({whiteSpace:"pre"},d.style),!K)return Mt.createElement(J,V,ce,Mt.createElement(te,d,L));(O===void 0&&X||N)&&(O=!0),X=X||Uge;var z=[{type:"text",value:L}],de=Vge({astGenerator:K,language:a,code:L,defaultCodeValue:z});de.language===null&&(de.value=z);var ge=(i=(s=L.match(/\n/g))===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0,Ce=S+ge,Pe=Lge(de,O,M,_,E,S,Ce,T,N);return Mt.createElement(J,V,Mt.createElement(te,d,!E&&ce,X({rows:Pe,stylesheet:c,useInlineStyles:y})))}}var ha={},mw,uB;function Wge(){if(uB)return mw;uB=1;function e(le){return le instanceof Map?le.clear=le.delete=le.set=function(){throw new Error("map is read-only")}:le instanceof Set&&(le.add=le.clear=le.delete=function(){throw new Error("set is read-only")}),Object.freeze(le),Object.getOwnPropertyNames(le).forEach(function(Ie){var Me=le[Ie];typeof Me=="object"&&!Object.isFrozen(Me)&&e(Me)}),le}var t=e,r=e;t.default=r;class n{constructor(Ie){Ie.data===void 0&&(Ie.data={}),this.data=Ie.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(le){return le.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(le,...Ie){const Me=Object.create(null);for(const et in le)Me[et]=le[et];return Ie.forEach(function(et){for(const yt in et)Me[yt]=et[yt]}),Me}const a="</span>",o=le=>!!le.kind;class u{constructor(Ie,Me){this.buffer="",this.classPrefix=Me.classPrefix,Ie.walk(this)}addText(Ie){this.buffer+=i(Ie)}openNode(Ie){if(!o(Ie))return;let Me=Ie.kind;Ie.sublanguage||(Me=`${this.classPrefix}${Me}`),this.span(Me)}closeNode(Ie){o(Ie)&&(this.buffer+=a)}value(){return this.buffer}span(Ie){this.buffer+=`<span class="${Ie}">`}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Ie){this.top.children.push(Ie)}openNode(Ie){const Me={kind:Ie,children:[]};this.add(Me),this.stack.push(Me)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Ie){return this.constructor._walk(Ie,this.rootNode)}static _walk(Ie,Me){return typeof Me=="string"?Ie.addText(Me):Me.children&&(Ie.openNode(Me),Me.children.forEach(et=>this._walk(Ie,et)),Ie.closeNode(Me)),Ie}static _collapse(Ie){typeof Ie!="string"&&Ie.children&&(Ie.children.every(Me=>typeof Me=="string")?Ie.children=[Ie.children.join("")]:Ie.children.forEach(Me=>{c._collapse(Me)}))}}class l extends c{constructor(Ie){super(),this.options=Ie}addKeyword(Ie,Me){Ie!==""&&(this.openNode(Me),this.addText(Ie),this.closeNode())}addText(Ie){Ie!==""&&this.add(Ie)}addSublanguage(Ie,Me){const et=Ie.root;et.kind=Me,et.sublanguage=!0,this.add(et)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function f(le){return new RegExp(le.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function h(le){return le?typeof le=="string"?le:le.source:null}function d(...le){return le.map(Me=>h(Me)).join("")}function g(...le){return"("+le.map(Me=>h(Me)).join("|")+")"}function y(le){return new RegExp(le.toString()+"|").exec("").length-1}function v(le,Ie){const Me=le&&le.exec(Ie);return Me&&Me.index===0}const _=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(le,Ie="|"){let Me=0;return le.map(et=>{Me+=1;const yt=Me;let St=h(et),Yt="";for(;St.length>0;){const Ue=_.exec(St);if(!Ue){Yt+=St;break}Yt+=St.substring(0,Ue.index),St=St.substring(Ue.index+Ue[0].length),Ue[0][0]==="\\"&&Ue[1]?Yt+="\\"+String(Number(Ue[1])+yt):(Yt+=Ue[0],Ue[0]==="("&&Me++)}return Yt}).map(et=>`(${et})`).join(Ie)}const E=/\b\B/,w="[a-zA-Z]\\w*",S="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",R="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",T="\\b(0b[01]+)",O="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",D=(le={})=>{const Ie=/^#![ ]*\//;return le.binary&&(le.begin=d(Ie,/.*\b/,le.binary,/\b.*/)),s({className:"meta",begin:Ie,end:/$/,relevance:0,"on:begin":(Me,et)=>{Me.index!==0&&et.ignoreMatch()}},le)},N={begin:"\\\\[\\s\\S]",relevance:0},$={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[N]},M={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[N]},X={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ee=function(le,Ie,Me={}){const et=s({className:"comment",begin:le,end:Ie,contains:[]},Me);return et.contains.push(X),et.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),et},J=ee("//","$"),Q=ee("/\\*","\\*/"),te=ee("#","$"),re={className:"number",begin:A,relevance:0},L={className:"number",begin:R,relevance:0},K={className:"number",begin:T,relevance:0},ne={className:"number",begin:A+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},ce={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[N,{begin:/\[/,end:/\]/,relevance:0,contains:[N]}]}]},ue={className:"title",begin:w,relevance:0},se={className:"title",begin:S,relevance:0},V={begin:"\\.\\s*"+S,relevance:0};var de=Object.freeze({__proto__:null,MATCH_NOTHING_RE:E,IDENT_RE:w,UNDERSCORE_IDENT_RE:S,NUMBER_RE:A,C_NUMBER_RE:R,BINARY_NUMBER_RE:T,RE_STARTERS_RE:O,SHEBANG:D,BACKSLASH_ESCAPE:N,APOS_STRING_MODE:$,QUOTE_STRING_MODE:M,PHRASAL_WORDS_MODE:X,COMMENT:ee,C_LINE_COMMENT_MODE:J,C_BLOCK_COMMENT_MODE:Q,HASH_COMMENT_MODE:te,NUMBER_MODE:re,C_NUMBER_MODE:L,BINARY_NUMBER_MODE:K,CSS_NUMBER_MODE:ne,REGEXP_MODE:ce,TITLE_MODE:ue,UNDERSCORE_TITLE_MODE:se,METHOD_GUARD:V,END_SAME_AS_BEGIN:function(le){return Object.assign(le,{"on:begin":(Ie,Me)=>{Me.data._beginMatch=Ie[1]},"on:end":(Ie,Me)=>{Me.data._beginMatch!==Ie[1]&&Me.ignoreMatch()}})}});function ge(le,Ie){le.input[le.index-1]==="."&&Ie.ignoreMatch()}function Ce(le,Ie){Ie&&le.beginKeywords&&(le.begin="\\b("+le.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",le.__beforeBegin=ge,le.keywords=le.keywords||le.beginKeywords,delete le.beginKeywords,le.relevance===void 0&&(le.relevance=0))}function Pe(le,Ie){Array.isArray(le.illegal)&&(le.illegal=g(...le.illegal))}function pe(le,Ie){if(le.match){if(le.begin||le.end)throw new Error("begin & end are not supported with match");le.begin=le.match,delete le.match}}function Te(le,Ie){le.relevance===void 0&&(le.relevance=1)}const Le=["of","and","for","in","not","or","if","then","parent","list","value"],be="keyword";function we(le,Ie,Me=be){const et={};return typeof le=="string"?yt(Me,le.split(" ")):Array.isArray(le)?yt(Me,le):Object.keys(le).forEach(function(St){Object.assign(et,we(le[St],Ie,St))}),et;function yt(St,Yt){Ie&&(Yt=Yt.map(Ue=>Ue.toLowerCase())),Yt.forEach(function(Ue){const Ge=Ue.split("|");et[Ge[0]]=[St,xe(Ge[0],Ge[1])]})}}function xe(le,Ie){return Ie?Number(Ie):U(le)?0:1}function U(le){return Le.includes(le.toLowerCase())}function I(le,{plugins:Ie}){function Me(Ue,Ge){return new RegExp(h(Ue),"m"+(le.case_insensitive?"i":"")+(Ge?"g":""))}class et{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Ge,ot){ot.position=this.position++,this.matchIndexes[this.matchAt]=ot,this.regexes.push([ot,Ge]),this.matchAt+=y(Ge)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Ge=this.regexes.map(ot=>ot[1]);this.matcherRe=Me(b(Ge),!0),this.lastIndex=0}exec(Ge){this.matcherRe.lastIndex=this.lastIndex;const ot=this.matcherRe.exec(Ge);if(!ot)return null;const tt=ot.findIndex((Un,_u)=>_u>0&&Un!==void 0),ir=this.matchIndexes[tt];return ot.splice(0,tt),Object.assign(ot,ir)}}class yt{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Ge){if(this.multiRegexes[Ge])return this.multiRegexes[Ge];const ot=new et;return this.rules.slice(Ge).forEach(([tt,ir])=>ot.addRule(tt,ir)),ot.compile(),this.multiRegexes[Ge]=ot,ot}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Ge,ot){this.rules.push([Ge,ot]),ot.type==="begin"&&this.count++}exec(Ge){const ot=this.getMatcher(this.regexIndex);ot.lastIndex=this.lastIndex;let tt=ot.exec(Ge);if(this.resumingScanAtSamePosition()&&!(tt&&tt.index===this.lastIndex)){const ir=this.getMatcher(0);ir.lastIndex=this.lastIndex+1,tt=ir.exec(Ge)}return tt&&(this.regexIndex+=tt.position+1,this.regexIndex===this.count&&this.considerAll()),tt}}function St(Ue){const Ge=new yt;return Ue.contains.forEach(ot=>Ge.addRule(ot.begin,{rule:ot,type:"begin"})),Ue.terminatorEnd&&Ge.addRule(Ue.terminatorEnd,{type:"end"}),Ue.illegal&&Ge.addRule(Ue.illegal,{type:"illegal"}),Ge}function Yt(Ue,Ge){const ot=Ue;if(Ue.isCompiled)return ot;[pe].forEach(ir=>ir(Ue,Ge)),le.compilerExtensions.forEach(ir=>ir(Ue,Ge)),Ue.__beforeBegin=null,[Ce,Pe,Te].forEach(ir=>ir(Ue,Ge)),Ue.isCompiled=!0;let tt=null;if(typeof Ue.keywords=="object"&&(tt=Ue.keywords.$pattern,delete Ue.keywords.$pattern),Ue.keywords&&(Ue.keywords=we(Ue.keywords,le.case_insensitive)),Ue.lexemes&&tt)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return tt=tt||Ue.lexemes||/\w+/,ot.keywordPatternRe=Me(tt,!0),Ge&&(Ue.begin||(Ue.begin=/\B|\b/),ot.beginRe=Me(Ue.begin),Ue.endSameAsBegin&&(Ue.end=Ue.begin),!Ue.end&&!Ue.endsWithParent&&(Ue.end=/\B|\b/),Ue.end&&(ot.endRe=Me(Ue.end)),ot.terminatorEnd=h(Ue.end)||"",Ue.endsWithParent&&Ge.terminatorEnd&&(ot.terminatorEnd+=(Ue.end?"|":"")+Ge.terminatorEnd)),Ue.illegal&&(ot.illegalRe=Me(Ue.illegal)),Ue.contains||(Ue.contains=[]),Ue.contains=[].concat(...Ue.contains.map(function(ir){return W(ir==="self"?Ue:ir)})),Ue.contains.forEach(function(ir){Yt(ir,ot)}),Ue.starts&&Yt(Ue.starts,Ge),ot.matcher=St(ot),ot}if(le.compilerExtensions||(le.compilerExtensions=[]),le.contains&&le.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return le.classNameAliases=s(le.classNameAliases||{}),Yt(le)}function k(le){return le?le.endsWithParent||k(le.starts):!1}function W(le){return le.variants&&!le.cachedVariants&&(le.cachedVariants=le.variants.map(function(Ie){return s(le,{variants:null},Ie)})),le.cachedVariants?le.cachedVariants:k(le)?s(le,{starts:le.starts?s(le.starts):null}):Object.isFrozen(le)?s(le):le}var ie="10.7.3";function oe(le){return!!(le||le==="")}function me(le){const Ie={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!le.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,i(this.code);let et={};return this.autoDetect?(et=le.highlightAuto(this.code),this.detectedLanguage=et.language):(et=le.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),et.value},autoDetect(){return!this.language||oe(this.autodetect)},ignoreIllegals(){return!0}},render(et){return et("pre",{},[et("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:Ie,VuePlugin:{install(et){et.component("highlightjs",Ie)}}}}const Ne={"after:highlightElement":({el:le,result:Ie,text:Me})=>{const et=B(le);if(!et.length)return;const yt=document.createElement("div");yt.innerHTML=Ie.value,Ie.value=C(et,B(yt),Me)}};function Xe(le){return le.nodeName.toLowerCase()}function B(le){const Ie=[];return(function Me(et,yt){for(let St=et.firstChild;St;St=St.nextSibling)St.nodeType===3?yt+=St.nodeValue.length:St.nodeType===1&&(Ie.push({event:"start",offset:yt,node:St}),yt=Me(St,yt),Xe(St).match(/br|hr|img|input/)||Ie.push({event:"stop",offset:yt,node:St}));return yt})(le,0),Ie}function C(le,Ie,Me){let et=0,yt="";const St=[];function Yt(){return!le.length||!Ie.length?le.length?le:Ie:le[0].offset!==Ie[0].offset?le[0].offset<Ie[0].offset?le:Ie:Ie[0].event==="start"?le:Ie}function Ue(tt){function ir(Un){return" "+Un.nodeName+'="'+i(Un.value)+'"'}yt+="<"+Xe(tt)+[].map.call(tt.attributes,ir).join("")+">"}function Ge(tt){yt+="</"+Xe(tt)+">"}function ot(tt){(tt.event==="start"?Ue:Ge)(tt.node)}for(;le.length||Ie.length;){let tt=Yt();if(yt+=i(Me.substring(et,tt[0].offset)),et=tt[0].offset,tt===le){St.reverse().forEach(Ge);do ot(tt.splice(0,1)[0]),tt=Yt();while(tt===le&&tt.length&&tt[0].offset===et);St.reverse().forEach(Ue)}else tt[0].event==="start"?St.push(tt[0].node):St.pop(),ot(tt.splice(0,1)[0])}return yt+i(Me.substr(et))}const j={},Z=le=>{console.error(le)},fe=(le,...Ie)=>{console.log(`WARN: ${le}`,...Ie)},ve=(le,Ie)=>{j[`${le}/${Ie}`]||(console.log(`Deprecated as of ${le}. ${Ie}`),j[`${le}/${Ie}`]=!0)},Oe=i,rt=s,at=Symbol("nomatch");var pt=function(le){const Ie=Object.create(null),Me=Object.create(null),et=[];let yt=!0;const St=/(^(<[^>]+>|\t|)+|\n)/gm,Yt="Could not find the language '{}', did you forget to load/include a language module?",Ue={disableAutodetect:!0,name:"Plain text",contains:[]};let Ge={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:l};function ot(ke){return Ge.noHighlightRe.test(ke)}function tt(ke){let ze=ke.className+" ";ze+=ke.parentNode?ke.parentNode.className:"";const wt=Ge.languageDetectRe.exec(ze);if(wt){const qt=Gr(wt[1]);return qt||(fe(Yt.replace("{}",wt[1])),fe("Falling back to no-highlight mode for this block.",ke)),qt?wt[1]:"no-highlight"}return ze.split(/\s+/).find(qt=>ot(qt)||Gr(qt))}function ir(ke,ze,wt,qt){let mr="",hi="";typeof ze=="object"?(mr=ke,wt=ze.ignoreIllegals,hi=ze.language,qt=void 0):(ve("10.7.0","highlight(lang, code, ...args) has been deprecated."),ve("10.7.0",`Please use highlight(code, options) instead.
268
+ https://github.com/highlightjs/highlight.js/issues/2277`),hi=ke,mr=ze);const zn={code:mr,language:hi};Os("before:highlight",zn);const Wn=zn.result?zn.result:Un(zn.language,zn.code,wt,qt);return Wn.code=zn.code,Os("after:highlight",Wn),Wn}function Un(ke,ze,wt,qt){function mr(Ye,Ze){const gt=Cs.case_insensitive?Ze[0].toLowerCase():Ze[0];return Object.prototype.hasOwnProperty.call(Ye.keywords,gt)&&Ye.keywords[gt]}function hi(){if(!vt.keywords){dt.addText(cr);return}let Ye=0;vt.keywordPatternRe.lastIndex=0;let Ze=vt.keywordPatternRe.exec(cr),gt="";for(;Ze;){gt+=cr.substring(Ye,Ze.index);const Pt=mr(vt,Ze);if(Pt){const[Yr,Rs]=Pt;if(dt.addText(gt),gt="",pa+=Rs,Yr.startsWith("_"))gt+=Ze[0];else{const Is=Cs.classNameAliases[Yr]||Yr;dt.addKeyword(Ze[0],Is)}}else gt+=Ze[0];Ye=vt.keywordPatternRe.lastIndex,Ze=vt.keywordPatternRe.exec(cr)}gt+=cr.substr(Ye),dt.addText(gt)}function zn(){if(cr==="")return;let Ye=null;if(typeof vt.subLanguage=="string"){if(!Ie[vt.subLanguage]){dt.addText(cr);return}Ye=Un(vt.subLanguage,cr,!0,wf[vt.subLanguage]),wf[vt.subLanguage]=Ye.top}else Ye=to(cr,vt.subLanguage.length?vt.subLanguage:null);vt.relevance>0&&(pa+=Ye.relevance),dt.addSublanguage(Ye.emitter,Ye.language)}function Wn(){vt.subLanguage!=null?zn():hi(),cr=""}function Jn(Ye){return Ye.className&&dt.openNode(Cs.classNameAliases[Ye.className]||Ye.className),vt=Object.create(Ye,{parent:{value:vt}}),vt}function On(Ye,Ze,gt){let Pt=v(Ye.endRe,gt);if(Pt){if(Ye["on:end"]){const Yr=new n(Ye);Ye["on:end"](Ze,Yr),Yr.isMatchIgnored&&(Pt=!1)}if(Pt){for(;Ye.endsParent&&Ye.parent;)Ye=Ye.parent;return Ye}}if(Ye.endsWithParent)return On(Ye.parent,Ze,gt)}function bf(Ye){return vt.matcher.regexIndex===0?(cr+=Ye[0],1):(ss=!0,0)}function _f(Ye){const Ze=Ye[0],gt=Ye.rule,Pt=new n(gt),Yr=[gt.__beforeBegin,gt["on:begin"]];for(const Rs of Yr)if(Rs&&(Rs(Ye,Pt),Pt.isMatchIgnored))return bf(Ze);return gt&&gt.endSameAsBegin&&(gt.endRe=f(Ze)),gt.skip?cr+=Ze:(gt.excludeBegin&&(cr+=Ze),Wn(),!gt.returnBegin&&!gt.excludeBegin&&(cr=Ze)),Jn(gt),gt.returnBegin?0:Ze.length}function Ef(Ye){const Ze=Ye[0],gt=ze.substr(Ye.index),Pt=On(vt,Ye,gt);if(!Pt)return at;const Yr=vt;Yr.skip?cr+=Ze:(Yr.returnEnd||Yr.excludeEnd||(cr+=Ze),Wn(),Yr.excludeEnd&&(cr=Ze));do vt.className&&dt.closeNode(),!vt.skip&&!vt.subLanguage&&(pa+=vt.relevance),vt=vt.parent;while(vt!==Pt.parent);return Pt.starts&&(Pt.endSameAsBegin&&(Pt.starts.endRe=Pt.endRe),Jn(Pt.starts)),Yr.returnEnd?0:Ze.length}function Sf(){const Ye=[];for(let Ze=vt;Ze!==Cs;Ze=Ze.parent)Ze.className&&Ye.unshift(Ze.className);Ye.forEach(Ze=>dt.openNode(Ze))}let fa={};function Iu(Ye,Ze){const gt=Ze&&Ze[0];if(cr+=Ye,gt==null)return Wn(),0;if(fa.type==="begin"&&Ze.type==="end"&&fa.index===Ze.index&&gt===""){if(cr+=ze.slice(Ze.index,Ze.index+1),!yt){const Pt=new Error("0 width match regex");throw Pt.languageName=ke,Pt.badRule=fa.rule,Pt}return 1}if(fa=Ze,Ze.type==="begin")return _f(Ze);if(Ze.type==="illegal"&&!wt){const Pt=new Error('Illegal lexeme "'+gt+'" for mode "'+(vt.className||"<unnamed>")+'"');throw Pt.mode=vt,Pt}else if(Ze.type==="end"){const Pt=Ef(Ze);if(Pt!==at)return Pt}if(Ze.type==="illegal"&&gt==="")return 1;if(Kn>1e5&&Kn>Ze.index*3)throw new Error("potential infinite loop, way more iterations than matches");return cr+=gt,gt.length}const Cs=Gr(ke);if(!Cs)throw Z(Yt.replace("{}",ke)),new Error('Unknown language: "'+ke+'"');const Mm=I(Cs,{plugins:et});let Tu="",vt=qt||Mm;const wf={},dt=new Ge.__emitter(Ge);Sf();let cr="",pa=0,fr=0,Kn=0,ss=!1;try{for(vt.matcher.considerAll();;){Kn++,ss?ss=!1:vt.matcher.considerAll(),vt.matcher.lastIndex=fr;const Ye=vt.matcher.exec(ze);if(!Ye)break;const Ze=ze.substring(fr,Ye.index),gt=Iu(Ze,Ye);fr=Ye.index+gt}return Iu(ze.substr(fr)),dt.closeAllNodes(),dt.finalize(),Tu=dt.toHTML(),{relevance:Math.floor(pa),value:Tu,language:ke,illegal:!1,emitter:dt,top:vt}}catch(Ye){if(Ye.message&&Ye.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:Ye.message,context:ze.slice(fr-100,fr+100),mode:Ye.mode},sofar:Tu,relevance:0,value:Oe(ze),emitter:dt};if(yt)return{illegal:!1,relevance:0,value:Oe(ze),emitter:dt,language:ke,top:vt,errorRaised:Ye};throw Ye}}function _u(ke){const ze={relevance:0,emitter:new Ge.__emitter(Ge),value:Oe(ke),illegal:!1,top:Ue};return ze.emitter.addText(ke),ze}function to(ke,ze){ze=ze||Ge.languages||Object.keys(Ie);const wt=_u(ke),qt=ze.filter(Gr).filter(is).map(Jn=>Un(Jn,ke,!1));qt.unshift(wt);const mr=qt.sort((Jn,On)=>{if(Jn.relevance!==On.relevance)return On.relevance-Jn.relevance;if(Jn.language&&On.language){if(Gr(Jn.language).supersetOf===On.language)return 1;if(Gr(On.language).supersetOf===Jn.language)return-1}return 0}),[hi,zn]=mr,Wn=hi;return Wn.second_best=zn,Wn}function gf(ke){return Ge.tabReplace||Ge.useBR?ke.replace(St,ze=>ze===`
269
+ `?Ge.useBR?"<br>":ze:Ge.tabReplace?ze.replace(/\t/g,Ge.tabReplace):ze):ke}function km(ke,ze,wt){const qt=ze?Me[ze]:wt;ke.classList.add("hljs"),qt&&ke.classList.add(qt)}const Eu={"before:highlightElement":({el:ke})=>{Ge.useBR&&(ke.innerHTML=ke.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
270
+ `))},"after:highlightElement":({result:ke})=>{Ge.useBR&&(ke.value=ke.value.replace(/\n/g,"<br>"))}},Su=/^(<[^>]+>|\t)+/gm,wu={"after:highlightElement":({result:ke})=>{Ge.tabReplace&&(ke.value=ke.value.replace(Su,ze=>ze.replace(/\t/g,Ge.tabReplace)))}};function Vn(ke){let ze=null;const wt=tt(ke);if(ot(wt))return;Os("before:highlightElement",{el:ke,language:wt}),ze=ke;const qt=ze.textContent,mr=wt?ir(qt,{language:wt,ignoreIllegals:!0}):to(qt);Os("after:highlightElement",{el:ke,result:mr,text:qt}),ke.innerHTML=mr.value,km(ke,wt,mr.language),ke.result={language:mr.language,re:mr.relevance,relavance:mr.relevance},mr.second_best&&(ke.second_best={language:mr.second_best.language,re:mr.second_best.relevance,relavance:mr.second_best.relevance})}function Nm(ke){ke.useBR&&(ve("10.3.0","'useBR' will be removed entirely in v11.0"),ve("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Ge=rt(Ge,ke)}const xu=()=>{if(xu.called)return;xu.called=!0,ve("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(Vn)};function Au(){ve("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),ca=!0}let ca=!1;function Hr(){if(document.readyState==="loading"){ca=!0;return}document.querySelectorAll("pre code").forEach(Vn)}function At(){ca&&Hr()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",At,!1);function Ou(ke,ze){let wt=null;try{wt=ze(le)}catch(qt){if(Z("Language definition for '{}' could not be registered.".replace("{}",ke)),yt)Z(qt);else throw qt;wt=Ue}wt.name||(wt.name=ke),Ie[ke]=wt,wt.rawDefinition=ze.bind(null,le),wt.aliases&&As(wt.aliases,{languageName:ke})}function yf(ke){delete Ie[ke];for(const ze of Object.keys(Me))Me[ze]===ke&&delete Me[ze]}function _t(){return Object.keys(Ie)}function la(ke){ve("10.4.0","requireLanguage will be removed entirely in v11."),ve("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const ze=Gr(ke);if(ze)return ze;throw new Error("The '{}' language is required, but not loaded.".replace("{}",ke))}function Gr(ke){return ke=(ke||"").toLowerCase(),Ie[ke]||Ie[Me[ke]]}function As(ke,{languageName:ze}){typeof ke=="string"&&(ke=[ke]),ke.forEach(wt=>{Me[wt.toLowerCase()]=ze})}function is(ke){const ze=Gr(ke);return ze&&!ze.disableAutodetect}function di(ke){ke["before:highlightBlock"]&&!ke["before:highlightElement"]&&(ke["before:highlightElement"]=ze=>{ke["before:highlightBlock"](Object.assign({block:ze.el},ze))}),ke["after:highlightBlock"]&&!ke["after:highlightElement"]&&(ke["after:highlightElement"]=ze=>{ke["after:highlightBlock"](Object.assign({block:ze.el},ze))})}function Cu(ke){di(ke),et.push(ke)}function Os(ke,ze){const wt=ke;et.forEach(function(qt){qt[wt]&&qt[wt](ze)})}function vf(ke){return ve("10.2.0","fixMarkup will be removed entirely in v11.0"),ve("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),gf(ke)}function Ru(ke){return ve("10.7.0","highlightBlock will be removed entirely in v12.0"),ve("10.7.0","Please use highlightElement now."),Vn(ke)}Object.assign(le,{highlight:ir,highlightAuto:to,highlightAll:Hr,fixMarkup:vf,highlightElement:Vn,highlightBlock:Ru,configure:Nm,initHighlighting:xu,initHighlightingOnLoad:Au,registerLanguage:Ou,unregisterLanguage:yf,listLanguages:_t,getLanguage:Gr,registerAliases:As,requireLanguage:la,autoDetection:is,inherit:rt,addPlugin:Cu,vuePlugin:me(le).VuePlugin}),le.debugMode=function(){yt=!1},le.safeMode=function(){yt=!0},le.versionString=ie;for(const ke in de)typeof de[ke]=="object"&&t(de[ke]);return Object.assign(le,de),le.addPlugin(Eu),le.addPlugin(Ne),le.addPlugin(wu),le}({});return mw=pt,mw}var gw={exports:{}},cB;function Jge(){return cB||(cB=1,(function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=n,typeof console<"u"&&typeof console.log=="function"&&(t.printf=r);function r(){console.log(i.apply(null,arguments))}function n(s,a){return i.apply(null,[s].concat(a))}function i(s){for(var a=1,o=[].slice.call(arguments),u=0,c=s.length,l="",f,h=!1,d,g,y=!1,v,_=function(){return o[a++]},b=function(){for(var E="";/\d/.test(s[u]);)E+=s[u++],f=s[u];return E.length>0?parseInt(E):null};u<c;++u)if(f=s[u],h)switch(h=!1,f=="."?(y=!1,f=s[++u]):f=="0"&&s[u+1]=="."?(y=!0,u+=2,f=s[u]):y=!0,v=b(),f){case"b":l+=parseInt(_(),10).toString(2);break;case"c":d=_(),typeof d=="string"||d instanceof String?l+=d:l+=String.fromCharCode(parseInt(d,10));break;case"d":l+=parseInt(_(),10);break;case"f":g=String(parseFloat(_()).toFixed(v||6)),l+=y?g:g.replace(/^0/,"");break;case"j":l+=JSON.stringify(_());break;case"o":l+="0"+parseInt(_(),10).toString(8);break;case"s":l+=_();break;case"x":l+="0x"+parseInt(_(),10).toString(16);break;case"X":l+="0x"+parseInt(_(),10).toString(16).toUpperCase();break;default:l+=f;break}else f==="%"?h=!0:l+=f;return l}})()})(gw)),gw.exports}var yw,lB;function Kge(){if(lB)return yw;lB=1;var e=Jge(),t=r(Error);yw=t,t.eval=r(EvalError),t.range=r(RangeError),t.reference=r(ReferenceError),t.syntax=r(SyntaxError),t.type=r(TypeError),t.uri=r(URIError),t.create=r;function r(n){return i.displayName=n.displayName||n.name,i;function i(s){return s&&(s=e.apply(null,arguments)),new n(s)}}return yw}var fB;function Hge(){if(fB)return ha;fB=1;var e=Wge(),t=Kge();ha.highlight=n,ha.highlightAuto=i,ha.registerLanguage=s,ha.listLanguages=a,ha.registerAlias=o,u.prototype.addText=f,u.prototype.addKeyword=c,u.prototype.addSublanguage=l,u.prototype.openNode=h,u.prototype.closeNode=d,u.prototype.closeAllNodes=y,u.prototype.finalize=y,u.prototype.toHTML=g;var r="hljs-";function n(v,_,b){var E=e.configure({}),w=b||{},S=w.prefix,A;if(typeof v!="string")throw t("Expected `string` for name, got `%s`",v);if(!e.getLanguage(v))throw t("Unknown language: `%s` is not registered",v);if(typeof _!="string")throw t("Expected `string` for value, got `%s`",_);if(S==null&&(S=r),e.configure({__emitter:u,classPrefix:S}),A=e.highlight(_,{language:v,ignoreIllegals:!0}),e.configure(E||{}),A.errorRaised)throw A.errorRaised;return{relevance:A.relevance,language:A.language,value:A.emitter.rootNode.children}}function i(v,_){var b=_||{},E=b.subset||e.listLanguages();b.prefix;var w=E.length,S=-1,A,R,T,O;if(typeof v!="string")throw t("Expected `string` for value, got `%s`",v);for(R={relevance:0,language:null,value:[]},A={relevance:0,language:null,value:[]};++S<w;)O=E[S],e.getLanguage(O)&&(T=n(O,v,_),T.language=O,T.relevance>R.relevance&&(R=T),T.relevance>A.relevance&&(R=A,A=T));return R.language&&(A.secondBest=R),A}function s(v,_){e.registerLanguage(v,_)}function a(){return e.listLanguages()}function o(v,_){var b=v,E;_&&(b={},b[v]=_);for(E in b)e.registerAliases(b[E],{languageName:E})}function u(v){this.options=v,this.rootNode={children:[]},this.stack=[this.rootNode]}function c(v,_){this.openNode(_),this.addText(v),this.closeNode()}function l(v,_){var b=this.stack,E=b[b.length-1],w=v.rootNode.children,S=_?{type:"element",tagName:"span",properties:{className:[_]},children:w}:w;E.children=E.children.concat(S)}function f(v){var _=this.stack,b,E;v!==""&&(b=_[_.length-1],E=b.children[b.children.length-1],E&&E.type==="text"?E.value+=v:b.children.push({type:"text",value:v}))}function h(v){var _=this.stack,b=this.options.classPrefix+v,E=_[_.length-1],w={type:"element",tagName:"span",properties:{className:[b]},children:[]};E.children.push(w),_.push(w)}function d(){this.stack.pop()}function g(){return""}function y(){}return ha}var Gge=Hge();const w7=Ve.getDefaultExportFromCjs(Gge);var x7=zge(w7,{});x7.registerLanguage=w7.registerLanguage;var vw,pB;function Yge(){if(pB)return vw;pB=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],n=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],i=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=["arguments","this","super","console","window","document","localStorage","module","global"],o=[].concat(s,a,n,i);function u(h){return h?typeof h=="string"?h:h.source:null}function c(h){return l("(?=",h,")")}function l(...h){return h.map(g=>u(g)).join("")}function f(h){const d=(J,{after:Q})=>{const te="</"+J[0].slice(1);return J.input.indexOf(te,Q)!==-1},g=e,y={begin:"<>",end:"</>"},v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,Q)=>{const te=J[0].length+J.index,re=J.input[te];if(re==="<"){Q.ignoreMatch();return}re===">"&&(d(J,{after:te})||Q.ignoreMatch())}},_={$pattern:e,keyword:t,literal:r,built_in:o},b="[0-9](_?[0-9])*",E=`\\.(${b})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${w})((${E})|\\.)?|(${E}))[eE][+-]?(${b})\\b`},{begin:`\\b(${w})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},A={className:"subst",begin:"\\$\\{",end:"\\}",keywords:_,contains:[]},R={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},T={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"css"}},O={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,A]},N={className:"comment",variants:[h.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),h.C_BLOCK_COMMENT_MODE,h.C_LINE_COMMENT_MODE]},$=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,T,O,S,h.REGEXP_MODE];A.contains=$.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat($)});const M=[].concat(N,A.contains),X=M.concat([{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(M)}]),ee={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:X};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:X},illegal:/#(?![$_A-z])/,contains:[h.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,T,O,N,S,{begin:l(/[{,\n]\s*/,c(l(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,g+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:g+c("\\s*:"),relevance:0}]},{begin:"("+h.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[N,h.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+h.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:h.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:X}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:y.begin,end:y.end},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:_,contains:["self",h.inherit(h.TITLE_MODE,{begin:g}),ee],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[ee,h.inherit(h.TITLE_MODE,{begin:g})]},{variants:[{begin:"\\."+g},{begin:"\\$"+g}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},h.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[h.inherit(h.TITLE_MODE,{begin:g}),"self",ee]},{begin:"(get|set)\\s+(?="+g+"\\()",end:/\{/,keywords:"get set",contains:[h.inherit(h.TITLE_MODE,{begin:g}),{begin:/\(\)/},ee]},{begin:/\$[(.]/}]}}return vw=f,vw}var Xge=Yge();const Zge=Ve.getDefaultExportFromCjs(Xge);var bw,dB;function Qge(){if(dB)return bw;dB=1;function e(t){const r={literal:"true false null"},n=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],i=[t.QUOTE_STRING_MODE,t.C_NUMBER_MODE],s={end:",",endsWithParent:!0,excludeEnd:!0,contains:i,keywords:r},a={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE],illegal:"\\n"},t.inherit(s,{begin:/:/})].concat(n),illegal:"\\S"},o={begin:"\\[",end:"\\]",contains:[t.inherit(s)],illegal:"\\S"};return i.push(a,o),n.forEach(function(u){i.push(u)}),{name:"JSON",contains:i,keywords:r,illegal:"\\S"}}return bw=e,bw}var eye=Qge();const tye=Ve.getDefaultExportFromCjs(eye);var _w,hB;function rye(){if(hB)return _w;hB=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return n("(?=",a,")")}function r(a){return n("(",a,")?")}function n(...a){return a.map(u=>e(u)).join("")}function i(...a){return"("+a.map(u=>e(u)).join("|")+")"}function s(a){const o=n(/[A-Z_]/,r(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),u=/[A-Za-z0-9._:-]+/,c={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},f=a.inherit(l,{begin:/\(/,end:/\)/}),h=a.inherit(a.APOS_STRING_MODE,{className:"meta-string"}),d=a.inherit(a.QUOTE_STRING_MODE,{className:"meta-string"}),g={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[c]},{begin:/'/,end:/'/,contains:[c]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[l,d,h,f,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[l,f,d,h]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},c,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[g],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[g],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n(/</,t(n(o,i(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:o,relevance:0,starts:g}]},{className:"tag",begin:n(/<\//,t(n(o,/>/))),contains:[{className:"name",begin:o,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return _w=s,_w}var nye=rye();const iye=Ve.getDefaultExportFromCjs(nye);var Ew,mB;function sye(){if(mB)return Ew;mB=1;function e(n){return n?typeof n=="string"?n:n.source:null}function t(...n){return n.map(s=>e(s)).join("")}function r(n){const i={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:t(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,i,a]};a.contains.push(u);const c={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},f={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,i]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=n.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[d,n.SHEBANG(),g,f,n.HASH_COMMENT_MODE,o,u,c,l,i]}}return Ew=r,Ew}var aye=sye();const oye=Ve.getDefaultExportFromCjs(aye);var Sw,gB;function uye(){if(gB)return Sw;gB=1;function e(t){var r="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,s]},o=t.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),u="[0-9]{4}(-[0-9][0-9]){0,2}",c="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",l="(\\.[0-9]*)?",f="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",h={className:"number",begin:"\\b"+u+c+l+f+"\\b"},d={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},g={begin:/\{/,end:/\}/,contains:[d],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[d],illegal:"\\n",relevance:0},v=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},h,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},g,y,a],_=[...v];return _.pop(),_.push(o),d.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return Sw=e,Sw}var cye=uye();const lye=Ve.getDefaultExportFromCjs(cye);var ww,yB;function fye(){if(yB)return ww;yB=1;function e(n){return n?typeof n=="string"?n:n.source:null}function t(...n){return n.map(s=>e(s)).join("")}function r(n){const i="HTTP/(2|1\\.[01])",a={className:"attribute",begin:t("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},n.inherit(a,{relevance:0})]}}return ww=r,ww}var pye=fye();const dye=Ve.getDefaultExportFromCjs(pye);var xw,vB;function hye(){if(vB)return xw;vB=1;function e(t){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",i="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",s={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},a=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},u={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},c={className:"literal",begin:/\$(null|true|false)\b/},l={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,u,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},f={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},h={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},d=t.inherit(t.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[h]}),g={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},y={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[t.TITLE_MODE]},v={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:a,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[u]}]},_={begin:/using\s/,end:/$/,returnBegin:!0,contains:[l,f,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},b={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},E={className:"selector-tag",begin:/@\B/,relevance:0},w={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(s.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},S=[w,d,o,t.NUMBER_MODE,l,f,g,u,c,E],A={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",S,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return w.contains.unshift(A),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:s,contains:S.concat(y,v,_,b,A)}}return xw=e,xw}var mye=hye();const gye=Ve.getDefaultExportFromCjs(mye),yye={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#333",color:"white"},"hljs-name":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-code":{fontStyle:"italic",color:"#888"},"hljs-emphasis":{fontStyle:"italic"},"hljs-tag":{color:"#62c8f3"},"hljs-variable":{color:"#ade5fc"},"hljs-template-variable":{color:"#ade5fc"},"hljs-selector-id":{color:"#ade5fc"},"hljs-selector-class":{color:"#ade5fc"},"hljs-string":{color:"#a2fca2"},"hljs-bullet":{color:"#d36363"},"hljs-type":{color:"#ffa"},"hljs-title":{color:"#ffa"},"hljs-section":{color:"#ffa"},"hljs-attribute":{color:"#ffa"},"hljs-quote":{color:"#ffa"},"hljs-built_in":{color:"#ffa"},"hljs-builtin-name":{color:"#ffa"},"hljs-number":{color:"#d36363"},"hljs-symbol":{color:"#d36363"},"hljs-keyword":{color:"#fcc28c"},"hljs-selector-tag":{color:"#fcc28c"},"hljs-literal":{color:"#fcc28c"},"hljs-comment":{color:"#888"},"hljs-deletion":{color:"#333",backgroundColor:"#fc9b9b"},"hljs-regexp":{color:"#c6b4f0"},"hljs-link":{color:"#c6b4f0"},"hljs-meta":{color:"#fc9b9b"},"hljs-addition":{backgroundColor:"#a2fca2",color:"#333"}},vye={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#222",color:"#aaa"},"hljs-subst":{color:"#aaa"},"hljs-section":{color:"#fff",fontWeight:"bold"},"hljs-comment":{color:"#444"},"hljs-quote":{color:"#444"},"hljs-meta":{color:"#444"},"hljs-string":{color:"#ffcc33"},"hljs-symbol":{color:"#ffcc33"},"hljs-bullet":{color:"#ffcc33"},"hljs-regexp":{color:"#ffcc33"},"hljs-number":{color:"#00cc66"},"hljs-addition":{color:"#00cc66"},"hljs-built_in":{color:"#32aaee"},"hljs-builtin-name":{color:"#32aaee"},"hljs-literal":{color:"#32aaee"},"hljs-type":{color:"#32aaee"},"hljs-template-variable":{color:"#32aaee"},"hljs-attribute":{color:"#32aaee"},"hljs-link":{color:"#32aaee"},"hljs-keyword":{color:"#6644aa"},"hljs-selector-tag":{color:"#6644aa"},"hljs-name":{color:"#6644aa"},"hljs-selector-id":{color:"#6644aa"},"hljs-selector-class":{color:"#6644aa"},"hljs-title":{color:"#bb1166"},"hljs-variable":{color:"#bb1166"},"hljs-deletion":{color:"#bb1166"},"hljs-template-tag":{color:"#bb1166"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},bye={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#272822",color:"#ddd"},"hljs-tag":{color:"#f92672"},"hljs-keyword":{color:"#f92672",fontWeight:"bold"},"hljs-selector-tag":{color:"#f92672",fontWeight:"bold"},"hljs-literal":{color:"#f92672",fontWeight:"bold"},"hljs-strong":{color:"#f92672"},"hljs-name":{color:"#f92672"},"hljs-code":{color:"#66d9ef"},"hljs-class .hljs-title":{color:"white"},"hljs-attribute":{color:"#bf79db"},"hljs-symbol":{color:"#bf79db"},"hljs-regexp":{color:"#bf79db"},"hljs-link":{color:"#bf79db"},"hljs-string":{color:"#a6e22e"},"hljs-bullet":{color:"#a6e22e"},"hljs-subst":{color:"#a6e22e"},"hljs-title":{color:"#a6e22e",fontWeight:"bold"},"hljs-section":{color:"#a6e22e",fontWeight:"bold"},"hljs-emphasis":{color:"#a6e22e"},"hljs-type":{color:"#a6e22e",fontWeight:"bold"},"hljs-built_in":{color:"#a6e22e"},"hljs-builtin-name":{color:"#a6e22e"},"hljs-selector-attr":{color:"#a6e22e"},"hljs-selector-pseudo":{color:"#a6e22e"},"hljs-addition":{color:"#a6e22e"},"hljs-variable":{color:"#a6e22e"},"hljs-template-tag":{color:"#a6e22e"},"hljs-template-variable":{color:"#a6e22e"},"hljs-comment":{color:"#75715e"},"hljs-quote":{color:"#75715e"},"hljs-deletion":{color:"#75715e"},"hljs-meta":{color:"#75715e"},"hljs-doctag":{fontWeight:"bold"},"hljs-selector-id":{fontWeight:"bold"}},_ye={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#2E3440",color:"#D8DEE9"},"hljs-subst":{color:"#D8DEE9"},"hljs-selector-tag":{color:"#81A1C1"},"hljs-selector-id":{color:"#8FBCBB",fontWeight:"bold"},"hljs-selector-class":{color:"#8FBCBB"},"hljs-selector-attr":{color:"#8FBCBB"},"hljs-selector-pseudo":{color:"#88C0D0"},"hljs-addition":{backgroundColor:"rgba(163, 190, 140, 0.5)"},"hljs-deletion":{backgroundColor:"rgba(191, 97, 106, 0.5)"},"hljs-built_in":{color:"#8FBCBB"},"hljs-type":{color:"#8FBCBB"},"hljs-class":{color:"#8FBCBB"},"hljs-function":{color:"#88C0D0"},"hljs-function > .hljs-title":{color:"#88C0D0"},"hljs-keyword":{color:"#81A1C1"},"hljs-literal":{color:"#81A1C1"},"hljs-symbol":{color:"#81A1C1"},"hljs-number":{color:"#B48EAD"},"hljs-regexp":{color:"#EBCB8B"},"hljs-string":{color:"#A3BE8C"},"hljs-title":{color:"#8FBCBB"},"hljs-params":{color:"#D8DEE9"},"hljs-bullet":{color:"#81A1C1"},"hljs-code":{color:"#8FBCBB"},"hljs-emphasis":{fontStyle:"italic"},"hljs-formula":{color:"#8FBCBB"},"hljs-strong":{fontWeight:"bold"},"hljs-link:hover":{textDecoration:"underline"},"hljs-quote":{color:"#4C566A"},"hljs-comment":{color:"#4C566A"},"hljs-doctag":{color:"#8FBCBB"},"hljs-meta":{color:"#5E81AC"},"hljs-meta-keyword":{color:"#5E81AC"},"hljs-meta-string":{color:"#A3BE8C"},"hljs-attr":{color:"#8FBCBB"},"hljs-attribute":{color:"#D8DEE9"},"hljs-builtin-name":{color:"#81A1C1"},"hljs-name":{color:"#81A1C1"},"hljs-section":{color:"#88C0D0"},"hljs-tag":{color:"#81A1C1"},"hljs-variable":{color:"#D8DEE9"},"hljs-template-variable":{color:"#D8DEE9"},"hljs-template-tag":{color:"#5E81AC"},"abnf .hljs-attribute":{color:"#88C0D0"},"abnf .hljs-symbol":{color:"#EBCB8B"},"apache .hljs-attribute":{color:"#88C0D0"},"apache .hljs-section":{color:"#81A1C1"},"arduino .hljs-built_in":{color:"#88C0D0"},"aspectj .hljs-meta":{color:"#D08770"},"aspectj > .hljs-title":{color:"#88C0D0"},"bnf .hljs-attribute":{color:"#8FBCBB"},"clojure .hljs-name":{color:"#88C0D0"},"clojure .hljs-symbol":{color:"#EBCB8B"},"coq .hljs-built_in":{color:"#88C0D0"},"cpp .hljs-meta-string":{color:"#8FBCBB"},"css .hljs-built_in":{color:"#88C0D0"},"css .hljs-keyword":{color:"#D08770"},"diff .hljs-meta":{color:"#8FBCBB"},"ebnf .hljs-attribute":{color:"#8FBCBB"},"glsl .hljs-built_in":{color:"#88C0D0"},"groovy .hljs-meta:not(:first-child)":{color:"#D08770"},"haxe .hljs-meta":{color:"#D08770"},"java .hljs-meta":{color:"#D08770"},"ldif .hljs-attribute":{color:"#8FBCBB"},"lisp .hljs-name":{color:"#88C0D0"},"lua .hljs-built_in":{color:"#88C0D0"},"moonscript .hljs-built_in":{color:"#88C0D0"},"nginx .hljs-attribute":{color:"#88C0D0"},"nginx .hljs-section":{color:"#5E81AC"},"pf .hljs-built_in":{color:"#88C0D0"},"processing .hljs-built_in":{color:"#88C0D0"},"scss .hljs-keyword":{color:"#81A1C1"},"stylus .hljs-keyword":{color:"#81A1C1"},"swift .hljs-meta":{color:"#D08770"},"vim .hljs-built_in":{color:"#88C0D0",fontStyle:"italic"},"yaml .hljs-meta":{color:"#D08770"}},Eye={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#282b2e",color:"#e0e2e4"},"hljs-keyword":{color:"#93c763",fontWeight:"bold"},"hljs-selector-tag":{color:"#93c763",fontWeight:"bold"},"hljs-literal":{color:"#93c763",fontWeight:"bold"},"hljs-selector-id":{color:"#93c763"},"hljs-number":{color:"#ffcd22"},"hljs-attribute":{color:"#668bb0"},"hljs-code":{color:"white"},"hljs-class .hljs-title":{color:"white"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-regexp":{color:"#d39745"},"hljs-link":{color:"#d39745"},"hljs-meta":{color:"#557182"},"hljs-tag":{color:"#8cbbad"},"hljs-name":{color:"#8cbbad",fontWeight:"bold"},"hljs-bullet":{color:"#8cbbad"},"hljs-subst":{color:"#8cbbad"},"hljs-emphasis":{color:"#8cbbad"},"hljs-type":{color:"#8cbbad",fontWeight:"bold"},"hljs-built_in":{color:"#8cbbad"},"hljs-selector-attr":{color:"#8cbbad"},"hljs-selector-pseudo":{color:"#8cbbad"},"hljs-addition":{color:"#8cbbad"},"hljs-variable":{color:"#8cbbad"},"hljs-template-tag":{color:"#8cbbad"},"hljs-template-variable":{color:"#8cbbad"},"hljs-string":{color:"#ec7600"},"hljs-symbol":{color:"#ec7600"},"hljs-comment":{color:"#818e96"},"hljs-quote":{color:"#818e96"},"hljs-deletion":{color:"#818e96"},"hljs-selector-class":{color:"#A082BD"},"hljs-doctag":{fontWeight:"bold"},"hljs-title":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"}},Sye={"hljs-comment":{color:"#969896"},"hljs-quote":{color:"#969896"},"hljs-variable":{color:"#cc6666"},"hljs-template-variable":{color:"#cc6666"},"hljs-tag":{color:"#cc6666"},"hljs-name":{color:"#cc6666"},"hljs-selector-id":{color:"#cc6666"},"hljs-selector-class":{color:"#cc6666"},"hljs-regexp":{color:"#cc6666"},"hljs-deletion":{color:"#cc6666"},"hljs-number":{color:"#de935f"},"hljs-built_in":{color:"#de935f"},"hljs-builtin-name":{color:"#de935f"},"hljs-literal":{color:"#de935f"},"hljs-type":{color:"#de935f"},"hljs-params":{color:"#de935f"},"hljs-meta":{color:"#de935f"},"hljs-link":{color:"#de935f"},"hljs-attribute":{color:"#f0c674"},"hljs-string":{color:"#b5bd68"},"hljs-symbol":{color:"#b5bd68"},"hljs-bullet":{color:"#b5bd68"},"hljs-addition":{color:"#b5bd68"},"hljs-title":{color:"#81a2be"},"hljs-section":{color:"#81a2be"},"hljs-keyword":{color:"#b294bb"},"hljs-selector-tag":{color:"#b294bb"},hljs:{display:"block",overflowX:"auto",background:"#1d1f21",color:"#c5c8c6",padding:"0.5em"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},wye={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#fff"},"hljs-subst":{fontWeight:"normal",color:"#000"},"hljs-title":{fontWeight:"normal",color:"#000"},"hljs-comment":{color:"#808080",fontStyle:"italic"},"hljs-quote":{color:"#808080",fontStyle:"italic"},"hljs-meta":{color:"#808000"},"hljs-tag":{background:"#efefef"},"hljs-section":{fontWeight:"bold",color:"#000080"},"hljs-name":{fontWeight:"bold",color:"#000080"},"hljs-literal":{fontWeight:"bold",color:"#000080"},"hljs-keyword":{fontWeight:"bold",color:"#000080"},"hljs-selector-tag":{fontWeight:"bold",color:"#000080"},"hljs-type":{fontWeight:"bold",color:"#000080"},"hljs-selector-id":{fontWeight:"bold",color:"#000080"},"hljs-selector-class":{fontWeight:"bold",color:"#000080"},"hljs-attribute":{fontWeight:"bold",color:"#0000ff"},"hljs-number":{fontWeight:"normal",color:"#0000ff"},"hljs-regexp":{fontWeight:"normal",color:"#0000ff"},"hljs-link":{fontWeight:"normal",color:"#0000ff"},"hljs-string":{color:"#008000",fontWeight:"bold"},"hljs-symbol":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-bullet":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-formula":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-doctag":{textDecoration:"underline"},"hljs-variable":{color:"#660e7a"},"hljs-template-variable":{color:"#660e7a"},"hljs-addition":{background:"#baeeba"},"hljs-deletion":{background:"#ffc8bd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}};var Aw,bB;function xye(){return bB||(bB=1,Aw=function(e,t,r,n){var i=typeof n<"u"?[n,e]:[e],s=new Blob(i,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(s,t);else{var a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(s):window.webkitURL.createObjectURL(s),o=document.createElement("a");o.style.display="none",o.href=a,o.setAttribute("download",t),typeof o.download>"u"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(function(){document.body.removeChild(o),window.URL.revokeObjectURL(a)},200)}}),Aw}var Aye=xye();const Oye=Ve.getDefaultExportFromCjs(Aye);var Ow,_B;function Cye(){if(_B)return Ow;_B=1;function e(t,r,n){for(var i=-1,s=t.length,a=r.length,o={};++i<s;){var u=i<a?r[i]:void 0;n(o,t[i],u)}return o}return Ow=e,Ow}var Cw,EB;function Rye(){if(EB)return Cw;EB=1;var e=th(),t=Cye();function r(n,i){return t(n||[],i||[],e)}return Cw=r,Cw}var Iye=Rye();const Tye=Ve.getDefaultExportFromCjs(Iye);var jye=bs();const Pye=Ve.getDefaultExportFromCjs(jye);/*!
271
+ * repeat-string <https://github.com/jonschlinkert/repeat-string>
272
+ *
273
+ * Copyright (c) 2014-2015, Jon Schlinkert.
274
+ * Licensed under the MIT License.
275
+ */var Rw,SB;function kye(){if(SB)return Rw;SB=1;var e="",t;Rw=r;function r(n,i){if(typeof n!="string")throw new TypeError("expected a string");if(i===1)return n;if(i===2)return n+n;var s=n.length*i;if(t!==n||typeof t>"u")t=n,e="";else if(e.length>=s)return e.substr(0,s);for(;s>e.length&&i>1;)i&1&&(e+=n),i>>=1,n+=n;return e+=n,e=e.substr(0,s),e}return Rw}var Iw,wB;function Nye(){if(wB)return Iw;wB=1;var e=kye(),t=function(c){return c.split(/(<\/?[^>]+>)/g).filter(function(l){return l.trim()!==""})},r=function(c){return/<[^>!]+>/.test(c)},n=function(c){return/<\/+[^>]+>/.test(c)},i=function(c){return/<[^>]+\/>/.test(c)},s=function(c){return r(c)&&!n(c)&&!i(c)};Iw=function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=c.indentor,f=c.textNodesOnSameLine,h=0,d=[];l=l||" ";var g=a(u).map(function(y,v,_){var b=y.value,E=y.type;E==="ClosingTag"&&h--;var w=e(l,h),S=w+b;if(E==="OpeningTag"&&h++,f){var A=_[v-1],R=_[v-2];E==="ClosingTag"&&A.type==="Text"&&R.type==="OpeningTag"&&(S=""+w+R.value+A.value+b,d.push(v-2,v-1))}return S});return d.forEach(function(y){return g[y]=null}),g.filter(function(y){return!!y}).join(`
276
+ `)};function a(u){var c=t(u);return c.map(function(l){return{value:l,type:o(l)}})}function o(u){return n(u)?"ClosingTag":s(u)?"OpeningTag":i(u)?"SelfClosingTag":"Text"}return Iw}var Mye=Nye();const Dye=Ve.getDefaultExportFromCjs(Mye);var Tw,xB;function qye(){if(xB)return Tw;xB=1;var e=bs();function t(r){return e(r).toLowerCase()}return Tw=t,Tw}var $ye=qye();const Fye=Ve.getDefaultExportFromCjs($ye);var Xf;function A7(e){return Xf=Xf||document.createElement("textarea"),Xf.innerHTML="&"+e+";",Xf.value}var Bye=Object.prototype.hasOwnProperty;function Lye(e,t){return e?Bye.call(e,t):!1}function O7(e){var t=[].slice.call(arguments,1);return t.forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}var Uye=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Oc(e){return e.indexOf("\\")<0?e:e.replace(Uye,"$1")}function C7(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function xA(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var Vye=/&([a-z#][a-z0-9]{1,31});/gi,zye=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function Wye(e,t){var r=0,n=A7(t);return t!==n?n:t.charCodeAt(0)===35&&zye.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),C7(r))?xA(r):e}function Ma(e){return e.indexOf("&")<0?e:e.replace(Vye,Wye)}var Jye=/[&<>"]/,Kye=/[&<>"]/g,Hye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Gye(e){return Hye[e]}function bn(e){return Jye.test(e)?e.replace(Kye,Gye):e}var Ke={};Ke.blockquote_open=function(){return`<blockquote>
277
+ `};Ke.blockquote_close=function(e,t){return"</blockquote>"+Ya(e,t)};Ke.code=function(e,t){return e[t].block?"<pre><code>"+bn(e[t].content)+"</code></pre>"+Ya(e,t):"<code>"+bn(e[t].content)+"</code>"};Ke.fence=function(e,t,r,n,i){var s=e[t],a="",o=r.langPrefix,u="",c,l,f;if(s.params){if(c=s.params.split(/\s+/g),l=c.join(" "),Lye(i.rules.fence_custom,c[0]))return i.rules.fence_custom[c[0]](e,t,r,n,i);u=bn(Ma(Oc(l))),a=' class="'+o+u+'"'}return r.highlight?f=r.highlight.apply(r.highlight,[s.content].concat(c))||bn(s.content):f=bn(s.content),"<pre><code"+a+">"+f+"</code></pre>"+Ya(e,t)};Ke.fence_custom={};Ke.heading_open=function(e,t){return"<h"+e[t].hLevel+">"};Ke.heading_close=function(e,t){return"</h"+e[t].hLevel+`>
278
+ `};Ke.hr=function(e,t,r){return(r.xhtmlOut?"<hr />":"<hr>")+Ya(e,t)};Ke.bullet_list_open=function(){return`<ul>
279
+ `};Ke.bullet_list_close=function(e,t){return"</ul>"+Ya(e,t)};Ke.list_item_open=function(){return"<li>"};Ke.list_item_close=function(){return`</li>
280
+ `};Ke.ordered_list_open=function(e,t){var r=e[t],n=r.order>1?' start="'+r.order+'"':"";return"<ol"+n+`>
281
+ `};Ke.ordered_list_close=function(e,t){return"</ol>"+Ya(e,t)};Ke.paragraph_open=function(e,t){return e[t].tight?"":"<p>"};Ke.paragraph_close=function(e,t){var r=!(e[t].tight&&t&&e[t-1].type==="inline"&&!e[t-1].content);return(e[t].tight?"":"</p>")+(r?Ya(e,t):"")};Ke.link_open=function(e,t,r){var n=e[t].title?' title="'+bn(Ma(e[t].title))+'"':"",i=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+bn(e[t].href)+'"'+n+i+">"};Ke.link_close=function(){return"</a>"};Ke.image=function(e,t,r){var n=' src="'+bn(e[t].src)+'"',i=e[t].title?' title="'+bn(Ma(e[t].title))+'"':"",s=' alt="'+(e[t].alt?bn(Ma(Oc(e[t].alt))):"")+'"',a=r.xhtmlOut?" /":"";return"<img"+n+s+i+a+">"};Ke.table_open=function(){return`<table>
282
+ `};Ke.table_close=function(){return`</table>
283
+ `};Ke.thead_open=function(){return`<thead>
284
+ `};Ke.thead_close=function(){return`</thead>
285
+ `};Ke.tbody_open=function(){return`<tbody>
286
+ `};Ke.tbody_close=function(){return`</tbody>
287
+ `};Ke.tr_open=function(){return"<tr>"};Ke.tr_close=function(){return`</tr>
288
+ `};Ke.th_open=function(e,t){var r=e[t];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ke.th_close=function(){return"</th>"};Ke.td_open=function(e,t){var r=e[t];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ke.td_close=function(){return"</td>"};Ke.strong_open=function(){return"<strong>"};Ke.strong_close=function(){return"</strong>"};Ke.em_open=function(){return"<em>"};Ke.em_close=function(){return"</em>"};Ke.del_open=function(){return"<del>"};Ke.del_close=function(){return"</del>"};Ke.ins_open=function(){return"<ins>"};Ke.ins_close=function(){return"</ins>"};Ke.mark_open=function(){return"<mark>"};Ke.mark_close=function(){return"</mark>"};Ke.sub=function(e,t){return"<sub>"+bn(e[t].content)+"</sub>"};Ke.sup=function(e,t){return"<sup>"+bn(e[t].content)+"</sup>"};Ke.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
289
+ `:`<br>
290
+ `};Ke.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
291
+ `:`<br>
292
+ `:`
293
+ `};Ke.text=function(e,t){return bn(e[t].content)};Ke.htmlblock=function(e,t){return e[t].content};Ke.htmltag=function(e,t){return e[t].content};Ke.abbr_open=function(e,t){return'<abbr title="'+bn(Ma(e[t].title))+'">'};Ke.abbr_close=function(){return"</abbr>"};Ke.footnote_ref=function(e,t){var r=Number(e[t].id+1).toString(),n="fnref"+r;return e[t].subId>0&&(n+=":"+e[t].subId),'<sup class="footnote-ref"><a href="#fn'+r+'" id="'+n+'">['+r+"]</a></sup>"};Ke.footnote_block_open=function(e,t,r){var n=r.xhtmlOut?`<hr class="footnotes-sep" />
294
+ `:`<hr class="footnotes-sep">
295
+ `;return n+`<section class="footnotes">
296
+ <ol class="footnotes-list">
297
+ `};Ke.footnote_block_close=function(){return`</ol>
298
+ </section>
299
+ `};Ke.footnote_open=function(e,t){var r=Number(e[t].id+1).toString();return'<li id="fn'+r+'" class="footnote-item">'};Ke.footnote_close=function(){return`</li>
300
+ `};Ke.footnote_anchor=function(e,t){var r=Number(e[t].id+1).toString(),n="fnref"+r;return e[t].subId>0&&(n+=":"+e[t].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'};Ke.dl_open=function(){return`<dl>
301
+ `};Ke.dt_open=function(){return"<dt>"};Ke.dd_open=function(){return"<dd>"};Ke.dl_close=function(){return`</dl>
302
+ `};Ke.dt_close=function(){return`</dt>
303
+ `};Ke.dd_close=function(){return`</dd>
304
+ `};function R7(e,t){return++t>=e.length-2?t:e[t].type==="paragraph_open"&&e[t].tight&&e[t+1].type==="inline"&&e[t+1].content.length===0&&e[t+2].type==="paragraph_close"&&e[t+2].tight?R7(e,t+2):t}var Ya=Ke.getBreak=function(t,r){return r=R7(t,r),r<t.length&&t[r].type==="list_item_close"?"":`
305
+ `};function ZC(){this.rules=O7({},Ke),this.getBreak=Ke.getBreak}ZC.prototype.renderInline=function(e,t,r){for(var n=this.rules,i=e.length,s=0,a="";i--;)a+=n[e[s].type](e,s++,t,r,this);return a};ZC.prototype.render=function(e,t,r){for(var n=this.rules,i=e.length,s=-1,a="";++s<i;)e[s].type==="inline"?a+=this.renderInline(e[s].children,t,r):a+=n[e[s].type](e,s,t,r,this);return a};function Ln(){this.__rules__=[],this.__cache__=null}Ln.prototype.__find__=function(e){for(var t=this.__rules__.length,r=-1;t--;)if(this.__rules__[++r].name===e)return r;return-1};Ln.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn))})})};Ln.prototype.at=function(e,t,r){var n=this.__find__(e),i=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null};Ln.prototype.before=function(e,t,r,n){var i=this.__find__(e),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};Ln.prototype.after=function(e,t,r,n){var i=this.__find__(e),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};Ln.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Ln.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach(function(r){r.enabled=!1}),e.forEach(function(r){var n=this.__find__(r);if(n<0)throw new Error("Rules manager: invalid rule name "+r);this.__rules__[n].enabled=!0},this),this.__cache__=null};Ln.prototype.disable=function(e){e=Array.isArray(e)?e:[e],e.forEach(function(t){var r=this.__find__(t);if(r<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[r].enabled=!1},this),this.__cache__=null};Ln.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Yye(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}function Xa(e,t,r,n,i){this.src=e,this.env=n,this.options=r,this.parser=t,this.tokens=i,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}Xa.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};Xa.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level};Xa.prototype.cacheSet=function(e,t){for(var r=this.cache.length;r<=e;r++)this.cache.push(0);this.cache[e]=t};Xa.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};function Cc(e,t){var r,n,i,s=-1,a=e.posMax,o=e.pos,u=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,r=1;e.pos<a;){if(i=e.src.charCodeAt(e.pos),i===91)r++;else if(i===93&&(r--,r===0)){n=!0;break}e.parser.skipToken(e)}return n?(s=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=r-1,e.pos=o,e.isInLabel=u,s}function Xye(e,t,r,n){var i,s,a,o,u,c;if(e.charCodeAt(0)!==42||e.charCodeAt(1)!==91||e.indexOf("]:")===-1||(i=new Xa(e,t,r,n,[]),s=Cc(i,1),s<0||e.charCodeAt(s+1)!==58))return-1;for(o=i.posMax,a=s+2;a<o&&i.src.charCodeAt(a)!==10;a++);return u=e.slice(2,s),c=e.slice(s+2,a).trim(),c.length===0?-1:(n.abbreviations||(n.abbreviations={}),typeof n.abbreviations[":"+u]>"u"&&(n.abbreviations[":"+u]=c),a)}function Zye(e){var t=e.tokens,r,n,i,s;if(!e.inlineMode){for(r=1,n=t.length-1;r<n;r++)if(t[r-1].type==="paragraph_open"&&t[r].type==="inline"&&t[r+1].type==="paragraph_close"){for(i=t[r].content;i.length&&(s=Xye(i,e.inline,e.options,e.env),!(s<0));)i=i.slice(s).trim();t[r].content=i,i.length||(t[r-1].tight=!0,t[r+1].tight=!0)}}}function AA(e){var t=Ma(e);try{t=decodeURI(t)}catch{}return encodeURI(t)}function I7(e,t){var r,n,i,s=t,a=e.posMax;if(e.src.charCodeAt(t)===60){for(t++;t<a;){if(r=e.src.charCodeAt(t),r===10)return!1;if(r===62)return i=AA(Oc(e.src.slice(s+1,t))),e.parser.validateLink(i)?(e.pos=t+1,e.linkContent=i,!0):!1;if(r===92&&t+1<a){t+=2;continue}t++}return!1}for(n=0;t<a&&(r=e.src.charCodeAt(t),!(r===32||r<32||r===127));){if(r===92&&t+1<a){t+=2;continue}if(r===40&&(n++,n>1)||r===41&&(n--,n<0))break;t++}return s===t||(i=Oc(e.src.slice(s,t)),!e.parser.validateLink(i))?!1:(e.linkContent=i,e.pos=t,!0)}function T7(e,t){var r,n=t,i=e.posMax,s=e.src.charCodeAt(t);if(s!==34&&s!==39&&s!==40)return!1;for(t++,s===40&&(s=41);t<i;){if(r=e.src.charCodeAt(t),r===s)return e.pos=t+1,e.linkContent=Oc(e.src.slice(n+1,t)),!0;if(r===92&&t+1<i){t+=2;continue}t++}return!1}function j7(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function Qye(e,t,r,n){var i,s,a,o,u,c,l,f,h;if(e.charCodeAt(0)!==91||e.indexOf("]:")===-1||(i=new Xa(e,t,r,n,[]),s=Cc(i,0),s<0||e.charCodeAt(s+1)!==58))return-1;for(o=i.posMax,a=s+2;a<o&&(u=i.src.charCodeAt(a),!(u!==32&&u!==10));a++);if(!I7(i,a))return-1;for(l=i.linkContent,a=i.pos,c=a,a=a+1;a<o&&(u=i.src.charCodeAt(a),!(u!==32&&u!==10));a++);for(a<o&&c!==a&&T7(i,a)?(f=i.linkContent,a=i.pos):(f="",a=c);a<o&&i.src.charCodeAt(a)===32;)a++;return a<o&&i.src.charCodeAt(a)!==10?-1:(h=j7(e.slice(1,s)),typeof n.references[h]>"u"&&(n.references[h]={title:f,href:l}),a)}function eve(e){var t=e.tokens,r,n,i,s;if(e.env.references=e.env.references||{},!e.inlineMode){for(r=1,n=t.length-1;r<n;r++)if(t[r].type==="inline"&&t[r-1].type==="paragraph_open"&&t[r+1].type==="paragraph_close"){for(i=t[r].content;i.length&&(s=Qye(i,e.inline,e.options,e.env),!(s<0));)i=i.slice(s).trim();t[r].content=i,i.length||(t[r-1].tight=!0,t[r+1].tight=!0)}}}function tve(e){var t=e.tokens,r,n,i;for(n=0,i=t.length;n<i;n++)r=t[n],r.type==="inline"&&e.inline.parse(r.content,e.options,e.env,r.children)}function rve(e){var t,r,n,i,s,a,o,u,c,l=0,f=!1,h={};if(e.env.footnotes&&(e.tokens=e.tokens.filter(function(d){return d.type==="footnote_reference_open"?(f=!0,u=[],c=d.label,!1):d.type==="footnote_reference_close"?(f=!1,h[":"+c]=u,!1):(f&&u.push(d),!f)}),!!e.env.footnotes.list)){for(a=e.env.footnotes.list,e.tokens.push({type:"footnote_block_open",level:l++}),t=0,r=a.length;t<r;t++){for(e.tokens.push({type:"footnote_open",id:t,level:l++}),a[t].tokens?(o=[],o.push({type:"paragraph_open",tight:!1,level:l++}),o.push({type:"inline",content:"",level:l,children:a[t].tokens}),o.push({type:"paragraph_close",tight:!1,level:--l})):a[t].label&&(o=h[":"+a[t].label]),e.tokens=e.tokens.concat(o),e.tokens[e.tokens.length-1].type==="paragraph_close"?s=e.tokens.pop():s=null,i=a[t].count>0?a[t].count:1,n=0;n<i;n++)e.tokens.push({type:"footnote_anchor",id:t,subId:n,level:l});s&&e.tokens.push(s),e.tokens.push({type:"footnote_close",level:--l})}e.tokens.push({type:"footnote_block_close",level:--l})}}var AB=`
306
+ ()[]'".,!?-`;function jw(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function nve(e){var t,r,n,i,s,a,o,u,c,l,f,h,d=e.tokens;if(e.env.abbreviations){for(e.env.abbrRegExp||(h="(^|["+AB.split("").map(jw).join("")+"])("+Object.keys(e.env.abbreviations).map(function(g){return g.substr(1)}).sort(function(g,y){return y.length-g.length}).map(jw).join("|")+")($|["+AB.split("").map(jw).join("")+"])",e.env.abbrRegExp=new RegExp(h,"g")),l=e.env.abbrRegExp,r=0,n=d.length;r<n;r++)if(d[r].type==="inline"){for(i=d[r].children,t=i.length-1;t>=0;t--)if(s=i[t],s.type==="text"){for(u=0,a=s.content,l.lastIndex=0,c=s.level,o=[];f=l.exec(a);)l.lastIndex>u&&o.push({type:"text",content:a.slice(u,f.index+f[1].length),level:c}),o.push({type:"abbr_open",title:e.env.abbreviations[":"+f[2]],level:c++}),o.push({type:"text",content:f[2],level:c}),o.push({type:"abbr_close",level:--c}),u=l.lastIndex-f[3].length;o.length&&(u<a.length&&o.push({type:"text",content:a.slice(u),level:c}),d[r].children=i=[].concat(i.slice(0,t),o,i.slice(t+1)))}}}}var ive=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,sve=/\((c|tm|r|p)\)/ig,ave={c:"©",r:"®",p:"§",tm:"™"};function ove(e){return e.indexOf("(")<0?e:e.replace(sve,function(t,r){return ave[r.toLowerCase()]})}function uve(e){var t,r,n,i,s;if(e.options.typographer){for(s=e.tokens.length-1;s>=0;s--)if(e.tokens[s].type==="inline")for(i=e.tokens[s].children,t=i.length-1;t>=0;t--)r=i[t],r.type==="text"&&(n=r.content,n=ove(n),ive.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=n)}}var cve=/['"]/,OB=/['"]/g,lve=/[-\s()\[\]]/,CB="’";function RB(e,t){return t<0||t>=e.length?!1:!lve.test(e[t])}function po(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function fve(e){var t,r,n,i,s,a,o,u,c,l,f,h,d,g,y,v,_;if(e.options.typographer){for(_=[],y=e.tokens.length-1;y>=0;y--)if(e.tokens[y].type==="inline"){for(v=e.tokens[y].children,_.length=0,t=0;t<v.length;t++)if(r=v[t],!(r.type!=="text"||cve.test(r.text))){for(o=v[t].level,d=_.length-1;d>=0&&!(_[d].level<=o);d--);_.length=d+1,n=r.content,s=0,a=n.length;e:for(;s<a&&(OB.lastIndex=s,i=OB.exec(n),!!i);){if(u=!RB(n,i.index-1),s=i.index+1,g=i[0]==="'",c=!RB(n,s),!c&&!u){g&&(r.content=po(r.content,i.index,CB));continue}if(f=!c,h=!u,h){for(d=_.length-1;d>=0&&(l=_[d],!(_[d].level<o));d--)if(l.single===g&&_[d].level===o){l=_[d],g?(v[l.token].content=po(v[l.token].content,l.pos,e.options.quotes[2]),r.content=po(r.content,i.index,e.options.quotes[3])):(v[l.token].content=po(v[l.token].content,l.pos,e.options.quotes[0]),r.content=po(r.content,i.index,e.options.quotes[1])),_.length=d;continue e}}f?_.push({token:t,pos:i.index,single:g,level:o}):h&&g&&(r.content=po(r.content,i.index,CB))}}}}}var Pw=[["block",Yye],["abbr",Zye],["references",eve],["inline",tve],["footnote_tail",rve],["abbr2",nve],["replacements",uve],["smartquotes",fve]];function P7(){this.options={},this.ruler=new Ln;for(var e=0;e<Pw.length;e++)this.ruler.push(Pw[e][0],Pw[e][1])}P7.prototype.process=function(e){var t,r,n;for(n=this.ruler.getRules(""),t=0,r=n.length;t<r;t++)n[t](e)};function Za(e,t,r,n,i){var s,a,o,u,c,l,f;for(this.src=e,this.parser=t,this.options=r,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",a=this.src,l=0,f=!1,o=u=l=0,c=a.length;u<c;u++){if(s=a.charCodeAt(u),!f)if(s===32){l++;continue}else f=!0;(s===10||u===c-1)&&(s!==10&&u++,this.bMarks.push(o),this.eMarks.push(u),this.tShift.push(l),f=!1,l=0,o=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}Za.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Za.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Za.prototype.skipSpaces=function(t){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===32;t++);return t};Za.prototype.skipChars=function(t,r){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};Za.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t};Za.prototype.getLines=function(t,r,n,i){var s,a,o,u,c,l=t;if(t>=r)return"";if(l+1===r)return a=this.bMarks[l]+Math.min(this.tShift[l],n),o=i?this.eMarks[l]+1:this.eMarks[l],this.src.slice(a,o);for(u=new Array(r-t),s=0;l<r;l++,s++)c=this.tShift[l],c>n&&(c=n),c<0&&(c=0),a=this.bMarks[l]+c,l+1<r||i?o=this.eMarks[l]+1:o=this.eMarks[l],u[s]=this.src.slice(a,o);return u.join("")};function pve(e,t,r){var n,i;if(e.tShift[t]-e.blkIndent<4)return!1;for(i=n=t+1;n<r;){if(e.isEmpty(n)){n++;continue}if(e.tShift[n]-e.blkIndent>=4){n++,i=n;continue}break}return e.line=n,e.tokens.push({type:"code",content:e.getLines(t,i,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}function dve(e,t,r,n){var i,s,a,o,u,c=!1,l=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(l+3>f||(i=e.src.charCodeAt(l),i!==126&&i!==96)||(u=l,l=e.skipChars(l,i),s=l-u,s<3)||(a=e.src.slice(l,f).trim(),a.indexOf("`")>=0))return!1;if(n)return!0;for(o=t;o++,!(o>=r||(l=u=e.bMarks[o]+e.tShift[o],f=e.eMarks[o],l<f&&e.tShift[o]<e.blkIndent));)if(e.src.charCodeAt(l)===i&&!(e.tShift[o]-e.blkIndent>=4)&&(l=e.skipChars(l,i),!(l-u<s)&&(l=e.skipSpaces(l),!(l<f)))){c=!0;break}return s=e.tShift[t],e.line=o+(c?1:0),e.tokens.push({type:"fence",params:a,content:e.getLines(t+1,o,s,!0),lines:[t,e.line],level:e.level}),!0}function hve(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g,y=e.bMarks[t]+e.tShift[t],v=e.eMarks[t];if(y>v||e.src.charCodeAt(y++)!==62||e.level>=e.options.maxNesting)return!1;if(n)return!0;for(e.src.charCodeAt(y)===32&&y++,u=e.blkIndent,e.blkIndent=0,o=[e.bMarks[t]],e.bMarks[t]=y,y=y<v?e.skipSpaces(y):y,s=y>=v,a=[e.tShift[t]],e.tShift[t]=y-e.bMarks[t],f=e.parser.ruler.getRules("blockquote"),i=t+1;i<r&&(y=e.bMarks[i]+e.tShift[i],v=e.eMarks[i],!(y>=v));i++){if(e.src.charCodeAt(y++)===62){e.src.charCodeAt(y)===32&&y++,o.push(e.bMarks[i]),e.bMarks[i]=y,y=y<v?e.skipSpaces(y):y,s=y>=v,a.push(e.tShift[i]),e.tShift[i]=y-e.bMarks[i];continue}if(s)break;for(g=!1,h=0,d=f.length;h<d;h++)if(f[h](e,i,r,!0)){g=!0;break}if(g)break;o.push(e.bMarks[i]),a.push(e.tShift[i]),e.tShift[i]=-1337}for(c=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:l=[t,0],level:e.level++}),e.parser.tokenize(e,t,i),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=c,l[1]=e.line,h=0;h<a.length;h++)e.bMarks[h+t]=o[h],e.tShift[h+t]=a[h];return e.blkIndent=u,!0}function mve(e,t,r,n){var i,s,a,o=e.bMarks[t],u=e.eMarks[t];if(o+=e.tShift[t],o>u||(i=e.src.charCodeAt(o++),i!==42&&i!==45&&i!==95))return!1;for(s=1;o<u;){if(a=e.src.charCodeAt(o++),a!==i&&a!==32)return!1;a===i&&s++}return s<3?!1:(n||(e.line=t+1,e.tokens.push({type:"hr",lines:[t,e.line],level:e.level})),!0)}function IB(e,t){var r,n,i;return n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],n>=i||(r=e.src.charCodeAt(n++),r!==42&&r!==45&&r!==43)||n<i&&e.src.charCodeAt(n)!==32?-1:n}function TB(e,t){var r,n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(n+1>=i||(r=e.src.charCodeAt(n++),r<48||r>57))return-1;for(;;){if(n>=i)return-1;if(r=e.src.charCodeAt(n++),!(r>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n<i&&e.src.charCodeAt(n)!==32?-1:n}function gve(e,t){var r,n,i=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].tight=!0,e.tokens[r].tight=!0,r+=2)}function yve(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g,y,v,_,b,E,w,S,A=!0,R,T,O,D;if((f=TB(e,t))>=0)v=!0;else if((f=IB(e,t))>=0)v=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(y=e.src.charCodeAt(f-1),n)return!0;for(b=e.tokens.length,v?(l=e.bMarks[t]+e.tShift[t],g=Number(e.src.substr(l,f-l-1)),e.tokens.push({type:"ordered_list_open",order:g,lines:w=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:w=[t,0],level:e.level++}),i=t,E=!1,R=e.parser.ruler.getRules("list");i<r&&(_=e.skipSpaces(f),h=e.eMarks[i],_>=h?d=1:d=_-f,d>4&&(d=1),d<1&&(d=1),s=f-e.bMarks[i]+d,e.tokens.push({type:"list_item_open",lines:S=[t,0],level:e.level++}),o=e.blkIndent,u=e.tight,a=e.tShift[t],c=e.parentType,e.tShift[t]=_-e.bMarks[t],e.blkIndent=s,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,r,!0),(!e.tight||E)&&(A=!1),E=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=o,e.tShift[t]=a,e.tight=u,e.parentType=c,e.tokens.push({type:"list_item_close",level:--e.level}),i=t=e.line,S[1]=i,_=e.bMarks[t],!(i>=r||e.isEmpty(i)||e.tShift[i]<e.blkIndent));){for(D=!1,T=0,O=R.length;T<O;T++)if(R[T](e,i,r,!0)){D=!0;break}if(D)break;if(v){if(f=TB(e,i),f<0)break}else if(f=IB(e,i),f<0)break;if(y!==e.src.charCodeAt(f-1))break}return e.tokens.push({type:v?"ordered_list_close":"bullet_list_close",level:--e.level}),w[1]=i,e.line=i,A&&gve(e,b),!0}function vve(e,t,r,n){var i,s,a,o,u,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(c+4>l||e.src.charCodeAt(c)!==91||e.src.charCodeAt(c+1)!==94||e.level>=e.options.maxNesting)return!1;for(o=c+2;o<l;o++){if(e.src.charCodeAt(o)===32)return!1;if(e.src.charCodeAt(o)===93)break}return o===c+2||o+1>=l||e.src.charCodeAt(++o)!==58?!1:(n||(o++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),u=e.src.slice(c+2,o-2),e.env.footnotes.refs[":"+u]=-1,e.tokens.push({type:"footnote_reference_open",label:u,level:e.level++}),i=e.bMarks[t],s=e.tShift[t],a=e.parentType,e.tShift[t]=e.skipSpaces(o)-o,e.bMarks[t]=o,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,r,!0),e.parentType=a,e.blkIndent-=4,e.tShift[t]=s,e.bMarks[t]=i,e.tokens.push({type:"footnote_reference_close",level:--e.level})),!0)}function bve(e,t,r,n){var i,s,a,o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(o>=u||(i=e.src.charCodeAt(o),i!==35||o>=u))return!1;for(s=1,i=e.src.charCodeAt(++o);i===35&&o<u&&s<=6;)s++,i=e.src.charCodeAt(++o);return s>6||o<u&&i!==32?!1:(n||(u=e.skipCharsBack(u,32,o),a=e.skipCharsBack(u,35,o),a>o&&e.src.charCodeAt(a-1)===32&&(u=a),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:s,lines:[t,e.line],level:e.level}),o<u&&e.tokens.push({type:"inline",content:e.src.slice(o,u).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:s,level:e.level})),!0)}function _ve(e,t,r){var n,i,s,a=t+1;return a>=r||e.tShift[a]<e.blkIndent||e.tShift[a]-e.blkIndent>3||(i=e.bMarks[a]+e.tShift[a],s=e.eMarks[a],i>=s)||(n=e.src.charCodeAt(i),n!==45&&n!==61)||(i=e.skipChars(i,n),i=e.skipSpaces(i),i<s)?!1:(i=e.bMarks[t]+e.tShift[t],e.line=a+1,e.tokens.push({type:"heading_open",hLevel:n===61?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(i,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:n===61?1:2,level:e.level}),!0)}var k7={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(e){k7[e]=!0});var Eve=/^<([a-zA-Z]{1,15})[\s\/>]/,Sve=/^<\/([a-zA-Z]{1,15})[\s>]/;function wve(e){var t=e|32;return t>=97&&t<=122}function xve(e,t,r,n){var i,s,a,o=e.bMarks[t],u=e.eMarks[t],c=e.tShift[t];if(o+=c,!e.options.html||c>3||o+2>=u||e.src.charCodeAt(o)!==60)return!1;if(i=e.src.charCodeAt(o+1),i===33||i===63){if(n)return!0}else if(i===47||wve(i)){if(i===47){if(s=e.src.slice(o,u).match(Sve),!s)return!1}else if(s=e.src.slice(o,u).match(Eve),!s)return!1;if(k7[s[1].toLowerCase()]!==!0)return!1;if(n)return!0}else return!1;for(a=t+1;a<e.lineMax&&!e.isEmpty(a);)a++;return e.line=a,e.tokens.push({type:"htmlblock",level:e.level,lines:[t,e.line],content:e.getLines(t,a,0,!0)}),!0}function kw(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function Ave(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g;if(t+2>r||(u=t+1,e.tShift[u]<e.blkIndent)||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(i=e.src.charCodeAt(a),i!==124&&i!==45&&i!==58)||(s=kw(e,t+1),!/^[-:| ]+$/.test(s))||(c=s.split("|"),c<=2))return!1;for(f=[],o=0;o<c.length;o++){if(h=c[o].trim(),!h){if(o===0||o===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;h.charCodeAt(h.length-1)===58?f.push(h.charCodeAt(0)===58?"center":"right"):h.charCodeAt(0)===58?f.push("left"):f.push("")}if(s=kw(e,t).trim(),s.indexOf("|")===-1||(c=s.replace(/^\||\|$/g,"").split("|"),f.length!==c.length))return!1;if(n)return!0;for(e.tokens.push({type:"table_open",lines:d=[t,0],level:e.level++}),e.tokens.push({type:"thead_open",lines:[t,t+1],level:e.level++}),e.tokens.push({type:"tr_open",lines:[t,t+1],level:e.level++}),o=0;o<c.length;o++)e.tokens.push({type:"th_open",align:f[o],lines:[t,t+1],level:e.level++}),e.tokens.push({type:"inline",content:c[o].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:"th_close",level:--e.level});for(e.tokens.push({type:"tr_close",level:--e.level}),e.tokens.push({type:"thead_close",level:--e.level}),e.tokens.push({type:"tbody_open",lines:g=[t+2,0],level:e.level++}),u=t+2;u<r&&!(e.tShift[u]<e.blkIndent||(s=kw(e,u).trim(),s.indexOf("|")===-1));u++){for(c=s.replace(/^\||\|$/g,"").split("|"),e.tokens.push({type:"tr_open",level:e.level++}),o=0;o<c.length;o++)e.tokens.push({type:"td_open",align:f[o],level:e.level++}),l=c[o].substring(c[o].charCodeAt(0)===124?1:0,c[o].charCodeAt(c[o].length-1)===124?c[o].length-1:c[o].length).trim(),e.tokens.push({type:"inline",content:l,level:e.level,children:[]}),e.tokens.push({type:"td_close",level:--e.level});e.tokens.push({type:"tr_close",level:--e.level})}return e.tokens.push({type:"tbody_close",level:--e.level}),e.tokens.push({type:"table_close",level:--e.level}),d[1]=g[1]=u,e.line=u,!0}function Zf(e,t){var r,n,i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return i>=s||(n=e.src.charCodeAt(i++),n!==126&&n!==58)||(r=e.skipSpaces(i),i===r)||r>=s?-1:r}function Ove(e,t){var r,n,i=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].tight=!0,e.tokens[r].tight=!0,r+=2)}function Cve(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g,y,v,_;if(n)return e.ddIndent<0?!1:Zf(e,t)>=0;if(l=t+1,e.isEmpty(l)&&++l>r||e.tShift[l]<e.blkIndent||(i=Zf(e,l),i<0)||e.level>=e.options.maxNesting)return!1;c=e.tokens.length,e.tokens.push({type:"dl_open",lines:u=[t,0],level:e.level++}),a=t,s=l;e:for(;;){for(_=!0,v=!1,e.tokens.push({type:"dt_open",lines:[a,a],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(a,a+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[a,a],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:o=[l,0],level:e.level++}),y=e.tight,h=e.ddIndent,f=e.blkIndent,g=e.tShift[s],d=e.parentType,e.blkIndent=e.ddIndent=e.tShift[s]+2,e.tShift[s]=i-e.bMarks[s],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,s,r,!0),(!e.tight||v)&&(_=!1),v=e.line-s>1&&e.isEmpty(e.line-1),e.tShift[s]=g,e.tight=y,e.parentType=d,e.blkIndent=f,e.ddIndent=h,e.tokens.push({type:"dd_close",level:--e.level}),o[1]=l=e.line,l>=r||e.tShift[l]<e.blkIndent)break e;if(i=Zf(e,l),i<0)break;s=l}if(l>=r||(a=l,e.isEmpty(a))||e.tShift[a]<e.blkIndent||(s=a+1,s>=r)||(e.isEmpty(s)&&s++,s>=r)||e.tShift[s]<e.blkIndent||(i=Zf(e,s),i<0))break}return e.tokens.push({type:"dl_close",level:--e.level}),u[1]=l,e.line=l,_&&Ove(e,c),!0}function Rve(e,t){var r,n,i,s,a,o=t+1,u;if(r=e.lineMax,o<r&&!e.isEmpty(o)){for(u=e.parser.ruler.getRules("paragraph");o<r&&!e.isEmpty(o);o++)if(!(e.tShift[o]-e.blkIndent>3)){for(i=!1,s=0,a=u.length;s<a;s++)if(u[s](e,o,r,!0)){i=!0;break}if(i)break}}return n=e.getLines(t,o,e.blkIndent,!1).trim(),e.line=o,n.length&&(e.tokens.push({type:"paragraph_open",tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:n,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"paragraph_close",tight:!1,level:e.level})),!0}var Qf=[["code",pve],["fences",dve,["paragraph","blockquote","list"]],["blockquote",hve,["paragraph","blockquote","list"]],["hr",mve,["paragraph","blockquote","list"]],["list",yve,["paragraph","blockquote"]],["footnote",vve,["paragraph"]],["heading",bve,["paragraph","blockquote"]],["lheading",_ve],["htmlblock",xve,["paragraph","blockquote"]],["table",Ave,["paragraph"]],["deflist",Cve,["paragraph"]],["paragraph",Rve]];function QC(){this.ruler=new Ln;for(var e=0;e<Qf.length;e++)this.ruler.push(Qf[e][0],Qf[e][1],{alt:(Qf[e][2]||[]).slice()})}QC.prototype.tokenize=function(e,t,r){for(var n=this.ruler.getRules(""),i=n.length,s=t,a=!1,o,u;s<r&&(e.line=s=e.skipEmptyLines(s),!(s>=r||e.tShift[s]<e.blkIndent));){for(u=0;u<i&&(o=n[u](e,s,r,!1),!o);u++);if(e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<r&&e.isEmpty(s)){if(a=!0,s++,s<r&&e.parentType==="list"&&e.isEmpty(s))break;e.line=s}}};var Ive=/[\n\t]/g,Tve=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,jve=/\u00a0/g;QC.prototype.parse=function(e,t,r,n){var i,s=0,a=0;if(!e)return[];e=e.replace(jve," "),e=e.replace(Tve,`
307
+ `),e.indexOf(" ")>=0&&(e=e.replace(Ive,function(o,u){var c;return e.charCodeAt(u)===10?(s=u+1,a=0,o):(c=" ".slice((u-s-a)%4),a=u-s+1,c)})),i=new Za(e,this,t,r,n),this.tokenize(i,i.line,i.lineMax)};function Pve(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function kve(e,t){for(var r=e.pos;r<e.posMax&&!Pve(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}function Nve(e,t){var r,n,i=e.pos;if(e.src.charCodeAt(i)!==10)return!1;if(r=e.pending.length-1,n=e.posMax,!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(var s=r-2;s>=0;s--)if(e.pending.charCodeAt(s)!==32){e.pending=e.pending.substring(0,s+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(i++;i<n&&e.src.charCodeAt(i)===32;)i++;return e.pos=i,!0}var eR=[];for(var jB=0;jB<256;jB++)eR.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){eR[e.charCodeAt(0)]=1});function Mve(e,t){var r,n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==92)return!1;if(n++,n<i){if(r=e.src.charCodeAt(n),r<256&&eR[r]!==0)return t||(e.pending+=e.src[n]),e.pos+=2,!0;if(r===10){for(t||e.push({type:"hardbreak",level:e.level}),n++;n<i&&e.src.charCodeAt(n)===32;)n++;return e.pos=n,!0}}return t||(e.pending+="\\"),e.pos++,!0}function Dve(e,t){var r,n,i,s,a,o=e.pos,u=e.src.charCodeAt(o);if(u!==96)return!1;for(r=o,o++,n=e.posMax;o<n&&e.src.charCodeAt(o)===96;)o++;for(i=e.src.slice(r,o),s=a=o;(s=e.src.indexOf("`",a))!==-1;){for(a=s+1;a<n&&e.src.charCodeAt(a)===96;)a++;if(a-s===i.length)return t||e.push({type:"code",content:e.src.slice(o,s).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=a,!0}return t||(e.pending+=i),e.pos+=i.length,!0}function qve(e,t){var r,n,i,s=e.posMax,a=e.pos,o,u;if(e.src.charCodeAt(a)!==126||t||a+4>=s||e.src.charCodeAt(a+1)!==126||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,u=e.src.charCodeAt(a+2),o===126)||u===126||u===32||u===10)return!1;for(n=a+2;n<s&&e.src.charCodeAt(n)===126;)n++;if(n>a+3)return e.pos+=n-a,t||(e.pending+=e.src.slice(a,n)),!0;for(e.pos=a+2,i=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===126&&e.src.charCodeAt(e.pos+1)===126&&(o=e.src.charCodeAt(e.pos-1),u=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,u!==126&&o!==126&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=a,!1)}function $ve(e,t){var r,n,i,s=e.posMax,a=e.pos,o,u;if(e.src.charCodeAt(a)!==43||t||a+4>=s||e.src.charCodeAt(a+1)!==43||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,u=e.src.charCodeAt(a+2),o===43)||u===43||u===32||u===10)return!1;for(n=a+2;n<s&&e.src.charCodeAt(n)===43;)n++;if(n!==a+2)return e.pos+=n-a,t||(e.pending+=e.src.slice(a,n)),!0;for(e.pos=a+2,i=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===43&&e.src.charCodeAt(e.pos+1)===43&&(o=e.src.charCodeAt(e.pos-1),u=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,u!==43&&o!==43&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"ins_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"ins_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=a,!1)}function Fve(e,t){var r,n,i,s=e.posMax,a=e.pos,o,u;if(e.src.charCodeAt(a)!==61||t||a+4>=s||e.src.charCodeAt(a+1)!==61||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,u=e.src.charCodeAt(a+2),o===61)||u===61||u===32||u===10)return!1;for(n=a+2;n<s&&e.src.charCodeAt(n)===61;)n++;if(n!==a+2)return e.pos+=n-a,t||(e.pending+=e.src.slice(a,n)),!0;for(e.pos=a+2,i=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===61&&e.src.charCodeAt(e.pos+1)===61&&(o=e.src.charCodeAt(e.pos-1),u=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,u!==61&&o!==61&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"mark_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"mark_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=a,!1)}function PB(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function kB(e,t){var r=t,n,i,s,a=!0,o=!0,u=e.posMax,c=e.src.charCodeAt(t);for(n=t>0?e.src.charCodeAt(t-1):-1;r<u&&e.src.charCodeAt(r)===c;)r++;return r>=u&&(a=!1),s=r-t,s>=4?a=o=!1:(i=r<u?e.src.charCodeAt(r):-1,(i===32||i===10)&&(a=!1),(n===32||n===10)&&(o=!1),c===95&&(PB(n)&&(a=!1),PB(i)&&(o=!1))),{can_open:a,can_close:o,delims:s}}function Bve(e,t){var r,n,i,s,a,o,u,c=e.posMax,l=e.pos,f=e.src.charCodeAt(l);if(f!==95&&f!==42||t)return!1;if(u=kB(e,l),r=u.delims,!u.can_open)return e.pos+=r,t||(e.pending+=e.src.slice(l,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=l+r,o=[r];e.pos<c;){if(e.src.charCodeAt(e.pos)===f){if(u=kB(e,e.pos),n=u.delims,u.can_close){for(s=o.pop(),a=n;s!==a;){if(a<s){o.push(s-a);break}if(a-=s,o.length===0)break;e.pos+=s,s=o.pop()}if(o.length===0){r=s,i=!0;break}e.pos+=n;continue}u.can_open&&o.push(n),e.pos+=n;continue}e.parser.skipToken(e)}return i?(e.posMax=e.pos,e.pos=l+r,t||((r===2||r===3)&&e.push({type:"strong_open",level:e.level++}),(r===1||r===3)&&e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),(r===1||r===3)&&e.push({type:"em_close",level:--e.level}),(r===2||r===3)&&e.push({type:"strong_close",level:--e.level})),e.pos=e.posMax+r,e.posMax=c,!0):(e.pos=l,!1)}var Lve=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Uve(e,t){var r,n,i=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==126||t||s+2>=i||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<i;){if(e.src.charCodeAt(e.pos)===126){r=!0;break}e.parser.skipToken(e)}return!r||s+1===e.pos||(n=e.src.slice(s+1,e.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sub",level:e.level,content:n.replace(Lve,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0)}var Vve=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function zve(e,t){var r,n,i=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==94||t||s+2>=i||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<i;){if(e.src.charCodeAt(e.pos)===94){r=!0;break}e.parser.skipToken(e)}return!r||s+1===e.pos||(n=e.src.slice(s+1,e.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sup",level:e.level,content:n.replace(Vve,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0)}function Wve(e,t){var r,n,i,s,a,o,u,c,l=!1,f=e.pos,h=e.posMax,d=e.pos,g=e.src.charCodeAt(d);if(g===33&&(l=!0,g=e.src.charCodeAt(++d)),g!==91||e.level>=e.options.maxNesting||(r=d+1,n=Cc(e,d),n<0))return!1;if(o=n+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(o>=h)return!1;for(d=o,I7(e,o)?(s=e.linkContent,o=e.pos):s="",d=o;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(o<h&&d!==o&&T7(e,o))for(a=e.linkContent,o=e.pos;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);else a="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=f,!1;o++}else{if(e.linkLevel>0)return!1;for(;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(o<h&&e.src.charCodeAt(o)===91&&(d=o+1,o=Cc(e,o),o>=0?i=e.src.slice(d,o++):o=d-1),i||(typeof i>"u"&&(o=n+1),i=e.src.slice(r,n)),u=e.env.references[j7(i)],!u)return e.pos=f,!1;s=u.href,a=u.title}return t||(e.pos=r,e.posMax=n,l?e.push({type:"image",src:s,title:a,alt:e.src.substr(r,n-r),level:e.level}):(e.push({type:"link_open",href:s,title:a,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=o,e.posMax=h,!0}function Jve(e,t){var r,n,i,s,a=e.posMax,o=e.pos;return o+2>=a||e.src.charCodeAt(o)!==94||e.src.charCodeAt(o+1)!==91||e.level>=e.options.maxNesting||(r=o+2,n=Cc(e,o+1),n<0)?!1:(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),i=e.env.footnotes.list.length,e.pos=r,e.posMax=n,e.push({type:"footnote_ref",id:i,level:e.level}),e.linkLevel++,s=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[i]={tokens:e.tokens.splice(s)},e.linkLevel--),e.pos=n+1,e.posMax=a,!0)}function Kve(e,t){var r,n,i,s,a=e.posMax,o=e.pos;if(o+3>a||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(o)!==91||e.src.charCodeAt(o+1)!==94||e.level>=e.options.maxNesting)return!1;for(n=o+2;n<a;n++){if(e.src.charCodeAt(n)===32||e.src.charCodeAt(n)===10)return!1;if(e.src.charCodeAt(n)===93)break}return n===o+2||n>=a||(n++,r=e.src.slice(o+2,n-1),typeof e.env.footnotes.refs[":"+r]>"u")?!1:(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+r]<0?(i=e.env.footnotes.list.length,e.env.footnotes.list[i]={label:r,count:0},e.env.footnotes.refs[":"+r]=i):i=e.env.footnotes.refs[":"+r],s=e.env.footnotes.list[i].count,e.env.footnotes.list[i].count++,e.push({type:"footnote_ref",id:i,subId:s,level:e.level})),e.pos=n,e.posMax=a,!0)}var Hve=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],Gve=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,Yve=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Xve(e,t){var r,n,i,s,a,o=e.pos;return e.src.charCodeAt(o)!==60||(r=e.src.slice(o),r.indexOf(">")<0)?!1:(n=r.match(Yve),n?Hve.indexOf(n[1].toLowerCase())<0||(s=n[0].slice(1,-1),a=AA(s),!e.parser.validateLink(s))?!1:(t||(e.push({type:"link_open",href:a,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=n[0].length,!0):(i=r.match(Gve),i?(s=i[0].slice(1,-1),a=AA("mailto:"+s),e.parser.validateLink(a)?(t||(e.push({type:"link_open",href:a,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=i[0].length,!0):!1):!1))}function ym(e,t){return e=e.source,t=t||"",function r(n,i){return n?(i=i.source||i,e=e.replace(n,i),r):new RegExp(e,t)}}var Zve=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Qve=/[^"'=<>`\x00-\x20]+/,e0e=/'[^']*'/,t0e=/"[^"]*"/,r0e=ym(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Qve)("single_quoted",e0e)("double_quoted",t0e)(),n0e=ym(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",Zve)("attr_value",r0e)(),i0e=ym(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",n0e)(),s0e=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,a0e=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,o0e=/<[?].*?[?]>/,u0e=/<![A-Z]+\s+[^>]*>/,c0e=/<!\[CDATA\[[\s\S]*?\]\]>/,l0e=ym(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",i0e)("close_tag",s0e)("comment",a0e)("processing",o0e)("declaration",u0e)("cdata",c0e)();function f0e(e){var t=e|32;return t>=97&&t<=122}function p0e(e,t){var r,n,i,s=e.pos;return!e.options.html||(i=e.posMax,e.src.charCodeAt(s)!==60||s+2>=i)||(r=e.src.charCodeAt(s+1),r!==33&&r!==63&&r!==47&&!f0e(r))||(n=e.src.slice(s).match(l0e),!n)?!1:(t||e.push({type:"htmltag",content:e.src.slice(s,s+n[0].length),level:e.level}),e.pos+=n[0].length,!0)}var d0e=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,h0e=/^&([a-z][a-z0-9]{1,31});/i;function m0e(e,t){var r,n,i,s=e.pos,a=e.posMax;if(e.src.charCodeAt(s)!==38)return!1;if(s+1<a){if(r=e.src.charCodeAt(s+1),r===35){if(i=e.src.slice(s).match(d0e),i)return t||(n=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),e.pending+=C7(n)?xA(n):xA(65533)),e.pos+=i[0].length,!0}else if(i=e.src.slice(s).match(h0e),i){var o=A7(i[1]);if(i[1]!==o)return t||(e.pending+=o),e.pos+=i[0].length,!0}}return t||(e.pending+="&"),e.pos++,!0}var Nw=[["text",kve],["newline",Nve],["escape",Mve],["backticks",Dve],["del",qve],["ins",$ve],["mark",Fve],["emphasis",Bve],["sub",Uve],["sup",zve],["links",Wve],["footnote_inline",Jve],["footnote_ref",Kve],["autolink",Xve],["htmltag",p0e],["entity",m0e]];function vm(){this.ruler=new Ln;for(var e=0;e<Nw.length;e++)this.ruler.push(Nw[e][0],Nw[e][1]);this.validateLink=g0e}vm.prototype.skipToken=function(e){var t=this.ruler.getRules(""),r=t.length,n=e.pos,i,s;if((s=e.cacheGet(n))>0){e.pos=s;return}for(i=0;i<r;i++)if(t[i](e,!0)){e.cacheSet(n,e.pos);return}e.pos++,e.cacheSet(n,e.pos)};vm.prototype.tokenize=function(e){for(var t=this.ruler.getRules(""),r=t.length,n=e.posMax,i,s;e.pos<n;){for(s=0;s<r&&(i=t[s](e,!1),!i);s++);if(i){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};vm.prototype.parse=function(e,t,r,n){var i=new Xa(e,this,t,r,n);this.tokenize(i)};function g0e(e){var t=["vbscript","javascript","file","data"],r=e.trim().toLowerCase();return r=Ma(r),!(r.indexOf(":")!==-1&&t.indexOf(r.split(":")[0])!==-1)}var y0e={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},v0e={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},b0e={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},_0e={default:y0e,full:v0e,commonmark:b0e};function N7(e,t,r){this.src=t,this.env=r,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function oa(e,t){typeof e!="string"&&(t=e,e="default"),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
308
+
309
+ import Remarkable from 'remarkable';
310
+ import linkify from 'remarkable/linkify';
311
+ new Remarkable().use(linkify)
312
+ `),this.inline=new vm,this.block=new QC,this.core=new P7,this.renderer=new ZC,this.ruler=new Ln,this.options={},this.configure(_0e[e]),this.set(t||{})}oa.prototype.set=function(e){O7(this.options,e)};oa.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enable(e.components[r].rules,!0)})};oa.prototype.use=function(e,t){return e(this,t),this};oa.prototype.parse=function(e,t){var r=new N7(this,e,t);return this.core.process(r),r.tokens};oa.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};oa.prototype.parseInline=function(e,t){var r=new N7(this,e,t);return r.inlineMode=!0,this.core.process(r),r.tokens};oa.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var E0e="3.16.2";function S0e(e,t){for(var r in t)t.hasOwnProperty(r)&&e[r]===void 0&&(e[r]=t[r]);return e}function w0e(e,t,r){var n;return e.length>t&&(r==null?(r="&hellip;",n=3):n=r.length,e=e.substring(0,t-n)+r),e}function NB(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ma(e,t){for(var r=e.length-1;r>=0;r--)t(e[r])===!0&&e.splice(r,1)}function x0e(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var r=[],n=0,i;i=t.exec(e);)r.push(e.substring(n,i.index)),r.push(i[0]),n=i.index+i[0].length;return r.push(e.substring(n)),r}function tR(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var OA=(function(){function e(t){t===void 0&&(t={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=t.tagName||"",this.attrs=t.attrs||{},this.innerHTML=t.innerHtml||t.innerHTML||""}return e.prototype.setTagName=function(t){return this.tagName=t,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(t,r){var n=this.getAttrs();return n[t]=r,this},e.prototype.getAttr=function(t){return this.getAttrs()[t]},e.prototype.setAttrs=function(t){return Object.assign(this.getAttrs(),t),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(t){return this.setAttr("class",t)},e.prototype.addClass=function(t){for(var r=this.getClass(),n=this.whitespaceRegex,i=r?r.split(n):[],s=t.split(n),a;a=s.shift();)NB(i,a)===-1&&i.push(a);return this.getAttrs().class=i.join(" "),this},e.prototype.removeClass=function(t){for(var r=this.getClass(),n=this.whitespaceRegex,i=r?r.split(n):[],s=t.split(n),a;i.length&&(a=s.shift());){var o=NB(i,a);o!==-1&&i.splice(o,1)}return this.getAttrs().class=i.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(t){return(" "+this.getClass()+" ").indexOf(" "+t+" ")!==-1},e.prototype.setInnerHTML=function(t){return this.innerHTML=t,this},e.prototype.setInnerHtml=function(t){return this.setInnerHTML(t)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var t=this.getTagName(),r=this.buildAttrsStr();return r=r?" "+r:"",["<",t,r,">",this.getInnerHtml(),"</",t,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var t=this.getAttrs(),r=[];for(var n in t)t.hasOwnProperty(n)&&r.push(n+'="'+t[n]+'"');return r.join(" ")},e})();function A0e(e,t,r){var n,i;r==null?(r="&hellip;",i=3,n=8):(i=r.length,n=r.length);var s=function(b){var E={},w=b,S=w.match(/^([a-z]+):\/\//i);return S&&(E.scheme=S[1],w=w.substr(S[0].length)),S=w.match(/^(.*?)(?=(\?|#|\/|$))/i),S&&(E.host=S[1],w=w.substr(S[0].length)),S=w.match(/^\/(.*?)(?=(\?|#|$))/i),S&&(E.path=S[1],w=w.substr(S[0].length)),S=w.match(/^\?(.*?)(?=(#|$))/i),S&&(E.query=S[1],w=w.substr(S[0].length)),S=w.match(/^#(.*?)$/i),S&&(E.fragment=S[1]),E},a=function(b){var E="";return b.scheme&&b.host&&(E+=b.scheme+"://"),b.host&&(E+=b.host),b.path&&(E+="/"+b.path),b.query&&(E+="?"+b.query),b.fragment&&(E+="#"+b.fragment),E},o=function(b,E){var w=E/2,S=Math.ceil(w),A=-1*Math.floor(w),R="";return A<0&&(R=b.substr(A)),b.substr(0,S)+r+R};if(e.length<=t)return e;var u=t-i,c=s(e);if(c.query){var l=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);l&&(c.query=c.query.substr(0,l[1].length),e=a(c))}if(e.length<=t||(c.host&&(c.host=c.host.replace(/^www\./,""),e=a(c)),e.length<=t))return e;var f="";if(c.host&&(f+=c.host),f.length>=u)return c.host.length==t?(c.host.substr(0,t-i)+r).substr(0,u+n):o(f,u).substr(0,u+n);var h="";if(c.path&&(h+="/"+c.path),c.query&&(h+="?"+c.query),h)if((f+h).length>=u){if((f+h).length==t)return(f+h).substr(0,t);var d=u-f.length;return(f+o(h,d)).substr(0,u+n)}else f+=h;if(c.fragment){var g="#"+c.fragment;if((f+g).length>=u){if((f+g).length==t)return(f+g).substr(0,t);var y=u-f.length;return(f+o(g,y)).substr(0,u+n)}else f+=g}if(c.scheme&&c.host){var v=c.scheme+"://";if((f+v).length<u)return(v+f).substr(0,t)}if(f.length<=t)return f;var _="";return u>0&&(_=f.substr(-1*Math.floor(u/2))),(f.substr(0,Math.ceil(u/2))+r+_).substr(0,u+n)}function O0e(e,t,r){if(e.length<=t)return e;var n,i;r==null?(r="&hellip;",n=8,i=3):(n=r.length,i=r.length);var s=t-i,a="";return s>0&&(a=e.substr(-1*Math.floor(s/2))),(e.substr(0,Math.ceil(s/2))+r+a).substr(0,s+n)}function C0e(e,t,r){return w0e(e,t,r)}var MB=(function(){function e(t){t===void 0&&(t={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=t.newWindow||!1,this.truncate=t.truncate||{},this.className=t.className||""}return e.prototype.build=function(t){return new OA({tagName:"a",attrs:this.createAttrs(t),innerHtml:this.processAnchorText(t.getAnchorText())})},e.prototype.createAttrs=function(t){var r={href:t.getAnchorHref()},n=this.createCssClass(t);return n&&(r.class=n),this.newWindow&&(r.target="_blank",r.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<t.getAnchorText().length&&(r.title=t.getAnchorHref()),r},e.prototype.createCssClass=function(t){var r=this.className;if(r){for(var n=[r],i=t.getCssClassSuffixes(),s=0,a=i.length;s<a;s++)n.push(r+"-"+i[s]);return n.join(" ")}else return""},e.prototype.processAnchorText=function(t){return t=this.doTruncate(t),t},e.prototype.doTruncate=function(t){var r=this.truncate;if(!r||!r.length)return t;var n=r.length,i=r.location;return i==="smart"?A0e(t,n):i==="middle"?O0e(t,n):C0e(t,n)},e})(),vu=(function(){function e(t){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=t.tagBuilder,this.matchedText=t.matchedText,this.offset=t.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(t){this.offset=t},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e})(),M7=(function(e){kt.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n.email="",n.email=r.email,n}return t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t})(vu),D7=(function(e){kt.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="",n.hashtag="",n.serviceName=r.serviceName,n.hashtag=r.hashtag,n}return t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var r=this.serviceName,n=this.hashtag;switch(r){case"twitter":return"https://twitter.com/hashtag/"+n;case"facebook":return"https://www.facebook.com/hashtag/"+n;case"instagram":return"https://instagram.com/explore/tags/"+n;case"tiktok":return"https://www.tiktok.com/tag/"+n;default:throw new Error("Unknown service name to point hashtag to: "+r)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t})(vu),q7=(function(e){kt.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.mention="",n.mention=r.mention,n.serviceName=r.serviceName,n}return t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var r=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&r.push(n),r},t})(vu),$7=(function(e){kt.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n.number="",n.plusSign=!1,n.number=r.number,n.plusSign=r.plusSign,n}return t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t})(vu),F7=(function(e){kt.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=r.urlMatchType,n.url=r.url,n.protocolUrlMatch=r.protocolUrlMatch,n.protocolRelativeMatch=r.protocolRelativeMatch,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var r=this.url;return!this.protocolRelativeMatch&&!this.protocolUrlMatch&&!this.protocolPrepended&&(r=this.url="http://"+r,this.protocolPrepended=!0),r},t.prototype.getAnchorHref=function(){var r=this.getUrl();return r.replace(/&amp;/g,"&")},t.prototype.getAnchorText=function(){var r=this.getMatchedText();return this.protocolRelativeMatch&&(r=this.stripProtocolRelativePrefix(r)),this.stripPrefix.scheme&&(r=this.stripSchemePrefix(r)),this.stripPrefix.www&&(r=this.stripWwwPrefix(r)),this.stripTrailingSlash&&(r=this.removeTrailingSlash(r)),this.decodePercentEncoding&&(r=this.removePercentEncoding(r)),r},t.prototype.stripSchemePrefix=function(r){return r.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(r){return r.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(r){return r.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(r){return r.charAt(r.length-1)==="/"&&(r=r.slice(0,-1)),r},t.prototype.removePercentEncoding=function(r){var n=r.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(n)}catch{return n}},t})(vu),bu=(function(){function e(t){this.__jsduckDummyDocProp=null,this.tagBuilder=t.tagBuilder}return e})(),Mw=/[A-Za-z]/,R0e=/[\d]/,I0e=/[\D]/,ga=/\s/,Dw=/['"]/,T0e=/[\x00-\x1F\x7F]/,B7=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,j0e=/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source,P0e=/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,L7=B7+j0e+P0e,ed=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,k0e=L7+ed,dr=L7+ed,Gu=new RegExp("[".concat(dr,"]")),N0e="(?:["+ed+"]{1,3}\\.){3}["+ed+"]{1,3}",M0e="["+dr+"](?:["+dr+"\\-_]{0,61}["+dr+"])?",DB=function(e){return"(?=("+M0e+"))\\"+e},qw=function(e){return"(?:"+DB(e)+"(?:\\."+DB(e+1)+"){0,126}|"+N0e+")"},ep=Gu,U7=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,D0e=new RegExp("[".concat(dr,"!#$%&'*+/=?^_`{|}~-]")),q0e=new RegExp("^".concat(U7.source,"$")),qB=(function(e){kt.__extends(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.localPartCharRegex=D0e,r.strictTldRegex=q0e,r}return t.prototype.parseMatches=function(r){for(var n=this.tagBuilder,i=this.localPartCharRegex,s=this.strictTldRegex,a=[],o=r.length,u=new tp,c={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},l=0,f=0,h=u;l<o;){var d=r.charAt(l);switch(f){case 0:g(d);break;case 1:y(r.charAt(l-1),d);break;case 2:v(d);break;case 3:_(d);break;case 4:b(d);break;case 5:E(d);break;case 6:w(d);break;case 7:S(d);break;default:tR(f)}l++}return T(),a;function g(O){O==="m"?A(1):i.test(O)&&A()}function y(O,D){O===":"?i.test(D)?(f=2,h=new tp(kt.__assign(kt.__assign({},h),{hasMailtoPrefix:!0}))):R():c[O]===D||(i.test(D)?f=2:D==="."?f=3:D==="@"?f=4:R())}function v(O){O==="."?f=3:O==="@"?f=4:i.test(O)||R()}function _(O){O==="."||O==="@"?R():i.test(O)?f=2:R()}function b(O){ep.test(O)?f=5:R()}function E(O){O==="."?f=7:O==="-"?f=6:ep.test(O)||T()}function w(O){O==="-"||O==="."?T():ep.test(O)?f=5:T()}function S(O){O==="."||O==="-"?T():ep.test(O)?(f=5,h=new tp(kt.__assign(kt.__assign({},h),{hasDomainDot:!0}))):T()}function A(O){O===void 0&&(O=2),f=O,h=new tp({idx:l})}function R(){f=0,h=u}function T(){if(h.hasDomainDot){var O=r.slice(h.idx,l);/[-.]$/.test(O)&&(O=O.slice(0,-1));var D=h.hasMailtoPrefix?O.slice(7):O;N(D)&&a.push(new M7({tagBuilder:n,matchedText:O,offset:h.idx,email:D}))}R();function N($){var M=$.split(".").pop()||"",X=M.toLowerCase(),ee=s.test(X);return ee}}},t})(bu),tp=(function(){function e(t){t===void 0&&(t={}),this.idx=t.idx!==void 0?t.idx:-1,this.hasMailtoPrefix=!!t.hasMailtoPrefix,this.hasDomainDot=!!t.hasDomainDot}return e})(),$0e=(function(){function e(){}return e.isValid=function(t,r){return!(r&&!this.isValidUriScheme(r)||this.urlMatchDoesNotHaveProtocolOrDot(t,r)||this.urlMatchDoesNotHaveAtLeastOneWordChar(t,r)&&!this.isValidIpAddress(t)||this.containsMultipleDots(t))},e.isValidIpAddress=function(t){var r=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source),n=t.match(r);return n!==null},e.containsMultipleDots=function(t){var r=t;return this.hasFullProtocolRegex.test(t)&&(r=t.split("://")[1]),r.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(t){var r=t.match(this.uriSchemeRegex),n=r&&r[0].toLowerCase();return n!=="javascript:"&&n!=="vbscript:"},e.urlMatchDoesNotHaveProtocolOrDot=function(t,r){return!!t&&(!r||!this.hasFullProtocolRegex.test(r))&&t.indexOf(".")===-1},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(t,r){return t&&r?!this.hasFullProtocolRegex.test(r)&&!this.hasWordCharAfterProtocolRegex.test(t):!1},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+B7+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e})(),F0e=(function(){var e=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,t=/(?:www\.)/,r=new RegExp("[/?#](?:["+dr+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+dr+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");return new RegExp(["(?:","(",e.source,qw(2),")","|","(","(//)?",t.source,qw(6),")","|","(","(//)?",qw(10)+"\\.",U7.source,"(?![-"+k0e+"])",")",")","(?::[0-9]+)?","(?:"+r.source+")?"].join(""),"gi")})(),B0e=new RegExp("["+dr+"]"),$B=(function(e){kt.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=F0e,n.wordCharRegExp=B0e,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return t.prototype.parseMatches=function(r){for(var n=this.matcherRegex,i=this.stripPrefix,s=this.stripTrailingSlash,a=this.decodePercentEncoding,o=this.tagBuilder,u=[],c,l=function(){var h=c[0],d=c[1],g=c[4],y=c[5],v=c[9],_=c.index,b=y||v,E=r.charAt(_-1);if(!$0e.isValid(h,d)||_>0&&E==="@"||_>0&&b&&f.wordCharRegExp.test(E))return"continue";if(/\?$/.test(h)&&(h=h.substr(0,h.length-1)),f.matchHasUnbalancedClosingParen(h))h=h.substr(0,h.length-1);else{var w=f.matchHasInvalidCharAfterTld(h,d);w>-1&&(h=h.substr(0,w))}var S=["http://","https://"].find(function(O){return!!d&&d.indexOf(O)!==-1});if(S){var A=h.indexOf(S);h=h.substr(A),d=d.substr(A),_=_+A}var R=d?"scheme":g?"www":"tld",T=!!d;u.push(new F7({tagBuilder:o,matchedText:h,offset:_,urlMatchType:R,url:h,protocolUrlMatch:T,protocolRelativeMatch:!!b,stripPrefix:i,stripTrailingSlash:s,decodePercentEncoding:a}))},f=this;(c=n.exec(r))!==null;)l();return u},t.prototype.matchHasUnbalancedClosingParen=function(r){var n=r.charAt(r.length-1),i;if(n===")")i="(";else if(n==="]")i="[";else if(n==="}")i="{";else return!1;for(var s=0,a=0,o=r.length-1;a<o;a++){var u=r.charAt(a);u===i?s++:u===n&&(s=Math.max(s-1,0))}return s===0},t.prototype.matchHasInvalidCharAfterTld=function(r,n){if(!r)return-1;var i=0;n&&(i=r.indexOf(":"),r=r.slice(i));var s=new RegExp("^((.?//)?[-."+dr+"]*[-"+dr+"]\\.[-"+dr+"]+)"),a=s.exec(r);return a===null?-1:(i+=a[1].length,r=r.slice(a[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(r)?i:-1)},t})(bu),FB=new RegExp("[_".concat(dr,"]")),BB=(function(e){kt.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.serviceName=r.serviceName,n}return t.prototype.parseMatches=function(r){for(var n=this.tagBuilder,i=this.serviceName,s=[],a=r.length,o=0,u=-1,c=0;o<a;){var l=r.charAt(o);switch(c){case 0:f(l);break;case 1:h(l);break;case 2:d(l);break;case 3:g(l);break;default:tR(c)}o++}return y(),s;function f(v){v==="#"?(c=2,u=o):Gu.test(v)&&(c=1)}function h(v){Gu.test(v)||(c=0)}function d(v){FB.test(v)?c=3:Gu.test(v)?c=1:c=0}function g(v){FB.test(v)||(y(),u=-1,Gu.test(v)?c=1:c=0)}function y(){if(u>-1&&o-u<=140){var v=r.slice(u,o),_=new D7({tagBuilder:n,matchedText:v,offset:u,serviceName:i,hashtag:v.slice(1)});s.push(_)}}},t})(bu),L0e=["twitter","facebook","instagram","tiktok"],U0e=/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/,V0e=/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/,z0e=new RegExp("".concat(U0e.source,"|").concat(V0e.source),"g"),LB=(function(e){kt.__extends(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.matcherRegex=z0e,r}return t.prototype.parseMatches=function(r){for(var n=this.matcherRegex,i=this.tagBuilder,s=[],a;(a=n.exec(r))!==null;){var o=a[0],u=o.replace(/[^0-9,;#]/g,""),c=!!(a[1]||a[2]),l=a.index==0?"":r.substr(a.index-1,1),f=r.substr(a.index+o.length,1),h=!l.match(/\d/)&&!f.match(/\d/);this.testMatch(a[3])&&this.testMatch(o)&&h&&s.push(new $7({tagBuilder:i,matchedText:o,offset:a.index,number:u,plusSign:c}))}return s},t.prototype.testMatch=function(r){return I0e.test(r)},t})(bu),W0e=new RegExp("@[_".concat(dr,"]{1,50}(?![_").concat(dr,"])"),"g"),J0e=new RegExp("@[_.".concat(dr,"]{1,30}(?![_").concat(dr,"])"),"g"),K0e=new RegExp("@[-_.".concat(dr,"]{1,50}(?![-_").concat(dr,"])"),"g"),H0e=new RegExp("@[_.".concat(dr,"]{1,23}[_").concat(dr,"](?![_").concat(dr,"])"),"g"),G0e=new RegExp("[^"+dr+"]"),UB=(function(e){kt.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:W0e,instagram:J0e,soundcloud:K0e,tiktok:H0e},n.nonWordCharRegex=G0e,n.serviceName=r.serviceName,n}return t.prototype.parseMatches=function(r){var n=this.serviceName,i=this.matcherRegexes[this.serviceName],s=this.nonWordCharRegex,a=this.tagBuilder,o=[],u;if(!i)return o;for(;(u=i.exec(r))!==null;){var c=u.index,l=r.charAt(c-1);if(c===0||s.test(l)){var f=u[0].replace(/\.+$/g,""),h=f.slice(1);o.push(new q7({tagBuilder:a,matchedText:f,offset:c,serviceName:n,mention:h}))}}return o},t})(bu);function Y0e(e,t){for(var r=t.onOpenTag,n=t.onCloseTag,i=t.onText,s=t.onComment,a=t.onDoctype,o=new qi,u=0,c=e.length,l=0,f=0,h=o;u<c;){var d=e.charAt(u);switch(l){case 0:g(d);break;case 1:y(d);break;case 2:_(d);break;case 3:v(d);break;case 4:b(d);break;case 5:E(d);break;case 6:w(d);break;case 7:S(d);break;case 8:A(d);break;case 9:R(d);break;case 10:T(d);break;case 11:O(d);break;case 12:D(d);break;case 13:N();break;case 14:$(d);break;case 15:M(d);break;case 16:X(d);break;case 17:ee(d);break;case 18:J(d);break;case 19:Q(d);break;case 20:te(d);break;default:tR(l)}u++}f<u&&ne();function g(se){se==="<"&&L()}function y(se){se==="!"?l=13:se==="/"?(l=2,h=new qi(kt.__assign(kt.__assign({},h),{isClosing:!0}))):se==="<"?L():Mw.test(se)?(l=3,h=new qi(kt.__assign(kt.__assign({},h),{isOpening:!0}))):(l=0,h=o)}function v(se){ga.test(se)?(h=new qi(kt.__assign(kt.__assign({},h),{name:ce()})),l=4):se==="<"?L():se==="/"?(h=new qi(kt.__assign(kt.__assign({},h),{name:ce()})),l=12):se===">"?(h=new qi(kt.__assign(kt.__assign({},h),{name:ce()})),K()):!Mw.test(se)&&!R0e.test(se)&&se!==":"&&re()}function _(se){se===">"?re():Mw.test(se)?l=3:re()}function b(se){ga.test(se)||(se==="/"?l=12:se===">"?K():se==="<"?L():se==="="||Dw.test(se)||T0e.test(se)?re():l=5)}function E(se){ga.test(se)?l=6:se==="/"?l=12:se==="="?l=7:se===">"?K():se==="<"?L():Dw.test(se)&&re()}function w(se){ga.test(se)||(se==="/"?l=12:se==="="?l=7:se===">"?K():se==="<"?L():Dw.test(se)?re():l=5)}function S(se){ga.test(se)||(se==='"'?l=8:se==="'"?l=9:/[>=`]/.test(se)?re():se==="<"?L():l=10)}function A(se){se==='"'&&(l=11)}function R(se){se==="'"&&(l=11)}function T(se){ga.test(se)?l=4:se===">"?K():se==="<"&&L()}function O(se){ga.test(se)?l=4:se==="/"?l=12:se===">"?K():se==="<"?L():(l=4,ue())}function D(se){se===">"?(h=new qi(kt.__assign(kt.__assign({},h),{isClosing:!0})),K()):l=4}function N(se){e.substr(u,2)==="--"?(u+=2,h=new qi(kt.__assign(kt.__assign({},h),{type:"comment"})),l=14):e.substr(u,7).toUpperCase()==="DOCTYPE"?(u+=7,h=new qi(kt.__assign(kt.__assign({},h),{type:"doctype"})),l=20):re()}function $(se){se==="-"?l=15:se===">"?re():l=16}function M(se){se==="-"?l=18:se===">"?re():l=16}function X(se){se==="-"&&(l=17)}function ee(se){se==="-"?l=18:l=16}function J(se){se===">"?K():se==="!"?l=19:se==="-"||(l=16)}function Q(se){se==="-"?l=17:se===">"?K():l=16}function te(se){se===">"?K():se==="<"&&L()}function re(){l=0,h=o}function L(){l=1,h=new qi({idx:u})}function K(){var se=e.slice(f,h.idx);se&&i(se,f),h.type==="comment"?s(h.idx):h.type==="doctype"?a(h.idx):(h.isOpening&&r(h.name,h.idx),h.isClosing&&n(h.name,h.idx)),re(),f=u+1}function ne(){var se=e.slice(f,u);i(se,f),f=u+1}function ce(){var se=h.idx+(h.isClosing?2:1);return e.slice(se,u).toLowerCase()}function ue(){u--}}var qi=(function(){function e(t){t===void 0&&(t={}),this.idx=t.idx!==void 0?t.idx:-1,this.type=t.type||"tag",this.name=t.name||"",this.isOpening=!!t.isOpening,this.isClosing=!!t.isClosing}return e})(),X0e=(function(){function e(t){t===void 0&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email=typeof t.email=="boolean"?t.email:this.email,this.phone=typeof t.phone=="boolean"?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow=typeof t.newWindow=="boolean"?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash=typeof t.stripTrailingSlash=="boolean"?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=typeof t.decodePercentEncoding=="boolean"?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var r=this.mention;if(r!==!1&&["twitter","instagram","soundcloud","tiktok"].indexOf(r)===-1)throw new Error("invalid `mention` cfg '".concat(r,"' - see docs"));var n=this.hashtag;if(n!==!1&&L0e.indexOf(n)===-1)throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,r){var n=new e(r);return n.link(t)},e.parse=function(t,r){var n=new e(r);return n.parse(t)},e.prototype.normalizeUrlsCfg=function(t){return t==null&&(t=!0),typeof t=="boolean"?{schemeMatches:t,wwwMatches:t,tldMatches:t}:{schemeMatches:typeof t.schemeMatches=="boolean"?t.schemeMatches:!0,wwwMatches:typeof t.wwwMatches=="boolean"?t.wwwMatches:!0,tldMatches:typeof t.tldMatches=="boolean"?t.tldMatches:!0}},e.prototype.normalizeStripPrefixCfg=function(t){return t==null&&(t=!0),typeof t=="boolean"?{scheme:t,www:t}:{scheme:typeof t.scheme=="boolean"?t.scheme:!0,www:typeof t.www=="boolean"?t.www:!0}},e.prototype.normalizeTruncateCfg=function(t){return typeof t=="number"?{length:t,location:"end"}:S0e(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(t){var r=this,n=["a","style","script"],i=0,s=[];return Y0e(t,{onOpenTag:function(a){n.indexOf(a)>=0&&i++},onText:function(a,o){if(i===0){var u=/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi,c=x0e(a,u),l=o;c.forEach(function(f,h){if(h%2===0){var d=r.parseText(f,l);s.push.apply(s,d)}l+=f.length})}},onCloseTag:function(a){n.indexOf(a)>=0&&(i=Math.max(i-1,0))},onComment:function(a){},onDoctype:function(a){}}),s=this.compactMatches(s),s=this.removeUnwantedMatches(s),s},e.prototype.compactMatches=function(t){t.sort(function(u,c){return u.getOffset()-c.getOffset()});for(var r=0;r<t.length-1;){var n=t[r],i=n.getOffset(),s=n.getMatchedText().length,a=i+s;if(r+1<t.length){if(t[r+1].getOffset()===i){var o=t[r+1].getMatchedText().length>s?r:r+1;t.splice(o,1);continue}if(t[r+1].getOffset()<a){t.splice(r+1,1);continue}}r++}return t},e.prototype.removeUnwantedMatches=function(t){return this.hashtag||ma(t,function(r){return r.getType()==="hashtag"}),this.email||ma(t,function(r){return r.getType()==="email"}),this.phone||ma(t,function(r){return r.getType()==="phone"}),this.mention||ma(t,function(r){return r.getType()==="mention"}),this.urls.schemeMatches||ma(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="scheme"}),this.urls.wwwMatches||ma(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="www"}),this.urls.tldMatches||ma(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="tld"}),t},e.prototype.parseText=function(t,r){r===void 0&&(r=0),r=r||0;for(var n=this.getMatchers(),i=[],s=0,a=n.length;s<a;s++){for(var o=n[s].parseMatches(t),u=0,c=o.length;u<c;u++)o[u].setOffset(r+o[u].getOffset());i.push.apply(i,o)}return i},e.prototype.link=function(t){if(!t)return"";this.sanitizeHtml&&(t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var r=this.parse(t),n=[],i=0,s=0,a=r.length;s<a;s++){var o=r[s];n.push(t.substring(i,o.getOffset())),n.push(this.createMatchReturnVal(o)),i=o.getOffset()+o.getMatchedText().length}return n.push(t.substring(i)),n.join("")},e.prototype.createMatchReturnVal=function(t){var r;if(this.replaceFn&&(r=this.replaceFn.call(this.context,t)),typeof r=="string")return r;if(r===!1)return t.getMatchedText();if(r instanceof OA)return r.toAnchorString();var n=t.buildTag();return n.toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var t=this.getTagBuilder(),r=[new BB({tagBuilder:t,serviceName:this.hashtag}),new qB({tagBuilder:t}),new LB({tagBuilder:t}),new UB({tagBuilder:t,serviceName:this.mention}),new $B({tagBuilder:t,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=r},e.prototype.getTagBuilder=function(){var t=this.tagBuilder;return t||(t=this.tagBuilder=new MB({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),t},e.version=E0e,e.AnchorTagBuilder=MB,e.HtmlTag=OA,e.matcher={Email:qB,Hashtag:BB,Matcher:bu,Mention:UB,Phone:LB,Url:$B},e.match={Email:M7,Hashtag:D7,Match:vu,Mention:q7,Phone:$7,Url:F7},e})(),Z0e=/www|@|\:\/\//;function Q0e(e){return/^<a[>\s]/i.test(e)}function ebe(e){return/^<\/a\s*>/i.test(e)}function tbe(){var e=[],t=new X0e({stripPrefix:!1,url:!0,email:!0,replaceFn:function(r){switch(r.getType()){case"url":e.push({text:r.matchedText,url:r.getUrl()});break;case"email":e.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:e,autolinker:t}}function rbe(e){var t,r,n,i,s,a,o,u,c,l,f,h=e.tokens,d=null,g,y;for(r=0,n=h.length;r<n;r++)if(h[r].type==="inline")for(i=h[r].children,f=0,t=i.length-1;t>=0;t--){if(s=i[t],s.type==="link_close"){for(t--;i[t].level!==s.level&&i[t].type!=="link_open";)t--;continue}if(s.type==="htmltag"&&(Q0e(s.content)&&f>0&&f--,ebe(s.content)&&f++),!(f>0)&&s.type==="text"&&Z0e.test(s.content)){if(d||(d=tbe(),g=d.links,y=d.autolinker),a=s.content,g.length=0,y.link(a),!g.length)continue;for(o=[],l=s.level,u=0;u<g.length;u++)e.inline.validateLink(g[u].url)&&(c=a.indexOf(g[u].text),c&&o.push({type:"text",content:a.slice(0,c),level:l}),o.push({type:"link_open",href:g[u].url,title:"",level:l++}),o.push({type:"text",content:g[u].text,level:l}),o.push({type:"link_close",level:--l}),a=a.slice(c+g[u].text.length));a.length&&o.push({type:"text",content:a,level:l}),h[r].children=i=[].concat(i.slice(0,t),o,i.slice(t+1))}}}function nbe(e){e.core.ruler.push("linkify",rbe)}var $w,VB;function ibe(){if(VB)return $w;VB=1;var e=bs(),t=/[\\^$.*+?()[\]{}|]/g,r=RegExp(t.source);function n(i){return i=e(i),i&&r.test(i)?i.replace(t,"\\$&"):i}return $w=n,$w}var sbe=ibe();const abe=Ve.getDefaultExportFromCjs(sbe);var Fw,zB;function obe(){if(zB)return Fw;zB=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return Fw=r,Fw}var Bw,WB;function ube(){if(WB)return Bw;WB=1;var e=obe(),t=D6();function r(n,i){return n!=null&&t(n,i,e)}return Bw=r,Bw}var cbe=ube();const lbe=Ve.getDefaultExportFromCjs(cbe);var fbe=nU();const pbe=Ve.getDefaultExportFromCjs(fbe);/*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */var dbe={7:function(e){var t,r=typeof Reflect=="object"?Reflect:null,n=r&&typeof r.apply=="function"?r.apply:function(_,b,E){return Function.prototype.apply.call(_,b,E)};t=r&&typeof r.ownKeys=="function"?r.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var i=Number.isNaN||function(_){return _!=_};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(_,b){return new Promise((function(E,w){function S(R){_.removeListener(b,A),w(R)}function A(){typeof _.removeListener=="function"&&_.removeListener("error",S),E([].slice.call(arguments))}y(_,b,A,{once:!0}),b!=="error"&&(function(T,O,D){typeof T.on=="function"&&y(T,"error",O,D)})(_,S,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function o(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof v)}function u(v){return v._maxListeners===void 0?s.defaultMaxListeners:v._maxListeners}function c(v,_,b,E){var w,S,A;if(o(b),(S=v._events)===void 0?(S=v._events=Object.create(null),v._eventsCount=0):(S.newListener!==void 0&&(v.emit("newListener",_,b.listener?b.listener:b),S=v._events),A=S[_]),A===void 0)A=S[_]=b,++v._eventsCount;else if(typeof A=="function"?A=S[_]=E?[b,A]:[A,b]:E?A.unshift(b):A.push(b),(w=u(v))>0&&A.length>w&&!A.warned){A.warned=!0;var R=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");R.name="MaxListenersExceededWarning",R.emitter=v,R.type=_,R.count=A.length,(function(O){console&&console.warn&&console.warn(O)})(R)}return v}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(v,_,b){var E={fired:!1,wrapFn:void 0,target:v,type:_,listener:b},w=l.bind(E);return w.listener=b,E.wrapFn=w,w}function h(v,_,b){var E=v._events;if(E===void 0)return[];var w=E[_];return w===void 0?[]:typeof w=="function"?b?[w.listener||w]:[w]:b?(function(A){for(var R=new Array(A.length),T=0;T<R.length;++T)R[T]=A[T].listener||A[T];return R})(w):g(w,w.length)}function d(v){var _=this._events;if(_!==void 0){var b=_[v];if(typeof b=="function")return 1;if(b!==void 0)return b.length}return 0}function g(v,_){for(var b=new Array(_),E=0;E<_;++E)b[E]=v[E];return b}function y(v,_,b,E){if(typeof v.on=="function")E.once?v.once(_,b):v.on(_,b);else{if(typeof v.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof v);v.addEventListener(_,(function w(S){E.once&&v.removeEventListener(_,w),b(S)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(v){if(typeof v!="number"||v<0||i(v))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+v+".");a=v}}),s.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(_){if(typeof _!="number"||_<0||i(_))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+_+".");return this._maxListeners=_,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(_){for(var b=[],E=1;E<arguments.length;E++)b.push(arguments[E]);var w=_==="error",S=this._events;if(S!==void 0)w=w&&S.error===void 0;else if(!w)return!1;if(w){var A;if(b.length>0&&(A=b[0]),A instanceof Error)throw A;var R=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw R.context=A,R}var T=S[_];if(T===void 0)return!1;if(typeof T=="function")n(T,this,b);else{var O=T.length,D=g(T,O);for(E=0;E<O;++E)n(D[E],this,b)}return!0},s.prototype.addListener=function(_,b){return c(this,_,b,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(_,b){return c(this,_,b,!0)},s.prototype.once=function(_,b){return o(b),this.on(_,f(this,_,b)),this},s.prototype.prependOnceListener=function(_,b){return o(b),this.prependListener(_,f(this,_,b)),this},s.prototype.removeListener=function(_,b){var E,w,S,A,R;if(o(b),(w=this._events)===void 0)return this;if((E=w[_])===void 0)return this;if(E===b||E.listener===b)--this._eventsCount==0?this._events=Object.create(null):(delete w[_],w.removeListener&&this.emit("removeListener",_,E.listener||b));else if(typeof E!="function"){for(S=-1,A=E.length-1;A>=0;A--)if(E[A]===b||E[A].listener===b){R=E[A].listener,S=A;break}if(S<0)return this;S===0?E.shift():(function(O,D){for(;D+1<O.length;D++)O[D]=O[D+1];O.pop()})(E,S),E.length===1&&(w[_]=E[0]),w.removeListener!==void 0&&this.emit("removeListener",_,R||b)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(_){var b,E,w;if((E=this._events)===void 0)return this;if(E.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):E[_]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete E[_]),this;if(arguments.length===0){var S,A=Object.keys(E);for(w=0;w<A.length;++w)(S=A[w])!=="removeListener"&&this.removeAllListeners(S);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(b=E[_])=="function")this.removeListener(_,b);else if(b!==void 0)for(w=b.length-1;w>=0;w--)this.removeListener(_,b[w]);return this},s.prototype.listeners=function(_){return h(this,_,!0)},s.prototype.rawListeners=function(_){return h(this,_,!1)},s.listenerCount=function(v,_){return typeof v.listenerCount=="function"?v.listenerCount(_):d.call(v,_)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},48:function(e){var t={};function r(i,s,a){a||(a=Error);var o=(function(u){function c(l,f,h){return u.call(this,(function(g,y,v){return typeof s=="string"?s:s(g,y,v)})(l,f,h))||this}return(function(f,h){f.prototype=Object.create(h.prototype),f.prototype.constructor=f,f.__proto__=h})(c,u),c})(a);o.prototype.name=a.name,o.prototype.code=i,t[i]=o}function n(i,s){if(Array.isArray(i)){var a=i.length;return i=i.map((function(o){return String(o)})),a>2?"one of ".concat(s," ").concat(i.slice(0,a-1).join(", "),", or ")+i[a-1]:a===2?"one of ".concat(s," ").concat(i[0]," or ").concat(i[1]):"of ".concat(s," ").concat(i[0])}return"of ".concat(s," ").concat(String(i))}r("ERR_INVALID_OPT_VALUE",(function(i,s){return'The value "'+s+'" is invalid for option "'+i+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(i,s,a){var o,u;if(typeof s=="string"&&(function(f,h,d){return f.substr(0,h.length)===h})(s,"not ")?(o="must not be",s=s.replace(/^not /,"")):o="must be",(function(f,h,d){return(d===void 0||d>f.length)&&(d=f.length),f.substring(d-h.length,d)===h})(i," argument"))u="The ".concat(i," ").concat(o," ").concat(n(s,"type"));else{var c=(function(f,h,d){return typeof d!="number"&&(d=0),!(d+h.length>f.length)&&f.indexOf(h,d)!==-1})(i,".")?"property":"argument";u='The "'.concat(i,'" ').concat(c," ").concat(o," ").concat(n(s,"type"))}return u+=". Received type ".concat(typeof a)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(i){return"The "+i+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(i){return"Cannot call "+i+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(i){return"Unknown encoding: "+i}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},107:function(e,t,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function u(){this.init(),this._w=o,i.call(this,64,56)}function c(y,v,_){return _^y&(v^_)}function l(y,v,_){return y&v|_&(y|v)}function f(y){return(y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10)}function h(y){return(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7)}function d(y){return(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3}function g(y){return(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(y){for(var v=this._w,_=0|this._a,b=0|this._b,E=0|this._c,w=0|this._d,S=0|this._e,A=0|this._f,R=0|this._g,T=0|this._h,O=0;O<16;++O)v[O]=y.readInt32BE(4*O);for(;O<64;++O)v[O]=g(v[O-2])+v[O-7]+d(v[O-15])+v[O-16]|0;for(var D=0;D<64;++D){var N=T+h(S)+c(S,A,R)+a[D]+v[D]|0,$=f(_)+l(_,b,E)|0;T=R,R=A,A=S,S=w+N|0,w=E,E=b,b=_,_=N+$|0}this._a=_+this._a|0,this._b=b+this._b|0,this._c=E+this._c|0,this._d=w+this._d|0,this._e=S+this._e|0,this._f=A+this._f|0,this._g=R+this._g|0,this._h=T+this._h|0},u.prototype._hash=function(){var y=s.allocUnsafe(32);return y.writeInt32BE(this._a,0),y.writeInt32BE(this._b,4),y.writeInt32BE(this._c,8),y.writeInt32BE(this._d,12),y.writeInt32BE(this._e,16),y.writeInt32BE(this._f,20),y.writeInt32BE(this._g,24),y.writeInt32BE(this._h,28),y},e.exports=u},123:function(e,t,r){var n=r(606),i=r(499),s=r(310).Stream;function a(u,c,l){var f,h=(function(E,w){return new Array(w||0).join(E||"")})(c,l=l||0),d=u;if(typeof u=="object"&&(d=u[f=Object.keys(u)[0]])&&d._elem)return d._elem.name=f,d._elem.icount=l,d._elem.indent=c,d._elem.indents=h,d._elem.interrupt=d,d._elem;var g,y=[],v=[];function _(b){Object.keys(b).forEach((function(E){y.push((function(S,A){return S+'="'+i(A)+'"'})(E,b[E]))}))}switch(typeof d){case"object":if(d===null)break;d._attr&&_(d._attr),d._cdata&&v.push(("<![CDATA["+d._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),d.forEach&&(g=!1,v.push(""),d.forEach((function(b){typeof b=="object"?Object.keys(b)[0]=="_attr"?_(b._attr):v.push(a(b,c,l+1)):(v.pop(),g=!0,v.push(i(b)))})),g||v.push(""));break;default:v.push(i(d))}return{name:f,interrupt:!1,attributes:y,content:v,icount:l,indents:h,indent:c}}function o(u,c,l){if(typeof c!="object")return u(!1,c);var f=c.interrupt?1:c.content.length;function h(){for(;c.content.length;){var g=c.content.shift();if(g!==void 0){if(d(g))return;o(u,g)}}u(!1,(f>1?c.indents:"")+(c.name?"</"+c.name+">":"")+(c.indent&&!l?`
313
+ `:"")),l&&l()}function d(g){return!!g.interrupt&&(g.interrupt.append=u,g.interrupt.end=h,g.interrupt=!1,u(!0),!0)}if(u(!1,c.indents+(c.name?"<"+c.name:"")+(c.attributes.length?" "+c.attributes.join(" "):"")+(f?c.name?">":"":c.name?"/>":"")+(c.indent&&f>1?`
314
+ `:"")),!f)return u(!1,c.indent?`
315
+ `:"");d(c)||h()}e.exports=function(c,l){typeof l!="object"&&(l={indent:l});var f=l.stream?new s:null,h="",d=!1,g=l.indent?l.indent===!0?" ":l.indent:"",y=!0;function v(w){y?n.nextTick(w):w()}function _(w,S){if(S!==void 0&&(h+=S),w&&!d&&(f=f||new s,d=!0),w&&d){var A=h;v((function(){f.emit("data",A)})),h=""}}function b(w,S){o(_,a(w,g,g?1:0),S)}function E(){if(f){var w=h;v((function(){f.emit("data",w),f.emit("end"),f.readable=!1,f.emit("close")}))}}return v((function(){y=!1})),l.declaration&&(function(S){var A={version:"1.0",encoding:S.encoding||"UTF-8"};S.standalone&&(A.standalone=S.standalone),b({"?xml":{_attr:A}}),h=h.replace("/>","?>")})(l.declaration),c&&c.forEach?c.forEach((function(w,S){var A;S+1===c.length&&(A=E),b(w,A)})):b(c,E),f?(f.readable=!0,f):h},e.exports.element=e.exports.Element=function(){var c={_elem:a(Array.prototype.slice.call(arguments)),push:function(l){if(!this.append)throw new Error("not assigned to a parent!");var f=this,h=this._elem.indent;o(this.append,a(l,h,this._elem.icount+(h?1:0)),(function(){f.append(!0)}))},close:function(l){l!==void 0&&this.push(l),this.end&&this.end()}};return c}},141:function(e,t,r){var n=r(861).Buffer,i=n.isEncoding||function(g){switch((g=""+g)&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(g){var y;switch(this.encoding=(function(_){var b=(function(w){if(!w)return"utf8";for(var S;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(S)return;w=(""+w).toLowerCase(),S=!0}})(_);if(typeof b!="string"&&(n.isEncoding===i||!i(_)))throw new Error("Unknown encoding: "+_);return b||_})(g),this.encoding){case"utf16le":this.text=u,this.end=c,y=4;break;case"utf8":this.fillLast=o,y=4;break;case"base64":this.text=l,this.end=f,y=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(y)}function a(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function o(g){var y=this.lastTotal-this.lastNeed,v=(function(b,E,w){if((192&E[0])!=128)return b.lastNeed=0,"�";if(b.lastNeed>1&&E.length>1){if((192&E[1])!=128)return b.lastNeed=1,"�";if(b.lastNeed>2&&E.length>2&&(192&E[2])!=128)return b.lastNeed=2,"�"}})(this,g);return v!==void 0?v:this.lastNeed<=g.length?(g.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,y,0,g.length),void(this.lastNeed-=g.length))}function u(g,y){if((g.length-y)%2==0){var v=g.toString("utf16le",y);if(v){var _=v.charCodeAt(v.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",y,g.length-1)}function c(g){var y=g&&g.length?this.write(g):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,v)}return y}function l(g,y){var v=(g.length-y)%3;return v===0?g.toString("base64",y):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",y,g.length-v))}function f(g){var y=g&&g.length?this.write(g):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function h(g){return g.toString(this.encoding)}function d(g){return g&&g.length?this.write(g):""}t.I=s,s.prototype.write=function(g){if(g.length===0)return"";var y,v;if(this.lastNeed){if((y=this.fillLast(g))===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<g.length?y?y+this.text(g,v):this.text(g,v):y||""},s.prototype.end=function(y){var v=y&&y.length?this.write(y):"";return this.lastNeed?v+"�":v},s.prototype.text=function(y,v){var _=(function(w,S,A){var R=S.length-1;if(R<A)return 0;var T=a(S[R]);return T>=0?(T>0&&(w.lastNeed=T-1),T):--R<A||T===-2?0:(T=a(S[R]),T>=0?(T>0&&(w.lastNeed=T-2),T):--R<A||T===-2?0:(T=a(S[R]),T>=0?(T>0&&(T===2?T=0:w.lastNeed=T-3),T):0))})(this,y,v);if(!this.lastNeed)return y.toString("utf8",v);this.lastTotal=_;var b=y.length-(_-this.lastNeed);return y.copy(this.lastChar,0,b),y.toString("utf8",v,b)},s.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},157:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},209:function(e,t,r){var n=r(606),i=65536,s=4294967295,a=r(861).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?e.exports=function(c,l){if(c>s)throw new RangeError("requested too many random bytes");var f=a.allocUnsafe(c);if(c>0)if(c>i)for(var h=0;h<c;h+=i)o.getRandomValues(f.slice(h,h+i));else o.getRandomValues(f);return typeof l=="function"?n.nextTick((function(){l(null,f)})):f}:e.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
316
+ Use Chrome, Firefox or Internet Explorer 11`)}},238:function(e,t,r){var n=r(48).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function s(a,o,u){if(typeof o=="function")return s(a,null,o);o||(o={}),u=(function(w){var S=!1;return function(){if(!S){S=!0;for(var A=arguments.length,R=new Array(A),T=0;T<A;T++)R[T]=arguments[T];w.apply(this,R)}}})(u||i);var c=o.readable||o.readable!==!1&&a.readable,l=o.writable||o.writable!==!1&&a.writable,f=function(){a.writable||d()},h=a._writableState&&a._writableState.finished,d=function(){l=!1,h=!0,c||u.call(a)},g=a._readableState&&a._readableState.endEmitted,y=function(){c=!1,g=!0,l||u.call(a)},v=function(w){u.call(a,w)},_=function(){var w;return c&&!g?(a._readableState&&a._readableState.ended||(w=new n),u.call(a,w)):l&&!h?(a._writableState&&a._writableState.ended||(w=new n),u.call(a,w)):void 0},b=function(){a.req.on("finish",d)};return(function(w){return w.setHeader&&typeof w.abort=="function"})(a)?(a.on("complete",d),a.on("abort",_),a.req?b():a.on("request",b)):l&&!a._writableState&&(a.on("end",f),a.on("close",f)),a.on("end",y),a.on("finish",d),o.error!==!1&&a.on("error",v),a.on("close",_),function(){a.removeListener("complete",d),a.removeListener("abort",_),a.removeListener("request",b),a.req&&a.req.removeListener("finish",d),a.removeListener("end",f),a.removeListener("close",f),a.removeListener("finish",d),a.removeListener("end",y),a.removeListener("error",v),a.removeListener("close",_)}}},287:function(e,t,r){const n=r(987),i=r(362),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(I){return+I!=I&&(I=0),u.alloc(+I)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function o(U){if(U>a)throw new RangeError('The value "'+U+'" is invalid for option "size"');const I=new Uint8Array(U);return Object.setPrototypeOf(I,u.prototype),I}function u(U,I,k){if(typeof U=="number"){if(typeof I=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(U)}return c(U,I,k)}function c(U,I,k){if(typeof U=="string")return(function(me,Ne){if(typeof Ne=="string"&&Ne!==""||(Ne="utf8"),!u.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);const Xe=0|y(me,Ne);let B=o(Xe);const C=B.write(me,Ne);return C!==Xe&&(B=B.slice(0,C)),B})(U,I);if(ArrayBuffer.isView(U))return(function(me){if(Te(me,Uint8Array)){const Ne=new Uint8Array(me);return d(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return h(me)})(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(Te(U,ArrayBuffer)||U&&Te(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Te(U,SharedArrayBuffer)||U&&Te(U.buffer,SharedArrayBuffer)))return d(U,I,k);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const W=U.valueOf&&U.valueOf();if(W!=null&&W!==U)return u.from(W,I,k);const ie=(function(me){if(u.isBuffer(me)){const Ne=0|g(me.length),Xe=o(Ne);return Xe.length===0||me.copy(Xe,0,0,Ne),Xe}if(me.length!==void 0)return typeof me.length!="number"||Le(me.length)?o(0):h(me);if(me.type==="Buffer"&&Array.isArray(me.data))return h(me.data)})(U);if(ie)return ie;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return u.from(U[Symbol.toPrimitive]("string"),I,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}function l(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function f(U){return l(U),o(U<0?0:0|g(U))}function h(U){const I=U.length<0?0:0|g(U.length),k=o(I);for(let W=0;W<I;W+=1)k[W]=255&U[W];return k}function d(U,I,k){if(I<0||U.byteLength<I)throw new RangeError('"offset" is outside of buffer bounds');if(U.byteLength<I+(k||0))throw new RangeError('"length" is outside of buffer bounds');let W;return W=I===void 0&&k===void 0?new Uint8Array(U):k===void 0?new Uint8Array(U,I):new Uint8Array(U,I,k),Object.setPrototypeOf(W,u.prototype),W}function g(U){if(U>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|U}function y(U,I){if(u.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||Te(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const k=U.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&k===0)return 0;let ie=!1;for(;;)switch(I){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return Ce(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*k;case"hex":return k>>>1;case"base64":return Pe(U).length;default:if(ie)return W?-1:Ce(U).length;I=(""+I).toLowerCase(),ie=!0}}function v(U,I,k){let W=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0)<=(I>>>=0))return"";for(U||(U="utf8");;)switch(U){case"hex":return X(this,I,k);case"utf8":case"utf-8":return D(this,I,k);case"ascii":return $(this,I,k);case"latin1":case"binary":return M(this,I,k);case"base64":return O(this,I,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,I,k);default:if(W)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),W=!0}}function _(U,I,k){const W=U[I];U[I]=U[k],U[k]=W}function b(U,I,k,W,ie){if(U.length===0)return-1;if(typeof k=="string"?(W=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),Le(k=+k)&&(k=ie?0:U.length-1),k<0&&(k=U.length+k),k>=U.length){if(ie)return-1;k=U.length-1}else if(k<0){if(!ie)return-1;k=0}if(typeof I=="string"&&(I=u.from(I,W)),u.isBuffer(I))return I.length===0?-1:E(U,I,k,W,ie);if(typeof I=="number")return I&=255,typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(U,I,k):Uint8Array.prototype.lastIndexOf.call(U,I,k):E(U,[I],k,W,ie);throw new TypeError("val must be string, number or Buffer")}function E(U,I,k,W,ie){let oe,me=1,Ne=U.length,Xe=I.length;if(W!==void 0&&((W=String(W).toLowerCase())==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(U.length<2||I.length<2)return-1;me=2,Ne/=2,Xe/=2,k/=2}function B(C,j){return me===1?C[j]:C.readUInt16BE(j*me)}if(ie){let C=-1;for(oe=k;oe<Ne;oe++)if(B(U,oe)===B(I,C===-1?0:oe-C)){if(C===-1&&(C=oe),oe-C+1===Xe)return C*me}else C!==-1&&(oe-=oe-C),C=-1}else for(k+Xe>Ne&&(k=Ne-Xe),oe=k;oe>=0;oe--){let C=!0;for(let j=0;j<Xe;j++)if(B(U,oe+j)!==B(I,j)){C=!1;break}if(C)return oe}return-1}function w(U,I,k,W){k=Number(k)||0;const ie=U.length-k;W?(W=Number(W))>ie&&(W=ie):W=ie;const oe=I.length;let me;for(W>oe/2&&(W=oe/2),me=0;me<W;++me){const Ne=parseInt(I.substr(2*me,2),16);if(Le(Ne))return me;U[k+me]=Ne}return me}function S(U,I,k,W){return pe(Ce(I,U.length-k),U,k,W)}function A(U,I,k,W){return pe((function(oe){const me=[];for(let Ne=0;Ne<oe.length;++Ne)me.push(255&oe.charCodeAt(Ne));return me})(I),U,k,W)}function R(U,I,k,W){return pe(Pe(I),U,k,W)}function T(U,I,k,W){return pe((function(oe,me){let Ne,Xe,B;const C=[];for(let j=0;j<oe.length&&!((me-=2)<0);++j)Ne=oe.charCodeAt(j),Xe=Ne>>8,B=Ne%256,C.push(B),C.push(Xe);return C})(I,U.length-k),U,k,W)}function O(U,I,k){return I===0&&k===U.length?n.fromByteArray(U):n.fromByteArray(U.slice(I,k))}function D(U,I,k){k=Math.min(U.length,k);const W=[];let ie=I;for(;ie<k;){const oe=U[ie];let me=null,Ne=oe>239?4:oe>223?3:oe>191?2:1;if(ie+Ne<=k){let Xe,B,C,j;switch(Ne){case 1:oe<128&&(me=oe);break;case 2:Xe=U[ie+1],(192&Xe)==128&&(j=(31&oe)<<6|63&Xe,j>127&&(me=j));break;case 3:Xe=U[ie+1],B=U[ie+2],(192&Xe)==128&&(192&B)==128&&(j=(15&oe)<<12|(63&Xe)<<6|63&B,j>2047&&(j<55296||j>57343)&&(me=j));break;case 4:Xe=U[ie+1],B=U[ie+2],C=U[ie+3],(192&Xe)==128&&(192&B)==128&&(192&C)==128&&(j=(15&oe)<<18|(63&Xe)<<12|(63&B)<<6|63&C,j>65535&&j<1114112&&(me=j))}}me===null?(me=65533,Ne=1):me>65535&&(me-=65536,W.push(me>>>10&1023|55296),me=56320|1023&me),W.push(me),ie+=Ne}return(function(me){const Ne=me.length;if(Ne<=N)return String.fromCharCode.apply(String,me);let Xe="",B=0;for(;B<Ne;)Xe+=String.fromCharCode.apply(String,me.slice(B,B+=N));return Xe})(W)}t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=(function(){try{const I=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(I,k),I.foo()===42}catch{return!1}})(),u.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(U,I,k){return c(U,I,k)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(U,I,k){return(function(ie,oe,me){return l(ie),ie<=0?o(ie):oe!==void 0?typeof me=="string"?o(ie).fill(oe,me):o(ie).fill(oe):o(ie)})(U,I,k)},u.allocUnsafe=function(U){return f(U)},u.allocUnsafeSlow=function(U){return f(U)},u.isBuffer=function(I){return I!=null&&I._isBuffer===!0&&I!==u.prototype},u.compare=function(I,k){if(Te(I,Uint8Array)&&(I=u.from(I,I.offset,I.byteLength)),Te(k,Uint8Array)&&(k=u.from(k,k.offset,k.byteLength)),!u.isBuffer(I)||!u.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(I===k)return 0;let W=I.length,ie=k.length;for(let oe=0,me=Math.min(W,ie);oe<me;++oe)if(I[oe]!==k[oe]){W=I[oe],ie=k[oe];break}return W<ie?-1:ie<W?1:0},u.isEncoding=function(I){switch(String(I).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(I,k){if(!Array.isArray(I))throw new TypeError('"list" argument must be an Array of Buffers');if(I.length===0)return u.alloc(0);let W;if(k===void 0)for(k=0,W=0;W<I.length;++W)k+=I[W].length;const ie=u.allocUnsafe(k);let oe=0;for(W=0;W<I.length;++W){let me=I[W];if(Te(me,Uint8Array))oe+me.length>ie.length?(u.isBuffer(me)||(me=u.from(me)),me.copy(ie,oe)):Uint8Array.prototype.set.call(ie,me,oe);else{if(!u.isBuffer(me))throw new TypeError('"list" argument must be an Array of Buffers');me.copy(ie,oe)}oe+=me.length}return ie},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const I=this.length;if(I%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let k=0;k<I;k+=2)_(this,k,k+1);return this},u.prototype.swap32=function(){const I=this.length;if(I%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let k=0;k<I;k+=4)_(this,k,k+3),_(this,k+1,k+2);return this},u.prototype.swap64=function(){const I=this.length;if(I%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let k=0;k<I;k+=8)_(this,k,k+7),_(this,k+1,k+6),_(this,k+2,k+5),_(this,k+3,k+4);return this},u.prototype.toString=function(){const I=this.length;return I===0?"":arguments.length===0?D(this,0,I):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(I){if(!u.isBuffer(I))throw new TypeError("Argument must be a Buffer");return this===I||u.compare(this,I)===0},u.prototype.inspect=function(){let I="";const k=t.INSPECT_MAX_BYTES;return I=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(I+=" ... "),"<Buffer "+I+">"},s&&(u.prototype[s]=u.prototype.inspect),u.prototype.compare=function(I,k,W,ie,oe){if(Te(I,Uint8Array)&&(I=u.from(I,I.offset,I.byteLength)),!u.isBuffer(I))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof I);if(k===void 0&&(k=0),W===void 0&&(W=I?I.length:0),ie===void 0&&(ie=0),oe===void 0&&(oe=this.length),k<0||W>I.length||ie<0||oe>this.length)throw new RangeError("out of range index");if(ie>=oe&&k>=W)return 0;if(ie>=oe)return-1;if(k>=W)return 1;if(this===I)return 0;let me=(oe>>>=0)-(ie>>>=0),Ne=(W>>>=0)-(k>>>=0);const Xe=Math.min(me,Ne),B=this.slice(ie,oe),C=I.slice(k,W);for(let j=0;j<Xe;++j)if(B[j]!==C[j]){me=B[j],Ne=C[j];break}return me<Ne?-1:Ne<me?1:0},u.prototype.includes=function(I,k,W){return this.indexOf(I,k,W)!==-1},u.prototype.indexOf=function(I,k,W){return b(this,I,k,W,!0)},u.prototype.lastIndexOf=function(I,k,W){return b(this,I,k,W,!1)},u.prototype.write=function(I,k,W,ie){if(k===void 0)ie="utf8",W=this.length,k=0;else if(W===void 0&&typeof k=="string")ie=k,W=this.length,k=0;else{if(!isFinite(k))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");k>>>=0,isFinite(W)?(W>>>=0,ie===void 0&&(ie="utf8")):(ie=W,W=void 0)}const oe=this.length-k;if((W===void 0||W>oe)&&(W=oe),I.length>0&&(W<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");ie||(ie="utf8");let me=!1;for(;;)switch(ie){case"hex":return w(this,I,k,W);case"utf8":case"utf-8":return S(this,I,k,W);case"ascii":case"latin1":case"binary":return A(this,I,k,W);case"base64":return R(this,I,k,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,I,k,W);default:if(me)throw new TypeError("Unknown encoding: "+ie);ie=(""+ie).toLowerCase(),me=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const N=4096;function $(U,I,k){let W="";k=Math.min(U.length,k);for(let ie=I;ie<k;++ie)W+=String.fromCharCode(127&U[ie]);return W}function M(U,I,k){let W="";k=Math.min(U.length,k);for(let ie=I;ie<k;++ie)W+=String.fromCharCode(U[ie]);return W}function X(U,I,k){const W=U.length;(!I||I<0)&&(I=0),(!k||k<0||k>W)&&(k=W);let ie="";for(let oe=I;oe<k;++oe)ie+=be[U[oe]];return ie}function ee(U,I,k){const W=U.slice(I,k);let ie="";for(let oe=0;oe<W.length-1;oe+=2)ie+=String.fromCharCode(W[oe]+256*W[oe+1]);return ie}function J(U,I,k){if(U%1!=0||U<0)throw new RangeError("offset is not uint");if(U+I>k)throw new RangeError("Trying to access beyond buffer length")}function Q(U,I,k,W,ie,oe){if(!u.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>ie||I<oe)throw new RangeError('"value" argument is out of bounds');if(k+W>U.length)throw new RangeError("Index out of range")}function te(U,I,k,W,ie){V(I,W,ie,U,k,7);let oe=Number(I&BigInt(4294967295));U[k++]=oe,oe>>=8,U[k++]=oe,oe>>=8,U[k++]=oe,oe>>=8,U[k++]=oe;let me=Number(I>>BigInt(32)&BigInt(4294967295));return U[k++]=me,me>>=8,U[k++]=me,me>>=8,U[k++]=me,me>>=8,U[k++]=me,k}function re(U,I,k,W,ie){V(I,W,ie,U,k,7);let oe=Number(I&BigInt(4294967295));U[k+7]=oe,oe>>=8,U[k+6]=oe,oe>>=8,U[k+5]=oe,oe>>=8,U[k+4]=oe;let me=Number(I>>BigInt(32)&BigInt(4294967295));return U[k+3]=me,me>>=8,U[k+2]=me,me>>=8,U[k+1]=me,me>>=8,U[k]=me,k+8}function L(U,I,k,W,ie,oe){if(k+W>U.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function K(U,I,k,W,ie){return I=+I,k>>>=0,ie||L(U,0,k,4),i.write(U,I,k,W,23,4),k+4}function ne(U,I,k,W,ie){return I=+I,k>>>=0,ie||L(U,0,k,8),i.write(U,I,k,W,52,8),k+8}u.prototype.slice=function(I,k){const W=this.length;(I=~~I)<0?(I+=W)<0&&(I=0):I>W&&(I=W),(k=k===void 0?W:~~k)<0?(k+=W)<0&&(k=0):k>W&&(k=W),k<I&&(k=I);const ie=this.subarray(I,k);return Object.setPrototypeOf(ie,u.prototype),ie},u.prototype.readUintLE=u.prototype.readUIntLE=function(I,k,W){I>>>=0,k>>>=0,W||J(I,k,this.length);let ie=this[I],oe=1,me=0;for(;++me<k&&(oe*=256);)ie+=this[I+me]*oe;return ie},u.prototype.readUintBE=u.prototype.readUIntBE=function(I,k,W){I>>>=0,k>>>=0,W||J(I,k,this.length);let ie=this[I+--k],oe=1;for(;k>0&&(oe*=256);)ie+=this[I+--k]*oe;return ie},u.prototype.readUint8=u.prototype.readUInt8=function(I,k){return I>>>=0,k||J(I,1,this.length),this[I]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(I,k){return I>>>=0,k||J(I,2,this.length),this[I]|this[I+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(I,k){return I>>>=0,k||J(I,2,this.length),this[I]<<8|this[I+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(I,k){return I>>>=0,k||J(I,4,this.length),(this[I]|this[I+1]<<8|this[I+2]<<16)+16777216*this[I+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(I,k){return I>>>=0,k||J(I,4,this.length),16777216*this[I]+(this[I+1]<<16|this[I+2]<<8|this[I+3])},u.prototype.readBigUInt64LE=we((function(I){z(I>>>=0,"offset");const k=this[I],W=this[I+7];k!==void 0&&W!==void 0||de(I,this.length-8);const ie=k+256*this[++I]+65536*this[++I]+this[++I]*2**24,oe=this[++I]+256*this[++I]+65536*this[++I]+W*2**24;return BigInt(ie)+(BigInt(oe)<<BigInt(32))})),u.prototype.readBigUInt64BE=we((function(I){z(I>>>=0,"offset");const k=this[I],W=this[I+7];k!==void 0&&W!==void 0||de(I,this.length-8);const ie=k*2**24+65536*this[++I]+256*this[++I]+this[++I],oe=this[++I]*2**24+65536*this[++I]+256*this[++I]+W;return(BigInt(ie)<<BigInt(32))+BigInt(oe)})),u.prototype.readIntLE=function(I,k,W){I>>>=0,k>>>=0,W||J(I,k,this.length);let ie=this[I],oe=1,me=0;for(;++me<k&&(oe*=256);)ie+=this[I+me]*oe;return oe*=128,ie>=oe&&(ie-=Math.pow(2,8*k)),ie},u.prototype.readIntBE=function(I,k,W){I>>>=0,k>>>=0,W||J(I,k,this.length);let ie=k,oe=1,me=this[I+--ie];for(;ie>0&&(oe*=256);)me+=this[I+--ie]*oe;return oe*=128,me>=oe&&(me-=Math.pow(2,8*k)),me},u.prototype.readInt8=function(I,k){return I>>>=0,k||J(I,1,this.length),128&this[I]?-1*(255-this[I]+1):this[I]},u.prototype.readInt16LE=function(I,k){I>>>=0,k||J(I,2,this.length);const W=this[I]|this[I+1]<<8;return 32768&W?4294901760|W:W},u.prototype.readInt16BE=function(I,k){I>>>=0,k||J(I,2,this.length);const W=this[I+1]|this[I]<<8;return 32768&W?4294901760|W:W},u.prototype.readInt32LE=function(I,k){return I>>>=0,k||J(I,4,this.length),this[I]|this[I+1]<<8|this[I+2]<<16|this[I+3]<<24},u.prototype.readInt32BE=function(I,k){return I>>>=0,k||J(I,4,this.length),this[I]<<24|this[I+1]<<16|this[I+2]<<8|this[I+3]},u.prototype.readBigInt64LE=we((function(I){z(I>>>=0,"offset");const k=this[I],W=this[I+7];k!==void 0&&W!==void 0||de(I,this.length-8);const ie=this[I+4]+256*this[I+5]+65536*this[I+6]+(W<<24);return(BigInt(ie)<<BigInt(32))+BigInt(k+256*this[++I]+65536*this[++I]+this[++I]*2**24)})),u.prototype.readBigInt64BE=we((function(I){z(I>>>=0,"offset");const k=this[I],W=this[I+7];k!==void 0&&W!==void 0||de(I,this.length-8);const ie=(k<<24)+65536*this[++I]+256*this[++I]+this[++I];return(BigInt(ie)<<BigInt(32))+BigInt(this[++I]*2**24+65536*this[++I]+256*this[++I]+W)})),u.prototype.readFloatLE=function(I,k){return I>>>=0,k||J(I,4,this.length),i.read(this,I,!0,23,4)},u.prototype.readFloatBE=function(I,k){return I>>>=0,k||J(I,4,this.length),i.read(this,I,!1,23,4)},u.prototype.readDoubleLE=function(I,k){return I>>>=0,k||J(I,8,this.length),i.read(this,I,!0,52,8)},u.prototype.readDoubleBE=function(I,k){return I>>>=0,k||J(I,8,this.length),i.read(this,I,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(I,k,W,ie){I=+I,k>>>=0,W>>>=0,!ie&&Q(this,I,k,W,Math.pow(2,8*W)-1,0);let oe=1,me=0;for(this[k]=255&I;++me<W&&(oe*=256);)this[k+me]=I/oe&255;return k+W},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(I,k,W,ie){I=+I,k>>>=0,W>>>=0,!ie&&Q(this,I,k,W,Math.pow(2,8*W)-1,0);let oe=W-1,me=1;for(this[k+oe]=255&I;--oe>=0&&(me*=256);)this[k+oe]=I/me&255;return k+W},u.prototype.writeUint8=u.prototype.writeUInt8=function(I,k,W){return I=+I,k>>>=0,W||Q(this,I,k,1,255,0),this[k]=255&I,k+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(I,k,W){return I=+I,k>>>=0,W||Q(this,I,k,2,65535,0),this[k]=255&I,this[k+1]=I>>>8,k+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(I,k,W){return I=+I,k>>>=0,W||Q(this,I,k,2,65535,0),this[k]=I>>>8,this[k+1]=255&I,k+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(I,k,W){return I=+I,k>>>=0,W||Q(this,I,k,4,4294967295,0),this[k+3]=I>>>24,this[k+2]=I>>>16,this[k+1]=I>>>8,this[k]=255&I,k+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(I,k,W){return I=+I,k>>>=0,W||Q(this,I,k,4,4294967295,0),this[k]=I>>>24,this[k+1]=I>>>16,this[k+2]=I>>>8,this[k+3]=255&I,k+4},u.prototype.writeBigUInt64LE=we((function(I,k=0){return te(this,I,k,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=we((function(I,k=0){return re(this,I,k,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(I,k,W,ie){if(I=+I,k>>>=0,!ie){const Xe=Math.pow(2,8*W-1);Q(this,I,k,W,Xe-1,-Xe)}let oe=0,me=1,Ne=0;for(this[k]=255&I;++oe<W&&(me*=256);)I<0&&Ne===0&&this[k+oe-1]!==0&&(Ne=1),this[k+oe]=(I/me|0)-Ne&255;return k+W},u.prototype.writeIntBE=function(I,k,W,ie){if(I=+I,k>>>=0,!ie){const Xe=Math.pow(2,8*W-1);Q(this,I,k,W,Xe-1,-Xe)}let oe=W-1,me=1,Ne=0;for(this[k+oe]=255&I;--oe>=0&&(me*=256);)I<0&&Ne===0&&this[k+oe+1]!==0&&(Ne=1),this[k+oe]=(I/me|0)-Ne&255;return k+W},u.prototype.writeInt8=function(I,k,W){return I=+I,k>>>=0,W||Q(this,I,k,1,127,-128),I<0&&(I=255+I+1),this[k]=255&I,k+1},u.prototype.writeInt16LE=function(I,k,W){return I=+I,k>>>=0,W||Q(this,I,k,2,32767,-32768),this[k]=255&I,this[k+1]=I>>>8,k+2},u.prototype.writeInt16BE=function(I,k,W){return I=+I,k>>>=0,W||Q(this,I,k,2,32767,-32768),this[k]=I>>>8,this[k+1]=255&I,k+2},u.prototype.writeInt32LE=function(I,k,W){return I=+I,k>>>=0,W||Q(this,I,k,4,2147483647,-2147483648),this[k]=255&I,this[k+1]=I>>>8,this[k+2]=I>>>16,this[k+3]=I>>>24,k+4},u.prototype.writeInt32BE=function(I,k,W){return I=+I,k>>>=0,W||Q(this,I,k,4,2147483647,-2147483648),I<0&&(I=4294967295+I+1),this[k]=I>>>24,this[k+1]=I>>>16,this[k+2]=I>>>8,this[k+3]=255&I,k+4},u.prototype.writeBigInt64LE=we((function(I,k=0){return te(this,I,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=we((function(I,k=0){return re(this,I,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(I,k,W){return K(this,I,k,!0,W)},u.prototype.writeFloatBE=function(I,k,W){return K(this,I,k,!1,W)},u.prototype.writeDoubleLE=function(I,k,W){return ne(this,I,k,!0,W)},u.prototype.writeDoubleBE=function(I,k,W){return ne(this,I,k,!1,W)},u.prototype.copy=function(I,k,W,ie){if(!u.isBuffer(I))throw new TypeError("argument should be a Buffer");if(W||(W=0),ie||ie===0||(ie=this.length),k>=I.length&&(k=I.length),k||(k=0),ie>0&&ie<W&&(ie=W),ie===W||I.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("Index out of range");if(ie<0)throw new RangeError("sourceEnd out of bounds");ie>this.length&&(ie=this.length),I.length-k<ie-W&&(ie=I.length-k+W);const oe=ie-W;return this===I&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(k,W,ie):Uint8Array.prototype.set.call(I,this.subarray(W,ie),k),oe},u.prototype.fill=function(I,k,W,ie){if(typeof I=="string"){if(typeof k=="string"?(ie=k,k=0,W=this.length):typeof W=="string"&&(ie=W,W=this.length),ie!==void 0&&typeof ie!="string")throw new TypeError("encoding must be a string");if(typeof ie=="string"&&!u.isEncoding(ie))throw new TypeError("Unknown encoding: "+ie);if(I.length===1){const me=I.charCodeAt(0);(ie==="utf8"&&me<128||ie==="latin1")&&(I=me)}}else typeof I=="number"?I&=255:typeof I=="boolean"&&(I=Number(I));if(k<0||this.length<k||this.length<W)throw new RangeError("Out of range index");if(W<=k)return this;let oe;if(k>>>=0,W=W===void 0?this.length:W>>>0,I||(I=0),typeof I=="number")for(oe=k;oe<W;++oe)this[oe]=I;else{const me=u.isBuffer(I)?I:u.from(I,ie),Ne=me.length;if(Ne===0)throw new TypeError('The value "'+I+'" is invalid for argument "value"');for(oe=0;oe<W-k;++oe)this[oe+k]=me[oe%Ne]}return this};const ce={};function ue(U,I,k){ce[U]=class extends k{constructor(){super(),Object.defineProperty(this,"message",{value:I.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${U}]`,this.stack,delete this.name}get code(){return U}set code(ie){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ie,writable:!0})}toString(){return`${this.name} [${U}]: ${this.message}`}}}function se(U){let I="",k=U.length;const W=U[0]==="-"?1:0;for(;k>=W+4;k-=3)I=`_${U.slice(k-3,k)}${I}`;return`${U.slice(0,k)}${I}`}function V(U,I,k,W,ie,oe){if(U>k||U<I){const me=typeof I=="bigint"?"n":"";let Ne;throw Ne=I===0||I===BigInt(0)?`>= 0${me} and < 2${me} ** ${8*(oe+1)}${me}`:`>= -(2${me} ** ${8*(oe+1)-1}${me}) and < 2 ** ${8*(oe+1)-1}${me}`,new ce.ERR_OUT_OF_RANGE("value",Ne,U)}(function(Ne,Xe,B){z(Xe,"offset"),Ne[Xe]!==void 0&&Ne[Xe+B]!==void 0||de(Xe,Ne.length-(B+1))})(W,ie,oe)}function z(U,I){if(typeof U!="number")throw new ce.ERR_INVALID_ARG_TYPE(I,"number",U)}function de(U,I,k){throw Math.floor(U)!==U?(z(U,k),new ce.ERR_OUT_OF_RANGE("offset","an integer",U)):I<0?new ce.ERR_BUFFER_OUT_OF_BOUNDS:new ce.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${I}`,U)}ue("ERR_BUFFER_OUT_OF_BOUNDS",(function(U){return U?`${U} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),ue("ERR_INVALID_ARG_TYPE",(function(U,I){return`The "${U}" argument must be of type number. Received type ${typeof I}`}),TypeError),ue("ERR_OUT_OF_RANGE",(function(U,I,k){let W=`The value of "${U}" is out of range.`,ie=k;return Number.isInteger(k)&&Math.abs(k)>2**32?ie=se(String(k)):typeof k=="bigint"&&(ie=String(k),(k>BigInt(2)**BigInt(32)||k<-(BigInt(2)**BigInt(32)))&&(ie=se(ie)),ie+="n"),W+=` It must be ${I}. Received ${ie}`,W}),RangeError);const ge=/[^+/0-9A-Za-z-_]/g;function Ce(U,I){let k;I=I||1/0;const W=U.length;let ie=null;const oe=[];for(let me=0;me<W;++me){if(k=U.charCodeAt(me),k>55295&&k<57344){if(!ie){if(k>56319){(I-=3)>-1&&oe.push(239,191,189);continue}if(me+1===W){(I-=3)>-1&&oe.push(239,191,189);continue}ie=k;continue}if(k<56320){(I-=3)>-1&&oe.push(239,191,189),ie=k;continue}k=65536+(ie-55296<<10|k-56320)}else ie&&(I-=3)>-1&&oe.push(239,191,189);if(ie=null,k<128){if((I-=1)<0)break;oe.push(k)}else if(k<2048){if((I-=2)<0)break;oe.push(k>>6|192,63&k|128)}else if(k<65536){if((I-=3)<0)break;oe.push(k>>12|224,k>>6&63|128,63&k|128)}else{if(!(k<1114112))throw new Error("Invalid code point");if((I-=4)<0)break;oe.push(k>>18|240,k>>12&63|128,k>>6&63|128,63&k|128)}}return oe}function Pe(U){return n.toByteArray((function(k){if((k=(k=k.split("=")[0]).trim().replace(ge,"")).length<2)return"";for(;k.length%4!=0;)k+="=";return k})(U))}function pe(U,I,k,W){let ie;for(ie=0;ie<W&&!(ie+k>=I.length||ie>=U.length);++ie)I[ie+k]=U[ie];return ie}function Te(U,I){return U instanceof I||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===I.name}function Le(U){return U!=U}const be=(function(){const U="0123456789abcdef",I=new Array(256);for(let k=0;k<16;++k){const W=16*k;for(let ie=0;ie<16;++ie)I[W+ie]=U[k]+U[ie]}return I})();function we(U){return typeof BigInt>"u"?xe:U}function xe(){throw new Error("BigInt not supported")}},291:function(e,t,r){var n=r(48).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(s,a,o,u){var c=(function(f,h,d){return f.highWaterMark!=null?f.highWaterMark:h?f[d]:null})(a,u,o);if(c!=null){if(!isFinite(c)||Math.floor(c)!==c||c<0)throw new n(u?o:"highWaterMark",c);return Math.floor(c)}return s.objectMode?16:16384}}},310:function(e,t,r){e.exports=i;var n=r(7).EventEmitter;function i(){n.call(this)}r(698)(i,n),i.Readable=r(412),i.Writable=r(708),i.Duplex=r(382),i.Transform=r(610),i.PassThrough=r(600),i.finished=r(238),i.pipeline=r(758),i.Stream=i,i.prototype.pipe=function(s,a){var o=this;function u(y){s.writable&&s.write(y)===!1&&o.pause&&o.pause()}function c(){o.readable&&o.resume&&o.resume()}o.on("data",u),s.on("drain",c),s._isStdio||a&&a.end===!1||(o.on("end",f),o.on("close",h));var l=!1;function f(){l||(l=!0,s.end())}function h(){l||(l=!0,typeof s.destroy=="function"&&s.destroy())}function d(y){if(g(),n.listenerCount(this,"error")===0)throw y}function g(){o.removeListener("data",u),s.removeListener("drain",c),o.removeListener("end",f),o.removeListener("close",h),o.removeListener("error",d),s.removeListener("error",d),o.removeListener("end",g),o.removeListener("close",g),s.removeListener("close",g)}return o.on("error",d),s.on("error",d),o.on("end",g),o.on("close",g),s.on("close",g),s.emit("pipe",o),s}},340:function(){},345:function(e,t,r){e.exports=r(7).EventEmitter},362:function(e){e.exports=NJ},382:function(e,t,r){var n=r(606),i=Object.keys||function(d){var g=[];for(var y in d)g.push(y);return g};e.exports=l;var s=r(412),a=r(708);r(698)(l,s);for(var o=i(a.prototype),u=0;u<o.length;u++){var c=o[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(d){if(!(this instanceof l))return new l(d);s.call(this,d),a.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(h,this)}function h(d){d.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}})},392:function(e,t,r){var n=r(861).Buffer,i=r(496);function s(a,o){this._block=n.alloc(a),this._finalSize=o,this._blockSize=a,this._len=0}s.prototype.update=function(a,o){a=i(a,o||"utf8");for(var u=this._block,c=this._blockSize,l=a.length,f=this._len,h=0;h<l;){for(var d=f%c,g=Math.min(l-h,c-d),y=0;y<g;y++)u[d+y]=a[h+y];h+=g,(f+=g)%c==0&&this._update(u)}return this._len+=l,this},s.prototype.digest=function(a){var o=this._len%this._blockSize;this._block[o]=128,this._block.fill(0,o+1),o>=this._finalSize&&(this._update(this._block),this._block.fill(0));var u=8*this._len;if(u<=4294967295)this._block.writeUInt32BE(u,this._blockSize-4);else{var c=(4294967295&u)>>>0,l=(u-c)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(c,this._blockSize-4)}this._update(this._block);var f=this._hash();return a?f.toString(a):f},s.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=s},412:function(e,t,r){var n,i=r(606);e.exports=O,O.ReadableState=T,r(7).EventEmitter;var s=function(z,de){return z.listeners(de).length},a=r(345),o=r(287).Buffer,u=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},c,l=r(838);c=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h,d,g=r(726),y=r(896),v=r(291).getHighWaterMark,_=r(48).F,b=_.ERR_INVALID_ARG_TYPE,E=_.ERR_STREAM_PUSH_AFTER_EOF,w=_.ERR_METHOD_NOT_IMPLEMENTED,S=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(698)(O,a);var A=y.errorOrDestroy,R=["error","close","destroy","pause","resume"];function T(V,z,de){n=n||r(382),V=V||{},typeof de!="boolean"&&(de=z instanceof n),this.objectMode=!!V.objectMode,de&&(this.objectMode=this.objectMode||!!V.readableObjectMode),this.highWaterMark=v(this,V,"readableHighWaterMark",de),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.destroyed=!1,this.defaultEncoding=V.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,V.encoding&&(f||(f=r(141).I),this.decoder=new f(V.encoding),this.encoding=V.encoding)}function O(V){if(n=n||r(382),!(this instanceof O))return new O(V);var z=this instanceof n;this._readableState=new T(V,this,z),this.readable=!0,V&&(typeof V.read=="function"&&(this._read=V.read),typeof V.destroy=="function"&&(this._destroy=V.destroy)),a.call(this)}function D(V,z,de,ge,Ce){c("readableAddChunk",z);var Pe,pe=V._readableState;if(z===null)pe.reading=!1,(function(Le,be){if(c("onEofChunk"),!be.ended){if(be.decoder){var we=be.decoder.end();we&&we.length&&(be.buffer.push(we),be.length+=be.objectMode?1:we.length)}be.ended=!0,be.sync?X(Le):(be.needReadable=!1,be.emittedReadable||(be.emittedReadable=!0,ee(Le)))}})(V,pe);else if(Ce||(Pe=(function(Le,be){var we;return(function(U){return o.isBuffer(U)||U instanceof u})(be)||typeof be=="string"||be===void 0||Le.objectMode||(we=new b("chunk",["string","Buffer","Uint8Array"],be)),we})(pe,z)),Pe)A(V,Pe);else if(pe.objectMode||z&&z.length>0)if(typeof z=="string"||pe.objectMode||Object.getPrototypeOf(z)===o.prototype||(z=(function(Le){return o.from(Le)})(z)),ge)pe.endEmitted?A(V,new S):N(V,pe,z,!0);else if(pe.ended)A(V,new E);else{if(pe.destroyed)return!1;pe.reading=!1,pe.decoder&&!de?(z=pe.decoder.write(z),pe.objectMode||z.length!==0?N(V,pe,z,!1):J(V,pe)):N(V,pe,z,!1)}else ge||(pe.reading=!1,J(V,pe));return!pe.ended&&(pe.length<pe.highWaterMark||pe.length===0)}function N(V,z,de,ge){z.flowing&&z.length===0&&!z.sync?(z.awaitDrain=0,V.emit("data",de)):(z.length+=z.objectMode?1:de.length,ge?z.buffer.unshift(de):z.buffer.push(de),z.needReadable&&X(V)),J(V,z)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(z){this._readableState&&(this._readableState.destroyed=z)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(V,z){z(V)},O.prototype.push=function(V,z){var de,ge=this._readableState;return ge.objectMode?de=!0:typeof V=="string"&&((z=z||ge.defaultEncoding)!==ge.encoding&&(V=o.from(V,z),z=""),de=!0),D(this,V,z,!1,de)},O.prototype.unshift=function(V){return D(this,V,null,!0,!1)},O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(V){f||(f=r(141).I);var z=new f(V);this._readableState.decoder=z,this._readableState.encoding=this._readableState.decoder.encoding;for(var de=this._readableState.buffer.head,ge="";de!==null;)ge+=z.write(de.data),de=de.next;return this._readableState.buffer.clear(),ge!==""&&this._readableState.buffer.push(ge),this._readableState.length=ge.length,this};var $=1073741824;function M(V,z){return V<=0||z.length===0&&z.ended?0:z.objectMode?1:V!=V?z.flowing&&z.length?z.buffer.head.data.length:z.length:(V>z.highWaterMark&&(z.highWaterMark=(function(ge){return ge>=$?ge=$:(ge--,ge|=ge>>>1,ge|=ge>>>2,ge|=ge>>>4,ge|=ge>>>8,ge|=ge>>>16,ge++),ge})(V)),V<=z.length?V:z.ended?z.length:(z.needReadable=!0,0))}function X(V){var z=V._readableState;c("emitReadable",z.needReadable,z.emittedReadable),z.needReadable=!1,z.emittedReadable||(c("emitReadable",z.flowing),z.emittedReadable=!0,i.nextTick(ee,V))}function ee(V){var z=V._readableState;c("emitReadable_",z.destroyed,z.length,z.ended),z.destroyed||!z.length&&!z.ended||(V.emit("readable"),z.emittedReadable=!1),z.needReadable=!z.flowing&&!z.ended&&z.length<=z.highWaterMark,K(V)}function J(V,z){z.readingMore||(z.readingMore=!0,i.nextTick(Q,V,z))}function Q(V,z){for(;!z.reading&&!z.ended&&(z.length<z.highWaterMark||z.flowing&&z.length===0);){var de=z.length;if(c("maybeReadMore read 0"),V.read(0),de===z.length)break}z.readingMore=!1}function te(V){var z=V._readableState;z.readableListening=V.listenerCount("readable")>0,z.resumeScheduled&&!z.paused?z.flowing=!0:V.listenerCount("data")>0&&V.resume()}function re(V){c("readable nexttick read 0"),V.read(0)}function L(V,z){c("resume",z.reading),z.reading||V.read(0),z.resumeScheduled=!1,V.emit("resume"),K(V),z.flowing&&!z.reading&&V.read(0)}function K(V){var z=V._readableState;for(c("flow",z.flowing);z.flowing&&V.read()!==null;);}function ne(V,z){return z.length===0?null:(z.objectMode?de=z.buffer.shift():!V||V>=z.length?(de=z.decoder?z.buffer.join(""):z.buffer.length===1?z.buffer.first():z.buffer.concat(z.length),z.buffer.clear()):de=z.buffer.consume(V,z.decoder),de);var de}function ce(V){var z=V._readableState;c("endReadable",z.endEmitted),z.endEmitted||(z.ended=!0,i.nextTick(ue,z,V))}function ue(V,z){if(c("endReadableNT",V.endEmitted,V.length),!V.endEmitted&&V.length===0&&(V.endEmitted=!0,z.readable=!1,z.emit("end"),V.autoDestroy)){var de=z._writableState;(!de||de.autoDestroy&&de.finished)&&z.destroy()}}function se(V,z){for(var de=0,ge=V.length;de<ge;de++)if(V[de]===z)return de;return-1}O.prototype.read=function(V){c("read",V),V=parseInt(V,10);var z=this._readableState,de=V;if(V!==0&&(z.emittedReadable=!1),V===0&&z.needReadable&&((z.highWaterMark!==0?z.length>=z.highWaterMark:z.length>0)||z.ended))return c("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?ce(this):X(this),null;if((V=M(V,z))===0&&z.ended)return z.length===0&&ce(this),null;var ge,Ce=z.needReadable;return c("need readable",Ce),(z.length===0||z.length-V<z.highWaterMark)&&c("length less than watermark",Ce=!0),z.ended||z.reading?c("reading or ended",Ce=!1):Ce&&(c("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(V=M(de,z))),(ge=V>0?ne(V,z):null)===null?(z.needReadable=z.length<=z.highWaterMark,V=0):(z.length-=V,z.awaitDrain=0),z.length===0&&(z.ended||(z.needReadable=!0),de!==V&&z.ended&&ce(this)),ge!==null&&this.emit("data",ge),ge},O.prototype._read=function(V){A(this,new w("_read()"))},O.prototype.pipe=function(V,z){var de=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=V;break;case 1:ge.pipes=[ge.pipes,V];break;default:ge.pipes.push(V)}ge.pipesCount+=1,c("pipe count=%d opts=%j",ge.pipesCount,z);var Ce=(!z||z.end!==!1)&&V!==i.stdout&&V!==i.stderr?pe:I;function Pe(k,W){c("onunpipe"),k===de&&W&&W.hasUnpiped===!1&&(W.hasUnpiped=!0,(function(){c("cleanup"),V.removeListener("close",xe),V.removeListener("finish",U),V.removeListener("drain",Te),V.removeListener("error",we),V.removeListener("unpipe",Pe),de.removeListener("end",pe),de.removeListener("end",I),de.removeListener("data",be),Le=!0,!ge.awaitDrain||V._writableState&&!V._writableState.needDrain||Te()})())}function pe(){c("onend"),V.end()}ge.endEmitted?i.nextTick(Ce):de.once("end",Ce),V.on("unpipe",Pe);var Te=(function(W){return function(){var oe=W._readableState;c("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&s(W,"data")&&(oe.flowing=!0,K(W))}})(de);V.on("drain",Te);var Le=!1;function be(k){c("ondata");var W=V.write(k);c("dest.write",W),W===!1&&((ge.pipesCount===1&&ge.pipes===V||ge.pipesCount>1&&se(ge.pipes,V)!==-1)&&!Le&&(c("false write response, pause",ge.awaitDrain),ge.awaitDrain++),de.pause())}function we(k){c("onerror",k),I(),V.removeListener("error",we),s(V,"error")===0&&A(V,k)}function xe(){V.removeListener("finish",U),I()}function U(){c("onfinish"),V.removeListener("close",xe),I()}function I(){c("unpipe"),de.unpipe(V)}return de.on("data",be),(function(W,ie,oe){if(typeof W.prependListener=="function")return W.prependListener(ie,oe);W._events&&W._events[ie]?Array.isArray(W._events[ie])?W._events[ie].unshift(oe):W._events[ie]=[oe,W._events[ie]]:W.on(ie,oe)})(V,"error",we),V.once("close",xe),V.once("finish",U),V.emit("pipe",de),ge.flowing||(c("pipe resume"),de.resume()),V},O.prototype.unpipe=function(V){var z=this._readableState,de={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return V&&V!==z.pipes||(V||(V=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,V&&V.emit("unpipe",this,de)),this;if(!V){var ge=z.pipes,Ce=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var Pe=0;Pe<Ce;Pe++)ge[Pe].emit("unpipe",this,{hasUnpiped:!1});return this}var pe=se(z.pipes,V);return pe===-1||(z.pipes.splice(pe,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),V.emit("unpipe",this,de)),this},O.prototype.on=function(V,z){var de=a.prototype.on.call(this,V,z),ge=this._readableState;return V==="data"?(ge.readableListening=this.listenerCount("readable")>0,ge.flowing!==!1&&this.resume()):V==="readable"&&(ge.endEmitted||ge.readableListening||(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,c("on readable",ge.length,ge.reading),ge.length?X(this):ge.reading||i.nextTick(re,this))),de},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(V,z){var de=a.prototype.removeListener.call(this,V,z);return V==="readable"&&i.nextTick(te,this),de},O.prototype.removeAllListeners=function(V){var z=a.prototype.removeAllListeners.apply(this,arguments);return V!=="readable"&&V!==void 0||i.nextTick(te,this),z},O.prototype.resume=function(){var V=this._readableState;return V.flowing||(c("resume"),V.flowing=!V.readableListening,(function(de,ge){ge.resumeScheduled||(ge.resumeScheduled=!0,i.nextTick(L,de,ge))})(this,V)),V.paused=!1,this},O.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(V){var z=this,de=this._readableState,ge=!1;for(var Ce in V.on("end",(function(){if(c("wrapped end"),de.decoder&&!de.ended){var pe=de.decoder.end();pe&&pe.length&&z.push(pe)}z.push(null)})),V.on("data",(function(pe){c("wrapped data"),de.decoder&&(pe=de.decoder.write(pe)),de.objectMode&&pe==null||(de.objectMode||pe&&pe.length)&&(z.push(pe)||(ge=!0,V.pause()))})),V)this[Ce]===void 0&&typeof V[Ce]=="function"&&(this[Ce]=(function(Te){return function(){return V[Te].apply(V,arguments)}})(Ce));for(var Pe=0;Pe<R.length;Pe++)V.on(R[Pe],this.emit.bind(this,R[Pe]));return this._read=function(pe){c("wrapped _read",pe),ge&&(ge=!1,V.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return h===void 0&&(h=r(955)),h(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(z){this._readableState&&(this._readableState.flowing=z)}}),O._fromList=ne,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(O.from=function(V,z){return d===void 0&&(d=r(157)),d(O,V,z)})},496:function(e){e.exports=vK},499:function(e){var t={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};e.exports=function(n){return n&&n.replace?n.replace(/([&"<>'])/g,(function(i,s){return t[s]})):n}},600:function(e,t,r){e.exports=i;var n=r(610);function i(s){if(!(this instanceof i))return new i(s);n.call(this,s)}r(698)(i,n),i.prototype._transform=function(s,a,o){o(null,s)}},606:function(e){var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(y){if(t===setTimeout)return setTimeout(y,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(y,0);try{return t(y,0)}catch{try{return t.call(null,y,0)}catch{return t.call(this,y,0)}}}(function(){try{t=typeof setTimeout=="function"?setTimeout:i}catch{t=i}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var o,u=[],c=!1,l=-1;function f(){c&&o&&(c=!1,o.length?u=o.concat(u):l=-1,u.length&&h())}function h(){if(!c){var y=a(f);c=!0;for(var v=u.length;v;){for(o=u,u=[];++l<v;)o&&o[l].run();l=-1,v=u.length}o=null,c=!1,(function(b){if(r===clearTimeout)return clearTimeout(b);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{return r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}})(y)}}function d(y,v){this.fun=y,this.array=v}function g(){}n.nextTick=function(y){var v=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)v[_-1]=arguments[_];u.push(new d(y,v)),u.length!==1||c||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(y){return[]},n.binding=function(y){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(y){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},610:function(e,t,r){e.exports=l;var n=r(48).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(382);function c(d,g){var y=this._transformState;y.transforming=!1;var v=y.writecb;if(v===null)return this.emit("error",new s);y.writechunk=null,y.writecb=null,g!=null&&this.push(g),v(d);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}function l(d){if(!(this instanceof l))return new l(d);u.call(this,d),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",f)}function f(){var d=this;typeof this._flush!="function"||this._readableState.destroyed?h(this,null,null):this._flush((function(g,y){h(d,g,y)}))}function h(d,g,y){if(g)return d.emit("error",g);if(y!=null&&d.push(y),d._writableState.length)throw new o;if(d._transformState.transforming)throw new a;return d.push(null)}r(698)(l,u),l.prototype.push=function(d,g){return this._transformState.needTransform=!1,u.prototype.push.call(this,d,g)},l.prototype._transform=function(d,g,y){y(new i("_transform()"))},l.prototype._write=function(d,g,y){var v=this._transformState;if(v.writecb=y,v.writechunk=d,v.writeencoding=g,!v.transforming){var _=this._readableState;(v.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}},l.prototype._read=function(d){var g=this._transformState;g.writechunk===null||g.transforming?g.needTransform=!0:(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform))},l.prototype._destroy=function(d,g){u.prototype._destroy.call(this,d,(function(y){g(y)}))}},643:function(e,t,r){function n(i){try{if(!r.g.localStorage)return!1}catch{return!1}var s=r.g.localStorage[i];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(s,a){if(n("noDeprecation"))return s;var o=!1;return function(){if(!o){if(n("throwDeprecation"))throw new Error(a);n("traceDeprecation")?console.trace(a):console.warn(a),o=!0}return s.apply(this,arguments)}}},698:function(e){typeof Object.create=="function"?e.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(r,n){if(n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}},708:function(e,t,r){var n,i=r(606);function s(J){var Q=this;this.next=null,this.entry=null,this.finish=function(){(function(re,L,K){var ne=re.entry;for(re.entry=null;ne;){var ce=ne.callback;L.pendingcb--,ce(K),ne=ne.next}L.corkedRequestsFree.next=re})(Q,J)}}e.exports=O,O.WritableState=T;var a={deprecate:r(643)},o=r(345),u=r(287).Buffer,c=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},l,f=r(896),h=r(291).getHighWaterMark,d=r(48).F,g=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,_=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,E=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,S=d.ERR_UNKNOWN_ENCODING,A=f.errorOrDestroy;function R(){}function T(J,Q,te){n=n||r(382),J=J||{},typeof te!="boolean"&&(te=Q instanceof n),this.objectMode=!!J.objectMode,te&&(this.objectMode=this.objectMode||!!J.writableObjectMode),this.highWaterMark=h(this,J,"writableHighWaterMark",te),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var re=J.decodeStrings===!1;this.decodeStrings=!re,this.defaultEncoding=J.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(L){(function(ne,ce){var ue=ne._writableState,se=ue.sync,V=ue.writecb;if(typeof V!="function")throw new v;if((function(ge){ge.writing=!1,ge.writecb=null,ge.length-=ge.writelen,ge.writelen=0})(ue),ce)(function(ge,Ce,Pe,pe,Te){--Ce.pendingcb,Pe?(i.nextTick(Te,pe),i.nextTick(ee,ge,Ce),ge._writableState.errorEmitted=!0,A(ge,pe)):(Te(pe),ge._writableState.errorEmitted=!0,A(ge,pe),ee(ge,Ce))})(ne,ue,se,ce,V);else{var z=M(ue)||ne.destroyed;z||ue.corked||ue.bufferProcessing||!ue.bufferedRequest||$(ne,ue),se?i.nextTick(N,ne,ue,z,V):N(ne,ue,z,V)}})(Q,L)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=J.emitClose!==!1,this.autoDestroy=!!J.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function O(J){var Q=this instanceof(n=n||r(382));if(!Q&&!l.call(O,this))return new O(J);this._writableState=new T(J,this,Q),this.writable=!0,J&&(typeof J.write=="function"&&(this._write=J.write),typeof J.writev=="function"&&(this._writev=J.writev),typeof J.destroy=="function"&&(this._destroy=J.destroy),typeof J.final=="function"&&(this._final=J.final)),o.call(this)}function D(J,Q,te,re,L,K,ne){Q.writelen=re,Q.writecb=ne,Q.writing=!0,Q.sync=!0,Q.destroyed?Q.onwrite(new b("write")):te?J._writev(L,Q.onwrite):J._write(L,K,Q.onwrite),Q.sync=!1}function N(J,Q,te,re){te||(function(K,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,K.emit("drain"))})(J,Q),Q.pendingcb--,re(),ee(J,Q)}function $(J,Q){Q.bufferProcessing=!0;var te=Q.bufferedRequest;if(J._writev&&te&&te.next){var re=Q.bufferedRequestCount,L=new Array(re),K=Q.corkedRequestsFree;K.entry=te;for(var ne=0,ce=!0;te;)L[ne]=te,te.isBuf||(ce=!1),te=te.next,ne+=1;L.allBuffers=ce,D(J,Q,!0,Q.length,L,"",K.finish),Q.pendingcb++,Q.lastBufferedRequest=null,K.next?(Q.corkedRequestsFree=K.next,K.next=null):Q.corkedRequestsFree=new s(Q),Q.bufferedRequestCount=0}else{for(;te;){var ue=te.chunk,se=te.encoding,V=te.callback;if(D(J,Q,!1,Q.objectMode?1:ue.length,ue,se,V),te=te.next,Q.bufferedRequestCount--,Q.writing)break}te===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=te,Q.bufferProcessing=!1}function M(J){return J.ending&&J.length===0&&J.bufferedRequest===null&&!J.finished&&!J.writing}function X(J,Q){J._final((function(te){Q.pendingcb--,te&&A(J,te),Q.prefinished=!0,J.emit("prefinish"),ee(J,Q)}))}function ee(J,Q){var te=M(Q);if(te&&((function(K,ne){ne.prefinished||ne.finalCalled||(typeof K._final!="function"||ne.destroyed?(ne.prefinished=!0,K.emit("prefinish")):(ne.pendingcb++,ne.finalCalled=!0,i.nextTick(X,K,ne)))})(J,Q),Q.pendingcb===0&&(Q.finished=!0,J.emit("finish"),Q.autoDestroy))){var re=J._readableState;(!re||re.autoDestroy&&re.endEmitted)&&J.destroy()}return te}r(698)(O,o),T.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,te=[];Q;)te.push(Q),Q=Q.next;return te},(function(){try{Object.defineProperty(T.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(Q){return!!l.call(this,Q)||this===O&&Q&&Q._writableState instanceof T}})):l=function(Q){return Q instanceof this},O.prototype.pipe=function(){A(this,new _)},O.prototype.write=function(J,Q,te){var re=this._writableState,L=!1,K=!re.objectMode&&(function(ce){return u.isBuffer(ce)||ce instanceof c})(J);return K&&!u.isBuffer(J)&&(J=(function(ce){return u.from(ce)})(J)),typeof Q=="function"&&(te=Q,Q=null),K?Q="buffer":Q||(Q=re.defaultEncoding),typeof te!="function"&&(te=R),re.ending?(function(ce,ue){var se=new w;A(ce,se),i.nextTick(ue,se)})(this,te):(K||(function(ce,ue,se,V){var z;return se===null?z=new E:typeof se=="string"||ue.objectMode||(z=new g("chunk",["string","Buffer"],se)),!z||(A(ce,z),i.nextTick(V,z),!1)})(this,re,J,te))&&(re.pendingcb++,L=(function(ce,ue,se,V,z,de){if(!se){var ge=(function(Le,be,we){return Le.objectMode||Le.decodeStrings===!1||typeof be!="string"||(be=u.from(be,we)),be})(ue,V,z);V!==ge&&(se=!0,z="buffer",V=ge)}var Ce=ue.objectMode?1:V.length;ue.length+=Ce;var Pe=ue.length<ue.highWaterMark;if(Pe||(ue.needDrain=!0),ue.writing||ue.corked){var pe=ue.lastBufferedRequest;ue.lastBufferedRequest={chunk:V,encoding:z,isBuf:se,callback:de,next:null},pe?pe.next=ue.lastBufferedRequest:ue.bufferedRequest=ue.lastBufferedRequest,ue.bufferedRequestCount+=1}else D(ce,ue,!1,Ce,V,z,de);return Pe})(this,re,K,J,Q,te)),L},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var J=this._writableState;J.corked&&(J.corked--,J.writing||J.corked||J.bufferProcessing||!J.bufferedRequest||$(this,J))},O.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new S(Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(J,Q,te){te(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(J,Q,te){var re=this._writableState;return typeof J=="function"?(te=J,J=null,Q=null):typeof Q=="function"&&(te=Q,Q=null),J!=null&&this.write(J,Q),re.corked&&(re.corked=1,this.uncork()),re.ending||(function(K,ne,ce){ne.ending=!0,ee(K,ne),ce&&(ne.finished?i.nextTick(ce):K.once("finish",ce)),ne.ended=!0,K.writable=!1})(this,re,te),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Q){this._writableState&&(this._writableState.destroyed=Q)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(J,Q){Q(J)}},710:function(e,t,r){var n=r(698),i=r(107),s=r(392),a=r(861).Buffer,o=new Array(64);function u(){this.init(),this._w=o,s.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var c=a.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},e.exports=u},726:function(e,t,r){function n(h,d){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);d&&(y=y.filter((function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable}))),g.push.apply(g,y)}return g}function i(h){for(var d=1;d<arguments.length;d++){var g=arguments[d]!=null?arguments[d]:{};d%2?n(Object(g),!0).forEach((function(y){s(h,y,g[y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):n(Object(g)).forEach((function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(g,y))}))}return h}function s(h,d,g){return(d=o(d))in h?Object.defineProperty(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[d]=g,h}function a(h,d){for(var g=0;g<d.length;g++){var y=d[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,o(y.key),y)}}function o(h){var d=(function(y,v){if(typeof y!="object"||y===null)return y;var _=y[Symbol.toPrimitive];if(_!==void 0){var b=_.call(y,v);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)})(h,"string");return typeof d=="symbol"?d:String(d)}var u=r(287).Buffer,c=r(340).inspect,l=c&&c.custom||"inspect";function f(h,d,g){u.prototype.copy.call(h,d,g)}e.exports=(function(){function h(){(function(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")})(this,h),this.head=null,this.tail=null,this.length=0}return(function(g,y,v){return y&&a(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g})(h,[{key:"push",value:function(g){var y={data:g,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(g){var y={data:g,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=g+y.data;return v}},{key:"concat",value:function(g){if(this.length===0)return u.alloc(0);for(var y=u.allocUnsafe(g>>>0),v=this.head,_=0;v;)f(v.data,y,_),_+=v.data.length,v=v.next;return y}},{key:"consume",value:function(g,y){var v;return g<this.head.data.length?(v=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):v=g===this.head.data.length?this.shift():y?this._getString(g):this._getBuffer(g),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var y=this.head,v=1,_=y.data;for(g-=_.length;y=y.next;){var b=y.data,E=g>b.length?b.length:g;if(E===b.length?_+=b:_+=b.slice(0,g),(g-=E)===0){E===b.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=b.slice(E));break}++v}return this.length-=v,_}},{key:"_getBuffer",value:function(g){var y=u.allocUnsafe(g),v=this.head,_=1;for(v.data.copy(y),g-=v.data.length;v=v.next;){var b=v.data,E=g>b.length?b.length:g;if(b.copy(y,y.length-g,0,E),(g-=E)===0){E===b.length?(++_,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(E));break}++_}return this.length-=_,y}},{key:l,value:function(g,y){return c(this,i(i({},y),{},{depth:0,customInspect:!1}))}}]),h})()},737:function(e,t,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,i.call(this,64,56)}function c(h){return h<<5|h>>>27}function l(h){return h<<30|h>>>2}function f(h,d,g,y){return h===0?d&g|~d&y:h===2?d&g|d&y|g&y:d^g^y}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(h){for(var d,g=this._w,y=0|this._a,v=0|this._b,_=0|this._c,b=0|this._d,E=0|this._e,w=0;w<16;++w)g[w]=h.readInt32BE(4*w);for(;w<80;++w)g[w]=(d=g[w-3]^g[w-8]^g[w-14]^g[w-16])<<1|d>>>31;for(var S=0;S<80;++S){var A=~~(S/20),R=c(y)+f(A,v,_,b)+E+g[S]+a[A]|0;E=b,b=_,_=l(v),v=y,y=R}this._a=y+this._a|0,this._b=v+this._b|0,this._c=_+this._c|0,this._d=b+this._d|0,this._e=E+this._e|0},u.prototype._hash=function(){var h=s.allocUnsafe(20);return h.writeInt32BE(0|this._a,0),h.writeInt32BE(0|this._b,4),h.writeInt32BE(0|this._c,8),h.writeInt32BE(0|this._d,12),h.writeInt32BE(0|this._e,16),h},e.exports=u},758:function(e,t,r){var n,i=r(48).F,s=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function o(l){if(l)throw l}function u(l){l()}function c(l,f){return l.pipe(f)}e.exports=function(){for(var f=arguments.length,h=new Array(f),d=0;d<f;d++)h[d]=arguments[d];var g,y=(function(b){return b.length?typeof b[b.length-1]!="function"?o:b.pop():o})(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new s("streams");var v=h.map((function(_,b){var E=b<h.length-1;return(function(S,A,R,T){T=(function($){var M=!1;return function(){M||(M=!0,$.apply(void 0,arguments))}})(T);var O=!1;S.on("close",(function(){O=!0})),n===void 0&&(n=r(238)),n(S,{readable:A,writable:R},(function(N){if(N)return T(N);O=!0,T()}));var D=!1;return function(N){if(!O&&!D)return D=!0,(function(M){return M.setHeader&&typeof M.abort=="function"})(S)?S.abort():typeof S.destroy=="function"?S.destroy():void T(N||new a("pipe"))}})(_,E,b>0,(function(w){g||(g=w),w&&v.forEach(u),E||(v.forEach(u),y(g))}))}));return h.reduce(c)}},802:function(e,t,r){e.exports=function(i){var s=i.toLowerCase(),a=e.exports[s];if(!a)throw new Error(s+" is not supported (we accept pull requests)");return new a},e.exports.sha=r(816),e.exports.sha1=r(737),e.exports.sha224=r(710),e.exports.sha256=r(107),e.exports.sha384=r(827),e.exports.sha512=r(890)},816:function(e,t,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,i.call(this,64,56)}function c(f){return f<<30|f>>>2}function l(f,h,d,g){return f===0?h&d|~h&g:f===2?h&d|h&g|d&g:h^d^g}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(f){for(var h,d=this._w,g=0|this._a,y=0|this._b,v=0|this._c,_=0|this._d,b=0|this._e,E=0;E<16;++E)d[E]=f.readInt32BE(4*E);for(;E<80;++E)d[E]=d[E-3]^d[E-8]^d[E-14]^d[E-16];for(var w=0;w<80;++w){var S=~~(w/20),A=0|((h=g)<<5|h>>>27)+l(S,y,v,_)+b+d[w]+a[S];b=_,_=v,v=c(y),y=g,g=A}this._a=g+this._a|0,this._b=y+this._b|0,this._c=v+this._c|0,this._d=_+this._d|0,this._e=b+this._e|0},u.prototype._hash=function(){var f=s.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},e.exports=u},827:function(e,t,r){var n=r(698),i=r(890),s=r(392),a=r(861).Buffer,o=new Array(160);function u(){this.init(),this._w=o,s.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var c=a.allocUnsafe(48);function l(f,h,d){c.writeInt32BE(f,d),c.writeInt32BE(h,d+4)}return l(this._ah,this._al,0),l(this._bh,this._bl,8),l(this._ch,this._cl,16),l(this._dh,this._dl,24),l(this._eh,this._el,32),l(this._fh,this._fl,40),c},e.exports=u},838:function(){},861:function(e,t,r){var n=r(287),i=n.Buffer;function s(o,u){for(var c in o)u[c]=o[c]}function a(o,u,c){return i(o,u,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),s(i,a),a.from=function(o,u,c){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,u,c)},a.alloc=function(o,u,c){if(typeof o!="number")throw new TypeError("Argument must be a number");var l=i(o);return u!==void 0?typeof c=="string"?l.fill(u,c):l.fill(u):l.fill(0),l},a.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},a.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}},890:function(e,t,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function u(){this.init(),this._w=o,i.call(this,128,112)}function c(b,E,w){return w^b&(E^w)}function l(b,E,w){return b&E|w&(b|E)}function f(b,E){return(b>>>28|E<<4)^(E>>>2|b<<30)^(E>>>7|b<<25)}function h(b,E){return(b>>>14|E<<18)^(b>>>18|E<<14)^(E>>>9|b<<23)}function d(b,E){return(b>>>1|E<<31)^(b>>>8|E<<24)^b>>>7}function g(b,E){return(b>>>1|E<<31)^(b>>>8|E<<24)^(b>>>7|E<<25)}function y(b,E){return(b>>>19|E<<13)^(E>>>29|b<<3)^b>>>6}function v(b,E){return(b>>>19|E<<13)^(E>>>29|b<<3)^(b>>>6|E<<26)}function _(b,E){return b>>>0<E>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(b){for(var E=this._w,w=0|this._ah,S=0|this._bh,A=0|this._ch,R=0|this._dh,T=0|this._eh,O=0|this._fh,D=0|this._gh,N=0|this._hh,$=0|this._al,M=0|this._bl,X=0|this._cl,ee=0|this._dl,J=0|this._el,Q=0|this._fl,te=0|this._gl,re=0|this._hl,L=0;L<32;L+=2)E[L]=b.readInt32BE(4*L),E[L+1]=b.readInt32BE(4*L+4);for(;L<160;L+=2){var K=E[L-30],ne=E[L-30+1],ce=d(K,ne),ue=g(ne,K),se=y(K=E[L-4],ne=E[L-4+1]),V=v(ne,K),z=E[L-14],de=E[L-14+1],ge=E[L-32],Ce=E[L-32+1],Pe=ue+de|0,pe=ce+z+_(Pe,ue)|0;pe=(pe=pe+se+_(Pe=Pe+V|0,V)|0)+ge+_(Pe=Pe+Ce|0,Ce)|0,E[L]=pe,E[L+1]=Pe}for(var Te=0;Te<160;Te+=2){pe=E[Te],Pe=E[Te+1];var Le=l(w,S,A),be=l($,M,X),we=f(w,$),xe=f($,w),U=h(T,J),I=h(J,T),k=a[Te],W=a[Te+1],ie=c(T,O,D),oe=c(J,Q,te),me=re+I|0,Ne=N+U+_(me,re)|0;Ne=(Ne=(Ne=Ne+ie+_(me=me+oe|0,oe)|0)+k+_(me=me+W|0,W)|0)+pe+_(me=me+Pe|0,Pe)|0;var Xe=xe+be|0,B=we+Le+_(Xe,xe)|0;N=D,re=te,D=O,te=Q,O=T,Q=J,T=R+Ne+_(J=ee+me|0,ee)|0,R=A,ee=X,A=S,X=M,S=w,M=$,w=Ne+B+_($=me+Xe|0,me)|0}this._al=this._al+$|0,this._bl=this._bl+M|0,this._cl=this._cl+X|0,this._dl=this._dl+ee|0,this._el=this._el+J|0,this._fl=this._fl+Q|0,this._gl=this._gl+te|0,this._hl=this._hl+re|0,this._ah=this._ah+w+_(this._al,$)|0,this._bh=this._bh+S+_(this._bl,M)|0,this._ch=this._ch+A+_(this._cl,X)|0,this._dh=this._dh+R+_(this._dl,ee)|0,this._eh=this._eh+T+_(this._el,J)|0,this._fh=this._fh+O+_(this._fl,Q)|0,this._gh=this._gh+D+_(this._gl,te)|0,this._hh=this._hh+N+_(this._hl,re)|0},u.prototype._hash=function(){var b=s.allocUnsafe(64);function E(w,S,A){b.writeInt32BE(w,A),b.writeInt32BE(S,A+4)}return E(this._ah,this._al,0),E(this._bh,this._bl,8),E(this._ch,this._cl,16),E(this._dh,this._dl,24),E(this._eh,this._el,32),E(this._fh,this._fl,40),E(this._gh,this._gl,48),E(this._hh,this._hl,56),b},e.exports=u},896:function(e,t,r){var n=r(606);function i(o,u){a(o,u),s(o)}function s(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function a(o,u){o.emit("error",u)}e.exports={destroy:function(u,c){var l=this,f=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return f||h?(c?c(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,u)):n.nextTick(a,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,(function(d){!c&&d?l._writableState?l._writableState.errorEmitted?n.nextTick(s,l):(l._writableState.errorEmitted=!0,n.nextTick(i,l,d)):n.nextTick(i,l,d):c?(n.nextTick(s,l),c(d)):n.nextTick(s,l)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(u,c){var l=u._readableState,f=u._writableState;l&&l.autoDestroy||f&&f.autoDestroy?u.destroy(c):u.emit("error",c)}}},919:function(e,t,r){var n=r(287).Buffer;function i(c){return c instanceof n||c instanceof Date||c instanceof RegExp}function s(c){if(c instanceof n){var l=n.alloc?n.alloc(c.length):new n(c.length);return c.copy(l),l}if(c instanceof Date)return new Date(c.getTime());if(c instanceof RegExp)return new RegExp(c);throw new Error("Unexpected situation")}function a(c){var l=[];return c.forEach((function(f,h){typeof f=="object"&&f!==null?Array.isArray(f)?l[h]=a(f):i(f)?l[h]=s(f):l[h]=u({},f):l[h]=f})),l}function o(c,l){return l==="__proto__"?void 0:c[l]}var u=e.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var c,l,f=arguments[0];return Array.prototype.slice.call(arguments,1).forEach((function(h){typeof h!="object"||h===null||Array.isArray(h)||Object.keys(h).forEach((function(d){return l=o(f,d),(c=o(h,d))===f?void 0:typeof c!="object"||c===null?void(f[d]=c):Array.isArray(c)?void(f[d]=a(c)):i(c)?void(f[d]=s(c)):typeof l!="object"||l===null||Array.isArray(l)?void(f[d]=u({},c)):void(f[d]=u(l,c))}))})),f}},955:function(e,t,r){var n,i=r(606);function s(E,w,S){return(w=(function(R){var T=(function(D,N){if(typeof D!="object"||D===null)return D;var $=D[Symbol.toPrimitive];if($!==void 0){var M=$.call(D,N);if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(D)})(R,"string");return typeof T=="symbol"?T:String(T)})(w))in E?Object.defineProperty(E,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):E[w]=S,E}var a=r(238),o=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function g(E,w){return{value:E,done:w}}function y(E){var w=E[o];if(w!==null){var S=E[d].read();S!==null&&(E[f]=null,E[o]=null,E[u]=null,w(g(S,!1)))}}function v(E){i.nextTick(y,E)}var _=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((s(n={get stream(){return this[d]},next:function(){var w=this,S=this[c];if(S!==null)return Promise.reject(S);if(this[l])return Promise.resolve(g(void 0,!0));if(this[d].destroyed)return new Promise((function(O,D){i.nextTick((function(){w[c]?D(w[c]):O(g(void 0,!0))}))}));var A,R=this[f];if(R)A=new Promise((function(D,N){return function($,M){D.then((function(){N[l]?$(g(void 0,!0)):N[h]($,M)}),M)}})(R,this));else{var T=this[d].read();if(T!==null)return Promise.resolve(g(T,!1));A=new Promise(this[h])}return this[f]=A,A}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var w=this;return new Promise((function(S,A){w[d].destroy(null,(function(R){R?A(R):S(g(void 0,!0))}))}))})),n),_);e.exports=function(w){var S,A=Object.create(b,(s(S={},d,{value:w,writable:!0}),s(S,o,{value:null,writable:!0}),s(S,u,{value:null,writable:!0}),s(S,c,{value:null,writable:!0}),s(S,l,{value:w._readableState.endEmitted,writable:!0}),s(S,h,{value:function(T,O){var D=A[d].read();D?(A[f]=null,A[o]=null,A[u]=null,T(g(D,!1))):(A[o]=T,A[u]=O)},writable:!0}),S));return A[f]=null,a(w,(function(R){if(R&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"){var T=A[u];return T!==null&&(A[f]=null,A[o]=null,A[u]=null,T(R)),void(A[c]=R)}var O=A[o];O!==null&&(A[f]=null,A[o]=null,A[u]=null,O(g(void 0,!0))),A[l]=!0})),w.on("readable",v.bind(null,A)),A}},987:function(e){e.exports=_K}},JB={};function _e(e){var t=JB[e];if(t!==void 0)return t.exports;var r=JB[e]={exports:{}};return dbe[e](r,r.exports,_e),r.exports}_e.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return _e.d(t,{a:t}),t},_e.d=function(e,t){for(var r in t)_e.o(t,r)&&!_e.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},_e.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),_e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_e.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var V7={};_e.d(V7,{A:function(){return q2e}});var CA={};_e.r(CA),_e.d(CA,{CLEAR:function(){return aR},CLEAR_BY:function(){return oR},NEW_AUTH_ERR:function(){return sR},NEW_SPEC_ERR:function(){return nR},NEW_SPEC_ERR_BATCH:function(){return iR},NEW_THROWN_ERR:function(){return bm},NEW_THROWN_ERR_BATCH:function(){return rR},clear:function(){return Sbe},clearBy:function(){return wbe},newAuthErr:function(){return Ebe},newSpecErr:function(){return bbe},newSpecErrBatch:function(){return _be},newThrownErr:function(){return ybe},newThrownErrBatch:function(){return vbe}});var RA={};_e.r(RA),_e.d(RA,{AUTHORIZE:function(){return lR},AUTHORIZE_OAUTH2:function(){return pR},CONFIGURE_AUTH:function(){return dR},LOGOUT:function(){return fR},RESTORE_AUTHORIZATION:function(){return hR},SHOW_AUTH_POPUP:function(){return cR},authPopup:function(){return Ybe},authorize:function(){return Mbe},authorizeAccessCodeWithBasicAuthentication:function(){return Wbe},authorizeAccessCodeWithFormParams:function(){return zbe},authorizeApplication:function(){return Vbe},authorizeOauth2:function(){return Bbe},authorizeOauth2WithPersistOption:function(){return Lbe},authorizePassword:function(){return Ube},authorizeRequest:function(){return Jbe},authorizeWithPersistOption:function(){return Dbe},configureAuth:function(){return Kbe},logout:function(){return qbe},logoutWithPersistOption:function(){return $be},persistAuthorizationIfNeeded:function(){return Gbe},preAuthorizeImplicit:function(){return Fbe},restoreAuthorization:function(){return Hbe},showDefinitions:function(){return Nbe}});var IA={};_e.r(IA),_e.d(IA,{authorized:function(){return n_e},definitionsForRequirements:function(){return r_e},definitionsToAuthorize:function(){return Qbe},getConfigs:function(){return s_e},getDefinitionsByNames:function(){return t_e},isAuthorized:function(){return i_e},selectAuthPath:function(){return e_e},shownDefinitions:function(){return Zbe}});var TA={};_e.r(TA),_e.d(TA,{TOGGLE_CONFIGS:function(){return yR},UPDATE_CONFIGS:function(){return gR},downloadConfig:function(){return y_e},getConfigByUrl:function(){return v_e},loaded:function(){return g_e},toggle:function(){return m_e},update:function(){return h_e}});var jA={};_e.r(jA),_e.d(jA,{get:function(){return b_e}});var PA={};_e.r(PA),_e.d(PA,{transform:function(){return O_e}});var kA={};_e.r(kA),_e.d(kA,{transform:function(){return C_e}});var NA={};_e.r(NA),_e.d(NA,{allErrors:function(){return tV},lastError:function(){return I_e}});var MA={};_e.r(MA),_e.d(MA,{SHOW:function(){return ER},UPDATE_FILTER:function(){return bR},UPDATE_LAYOUT:function(){return vR},UPDATE_MODE:function(){return _R},changeMode:function(){return L_e},show:function(){return B_e},updateFilter:function(){return F_e},updateLayout:function(){return $_e}});var DA={};_e.r(DA),_e.d(DA,{current:function(){return V_e},currentFilter:function(){return z_e},isShown:function(){return sV},showSummary:function(){return J_e},whatMode:function(){return W_e}});var qA={};_e.r(qA),_e.d(qA,{taggedOperations:function(){return K_e}});var $A={};_e.r($A),_e.d($A,{getActiveLanguage:function(){return eEe},getDefaultExpanded:function(){return tEe},getGenerators:function(){return lV},getSnippetGenerators:function(){return Q_e}});var FA={};_e.r(FA),_e.d(FA,{JsonSchemaArrayItemFile:function(){return AR},JsonSchemaArrayItemText:function(){return xR},JsonSchemaForm:function(){return mV},JsonSchema_array:function(){return yV},JsonSchema_boolean:function(){return vV},JsonSchema_object:function(){return bV},JsonSchema_string:function(){return gV}});var BA={};_e.r(BA),_e.d(BA,{allowTryItOutFor:function(){return rSe},basePath:function(){return GEe},canExecuteScheme:function(){return lSe},consumes:function(){return NV},consumesOptionsFor:function(){return cSe},contentTypeValues:function(){return oSe},currentProducesFor:function(){return WV},definitions:function(){return HEe},externalDocs:function(){return UEe},findDefinition:function(){return KEe},getOAS3RequiredRequestBodyContentType:function(){return pSe},getParameter:function(){return iSe},hasHost:function(){return sSe},host:function(){return YEe},info:function(){return TV},isMediaTypeSchemaPropertiesEqual:function(){return dSe},isOAS3:function(){return LEe},lastError:function(){return NEe},mutatedRequestFor:function(){return tSe},mutatedRequests:function(){return LV},operationScheme:function(){return JV},operationWithMeta:function(){return VV},operations:function(){return kV},operationsWithRootInherited:function(){return DV},operationsWithTags:function(){return $V},parameterInclusionSettingFor:function(){return UV},parameterValues:function(){return zV},parameterWithMeta:function(){return nSe},parameterWithMetaByIdentity:function(){return RR},parametersIncludeIn:function(){return aSe},parametersIncludeType:function(){return iO},paths:function(){return PV},produces:function(){return MV},producesOptionsFor:function(){return uSe},requestFor:function(){return eSe},requests:function(){return BV},responseFor:function(){return QEe},responses:function(){return FV},schemes:function(){return XEe},security:function(){return WEe},securityDefinitions:function(){return JEe},semver:function(){return VEe},spec:function(){return xn},specJS:function(){return $Ee},specJson:function(){return OR},specJsonWithResolvedSubtrees:function(){return ji},specResolved:function(){return FEe},specResolvedSubtree:function(){return BEe},specSource:function(){return qEe},specStr:function(){return DEe},tagDetails:function(){return qV},taggedOperations:function(){return ZEe},tags:function(){return CR},url:function(){return MEe},validOperationMethods:function(){return zEe},validateBeforeExecute:function(){return fSe},validationErrors:function(){return KV},version:function(){return jV}});var LA={};_e.r(LA),_e.d(LA,{CLEAR_REQUEST:function(){return $R},CLEAR_RESPONSE:function(){return qR},CLEAR_VALIDATE_PARAMS:function(){return FR},LOG_REQUEST:function(){return YV},SET_MUTATED_REQUEST:function(){return DR},SET_REQUEST:function(){return MR},SET_RESPONSE:function(){return NR},SET_SCHEME:function(){return LR},UPDATE_EMPTY_PARAM_INCLUSION:function(){return PR},UPDATE_JSON:function(){return jR},UPDATE_OPERATION_META_VALUE:function(){return Am},UPDATE_PARAM:function(){return xm},UPDATE_RESOLVED:function(){return BR},UPDATE_RESOLVED_SUBTREE:function(){return Om},UPDATE_SPEC:function(){return IR},UPDATE_URL:function(){return TR},VALIDATE_PARAMS:function(){return kR},changeConsumesValue:function(){return kSe},changeParam:function(){return OSe},changeParamByIdentity:function(){return CSe},changeProducesValue:function(){return NSe},clearRequest:function(){return USe},clearResponse:function(){return LSe},clearValidateParams:function(){return PSe},execute:function(){return BSe},executeRequest:function(){return FSe},invalidateResolvedSubtreeCache:function(){return ISe},logRequest:function(){return $Se},parseToJson:function(){return SSe},requestResolvedSubtree:function(){return ASe},resolveSpec:function(){return wSe},setMutatedRequest:function(){return qSe},setRequest:function(){return DSe},setResponse:function(){return MSe},setScheme:function(){return VSe},updateEmptyParamInclusion:function(){return jSe},updateJsonSpec:function(){return ESe},updateResolved:function(){return bSe},updateResolvedSubtree:function(){return RSe},updateSpec:function(){return vSe},updateUrl:function(){return _Se},validateParams:function(){return TSe}});var UA={};_e.r(UA),_e.d(UA,{executeRequest:function(){return KSe},updateJsonSpec:function(){return JSe},updateSpec:function(){return WSe},validateParams:function(){return HSe}});var VA={};_e.r(VA),_e.d(VA,{Button:function(){return Oz},Col:function(){return dwe},Collapse:function(){return Iz},Container:function(){return pwe},Input:function(){return gwe},Link:function(){return Rz},Row:function(){return hwe},Select:function(){return Cz},TextArea:function(){return mwe}});var zA={};_e.r(zA),_e.d(zA,{basePath:function(){return Xwe},consumes:function(){return Zwe},definitions:function(){return Jwe},findDefinition:function(){return Wwe},hasHost:function(){return Kwe},host:function(){return Ywe},produces:function(){return Qwe},schemes:function(){return exe},securityDefinitions:function(){return Hwe},validOperationMethods:function(){return Gwe}});var WA={};_e.r(WA),_e.d(WA,{definitionsToAuthorize:function(){return txe}});var JA={};_e.r(JA),_e.d(JA,{callbacksOperations:function(){return uxe},findSchema:function(){return oxe},isOAS3:function(){return sxe},isOAS30:function(){return ixe},isSwagger2:function(){return nxe},servers:function(){return axe}});var KA={};_e.r(KA),_e.d(KA,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return Rm},CLEAR_REQUEST_BODY_VALUE:function(){return ZR},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return XR},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return KR},UPDATE_REQUEST_BODY_INCLUSION:function(){return JR},UPDATE_REQUEST_BODY_VALUE:function(){return zR},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return WR},UPDATE_REQUEST_CONTENT_TYPE:function(){return HR},UPDATE_RESPONSE_CONTENT_TYPE:function(){return GR},UPDATE_SELECTED_SERVER:function(){return VR},UPDATE_SERVER_VARIABLE_VALUE:function(){return YR},clearRequestBodyValidateError:function(){return Mxe},clearRequestBodyValue:function(){return qxe},initRequestBodyValidateError:function(){return Dxe},setActiveExamplesMember:function(){return Txe},setRequestBodyInclusion:function(){return Ixe},setRequestBodyValidateError:function(){return Nxe},setRequestBodyValue:function(){return Cxe},setRequestContentType:function(){return jxe},setResponseContentType:function(){return Pxe},setRetainRequestBodyValueFlag:function(){return Rxe},setSelectedServer:function(){return Oxe},setServerVariableValue:function(){return kxe}});var HA={};_e.r(HA),_e.d(HA,{activeExamplesMember:function(){return Jxe},hasUserEditedBody:function(){return Vxe},requestBodyErrors:function(){return Wxe},requestBodyInclusionSetting:function(){return zxe},requestBodyValue:function(){return Bxe},requestContentType:function(){return Kxe},responseContentType:function(){return Hxe},selectDefaultRequestBodyValue:function(){return Uxe},selectedServer:function(){return Fxe},serverEffectiveValue:function(){return Xxe},serverVariableValue:function(){return Gxe},serverVariables:function(){return Yxe},shouldRetainRequestBodyValue:function(){return Lxe},validOperationMethods:function(){return eAe},validateBeforeExecute:function(){return Zxe},validateShallowRequired:function(){return Qxe}});var p=(function(e){var t={};return _e.d(t,e),t})({Component:function(){return ut.Component},PureComponent:function(){return ut.PureComponent},createContext:function(){return ut.createContext},createElement:function(){return ut.createElement},default:function(){return ut.default},forwardRef:function(){return ut.forwardRef},useCallback:function(){return ut.useCallback},useContext:function(){return ut.useContext},useEffect:function(){return ut.useEffect},useMemo:function(){return ut.useMemo},useRef:function(){return ut.useRef},useState:function(){return ut.useState}}),Yu=(function(e){var t={};return _e.d(t,e),t})({applyMiddleware:function(){return IK},bindActionCreators:function(){return RK},compose:function(){return n6},createStore:function(){return r6}}),H=(function(e){var t={};return _e.d(t,e),t})({List:function(){return ya.List},Map:function(){return ya.Map},OrderedMap:function(){return ya.OrderedMap},Seq:function(){return ya.Seq},Set:function(){return ya.Set},default:function(){return jK},fromJS:function(){return ya.fromJS}}),hbe=_e(919),Rc=_e.n(hbe),mbe=(function(e){var t={};return _e.d(t,e),t})({combineReducers:function(){return qK.combineReducers}}),z7=(function(e){var t={};return _e.d(t,e),t})({serializeError:function(){return FK.serializeError}}),gbe=(function(e){var t={};return _e.d(t,e),t})({default:function(){return TH}});const bm="err_new_thrown_err",rR="err_new_thrown_err_batch",nR="err_new_spec_err",iR="err_new_spec_err_batch",sR="err_new_auth_err",aR="err_clear",oR="err_clear_by";function ybe(e){return{type:bm,payload:(0,z7.serializeError)(e)}}function vbe(e){return{type:rR,payload:e}}function bbe(e){return{type:nR,payload:e}}function _be(e){return{type:iR,payload:e}}function Ebe(e){return{type:sR,payload:e}}function Sbe(e={}){return{type:aR,payload:e}}function wbe(e=()=>!0){return{type:oR,payload:e}}var Zt=(function(){var t={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if(typeof window>"u")return t;try{t=window;for(var r of["File","Blob","FormData"])r in window&&(t[r]=window[r])}catch(n){console.error(n)}return t})(),Xu=((function(e){var t={};_e.d(t,e)})({}),(function(e){var t={};_e.d(t,e)})({}),(function(e){var t={};return _e.d(t,e),t})({default:function(){return HH}})),xbe=(function(e){var t={};return _e.d(t,e),t})({default:function(){return OG}}),W7=(function(e){var t={};return _e.d(t,e),t})({default:function(){return PG}}),Abe=(function(e){var t={};return _e.d(t,e),t})({default:function(){return NG}}),KB=(function(e){var t={};return _e.d(t,e),t})({default:function(){return DG}}),Obe=(function(e){var t={};return _e.d(t,e),t})({default:function(){return BG}}),Cbe=_e(209),xo=_e.n(Cbe),Rbe=_e(802),Ibe=_e.n(Rbe);const Tbe=H.default.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function bp(e,{isOAS3:t}={}){if(!H.default.Map.isMap(e))return{schema:H.default.Map(),parameterContentMediaType:null};if(!t)return e.get("in")==="body"?{schema:e.get("schema",H.default.Map()),parameterContentMediaType:null}:{schema:e.filter(((r,n)=>Tbe.includes(n))),parameterContentMediaType:null};if(e.get("content")){const r=e.get("content",H.default.Map({})).keySeq().first();return{schema:e.getIn(["content",r,"schema"],H.default.Map()),parameterContentMediaType:r}}return{schema:e.get("schema")?e.get("schema",H.default.Map()):H.default.Map(),parameterContentMediaType:null}}var HB=_e(287).Buffer;const GB="default",uf=e=>H.default.Iterable.isIterable(e),Ho=e=>uf(e)?e.toJS():e;function Ea(e){return Bi(e)?Ho(e):{}}function Fi(e){if(uf(e)||e instanceof Zt.File||!Bi(e))return e;if(Array.isArray(e))return H.default.Seq(e).map(Fi).toList();if((0,KB.default)(e.entries)){const t=(function(n){if(!(0,KB.default)(n.entries))return n;const i={},s="_**[]",a={};for(let o of n.entries())i[o[0]]||a[o[0]]&&a[o[0]].containsMultiple?(a[o[0]]||(a[o[0]]={containsMultiple:!0,length:1},i[`${o[0]}${s}${a[o[0]].length}`]=i[o[0]],delete i[o[0]]),a[o[0]].length+=1,i[`${o[0]}${s}${a[o[0]].length}`]=o[1]):i[o[0]]=o[1];return i})(e);return H.default.OrderedMap(t).map(Fi)}return H.default.OrderedMap(e).map(Fi)}function Qa(e){return Array.isArray(e)?e:[e]}function Lw(e){return typeof e=="function"}function Bi(e){return!!e&&typeof e=="object"}function ys(e){return typeof e=="function"}function td(e){return Array.isArray(e)}const jbe=Xu.default;function gi(e,t){return Object.keys(e).reduce(((r,n)=>(r[n]=t(e[n],n),r)),{})}function YB(e,t){return Object.keys(e).reduce(((r,n)=>{let i=t(e[n],n);return i&&typeof i=="object"&&Object.assign(r,i),r}),{})}function Pbe(e){return({dispatch:t,getState:r})=>n=>i=>typeof i=="function"?i(e()):n(i)}function GA(e,t,r,n,i){if(!t)return[];let s=[],a=t.get("nullable"),o=t.get("required"),u=t.get("maximum"),c=t.get("minimum"),l=t.get("type"),f=t.get("format"),h=t.get("maxLength"),d=t.get("minLength"),g=t.get("uniqueItems"),y=t.get("maxItems"),v=t.get("minItems"),_=t.get("pattern");const b=r||o===!0,E=e!=null,w=b||E&&l==="array"||!(!b&&!E),S=a&&e===null;if(b&&!E&&!S&&!n&&!l)return s.push("Required field is not provided"),s;if(S||!l||!w)return[];let A=l==="string"&&e,R=l==="array"&&Array.isArray(e)&&e.length,T=l==="array"&&H.default.List.isList(e)&&e.count();const O=[A,R,T,l==="array"&&typeof e=="string"&&e,l==="file"&&e instanceof Zt.File,l==="boolean"&&(e||e===!1),l==="number"&&(e||e===0),l==="integer"&&(e||e===0),l==="object"&&typeof e=="object"&&e!==null,l==="object"&&typeof e=="string"&&e].some((D=>!!D));if(b&&!O&&!n)return s.push("Required field is not provided"),s;if(l==="object"&&(i===null||i==="application/json")){let D=e;if(typeof e=="string")try{D=JSON.parse(e)}catch{return s.push("Parameter string value must be valid JSON"),s}t&&t.has("required")&&ys(o.isList)&&o.isList()&&o.forEach((N=>{D[N]===void 0&&s.push({propKey:N,error:"Required property not found"})})),t&&t.has("properties")&&t.get("properties").forEach(((N,$)=>{const M=GA(D[$],N,!1,n,i);s.push(...M.map((X=>({propKey:$,error:X}))))}))}if(_){let D=((N,$)=>{if(!new RegExp($).test(N))return"Value must follow pattern "+$})(e,_);D&&s.push(D)}if(v&&l==="array"){let D=((N,$)=>{if(!N&&$>=1||N&&N.length<$)return`Array must contain at least ${$} item${$===1?"":"s"}`})(e,v);D&&s.push(D)}if(y&&l==="array"){let D=((N,$)=>{if(N&&N.length>$)return`Array must not contain more then ${$} item${$===1?"":"s"}`})(e,y);D&&s.push({needRemove:!0,error:D})}if(g&&l==="array"){let D=((N,$)=>{if(N&&($==="true"||$===!0)){const M=(0,H.fromJS)(N),X=M.toSet();if(N.length>X.size){let ee=(0,H.Set)();if(M.forEach(((J,Q)=>{M.filter((te=>ys(te.equals)?te.equals(J):te===J)).size>1&&(ee=ee.add(Q))})),ee.size!==0)return ee.map((J=>({index:J,error:"No duplicates allowed."}))).toArray()}}})(e,g);D&&s.push(...D)}if(h||h===0){let D=((N,$)=>{if(N.length>$)return`Value must be no longer than ${$} character${$!==1?"s":""}`})(e,h);D&&s.push(D)}if(d){let D=((N,$)=>{if(N.length<$)return`Value must be at least ${$} character${$!==1?"s":""}`})(e,d);D&&s.push(D)}if(u||u===0){let D=((N,$)=>{if(N>$)return`Value must be less than or equal to ${$}`})(e,u);D&&s.push(D)}if(c||c===0){let D=((N,$)=>{if(N<$)return`Value must be greater than or equal to ${$}`})(e,c);D&&s.push(D)}if(l==="string"){let D;if(D=f==="date-time"?(N=>{if(isNaN(Date.parse(N)))return"Value must be a DateTime"})(e):f==="uuid"?(N=>{if(N=N.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(N))return"Value must be a Guid"})(e):(N=>{if(N&&typeof N!="string")return"Value must be a string"})(e),!D)return s;s.push(D)}else if(l==="boolean"){let D=(N=>{if(N!=="true"&&N!=="false"&&N!==!0&&N!==!1)return"Value must be a boolean"})(e);if(!D)return s;s.push(D)}else if(l==="number"){let D=(N=>{if(!/^-?\d+(\.?\d+)?$/.test(N))return"Value must be a number"})(e);if(!D)return s;s.push(D)}else if(l==="integer"){let D=(N=>{if(!/^-?\d+$/.test(N))return"Value must be an integer"})(e);if(!D)return s;s.push(D)}else if(l==="array"){if(!R&&!T)return s;e&&e.forEach(((D,N)=>{const $=GA(D,t.get("items"),!1,n,i);s.push(...$.map((M=>({index:N,error:M}))))}))}else if(l==="file"){let D=(N=>{if(N&&!(N instanceof Zt.File))return"Value must be a file"})(e);if(!D)return s;s.push(D)}return s}const cf=e=>{let t;return t=e instanceof HB?e:HB.from(e.toString(),"utf-8"),t.toString("base64")},XB={operationsSorter:{alpha:(e,t)=>e.get("path").localeCompare(t.get("path")),method:(e,t)=>e.get("method").localeCompare(t.get("method"))},tagsSorter:{alpha:(e,t)=>e.localeCompare(t)}},_m=e=>{let t=[];for(let r in e){let n=e[r];n!==void 0&&n!==""&&t.push([r,"=",encodeURIComponent(n).replace(/%20/g,"+")].join(""))}return t.join("&")},kbe=(e,t,r)=>!!(0,xbe.default)(r,(n=>(0,Abe.default)(e[n],t[n])));function ZB(e){return!(!e||e.indexOf("localhost")>=0||e.indexOf("127.0.0.1")>=0||e==="none")}const Ic=e=>typeof e=="string"||e instanceof String?e.trim().replace(/\s/g,"%20"):"",J7=e=>(0,Obe.default)(Ic(e).replace(/%20/g,"_")),ua=e=>{const t=/^x-/;return H.Map.isMap(e)?e.filter(((r,n)=>t.test(n))):Object.keys(e).filter((r=>t.test(r)))},K7=e=>e.filter(((t,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r)));function H7(e,t,r=()=>!0){if(typeof e!="object"||Array.isArray(e)||e===null||!t)return e;const n=Object.assign({},e);return Object.keys(n).forEach((i=>{i===t&&r(n[i],i)?delete n[i]:n[i]=H7(n[i],t,r)})),n}function Jr(e){if(typeof e=="string")return e;if(e&&e.toJS&&(e=e.toJS()),typeof e=="object"&&e!==null)try{return JSON.stringify(e,null,2)}catch{return String(e)}return e==null?"":e.toString()}function rd(e,{returnAll:t=!1,allowHashes:r=!0}={}){if(!H.default.Map.isMap(e))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=e.get("name"),i=e.get("in");let s=[];return e&&e.hashCode&&i&&n&&r&&s.push(`${i}.${n}.hash-${e.hashCode()}`),i&&n&&s.push(`${i}.${n}`),s.push(n),t?s:s[0]||""}function G7(e,t){return rd(e,{returnAll:!0}).map((r=>t[r])).filter((r=>r!==void 0))[0]}function QB(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const uR=e=>!e||!(!uf(e)||!e.isEmpty()),eL=e=>e;class Y7{constructor(t={}){Rc()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},t),this.getSystem=this._getSystem.bind(this),this.store=(function(n,i,s){return(function(o,u,c){let l=[Pbe(c)];const f=Zt.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Yu.compose;return(0,Yu.createStore)(o,u,f((0,Yu.applyMiddleware)(...l)))})(n,i,s)})(eL,(0,H.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(t,r=!0){var n=YA(t,this.getSystem());X7(this.system,n),r&&this.buildSystem(),XA.call(this.system,t,this.getSystem())&&this.buildSystem()}buildSystem(t=!0){let r=this.getStore().dispatch,n=this.getStore().getState;this.boundSystem=Object.assign({},this.getRootInjects(),this.getWrappedAndBoundActions(r),this.getWrappedAndBoundSelectors(n,this.getSystem),this.getStateThunks(n),this.getFn(),this.getConfigs()),t&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){return Object.assign({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:H.default,React:p.default},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(t){this.system.configs=t}rebuildReducer(){this.store.replaceReducer((function(r,n){return(function(s,a){let o=Object.keys(s).reduce(((u,c)=>(u[c]=(function(f,h){return(d=new H.Map,g)=>{if(!f)return d;let y=f[g.type];if(y){const v=Zu(y,h)(d,g);return v===null?d:v}return d}})(s[c],a),u)),{});return Object.keys(o).length?(0,mbe.combineReducers)(o):eL})(gi(r,(i=>i.reducers)),n)})(this.system.statePlugins,this.getSystem))}getType(t){let r=t[0].toUpperCase()+t.slice(1);return YB(this.system.statePlugins,((n,i)=>{let s=n[t];if(s)return{[i+r]:s}}))}getSelectors(){return this.getType("selectors")}getActions(){return gi(this.getType("actions"),(t=>YB(t,((r,n)=>{if(Lw(r))return{[n]:r}}))))}getWrappedAndBoundActions(t){return gi(this.getBoundActions(t),((r,n)=>{let i=this.system.statePlugins[n.slice(0,-7)].wrapActions;return i?gi(r,((s,a)=>{let o=i[a];return o?(Array.isArray(o)||(o=[o]),o.reduce(((u,c)=>{let l=(...f)=>c(u,this.getSystem())(...f);if(!Lw(l))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return Zu(l,this.getSystem)}),s||Function.prototype)):s})):r}))}getWrappedAndBoundSelectors(t,r){return gi(this.getBoundSelectors(t,r),((n,i)=>{let s=[i.slice(0,-9)],a=this.system.statePlugins[s].wrapSelectors;return a?gi(n,((o,u)=>{let c=a[u];return c?(Array.isArray(c)||(c=[c]),c.reduce(((l,f)=>{let h=(...d)=>f(l,this.getSystem())(t().getIn(s),...d);if(!Lw(h))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return h}),o||Function.prototype)):o})):n}))}getStates(t){return Object.keys(this.system.statePlugins).reduce(((r,n)=>(r[n]=t.get(n),r)),{})}getStateThunks(t){return Object.keys(this.system.statePlugins).reduce(((r,n)=>(r[n]=()=>t().get(n),r)),{})}getFn(){return{fn:this.system.fn}}getComponents(t){const r=this.system.components[t];return Array.isArray(r)?r.reduce(((n,i)=>i(n,this.getSystem()))):t!==void 0?this.system.components[t]:this.system.components}getBoundSelectors(t,r){return gi(this.getSelectors(),((n,i)=>{let s=[i.slice(0,-9)];return gi(n,(a=>(...o)=>{let u=Zu(a,this.getSystem).apply(null,[t().getIn(s),...o]);return typeof u=="function"&&(u=Zu(u,this.getSystem)(r())),u}))}))}getBoundActions(t){t=t||this.getStore().dispatch;const r=this.getActions(),n=i=>typeof i!="function"?gi(i,(s=>n(s))):(...s)=>{var a=null;try{a=i(...s)}catch(o){a={type:bm,error:!0,payload:(0,z7.serializeError)(o)}}finally{return a}};return gi(r,(i=>(0,Yu.bindActionCreators)(n(i),t)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(t){return r=>Rc()({},this.getWrappedAndBoundActions(r),this.getFn(),t)}}function YA(e,t){return Bi(e)&&!td(e)?(0,gbe.default)({},e):ys(e)?YA(e(t),t):td(e)?e.map((r=>YA(r,t))).reduce(X7,{components:t.getComponents()}):{}}function XA(e,t,{hasLoaded:r}={}){let n=r;return Bi(e)&&!td(e)&&typeof e.afterLoad=="function"&&(n=!0,Zu(e.afterLoad,t.getSystem).call(this,t)),ys(e)?XA.call(this,e(t),t,{hasLoaded:n}):td(e)?e.map((i=>XA.call(this,i,t,{hasLoaded:n}))):n}function X7(e={},t={}){if(!Bi(e))return{};if(!Bi(t))return e;t.wrapComponents&&(gi(t.wrapComponents,((n,i)=>{const s=e.components&&e.components[i];s&&Array.isArray(s)?(e.components[i]=s.concat([n]),delete t.wrapComponents[i]):s&&(e.components[i]=[s,n],delete t.wrapComponents[i])})),Object.keys(t.wrapComponents).length||delete t.wrapComponents);const{statePlugins:r}=e;if(Bi(r))for(let n in r){const i=r[n];if(!Bi(i))continue;const{wrapActions:s,wrapSelectors:a}=i;if(Bi(s))for(let o in s){let u=s[o];Array.isArray(u)||(u=[u],s[o]=u),t&&t.statePlugins&&t.statePlugins[n]&&t.statePlugins[n].wrapActions&&t.statePlugins[n].wrapActions[o]&&(t.statePlugins[n].wrapActions[o]=s[o].concat(t.statePlugins[n].wrapActions[o]))}if(Bi(a))for(let o in a){let u=a[o];Array.isArray(u)||(u=[u],a[o]=u),t&&t.statePlugins&&t.statePlugins[n]&&t.statePlugins[n].wrapSelectors&&t.statePlugins[n].wrapSelectors[o]&&(t.statePlugins[n].wrapSelectors[o]=a[o].concat(t.statePlugins[n].wrapSelectors[o]))}}return Rc()(e,t)}function Zu(e,t,{logErrors:r=!0}={}){return typeof e!="function"?e:function(...n){try{return e.call(this,...n)}catch(i){if(r){const{uncaughtExceptionHandler:s}=t().getConfigs();typeof s=="function"?s(i):console.error(i)}return null}}}var Tc=(function(e){var t={};return _e.d(t,e),t})({default:function(){return WG}});const cR="show_popup",lR="authorize",fR="logout",pR="authorize_oauth2",dR="configure_auth",hR="restore_authorization";function Nbe(e){return{type:cR,payload:e}}function Mbe(e){return{type:lR,payload:e}}const Dbe=e=>({authActions:t})=>{t.authorize(e),t.persistAuthorizationIfNeeded()};function qbe(e){return{type:fR,payload:e}}const $be=e=>({authActions:t})=>{t.logout(e),t.persistAuthorizationIfNeeded()},Fbe=e=>({authActions:t,errActions:r})=>{let{auth:n,token:i,isValid:s}=e,{schema:a,name:o}=n,u=a.get("flow");delete Zt.swaggerUIRedirectOauth2,u==="accessCode"||s||r.newAuthErr({authId:o,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),i.error?r.newAuthErr({authId:o,source:"auth",level:"error",message:JSON.stringify(i)}):t.authorizeOauth2WithPersistOption({auth:n,token:i})};function Bbe(e){return{type:pR,payload:e}}const Lbe=e=>({authActions:t})=>{t.authorizeOauth2(e),t.persistAuthorizationIfNeeded()},Ube=e=>({authActions:t})=>{let{schema:r,name:n,username:i,password:s,passwordType:a,clientId:o,clientSecret:u}=e,c={grant_type:"password",scope:e.scopes.join(" "),username:i,password:s},l={};switch(a){case"request-body":(function(h,d,g){d&&Object.assign(h,{client_id:d}),g&&Object.assign(h,{client_secret:g})})(c,o,u);break;case"basic":l.Authorization="Basic "+cf(o+":"+u);break;default:console.warn(`Warning: invalid passwordType ${a} was passed, not including client id and secret`)}return t.authorizeRequest({body:_m(c),url:r.get("tokenUrl"),name:n,headers:l,query:{},auth:e})},Vbe=e=>({authActions:t})=>{let{schema:r,scopes:n,name:i,clientId:s,clientSecret:a}=e,o={Authorization:"Basic "+cf(s+":"+a)},u={grant_type:"client_credentials",scope:n.join(" ")};return t.authorizeRequest({body:_m(u),name:i,url:r.get("tokenUrl"),auth:e,headers:o})},zbe=({auth:e,redirectUrl:t})=>({authActions:r})=>{let{schema:n,name:i,clientId:s,clientSecret:a,codeVerifier:o}=e,u={grant_type:"authorization_code",code:e.code,client_id:s,client_secret:a,redirect_uri:t,code_verifier:o};return r.authorizeRequest({body:_m(u),name:i,url:n.get("tokenUrl"),auth:e})},Wbe=({auth:e,redirectUrl:t})=>({authActions:r})=>{let{schema:n,name:i,clientId:s,clientSecret:a,codeVerifier:o}=e,u={Authorization:"Basic "+cf(s+":"+a)},c={grant_type:"authorization_code",code:e.code,client_id:s,redirect_uri:t,code_verifier:o};return r.authorizeRequest({body:_m(c),name:i,url:n.get("tokenUrl"),auth:e,headers:u})},Jbe=e=>({fn:t,getConfigs:r,authActions:n,errActions:i,oas3Selectors:s,specSelectors:a,authSelectors:o})=>{let u,{body:c,query:l={},headers:f={},name:h,url:d,auth:g}=e,{additionalQueryStringParams:y}=o.getConfigs()||{};if(a.isOAS3()){let b=s.serverEffectiveValue(s.selectedServer());u=(0,Tc.default)(d,b,!0)}else u=(0,Tc.default)(d,a.url(),!0);typeof y=="object"&&(u.query=Object.assign({},u.query,y));const v=u.toString();let _=Object.assign({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},f);t.fetch({url:v,method:"post",headers:_,query:l,body:c,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then((function(b){let E=JSON.parse(b.data),w=E&&(E.error||""),S=E&&(E.parseError||"");b.ok?w||S?i.newAuthErr({authId:h,level:"error",source:"auth",message:JSON.stringify(E)}):n.authorizeOauth2WithPersistOption({auth:g,token:E}):i.newAuthErr({authId:h,level:"error",source:"auth",message:b.statusText})})).catch((b=>{let E=new Error(b).message;if(b.response&&b.response.data){const w=b.response.data;try{const S=typeof w=="string"?JSON.parse(w):w;S.error&&(E+=`, error: ${S.error}`),S.error_description&&(E+=`, description: ${S.error_description}`)}catch{}}i.newAuthErr({authId:h,level:"error",source:"auth",message:E})}))};function Kbe(e){return{type:dR,payload:e}}function Hbe(e){return{type:hR,payload:e}}const Gbe=()=>({authSelectors:e,getConfigs:t})=>{if(!t().persistAuthorization)return;const r=e.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},Ybe=(e,t)=>()=>{Zt.swaggerUIRedirectOauth2=t,Zt.open(e)};var Xbe={[cR]:(e,{payload:t})=>e.set("showDefinitions",t),[lR]:(e,{payload:t})=>{let r=(0,H.fromJS)(t),n=e.get("authorized")||(0,H.Map)();return r.entrySeq().forEach((([i,s])=>{if(!ys(s.getIn))return e.set("authorized",n);let a=s.getIn(["schema","type"]);if(a==="apiKey"||a==="http")n=n.set(i,s);else if(a==="basic"){let o=s.getIn(["value","username"]),u=s.getIn(["value","password"]);n=n.setIn([i,"value"],{username:o,header:"Basic "+cf(o+":"+u)}),n=n.setIn([i,"schema"],s.get("schema"))}})),e.set("authorized",n)},[pR]:(e,{payload:t})=>{let r,{auth:n,token:i}=t;n.token=Object.assign({},i),r=(0,H.fromJS)(n);let s=e.get("authorized")||(0,H.Map)();return s=s.set(r.get("name"),r),e.set("authorized",s)},[fR]:(e,{payload:t})=>{let r=e.get("authorized").withMutations((n=>{t.forEach((i=>{n.delete(i)}))}));return e.set("authorized",r)},[dR]:(e,{payload:t})=>e.set("configs",t),[hR]:(e,{payload:t})=>e.set("authorized",(0,H.fromJS)(t.authorized))},nt=(function(e){var t={};return _e.d(t,e),t})({createSelector:function(){return L6}});const Em=e=>e,Zbe=(0,nt.createSelector)(Em,(e=>e.get("showDefinitions"))),Qbe=(0,nt.createSelector)(Em,(()=>({specSelectors:e})=>{let t=e.securityDefinitions()||(0,H.Map)({}),r=(0,H.List)();return t.entrySeq().forEach((([n,i])=>{let s=(0,H.Map)();s=s.set(n,i),r=r.push(s)})),r})),e_e=(e,t)=>({specSelectors:r})=>(0,H.List)(r.isOAS3()?["components","securitySchemes",t]:["securityDefinitions",t]),t_e=(e,t)=>({specSelectors:r})=>{console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let n=r.securityDefinitions(),i=(0,H.List)();return t.valueSeq().forEach((s=>{let a=(0,H.Map)();s.entrySeq().forEach((([o,u])=>{let c,l=n.get(o);l.get("type")==="oauth2"&&u.size&&(c=l.get("scopes"),c.keySeq().forEach((f=>{u.contains(f)||(c=c.delete(f))})),l=l.set("allowedScopes",c)),a=a.set(o,l)})),i=i.push(a)})),i},r_e=(e,t=(0,H.List)())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||(0,H.List)();let i=(0,H.List)();return n.forEach((s=>{let a=t.find((o=>o.get(s.keySeq().first())));a&&(s.forEach(((o,u)=>{if(o.get("type")==="oauth2"){const c=a.get(u);let l=o.get("scopes");H.List.isList(c)&&H.Map.isMap(l)&&(l.keySeq().forEach((f=>{c.contains(f)||(l=l.delete(f))})),s=s.set(u,o.set("scopes",l)))}})),i=i.push(s))})),i},n_e=(0,nt.createSelector)(Em,(e=>e.get("authorized")||(0,H.Map)())),i_e=(e,t)=>({authSelectors:r})=>{let n=r.authorized();return H.List.isList(t)?!!t.toJS().filter((i=>Object.keys(i).map((s=>!!n.get(s))).indexOf(!1)===-1)).length:null},s_e=(0,nt.createSelector)(Em,(e=>e.get("configs"))),a_e=(e,{authSelectors:t,specSelectors:r})=>({path:n,method:i,operation:s,extras:a})=>{let o={authorized:t.authorized()&&t.authorized().toJS(),definitions:r.securityDefinitions()&&r.securityDefinitions().toJS(),specSecurity:r.security()&&r.security().toJS()};return e({path:n,method:i,operation:s,securities:o,...a})},o_e=(e,t)=>r=>{const{getConfigs:n,authActions:i}=t,s=n();if(e(r),s.persistAuthorization){const a=localStorage.getItem("authorized");a&&i.restoreAuthorization({authorized:JSON.parse(a)})}},u_e=(e,t)=>r=>{if(e(r),t.getConfigs().persistAuthorization)try{const[{schema:n,value:i}]=Object.values(r),s=n.get("type")==="apiKey",a=n.get("in")==="cookie";s&&a&&(document.cookie=`${n.get("name")}=${i}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},c_e=(e,t)=>r=>{const n=t.getConfigs(),i=t.authSelectors.authorized();try{n.persistAuthorization&&Array.isArray(r)&&r.forEach((s=>{const a=i.get(s,{}),o=a.getIn(["schema","type"])==="apiKey",u=a.getIn(["schema","in"])==="cookie";if(o&&u){const c=a.getIn(["schema","name"]);document.cookie=`${c}=; Max-Age=-99999999`}}))}catch(s){console.error("Error deleting cookie based apiKey from document.cookie.",s)}e(r)};var mn=(function(e){var t={};return _e.d(t,e),t})({default:function(){return PJ}}),mR=(function(e){var t={};return _e.d(t,e),t})({default:function(){return OY}});class l_e extends p.default.Component{mapStateToProps(t,r){return{state:t,ownProps:(0,mR.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:t,ownProps:r}=this.props,n=t("LockIcon");return p.default.createElement(n,r)}}var tL=l_e;class f_e extends p.default.Component{mapStateToProps(t,r){return{state:t,ownProps:(0,mR.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:t,ownProps:r}=this.props,n=t("UnlockIcon");return p.default.createElement(n,r)}}var rL=f_e;function Z7(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=d_e.bind(null,e),this.rootInjects.preauthorizeBasic=p_e.bind(null,e)},components:{LockAuthIcon:tL,UnlockAuthIcon:rL,LockAuthOperationIcon:tL,UnlockAuthOperationIcon:rL},statePlugins:{auth:{reducers:Xbe,actions:RA,selectors:IA,wrapActions:{authorize:u_e,logout:c_e}},configs:{wrapActions:{loaded:o_e}},spec:{wrapActions:{execute:a_e}}}}}function p_e(e,t,r,n){const{authActions:{authorize:i},specSelectors:{specJson:s,isOAS3:a}}=e,o=a()?["components","securitySchemes"]:["securityDefinitions"],u=s().getIn([...o,t]);return u?i({[t]:{value:{username:r,password:n},schema:u.toJS()}}):null}function d_e(e,t,r){const{authActions:{authorize:n},specSelectors:{specJson:i,isOAS3:s}}=e,a=s()?["components","securitySchemes"]:["securityDefinitions"],o=i().getIn([...a,t]);return o?n({[t]:{value:r,schema:o.toJS()}}):null}var ds=(function(e){var t={};return _e.d(t,e),t})({JSON_SCHEMA:function(){return dc},default:function(){return Ta}});const gR="configs_update",yR="configs_toggle";function h_e(e,t){return{type:gR,payload:{[e]:t}}}function m_e(e){return{type:yR,payload:e}}const g_e=()=>()=>{},y_e=e=>t=>{const{fn:{fetch:r}}=t;return r(e)},v_e=(e,t)=>r=>{const{specActions:n,configsActions:i}=r;if(e)return i.downloadConfig(e).then(s,s);function s(a){a instanceof Error||a.status>=400?(n.updateLoadingStatus("failedConfig"),n.updateLoadingStatus("failedConfig"),n.updateUrl(""),console.error(a.statusText+" "+e.url),t(null)):t(((o,u)=>{try{return ds.default.load(o)}catch(c){return u&&u.errActions.newThrownErr(new Error(c)),{}}})(a.text,r))}},b_e=(e,t)=>e.getIn(Array.isArray(t)?t:[t]);var __e={[gR]:(e,t)=>e.merge((0,H.fromJS)(t.payload)),[yR]:(e,t)=>{const r=t.payload,n=e.get(r);return e.set(r,!n)}};function Q7(){return{statePlugins:{configs:{reducers:__e,actions:TA,selectors:jA}}}}const Uw=e=>e?history.pushState(null,null,`#${e}`):window.location.hash="";var E_e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return HZ}});const nL="layout_scroll_to",iL="layout_clear_scroll";var S_e={fn:{getScrollParent:function(t,r){const n=document.documentElement;let i=getComputedStyle(t);const s=i.position==="absolute",a=r?/(auto|scroll|hidden)/:/(auto|scroll)/;if(i.position==="fixed")return n;for(let o=t;o=o.parentElement;)if(i=getComputedStyle(o),(!s||i.position!=="static")&&a.test(i.overflow+i.overflowY+i.overflowX))return o;return n}},statePlugins:{layout:{actions:{scrollToElement:(e,t)=>r=>{try{t=t||r.fn.getScrollParent(e),E_e.default.createScroller(t).to(e)}catch(n){console.error(n)}},scrollTo:e=>({type:nL,payload:Array.isArray(e)?e:[e]}),clearScrollTo:()=>({type:iL}),readyToScroll:(e,t)=>r=>{const n=r.layoutSelectors.getScrollToKey();H.default.is(n,(0,H.fromJS)(e))&&(r.layoutActions.scrollToElement(t),r.layoutActions.clearScrollTo())},parseDeepLinkHash:e=>({layoutActions:t,layoutSelectors:r,getConfigs:n})=>{if(n().deepLinking&&e){let i=e.slice(1);i[0]==="!"&&(i=i.slice(1)),i[0]==="/"&&(i=i.slice(1));const s=i.split("/").map((l=>l||"")),a=r.isShownKeyFromUrlHashArray(s),[o,u="",c=""]=a;if(o==="operations"){const l=r.isShownKeyFromUrlHashArray([u]);u.indexOf("_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),t.show(l.map((f=>f.replace(/_/g," "))),!0)),t.show(l,!0)}(u.indexOf("_")>-1||c.indexOf("_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),t.show(a.map((l=>l.replace(/_/g," "))),!0)),t.show(a,!0),t.scrollTo(a)}}},selectors:{getScrollToKey:e=>e.get("scrollToKey"),isShownKeyFromUrlHashArray(e,t){const[r,n]=t;return n?["operations",r,n]:r?["operations-tag",r]:[]},urlHashArrayFromIsShownKey(e,t){let[r,n,i]=t;return r=="operations"?[n,i]:r=="operations-tag"?[n]:[]}},reducers:{[nL]:(e,t)=>e.set("scrollToKey",H.default.fromJS(t.payload)),[iL]:e=>e.delete("scrollToKey")},wrapActions:{show:(e,{getConfigs:t,layoutSelectors:r})=>(...n)=>{if(e(...n),t().deepLinking)try{let[i,s]=n;i=Array.isArray(i)?i:[i];const a=r.urlHashArrayFromIsShownKey(i);if(!a.length)return;const[o,u]=a;if(!s)return Uw("/");a.length===2?Uw(Ic(`/${encodeURIComponent(o)}/${encodeURIComponent(u)}`)):a.length===1&&Uw(Ic(`/${encodeURIComponent(o)}`))}catch(i){console.error(i)}}}}}},sL=(function(e){var t={};return _e.d(t,e),t})({default:function(){return YQ}}),w_e=(e,t)=>class extends p.default.Component{constructor(){super(...arguments);Y(this,"onLoad",i=>{const{operation:s}=this.props,{tag:a,operationId:o}=s.toObject();let{isShownKey:u}=s.toObject();u=u||["operations",a,o],t.layoutActions.readyToScroll(u,i)})}render(){return p.default.createElement("span",{ref:this.onLoad},p.default.createElement(e,this.props))}},x_e=(e,t)=>class extends p.default.Component{constructor(){super(...arguments);Y(this,"onLoad",i=>{const{tag:s}=this.props,a=["operations-tag",s];t.layoutActions.readyToScroll(a,i)})}render(){return p.default.createElement("span",{ref:this.onLoad},p.default.createElement(e,this.props))}};function eV(){return[S_e,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>(...r)=>{e(...r);const n=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:w_e,OperationTag:x_e}}]}var A_e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return eee}});function O_e(e){return e.map((t=>{let r="is not of a type(s)",n=t.get("message").indexOf(r);if(n>-1){let i=t.get("message").slice(n+19).split(",");return t.set("message",t.get("message").slice(0,n)+(function(a){return a.reduce(((o,u,c,l)=>c===l.length-1&&l.length>1?o+"or "+u:l[c+1]&&l.length>2?o+u+", ":l[c+1]?o+u+" ":o+u),"should be a")})(i))}return t}))}var ZA=(function(e){var t={};return _e.d(t,e),t})({default:function(){return ree}});function C_e(e,{jsSpec:t}){return e}const R_e=[PA,kA];function Bu(e){let t={jsSpec:{}};return(0,A_e.default)(R_e,((n,i)=>{try{return i.transform(n,t).filter((s=>!!s))}catch(s){return console.error("Transformer error:",s),n}}),e).filter((n=>!!n)).map((n=>(!n.get("line")&&n.get("path"),n)))}let Vw={line:0,level:"error",message:"Unknown error"};const tV=(0,nt.createSelector)((e=>e),(e=>e.get("errors",(0,H.List)()))),I_e=(0,nt.createSelector)(tV,(e=>e.last()));function rV(e){return{statePlugins:{err:{reducers:{[bm]:(t,{payload:r})=>{let n=Object.assign(Vw,r,{type:"thrown"});return t.update("errors",(i=>(i||(0,H.List)()).push((0,H.fromJS)(n)))).update("errors",(i=>Bu(i)))},[rR]:(t,{payload:r})=>(r=r.map((n=>(0,H.fromJS)(Object.assign(Vw,n,{type:"thrown"})))),t.update("errors",(n=>(n||(0,H.List)()).concat((0,H.fromJS)(r)))).update("errors",(n=>Bu(n)))),[nR]:(t,{payload:r})=>{let n=(0,H.fromJS)(r);return n=n.set("type","spec"),t.update("errors",(i=>(i||(0,H.List)()).push((0,H.fromJS)(n)).sortBy((s=>s.get("line"))))).update("errors",(i=>Bu(i)))},[iR]:(t,{payload:r})=>(r=r.map((n=>(0,H.fromJS)(Object.assign(Vw,n,{type:"spec"})))),t.update("errors",(n=>(n||(0,H.List)()).concat((0,H.fromJS)(r)))).update("errors",(n=>Bu(n)))),[sR]:(t,{payload:r})=>{let n=(0,H.fromJS)(Object.assign({},r));return n=n.set("type","auth"),t.update("errors",(i=>(i||(0,H.List)()).push((0,H.fromJS)(n)))).update("errors",(i=>Bu(i)))},[aR]:(t,{payload:r})=>{if(!r||!t.get("errors"))return t;let n=t.get("errors").filter((i=>i.keySeq().every((s=>{const a=i.get(s),o=r[s];return!o||a!==o}))));return t.merge({errors:n})},[oR]:(t,{payload:r})=>{if(!r||typeof r!="function")return t;let n=t.get("errors").filter((i=>r(i)));return t.merge({errors:n})}},actions:CA,selectors:NA}}}}function T_e(e,t){return e.filter(((r,n)=>n.indexOf(t)!==-1))}function nV(){return{fn:{opsFilter:T_e}}}var Ct=(function(e){var t={};return _e.d(t,e),t})({default:function(){return vx}}),j_e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Ct.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),P_e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Ct.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),k_e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Ct.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),N_e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Ct.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),M_e=({className:e=null,width:t=15,height:r=16,...n})=>p.default.createElement("svg",(0,Ct.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("g",{transform:"translate(2, -1)"},p.default.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))),D_e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Ct.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),q_e=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Ct.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),p.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),iV=()=>({components:{ArrowUpIcon:j_e,ArrowDownIcon:P_e,ArrowIcon:k_e,CloseIcon:N_e,CopyIcon:M_e,LockIcon:D_e,UnlockIcon:q_e}});const vR="layout_update_layout",bR="layout_update_filter",_R="layout_update_mode",ER="layout_show";function $_e(e){return{type:vR,payload:e}}function F_e(e){return{type:bR,payload:e}}function B_e(e,t=!0){return e=Qa(e),{type:ER,payload:{thing:e,shown:t}}}function L_e(e,t=""){return e=Qa(e),{type:_R,payload:{thing:e,mode:t}}}var U_e={[vR]:(e,t)=>e.set("layout",t.payload),[bR]:(e,t)=>e.set("filter",t.payload),[ER]:(e,t)=>{const r=t.payload.shown,n=(0,H.fromJS)(t.payload.thing);return e.update("shown",(0,H.fromJS)({}),(i=>i.set(n,r)))},[_R]:(e,t)=>{let r=t.payload.thing,n=t.payload.mode;return e.setIn(["modes"].concat(r),(n||"")+"")}};const V_e=e=>e.get("layout"),z_e=e=>e.get("filter"),sV=(e,t,r)=>(t=Qa(t),e.get("shown",(0,H.fromJS)({})).get((0,H.fromJS)(t),r)),W_e=(e,t,r="")=>(t=Qa(t),e.getIn(["modes",...t],r)),J_e=(0,nt.createSelector)((e=>e),(e=>!sV(e,"editor"))),K_e=(e,t)=>(r,...n)=>{let i=e(r,...n);const{fn:s,layoutSelectors:a,getConfigs:o}=t.getSystem(),u=o(),{maxDisplayedTags:c}=u;let l=a.currentFilter();return l&&l!==!0&&(i=s.opsFilter(i,l)),c>=0&&(i=i.slice(0,c)),i};function aV(){return{statePlugins:{layout:{reducers:U_e,actions:MA,selectors:DA},spec:{wrapSelectors:qA}}}}function oV({configs:e}){const t={debug:0,info:1,log:2,warn:3,error:4},r=a=>t[a]||-1;let{logLevel:n}=e,i=r(n);function s(a,...o){r(a)>=i&&console[a](...o)}return s.warn=s.bind(null,"warn"),s.error=s.bind(null,"error"),s.info=s.bind(null,"info"),s.debug=s.bind(null,"debug"),{rootInjects:{log:s}}}let zw=!1;function uV(){return{statePlugins:{spec:{wrapActions:{updateSpec:e=>(...t)=>(zw=!0,e(...t)),updateJsonSpec:(e,t)=>(...r)=>{const n=t.getConfigs().onComplete;return zw&&typeof n=="function"&&(setTimeout(n,0),zw=!1),e(...r)}}}}}}const aL=e=>{const t="_**[]";return e.indexOf(t)<0?e:e.split(t)[0].trim()},H_e=e=>e==="-d "||/^[_\/-]/g.test(e)?e:"'"+e.replace(/'/g,"'\\''")+"'",G_e=e=>(e=e.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^
317
+ `))==="-d "?e.replace(/-d /g,`-d ^
318
+ `):/^[_\/-]/g.test(e)?e:'"'+e+'"',Y_e=e=>e==="-d "?e:/\n/.test(e)?`@"
319
+ ${e.replace(/`/g,"``").replace(/\$/g,"`$")}
320
+ "@`:/^[_\/-]/.test(e)?e:`'${e.replace(/'/g,"''")}'`,SR=(e,t,r,n="")=>{let i=!1,s="";const a=(...d)=>s+=" "+d.map(t).join(" "),o=(...d)=>s+=d.map(t).join(" "),u=()=>s+=` ${r}`,c=(d=1)=>s+=" ".repeat(d);let l=e.get("headers");s+="curl"+n;const f=e.get("curlOptions");if(H.List.isList(f)&&!f.isEmpty()&&a(...e.get("curlOptions")),a("-X",e.get("method")),u(),c(),o(`${e.get("url")}`),l&&l.size)for(let d of e.get("headers").entries()){u(),c();let[g,y]=d;o("-H",`${g}: ${y}`),i=i||/^content-type$/i.test(g)&&/^multipart\/form-data$/i.test(y)}const h=e.get("body");if(h)if(i&&["POST","PUT","PATCH"].includes(e.get("method")))for(let[d,g]of h.entrySeq()){let y=aL(d);u(),c(),o("-F"),g instanceof Zt.File&&typeof g.valueOf()=="string"?a(`${y}=${g.data}${g.type?`;type=${g.type}`:""}`):g instanceof Zt.File?a(`${y}=@${g.name}${g.type?`;type=${g.type}`:""}`):a(`${y}=${g}`)}else if(h instanceof Zt.File)u(),c(),o(`--data-binary '@${h.name}'`);else{u(),c(),o("-d ");let d=h;H.Map.isMap(d)?o((function(y){let v=[];for(let[_,b]of y.get("body").entrySeq()){let E=aL(_);b instanceof Zt.File?v.push(` "${E}": {
321
+ "name": "${b.name}"${b.type?`,
322
+ "type": "${b.type}"`:""}
323
+ }`):v.push(` "${E}": ${JSON.stringify(b,null,2).replace(/(\r\n|\r|\n)/g,`
324
+ `)}`)}return`{
325
+ ${v.join(`,
326
+ `)}
327
+ }`})(e)):(typeof d!="string"&&(d=JSON.stringify(d)),o(d))}else h||e.get("method")!=="POST"||(u(),c(),o("-d ''"));return s},X_e=e=>SR(e,Y_e,"`\n",".exe"),cV=e=>SR(e,H_e,`\\
328
+ `),Z_e=e=>SR(e,G_e,`^
329
+ `),wR=e=>e||(0,H.Map)(),lV=(0,nt.createSelector)(wR,(e=>{const t=e.get("languages"),r=e.get("generators",(0,H.Map)());return!t||t.isEmpty()?r:r.filter(((n,i)=>t.includes(i)))})),Q_e=e=>({fn:t})=>lV(e).map(((r,n)=>{const i=(s=>t[`requestSnippetGenerator_${s}`])(n);return typeof i!="function"?null:r.set("fn",i)})).filter((r=>r)),eEe=(0,nt.createSelector)(wR,(e=>e.get("activeLanguage"))),tEe=(0,nt.createSelector)(wR,(e=>e.get("defaultExpanded")));var Rt=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Mee}}),Sm=(function(e){var t={};return _e.d(t,e),t})({CopyToClipboard:function(){return Bee.CopyToClipboard}});const rEe={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(250, 250, 250)",paddingBottom:"0",paddingTop:"0",border:"1px solid rgb(51, 51, 51)",borderRadius:"4px 4px 0 0",boxShadow:"none",borderBottom:"none"},nEe={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(51, 51, 51)",boxShadow:"none",border:"1px solid rgb(51, 51, 51)",paddingBottom:"0",paddingTop:"0",borderRadius:"4px 4px 0 0",marginTop:"-5px",marginRight:"-5px",marginLeft:"-5px",zIndex:"9999",borderBottom:"none"};var iEe=({request:e,requestSnippetsSelectors:t,getComponent:r})=>{var _;const n=(0,p.useRef)(null),i=r("ArrowUpIcon"),s=r("ArrowDownIcon"),a=r("SyntaxHighlighter",!0),[o,u]=(0,p.useState)((_=t.getSnippetGenerators())==null?void 0:_.keySeq().first()),[c,l]=(0,p.useState)(t==null?void 0:t.getDefaultExpanded()),f=t.getSnippetGenerators(),h=f.get(o),d=h.get("fn")(e),g=()=>{l(!c)},y=b=>b===o?nEe:rEe,v=b=>{const{target:E,deltaY:w}=b,{scrollHeight:S,offsetHeight:A,scrollTop:R}=E;S>A&&(R===0&&w<0||A+R>=S&&w>0)&&b.preventDefault()};return(0,p.useEffect)((()=>{}),[]),(0,p.useEffect)((()=>{const b=Array.from(n.current.childNodes).filter((E=>{var w;return!!E.nodeType&&((w=E.classList)==null?void 0:w.contains("curl-command"))}));return b.forEach((E=>E.addEventListener("mousewheel",v,{passive:!1}))),()=>{b.forEach((E=>E.removeEventListener("mousewheel",v)))}}),[e]),p.default.createElement("div",{className:"request-snippets",ref:n},p.default.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},p.default.createElement("h4",{onClick:()=>g(),style:{cursor:"pointer"}},"Snippets"),p.default.createElement("button",{onClick:()=>g(),style:{border:"none",background:"none"},title:c?"Collapse operation":"Expand operation"},c?p.default.createElement(s,{className:"arrow",width:"10",height:"10"}):p.default.createElement(i,{className:"arrow",width:"10",height:"10"}))),c&&p.default.createElement("div",{className:"curl-command"},p.default.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},f.entrySeq().map((([b,E])=>p.default.createElement("div",{className:(0,Rt.default)("btn",{active:b===o}),style:y(b),key:b,onClick:()=>(w=>{o!==w&&u(w)})(b)},p.default.createElement("h4",{style:b===o?{color:"white"}:{}},E.get("title")))))),p.default.createElement("div",{className:"copy-to-clipboard"},p.default.createElement(Sm.CopyToClipboard,{text:d},p.default.createElement("button",null))),p.default.createElement("div",null,p.default.createElement(a,{language:h.get("syntax"),className:"curl microlight",renderPlainText:({children:b,PlainTextViewer:E})=>p.default.createElement(E,{className:"curl"},b)},d))))},fV=()=>({components:{RequestSnippets:iEe},fn:{requestSnippetGenerator_curl_bash:cV,requestSnippetGenerator_curl_cmd:Z_e,requestSnippetGenerator_curl_powershell:X_e},statePlugins:{requestSnippets:{selectors:$A}}});const Ud=class Ud extends p.Component{constructor(r,n){super(r,n);Y(this,"toggleCollapsed",()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})});Y(this,"onLoad",r=>{if(r&&this.props.layoutSelectors){const n=this.props.layoutSelectors.getScrollToKey();H.default.is(n,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,r.parentElement)}});let{expanded:i,collapsedContent:s}=this.props;this.state={expanded:i,collapsedContent:s||Ud.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:r,expanded:n,modelName:i}=this.props;r&&n&&this.props.onToggle(i,n)}UNSAFE_componentWillReceiveProps(r){this.props.expanded!==r.expanded&&this.setState({expanded:r.expanded})}render(){const{title:r,classes:n}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?p.default.createElement("span",{className:n||""},this.props.children):p.default.createElement("span",{className:n||"",ref:this.onLoad},p.default.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},r&&p.default.createElement("span",{className:"pointer"},r),p.default.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&p.default.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}};Y(Ud,"defaultProps",{collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:H.default.List([])});let QA=Ud;const sEe=({initialTab:e,isExecute:t,schema:r,example:n})=>{const i=(0,p.useMemo)((()=>({example:"example",model:"model"})),[]),s=(0,p.useMemo)((()=>Object.keys(i)),[i]).includes(e)&&r&&!t?e:i.example,a=(l=>{const f=(0,p.useRef)();return(0,p.useEffect)((()=>{f.current=l})),f.current})(t),[o,u]=(0,p.useState)(s),c=(0,p.useCallback)((l=>{u(l.target.dataset.name)}),[]);return(0,p.useEffect)((()=>{a&&!t&&n&&u(i.example)}),[a,t,n]),{activeTab:o,onTabChange:c,tabs:i}};var aEe=({schema:e,example:t,isExecute:r=!1,specPath:n,includeWriteOnly:i=!1,includeReadOnly:s=!1,getComponent:a,getConfigs:o,specSelectors:u})=>{const{defaultModelRendering:c,defaultModelExpandDepth:l}=o(),f=a("ModelWrapper"),h=a("HighlightCode",!0),d=xo()(5).toString("base64"),g=xo()(5).toString("base64"),y=xo()(5).toString("base64"),v=xo()(5).toString("base64"),_=u.isOAS3(),{activeTab:b,tabs:E,onTabChange:w}=sEe({initialTab:c,isExecute:r,schema:e,example:t});return p.default.createElement("div",{className:"model-example"},p.default.createElement("ul",{className:"tab",role:"tablist"},p.default.createElement("li",{className:(0,Rt.default)("tabitem",{active:b===E.example}),role:"presentation"},p.default.createElement("button",{"aria-controls":g,"aria-selected":b===E.example,className:"tablinks","data-name":"example",id:d,onClick:w,role:"tab"},r?"Edit Value":"Example Value")),e&&p.default.createElement("li",{className:(0,Rt.default)("tabitem",{active:b===E.model}),role:"presentation"},p.default.createElement("button",{"aria-controls":v,"aria-selected":b===E.model,className:(0,Rt.default)("tablinks",{inactive:r}),"data-name":"model",id:y,onClick:w,role:"tab"},_?"Schema":"Model"))),b===E.example&&p.default.createElement("div",{"aria-hidden":b!==E.example,"aria-labelledby":d,"data-name":"examplePanel",id:g,role:"tabpanel",tabIndex:"0"},t||p.default.createElement(h,null,"(no example available")),b===E.model&&p.default.createElement("div",{className:"model-container","aria-hidden":b===E.example,"aria-labelledby":y,"data-name":"modelPanel",id:v,role:"tabpanel",tabIndex:"0"},p.default.createElement(f,{schema:e,getComponent:a,getConfigs:o,specSelectors:u,expandDepth:l,specPath:n,includeReadOnly:s,includeWriteOnly:i})))};class oEe extends p.Component{constructor(){super(...arguments);Y(this,"onToggle",(r,n)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,n)})}render(){let{getComponent:r,getConfigs:n}=this.props;const i=r("Model");let s;return this.props.layoutSelectors&&(s=this.props.layoutSelectors.isShown(this.props.fullPath)),p.default.createElement("div",{className:"model-box"},p.default.createElement(i,(0,Ct.default)({},this.props,{getConfigs:n,expanded:s,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}var oL,uEe=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Qee}});function eO(){return eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eO.apply(null,arguments)}var pV=e=>p.createElement("svg",eO({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"rolling-load_svg__lds-rolling",preserveAspectRatio:"xMidYMid",style:{backgroundImage:"none",backgroundPosition:"initial initial",backgroundRepeat:"initial initial"},viewBox:"0 0 100 100"},e),oL||(oL=p.createElement("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},p.createElement("animateTransform",{attributeName:"transform",begin:"0s",calcMode:"linear",dur:"1s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"}))));const uL=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class dV extends uEe.default{constructor(){super(...arguments);Y(this,"getModelName",r=>r.indexOf("#/definitions/")!==-1?uL(r.replace(/^.*#\/definitions\//,"")):r.indexOf("#/components/schemas/")!==-1?uL(r.replace(/^.*#\/components\/schemas\//,"")):void 0);Y(this,"getRefSchema",r=>{let{specSelectors:n}=this.props;return n.findDefinition(r)})}render(){let{getComponent:r,getConfigs:n,specSelectors:i,schema:s,required:a,name:o,isRef:u,specPath:c,displayName:l,includeReadOnly:f,includeWriteOnly:h}=this.props;const d=r("ObjectModel"),g=r("ArrayModel"),y=r("PrimitiveModel");let v="object",_=s&&s.get("$$ref"),b=s&&s.get("$ref");if(!o&&_&&(o=this.getModelName(_)),b){const w=this.getModelName(b),S=this.getRefSchema(w);H.Map.isMap(S)?(s=S.mergeDeep(s),_||(s=s.set("$$ref",b),_=b)):H.Map.isMap(s)&&s.size===1&&(s=null,o=b)}if(!s)return p.default.createElement("span",{className:"model model-title"},p.default.createElement("span",{className:"model-title__text"},l||o),!b&&p.default.createElement(pV,{height:"20px",width:"20px"}));const E=i.isOAS3()&&s.get("deprecated");switch(u=u!==void 0?u:!!_,v=s&&s.get("type")||v,v){case"object":return p.default.createElement(d,(0,Ct.default)({className:"object"},this.props,{specPath:c,getConfigs:n,schema:s,name:o,deprecated:E,isRef:u,includeReadOnly:f,includeWriteOnly:h}));case"array":return p.default.createElement(g,(0,Ct.default)({className:"array"},this.props,{getConfigs:n,schema:s,name:o,deprecated:E,required:a,includeReadOnly:f,includeWriteOnly:h}));default:return p.default.createElement(y,(0,Ct.default)({},this.props,{getComponent:r,getConfigs:n,schema:s,name:o,deprecated:E,required:a}))}}}Y(dV,"propTypes",{schema:sL.default.map.isRequired,getComponent:mn.default.func.isRequired,getConfigs:mn.default.func.isRequired,specSelectors:mn.default.object.isRequired,name:mn.default.string,displayName:mn.default.string,isRef:mn.default.bool,required:mn.default.bool,expandDepth:mn.default.number,depth:mn.default.number,specPath:sL.default.list.isRequired,includeReadOnly:mn.default.bool,includeWriteOnly:mn.default.bool});class cEe extends p.Component{constructor(){super(...arguments);Y(this,"getSchemaBasePath",()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"]);Y(this,"getCollapsedContent",()=>" ");Y(this,"handleToggle",(r,n)=>{const{layoutActions:i}=this.props;i.show([...this.getSchemaBasePath(),r],n),n&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),r])});Y(this,"onLoadModels",r=>{r&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),r)});Y(this,"onLoadModel",r=>{if(r){const n=r.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),n],r)}})}render(){let{specSelectors:r,getComponent:n,layoutSelectors:i,layoutActions:s,getConfigs:a}=this.props,o=r.definitions(),{docExpansion:u,defaultModelsExpandDepth:c}=a();if(!o.size||c<0)return null;const l=this.getSchemaBasePath();let f=i.isShown(l,c>0&&u!=="none");const h=r.isOAS3(),d=n("ModelWrapper"),g=n("Collapse"),y=n("ModelCollapse"),v=n("JumpToPath",!0),_=n("ArrowUpIcon"),b=n("ArrowDownIcon");return p.default.createElement("section",{className:f?"models is-open":"models",ref:this.onLoadModels},p.default.createElement("h4",null,p.default.createElement("button",{"aria-expanded":f,className:"models-control",onClick:()=>s.show(l,!f)},p.default.createElement("span",null,h?"Schemas":"Models"),f?p.default.createElement(_,null):p.default.createElement(b,null))),p.default.createElement(g,{isOpened:f},o.entrySeq().map((([E])=>{const w=[...l,E],S=H.default.List(w),A=r.specResolvedSubtree(w),R=r.specJson().getIn(w),T=H.Map.isMap(A)?A:H.default.Map(),O=H.Map.isMap(R)?R:H.default.Map(),D=T.get("title")||O.get("title")||E,N=i.isShown(w,!1);N&&T.size===0&&O.size>0&&this.props.specActions.requestResolvedSubtree(w);const $=p.default.createElement(d,{name:E,expandDepth:c,schema:T||H.default.Map(),displayName:D,fullPath:w,specPath:S,getComponent:n,specSelectors:r,getConfigs:a,layoutSelectors:i,layoutActions:s,includeReadOnly:!0,includeWriteOnly:!0}),M=p.default.createElement("span",{className:"model-box"},p.default.createElement("span",{className:"model model-title"},D));return p.default.createElement("div",{id:`model-${E}`,className:"model-container",key:`models-section-${E}`,"data-name":E,ref:this.onLoadModel},p.default.createElement("span",{className:"models-jump-to-path"},p.default.createElement(v,{path:S})),p.default.createElement(y,{classes:"model-box",collapsedContent:this.getCollapsedContent(E),onToggle:this.handleToggle,title:M,displayName:D,modelName:E,specPath:S,layoutSelectors:i,layoutActions:s,hideSelfOnExpand:!0,expanded:c>0&&N},$))})).toArray()))}}var lEe=({value:e,getComponent:t})=>{let r=t("ModelCollapse"),n=p.default.createElement("span",null,"Array [ ",e.count()," ]");return p.default.createElement("span",{className:"prop-enum"},"Enum:",p.default.createElement("br",null),p.default.createElement(r,{collapsedContent:n},"[ ",e.map(String).join(", ")," ]"))};function tO(e){return e.match(/^(?:[a-z]+:)?\/\//i)}function fEe(e,t){return e?tO(e)?(function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n})(e):new URL(e,t).href:t}function Oi(e,t,{selectedServer:r=""}={}){try{return(function(i,s,{selectedServer:a=""}={}){if(!i)return;if(tO(i))return i;const o=fEe(a,s);return tO(o)?new URL(i,o).href:new URL(i,window.location.href).href})(e,t,{selectedServer:r})}catch{return}}function hr(e){if(typeof e!="string"||e.trim()==="")return"";const t=e.trim(),r="about:blank";try{const n=`https://base${String(Math.random()).slice(2)}`,i=new URL(t,n),s=i.protocol.slice(0,-1);return["javascript","data","vbscript"].includes(s.toLowerCase())?r:i.origin===n?t.startsWith("/")?`${i.pathname}${i.search}${i.hash}`:t.startsWith("./")?`.${i.pathname}${i.search}${i.hash}`:t.startsWith("../")?`..${i.pathname}${i.search}${i.hash}`:`${i.pathname.substring(1)}${i.search}${i.hash}`:String(i)}catch{return r}}class pEe extends p.Component{render(){let{schema:t,name:r,displayName:n,isRef:i,getComponent:s,getConfigs:a,depth:o,onToggle:u,expanded:c,specPath:l,...f}=this.props,{specSelectors:h,expandDepth:d,includeReadOnly:g,includeWriteOnly:y}=f;const{isOAS3:v}=h,_=o>2||o===2&&l.last()!=="items";if(!t)return null;const{showExtensions:b}=a(),E=b?ua(t):(0,H.List)();let w=t.get("description"),S=t.get("properties"),A=t.get("additionalProperties"),R=t.get("title")||n||r,T=t.get("required"),O=t.filter(((z,de)=>["maxProperties","minProperties","nullable","example"].indexOf(de)!==-1)),D=t.get("deprecated"),N=t.getIn(["externalDocs","url"]),$=t.getIn(["externalDocs","description"]);const M=s("JumpToPath",!0),X=s("Markdown",!0),ee=s("Model"),J=s("ModelCollapse"),Q=s("Property"),te=s("Link"),re=s("ModelExtensions"),L=()=>p.default.createElement("span",{className:"model-jump-to-path"},p.default.createElement(M,{path:l})),K=p.default.createElement("span",null,p.default.createElement("span",null,"{"),"...",p.default.createElement("span",null,"}"),i?p.default.createElement(L,null):""),ne=h.isOAS3()?t.get("allOf"):null,ce=h.isOAS3()?t.get("anyOf"):null,ue=h.isOAS3()?t.get("oneOf"):null,se=h.isOAS3()?t.get("not"):null,V=R&&p.default.createElement("span",{className:"model-title"},i&&t.get("$$ref")&&p.default.createElement("span",{className:(0,Rt.default)("model-hint",{"model-hint--embedded":_})},t.get("$$ref")),p.default.createElement("span",{className:"model-title__text"},R));return p.default.createElement("span",{className:"model"},p.default.createElement(J,{modelName:r,title:V,onToggle:u,expanded:!!c||o<=d,collapsedContent:K},p.default.createElement("span",{className:"brace-open object"},"{"),i?p.default.createElement(L,null):null,p.default.createElement("span",{className:"inner-object"},p.default.createElement("table",{className:"model"},p.default.createElement("tbody",null,w?p.default.createElement("tr",{className:"description"},p.default.createElement("td",null,"description:"),p.default.createElement("td",null,p.default.createElement(X,{source:w}))):null,N&&p.default.createElement("tr",{className:"external-docs"},p.default.createElement("td",null,"externalDocs:"),p.default.createElement("td",null,p.default.createElement(te,{target:"_blank",href:hr(N)},$||N))),D?p.default.createElement("tr",{className:"property"},p.default.createElement("td",null,"deprecated:"),p.default.createElement("td",null,"true")):null,S&&S.size?S.entrySeq().filter((([,z])=>(!z.get("readOnly")||g)&&(!z.get("writeOnly")||y))).map((([z,de])=>{let ge=v()&&de.get("deprecated"),Ce=H.List.isList(T)&&T.contains(z),Pe=["property-row"];return ge&&Pe.push("deprecated"),Ce&&Pe.push("required"),p.default.createElement("tr",{key:z,className:Pe.join(" ")},p.default.createElement("td",null,z,Ce&&p.default.createElement("span",{className:"star"},"*")),p.default.createElement("td",null,p.default.createElement(ee,(0,Ct.default)({key:`object-${r}-${z}_${de}`},f,{required:Ce,getComponent:s,specPath:l.push("properties",z),getConfigs:a,schema:de,depth:o+1}))))})).toArray():null,E.size===0?null:p.default.createElement(p.default.Fragment,null,p.default.createElement("tr",null,p.default.createElement("td",null," ")),p.default.createElement(re,{extensions:E,propClass:"extension"})),A&&A.size?p.default.createElement("tr",null,p.default.createElement("td",null,"< * >:"),p.default.createElement("td",null,p.default.createElement(ee,(0,Ct.default)({},f,{required:!1,getComponent:s,specPath:l.push("additionalProperties"),getConfigs:a,schema:A,depth:o+1})))):null,ne?p.default.createElement("tr",null,p.default.createElement("td",null,"allOf ->"),p.default.createElement("td",null,ne.map(((z,de)=>p.default.createElement("div",{key:de},p.default.createElement(ee,(0,Ct.default)({},f,{required:!1,getComponent:s,specPath:l.push("allOf",de),getConfigs:a,schema:z,depth:o+1}))))))):null,ce?p.default.createElement("tr",null,p.default.createElement("td",null,"anyOf ->"),p.default.createElement("td",null,ce.map(((z,de)=>p.default.createElement("div",{key:de},p.default.createElement(ee,(0,Ct.default)({},f,{required:!1,getComponent:s,specPath:l.push("anyOf",de),getConfigs:a,schema:z,depth:o+1}))))))):null,ue?p.default.createElement("tr",null,p.default.createElement("td",null,"oneOf ->"),p.default.createElement("td",null,ue.map(((z,de)=>p.default.createElement("div",{key:de},p.default.createElement(ee,(0,Ct.default)({},f,{required:!1,getComponent:s,specPath:l.push("oneOf",de),getConfigs:a,schema:z,depth:o+1}))))))):null,se?p.default.createElement("tr",null,p.default.createElement("td",null,"not ->"),p.default.createElement("td",null,p.default.createElement("div",null,p.default.createElement(ee,(0,Ct.default)({},f,{required:!1,getComponent:s,specPath:l.push("not"),getConfigs:a,schema:se,depth:o+1}))))):null))),p.default.createElement("span",{className:"brace-close"},"}")),O.size?O.entrySeq().map((([z,de])=>p.default.createElement(Q,{key:`${z}-${de}`,propKey:z,propVal:de,propClass:"property"}))):null)}}class dEe extends p.Component{render(){let{getComponent:t,getConfigs:r,schema:n,depth:i,expandDepth:s,name:a,displayName:o,specPath:u}=this.props,c=n.get("description"),l=n.get("items"),f=n.get("title")||o||a,h=n.filter(((S,A)=>["type","items","description","$$ref","externalDocs"].indexOf(A)===-1)),d=n.getIn(["externalDocs","url"]),g=n.getIn(["externalDocs","description"]);const y=t("Markdown",!0),v=t("ModelCollapse"),_=t("Model"),b=t("Property"),E=t("Link"),w=f&&p.default.createElement("span",{className:"model-title"},p.default.createElement("span",{className:"model-title__text"},f));return p.default.createElement("span",{className:"model"},p.default.createElement(v,{title:w,expanded:i<=s,collapsedContent:"[...]"},"[",h.size?h.entrySeq().map((([S,A])=>p.default.createElement(b,{key:`${S}-${A}`,propKey:S,propVal:A,propClass:"property"}))):null,c?p.default.createElement(y,{source:c}):h.size?p.default.createElement("div",{className:"markdown"}):null,d&&p.default.createElement("div",{className:"external-docs"},p.default.createElement(E,{target:"_blank",href:hr(d)},g||d)),p.default.createElement("span",null,p.default.createElement(_,(0,Ct.default)({},this.props,{getConfigs:r,specPath:u.push("items"),name:null,schema:l,required:!1,depth:i+1}))),"]"))}}const rp="property primitive";class hEe extends p.Component{render(){let{schema:t,getComponent:r,getConfigs:n,name:i,displayName:s,depth:a,expandDepth:o}=this.props;const{showExtensions:u}=n();if(!t||!t.get)return p.default.createElement("div",null);let c=t.get("type"),l=t.get("format"),f=t.get("xml"),h=t.get("enum"),d=t.get("title")||s||i,g=t.get("description");const y=ua(t);let v=t.filter(((D,N)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(N)===-1)).filterNot(((D,N)=>y.has(N))),_=t.getIn(["externalDocs","url"]),b=t.getIn(["externalDocs","description"]);const E=r("Markdown",!0),w=r("EnumModel"),S=r("Property"),A=r("ModelCollapse"),R=r("Link"),T=r("ModelExtensions"),O=d&&p.default.createElement("span",{className:"model-title"},p.default.createElement("span",{className:"model-title__text"},d));return p.default.createElement("span",{className:"model"},p.default.createElement(A,{title:O,expanded:a<=o,collapsedContent:"[...]"},p.default.createElement("span",{className:"prop"},i&&a>1&&p.default.createElement("span",{className:"prop-name"},d),p.default.createElement("span",{className:"prop-type"},c),l&&p.default.createElement("span",{className:"prop-format"},"($",l,")"),v.size?v.entrySeq().map((([D,N])=>p.default.createElement(S,{key:`${D}-${N}`,propKey:D,propVal:N,propClass:rp}))):null,u&&y.size>0?p.default.createElement(T,{extensions:y,propClass:`${rp} extension`}):null,g?p.default.createElement(E,{source:g}):null,_&&p.default.createElement("div",{className:"external-docs"},p.default.createElement(R,{target:"_blank",href:hr(_)},b||_)),f&&f.size?p.default.createElement("span",null,p.default.createElement("br",null),p.default.createElement("span",{className:rp},"xml:"),f.entrySeq().map((([D,N])=>p.default.createElement("span",{key:`${D}-${N}`,className:rp},p.default.createElement("br",null),"   ",D,": ",String(N)))).toArray()):null,h&&p.default.createElement(w,{value:h,getComponent:r}))))}}class mEe extends p.default.Component{constructor(){super(...arguments);Y(this,"onChange",r=>{this.setScheme(r.target.value)});Y(this,"setScheme",r=>{let{path:n,method:i,specActions:s}=this.props;s.setScheme(r,n,i)})}UNSAFE_componentWillMount(){let{schemes:r}=this.props;this.setScheme(r.first())}UNSAFE_componentWillReceiveProps(r){this.props.currentScheme&&r.schemes.includes(this.props.currentScheme)||this.setScheme(r.schemes.first())}render(){let{schemes:r,currentScheme:n}=this.props;return p.default.createElement("label",{htmlFor:"schemes"},p.default.createElement("span",{className:"schemes-title"},"Schemes"),p.default.createElement("select",{onChange:this.onChange,value:n,id:"schemes"},r.valueSeq().map((i=>p.default.createElement("option",{value:i,key:i},i))).toArray()))}}class gEe extends p.default.Component{render(){const{specActions:t,specSelectors:r,getComponent:n}=this.props,i=r.operationScheme(),s=r.schemes(),a=n("schemes");return s&&s.size?p.default.createElement(a,{currentScheme:i,schemes:s,specActions:t}):null}}var hV=(function(e){var t={};return _e.d(t,e),t})({default:function(){return nte}});const eo={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,H.List)()};class mV extends p.Component{componentDidMount(){const{dispatchInitialValue:t,value:r,onChange:n}=this.props;t?n(r):t===!1&&n("")}render(){let{schema:t,errors:r,value:n,onChange:i,getComponent:s,fn:a,disabled:o}=this.props;const u=t&&t.get?t.get("format"):null,c=t&&t.get?t.get("type"):null,l=a.getSchemaObjectType(t),f=a.isFileUploadIntended(t);let h=g=>s(g,!1,{failSilently:!0}),d=c?h(u?`JsonSchema_${c}_${u}`:`JsonSchema_${c}`):s("JsonSchema_string");return f||!H.List.isList(c)||l!=="array"&&l!=="object"||(d=s("JsonSchema_object")),d||(d=s("JsonSchema_string")),p.default.createElement(d,(0,Ct.default)({},this.props,{errors:r,fn:a,getComponent:s,value:n,onChange:i,schema:t,disabled:o}))}}Y(mV,"defaultProps",eo);class gV extends p.Component{constructor(){super(...arguments);Y(this,"onChange",r=>{const n=this.props.schema&&this.props.schema.get("type")==="file"?r.target.files[0]:r.target.value;this.props.onChange(n,this.props.keyName)});Y(this,"onEnumChange",r=>this.props.onChange(r))}render(){let{getComponent:r,value:n,schema:i,errors:s,required:a,description:o,disabled:u}=this.props;const c=i&&i.get?i.get("enum"):null,l=i&&i.get?i.get("format"):null,f=i&&i.get?i.get("type"):null,h=i&&i.get?i.get("in"):null;if(n?(uf(n)||typeof n=="object")&&(n=Jr(n)):n="",s=s.toJS?s.toJS():[],c){const y=r("Select");return p.default.createElement(y,{className:s.length?"invalid":"",title:s.length?s:"",allowedValues:[...c],value:n,allowEmptyValue:!a,disabled:u,onChange:this.onEnumChange})}const d=u||h&&h==="formData"&&!("FormData"in window),g=r("Input");return f&&f==="file"?p.default.createElement(g,{type:"file",className:s.length?"invalid":"",title:s.length?s:"",onChange:this.onChange,disabled:d}):p.default.createElement(hV.default,{type:l&&l==="password"?"password":"text",className:s.length?"invalid":"",title:s.length?s:"",value:n,minLength:0,debounceTimeout:350,placeholder:o,onChange:this.onChange,disabled:d})}}Y(gV,"defaultProps",eo);class yV extends p.PureComponent{constructor(r,n){super(r,n);Y(this,"onChange",()=>{this.props.onChange(this.state.value)});Y(this,"onItemChange",(r,n)=>{this.setState((({value:i})=>({value:i.set(n,r)})),this.onChange)});Y(this,"removeItem",r=>{this.setState((({value:n})=>({value:n.delete(r)})),this.onChange)});Y(this,"addItem",()=>{const{fn:r}=this.props;let n=Ww(this.state.value);this.setState((()=>({value:n.push(r.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)});Y(this,"onEnumChange",r=>{this.setState((()=>({value:r})),this.onChange)});this.state={value:Ww(r.value),schema:r.schema}}UNSAFE_componentWillReceiveProps(r){const n=Ww(r.value);n!==this.state.value&&this.setState({value:n}),r.schema!==this.state.schema&&this.setState({schema:r.schema})}render(){let{getComponent:r,required:n,schema:i,errors:s,fn:a,disabled:o}=this.props;s=s.toJS?s.toJS():Array.isArray(s)?s:[];const u=s.filter((A=>typeof A=="string")),c=s.filter((A=>A.needRemove!==void 0)).map((A=>A.error)),l=this.state.value,f=!!(l&&l.count&&l.count()>0),h=i.getIn(["items","enum"]),d=i.get("items"),g=a.getSchemaObjectType(d),y=a.getSchemaObjectTypeLabel(d),v=i.getIn(["items","format"]),_=i.get("items");let b,E=!1,w=g==="file"||g==="string"&&v==="binary";if(g&&v?b=r(`JsonSchema_${g}_${v}`):g!=="boolean"&&g!=="array"&&g!=="object"||(b=r(`JsonSchema_${g}`)),!H.List.isList(d==null?void 0:d.get("type"))||g!=="array"&&g!=="object"||(b=r("JsonSchema_object")),b||w||(E=!0),h){const A=r("Select");return p.default.createElement(A,{className:s.length?"invalid":"",title:s.length?s:"",multiple:!0,value:l,disabled:o,allowedValues:h,allowEmptyValue:!n,onChange:this.onEnumChange})}const S=r("Button");return p.default.createElement("div",{className:"json-schema-array"},f?l.map(((A,R)=>{const T=(0,H.fromJS)([...s.filter((O=>O.index===R)).map((O=>O.error))]);return p.default.createElement("div",{key:R,className:"json-schema-form-item"},w?p.default.createElement(AR,{value:A,onChange:O=>this.onItemChange(O,R),disabled:o,errors:T,getComponent:r}):E?p.default.createElement(xR,{value:A,onChange:O=>this.onItemChange(O,R),disabled:o,errors:T}):p.default.createElement(b,(0,Ct.default)({},this.props,{value:A,onChange:O=>this.onItemChange(O,R),disabled:o,errors:T,schema:_,getComponent:r,fn:a})),o?null:p.default.createElement(S,{className:`btn btn-sm json-schema-form-item-remove ${c.length?"invalid":null}`,title:c.length?c:"",onClick:()=>this.removeItem(R)}," - "))})):null,o?null:p.default.createElement(S,{className:`btn btn-sm json-schema-form-item-add ${u.length?"invalid":null}`,title:u.length?u:"",onClick:this.addItem},"Add ",y," item"))}}Y(yV,"defaultProps",eo);class xR extends p.Component{constructor(){super(...arguments);Y(this,"onChange",r=>{const n=r.target.value;this.props.onChange(n,this.props.keyName)})}render(){let{value:r,errors:n,description:i,disabled:s}=this.props;return r?(uf(r)||typeof r=="object")&&(r=Jr(r)):r="",n=n.toJS?n.toJS():[],p.default.createElement(hV.default,{type:"text",className:n.length?"invalid":"",title:n.length?n:"",value:r,minLength:0,debounceTimeout:350,placeholder:i,onChange:this.onChange,disabled:s})}}Y(xR,"defaultProps",eo);class AR extends p.Component{constructor(){super(...arguments);Y(this,"onFileChange",r=>{const n=r.target.files[0];this.props.onChange(n,this.props.keyName)})}render(){let{getComponent:r,errors:n,disabled:i}=this.props;const s=r("Input"),a=i||!("FormData"in window);return p.default.createElement(s,{type:"file",className:n.length?"invalid":"",title:n.length?n:"",onChange:this.onFileChange,disabled:a})}}Y(AR,"defaultProps",eo);class vV extends p.Component{constructor(){super(...arguments);Y(this,"onEnumChange",r=>this.props.onChange(r))}render(){let{getComponent:r,value:n,errors:i,schema:s,required:a,disabled:o}=this.props;i=i.toJS?i.toJS():[];let u=s&&s.get?s.get("enum"):null,c=!u||!a,l=!u&&["true","false"];const f=r("Select");return p.default.createElement(f,{className:i.length?"invalid":"",title:i.length?i:"",value:String(n),disabled:o,allowedValues:u?[...u]:l,allowEmptyValue:c,onChange:this.onEnumChange})}}Y(vV,"defaultProps",eo);const yEe=e=>e.map((t=>{const r=t.propKey!==void 0?t.propKey:t.index;let n=typeof t=="string"?t:typeof t.error=="string"?t.error:null;if(!r&&n)return n;let i=t.error,s=`/${t.propKey}`;for(;typeof i=="object";){const a=i.propKey!==void 0?i.propKey:i.index;if(a===void 0||(s+=`/${a}`,!i.error))break;i=i.error}return`${s}: ${i}`}));class bV extends p.PureComponent{constructor(){super();Y(this,"onChange",r=>{this.props.onChange(r)});Y(this,"handleOnChange",r=>{const n=r.target.value;this.onChange(n)})}render(){let{getComponent:r,value:n,errors:i,disabled:s}=this.props;const a=r("TextArea");return i=i.toJS?i.toJS():Array.isArray(i)?i:[],p.default.createElement("div",null,p.default.createElement(a,{className:(0,Rt.default)({invalid:i.length}),title:i.length?yEe(i).join(", "):"",value:Jr(n),disabled:s,onChange:this.handleOnChange}))}}Y(bV,"defaultProps",eo);function Ww(e){return H.List.isList(e)?e:Array.isArray(e)?(0,H.fromJS)(e):(0,H.List)()}const vEe=({extensions:e,propClass:t=""})=>e.entrySeq().map((([r,n])=>{const i=Ho(n)??null;return p.default.createElement("tr",{key:r,className:t},p.default.createElement("td",null,r),p.default.createElement("td",null,JSON.stringify(i)))})).toArray();var vs=(function(e){var t={};return _e.d(t,e),t})({default:function(){return ste}});const bEe=(e,t)=>{const r=H.Map.isMap(e);if(!r&&!(0,vs.default)(e))return!1;const n=r?e.get("type"):e.type;return t===n||Array.isArray(t)&&t.includes(n)},_V=(e,t=new WeakSet)=>{if(e==null||t.has(e))return"any";t.add(e);const{type:r,items:n}=e;return Object.hasOwn(e,"items")?n?`array<${_V(n,t)}>`:"array<any>":r},_Ee=e=>_V(Ho(e));var EV=()=>({components:{modelExample:aEe,ModelWrapper:oEe,ModelCollapse:QA,Model:dV,Models:cEe,EnumModel:lEe,ObjectModel:pEe,ArrayModel:dEe,PrimitiveModel:hEe,ModelExtensions:vEe,schemes:mEe,SchemesContainer:gEe,...FA},fn:{hasSchemaType:bEe,getSchemaObjectTypeLabel:_Ee}}),EEe=_e(123),SV=_e.n(EEe),wV=(function(e){var t={};return _e.d(t,e),t})({default:function(){return pte}}),Ui=(function(e){var t={};return _e.d(t,e),t})({default:function(){return mte}});const Jw=e=>t=>Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((r,n)=>r===t[n])),SEe=(...e)=>e;class wEe extends Map{delete(t){const r=Array.from(this.keys()).find(Jw(t));return super.delete(r)}get(t){const r=Array.from(this.keys()).find(Jw(t));return super.get(r)}has(t){return Array.from(this.keys()).findIndex(Jw(t))!==-1}}var lf=(e,t=SEe)=>{const{Cache:r}=Xu.default;Xu.default.Cache=wEe;const n=(0,Xu.default)(e,t);return Xu.default.Cache=r,n};const cL={string:e=>e.pattern?(t=>{try{const r=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),n=t.replace(r,"100"),i=new wV.default(n);return i.max=100,i.gen()}catch{return"string"}})(e.pattern):"string",string_email:()=>"user@example.com","string_date-time":()=>new Date().toISOString(),string_date:()=>new Date().toISOString().substring(0,10),string_time:()=>new Date().toISOString().substring(11),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:e=>typeof e.default!="boolean"||e.default},lL=e=>{e=Ea(e);let{type:t,format:r}=e,n=cL[`${t}_${r}`]||cL[t];return ys(n)?n(e):"Unknown Type: "+e.type},xEe=e=>H7(e,"$$ref",(t=>typeof t=="string"&&t.indexOf("#")>-1)),xV=["maxProperties","minProperties"],AV=["minItems","maxItems"],OV=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],AEe=["minLength","maxLength"],Co=(e,t,r={})=>{const n={...e};if(["example","default","enum","xml","type",...xV,...AV,...OV,...AEe].forEach((i=>(s=>{n[s]===void 0&&t[s]!==void 0&&(n[s]=t[s])})(i))),t.required!==void 0&&Array.isArray(t.required)&&(n.required!==void 0&&n.required.length||(n.required=[]),t.required.forEach((i=>{n.required.includes(i)||n.required.push(i)}))),t.properties){n.properties||(n.properties={});let i=Ea(t.properties);for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(i[s]&&i[s].deprecated||i[s]&&i[s].readOnly&&!r.includeReadOnly||i[s]&&i[s].writeOnly&&!r.includeWriteOnly||n.properties[s]||(n.properties[s]=i[s],!t.required&&Array.isArray(t.required)&&t.required.indexOf(s)!==-1&&(n.required?n.required.push(s):n.required=[s])))}return t.items&&(n.items||(n.items={}),n.items=Co(n.items,t.items,r)),n},Zn=(e,t={},r=void 0,n=!1)=>{e&&ys(e.toJS)&&(e=e.toJS());let i=r!==void 0||e&&e.example!==void 0||e&&e.default!==void 0;const s=!i&&e&&e.oneOf&&e.oneOf.length>0,a=!i&&e&&e.anyOf&&e.anyOf.length>0;if(!i&&(s||a)){const M=Ea(s?e.oneOf[0]:e.anyOf[0]);if(!(e=Co(e,M,t)).xml&&M.xml&&(e.xml=M.xml),e.example!==void 0&&M.example!==void 0)i=!0;else if(M.properties){e.properties||(e.properties={});let X=Ea(M.properties);for(let ee in X)Object.prototype.hasOwnProperty.call(X,ee)&&(X[ee]&&X[ee].deprecated||X[ee]&&X[ee].readOnly&&!t.includeReadOnly||X[ee]&&X[ee].writeOnly&&!t.includeWriteOnly||e.properties[ee]||(e.properties[ee]=X[ee],!M.required&&Array.isArray(M.required)&&M.required.indexOf(ee)!==-1&&(e.required?e.required.push(ee):e.required=[ee])))}}const o={};let{xml:u,type:c,example:l,properties:f,additionalProperties:h,items:d}=e||{},{includeReadOnly:g,includeWriteOnly:y}=t;u=u||{};let v,{name:_,prefix:b,namespace:E}=u,w={};n&&(_=_||"notagname",v=(b?b+":":"")+_,E)&&(o[b?"xmlns:"+b:"xmlns"]=E),n&&(w[v]=[]);const S=M=>M.some((X=>Object.prototype.hasOwnProperty.call(e,X)));e&&!c&&(f||h||S(xV)?c="object":d||S(AV)?c="array":S(OV)?(c="number",e.type="number"):i||e.enum||(c="string",e.type="string"));const A=M=>{if((e==null?void 0:e.maxItems)!=null&&(M=M.slice(0,e==null?void 0:e.maxItems)),(e==null?void 0:e.minItems)!=null){let X=0;for(;M.length<(e==null?void 0:e.minItems);)M.push(M[X++%M.length])}return M},R=Ea(f);let T,O=0;const D=()=>e&&e.maxProperties!==null&&e.maxProperties!==void 0&&O>=e.maxProperties,N=M=>!e||e.maxProperties===null||e.maxProperties===void 0||!D()&&(!(X=>!(e&&e.required&&e.required.length&&e.required.includes(X)))(M)||e.maxProperties-O-(()=>{if(!e||!e.required)return 0;let X=0;return n?e.required.forEach((ee=>X+=w[ee]===void 0?0:1)):e.required.forEach((ee=>{var J;return X+=((J=w[v])==null?void 0:J.find((Q=>Q[ee]!==void 0)))===void 0?0:1})),e.required.length-X})()>0);if(T=n?(M,X=void 0)=>{if(e&&R[M]){if(R[M].xml=R[M].xml||{},R[M].xml.attribute){const J=Array.isArray(R[M].enum)?R[M].enum[0]:void 0,Q=R[M].example,te=R[M].default;return void(o[R[M].xml.name||M]=Q!==void 0?Q:te!==void 0?te:J!==void 0?J:lL(R[M]))}R[M].xml.name=R[M].xml.name||M}else R[M]||h===!1||(R[M]={xml:{name:M}});let ee=Zn(e&&R[M]||void 0,t,X,n);N(M)&&(O++,Array.isArray(ee)?w[v]=w[v].concat(ee):w[v].push(ee))}:(M,X)=>{if(N(M)){if(Object.prototype.hasOwnProperty.call(e,"discriminator")&&e.discriminator&&Object.prototype.hasOwnProperty.call(e.discriminator,"mapping")&&e.discriminator.mapping&&Object.prototype.hasOwnProperty.call(e,"$$ref")&&e.$$ref&&e.discriminator.propertyName===M){for(let ee in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[ee])!==-1){w[M]=ee;break}}else w[M]=Zn(R[M],t,X,n);O++}},i){let M;if(M=xEe(r!==void 0?r:l!==void 0?l:e.default),!n){if(typeof M=="number"&&c==="string")return`${M}`;if(typeof M!="string"||c==="string")return M;try{return JSON.parse(M)}catch{return M}}if(e||(c=Array.isArray(M)?"array":typeof M),c==="array"){if(!Array.isArray(M)){if(typeof M=="string")return M;M=[M]}const X=e?e.items:void 0;X&&(X.xml=X.xml||u||{},X.xml.name=X.xml.name||u.name);let ee=M.map((J=>Zn(X,t,J,n)));return ee=A(ee),u.wrapped?(w[v]=ee,(0,Ui.default)(o)||w[v].push({_attr:o})):w=ee,w}if(c==="object"){if(typeof M=="string")return M;for(let X in M)Object.prototype.hasOwnProperty.call(M,X)&&(e&&R[X]&&R[X].readOnly&&!g||e&&R[X]&&R[X].writeOnly&&!y||(e&&R[X]&&R[X].xml&&R[X].xml.attribute?o[R[X].xml.name||X]=M[X]:T(X,M[X])));return(0,Ui.default)(o)||w[v].push({_attr:o}),w}return w[v]=(0,Ui.default)(o)?M:[{_attr:o},M],w}if(c==="object"){for(let M in R)Object.prototype.hasOwnProperty.call(R,M)&&(R[M]&&R[M].deprecated||R[M]&&R[M].readOnly&&!g||R[M]&&R[M].writeOnly&&!y||T(M));if(n&&o&&w[v].push({_attr:o}),D())return w;if(h===!0)n?w[v].push({additionalProp:"Anything can be here"}):w.additionalProp1={},O++;else if(h){const M=Ea(h),X=Zn(M,t,void 0,n);if(n&&M.xml&&M.xml.name&&M.xml.name!=="notagname")w[v].push(X);else{const ee=M["x-additionalPropertiesName"]||"additionalProp",J=e.minProperties!==null&&e.minProperties!==void 0&&O<e.minProperties?e.minProperties-O:3;for(let Q=1;Q<=J;Q++){if(D())return w;if(n){const te={};te[ee+Q]=X.notagname,w[v].push(te)}else w[ee+Q]=X;O++}}}return w}if(c==="array"){if(!d)return;let M;if(n&&(d.xml=d.xml||(e==null?void 0:e.xml)||{},d.xml.name=d.xml.name||u.name),Array.isArray(d.anyOf))M=d.anyOf.map((X=>Zn(Co(X,d,t),t,void 0,n)));else if(Array.isArray(d.oneOf))M=d.oneOf.map((X=>Zn(Co(X,d,t),t,void 0,n)));else{if(!(!n||n&&u.wrapped))return Zn(d,t,void 0,n);M=[Zn(d,t,void 0,n)]}return M=A(M),n&&u.wrapped?(w[v]=M,(0,Ui.default)(o)||w[v].push({_attr:o}),w):M}let $;if(e&&Array.isArray(e.enum))$=Qa(e.enum)[0];else{if(!e)return;if($=lL(e),typeof $=="number"){let M=e.minimum;M!=null&&(e.exclusiveMinimum&&M++,$=M);let X=e.maximum;X!=null&&(e.exclusiveMaximum&&X--,$=X)}if(typeof $=="string"&&(e.maxLength!==null&&e.maxLength!==void 0&&($=$.slice(0,e.maxLength)),e.minLength!==null&&e.minLength!==void 0)){let M=0;for(;$.length<e.minLength;)$+=$[M++%$.length]}}if(c!=="file")return n?(w[v]=(0,Ui.default)(o)?$:[{_attr:o},$],w):$},fL=e=>(e.schema&&(e=e.schema),e.properties&&(e.type="object"),e),rO=(e,t,r)=>{const n=Zn(e,t,r,!0);if(n)return typeof n=="string"?n:SV()(n,{declaration:!0,indent:" "})},nO=(e,t,r)=>Zn(e,t,r,!1),CV=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],pL=lf(rO,CV),dL=lf(nO,CV),OEe=e=>{var t;return((t=Ho(e))==null?void 0:t.type)??"string"},CEe=[{when:/json/,shouldStringifyTypes:["string"]}],REe=["object"];var IEe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.memoizedSampleFromSchema(t,r,i),o=typeof a,u=CEe.reduce(((c,l)=>l.when.test(n)?[...c,...l.shouldStringifyTypes]:c),REe);return(0,W7.default)(u,(c=>c===o))?JSON.stringify(a,null,2):a},TEe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.getJsonSampleSchema(t,r,n,i);let o;try{o=ds.default.dump(ds.default.load(a),{lineWidth:-1},{schema:ds.JSON_SCHEMA}),o[o.length-1]===`
330
+ `&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},jEe=e=>(t,r,n)=>{const{fn:i}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
331
+ <!-- XML example cannot be generated; root element name is undefined -->`;if(t.$$ref){let s=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=s[1]}}return i.memoizedCreateXMLExample(t,r,n)},PEe=e=>(t,r="",n={},i=void 0)=>{const{fn:s}=e();return typeof(t==null?void 0:t.toJS)=="function"&&(t=t.toJS()),typeof(i==null?void 0:i.toJS)=="function"&&(i=i.toJS()),/xml/.test(r)?s.getXmlSampleSchema(t,n,i):/(yaml|yml)/.test(r)?s.getYamlSampleSchema(t,n,r,i):s.getJsonSampleSchema(t,n,r,i)},RV=({getSystem:e})=>{const t=IEe(e),r=TEe(e),n=jEe(e),i=PEe(e);return{fn:{jsonSchema5:{inferSchema:fL,sampleFromSchema:nO,sampleFromSchemaGeneric:Zn,createXMLExample:rO,memoizedSampleFromSchema:dL,memoizedCreateXMLExample:pL,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Co},inferSchema:fL,sampleFromSchema:nO,sampleFromSchemaGeneric:Zn,createXMLExample:rO,memoizedSampleFromSchema:dL,memoizedCreateXMLExample:pL,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Co,getSchemaObjectType:OEe}}},wm=(function(e){var t={};return _e.d(t,e),t})({default:function(){return yte}});const kEe=["get","put","post","delete","options","head","patch","trace"],rs=e=>e||(0,H.Map)(),NEe=(0,nt.createSelector)(rs,(e=>e.get("lastError"))),MEe=(0,nt.createSelector)(rs,(e=>e.get("url"))),DEe=(0,nt.createSelector)(rs,(e=>e.get("spec")||"")),qEe=(0,nt.createSelector)(rs,(e=>e.get("specSource")||"not-editor")),OR=(0,nt.createSelector)(rs,(e=>e.get("json",(0,H.Map)()))),$Ee=(0,nt.createSelector)(OR,(e=>e.toJS())),FEe=(0,nt.createSelector)(rs,(e=>e.get("resolved",(0,H.Map)()))),BEe=(e,t)=>e.getIn(["resolvedSubtrees",...t],void 0),IV=(e,t)=>H.Map.isMap(e)&&H.Map.isMap(t)?t.get("$$ref")?t:(0,H.OrderedMap)().mergeWith(IV,e,t):t,ji=(0,nt.createSelector)(rs,(e=>(0,H.OrderedMap)().mergeWith(IV,e.get("json"),e.get("resolvedSubtrees")))),xn=e=>OR(e),LEe=(0,nt.createSelector)(xn,(()=>!1)),TV=(0,nt.createSelector)(xn,(e=>HV(e&&e.get("info")))),UEe=(0,nt.createSelector)(xn,(e=>HV(e&&e.get("externalDocs")))),jV=(0,nt.createSelector)(TV,(e=>e&&e.get("version"))),VEe=(0,nt.createSelector)(jV,(e=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e).slice(1))),PV=(0,nt.createSelector)(ji,(e=>e.get("paths"))),zEe=(0,wm.default)(["get","put","post","delete","options","head","patch"]),kV=(0,nt.createSelector)(PV,(e=>{let t=(0,H.List)();return!H.Map.isMap(e)||e.isEmpty()||e.forEach(((r,n)=>{if(!r||!r.forEach)return{};r.forEach(((i,s)=>{kEe.indexOf(s)<0||(t=t.push((0,H.fromJS)({path:n,method:s,operation:i,id:`${s}-${n}`})))}))})),t})),NV=(0,nt.createSelector)(xn,(e=>(0,H.Set)(e.get("consumes")))),MV=(0,nt.createSelector)(xn,(e=>(0,H.Set)(e.get("produces")))),WEe=(0,nt.createSelector)(xn,(e=>e.get("security",(0,H.List)()))),JEe=(0,nt.createSelector)(xn,(e=>e.get("securityDefinitions"))),KEe=(e,t)=>{const r=e.getIn(["resolvedSubtrees","definitions",t],null),n=e.getIn(["json","definitions",t],null);return r||n||null},HEe=(0,nt.createSelector)(xn,(e=>{const t=e.get("definitions");return H.Map.isMap(t)?t:(0,H.Map)()})),GEe=(0,nt.createSelector)(xn,(e=>e.get("basePath"))),YEe=(0,nt.createSelector)(xn,(e=>e.get("host"))),XEe=(0,nt.createSelector)(xn,(e=>e.get("schemes",(0,H.Map)()))),DV=(0,nt.createSelector)([kV,NV,MV],((e,t,r)=>e.map((n=>n.update("operation",(i=>H.Map.isMap(i)?i.withMutations((s=>(s.get("consumes")||s.update("consumes",(a=>(0,H.Set)(a).merge(t))),s.get("produces")||s.update("produces",(a=>(0,H.Set)(a).merge(r))),s))):(0,H.Map)())))))),CR=(0,nt.createSelector)(xn,(e=>{const t=e.get("tags",(0,H.List)());return H.List.isList(t)?t.filter((r=>H.Map.isMap(r))):(0,H.List)()})),qV=(e,t)=>(CR(e)||(0,H.List)()).filter(H.Map.isMap).find((r=>r.get("name")===t),(0,H.Map)()),$V=(0,nt.createSelector)(DV,CR,((e,t)=>e.reduce(((r,n)=>{let i=(0,H.Set)(n.getIn(["operation","tags"]));return i.count()<1?r.update("default",(0,H.List)(),(s=>s.push(n))):i.reduce(((s,a)=>s.update(a,(0,H.List)(),(o=>o.push(n)))),r)}),t.reduce(((r,n)=>r.set(n.get("name"),(0,H.List)())),(0,H.OrderedMap)())))),ZEe=e=>({getConfigs:t})=>{let{tagsSorter:r,operationsSorter:n}=t();return $V(e).sortBy(((i,s)=>s),((i,s)=>{let a=typeof r=="function"?r:XB.tagsSorter[r];return a?a(i,s):null})).map(((i,s)=>{let a=typeof n=="function"?n:XB.operationsSorter[n],o=a?i.sort(a):i;return(0,H.Map)({tagDetails:qV(e,s),operations:o})}))},FV=(0,nt.createSelector)(rs,(e=>e.get("responses",(0,H.Map)()))),BV=(0,nt.createSelector)(rs,(e=>e.get("requests",(0,H.Map)()))),LV=(0,nt.createSelector)(rs,(e=>e.get("mutatedRequests",(0,H.Map)()))),QEe=(e,t,r)=>FV(e).getIn([t,r],null),eSe=(e,t,r)=>BV(e).getIn([t,r],null),tSe=(e,t,r)=>LV(e).getIn([t,r],null),rSe=()=>!0,RR=(e,t,r)=>{const n=ji(e).getIn(["paths",...t,"parameters"],(0,H.OrderedMap)()),i=e.getIn(["meta","paths",...t,"parameters"],(0,H.OrderedMap)());return n.map((s=>{const a=i.get(`${r.get("in")}.${r.get("name")}`),o=i.get(`${r.get("in")}.${r.get("name")}.hash-${r.hashCode()}`);return(0,H.OrderedMap)().merge(s,a,o)})).find((s=>s.get("in")===r.get("in")&&s.get("name")===r.get("name")),(0,H.OrderedMap)())},UV=(e,t,r,n)=>{const i=`${n}.${r}`;return e.getIn(["meta","paths",...t,"parameter_inclusions",i],!1)},nSe=(e,t,r,n)=>{const i=ji(e).getIn(["paths",...t,"parameters"],(0,H.OrderedMap)()).find((s=>s.get("in")===n&&s.get("name")===r),(0,H.OrderedMap)());return RR(e,t,i)},VV=(e,t,r)=>{const n=ji(e).getIn(["paths",t,r],(0,H.OrderedMap)()),i=e.getIn(["meta","paths",t,r],(0,H.OrderedMap)()),s=n.get("parameters",(0,H.List)()).map((a=>RR(e,[t,r],a)));return(0,H.OrderedMap)().merge(n,i).set("parameters",s)};function iSe(e,t,r,n){return t=t||[],e.getIn(["meta","paths",...t,"parameters"],(0,H.fromJS)([])).find((i=>H.Map.isMap(i)&&i.get("name")===r&&i.get("in")===n))||(0,H.Map)()}const sSe=(0,nt.createSelector)(xn,(e=>{const t=e.get("host");return typeof t=="string"&&t.length>0&&t[0]!=="/"}));function zV(e,t,r){return t=t||[],VV(e,...t).get("parameters",(0,H.List)()).reduce(((n,i)=>{let s=r&&i.get("in")==="body"?i.get("value_xml"):i.get("value");return H.List.isList(s)&&(s=s.filter((a=>a!==""))),n.set(rd(i,{allowHashes:!1}),s)}),(0,H.fromJS)({}))}function aSe(e,t=""){if(H.List.isList(e))return e.some((r=>H.Map.isMap(r)&&r.get("in")===t))}function iO(e,t=""){if(H.List.isList(e))return e.some((r=>H.Map.isMap(r)&&r.get("type")===t))}function oSe(e,t){t=t||[];let r=ji(e).getIn(["paths",...t],(0,H.fromJS)({})),n=e.getIn(["meta","paths",...t],(0,H.fromJS)({})),i=WV(e,t);const s=r.get("parameters")||new H.List,a=n.get("consumes_value")?n.get("consumes_value"):iO(s,"file")?"multipart/form-data":iO(s,"formData")?"application/x-www-form-urlencoded":void 0;return(0,H.fromJS)({requestContentType:a,responseContentType:i})}function WV(e,t){t=t||[];const r=ji(e).getIn(["paths",...t],null);if(r===null)return;const n=e.getIn(["meta","paths",...t,"produces_value"],null),i=r.getIn(["produces",0],null);return n||i||"application/json"}function uSe(e,t){t=t||[];const r=ji(e),n=r.getIn(["paths",...t],null);if(n===null)return;const[i]=t,s=n.get("produces",null),a=r.getIn(["paths",i,"produces"],null),o=r.getIn(["produces"],null);return s||a||o}function cSe(e,t){t=t||[];const r=ji(e),n=r.getIn(["paths",...t],null);if(n===null)return;const[i]=t,s=n.get("consumes",null),a=r.getIn(["paths",i,"consumes"],null),o=r.getIn(["consumes"],null);return s||a||o}const JV=(e,t,r)=>{let n=e.get("url").match(/^([a-z][a-z0-9+\-.]*):/),i=Array.isArray(n)?n[1]:null;return e.getIn(["scheme",t,r])||e.getIn(["scheme","_defaultScheme"])||i||""},lSe=(e,t,r)=>["http","https"].indexOf(JV(e,t,r))>-1,KV=(e,t)=>{t=t||[];const r=e.getIn(["meta","paths",...t,"parameters"],(0,H.fromJS)([])),n=[];if(r.length===0)return n;const i=(s,a=[])=>{const o=(u,c)=>{const l=[...c,u.get("propKey")||u.get("index")];return H.Map.isMap(u.get("error"))?i(u.get("error"),l):{error:u.get("error"),path:l}};return H.List.isList(s)?s.map((u=>H.Map.isMap(u)?o(u,a):{error:u,path:a})):o(s,a)};return r.forEach(((s,a)=>{const o=a.split(".").slice(1,-1).join("."),u=s.get("errors");u&&u.count()&&i(u).forEach((({error:c,path:l})=>{n.push(((f,h,d)=>`For '${d}'${(h=h.reduce(((g,y)=>typeof y=="number"?`${g}[${y}]`:g?`${g}.${y}`:y),""))?` at path '${h}'`:""}: ${f}.`)(c,l,o))}))})),n},fSe=(e,t)=>KV(e,t).length===0,pSe=(e,t)=>{let r={requestBody:!1,requestContentType:{}},n=e.getIn(["resolvedSubtrees","paths",...t,"requestBody"],(0,H.fromJS)([]));return n.size<1||(n.getIn(["required"])&&(r.requestBody=n.getIn(["required"])),n.getIn(["content"]).entrySeq().forEach((i=>{const s=i[0];if(i[1].getIn(["schema","required"])){const a=i[1].getIn(["schema","required"]).toJS();r.requestContentType[s]=a}}))),r},dSe=(e,t,r,n)=>{if((r||n)&&r===n)return!0;let i=e.getIn(["resolvedSubtrees","paths",...t,"requestBody","content"],(0,H.fromJS)([]));if(i.size<2||!r||!n)return!1;let s=i.getIn([r,"schema","properties"],(0,H.fromJS)([])),a=i.getIn([n,"schema","properties"],(0,H.fromJS)([]));return!!s.equals(a)};function HV(e){return H.Map.isMap(e)?e:new H.Map}var hSe=(function(e){var t={};return _e.d(t,e),t})({default:function(){return bte}}),mSe=(function(e){var t={};return _e.d(t,e),t})({default:function(){return wte}}),GV=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Ote}}),gSe=(function(e){var t={};return _e.d(t,e),t})({default:function(){return are}});const IR="spec_update_spec",TR="spec_update_url",jR="spec_update_json",xm="spec_update_param",PR="spec_update_empty_param_inclusion",kR="spec_validate_param",NR="spec_set_response",MR="spec_set_request",DR="spec_set_mutated_request",YV="spec_log_request",qR="spec_clear_response",$R="spec_clear_request",FR="spec_clear_validate_param",Am="spec_update_operation_meta_value",BR="spec_update_resolved",Om="spec_update_resolved_subtree",LR="set_scheme",ySe=e=>(0,hSe.default)(e)?e:"";function vSe(e){const t=ySe(e).replace(/\t/g," ");if(typeof e=="string")return{type:IR,payload:t}}function bSe(e){return{type:BR,payload:e}}function _Se(e){return{type:TR,payload:e}}function ESe(e){return{type:jR,payload:e}}const SSe=e=>({specActions:t,specSelectors:r,errActions:n})=>{let{specStr:i}=r,s=null;try{e=e||i(),n.clear({source:"parser"}),s=ds.default.load(e,{schema:ds.JSON_SCHEMA})}catch(a){return console.error(a),n.newSpecErr({source:"parser",level:"error",message:a.reason,line:a.mark&&a.mark.line?a.mark.line+1:void 0})}return s&&typeof s=="object"?t.updateJsonSpec(s):t.updateJsonSpec({})};let hL=!1;const wSe=(e,t)=>({specActions:r,specSelectors:n,errActions:i,fn:{fetch:s,resolve:a,AST:o={}},getConfigs:u})=>{hL||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),hL=!0);const{modelPropertyMacro:c,parameterMacro:l,requestInterceptor:f,responseInterceptor:h}=u();e===void 0&&(e=n.specJson()),t===void 0&&(t=n.url());let d=o.getLineNumberForPath?o.getLineNumberForPath:()=>{},g=n.specStr();return a({fetch:s,spec:e,baseDoc:String(new URL(t,document.baseURI)),modelPropertyMacro:c,parameterMacro:l,requestInterceptor:f,responseInterceptor:h}).then((({spec:y,errors:v})=>{if(i.clear({type:"thrown"}),Array.isArray(v)&&v.length>0){let _=v.map((b=>(console.error(b),b.line=b.fullPath?d(g,b.fullPath):null,b.path=b.fullPath?b.fullPath.join("."):null,b.level="error",b.type="thrown",b.source="resolver",Object.defineProperty(b,"message",{enumerable:!0,value:b.message}),b)));i.newThrownErrBatch(_)}return r.updateResolved(y)}))};let nd=[];const xSe=(0,mSe.default)((()=>{const e=nd.reduce(((t,{path:r,system:n})=>(t.has(n)||t.set(n,[]),t.get(n).push(r),t)),new Map);nd=[],e.forEach((async(t,r)=>{if(!r)return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");if(!r.fn.resolveSubtree)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");const{errActions:n,errSelectors:i,fn:{resolveSubtree:s,fetch:a,AST:o={}},specSelectors:u,specActions:c}=r,l=o.getLineNumberForPath??(0,wm.default)(void 0),f=u.specStr(),{modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y}=r.getConfigs();try{const v=await t.reduce((async(_,b)=>{let{resultMap:E,specWithCurrentSubtrees:w}=await _;const{errors:S,spec:A}=await s(w,b,{baseDoc:String(new URL(u.url(),document.baseURI)),modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y});if(i.allErrors().size&&n.clearBy((R=>{var T;return R.get("type")!=="thrown"||R.get("source")!=="resolver"||!((T=R.get("fullPath"))!=null&&T.every(((O,D)=>O===b[D]||b[D]===void 0)))})),Array.isArray(S)&&S.length>0){let R=S.map((T=>(T.line=T.fullPath?l(f,T.fullPath):null,T.path=T.fullPath?T.fullPath.join("."):null,T.level="error",T.type="thrown",T.source="resolver",Object.defineProperty(T,"message",{enumerable:!0,value:T.message}),T)));n.newThrownErrBatch(R)}return A&&u.isOAS3()&&b[0]==="components"&&b[1]==="securitySchemes"&&await Promise.all(Object.values(A).filter((R=>(R==null?void 0:R.type)==="openIdConnect")).map((async R=>{const T={url:R.openIdConnectUrl,requestInterceptor:g,responseInterceptor:y};try{const O=await a(T);O instanceof Error||O.status>=400?console.error(O.statusText+" "+T.url):R.openIdConnectData=JSON.parse(O.text)}catch(O){console.error(O)}}))),(0,GV.default)(E,b,A),w=(0,gSe.default)(b,A,w),{resultMap:E,specWithCurrentSubtrees:w}}),Promise.resolve({resultMap:(u.specResolvedSubtree([])||(0,H.Map)()).toJS(),specWithCurrentSubtrees:u.specJS()}));c.updateResolvedSubtree([],v.resultMap)}catch(v){console.error(v)}}))}),35),ASe=e=>t=>{nd.find((({path:r,system:n})=>n===t&&r.toString()===e.toString()))||(nd.push({path:e,system:t}),xSe())};function OSe(e,t,r,n,i){return{type:xm,payload:{path:e,value:n,paramName:t,paramIn:r,isXml:i}}}function CSe(e,t,r,n){return{type:xm,payload:{path:e,param:t,value:r,isXml:n}}}const RSe=(e,t)=>({type:Om,payload:{path:e,value:t}}),ISe=()=>({type:Om,payload:{path:[],value:(0,H.Map)()}}),TSe=(e,t)=>({type:kR,payload:{pathMethod:e,isOAS3:t}}),jSe=(e,t,r,n)=>({type:PR,payload:{pathMethod:e,paramName:t,paramIn:r,includeEmptyValue:n}});function PSe(e){return{type:FR,payload:{pathMethod:e}}}function kSe(e,t){return{type:Am,payload:{path:e,value:t,key:"consumes_value"}}}function NSe(e,t){return{type:Am,payload:{path:e,value:t,key:"produces_value"}}}const MSe=(e,t,r)=>({payload:{path:e,method:t,res:r},type:NR}),DSe=(e,t,r)=>({payload:{path:e,method:t,req:r},type:MR}),qSe=(e,t,r)=>({payload:{path:e,method:t,req:r},type:DR}),$Se=e=>({payload:e,type:YV}),FSe=e=>({fn:t,specActions:r,specSelectors:n,getConfigs:i,oas3Selectors:s})=>{let{pathName:a,method:o,operation:u}=e,{requestInterceptor:c,responseInterceptor:l}=i(),f=u.toJS();if(u&&u.get("parameters")&&u.get("parameters").filter((g=>g&&g.get("allowEmptyValue")===!0)).forEach((g=>{if(n.parameterInclusionSettingFor([a,o],g.get("name"),g.get("in"))){e.parameters=e.parameters||{};const y=G7(g,e.parameters);(!y||y&&y.size===0)&&(e.parameters[g.get("name")]="")}})),e.contextUrl=(0,Tc.default)(n.url()).toString(),f&&f.operationId?e.operationId=f.operationId:f&&a&&o&&(e.operationId=t.opId(f,a,o)),n.isOAS3()){const g=`${a}:${o}`;e.server=s.selectedServer(g)||s.selectedServer();const y=s.serverVariables({server:e.server,namespace:g}).toJS(),v=s.serverVariables({server:e.server}).toJS();e.serverVariables=Object.keys(y).length?y:v,e.requestContentType=s.requestContentType(a,o),e.responseContentType=s.responseContentType(a,o)||"*/*";const _=s.requestBodyValue(a,o),b=s.requestBodyInclusionSetting(a,o);_&&_.toJS?e.requestBody=_.map((E=>H.Map.isMap(E)?E.get("value"):E)).filter(((E,w)=>(Array.isArray(E)?E.length!==0:!uR(E))||b.get(w))).toJS():e.requestBody=_}let h=Object.assign({},e);h=t.buildRequest(h),r.setRequest(e.pathName,e.method,h),e.requestInterceptor=async g=>{let y=await c.apply(void 0,[g]),v=Object.assign({},y);return r.setMutatedRequest(e.pathName,e.method,v),y},e.responseInterceptor=l;const d=Date.now();return t.execute(e).then((g=>{g.duration=Date.now()-d,r.setResponse(e.pathName,e.method,g)})).catch((g=>{g.message==="Failed to fetch"&&(g.name="",g.message=`**Failed to fetch.**
332
+ **Possible Reasons:**
333
+ - CORS
334
+ - Network Failure
335
+ - URL scheme must be "http" or "https" for CORS request.`),r.setResponse(e.pathName,e.method,{error:!0,err:g})}))},BSe=({path:e,method:t,...r}={})=>n=>{let{fn:{fetch:i},specSelectors:s,specActions:a}=n,o=s.specJsonWithResolvedSubtrees().toJS(),u=s.operationScheme(e,t),{requestContentType:c,responseContentType:l}=s.contentTypeValues([e,t]).toJS(),f=/xml/i.test(c),h=s.parameterValues([e,t],f).toJS();return a.executeRequest({...r,fetch:i,spec:o,pathName:e,method:t,parameters:h,requestContentType:c,scheme:u,responseContentType:l})};function LSe(e,t){return{type:qR,payload:{path:e,method:t}}}function USe(e,t){return{type:$R,payload:{path:e,method:t}}}function VSe(e,t,r){return{type:LR,payload:{scheme:e,path:t,method:r}}}var zSe={[IR]:(e,t)=>typeof t.payload=="string"?e.set("spec",t.payload):e,[TR]:(e,t)=>e.set("url",t.payload+""),[jR]:(e,t)=>e.set("json",Fi(t.payload)),[BR]:(e,t)=>e.setIn(["resolved"],Fi(t.payload)),[Om]:(e,t)=>{const{value:r,path:n}=t.payload;return e.setIn(["resolvedSubtrees",...n],Fi(r))},[xm]:(e,{payload:t})=>{let{path:r,paramName:n,paramIn:i,param:s,value:a,isXml:o}=t,u=s?rd(s):`${i}.${n}`;const c=o?"value_xml":"value";return e.setIn(["meta","paths",...r,"parameters",u,c],(0,H.fromJS)(a))},[PR]:(e,{payload:t})=>{let{pathMethod:r,paramName:n,paramIn:i,includeEmptyValue:s}=t;if(!n||!i)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),e;const a=`${i}.${n}`;return e.setIn(["meta","paths",...r,"parameter_inclusions",a],s)},[kR]:(e,{payload:{pathMethod:t,isOAS3:r}})=>{const n=ji(e).getIn(["paths",...t]),i=zV(e,t).toJS();return e.updateIn(["meta","paths",...t,"parameters"],(0,H.fromJS)({}),(s=>n.get("parameters",(0,H.List)()).reduce(((a,o)=>{const u=G7(o,i),c=UV(e,t,o.get("name"),o.get("in")),l=((f,h,{isOAS3:d=!1,bypassRequiredCheck:g=!1}={})=>{let y=f.get("required"),{schema:v,parameterContentMediaType:_}=bp(f,{isOAS3:d});return GA(h,v,y,g,_)})(o,u,{bypassRequiredCheck:c,isOAS3:r});return a.setIn([rd(o),"errors"],(0,H.fromJS)(l))}),s)))},[FR]:(e,{payload:{pathMethod:t}})=>e.updateIn(["meta","paths",...t,"parameters"],(0,H.fromJS)([]),(r=>r.map((n=>n.set("errors",(0,H.fromJS)([])))))),[NR]:(e,{payload:{res:t,path:r,method:n}})=>{let i;i=t.error?Object.assign({error:!0,name:t.err.name,message:t.err.message,statusCode:t.err.statusCode},t.err.response):t,i.headers=i.headers||{};let s=e.setIn(["responses",r,n],Fi(i));return Zt.Blob&&i.data instanceof Zt.Blob&&(s=s.setIn(["responses",r,n,"text"],i.data)),s},[MR]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["requests",r,n],Fi(t)),[DR]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["mutatedRequests",r,n],Fi(t)),[Am]:(e,{payload:{path:t,value:r,key:n}})=>{let i=["paths",...t],s=["meta","paths",...t];return e.getIn(["json",...i])||e.getIn(["resolved",...i])||e.getIn(["resolvedSubtrees",...i])?e.setIn([...s,n],(0,H.fromJS)(r)):e},[qR]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["responses",t,r]),[$R]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["requests",t,r]),[LR]:(e,{payload:{scheme:t,path:r,method:n}})=>r&&n?e.setIn(["scheme",r,n],t):r||n?void 0:e.setIn(["scheme","_defaultScheme"],t)};const WSe=(e,{specActions:t})=>(...r)=>{e(...r),t.parseToJson(...r)},JSe=(e,{specActions:t})=>(...r)=>{e(...r),t.invalidateResolvedSubtreeCache();const[n]=r,i=(0,ZA.default)(n,["paths"])||{};Object.keys(i).forEach((s=>{const a=(0,ZA.default)(i,[s]);(0,vs.default)(a)&&a.$ref&&t.requestResolvedSubtree(["paths",s])})),t.requestResolvedSubtree(["components","securitySchemes"])},KSe=(e,{specActions:t})=>r=>(t.logRequest(r),e(r)),HSe=(e,{specSelectors:t})=>r=>e(r,t.isOAS3());var XV=()=>({statePlugins:{spec:{wrapActions:{...UA},reducers:{...zSe},actions:{...LA},selectors:{...BA}}}}),mL=(function(e){var t={};return _e.d(t,e),t})({default:function(){return r9}}),gL=(function(e){var t={};return _e.d(t,e),t})({default:function(){return s9}}),yL=(function(e){var t={};return _e.d(t,e),t})({default:function(){return a9}}),vL=(function(e){var t={};return _e.d(t,e),t})({default:function(){return ahe}}),GSe=(function(e){var t={};return _e.d(t,e),t})({makeResolve:function(){return K9}}),bL=(function(e){var t={};return _e.d(t,e),t})({buildRequest:function(){return i7},execute:function(){return bme}}),Kw=(function(e){var t={};return _e.d(t,e),t})({default:function(){return wc},makeHttp:function(){return Yoe},serializeRes:function(){return Q5}}),YSe=(function(e){var t={};return _e.d(t,e),t})({makeResolveSubtree:function(){return Ame}}),ZV=(function(e){var t={};return _e.d(t,e),t})({opId:function(){return kh}});const XSe=(e,t)=>(...r)=>{e(...r);const n=t.getConfigs().withCredentials;t.fn.fetch.withCredentials=n};function QV({configs:e,getConfigs:t}){return{fn:{fetch:(0,Kw.makeHttp)(Kw.default,e.preFetch,e.postFetch),buildRequest:bL.buildRequest,execute:bL.execute,resolve:(0,GSe.makeResolve)({strategies:[vL.default,yL.default,gL.default,mL.default]}),resolveSubtree:async(r,n,i={})=>{const s=t(),a={modelPropertyMacro:s.modelPropertyMacro,parameterMacro:s.parameterMacro,requestInterceptor:s.requestInterceptor,responseInterceptor:s.responseInterceptor,strategies:[vL.default,yL.default,gL.default,mL.default]};return(0,YSe.makeResolveSubtree)(a)(r,n,i)},serializeRes:Kw.serializeRes,opId:ZV.opId},statePlugins:{configs:{wrapActions:{loaded:XSe}}}}}function ez(){return{fn:{shallowEqualKeys:kbe,sanitizeUrl:hr}}}var tz=(function(e){var t={};return _e.d(t,e),t})({default:function(){return wJ.default}}),rz=(function(e){var t={};return _e.d(t,e),t})({Provider:function(){return bge},connect:function(){return yge}}),nz=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Ege}});const ZSe=e=>t=>{const{fn:r}=e();class n extends p.Component{render(){return p.default.createElement(t,(0,Ct.default)({},e(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(t)})`,n},QSe=(e,t)=>r=>{const{fn:n}=e();class i extends p.Component{render(){return p.default.createElement(rz.Provider,{store:t},p.default.createElement(r,(0,Ct.default)({},this.props,this.context)))}}return i.displayName=`WithRoot(${n.getDisplayName(r)})`,i},_L=(e,t,r)=>(0,Yu.compose)(r?QSe(e,r):nz.default,(0,rz.connect)(((n,i)=>{var o;const s={...i,...e()};return(((o=t.prototype)==null?void 0:o.mapStateToProps)||(u=>({state:u})))(n,s)})),ZSe(e))(t),EL=(e,t,r,n)=>{for(const i in t){const s=t[i];typeof s=="function"&&s(r[i],n[i],e())}},e1e=(e,t,r)=>(n,i)=>{const{fn:s}=e(),a=r(n,"root");class o extends p.Component{constructor(c,l){super(c,l),EL(e,i,c,{})}UNSAFE_componentWillReceiveProps(c){EL(e,i,c,this.props)}render(){const c=(0,mR.default)(this.props,i?Object.keys(i):[]);return p.default.createElement(a,c)}}return o.displayName=`WithMappedContainer(${s.getDisplayName(a)})`,o},t1e=(e,t,r,n)=>i=>{const s=r(e,t,n)("App","root"),{createRoot:a}=tz.default;a(i).render(p.default.createElement(s,null))},sO=(e,t,r)=>(n,i,s={})=>{if(typeof n!="string")throw new TypeError("Need a string, to fetch a component. Was given a "+typeof n);const a=r(n);return a?i?i==="root"?_L(e,a,t()):_L(e,a):a:(s.failSilently||e().log.warn("Could not find component:",n),null)},r1e=e=>e.displayName||e.name||"Component";var iz=({getComponents:e,getStore:t,getSystem:r})=>{const n=(i=sO(r,t,e),jbe(i,((...a)=>JSON.stringify(a))));var i;const s=(a=>lf(a,((...o)=>o)))(e1e(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:s,render:t1e(r,t,sO,e)},fn:{getDisplayName:r1e}}},sz=({React:e,getSystem:t,getStore:r,getComponents:n})=>{const i={},s=parseInt(e==null?void 0:e.version,10);return s>=16&&s<18&&(i.render=((a,o,u,c)=>l=>{const f=u(a,o,c)("App","root");tz.default.render(p.default.createElement(f,null),l)})(t,r,sO,n)),{rootInjects:i}};function az(e){let{fn:t}=e;const r={download:i=>({errActions:s,specSelectors:a,specActions:o,getConfigs:u})=>{let{fetch:c}=t;const l=u();function f(h){if(h instanceof Error||h.status>=400)return o.updateLoadingStatus("failed"),s.newThrownErr(Object.assign(new Error((h.message||h.statusText)+" "+i),{source:"fetch"})),void(!h.status&&h instanceof Error&&(function(){try{let g;if("URL"in Zt?g=new URL(i):(g=document.createElement("a"),g.href=i),g.protocol!=="https:"&&Zt.location.protocol==="https:"){const y=Object.assign(new Error(`Possible mixed-content issue? The page was loaded over https:// but a ${g.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:"fetch"});return void s.newThrownErr(y)}if(g.origin!==Zt.location.origin){const y=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${g.origin}) does not match the page (${Zt.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});s.newThrownErr(y)}}catch{return}})());o.updateLoadingStatus("success"),o.updateSpec(h.text),a.url()!==i&&o.updateUrl(i)}i=i||a.url(),o.updateLoadingStatus("loading"),s.clear({source:"fetch"}),c({url:i,loadSpec:!0,requestInterceptor:l.requestInterceptor||(h=>h),responseInterceptor:l.responseInterceptor||(h=>h),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(f,f)},updateLoadingStatus:i=>{let s=[null,"loading","failed","success","failedConfig"];return s.indexOf(i)===-1&&console.error(`Error: ${i} is not one of ${JSON.stringify(s)}`),{type:"spec_update_loading_status",payload:i}}};let n={loadingStatus:(0,nt.createSelector)((i=>i||(0,H.Map)()),(i=>i.get("loadingStatus")||null))};return{statePlugins:{spec:{actions:r,reducers:{spec_update_loading_status:(i,s)=>typeof s.payload=="string"?i.set("loadingStatus",s.payload):i},selectors:n}}}}var cs=(function(e){var t={};return _e.d(t,e),t})({default:function(){return x7}}),SL=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Zge}}),n1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return tye}}),i1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return iye}}),s1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return oye}}),a1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return lye}}),o1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return dye}}),u1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return gye}}),c1e=()=>{cs.default.registerLanguage("json",n1e.default),cs.default.registerLanguage("js",SL.default),cs.default.registerLanguage("xml",i1e.default),cs.default.registerLanguage("yaml",a1e.default),cs.default.registerLanguage("http",o1e.default),cs.default.registerLanguage("bash",s1e.default),cs.default.registerLanguage("powershell",u1e.default),cs.default.registerLanguage("javascript",SL.default)},oz=(function(e){var t={};return _e.d(t,e),t})({default:function(){return yye}}),l1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return vye}}),f1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return bye}}),p1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return _ye}}),d1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Eye}}),h1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Sye}}),m1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return wye}});const g1e={agate:oz.default,arta:l1e.default,monokai:f1e.default,nord:p1e.default,obsidian:d1e.default,"tomorrow-night":h1e.default,idea:m1e.default},y1e=oz.default;var v1e=({language:e,className:t="",getConfigs:r,syntaxHighlighting:n={},children:i=""})=>{const s=r().syntaxHighlight.theme,{styles:a,defaultStyle:o}=n,u=(a==null?void 0:a[s])??o;return p.default.createElement(cs.default,{language:e,className:t,style:u},i)},b1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Oye}}),_1e=({fileName:e="response.txt",className:t,downloadable:r,getComponent:n,canCopy:i,language:s,children:a})=>{const o=(0,p.useRef)(null),u=n("SyntaxHighlighter",!0),c=l=>{const{target:f,deltaY:h}=l,{scrollHeight:d,offsetHeight:g,scrollTop:y}=f;d>g&&(y===0&&h<0||g+y>=d&&h>0)&&l.preventDefault()};return(0,p.useEffect)((()=>{const l=Array.from(o.current.childNodes).filter((f=>!!f.nodeType&&f.classList.contains("microlight")));return l.forEach((f=>f.addEventListener("mousewheel",c,{passive:!1}))),()=>{l.forEach((f=>f.removeEventListener("mousewheel",c)))}}),[a,t,s]),p.default.createElement("div",{className:"highlight-code",ref:o},i&&p.default.createElement("div",{className:"copy-to-clipboard"},p.default.createElement(Sm.CopyToClipboard,{text:a},p.default.createElement("button",null))),r?p.default.createElement("button",{className:"download-contents",onClick:()=>{(0,b1e.default)(a,e)}},"Download"):null,p.default.createElement(u,{language:s,className:(0,Rt.default)(t,"microlight"),renderPlainText:({children:l,PlainTextViewer:f})=>p.default.createElement(f,{className:t},l)},a))},E1e=({className:e="",children:t})=>p.default.createElement("pre",{className:(0,Rt.default)("microlight",e)},t),S1e=(e,t)=>({renderPlainText:r,children:n,...i})=>{const s=t.getConfigs().syntaxHighlight.activated,a=t.getComponent("PlainTextViewer");return s||typeof r!="function"?s?p.default.createElement(e,i,n):p.default.createElement(a,null,n):r({children:n,PlainTextViewer:a})};const w1e=()=>({afterLoad:c1e,rootInjects:{syntaxHighlighting:{styles:g1e,defaultStyle:y1e}},components:{SyntaxHighlighter:v1e,HighlightCode:_1e,PlainTextViewer:E1e}}),x1e=()=>({wrapComponents:{SyntaxHighlighter:S1e}});var uz=()=>[w1e,x1e],A1e=()=>{const{GIT_DIRTY:e,GIT_COMMIT:t,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.28.1",GIT_COMMIT:"ge9b44b5a",GIT_DIRTY:!0,BUILD_TIME:"Tue, 09 Sep 2025 14:04:00 GMT"};Zt.versions=Zt.versions||{},Zt.versions.swaggerUI={version:r,gitRevision:t,gitDirty:e,buildTimestamp:n}},cz=()=>({afterLoad:A1e}),O1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Tye}});const lz=console.error,C1e=e=>t=>{const{getComponent:r,fn:n}=e(),i=r("ErrorBoundary"),s=n.getDisplayName(t);class a extends p.Component{render(){return p.default.createElement(i,{targetName:s,getComponent:r,fn:n},p.default.createElement(t,(0,Ct.default)({},this.props,this.context)))}}var o;return a.displayName=`WithErrorBoundary(${s})`,(o=t).prototype&&o.prototype.isReactComponent&&(a.prototype.mapStateToProps=t.prototype.mapStateToProps),a};var fz=({name:e})=>p.default.createElement("div",{className:"fallback"},"😱 ",p.default.createElement("i",null,"Could not render ",e==="t"?"this component":e,", see the console."));class pz extends p.Component{static getDerivedStateFromError(t){return{hasError:!0,error:t}}constructor(...t){super(...t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.props.fn.componentDidCatch(t,r)}render(){const{getComponent:t,targetName:r,children:n}=this.props;if(this.state.hasError){const i=t("Fallback");return p.default.createElement(i,{name:r})}return n}}Y(pz,"defaultProps",{targetName:"this component",getComponent:()=>fz,fn:{componentDidCatch:lz},children:null});var R1e=pz,dz=({componentList:e=[],fullOverride:t=!1}={})=>({getSystem:r})=>{const n=t?e:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...e],i=(0,O1e.default)(n,Array(n.length).fill(((s,{fn:a})=>a.withErrorBoundary(s))));return{fn:{componentDidCatch:lz,withErrorBoundary:C1e(r)},components:{ErrorBoundary:R1e,Fallback:fz},wrapComponents:i}};class I1e extends p.default.Component{getLayout(){const{getComponent:t,layoutSelectors:r}=this.props,n=r.current();return t(n,!0)||(()=>p.default.createElement("h1",null,' No layout defined for "',n,'" '))}render(){const t=this.getLayout();return p.default.createElement(t,null)}}var T1e=I1e;class j1e extends p.default.Component{constructor(){super(...arguments);Y(this,"close",()=>{let{authActions:r}=this.props;r.showDefinitions(!1)})}render(){let{authSelectors:r,authActions:n,getComponent:i,errSelectors:s,specSelectors:a,fn:{AST:o={}}}=this.props,u=r.shownDefinitions();const c=i("auths"),l=i("CloseIcon");return p.default.createElement("div",{className:"dialog-ux"},p.default.createElement("div",{className:"backdrop-ux"}),p.default.createElement("div",{className:"modal-ux"},p.default.createElement("div",{className:"modal-dialog-ux"},p.default.createElement("div",{className:"modal-ux-inner"},p.default.createElement("div",{className:"modal-ux-header"},p.default.createElement("h3",null,"Available authorizations"),p.default.createElement("button",{type:"button",className:"close-modal",onClick:this.close},p.default.createElement(l,null))),p.default.createElement("div",{className:"modal-ux-content"},u.valueSeq().map(((f,h)=>p.default.createElement(c,{key:h,AST:o,definitions:f,getComponent:i,errSelectors:s,authSelectors:r,authActions:n,specSelectors:a}))))))))}}class P1e extends p.default.Component{render(){let{isAuthorized:t,showPopup:r,onClick:n,getComponent:i}=this.props;const s=i("authorizationPopup",!0),a=i("LockAuthIcon",!0),o=i("UnlockAuthIcon",!0);return p.default.createElement("div",{className:"auth-wrapper"},p.default.createElement("button",{className:t?"btn authorize locked":"btn authorize unlocked",onClick:n},p.default.createElement("span",null,"Authorize"),t?p.default.createElement(a,null):p.default.createElement(o,null)),r&&p.default.createElement(s,null))}}class k1e extends p.default.Component{render(){const{authActions:t,authSelectors:r,specSelectors:n,getComponent:i}=this.props,s=n.securityDefinitions(),a=r.definitionsToAuthorize(),o=i("authorizeBtn");return s?p.default.createElement(o,{onClick:()=>t.showDefinitions(a),isAuthorized:!!r.authorized().size,showPopup:!!r.shownDefinitions(),getComponent:i}):null}}class N1e extends p.default.Component{constructor(){super(...arguments);Y(this,"onClick",r=>{r.stopPropagation();let{onClick:n}=this.props;n&&n()})}render(){let{isAuthorized:r,getComponent:n}=this.props;const i=n("LockAuthOperationIcon",!0),s=n("UnlockAuthOperationIcon",!0);return p.default.createElement("button",{className:"authorization__btn","aria-label":r?"authorization button locked":"authorization button unlocked",onClick:this.onClick},r?p.default.createElement(i,{className:"locked"}):p.default.createElement(s,{className:"unlocked"}))}}class M1e extends p.default.Component{constructor(r,n){super(r,n);Y(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});Y(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});Y(this,"logoutClick",r=>{r.preventDefault();let{authActions:n,definitions:i}=this.props,s=i.map(((a,o)=>o)).toArray();this.setState(s.reduce(((a,o)=>(a[o]="",a)),{})),n.logoutWithPersistOption(s)});Y(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});this.state={}}render(){let{definitions:r,getComponent:n,authSelectors:i,errSelectors:s}=this.props;const a=n("AuthItem"),o=n("oauth2",!0),u=n("Button");let c=i.authorized(),l=r.filter(((d,g)=>!!c.get(g))),f=r.filter((d=>d.get("type")!=="oauth2")),h=r.filter((d=>d.get("type")==="oauth2"));return p.default.createElement("div",{className:"auth-container"},!!f.size&&p.default.createElement("form",{onSubmit:this.submitAuth},f.map(((d,g)=>p.default.createElement(a,{key:g,schema:d,name:g,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i}))).toArray(),p.default.createElement("div",{className:"auth-btn-wrapper"},f.size===l.size?p.default.createElement(u,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):p.default.createElement(u,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),p.default.createElement(u,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),h&&h.size?p.default.createElement("div",null,p.default.createElement("div",{className:"scope-def"},p.default.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),p.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),r.filter((d=>d.get("type")==="oauth2")).map(((d,g)=>p.default.createElement("div",{key:g},p.default.createElement(o,{authorized:c,schema:d,name:g})))).toArray()):null)}}class D1e extends p.default.Component{render(){let{schema:t,name:r,getComponent:n,onAuthChange:i,authorized:s,errSelectors:a,authSelectors:o}=this.props;const u=n("apiKeyAuth"),c=n("basicAuth");let l;const f=t.get("type");switch(f){case"apiKey":l=p.default.createElement(u,{key:r,schema:t,name:r,errSelectors:a,authorized:s,getComponent:n,onChange:i,authSelectors:o});break;case"basic":l=p.default.createElement(c,{key:r,schema:t,name:r,errSelectors:a,authorized:s,getComponent:n,onChange:i,authSelectors:o});break;default:l=p.default.createElement("div",{key:r},"Unknown security definition type ",f)}return p.default.createElement("div",{key:`${r}-jump`},l)}}class q1e extends p.default.Component{render(){let{error:t}=this.props,r=t.get("level"),n=t.get("message"),i=t.get("source");return p.default.createElement("div",{className:"errors"},p.default.createElement("b",null,i," ",r),p.default.createElement("span",null,n))}}class $1e extends p.default.Component{constructor(r,n){super(r,n);Y(this,"onChange",r=>{let{onChange:n}=this.props,i=r.target.value,s=Object.assign({},this.state,{value:i});this.setState(s),n(s)});let{name:i,schema:s}=this.props,a=this.getValue();this.state={name:i,schema:s,value:a}}getValue(){let{name:r,authorized:n}=this.props;return n&&n.getIn([r,"value"])}render(){let{schema:r,getComponent:n,errSelectors:i,name:s,authSelectors:a}=this.props;const o=n("Input"),u=n("Row"),c=n("Col"),l=n("authError"),f=n("Markdown",!0),h=n("JumpToPath",!0),d=a.selectAuthPath(s);let g=this.getValue(),y=i.allErrors().filter((v=>v.get("authId")===s));return p.default.createElement("div",null,p.default.createElement("h4",null,p.default.createElement("code",null,s||r.get("name"))," (apiKey)",p.default.createElement(h,{path:d})),g&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(f,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("p",null,"Name: ",p.default.createElement("code",null,r.get("name")))),p.default.createElement(u,null,p.default.createElement("p",null,"In: ",p.default.createElement("code",null,r.get("in")))),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"api_key_value"},"Value:"),g?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),y.valueSeq().map(((v,_)=>p.default.createElement(l,{error:v,key:_}))))}}class F1e extends p.default.Component{constructor(r,n){super(r,n);Y(this,"onChange",r=>{let{onChange:n}=this.props,{value:i,name:s}=r.target,a=this.state.value;a[s]=i,this.setState({value:a}),n(this.state)});let{schema:i,name:s}=this.props,a=this.getValue().username;this.state={name:s,schema:i,value:a?{username:a}:{}}}getValue(){let{authorized:r,name:n}=this.props;return r&&r.getIn([n,"value"])||{}}render(){let{schema:r,getComponent:n,name:i,errSelectors:s,authSelectors:a}=this.props;const o=n("Input"),u=n("Row"),c=n("Col"),l=n("authError"),f=n("JumpToPath",!0),h=n("Markdown",!0),d=a.selectAuthPath(i);let g=this.getValue().username,y=s.allErrors().filter((v=>v.get("authId")===i));return p.default.createElement("div",null,p.default.createElement("h4",null,"Basic authorization",p.default.createElement(f,{path:d})),g&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(h,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth_username"},"Username:"),g?p.default.createElement("code",null," ",g," "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth_password"},"Password:"),g?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),y.valueSeq().map(((v,_)=>p.default.createElement(l,{error:v,key:_}))))}}function B1e(e){const{example:t,showValue:r,getComponent:n}=e,i=n("Markdown",!0),s=n("HighlightCode",!0);return t&&H.Map.isMap(t)?p.default.createElement("div",{className:"example"},t.get("description")?p.default.createElement("section",{className:"example__section"},p.default.createElement("div",{className:"example__section-header"},"Example Description"),p.default.createElement("p",null,p.default.createElement(i,{source:t.get("description")}))):null,r&&t.has("value")?p.default.createElement("section",{className:"example__section"},p.default.createElement("div",{className:"example__section-header"},"Example Value"),p.default.createElement(s,null,Jr(t.get("value")))):null):null}class hz extends p.default.PureComponent{constructor(){super(...arguments);Y(this,"_onSelect",(r,{isSyntheticChange:n=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(r,{isSyntheticChange:n})});Y(this,"_onDomSelect",r=>{if(typeof this.props.onSelect=="function"){const n=r.target.selectedOptions[0].getAttribute("value");this._onSelect(n,{isSyntheticChange:!1})}});Y(this,"getCurrentExample",()=>{const{examples:r,currentExampleKey:n}=this.props,i=r.get(n),s=r.keySeq().first(),a=r.get(s);return i||a||(0,H.Map)({})})}componentDidMount(){const{onSelect:r,examples:n}=this.props;if(typeof r=="function"){const i=n.first(),s=n.keyOf(i);this._onSelect(s,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(r){const{currentExampleKey:n,examples:i}=r;if(i!==this.props.examples&&!i.has(n)){const s=i.first(),a=i.keyOf(s);this._onSelect(a,{isSyntheticChange:!0})}}render(){const{examples:r,currentExampleKey:n,isValueModified:i,isModifiedValueAvailable:s,showLabels:a}=this.props;return p.default.createElement("div",{className:"examples-select"},a?p.default.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,p.default.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:s&&i?"__MODIFIED__VALUE__":n||""},s?p.default.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,r.map(((o,u)=>p.default.createElement("option",{key:u,value:u},H.Map.isMap(o)&&o.get("summary")||u))).valueSeq()))}}Y(hz,"defaultProps",{examples:(0,H.Map)({}),onSelect:(...r)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...r),currentExampleKey:null,showLabels:!0});const Hw=e=>H.List.isList(e)?e:Jr(e);class mz extends p.default.PureComponent{constructor(r){super(r);Y(this,"_getStateForCurrentNamespace",()=>{const{currentNamespace:r}=this.props;return(this.state[r]||(0,H.Map)()).toObject()});Y(this,"_setStateForCurrentNamespace",r=>{const{currentNamespace:n}=this.props;return this._setStateForNamespace(n,r)});Y(this,"_setStateForNamespace",(r,n)=>{const i=(this.state[r]||(0,H.Map)()).mergeDeep(n);return this.setState({[r]:i})});Y(this,"_isCurrentUserInputSameAsExampleValue",()=>{const{currentUserInputValue:r}=this.props;return this._getCurrentExampleValue()===r});Y(this,"_getValueForExample",(r,n)=>{const{examples:i}=n||this.props;return Hw((i||(0,H.Map)({})).getIn([r,"value"]))});Y(this,"_getCurrentExampleValue",r=>{const{currentKey:n}=r||this.props;return this._getValueForExample(n,r||this.props)});Y(this,"_onExamplesSelect",(r,{isSyntheticChange:n}={},...i)=>{const{onSelect:s,updateValue:a,currentUserInputValue:o,userHasEditedBody:u}=this.props,{lastUserEditedValue:c}=this._getStateForCurrentNamespace(),l=this._getValueForExample(r);if(r==="__MODIFIED__VALUE__")return a(Hw(c)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof s=="function"&&s(r,{isSyntheticChange:n},...i),this._setStateForCurrentNamespace({lastDownstreamValue:l,isModifiedValueSelected:n&&u||!!o&&o!==l}),n||typeof a=="function"&&a(Hw(l))});const n=this._getCurrentExampleValue();this.state={[r.currentNamespace]:(0,H.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:n,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==n})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}UNSAFE_componentWillReceiveProps(r){const{currentUserInputValue:n,examples:i,onSelect:s,userHasEditedBody:a}=r,{lastUserEditedValue:o,lastDownstreamValue:u}=this._getStateForCurrentNamespace(),c=this._getValueForExample(r.currentKey,r),l=i.filter((f=>H.Map.isMap(f)&&(f.get("value")===n||Jr(f.get("value"))===n)));if(l.size){let f;f=l.has(r.currentKey)?r.currentKey:l.keySeq().first(),s(f,{isSyntheticChange:!0})}else n!==this.props.currentUserInputValue&&n!==o&&n!==u&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(r.currentNamespace,{lastUserEditedValue:r.currentUserInputValue,isModifiedValueSelected:a||n!==c}))}render(){const{currentUserInputValue:r,examples:n,currentKey:i,getComponent:s,userHasEditedBody:a}=this.props,{lastDownstreamValue:o,lastUserEditedValue:u,isModifiedValueSelected:c}=this._getStateForCurrentNamespace(),l=s("ExamplesSelect");return p.default.createElement(l,{examples:n,currentExampleKey:i,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!u&&u!==o,isValueModified:r!==void 0&&c&&r!==this._getCurrentExampleValue()||a})}}Y(mz,"defaultProps",{userHasEditedBody:!1,examples:(0,H.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:(...r)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...r),updateValue:(...r)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...r)});function L1e({auth:e,authActions:t,errActions:r,configs:n,authConfigs:i={},currentServer:s}){let{schema:a,scopes:o,name:u,clientId:c}=e,l=a.get("flow"),f=[];switch(l){case"password":return void t.authorizePassword(e);case"application":case"clientCredentials":case"client_credentials":return void t.authorizeApplication(e);case"accessCode":case"authorizationCode":case"authorization_code":f.push("response_type=code");break;case"implicit":f.push("response_type=token")}typeof c=="string"&&f.push("client_id="+encodeURIComponent(c));let h=n.oauth2RedirectUrl;if(h===void 0)return void r.newAuthErr({authId:u,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});f.push("redirect_uri="+encodeURIComponent(h));let d=[];if(Array.isArray(o)?d=o:H.default.List.isList(o)&&(d=o.toArray()),d.length>0){let w=i.scopeSeparator||" ";f.push("scope="+encodeURIComponent(d.join(w)))}let g=cf(new Date);if(f.push("state="+encodeURIComponent(g)),i.realm!==void 0&&f.push("realm="+encodeURIComponent(i.realm)),(l==="authorizationCode"||l==="authorization_code"||l==="accessCode")&&i.usePkceWithAuthorizationCodeGrant){const w=(function(){return QB(xo()(32).toString("base64"))})(),S=(function(R){return QB(Ibe()("sha256").update(R).digest("base64"))})(w);f.push("code_challenge="+S),f.push("code_challenge_method=S256"),e.codeVerifier=w}let{additionalQueryStringParams:y}=i;for(let w in y)y[w]!==void 0&&f.push([w,y[w]].map(encodeURIComponent).join("="));const v=a.get("authorizationUrl");let _;_=s?(0,Tc.default)(hr(v),s,!0).toString():hr(v);let b,E=[_,f.join("&")].join(typeof v!="string"||v.includes("?")?"&":"?");b=l==="implicit"?t.preAuthorizeImplicit:i.useBasicAuthenticationWithAccessCodeGrant?t.authorizeAccessCodeWithBasicAuthentication:t.authorizeAccessCodeWithFormParams,t.authPopup(E,{auth:e,state:g,redirectUrl:h,callback:b,errCb:r.newAuthErr})}class U1e extends p.default.Component{constructor(r,n){super(r,n);Y(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});Y(this,"authorize",()=>{let{authActions:r,errActions:n,getConfigs:i,authSelectors:s,oas3Selectors:a}=this.props,o=i(),u=s.getConfigs();n.clear({authId:name,type:"auth",source:"auth"}),L1e({auth:this.state,currentServer:a.serverEffectiveValue(a.selectedServer()),authActions:r,errActions:n,configs:o,authConfigs:u})});Y(this,"onScopeChange",r=>{let{target:n}=r,{checked:i}=n,s=n.dataset.value;if(i&&this.state.scopes.indexOf(s)===-1){let a=this.state.scopes.concat([s]);this.setState({scopes:a})}else!i&&this.state.scopes.indexOf(s)>-1&&this.setState({scopes:this.state.scopes.filter((a=>a!==s))})});Y(this,"onInputChange",r=>{let{target:{dataset:{name:n},value:i}}=r,s={[n]:i};this.setState(s)});Y(this,"selectScopes",r=>{r.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).keys())}):this.setState({scopes:[]})});Y(this,"logout",r=>{r.preventDefault();let{authActions:n,errActions:i,name:s}=this.props;i.clear({authId:s,type:"auth",source:"auth"}),n.logoutWithPersistOption([s])});let{name:i,schema:s,authorized:a,authSelectors:o}=this.props,u=a&&a.get(i),c=o.getConfigs()||{},l=u&&u.get("username")||"",f=u&&u.get("clientId")||c.clientId||"",h=u&&u.get("clientSecret")||c.clientSecret||"",d=u&&u.get("passwordType")||"basic",g=u&&u.get("scopes")||c.scopes||[];typeof g=="string"&&(g=g.split(c.scopeSeparator||" ")),this.state={appName:c.appName,name:i,schema:s,scopes:g,clientId:f,clientSecret:h,username:l,password:"",passwordType:d}}render(){let{schema:r,getComponent:n,authSelectors:i,errSelectors:s,name:a,specSelectors:o}=this.props;const u=n("Input"),c=n("Row"),l=n("Col"),f=n("Button"),h=n("authError"),d=n("JumpToPath",!0),g=n("Markdown",!0),y=n("InitializedInput"),{isOAS3:v}=o;let _=v()?r.get("openIdConnectUrl"):null;const b="implicit",E="password",w=v()?_?"authorization_code":"authorizationCode":"accessCode",S=v()?_?"client_credentials":"clientCredentials":"application",A=i.selectAuthPath(a);let R=!!(i.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,T=r.get("flow"),O=T===w&&R?T+" with PKCE":T,D=r.get("allowedScopes")||r.get("scopes"),N=!!i.authorized().get(a),$=s.allErrors().filter((ee=>ee.get("authId")===a)),M=!$.filter((ee=>ee.get("source")==="validation")).size,X=r.get("description");return p.default.createElement("div",null,p.default.createElement("h4",null,a," (OAuth2, ",O,") ",p.default.createElement(d,{path:A})),this.state.appName?p.default.createElement("h5",null,"Application: ",this.state.appName," "):null,X&&p.default.createElement(g,{source:r.get("description")}),N&&p.default.createElement("h6",null,"Authorized"),_&&p.default.createElement("p",null,"OpenID Connect URL: ",p.default.createElement("code",null,_)),(T===b||T===w)&&p.default.createElement("p",null,"Authorization URL: ",p.default.createElement("code",null,r.get("authorizationUrl"))),(T===E||T===w||T===S)&&p.default.createElement("p",null,"Token URL:",p.default.createElement("code",null," ",r.get("tokenUrl"))),p.default.createElement("p",{className:"flow"},"Flow: ",p.default.createElement("code",null,O)),T!==E?null:p.default.createElement(c,null,p.default.createElement(c,null,p.default.createElement("label",{htmlFor:"oauth_username"},"username:"),N?p.default.createElement("code",null," ",this.state.username," "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),p.default.createElement(c,null,p.default.createElement("label",{htmlFor:"oauth_password"},"password:"),N?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),p.default.createElement(c,null,p.default.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),N?p.default.createElement("code",null," ",this.state.passwordType," "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},p.default.createElement("option",{value:"basic"},"Authorization header"),p.default.createElement("option",{value:"request-body"},"Request body"))))),(T===S||T===b||T===w||T===E)&&(!N||N&&this.state.clientId)&&p.default.createElement(c,null,p.default.createElement("label",{htmlFor:`client_id_${T}`},"client_id:"),N?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement(y,{id:`client_id_${T}`,type:"text",required:T===E,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(T===S||T===w||T===E)&&p.default.createElement(c,null,p.default.createElement("label",{htmlFor:`client_secret_${T}`},"client_secret:"),N?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement(y,{id:`client_secret_${T}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!N&&D&&D.size?p.default.createElement("div",{className:"scopes"},p.default.createElement("h2",null,"Scopes:",p.default.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),p.default.createElement("a",{onClick:this.selectScopes},"select none")),D.map(((ee,J)=>p.default.createElement(c,{key:J},p.default.createElement("div",{className:"checkbox"},p.default.createElement(u,{"data-value":J,id:`${J}-${T}-checkbox-${this.state.name}`,disabled:N,checked:this.state.scopes.includes(J),type:"checkbox",onChange:this.onScopeChange}),p.default.createElement("label",{htmlFor:`${J}-${T}-checkbox-${this.state.name}`},p.default.createElement("span",{className:"item"}),p.default.createElement("div",{className:"text"},p.default.createElement("p",{className:"name"},J),p.default.createElement("p",{className:"description"},ee))))))).toArray()):null,$.valueSeq().map(((ee,J)=>p.default.createElement(h,{error:ee,key:J}))),p.default.createElement("div",{className:"auth-btn-wrapper"},M&&(N?p.default.createElement(f,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):p.default.createElement(f,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),p.default.createElement(f,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class V1e extends p.Component{constructor(){super(...arguments);Y(this,"onClick",()=>{let{specActions:r,path:n,method:i}=this.props;r.clearResponse(n,i),r.clearRequest(n,i)})}render(){return p.default.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const z1e=({headers:e})=>p.default.createElement("div",null,p.default.createElement("h5",null,"Response headers"),p.default.createElement("pre",{className:"microlight"},e)),W1e=({duration:e})=>p.default.createElement("div",null,p.default.createElement("h5",null,"Request duration"),p.default.createElement("pre",{className:"microlight"},e," ms"));class J1e extends p.default.Component{shouldComponentUpdate(t){return this.props.response!==t.response||this.props.path!==t.path||this.props.method!==t.method||this.props.displayRequestDuration!==t.displayRequestDuration}render(){const{response:t,getComponent:r,getConfigs:n,displayRequestDuration:i,specSelectors:s,path:a,method:o}=this.props,{showMutatedRequest:u,requestSnippetsEnabled:c}=n(),l=u?s.mutatedRequestFor(a,o):s.requestFor(a,o),f=t.get("status"),h=l.get("url"),d=t.get("headers").toJS(),g=t.get("notDocumented"),y=t.get("error"),v=t.get("text"),_=t.get("duration"),b=Object.keys(d),E=d["content-type"]||d["Content-Type"],w=r("responseBody"),S=b.map((D=>{var N=Array.isArray(d[D])?d[D].join():d[D];return p.default.createElement("span",{className:"headerline",key:D}," ",D,": ",N," ")})),A=S.length!==0,R=r("Markdown",!0),T=r("RequestSnippets",!0),O=r("curl",!0);return p.default.createElement("div",null,l&&c?p.default.createElement(T,{request:l}):p.default.createElement(O,{request:l}),h&&p.default.createElement("div",null,p.default.createElement("div",{className:"request-url"},p.default.createElement("h4",null,"Request URL"),p.default.createElement("pre",{className:"microlight"},h))),p.default.createElement("h4",null,"Server response"),p.default.createElement("table",{className:"responses-table live-responses-table"},p.default.createElement("thead",null,p.default.createElement("tr",{className:"responses-header"},p.default.createElement("td",{className:"col_header response-col_status"},"Code"),p.default.createElement("td",{className:"col_header response-col_description"},"Details"))),p.default.createElement("tbody",null,p.default.createElement("tr",{className:"response"},p.default.createElement("td",{className:"response-col_status"},f,g?p.default.createElement("div",{className:"response-undocumented"},p.default.createElement("i",null," Undocumented ")):null),p.default.createElement("td",{className:"response-col_description"},y?p.default.createElement(R,{source:`${t.get("name")!==""?`${t.get("name")}: `:""}${t.get("message")}`}):null,v?p.default.createElement(w,{content:v,contentType:E,url:h,headers:d,getConfigs:n,getComponent:r}):null,A?p.default.createElement(z1e,{headers:S}):null,i&&_?p.default.createElement(W1e,{duration:_}):null)))))}}class gz extends p.default.Component{constructor(r,n){super(r,n);Y(this,"getDefinitionUrl",()=>{let{specSelectors:r}=this.props;return new Tc.default(r.url(),Zt.location).toString()});let{getConfigs:i}=r,{validatorUrl:s}=i();this.state={url:this.getDefinitionUrl(),validatorUrl:s===void 0?"https://validator.swagger.io/validator":s}}UNSAFE_componentWillReceiveProps(r){let{getConfigs:n}=r,{validatorUrl:i}=n();this.setState({url:this.getDefinitionUrl(),validatorUrl:i===void 0?"https://validator.swagger.io/validator":i})}render(){let{getConfigs:r}=this.props,{spec:n}=r(),i=hr(this.state.validatorUrl);return typeof n=="object"&&Object.keys(n).length?null:this.state.url&&ZB(this.state.validatorUrl)&&ZB(this.state.url)?p.default.createElement("span",{className:"float-right"},p.default.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${i}/debug?url=${encodeURIComponent(this.state.url)}`},p.default.createElement(K1e,{src:`${i}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class K1e extends p.default.Component{constructor(t){super(t),this.state={loaded:!1,error:!1}}componentDidMount(){const t=new Image;t.onload=()=>{this.setState({loaded:!0})},t.onerror=()=>{this.setState({error:!0})},t.src=this.props.src}UNSAFE_componentWillReceiveProps(t){if(t.src!==this.props.src){const r=new Image;r.onload=()=>{this.setState({loaded:!0})},r.onerror=()=>{this.setState({error:!0})},r.src=t.src}}render(){return this.state.error?p.default.createElement("img",{alt:"Error"}):this.state.loaded?p.default.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class H1e extends p.default.Component{constructor(){super(...arguments);Y(this,"renderOperationTag",(r,n)=>{const{specSelectors:i,getComponent:s,oas3Selectors:a,layoutSelectors:o,layoutActions:u,getConfigs:c}=this.props,l=i.validOperationMethods(),f=s("OperationContainer",!0),h=s("OperationTag"),d=r.get("operations");return p.default.createElement(h,{key:"operation-"+n,tagObj:r,tag:n,oas3Selectors:a,layoutSelectors:o,layoutActions:u,getConfigs:c,getComponent:s,specUrl:i.url()},p.default.createElement("div",{className:"operation-tag-content"},d.map((g=>{const y=g.get("path"),v=g.get("method"),_=H.default.List(["paths",y,v]);return l.indexOf(v)===-1?null:p.default.createElement(f,{key:`${y}-${v}`,specPath:_,op:g,path:y,method:v,tag:n})})).toArray()))})}render(){let{specSelectors:r}=this.props;const n=r.taggedOperations();return n.size===0?p.default.createElement("h3",null," No operations defined in spec!"):p.default.createElement("div",null,n.map(this.renderOperationTag).toArray(),n.size<1?p.default.createElement("h3",null," No operations defined in spec! "):null)}}class yz extends p.default.Component{render(){const{tagObj:t,tag:r,children:n,oas3Selectors:i,layoutSelectors:s,layoutActions:a,getConfigs:o,getComponent:u,specUrl:c}=this.props;let{docExpansion:l,deepLinking:f}=o();const h=u("Collapse"),d=u("Markdown",!0),g=u("DeepLink"),y=u("Link"),v=u("ArrowUpIcon"),_=u("ArrowDownIcon");let b,E=t.getIn(["tagDetails","description"],null),w=t.getIn(["tagDetails","externalDocs","description"]),S=t.getIn(["tagDetails","externalDocs","url"]);b=ys(i)&&ys(i.selectedServer)?Oi(S,c,{selectedServer:i.selectedServer()}):S;let A=["operations-tag",r],R=s.isShown(A,l==="full"||l==="list");return p.default.createElement("div",{className:R?"opblock-tag-section is-open":"opblock-tag-section"},p.default.createElement("h3",{onClick:()=>a.show(A,!R),className:E?"opblock-tag":"opblock-tag no-desc",id:A.map((T=>J7(T))).join("-"),"data-tag":r,"data-is-open":R},p.default.createElement(g,{enabled:f,isShown:R,path:Ic(r),text:r}),E?p.default.createElement("small",null,p.default.createElement(d,{source:E})):p.default.createElement("small",null),b?p.default.createElement("div",{className:"info__externaldocs"},p.default.createElement("small",null,p.default.createElement(y,{href:hr(b),onClick:T=>T.stopPropagation(),target:"_blank"},w||b))):null,p.default.createElement("button",{"aria-expanded":R,className:"expand-operation",title:R?"Collapse operation":"Expand operation",onClick:()=>a.show(A,!R)},R?p.default.createElement(v,{className:"arrow"}):p.default.createElement(_,{className:"arrow"}))),p.default.createElement(h,{isOpened:R},n))}}Y(yz,"defaultProps",{tagObj:H.default.fromJS({}),tag:""});class vz extends p.PureComponent{render(){let{specPath:t,response:r,request:n,toggleShown:i,onTryoutClick:s,onResetClick:a,onCancelClick:o,onExecute:u,fn:c,getComponent:l,getConfigs:f,specActions:h,specSelectors:d,authActions:g,authSelectors:y,oas3Actions:v,oas3Selectors:_}=this.props,b=this.props.operation,{deprecated:E,isShown:w,path:S,method:A,op:R,tag:T,operationId:O,allowTryItOut:D,displayRequestDuration:N,tryItOutEnabled:$,executeInProgress:M}=b.toJS(),{description:X,externalDocs:ee,schemes:J}=R;const Q=ee?Oi(ee.url,d.url(),{selectedServer:_.selectedServer()}):"";let te=b.getIn(["op"]),re=te.get("responses"),L=(function(I,k){if(!H.default.Iterable.isIterable(I))return H.default.List();let W=I.getIn(Array.isArray(k)?k:[k]);return H.default.List.isList(W)?W:H.default.List()})(te,["parameters"]),K=d.operationScheme(S,A),ne=["operations",T,O],ce=ua(te);const ue=l("responses"),se=l("parameters"),V=l("execute"),z=l("clear"),de=l("Collapse"),ge=l("Markdown",!0),Ce=l("schemes"),Pe=l("OperationServers"),pe=l("OperationExt"),Te=l("OperationSummary"),Le=l("Link"),{showExtensions:be}=f();if(re&&r&&r.size>0){let U=!re.get(String(r.get("status")))&&!re.get("default");r=r.set("notDocumented",U)}let we=[S,A];const xe=d.validationErrors([S,A]);return p.default.createElement("div",{className:E?"opblock opblock-deprecated":w?`opblock opblock-${A} is-open`:`opblock opblock-${A}`,id:J7(ne.join("-"))},p.default.createElement(Te,{operationProps:b,isShown:w,toggleShown:i,getComponent:l,authActions:g,authSelectors:y,specPath:t}),p.default.createElement(de,{isOpened:w},p.default.createElement("div",{className:"opblock-body"},te&&te.size||te===null?null:p.default.createElement(pV,{height:"32px",width:"32px",className:"opblock-loading-animation"}),E&&p.default.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),X&&p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement("div",{className:"opblock-description"},p.default.createElement(ge,{source:X}))),Q?p.default.createElement("div",{className:"opblock-external-docs-wrapper"},p.default.createElement("h4",{className:"opblock-title_normal"},"Find more details"),p.default.createElement("div",{className:"opblock-external-docs"},ee.description&&p.default.createElement("span",{className:"opblock-external-docs__description"},p.default.createElement(ge,{source:ee.description})),p.default.createElement(Le,{target:"_blank",className:"opblock-external-docs__link",href:hr(Q)},Q))):null,te&&te.size?p.default.createElement(se,{parameters:L,specPath:t.push("parameters"),operation:te,onChangeKey:we,onTryoutClick:s,onResetClick:a,onCancelClick:o,tryItOutEnabled:$,allowTryItOut:D,fn:c,getComponent:l,specActions:h,specSelectors:d,pathMethod:[S,A],getConfigs:f,oas3Actions:v,oas3Selectors:_}):null,$?p.default.createElement(Pe,{getComponent:l,path:S,method:A,operationServers:te.get("servers"),pathServers:d.paths().getIn([S,"servers"]),getSelectedServer:_.selectedServer,setSelectedServer:v.setSelectedServer,setServerVariableValue:v.setServerVariableValue,getServerVariable:_.serverVariableValue,getEffectiveServerValue:_.serverEffectiveValue}):null,$&&D&&J&&J.size?p.default.createElement("div",{className:"opblock-schemes"},p.default.createElement(Ce,{schemes:J,path:S,method:A,specActions:h,currentScheme:K})):null,!$||!D||xe.length<=0?null:p.default.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",p.default.createElement("ul",null,xe.map(((U,I)=>p.default.createElement("li",{key:I}," ",U," "))))),p.default.createElement("div",{className:$&&r&&D?"btn-group":"execute-wrapper"},$&&D?p.default.createElement(V,{operation:te,specActions:h,specSelectors:d,oas3Selectors:_,oas3Actions:v,path:S,method:A,onExecute:u,disabled:M}):null,$&&r&&D?p.default.createElement(z,{specActions:h,path:S,method:A}):null),M?p.default.createElement("div",{className:"loading-container"},p.default.createElement("div",{className:"loading"})):null,re?p.default.createElement(ue,{responses:re,request:n,tryItOutResponse:r,getComponent:l,getConfigs:f,specSelectors:d,oas3Actions:v,oas3Selectors:_,specActions:h,produces:d.producesOptionsFor([S,A]),producesValue:d.currentProducesFor([S,A]),specPath:t.push("responses"),path:S,method:A,displayRequestDuration:N,fn:c}):null,be&&ce.size?p.default.createElement(pe,{extensions:ce,getComponent:l}):null)))}}Y(vz,"defaultProps",{operation:null,response:null,request:null,specPath:(0,H.List)(),summary:""});class bz extends p.PureComponent{constructor(r,n){super(r,n);Y(this,"toggleShown",()=>{let{layoutActions:r,tag:n,operationId:i,isShown:s}=this.props;const a=this.getResolvedSubtree();s||a!==void 0||this.requestResolvedSubtree(),r.show(["operations",n,i],!s)});Y(this,"onCancelClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});Y(this,"onTryoutClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});Y(this,"onResetClick",r=>{const n=this.props.oas3Selectors.selectDefaultRequestBodyValue(...r),i=this.props.oas3Selectors.requestContentType(...r);if(i==="application/x-www-form-urlencoded"||i==="multipart/form-data"){const s=JSON.parse(n);Object.entries(s).forEach((([a,o])=>{Array.isArray(o)?s[a]=s[a].map((u=>typeof u=="object"?JSON.stringify(u,null,2):u)):typeof o=="object"&&(s[a]=JSON.stringify(s[a],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:(0,H.fromJS)(s),pathMethod:r})}else this.props.oas3Actions.setRequestBodyValue({value:n,pathMethod:r})});Y(this,"onExecute",()=>{this.setState({executeInProgress:!0})});Y(this,"getResolvedSubtree",()=>{const{specSelectors:r,path:n,method:i,specPath:s}=this.props;return s?r.specResolvedSubtree(s.toJS()):r.specResolvedSubtree(["paths",n,i])});Y(this,"requestResolvedSubtree",()=>{const{specActions:r,path:n,method:i,specPath:s}=this.props;return s?r.requestResolvedSubtree(s.toJS()):r.requestResolvedSubtree(["paths",n,i])});const{tryItOutEnabled:i}=r.getConfigs();this.state={tryItOutEnabled:i,executeInProgress:!1}}mapStateToProps(r,n){const{op:i,layoutSelectors:s,getConfigs:a}=n,{docExpansion:o,deepLinking:u,displayOperationId:c,displayRequestDuration:l,supportedSubmitMethods:f}=a(),h=s.showSummary(),d=i.getIn(["operation","__originalOperationId"])||i.getIn(["operation","operationId"])||(0,ZV.opId)(i.get("operation"),n.path,n.method)||i.get("id"),g=["operations",n.tag,d],y=f.indexOf(n.method)>=0&&(n.allowTryItOut===void 0?n.specSelectors.allowTryItOutFor(n.path,n.method):n.allowTryItOut),v=i.getIn(["operation","security"])||n.specSelectors.security();return{operationId:d,isDeepLinkingEnabled:u,showSummary:h,displayOperationId:c,displayRequestDuration:l,allowTryItOut:y,security:v,isAuthorized:n.authSelectors.isAuthorized(v),isShown:s.isShown(g,o==="full"),jumpToKey:`paths.${n.path}.${n.method}`,response:n.specSelectors.responseFor(n.path,n.method),request:n.specSelectors.requestFor(n.path,n.method)}}componentDidMount(){const{isShown:r}=this.props,n=this.getResolvedSubtree();r&&n===void 0&&this.requestResolvedSubtree()}UNSAFE_componentWillReceiveProps(r){const{response:n,isShown:i}=r,s=this.getResolvedSubtree();n!==this.props.response&&this.setState({executeInProgress:!1}),i&&s===void 0&&this.requestResolvedSubtree()}render(){let{op:r,tag:n,path:i,method:s,security:a,isAuthorized:o,operationId:u,showSummary:c,isShown:l,jumpToKey:f,allowTryItOut:h,response:d,request:g,displayOperationId:y,displayRequestDuration:v,isDeepLinkingEnabled:_,specPath:b,specSelectors:E,specActions:w,getComponent:S,getConfigs:A,layoutSelectors:R,layoutActions:T,authActions:O,authSelectors:D,oas3Actions:N,oas3Selectors:$,fn:M}=this.props;const X=S("operation"),ee=this.getResolvedSubtree()||(0,H.Map)(),J=(0,H.fromJS)({op:ee,tag:n,path:i,summary:r.getIn(["operation","summary"])||"",deprecated:ee.get("deprecated")||r.getIn(["operation","deprecated"])||!1,method:s,security:a,isAuthorized:o,operationId:u,originalOperationId:ee.getIn(["operation","__originalOperationId"]),showSummary:c,isShown:l,jumpToKey:f,allowTryItOut:h,request:g,displayOperationId:y,displayRequestDuration:v,isDeepLinkingEnabled:_,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return p.default.createElement(X,{operation:J,response:d,request:g,isShown:l,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:b,specActions:w,specSelectors:E,oas3Actions:N,oas3Selectors:$,layoutActions:T,layoutSelectors:R,authActions:O,authSelectors:D,getComponent:S,getConfigs:A,fn:M})}}Y(bz,"defaultProps",{showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1});var G1e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Pye}});class _z extends p.PureComponent{render(){let{isShown:t,toggleShown:r,getComponent:n,authActions:i,authSelectors:s,operationProps:a,specPath:o}=this.props,{summary:u,isAuthorized:c,method:l,op:f,showSummary:h,path:d,operationId:g,originalOperationId:y,displayOperationId:v}=a.toJS(),{summary:_}=f,b=a.get("security");const E=n("authorizeOperationBtn",!0),w=n("OperationSummaryMethod"),S=n("OperationSummaryPath"),A=n("JumpToPath",!0),R=n("CopyToClipboardBtn",!0),T=n("ArrowUpIcon"),O=n("ArrowDownIcon"),D=b&&!!b.count(),N=D&&b.size===1&&b.first().isEmpty(),$=!D||N;return p.default.createElement("div",{className:`opblock-summary opblock-summary-${l}`},p.default.createElement("button",{"aria-expanded":t,className:"opblock-summary-control",onClick:r},p.default.createElement(w,{method:l}),p.default.createElement("div",{className:"opblock-summary-path-description-wrapper"},p.default.createElement(S,{getComponent:n,operationProps:a,specPath:o}),h?p.default.createElement("div",{className:"opblock-summary-description"},(0,G1e.default)(_||u)):null),v&&(y||g)?p.default.createElement("span",{className:"opblock-summary-operation-id"},y||g):null),p.default.createElement(R,{textToCopy:`${o.get(1)}`}),$?null:p.default.createElement(E,{isAuthorized:c,onClick:()=>{const M=s.definitionsForRequirements(b);i.showDefinitions(M)}}),p.default.createElement(A,{path:o}),p.default.createElement("button",{"aria-label":`${l} ${d.replace(/\//g,"​/")}`,className:"opblock-control-arrow","aria-expanded":t,tabIndex:"-1",onClick:r},t?p.default.createElement(T,{className:"arrow"}):p.default.createElement(O,{className:"arrow"})))}}Y(_z,"defaultProps",{operationProps:null,specPath:(0,H.List)(),summary:""});class Ez extends p.PureComponent{render(){let{method:t}=this.props;return p.default.createElement("span",{className:"opblock-summary-method"},t.toUpperCase())}}Y(Ez,"defaultProps",{operationProps:null});class Y1e extends p.PureComponent{render(){let{getComponent:t,operationProps:r}=this.props,{deprecated:n,isShown:i,path:s,tag:a,operationId:o,isDeepLinkingEnabled:u}=r.toJS();const c=s.split(/(?=\/)/g);for(let f=1;f<c.length;f+=2)c.splice(f,0,p.default.createElement("wbr",{key:f}));const l=t("DeepLink");return p.default.createElement("span",{className:n?"opblock-summary-path__deprecated":"opblock-summary-path","data-path":s},p.default.createElement(l,{enabled:u,isShown:i,path:Ic(`${a}/${o}`),text:c}))}}var X1e=({extensions:e,getComponent:t})=>{let r=t("OperationExtRow");return p.default.createElement("div",{className:"opblock-section"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("h4",null,"Extensions")),p.default.createElement("div",{className:"table-container"},p.default.createElement("table",null,p.default.createElement("thead",null,p.default.createElement("tr",null,p.default.createElement("td",{className:"col_header"},"Field"),p.default.createElement("td",{className:"col_header"},"Value"))),p.default.createElement("tbody",null,e.entrySeq().map((([n,i])=>p.default.createElement(r,{key:`${n}-${i}`,xKey:n,xVal:i})))))))},Z1e=({xKey:e,xVal:t})=>{const r=t?t.toJS?t.toJS():t:null;return p.default.createElement("tr",null,p.default.createElement("td",null,e),p.default.createElement("td",null,JSON.stringify(r)))};function UR(e,t="_"){return e.replace(/[^\w-]/g,t)}const Vd=class Vd extends p.default.Component{constructor(){super(...arguments);Y(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r));Y(this,"onResponseContentTypeChange",({controlsAcceptHeader:r,value:n})=>{const{oas3Actions:i,path:s,method:a}=this.props;r&&i.setResponseContentType({value:n,path:s,method:a})})}render(){let{responses:r,tryItOutResponse:n,getComponent:i,getConfigs:s,specSelectors:a,fn:o,producesValue:u,displayRequestDuration:c,specPath:l,path:f,method:h,oas3Selectors:d,oas3Actions:g}=this.props,y=(function(T){let O=T.keySeq();return O.contains(GB)?GB:O.filter((D=>(D+"")[0]==="2")).sort().first()})(r);const v=i("contentType"),_=i("liveResponse"),b=i("response");let E=this.props.produces&&this.props.produces.size?this.props.produces:Vd.defaultProps.produces;const w=a.isOAS3()?(function(T){if(!H.default.OrderedMap.isOrderedMap(T)||!T.size)return null;const O=T.find((($,M)=>M.startsWith("2")&&Object.keys($.get("content")||{}).length>0)),D=T.get("default")||H.default.OrderedMap(),N=(D.get("content")||H.default.OrderedMap()).keySeq().toJS().length?D:null;return O||N})(r):null,S=UR(`${h}${f}_responses`),A=`${S}_select`;return p.default.createElement("div",{className:"responses-wrapper"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("h4",null,"Responses"),a.isOAS3()?null:p.default.createElement("label",{htmlFor:A},p.default.createElement("span",null,"Response content type"),p.default.createElement(v,{value:u,ariaControls:S,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:E,controlId:A,onChange:this.onChangeProducesWrapper}))),p.default.createElement("div",{className:"responses-inner"},n?p.default.createElement("div",null,p.default.createElement(_,{response:n,getComponent:i,getConfigs:s,specSelectors:a,path:this.props.path,method:this.props.method,displayRequestDuration:c}),p.default.createElement("h4",null,"Responses")):null,p.default.createElement("table",{"aria-live":"polite",className:"responses-table",id:S,role:"region"},p.default.createElement("thead",null,p.default.createElement("tr",{className:"responses-header"},p.default.createElement("td",{className:"col_header response-col_status"},"Code"),p.default.createElement("td",{className:"col_header response-col_description"},"Description"),a.isOAS3()?p.default.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),p.default.createElement("tbody",null,r.entrySeq().map((([R,T])=>{let O=n&&n.get("status")==R?"response_current":"";return p.default.createElement(b,{key:R,path:f,method:h,specPath:l.push(R),isDefault:y===R,fn:o,className:O,code:R,response:T,specSelectors:a,controlsAcceptHeader:T===w,onContentTypeChange:this.onResponseContentTypeChange,contentType:u,getConfigs:s,activeExamplesKey:d.activeExamplesMember(f,h,"responses",R),oas3Actions:g,getComponent:i})})).toArray()))))}};Y(Vd,"defaultProps",{tryItOutResponse:null,produces:(0,H.fromJS)(["application/json"]),displayRequestDuration:!1});let aO=Vd;function Cm(e){return(function(r){try{return!!JSON.parse(r)}catch{return null}})(e)?"json":null}var nx;let Q1e=(nx=class extends p.default.Component{constructor(r,n){super(r,n);Y(this,"_onContentTypeChange",r=>{const{onContentTypeChange:n,controlsAcceptHeader:i}=this.props;this.setState({responseContentType:r}),n({value:r,controlsAcceptHeader:i})});Y(this,"getTargetExamplesKey",()=>{const{response:r,contentType:n,activeExamplesKey:i}=this.props,s=this.state.responseContentType||n,a=r.getIn(["content",s],(0,H.Map)({})).get("examples",null).keySeq().first();return i||a});this.state={responseContentType:""}}render(){var se;let{path:r,method:n,code:i,response:s,className:a,specPath:o,fn:u,getComponent:c,getConfigs:l,specSelectors:f,contentType:h,controlsAcceptHeader:d,oas3Actions:g}=this.props,{inferSchema:y,getSampleSchema:v}=u,_=f.isOAS3();const{showExtensions:b}=l();let E=b?ua(s):null,w=s.get("headers"),S=s.get("links");const A=c("ResponseExtension"),R=c("headers"),T=c("HighlightCode",!0),O=c("modelExample"),D=c("Markdown",!0),N=c("operationLink"),$=c("contentType"),M=c("ExamplesSelect"),X=c("Example");var ee,J;const Q=this.state.responseContentType||h,te=s.getIn(["content",Q],(0,H.Map)({})),re=te.get("examples",null);if(_){const V=te.get("schema");ee=V?y(V.toJS()):null,J=V?(0,H.List)(["content",this.state.responseContentType,"schema"]):o}else ee=s.get("schema"),J=s.has("schema")?o.push("schema"):o;let L,K,ne=!1,ce={includeReadOnly:!0};if(_)if(K=(se=te.get("schema"))==null?void 0:se.toJS(),H.Map.isMap(re)&&!re.isEmpty()){const V=this.getTargetExamplesKey(),z=de=>H.Map.isMap(de)?de.get("value"):void 0;L=z(re.get(V,(0,H.Map)({}))),L===void 0&&(L=z(re.values().next().value)),ne=!0}else te.get("example")!==void 0&&(L=te.get("example"),ne=!0);else{K=ee,ce={...ce,includeWriteOnly:!0};const V=s.getIn(["examples",Q]);V&&(L=V,ne=!0)}const ue=((V,z)=>{if(V==null)return null;const de=Cm(V)?"json":null;return p.default.createElement("div",null,p.default.createElement(z,{className:"example",language:de},Jr(V)))})(v(K,Q,ce,ne?L:void 0),T);return p.default.createElement("tr",{className:"response "+(a||""),"data-code":i},p.default.createElement("td",{className:"response-col_status"},i),p.default.createElement("td",{className:"response-col_description"},p.default.createElement("div",{className:"response-col_description__inner"},p.default.createElement(D,{source:s.get("description")})),b&&E.size?E.entrySeq().map((([V,z])=>p.default.createElement(A,{key:`${V}-${z}`,xKey:V,xVal:z}))):null,_&&s.get("content")?p.default.createElement("section",{className:"response-controls"},p.default.createElement("div",{className:(0,Rt.default)("response-control-media-type",{"response-control-media-type--accept-controller":d})},p.default.createElement("small",{className:"response-control-media-type__title"},"Media type"),p.default.createElement($,{value:this.state.responseContentType,contentTypes:s.get("content")?s.get("content").keySeq():(0,H.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),d?p.default.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",p.default.createElement("code",null,"Accept")," header."):null),H.Map.isMap(re)&&!re.isEmpty()?p.default.createElement("div",{className:"response-control-examples"},p.default.createElement("small",{className:"response-control-examples__title"},"Examples"),p.default.createElement(M,{examples:re,currentExampleKey:this.getTargetExamplesKey(),onSelect:V=>g.setActiveExamplesMember({name:V,pathMethod:[r,n],contextType:"responses",contextName:i}),showLabels:!1})):null):null,ue||ee?p.default.createElement(O,{specPath:J,getComponent:c,getConfigs:l,specSelectors:f,schema:Fi(ee),example:ue,includeReadOnly:!0}):null,_&&re?p.default.createElement(X,{example:re.get(this.getTargetExamplesKey(),(0,H.Map)({})),getComponent:c,getConfigs:l,omitValue:!0}):null,w?p.default.createElement(R,{headers:w,getComponent:c}):null),_?p.default.createElement("td",{className:"response-col_links"},S?S.toSeq().entrySeq().map((([V,z])=>p.default.createElement(N,{key:V,name:V,link:z,getComponent:c}))):p.default.createElement("i",null,"No links")):null)}},Y(nx,"defaultProps",{response:(0,H.fromJS)({}),onContentTypeChange:()=>{}}),nx);var ewe=({xKey:e,xVal:t})=>p.default.createElement("div",{className:"response__extension"},e,": ",String(t)),twe=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Dye}}),wL=(function(e){var t={};return _e.d(t,e),t})({default:function(){return Fye}});class rwe extends p.default.PureComponent{constructor(){super(...arguments);Y(this,"state",{parsedContent:null});Y(this,"updateParsedContent",r=>{const{content:n}=this.props;if(r!==n)if(n&&n instanceof Blob){var i=new FileReader;i.onload=()=>{this.setState({parsedContent:i.result})},i.readAsText(n)}else this.setState({parsedContent:n.toString()})})}componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(r){this.updateParsedContent(r.content)}render(){let{content:r,contentType:n,url:i,headers:s={},getComponent:a}=this.props;const{parsedContent:o}=this.state,u=a("HighlightCode",!0),c="response_"+new Date().getTime();let l,f;if(i=i||"",(/^application\/octet-stream/i.test(n)||s["Content-Disposition"]&&/attachment/i.test(s["Content-Disposition"])||s["content-disposition"]&&/attachment/i.test(s["content-disposition"])||s["Content-Description"]&&/File Transfer/i.test(s["Content-Description"])||s["content-description"]&&/File Transfer/i.test(s["content-description"]))&&(r.size>0||r.length>0))if("Blob"in window){let h=n||"text/html",d=r instanceof Blob?r:new Blob([r],{type:h}),g=window.URL.createObjectURL(d),y=[h,i.substr(i.lastIndexOf("/")+1),g].join(":"),v=s["content-disposition"]||s["Content-Disposition"];if(v!==void 0){let _=(function(E){let w;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((S=>(w=S.exec(E),w!==null))),w!==null&&w.length>1)try{return decodeURIComponent(w[1])}catch(S){console.error(S)}return null})(v);_!==null&&(y=_)}f=Zt.navigator&&Zt.navigator.msSaveOrOpenBlob?p.default.createElement("div",null,p.default.createElement("a",{href:g,onClick:()=>Zt.navigator.msSaveOrOpenBlob(d,y)},"Download file")):p.default.createElement("div",null,p.default.createElement("a",{href:g,download:y},"Download file"))}else f=p.default.createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(n)){let h=null;Cm(r)&&(h="json");try{l=JSON.stringify(JSON.parse(r),null," ")}catch{l=`can't parse JSON. Raw result:
336
+
337
+ `+r}f=p.default.createElement(u,{language:h,downloadable:!0,fileName:`${c}.json`,canCopy:!0},l)}else/xml/i.test(n)?(l=(0,twe.default)(r,{textNodesOnSameLine:!0,indentor:" "}),f=p.default.createElement(u,{downloadable:!0,fileName:`${c}.xml`,canCopy:!0},l)):f=(0,wL.default)(n)==="text/html"||/text\/plain/.test(n)?p.default.createElement(u,{downloadable:!0,fileName:`${c}.html`,canCopy:!0},r):(0,wL.default)(n)==="text/csv"||/text\/csv/.test(n)?p.default.createElement(u,{downloadable:!0,fileName:`${c}.csv`,canCopy:!0},r):/^image\//i.test(n)?n.includes("svg")?p.default.createElement("div",null," ",r," "):p.default.createElement("img",{src:window.URL.createObjectURL(r)}):/^audio\//i.test(n)?p.default.createElement("pre",{className:"microlight"},p.default.createElement("audio",{controls:!0,key:i},p.default.createElement("source",{src:i,type:n}))):typeof r=="string"?p.default.createElement(u,{downloadable:!0,fileName:`${c}.txt`,canCopy:!0},r):r.size>0?o?p.default.createElement("div",null,p.default.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),p.default.createElement(u,{downloadable:!0,fileName:`${c}.txt`,canCopy:!0},o)):p.default.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return f?p.default.createElement("div",null,p.default.createElement("h5",null,"Response body"),f):null}}class Sz extends p.Component{constructor(r){super(r);Y(this,"onChange",(r,n,i)=>{let{specActions:{changeParamByIdentity:s},onChangeKey:a}=this.props;s(a,r,n,i)});Y(this,"onChangeConsumesWrapper",r=>{let{specActions:{changeConsumesValue:n},onChangeKey:i}=this.props;n(i,r)});Y(this,"toggleTab",r=>r==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):r==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0);Y(this,"onChangeMediaType",({value:r,pathMethod:n})=>{let{specActions:i,oas3Selectors:s,oas3Actions:a}=this.props;const o=s.hasUserEditedBody(...n),u=s.shouldRetainRequestBodyValue(...n);a.setRequestContentType({value:r,pathMethod:n}),a.initRequestBodyValidateError({pathMethod:n}),o||(u||a.setRequestBodyValue({value:void 0,pathMethod:n}),i.clearResponse(...n),i.clearRequest(...n),i.clearValidateParams(n))});this.state={callbackVisible:!1,parametersVisible:!0}}render(){let{onTryoutClick:r,onResetClick:n,parameters:i,allowTryItOut:s,tryItOutEnabled:a,specPath:o,fn:u,getComponent:c,getConfigs:l,specSelectors:f,specActions:h,pathMethod:d,oas3Actions:g,oas3Selectors:y,operation:v}=this.props;const _=c("parameterRow"),b=c("TryItOutButton"),E=c("contentType"),w=c("Callbacks",!0),S=c("RequestBody",!0),A=a&&s,R=f.isOAS3(),T=`${UR(`${d[1]}${d[0]}_requests`)}_select`,O=v.get("requestBody"),D=Object.values(i.reduce(((N,$)=>{if(H.Map.isMap($)){const M=$.get("in");N[M]??(N[M]=[]),N[M].push($)}return N}),{})).reduce(((N,$)=>N.concat($)),[]);return p.default.createElement("div",{className:"opblock-section"},p.default.createElement("div",{className:"opblock-section-header"},R?p.default.createElement("div",{className:"tab-header"},p.default.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},p.default.createElement("h4",{className:"opblock-title"},p.default.createElement("span",null,"Parameters"))),v.get("callbacks")?p.default.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},p.default.createElement("h4",{className:"opblock-title"},p.default.createElement("span",null,"Callbacks"))):null):p.default.createElement("div",{className:"tab-header"},p.default.createElement("h4",{className:"opblock-title"},"Parameters")),s?p.default.createElement(b,{isOAS3:f.isOAS3(),hasUserEditedBody:y.hasUserEditedBody(...d),enabled:a,onCancelClick:this.props.onCancelClick,onTryoutClick:r,onResetClick:()=>n(d)}):null),this.state.parametersVisible?p.default.createElement("div",{className:"parameters-container"},D.length?p.default.createElement("div",{className:"table-container"},p.default.createElement("table",{className:"parameters"},p.default.createElement("thead",null,p.default.createElement("tr",null,p.default.createElement("th",{className:"col_header parameters-col_name"},"Name"),p.default.createElement("th",{className:"col_header parameters-col_description"},"Description"))),p.default.createElement("tbody",null,D.map(((N,$)=>p.default.createElement(_,{fn:u,specPath:o.push($.toString()),getComponent:c,getConfigs:l,rawParam:N,param:f.parameterWithMetaByIdentity(d,N),key:`${N.get("in")}.${N.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:f,specActions:h,oas3Actions:g,oas3Selectors:y,pathMethod:d,isExecute:A})))))):p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?p.default.createElement("div",{className:"callbacks-container opblock-description-wrapper"},p.default.createElement(w,{callbacks:(0,H.Map)(v.get("callbacks")),specPath:o.slice(0,-1).push("callbacks")})):null,R&&O&&this.state.parametersVisible&&p.default.createElement("div",{className:"opblock-section opblock-section-request-body"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("h4",{className:`opblock-title parameter__name ${O.get("required")&&"required"}`},"Request body"),p.default.createElement("label",{id:T},p.default.createElement(E,{value:y.requestContentType(...d),contentTypes:O.get("content",(0,H.List)()).keySeq(),onChange:N=>{this.onChangeMediaType({value:N,pathMethod:d})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:T}))),p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement(S,{setRetainRequestBodyValueFlag:N=>g.setRetainRequestBodyValueFlag({value:N,pathMethod:d}),userHasEditedBody:y.hasUserEditedBody(...d),specPath:o.slice(0,-1).push("requestBody"),requestBody:O,requestBodyValue:y.requestBodyValue(...d),requestBodyInclusionSetting:y.requestBodyInclusionSetting(...d),requestBodyErrors:y.requestBodyErrors(...d),isExecute:A,getConfigs:l,activeExamplesKey:y.activeExamplesMember(...d,"requestBody","requestBody"),updateActiveExamplesKey:N=>{this.props.oas3Actions.setActiveExamplesMember({name:N,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(N,$)=>{if($){const M=y.requestBodyValue(...d),X=H.Map.isMap(M)?M:(0,H.Map)();return g.setRequestBodyValue({pathMethod:d,value:X.setIn($,N)})}g.setRequestBodyValue({value:N,pathMethod:d})},onChangeIncludeEmpty:(N,$)=>{g.setRequestBodyInclusion({pathMethod:d,value:$,name:N})},contentType:y.requestContentType(...d)}))))}}Y(Sz,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]});var nwe=({xKey:e,xVal:t})=>p.default.createElement("div",{className:"parameter__extension"},e,": ",String(t));const iwe={onChange:()=>{},isIncludedOptions:{}};class wz extends p.Component{constructor(){super(...arguments);Y(this,"onCheckboxChange",r=>{const{onChange:n}=this.props;n(r.target.checked)})}componentDidMount(){const{isIncludedOptions:r,onChange:n}=this.props,{shouldDispatchInit:i,defaultValue:s}=r;i&&n(s)}render(){let{isIncluded:r,isDisabled:n}=this.props;return p.default.createElement("div",null,p.default.createElement("label",{htmlFor:"include_empty_value",className:(0,Rt.default)("parameter__empty_value_toggle",{disabled:n})},p.default.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:n,checked:!n&&r,onChange:this.onCheckboxChange}),"Send empty value"))}}Y(wz,"defaultProps",iwe);class swe extends p.Component{constructor(r,n){super(r,n);Y(this,"onChangeWrapper",(r,n=!1)=>{let i,{onChange:s,rawParam:a}=this.props;return i=r===""||r&&r.size===0?null:r,s(a,i,n)});Y(this,"_onExampleSelect",r=>{this.props.oas3Actions.setActiveExamplesMember({name:r,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})});Y(this,"onChangeIncludeEmpty",r=>{let{specActions:n,param:i,pathMethod:s}=this.props;const a=i.get("name"),o=i.get("in");return n.updateEmptyParamInclusion(s,a,o,r)});Y(this,"setDefaultValue",()=>{let{specSelectors:r,pathMethod:n,rawParam:i,oas3Selectors:s,fn:a}=this.props;const o=r.parameterWithMetaByIdentity(n,i)||(0,H.Map)();let{schema:u}=bp(o,{isOAS3:r.isOAS3()});const c=o.get("content",(0,H.Map)()).keySeq().first(),l=u?a.getSampleSchema(u.toJS(),c,{includeWriteOnly:!0}):null;if(o&&o.get("value")===void 0&&o.get("in")!=="body"){let f;if(r.isSwagger2())f=o.get("x-example")!==void 0?o.get("x-example"):o.getIn(["schema","example"])!==void 0?o.getIn(["schema","example"]):u&&u.getIn(["default"]);else if(r.isOAS3()){u=this.composeJsonSchema(u);const g=s.activeExamplesMember(...n,"parameters",this.getParamKey());f=o.getIn(["examples",g,"value"])!==void 0?o.getIn(["examples",g,"value"]):o.getIn(["content",c,"example"])!==void 0?o.getIn(["content",c,"example"]):o.get("example")!==void 0?o.get("example"):(u&&u.get("example"))!==void 0?u&&u.get("example"):(u&&u.get("default"))!==void 0?u&&u.get("default"):o.get("default")}f===void 0||H.List.isList(f)||(f=Jr(f));const h=a.getSchemaObjectType(u),d=a.getSchemaObjectType(u==null?void 0:u.get("items"));f!==void 0?this.onChangeWrapper(f):h==="object"&&l&&!o.get("examples")?this.onChangeWrapper(H.List.isList(l)?l:Jr(l)):h==="array"&&d==="object"&&l&&!o.get("examples")&&this.onChangeWrapper(H.List.isList(l)?l:(0,H.List)(JSON.parse(l)))}});this.setDefaultValue()}UNSAFE_componentWillReceiveProps(r){let n,{specSelectors:i,pathMethod:s,rawParam:a}=r,o=i.isOAS3(),u=i.parameterWithMetaByIdentity(s,a)||new H.Map;if(u=u.isEmpty()?a:u,o){let{schema:f}=bp(u,{isOAS3:o});n=f?f.get("enum"):void 0}else n=u?u.get("enum"):void 0;let c,l=u?u.get("value"):void 0;l!==void 0?c=l:a.get("required")&&n&&n.size&&(c=n.first()),c!==void 0&&c!==l&&this.onChangeWrapper((function(h){return typeof h=="number"?h.toString():h})(c)),this.setDefaultValue()}getParamKey(){const{param:r}=this.props;return r?`${r.get("name")}-${r.get("in")}`:null}composeJsonSchema(r){var a,o,u,c;const{fn:n}=this.props,i=(o=(a=r.get("oneOf"))==null?void 0:a.get(0))==null?void 0:o.toJS(),s=(c=(u=r.get("anyOf"))==null?void 0:u.get(0))==null?void 0:c.toJS();return(0,H.fromJS)(n.mergeJsonSchema(r.toJS(),i??s??{}))}render(){let{param:r,rawParam:n,getComponent:i,getConfigs:s,isExecute:a,fn:o,onChangeConsumes:u,specSelectors:c,pathMethod:l,specPath:f,oas3Selectors:h}=this.props,d=c.isOAS3();const{showExtensions:g,showCommonExtensions:y}=s();if(r||(r=n),!n)return null;const v=i("JsonSchemaForm"),_=i("ParamBody");let b=r.get("in"),E=b!=="body"?null:p.default.createElement(_,{getComponent:i,getConfigs:s,fn:o,param:r,consumes:c.consumesOptionsFor(l),consumesValue:c.contentTypeValues(l).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:u,isExecute:a,specSelectors:c,pathMethod:l});const w=i("modelExample"),S=i("Markdown",!0),A=i("ParameterExt"),R=i("ParameterIncludeEmpty"),T=i("ExamplesSelectValueRetainer"),O=i("Example");let{schema:D}=bp(r,{isOAS3:d}),N=c.parameterWithMetaByIdentity(l,n)||(0,H.Map)();d&&(D=this.composeJsonSchema(D));let $=D?D.get("format"):null,M=b==="formData",X="FormData"in Zt,ee=r.get("required");const J=o.getSchemaObjectType(D),Q=o.getSchemaObjectType(D==null?void 0:D.get("items")),te=o.getSchemaObjectTypeLabel(D),re=!E&&J==="object",L=!E&&Q==="object";let K,ne,ce,ue,se=N?N.get("value"):"",V=y?K7(D):null,z=g?ua(r):null,de=!1;r!==void 0&&D&&(K=D.get("items")),K!==void 0?(ne=K.get("enum"),ce=K.get("default")):D&&(ne=D.get("enum")),ne&&ne.size&&ne.size>0&&(de=!0),r!==void 0&&(D&&(ce=D.get("default")),ce===void 0&&(ce=r.get("default")),ue=r.get("example"),ue===void 0&&(ue=r.get("x-example")));const ge=E?null:p.default.createElement(v,{fn:o,getComponent:i,value:se,required:ee,disabled:!a,description:r.get("name"),onChange:this.onChangeWrapper,errors:N.get("errors"),schema:D});return p.default.createElement("tr",{"data-param-name":r.get("name"),"data-param-in":r.get("in")},p.default.createElement("td",{className:"parameters-col_name"},p.default.createElement("div",{className:ee?"parameter__name required":"parameter__name"},r.get("name"),ee?p.default.createElement("span",null," *"):null),p.default.createElement("div",{className:"parameter__type"},te,$&&p.default.createElement("span",{className:"prop-format"},"($",$,")")),p.default.createElement("div",{className:"parameter__deprecated"},d&&r.get("deprecated")?"deprecated":null),p.default.createElement("div",{className:"parameter__in"},"(",r.get("in"),")")),p.default.createElement("td",{className:"parameters-col_description"},r.get("description")?p.default.createElement(S,{source:r.get("description")}):null,!E&&a||!de?null:p.default.createElement(S,{className:"parameter__enum",source:"<i>Available values</i> : "+ne.map((function(Ce){return Ce})).toArray().map(String).join(", ")}),!E&&a||ce===void 0?null:p.default.createElement(S,{className:"parameter__default",source:"<i>Default value</i> : "+ce}),!E&&a||ue===void 0?null:p.default.createElement(S,{source:"<i>Example</i> : "+ue}),M&&!X&&p.default.createElement("div",null,"Error: your browser does not support FormData"),d&&r.get("examples")?p.default.createElement("section",{className:"parameter-controls"},p.default.createElement(T,{examples:r.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:i,defaultToFirstExample:!0,currentKey:h.activeExamplesMember(...l,"parameters",this.getParamKey()),currentUserInputValue:se})):null,re||L?p.default.createElement(w,{getComponent:i,specPath:f.push("schema"),getConfigs:s,isExecute:a,specSelectors:c,schema:D,example:ge}):ge,E&&D?p.default.createElement(w,{getComponent:i,specPath:f.push("schema"),getConfigs:s,isExecute:a,specSelectors:c,schema:D,example:E,includeWriteOnly:!0}):null,!E&&a&&r.get("allowEmptyValue")?p.default.createElement(R,{onChange:this.onChangeIncludeEmpty,isIncluded:c.parameterInclusionSettingFor(l,r.get("name"),r.get("in")),isDisabled:!uR(se)}):null,d&&r.get("examples")?p.default.createElement(O,{example:r.getIn(["examples",h.activeExamplesMember(...l,"parameters",this.getParamKey())]),getComponent:i,getConfigs:s}):null,y&&V.size?V.entrySeq().map((([Ce,Pe])=>p.default.createElement(A,{key:`${Ce}-${Pe}`,xKey:Ce,xVal:Pe}))):null,g&&z.size?z.entrySeq().map((([Ce,Pe])=>p.default.createElement(A,{key:`${Ce}-${Pe}`,xKey:Ce,xVal:Pe}))):null))}}class awe extends p.Component{constructor(){super(...arguments);Y(this,"handleValidateParameters",()=>{let{specSelectors:r,specActions:n,path:i,method:s}=this.props;return n.validateParams([i,s]),r.validateBeforeExecute([i,s])});Y(this,"handleValidateRequestBody",()=>{let{path:r,method:n,specSelectors:i,oas3Selectors:s,oas3Actions:a}=this.props,o={missingBodyValue:!1,missingRequiredKeys:[]};a.clearRequestBodyValidateError({path:r,method:n});let u=i.getOAS3RequiredRequestBodyContentType([r,n]),c=s.requestBodyValue(r,n),l=s.validateBeforeExecute([r,n]),f=s.requestContentType(r,n);if(!l)return o.missingBodyValue=!0,a.setRequestBodyValidateError({path:r,method:n,validationErrors:o}),!1;if(!u)return!0;let h=s.validateShallowRequired({oas3RequiredRequestBodyContentType:u,oas3RequestContentType:f,oas3RequestBodyValue:c});return!h||h.length<1||(h.forEach((d=>{o.missingRequiredKeys.push(d)})),a.setRequestBodyValidateError({path:r,method:n,validationErrors:o}),!1)});Y(this,"handleValidationResultPass",()=>{let{specActions:r,operation:n,path:i,method:s}=this.props;this.props.onExecute&&this.props.onExecute(),r.execute({operation:n,path:i,method:s})});Y(this,"handleValidationResultFail",()=>{let{specActions:r,path:n,method:i}=this.props;r.clearValidateParams([n,i]),setTimeout((()=>{r.validateParams([n,i])}),40)});Y(this,"handleValidationResult",r=>{r?this.handleValidationResultPass():this.handleValidationResultFail()});Y(this,"onClick",()=>{let r=this.handleValidateParameters(),n=this.handleValidateRequestBody(),i=r&&n;this.handleValidationResult(i)});Y(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r))}render(){const{disabled:r}=this.props;return p.default.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:r},"Execute")}}class owe extends p.default.Component{render(){let{headers:t,getComponent:r}=this.props;const n=r("Property"),i=r("Markdown",!0);return t&&t.size?p.default.createElement("div",{className:"headers-wrapper"},p.default.createElement("h4",{className:"headers__title"},"Headers:"),p.default.createElement("table",{className:"headers"},p.default.createElement("thead",null,p.default.createElement("tr",{className:"header-row"},p.default.createElement("th",{className:"header-col"},"Name"),p.default.createElement("th",{className:"header-col"},"Description"),p.default.createElement("th",{className:"header-col"},"Type"))),p.default.createElement("tbody",null,t.entrySeq().map((([s,a])=>{if(!H.default.Map.isMap(a))return null;const o=a.get("description"),u=a.getIn(["schema"])?a.getIn(["schema","type"]):a.getIn(["type"]),c=a.getIn(["schema","example"]);return p.default.createElement("tr",{key:s},p.default.createElement("td",{className:"header-col"},s),p.default.createElement("td",{className:"header-col"},o?p.default.createElement(i,{source:o}):null),p.default.createElement("td",{className:"header-col"},u," ",c?p.default.createElement(n,{propKey:"Example",propVal:c,propClass:"header-example"}):null))})).toArray()))):null}}class uwe extends p.default.Component{render(){let{editorActions:t,errSelectors:r,layoutSelectors:n,layoutActions:i,getComponent:s}=this.props;const a=s("Collapse");if(t&&t.jumpToLine)var o=t.jumpToLine;let u=r.allErrors().filter((f=>f.get("type")==="thrown"||f.get("level")==="error"));if(!u||u.count()<1)return null;let c=n.isShown(["errorPane"],!0),l=u.sortBy((f=>f.get("line")));return p.default.createElement("pre",{className:"errors-wrapper"},p.default.createElement("hgroup",{className:"error"},p.default.createElement("h4",{className:"errors__title"},"Errors"),p.default.createElement("button",{className:"btn errors__clear-btn",onClick:()=>i.show(["errorPane"],!c)},c?"Hide":"Show")),p.default.createElement(a,{isOpened:c,animated:!0},p.default.createElement("div",{className:"errors"},l.map(((f,h)=>{let d=f.get("type");return d==="thrown"||d==="auth"?p.default.createElement(cwe,{key:h,error:f.get("error")||f,jumpToLine:o}):d==="spec"?p.default.createElement(lwe,{key:h,error:f,jumpToLine:o}):void 0})))))}}const cwe=({error:e,jumpToLine:t})=>{if(!e)return null;let r=e.get("line");return p.default.createElement("div",{className:"error-wrapper"},e?p.default.createElement("div",null,p.default.createElement("h4",null,e.get("source")&&e.get("level")?xz(e.get("source"))+" "+e.get("level"):"",e.get("path")?p.default.createElement("small",null," at ",e.get("path")):null),p.default.createElement("span",{className:"message thrown"},e.get("message")),p.default.createElement("div",{className:"error-line"},r&&t?p.default.createElement("a",{onClick:t.bind(null,r)},"Jump to line ",r):null)):null)},lwe=({error:e,jumpToLine:t=null})=>{let r=null;return e.get("path")?r=H.List.isList(e.get("path"))?p.default.createElement("small",null,"at ",e.get("path").join(".")):p.default.createElement("small",null,"at ",e.get("path")):e.get("line")&&!t&&(r=p.default.createElement("small",null,"on line ",e.get("line"))),p.default.createElement("div",{className:"error-wrapper"},e?p.default.createElement("div",null,p.default.createElement("h4",null,xz(e.get("source"))+" "+e.get("level")," ",r),p.default.createElement("span",{className:"message"},e.get("message")),p.default.createElement("div",{className:"error-line"},t?p.default.createElement("a",{onClick:t.bind(null,e.get("line"))},"Jump to line ",e.get("line")):null)):null)};function xz(e){return(e||"").split(" ").map((t=>t[0].toUpperCase()+t.slice(1))).join(" ")}const fwe=()=>{};class Az extends p.default.Component{constructor(){super(...arguments);Y(this,"onChangeWrapper",r=>this.props.onChange(r.target.value))}componentDidMount(){this.props.contentTypes&&this.props.onChange(this.props.contentTypes.first())}UNSAFE_componentWillReceiveProps(r){r.contentTypes&&r.contentTypes.size&&(r.contentTypes.includes(r.value)||r.onChange(r.contentTypes.first()))}render(){let{ariaControls:r,ariaLabel:n,className:i,contentTypes:s,controlId:a,value:o}=this.props;return s&&s.size?p.default.createElement("div",{className:"content-type-wrapper "+(i||"")},p.default.createElement("select",{"aria-controls":r,"aria-label":n,className:"content-type",id:a,onChange:this.onChangeWrapper,value:o||""},s.map((u=>p.default.createElement("option",{key:u,value:u},u))).toArray())):null}}Y(Az,"defaultProps",{onChange:fwe,value:null,contentTypes:(0,H.fromJS)(["application/json"])});function ff(...e){return e.filter((t=>!!t)).join(" ").trim()}class pwe extends p.default.Component{render(){let{fullscreen:t,full:r,...n}=this.props;if(t)return p.default.createElement("section",n);let i="swagger-container"+(r?"-full":"");return p.default.createElement("section",(0,Ct.default)({},n,{className:ff(n.className,i)}))}}const Gw={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class dwe extends p.default.Component{render(){const{hide:t,keepContents:r,mobile:n,tablet:i,desktop:s,large:a,...o}=this.props;if(t&&!r)return p.default.createElement("span",null);let u=[];for(let l in Gw){if(!Object.prototype.hasOwnProperty.call(Gw,l))continue;let f=Gw[l];if(l in this.props){let h=this.props[l];if(h<1){u.push("none"+f);continue}u.push("block"+f),u.push("col-"+h+f)}}t&&u.push("hidden");let c=ff(o.className,...u);return p.default.createElement("section",(0,Ct.default)({},o,{className:c}))}}class hwe extends p.default.Component{render(){return p.default.createElement("div",(0,Ct.default)({},this.props,{className:ff(this.props.className,"wrapper")}))}}class Oz extends p.default.Component{render(){return p.default.createElement("button",(0,Ct.default)({},this.props,{className:ff(this.props.className,"button")}))}}Y(Oz,"defaultProps",{className:""});const mwe=e=>p.default.createElement("textarea",e),gwe=e=>p.default.createElement("input",e);class Cz extends p.default.Component{constructor(r,n){let i;super(r,n);Y(this,"onChange",r=>{let n,{onChange:i,multiple:s}=this.props,a=[].slice.call(r.target.options);n=s?a.filter((function(o){return o.selected})).map((function(o){return o.value})):r.target.value,this.setState({value:n}),i&&i(n)});i=r.value?r.value:r.multiple?[""]:"",this.state={value:i}}UNSAFE_componentWillReceiveProps(r){r.value!==this.props.value&&this.setState({value:r.value})}render(){var o,u;let{allowedValues:r,multiple:n,allowEmptyValue:i,disabled:s}=this.props,a=((u=(o=this.state.value)==null?void 0:o.toJS)==null?void 0:u.call(o))||this.state.value;return p.default.createElement("select",{className:this.props.className,multiple:n,value:a,onChange:this.onChange,disabled:s},i?p.default.createElement("option",{value:""},"--"):null,r.map((function(c,l){return p.default.createElement("option",{key:l,value:String(c)},String(c))})))}}Y(Cz,"defaultProps",{multiple:!1,allowEmptyValue:!0});class Rz extends p.default.Component{render(){return p.default.createElement("a",(0,Ct.default)({},this.props,{rel:"noopener noreferrer",className:ff(this.props.className,"link")}))}}const xL=({children:e})=>p.default.createElement("div",{className:"no-margin"}," ",e," ");class Iz extends p.default.Component{renderNotAnimated(){return this.props.isOpened?p.default.createElement(xL,null,this.props.children):p.default.createElement("noscript",null)}render(){let{animated:t,isOpened:r,children:n}=this.props;return t?(n=r?n:null,p.default.createElement(xL,null,n)):this.renderNotAnimated()}}Y(Iz,"defaultProps",{isOpened:!1,animated:!1});class ywe extends p.default.Component{constructor(...t){super(...t),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(t,r){this.props.layoutActions.show(t,r)}showOp(t,r){let{layoutActions:n}=this.props;n.show(t,r)}render(){let{specSelectors:t,layoutSelectors:r,layoutActions:n,getComponent:i}=this.props,s=t.taggedOperations();const a=i("Collapse");return p.default.createElement("div",null,p.default.createElement("h4",{className:"overview-title"},"Overview"),s.map(((o,u)=>{let c=o.get("operations"),l=["overview-tags",u],f=r.isShown(l,!0);return p.default.createElement("div",{key:"overview-"+u},p.default.createElement("h4",{onClick:()=>n.show(l,!f),className:"link overview-tag"}," ",f?"-":"+",u),p.default.createElement(a,{isOpened:f,animated:!0},c.map((h=>{let{path:d,method:g,id:y}=h.toObject(),v="operations",_=y,b=r.isShown([v,_]);return p.default.createElement(vwe,{key:y,path:d,method:g,id:d+"-"+g,shown:b,showOpId:_,showOpIdPrefix:v,href:`#operation-${_}`,onClick:n.show})})).toArray()))})).toArray(),s.size<1&&p.default.createElement("h3",null," No operations defined in spec! "))}}class vwe extends p.default.Component{constructor(t){super(t),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:t,showOpIdPrefix:r,onClick:n,shown:i}=this.props;n([r,t],!i)}render(){let{id:t,method:r,shown:n,href:i}=this.props;return p.default.createElement(Rz,{href:i,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},p.default.createElement("div",null,p.default.createElement("small",{className:`bold-label-${r}`},r.toUpperCase()),p.default.createElement("span",{className:"bold-label"},t)))}}class bwe extends p.default.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:t,defaultValue:r,initialValue:n,...i}=this.props;return p.default.createElement("input",(0,Ct.default)({},i,{ref:s=>this.inputRef=s}))}}class _we extends p.default.Component{render(){const{host:t,basePath:r}=this.props;return p.default.createElement("pre",{className:"base-url"},"[ Base URL: ",t,r," ]")}}class Ewe extends p.default.PureComponent{render(){const{url:t,getComponent:r}=this.props,n=r("Link");return p.default.createElement(n,{target:"_blank",href:hr(t)},p.default.createElement("span",{className:"url"}," ",t))}}class Swe extends p.default.Component{render(){const{info:t,url:r,host:n,basePath:i,getComponent:s,externalDocs:a,selectedServer:o,url:u}=this.props,c=t.get("version"),l=t.get("description"),f=t.get("title"),h=Oi(t.get("termsOfService"),u,{selectedServer:o}),d=t.get("contact"),g=t.get("license"),y=Oi(a&&a.get("url"),u,{selectedServer:o}),v=a&&a.get("description"),_=s("Markdown",!0),b=s("Link"),E=s("VersionStamp"),w=s("OpenAPIVersion"),S=s("InfoUrl"),A=s("InfoBasePath"),R=s("License"),T=s("Contact");return p.default.createElement("div",{className:"info"},p.default.createElement("hgroup",{className:"main"},p.default.createElement("h2",{className:"title"},f,p.default.createElement("span",null,c&&p.default.createElement(E,{version:c}),p.default.createElement(w,{oasVersion:"2.0"}))),n||i?p.default.createElement(A,{host:n,basePath:i}):null,r&&p.default.createElement(S,{getComponent:s,url:r})),p.default.createElement("div",{className:"description"},p.default.createElement(_,{source:l})),h&&p.default.createElement("div",{className:"info__tos"},p.default.createElement(b,{target:"_blank",href:hr(h)},"Terms of service")),(d==null?void 0:d.size)>0&&p.default.createElement(T,{getComponent:s,data:d,selectedServer:o,url:r}),(g==null?void 0:g.size)>0&&p.default.createElement(R,{getComponent:s,license:g,selectedServer:o,url:r}),y?p.default.createElement(b,{className:"info__extdocs",target:"_blank",href:hr(y)},v||y):null)}}var wwe=Swe;class xwe extends p.default.Component{render(){const{specSelectors:t,getComponent:r,oas3Selectors:n}=this.props,i=t.info(),s=t.url(),a=t.basePath(),o=t.host(),u=t.externalDocs(),c=n.selectedServer(),l=r("info");return p.default.createElement("div",null,i&&i.count()?p.default.createElement(l,{info:i,url:s,host:o,basePath:a,externalDocs:u,getComponent:r,selectedServer:c}):null)}}class Awe extends p.default.Component{render(){const{data:t,getComponent:r,selectedServer:n,url:i}=this.props,s=t.get("name","the developer"),a=Oi(t.get("url"),i,{selectedServer:n}),o=t.get("email"),u=r("Link");return p.default.createElement("div",{className:"info__contact"},a&&p.default.createElement("div",null,p.default.createElement(u,{href:hr(a),target:"_blank"},s," - Website")),o&&p.default.createElement(u,{href:hr(`mailto:${o}`)},a?`Send email to ${s}`:`Contact ${s}`))}}var Owe=Awe;class Cwe extends p.default.Component{render(){const{license:t,getComponent:r,selectedServer:n,url:i}=this.props,s=t.get("name","License"),a=Oi(t.get("url"),i,{selectedServer:n}),o=r("Link");return p.default.createElement("div",{className:"info__license"},a?p.default.createElement("div",{className:"info__license__url"},p.default.createElement(o,{target:"_blank",href:hr(a)},s)):p.default.createElement("span",null,s))}}var Rwe=Cwe;class Iwe extends p.default.Component{render(){return null}}class Twe extends p.default.Component{render(){let{getComponent:t}=this.props;const r=t("CopyIcon");return p.default.createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},p.default.createElement(Sm.CopyToClipboard,{text:this.props.textToCopy},p.default.createElement(r,null)))}}class jwe extends p.default.Component{render(){return p.default.createElement("div",{className:"footer"})}}class Pwe extends p.default.Component{constructor(){super(...arguments);Y(this,"onFilterChange",r=>{const{target:{value:n}}=r;this.props.layoutActions.updateFilter(n)})}render(){const{specSelectors:r,layoutSelectors:n,getComponent:i}=this.props,s=i("Col"),a=r.loadingStatus()==="loading",o=r.loadingStatus()==="failed",u=n.currentFilter(),c=["operation-filter-input"];return o&&c.push("failed"),a&&c.push("loading"),p.default.createElement("div",null,u===!1?null:p.default.createElement("div",{className:"filter-container"},p.default.createElement(s,{className:"filter wrapper",mobile:12},p.default.createElement("input",{className:c.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:typeof u=="string"?u:"",disabled:a}))))}}const Yw=Function.prototype,zd=class zd extends p.PureComponent{constructor(r,n){super(r,n);Y(this,"updateValues",r=>{let{param:n,isExecute:i,consumesValue:s=""}=r,a=/xml/i.test(s),o=/json/i.test(s),u=a?n.get("value_xml"):n.get("value");if(u!==void 0){let c=!u&&o?"{}":u;this.setState({value:c}),this.onChange(c,{isXml:a,isEditBox:i})}else a?this.onChange(this.sample("xml"),{isXml:a,isEditBox:i}):this.onChange(this.sample(),{isEditBox:i})});Y(this,"sample",r=>{let{param:n,fn:i}=this.props,s=i.inferSchema(n.toJS());return i.getSampleSchema(s,r,{includeWriteOnly:!0})});Y(this,"onChange",(r,{isEditBox:n,isXml:i})=>{this.setState({value:r,isEditBox:n}),this._onChange(r,i)});Y(this,"_onChange",(r,n)=>{(this.props.onChange||Yw)(r,n)});Y(this,"handleOnChange",r=>{const{consumesValue:n}=this.props,i=/xml/i.test(n),s=r.target.value;this.onChange(s,{isXml:i,isEditBox:this.state.isEditBox})});Y(this,"toggleIsEditBox",()=>this.setState((r=>({isEditBox:!r.isEditBox}))));this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(r){this.updateValues.call(this,r)}render(){let{onChangeConsumes:r,param:n,isExecute:i,specSelectors:s,pathMethod:a,getComponent:o}=this.props;const u=o("Button"),c=o("TextArea"),l=o("HighlightCode",!0),f=o("contentType");let h=(s?s.parameterWithMetaByIdentity(a,n):n).get("errors",(0,H.List)()),d=s.contentTypeValues(a).get("requestContentType"),g=this.props.consumes&&this.props.consumes.size?this.props.consumes:zd.defaultProp.consumes,{value:y,isEditBox:v}=this.state,_=null;Cm(y)&&(_="json");const b=`${UR(`${a[1]}${a[0]}_parameters`)}_select`;return p.default.createElement("div",{className:"body-param","data-param-name":n.get("name"),"data-param-in":n.get("in")},v&&i?p.default.createElement(c,{className:"body-param__text"+(h.count()?" invalid":""),value:y,onChange:this.handleOnChange}):y&&p.default.createElement(l,{className:"body-param__example",language:_},y),p.default.createElement("div",{className:"body-param-options"},i?p.default.createElement("div",{className:"body-param-edit"},p.default.createElement(u,{className:v?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},v?"Cancel":"Edit")):null,p.default.createElement("label",{htmlFor:b},p.default.createElement("span",null,"Parameter content type"),p.default.createElement(f,{value:d,contentTypes:g,onChange:r,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:b}))))}};Y(zd,"defaultProp",{consumes:(0,H.fromJS)(["application/json"]),param:(0,H.fromJS)({}),onChange:Yw,onChangeConsumes:Yw});let oO=zd;class kwe extends p.default.Component{render(){const{request:t,getComponent:r}=this.props,n=cV(t),i=r("SyntaxHighlighter",!0);return p.default.createElement("div",{className:"curl-command"},p.default.createElement("h4",null,"Curl"),p.default.createElement("div",{className:"copy-to-clipboard"},p.default.createElement(Sm.CopyToClipboard,{text:n},p.default.createElement("button",null))),p.default.createElement("div",null,p.default.createElement(i,{language:"bash",className:"curl microlight",renderPlainText:({children:s,PlainTextViewer:a})=>p.default.createElement(a,{className:"curl"},s)},n)))}}var Nwe=({propKey:e,propVal:t,propClass:r})=>p.default.createElement("span",{className:r},p.default.createElement("br",null),e,": ",String(t));class Tz extends p.default.Component{render(){const{onTryoutClick:t,onCancelClick:r,onResetClick:n,enabled:i,hasUserEditedBody:s,isOAS3:a}=this.props,o=a&&s;return p.default.createElement("div",{className:o?"try-out btn-group":"try-out"},i?p.default.createElement("button",{className:"btn try-out__btn cancel",onClick:r},"Cancel"):p.default.createElement("button",{className:"btn try-out__btn",onClick:t},"Try it out "),o&&p.default.createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}Y(Tz,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1});class jz extends p.default.PureComponent{render(){const{bypass:t,isSwagger2:r,isOAS3:n,alsoShow:i}=this.props;return t?p.default.createElement("div",null,this.props.children):r&&n?p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,p.default.createElement("code",null,"swagger")," and ",p.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),p.default.createElement("p",null,"Supported version fields are ",p.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",p.default.createElement("code",null,"openapi: 3.0.4"),").")))):r||n?p.default.createElement("div",null,this.props.children):p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,"The provided definition does not specify a valid version field."),p.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",p.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",p.default.createElement("code",null,"openapi: 3.0.4"),")."))))}}Y(jz,"defaultProps",{alsoShow:null,children:null,bypass:!1});var Mwe=({version:e})=>p.default.createElement("small",null,p.default.createElement("pre",{className:"version"}," ",e," ")),Dwe=({oasVersion:e})=>p.default.createElement("small",{className:"version-stamp"},p.default.createElement("pre",{className:"version"},"OAS ",e)),qwe=({enabled:e,path:t,text:r})=>p.default.createElement("a",{className:"nostyle",onClick:e?n=>n.preventDefault():null,href:e?`#/${t}`:null},p.default.createElement("span",null,r)),$we=()=>p.default.createElement("div",null,p.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},p.default.createElement("defs",null,p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},p.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},p.default.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},p.default.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},p.default.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},p.default.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},p.default.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),p.default.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},p.default.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),p.default.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},p.default.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),p.default.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},p.default.createElement("g",{transform:"translate(2, -1)"},p.default.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"})))))),Pz=(function(e){var t={};return _e.d(t,e),t})({Remarkable:function(){return oa}}),Fwe=(function(e){var t={};return _e.d(t,e),t})({linkify:function(){return nbe}}),uO=(function(e){var t={};return _e.d(t,e),t})({default:function(){return EJ.purify}});uO.default.addHook&&uO.default.addHook("beforeSanitizeElements",(function(e){return e.href&&e.setAttribute("rel","noopener noreferrer"),e}));var Bwe=function({source:t,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof t!="string")return null;const i=new Pz.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(Fwe.linkify);i.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:s}=n(),a=i.render(t),o=jc(a,{useUnsafeMarkdown:s});return t&&a&&o?p.default.createElement("div",{className:(0,Rt.default)(r,"markdown"),dangerouslySetInnerHTML:{__html:o}}):null};function jc(e,{useUnsafeMarkdown:t=!1}={}){const r=t,n=t?[]:["style","class"];return t&&!jc.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),jc.hasWarnedAboutDeprecation=!0),uO.default.sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}jc.hasWarnedAboutDeprecation=!1;class Lwe extends p.default.Component{render(){const{errSelectors:t,specSelectors:r,getComponent:n}=this.props,i=n("SvgAssets"),s=n("InfoContainer",!0),a=n("VersionPragmaFilter"),o=n("operations",!0),u=n("Models",!0),c=n("Webhooks",!0),l=n("Row"),f=n("Col"),h=n("errors",!0),d=n("ServersContainer",!0),g=n("SchemesContainer",!0),y=n("AuthorizeBtnContainer",!0),v=n("FilterContainer",!0),_=r.isSwagger2(),b=r.isOAS3(),E=r.isOAS31(),w=!r.specStr(),S=r.loadingStatus();let A=null;if(S==="loading"&&(A=p.default.createElement("div",{className:"info"},p.default.createElement("div",{className:"loading-container"},p.default.createElement("div",{className:"loading"})))),S==="failed"&&(A=p.default.createElement("div",{className:"info"},p.default.createElement("div",{className:"loading-container"},p.default.createElement("h4",{className:"title"},"Failed to load API definition."),p.default.createElement(h,null)))),S==="failedConfig"){const $=t.lastError(),M=$?$.get("message"):"";A=p.default.createElement("div",{className:"info failed-config"},p.default.createElement("div",{className:"loading-container"},p.default.createElement("h4",{className:"title"},"Failed to load remote configuration."),p.default.createElement("p",null,M)))}if(!A&&w&&(A=p.default.createElement("h4",null,"No API definition provided.")),A)return p.default.createElement("div",{className:"swagger-ui"},p.default.createElement("div",{className:"loading-container"},A));const R=r.servers(),T=r.schemes(),O=R&&R.size,D=T&&T.size,N=!!r.securityDefinitions();return p.default.createElement("div",{className:"swagger-ui"},p.default.createElement(i,null),p.default.createElement(a,{isSwagger2:_,isOAS3:b,alsoShow:p.default.createElement(h,null)},p.default.createElement(h,null),p.default.createElement(l,{className:"information-container"},p.default.createElement(f,{mobile:12},p.default.createElement(s,null))),O||D||N?p.default.createElement("div",{className:"scheme-container"},p.default.createElement(f,{className:"schemes wrapper",mobile:12},O||D?p.default.createElement("div",{className:"schemes-server-container"},O?p.default.createElement(d,null):null,D?p.default.createElement(g,null):null):null,N?p.default.createElement(y,null):null)):null,p.default.createElement(v,null),p.default.createElement(l,null,p.default.createElement(f,{mobile:12,desktop:12},p.default.createElement(o,null))),E&&p.default.createElement(l,{className:"webhooks-container"},p.default.createElement(f,{mobile:12,desktop:12},p.default.createElement(c,null))),p.default.createElement(l,null,p.default.createElement(f,{mobile:12,desktop:12},p.default.createElement(u,null)))))}}var Uwe=()=>({components:{App:T1e,authorizationPopup:j1e,authorizeBtn:P1e,AuthorizeBtnContainer:k1e,authorizeOperationBtn:N1e,auths:M1e,AuthItem:D1e,authError:q1e,oauth2:U1e,apiKeyAuth:$1e,basicAuth:F1e,clear:V1e,liveResponse:J1e,InitializedInput:bwe,info:wwe,InfoContainer:xwe,InfoUrl:Ewe,InfoBasePath:_we,Contact:Owe,License:Rwe,JumpToPath:Iwe,CopyToClipboardBtn:Twe,onlineValidatorBadge:gz,operations:H1e,operation:vz,OperationSummary:_z,OperationSummaryMethod:Ez,OperationSummaryPath:Y1e,responses:aO,response:Q1e,ResponseExtension:ewe,responseBody:rwe,parameters:Sz,parameterRow:swe,execute:awe,headers:owe,errors:uwe,contentType:Az,overview:ywe,footer:jwe,FilterContainer:Pwe,ParamBody:oO,curl:kwe,Property:Nwe,TryItOutButton:Tz,Markdown:Bwe,BaseLayout:Lwe,VersionPragmaFilter:jz,VersionStamp:Mwe,OperationExt:X1e,OperationExtRow:Z1e,ParameterExt:nwe,ParameterIncludeEmpty:wz,OperationTag:yz,OperationContainer:bz,OpenAPIVersion:Dwe,DeepLink:qwe,SvgAssets:$we,Example:B1e,ExamplesSelect:hz,ExamplesSelectValueRetainer:mz}}),Vwe=()=>({components:{...VA}}),kz=()=>[Q7,ez,oV,iz,sz,XV,rV,iV,aV,EV,RV,Uwe,Vwe,QV,Z7,az,eV,nV,uV,fV,uz,cz,dz()];const zwe=(0,H.Map)();function pf(e){return(t,r)=>(...n)=>{if(r.getSystem().specSelectors.isOAS3()){const i=e(...n);return typeof i=="function"?i(r):i}return t(...n)}}const df=pf((0,wm.default)(null)),Wwe=pf(((e,t)=>r=>r.getSystem().specSelectors.findSchema(t))),Jwe=pf((()=>e=>{const t=e.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return H.Map.isMap(t)?t:zwe})),Kwe=pf((()=>e=>e.getSystem().specSelectors.specJson().hasIn(["servers",0]))),Hwe=pf((0,nt.createSelector)(ji,(e=>e.getIn(["components","securitySchemes"])||null))),Gwe=(e,t)=>(r,...n)=>t.specSelectors.isOAS3()?t.oas3Selectors.validOperationMethods():e(...n),Ywe=df,Xwe=df,Zwe=df,Qwe=df,exe=df,txe=(function(t){return(r,n)=>(...i)=>{if(n.getSystem().specSelectors.isOAS3()){let s=n.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return t(n,s,...i)}return r(...i)}})((0,nt.createSelector)((e=>e),(({specSelectors:e})=>e.securityDefinitions()),((e,t)=>{let r=(0,H.List)();return t&&t.entrySeq().forEach((([n,i])=>{const s=i==null?void 0:i.get("type");if(s==="oauth2"&&i.get("flows").entrySeq().forEach((([a,o])=>{let u=(0,H.fromJS)({flow:a,authorizationUrl:o.get("authorizationUrl"),tokenUrl:o.get("tokenUrl"),scopes:o.get("scopes"),type:i.get("type"),description:i.get("description")});r=r.push(new H.Map({[n]:u.filter((c=>c!==void 0))}))})),s!=="http"&&s!=="apiKey"||(r=r.push(new H.Map({[n]:i}))),s==="openIdConnect"&&i.get("openIdConnectData")){let a=i.get("openIdConnectData");(a.get("grant_types_supported")||["authorization_code","implicit"]).forEach((o=>{let u=a.get("scopes_supported")&&a.get("scopes_supported").reduce(((l,f)=>l.set(f,"")),new H.Map),c=(0,H.fromJS)({flow:o,authorizationUrl:a.get("authorization_endpoint"),tokenUrl:a.get("token_endpoint"),scopes:u,type:"oauth2",openIdConnectUrl:i.get("openIdConnectUrl")});r=r.push(new H.Map({[n]:c.filter((l=>l!==void 0))}))}))}})),r})));function hf(e){return(t,r)=>n=>{var i;return typeof((i=r.specSelectors)==null?void 0:i.isOAS3)=="function"?r.specSelectors.isOAS3()?p.default.createElement(e,(0,Ct.default)({},n,r,{Ori:t})):p.default.createElement(t,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}}const rxe=(0,H.Map)(),nxe=()=>e=>(function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"})(e.getSystem().specSelectors.specJson()),ixe=()=>e=>(function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)})(e.getSystem().specSelectors.specJson()),sxe=()=>e=>e.getSystem().specSelectors.isOAS30();function Nz(e){return(t,...r)=>n=>{if(n.specSelectors.isOAS3()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null}}const axe=Nz((()=>e=>e.specSelectors.specJson().get("servers",rxe))),oxe=(e,t)=>{const r=e.getIn(["resolvedSubtrees","components","schemas",t],null),n=e.getIn(["json","components","schemas",t],null);return r||n||null},uxe=Nz(((e,{callbacks:t,specPath:r})=>n=>{const i=n.specSelectors.validOperationMethods();return H.Map.isMap(t)?t.reduce(((s,a,o)=>{if(!H.Map.isMap(a))return s;const u=a.reduce(((c,l,f)=>{if(!H.Map.isMap(l))return c;const h=l.entrySeq().filter((([d])=>i.includes(d))).map((([d,g])=>({operation:(0,H.Map)({operation:g}),method:d,path:f,callbackName:o,specPath:r.concat([o,f,d])})));return c.concat(h)}),(0,H.List)());return s.concat(u)}),(0,H.List)()).groupBy((s=>s.callbackName)).map((s=>s.toArray())).toObject():{}}));var cxe=({callbacks:e,specPath:t,specSelectors:r,getComponent:n})=>{const i=r.callbacksOperations({callbacks:e,specPath:t}),s=Object.keys(i),a=n("OperationContainer",!0);return s.length===0?p.default.createElement("span",null,"No callbacks"):p.default.createElement("div",null,s.map((o=>p.default.createElement("div",{key:`${o}`},p.default.createElement("h2",null,o),i[o].map((u=>p.default.createElement(a,{key:`${o}-${u.path}-${u.method}`,op:u.operation,tag:"callbacks",method:u.method,path:u.path,specPath:u.specPath,allowTryItOut:!1})))))))};const id=(e,t,r,n)=>{const i=e.getIn(["content",t])??(0,H.OrderedMap)(),s=i.get("schema",(0,H.OrderedMap)()).toJS(),a=i.get("examples")!==void 0,o=i.get("example"),u=a?i.getIn(["examples",r,"value"]):o;return Jr(n.getSampleSchema(s,t,{includeWriteOnly:!0},u))};var lxe=({userHasEditedBody:e,requestBody:t,requestBodyValue:r,requestBodyInclusionSetting:n,requestBodyErrors:i,getComponent:s,getConfigs:a,specSelectors:o,fn:u,contentType:c,isExecute:l,specPath:f,onChange:h,onChangeIncludeEmpty:d,activeExamplesKey:g,updateActiveExamplesKey:y,setRetainRequestBodyValueFlag:v})=>{const _=L=>{h(L.target.files[0])},b=L=>{let K={key:L,shouldDispatchInit:!1,defaultValue:!0};return n.get(L,"no value")==="no value"&&(K.shouldDispatchInit=!0),K},E=s("Markdown",!0),w=s("modelExample"),S=s("RequestBodyEditor"),A=s("HighlightCode",!0),R=s("ExamplesSelectValueRetainer"),T=s("Example"),O=s("ParameterIncludeEmpty"),{showCommonExtensions:D}=a(),N=(t==null?void 0:t.get("description"))??null,$=(t==null?void 0:t.get("content"))??new H.OrderedMap;c=c||$.keySeq().first()||"";const M=$.get(c)??(0,H.OrderedMap)(),X=M.get("schema",(0,H.OrderedMap)()),ee=M.get("examples",null),J=ee==null?void 0:ee.map(((L,K)=>{const ne=L==null?void 0:L.get("value",null);return ne&&(L=L.set("value",id(t,c,K,u),ne)),L}));if(i=H.List.isList(i)?i:(0,H.List)(),u.isFileUploadIntended(M==null?void 0:M.get("schema"),c)){const L=s("Input");return l?p.default.createElement(L,{type:"file",onChange:_}):p.default.createElement("i",null,"Example values are not available for ",p.default.createElement("code",null,c)," media types.")}if(!M.size)return null;if(u.hasSchemaType(M.get("schema"),"object")&&(c==="application/x-www-form-urlencoded"||c.indexOf("multipart/")===0)&&X.get("properties",(0,H.OrderedMap)()).size>0){const L=s("JsonSchemaForm"),K=s("ParameterExt"),ne=X.get("properties",(0,H.OrderedMap)());return r=H.Map.isMap(r)?r:(0,H.OrderedMap)(),p.default.createElement("div",{className:"table-container"},N&&p.default.createElement(E,{source:N}),p.default.createElement("table",null,p.default.createElement("tbody",null,H.Map.isMap(ne)&&ne.entrySeq().map((([ce,ue])=>{var k,W,ie,oe;if(ue.get("readOnly"))return;const se=(W=(k=ue.get("oneOf"))==null?void 0:k.get(0))==null?void 0:W.toJS(),V=(oe=(ie=ue.get("anyOf"))==null?void 0:ie.get(0))==null?void 0:oe.toJS();ue=(0,H.fromJS)(u.mergeJsonSchema(ue.toJS(),se??V??{}));let z=D?K7(ue):null;const de=X.get("required",(0,H.List)()).includes(ce),ge=u.getSchemaObjectType(ue),Ce=u.getSchemaObjectTypeLabel(ue),Pe=u.getSchemaObjectType(ue==null?void 0:ue.get("items")),pe=ue.get("format"),Te=ue.get("description"),Le=r.getIn([ce,"value"]),be=r.getIn([ce,"errors"])||i,we=n.get(ce)||!1;let xe=u.getSampleSchema(ue,!1,{includeWriteOnly:!0});xe===!1&&(xe="false"),xe===0&&(xe="0"),typeof xe!="string"&&ge==="object"&&(xe=Jr(xe)),typeof xe=="string"&&ge==="array"&&(xe=JSON.parse(xe));const U=u.isFileUploadIntended(ue),I=p.default.createElement(L,{fn:u,dispatchInitialValue:!U,schema:ue,description:ce,getComponent:s,value:Le===void 0?xe:Le,required:de,errors:be,onChange:me=>{h(me,[ce])}});return p.default.createElement("tr",{key:ce,className:"parameters","data-property-name":ce},p.default.createElement("td",{className:"parameters-col_name"},p.default.createElement("div",{className:de?"parameter__name required":"parameter__name"},ce,de?p.default.createElement("span",null," *"):null),p.default.createElement("div",{className:"parameter__type"},Ce,pe&&p.default.createElement("span",{className:"prop-format"},"($",pe,")"),D&&z.size?z.entrySeq().map((([me,Ne])=>p.default.createElement(K,{key:`${me}-${Ne}`,xKey:me,xVal:Ne}))):null),p.default.createElement("div",{className:"parameter__deprecated"},ue.get("deprecated")?"deprecated":null)),p.default.createElement("td",{className:"parameters-col_description"},p.default.createElement(E,{source:Te}),l?p.default.createElement("div",null,ge==="object"||Pe==="object"?p.default.createElement(w,{getComponent:s,specPath:f.push("schema"),getConfigs:a,isExecute:l,specSelectors:o,schema:ue,example:I}):I,de?null:p.default.createElement(O,{onChange:me=>d(ce,me),isIncluded:we,isIncludedOptions:b(ce),isDisabled:Array.isArray(Le)?Le.length!==0:!uR(Le)})):null))})))))}const Q=id(t,c,g,u);let te=null;Cm(Q)&&(te="json");const re=l?p.default.createElement(S,{value:r,errors:i,defaultValue:Q,onChange:h,getComponent:s}):p.default.createElement(A,{className:"body-param__example",language:te},Jr(r)||Q);return p.default.createElement("div",null,N&&p.default.createElement(E,{source:N}),J?p.default.createElement(R,{userHasEditedBody:e,examples:J,currentKey:g,currentUserInputValue:r,onSelect:L=>{y(L)},updateValue:h,defaultToFirstExample:!0,getComponent:s,setRetainRequestBodyValueFlag:v}):null,p.default.createElement(w,{getComponent:s,getConfigs:a,specSelectors:o,expandDepth:1,isExecute:l,schema:M.get("schema"),specPath:f.push("content",c),example:re,includeWriteOnly:!0}),J?p.default.createElement(T,{example:J.get(g),getComponent:s,getConfigs:a}):null)};class fxe extends p.Component{render(){const{link:t,name:r,getComponent:n}=this.props,i=n("Markdown",!0);let s=t.get("operationId")||t.get("operationRef"),a=t.get("parameters")&&t.get("parameters").toJS(),o=t.get("description");return p.default.createElement("div",{className:"operation-link"},p.default.createElement("div",{className:"description"},p.default.createElement("b",null,p.default.createElement("code",null,r)),o?p.default.createElement(i,{source:o}):null),p.default.createElement("pre",null,"Operation `",s,"`",p.default.createElement("br",null),p.default.createElement("br",null),"Parameters ",(function(c,l){return typeof l!="string"?"":l.split(`
338
+ `).map(((f,h)=>h>0?Array(c+1).join(" ")+f:f)).join(`
339
+ `)})(0,JSON.stringify(a,null,2))||"{}",p.default.createElement("br",null)))}}var pxe=fxe,dxe=({servers:e,currentServer:t,setSelectedServer:r,setServerVariableValue:n,getServerVariable:i,getEffectiveServerValue:s})=>{const a=(e.find((l=>l.get("url")===t))||(0,H.OrderedMap)()).get("variables")||(0,H.OrderedMap)(),o=a.size!==0;(0,p.useEffect)((()=>{var l;t||r((l=e.first())==null?void 0:l.get("url"))}),[]),(0,p.useEffect)((()=>{const l=e.find((f=>f.get("url")===t));if(!l)return void r(e.first().get("url"));(l.get("variables")||(0,H.OrderedMap)()).map(((f,h)=>{n({server:t,key:h,val:f.get("default")||""})}))}),[t,e]);const u=(0,p.useCallback)((l=>{r(l.target.value)}),[r]),c=(0,p.useCallback)((l=>{const f=l.target.getAttribute("data-variable"),h=l.target.value;n({server:t,key:f,val:h})}),[n,t]);return p.default.createElement("div",{className:"servers"},p.default.createElement("label",{htmlFor:"servers"},p.default.createElement("select",{onChange:u,value:t,id:"servers"},e.valueSeq().map((l=>p.default.createElement("option",{value:l.get("url"),key:l.get("url")},l.get("url"),l.get("description")&&` - ${l.get("description")}`))).toArray())),o&&p.default.createElement("div",null,p.default.createElement("div",{className:"computed-url"},"Computed URL:",p.default.createElement("code",null,s(t))),p.default.createElement("h4",null,"Server variables"),p.default.createElement("table",null,p.default.createElement("tbody",null,a.entrySeq().map((([l,f])=>p.default.createElement("tr",{key:l},p.default.createElement("td",null,l),p.default.createElement("td",null,f.get("enum")?p.default.createElement("select",{"data-variable":l,onChange:c},f.get("enum").map((h=>p.default.createElement("option",{selected:h===i(t,l),key:h,value:h},h)))):p.default.createElement("input",{type:"text",value:i(t,l)||"",onChange:c,"data-variable":l})))))))))};class hxe extends p.default.Component{render(){const{specSelectors:t,oas3Selectors:r,oas3Actions:n,getComponent:i}=this.props,s=t.servers(),a=i("Servers");return s&&s.size?p.default.createElement("div",null,p.default.createElement("span",{className:"servers-title"},"Servers"),p.default.createElement(a,{servers:s,currentServer:r.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:r.serverVariableValue,getEffectiveServerValue:r.serverEffectiveValue})):null}}const mxe=Function.prototype;class Mz extends p.PureComponent{constructor(r,n){super(r,n);Y(this,"applyDefaultValue",r=>{const{onChange:n,defaultValue:i}=r||this.props;return this.setState({value:i}),n(i)});Y(this,"onChange",r=>{this.props.onChange(Jr(r))});Y(this,"onDomChange",r=>{const n=r.target.value;this.setState({value:n},(()=>this.onChange(n)))});this.state={value:Jr(r.value)||r.defaultValue},r.onChange(r.value)}UNSAFE_componentWillReceiveProps(r){this.props.value!==r.value&&r.value!==this.state.value&&this.setState({value:Jr(r.value)}),!r.value&&r.defaultValue&&this.state.value&&this.applyDefaultValue(r)}render(){let{getComponent:r,errors:n}=this.props,{value:i}=this.state,s=n.size>0;const a=r("TextArea");return p.default.createElement("div",{className:"body-param"},p.default.createElement(a,{className:(0,Rt.default)("body-param__text",{invalid:s}),title:n.size?n.join(", "):"",value:i,onChange:this.onDomChange}))}}Y(Mz,"defaultProps",{onChange:mxe,userHasEditedBody:!1});class gxe extends p.default.Component{constructor(r,n){super(r,n);Y(this,"onChange",r=>{let{onChange:n}=this.props,{value:i,name:s}=r.target,a=Object.assign({},this.state.value);s?a[s]=i:a=i,this.setState({value:a},(()=>n(this.state)))});let{name:i,schema:s}=this.props,a=this.getValue();this.state={name:i,schema:s,value:a}}getValue(){let{name:r,authorized:n}=this.props;return n&&n.getIn([r,"value"])}render(){let{schema:r,getComponent:n,errSelectors:i,name:s,authSelectors:a}=this.props;const o=n("Input"),u=n("Row"),c=n("Col"),l=n("authError"),f=n("Markdown",!0),h=n("JumpToPath",!0),d=(r.get("scheme")||"").toLowerCase(),g=a.selectAuthPath(s);let y=this.getValue(),v=i.allErrors().filter((_=>_.get("authId")===s));if(d==="basic"){let _=y?y.get("username"):null;return p.default.createElement("div",null,p.default.createElement("h4",null,p.default.createElement("code",null,s),"  (http, Basic)",p.default.createElement(h,{path:g})),_&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(f,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),_?p.default.createElement("code",null," ",_," "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),_?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),v.valueSeq().map(((b,E)=>p.default.createElement(l,{error:b,key:E}))))}return d==="bearer"?p.default.createElement("div",null,p.default.createElement("h4",null,p.default.createElement("code",null,s),"  (http, Bearer)",p.default.createElement(h,{path:g})),y&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(f,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),y?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),v.valueSeq().map(((_,b)=>p.default.createElement(l,{error:_,key:b})))):p.default.createElement("div",null,p.default.createElement("em",null,p.default.createElement("b",null,s)," HTTP authentication: unsupported scheme ",`'${d}'`))}}class yxe extends p.default.Component{constructor(){super(...arguments);Y(this,"setSelectedServer",r=>{const{path:n,method:i}=this.props;return this.forceUpdate(),this.props.setSelectedServer(r,`${n}:${i}`)});Y(this,"setServerVariableValue",r=>{const{path:n,method:i}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...r,namespace:`${n}:${i}`})});Y(this,"getSelectedServer",()=>{const{path:r,method:n}=this.props;return this.props.getSelectedServer(`${r}:${n}`)});Y(this,"getServerVariable",(r,n)=>{const{path:i,method:s}=this.props;return this.props.getServerVariable({namespace:`${i}:${s}`,server:r},n)});Y(this,"getEffectiveServerValue",r=>{const{path:n,method:i}=this.props;return this.props.getEffectiveServerValue({server:r,namespace:`${n}:${i}`})})}render(){const{operationServers:r,pathServers:n,getComponent:i}=this.props;if(!r&&!n)return null;const s=i("Servers"),a=r||n,o=r?"operation":"path";return p.default.createElement("div",{className:"opblock-section operation-servers"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("div",{className:"tab-header"},p.default.createElement("h4",{className:"opblock-title"},"Servers"))),p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement("h4",{className:"message"},"These ",o,"-level options override the global server options."),p.default.createElement(s,{servers:a,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}var vxe={Callbacks:cxe,HttpAuth:gxe,RequestBody:lxe,Servers:dxe,ServersContainer:hxe,RequestBodyEditor:Mz,OperationServers:yxe,operationLink:pxe};const cO=new Pz.Remarkable("commonmark");cO.block.ruler.enable(["table"]),cO.set({linkTarget:"_blank"});var bxe=hf((({source:e,className:t="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof e!="string")return null;if(e){const{useUnsafeMarkdown:n}=r(),i=jc(cO.render(e),{useUnsafeMarkdown:n});let s;return typeof i=="string"&&(s=i.trim()),p.default.createElement("div",{dangerouslySetInnerHTML:{__html:s},className:(0,Rt.default)(t,"renderedMarkdown")})}return null})),_xe=hf((({Ori:e,...t})=>{const{schema:r,getComponent:n,errSelectors:i,authorized:s,onAuthChange:a,name:o,authSelectors:u}=t,c=n("HttpAuth");return r.get("type")==="http"?p.default.createElement(c,{key:o,schema:r,name:o,errSelectors:i,authorized:s,getComponent:n,onChange:a,authSelectors:u}):p.default.createElement(e,t)})),Exe=hf(gz);class Sxe extends p.Component{render(){let{getConfigs:t,schema:r,Ori:n}=this.props,i=["model-box"],s=null;return r.get("deprecated")===!0&&(i.push("deprecated"),s=p.default.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),p.default.createElement("div",{className:i.join(" ")},s,p.default.createElement(n,(0,Ct.default)({},this.props,{getConfigs:t,depth:1,expandDepth:this.props.expandDepth||0})))}}var wxe=hf(Sxe),xxe=hf((({Ori:e,...t})=>{const{schema:r,getComponent:n,errors:i,onChange:s,fn:a}=t,o=a.isFileUploadIntended(r),u=n("Input");return o?p.default.createElement(u,{type:"file",className:i.length?"invalid":"",title:i.length?i:"",onChange:c=>{s(c.target.files[0])},disabled:e.isDisabled}):p.default.createElement(e,t)})),Axe={Markdown:bxe,AuthItem:_xe,OpenAPIVersion:(function(t){return(r,n)=>i=>{var s;return typeof((s=n.specSelectors)==null?void 0:s.isOAS30)=="function"?n.specSelectors.isOAS30()?p.default.createElement(t,(0,Ct.default)({},i,n,{Ori:r})):p.default.createElement(r,i):(console.warn("OAS30 wrapper: couldn't get spec"),null)}})((e=>{const{Ori:t}=e;return p.default.createElement(t,{oasVersion:"3.0"})})),JsonSchema_string:xxe,model:wxe,onlineValidatorBadge:Exe};const VR="oas3_set_servers",zR="oas3_set_request_body_value",WR="oas3_set_request_body_retain_flag",JR="oas3_set_request_body_inclusion",KR="oas3_set_active_examples_member",HR="oas3_set_request_content_type",GR="oas3_set_response_content_type",YR="oas3_set_server_variable_value",XR="oas3_set_request_body_validate_error",Rm="oas3_clear_request_body_validate_error",ZR="oas3_clear_request_body_value";function Oxe(e,t){return{type:VR,payload:{selectedServerUrl:e,namespace:t}}}function Cxe({value:e,pathMethod:t}){return{type:zR,payload:{value:e,pathMethod:t}}}const Rxe=({value:e,pathMethod:t})=>({type:WR,payload:{value:e,pathMethod:t}});function Ixe({value:e,pathMethod:t,name:r}){return{type:JR,payload:{value:e,pathMethod:t,name:r}}}function Txe({name:e,pathMethod:t,contextType:r,contextName:n}){return{type:KR,payload:{name:e,pathMethod:t,contextType:r,contextName:n}}}function jxe({value:e,pathMethod:t}){return{type:HR,payload:{value:e,pathMethod:t}}}function Pxe({value:e,path:t,method:r}){return{type:GR,payload:{value:e,path:t,method:r}}}function kxe({server:e,namespace:t,key:r,val:n}){return{type:YR,payload:{server:e,namespace:t,key:r,val:n}}}const Nxe=({path:e,method:t,validationErrors:r})=>({type:XR,payload:{path:e,method:t,validationErrors:r}}),Mxe=({path:e,method:t})=>({type:Rm,payload:{path:e,method:t}}),Dxe=({pathMethod:e})=>({type:Rm,payload:{path:e[0],method:e[1]}}),qxe=({pathMethod:e})=>({type:ZR,payload:{pathMethod:e}});var $xe=(function(e){var t={};return _e.d(t,e),t})({default:function(){return abe}});const fi=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null},Fxe=fi(((e,t)=>{const r=t?[t,"selectedServer"]:["selectedServer"];return e.getIn(r)||""})),Bxe=fi(((e,t,r)=>e.getIn(["requestData",t,r,"bodyValue"])||null)),Lxe=fi(((e,t,r)=>e.getIn(["requestData",t,r,"retainBodyValue"])||!1)),Uxe=(e,t,r)=>n=>{const{oas3Selectors:i,specSelectors:s,fn:a}=n.getSystem();if(s.isOAS3()){const o=i.requestContentType(t,r);if(o)return id(s.specResolvedSubtree(["paths",t,r,"requestBody"]),o,i.activeExamplesMember(t,r,"requestBody","requestBody"),a)}return null},Vxe=fi(((e,t,r)=>n=>{const{oas3Selectors:i,specSelectors:s,fn:a}=n;let o=!1;const u=i.requestContentType(t,r);let c=i.requestBodyValue(t,r);const l=s.specResolvedSubtree(["paths",t,r,"requestBody"]);if(!l)return!1;if(H.Map.isMap(c)&&(c=Jr(c.mapEntries((f=>H.Map.isMap(f[1])?[f[0],f[1].get("value")]:f)).toJS())),H.List.isList(c)&&(c=Jr(c)),u){const f=id(l,u,i.activeExamplesMember(t,r,"requestBody","requestBody"),a);o=!!c&&c!==f}return o})),zxe=fi(((e,t,r)=>e.getIn(["requestData",t,r,"bodyInclusion"])||(0,H.Map)())),Wxe=fi(((e,t,r)=>e.getIn(["requestData",t,r,"errors"])||null)),Jxe=fi(((e,t,r,n,i)=>e.getIn(["examples",t,r,n,i,"activeExample"])||null)),Kxe=fi(((e,t,r)=>e.getIn(["requestData",t,r,"requestContentType"])||null)),Hxe=fi(((e,t,r)=>e.getIn(["requestData",t,r,"responseContentType"])||null)),Gxe=fi(((e,t,r)=>{let n;if(typeof t!="string"){const{server:i,namespace:s}=t;n=s?[s,"serverVariableValues",i,r]:["serverVariableValues",i,r]}else n=["serverVariableValues",t,r];return e.getIn(n)||null})),Yxe=fi(((e,t)=>{let r;if(typeof t!="string"){const{server:n,namespace:i}=t;r=i?[i,"serverVariableValues",n]:["serverVariableValues",n]}else r=["serverVariableValues",t];return e.getIn(r)||(0,H.OrderedMap)()})),Xxe=fi(((e,t)=>{var r,n;if(typeof t!="string"){const{server:s,namespace:a}=t;n=s,r=a?e.getIn([a,"serverVariableValues",n]):e.getIn(["serverVariableValues",n])}else n=t,r=e.getIn(["serverVariableValues",n]);r=r||(0,H.OrderedMap)();let i=n;return r.map(((s,a)=>{i=i.replace(new RegExp(`{${(0,$xe.default)(a)}}`,"g"),s)})),i})),Zxe=(function(t){return(...r)=>n=>{const i=n.getSystem().specSelectors.specJson();let s=[...r][1]||[];return!i.getIn(["paths",...s,"requestBody","required"])||t(...r)}})(((e,t)=>((r,n)=>(n=n||[],!!r.getIn(["requestData",...n,"bodyValue"])))(e,t))),Qxe=(e,{oas3RequiredRequestBodyContentType:t,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let i=[];if(!H.Map.isMap(n))return i;let s=[];return Object.keys(t.requestContentType).forEach((a=>{a===r&&t.requestContentType[a].forEach((o=>{s.indexOf(o)<0&&s.push(o)}))})),s.forEach((a=>{n.getIn([a,"value"])||i.push(a)})),i},eAe=(0,wm.default)(["get","put","post","delete","options","head","patch","trace"]);var tAe={[VR]:(e,{payload:{selectedServerUrl:t,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return e.setIn(n,t)},[zR]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;if(!H.Map.isMap(t))return e.setIn(["requestData",n,i,"bodyValue"],t);let s=e.getIn(["requestData",n,i,"bodyValue"])||(0,H.Map)();H.Map.isMap(s)||(s=(0,H.Map)());let a=s;const[...o]=t.keys();return o.forEach((u=>{let c=t.getIn([u]);a.has(u)&&H.Map.isMap(c)||(a=a.setIn([u,"value"],c))})),e.setIn(["requestData",n,i,"bodyValue"],a)},[WR]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;return e.setIn(["requestData",n,i,"retainBodyValue"],t)},[JR]:(e,{payload:{value:t,pathMethod:r,name:n}})=>{let[i,s]=r;return e.setIn(["requestData",i,s,"bodyInclusion",n],t)},[KR]:(e,{payload:{name:t,pathMethod:r,contextType:n,contextName:i}})=>{let[s,a]=r;return e.setIn(["examples",s,a,n,i,"activeExample"],t)},[HR]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;return e.setIn(["requestData",n,i,"requestContentType"],t)},[GR]:(e,{payload:{value:t,path:r,method:n}})=>e.setIn(["requestData",r,n,"responseContentType"],t),[YR]:(e,{payload:{server:t,namespace:r,key:n,val:i}})=>{const s=r?[r,"serverVariableValues",t,n]:["serverVariableValues",t,n];return e.setIn(s,i)},[XR]:(e,{payload:{path:t,method:r,validationErrors:n}})=>{let i=[];if(i.push("Required field is not provided"),n.missingBodyValue)return e.setIn(["requestData",t,r,"errors"],(0,H.fromJS)(i));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:s}=n;return e.updateIn(["requestData",t,r,"bodyValue"],(0,H.fromJS)({}),(a=>s.reduce(((o,u)=>o.setIn([u,"errors"],(0,H.fromJS)(i))),a)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),e},[Rm]:(e,{payload:{path:t,method:r}})=>{const n=e.getIn(["requestData",t,r,"bodyValue"]);if(!H.Map.isMap(n))return e.setIn(["requestData",t,r,"errors"],(0,H.fromJS)([]));const[...i]=n.keys();return i?e.updateIn(["requestData",t,r,"bodyValue"],(0,H.fromJS)({}),(s=>i.reduce(((a,o)=>a.setIn([o,"errors"],(0,H.fromJS)([]))),s))):e},[ZR]:(e,{payload:{pathMethod:t}})=>{let[r,n]=t;const i=e.getIn(["requestData",r,n,"bodyValue"]);return i?H.Map.isMap(i)?e.setIn(["requestData",r,n,"bodyValue"],(0,H.Map)()):e.setIn(["requestData",r,n,"bodyValue"],""):e}};function lO({getSystem:e}){const t=(r=>(n,i=null)=>{const{getConfigs:s,fn:a}=r(),{fileUploadMediaTypes:o}=s();if(typeof i=="string"&&o.some((l=>i.startsWith(l))))return!0;const u=H.Map.isMap(n);if(!u&&!(0,vs.default)(n))return!1;const c=u?n.get("format"):n.format;return a.hasSchemaType(n,"string")&&["binary","byte"].includes(c)})(e);return{components:vxe,wrapComponents:Axe,statePlugins:{spec:{wrapSelectors:zA,selectors:JA},auth:{wrapSelectors:WA},oas3:{actions:{...KA},reducers:tAe,selectors:{...HA}}},fn:{isFileUploadIntended:t,isFileUploadIntendedOAS30:t}}}var rAe=({specSelectors:e,getComponent:t})=>{const r=e.selectWebhooksOperations(),n=Object.keys(r),i=t("OperationContainer",!0);return n.length===0?null:p.default.createElement("div",{className:"webhooks"},p.default.createElement("h2",null,"Webhooks"),n.map((s=>p.default.createElement("div",{key:`${s}-webhook`},r[s].map((a=>p.default.createElement(i,{key:`${s}-${a.method}-webhook`,op:a.operation,tag:"webhooks",method:a.method,path:s,specPath:(0,H.List)(a.specPath),allowTryItOut:!1})))))))},nAe=({getComponent:e,specSelectors:t})=>{const r=t.selectLicenseNameField(),n=t.selectLicenseUrl(),i=e("Link");return p.default.createElement("div",{className:"info__license"},n?p.default.createElement("div",{className:"info__license__url"},p.default.createElement(i,{target:"_blank",href:hr(n)},r)):p.default.createElement("span",null,r))},iAe=({getComponent:e,specSelectors:t})=>{const r=t.selectContactNameField(),n=t.selectContactUrl(),i=t.selectContactEmailField(),s=e("Link");return p.default.createElement("div",{className:"info__contact"},n&&p.default.createElement("div",null,p.default.createElement(s,{href:hr(n),target:"_blank"},r," - Website")),i&&p.default.createElement(s,{href:hr(`mailto:${i}`)},n?`Send email to ${r}`:`Contact ${r}`))},sAe=({getComponent:e,specSelectors:t})=>{const r=t.version(),n=t.url(),i=t.basePath(),s=t.host(),a=t.selectInfoSummaryField(),o=t.selectInfoDescriptionField(),u=t.selectInfoTitleField(),c=t.selectInfoTermsOfServiceUrl(),l=t.selectExternalDocsUrl(),f=t.selectExternalDocsDescriptionField(),h=t.contact(),d=t.license(),g=e("Markdown",!0),y=e("Link"),v=e("VersionStamp"),_=e("OpenAPIVersion"),b=e("InfoUrl"),E=e("InfoBasePath"),w=e("License",!0),S=e("Contact",!0),A=e("JsonSchemaDialect",!0);return p.default.createElement("div",{className:"info"},p.default.createElement("hgroup",{className:"main"},p.default.createElement("h2",{className:"title"},u,p.default.createElement("span",null,r&&p.default.createElement(v,{version:r}),p.default.createElement(_,{oasVersion:"3.1"}))),(s||i)&&p.default.createElement(E,{host:s,basePath:i}),n&&p.default.createElement(b,{getComponent:e,url:n})),a&&p.default.createElement("p",{className:"info__summary"},a),p.default.createElement("div",{className:"info__description description"},p.default.createElement(g,{source:o})),c&&p.default.createElement("div",{className:"info__tos"},p.default.createElement(y,{target:"_blank",href:hr(c)},"Terms of service")),h.size>0&&p.default.createElement(S,null),d.size>0&&p.default.createElement(w,null),l&&p.default.createElement(y,{className:"info__extdocs",target:"_blank",href:hr(l)},f||l),p.default.createElement(A,null))},aAe=({getComponent:e,specSelectors:t})=>{const r=t.selectJsonSchemaDialectField(),n=t.selectJsonSchemaDialectDefault(),i=e("Link");return p.default.createElement(p.default.Fragment,null,r&&r===n&&p.default.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",p.default.createElement(i,{target:"_blank",href:hr(r)},r)),r&&r!==n&&p.default.createElement("div",{className:"error-wrapper"},p.default.createElement("div",{className:"no-margin"},p.default.createElement("div",{className:"errors"},p.default.createElement("div",{className:"errors-wrapper"},p.default.createElement("h4",{className:"center"},"Warning"),p.default.createElement("p",{className:"message"},p.default.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",p.default.createElement(i,{target:"_blank",href:n},n),". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."))))))},oAe=({bypass:e,isSwagger2:t,isOAS3:r,isOAS31:n,alsoShow:i,children:s})=>e?p.default.createElement("div",null,s):t&&(r||n)?p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,p.default.createElement("code",null,"swagger")," and ",p.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),p.default.createElement("p",null,"Supported version fields are ",p.default.createElement("code",null,'swagger: "2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",p.default.createElement("code",null,"openapi: 3.1.0"),").")))):t||r||n?p.default.createElement("div",null,s):p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,"The provided definition does not specify a valid version field."),p.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",p.default.createElement("code",null,'swagger: "2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",p.default.createElement("code",null,"openapi: 3.1.0"),")."))));const uAe=e=>typeof e=="string"&&e.includes("#/components/schemas/")?(t=>{const r=t.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(r)}catch{return r}})(e.replace(/^.*#\/components\/schemas\//,"")):null,cAe=(0,p.forwardRef)((({schema:e,getComponent:t,onToggle:r=()=>{},specPath:n},i)=>{const s=t("JSONSchema202012"),a=uAe(e.get("$$ref")),o=(0,p.useCallback)(((u,c)=>{r(a,c)}),[a,r]);return p.default.createElement(s,{name:a,schema:e.toJS(),ref:i,onExpand:o,identifier:n.toJS().join("_")})}));var lAe=cAe,fAe=({specActions:e,specSelectors:t,layoutSelectors:r,layoutActions:n,getComponent:i,getConfigs:s,fn:a})=>{const o=t.selectSchemas(),u=Object.keys(o).length>0,c=["components","schemas"],{docExpansion:l,defaultModelsExpandDepth:f}=s(),h=f>0&&l!=="none",d=r.isShown(c,h),g=i("Collapse"),y=i("JSONSchema202012"),v=i("ArrowUpIcon"),_=i("ArrowDownIcon"),{getTitle:b}=a.jsonSchema202012.useFn();(0,p.useEffect)((()=>{const R=Object.entries(o).some((([D])=>r.isShown([...c,D],!1))),T=d&&(f>1||R),O=t.specResolvedSubtree(c)!=null;T&&!O&&e.requestResolvedSubtree(c)}),[d,f]);const E=(0,p.useCallback)((()=>{n.show(c,!d)}),[d]),w=(0,p.useCallback)((R=>{R!==null&&n.readyToScroll(c,R)}),[]),S=R=>T=>{T!==null&&n.readyToScroll([...c,R],T)},A=R=>(T,O)=>{const D=[...c,R];O?(t.specResolvedSubtree(D)!=null||e.requestResolvedSubtree([...c,R]),n.show(D,!0)):n.show(D,!1)};return!u||f<0?null:p.default.createElement("section",{className:(0,Rt.default)("models",{"is-open":d}),ref:w},p.default.createElement("h4",null,p.default.createElement("button",{"aria-expanded":d,className:"models-control",onClick:E},p.default.createElement("span",null,"Schemas"),d?p.default.createElement(v,null):p.default.createElement(_,null))),p.default.createElement(g,{isOpened:d},Object.entries(o).map((([R,T])=>{const O=b(T,{lookup:"basic"})||R;return p.default.createElement(y,{key:R,ref:S(R),schema:T,name:O,onExpand:A(R)})}))))},pAe=({schema:e,getComponent:t,name:r,authSelectors:n})=>{const i=t("JumpToPath",!0),s=n.selectAuthPath(r);return p.default.createElement("div",null,p.default.createElement("h4",null,r," (mutualTLS) ",p.default.createElement(i,{path:s})),p.default.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),p.default.createElement("p",null,e.get("description")))};class dAe extends p.default.Component{constructor(r,n){super(r,n);Y(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});Y(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});Y(this,"logoutClick",r=>{r.preventDefault();let{authActions:n,definitions:i}=this.props,s=i.map(((a,o)=>o)).toArray();this.setState(s.reduce(((a,o)=>(a[o]="",a)),{})),n.logoutWithPersistOption(s)});Y(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});this.state={}}render(){let{definitions:r,getComponent:n,authSelectors:i,errSelectors:s}=this.props;const a=n("AuthItem"),o=n("oauth2",!0),u=n("Button"),c=i.authorized(),l=r.filter(((g,y)=>!!c.get(y))),f=r.filter((g=>g.get("type")!=="oauth2"&&g.get("type")!=="mutualTLS")),h=r.filter((g=>g.get("type")==="oauth2")),d=r.filter((g=>g.get("type")==="mutualTLS"));return p.default.createElement("div",{className:"auth-container"},f.size>0&&p.default.createElement("form",{onSubmit:this.submitAuth},f.map(((g,y)=>p.default.createElement(a,{key:y,schema:g,name:y,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i}))).toArray(),p.default.createElement("div",{className:"auth-btn-wrapper"},f.size===l.size?p.default.createElement(u,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):p.default.createElement(u,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),p.default.createElement(u,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),h.size>0?p.default.createElement("div",null,p.default.createElement("div",{className:"scope-def"},p.default.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),p.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),r.filter((g=>g.get("type")==="oauth2")).map(((g,y)=>p.default.createElement("div",{key:y},p.default.createElement(o,{authorized:c,schema:g,name:y})))).toArray()):null,d.size>0&&p.default.createElement("div",null,d.map(((g,y)=>p.default.createElement(a,{key:y,schema:g,name:y,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i}))).toArray()))}}var hAe=dAe;const Dz=e=>{const t=e.get("openapi");return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)},AL=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null},qz=e=>(t,r)=>(n,...i)=>{if(r.getSystem().specSelectors.isOAS31()){const s=e(n,...i);return typeof s=="function"?s(t,r):s}return t(...i)},OL=e=>(t,...r)=>n=>{const i=e(t,n,...r);return typeof i=="function"?i(n):i},ns=e=>(t,r)=>n=>r.specSelectors.isOAS31()?p.default.createElement(e,(0,Ct.default)({},n,{originalComponent:t,getSystem:r.getSystem})):p.default.createElement(t,n),Xw=(e,t)=>{const{fn:r,specSelectors:n}=t;return Object.fromEntries(Object.entries(e).map((([i,s])=>{const a=r[i];return[i,(...o)=>n.isOAS31()?s(...o):typeof a=="function"?a(...o):void 0]})))};var mAe=ns((({getSystem:e})=>{const t=e().getComponent("OAS31License",!0);return p.default.createElement(t,null)})),gAe=ns((({getSystem:e})=>{const t=e().getComponent("OAS31Contact",!0);return p.default.createElement(t,null)})),yAe=ns((({getSystem:e})=>{const t=e().getComponent("OAS31Info",!0);return p.default.createElement(t,null)}));const vAe=(e,{includeReadOnly:t,includeWriteOnly:r})=>{if(!(e!=null&&e.properties))return{};const n=Object.entries(e.properties).filter((([,i])=>((i==null?void 0:i.readOnly)!==!0||t)&&((i==null?void 0:i.writeOnly)!==!0||r)));return Object.fromEntries(n)},$z=e=>{if(typeof e!="function")return null;const t=e();return()=>[...t,"discriminator","xml","externalDocs","example","$$ref"]},Qu=ns((({getSystem:e,...t})=>{const r=e(),{getComponent:n,fn:i,getConfigs:s}=r,a=s(),o=n("OAS31Model"),u=n("withJSONSchema202012SystemContext");return Qu.ModelWithJSONSchemaContext??(Qu.ModelWithJSONSchemaContext=u(o,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:a.defaultModelExpandDepth,includeReadOnly:t.includeReadOnly,includeWriteOnly:t.includeWriteOnly},fn:{getProperties:i.jsonSchema202012.getProperties,isExpandable:i.jsonSchema202012.isExpandable,getSchemaKeywords:$z(i.jsonSchema202012.getSchemaKeywords)}})),p.default.createElement(Qu.ModelWithJSONSchemaContext,t)}));var bAe=Qu;const Ds=ns((({getSystem:e})=>{const{getComponent:t,fn:r,getConfigs:n}=e(),i=n();if(Ds.ModelsWithJSONSchemaContext)return p.default.createElement(Ds.ModelsWithJSONSchemaContext,null);const s=t("OAS31Models",!0),a=t("withJSONSchema202012SystemContext");return Ds.ModelsWithJSONSchemaContext??(Ds.ModelsWithJSONSchemaContext=a(s,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:i.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:$z(r.jsonSchema202012.getSchemaKeywords)}})),p.default.createElement(Ds.ModelsWithJSONSchemaContext,null)}));Ds.ModelsWithJSONSchemaContext=null;var _Ae=Ds,EAe=(e,t)=>r=>{const n=t.specSelectors.isOAS31(),i=t.getComponent("OAS31VersionPragmaFilter");return p.default.createElement(i,(0,Ct.default)({isOAS31:n},r))};const SAe=ns((({originalComponent:e,...t})=>{const{getComponent:r,schema:n,name:i}=t,s=r("MutualTLSAuth",!0);return n.get("type")==="mutualTLS"?p.default.createElement(s,{schema:n,name:i}):p.default.createElement(e,t)}));var wAe=SAe,xAe=ns((({getSystem:e,...t})=>{const r=e().getComponent("OAS31Auths",!0);return p.default.createElement(r,t)}));const QR=(0,H.Map)(),AAe=(0,nt.createSelector)(((e,t)=>t.specSelectors.specJson()),Dz),OAe=()=>e=>{const t=e.specSelectors.specJson().get("webhooks");return H.Map.isMap(t)?t:QR},CAe=(0,nt.createSelector)([(e,t)=>t.specSelectors.webhooks(),(e,t)=>t.specSelectors.validOperationMethods(),(e,t)=>t.specSelectors.specResolvedSubtree(["webhooks"])],((e,t)=>e.reduce(((r,n,i)=>{if(!H.Map.isMap(n))return r;const s=n.entrySeq().filter((([a])=>t.includes(a))).map((([a,o])=>({operation:(0,H.Map)({operation:o}),method:a,path:i,specPath:["webhooks",i,a]})));return r.concat(s)}),(0,H.List)()).groupBy((r=>r.path)).map((r=>r.toArray())).toObject())),RAe=()=>e=>{const t=e.specSelectors.info().get("license");return H.Map.isMap(t)?t:QR},IAe=()=>e=>e.specSelectors.license().get("name","License"),TAe=()=>e=>e.specSelectors.license().get("url"),jAe=(0,nt.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],((e,t,r)=>{if(r)return Oi(r,e,{selectedServer:t})})),PAe=()=>e=>e.specSelectors.license().get("identifier"),kAe=()=>e=>{const t=e.specSelectors.info().get("contact");return H.Map.isMap(t)?t:QR},NAe=()=>e=>e.specSelectors.contact().get("name","the developer"),MAe=()=>e=>e.specSelectors.contact().get("email"),DAe=()=>e=>e.specSelectors.contact().get("url"),qAe=(0,nt.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],((e,t,r)=>{if(r)return Oi(r,e,{selectedServer:t})})),$Ae=()=>e=>e.specSelectors.info().get("title"),FAe=()=>e=>e.specSelectors.info().get("summary"),BAe=()=>e=>e.specSelectors.info().get("description"),LAe=()=>e=>e.specSelectors.info().get("termsOfService"),UAe=(0,nt.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectInfoTermsOfServiceField()],((e,t,r)=>{if(r)return Oi(r,e,{selectedServer:t})})),VAe=()=>e=>e.specSelectors.externalDocs().get("description"),zAe=()=>e=>e.specSelectors.externalDocs().get("url"),WAe=(0,nt.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectExternalDocsUrlField()],((e,t,r)=>{if(r)return Oi(r,e,{selectedServer:t})})),JAe=()=>e=>e.specSelectors.specJson().get("jsonSchemaDialect"),KAe=()=>"https://spec.openapis.org/oas/3.1/dialect/base",HAe=(0,nt.createSelector)(((e,t)=>t.specSelectors.definitions()),((e,t)=>t.specSelectors.specResolvedSubtree(["components","schemas"])),((e,t)=>H.Map.isMap(e)?H.Map.isMap(t)?Object.entries(e.toJS()).reduce(((r,[n,i])=>{const s=t.get(n);return r[n]=(s==null?void 0:s.toJS())||i,r}),{}):e.toJS():{})),GAe=(e,t)=>(r,...n)=>t.specSelectors.isOAS31()||e(...n),YAe=qz((()=>(e,t)=>t.oas31Selectors.selectLicenseUrl())),XAe=qz((()=>(e,t)=>{const r=t.specSelectors.securityDefinitions();let n=e();return r&&r.entrySeq().forEach((([i,s])=>{(s==null?void 0:s.get("type"))==="mutualTLS"&&(n=n.push(new H.Map({[i]:s})))})),n})),ZAe=(0,nt.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField(),(e,t)=>t.specSelectors.selectLicenseIdentifierField()],((e,t,r,n)=>r?Oi(r,e,{selectedServer:t}):n?`https://spdx.org/licenses/${n}.html`:void 0));var QAe=({schema:e,getSystem:t})=>{const{fn:r,getComponent:n}=t(),{hasKeyword:i}=r.jsonSchema202012.useFn(),s=n("JSONSchema202012JSONViewer");return i(e,"example")?p.default.createElement(s,{name:"Example",value:e.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},eOe=({schema:e,getSystem:t})=>{const r=(e==null?void 0:e.xml)||{},{fn:n,getComponent:i,getConfigs:s}=t(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:c,useLevel:l}=n.jsonSchema202012,{path:f}=c("xml"),{isExpanded:h,setExpanded:d,setCollapsed:g}=u("xml"),[y,v]=l(),_=a?ua(r):[],b=!!(r.name||r.namespace||r.prefix||_.length>0),E=o("Accordion"),w=o("ExpandDeepButton"),S=i("OpenAPI31Extensions"),A=i("JSONSchema202012PathContext")(),R=i("JSONSchema202012LevelContext")(),T=(0,p.useCallback)((()=>{h?g():d()}),[h,d,g]),O=(0,p.useCallback)(((D,N)=>{N?d({deep:!0}):g({deep:!0})}),[d,g]);return Object.keys(r).length===0?null:p.default.createElement(A.Provider,{value:f},p.default.createElement(R.Provider,{value:v},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":y},b?p.default.createElement(p.default.Fragment,null,p.default.createElement(E,{expanded:h,onChange:T},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),p.default.createElement(w,{expanded:h,onClick:O})):p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),r.attribute===!0&&p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),r.wrapped===!0&&p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!h})},h&&p.default.createElement(p.default.Fragment,null,r.name&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),_.length>0&&p.default.createElement(S,{openAPISpecObj:r,openAPIExtensions:_,getSystem:t})))))},tOe=({discriminator:e})=>{const t=(e==null?void 0:e.mapping)||{};return Object.keys(t).length===0?null:Object.entries(t).map((([r,n])=>p.default.createElement("div",{key:`${r}-${n}`,className:"json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},r),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n))))},rOe=({schema:e,getSystem:t})=>{const r=(e==null?void 0:e.discriminator)||{},{fn:n,getComponent:i,getConfigs:s}=t(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:c,useLevel:l}=n.jsonSchema202012,f="discriminator",{path:h}=c(f),{isExpanded:d,setExpanded:g,setCollapsed:y}=u(f),[v,_]=l(),b=a?ua(r):[],E=!!(r.mapping||b.length>0),w=o("Accordion"),S=o("ExpandDeepButton"),A=i("OpenAPI31Extensions"),R=i("JSONSchema202012PathContext")(),T=i("JSONSchema202012LevelContext")(),O=(0,p.useCallback)((()=>{d?y():g()}),[d,g,y]),D=(0,p.useCallback)(((N,$)=>{$?g({deep:!0}):y({deep:!0})}),[g,y]);return Object.keys(r).length===0?null:p.default.createElement(R.Provider,{value:h},p.default.createElement(T.Provider,{value:_},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":v},E?p.default.createElement(p.default.Fragment,null,p.default.createElement(w,{expanded:d,onChange:O},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),p.default.createElement(S,{expanded:d,onClick:D})):p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement(tOe,{discriminator:r})),b.length>0&&p.default.createElement(A,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},nOe=({openAPISpecObj:e,getSystem:t,openAPIExtensions:r})=>{const{fn:n}=t(),{useComponent:i}=n.jsonSchema202012,s=i("JSONViewer");return r.map((a=>p.default.createElement(s,{key:a,name:a,value:e[a],className:"json-schema-2020-12-json-viewer-extension-keyword"})))},iOe=({schema:e,getSystem:t})=>{const r=(e==null?void 0:e.externalDocs)||{},{fn:n,getComponent:i,getConfigs:s}=t(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:c,useLevel:l}=n.jsonSchema202012,f="externalDocs",{path:h}=c(f),{isExpanded:d,setExpanded:g,setCollapsed:y}=u(f),[v,_]=l(),b=a?ua(r):[],E=!!(r.description||r.url||b.length>0),w=o("Accordion"),S=o("ExpandDeepButton"),A=i("JSONSchema202012KeywordDescription"),R=i("Link"),T=i("OpenAPI31Extensions"),O=i("JSONSchema202012PathContext")(),D=i("JSONSchema202012LevelContext")(),N=(0,p.useCallback)((()=>{d?y():g()}),[d,g,y]),$=(0,p.useCallback)(((M,X)=>{X?g({deep:!0}):y({deep:!0})}),[g,y]);return Object.keys(r).length===0?null:p.default.createElement(O.Provider,{value:h},p.default.createElement(D.Provider,{value:_},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":v},E?p.default.createElement(p.default.Fragment,null,p.default.createElement(w,{expanded:d,onChange:N},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),p.default.createElement(S,{expanded:d,onClick:$})):p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&p.default.createElement(p.default.Fragment,null,r.description&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement(A,{schema:r,getSystem:t})),r.url&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},p.default.createElement(R,{target:"_blank",href:hr(r.url)},r.url))))),b.length>0&&p.default.createElement(T,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},sOe=({schema:e,getSystem:t})=>{if(!(e!=null&&e.description))return null;const{getComponent:r}=t(),n=r("Markdown");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},p.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},p.default.createElement(n,{source:e.description})))},aOe=ns(sOe);const oOe=ns((({schema:e,getSystem:t,originalComponent:r})=>{const{getComponent:n}=t(),i=n("JSONSchema202012KeywordDiscriminator"),s=n("JSONSchema202012KeywordXml"),a=n("JSONSchema202012KeywordExample"),o=n("JSONSchema202012KeywordExternalDocs");return p.default.createElement(p.default.Fragment,null,p.default.createElement(r,{schema:e}),p.default.createElement(i,{schema:e,getSystem:t}),p.default.createElement(s,{schema:e,getSystem:t}),p.default.createElement(o,{schema:e,getSystem:t}),p.default.createElement(a,{schema:e,getSystem:t}))}));var uOe=oOe,cOe=({schema:e,getSystem:t})=>{const{fn:r,getComponent:n}=t(),{useComponent:i,usePath:s}=r.jsonSchema202012,{getDependentRequired:a,getProperties:o}=r.jsonSchema202012.useFn(),u=r.jsonSchema202012.useConfig(),c=Array.isArray(e==null?void 0:e.required)?e.required:[],{path:l}=s("properties"),f=i("JSONSchema"),h=n("JSONSchema202012PathContext")(),d=o(e,u);return Object.keys(d).length===0?null:p.default.createElement(h.Provider,{value:l},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},p.default.createElement("ul",null,Object.entries(d).map((([g,y])=>{const v=c.includes(g),_=a(g,e);return p.default.createElement("li",{key:g,className:(0,Rt.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":v})},p.default.createElement(f,{name:g,schema:y,dependentRequired:_}))})))))},lOe=ns(cOe),fOe=function({fn:t,getSystem:r}){if(t.jsonSchema202012){const s=((a,o)=>{const{fn:u}=o();if(typeof a!="function")return null;const{hasKeyword:c}=u.jsonSchema202012;return l=>a(l)||c(l,"example")||(l==null?void 0:l.xml)||(l==null?void 0:l.discriminator)||(l==null?void 0:l.externalDocs)})(t.jsonSchema202012.isExpandable,r);Object.assign(this.fn.jsonSchema202012,{isExpandable:s,getProperties:vAe})}if(typeof t.sampleFromSchema=="function"&&t.jsonSchema202012){const s=Xw({sampleFromSchema:t.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:t.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:t.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:t.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:t.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:t.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:t.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:t.jsonSchema202012.getXmlSampleSchema,getSampleSchema:t.jsonSchema202012.getSampleSchema,mergeJsonSchema:t.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:a=>t.jsonSchema202012.getType(Ho(a)),getSchemaObjectType:a=>{var o;return t.jsonSchema202012.foldType((o=Ho(a))==null?void 0:o.type)}},r());Object.assign(this.fn,s)}const n=(s=>(a,o=null)=>{const{fn:u}=s();if(u.isFileUploadIntendedOAS30(a,o))return!0;const c=H.Map.isMap(a);if(!c&&!(0,vs.default)(a))return!1;const l=c?a.get("contentMediaType"):a.contentMediaType,f=c?a.get("contentEncoding"):a.contentEncoding;return typeof l=="string"&&l!==""||typeof f=="string"&&f!==""})(r),{isFileUploadIntended:i}=Xw({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=i,this.fn.isFileUploadIntendedOAS31=n,t.jsonSchema202012){const{hasSchemaType:s}=Xw({hasSchemaType:t.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=s}},pOe=({fn:e})=>{const t=e.createSystemSelector||OL,r=e.createOnlyOAS31Selector||AL;return{afterLoad:fOe,fn:{isOAS31:Dz,createSystemSelector:OL,createOnlyOAS31Selector:AL},components:{Webhooks:rAe,JsonSchemaDialect:aAe,MutualTLSAuth:pAe,OAS31Info:sAe,OAS31License:nAe,OAS31Contact:iAe,OAS31VersionPragmaFilter:oAe,OAS31Model:lAe,OAS31Models:fAe,OAS31Auths:hAe,JSONSchema202012KeywordExample:QAe,JSONSchema202012KeywordXml:eOe,JSONSchema202012KeywordDiscriminator:rOe,JSONSchema202012KeywordExternalDocs:iOe,OpenAPI31Extensions:nOe},wrapComponents:{InfoContainer:yAe,License:mAe,Contact:gAe,VersionPragmaFilter:EAe,Model:bAe,Models:_Ae,AuthItem:wAe,auths:xAe,JSONSchema202012KeywordDescription:aOe,JSONSchema202012KeywordExamples:uOe,JSONSchema202012KeywordProperties:lOe},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:XAe}},spec:{selectors:{isOAS31:t(AAe),license:RAe,selectLicenseNameField:IAe,selectLicenseUrlField:TAe,selectLicenseIdentifierField:r(PAe),selectLicenseUrl:t(jAe),contact:kAe,selectContactNameField:NAe,selectContactEmailField:MAe,selectContactUrlField:DAe,selectContactUrl:t(qAe),selectInfoTitleField:$Ae,selectInfoSummaryField:r(FAe),selectInfoDescriptionField:BAe,selectInfoTermsOfServiceField:LAe,selectInfoTermsOfServiceUrl:t(UAe),selectExternalDocsDescriptionField:VAe,selectExternalDocsUrlField:zAe,selectExternalDocsUrl:t(WAe),webhooks:r(OAe),selectWebhooksOperations:r(t(CAe)),selectJsonSchemaDialectField:JAe,selectJsonSchemaDialectDefault:KAe,selectSchemas:t(HAe)},wrapSelectors:{isOAS3:GAe,selectLicenseUrl:YAe}},oas31:{selectors:{selectLicenseUrl:r(t(ZAe))}}}}};const dOe=mn.default.object,hOe=mn.default.bool,Da=(mn.default.oneOfType([dOe,hOe]),(0,p.createContext)(null));Da.displayName="JSONSchemaContext";const pi=(0,p.createContext)(0);pi.displayName="JSONSchemaLevelContext";const fO=(0,p.createContext)(new Set),An=(0,p.createContext)([]);class gn{}Y(gn,"Collapsed","collapsed"),Y(gn,"Expanded","expanded"),Y(gn,"DeeplyExpanded","deeply-expanded");const eI=()=>{const{config:e}=(0,p.useContext)(Da);return e},De=e=>{const{components:t}=(0,p.useContext)(Da);return t[e]||null},Wt=(e=void 0)=>{const{fn:t}=(0,p.useContext)(Da);return e!==void 0?t[e]:t},Fz=()=>{const[,e]=(0,p.useState)(null),{state:t}=(0,p.useContext)(Da);return{state:t,setState:r=>{r(t),e({})}}},ii=()=>{const e=(0,p.useContext)(pi);return[e,e+1]},ln=e=>{const t=(0,p.useContext)(An),{setState:r}=Fz(),n=typeof e=="string"?[...t,e]:t;return{path:n,pathMutator:(i,s={deep:!1})=>{const a=n.toString(),o=c=>{c.paths[a]=i,i===gn.Collapsed&&Object.keys(c.paths).forEach((l=>{l.startsWith(a)&&c.paths[l]===gn.DeeplyExpanded&&(c.paths[l]=gn.Expanded)}))},u=c=>{Object.keys(c.paths).forEach((l=>{l.startsWith(a)&&(c.paths[l]=i)}))};s.deep?r(u):r(o)}}},Pi=e=>{const[t]=ii(),{defaultExpandedLevels:r}=eI(),{path:n,pathMutator:i}=ln(e),{path:s}=ln(),{state:a}=Fz(),o=a.paths[n.toString()],u=a.paths[s.toString()]??a.paths[s.slice(0,-1).toString()],c=o??(r-t>0?gn.Expanded:gn.Collapsed),l=c!==gn.Collapsed;return(0,p.useEffect)((()=>{i(u===gn.DeeplyExpanded?gn.DeeplyExpanded:c)}),[u]),{isExpanded:l,setExpanded:(0,p.useCallback)(((f={deep:!1})=>{i(f.deep?gn.DeeplyExpanded:gn.Expanded)}),[]),setCollapsed:(0,p.useCallback)(((f={deep:!1})=>{i(gn.Collapsed,f)}),[])}},CL=(e=void 0)=>{if(e===void 0)return(0,p.useContext)(fO);const t=(0,p.useContext)(fO);return new Set([...t,e])},mOe=(0,p.forwardRef)((({schema:e,name:t="",dependentRequired:r=[],onExpand:n=()=>{},identifier:i=""},s)=>{const a=Wt(),o=i||(e==null?void 0:e.$id)||t,{path:u}=ln(o),{isExpanded:c,setExpanded:l,setCollapsed:f}=Pi(o),[h,d]=ii(),g=(()=>{const[B]=ii();return B>0})(),y=a.isExpandable(e)||r.length>0,v=(B=>CL().has(B))(e),_=CL(e),b=a.stringifyConstraints(e),E=De("Accordion"),w=De("Keyword$schema"),S=De("Keyword$vocabulary"),A=De("Keyword$id"),R=De("Keyword$anchor"),T=De("Keyword$dynamicAnchor"),O=De("Keyword$ref"),D=De("Keyword$dynamicRef"),N=De("Keyword$defs"),$=De("Keyword$comment"),M=De("KeywordAllOf"),X=De("KeywordAnyOf"),ee=De("KeywordOneOf"),J=De("KeywordNot"),Q=De("KeywordIf"),te=De("KeywordThen"),re=De("KeywordElse"),L=De("KeywordDependentSchemas"),K=De("KeywordPrefixItems"),ne=De("KeywordItems"),ce=De("KeywordContains"),ue=De("KeywordProperties"),se=De("KeywordPatternProperties"),V=De("KeywordAdditionalProperties"),z=De("KeywordPropertyNames"),de=De("KeywordUnevaluatedItems"),ge=De("KeywordUnevaluatedProperties"),Ce=De("KeywordType"),Pe=De("KeywordEnum"),pe=De("KeywordConst"),Te=De("KeywordConstraint"),Le=De("KeywordDependentRequired"),be=De("KeywordContentSchema"),we=De("KeywordTitle"),xe=De("KeywordDescription"),U=De("KeywordDefault"),I=De("KeywordDeprecated"),k=De("KeywordReadOnly"),W=De("KeywordWriteOnly"),ie=De("KeywordExamples"),oe=De("ExtensionKeywords"),me=De("ExpandDeepButton"),Ne=(0,p.useCallback)(((B,C)=>{C?l():f(),n(B,C,!1)}),[n,l,f]),Xe=(0,p.useCallback)(((B,C)=>{C?l({deep:!0}):f({deep:!0}),n(B,C,!0)}),[n,l,f]);return p.default.createElement(An.Provider,{value:u},p.default.createElement(pi.Provider,{value:d},p.default.createElement(fO.Provider,{value:_},p.default.createElement("article",{ref:s,"data-json-schema-level":h,className:(0,Rt.default)("json-schema-2020-12",{"json-schema-2020-12--embedded":g,"json-schema-2020-12--circular":v})},p.default.createElement("div",{className:"json-schema-2020-12-head"},y&&!v?p.default.createElement(p.default.Fragment,null,p.default.createElement(E,{expanded:c,onChange:Ne},p.default.createElement(we,{title:t,schema:e})),p.default.createElement(me,{expanded:c,onClick:Xe})):p.default.createElement(we,{title:t,schema:e}),p.default.createElement(I,{schema:e}),p.default.createElement(k,{schema:e}),p.default.createElement(W,{schema:e}),p.default.createElement(Ce,{schema:e,isCircular:v}),b.length>0&&b.map((B=>p.default.createElement(Te,{key:`${B.scope}-${B.value}`,constraint:B})))),p.default.createElement("div",{className:(0,Rt.default)("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!c})},c&&p.default.createElement(p.default.Fragment,null,p.default.createElement(xe,{schema:e}),!v&&y&&p.default.createElement(p.default.Fragment,null,p.default.createElement(ue,{schema:e}),p.default.createElement(se,{schema:e}),p.default.createElement(V,{schema:e}),p.default.createElement(ge,{schema:e}),p.default.createElement(z,{schema:e}),p.default.createElement(M,{schema:e}),p.default.createElement(X,{schema:e}),p.default.createElement(ee,{schema:e}),p.default.createElement(J,{schema:e}),p.default.createElement(Q,{schema:e}),p.default.createElement(te,{schema:e}),p.default.createElement(re,{schema:e}),p.default.createElement(L,{schema:e}),p.default.createElement(K,{schema:e}),p.default.createElement(ne,{schema:e}),p.default.createElement(de,{schema:e}),p.default.createElement(ce,{schema:e}),p.default.createElement(be,{schema:e})),p.default.createElement(Pe,{schema:e}),p.default.createElement(pe,{schema:e}),p.default.createElement(Le,{schema:e,dependentRequired:r}),p.default.createElement(U,{schema:e}),p.default.createElement(ie,{schema:e}),p.default.createElement(w,{schema:e}),p.default.createElement(S,{schema:e}),p.default.createElement(A,{schema:e}),p.default.createElement(R,{schema:e}),p.default.createElement(T,{schema:e}),p.default.createElement(O,{schema:e}),!v&&y&&p.default.createElement(N,{schema:e}),p.default.createElement(D,{schema:e}),p.default.createElement($,{schema:e}),p.default.createElement(oe,{schema:e})))))))}));var Bz=mOe,Lz=({schema:e})=>e!=null&&e.$schema?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$schema)):null,Uz=({schema:e})=>{const t="$vocabulary",{path:r}=ln(t),{isExpanded:n,setExpanded:i,setCollapsed:s}=Pi(t),a=De("Accordion"),o=(0,p.useCallback)((()=>{n?s():i()}),[n,i,s]);return e!=null&&e.$vocabulary?typeof e.$vocabulary!="object"?null:p.default.createElement(An.Provider,{value:r},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},p.default.createElement(a,{expanded:n,onChange:o},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",null,n&&Object.entries(e.$vocabulary).map((([u,c])=>p.default.createElement("li",{key:u,className:(0,Rt.default)("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!c})},p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},u))))))):null},Vz=({schema:e})=>e!=null&&e.$id?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$id)):null,zz=({schema:e})=>e!=null&&e.$anchor?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$anchor)):null,Wz=({schema:e})=>e!=null&&e.$dynamicAnchor?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$dynamicAnchor)):null,Jz=({schema:e})=>e!=null&&e.$ref?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$ref)):null,Kz=({schema:e})=>e!=null&&e.$dynamicRef?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$dynamicRef)):null,Hz=({schema:e})=>{const t=(e==null?void 0:e.$defs)||{},r="$defs",{path:n}=ln(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Pi(r),[o,u]=ii(),c=De("Accordion"),l=De("ExpandDeepButton"),f=De("JSONSchema"),h=(0,p.useCallback)((()=>{i?a():s()}),[i,s,a]),d=(0,p.useCallback)(((g,y)=>{y?s({deep:!0}):a({deep:!0})}),[s,a]);return Object.keys(t).length===0?null:p.default.createElement(An.Provider,{value:n},p.default.createElement(pi.Provider,{value:u},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":o},p.default.createElement(c,{expanded:i,onChange:h},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),p.default.createElement(l,{expanded:i,onClick:d}),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&p.default.createElement(p.default.Fragment,null,Object.entries(t).map((([g,y])=>p.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},p.default.createElement(f,{name:g,schema:y})))))))))},Gz=({schema:e})=>e!=null&&e.$comment?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$comment)):null,Yz=({schema:e})=>{const t=(e==null?void 0:e.allOf)||[],r=Wt(),n="allOf",{path:i}=ln(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Pi(n),[u,c]=ii(),l=De("Accordion"),f=De("ExpandDeepButton"),h=De("JSONSchema"),d=De("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(An.Provider,{value:i},p.default.createElement(pi.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{allOf:t}}),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map(((v,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},Xz=({schema:e})=>{const t=(e==null?void 0:e.anyOf)||[],r=Wt(),n="anyOf",{path:i}=ln(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Pi(n),[u,c]=ii(),l=De("Accordion"),f=De("ExpandDeepButton"),h=De("JSONSchema"),d=De("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(An.Provider,{value:i},p.default.createElement(pi.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{anyOf:t}}),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map(((v,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},Zz=({schema:e})=>{const t=(e==null?void 0:e.oneOf)||[],r=Wt(),n="oneOf",{path:i}=ln(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Pi(n),[u,c]=ii(),l=De("Accordion"),f=De("ExpandDeepButton"),h=De("JSONSchema"),d=De("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(An.Provider,{value:i},p.default.createElement(pi.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{oneOf:t}}),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map(((v,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},Qz=({schema:e})=>{const t=Wt(),r=De("JSONSchema");if(!t.hasKeyword(e,"not"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},p.default.createElement(r,{name:n,schema:e.not,identifier:"not"}))},eW=({schema:e})=>{const t=Wt(),r=De("JSONSchema");if(!t.hasKeyword(e,"if"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},p.default.createElement(r,{name:n,schema:e.if,identifier:"if"}))},tW=({schema:e})=>{const t=Wt(),r=De("JSONSchema");if(!t.hasKeyword(e,"then"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},p.default.createElement(r,{name:n,schema:e.then,identifier:"then"}))},rW=({schema:e})=>{const t=Wt(),r=De("JSONSchema");if(!t.hasKeyword(e,"else"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},p.default.createElement(r,{name:n,schema:e.else,identifier:"else"}))},nW=({schema:e})=>{const t=(e==null?void 0:e.dependentSchemas)||[],r="dependentSchemas",{path:n}=ln(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Pi(r),[o,u]=ii(),c=De("Accordion"),l=De("ExpandDeepButton"),f=De("JSONSchema"),h=(0,p.useCallback)((()=>{i?a():s()}),[i,s,a]),d=(0,p.useCallback)(((g,y)=>{y?s({deep:!0}):a({deep:!0})}),[s,a]);return typeof t!="object"||Object.keys(t).length===0?null:p.default.createElement(An.Provider,{value:n},p.default.createElement(pi.Provider,{value:u},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":o},p.default.createElement(c,{expanded:i,onChange:h},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),p.default.createElement(l,{expanded:i,onClick:d}),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&p.default.createElement(p.default.Fragment,null,Object.entries(t).map((([g,y])=>p.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},p.default.createElement(f,{name:g,schema:y})))))))))},iW=({schema:e})=>{const t=(e==null?void 0:e.prefixItems)||[],r=Wt(),n="prefixItems",{path:i}=ln(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Pi(n),[u,c]=ii(),l=De("Accordion"),f=De("ExpandDeepButton"),h=De("JSONSchema"),d=De("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(An.Provider,{value:i},p.default.createElement(pi.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{prefixItems:t}}),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map(((v,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},sW=({schema:e})=>{const t=Wt(),r=De("JSONSchema");if(!t.hasKeyword(e,"items"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},p.default.createElement(r,{name:n,schema:e.items,identifier:"items"}))},aW=({schema:e})=>{const t=Wt(),r=De("JSONSchema");if(!t.hasKeyword(e,"contains"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},p.default.createElement(r,{name:n,schema:e.contains,identifier:"contains"}))},oW=({schema:e})=>{const t=Wt(),r=(e==null?void 0:e.properties)||{},n=Array.isArray(e==null?void 0:e.required)?e.required:[],i=De("JSONSchema"),{path:s}=ln("properties");return Object.keys(r).length===0?null:p.default.createElement(An.Provider,{value:s},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},p.default.createElement("ul",null,Object.entries(r).map((([a,o])=>{const u=n.includes(a),c=t.getDependentRequired(a,e);return p.default.createElement("li",{key:a,className:(0,Rt.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":u})},p.default.createElement(i,{name:a,schema:o,dependentRequired:c}))})))))},uW=({schema:e})=>{const t=(e==null?void 0:e.patternProperties)||{},r=De("JSONSchema"),{path:n}=ln("patternProperties");return Object.keys(t).length===0?null:p.default.createElement(An.Provider,{value:n},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},p.default.createElement("ul",null,Object.entries(t).map((([i,s])=>p.default.createElement("li",{key:i,className:"json-schema-2020-12-property"},p.default.createElement(r,{name:i,schema:s})))))))},cW=({schema:e})=>{const t=Wt(),r=De("JSONSchema");if(!t.hasKeyword(e,"additionalProperties"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},e.additionalProperties===!0?p.default.createElement(p.default.Fragment,null,n,p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):e.additionalProperties===!1?p.default.createElement(p.default.Fragment,null,n,p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):p.default.createElement(r,{name:n,schema:e.additionalProperties,identifier:"additionalProperties"}))},lW=({schema:e})=>{const t=Wt(),r=De("JSONSchema"),n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return t.hasKeyword(e,"propertyNames")?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},p.default.createElement(r,{name:n,schema:e.propertyNames,identifier:"propertyNames"})):null},fW=({schema:e})=>{const t=Wt(),r=De("JSONSchema");if(!t.hasKeyword(e,"unevaluatedItems"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},p.default.createElement(r,{name:n,schema:e.unevaluatedItems,identifier:"unevaluatedItems"}))},pW=({schema:e})=>{const t=Wt(),r=De("JSONSchema");if(!t.hasKeyword(e,"unevaluatedProperties"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},p.default.createElement(r,{name:n,schema:e.unevaluatedProperties,identifier:"unevaluatedProperties"}))},dW=({schema:e,isCircular:t=!1})=>{const r=Wt().getType(e),n=t?" [circular]":"";return p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},hW=({schema:e})=>{const t=De("JSONViewer");return Array.isArray(e==null?void 0:e.enum)?p.default.createElement(t,{name:"Enum",value:e.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},mW=({schema:e})=>{const t=Wt(),r=De("JSONViewer");return t.hasKeyword(e,"const")?p.default.createElement(r,{name:"Const",value:e.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null};const gW=e=>typeof e=="string"?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e,yW=e=>(t,{lookup:r="extended"}={})=>{const n=e();if((t==null?void 0:t.title)!=null)return n.upperFirst(String(t.title));if(r==="extended"){if((t==null?void 0:t.$anchor)!=null)return n.upperFirst(String(t.$anchor));if((t==null?void 0:t.$id)!=null)return String(t.$id)}return""},vW=e=>{const t=(r,n=new WeakSet)=>{const i=e();if(r==null)return"any";if(i.isBooleanJSONSchema(r))return r?"any":"never";if(typeof r!="object"||n.has(r))return"any";n.add(r);const{type:s,prefixItems:a,items:o}=r,u=()=>{if(Array.isArray(a)){const f=a.map((d=>t(d,n))),h=o?t(o,n):"any";return`array<[${f.join(", ")}], ${h}>`}return o?`array<${t(o,n)}>`:"array<any>"};if(r.not&&t(r.not)==="any")return"never";const c=(f,h)=>Array.isArray(r[f])?`(${r[f].map((d=>t(d,n))).join(h)})`:null,l=[Array.isArray(s)?s.map((f=>f==="array"?u():f)).join(" | "):s==="array"?u():["null","boolean","object","array","number","integer","string"].includes(s)?s:(()=>{if(Object.hasOwn(r,"prefixItems")||Object.hasOwn(r,"items")||Object.hasOwn(r,"contains"))return u();if(Object.hasOwn(r,"properties")||Object.hasOwn(r,"additionalProperties")||Object.hasOwn(r,"patternProperties"))return"object";if(["int32","int64"].includes(r.format))return"integer";if(["float","double"].includes(r.format))return"number";if(Object.hasOwn(r,"minimum")||Object.hasOwn(r,"maximum")||Object.hasOwn(r,"exclusiveMinimum")||Object.hasOwn(r,"exclusiveMaximum")||Object.hasOwn(r,"multipleOf"))return"number | integer";if(Object.hasOwn(r,"pattern")||Object.hasOwn(r,"format")||Object.hasOwn(r,"minLength")||Object.hasOwn(r,"maxLength")||Object.hasOwn(r,"contentEncoding")||Object.hasOwn(r,"contentMediaType"))return"string";if(r.const!==void 0){if(r.const===null)return"null";if(typeof r.const=="boolean")return"boolean";if(typeof r.const=="number")return Number.isInteger(r.const)?"integer":"number";if(typeof r.const=="string")return"string";if(Array.isArray(r.const))return"array<any>";if(typeof r.const=="object")return"object"}return null})(),c("oneOf"," | "),c("anyOf"," | "),c("allOf"," & ")].filter(Boolean).join(" | ");return n.delete(r),l||"any"};return t},bW=e=>typeof e=="boolean",_W=(e,t)=>e!==null&&typeof e=="object"&&Object.hasOwn(e,t),EW=e=>t=>{const r=e();return(t==null?void 0:t.$schema)||(t==null?void 0:t.$vocabulary)||(t==null?void 0:t.$id)||(t==null?void 0:t.$anchor)||(t==null?void 0:t.$dynamicAnchor)||(t==null?void 0:t.$ref)||(t==null?void 0:t.$dynamicRef)||(t==null?void 0:t.$defs)||(t==null?void 0:t.$comment)||(t==null?void 0:t.allOf)||(t==null?void 0:t.anyOf)||(t==null?void 0:t.oneOf)||r.hasKeyword(t,"not")||r.hasKeyword(t,"if")||r.hasKeyword(t,"then")||r.hasKeyword(t,"else")||(t==null?void 0:t.dependentSchemas)||(t==null?void 0:t.prefixItems)||r.hasKeyword(t,"items")||r.hasKeyword(t,"contains")||(t==null?void 0:t.properties)||(t==null?void 0:t.patternProperties)||r.hasKeyword(t,"additionalProperties")||r.hasKeyword(t,"propertyNames")||r.hasKeyword(t,"unevaluatedItems")||r.hasKeyword(t,"unevaluatedProperties")||(t==null?void 0:t.description)||(t==null?void 0:t.enum)||r.hasKeyword(t,"const")||r.hasKeyword(t,"contentSchema")||r.hasKeyword(t,"default")||(t==null?void 0:t.examples)||r.getExtensionKeywords(t).length>0},SW=e=>e===null||["number","bigint","boolean"].includes(typeof e)?String(e):Array.isArray(e)?`[${e.map(SW).join(", ")}]`:JSON.stringify(e),np=(e,t,r)=>{const n=typeof t=="number",i=typeof r=="number";return n&&i?t===r?`${t} ${e}`:`[${t}, ${r}] ${e}`:n?`≥ ${t} ${e}`:i?`≤ ${r} ${e}`:null},gOe=e=>{const t=[],r=(u=>{if(typeof(u==null?void 0:u.multipleOf)!="number"||u.multipleOf<=0||u.multipleOf===1)return null;const{multipleOf:c}=u;if(Number.isInteger(c))return`multiple of ${c}`;const l=10**c.toString().split(".")[1].length;return`multiple of ${c*l}/${l}`})(e);r!==null&&t.push({scope:"number",value:r});const n=(u=>{const c=u==null?void 0:u.minimum,l=u==null?void 0:u.maximum,f=u==null?void 0:u.exclusiveMinimum,h=u==null?void 0:u.exclusiveMaximum,d=typeof c=="number",g=typeof l=="number",y=typeof f=="number",v=typeof h=="number",_=y&&(!d||c<f),b=v&&(!g||l>h);return(d||y)&&(g||v)?`${_?"(":"["}${_?f:c}, ${b?h:l}${b?")":"]"}`:d||y?`${_?">":"≥"} ${_?f:c}`:g||v?`${b?"<":"≤"} ${b?h:l}`:null})(e);n!==null&&t.push({scope:"number",value:n}),e!=null&&e.format&&t.push({scope:"string",value:e.format});const i=np("characters",e==null?void 0:e.minLength,e==null?void 0:e.maxLength);i!==null&&t.push({scope:"string",value:i}),e!=null&&e.pattern&&t.push({scope:"string",value:`matches ${e==null?void 0:e.pattern}`}),e!=null&&e.contentMediaType&&t.push({scope:"string",value:`media type: ${e.contentMediaType}`}),e!=null&&e.contentEncoding&&t.push({scope:"string",value:`encoding: ${e.contentEncoding}`});const s=np(e!=null&&e.uniqueItems?"unique items":"items",e==null?void 0:e.minItems,e==null?void 0:e.maxItems);s!==null&&t.push({scope:"array",value:s}),e!=null&&e.uniqueItems&&!s&&t.push({scope:"array",value:"unique"});const a=np("contained items",e==null?void 0:e.minContains,e==null?void 0:e.maxContains);a!==null&&t.push({scope:"array",value:a});const o=np("properties",e==null?void 0:e.minProperties,e==null?void 0:e.maxProperties);return o!==null&&t.push({scope:"object",value:o}),t},yOe=(e,t)=>t!=null&&t.dependentRequired?Array.from(Object.entries(t.dependentRequired).reduce(((r,[n,i])=>(Array.isArray(i)&&i.includes(e)&&r.add(n),r)),new Set)):[],Im=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),wW=()=>["$schema","$vocabulary","$id","$anchor","$dynamicAnchor","$dynamicRef","$ref","$defs","$comment","allOf","anyOf","oneOf","not","if","then","else","dependentSchemas","prefixItems","items","contains","properties","patternProperties","additionalProperties","propertyNames","unevaluatedItems","unevaluatedProperties","type","enum","const","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","maxContains","minContains","maxProperties","minProperties","required","dependentRequired","title","description","default","deprecated","readOnly","writeOnly","examples","format","contentEncoding","contentMediaType","contentSchema"],xW=e=>t=>{const r=e().getSchemaKeywords();return Im(t)?((n,i)=>{const s=new Set(i);return n.filter((a=>!s.has(a)))})(Object.keys(t),r):[]},vOe=(e,t)=>{const r=H.Map.isMap(e);if(!r&&!Im(e))return!1;const n=s=>t===s||Array.isArray(t)&&t.includes(s),i=r?e.get("type"):e.type;return H.List.isList(i)||Array.isArray(i)?i.some((s=>n(s))):n(i)},bOe=({constraint:e})=>Im(e)&&typeof e.scope=="string"&&typeof e.value=="string"?p.default.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${e.scope}`},e.value):null;var AW=p.default.memo(bOe),OW=({dependentRequired:e})=>Array.isArray(e)&&e.length!==0?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),p.default.createElement("ul",null,e.map((t=>p.default.createElement("li",{key:t},p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},t)))))):null,CW=({schema:e})=>{const t=Wt(),r=De("JSONSchema");if(!t.hasKeyword(e,"contentSchema"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},p.default.createElement(r,{name:n,schema:e.contentSchema,identifier:"contentSchema"}))},RW=({title:e="",schema:t})=>{const r=Wt(),n=e||r.getTitle(t);return n?p.default.createElement("div",{className:"json-schema-2020-12__title"},n):null},IW=({schema:e})=>e!=null&&e.description?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},p.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},e.description)):null,TW=({schema:e})=>{const t=Wt(),r=De("JSONViewer");return t.hasKeyword(e,"default")?p.default.createElement(r,{name:"Default",value:e.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},jW=({schema:e})=>(e==null?void 0:e.deprecated)!==!0?null:p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),PW=({schema:e})=>(e==null?void 0:e.readOnly)!==!0?null:p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),kW=({schema:e})=>(e==null?void 0:e.writeOnly)!==!0?null:p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),NW=({schema:e})=>{const t=(e==null?void 0:e.examples)||[],r=De("JSONViewer");return Array.isArray(t)&&t.length!==0?p.default.createElement(r,{name:"Examples",value:e.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},MW=({schema:e})=>{const t=Wt(),r="ExtensionKeywords",{path:n}=ln(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Pi(r),[o,u]=ii(),c=De("Accordion"),l=De("ExpandDeepButton"),f=De("JSONViewer"),{showExtensionKeywords:h}=eI(),d=t.getExtensionKeywords(e),g=(0,p.useCallback)((()=>{i?a():s()}),[i,s,a]),y=(0,p.useCallback)(((v,_)=>{_?s({deep:!0}):a({deep:!0})}),[s,a]);return h&&d.length!==0?p.default.createElement(An.Provider,{value:n},p.default.createElement(pi.Provider,{value:u},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":o},p.default.createElement(c,{expanded:i,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),p.default.createElement(l,{expanded:i,onClick:y}),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&p.default.createElement(p.default.Fragment,null,d.map((v=>p.default.createElement(f,{key:v,name:v,value:e[v],className:"json-schema-2020-12-json-viewer-extension-keyword"})))))))):null};const pO=({name:e,value:t,className:r})=>{const n=Wt(),{path:i}=ln(e),{isExpanded:s,setExpanded:a,setCollapsed:o}=Pi(e),[u,c]=ii(),l=De("Accordion"),f=De("ExpandDeepButton"),h=typeof t=="string"||typeof t=="number"||typeof t=="bigint"||typeof t=="boolean"||typeof t=="symbol"||t==null,d=(v=>Im(v)&&Object.keys(v).length===0)(t)||(v=>Array.isArray(v)&&v.length===0)(t),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return h?p.default.createElement("div",{className:(0,Rt.default)("json-schema-2020-12-json-viewer",r)},p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e),p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(t))):d?p.default.createElement("div",{className:(0,Rt.default)("json-schema-2020-12-json-viewer",r)},p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(t)?"empty array":"empty object")):p.default.createElement(An.Provider,{value:i},p.default.createElement(pi.Provider,{value:c},p.default.createElement("div",{className:(0,Rt.default)("json-schema-2020-12-json-viewer",r),"data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e)),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(t)?"array":"object"),p.default.createElement("ul",{className:(0,Rt.default)("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,Array.isArray(t)?t.map(((v,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(pO,{name:`#${_}`,value:v,className:r})))):Object.entries(t).map((([v,_])=>p.default.createElement("li",{key:v,className:"json-schema-2020-12-property"},p.default.createElement(pO,{name:v,value:_,className:r})))))))))};var DW=pO,qW=({expanded:e=!1,children:t,onChange:r})=>{const n=De("ChevronRightIcon"),i=(0,p.useCallback)((s=>{r(s,!e)}),[e,r]);return p.default.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:i},p.default.createElement("div",{className:"json-schema-2020-12-accordion__children"},t),p.default.createElement("span",{className:(0,Rt.default)("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":e,"json-schema-2020-12-accordion__icon--collapsed":!e})},p.default.createElement(n,null)))},$W=({expanded:e,onClick:t})=>{const r=(0,p.useCallback)((n=>{t(n,!e)}),[e,t]);return p.default.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},e?"Collapse all":"Expand all")},FW=()=>p.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},p.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));const BW=(e,t={})=>{const r={components:{JSONSchema:Bz,Keyword$schema:Lz,Keyword$vocabulary:Uz,Keyword$id:Vz,Keyword$anchor:zz,Keyword$dynamicAnchor:Wz,Keyword$ref:Jz,Keyword$dynamicRef:Kz,Keyword$defs:Hz,Keyword$comment:Gz,KeywordAllOf:Yz,KeywordAnyOf:Xz,KeywordOneOf:Zz,KeywordNot:Qz,KeywordIf:eW,KeywordThen:tW,KeywordElse:rW,KeywordDependentSchemas:nW,KeywordPrefixItems:iW,KeywordItems:sW,KeywordContains:aW,KeywordProperties:oW,KeywordPatternProperties:uW,KeywordAdditionalProperties:cW,KeywordPropertyNames:lW,KeywordUnevaluatedItems:fW,KeywordUnevaluatedProperties:pW,KeywordType:dW,KeywordEnum:hW,KeywordConst:mW,KeywordConstraint:AW,KeywordDependentRequired:OW,KeywordContentSchema:CW,KeywordTitle:RW,KeywordDescription:IW,KeywordDefault:TW,KeywordDeprecated:jW,KeywordReadOnly:PW,KeywordWriteOnly:kW,KeywordExamples:NW,ExtensionKeywords:MW,JSONViewer:DW,Accordion:qW,ExpandDeepButton:$W,ChevronRightIcon:FW,...t.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...t.config},fn:{upperFirst:gW,getTitle:yW(Wt),getType:vW(Wt),isBooleanJSONSchema:bW,hasKeyword:_W,isExpandable:EW(Wt),stringify:SW,stringifyConstraints:gOe,getDependentRequired:yOe,getSchemaKeywords:wW,getExtensionKeywords:xW(Wt),...t.fn},state:{paths:{}}},n=i=>p.default.createElement(Da.Provider,{value:r},p.default.createElement(e,i));return n.contexts={JSONSchemaContext:Da},n.displayName=e.displayName,n},_Oe=({getSystem:e})=>(t,r={})=>{const{getComponent:n,getConfigs:i}=e(),s=i(),a=n("JSONSchema202012"),o=n("JSONSchema202012Keyword$schema"),u=n("JSONSchema202012Keyword$vocabulary"),c=n("JSONSchema202012Keyword$id"),l=n("JSONSchema202012Keyword$anchor"),f=n("JSONSchema202012Keyword$dynamicAnchor"),h=n("JSONSchema202012Keyword$ref"),d=n("JSONSchema202012Keyword$dynamicRef"),g=n("JSONSchema202012Keyword$defs"),y=n("JSONSchema202012Keyword$comment"),v=n("JSONSchema202012KeywordAllOf"),_=n("JSONSchema202012KeywordAnyOf"),b=n("JSONSchema202012KeywordOneOf"),E=n("JSONSchema202012KeywordNot"),w=n("JSONSchema202012KeywordIf"),S=n("JSONSchema202012KeywordThen"),A=n("JSONSchema202012KeywordElse"),R=n("JSONSchema202012KeywordDependentSchemas"),T=n("JSONSchema202012KeywordPrefixItems"),O=n("JSONSchema202012KeywordItems"),D=n("JSONSchema202012KeywordContains"),N=n("JSONSchema202012KeywordProperties"),$=n("JSONSchema202012KeywordPatternProperties"),M=n("JSONSchema202012KeywordAdditionalProperties"),X=n("JSONSchema202012KeywordPropertyNames"),ee=n("JSONSchema202012KeywordUnevaluatedItems"),J=n("JSONSchema202012KeywordUnevaluatedProperties"),Q=n("JSONSchema202012KeywordType"),te=n("JSONSchema202012KeywordEnum"),re=n("JSONSchema202012KeywordConst"),L=n("JSONSchema202012KeywordConstraint"),K=n("JSONSchema202012KeywordDependentRequired"),ne=n("JSONSchema202012KeywordContentSchema"),ce=n("JSONSchema202012KeywordTitle"),ue=n("JSONSchema202012KeywordDescription"),se=n("JSONSchema202012KeywordDefault"),V=n("JSONSchema202012KeywordDeprecated"),z=n("JSONSchema202012KeywordReadOnly"),de=n("JSONSchema202012KeywordWriteOnly"),ge=n("JSONSchema202012KeywordExamples"),Ce=n("JSONSchema202012ExtensionKeywords"),Pe=n("JSONSchema202012JSONViewer"),pe=n("JSONSchema202012Accordion"),Te=n("JSONSchema202012ExpandDeepButton"),Le=n("JSONSchema202012ChevronRightIcon");return BW(t,{components:{JSONSchema:a,Keyword$schema:o,Keyword$vocabulary:u,Keyword$id:c,Keyword$anchor:l,Keyword$dynamicAnchor:f,Keyword$ref:h,Keyword$dynamicRef:d,Keyword$defs:g,Keyword$comment:y,KeywordAllOf:v,KeywordAnyOf:_,KeywordOneOf:b,KeywordNot:E,KeywordIf:w,KeywordThen:S,KeywordElse:A,KeywordDependentSchemas:R,KeywordPrefixItems:T,KeywordItems:O,KeywordContains:D,KeywordProperties:N,KeywordPatternProperties:$,KeywordAdditionalProperties:M,KeywordPropertyNames:X,KeywordUnevaluatedItems:ee,KeywordUnevaluatedProperties:J,KeywordType:Q,KeywordEnum:te,KeywordConst:re,KeywordConstraint:L,KeywordDependentRequired:K,KeywordContentSchema:ne,KeywordTitle:ce,KeywordDescription:ue,KeywordDefault:se,KeywordDeprecated:V,KeywordReadOnly:z,KeywordWriteOnly:de,KeywordExamples:ge,ExtensionKeywords:Ce,JSONViewer:Pe,Accordion:pe,ExpandDeepButton:Te,ChevronRightIcon:Le,...r.components},config:{showExtensionKeywords:s.showExtensions,...r.config},fn:{...r.fn}})};var LW=({getSystem:e,fn:t})=>{const r=()=>({upperFirst:t.upperFirst,...t.jsonSchema202012});return{components:{JSONSchema202012:Bz,JSONSchema202012Keyword$schema:Lz,JSONSchema202012Keyword$vocabulary:Uz,JSONSchema202012Keyword$id:Vz,JSONSchema202012Keyword$anchor:zz,JSONSchema202012Keyword$dynamicAnchor:Wz,JSONSchema202012Keyword$ref:Jz,JSONSchema202012Keyword$dynamicRef:Kz,JSONSchema202012Keyword$defs:Hz,JSONSchema202012Keyword$comment:Gz,JSONSchema202012KeywordAllOf:Yz,JSONSchema202012KeywordAnyOf:Xz,JSONSchema202012KeywordOneOf:Zz,JSONSchema202012KeywordNot:Qz,JSONSchema202012KeywordIf:eW,JSONSchema202012KeywordThen:tW,JSONSchema202012KeywordElse:rW,JSONSchema202012KeywordDependentSchemas:nW,JSONSchema202012KeywordPrefixItems:iW,JSONSchema202012KeywordItems:sW,JSONSchema202012KeywordContains:aW,JSONSchema202012KeywordProperties:oW,JSONSchema202012KeywordPatternProperties:uW,JSONSchema202012KeywordAdditionalProperties:cW,JSONSchema202012KeywordPropertyNames:lW,JSONSchema202012KeywordUnevaluatedItems:fW,JSONSchema202012KeywordUnevaluatedProperties:pW,JSONSchema202012KeywordType:dW,JSONSchema202012KeywordEnum:hW,JSONSchema202012KeywordConst:mW,JSONSchema202012KeywordConstraint:AW,JSONSchema202012KeywordDependentRequired:OW,JSONSchema202012KeywordContentSchema:CW,JSONSchema202012KeywordTitle:RW,JSONSchema202012KeywordDescription:IW,JSONSchema202012KeywordDefault:TW,JSONSchema202012KeywordDeprecated:jW,JSONSchema202012KeywordReadOnly:PW,JSONSchema202012KeywordWriteOnly:kW,JSONSchema202012KeywordExamples:NW,JSONSchema202012ExtensionKeywords:MW,JSONSchema202012JSONViewer:DW,JSONSchema202012Accordion:qW,JSONSchema202012ExpandDeepButton:$W,JSONSchema202012ChevronRightIcon:FW,withJSONSchema202012Context:BW,withJSONSchema202012SystemContext:_Oe(e()),JSONSchema202012PathContext:()=>An,JSONSchema202012LevelContext:()=>pi},fn:{upperFirst:gW,jsonSchema202012:{getTitle:yW(r),getType:vW(r),isExpandable:EW(r),isBooleanJSONSchema:bW,hasKeyword:_W,useFn:Wt,useConfig:eI,useComponent:De,useIsExpanded:Pi,usePath:ln,useLevel:ii,getSchemaKeywords:wW,getExtensionKeywords:xW(r),hasSchemaType:vOe}}}},EOe=(e,{sample:t=[]}={})=>((r,n={})=>{const{minItems:i,maxItems:s,uniqueItems:a}=n,{contains:o,minContains:u,maxContains:c}=n;let l=[...r];if(o!=null&&typeof o=="object"&&Number.isInteger(u)&&u>1){const f=l.at(0);for(let h=1;h<u;h+=1)l.unshift(f)}if(Number.isInteger(s)&&s>0&&(l=r.slice(0,s)),Number.isInteger(i)&&i>0)for(let f=0;l.length<i;f+=1)l.push(l[f%l.length]);return a===!0&&(l=Array.from(new Set(l))),l})(t,e),SOe=()=>{throw new Error("Not implemented")};const Tm=e=>xo()(e),_p=e=>e.at(0),Sa=e=>typeof e=="boolean",vi=e=>(0,vs.default)(e),ls=e=>Sa(e)||vi(e);var jm=class{constructor(){Y(this,"data",{})}register(t,r){this.data[t]=r}unregister(t){t===void 0?this.data={}:delete this.data[t]}get(t){return this.data[t]}},UW=()=>0,VW=()=>0,wOe=()=>.1,xOe=()=>.1,AOe=()=>"user@example.com",OOe=()=>"실례@example.com",COe=()=>"example.com",ROe=()=>"실례.com",IOe=()=>"198.51.100.42",TOe=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",jOe=()=>"https://example.com/",POe=()=>"path/index.html",kOe=()=>"https://실례.com/",NOe=()=>"path/실례.html",MOe=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",DOe=()=>"https://example.com/dictionary/{term:1}/{term}",qOe=()=>"/a/b/c",$Oe=()=>"1/0",FOe=()=>new Date().toISOString(),BOe=()=>new Date().toISOString().substring(0,10),LOe=()=>new Date().toISOString().substring(11),UOe=()=>"P3D",VOe=()=>"********",zOe=()=>"^[a-z]+$",Pc,ML;const Ep=new(ML=class extends jm{constructor(){super(...arguments);as(this,Pc,{int32:UW,int64:VW,float:wOe,double:xOe,email:AOe,"idn-email":OOe,hostname:COe,"idn-hostname":ROe,ipv4:IOe,ipv6:TOe,uri:jOe,"uri-reference":POe,iri:kOe,"iri-reference":NOe,uuid:MOe,"uri-template":DOe,"json-pointer":qOe,"relative-json-pointer":$Oe,"date-time":FOe,date:BOe,time:LOe,duration:UOe,password:VOe,regex:zOe});Y(this,"data",{...or(this,Pc)})}get defaults(){return{...or(this,Pc)}}},Pc=new WeakMap,ML),zW=(e,t)=>typeof t=="function"?Ep.register(e,t):t===null?Ep.unregister(e):Ep.get(e);zW.getDefaults=()=>Ep.defaults;var Pm=zW,WOe=_e(287).Buffer,JOe=e=>WOe.from(e).toString("ascii"),KOe=_e(287).Buffer,HOe=e=>KOe.from(e).toString("utf8"),GOe=_e(287).Buffer,YOe=e=>GOe.from(e).toString("binary"),XOe=e=>{let t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(n===61)t+="=3D";else if(n>=33&&n<=60||n>=62&&n<=126||n===9||n===32)t+=e.charAt(r);else if(n===13||n===10)t+=`\r
340
+ `;else if(n>126){const i=unescape(encodeURIComponent(e.charAt(r)));for(let s=0;s<i.length;s++)t+="="+("0"+i.charCodeAt(s).toString(16)).slice(-2).toUpperCase()}else t+="="+("0"+n.toString(16)).slice(-2).toUpperCase()}return t},ZOe=_e(287).Buffer,QOe=e=>ZOe.from(e).toString("hex"),e2e=_e(287).Buffer,t2e=e=>{const t=e2e.from(e).toString("utf8"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let n=0,i="",s=0,a=0;for(let o=0;o<t.length;o++)for(s=s<<8|t.charCodeAt(o),a+=8;a>=5;)i+=r.charAt(s>>>a-5&31),a-=5;a>0&&(i+=r.charAt(s<<5-a&31),n=(8-8*t.length%5)%5);for(let o=0;o<n;o++)i+="=";return i},r2e=_e(287).Buffer,n2e=e=>r2e.from(e).toString("base64"),i2e=_e(287).Buffer,s2e=e=>i2e.from(e).toString("base64url"),kc,DL;const Sp=new(DL=class extends jm{constructor(){super(...arguments);as(this,kc,{"7bit":JOe,"8bit":HOe,binary:YOe,"quoted-printable":XOe,base16:QOe,base32:t2e,base64:n2e,base64url:s2e});Y(this,"data",{...or(this,kc)})}get defaults(){return{...or(this,kc)}}},kc=new WeakMap,DL),WW=(e,t)=>typeof t=="function"?Sp.register(e,t):t===null?Sp.unregister(e):Sp.get(e);WW.getDefaults=()=>Sp.defaults;var JW=WW,a2e={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"<p>content</p>","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'<person age="30">John Doe</person>',"text/*":()=>"string"},o2e={"image/*":()=>Tm(25).toString("binary")},u2e={"audio/*":()=>Tm(25).toString("binary")},c2e={"video/*":()=>Tm(25).toString("binary")},l2e={"application/json":()=>'{"key":"value"}',"application/ld+json":()=>'{"name": "John Doe"}',"application/x-httpd-php":()=>"<?php echo '<p>Hello World!</p>'; ?>","application/rtf":()=>String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>'echo "Hello World!"',"application/xhtml+xml":()=>"<p>content</p>","application/*":()=>Tm(25).toString("binary")},Nc,qL;const yo=new(qL=class extends jm{constructor(){super(...arguments);as(this,Nc,{...a2e,...o2e,...u2e,...c2e,...l2e});Y(this,"data",{...or(this,Nc)})}get defaults(){return{...or(this,Nc)}}},Nc=new WeakMap,qL),KW=(e,t)=>{if(typeof t=="function")return yo.register(e,t);if(t===null)return yo.unregister(e);const r=e.split(";").at(0),n=`${r.split("/").at(0)}/*`;return yo.get(e)||yo.get(r)||yo.get(n)};KW.getDefaults=()=>yo.defaults;var HW=KW;const Zw=(e,t={})=>{const{maxLength:r,minLength:n}=t;let i=e;if(Number.isInteger(r)&&r>0&&(i=i.slice(0,r)),Number.isInteger(n)&&n>0){let s=0;for(;i.length<n;)i+=i[s++%i.length]}return i};var f2e=(e,{sample:t}={})=>{const{contentEncoding:r,contentMediaType:n,contentSchema:i}=e,{pattern:s,format:a}=e,o=JW(r)||nz.default;let u;return u=typeof s=="string"?Zw((c=>{try{const l=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),f=c.replace(l,"100"),h=new wV.default(f);return h.max=100,h.gen()}catch{return"string"}})(s),e):typeof a=="string"?(c=>{const{format:l}=c,f=Pm(l);return typeof f=="function"?f(c):"string"})(e):ls(i)&&typeof n=="string"&&t!==void 0?Array.isArray(t)||typeof t=="object"?JSON.stringify(t):Zw(String(t),e):typeof n=="string"?(c=>{const{contentMediaType:l}=c,f=HW(l);return typeof f=="function"?f(c):"string"})(e):Zw("string",e),o(u)};const GW=(e,t={})=>{const{minimum:r,maximum:n,exclusiveMinimum:i,exclusiveMaximum:s}=t,{multipleOf:a}=t,o=Number.isInteger(e)?1:Number.EPSILON;let u=typeof r=="number"?r:null,c=typeof n=="number"?n:null,l=e;if(typeof i=="number"&&(u=u!==null?Math.max(u,i+o):i+o),typeof s=="number"&&(c=c!==null?Math.min(c,s-o):s-o),l=u>c&&e||u||c||l,typeof a=="number"&&a>0){const f=l%a;l=f===0?l:l+a-f}return l};var p2e=e=>{const{format:t}=e;let r;return r=typeof t=="string"?(n=>{const{format:i}=n,s=Pm(i);return typeof s=="function"?s(n):0})(e):0,GW(r,e)},d2e=e=>{const{format:t}=e;let r;return r=typeof t=="string"?(n=>{const{format:i}=n,s=Pm(i);if(typeof s=="function")return s(n);switch(i){case"int32":return UW();case"int64":return VW()}return 0})(e):0,GW(r,e)},h2e=e=>typeof e.default!="boolean"||e.default,ip=new Proxy({array:EOe,object:SOe,string:f2e,number:p2e,integer:d2e,boolean:h2e,null:()=>null},{get:(e,t)=>typeof t=="string"&&Object.hasOwn(e,t)?e[t]:()=>`Unknown Type: ${t}`});const RL=["array","object","number","integer","string","boolean","null"],ec=e=>{if(!vi(e))return!1;const{examples:t,example:r,default:n}=e;return!!(Array.isArray(t)&&t.length>=1)||n!==void 0||r!==void 0},dO=e=>{if(!vi(e))return null;const{examples:t,example:r,default:n}=e;return Array.isArray(t)&&t.length>=1?t.at(0):n!==void 0?n:r!==void 0?r:void 0},sd={array:["items","prefixItems","contains","maxContains","minContains","maxItems","minItems","uniqueItems","unevaluatedItems"],object:["properties","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","required","dependentSchemas","dependentRequired","unevaluatedProperties"],string:["pattern","format","minLength","maxLength","contentEncoding","contentMediaType","contentSchema"],integer:["minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"]};sd.number=sd.integer;const Qw="string",IL=e=>e===void 0?null:e===null?"null":Array.isArray(e)?"array":Number.isInteger(e)?"integer":typeof e,wp=e=>{if(Array.isArray(e)&&e.length>=1){if(e.includes("array"))return"array";if(e.includes("object"))return"object";{const t=e.filter((n=>n!=="null")),r=_p(t.length>0?t:e);if(RL.includes(r))return r}}return RL.includes(e)?e:null},hO=(e,t=new WeakSet)=>{if(!vi(e)||t.has(e))return Qw;t.add(e);let{type:r,const:n}=e;if(r=wp(r),typeof r!="string"){const i=Object.keys(sd);e:for(let s=0;s<i.length;s+=1){const a=i[s],o=sd[a];for(let u=0;u<o.length;u+=1){const c=o[u];if(Object.hasOwn(e,c)){r=a;break e}}}}if(typeof r!="string"&&n!==void 0){const i=IL(n);r=typeof i=="string"?i:r}if(typeof r!="string"){const i=c=>{if(Array.isArray(e[c])){const l=e[c].map((f=>hO(f,t)));return wp(l)}return null},s=i("allOf"),a=i("anyOf"),o=i("oneOf"),u=e.not?hO(e.not,t):null;(s||a||o||u)&&(r=wp([s,a,o,u].filter(Boolean)))}if(typeof r!="string"&&ec(e)){const i=dO(e),s=IL(i);r=typeof s=="string"?s:r}return t.delete(e),r||Qw},TL=e=>hO(e),ex=e=>Sa(e)?(t=>t===!1?{not:{}}:{})(e):vi(e)?e:{},tc=(e,t,r={})=>{if(Sa(e)&&e===!0)return!0;if(Sa(e)&&e===!1)return!1;if(Sa(t)&&t===!0)return!0;if(Sa(t)&&t===!1)return!1;if(!ls(e))return t;if(!ls(t))return e;const n={...t,...e};if(t.type&&e.type&&Array.isArray(t.type)&&typeof t.type=="string"){const i=Qa(t.type).concat(e.type);n.type=Array.from(new Set(i))}if(Array.isArray(t.required)&&Array.isArray(e.required)&&(n.required=[...new Set([...e.required,...t.required])]),t.properties&&e.properties){const i=new Set([...Object.keys(t.properties),...Object.keys(e.properties)]);n.properties={};for(const s of i){const a=t.properties[s]||{},o=e.properties[s]||{};a.readOnly&&!r.includeReadOnly||a.writeOnly&&!r.includeWriteOnly?n.required=(n.required||[]).filter((u=>u!==s)):n.properties[s]=tc(o,a,r)}}return ls(t.items)&&ls(e.items)&&(n.items=tc(e.items,t.items,r)),ls(t.contains)&&ls(e.contains)&&(n.contains=tc(e.contains,t.contains,r)),ls(t.contentSchema)&&ls(e.contentSchema)&&(n.contentSchema=tc(e.contentSchema,t.contentSchema,r)),n};var vo=tc;const jr=(e,t={},r=void 0,n=!1)=>{var N,$,M,X,ee,J,Q,te,re;if(e==null&&r===void 0)return;typeof(e==null?void 0:e.toJS)=="function"&&(e=e.toJS()),e=ex(e);let i=r!==void 0||ec(e);const s=!i&&Array.isArray(e.oneOf)&&e.oneOf.length>0,a=!i&&Array.isArray(e.anyOf)&&e.anyOf.length>0;if(!i&&(s||a)){const L=ex(_p(s?e.oneOf:e.anyOf));!(e=vo(e,L,t)).xml&&L.xml&&(e.xml=L.xml),ec(e)&&ec(L)&&(i=!0)}const o={};let{xml:u,properties:c,additionalProperties:l,items:f,contains:h}=e||{},d=TL(e),{includeReadOnly:g,includeWriteOnly:y}=t;u=u||{};let v,{name:_,prefix:b,namespace:E}=u,w={};Object.hasOwn(e,"type")||(e.type=d),n&&(_=_||"notagname",v=(b?`${b}:`:"")+_,E)&&(o[b?`xmlns:${b}`:"xmlns"]=E),n&&(w[v]=[]);const S=Ea(c);let A,R=0;const T=()=>Number.isInteger(e.maxProperties)&&e.maxProperties>0&&R>=e.maxProperties,O=L=>!(Number.isInteger(e.maxProperties)&&e.maxProperties>0)||!T()&&(!(K=>!Array.isArray(e.required)||e.required.length===0||!e.required.includes(K))(L)||e.maxProperties-R-(()=>{if(!Array.isArray(e.required)||e.required.length===0)return 0;let K=0;return n?e.required.forEach((ne=>K+=w[ne]===void 0?0:1)):e.required.forEach((ne=>{var ce;K+=((ce=w[v])==null?void 0:ce.find((ue=>ue[ne]!==void 0)))===void 0?0:1})),e.required.length-K})()>0);if(A=n?(L,K=void 0)=>{if(e&&S[L]){if(S[L].xml=S[L].xml||{},S[L].xml.attribute){const ce=Array.isArray(S[L].enum)?_p(S[L].enum):void 0;if(ec(S[L]))o[S[L].xml.name||L]=dO(S[L]);else if(ce!==void 0)o[S[L].xml.name||L]=ce;else{const ue=ex(S[L]),se=TL(ue),V=S[L].xml.name||L;if(se==="array"){const z=jr(S[L],t,K,!1);o[V]=z.map((de=>(0,vs.default)(de)?"UnknownTypeObject":Array.isArray(de)?"UnknownTypeArray":de)).join(" ")}else o[V]=se==="object"?"UnknownTypeObject":ip[se](ue)}return}S[L].xml.name=S[L].xml.name||L}else S[L]||l===!1||(S[L]={xml:{name:L}});let ne=jr(S[L],t,K,n);O(L)&&(R++,Array.isArray(ne)?w[v]=w[v].concat(ne):w[v].push(ne))}:(L,K)=>{var ne;if(O(L)){if((0,vs.default)((ne=e.discriminator)==null?void 0:ne.mapping)&&e.discriminator.propertyName===L&&typeof e.$$ref=="string"){for(const ce in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[ce])!==-1){w[L]=ce;break}}else w[L]=jr(S[L],t,K,n);R++}},i){let L;if(L=r!==void 0?r:dO(e),!n){if(typeof L=="number"&&d==="string")return`${L}`;if(typeof L!="string"||d==="string")return L;try{return JSON.parse(L)}catch{return L}}if(d==="array"){if(!Array.isArray(L)){if(typeof L=="string")return L;L=[L]}let K=[];return vi(f)&&(f.xml=f.xml||u||{},f.xml.name=f.xml.name||u.name,K=L.map((ne=>jr(f,t,ne,n)))),vi(h)&&(h.xml=h.xml||u||{},h.xml.name=h.xml.name||u.name,K=[jr(h,t,void 0,n),...K]),K=ip.array(e,{sample:K}),u.wrapped?(w[v]=K,(0,Ui.default)(o)||w[v].push({_attr:o})):w=K,w}if(d==="object"){if(typeof L=="string")return L;for(const K in L)Object.hasOwn(L,K)&&((N=S[K])!=null&&N.readOnly&&!g||($=S[K])!=null&&$.writeOnly&&!y||((X=(M=S[K])==null?void 0:M.xml)!=null&&X.attribute?o[S[K].xml.name||K]=L[K]:A(K,L[K])));return(0,Ui.default)(o)||w[v].push({_attr:o}),w}return w[v]=(0,Ui.default)(o)?L:[{_attr:o},L],w}if(d==="array"){let L=[];if(vi(h))if(n&&(h.xml=h.xml||e.xml||{},h.xml.name=h.xml.name||u.name),Array.isArray(h.anyOf)){const{anyOf:K,...ne}=f;L.push(...h.anyOf.map((ce=>jr(vo(ce,ne,t),t,void 0,n))))}else if(Array.isArray(h.oneOf)){const{oneOf:K,...ne}=f;L.push(...h.oneOf.map((ce=>jr(vo(ce,ne,t),t,void 0,n))))}else{if(!(!n||n&&u.wrapped))return jr(h,t,void 0,n);L.push(jr(h,t,void 0,n))}if(vi(f))if(n&&(f.xml=f.xml||e.xml||{},f.xml.name=f.xml.name||u.name),Array.isArray(f.anyOf)){const{anyOf:K,...ne}=f;L.push(...f.anyOf.map((ce=>jr(vo(ce,ne,t),t,void 0,n))))}else if(Array.isArray(f.oneOf)){const{oneOf:K,...ne}=f;L.push(...f.oneOf.map((ce=>jr(vo(ce,ne,t),t,void 0,n))))}else{if(!(!n||n&&u.wrapped))return jr(f,t,void 0,n);L.push(jr(f,t,void 0,n))}return L=ip.array(e,{sample:L}),n&&u.wrapped?(w[v]=L,(0,Ui.default)(o)||w[v].push({_attr:o}),w):L}if(d==="object"){for(let L in S)Object.hasOwn(S,L)&&((ee=S[L])!=null&&ee.deprecated||(J=S[L])!=null&&J.readOnly&&!g||(Q=S[L])!=null&&Q.writeOnly&&!y||A(L));if(n&&o&&w[v].push({_attr:o}),T())return w;if(Sa(l)&&l)n?w[v].push({additionalProp:"Anything can be here"}):w.additionalProp1={},R++;else if(vi(l)){const L=l,K=jr(L,t,void 0,n);if(n&&typeof((te=L==null?void 0:L.xml)==null?void 0:te.name)=="string"&&((re=L==null?void 0:L.xml)==null?void 0:re.name)!=="notagname")w[v].push(K);else{const ne=(L==null?void 0:L["x-additionalPropertiesName"])||"additionalProp",ce=Number.isInteger(e.minProperties)&&e.minProperties>0&&R<e.minProperties?e.minProperties-R:3;for(let ue=1;ue<=ce;ue++){if(T())return w;if(n){const se={};se[ne+ue]=K.notagname,w[v].push(se)}else w[ne+ue]=K;R++}}}return w}let D;if(e.const!==void 0)D=e.const;else if(e&&Array.isArray(e.enum))D=_p(Qa(e.enum));else{const L=vi(e.contentSchema)?jr(e.contentSchema,t,void 0,n):void 0;D=ip[d](e,{sample:L})}return n?(w[v]=(0,Ui.default)(o)?D:[{_attr:o},D],w):D},YW=(e,t,r)=>{const n=jr(e,t,r,!0);if(n)return typeof n=="string"?n:SV()(n,{declaration:!0,indent:" "})},XW=(e,t,r)=>jr(e,t,r,!1),ZW=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],m2e=lf(YW,ZW),g2e=lf(XW,ZW);var Mc,$L;const jL=new($L=class extends jm{constructor(){super(...arguments);as(this,Mc,{});Y(this,"data",{...or(this,Mc)})}get defaults(){return{...or(this,Mc)}}},Mc=new WeakMap,$L);var y2e=(e,t)=>(t!==void 0&&jL.register(e,t),jL.get(e));const v2e=[{when:/json/,shouldStringifyTypes:["string"]}],b2e=["object"];var _2e=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.jsonSchema202012.memoizedSampleFromSchema(t,r,i),o=typeof a,u=v2e.reduce(((c,l)=>l.when.test(n)?[...c,...l.shouldStringifyTypes]:c),b2e);return(0,W7.default)(u,(c=>c===o))?JSON.stringify(a,null,2):a},E2e=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.jsonSchema202012.getJsonSampleSchema(t,r,n,i);let o;try{o=ds.default.dump(ds.default.load(a),{lineWidth:-1},{schema:ds.JSON_SCHEMA}),o[o.length-1]===`
341
+ `&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},S2e=e=>(t,r,n)=>{const{fn:i}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
342
+ <!-- XML example cannot be generated; root element name is undefined -->`;if(t.$$ref){let s=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=s[1]}}return i.jsonSchema202012.memoizedCreateXMLExample(t,r,n)},w2e=e=>(t,r="",n={},i=void 0)=>{const{fn:s}=e();return typeof(t==null?void 0:t.toJS)=="function"&&(t=t.toJS()),typeof(i==null?void 0:i.toJS)=="function"&&(i=i.toJS()),/xml/.test(r)?s.jsonSchema202012.getXmlSampleSchema(t,n,i):/(yaml|yml)/.test(r)?s.jsonSchema202012.getYamlSampleSchema(t,n,r,i):s.jsonSchema202012.getJsonSampleSchema(t,n,r,i)},QW=({getSystem:e})=>{const t=_2e(e),r=E2e(e),n=S2e(e),i=w2e(e);return{fn:{jsonSchema202012:{sampleFromSchema:XW,sampleFromSchemaGeneric:jr,sampleOptionAPI:y2e,sampleEncoderAPI:JW,sampleFormatAPI:Pm,sampleMediaTypeAPI:HW,createXMLExample:YW,memoizedSampleFromSchema:g2e,memoizedCreateXMLExample:m2e,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:vo,foldType:wp}}}};function eJ(){return[kz,lO,LW,QW,pOe]}var x2e=e=>()=>({fn:e.fn,components:e.components}),A2e=e=>{const t=Rc()({layout:{layout:e.layout,filter:e.filter},spec:{spec:"",url:e.url},requestSnippets:e.requestSnippets},e.initialState);if(e.initialState)for(const[r,n]of Object.entries(e.initialState))n===void 0&&delete t[r];return{system:{configs:e.configs},plugins:e.presets,state:t}},O2e=()=>e=>{const t=e.queryConfigEnabled?(()=>{const r=new URLSearchParams(Zt.location.search);return Object.fromEntries(r)})():{};return Object.entries(t).reduce(((r,[n,i])=>(n==="config"?r.configUrl=i:n==="urls.primaryName"?r[n]=i:r=(0,GV.default)(r,n,i),r)),{})},C2e=({url:e,system:t})=>async r=>{var i;if(!e)return{};if(typeof((i=t.configsActions)==null?void 0:i.getConfigByUrl)!="function")return{};const n=(()=>{const s={};return s.promise=new Promise(((a,o)=>{s.resolve=a,s.reject=o})),s})();return t.configsActions.getConfigByUrl({url:e,loadRemoteConfig:!0,requestInterceptor:r.requestInterceptor,responseInterceptor:r.responseInterceptor},(s=>{n.resolve(s)})),n.promise},R2e=()=>()=>{const e={};return globalThis.location&&(e.oauth2RedirectUrl=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0,globalThis.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`),e},ur=Object.freeze({dom_id:null,domNode:null,spec:{},url:"",urls:null,configUrl:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:-1,filter:!1,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:void 0,persistAuthorization:!1,configs:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:e=>(e.curlOptions=[],e),responseInterceptor:e=>e,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:!1,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[eJ],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null,fileUploadMediaTypes:["application/octet-stream","image/","audio/","video/"],uncaughtExceptionHandler:null}),I2e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return lbe}}),T2e=(function(e){var t={};return _e.d(t,e),t})({default:function(){return pbe}}),sp=(e,t=[])=>Array.isArray(e)?e:t,Xn=(e,t=!1)=>e===!0||e==="true"||e===1||e==="1"||e!==!1&&e!=="false"&&e!==0&&e!=="0"&&t,j2e=e=>e===null||e==="null"?null:e,P2e=e=>{const t=String(e);return Xn(e,t)},PL=(e,t)=>typeof e=="function"?e:t,k2e=e=>Array.isArray(e)?e:null,ap=e=>typeof e=="function"?e:null,tx=e=>e===null||e==="null"?null:String(e),rx=(e,t=-1)=>{const r=parseInt(e,10);return Number.isNaN(r)?t:r},ho=(e,t={})=>(0,vs.default)(e)?e:t,kL=e=>typeof e=="function"||typeof e=="string"?e:null,mo=e=>String(e),N2e=(e,t)=>(0,vs.default)(e)?e:e===!1||e==="false"||e===0||e==="0"?{activated:!1}:t,M2e=e=>e===void 0||e==="undefined"?void 0:String(e),tJ={components:{typeCaster:ho},configs:{typeCaster:ho},configUrl:{typeCaster:tx},deepLinking:{typeCaster:Xn,defaultValue:ur.deepLinking},defaultModelExpandDepth:{typeCaster:rx,defaultValue:ur.defaultModelExpandDepth},defaultModelRendering:{typeCaster:mo},defaultModelsExpandDepth:{typeCaster:rx,defaultValue:ur.defaultModelsExpandDepth},displayOperationId:{typeCaster:Xn,defaultValue:ur.displayOperationId},displayRequestDuration:{typeCaster:Xn,defaultValue:ur.displayRequestDuration},docExpansion:{typeCaster:mo},dom_id:{typeCaster:tx},domNode:{typeCaster:j2e},fileUploadMediaTypes:{typeCaster:sp,defaultValue:ur.fileUploadMediaTypes},filter:{typeCaster:P2e},fn:{typeCaster:ho},initialState:{typeCaster:ho},layout:{typeCaster:mo},maxDisplayedTags:{typeCaster:rx,defaultValue:ur.maxDisplayedTags},modelPropertyMacro:{typeCaster:ap},oauth2RedirectUrl:{typeCaster:M2e},onComplete:{typeCaster:ap},operationsSorter:{typeCaster:kL},paramaterMacro:{typeCaster:ap},persistAuthorization:{typeCaster:Xn,defaultValue:ur.persistAuthorization},plugins:{typeCaster:sp,defaultValue:ur.plugins},presets:{typeCaster:sp,defaultValue:ur.presets},requestInterceptor:{typeCaster:PL,defaultValue:ur.requestInterceptor},requestSnippets:{typeCaster:ho,defaultValue:ur.requestSnippets},requestSnippetsEnabled:{typeCaster:Xn,defaultValue:ur.requestSnippetsEnabled},responseInterceptor:{typeCaster:PL,defaultValue:ur.responseInterceptor},showCommonExtensions:{typeCaster:Xn,defaultValue:ur.showCommonExtensions},showExtensions:{typeCaster:Xn,defaultValue:ur.showExtensions},showMutatedRequest:{typeCaster:Xn,defaultValue:ur.showMutatedRequest},spec:{typeCaster:ho,defaultValue:ur.spec},supportedSubmitMethods:{typeCaster:sp,defaultValue:ur.supportedSubmitMethods},syntaxHighlight:{typeCaster:N2e,defaultValue:ur.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:Xn,defaultValue:ur.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:mo},tagsSorter:{typeCaster:kL},tryItOutEnabled:{typeCaster:Xn,defaultValue:ur.tryItOutEnabled},url:{typeCaster:mo},urls:{typeCaster:k2e},"urls.primaryName":{typeCaster:mo},validatorUrl:{typeCaster:tx},withCredentials:{typeCaster:Xn,defaultValue:ur.withCredentials},uncaughtExceptionHandler:{typeCaster:ap}},rJ=e=>Object.entries(tJ).reduce(((t,[r,{typeCaster:n,defaultValue:i}])=>{if((0,I2e.default)(t,r)){const s=n((0,ZA.default)(t,r),i);t=(0,T2e.default)(r,s,t)}return t}),{...e}),D2e=(e,...t)=>{let r=Symbol.for("domNode"),n=Symbol.for("primaryName");const i=[];for(const a of t){const o={...a};Object.hasOwn(o,"domNode")&&(r=o.domNode,delete o.domNode),Object.hasOwn(o,"urls.primaryName")?(n=o["urls.primaryName"],delete o["urls.primaryName"]):Array.isArray(o.urls)&&Object.hasOwn(o.urls,"primaryName")&&(n=o.urls.primaryName,delete o.urls.primaryName),i.push(o)}const s=Rc()(e,...i);return r!==Symbol.for("domNode")&&(s.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(s.urls)&&(s.urls.primaryName=n),rJ(s)};function Bs(e){const t=O2e()(e),r=R2e()(),n=Bs.config.merge({},Bs.config.defaults,r,e,t),i=A2e(n),s=x2e(n),a=new Y7(i);a.register([n.plugins,s]);const o=a.getSystem(),u=f=>{a.setConfigs(f),o.configsActions.loaded()},c=f=>{!t.url&&typeof f.spec=="object"&&Object.keys(f.spec).length>0?(o.specActions.updateUrl(""),o.specActions.updateLoadingStatus("success"),o.specActions.updateSpec(JSON.stringify(f.spec))):typeof o.specActions.download=="function"&&f.url&&!f.urls&&(o.specActions.updateUrl(f.url),o.specActions.download(f.url))},l=f=>{if(f.domNode)o.render(f.domNode,"App");else if(f.dom_id){const h=document.querySelector(f.dom_id);o.render(h,"App")}else f.dom_id===null||f.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return n.configUrl?((async()=>{const{configUrl:f}=n,h=await C2e({url:f,system:o})(n),d=Bs.config.merge({},n,h,t);u(d),h!==null&&c(d),l(d)})(),o):(u(n),c(n),l(n),o)}Bs.System=Y7,Bs.config={defaults:ur,merge:D2e,typeCast:rJ,typeCastMappings:tJ},Bs.presets={base:kz,apis:eJ},Bs.plugins={Auth:Z7,Configs:Q7,DeepLining:eV,Err:rV,Filter:nV,Icons:iV,JSONSchema5:EV,JSONSchema5Samples:RV,JSONSchema202012:LW,JSONSchema202012Samples:QW,Layout:aV,Logs:oV,OpenAPI30:lO,OpenAPI31:lO,OnComplete:uV,RequestSnippets:fV,Spec:XV,SwaggerClient:QV,Util:ez,View:iz,ViewLegacy:sz,DownloadUrl:az,SyntaxHighlighting:uz,Versions:cz,SafeRender:dz};var q2e=Bs,Vs=V7.A;const{config:Vt}=Vs,NL=e=>{const t=Mt.useRef();return Mt.useEffect(()=>{t.current=e},[e]),t.current},mf=({spec:e=Vt.defaults.spec,url:t=Vt.defaults.url,layout:r=Vt.defaults.layout,requestInterceptor:n=Vt.defaults.requestInterceptor,responseInterceptor:i=Vt.defaults.responseInterceptor,supportedSubmitMethods:s=Vt.defaults.supportedSubmitMethods,queryConfigEnabled:a=Vt.defaults.queryConfigEnabled,plugins:o=Vt.defaults.plugins,displayOperationId:u=Vt.defaults.displayOperationId,showMutatedRequest:c=Vt.defaults.showMutatedRequest,docExpansion:l=Vt.defaults.docExpansion,defaultModelExpandDepth:f=Vt.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:h=Vt.defaults.defaultModelsExpandDepth,defaultModelRendering:d=Vt.defaults.defaultModelRendering,presets:g=Vt.defaults.presets,deepLinking:y=Vt.defaults.deepLinking,showExtensions:v=Vt.defaults.showExtensions,showCommonExtensions:_=Vt.defaults.showCommonExtensions,filter:b=Vt.defaults.filter,requestSnippetsEnabled:E=Vt.defaults.requestSnippetsEnabled,requestSnippets:w=Vt.defaults.requestSnippets,tryItOutEnabled:S=Vt.defaults.tryItOutEnabled,displayRequestDuration:A=Vt.defaults.displayRequestDuration,withCredentials:R=Vt.defaults.withCredentials,persistAuthorization:T=Vt.defaults.persistAuthorization,oauth2RedirectUrl:O=Vt.defaults.oauth2RedirectUrl,onComplete:D=null,initialState:N=Vt.defaults.initialState,uncaughtExceptionHandler:$=Vt.defaults.uncaughtExceptionHandler})=>{const[M,X]=Mt.useState(null),ee=M==null?void 0:M.getComponent("App","root"),J=NL(e),Q=NL(t);return Mt.useEffect(()=>{const te=Vs({plugins:o,spec:e,url:t,layout:r,defaultModelsExpandDepth:h,defaultModelRendering:d,presets:[Vs.presets.apis,...g],requestInterceptor:n,responseInterceptor:i,onComplete:()=>{typeof D=="function"&&D(te)},docExpansion:l,supportedSubmitMethods:s,queryConfigEnabled:a,defaultModelExpandDepth:f,displayOperationId:u,tryItOutEnabled:S,displayRequestDuration:A,requestSnippetsEnabled:E,requestSnippets:w,showMutatedRequest:c,deepLinking:y,showExtensions:v,showCommonExtensions:_,filter:b,persistAuthorization:T,withCredentials:R,initialState:N,uncaughtExceptionHandler:$,...typeof O=="string"?{oauth2RedirectUrl:O}:{}});X(te)},[]),Mt.useEffect(()=>{if(M){const te=M.specSelectors.url();(t!==te||t!==Q)&&(M.specActions.updateSpec(""),t&&(M.specActions.updateUrl(t),M.specActions.download(t)))}},[M,t]),Mt.useEffect(()=>{if(M){const te=M.specSelectors.specStr();if(e&&e!==Vs.config.defaults.spec&&(e!==te||e!==J)){const re=typeof e=="object"?JSON.stringify(e):e;M.specActions.updateSpec(re)}}},[M,e]),ee?Mt.createElement(ee,null):null};mf.System=Vs.System;mf.presets=Vs.presets;mf.plugins=Vs.plugins;mf.config=Vs.config;class $2e extends Mt.Component{render(){const{getComponent:t}=this.props,r=t("operations",!0);return _r.jsx("div",{className:"swagger-ui",children:_r.jsx(r,{})})}}const F2e=()=>({components:{OperationsLayout:$2e}}),B2e=e=>({statePlugins:{spec:{wrapSelectors:{taggedOperations:t=>(r,...n)=>{const i=t(r,...n);return e.operation?i.map(s=>s.update("operations",a=>a.filter(o=>o.get("operation").get("operationId")===e.operation))).filter(s=>s.get("operations").size>0):i}}}}}),L2e=({inputUrl:e,inputJSON:t,className:r,format:n,nodeKey:i,editor:s,create:a})=>{const{t:o}=bJ.useTranslation(),[u,c]=Mt.useState(""),[l,f]=Mt.useState(""),[h,d]=Mt.useState(!1),[g,y]=Mt.useState(!1),[v,_]=Mt.useState(!1),[b,E]=Mt.useState(!0);Mt.useEffect(()=>{a&&_(!0)},[a]),Mt.useEffect(()=>{v?Ve.blockScroll():Ve.unblockScroll()},[v]);const w=A=>{A.preventDefault(),s.update(()=>{const R=Ve.us(i);Ve.$isSwaggerNode(R)&&(_(!1),R.setSrc(u||l),R.setJSON(l))})},{operation:S}=Mt.useMemo(()=>e?{operation:new URL(e).hash.split("/").pop()||""}:{operation:""},[e,t]);return e?_r.jsxs(In.Box,{pos:"relative",mih:45,children:[_r.jsx(In.LoadingOverlay,{visible:b,zIndex:1e3,overlayProps:{blur:4},loaderProps:{size:"xs"}}),_r.jsx(mf,{url:t,onComplete:()=>{E(!1)},responseInterceptor:A=>(A.ok||(E(!1),s.update(()=>{const R=Ve.us(i);Ve.$isSwaggerNode(R)&&(_(!1),R.setSrc(""),R.setJSON(""))}),SJ.showErrorNotification({message:o("editor.validation.swaggerUnavailable")}),E(!0)),A),plugins:[B2e({operation:S}),F2e],layout:"OperationsLayout"})]}):_r.jsxs(In.Popover,{width:400,position:"bottom",shadow:"md",opened:v,onChange:_,defaultOpened:!0,withinPortal:!0,children:[_r.jsx(In.Popover.Target,{children:_r.jsx(In.Flex,{w:"100%",children:_r.jsx(Ve.p,{className:r,format:n,nodeKey:i,children:_r.jsx(Ve.EmptyNodeButton,{title:o("editor.swagger.add"),icon:"api",onClick:()=>_(A=>!A),nodeKey:i})})})}),_r.jsx(In.Popover.Dropdown,{"aria-hidden":!v,tabIndex:v?0:-1,children:_r.jsx("form",{onSubmit:w,children:_r.jsxs(In.Stack,{gap:16,children:[_r.jsx(In.Box,{children:_r.jsx(In.TextInput,{maxLength:500,placeholder:"https://api.example.com/v3/swagger.json","data-autofocus":!0,type:"url",value:l,rightSection:l?null:_r.jsx("span",{style:{color:"red"},children:"*"}),onChange:A=>{f(A.currentTarget.value),y(!1)}})}),_r.jsx(In.Box,{children:_r.jsx(In.TextInput,{maxLength:500,placeholder:"https://api.swagger.io/#/user/getUser","data-autofocus":!0,type:"url",value:u,onChange:A=>{c(A.currentTarget.value),d(!1)}})}),_r.jsx(In.Center,{children:_r.jsx(In.Button,{w:"100%",type:"submit",disabled:!l,children:o("editor.video.apply")})})]})})})]})};exports.default=L2e;