@arcgis/charts-components 4.33.0-next.110 → 4.33.0-next.112

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 (582) hide show
  1. package/dist/arcgis-charts-components/{2QD3HRR2.js → 24H2NJUE.js} +2 -2
  2. package/dist/arcgis-charts-components/{TZOCSQLG.js → 26VNPVCT.js} +2 -2
  3. package/dist/arcgis-charts-components/{KZSSZG5E.js → 2MWFJNT5.js} +2 -2
  4. package/dist/arcgis-charts-components/{F57GLOPB.js → 2QHY3YDI.js} +2 -2
  5. package/dist/arcgis-charts-components/{UEFHDWSG.js → 2TAEVLKM.js} +2 -2
  6. package/dist/arcgis-charts-components/{5FDEEHPT.js → 2WBW5HNB.js} +2 -2
  7. package/dist/arcgis-charts-components/{Y47HC4KR.js → 2WDRNN3P.js} +2 -2
  8. package/dist/arcgis-charts-components/{RL4G4VRW.js → 34M447GS.js} +2 -2
  9. package/dist/arcgis-charts-components/{HIX3TN5X.js → 3AAAZEPG.js} +2 -2
  10. package/dist/arcgis-charts-components/{Y6ZZEYGQ.js → 3CIUHWDZ.js} +2 -2
  11. package/dist/arcgis-charts-components/{56IWKVB6.js → 3RUMBWOJ.js} +2 -2
  12. package/dist/arcgis-charts-components/{MEUMXF2E.js → 3UDTEYZS.js} +2 -2
  13. package/dist/arcgis-charts-components/{TNPNZG3M.js → 3VGQX6PZ.js} +2 -2
  14. package/dist/arcgis-charts-components/{7DWDWWOH.js → 4CNY2RTW.js} +2 -2
  15. package/dist/arcgis-charts-components/{AFVLHLH6.js → 4FSQSTM7.js} +2 -2
  16. package/dist/arcgis-charts-components/{YXRSZLLL.js → 4PSHXIPD.js} +2 -2
  17. package/dist/arcgis-charts-components/{635JD6XQ.js → 4Q37PHPN.js} +2 -2
  18. package/dist/arcgis-charts-components/{JPN2MDU7.js → 4QSYP77L.js} +2 -2
  19. package/dist/arcgis-charts-components/{5TAUALPN.js → 4RRHPFNA.js} +2 -2
  20. package/dist/arcgis-charts-components/{7N5RQB35.js → 4RW4AXMA.js} +2 -2
  21. package/dist/arcgis-charts-components/{OVZFQBGA.js → 4TYUQ6LZ.js} +2 -2
  22. package/dist/arcgis-charts-components/{LI66NQYI.js → 4V445FY4.js} +2 -2
  23. package/dist/arcgis-charts-components/{XSO6PJ7O.js → 4VWOFO7U.js} +2 -2
  24. package/dist/arcgis-charts-components/{SXWMA5AB.js → 4XYTMETW.js} +1 -1
  25. package/dist/arcgis-charts-components/{PC3MEYGK.js → 4Y25PHVL.js} +2 -2
  26. package/dist/arcgis-charts-components/{QF2QUJHB.js → 53EPDSND.js} +2 -2
  27. package/dist/arcgis-charts-components/{G73FD6OA.js → 53F7R5QI.js} +2 -2
  28. package/dist/arcgis-charts-components/{2NFRUKXQ.js → 57SUHUVN.js} +2 -2
  29. package/dist/arcgis-charts-components/{3XTZL6NT.js → 5AV7JCUJ.js} +2 -2
  30. package/dist/arcgis-charts-components/{W2OOZDFW.js → 5B6E6LGF.js} +2 -2
  31. package/dist/arcgis-charts-components/{OJLWF72A.js → 5CLTQEJX.js} +2 -2
  32. package/dist/arcgis-charts-components/{W2C3NPX4.js → 5HYK4ZGQ.js} +2 -2
  33. package/dist/arcgis-charts-components/{K3KWPQE5.js → 5JWRXNBC.js} +2 -2
  34. package/dist/arcgis-charts-components/{NNMSJFJN.js → 5K3JEO3T.js} +2 -2
  35. package/dist/arcgis-charts-components/{ONO5VPVD.js → 5NUA5VTX.js} +2 -2
  36. package/dist/arcgis-charts-components/{7T2COOEM.js → 5ODOOU5T.js} +2 -2
  37. package/dist/arcgis-charts-components/{IBKBX4R6.js → 5XDCAOLB.js} +2 -2
  38. package/dist/arcgis-charts-components/{3GETPYFD.js → 66DLBN6O.js} +2 -2
  39. package/dist/arcgis-charts-components/{YC36NN67.js → 66Z3ZKSH.js} +2 -2
  40. package/dist/arcgis-charts-components/{2PC7GHZV.js → 6A3WQIMC.js} +2 -2
  41. package/dist/arcgis-charts-components/{D6A7J7TP.js → 6CJVDO2E.js} +2 -2
  42. package/dist/arcgis-charts-components/{4KPTWA6D.js → 6KTKHQ2I.js} +2 -2
  43. package/dist/arcgis-charts-components/{35CUQYAO.js → 6LOCPNFB.js} +2 -2
  44. package/dist/arcgis-charts-components/{CPLA7RTC.js → 6LP5V3EU.js} +2 -2
  45. package/dist/arcgis-charts-components/{QTNNYQIM.js → 6NGVRYXD.js} +2 -2
  46. package/dist/arcgis-charts-components/{AOC34D63.js → 6NO3W7OU.js} +2 -2
  47. package/dist/arcgis-charts-components/{NTH4OLYP.js → 6QNN7KGV.js} +2 -2
  48. package/dist/arcgis-charts-components/{GGR7UVH2.js → 6SCDDK23.js} +2 -2
  49. package/dist/arcgis-charts-components/{C4XSB6VC.js → 6YSDAY7L.js} +2 -2
  50. package/dist/arcgis-charts-components/{LG4AURGY.js → 6ZQIAHWB.js} +2 -2
  51. package/dist/arcgis-charts-components/{WGEIPU4F.js → 72UX37SV.js} +2 -2
  52. package/dist/arcgis-charts-components/{3K4E2YVP.js → 7HPZXC7B.js} +2 -2
  53. package/dist/arcgis-charts-components/{QSSJ7O6R.js → 7MEIGFT2.js} +2 -2
  54. package/dist/arcgis-charts-components/{HTMR5FZQ.js → 7NVGO5OQ.js} +2 -2
  55. package/dist/arcgis-charts-components/{7SG2VYBF.js → 7O2MGOZG.js} +2 -2
  56. package/dist/arcgis-charts-components/{X5C4S6N4.js → 7QFFKBWW.js} +2 -2
  57. package/dist/arcgis-charts-components/{QGP4NUXT.js → 7UJ3ZNAM.js} +2 -2
  58. package/dist/arcgis-charts-components/{CHXG65S7.js → A5RBGEWX.js} +2 -2
  59. package/dist/arcgis-charts-components/{S7LBSVHA.js → AJXXNEA6.js} +2 -2
  60. package/dist/arcgis-charts-components/{UJJPMV76.js → AK3MY5AC.js} +2 -2
  61. package/dist/arcgis-charts-components/{KWMWJM6C.js → ALMCHNFY.js} +2 -2
  62. package/dist/arcgis-charts-components/{JDY6MZHF.js → APUP5YTR.js} +2 -2
  63. package/dist/arcgis-charts-components/{ILX2BMQ5.js → ASTL6GPQ.js} +2 -2
  64. package/dist/arcgis-charts-components/{CAYTEKPM.js → AYC2IHKF.js} +2 -2
  65. package/dist/arcgis-charts-components/{5ED3WA2X.js → BE64KP3Z.js} +2 -2
  66. package/dist/arcgis-charts-components/{Q7HEXURN.js → BNQ4HGKO.js} +2 -2
  67. package/dist/arcgis-charts-components/{XZ62N5IR.js → BNTSN6HI.js} +2 -2
  68. package/dist/arcgis-charts-components/{U4NBAP5F.js → BS6HBIJ7.js} +2 -2
  69. package/dist/arcgis-charts-components/{SKI2Q4XZ.js → BSKAIXBF.js} +2 -2
  70. package/dist/arcgis-charts-components/{GD2WZTNY.js → BTOZQAFW.js} +2 -2
  71. package/dist/arcgis-charts-components/{6W73YCOJ.js → BU6NMMVZ.js} +2 -2
  72. package/dist/arcgis-charts-components/{MF64A7NY.js → BYTTW2LA.js} +2 -2
  73. package/dist/arcgis-charts-components/{BHAOEVGQ.js → C4GTJYEC.js} +2 -2
  74. package/dist/arcgis-charts-components/{PFJ64C4R.js → CJ4DRDZB.js} +2 -2
  75. package/dist/arcgis-charts-components/{NQDQOMMO.js → COUAYALY.js} +2 -2
  76. package/dist/arcgis-charts-components/{5ZZYAV7Q.js → CUXH26AE.js} +2 -2
  77. package/dist/arcgis-charts-components/{5YHREPYJ.js → CVZHEROP.js} +2 -2
  78. package/dist/arcgis-charts-components/{SY2E25CV.js → CWRPZ5AX.js} +2 -2
  79. package/dist/arcgis-charts-components/{MMAYDP6X.js → CZBXQOKJ.js} +2 -2
  80. package/dist/arcgis-charts-components/{B4FGUYBH.js → D767L3SH.js} +2 -2
  81. package/dist/arcgis-charts-components/{PEFA3NYE.js → D7WECG7P.js} +2 -2
  82. package/dist/arcgis-charts-components/{ZUHHRPUD.js → DAMI2KL4.js} +2 -2
  83. package/dist/arcgis-charts-components/{NHCAATNU.js → DDSML7OV.js} +2 -2
  84. package/dist/arcgis-charts-components/{IBVPIGSJ.js → DFIPUDUU.js} +2 -2
  85. package/dist/arcgis-charts-components/{AQ5W7QCF.js → DHSQAEBT.js} +2 -2
  86. package/dist/arcgis-charts-components/{YUZ47NMJ.js → DI4ND3DM.js} +2 -2
  87. package/dist/arcgis-charts-components/{2XZY2X6K.js → DNJAHCJD.js} +2 -2
  88. package/dist/arcgis-charts-components/{JFKOHWTR.js → DNNPNWIR.js} +2 -2
  89. package/dist/arcgis-charts-components/{Z7VVSQ63.js → DPOB4ZPC.js} +2 -2
  90. package/dist/arcgis-charts-components/{NSQQCN2R.js → DWR6BSRG.js} +2 -2
  91. package/dist/arcgis-charts-components/{YJRAA3H6.js → DWWF6TG2.js} +2 -2
  92. package/dist/arcgis-charts-components/{JFPB5W2L.js → E4SNMS2E.js} +2 -2
  93. package/dist/arcgis-charts-components/{V52B3BR4.js → ECMHYSNG.js} +2 -2
  94. package/dist/arcgis-charts-components/{7I5J5BBC.js → EQAEDO55.js} +2 -2
  95. package/dist/arcgis-charts-components/{T7S42TQC.js → ES4IF5G5.js} +2 -2
  96. package/dist/arcgis-charts-components/{RXBME54L.js → F4Y3VJZ5.js} +2 -2
  97. package/dist/arcgis-charts-components/{PAWEHRXX.js → F6I3TM2F.js} +2 -2
  98. package/dist/arcgis-charts-components/{FSYADWEP.js → F6LOOQZ5.js} +2 -2
  99. package/dist/arcgis-charts-components/{LILKP7M6.js → F6WX7WKZ.js} +2 -2
  100. package/dist/arcgis-charts-components/{KLJ246XW.js → FBYKNCVH.js} +2 -2
  101. package/dist/arcgis-charts-components/{RBXDBKSB.js → FCLFSURE.js} +2 -2
  102. package/dist/arcgis-charts-components/{WW6GGBJN.js → FEAW247J.js} +2 -2
  103. package/dist/arcgis-charts-components/{NAAJBREH.js → FEG7VZRG.js} +2 -2
  104. package/dist/arcgis-charts-components/{BVF66WS2.js → FGMJSAHL.js} +2 -2
  105. package/dist/arcgis-charts-components/{C2RZVT5L.js → FIDAMWS7.js} +2 -2
  106. package/dist/arcgis-charts-components/{L7555HI4.js → FIGSBF22.js} +2 -2
  107. package/dist/arcgis-charts-components/{UO6NFGXO.js → FIZLTYYJ.js} +2 -2
  108. package/dist/arcgis-charts-components/{3ZFRA6PY.js → FNFV3EJG.js} +2 -2
  109. package/dist/arcgis-charts-components/{MKTDHR4A.js → FPQUHO3A.js} +2 -2
  110. package/dist/arcgis-charts-components/{7GMDFUA5.js → FT5XQ3XV.js} +2 -2
  111. package/dist/arcgis-charts-components/{DZ24WHQQ.js → FT7UOZQE.js} +2 -2
  112. package/dist/arcgis-charts-components/{U3L35S2V.js → FUCZQ3EJ.js} +2 -2
  113. package/dist/arcgis-charts-components/{XGY7BCLR.js → FVS5JNXJ.js} +2 -2
  114. package/dist/arcgis-charts-components/{CZBM3M3J.js → FZZCSNLP.js} +2 -2
  115. package/dist/arcgis-charts-components/{YX5ONQF5.js → G36JZFEJ.js} +2 -2
  116. package/dist/arcgis-charts-components/{C7HQXYDC.js → GD3HQCJH.js} +2 -2
  117. package/dist/arcgis-charts-components/{MTGMXRS5.js → GIJ4FWTA.js} +2 -2
  118. package/dist/arcgis-charts-components/{RWWP5YZM.js → GLFNI5NK.js} +2 -2
  119. package/dist/arcgis-charts-components/{VBSJG5RE.js → GRNCH3LY.js} +2 -2
  120. package/dist/arcgis-charts-components/{IRIJSY5N.js → GWRRTATK.js} +2 -2
  121. package/dist/arcgis-charts-components/{CN6GL453.js → H3KEXQPW.js} +2 -2
  122. package/dist/arcgis-charts-components/{IOGCCURA.js → HFC6B5AL.js} +2 -2
  123. package/dist/arcgis-charts-components/{TDSEDBEF.js → HJWSAPG5.js} +2 -2
  124. package/dist/arcgis-charts-components/{M64KJVZ5.js → HLABWJCY.js} +2 -2
  125. package/dist/arcgis-charts-components/{E2GVNJFN.js → HMEBZWIZ.js} +2 -2
  126. package/dist/arcgis-charts-components/{AWOUG2UD.js → HQK3MGCC.js} +2 -2
  127. package/dist/arcgis-charts-components/{JO2D7TBQ.js → HV64KWYD.js} +2 -2
  128. package/dist/arcgis-charts-components/{WFTUCGO4.js → I24OHCQD.js} +2 -2
  129. package/dist/arcgis-charts-components/{KQEMZHZJ.js → I2IJ6CGL.js} +2 -2
  130. package/dist/arcgis-charts-components/{PXTMAOC7.js → I5433CMK.js} +2 -2
  131. package/dist/arcgis-charts-components/{HH7L3RKG.js → I7PMXTUW.js} +2 -2
  132. package/dist/arcgis-charts-components/{ROQDAU3Z.js → IFJ3HDVY.js} +2 -2
  133. package/dist/arcgis-charts-components/{THLZIFD2.js → IOBQGE5A.js} +2 -2
  134. package/dist/arcgis-charts-components/{I5XFZO2Q.js → IRR2T4PA.js} +2 -2
  135. package/dist/arcgis-charts-components/{I66WMAKO.js → IS5RG7YY.js} +2 -2
  136. package/dist/arcgis-charts-components/{44L5PPIT.js → ISZGLQP4.js} +2 -2
  137. package/dist/arcgis-charts-components/{3SABXO6C.js → IXG3KIES.js} +2 -2
  138. package/dist/arcgis-charts-components/{4Z2L27TL.js → IYW52R35.js} +7 -7
  139. package/dist/arcgis-charts-components/{ISNXZSML.js → J24ZQ3PH.js} +2 -2
  140. package/dist/arcgis-charts-components/{CSMKFV2U.js → J7WZ3ZXL.js} +2 -2
  141. package/dist/arcgis-charts-components/{IYHRO5PY.js → JDYRJKNY.js} +2 -2
  142. package/dist/arcgis-charts-components/{L27GVMTV.js → JE2IOFO5.js} +2 -2
  143. package/dist/arcgis-charts-components/{EVQU4SNN.js → JL7OURWJ.js} +2 -2
  144. package/dist/arcgis-charts-components/{C3DMG232.js → JMCQ3FX4.js} +2 -2
  145. package/dist/arcgis-charts-components/{BOC4IUKY.js → JMELFC7J.js} +2 -2
  146. package/dist/arcgis-charts-components/{VM4DQ7OK.js → JYIX2N2U.js} +2 -2
  147. package/dist/arcgis-charts-components/{U4UWKRQT.js → KDUY7J5C.js} +2 -2
  148. package/dist/arcgis-charts-components/{JFA6ROUE.js → KKL5DESR.js} +2 -2
  149. package/dist/arcgis-charts-components/{LFY576YB.js → KPY3P3F7.js} +2 -2
  150. package/dist/arcgis-charts-components/{LM3ZTCBB.js → KQOWNWKN.js} +2 -2
  151. package/dist/arcgis-charts-components/{7MZUNDFH.js → KWIXEC7X.js} +2 -2
  152. package/dist/arcgis-charts-components/{73BHYMQP.js → KYEUWVYK.js} +2 -2
  153. package/dist/arcgis-charts-components/{G3A5MZZG.js → L5G5REQL.js} +2 -2
  154. package/dist/arcgis-charts-components/{MEAPSEEM.js → L5LUVL7Z.js} +2 -2
  155. package/dist/arcgis-charts-components/{JOUAFS3T.js → LCB3ZSFE.js} +2 -2
  156. package/dist/arcgis-charts-components/{ZV3JRMCI.js → LEBAK3ZI.js} +4 -4
  157. package/dist/arcgis-charts-components/{RWNUXPEI.js → LP62TR2O.js} +2 -2
  158. package/dist/arcgis-charts-components/{WWA77YX2.js → LPMMMUH6.js} +2 -2
  159. package/dist/arcgis-charts-components/{5GGDMX25.js → LTKCKMKB.js} +2 -2
  160. package/dist/arcgis-charts-components/{JPQ4IHQK.js → LTVY4R6F.js} +2 -2
  161. package/dist/arcgis-charts-components/{NZDABAXH.js → LWAW6DZO.js} +2 -2
  162. package/dist/arcgis-charts-components/{FVNNXRNZ.js → M2YAU23Y.js} +2 -2
  163. package/dist/arcgis-charts-components/{KEM72BCC.js → MD76SALG.js} +2 -2
  164. package/dist/arcgis-charts-components/{XRFBXAN5.js → MLPMHB3M.js} +2 -2
  165. package/dist/arcgis-charts-components/{GFY2PAAN.js → MMSH6CWF.js} +2 -2
  166. package/dist/arcgis-charts-components/{2IGSOJEF.js → MPE27N6K.js} +2 -2
  167. package/dist/arcgis-charts-components/{5YQYQD4W.js → MS2ZQ5WY.js} +2 -2
  168. package/dist/arcgis-charts-components/{HLETDMEU.js → MSXUWGDC.js} +2 -2
  169. package/dist/arcgis-charts-components/{QBQP6AIB.js → MXENV2HH.js} +2 -2
  170. package/dist/arcgis-charts-components/{HXNC7GDE.js → N2VVGTOW.js} +2 -2
  171. package/dist/arcgis-charts-components/{SDDBBFVS.js → N4I6MPNH.js} +2 -2
  172. package/dist/arcgis-charts-components/{HABNBW6P.js → NKX547AQ.js} +2 -2
  173. package/dist/arcgis-charts-components/{RMEQ3CQK.js → NQON4YSM.js} +1 -1
  174. package/dist/arcgis-charts-components/{MQFRQWW2.js → NVFTXBP4.js} +2 -2
  175. package/dist/arcgis-charts-components/{WX6OW2GZ.js → O4EHLLLB.js} +2 -2
  176. package/dist/arcgis-charts-components/{ROYZ2BYC.js → O4KBZVJV.js} +2 -2
  177. package/dist/arcgis-charts-components/{7KWEJ6BU.js → OA6GWVVC.js} +2 -2
  178. package/dist/arcgis-charts-components/{IAHCMSMP.js → OH7IEJZU.js} +1 -1
  179. package/dist/arcgis-charts-components/{LITFKKMO.js → OTG35F3S.js} +2 -2
  180. package/dist/arcgis-charts-components/{WIK7H6LZ.js → OXMLOJZE.js} +2 -2
  181. package/dist/arcgis-charts-components/{VLFEEZQP.js → P5WKGXQQ.js} +2 -2
  182. package/dist/arcgis-charts-components/{I42TJK34.js → P7Z36PG4.js} +2 -2
  183. package/dist/arcgis-charts-components/{RK2H7AEV.js → PGDEMSFV.js} +2 -2
  184. package/dist/arcgis-charts-components/{ADIDHTU2.js → PJHODMXG.js} +1 -1
  185. package/dist/arcgis-charts-components/{3K2XNMI5.js → PKY2MZ36.js} +2 -2
  186. package/dist/arcgis-charts-components/{SB4SN6WF.js → PMMRZRYN.js} +2 -2
  187. package/dist/arcgis-charts-components/{ZLSSHK4I.js → PPATV7XG.js} +2 -2
  188. package/dist/arcgis-charts-components/{LUG7YVZT.js → PSCGFDJ7.js} +2 -2
  189. package/dist/arcgis-charts-components/{3OSG7JGX.js → PUJZEYLI.js} +2 -2
  190. package/dist/arcgis-charts-components/{NRSXKCY5.js → PWOOHCGG.js} +2 -2
  191. package/dist/arcgis-charts-components/{Q5ZQNYDV.js → PZPOZ23A.js} +2 -2
  192. package/dist/arcgis-charts-components/{KHF4H7CH.js → Q45VBJYW.js} +2 -2
  193. package/dist/arcgis-charts-components/{L7YXOMZH.js → QFTK3C5R.js} +2 -2
  194. package/dist/arcgis-charts-components/{QXKGFIMK.js → QJYPDE5E.js} +2 -2
  195. package/dist/arcgis-charts-components/{2RFLLDNW.js → QK7RNQOR.js} +2 -2
  196. package/dist/arcgis-charts-components/{BGC4KCR2.js → QSPSLWEH.js} +1 -1
  197. package/dist/arcgis-charts-components/{GZQ7TKSA.js → QUJLK6ER.js} +2 -2
  198. package/dist/arcgis-charts-components/{K4CICXWJ.js → QZAAEY3B.js} +2 -2
  199. package/dist/arcgis-charts-components/{6HS7VMCA.js → R4ESHUAX.js} +2 -2
  200. package/dist/arcgis-charts-components/{JKJHLFJD.js → RD75WUKO.js} +2 -2
  201. package/dist/arcgis-charts-components/{2VPYEYBR.js → RLWFPJXB.js} +2 -2
  202. package/dist/arcgis-charts-components/{XOP2RKJO.js → RQNMGE7K.js} +2 -2
  203. package/dist/arcgis-charts-components/{SSJC363X.js → RQWMH75L.js} +2 -2
  204. package/dist/arcgis-charts-components/{WPKSQECH.js → RSL7M5O3.js} +2 -2
  205. package/dist/arcgis-charts-components/{RYD5KZUT.js → S4APMXEZ.js} +2 -2
  206. package/dist/arcgis-charts-components/{HZEM4Y7R.js → S5AH6X7Q.js} +2 -2
  207. package/dist/arcgis-charts-components/{BGYP3Q5W.js → SLL7I7L4.js} +2 -2
  208. package/dist/arcgis-charts-components/{YHYIAIAI.js → SOCAMNMB.js} +2 -2
  209. package/dist/arcgis-charts-components/{OEEKDAUG.js → STZCIOOV.js} +2 -2
  210. package/dist/arcgis-charts-components/{GRCFZZOA.js → SVZMY3Y5.js} +2 -2
  211. package/dist/arcgis-charts-components/{IEEZGEIO.js → TBGICG4O.js} +2 -2
  212. package/dist/arcgis-charts-components/{SBZFWORL.js → TBMUCHBF.js} +2 -2
  213. package/dist/arcgis-charts-components/{4D7MNEVR.js → TDT4ITT2.js} +2 -2
  214. package/dist/arcgis-charts-components/{TXNU3C6N.js → TEBPQGWM.js} +2 -2
  215. package/dist/arcgis-charts-components/{JX3JEYAB.js → TKSDHJSN.js} +2 -2
  216. package/dist/arcgis-charts-components/{FIQUHRMI.js → TL5IYFBD.js} +2 -2
  217. package/dist/arcgis-charts-components/{CQYLGWV7.js → TLZCTDOM.js} +2 -2
  218. package/dist/arcgis-charts-components/{N6QOGIBP.js → TQHVJ5NT.js} +2 -2
  219. package/dist/arcgis-charts-components/{UBTINOOQ.js → TRSKHOHI.js} +2 -2
  220. package/dist/arcgis-charts-components/{T7XA5GLP.js → TU7B47RH.js} +2 -2
  221. package/dist/arcgis-charts-components/{PKAI23LW.js → TUMTAR6Y.js} +2 -2
  222. package/dist/arcgis-charts-components/{DP7LRXOS.js → TYJFAWKI.js} +2 -2
  223. package/dist/arcgis-charts-components/{WO7SM7DZ.js → U2OPL3MY.js} +2 -2
  224. package/dist/arcgis-charts-components/{RMGYAUJB.js → UA4EL2JI.js} +2 -2
  225. package/dist/arcgis-charts-components/{FT2TJ356.js → UHPGQHC4.js} +2 -2
  226. package/dist/arcgis-charts-components/{2SPFFYEB.js → UJD5F7GD.js} +2 -2
  227. package/dist/arcgis-charts-components/{HISPFYBT.js → UNZZFUPK.js} +2 -2
  228. package/dist/arcgis-charts-components/{VKOOB5DO.js → UOMQ6HGQ.js} +2 -2
  229. package/dist/arcgis-charts-components/{TER4G5XN.js → UQ3UXCNY.js} +2 -2
  230. package/dist/arcgis-charts-components/{AAOOOML7.js → UVW7S55B.js} +2 -2
  231. package/dist/arcgis-charts-components/{IP3WF2Q2.js → UW4M3ML2.js} +2 -2
  232. package/dist/arcgis-charts-components/{QF2PRONL.js → VBB5TXDX.js} +2 -2
  233. package/dist/arcgis-charts-components/{EQBJOMWR.js → VCEUUYQP.js} +2 -2
  234. package/dist/arcgis-charts-components/{MUKVILUG.js → VFPJV3ZW.js} +2 -2
  235. package/dist/arcgis-charts-components/{QVCLQJKV.js → VH3MA3BD.js} +2 -2
  236. package/dist/arcgis-charts-components/{SMYV2SMU.js → VRUDZIDY.js} +2 -2
  237. package/dist/arcgis-charts-components/{OCYCT576.js → VTFSSYKQ.js} +2 -2
  238. package/dist/arcgis-charts-components/{NKYN2TLS.js → VTTC57JF.js} +2 -2
  239. package/dist/arcgis-charts-components/{D4PKAPI4.js → W3GPU2NH.js} +2 -2
  240. package/dist/arcgis-charts-components/{PO7ZT6CE.js → W3X6VXAB.js} +2 -2
  241. package/dist/arcgis-charts-components/{4ZJYVTHS.js → W6WASQOA.js} +2 -2
  242. package/dist/arcgis-charts-components/{I43UJU2K.js → W7GXVZCM.js} +2 -2
  243. package/dist/arcgis-charts-components/{DRJLIW64.js → W7VQGTCP.js} +2 -2
  244. package/dist/arcgis-charts-components/{OIDBCYY3.js → WGDVSFTN.js} +2 -2
  245. package/dist/arcgis-charts-components/{LB4UOQTQ.js → WIPHSZ7J.js} +2 -2
  246. package/dist/arcgis-charts-components/{QPXMGAMU.js → WNKT5TJT.js} +2 -2
  247. package/dist/arcgis-charts-components/{6FRLKJRY.js → WODW4O4V.js} +2 -2
  248. package/dist/arcgis-charts-components/{K3EROQLH.js → WOSIIYIK.js} +2 -2
  249. package/dist/arcgis-charts-components/{TPS3KN3W.js → WRJHLGNE.js} +2 -2
  250. package/dist/arcgis-charts-components/{UB3L4VV6.js → WZEU52L3.js} +2 -2
  251. package/dist/arcgis-charts-components/{TL2BVNI6.js → X3AMCUUM.js} +2 -2
  252. package/dist/arcgis-charts-components/{ULNPVI3J.js → XB6FTYOG.js} +2 -2
  253. package/dist/arcgis-charts-components/{BPWPXDTG.js → XE6TOUBW.js} +2 -2
  254. package/dist/arcgis-charts-components/{M27M5A6T.js → XFPHBF5I.js} +2 -2
  255. package/dist/arcgis-charts-components/{6523OZ7H.js → XFUEOWUO.js} +2 -2
  256. package/dist/arcgis-charts-components/{4PW3XKWV.js → XM2PALNU.js} +2 -2
  257. package/dist/arcgis-charts-components/{XUKPW6KX.js → XMDXIPRW.js} +2 -2
  258. package/dist/arcgis-charts-components/{4ZPJBPOG.js → XYM2RCJ5.js} +2 -2
  259. package/dist/arcgis-charts-components/{7PECLICO.js → Y5I2AS5J.js} +2 -2
  260. package/dist/arcgis-charts-components/{KNJA3CIB.js → Y6F2CGDD.js} +2 -2
  261. package/dist/arcgis-charts-components/{IUDTMLYK.js → Y7HCLKWW.js} +2 -2
  262. package/dist/arcgis-charts-components/{5GSVBAU7.js → YBK4Q3UF.js} +2 -2
  263. package/dist/arcgis-charts-components/{CXF4MK4T.js → YDPGNU6O.js} +2 -2
  264. package/dist/arcgis-charts-components/{SI6TCWUZ.js → YHHUS666.js} +2 -2
  265. package/dist/arcgis-charts-components/{IGDXAUVO.js → YIIWVZ5W.js} +2 -2
  266. package/dist/arcgis-charts-components/{XNAA2RT7.js → YJIQPSOM.js} +2 -2
  267. package/dist/arcgis-charts-components/{22CO7UXE.js → YKCIUAMR.js} +2 -2
  268. package/dist/arcgis-charts-components/{OXKZHF5O.js → YOID3X2F.js} +2 -2
  269. package/dist/arcgis-charts-components/{SGTWI3SR.js → YQ7MKQFT.js} +2 -2
  270. package/dist/arcgis-charts-components/{2JQGFGJV.js → YX5Y2BQI.js} +2 -2
  271. package/dist/arcgis-charts-components/{LYUSWMI6.js → ZCBQQN32.js} +2 -2
  272. package/dist/arcgis-charts-components/{BNGAOIMZ.js → ZDYWGI3W.js} +2 -2
  273. package/dist/arcgis-charts-components/{6VTWUEMA.js → ZE37CLAX.js} +2 -2
  274. package/dist/arcgis-charts-components/{VIU3PVXS.js → ZJZPRKGO.js} +2 -2
  275. package/dist/arcgis-charts-components/{P3DN7FRN.js → ZVSRTHHM.js} +2 -2
  276. package/dist/arcgis-charts-components/arcgis-charts-components.esm.js +2 -2
  277. package/dist/chunks/action-bar-utils.js +1 -1
  278. package/dist/chunks/axis-model-wrapper.js +1 -1
  279. package/dist/chunks/bg_BG.js +1 -1
  280. package/dist/chunks/bg_BG2.js +1 -1
  281. package/dist/chunks/chart-ui-utils.js +1 -1
  282. package/dist/chunks/chart-ui-utils2.js +1 -1
  283. package/dist/chunks/default.js +1 -1
  284. package/dist/chunks/index.js +1 -1
  285. package/dist/chunks/index2.js +1 -1
  286. package/dist/chunks/interfaces.js +1 -1
  287. package/dist/chunks/interfaces2.js +1 -1
  288. package/dist/chunks/interfaces3.js +1 -1
  289. package/dist/chunks/interfaces4.js +1 -1
  290. package/dist/chunks/messages.ar.js +1 -1
  291. package/dist/chunks/messages.ar2.js +1 -1
  292. package/dist/chunks/messages.ar3.js +1 -1
  293. package/dist/chunks/messages.ar4.js +1 -1
  294. package/dist/chunks/messages.bg.js +1 -1
  295. package/dist/chunks/messages.bg2.js +1 -1
  296. package/dist/chunks/messages.bg3.js +1 -1
  297. package/dist/chunks/messages.bg4.js +1 -1
  298. package/dist/chunks/messages.bs.js +1 -1
  299. package/dist/chunks/messages.bs2.js +1 -1
  300. package/dist/chunks/messages.bs3.js +1 -1
  301. package/dist/chunks/messages.bs4.js +1 -1
  302. package/dist/chunks/messages.ca.js +1 -1
  303. package/dist/chunks/messages.ca2.js +1 -1
  304. package/dist/chunks/messages.ca3.js +1 -1
  305. package/dist/chunks/messages.ca4.js +1 -1
  306. package/dist/chunks/messages.cs.js +1 -1
  307. package/dist/chunks/messages.cs2.js +1 -1
  308. package/dist/chunks/messages.cs3.js +1 -1
  309. package/dist/chunks/messages.cs4.js +1 -1
  310. package/dist/chunks/messages.da.js +1 -1
  311. package/dist/chunks/messages.da2.js +1 -1
  312. package/dist/chunks/messages.da3.js +1 -1
  313. package/dist/chunks/messages.de.js +1 -1
  314. package/dist/chunks/messages.de2.js +1 -1
  315. package/dist/chunks/messages.de3.js +1 -1
  316. package/dist/chunks/messages.de4.js +1 -1
  317. package/dist/chunks/messages.el.js +1 -1
  318. package/dist/chunks/messages.el2.js +1 -1
  319. package/dist/chunks/messages.el3.js +1 -1
  320. package/dist/chunks/messages.el4.js +1 -1
  321. package/dist/chunks/messages.en-US.js +1 -1
  322. package/dist/chunks/messages.en-US2.js +1 -1
  323. package/dist/chunks/messages.en-US3.js +1 -1
  324. package/dist/chunks/messages.en-US4.js +1 -1
  325. package/dist/chunks/messages.en.js +1 -1
  326. package/dist/chunks/messages.en2.js +1 -1
  327. package/dist/chunks/messages.en3.js +1 -1
  328. package/dist/chunks/messages.es.js +1 -1
  329. package/dist/chunks/messages.es2.js +1 -1
  330. package/dist/chunks/messages.es3.js +1 -1
  331. package/dist/chunks/messages.es4.js +1 -1
  332. package/dist/chunks/messages.et.js +1 -1
  333. package/dist/chunks/messages.et2.js +1 -1
  334. package/dist/chunks/messages.et3.js +1 -1
  335. package/dist/chunks/messages.et4.js +1 -1
  336. package/dist/chunks/messages.fi.js +1 -1
  337. package/dist/chunks/messages.fi2.js +1 -1
  338. package/dist/chunks/messages.fi3.js +1 -1
  339. package/dist/chunks/messages.fi4.js +1 -1
  340. package/dist/chunks/messages.fr.js +1 -1
  341. package/dist/chunks/messages.fr2.js +1 -1
  342. package/dist/chunks/messages.fr3.js +1 -1
  343. package/dist/chunks/messages.fr4.js +1 -1
  344. package/dist/chunks/messages.he.js +1 -1
  345. package/dist/chunks/messages.he2.js +1 -1
  346. package/dist/chunks/messages.he3.js +1 -1
  347. package/dist/chunks/messages.he4.js +1 -1
  348. package/dist/chunks/messages.hr.js +1 -1
  349. package/dist/chunks/messages.hr2.js +1 -1
  350. package/dist/chunks/messages.hr3.js +1 -1
  351. package/dist/chunks/messages.hr4.js +1 -1
  352. package/dist/chunks/messages.hu.js +1 -1
  353. package/dist/chunks/messages.hu2.js +1 -1
  354. package/dist/chunks/messages.hu3.js +1 -1
  355. package/dist/chunks/messages.hu4.js +1 -1
  356. package/dist/chunks/messages.id.js +1 -1
  357. package/dist/chunks/messages.id2.js +1 -1
  358. package/dist/chunks/messages.id3.js +1 -1
  359. package/dist/chunks/messages.id4.js +1 -1
  360. package/dist/chunks/messages.it.js +1 -1
  361. package/dist/chunks/messages.it2.js +1 -1
  362. package/dist/chunks/messages.it3.js +1 -1
  363. package/dist/chunks/messages.it4.js +1 -1
  364. package/dist/chunks/messages.ja.js +1 -1
  365. package/dist/chunks/messages.ja2.js +1 -1
  366. package/dist/chunks/messages.ja3.js +1 -1
  367. package/dist/chunks/messages.ja4.js +1 -1
  368. package/dist/chunks/messages.ko.js +1 -1
  369. package/dist/chunks/messages.ko2.js +1 -1
  370. package/dist/chunks/messages.ko3.js +1 -1
  371. package/dist/chunks/messages.ko4.js +1 -1
  372. package/dist/chunks/messages.lt.js +1 -1
  373. package/dist/chunks/messages.lt2.js +1 -1
  374. package/dist/chunks/messages.lt3.js +1 -1
  375. package/dist/chunks/messages.lt4.js +1 -1
  376. package/dist/chunks/messages.lv.js +1 -1
  377. package/dist/chunks/messages.lv2.js +1 -1
  378. package/dist/chunks/messages.lv3.js +1 -1
  379. package/dist/chunks/messages.lv4.js +1 -1
  380. package/dist/chunks/messages.nl.js +1 -1
  381. package/dist/chunks/messages.nl2.js +1 -1
  382. package/dist/chunks/messages.nl3.js +1 -1
  383. package/dist/chunks/messages.nl4.js +1 -1
  384. package/dist/chunks/messages.no.js +1 -1
  385. package/dist/chunks/messages.no2.js +1 -1
  386. package/dist/chunks/messages.no3.js +1 -1
  387. package/dist/chunks/messages.pl.js +1 -1
  388. package/dist/chunks/messages.pl2.js +1 -1
  389. package/dist/chunks/messages.pl3.js +1 -1
  390. package/dist/chunks/messages.pl4.js +1 -1
  391. package/dist/chunks/messages.pt-BR.js +1 -1
  392. package/dist/chunks/messages.pt-BR2.js +1 -1
  393. package/dist/chunks/messages.pt-BR3.js +1 -1
  394. package/dist/chunks/messages.pt-BR4.js +1 -1
  395. package/dist/chunks/messages.pt-PT.js +1 -1
  396. package/dist/chunks/messages.pt-PT2.js +1 -1
  397. package/dist/chunks/messages.pt-PT3.js +1 -1
  398. package/dist/chunks/messages.pt-PT4.js +1 -1
  399. package/dist/chunks/messages.ro.js +1 -1
  400. package/dist/chunks/messages.ro2.js +1 -1
  401. package/dist/chunks/messages.ro3.js +1 -1
  402. package/dist/chunks/messages.ro4.js +1 -1
  403. package/dist/chunks/messages.ru.js +1 -1
  404. package/dist/chunks/messages.ru2.js +1 -1
  405. package/dist/chunks/messages.ru3.js +1 -1
  406. package/dist/chunks/messages.ru4.js +1 -1
  407. package/dist/chunks/messages.sk.js +1 -1
  408. package/dist/chunks/messages.sk2.js +1 -1
  409. package/dist/chunks/messages.sk3.js +1 -1
  410. package/dist/chunks/messages.sk4.js +1 -1
  411. package/dist/chunks/messages.sl.js +1 -1
  412. package/dist/chunks/messages.sl2.js +1 -1
  413. package/dist/chunks/messages.sl3.js +1 -1
  414. package/dist/chunks/messages.sl4.js +1 -1
  415. package/dist/chunks/messages.sr.js +1 -1
  416. package/dist/chunks/messages.sr2.js +1 -1
  417. package/dist/chunks/messages.sr3.js +1 -1
  418. package/dist/chunks/messages.sr4.js +1 -1
  419. package/dist/chunks/messages.sv.js +1 -1
  420. package/dist/chunks/messages.sv2.js +1 -1
  421. package/dist/chunks/messages.sv3.js +1 -1
  422. package/dist/chunks/messages.sv4.js +1 -1
  423. package/dist/chunks/messages.th.js +1 -1
  424. package/dist/chunks/messages.th2.js +1 -1
  425. package/dist/chunks/messages.th3.js +1 -1
  426. package/dist/chunks/messages.th4.js +1 -1
  427. package/dist/chunks/messages.tr.js +1 -1
  428. package/dist/chunks/messages.tr2.js +1 -1
  429. package/dist/chunks/messages.tr3.js +1 -1
  430. package/dist/chunks/messages.uk.js +1 -1
  431. package/dist/chunks/messages.uk2.js +1 -1
  432. package/dist/chunks/messages.uk3.js +1 -1
  433. package/dist/chunks/messages.uk4.js +1 -1
  434. package/dist/chunks/messages.vi.js +1 -1
  435. package/dist/chunks/messages.vi2.js +1 -1
  436. package/dist/chunks/messages.vi3.js +1 -1
  437. package/dist/chunks/messages.vi4.js +1 -1
  438. package/dist/chunks/messages.zh-CN.js +1 -1
  439. package/dist/chunks/messages.zh-CN2.js +1 -1
  440. package/dist/chunks/messages.zh-CN3.js +1 -1
  441. package/dist/chunks/messages.zh-CN4.js +1 -1
  442. package/dist/chunks/messages.zh-HK.js +1 -1
  443. package/dist/chunks/messages.zh-HK2.js +1 -1
  444. package/dist/chunks/messages.zh-HK3.js +1 -1
  445. package/dist/chunks/messages.zh-HK4.js +1 -1
  446. package/dist/chunks/messages.zh-TW.js +1 -1
  447. package/dist/chunks/messages.zh-TW2.js +1 -1
  448. package/dist/chunks/messages.zh-TW3.js +1 -1
  449. package/dist/chunks/messages.zh-TW4.js +1 -1
  450. package/dist/chunks/popover-ui-utils.js +1 -1
  451. package/dist/chunks/resource.js +1 -1
  452. package/dist/chunks/runtime.js +1 -1
  453. package/dist/chunks/scatter-plot-model.js +1 -1
  454. package/dist/chunks/setup-utils.js +1 -1
  455. package/dist/chunks/sk_SK.js +1 -1
  456. package/dist/chunks/sk_SK2.js +1 -1
  457. package/dist/chunks/store.js +1 -1
  458. package/dist/chunks/type-guards.js +1 -1
  459. package/dist/chunks/useT9n.js +1 -1
  460. package/dist/components/arcgis-chart/customElement.d.ts +60 -78
  461. package/dist/components/arcgis-chart/customElement.js +1 -478
  462. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +12 -9
  463. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -49
  464. package/dist/components/arcgis-charts-config-axes/customElement.d.ts +11 -2
  465. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -8
  466. package/dist/components/arcgis-charts-config-axis/customElement.d.ts +5 -1
  467. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -38
  468. package/dist/components/arcgis-charts-config-bar-chart/customElement.d.ts +2 -4
  469. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -26
  470. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.d.ts +5 -11
  471. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -89
  472. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.d.ts +3 -1
  473. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -69
  474. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.d.ts +3 -1
  475. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -35
  476. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.d.ts +1 -1
  477. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -25
  478. package/dist/components/arcgis-charts-config-box-plot/customElement.d.ts +2 -0
  479. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -21
  480. package/dist/components/arcgis-charts-config-box-plot-data/customElement.d.ts +0 -5
  481. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -78
  482. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.d.ts +2 -10
  483. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -63
  484. package/dist/components/arcgis-charts-config-box-plot-series/customElement.d.ts +3 -1
  485. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -21
  486. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.d.ts +3 -1
  487. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -26
  488. package/dist/components/arcgis-charts-config-category-format/customElement.d.ts +1 -1
  489. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -11
  490. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.d.ts +2 -10
  491. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -21
  492. package/dist/components/arcgis-charts-config-color-style/customElement.d.ts +4 -1
  493. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -8
  494. package/dist/components/arcgis-charts-config-colors/customElement.d.ts +0 -1
  495. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -12
  496. package/dist/components/arcgis-charts-config-create-flow/customElement.d.ts +7 -1
  497. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -148
  498. package/dist/components/arcgis-charts-config-field-select/customElement.d.ts +2 -0
  499. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -4
  500. package/dist/components/arcgis-charts-config-font-style/customElement.d.ts +2 -1
  501. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -23
  502. package/dist/components/arcgis-charts-config-format/customElement.d.ts +0 -1
  503. package/dist/components/arcgis-charts-config-format/customElement.js +1 -41
  504. package/dist/components/arcgis-charts-config-format-popover/customElement.d.ts +2 -1
  505. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -20
  506. package/dist/components/arcgis-charts-config-general/customElement.d.ts +5 -2
  507. package/dist/components/arcgis-charts-config-general/customElement.js +1 -28
  508. package/dist/components/arcgis-charts-config-guide/customElement.d.ts +1 -1
  509. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -60
  510. package/dist/components/arcgis-charts-config-guide-popover/customElement.d.ts +2 -1
  511. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -19
  512. package/dist/components/arcgis-charts-config-guides/customElement.d.ts +7 -2
  513. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -34
  514. package/dist/components/arcgis-charts-config-histogram/customElement.d.ts +1 -0
  515. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -21
  516. package/dist/components/arcgis-charts-config-histogram-data/customElement.d.ts +5 -6
  517. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -62
  518. package/dist/components/arcgis-charts-config-histogram-popover/customElement.d.ts +1 -15
  519. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -43
  520. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.d.ts +1 -0
  521. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -3
  522. package/dist/components/arcgis-charts-config-line-chart/customElement.d.ts +2 -4
  523. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -24
  524. package/dist/components/arcgis-charts-config-line-chart-data/customElement.d.ts +5 -21
  525. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -88
  526. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.d.ts +1 -1
  527. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -54
  528. package/dist/components/arcgis-charts-config-line-chart-series/customElement.d.ts +3 -1
  529. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -23
  530. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.d.ts +1 -1
  531. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -29
  532. package/dist/components/arcgis-charts-config-line-style/customElement.d.ts +3 -10
  533. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -12
  534. package/dist/components/arcgis-charts-config-number-format/customElement.d.ts +0 -1
  535. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -12
  536. package/dist/components/arcgis-charts-config-pie-chart/customElement.d.ts +3 -0
  537. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -21
  538. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.d.ts +6 -2
  539. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -57
  540. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.d.ts +1 -10
  541. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -56
  542. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.d.ts +2 -1
  543. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -38
  544. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.d.ts +1 -1
  545. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -25
  546. package/dist/components/arcgis-charts-config-scatter-plot/customElement.d.ts +2 -4
  547. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -20
  548. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.d.ts +6 -6
  549. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -56
  550. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.d.ts +2 -1
  551. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -37
  552. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.d.ts +1 -1
  553. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -21
  554. package/dist/components/arcgis-charts-config-view-charts/customElement.d.ts +3 -1
  555. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -29
  556. package/dist/docs/api.json +2 -2
  557. package/dist/docs/docs.json +2 -2
  558. package/dist/docs/web-types.json +1 -1
  559. package/dist/index.js +1 -1
  560. package/dist/loader.js +1 -1
  561. package/dist/model/bar-chart-model/bar-chart-model.d.ts +1 -1
  562. package/dist/model/box-plot-model/box-plot-model.d.ts +1 -1
  563. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +1 -1
  564. package/dist/model/gauge-model/gauge-model.d.ts +1 -1
  565. package/dist/model/histogram-model/histogram-model.d.ts +1 -1
  566. package/dist/model/interfaces/common.d.ts +7 -7
  567. package/dist/model/line-chart-model/line-chart-model.d.ts +1 -1
  568. package/dist/model/mixins/model-with-baseline-stacking.d.ts +1 -1
  569. package/dist/model/mixins/model-with-basic-x-axis.d.ts +1 -1
  570. package/dist/model/mixins/model-with-color-match.d.ts +1 -1
  571. package/dist/model/mixins/model-with-data-labels.d.ts +1 -1
  572. package/dist/model/mixins/model-with-guides.d.ts +1 -1
  573. package/dist/model/mixins/model-with-legend.d.ts +1 -1
  574. package/dist/model/mixins/model-with-line-marker-styling.d.ts +1 -1
  575. package/dist/model/mixins/model-with-rotation.d.ts +1 -1
  576. package/dist/model/mixins/model-with-temporal-binning.d.ts +1 -1
  577. package/dist/model/mixins/model-with-tooltips.d.ts +1 -1
  578. package/dist/model/pie-chart-model/pie-chart-model.d.ts +1 -1
  579. package/dist/model/radar-chart-model/radar-chart-model.d.ts +1 -1
  580. package/dist/model/scatter-plot-model/scatter-plot-model.d.ts +1 -1
  581. package/dist/model/serial-chart-model/serial-chart-model.d.ts +1 -1
  582. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.110 */
4
- import{a as Cd,c as Td}from"./SXWMA5AB.js";export default $arcgis.t(([eo,rp,ip,ab,Yi,ob,nb,sb,lb,pb,db,op,to])=>{var _l=Cd((ij,ka)=>{function Zg(e,r){var i=r&&r.cache?r.cache:ib,t=r&&r.serializer?r.serializer:rb,a=r&&r.strategy?r.strategy:Yg;return a(e,{cache:i,serializer:t})}function Xg(e){return e==null||typeof e=="number"||typeof e=="boolean"}function jl(e,r,i,t){var a=Xg(t)?t:i(t),o=r.get(a);return typeof o>"u"&&(o=e.call(this,t),r.set(a,o)),o}function $l(e,r,i){var t=Array.prototype.slice.call(arguments,3),a=i(t),o=r.get(a);return typeof o>"u"&&(o=e.apply(this,t),r.set(a,o)),o}function Ra(e,r,i,t,a){return i.bind(r,e,t,a)}function Yg(e,r){var i=e.length===1?jl:$l;return Ra(e,this,i,r.cache.create(),r.serializer)}function eb(e,r){var i=$l;return Ra(e,this,i,r.cache.create(),r.serializer)}function tb(e,r){var i=jl;return Ra(e,this,i,r.cache.create(),r.serializer)}function rb(){return JSON.stringify(arguments)}function Ni(){this.cache=Object.create(null)}Ni.prototype.has=function(e){return e in this.cache};Ni.prototype.get=function(e){return this.cache[e]};Ni.prototype.set=function(e,r){this.cache[e]=r};var ib={create:function(){return new Ni}};ka.exports=Zg;ka.exports.strategies={variadic:eb,monadic:tb}});var w={Chart:"chart",Text:"chartText",Overlay:"chartOverlay",Overlays:"chartOverlays",Legend:"chartLegend",CursorCrosshair:"cursorCrosshair",Axis:"chartAxis",GaugeAxisTick:"gaugeAxisTick",GaugeNeedle:"gaugeNeedle",CategoryAxisFormat:"category",NumberAxisFormat:"number",DateAxisFormat:"date",Guide:"chartGuide",ScatterSeries:"scatterSeries",PieSeries:"pieSeries",PieTick:"pieTick",GaugeSeries:"gaugeSeries",LineSeries:"lineSeries",BarSeries:"barSeries",HistogramSeries:"histogramSeries",BoxPlotSeries:"boxPlotSeries",RadarSeries:"radarSeries",ComboLineAndBarSeries:"comboLineAndBarSeries",Buffer:"buffer",SizePolicy:"sizeScale"},se={Count:"count",Sum:"sum",Minimum:"min",Maximum:"max",Average:"avg",StandardDeviation:"stddev",Variance:"var",ContinuousPercentile:"percentile-continuous",DiscretePercentile:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate",NoAggregation:"no_aggregation"},va={None:"none",Log:"logarithmic",Sqrt:"squareRoot"},l0={Single:"singleColor",Match:"colorMatch"},Do={Left:"left",Right:"right",Top:"top",Bottom:"bottom"},Mr={Side:"sideBySide",Stacked:"stacked",Stacked100:"stacked100"},p0={Side:"sideBySide",MeanLines:"meanLines"},at={Ascending:"ASC",Descending:"DESC"},jo={statisticType:se.Count,sortingOrder:at.Ascending},d0={Bezier:"bezier",MonotoneX:"monotoneX",MonotoneY:"monotoneY"},Sa={FixedDateBased:"fixedDateBased",CalendarBased:"calendarBased"},Le={Second:"seconds",Minute:"minutes",Hour:"hours",Day:"days",Week:"weeks",Month:"months",Quarter:"quarters",Year:"years"},c0={Second:"seconds",Minute:"minutes",Hour:"hours",Day:"days",Week:"weeks",Month:"months",Year:"years"};var $o={Null:"null",Zero:"zero",Interpolate:"interpolate"},lr={Start:"equalIntervalsFromStartTime",End:"equalIntervalsFromEndTime"},u0={Hide:"hide",Rotate:"rotate",Stagger:"stagger",Wrap:"wrap"},It={Same:"same",Newer:"newer",Older:"older",Unrecognized:"unrecognized"},f0={Value:"value",Date:"date",Category:"category"},_o={FeatureGauge:"featureGauge",StatisticGauge:"statisticGauge"},Ro={Linear:"linear",Logarithmic:"logarithmic"},h0={Radial:"radial",Circular:"circular",Horizontal:"horizontal"},pr={YValue:"arcgis-charts-y-value",Mean:"arcgis-charts-mean",Median:"arcgis-charts-median",Category:"arcgis-charts-category"};var We={Blob:"esriFieldTypeBlob",Date:"esriFieldTypeDate",Double:"esriFieldTypeDouble",Geometry:"esriFieldTypeGeometry",GlobalID:"esriFieldTypeGlobalID",GUID:"esriFieldTypeGUID",Integer:"esriFieldTypeInteger",OID:"esriFieldTypeOID",Raster:"esriFieldTypeRaster",Single:"esriFieldTypeSingle",SmallInteger:"esriFieldTypeSmallInteger",String:"esriFieldTypeString",XML:"esriFieldTypeXML"},dr={Dash:"esriSLSDash",DashDot:"esriSLSDashDot",DashDotDot:"esriSLSDashDotDot",Dot:"esriSLSDot",Null:"esriSLSNull",Solid:"esriSLSSolid"},wa={Circle:"esriSMSCircle",Cross:"esriSMSCross",Diamond:"esriSMSDiamond",Square:"esriSMSSquare",X:"esriSMSX",Triangle:"esriSMSTriangle"},cr={BackwardDiagonal:"esriSFSBackwardDiagonal",Cross:"esriSFSCross",DiagonalCross:"esriSFSDiagonalCross",ForwardDiagonal:"esriSFSForwardDiagonal",Horizontal:"esriSFSHorizontal",Null:"esriSFSNull",Solid:"esriSFSSolid",Vertical:"esriSFSVertical"},ai={Left:"left",Right:"right",Center:"center",Justify:"justify"},xa={Baseline:"baseline",Top:"top",Middle:"middle",Bottom:"bottom"},De={SLS:"esriSLS",SMS:"esriSMS",SFS:"esriSFS",PMS:"esriPMS",PFS:"esriPFS",TS:"esriTS"},y0={Italic:"italic",Normal:"normal",Oblique:"oblique"},g0={Bold:"bold",Bolder:"bolder",Lighter:"lighter",Normal:"normal"},b0={LineThrough:"line-through",Underline:"underline",None:"none"},oi={UniqueValue:"unique-value",Simple:"simple",ClassBreaks:"class-breaks",Heatmap:"heatmap",DotDensity:"dot-density",Dictionary:"dictionary",PieChart:"pie-chart"},Vt={Feet:"feet",Miles:"miles",NauticalMiles:"nautical-miles",USNauticalMiles:"us-nautical-miles",Meters:"meters",Kilometers:"kilometers"};var ni="arcgis_charts_pie_from_fields_name",Ia="arcgis_charts_pie_from_fields_value",ko="arcgis_charts_bar_line_from_fields_name",Bo="arcgis_charts_bar_line_from_fields_value";var ot={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"};var Pd=Array.isArray,X=Pd;function Fd(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var le=Fd;var Ad=/\s/;function Od(e){for(var r=e.length;r--&&Ad.test(e.charAt(r)););return r}var qo=Od;var Ed=/^\s+/;function Ld(e){return e&&e.slice(0,qo(e)+1).replace(Ed,"")}var Mo=Ld;var Dd=typeof global=="object"&&global&&global.Object===Object&&global,si=Dd;var jd=typeof self=="object"&&self&&self.Object===Object&&self,$d=si||jd||Function("return this")(),he=$d;var _d=he.Symbol,Te=_d;var No=Object.prototype,Rd=No.hasOwnProperty,kd=No.toString,Nr=Te?Te.toStringTag:void 0;function Bd(e){var r=Rd.call(e,Nr),i=e[Nr];try{e[Nr]=void 0;var t=!0}catch{}var a=kd.call(e);return t&&(r?e[Nr]=i:delete e[Nr]),a}var Wo=Bd;var qd=Object.prototype,Md=qd.toString;function Nd(e){return Md.call(e)}var zo=Nd;var Wd="[object Null]",zd="[object Undefined]",Vo=Te?Te.toStringTag:void 0;function Vd(e){return e==null?e===void 0?zd:Wd:Vo&&Vo in Object(e)?Wo(e):zo(e)}var $e=Vd;function Ud(e){return e!=null&&typeof e=="object"}var be=Ud;var Gd="[object Symbol]";function Hd(e){return typeof e=="symbol"||be(e)&&$e(e)==Gd}var Ke=Hd;var Uo=NaN,Qd=/^[-+]0x[0-9a-f]+$/i,Kd=/^0b[01]+$/i,Jd=/^0o[0-7]+$/i,Zd=parseInt;function Xd(e){if(typeof e=="number")return e;if(Ke(e))return Uo;if(le(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=le(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Mo(e);var i=Kd.test(e);return i||Jd.test(e)?Zd(e.slice(2),i?2:8):Qd.test(e)?Uo:+e}var li=Xd;function Yd(){this.__data__=[],this.size=0}var Go=Yd;function ec(e,r){return e===r||e!==e&&r!==r}var ze=ec;function tc(e,r){for(var i=e.length;i--;)if(ze(e[i][0],r))return i;return-1}var Ct=tc;var rc=Array.prototype,ic=rc.splice;function ac(e){var r=this.__data__,i=Ct(r,e);if(i<0)return!1;var t=r.length-1;return i==t?r.pop():ic.call(r,i,1),--this.size,!0}var Ho=ac;function oc(e){var r=this.__data__,i=Ct(r,e);return i<0?void 0:r[i][1]}var Qo=oc;function nc(e){return Ct(this.__data__,e)>-1}var Ko=nc;function sc(e,r){var i=this.__data__,t=Ct(i,e);return t<0?(++this.size,i.push([e,r])):i[t][1]=r,this}var Jo=sc;function ur(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var t=e[r];this.set(t[0],t[1])}}ur.prototype.clear=Go;ur.prototype.delete=Ho;ur.prototype.get=Qo;ur.prototype.has=Ko;ur.prototype.set=Jo;var Tt=ur;function lc(){this.__data__=new Tt,this.size=0}var Zo=lc;function pc(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}var Xo=pc;function dc(e){return this.__data__.get(e)}var Yo=dc;function cc(e){return this.__data__.has(e)}var en=cc;var uc="[object AsyncFunction]",fc="[object Function]",hc="[object GeneratorFunction]",mc="[object Proxy]";function yc(e){if(!le(e))return!1;var r=$e(e);return r==fc||r==hc||r==uc||r==mc}var fr=yc;var gc=he["__core-js_shared__"],pi=gc;var tn=function(){var e=/[^.]+$/.exec(pi&&pi.keys&&pi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bc(e){return!!tn&&tn in e}var rn=bc;var vc=Function.prototype,Sc=vc.toString;function wc(e){if(e!=null){try{return Sc.call(e)}catch{}try{return e+""}catch{}}return""}var ft=wc;var xc=/[\\^$.*+?()[\]{}|]/g,Ic=/^\[object .+?Constructor\]$/,Cc=Function.prototype,Tc=Object.prototype,Pc=Cc.toString,Fc=Tc.hasOwnProperty,Ac=RegExp("^"+Pc.call(Fc).replace(xc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Oc(e){if(!le(e)||rn(e))return!1;var r=fr(e)?Ac:Ic;return r.test(ft(e))}var an=Oc;function Ec(e,r){return e?.[r]}var on=Ec;function Lc(e,r){var i=on(e,r);return an(i)?i:void 0}var ke=Lc;var Dc=ke(he,"Map"),Pt=Dc;var jc=ke(Object,"create"),ht=jc;function $c(){this.__data__=ht?ht(null):{},this.size=0}var nn=$c;function _c(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var sn=_c;var Rc="__lodash_hash_undefined__",kc=Object.prototype,Bc=kc.hasOwnProperty;function qc(e){var r=this.__data__;if(ht){var i=r[e];return i===Rc?void 0:i}return Bc.call(r,e)?r[e]:void 0}var ln=qc;var Mc=Object.prototype,Nc=Mc.hasOwnProperty;function Wc(e){var r=this.__data__;return ht?r[e]!==void 0:Nc.call(r,e)}var pn=Wc;var zc="__lodash_hash_undefined__";function Vc(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ht&&r===void 0?zc:r,this}var dn=Vc;function hr(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var t=e[r];this.set(t[0],t[1])}}hr.prototype.clear=nn;hr.prototype.delete=sn;hr.prototype.get=ln;hr.prototype.has=pn;hr.prototype.set=dn;var Ca=hr;function Uc(){this.size=0,this.__data__={hash:new Ca,map:new(Pt||Tt),string:new Ca}}var cn=Uc;function Gc(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var un=Gc;function Hc(e,r){var i=e.__data__;return un(r)?i[typeof r=="string"?"string":"hash"]:i.map}var Ft=Hc;function Qc(e){var r=Ft(this,e).delete(e);return this.size-=r?1:0,r}var fn=Qc;function Kc(e){return Ft(this,e).get(e)}var hn=Kc;function Jc(e){return Ft(this,e).has(e)}var mn=Jc;function Zc(e,r){var i=Ft(this,e),t=i.size;return i.set(e,r),this.size+=i.size==t?0:1,this}var yn=Zc;function mr(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var t=e[r];this.set(t[0],t[1])}}mr.prototype.clear=cn;mr.prototype.delete=fn;mr.prototype.get=hn;mr.prototype.has=mn;mr.prototype.set=yn;var Ut=mr;var Xc=200;function Yc(e,r){var i=this.__data__;if(i instanceof Tt){var t=i.__data__;if(!Pt||t.length<Xc-1)return t.push([e,r]),this.size=++i.size,this;i=this.__data__=new Ut(t)}return i.set(e,r),this.size=i.size,this}var gn=Yc;function yr(e){var r=this.__data__=new Tt(e);this.size=r.size}yr.prototype.clear=Zo;yr.prototype.delete=Xo;yr.prototype.get=Yo;yr.prototype.has=en;yr.prototype.set=gn;var nt=yr;function eu(e,r){for(var i=-1,t=e==null?0:e.length;++i<t&&r(e[i],i,e)!==!1;);return e}var bn=eu;var tu=function(){try{var e=ke(Object,"defineProperty");return e({},"",{}),e}catch{}}(),gr=tu;function ru(e,r,i){r=="__proto__"&&gr?gr(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[r]=i}var br=ru;var iu=Object.prototype,au=iu.hasOwnProperty;function ou(e,r,i){var t=e[r];(!(au.call(e,r)&&ze(t,i))||i===void 0&&!(r in e))&&br(e,r,i)}var di=ou;function nu(e,r,i,t){var a=!i;i||(i={});for(var o=-1,n=r.length;++o<n;){var s=r[o],l=t?t(i[s],e[s],s,i,e):void 0;l===void 0&&(l=e[s]),a?br(i,s,l):di(i,s,l)}return i}var Ve=nu;function su(e,r){for(var i=-1,t=Array(e);++i<e;)t[i]=r(i);return t}var vn=su;var lu="[object Arguments]";function pu(e){return be(e)&&$e(e)==lu}var Ta=pu;var Sn=Object.prototype,du=Sn.hasOwnProperty,cu=Sn.propertyIsEnumerable,uu=Ta(function(){return arguments}())?Ta:function(e){return be(e)&&du.call(e,"callee")&&!cu.call(e,"callee")},Je=uu;function fu(){return!1}var wn=fu;var Cn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xn=Cn&&typeof module=="object"&&module&&!module.nodeType&&module,hu=xn&&xn.exports===Cn,In=hu?he.Buffer:void 0,mu=In?In.isBuffer:void 0,yu=mu||wn,Ze=yu;var gu=9007199254740991,bu=/^(?:0|[1-9]\d*)$/;function vu(e,r){var i=typeof e;return r=r??gu,!!r&&(i=="number"||i!="symbol"&&bu.test(e))&&e>-1&&e%1==0&&e<r}var vr=vu;var Su=9007199254740991;function wu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Su}var Sr=wu;var xu="[object Arguments]",Iu="[object Array]",Cu="[object Boolean]",Tu="[object Date]",Pu="[object Error]",Fu="[object Function]",Au="[object Map]",Ou="[object Number]",Eu="[object Object]",Lu="[object RegExp]",Du="[object Set]",ju="[object String]",$u="[object WeakMap]",_u="[object ArrayBuffer]",Ru="[object DataView]",ku="[object Float32Array]",Bu="[object Float64Array]",qu="[object Int8Array]",Mu="[object Int16Array]",Nu="[object Int32Array]",Wu="[object Uint8Array]",zu="[object Uint8ClampedArray]",Vu="[object Uint16Array]",Uu="[object Uint32Array]",ae={};ae[ku]=ae[Bu]=ae[qu]=ae[Mu]=ae[Nu]=ae[Wu]=ae[zu]=ae[Vu]=ae[Uu]=!0;ae[xu]=ae[Iu]=ae[_u]=ae[Cu]=ae[Ru]=ae[Tu]=ae[Pu]=ae[Fu]=ae[Au]=ae[Ou]=ae[Eu]=ae[Lu]=ae[Du]=ae[ju]=ae[$u]=!1;function Gu(e){return be(e)&&Sr(e.length)&&!!ae[$e(e)]}var Tn=Gu;function Hu(e){return function(r){return e(r)}}var At=Hu;var Pn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wr=Pn&&typeof module=="object"&&module&&!module.nodeType&&module,Qu=Wr&&Wr.exports===Pn,Pa=Qu&&si.process,Ku=function(){try{var e=Wr&&Wr.require&&Wr.require("util").types;return e||Pa&&Pa.binding&&Pa.binding("util")}catch{}}(),mt=Ku;var Fn=mt&&mt.isTypedArray,Ju=Fn?At(Fn):Tn,Ot=Ju;var Zu=Object.prototype,Xu=Zu.hasOwnProperty;function Yu(e,r){var i=X(e),t=!i&&Je(e),a=!i&&!t&&Ze(e),o=!i&&!t&&!a&&Ot(e),n=i||t||a||o,s=n?vn(e.length,String):[],l=s.length;for(var u in e)(r||Xu.call(e,u))&&!(n&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||vr(u,l)))&&s.push(u);return s}var ci=Yu;var ef=Object.prototype;function tf(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||ef;return e===i}var Et=tf;function rf(e,r){return function(i){return e(r(i))}}var ui=rf;var af=ui(Object.keys,Object),An=af;var of=Object.prototype,nf=of.hasOwnProperty;function sf(e){if(!Et(e))return An(e);var r=[];for(var i in Object(e))nf.call(e,i)&&i!="constructor"&&r.push(i);return r}var fi=sf;function lf(e){return e!=null&&Sr(e.length)&&!fr(e)}var Be=lf;function pf(e){return Be(e)?ci(e):fi(e)}var Ue=pf;function df(e,r){return e&&Ve(r,Ue(r),e)}var On=df;function cf(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}var En=cf;var uf=Object.prototype,ff=uf.hasOwnProperty;function hf(e){if(!le(e))return En(e);var r=Et(e),i=[];for(var t in e)t=="constructor"&&(r||!ff.call(e,t))||i.push(t);return i}var Ln=hf;function mf(e){return Be(e)?ci(e,!0):Ln(e)}var Ge=mf;function yf(e,r){return e&&Ve(r,Ge(r),e)}var Dn=yf;var Rn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jn=Rn&&typeof module=="object"&&module&&!module.nodeType&&module,gf=jn&&jn.exports===Rn,$n=gf?he.Buffer:void 0,_n=$n?$n.allocUnsafe:void 0;function bf(e,r){if(r)return e.slice();var i=e.length,t=_n?_n(i):new e.constructor(i);return e.copy(t),t}var hi=bf;function vf(e,r){var i=-1,t=e.length;for(r||(r=Array(t));++i<t;)r[i]=e[i];return r}var mi=vf;function Sf(e,r){for(var i=-1,t=e==null?0:e.length,a=0,o=[];++i<t;){var n=e[i];r(n,i,e)&&(o[a++]=n)}return o}var kn=Sf;function wf(){return[]}var yi=wf;var xf=Object.prototype,If=xf.propertyIsEnumerable,Bn=Object.getOwnPropertySymbols,Cf=Bn?function(e){return e==null?[]:(e=Object(e),kn(Bn(e),function(r){return If.call(e,r)}))}:yi,wr=Cf;function Tf(e,r){return Ve(e,wr(e),r)}var qn=Tf;function Pf(e,r){for(var i=-1,t=r.length,a=e.length;++i<t;)e[a+i]=r[i];return e}var xr=Pf;var Ff=ui(Object.getPrototypeOf,Object),Ir=Ff;var Af=Object.getOwnPropertySymbols,Of=Af?function(e){for(var r=[];e;)xr(r,wr(e)),e=Ir(e);return r}:yi,gi=Of;function Ef(e,r){return Ve(e,gi(e),r)}var Mn=Ef;function Lf(e,r,i){var t=r(e);return X(e)?t:xr(t,i(e))}var bi=Lf;function Df(e){return bi(e,Ue,wr)}var zr=Df;function jf(e){return bi(e,Ge,gi)}var Nn=jf;var $f=ke(he,"DataView"),vi=$f;var _f=ke(he,"Promise"),Si=_f;var Rf=ke(he,"Set"),wi=Rf;var kf=ke(he,"WeakMap"),xi=kf;var Wn="[object Map]",Bf="[object Object]",zn="[object Promise]",Vn="[object Set]",Un="[object WeakMap]",Gn="[object DataView]",qf=ft(vi),Mf=ft(Pt),Nf=ft(Si),Wf=ft(wi),zf=ft(xi),Gt=$e;(vi&&Gt(new vi(new ArrayBuffer(1)))!=Gn||Pt&&Gt(new Pt)!=Wn||Si&&Gt(Si.resolve())!=zn||wi&&Gt(new wi)!=Vn||xi&&Gt(new xi)!=Un)&&(Gt=function(e){var r=$e(e),i=r==Bf?e.constructor:void 0,t=i?ft(i):"";if(t)switch(t){case qf:return Gn;case Mf:return Wn;case Nf:return zn;case Wf:return Vn;case zf:return Un}return r});var Xe=Gt;var Vf=Object.prototype,Uf=Vf.hasOwnProperty;function Gf(e){var r=e.length,i=new e.constructor(r);return r&&typeof e[0]=="string"&&Uf.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Hn=Gf;var Hf=he.Uint8Array,Cr=Hf;function Qf(e){var r=new e.constructor(e.byteLength);return new Cr(r).set(new Cr(e)),r}var Tr=Qf;function Kf(e,r){var i=r?Tr(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var Qn=Kf;var Jf=/\w*$/;function Zf(e){var r=new e.constructor(e.source,Jf.exec(e));return r.lastIndex=e.lastIndex,r}var Kn=Zf;var Jn=Te?Te.prototype:void 0,Zn=Jn?Jn.valueOf:void 0;function Xf(e){return Zn?Object(Zn.call(e)):{}}var Xn=Xf;function Yf(e,r){var i=r?Tr(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var Ii=Yf;var eh="[object Boolean]",th="[object Date]",rh="[object Map]",ih="[object Number]",ah="[object RegExp]",oh="[object Set]",nh="[object String]",sh="[object Symbol]",lh="[object ArrayBuffer]",ph="[object DataView]",dh="[object Float32Array]",ch="[object Float64Array]",uh="[object Int8Array]",fh="[object Int16Array]",hh="[object Int32Array]",mh="[object Uint8Array]",yh="[object Uint8ClampedArray]",gh="[object Uint16Array]",bh="[object Uint32Array]";function vh(e,r,i){var t=e.constructor;switch(r){case lh:return Tr(e);case eh:case th:return new t(+e);case ph:return Qn(e,i);case dh:case ch:case uh:case fh:case hh:case mh:case yh:case gh:case bh:return Ii(e,i);case rh:return new t;case ih:case nh:return new t(e);case ah:return Kn(e);case oh:return new t;case sh:return Xn(e)}}var Yn=vh;var es=Object.create,Sh=function(){function e(){}return function(r){if(!le(r))return{};if(es)return es(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}(),ts=Sh;function wh(e){return typeof e.constructor=="function"&&!Et(e)?ts(Ir(e)):{}}var Ci=wh;var xh="[object Map]";function Ih(e){return be(e)&&Xe(e)==xh}var rs=Ih;var is=mt&&mt.isMap,Ch=is?At(is):rs,as=Ch;var Th="[object Set]";function Ph(e){return be(e)&&Xe(e)==Th}var os=Ph;var ns=mt&&mt.isSet,Fh=ns?At(ns):os,ss=Fh;var Ah=1,Oh=2,Eh=4,ls="[object Arguments]",Lh="[object Array]",Dh="[object Boolean]",jh="[object Date]",$h="[object Error]",ps="[object Function]",_h="[object GeneratorFunction]",Rh="[object Map]",kh="[object Number]",ds="[object Object]",Bh="[object RegExp]",qh="[object Set]",Mh="[object String]",Nh="[object Symbol]",Wh="[object WeakMap]",zh="[object ArrayBuffer]",Vh="[object DataView]",Uh="[object Float32Array]",Gh="[object Float64Array]",Hh="[object Int8Array]",Qh="[object Int16Array]",Kh="[object Int32Array]",Jh="[object Uint8Array]",Zh="[object Uint8ClampedArray]",Xh="[object Uint16Array]",Yh="[object Uint32Array]",re={};re[ls]=re[Lh]=re[zh]=re[Vh]=re[Dh]=re[jh]=re[Uh]=re[Gh]=re[Hh]=re[Qh]=re[Kh]=re[Rh]=re[kh]=re[ds]=re[Bh]=re[qh]=re[Mh]=re[Nh]=re[Jh]=re[Zh]=re[Xh]=re[Yh]=!0;re[$h]=re[ps]=re[Wh]=!1;function Ti(e,r,i,t,a,o){var n,s=r&Ah,l=r&Oh,u=r&Eh;if(i&&(n=a?i(e,t,a,o):i(e)),n!==void 0)return n;if(!le(e))return e;var d=X(e);if(d){if(n=Hn(e),!s)return mi(e,n)}else{var c=Xe(e),p=c==ps||c==_h;if(Ze(e))return hi(e,s);if(c==ds||c==ls||p&&!a){if(n=l||p?{}:Ci(e),!s)return l?Mn(e,Dn(n,e)):qn(e,On(n,e))}else{if(!re[c])return a?e:{};n=Yn(e,c,s)}}o||(o=new nt);var h=o.get(e);if(h)return h;o.set(e,n),ss(e)?e.forEach(function(v){n.add(Ti(v,r,i,v,e,o))}):as(e)&&e.forEach(function(v,x){n.set(x,Ti(v,r,i,x,e,o))});var y=u?l?Nn:zr:l?Ge:Ue,m=d?void 0:y(e);return bn(m||e,function(v,x){m&&(x=v,v=e[x]),di(n,x,Ti(v,r,i,x,e,o))}),n}var cs=Ti;var em=1,tm=4;function rm(e){return cs(e,em|tm)}var im=rm;var am=function(){return he.Date.now()},Pi=am;var om="Expected a function",nm=Math.max,sm=Math.min;function lm(e,r,i){var t,a,o,n,s,l,u=0,d=!1,c=!1,p=!0;if(typeof e!="function")throw new TypeError(om);r=li(r)||0,le(i)&&(d=!!i.leading,c="maxWait"in i,o=c?nm(li(i.maxWait)||0,r):o,p="trailing"in i?!!i.trailing:p);function h(L){var O=t,E=a;return t=a=void 0,u=L,n=e.apply(E,O),n}function y(L){return u=L,s=setTimeout(x,r),d?h(L):n}function m(L){var O=L-l,E=L-u,_=r-O;return c?sm(_,o-E):_}function v(L){var O=L-l,E=L-u;return l===void 0||O>=r||O<0||c&&E>=o}function x(){var L=Pi();if(v(L))return S(L);s=setTimeout(x,m(L))}function S(L){return s=void 0,p&&t?h(L):(t=a=void 0,n)}function T(){s!==void 0&&clearTimeout(s),u=0,t=l=a=s=void 0}function P(){return s===void 0?n:S(Pi())}function A(){var L=Pi(),O=v(L);if(t=arguments,a=this,l=L,O){if(s===void 0)return y(l);if(c)return clearTimeout(s),s=setTimeout(x,r),h(l)}return s===void 0&&(s=setTimeout(x,r)),n}return A.cancel=T,A.flush=P,A}var pm=lm;function dm(e,r,i){(i!==void 0&&!ze(e[r],i)||i===void 0&&!(r in e))&&br(e,r,i)}var Vr=dm;function cm(e){return function(r,i,t){for(var a=-1,o=Object(r),n=t(r),s=n.length;s--;){var l=n[e?s:++a];if(i(o[l],l,o)===!1)break}return r}}var us=cm;var um=us(),Fi=um;function fm(e){return be(e)&&Be(e)}var fs=fm;var hm="[object Object]",mm=Function.prototype,ym=Object.prototype,hs=mm.toString,gm=ym.hasOwnProperty,bm=hs.call(Object);function vm(e){if(!be(e)||$e(e)!=hm)return!1;var r=Ir(e);if(r===null)return!0;var i=gm.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&hs.call(i)==bm}var Ai=vm;function Sm(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}var Ur=Sm;function wm(e){return Ve(e,Ge(e))}var ms=wm;function xm(e,r,i,t,a,o,n){var s=Ur(e,i),l=Ur(r,i),u=n.get(l);if(u){Vr(e,i,u);return}var d=o?o(s,l,i+"",e,r,n):void 0,c=d===void 0;if(c){var p=X(l),h=!p&&Ze(l),y=!p&&!h&&Ot(l);d=l,p||h||y?X(s)?d=s:fs(s)?d=mi(s):h?(c=!1,d=hi(l,!0)):y?(c=!1,d=Ii(l,!0)):d=[]:Ai(l)||Je(l)?(d=s,Je(s)?d=ms(s):(!le(s)||fr(s))&&(d=Ci(l))):c=!1}c&&(n.set(l,d),a(d,l,t,o,n),n.delete(l)),Vr(e,i,d)}var ys=xm;function gs(e,r,i,t,a){e!==r&&Fi(r,function(o,n){if(a||(a=new nt),le(o))ys(e,r,n,i,gs,t,a);else{var s=t?t(Ur(e,n),o,n+"",e,r,a):void 0;s===void 0&&(s=o),Vr(e,n,s)}},Ge)}var Oi=gs;function Im(e){return e}var Lt=Im;function Cm(e,r,i){switch(i.length){case 0:return e.call(r);case 1:return e.call(r,i[0]);case 2:return e.call(r,i[0],i[1]);case 3:return e.call(r,i[0],i[1],i[2])}return e.apply(r,i)}var Ei=Cm;var bs=Math.max;function Tm(e,r,i){return r=bs(r===void 0?e.length-1:r,0),function(){for(var t=arguments,a=-1,o=bs(t.length-r,0),n=Array(o);++a<o;)n[a]=t[r+a];a=-1;for(var s=Array(r+1);++a<r;)s[a]=t[a];return s[r]=i(n),Ei(e,this,s)}}var vs=Tm;function Pm(e){return function(){return e}}var Ss=Pm;var Fm=gr?function(e,r){return gr(e,"toString",{configurable:!0,enumerable:!1,value:Ss(r),writable:!0})}:Lt,ws=Fm;var Am=800,Om=16,Em=Date.now;function Lm(e){var r=0,i=0;return function(){var t=Em(),a=Om-(t-i);if(i=t,a>0){if(++r>=Am)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}var xs=Lm;var Dm=xs(ws),Is=Dm;function jm(e,r){return Is(vs(e,r,Lt),e+"")}var Pr=jm;function $m(e,r,i){if(!le(i))return!1;var t=typeof r;return(t=="number"?Be(i)&&vr(r,i.length):t=="string"&&r in i)?ze(i[r],e):!1}var Ht=$m;function _m(e){return Pr(function(r,i){var t=-1,a=i.length,o=a>1?i[a-1]:void 0,n=a>2?i[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,n&&Ht(i[0],i[1],n)&&(o=a<3?void 0:o,a=1),r=Object(r);++t<a;){var s=i[t];s&&e(r,s,t,o)}return r})}var Fr=_m;var Rm=Fr(function(e,r,i,t){Oi(e,r,i,t)}),km=Rm;var Bm="[object Map]",qm="[object Set]",Mm=Object.prototype,Nm=Mm.hasOwnProperty;function Wm(e){if(e==null)return!0;if(Be(e)&&(X(e)||typeof e=="string"||typeof e.splice=="function"||Ze(e)||Ot(e)||Je(e)))return!e.length;var r=Xe(e);if(r==Bm||r==qm)return!e.size;if(Et(e))return!fi(e).length;for(var i in e)if(Nm.call(e,i))return!1;return!0}var zm=Wm;var Vm="__lodash_hash_undefined__";function Um(e){return this.__data__.set(e,Vm),this}var Cs=Um;function Gm(e){return this.__data__.has(e)}var Ts=Gm;function Li(e){var r=-1,i=e==null?0:e.length;for(this.__data__=new Ut;++r<i;)this.add(e[r])}Li.prototype.add=Li.prototype.push=Cs;Li.prototype.has=Ts;var Ps=Li;function Hm(e,r){for(var i=-1,t=e==null?0:e.length;++i<t;)if(r(e[i],i,e))return!0;return!1}var Fs=Hm;function Qm(e,r){return e.has(r)}var As=Qm;var Km=1,Jm=2;function Zm(e,r,i,t,a,o){var n=i&Km,s=e.length,l=r.length;if(s!=l&&!(n&&l>s))return!1;var u=o.get(e),d=o.get(r);if(u&&d)return u==r&&d==e;var c=-1,p=!0,h=i&Jm?new Ps:void 0;for(o.set(e,r),o.set(r,e);++c<s;){var y=e[c],m=r[c];if(t)var v=n?t(m,y,c,r,e,o):t(y,m,c,e,r,o);if(v!==void 0){if(v)continue;p=!1;break}if(h){if(!Fs(r,function(x,S){if(!As(h,S)&&(y===x||a(y,x,i,t,o)))return h.push(S)})){p=!1;break}}else if(!(y===m||a(y,m,i,t,o))){p=!1;break}}return o.delete(e),o.delete(r),p}var Di=Zm;function Xm(e){var r=-1,i=Array(e.size);return e.forEach(function(t,a){i[++r]=[a,t]}),i}var Os=Xm;function Ym(e){var r=-1,i=Array(e.size);return e.forEach(function(t){i[++r]=t}),i}var Es=Ym;var ey=1,ty=2,ry="[object Boolean]",iy="[object Date]",ay="[object Error]",oy="[object Map]",ny="[object Number]",sy="[object RegExp]",ly="[object Set]",py="[object String]",dy="[object Symbol]",cy="[object ArrayBuffer]",uy="[object DataView]",Ls=Te?Te.prototype:void 0,Fa=Ls?Ls.valueOf:void 0;function fy(e,r,i,t,a,o,n){switch(i){case uy:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case cy:return!(e.byteLength!=r.byteLength||!o(new Cr(e),new Cr(r)));case ry:case iy:case ny:return ze(+e,+r);case ay:return e.name==r.name&&e.message==r.message;case sy:case py:return e==r+"";case oy:var s=Os;case ly:var l=t&ey;if(s||(s=Es),e.size!=r.size&&!l)return!1;var u=n.get(e);if(u)return u==r;t|=ty,n.set(e,r);var d=Di(s(e),s(r),t,a,o,n);return n.delete(e),d;case dy:if(Fa)return Fa.call(e)==Fa.call(r)}return!1}var Ds=fy;var hy=1,my=Object.prototype,yy=my.hasOwnProperty;function gy(e,r,i,t,a,o){var n=i&hy,s=zr(e),l=s.length,u=zr(r),d=u.length;if(l!=d&&!n)return!1;for(var c=l;c--;){var p=s[c];if(!(n?p in r:yy.call(r,p)))return!1}var h=o.get(e),y=o.get(r);if(h&&y)return h==r&&y==e;var m=!0;o.set(e,r),o.set(r,e);for(var v=n;++c<l;){p=s[c];var x=e[p],S=r[p];if(t)var T=n?t(S,x,p,r,e,o):t(x,S,p,e,r,o);if(!(T===void 0?x===S||a(x,S,i,t,o):T)){m=!1;break}v||(v=p=="constructor")}if(m&&!v){var P=e.constructor,A=r.constructor;P!=A&&"constructor"in e&&"constructor"in r&&!(typeof P=="function"&&P instanceof P&&typeof A=="function"&&A instanceof A)&&(m=!1)}return o.delete(e),o.delete(r),m}var js=gy;var by=1,$s="[object Arguments]",_s="[object Array]",ji="[object Object]",vy=Object.prototype,Rs=vy.hasOwnProperty;function Sy(e,r,i,t,a,o){var n=X(e),s=X(r),l=n?_s:Xe(e),u=s?_s:Xe(r);l=l==$s?ji:l,u=u==$s?ji:u;var d=l==ji,c=u==ji,p=l==u;if(p&&Ze(e)){if(!Ze(r))return!1;n=!0,d=!1}if(p&&!d)return o||(o=new nt),n||Ot(e)?Di(e,r,i,t,a,o):Ds(e,r,l,i,t,a,o);if(!(i&by)){var h=d&&Rs.call(e,"__wrapped__"),y=c&&Rs.call(r,"__wrapped__");if(h||y){var m=h?e.value():e,v=y?r.value():r;return o||(o=new nt),a(m,v,i,t,o)}}return p?(o||(o=new nt),js(e,r,i,t,a,o)):!1}var ks=Sy;function Bs(e,r,i,t,a){return e===r?!0:e==null||r==null||!be(e)&&!be(r)?e!==e&&r!==r:ks(e,r,i,t,Bs,a)}var Ar=Bs;function wy(e,r){return Ar(e,r)}var qs=wy;function xy(e){return e==null}var Aa=xy;var Iy=Fr(function(e,r,i){Oi(e,r,i)}),Cy=Iy;var Ms=Te?Te.isConcatSpreadable:void 0;function Ty(e){return X(e)||Je(e)||!!(Ms&&e&&e[Ms])}var Ns=Ty;function Ws(e,r,i,t,a){var o=-1,n=e.length;for(i||(i=Ns),a||(a=[]);++o<n;){var s=e[o];r>0&&i(s)?r>1?Ws(s,r-1,i,t,a):xr(a,s):t||(a[a.length]=s)}return a}var zs=Ws;function Py(e,r){for(var i=-1,t=e==null?0:e.length,a=Array(t);++i<t;)a[i]=r(e[i],i,e);return a}var Dt=Py;var Fy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ay=/^\w*$/;function Oy(e,r){if(X(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Ke(e)?!0:Ay.test(e)||!Fy.test(e)||r!=null&&e in Object(r)}var Or=Oy;var Ey="Expected a function";function Oa(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Ey);var i=function(){var t=arguments,a=r?r.apply(this,t):t[0],o=i.cache;if(o.has(a))return o.get(a);var n=e.apply(this,t);return i.cache=o.set(a,n)||o,n};return i.cache=new(Oa.Cache||Ut),i}Oa.Cache=Ut;var Ea=Oa;var Ly=500;function Dy(e){var r=Ea(e,function(t){return i.size===Ly&&i.clear(),t}),i=r.cache;return r}var Vs=Dy;var jy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$y=/\\(\\)?/g,_y=Vs(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(jy,function(i,t,a,o){r.push(a?o.replace($y,"$1"):t||i)}),r}),Us=_y;var Ry=1/0,Gs=Te?Te.prototype:void 0,Hs=Gs?Gs.toString:void 0;function Qs(e){if(typeof e=="string")return e;if(X(e))return Dt(e,Qs)+"";if(Ke(e))return Hs?Hs.call(e):"";var r=e+"";return r=="0"&&1/e==-Ry?"-0":r}var Ks=Qs;function ky(e){return e==null?"":Ks(e)}var Er=ky;function By(e,r){return X(e)?e:Or(e,r)?[e]:Us(Er(e))}var $i=By;var qy=1/0;function My(e){if(typeof e=="string"||Ke(e))return e;var r=e+"";return r=="0"&&1/e==-qy?"-0":r}var jt=My;function Ny(e,r){r=$i(r,e);for(var i=0,t=r.length;e!=null&&i<t;)e=e[jt(r[i++])];return i&&i==t?e:void 0}var Lr=Ny;var Wy=1,zy=2;function Vy(e,r,i,t){var a=i.length,o=a,n=!t;if(e==null)return!o;for(e=Object(e);a--;){var s=i[a];if(n&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){s=i[a];var l=s[0],u=e[l],d=s[1];if(n&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new nt;if(t)var p=t(u,d,l,e,r,c);if(!(p===void 0?Ar(d,u,Wy|zy,t,c):p))return!1}}return!0}var Js=Vy;function Uy(e){return e===e&&!le(e)}var _i=Uy;function Gy(e){for(var r=Ue(e),i=r.length;i--;){var t=r[i],a=e[t];r[i]=[t,a,_i(a)]}return r}var Zs=Gy;function Hy(e,r){return function(i){return i==null?!1:i[e]===r&&(r!==void 0||e in Object(i))}}var Ri=Hy;function Qy(e){var r=Zs(e);return r.length==1&&r[0][2]?Ri(r[0][0],r[0][1]):function(i){return i===e||Js(i,e,r)}}var Xs=Qy;function Ky(e,r,i){var t=e==null?void 0:Lr(e,r);return t===void 0?i:t}var Ys=Ky;function Jy(e,r){return e!=null&&r in Object(e)}var el=Jy;function Zy(e,r,i){r=$i(r,e);for(var t=-1,a=r.length,o=!1;++t<a;){var n=jt(r[t]);if(!(o=e!=null&&i(e,n)))break;e=e[n]}return o||++t!=a?o:(a=e==null?0:e.length,!!a&&Sr(a)&&vr(n,a)&&(X(e)||Je(e)))}var tl=Zy;function Xy(e,r){return e!=null&&tl(e,r,el)}var rl=Xy;var Yy=1,eg=2;function tg(e,r){return Or(e)&&_i(r)?Ri(jt(e),r):function(i){var t=Ys(i,e);return t===void 0&&t===r?rl(i,e):Ar(r,t,Yy|eg)}}var il=tg;function rg(e){return function(r){return r?.[e]}}var al=rg;function ig(e){return function(r){return Lr(r,e)}}var ol=ig;function ag(e){return Or(e)?al(jt(e)):ol(e)}var nl=ag;function og(e){return typeof e=="function"?e:e==null?Lt:typeof e=="object"?X(e)?il(e[0],e[1]):Xs(e):nl(e)}var sl=og;function ng(e,r){return e&&Fi(e,r,Ue)}var ll=ng;function sg(e,r){return function(i,t){if(i==null)return i;if(!Be(i))return e(i,t);for(var a=i.length,o=r?a:-1,n=Object(i);(r?o--:++o<a)&&t(n[o],o,n)!==!1;);return i}}var pl=sg;var lg=pl(ll),dl=lg;function pg(e,r){var i=-1,t=Be(e)?Array(e.length):[];return dl(e,function(a,o,n){t[++i]=r(a,o,n)}),t}var cl=pg;function dg(e,r){var i=e.length;for(e.sort(r);i--;)e[i]=e[i].value;return e}var ul=dg;function cg(e,r){if(e!==r){var i=e!==void 0,t=e===null,a=e===e,o=Ke(e),n=r!==void 0,s=r===null,l=r===r,u=Ke(r);if(!s&&!u&&!o&&e>r||o&&n&&l&&!s&&!u||t&&n&&l||!i&&l||!a)return 1;if(!t&&!o&&!u&&e<r||u&&i&&a&&!t&&!o||s&&i&&a||!n&&a||!l)return-1}return 0}var fl=cg;function ug(e,r,i){for(var t=-1,a=e.criteria,o=r.criteria,n=a.length,s=i.length;++t<n;){var l=fl(a[t],o[t]);if(l){if(t>=s)return l;var u=i[t];return l*(u=="desc"?-1:1)}}return e.index-r.index}var hl=ug;function fg(e,r,i){r.length?r=Dt(r,function(o){return X(o)?function(n){return Lr(n,o.length===1?o[0]:o)}:o}):r=[Lt];var t=-1;r=Dt(r,At(sl));var a=cl(e,function(o,n,s){var l=Dt(r,function(u){return u(o)});return{criteria:l,index:++t,value:o}});return ul(a,function(o,n){return hl(o,n,i)})}var ml=fg;var hg=Pr(function(e,r){if(e==null)return[];var i=r.length;return i>1&&Ht(e,r[0],r[1])?r=[]:i>2&&Ht(r[0],r[1],r[2])&&(r=[r[0]]),ml(e,zs(r,1),[])}),mg=hg;var yg=Fr(function(e,r,i,t){Ve(r,Ge(r),e,t)}),La=yg;var gg="[object DOMException]",bg="[object Error]";function vg(e){if(!be(e))return!1;var r=$e(e);return r==bg||r==gg||typeof e.message=="string"&&typeof e.name=="string"&&!Ai(e)}var ki=vg;var Sg=Pr(function(e,r){try{return Ei(e,void 0,r)}catch(i){return ki(i)?i:new Error(i)}}),yl=Sg;function wg(e){return function(r){return e?.[r]}}var gl=wg;var xg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ig=gl(xg),bl=Ig;var vl=/[&<>"']/g,Cg=RegExp(vl.source);function Tg(e){return e=Er(e),e&&Cg.test(e)?e.replace(vl,bl):e}var Sl=Tg;function Pg(e,r){return Dt(r,function(i){return e[i]})}var wl=Pg;function Fg(e){return e===null}var Ag=Fg;var xl=Object.prototype,Og=xl.hasOwnProperty;function Eg(e,r,i,t){return e===void 0||ze(e,xl[i])&&!Og.call(t,i)?r:e}var Da=Eg;var Lg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Dg(e){return"\\"+Lg[e]}var Il=Dg;var jg=/<%=([\s\S]+?)%>/g,Bi=jg;var $g=/<%-([\s\S]+?)%>/g,Cl=$g;var _g=/<%([\s\S]+?)%>/g,Tl=_g;var Rg={escape:Cl,evaluate:Tl,interpolate:Bi,variable:"",imports:{_:{escape:Sl}}},ja=Rg;var kg="Invalid `variable` option passed into `_.template`",Bg=/\b__p \+= '';/g,qg=/\b(__p \+=) '' \+/g,Mg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ng=/[()=,{}\[\]\/\s]/,Wg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qi=/($^)/,zg=/['\n\r\u2028\u2029\\]/g,Vg=Object.prototype,Pl=Vg.hasOwnProperty;function Ug(e,r,i){var t=ja.imports._.templateSettings||ja;i&&Ht(e,r,i)&&(r=void 0),e=Er(e),r=La({},r,t,Da);var a=La({},r.imports,t.imports,Da),o=Ue(a),n=wl(a,o),s,l,u=0,d=r.interpolate||qi,c="__p += '",p=RegExp((r.escape||qi).source+"|"+d.source+"|"+(d===Bi?Wg:qi).source+"|"+(r.evaluate||qi).source+"|$","g"),h=Pl.call(r,"sourceURL")?"//# sourceURL="+(r.sourceURL+"").replace(/\s/g," ")+`
3
+ v4.33.0-next.112 */
4
+ import{a as Cd,c as Td}from"./4XYTMETW.js";export default $arcgis.t(([eo,rp,ip,ab,Yi,ob,nb,sb,lb,pb,db,op,to])=>{var _l=Cd((ij,ka)=>{function Zg(e,r){var i=r&&r.cache?r.cache:ib,t=r&&r.serializer?r.serializer:rb,a=r&&r.strategy?r.strategy:Yg;return a(e,{cache:i,serializer:t})}function Xg(e){return e==null||typeof e=="number"||typeof e=="boolean"}function jl(e,r,i,t){var a=Xg(t)?t:i(t),o=r.get(a);return typeof o>"u"&&(o=e.call(this,t),r.set(a,o)),o}function $l(e,r,i){var t=Array.prototype.slice.call(arguments,3),a=i(t),o=r.get(a);return typeof o>"u"&&(o=e.apply(this,t),r.set(a,o)),o}function Ra(e,r,i,t,a){return i.bind(r,e,t,a)}function Yg(e,r){var i=e.length===1?jl:$l;return Ra(e,this,i,r.cache.create(),r.serializer)}function eb(e,r){var i=$l;return Ra(e,this,i,r.cache.create(),r.serializer)}function tb(e,r){var i=jl;return Ra(e,this,i,r.cache.create(),r.serializer)}function rb(){return JSON.stringify(arguments)}function Ni(){this.cache=Object.create(null)}Ni.prototype.has=function(e){return e in this.cache};Ni.prototype.get=function(e){return this.cache[e]};Ni.prototype.set=function(e,r){this.cache[e]=r};var ib={create:function(){return new Ni}};ka.exports=Zg;ka.exports.strategies={variadic:eb,monadic:tb}});var w={Chart:"chart",Text:"chartText",Overlay:"chartOverlay",Overlays:"chartOverlays",Legend:"chartLegend",CursorCrosshair:"cursorCrosshair",Axis:"chartAxis",GaugeAxisTick:"gaugeAxisTick",GaugeNeedle:"gaugeNeedle",CategoryAxisFormat:"category",NumberAxisFormat:"number",DateAxisFormat:"date",Guide:"chartGuide",ScatterSeries:"scatterSeries",PieSeries:"pieSeries",PieTick:"pieTick",GaugeSeries:"gaugeSeries",LineSeries:"lineSeries",BarSeries:"barSeries",HistogramSeries:"histogramSeries",BoxPlotSeries:"boxPlotSeries",RadarSeries:"radarSeries",ComboLineAndBarSeries:"comboLineAndBarSeries",Buffer:"buffer",SizePolicy:"sizeScale"},se={Count:"count",Sum:"sum",Minimum:"min",Maximum:"max",Average:"avg",StandardDeviation:"stddev",Variance:"var",ContinuousPercentile:"percentile-continuous",DiscretePercentile:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate",NoAggregation:"no_aggregation"},va={None:"none",Log:"logarithmic",Sqrt:"squareRoot"},l0={Single:"singleColor",Match:"colorMatch"},Do={Left:"left",Right:"right",Top:"top",Bottom:"bottom"},Mr={Side:"sideBySide",Stacked:"stacked",Stacked100:"stacked100"},p0={Side:"sideBySide",MeanLines:"meanLines"},at={Ascending:"ASC",Descending:"DESC"},jo={statisticType:se.Count,sortingOrder:at.Ascending},d0={Bezier:"bezier",MonotoneX:"monotoneX",MonotoneY:"monotoneY"},Sa={FixedDateBased:"fixedDateBased",CalendarBased:"calendarBased"},Le={Second:"seconds",Minute:"minutes",Hour:"hours",Day:"days",Week:"weeks",Month:"months",Quarter:"quarters",Year:"years"},c0={Second:"seconds",Minute:"minutes",Hour:"hours",Day:"days",Week:"weeks",Month:"months",Year:"years"};var $o={Null:"null",Zero:"zero",Interpolate:"interpolate"},lr={Start:"equalIntervalsFromStartTime",End:"equalIntervalsFromEndTime"},u0={Hide:"hide",Rotate:"rotate",Stagger:"stagger",Wrap:"wrap"},It={Same:"same",Newer:"newer",Older:"older",Unrecognized:"unrecognized"},f0={Value:"value",Date:"date",Category:"category"},_o={FeatureGauge:"featureGauge",StatisticGauge:"statisticGauge"},Ro={Linear:"linear",Logarithmic:"logarithmic"},h0={Radial:"radial",Circular:"circular",Horizontal:"horizontal"},pr={YValue:"arcgis-charts-y-value",Mean:"arcgis-charts-mean",Median:"arcgis-charts-median",Category:"arcgis-charts-category"};var We={Blob:"esriFieldTypeBlob",Date:"esriFieldTypeDate",Double:"esriFieldTypeDouble",Geometry:"esriFieldTypeGeometry",GlobalID:"esriFieldTypeGlobalID",GUID:"esriFieldTypeGUID",Integer:"esriFieldTypeInteger",OID:"esriFieldTypeOID",Raster:"esriFieldTypeRaster",Single:"esriFieldTypeSingle",SmallInteger:"esriFieldTypeSmallInteger",String:"esriFieldTypeString",XML:"esriFieldTypeXML"},dr={Dash:"esriSLSDash",DashDot:"esriSLSDashDot",DashDotDot:"esriSLSDashDotDot",Dot:"esriSLSDot",Null:"esriSLSNull",Solid:"esriSLSSolid"},wa={Circle:"esriSMSCircle",Cross:"esriSMSCross",Diamond:"esriSMSDiamond",Square:"esriSMSSquare",X:"esriSMSX",Triangle:"esriSMSTriangle"},cr={BackwardDiagonal:"esriSFSBackwardDiagonal",Cross:"esriSFSCross",DiagonalCross:"esriSFSDiagonalCross",ForwardDiagonal:"esriSFSForwardDiagonal",Horizontal:"esriSFSHorizontal",Null:"esriSFSNull",Solid:"esriSFSSolid",Vertical:"esriSFSVertical"},ai={Left:"left",Right:"right",Center:"center",Justify:"justify"},xa={Baseline:"baseline",Top:"top",Middle:"middle",Bottom:"bottom"},De={SLS:"esriSLS",SMS:"esriSMS",SFS:"esriSFS",PMS:"esriPMS",PFS:"esriPFS",TS:"esriTS"},y0={Italic:"italic",Normal:"normal",Oblique:"oblique"},g0={Bold:"bold",Bolder:"bolder",Lighter:"lighter",Normal:"normal"},b0={LineThrough:"line-through",Underline:"underline",None:"none"},oi={UniqueValue:"unique-value",Simple:"simple",ClassBreaks:"class-breaks",Heatmap:"heatmap",DotDensity:"dot-density",Dictionary:"dictionary",PieChart:"pie-chart"},Vt={Feet:"feet",Miles:"miles",NauticalMiles:"nautical-miles",USNauticalMiles:"us-nautical-miles",Meters:"meters",Kilometers:"kilometers"};var ni="arcgis_charts_pie_from_fields_name",Ia="arcgis_charts_pie_from_fields_value",ko="arcgis_charts_bar_line_from_fields_name",Bo="arcgis_charts_bar_line_from_fields_value";var ot={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"};var Pd=Array.isArray,X=Pd;function Fd(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var le=Fd;var Ad=/\s/;function Od(e){for(var r=e.length;r--&&Ad.test(e.charAt(r)););return r}var qo=Od;var Ed=/^\s+/;function Ld(e){return e&&e.slice(0,qo(e)+1).replace(Ed,"")}var Mo=Ld;var Dd=typeof global=="object"&&global&&global.Object===Object&&global,si=Dd;var jd=typeof self=="object"&&self&&self.Object===Object&&self,$d=si||jd||Function("return this")(),he=$d;var _d=he.Symbol,Te=_d;var No=Object.prototype,Rd=No.hasOwnProperty,kd=No.toString,Nr=Te?Te.toStringTag:void 0;function Bd(e){var r=Rd.call(e,Nr),i=e[Nr];try{e[Nr]=void 0;var t=!0}catch{}var a=kd.call(e);return t&&(r?e[Nr]=i:delete e[Nr]),a}var Wo=Bd;var qd=Object.prototype,Md=qd.toString;function Nd(e){return Md.call(e)}var zo=Nd;var Wd="[object Null]",zd="[object Undefined]",Vo=Te?Te.toStringTag:void 0;function Vd(e){return e==null?e===void 0?zd:Wd:Vo&&Vo in Object(e)?Wo(e):zo(e)}var $e=Vd;function Ud(e){return e!=null&&typeof e=="object"}var be=Ud;var Gd="[object Symbol]";function Hd(e){return typeof e=="symbol"||be(e)&&$e(e)==Gd}var Ke=Hd;var Uo=NaN,Qd=/^[-+]0x[0-9a-f]+$/i,Kd=/^0b[01]+$/i,Jd=/^0o[0-7]+$/i,Zd=parseInt;function Xd(e){if(typeof e=="number")return e;if(Ke(e))return Uo;if(le(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=le(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=Mo(e);var i=Kd.test(e);return i||Jd.test(e)?Zd(e.slice(2),i?2:8):Qd.test(e)?Uo:+e}var li=Xd;function Yd(){this.__data__=[],this.size=0}var Go=Yd;function ec(e,r){return e===r||e!==e&&r!==r}var ze=ec;function tc(e,r){for(var i=e.length;i--;)if(ze(e[i][0],r))return i;return-1}var Ct=tc;var rc=Array.prototype,ic=rc.splice;function ac(e){var r=this.__data__,i=Ct(r,e);if(i<0)return!1;var t=r.length-1;return i==t?r.pop():ic.call(r,i,1),--this.size,!0}var Ho=ac;function oc(e){var r=this.__data__,i=Ct(r,e);return i<0?void 0:r[i][1]}var Qo=oc;function nc(e){return Ct(this.__data__,e)>-1}var Ko=nc;function sc(e,r){var i=this.__data__,t=Ct(i,e);return t<0?(++this.size,i.push([e,r])):i[t][1]=r,this}var Jo=sc;function ur(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var t=e[r];this.set(t[0],t[1])}}ur.prototype.clear=Go;ur.prototype.delete=Ho;ur.prototype.get=Qo;ur.prototype.has=Ko;ur.prototype.set=Jo;var Tt=ur;function lc(){this.__data__=new Tt,this.size=0}var Zo=lc;function pc(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}var Xo=pc;function dc(e){return this.__data__.get(e)}var Yo=dc;function cc(e){return this.__data__.has(e)}var en=cc;var uc="[object AsyncFunction]",fc="[object Function]",hc="[object GeneratorFunction]",mc="[object Proxy]";function yc(e){if(!le(e))return!1;var r=$e(e);return r==fc||r==hc||r==uc||r==mc}var fr=yc;var gc=he["__core-js_shared__"],pi=gc;var tn=function(){var e=/[^.]+$/.exec(pi&&pi.keys&&pi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bc(e){return!!tn&&tn in e}var rn=bc;var vc=Function.prototype,Sc=vc.toString;function wc(e){if(e!=null){try{return Sc.call(e)}catch{}try{return e+""}catch{}}return""}var ft=wc;var xc=/[\\^$.*+?()[\]{}|]/g,Ic=/^\[object .+?Constructor\]$/,Cc=Function.prototype,Tc=Object.prototype,Pc=Cc.toString,Fc=Tc.hasOwnProperty,Ac=RegExp("^"+Pc.call(Fc).replace(xc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Oc(e){if(!le(e)||rn(e))return!1;var r=fr(e)?Ac:Ic;return r.test(ft(e))}var an=Oc;function Ec(e,r){return e?.[r]}var on=Ec;function Lc(e,r){var i=on(e,r);return an(i)?i:void 0}var ke=Lc;var Dc=ke(he,"Map"),Pt=Dc;var jc=ke(Object,"create"),ht=jc;function $c(){this.__data__=ht?ht(null):{},this.size=0}var nn=$c;function _c(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var sn=_c;var Rc="__lodash_hash_undefined__",kc=Object.prototype,Bc=kc.hasOwnProperty;function qc(e){var r=this.__data__;if(ht){var i=r[e];return i===Rc?void 0:i}return Bc.call(r,e)?r[e]:void 0}var ln=qc;var Mc=Object.prototype,Nc=Mc.hasOwnProperty;function Wc(e){var r=this.__data__;return ht?r[e]!==void 0:Nc.call(r,e)}var pn=Wc;var zc="__lodash_hash_undefined__";function Vc(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ht&&r===void 0?zc:r,this}var dn=Vc;function hr(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var t=e[r];this.set(t[0],t[1])}}hr.prototype.clear=nn;hr.prototype.delete=sn;hr.prototype.get=ln;hr.prototype.has=pn;hr.prototype.set=dn;var Ca=hr;function Uc(){this.size=0,this.__data__={hash:new Ca,map:new(Pt||Tt),string:new Ca}}var cn=Uc;function Gc(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var un=Gc;function Hc(e,r){var i=e.__data__;return un(r)?i[typeof r=="string"?"string":"hash"]:i.map}var Ft=Hc;function Qc(e){var r=Ft(this,e).delete(e);return this.size-=r?1:0,r}var fn=Qc;function Kc(e){return Ft(this,e).get(e)}var hn=Kc;function Jc(e){return Ft(this,e).has(e)}var mn=Jc;function Zc(e,r){var i=Ft(this,e),t=i.size;return i.set(e,r),this.size+=i.size==t?0:1,this}var yn=Zc;function mr(e){var r=-1,i=e==null?0:e.length;for(this.clear();++r<i;){var t=e[r];this.set(t[0],t[1])}}mr.prototype.clear=cn;mr.prototype.delete=fn;mr.prototype.get=hn;mr.prototype.has=mn;mr.prototype.set=yn;var Ut=mr;var Xc=200;function Yc(e,r){var i=this.__data__;if(i instanceof Tt){var t=i.__data__;if(!Pt||t.length<Xc-1)return t.push([e,r]),this.size=++i.size,this;i=this.__data__=new Ut(t)}return i.set(e,r),this.size=i.size,this}var gn=Yc;function yr(e){var r=this.__data__=new Tt(e);this.size=r.size}yr.prototype.clear=Zo;yr.prototype.delete=Xo;yr.prototype.get=Yo;yr.prototype.has=en;yr.prototype.set=gn;var nt=yr;function eu(e,r){for(var i=-1,t=e==null?0:e.length;++i<t&&r(e[i],i,e)!==!1;);return e}var bn=eu;var tu=function(){try{var e=ke(Object,"defineProperty");return e({},"",{}),e}catch{}}(),gr=tu;function ru(e,r,i){r=="__proto__"&&gr?gr(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[r]=i}var br=ru;var iu=Object.prototype,au=iu.hasOwnProperty;function ou(e,r,i){var t=e[r];(!(au.call(e,r)&&ze(t,i))||i===void 0&&!(r in e))&&br(e,r,i)}var di=ou;function nu(e,r,i,t){var a=!i;i||(i={});for(var o=-1,n=r.length;++o<n;){var s=r[o],l=t?t(i[s],e[s],s,i,e):void 0;l===void 0&&(l=e[s]),a?br(i,s,l):di(i,s,l)}return i}var Ve=nu;function su(e,r){for(var i=-1,t=Array(e);++i<e;)t[i]=r(i);return t}var vn=su;var lu="[object Arguments]";function pu(e){return be(e)&&$e(e)==lu}var Ta=pu;var Sn=Object.prototype,du=Sn.hasOwnProperty,cu=Sn.propertyIsEnumerable,uu=Ta(function(){return arguments}())?Ta:function(e){return be(e)&&du.call(e,"callee")&&!cu.call(e,"callee")},Je=uu;function fu(){return!1}var wn=fu;var Cn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xn=Cn&&typeof module=="object"&&module&&!module.nodeType&&module,hu=xn&&xn.exports===Cn,In=hu?he.Buffer:void 0,mu=In?In.isBuffer:void 0,yu=mu||wn,Ze=yu;var gu=9007199254740991,bu=/^(?:0|[1-9]\d*)$/;function vu(e,r){var i=typeof e;return r=r??gu,!!r&&(i=="number"||i!="symbol"&&bu.test(e))&&e>-1&&e%1==0&&e<r}var vr=vu;var Su=9007199254740991;function wu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Su}var Sr=wu;var xu="[object Arguments]",Iu="[object Array]",Cu="[object Boolean]",Tu="[object Date]",Pu="[object Error]",Fu="[object Function]",Au="[object Map]",Ou="[object Number]",Eu="[object Object]",Lu="[object RegExp]",Du="[object Set]",ju="[object String]",$u="[object WeakMap]",_u="[object ArrayBuffer]",Ru="[object DataView]",ku="[object Float32Array]",Bu="[object Float64Array]",qu="[object Int8Array]",Mu="[object Int16Array]",Nu="[object Int32Array]",Wu="[object Uint8Array]",zu="[object Uint8ClampedArray]",Vu="[object Uint16Array]",Uu="[object Uint32Array]",ae={};ae[ku]=ae[Bu]=ae[qu]=ae[Mu]=ae[Nu]=ae[Wu]=ae[zu]=ae[Vu]=ae[Uu]=!0;ae[xu]=ae[Iu]=ae[_u]=ae[Cu]=ae[Ru]=ae[Tu]=ae[Pu]=ae[Fu]=ae[Au]=ae[Ou]=ae[Eu]=ae[Lu]=ae[Du]=ae[ju]=ae[$u]=!1;function Gu(e){return be(e)&&Sr(e.length)&&!!ae[$e(e)]}var Tn=Gu;function Hu(e){return function(r){return e(r)}}var At=Hu;var Pn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wr=Pn&&typeof module=="object"&&module&&!module.nodeType&&module,Qu=Wr&&Wr.exports===Pn,Pa=Qu&&si.process,Ku=function(){try{var e=Wr&&Wr.require&&Wr.require("util").types;return e||Pa&&Pa.binding&&Pa.binding("util")}catch{}}(),mt=Ku;var Fn=mt&&mt.isTypedArray,Ju=Fn?At(Fn):Tn,Ot=Ju;var Zu=Object.prototype,Xu=Zu.hasOwnProperty;function Yu(e,r){var i=X(e),t=!i&&Je(e),a=!i&&!t&&Ze(e),o=!i&&!t&&!a&&Ot(e),n=i||t||a||o,s=n?vn(e.length,String):[],l=s.length;for(var u in e)(r||Xu.call(e,u))&&!(n&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||vr(u,l)))&&s.push(u);return s}var ci=Yu;var ef=Object.prototype;function tf(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||ef;return e===i}var Et=tf;function rf(e,r){return function(i){return e(r(i))}}var ui=rf;var af=ui(Object.keys,Object),An=af;var of=Object.prototype,nf=of.hasOwnProperty;function sf(e){if(!Et(e))return An(e);var r=[];for(var i in Object(e))nf.call(e,i)&&i!="constructor"&&r.push(i);return r}var fi=sf;function lf(e){return e!=null&&Sr(e.length)&&!fr(e)}var Be=lf;function pf(e){return Be(e)?ci(e):fi(e)}var Ue=pf;function df(e,r){return e&&Ve(r,Ue(r),e)}var On=df;function cf(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}var En=cf;var uf=Object.prototype,ff=uf.hasOwnProperty;function hf(e){if(!le(e))return En(e);var r=Et(e),i=[];for(var t in e)t=="constructor"&&(r||!ff.call(e,t))||i.push(t);return i}var Ln=hf;function mf(e){return Be(e)?ci(e,!0):Ln(e)}var Ge=mf;function yf(e,r){return e&&Ve(r,Ge(r),e)}var Dn=yf;var Rn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jn=Rn&&typeof module=="object"&&module&&!module.nodeType&&module,gf=jn&&jn.exports===Rn,$n=gf?he.Buffer:void 0,_n=$n?$n.allocUnsafe:void 0;function bf(e,r){if(r)return e.slice();var i=e.length,t=_n?_n(i):new e.constructor(i);return e.copy(t),t}var hi=bf;function vf(e,r){var i=-1,t=e.length;for(r||(r=Array(t));++i<t;)r[i]=e[i];return r}var mi=vf;function Sf(e,r){for(var i=-1,t=e==null?0:e.length,a=0,o=[];++i<t;){var n=e[i];r(n,i,e)&&(o[a++]=n)}return o}var kn=Sf;function wf(){return[]}var yi=wf;var xf=Object.prototype,If=xf.propertyIsEnumerable,Bn=Object.getOwnPropertySymbols,Cf=Bn?function(e){return e==null?[]:(e=Object(e),kn(Bn(e),function(r){return If.call(e,r)}))}:yi,wr=Cf;function Tf(e,r){return Ve(e,wr(e),r)}var qn=Tf;function Pf(e,r){for(var i=-1,t=r.length,a=e.length;++i<t;)e[a+i]=r[i];return e}var xr=Pf;var Ff=ui(Object.getPrototypeOf,Object),Ir=Ff;var Af=Object.getOwnPropertySymbols,Of=Af?function(e){for(var r=[];e;)xr(r,wr(e)),e=Ir(e);return r}:yi,gi=Of;function Ef(e,r){return Ve(e,gi(e),r)}var Mn=Ef;function Lf(e,r,i){var t=r(e);return X(e)?t:xr(t,i(e))}var bi=Lf;function Df(e){return bi(e,Ue,wr)}var zr=Df;function jf(e){return bi(e,Ge,gi)}var Nn=jf;var $f=ke(he,"DataView"),vi=$f;var _f=ke(he,"Promise"),Si=_f;var Rf=ke(he,"Set"),wi=Rf;var kf=ke(he,"WeakMap"),xi=kf;var Wn="[object Map]",Bf="[object Object]",zn="[object Promise]",Vn="[object Set]",Un="[object WeakMap]",Gn="[object DataView]",qf=ft(vi),Mf=ft(Pt),Nf=ft(Si),Wf=ft(wi),zf=ft(xi),Gt=$e;(vi&&Gt(new vi(new ArrayBuffer(1)))!=Gn||Pt&&Gt(new Pt)!=Wn||Si&&Gt(Si.resolve())!=zn||wi&&Gt(new wi)!=Vn||xi&&Gt(new xi)!=Un)&&(Gt=function(e){var r=$e(e),i=r==Bf?e.constructor:void 0,t=i?ft(i):"";if(t)switch(t){case qf:return Gn;case Mf:return Wn;case Nf:return zn;case Wf:return Vn;case zf:return Un}return r});var Xe=Gt;var Vf=Object.prototype,Uf=Vf.hasOwnProperty;function Gf(e){var r=e.length,i=new e.constructor(r);return r&&typeof e[0]=="string"&&Uf.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var Hn=Gf;var Hf=he.Uint8Array,Cr=Hf;function Qf(e){var r=new e.constructor(e.byteLength);return new Cr(r).set(new Cr(e)),r}var Tr=Qf;function Kf(e,r){var i=r?Tr(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var Qn=Kf;var Jf=/\w*$/;function Zf(e){var r=new e.constructor(e.source,Jf.exec(e));return r.lastIndex=e.lastIndex,r}var Kn=Zf;var Jn=Te?Te.prototype:void 0,Zn=Jn?Jn.valueOf:void 0;function Xf(e){return Zn?Object(Zn.call(e)):{}}var Xn=Xf;function Yf(e,r){var i=r?Tr(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var Ii=Yf;var eh="[object Boolean]",th="[object Date]",rh="[object Map]",ih="[object Number]",ah="[object RegExp]",oh="[object Set]",nh="[object String]",sh="[object Symbol]",lh="[object ArrayBuffer]",ph="[object DataView]",dh="[object Float32Array]",ch="[object Float64Array]",uh="[object Int8Array]",fh="[object Int16Array]",hh="[object Int32Array]",mh="[object Uint8Array]",yh="[object Uint8ClampedArray]",gh="[object Uint16Array]",bh="[object Uint32Array]";function vh(e,r,i){var t=e.constructor;switch(r){case lh:return Tr(e);case eh:case th:return new t(+e);case ph:return Qn(e,i);case dh:case ch:case uh:case fh:case hh:case mh:case yh:case gh:case bh:return Ii(e,i);case rh:return new t;case ih:case nh:return new t(e);case ah:return Kn(e);case oh:return new t;case sh:return Xn(e)}}var Yn=vh;var es=Object.create,Sh=function(){function e(){}return function(r){if(!le(r))return{};if(es)return es(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}(),ts=Sh;function wh(e){return typeof e.constructor=="function"&&!Et(e)?ts(Ir(e)):{}}var Ci=wh;var xh="[object Map]";function Ih(e){return be(e)&&Xe(e)==xh}var rs=Ih;var is=mt&&mt.isMap,Ch=is?At(is):rs,as=Ch;var Th="[object Set]";function Ph(e){return be(e)&&Xe(e)==Th}var os=Ph;var ns=mt&&mt.isSet,Fh=ns?At(ns):os,ss=Fh;var Ah=1,Oh=2,Eh=4,ls="[object Arguments]",Lh="[object Array]",Dh="[object Boolean]",jh="[object Date]",$h="[object Error]",ps="[object Function]",_h="[object GeneratorFunction]",Rh="[object Map]",kh="[object Number]",ds="[object Object]",Bh="[object RegExp]",qh="[object Set]",Mh="[object String]",Nh="[object Symbol]",Wh="[object WeakMap]",zh="[object ArrayBuffer]",Vh="[object DataView]",Uh="[object Float32Array]",Gh="[object Float64Array]",Hh="[object Int8Array]",Qh="[object Int16Array]",Kh="[object Int32Array]",Jh="[object Uint8Array]",Zh="[object Uint8ClampedArray]",Xh="[object Uint16Array]",Yh="[object Uint32Array]",re={};re[ls]=re[Lh]=re[zh]=re[Vh]=re[Dh]=re[jh]=re[Uh]=re[Gh]=re[Hh]=re[Qh]=re[Kh]=re[Rh]=re[kh]=re[ds]=re[Bh]=re[qh]=re[Mh]=re[Nh]=re[Jh]=re[Zh]=re[Xh]=re[Yh]=!0;re[$h]=re[ps]=re[Wh]=!1;function Ti(e,r,i,t,a,o){var n,s=r&Ah,l=r&Oh,u=r&Eh;if(i&&(n=a?i(e,t,a,o):i(e)),n!==void 0)return n;if(!le(e))return e;var d=X(e);if(d){if(n=Hn(e),!s)return mi(e,n)}else{var c=Xe(e),p=c==ps||c==_h;if(Ze(e))return hi(e,s);if(c==ds||c==ls||p&&!a){if(n=l||p?{}:Ci(e),!s)return l?Mn(e,Dn(n,e)):qn(e,On(n,e))}else{if(!re[c])return a?e:{};n=Yn(e,c,s)}}o||(o=new nt);var h=o.get(e);if(h)return h;o.set(e,n),ss(e)?e.forEach(function(v){n.add(Ti(v,r,i,v,e,o))}):as(e)&&e.forEach(function(v,x){n.set(x,Ti(v,r,i,x,e,o))});var y=u?l?Nn:zr:l?Ge:Ue,m=d?void 0:y(e);return bn(m||e,function(v,x){m&&(x=v,v=e[x]),di(n,x,Ti(v,r,i,x,e,o))}),n}var cs=Ti;var em=1,tm=4;function rm(e){return cs(e,em|tm)}var im=rm;var am=function(){return he.Date.now()},Pi=am;var om="Expected a function",nm=Math.max,sm=Math.min;function lm(e,r,i){var t,a,o,n,s,l,u=0,d=!1,c=!1,p=!0;if(typeof e!="function")throw new TypeError(om);r=li(r)||0,le(i)&&(d=!!i.leading,c="maxWait"in i,o=c?nm(li(i.maxWait)||0,r):o,p="trailing"in i?!!i.trailing:p);function h(L){var O=t,E=a;return t=a=void 0,u=L,n=e.apply(E,O),n}function y(L){return u=L,s=setTimeout(x,r),d?h(L):n}function m(L){var O=L-l,E=L-u,_=r-O;return c?sm(_,o-E):_}function v(L){var O=L-l,E=L-u;return l===void 0||O>=r||O<0||c&&E>=o}function x(){var L=Pi();if(v(L))return S(L);s=setTimeout(x,m(L))}function S(L){return s=void 0,p&&t?h(L):(t=a=void 0,n)}function T(){s!==void 0&&clearTimeout(s),u=0,t=l=a=s=void 0}function P(){return s===void 0?n:S(Pi())}function A(){var L=Pi(),O=v(L);if(t=arguments,a=this,l=L,O){if(s===void 0)return y(l);if(c)return clearTimeout(s),s=setTimeout(x,r),h(l)}return s===void 0&&(s=setTimeout(x,r)),n}return A.cancel=T,A.flush=P,A}var pm=lm;function dm(e,r,i){(i!==void 0&&!ze(e[r],i)||i===void 0&&!(r in e))&&br(e,r,i)}var Vr=dm;function cm(e){return function(r,i,t){for(var a=-1,o=Object(r),n=t(r),s=n.length;s--;){var l=n[e?s:++a];if(i(o[l],l,o)===!1)break}return r}}var us=cm;var um=us(),Fi=um;function fm(e){return be(e)&&Be(e)}var fs=fm;var hm="[object Object]",mm=Function.prototype,ym=Object.prototype,hs=mm.toString,gm=ym.hasOwnProperty,bm=hs.call(Object);function vm(e){if(!be(e)||$e(e)!=hm)return!1;var r=Ir(e);if(r===null)return!0;var i=gm.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&hs.call(i)==bm}var Ai=vm;function Sm(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}var Ur=Sm;function wm(e){return Ve(e,Ge(e))}var ms=wm;function xm(e,r,i,t,a,o,n){var s=Ur(e,i),l=Ur(r,i),u=n.get(l);if(u){Vr(e,i,u);return}var d=o?o(s,l,i+"",e,r,n):void 0,c=d===void 0;if(c){var p=X(l),h=!p&&Ze(l),y=!p&&!h&&Ot(l);d=l,p||h||y?X(s)?d=s:fs(s)?d=mi(s):h?(c=!1,d=hi(l,!0)):y?(c=!1,d=Ii(l,!0)):d=[]:Ai(l)||Je(l)?(d=s,Je(s)?d=ms(s):(!le(s)||fr(s))&&(d=Ci(l))):c=!1}c&&(n.set(l,d),a(d,l,t,o,n),n.delete(l)),Vr(e,i,d)}var ys=xm;function gs(e,r,i,t,a){e!==r&&Fi(r,function(o,n){if(a||(a=new nt),le(o))ys(e,r,n,i,gs,t,a);else{var s=t?t(Ur(e,n),o,n+"",e,r,a):void 0;s===void 0&&(s=o),Vr(e,n,s)}},Ge)}var Oi=gs;function Im(e){return e}var Lt=Im;function Cm(e,r,i){switch(i.length){case 0:return e.call(r);case 1:return e.call(r,i[0]);case 2:return e.call(r,i[0],i[1]);case 3:return e.call(r,i[0],i[1],i[2])}return e.apply(r,i)}var Ei=Cm;var bs=Math.max;function Tm(e,r,i){return r=bs(r===void 0?e.length-1:r,0),function(){for(var t=arguments,a=-1,o=bs(t.length-r,0),n=Array(o);++a<o;)n[a]=t[r+a];a=-1;for(var s=Array(r+1);++a<r;)s[a]=t[a];return s[r]=i(n),Ei(e,this,s)}}var vs=Tm;function Pm(e){return function(){return e}}var Ss=Pm;var Fm=gr?function(e,r){return gr(e,"toString",{configurable:!0,enumerable:!1,value:Ss(r),writable:!0})}:Lt,ws=Fm;var Am=800,Om=16,Em=Date.now;function Lm(e){var r=0,i=0;return function(){var t=Em(),a=Om-(t-i);if(i=t,a>0){if(++r>=Am)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}var xs=Lm;var Dm=xs(ws),Is=Dm;function jm(e,r){return Is(vs(e,r,Lt),e+"")}var Pr=jm;function $m(e,r,i){if(!le(i))return!1;var t=typeof r;return(t=="number"?Be(i)&&vr(r,i.length):t=="string"&&r in i)?ze(i[r],e):!1}var Ht=$m;function _m(e){return Pr(function(r,i){var t=-1,a=i.length,o=a>1?i[a-1]:void 0,n=a>2?i[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,n&&Ht(i[0],i[1],n)&&(o=a<3?void 0:o,a=1),r=Object(r);++t<a;){var s=i[t];s&&e(r,s,t,o)}return r})}var Fr=_m;var Rm=Fr(function(e,r,i,t){Oi(e,r,i,t)}),km=Rm;var Bm="[object Map]",qm="[object Set]",Mm=Object.prototype,Nm=Mm.hasOwnProperty;function Wm(e){if(e==null)return!0;if(Be(e)&&(X(e)||typeof e=="string"||typeof e.splice=="function"||Ze(e)||Ot(e)||Je(e)))return!e.length;var r=Xe(e);if(r==Bm||r==qm)return!e.size;if(Et(e))return!fi(e).length;for(var i in e)if(Nm.call(e,i))return!1;return!0}var zm=Wm;var Vm="__lodash_hash_undefined__";function Um(e){return this.__data__.set(e,Vm),this}var Cs=Um;function Gm(e){return this.__data__.has(e)}var Ts=Gm;function Li(e){var r=-1,i=e==null?0:e.length;for(this.__data__=new Ut;++r<i;)this.add(e[r])}Li.prototype.add=Li.prototype.push=Cs;Li.prototype.has=Ts;var Ps=Li;function Hm(e,r){for(var i=-1,t=e==null?0:e.length;++i<t;)if(r(e[i],i,e))return!0;return!1}var Fs=Hm;function Qm(e,r){return e.has(r)}var As=Qm;var Km=1,Jm=2;function Zm(e,r,i,t,a,o){var n=i&Km,s=e.length,l=r.length;if(s!=l&&!(n&&l>s))return!1;var u=o.get(e),d=o.get(r);if(u&&d)return u==r&&d==e;var c=-1,p=!0,h=i&Jm?new Ps:void 0;for(o.set(e,r),o.set(r,e);++c<s;){var y=e[c],m=r[c];if(t)var v=n?t(m,y,c,r,e,o):t(y,m,c,e,r,o);if(v!==void 0){if(v)continue;p=!1;break}if(h){if(!Fs(r,function(x,S){if(!As(h,S)&&(y===x||a(y,x,i,t,o)))return h.push(S)})){p=!1;break}}else if(!(y===m||a(y,m,i,t,o))){p=!1;break}}return o.delete(e),o.delete(r),p}var Di=Zm;function Xm(e){var r=-1,i=Array(e.size);return e.forEach(function(t,a){i[++r]=[a,t]}),i}var Os=Xm;function Ym(e){var r=-1,i=Array(e.size);return e.forEach(function(t){i[++r]=t}),i}var Es=Ym;var ey=1,ty=2,ry="[object Boolean]",iy="[object Date]",ay="[object Error]",oy="[object Map]",ny="[object Number]",sy="[object RegExp]",ly="[object Set]",py="[object String]",dy="[object Symbol]",cy="[object ArrayBuffer]",uy="[object DataView]",Ls=Te?Te.prototype:void 0,Fa=Ls?Ls.valueOf:void 0;function fy(e,r,i,t,a,o,n){switch(i){case uy:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case cy:return!(e.byteLength!=r.byteLength||!o(new Cr(e),new Cr(r)));case ry:case iy:case ny:return ze(+e,+r);case ay:return e.name==r.name&&e.message==r.message;case sy:case py:return e==r+"";case oy:var s=Os;case ly:var l=t&ey;if(s||(s=Es),e.size!=r.size&&!l)return!1;var u=n.get(e);if(u)return u==r;t|=ty,n.set(e,r);var d=Di(s(e),s(r),t,a,o,n);return n.delete(e),d;case dy:if(Fa)return Fa.call(e)==Fa.call(r)}return!1}var Ds=fy;var hy=1,my=Object.prototype,yy=my.hasOwnProperty;function gy(e,r,i,t,a,o){var n=i&hy,s=zr(e),l=s.length,u=zr(r),d=u.length;if(l!=d&&!n)return!1;for(var c=l;c--;){var p=s[c];if(!(n?p in r:yy.call(r,p)))return!1}var h=o.get(e),y=o.get(r);if(h&&y)return h==r&&y==e;var m=!0;o.set(e,r),o.set(r,e);for(var v=n;++c<l;){p=s[c];var x=e[p],S=r[p];if(t)var T=n?t(S,x,p,r,e,o):t(x,S,p,e,r,o);if(!(T===void 0?x===S||a(x,S,i,t,o):T)){m=!1;break}v||(v=p=="constructor")}if(m&&!v){var P=e.constructor,A=r.constructor;P!=A&&"constructor"in e&&"constructor"in r&&!(typeof P=="function"&&P instanceof P&&typeof A=="function"&&A instanceof A)&&(m=!1)}return o.delete(e),o.delete(r),m}var js=gy;var by=1,$s="[object Arguments]",_s="[object Array]",ji="[object Object]",vy=Object.prototype,Rs=vy.hasOwnProperty;function Sy(e,r,i,t,a,o){var n=X(e),s=X(r),l=n?_s:Xe(e),u=s?_s:Xe(r);l=l==$s?ji:l,u=u==$s?ji:u;var d=l==ji,c=u==ji,p=l==u;if(p&&Ze(e)){if(!Ze(r))return!1;n=!0,d=!1}if(p&&!d)return o||(o=new nt),n||Ot(e)?Di(e,r,i,t,a,o):Ds(e,r,l,i,t,a,o);if(!(i&by)){var h=d&&Rs.call(e,"__wrapped__"),y=c&&Rs.call(r,"__wrapped__");if(h||y){var m=h?e.value():e,v=y?r.value():r;return o||(o=new nt),a(m,v,i,t,o)}}return p?(o||(o=new nt),js(e,r,i,t,a,o)):!1}var ks=Sy;function Bs(e,r,i,t,a){return e===r?!0:e==null||r==null||!be(e)&&!be(r)?e!==e&&r!==r:ks(e,r,i,t,Bs,a)}var Ar=Bs;function wy(e,r){return Ar(e,r)}var qs=wy;function xy(e){return e==null}var Aa=xy;var Iy=Fr(function(e,r,i){Oi(e,r,i)}),Cy=Iy;var Ms=Te?Te.isConcatSpreadable:void 0;function Ty(e){return X(e)||Je(e)||!!(Ms&&e&&e[Ms])}var Ns=Ty;function Ws(e,r,i,t,a){var o=-1,n=e.length;for(i||(i=Ns),a||(a=[]);++o<n;){var s=e[o];r>0&&i(s)?r>1?Ws(s,r-1,i,t,a):xr(a,s):t||(a[a.length]=s)}return a}var zs=Ws;function Py(e,r){for(var i=-1,t=e==null?0:e.length,a=Array(t);++i<t;)a[i]=r(e[i],i,e);return a}var Dt=Py;var Fy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ay=/^\w*$/;function Oy(e,r){if(X(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="boolean"||e==null||Ke(e)?!0:Ay.test(e)||!Fy.test(e)||r!=null&&e in Object(r)}var Or=Oy;var Ey="Expected a function";function Oa(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Ey);var i=function(){var t=arguments,a=r?r.apply(this,t):t[0],o=i.cache;if(o.has(a))return o.get(a);var n=e.apply(this,t);return i.cache=o.set(a,n)||o,n};return i.cache=new(Oa.Cache||Ut),i}Oa.Cache=Ut;var Ea=Oa;var Ly=500;function Dy(e){var r=Ea(e,function(t){return i.size===Ly&&i.clear(),t}),i=r.cache;return r}var Vs=Dy;var jy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$y=/\\(\\)?/g,_y=Vs(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(jy,function(i,t,a,o){r.push(a?o.replace($y,"$1"):t||i)}),r}),Us=_y;var Ry=1/0,Gs=Te?Te.prototype:void 0,Hs=Gs?Gs.toString:void 0;function Qs(e){if(typeof e=="string")return e;if(X(e))return Dt(e,Qs)+"";if(Ke(e))return Hs?Hs.call(e):"";var r=e+"";return r=="0"&&1/e==-Ry?"-0":r}var Ks=Qs;function ky(e){return e==null?"":Ks(e)}var Er=ky;function By(e,r){return X(e)?e:Or(e,r)?[e]:Us(Er(e))}var $i=By;var qy=1/0;function My(e){if(typeof e=="string"||Ke(e))return e;var r=e+"";return r=="0"&&1/e==-qy?"-0":r}var jt=My;function Ny(e,r){r=$i(r,e);for(var i=0,t=r.length;e!=null&&i<t;)e=e[jt(r[i++])];return i&&i==t?e:void 0}var Lr=Ny;var Wy=1,zy=2;function Vy(e,r,i,t){var a=i.length,o=a,n=!t;if(e==null)return!o;for(e=Object(e);a--;){var s=i[a];if(n&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){s=i[a];var l=s[0],u=e[l],d=s[1];if(n&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new nt;if(t)var p=t(u,d,l,e,r,c);if(!(p===void 0?Ar(d,u,Wy|zy,t,c):p))return!1}}return!0}var Js=Vy;function Uy(e){return e===e&&!le(e)}var _i=Uy;function Gy(e){for(var r=Ue(e),i=r.length;i--;){var t=r[i],a=e[t];r[i]=[t,a,_i(a)]}return r}var Zs=Gy;function Hy(e,r){return function(i){return i==null?!1:i[e]===r&&(r!==void 0||e in Object(i))}}var Ri=Hy;function Qy(e){var r=Zs(e);return r.length==1&&r[0][2]?Ri(r[0][0],r[0][1]):function(i){return i===e||Js(i,e,r)}}var Xs=Qy;function Ky(e,r,i){var t=e==null?void 0:Lr(e,r);return t===void 0?i:t}var Ys=Ky;function Jy(e,r){return e!=null&&r in Object(e)}var el=Jy;function Zy(e,r,i){r=$i(r,e);for(var t=-1,a=r.length,o=!1;++t<a;){var n=jt(r[t]);if(!(o=e!=null&&i(e,n)))break;e=e[n]}return o||++t!=a?o:(a=e==null?0:e.length,!!a&&Sr(a)&&vr(n,a)&&(X(e)||Je(e)))}var tl=Zy;function Xy(e,r){return e!=null&&tl(e,r,el)}var rl=Xy;var Yy=1,eg=2;function tg(e,r){return Or(e)&&_i(r)?Ri(jt(e),r):function(i){var t=Ys(i,e);return t===void 0&&t===r?rl(i,e):Ar(r,t,Yy|eg)}}var il=tg;function rg(e){return function(r){return r?.[e]}}var al=rg;function ig(e){return function(r){return Lr(r,e)}}var ol=ig;function ag(e){return Or(e)?al(jt(e)):ol(e)}var nl=ag;function og(e){return typeof e=="function"?e:e==null?Lt:typeof e=="object"?X(e)?il(e[0],e[1]):Xs(e):nl(e)}var sl=og;function ng(e,r){return e&&Fi(e,r,Ue)}var ll=ng;function sg(e,r){return function(i,t){if(i==null)return i;if(!Be(i))return e(i,t);for(var a=i.length,o=r?a:-1,n=Object(i);(r?o--:++o<a)&&t(n[o],o,n)!==!1;);return i}}var pl=sg;var lg=pl(ll),dl=lg;function pg(e,r){var i=-1,t=Be(e)?Array(e.length):[];return dl(e,function(a,o,n){t[++i]=r(a,o,n)}),t}var cl=pg;function dg(e,r){var i=e.length;for(e.sort(r);i--;)e[i]=e[i].value;return e}var ul=dg;function cg(e,r){if(e!==r){var i=e!==void 0,t=e===null,a=e===e,o=Ke(e),n=r!==void 0,s=r===null,l=r===r,u=Ke(r);if(!s&&!u&&!o&&e>r||o&&n&&l&&!s&&!u||t&&n&&l||!i&&l||!a)return 1;if(!t&&!o&&!u&&e<r||u&&i&&a&&!t&&!o||s&&i&&a||!n&&a||!l)return-1}return 0}var fl=cg;function ug(e,r,i){for(var t=-1,a=e.criteria,o=r.criteria,n=a.length,s=i.length;++t<n;){var l=fl(a[t],o[t]);if(l){if(t>=s)return l;var u=i[t];return l*(u=="desc"?-1:1)}}return e.index-r.index}var hl=ug;function fg(e,r,i){r.length?r=Dt(r,function(o){return X(o)?function(n){return Lr(n,o.length===1?o[0]:o)}:o}):r=[Lt];var t=-1;r=Dt(r,At(sl));var a=cl(e,function(o,n,s){var l=Dt(r,function(u){return u(o)});return{criteria:l,index:++t,value:o}});return ul(a,function(o,n){return hl(o,n,i)})}var ml=fg;var hg=Pr(function(e,r){if(e==null)return[];var i=r.length;return i>1&&Ht(e,r[0],r[1])?r=[]:i>2&&Ht(r[0],r[1],r[2])&&(r=[r[0]]),ml(e,zs(r,1),[])}),mg=hg;var yg=Fr(function(e,r,i,t){Ve(r,Ge(r),e,t)}),La=yg;var gg="[object DOMException]",bg="[object Error]";function vg(e){if(!be(e))return!1;var r=$e(e);return r==bg||r==gg||typeof e.message=="string"&&typeof e.name=="string"&&!Ai(e)}var ki=vg;var Sg=Pr(function(e,r){try{return Ei(e,void 0,r)}catch(i){return ki(i)?i:new Error(i)}}),yl=Sg;function wg(e){return function(r){return e?.[r]}}var gl=wg;var xg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ig=gl(xg),bl=Ig;var vl=/[&<>"']/g,Cg=RegExp(vl.source);function Tg(e){return e=Er(e),e&&Cg.test(e)?e.replace(vl,bl):e}var Sl=Tg;function Pg(e,r){return Dt(r,function(i){return e[i]})}var wl=Pg;function Fg(e){return e===null}var Ag=Fg;var xl=Object.prototype,Og=xl.hasOwnProperty;function Eg(e,r,i,t){return e===void 0||ze(e,xl[i])&&!Og.call(t,i)?r:e}var Da=Eg;var Lg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Dg(e){return"\\"+Lg[e]}var Il=Dg;var jg=/<%=([\s\S]+?)%>/g,Bi=jg;var $g=/<%-([\s\S]+?)%>/g,Cl=$g;var _g=/<%([\s\S]+?)%>/g,Tl=_g;var Rg={escape:Cl,evaluate:Tl,interpolate:Bi,variable:"",imports:{_:{escape:Sl}}},ja=Rg;var kg="Invalid `variable` option passed into `_.template`",Bg=/\b__p \+= '';/g,qg=/\b(__p \+=) '' \+/g,Mg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ng=/[()=,{}\[\]\/\s]/,Wg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qi=/($^)/,zg=/['\n\r\u2028\u2029\\]/g,Vg=Object.prototype,Pl=Vg.hasOwnProperty;function Ug(e,r,i){var t=ja.imports._.templateSettings||ja;i&&Ht(e,r,i)&&(r=void 0),e=Er(e),r=La({},r,t,Da);var a=La({},r.imports,t.imports,Da),o=Ue(a),n=wl(a,o),s,l,u=0,d=r.interpolate||qi,c="__p += '",p=RegExp((r.escape||qi).source+"|"+d.source+"|"+(d===Bi?Wg:qi).source+"|"+(r.evaluate||qi).source+"|$","g"),h=Pl.call(r,"sourceURL")?"//# sourceURL="+(r.sourceURL+"").replace(/\s/g," ")+`
5
5
  `:"";e.replace(p,function(v,x,S,T,P,A){return S||(S=T),c+=e.slice(u,A).replace(zg,Il),x&&(s=!0,c+=`' +
6
6
  __e(`+x+`) +
7
7
  '`),P&&(l=!0,c+=`';
@@ -50,5 +50,5 @@ Currently this property is only used for bar and line series.`,default:"sideBySi
50
50
 
51
51
  {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PublishingInfo.html#status Read more...}`},updating:{type:"boolean",description:"Indicates if the layer's status is still being updated.",default:`false
52
52
 
53
- {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PublishingInfo.html#updating Read more...}`}},required:["declaredClass","destroyed","initialized","status","updating"],title:"__esri.PublishingInfo"},"__esri.ScaleRangeLayer":{type:"object",properties:{maxScale:{type:"number"},minScale:{type:"number"}},required:["maxScale","minScale"],title:"__esri.ScaleRangeLayer"},"__esri.TemporalLayer":{type:"object",properties:{useViewTime:{type:"boolean"}},required:["useViewTime"],title:"__esri.TemporalLayer"},"__esri.TrackableLayer":{type:"object",title:"__esri.TrackableLayer"},"__esri.SubtypeSublayer":{type:"object",properties:{uid:{type:"string"},loadError:{anyOf:[{$ref:"#/definitions/__esri.Error"},{$ref:"#/definitions/nullish"}]},loadStatus:{type:"string",enum:["not-loaded","loading","failed","loaded"]},loadWarnings:{type:"array",items:{}},destroyed:{type:"boolean"},initialized:{type:"boolean"},declaredClass:{type:"string"}},required:["declaredClass","destroyed","initialized","loadError","loadStatus","loadWarnings","uid"],title:"__esri.SubtypeSublayer"},RGBObject:{type:"object",properties:{r:{type:"number"},g:{type:"number"},b:{type:"number"},a:{type:"number",default:1}},required:["r","g","b"],description:"JSON representation of the color object",title:"RGBObject"},IRendererSymbol:{type:"object",properties:{style:{type:"string"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},label:{type:"string"},uniqueValue:{type:"string"},type:{$ref:"#/definitions/SymbolType"}},required:["color","type"],title:"IRendererSymbol"},WebChartDataItemColor:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/RGBArray"},{$ref:"#/definitions/RGBObject"},{type:"string"}],title:"WebChartDataItemColor"},RGBArray:{type:"array",items:{type:"number"},minItems:3,maxItems:3,title:"RGBArray"},WebChartDataItemValue:{anyOf:[{type:"string",format:"date-time"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IRendererSymbol"},{type:"array",items:{type:"number"}},{type:"array",items:{type:"string"}},{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},{$ref:"#/definitions/WebChartDataItemColor"},{type:"boolean"},{type:"number"},{type:"string"},{type:"null"},{not:{}}],title:"WebChartDataItemValue"},WebChartDataItem:{$ref:"#/definitions/Record%3Cstring%2CWebChartDataItemValue%3E",description:"JSON representation of a typical data item",title:"WebChartDataItem"},"Record<string,WebChartDataItemValue>":{type:"object",additionalProperties:{$ref:"#/definitions/WebChartDataItemValue"},title:"Record<string,WebChartDataItemValue>"},WebChartBoxPlotDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},outliers:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},meanLines:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}}},required:["dataItems"],description:"JSON representation of the processed data for a Box Plot",title:"WebChartBoxPlotDataItem"},ScatterplotTrendLineData:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2}},description:"JSON representation of the processed data for a Scatter plot trend line",title:"ScatterplotTrendLineData"},WebChartScatterPlotDataItem:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2},dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}}},required:["dataItems"],description:"JSON representation of the processed data for a Scatter plot",title:"WebChartScatterPlotDataItem"},WebChartGenericDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},timeIntervalInfo:{$ref:"#/definitions/TimeIntervalInfo",description:"Time interval information, only for line charts"}},required:["dataItems"],description:"JSON representation of the generic data structure for bar, line bar-line, gauge and pie chart",title:"WebChartGenericDataItem"},WebChartBin:{type:"object",properties:{count:{type:"number"},minValue:{type:"number",description:"Min value in the bin"},maxValue:{type:"number",description:"Max value in the bin"},symbol:{$ref:"#/definitions/WebChartDataItem"}},required:["count","minValue","maxValue"],description:"JSON representation of a Histogram bin",title:"WebChartBin"},WebChartHistogramDataItem:{type:"object",properties:{mean:{type:"number"},median:{type:"number"},stddev:{type:"number"},max:{type:"number"},min:{type:"number"},sum:{type:"number",description:"Sum of the values of all the points"},count:{type:"number",description:"Number of all the points/features in un-binned data (including only non-null entries)"},nulls:{type:"number",description:"Number of null entries in the pool of points"},bins:{type:"array",items:{$ref:"#/definitions/WebChartBin"}}},required:["mean","median","stddev","max","min","bins"],description:"JSON representation of the processed data for a Histogram",title:"WebChartHistogramDataItem"},WebChartDataTypes:{anyOf:[{$ref:"#/definitions/WebChartBoxPlotDataItem"},{$ref:"#/definitions/WebChartGenericDataItem"},{$ref:"#/definitions/WebChartHistogramDataItem"},{$ref:"#/definitions/WebChartScatterPlotDataItem"}],title:"WebChartDataTypes"},WebChartTypes:{type:"string",enum:["chart","chartText","chartOverlay","chartOverlays","chartLegend","cursorCrosshair","chartAxis","gaugeAxisTick","gaugeNeedle","category","number","date","chartGuide","scatterSeries","pieSeries","pieTick","gaugeSeries","lineSeries","barSeries","histogramSeries","boxPlotSeries","radarSeries","comboLineAndBarSeries","buffer","sizeScale"],title:"WebChartTypes"},WebChartStatisticType:{type:"string",enum:["count","sum","min","max","avg","stddev","var","percentile-continuous","percentile-discrete","envelope-aggregate","centroid-aggregate","convex-hull-aggregate","no_aggregation"],title:"WebChartStatisticType"},WebChartColoringPatterns:{type:"string",enum:["singleColor","colorMatch"],title:"WebChartColoringPatterns"},WebChartBoxPlotMultipleSeriesKinds:{type:"string",enum:["sideBySide","meanLines"],title:"WebChartBoxPlotMultipleSeriesKinds"},WebChartLineSmoothedKinds:{type:"string",enum:["bezier","monotoneX","monotoneY"],description:"Represents the different types of smoothing that can be applied to a line chart when the `lineSmoothed` property is set to `true`.",title:"WebChartLineSmoothedKinds"},WebChartTemporalBinningTypes:{type:"string",enum:["fixedDateBased","calendarBased"],description:"Represents the different types of temporal binning that can be applied to a chart.",title:"WebChartTemporalBinningTypes"},WebChartCalendarBinningUnits:{type:"string",enum:["seconds","Minutes","hours","days","weeks","months","quarters","years"],description:"The temporal binning units for calendar based binning",title:"WebChartCalendarBinningUnits"},WebChartVersionStatus:{type:"string",enum:["same","newer","older","unrecognized"],title:"WebChartVersionStatus"},WebChartAxisTypes:{type:"string",enum:["value","date","category"],description:"Represents the different types of axes that can be used in a chart.",title:"WebChartAxisTypes"},RESTFieldType:{type:"string",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeString","esriFieldTypeXML"],title:"RESTFieldType"},RESTSimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"RESTSimpleLineSymbolStyle"},RESTSimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSX","esriSMSTriangle"],title:"RESTSimpleMarkerSymbolStyle"},RESTSimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"RESTSimpleFillSymbolStyle"},RESTHorizontalAlignment:{type:"string",enum:["left","right","center","justify"],title:"RESTHorizontalAlignment"},RESTVerticalAlignment:{type:"string",enum:["baseline","top","middle","bottom"],title:"RESTVerticalAlignment"},RESTSymbolType:{type:"string",enum:["esriSLS","esriSMS","esriSFS","esriPMS","esriPFS","esriTS"],title:"RESTSymbolType"},RESTFontStyle:{type:"string",enum:["italic","normal","oblique"],title:"RESTFontStyle"},RESTFontWeight:{type:"string",enum:["bold","bolder","lighter","normal"],title:"RESTFontWeight"},RESTFontDecoration:{type:"string",enum:["line-through","underline","none"],title:"RESTFontDecoration"},RESTRendererType:{type:"string",enum:["unique-value","simple","class-breaks","heatmap","dot-density","dictionary","pie-chart"],title:"RESTRendererType"},OverlayTerms:{type:"string",enum:["Mean","Median","Standard Deviation","Normal Distribution","Trendline"],title:"OverlayTerms"},CalculatedMinMaxBoundsPayload:{type:"object",properties:{isXAxis:{type:"boolean"},isSecondValueAxis:{type:"boolean"},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."}},required:["isXAxis"],description:"+ Represents a subset of the event payload carrying the chart's axes bounds. See event `arcgisChartsAxesMinMaxChange`.",title:"CalculatedMinMaxBoundsPayload"},ChartDeletePayload:{type:"object",properties:{chartId:{type:"string"}},required:["chartId"],description:"Represents the payload of the event sent when a chart is removed from the chart list (component arcgis-charts-config-view-charts).",title:"ChartDeletePayload"},LegendItemVisibility:{type:"object",properties:{visible:{type:"boolean"},seriesId:{type:"string"},overlayType:{$ref:"#/definitions/OverlayTerms"},sliceId:{type:"string"},sliceData:{$ref:"#/definitions/WebChartDataItem"}},required:["visible"],description:"Represents the payload of the event sent when an item is toggled in the chart's legend (slice or series).",title:"LegendItemVisibility"},IFeatureSet:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"},objectIdFieldName:{type:"string"},globalIdFieldName:{type:"string"},displayFieldName:{type:"string"},geometryType:{$ref:"#/definitions/GeometryType"},spatialReference:{$ref:"#/definitions/ISpatialReference"},fields:{type:"array",items:{$ref:"#/definitions/IField"}},features:{type:"array",items:{$ref:"#/definitions/IFeature"}},fieldAliases:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"}},required:["features"],description:'`IFeatureSet` can also be imported from the following packages:\n\n```js import { IFeatureSet } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureSet"},"Record<string,string>":{type:"object",additionalProperties:{type:"string"},title:"Record<string,string>"},ILocation:{type:"object",properties:{latitude:{type:"number"},longitude:{type:"number"},lat:{type:"number"},long:{type:"number"},z:{type:"number"}},description:'`ILocation` can also be imported from the following packages:\n\n```js import { ILocation } from "@esri/arcgis-rest-routing"; import { ILocation } from "@esri/arcgis-rest-geocoding"; ```',title:"ILocation"},IPolylineWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curvePaths:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curvePaths"],title:"IPolylineWithCurves"},ElipticArc:{$ref:"#/definitions/IArc",title:"ElipticArc"},SpatialRelationship:{type:"string",enum:["esriSpatialRelContains","esriSpatialRelCrosses","esriSpatialRelEnvelopeIntersects","esriSpatialRelIndexIntersects","esriSpatialRelIntersects","esriSpatialRelOverlaps","esriSpatialRelTouches","esriSpatialRelWithin"],description:'The spatial relationship used to compare input geometries\n\n`SpatialRelationship` can also be imported from the following packages:\n\n```js import { SpatialRelationship } from "@esri/arcgis-rest-feature-layer"; ```',title:"SpatialRelationship"},IMultipoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},points:{type:"array",items:{$ref:"#/definitions/Position"}}},required:["points"],description:"A multipoint contains an array of points.",title:"IMultipoint"},Units:{type:"string",enum:["esriSRUnit_Foot","esriSRUnit_Kilometer","esriSRUnit_Meter","esriSRUnit_NauticalMile","esriSRUnit_StatuteMile","esriSRUnit_USNauticalMile"],description:'`Units` can also be imported from the following packages:\n\n```js import { Units } from "@esri/arcgis-rest-feature-layer"; ```',title:"Units"},GroupMembership:{type:"string",enum:["admin","member","none","owner"],description:'`GroupMembership` can also be imported from the following packages:\n\n```js import { GroupMembership } from "@esri/arcgis-rest-portal"; ```',title:"GroupMembership"},IGroupAdd:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"}},required:["title","access"],description:'A [Group](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IGroupAdd` can also be imported from the following packages:\n\n```js import { IGroupAdd } from "@esri/arcgis-rest-portal"; ```',title:"IGroupAdd"},IGroup:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"},id:{type:"string"},created:{type:"number"},modified:{type:"number"},protected:{type:"boolean"},isOpenData:{type:"boolean"},isFav:{type:"boolean"},userMembership:{type:"object",properties:{username:{type:"string"},memberType:{$ref:"#/definitions/GroupMembership"},applications:{type:"number"}}},hasCategorySchema:{type:"boolean"}},required:["access","autoJoin","created","id","isFav","isInvitationOnly","isViewOnly","modified","owner","protected","tags","title"],description:'Existing Portal [Group](https://developers.arcgis.com/rest/users-groups-and-items/group.htm).\n\n`IGroup` can also be imported from the following packages:\n\n```js import { IGroup } from "@esri/arcgis-rest-portal"; ```',title:"IGroup"},IItemAdd:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}}},required:["title","type"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IItemAdd` can also be imported from the following packages:\n\n```js import { IItemAdd } from "@esri/arcgis-rest-portal"; ```',title:"IItemAdd"},IItemUpdate:{type:"object",properties:{id:{type:"string"}},required:["id"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) to be updated.\n\n`IItemUpdate` can also be imported from the following packages:\n\n```js import { IItemUpdate } from "@esri/arcgis-rest-portal"; ```',title:"IItemUpdate"},IItem:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}},id:{type:"string"},created:{type:"number"},modified:{type:"number"},numViews:{type:"number"},size:{type:"number"},protected:{type:"boolean"}},required:["created","id","modified","numViews","owner","size","tags","title","type"],description:'Existing Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/item.htm).\n\n`IItem` can also be imported from the following packages:\n\n```js import { IItem } from "@esri/arcgis-rest-portal"; ```',title:"IItem"},IFolder:{type:"object",properties:{username:{type:"string"},id:{type:"string"},title:{type:"string"},created:{type:"number"}},required:["username","id","title"],description:'Used for organizing content. See [Create Folder](https://developers.arcgis.com/rest/users-groups-and-items/create-folder.htm) for more details.\n\n`IFolder` can also be imported from the following packages:\n\n```js import { IFolder } from "@esri/arcgis-rest-portal"; ```',title:"IFolder"},IFeatureServiceDefinition:{type:"object",properties:{currentVersion:{type:"number"},serviceDescription:{type:"string"},hasVersionedData:{type:"boolean"},supportsDisconnectedEditing:{type:"boolean"},supportsReturnDeleteResults:{type:"boolean"},hasStaticData:{type:"boolean",description:"Boolean value indicating whether data changes. True if it does not."},maxRecordCount:{type:"number",description:"Numeric value indicating tbe maximum number of records that will be returned at once for a query."},supportedQueryFormats:{type:"string",description:"String value indicating the output formats that are supported in a query."},supportsRelationshipsResource:{type:"boolean"},capabilities:{type:"string",description:"A comma separated list of supported capabilities, e.g. Query,Editing."},description:{type:"string",description:"String value of the layer as defined in the map service."},copyrightText:{type:"string",description:"String value for the copyright text information for the layer."},advancedEditingCapabilities:{$ref:"#/definitions/Record%3Cstring%2Cboolean%3E"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"An object containing the WKID or WKT identifying the spatial reference of the layer's geometry."},initialExtent:{$ref:"#/definitions/IExtent"},fullExtent:{$ref:"#/definitions/IExtent"},allowGeometryUpdates:{type:"boolean",description:"Boolean value indicating whether the geometry of the features in the layer can be edited."},units:{type:"string"},syncEnabled:{type:"boolean"},returnServiceEditsHaveSR:{type:"boolean"},validationSystemLayers:{type:"object",properties:{validationPointErrorlayerId:{type:"number"},validationLineErrorlayerId:{type:"number"},validationPolygonErrorlayerId:{type:"number"},validationObjectErrortableId:{type:"number"}},required:["validationPointErrorlayerId","validationLineErrorlayerId","validationPolygonErrorlayerId","validationObjectErrortableId"]},extractChangesCapabilities:{type:"object",properties:{supportsReturnIdsOnly:{type:"boolean"},supportsReturnExtentOnly:{type:"boolean"},supportsReturnAttachments:{type:"boolean"},supportsLayerQueries:{type:"boolean"},supportsSpatialFilter:{type:"boolean"},supportsReturnFeature:{type:"boolean"}},required:["supportsReturnIdsOnly","supportsReturnExtentOnly","supportsReturnAttachments","supportsLayerQueries","supportsSpatialFilter","supportsReturnFeature"]},syncCapabilities:{type:"object",properties:{supportsASync:{type:"boolean"},supportsRegisteringExistingData:{type:"boolean"},supportsSyncDirectionControl:{type:"boolean"},supportsPerLayerSync:{type:"boolean"},supportsPerReplicaSync:{type:"boolean"},supportsRollbackOnFailure:{type:"boolean"},supportedSyncDataOptions:{type:"number"}},required:["supportsASync","supportsRegisteringExistingData","supportsSyncDirectionControl","supportsPerLayerSync","supportsPerReplicaSync","supportsRollbackOnFailure","supportedSyncDataOptions"]},editorTrackingInfo:{type:"object",properties:{enableEditorTracking:{type:"boolean"},enableOwnershipAccessControl:{type:"boolean"},allowOthersToUpdate:{type:"boolean"},allowOthersToDelete:{type:"boolean"}},required:["enableEditorTracking","enableOwnershipAccessControl","allowOthersToUpdate","allowOthersToDelete"]},documentInfo:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"},layers:{type:"array",items:{$ref:"#/definitions/ILayerDefinition"}},tables:{type:"array",items:{$ref:"#/definitions/ITable"}},relationships:{type:"array",items:{type:"object",properties:{id:{type:"number"},name:{type:"string"},backwardPathLabel:{type:"string"},originLayerId:{type:"number"},originPrimaryKey:{type:"string"},forwardPathLabel:{type:"string"},destinationLayerId:{type:"number"},originForeignKey:{type:"string"},relationshipTableId:{type:"number"},destinationPrimaryKey:{type:"string"},destinationForeignKey:{type:"string"},rules:{type:"array",items:{type:"object",properties:{ruleID:{type:"number"},originSubtypeCode:{type:"number"},originMinimumCardinality:{type:"number"},originMaximumCardinality:{type:"number"},destinationSubtypeCode:{type:"number"},destinationMinimumCardinality:{type:"number"},destinationMaximumCardinality:{type:"number"}},required:["ruleID","originSubtypeCode","originMinimumCardinality","originMaximumCardinality","destinationSubtypeCode","destinationMinimumCardinality","destinationMaximumCardinality"]},minItems:1,maxItems:1},cardinality:{type:"string",enum:["esriRelCardinalityManyToMany","esriRelCardinalityOneToMany","esriRelCardinalityOneToOne"]},attributed:{type:"boolean"},composite:{type:"boolean"}},required:["id","name","backwardPathLabel","originLayerId","originPrimaryKey","forwardPathLabel","destinationLayerId","originForeignKey","relationshipTableId","destinationPrimaryKey","destinationForeignKey","rules","cardinality","attributed","composite"]},minItems:1,maxItems:1},enableZDefaults:{type:"boolean"},isLocationTrackingService:{type:"boolean"},isLocationTrackingView:{type:"boolean"},zDefault:{type:"number"}},required:["serviceDescription","hasVersionedData","supportsDisconnectedEditing","supportsReturnDeleteResults","maxRecordCount","supportedQueryFormats","supportsRelationshipsResource","capabilities","description","copyrightText","advancedEditingCapabilities","spatialReference","initialExtent","fullExtent","allowGeometryUpdates","units","syncEnabled","validationSystemLayers","extractChangesCapabilities","syncCapabilities","editorTrackingInfo","layers","tables","relationships","isLocationTrackingService","isLocationTrackingView"],description:'`IFeatureServiceDefinition` can also be imported from the following packages:\n\n```js import { IFeatureServiceDefinition } from "@esri/arcgis-rest-service-admin"; import { IFeatureServiceDefinition } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureServiceDefinition"},"Record<string,boolean>":{type:"object",additionalProperties:{type:"boolean"},title:"Record<string,boolean>"},ITable:{type:"object",properties:{name:{type:"string",description:"Table name"},capabilities:{type:"string",description:"A comma-separated string listing which editing operations are allowed on an editable feature service. Available operations include: 'Create', 'Delete', 'Query', 'Update', and 'Editing'."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Object indicating the definitionEditor used as a layer's interactive filter."},id:{type:"number",description:"Unique identifier for the table."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining a definition expression for the table."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"An object defining the content of popup windows when you query a record and the sort option for child related records."},title:{type:"string",description:"String value for the title of the table."},url:{type:"string",description:"String value indicating the URL reference of the hosted table."}},description:'Root element in the web map specifying an array of table objects.\n\n`ITable` can also be imported from the following packages:\n\n```js import { ITable } from "@esri-arcgis-rest-service-admin" ```',title:"ITable"},IServiceInfo:{type:"object",properties:{adminServiceInfo:{type:"object",properties:{name:{type:"string"},type:{type:"string"},status:{type:"string"},database:{type:"object",properties:{datasource:{type:"object",properties:{name:{type:"string"}},required:["name"]}},required:["datasource"]}},required:["name","type","status","database"]},layers:{type:"array",items:{$ref:"#/definitions/Record%3Cstring%2Cunknown%3E"}}},required:["adminServiceInfo","layers"],description:"Very generic structure representing the return value from the /arcgis/rest/admin/services/<service-name>/FeatureServer?f=json response",title:"IServiceInfo"},"Record<string,unknown>":{type:"object",additionalProperties:{},title:"Record<string,unknown>"},IViewServiceSource:{type:"object",properties:{name:{type:"string"},type:{type:"string"},url:{type:"string"},serviceItemId:{type:"string"}},required:["name","type","url","serviceItemId"],description:"Individual View Source entry",title:"IViewServiceSource"},IViewServiceSources:{type:"object",properties:{currentVersion:{type:"number"},services:{type:"array",items:{$ref:"#/definitions/IViewServiceSource"}}},required:["currentVersion","services"],description:"Response from the /sources end-point of a view service",title:"IViewServiceSources"},IServiceNameAvailable:{type:"object",properties:{available:{type:"boolean"}},required:["available"],description:"Response from the portals/Self/isServiceNameAvailable request",title:"IServiceNameAvailable"},IPictureSourced:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},title:"IPictureSourced"},IPictureFillSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPFS"},style:{type:"string"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},xscale:{type:"number"},yscale:{type:"number"}},required:["type"],title:"IPictureFillSymbol"},IPictureMarkerSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPMS"},style:{type:"string"}},required:["type"],title:"IPictureMarkerSymbol"},ITextSymbol:{type:"object",properties:{type:{type:"string",const:"esriTS"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],title:"ITextSymbol"},IUser:{type:"object",properties:{username:{type:"string"},fullName:{type:"string"},availableCredits:{type:"number"},assignedCredits:{type:"number"},firstName:{type:"string"},lastName:{type:"string"},preferredView:{},description:{type:"string"},email:{type:"string"},idpUsername:{type:"string"},favGroupId:{type:"string"},lastLogin:{type:"number"},mfaEnabled:{type:"boolean"},access:{type:"string"},storageUsage:{type:"number"},storageQuota:{type:"number"},orgId:{type:"string"},cOrgId:{type:"string"},role:{type:"string",enum:["org_admin","org_publisher","org_user"]},privileges:{type:"array",items:{type:"string"}},roleId:{type:"string"},level:{type:"string"},disabled:{type:"boolean"},units:{type:"string"},tags:{type:"array",items:{type:"string"}},culture:{type:"string"},region:{type:"string"},thumbnail:{type:"string"},created:{type:"number"},modified:{type:"number"},groups:{type:"array",items:{$ref:"#/definitions/IGroup"}},provider:{type:"string",enum:["arcgis","enterprise","facebook","google"]}},description:'An ArcGIS Online or Enterprise user\n\n`IUser` can also be imported from the following packages:\n\n```js import { IUser } from "@esri/arcgis-rest-auth"; import { IUser } from "@esri/arcgis-rest-portal"; ```',title:"IUser"},IPagingParams:{type:"object",properties:{start:{type:"number"},num:{type:"number"}},description:'Params for paging operations\n\n`IPagingParams` can also be imported from the following packages:\n\n```js import { IPagingParams } from "@esri/arcgis-rest-portal"; ```',title:"IPagingParams"},IPagedResponse:{type:"object",properties:{start:{type:"number"},num:{type:"number"},total:{type:"number",description:"total number of object across all pages"},nextStart:{type:"number",description:"next entry index or -1 for the last page"}},required:["total","nextStart"],description:'Paging properties for paged responses.\n\n`IPagedResponse` can also be imported from the following packages:\n\n```js import { IPagedResponse } from "@esri/arcgis-rest-portal"; ```',title:"IPagedResponse"},IWebMapBackground:{type:"object",properties:{color:{$ref:"#/definitions/Color",description:"To define the color of the background of the map (which is shown when no data is shown)."}},required:["color"],description:"Defines the appearance for the background of the map.",examples:[{background:{color:[255,255,255,255]}}],title:"IWebMapBackground"},IBookmark:{type:"object",properties:{extent:{$ref:"#/definitions/IExtent",description:"An extent object containing a spatial reference, a lower left coordinate, and an upper right coordinate defining the rectangular area of the bookmark. The spatial reference must be the same as the map spatial reference. Documentation for the envelope is in the Geometry Objects topic of the ArcGIS REST API help."},name:{type:"string",description:"A string name for the bookmark."}},required:["extent","name"],description:"Predefined bookmarks for use by the application. A bookmark is a saved map extent that allows end users to quickly navigate to a particular area of interest.",title:"IBookmark"},IMapRangeInfo:{type:"object",properties:{activeRangeName:{type:"string",description:"Active range ID that slider/picker acts upon."},currentRangeExtent:{type:"array",items:{type:"number"},description:"Current range for the active range."},fullRangeExtent:{type:"array",items:{type:"number"},description:"Full range extent for the active range to be presented in the UI."}},description:"Map range information",examples:[{mapRangeInfo:{activeRangeName:"floors",currentRangeExtent:[-2,10],fullRangeExtent:[-2,100]}}],title:"IMapRangeInfo"},IMapLocation:{type:"object",properties:{centerPoint:{$ref:"#/definitions/IPoint",description:"The center of the map specified using X/Y coordinates."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"Well-known ID (WKID) or well-known text (WKT)."}},required:["centerPoint","spatialReference"],description:"Contains location information within a presentation slide.",title:"IMapLocation"},IVisibleLayer:{type:"object",properties:{featureVisibility:{type:"array",items:{type:"array",items:{}},description:"An array of arrays."},id:{type:"number",description:"The id of the layer as listed on the operational layer."},subLayerIds:{type:"array",items:{type:"number"},description:"An array of integers."}},description:"An array of numbers indicating layer visibility.",examples:[{visibleLayer:{featureVisibility:[[1],[],[],[0]],id:"73128eb3-05ee-46a7-8c22-0c385a0b1827"}}],title:"IVisibleLayer"},IVisiblePopup:{type:"object",properties:{anchorPoint:{$ref:"#/definitions/IPoint",description:"Object with spatialReference, x, and y."},featureId:{type:"number",description:"An integer specifying the feature's id."},layerId:{type:"string",description:"A string specifying the layer id."},subLayerId:{type:"number",description:"An integer specifying the sublayer id."}},description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId.",title:"IVisiblePopup"},ISlide:{type:"object",properties:{baseMap:{$ref:"#/definitions/IBaseMap",description:"Basemaps give the web map a geographic context."},extent:{$ref:"#/definitions/IExtent",description:"The standard Esri extent object with spatialReference, xmax, xmin, ymax and ymin."},hidden:{type:"boolean",description:"Indicates whether the slide should be hidden within the presentation."},mapLocation:{$ref:"#/definitions/IMapLocation",description:"An object with a centerPoint object and sometimes a resolution."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"An array of two numbers. The first one indicates start time and the second one indicates end time."},title:{type:"string",description:"Title including text and formatting for each slide."},visibleLayers:{$ref:"#/definitions/IVisibleLayer",description:"An array of objects used to indicate layer visibility."},visiblePopup:{$ref:"#/definitions/IVisiblePopup",description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId."}},title:"ISlide"},IBaseMap:{type:"object",properties:{baseMapLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"An array of baseMapLayer objects defining the basemaps used in the web map."},title:{type:"string",description:"Required string title for the basemap that can be used in a table of contents. It takes the title of the first baseMapLayer in the array."}},required:["baseMapLayers","title"],description:"A basemap layer is a layer that provides geographic context to the map. A web map always contains a basemap. The basemap has a title and is the combination of each baseMapLayer. It is required that a baseMap be saved within the web map.",title:"IBaseMap"},IPresentation:{type:"object",properties:{displayTimeSlider:{type:"boolean",description:"Indicates whether to display the time slider (if accessible)."},showLegend:{type:"boolean",description:"Indicates whether to display a legend on all slides."},slideAdvancementInterval:{type:"number",description:"Number of seconds to show slide before proceeding to the next slide."},slides:{type:"array",items:{$ref:"#/definitions/ISlide"},description:"Array of slide objects."},useTimeExtentOfSlide:{type:"boolean",description:"Indicates whether to use the time extent (if applicable) of a slide."}},title:"IPresentation"},IWebmap:{type:"object",properties:{applicationProperties:{$ref:"#/definitions/IApplicationProperties",description:"Viewing and editing properties of the webmap"},authoringApp:{type:"string",description:"String value indicating the application which authored the webmap"},authoringAppVersion:{type:"string",description:"String value indicating the authoring App's version number"},background:{$ref:"#/definitions/IWebMapBackground",description:"Defines the appearance for the background of the map."},baseMap:{$ref:"#/definitions/IBaseMap",description:"[Required] Basemaps give the web map a geographic context"},bookmarks:{type:"array",items:{$ref:"#/definitions/IBookmark"},description:"A bookmark is a saved geographic extent that allows end users to quickly navigate to a particular area of interest"},mapRangeInfo:{$ref:"#/definitions/IMapRangeInfo",description:"Map Range Information"},operationalLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"Operational layers contain business data which are used to make thematic maps"},presentation:{description:"A presentation consists of multiple slides. Each slide has a different title, extent, basemap, layers etc"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"[Required] An object used to specify the spatial reference of the given geometry."},tables:{type:"array",items:{$ref:"#/definitions/ITable"},description:"Root element in the web map specifying an array of table objects. (optional)"},version:{type:"string",description:"[Required] Root element in the web map specifying a string value indicating the web map version."},widgets:{description:"The widgets object contains widgets that should be exposed to the user"}},required:["baseMap","spatialReference","version"],description:"The web map data lists the basemap, operational layers, and bookmarks to be used in the web map. It also contains information about popup windows and layer styling overrides to be used in the web map. A version property allows you to supply the version of the web map JSON format being used.",title:"IWebmap"},IApplicationProperties:{type:"object",properties:{editing:{anyOf:[{$ref:"#/definitions/IEditingProperties"},{type:"null"}],description:"If locationTracking is set and enabled, the Collector application will update the feature service at the defined interval with the current location of the user logged into the Collector app."},offline:{anyOf:[{$ref:"#/definitions/IOfflineInfo"},{type:"null"}],description:"Use if working with offline maps."},viewing:{anyOf:[{$ref:"#/definitions/IViewingInfo"},{type:"null"}],description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default."}},description:"The applicationProperties object is one of the objects at the top level of the JSON web map JSON schema. This is responsible for containing the viewing and editing properties of the web map. There are specific objects within this object that are applicable only to Collector and are explained within the property descriptions.",title:"IApplicationProperties"},IEditingProperties:{type:"object",properties:{locationTracking:{$ref:"#/definitions/ILocationTracking",description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application."}},required:["locationTracking"],description:"An object containing all the editing properties within the web map.",title:"IEditingProperties"},ILocationTracking:{type:"object",properties:{enabled:{type:"boolean",description:"A boolean value indicating whether or not location tracking is enabled on the webmap."},info:{$ref:"#/definitions/ILocationTrackingInfo",description:"An object of additional information specifying layer and update interval time."}},required:["enabled","info"],description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application.",title:"ILocationTracking"},ILocationTrackingInfo:{type:"object",properties:{layerId:{description:"A string value indicating the given layer id specified in the web map."},updateInterval:{description:"A numeric value indicating the time interval used to update the feature service. Default value is 300 seconds."}},required:["layerId"],description:"An object containing additional information specifying layer and update interval time used in the locationTracking object.",title:"ILocationTrackingInfo"},IOfflineInfo:{type:"object",properties:{editableLayers:{$ref:"#/definitions/IEditableLayers",description:"Object detailing the available offline editing options."},readonlyLayers:{$ref:"#/definitions/IReadOnlyLayers",description:"Object indicating what to do with attachments in read-only layers."}},required:["editableLayers","readonlyLayers"],description:"Use if working with offline maps.",title:"IOfflineInfo"},IEditableLayers:{type:"object",properties:{download:{type:"string",enum:["featuers","featuresAndAttachments","none"],description:"When editing layers, the edits are always sent to the server. This string value indicates which data is retrieved. For example, none indicates that only the schema is written since neither the features nor attachments are retrieved. For a full sync without downloading attachments, indicate features. Lastly, the default behavior is to have a full sync using featuresAndAttachments where both features and attachments are retrieved."},sync:{type:"string",enum:["syncFeaturesAndAttachments","syncFeaturesUploadAttachments","uploadFeaturesAndAttachments"],description:"This string value indicates how the data is synced."}},required:["download","sync"],description:"Object detailing the available offline editing options.",title:"IEditableLayers"},IReadOnlyLayers:{type:"object",properties:{downloadAttachments:{type:"boolean",description:"Indicates whether to include attachments with the read-only data."}},required:["downloadAttachments"],description:"Read-only layers as the features are always retrieved from the server.",title:"IReadOnlyLayers"},IViewingInfo:{type:"object",properties:{basemapGallery:{$ref:"#/definitions/IEnableable",description:"The basemap tool which will use the basemap group defined in the Portal."},measure:{$ref:"#/definitions/IEnableable",description:"Measure tool."},routing:{$ref:"#/definitions/IEnableable",description:"The route tool which will leverage the Portals defined route service."},search:{$ref:"#/definitions/ISearch",description:"An object specifying search parameters within the webmap."}},description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default.",title:"IViewingInfo"},IEnableable:{type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"],title:"IEnableable"},ISearch:{type:"object",properties:{enabled:{type:"boolean"},disablePlaceFinder:{description:"A boolean value indicating whether or not to disable the place finder."},hintText:{description:"A string value used to indicate the hint provided with the search dialog."},layers:{description:"An array of layer objects defining the styling, geometry, and attribute information for the features."}},required:["enabled"],description:"An object specifying the search parameters set within the web map.",title:"ISearch"},IRange:{type:"object",properties:{interactionMode:{type:"string",enum:["picker","slider"],description:"Indicates the mode in which the active range should be presented to the user. Must be one of the following values: slider, picker"},numberOfStops:{description:"This is used to generate the activeRangeValues if activeRangeValues are not specified."},stopInterval:{type:"number",description:"Interval in which stops should be generated."}},description:"Range object.",title:"IRange"},IWidget:{type:"object",properties:{range:{$ref:"#/definitions/IRange",description:"Active range."},timeSlider:{$ref:"#/definitions/ITimeSliderProperties",description:"Time animation is controlled by a configurable time slider. The time slider widget will act upon all the time aware layers in the map."}},description:"The widgets object contains widgets that should be exposed to the user.",title:"IWidget"},ITimeSliderProperties:{type:"object",properties:{currentTimeExtent:{type:"array",items:{type:"number"},description:"An optional array of numbers indicating the slider's start to end time extent."},endTime:{type:"number",description:"The optional end of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},numberOfStops:{type:"number",description:"Number of stops within the timeSlider widget."},startTime:{type:"number",description:"The optional start of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},thumbCount:{type:"number",description:"The default value for the thumbCount is 1."},thumbMovingRate:{type:"number",description:"Rate at which the time animation plays. Units are in milliseconds. Default is 1000."},timeStopInterval:{type:"number",description:"The interval which has been defined for the time slider."}},description:"Configurable properties used within the TimeSlider widget.",title:"ITimeSliderProperties"},ITimeSlider:{type:"object",properties:{properties:{$ref:"#/definitions/ITimeSliderProperties",description:"Configurable properties used within the TimeSlider widget."}},required:["properties"],description:"Time animation is controlled by a configurable time slider. Those configurations are saved to the web map as a timeSlider widget.",title:"ITimeSlider"},IBingLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",enum:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"],description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bingKey:{type:"string",description:"String value that unlocks the use of Bing layers in a web map."},canShareBingPublic:{type:"boolean",description:"Boolean value indicating whether the Bing key can be shared to the public."},portalUrl:{type:"string",description:"A string value representing the URL to the Portal/organization Self resource. Calls should be made to this property to retrieve the Bing key. If the key is not made accessible to the public or if canShareBingPublic is false, any web maps using Bing layers will not work."}},required:["id","layerType"],title:"IBingLayer"},IImageServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bandIds:{type:"array",items:{type:"number"},description:"An array of bandIds that are visible, can specify bands to export or rearrange band order(from image service)."},compressionQuality:{description:"Controls how much loss the image will be subjected to by the compression algorithm (from image service)."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Boolean property indicating whether to ignore popups defined by the service item."},format:{type:"string",enum:["bmp","gif","jpg","jpgpng","png","png8","png24","png32","tiff"],description:"String value representing image format."},interpolation:{type:"string",enum:["RSP_BilinearInterpolation","RSP_CubicConvolution","RSP_Majority","RSP_NearestNeighbor"],description:"The algorithm used for interpolation."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},noData:{description:"The pixel value that represents no information."},noDataInterpretation:{type:"string",enum:["esriNoDataMatchAll","esriNoDataMatchAny"],description:"A string value of interpretation of noData setting. Default is 'esriNoDataMatchAny' when noData is a number, and 'esriNoDataMatchAll' when noData is an array."},pixelType:{type:"string",enum:["C64","C128","F32","F64","S8","S16","S32","U1","U2","U4","U8","U16","U32","UNKNOWN"],description:"Pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},renderingRule:{description:"Specifies the rendering rule for how the requested image should be rendered."}},required:["id","layerType"],title:"IImageServiceLayer"},IImageVectorLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceVectorLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceVectorLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{description:"Boolean property indicating whether to ignore popups defined by the service item."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},symbolTileSize:{description:"Number describing the size of the tile."}},required:["id","layerType"],title:"IImageVectorLayer"},IChildLayer:{type:"object",properties:{defaultVisibility:{description:"Default visibility of the layers in the map service."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"An object that provides interactive filters."},featureSet:{$ref:"#/definitions/IFeatureSet",description:"A featureSet object containing the geometry and attributes of the features in the layer. Used with feature collections only."},field:{type:"array",items:{$ref:"#/definitions/IField"},description:"Information about each field in a layer. Used with feature collections."},id:{type:"string",description:"A string indicating the index position of the layer in the map service or feature collection."},layerDefinition:{description:"The layerDefinition object defines the attribute schema and drawing information for the layer."},layerUrl:{description:"A string URL to a service that should be used for all queries against the layer. Used with hosted tiled map services on ArcGIS Online when there is an associated feature service that allows for queries."},maxScale:{description:"Represents the maximum scale at which the layer definition will be applied."},minScale:{description:"Represents the minimum scale at which the layer definition will be applied."},nextObjectId:{description:"Iterates within a featureset. Number objectId value is incremented +1 based on last Object ID defined for the feature in a featureset. Used with feature collections."},parentLayerId:{description:"If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the popup window content for the layer."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},subLayer:{description:"Array of numeric values indicating the layer index for layers nested directly under the parent layer."},subLayerIds:{description:"If the layer is a parent layer, it will have one or more sub layers included in an array."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."}},description:"A layer object may allow overrides on popup content and drawing behavior for individual layers of a web service. This object also contains geographic features and their attributes when used in a feature collection.",title:"IChildLayer"},IMapServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining the styling, geometry, and attribute information for the features."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},thematicGroup:{$ref:"#/definitions/IThematicGroup",description:"(Optional) A thematicGroup object used in ArcGISMapServiceLayer layers."},visibleLayers:{type:"array",items:{type:"number"},description:"An array of sublayer ids that should appear visible. Used with map service layers that are not tiled."}},required:["id","layerType"],title:"IMapServiceLayer"},IThematicGroup:{type:"object",properties:{fieldNames:{type:"array",items:{type:"string"},description:"An array of string values indicating all the fields used within the webmap. All other fields can be disregarded and should not display in any field selection list."},layerIds:{type:"array",items:{type:"number"},description:"A zero-based array of integers indicating the layers to be used in the webmap. NOTE: All other layers should not be added to the TOC and may or may not be visible on the map as reference layers."},name:{type:"string",description:"String property indicating the name for the thematic grouping of layers."}},title:"IThematicGroup"},IDrawingInfo:{type:"object",properties:{fixedSymbols:{description:"Only used for feature collections with a renderer. The feature's symbol is defined by the layer's renderer."},labelingInfo:{description:"An object defining the properties used for labeling the layer."},renderer:{description:"An object defined which provides the symbology for the layer."},scaleSymbols:{description:"Boolean property indicating whether symbols should stay the same size in screen units as you zoom in. A value of true means the symbols stay the same size in screen units regardless of the map scale."},showLabels:{type:"boolean",description:"Defines whether labels should be shown or not. This is only valid for sublayers."},transparency:{type:"number",description:"Number value ranging between 0 (no transparency) to 100 (completely transparent)."}},title:"IDrawingInfo"},ITypeInfoDomain:{type:"object",properties:{type:{type:"string"}},required:["type"],title:"ITypeInfoDomain"},ITypeInfo:{type:"object",properties:{domains:{$ref:"#/definitions/Record%3Cstring%2CITypeInfoDomain%3E",description:"A comma-delimited series of domain objects for each domain in the type."},id:{type:["number","string"],description:"A unique string or numerical ID for the type."},name:{type:"string",description:"A user-friendly name for the type."},templates:{type:"array",items:{$ref:"#/definitions/ITemplate"},description:"Defined as a property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types."}},title:"ITypeInfo"},"Record<string,ITypeInfoDomain>":{type:"object",additionalProperties:{$ref:"#/definitions/ITypeInfoDomain"},title:"Record<string,ITypeInfoDomain>"},IOpenStreetMapLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"OpenStreetMap",description:"String indicating the layer type. Value of this property must be OpenStreetMap"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"OpenStreetMap",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."}},required:["id","layerType"],description:"Allows use of OpenStreetMap data for use in basemaps only.",title:"IOpenStreetMapLayer"},ITiledImageServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISTiledImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{type:"boolean",description:"Applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"ITiledImageServiceLayer"},IExclusionArea:{type:"object",properties:{geometry:{$ref:"#/definitions/IGeometry",description:"The geometry defining the area where no data will be fetched. Only extent is supported."},maxScale:{type:"number",description:"The zoom level where the exclusion ends."},maxZoom:{type:"number",description:"The zoom level where the exclusion ends."},minScale:{type:"number",description:"The zoom level where the exclusion starts."},minZoom:{type:"number",description:"The zoom level where the exclusion starts."}},description:"Exclusion areas define extent areas where no data will be fetched for a layer.",title:"IExclusionArea"},ITiledMapServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},displayLevels:{anyOf:[{type:"array",items:{type:"number"}},{type:"number"}],description:"NOTE: Applicable if used as a baseMapLayer. Integer value(s) indicating the display levels of the basemap layer. Only applicable for TiledMapService layers. All tiled map service layers should share the same tiling scheme. This property cannot be set via the Map Viewer UI."},exclusionAreas:{type:"array",items:{$ref:"#/definitions/IExclusionArea"},description:"NOTE: Applicable if used as a baseMapLayer. An array of exclusionArea objects defining the layer exclusions."},isReference:{description:"This property is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining a URL for queries and the popup window content."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"An ArcGIS Tiled Map Service layer displays map content from an ArcGIS Server Map service that has been cached (tiled).",title:"ITiledMapServiceLayer"},IVectorTileLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"VectorTileLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"VectorTileLayer",description:"Deprecated. User layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},styleUrl:{type:"string",description:"A url to a JSON file containing the stylesheet information used to render the layer. You may also pass an object containing the stylesheet information identical to the JSON file."}},required:["id","layerType"],description:"A vector tile layer references a set of web-accessible vector tiles and the corresponding style for how those tiles should be drawn.",title:"IVectorTileLayer"},ILod:{type:"object",properties:{level:{type:"number",description:"ID for each level."},levelValue:{type:"string",description:"String to be used when constructing URL to access a tile from this LOD."},resolution:{type:"number",description:"Resolution in map units of each pixel in a tile for each level."},scale:{type:"number",description:"Scale for each level."}},title:"ILod"},ITileInfo:{type:"object",properties:{cols:{description:"Requested tile's column."},compressionQuality:{description:"Compression quality of the tile."},dpi:{description:"The dpi of the tiling scheme."},format:{type:"string",enum:["bmp","emf","gif","jpg","lerc","mixed","pdf","png","png8","png24","png32","ps","svg","svgz"],description:"Image format of the cached tiles."},lods:{type:"array",items:{$ref:"#/definitions/ILod"},description:"An array of levels of detail that define the tiling scheme."},origin:{$ref:"#/definitions/IPoint",description:"The tiling scheme origin."},rows:{description:"Requested tile's row."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"The spatial reference of the tiling schema."}},description:"Tile information, returned from the WMTS OGC Web Service. The tileInfo will contain the spatial reference of the layer. tileInfo is the same json representation as the ArcGIS Map/Image service tileInfo except that it may contain a levelValue on the lod objects that should be used instead of the level in the templateUrl.",title:"ITileInfo"},IWebMapTileServiceInfo:{type:"object",properties:{customLayerParameters:{description:"A sequence of parameters used to append different custom parameters to a WMTS tile request. These parameters are applied to GetTile. The customLayerParameters property takes precedence if customParameters is also present."},customParameters:{description:"A sequence of parameters used to append custom parameters to all WMTS requests. These parameters are applied to GetCapabilities and GetTile. If used with the customLayerParameters property, customParameters will not take precedence."},layerIdentifier:{type:"string",description:"Identifier for the specific layer used in the WMTS service. Required input by the user."},tileMatrixSet:{description:"Tiling schema, set by the WMTS service."},url:{type:"string",description:"URL to the WMTS web service. Required input by the user."}},required:["layerIdentifier","url"],description:"Object defines and provides information about layers in a WMTSLayer service.",title:"IWebMapTileServiceInfo"},IWebTiledLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"WebTiledLayer",description:"String indicating the layer type. Value of this property must be WebTiledLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"WebTiledLayer",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},copyright:{description:"Attribution to the Web Tiled Layer provider. It is displayed in the attribution on the web map. Input required by the user when the layer is added to the web map."},fullExtent:{$ref:"#/definitions/IExtent",description:"An extent object representing the full extent envelope for the layer."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},subDomains:{description:"If subdomains are detected, they must be specified. The map viewer detects if the Web Tiled Layer has subdomains by parsing the templateURL value for {subDomain}."},templateUrl:{description:"URL to the Web Tiled Layer. Input required by the user when the layer is added to the web map. The template URL contains a parameterized URL. The URL can contain the following templated parameters: 'level', 'col', 'row', and 'subDomain'."},tileInfo:{$ref:"#/definitions/ITileInfo",description:"Contains the spatial reference and the tiling scheme of the layer. Typically retrieved from a WMTS OGC Web Service. If missing the layer must be in the WGS 1984 Web Mercator (Auxiliary Sphere) tiling scheme."},wmtsInfo:{$ref:"#/definitions/IWebMapTileServiceInfo",description:"Object containing information about the chosen WMTS service layer and tiling schema."}},required:["id","layerType"],title:"IWebTiledLayer"},ICsvLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"CSV",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"CSV",description:"Deprecated, use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},columnDelimiter:{type:"string",enum:[" ",",",";"," ","|"],description:"A string defining the character used to separate columns in a CSV file."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},locationInfo:{description:"A locationInfo object defining how location information will be retrieved from a CSV file."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"The CSV layer type references a CSV or TXT file from a publically-accessible web server. It then dynamically loads into the map at run time. The CSV layer will maintain a reference to the CSV resource.",title:"ICsvLayer"},IGeoRssLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"GeoRSS",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"GeoRSS",description:"Deprecated, please use layerType.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have lines, this property is not added to the layer JSON."},pointSymbol:{$ref:"#/definitions/IPictureMarkerSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have points, this property is not added to the layer JSON."},polygonSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have polygons, this property is not added to the layer JSON."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"IGeoRssLayer"},IKmlLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"KML",description:"String indicating the layer type."},maxScale:{description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator."},minScale:{description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator."},opacity:{description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"KML",description:"Deprecated, use layerType instead.",deprecated:"Use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},visibleFolders:{type:"array",items:{type:"number"},description:"Array of numeric IDs of folders that will be made visible."}},required:["id","layerType"],title:"IKmlLayer"},IArcGisStreamLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISStreamLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Indicates whether to ignore popups defined by the service item."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of pop-up windows when you click or query a feature."}},required:["id","layerType"],title:"IArcGisStreamLayer"}},$ref:"#/definitions/WebChart"};var ap=Td(_l(),1);var D={Arabic:"ar",ArabicLatin:"ar-u-nu-latn",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Czech:"cs",Danish:"da",German:"de",Greek:"el",English:"en",EnglishUSA:"en-US",Spanish:"es",Estonian:"et",Finnish:"fi",French:"fr",Hebrew:"he",Croatian:"hr",Hungarian:"hu",Indonesian:"id",Italian:"it",Japanese:"ja",Korean:"ko",Lithuanian:"lt",Latvian:"lv",NorwegianBokml:"no",Dutch:"nl",Polish:"pl",PortugueseBrazil:"pt-BR",PortuguesePortugal:"pt-PT",Romanian:"ro",Russian:"ru",Serbian:"sr",Slovenian:"sl",Slovak:"sk",Swedish:"sv",Thai:"th",Turkish:"tr",Ukrainian:"uk",Vietnamese:"vi",ChineseChina:"zh-CN",ChineseHongKong:"zh-HK",ChineseTaiwan:"zh-TW"},cb=[...Object.values(D),"en-AU","en-GB","es-ES","es-MX","de-CH","de-DE","de-AT","it-CH","it-IT"];function He(e,r){return $a(e)(r)}function ub(e){let r=/^([a-z]{2})-([A-Z]{2})$/u,i=e?.match(r),t=D.English;return i!=null&&i?.length>1?t=i[1]:e?.length===2&&e.toLowerCase()===e&&(t=e),t}function fb(e){let r=e;if(e!==void 0&&e.includes("-")){let[i,t]=e.split("-");r=`${i}-${t.toUpperCase()}`}return r}function Rl(e,r){let i=D.English,t=fb(e);if(t!==void 0)if(r.includes(t))i=t;else{let a=ub(t);r.includes(a)?i=a:a==="nb"&&(i="no")}return i}function kl(e,r){function i(t){let a;return t===void 0||t===document||t===window?a=null:a=t.closest(e)||i(t.getRootNode().host),a}return i(r)}function np(e=document.documentElement){let r=kl("[lang]",e)?.lang??window.navigator.language,i=Object.values(D),t=Object.values(cb),a=Rl(r,i),o=Rl(r,t);return o=o==="ar"?"ar-u-nu-latn":o,{locale:a,rtl:kl("[dir]",e)?.getAttribute("dir")==="rtl",formatLocale:o}}function gj(e){let r;return e==="unknown"?r="UTC":e!==void 0&&e!=="system"&&(r=e),r}function bj(e,r){let i={year:"numeric",month:"2-digit",day:"2-digit",timeZone:r};return new Intl.DateTimeFormat("en-CA",i).format(e)}function vj(e,r){let i={hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:r};return new Intl.DateTimeFormat("en-US",i).format(e)}function Sj(e,r){let[,i,,,,t]=1111.1.toLocaleString(r),a=e.replace(i,"").replace(t,".");return Number.parseFloat(a)}async function lt(e=np().locale){let r=await import("./W2OOZDFW.js");switch(e){case D.Arabic:r=await import("./AFVLHLH6.js");break;case D.Bosnian:r=await import("./CAYTEKPM.js");break;case D.Bulgarian:r=await import("./ONO5VPVD.js");break;case D.Catalan:r=await import("./THLZIFD2.js");break;case D.Czech:r=await import("./JDY6MZHF.js");break;case D.Danish:r=await import("./QVCLQJKV.js");break;case D.German:r=await import("./HISPFYBT.js");break;case D.Greek:r=await import("./ROQDAU3Z.js");break;case D.EnglishUSA:r=await import("./LB4UOQTQ.js");break;case D.Spanish:r=await import("./YJRAA3H6.js");break;case D.Estonian:r=await import("./PAWEHRXX.js");break;case D.Finnish:r=await import("./IOGCCURA.js");break;case D.French:r=await import("./Y6ZZEYGQ.js");break;case D.Hebrew:r=await import("./C2RZVT5L.js");break;case D.Croatian:r=await import("./2SPFFYEB.js");break;case D.Hungarian:r=await import("./EVQU4SNN.js");break;case D.Indonesian:r=await import("./YHYIAIAI.js");break;case D.Italian:r=await import("./WO7SM7DZ.js");break;case D.Japanese:r=await import("./U4UWKRQT.js");break;case D.Korean:r=await import("./5ZZYAV7Q.js");break;case D.Lithuanian:r=await import("./HABNBW6P.js");break;case D.Latvian:r=await import("./TXNU3C6N.js");break;case D.NorwegianBokml:r=await import("./MKTDHR4A.js");break;case D.Dutch:r=await import("./4D7MNEVR.js");break;case D.Polish:r=await import("./XNAA2RT7.js");break;case D.PortugueseBrazil:r=await import("./T7S42TQC.js");break;case D.PortuguesePortugal:r=await import("./XUKPW6KX.js");break;case D.Romanian:r=await import("./2XZY2X6K.js");break;case D.Russian:r=await import("./6HS7VMCA.js");break;case D.Serbian:r=await import("./44L5PPIT.js");break;case D.Slovak:r=await import("./PEFA3NYE.js");break;case D.Slovenian:r=await import("./FIQUHRMI.js");break;case D.Swedish:r=await import("./I66WMAKO.js");break;case D.Thai:r=await import("./JKJHLFJD.js");break;case D.Turkish:r=await import("./RXBME54L.js");break;case D.Ukrainian:r=await import("./7DWDWWOH.js");break;case D.Vietnamese:r=await import("./AQ5W7QCF.js");break;case D.ChineseChina:r=await import("./RBXDBKSB.js");break;case D.ChineseHongKong:r=await import("./M64KJVZ5.js");break;case D.ChineseTaiwan:r=await import("./HIX3TN5X.js");break;case D.English:}return r}var sp={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},G={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},wj=32,xj="arcgis_charts_features_extent",Xt={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:jo.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds"},hb=["EXPR_1","Expr1","expr1","EXPR1"],Ij=1,et=.7,mb=25,lp=[156,156,156,255],yb=[156,156,156,255],Cj=dr.Solid,Tj=2,Pj={defaultGroupOfSlicesId:"arcgis_charts_group_of_slices",sliceIdPrefix:"arcgis-charts-slice-id",undefinedSliceId:"arcgis-charts-slice-id-undefined",nullSliceId:"arcgis-charts-slice-id-null",emptySliceId:"arcgis-charts-slice-id-empty"},ro="arcgis_charts_box_plot_category",gb=[[31,120,180,255],[166,206,227,255],[51,160,44,255],[178,223,138,255],[227,26,28,255],[251,154,153,255],[255,127,0,255],[253,191,111,255],[106,61,154,255],[202,178,214,255]],bb=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]];function st(e){let{colorIndex:r,opacity:i,histogramOverlays:t}=e,a=Math.max(0,r??0),o=[...t===!0?bb:gb],[n,s,l,u]=o[a%o.length],d=i!==void 0?i*255:u;return[n,s,l,d]}function pp(e){return[0,0,0,(e??et)*255]}function Fj(){return{type:w.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:De.SLS,style:dr.Dot,color:[211,211,211,255],width:1}}}function pa(e=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),e*255]}function Y(e){let r={family:"Arial, Helvetica, sans-serif",size:10};switch(e){case G.ChartTitle:r.size=18;break;case G.AxisTitle:r.size=14;break;case G.LegendText:r.size=12;break;case G.LegendTitle:r.size=13;break;case G.DescriptionText:r.size=11;break}return r}function dp(e="",r=Y(),i){let t=ai.Center;return(i===G.DataLabels||i===G.GuideLabel)&&(t=void 0),{type:De.TS,color:pp(),text:e,font:r,horizontalAlignment:t}}function K(e){let{text:r,visible:i,font:t,type:a}=e??{text:"",visible:!0,font:Y()};return{type:w.Text,visible:i,content:dp(r,t,a)}}function Zr(e){let r=e?.useRandomColor??!1,i=e?.useRampColor,t=e?.width??1,a=e?.isHistogramOverlay,o=e?.color??pp(1);return r?o=pa():i!==void 0&&(a===!0?o=st({colorIndex:i.colorIndex,histogramOverlays:a}):o=st({colorIndex:i.colorIndex})),e?.opacity!==void 0&&(o[3]=e.opacity),{type:De.SLS,style:dr.Solid,color:o,width:t}}function vb(){return{type:w.CategoryAxisFormat,characterLimit:11}}function Aj(){return{type:w.DateAxisFormat,intlOptions:{}}}function Va(){return{type:w.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function Oj(){return{type:w.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function Ej(){return{type:w.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function Bl(e="Category Axis"){let r=K({text:e,visible:!0,font:Y(G.AxisTitle)});r.content.horizontalAlignment=ai.Center,r.content.verticalAlignment=xa.Middle;let i=K({text:e,visible:!0,font:Y(G.AxisLabels)});return{type:w.Axis,visible:!0,title:r,labels:i,valueFormat:vb(),lineSymbol:Zr({color:lp})}}function Ji(e="Value Axis"){let r=K({text:e,visible:!0,font:Y(G.AxisTitle)}),i=K({text:e,visible:!0,font:Y(G.AxisLabels)});return r.content.verticalAlignment=xa.Middle,r.content.horizontalAlignment=ai.Center,{type:w.Axis,visible:!0,title:r,labels:i,valueFormat:Va(),lineSymbol:Zr({color:lp})}}function er(){return{type:w.Legend,visible:!0,title:K({text:"",visible:!0,font:Y(G.LegendTitle)}),body:dp("",Y(G.LegendText)),position:Do.Right,maxHeight:Number.NaN}}function Wi(e){return{type:w.Overlay,visible:!0,created:!1,symbol:Zr({useRampColor:{colorIndex:e},isHistogramOverlay:!0})}}function tr(){return[255,255,255,255]}async function Bt(){return(await lt()).defaultTitle}function qt(){return`Chart ${Date.now()}`}function Lj(e,r=!1){return{type:De.SFS,style:cr.Solid,color:r?pa(et):st({colorIndex:e??0,opacity:et})}}function Sb(e=0){return{type:De.SMS,style:wa.Circle,color:st({colorIndex:e,opacity:et}),size:4}}function wb(e){return{type:De.SLS,style:dr.Solid,color:st({colorIndex:e,opacity:et}),width:2}}function xb(e=!1){return{type:De.SMS,style:wa.Circle,color:e?pa(et):st({colorIndex:0,opacity:et}),size:7}}function Dj(){return{type:w.SizePolicy,field:"",scaleType:Ro.Linear,minSize:5,maxSize:30}}function Ib(e=!1){return{type:w.Overlays,trendLine:{type:w.Overlay,created:!1,visible:!0,symbol:{type:De.SLS,style:dr.Solid,color:e?pa():st({colorIndex:1}),width:2}}}}function Cb(){return{type:w.ScatterSeries,id:w.ScatterSeries,name:w.ScatterSeries,x:"",y:"",markerSymbol:xb(),overlays:Ib(),dataLabels:K({text:"",visible:!1,font:Y(G.DataLabels)})}}async function $r(e){let r=await lt(),i=[],t=r.xAxis,a=r.statistics.count,o,n=Ji(a),s=Zr({opacity:mb});switch(n.grid=s,e){case w.BarSeries:{o=Bl(t);break}case w.ScatterSeries:{o=Ji(t),o.grid=s;break}case w.RadarSeries:case w.LineSeries:case w.HistogramSeries:{o=Ji(t);break}case w.BoxPlotSeries:{o=Bl("");break}}return o!==void 0&&i.push(o,n),i}function Tb(){return{type:w.GaugeNeedle,symbol:{type:De.SFS,color:[0,0,0,200]}}}async function Pb(){let e=await lt(),r=[],i=e.xAxis,t=Ji(i);return t.needle=Tb(),r.push(t),r}async function Fb(e){let r=e.objectIDField??"ObjectID",i=`${se.Count}_${r}_0`.toUpperCase(),t=(await lt()).countSeries;return{type:w.LineSeries,id:t,name:t,query:{outStatistics:[{statisticType:se.Count,onStatisticField:r,outStatisticFieldName:i}],groupByFieldsForStatistics:[]},x:"",y:i,lineSymbol:wb(e.seriesIndex),markerSymbol:Sb(e.seriesIndex),dataLabels:K({text:"",visible:!1,font:Y(G.DataLabels)}),temporalBinning:{type:Sa.FixedDateBased,unit:Le.Day,size:0,timeAggregationType:lr.Start,trimIncompleteTimeInterval:!0,nullPolicy:$o.Interpolate}}}async function jj(e){return{...await Fb(e),type:w.RadarSeries}}function Ab(e){return{type:De.SFS,style:cr.Solid,color:st({colorIndex:e,opacity:et})}}async function $j(e){let r=e.objectIDField??"ObjectID",i=`${se.Count}_${r}_0`.toUpperCase(),t=(await lt()).countSeries;return{type:w.BarSeries,id:t,name:t,query:{outStatistics:[{statisticType:se.Count,onStatisticField:r,outStatisticFieldName:i}],groupByFieldsForStatistics:[]},x:"",y:i,fillSymbol:Ab(e.seriesIndex),dataLabels:K({text:"",visible:!1,font:Y(G.DataLabels),type:G.DataLabels})}}async function _j(e){let r=(await lt()).countSeries;return{name:r,type:w.BoxPlotSeries,id:r,fillSymbol:{type:De.SFS,style:cr.Solid,color:st({colorIndex:e,opacity:et})},query:{},x:ro,y:""}}function Ob(){return{type:w.PieTick,visible:!0,lineSymbol:Zr({width:1,color:yb})}}function Eb(){return{type:De.SFS,style:cr.Solid}}async function Rj(e){let r=`${se.Count}_${e}_0`.toUpperCase(),i=(await lt()).countSeries;return{type:w.PieSeries,id:i,name:i,query:{outStatistics:[{statisticType:se.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:r}],groupByFieldsForStatistics:[]},x:"",y:r,fillSymbol:Eb(),dataLabels:K({text:"",visible:!1,font:Y(G.DataLabels),type:G.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...Va(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...Va(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:Ob()}}function kj(e){let r=e.objectIDField??"ObjectID",i=`${se.Count}_${r}_0`.toUpperCase(),t="Series0";return{type:w.GaugeSeries,id:t,name:t,query:{outStatistics:[{statisticType:se.Count,onStatisticField:r,outStatisticFieldName:i}]},x:""}}function Qr(){return!1}async function Bj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,rotated:Qr(),orderOptions:{data:{orderType:pr.Category,orderBy:at.Ascending}},title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),axes:await $r(w.BarSeries),series:[],legend:er()}}async function qj(e=qt()){return{version:yt,type:w.Chart,id:e,rotated:Qr(),colorMatch:!0,orderOptions:{data:{orderType:pr.Category,orderBy:at.Ascending}},title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),series:[],legend:er(),axes:await $r(w.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}async function Mj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,rotated:Qr(),orderOptions:{data:{orderType:pr.Category,orderBy:at.Ascending}},title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),axes:await $r(w.LineSeries),series:[],legend:er()}}async function Nj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:pr.Category,orderBy:at.Ascending}},title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),axes:await $r(w.RadarSeries),series:[],legend:er()}}async function Wj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:pr.YValue,orderBy:at.Descending}},title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),series:[],legend:{...er(),displayNumericValue:!1,displayPercentage:!0}}}async function zj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),series:[],axes:await Pb()}}async function Vj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),axes:await $r(w.ScatterSeries),series:[Cb()],legend:er()}}function Lb(){return{type:w.Overlays,mean:Wi(1),median:Wi(2),standardDeviation:Wi(3),comparisonDistribution:Wi(4)}}function Db(){return{type:De.SFS,style:cr.Solid,color:st({colorIndex:0,opacity:et})}}function jb(){return{type:w.HistogramSeries,id:w.HistogramSeries,name:w.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:Lb(),dataTransformationType:va.None,fillSymbol:Db(),dataLabels:K({text:"",visible:!1,font:Y(G.DataLabels)})}}async function Uj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),axes:await $r(w.HistogramSeries),series:[jb()],legend:er()}}var Ba={behaviorAfterLimit:sp.Reject,maxCategoryCount:Number.NaN,maxBarChartSeriesCount:100,maxBarUniqueSeriesCountTotal:1e4,maxBarTwoSeriesCountPerSeries:1e3,maxBarTwoSeriesCountTotal:2e3,maxBarThreePlusSeriesCountPerSeries:100,maxBarThreePlusSeriesCountTotal:2e3,maxScatterPointsBeforeAggregation:1e4,maxScatterPointsAfterAggregation:1e4,maxLineChartSeriesCount:100,maxLineUniqueSeriesCountTotal:1e4,maxLineTwoSeriesCountPerSeries:5e3,maxLineTwoSeriesCountTotal:1e4,maxLineThreePlusSeriesCountPerSeries:1e3,maxLineThreePlusSeriesCountTotal:1e4,maxPieChartSliceCountTotal:300,maxGaugeByFeaturesLimit:50,maxBoxPlotSeriesCount:100,maxBoxUniqueSeriesCountTotal:1e4,maxBoxTwoSeriesCountPerSeries:1e3,maxBoxTwoSeriesCountTotal:2e3,maxBoxThreePlusSeriesCountPerSeries:100,maxBoxThreePlusSeriesCountTotal:2e3,maxBoxPlotOutlierLimit:1e4};function $b(e){let r={...Ba};return e!==void 0&&Object.keys(Ba).forEach(i=>{let t=i;r[t]=e[t]??Ba[t]}),r}function Gj(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:200}}async function Hj(e){let r=await lt(),i;switch(e){case se.Average:{i=r.statistics.mean;break}case se.ContinuousPercentile:{i=r.statistics.median;break}case se.Sum:{i=r.statistics.sum;break}case se.Minimum:{i=r.statistics.minimum;break}case se.Maximum:{i=r.statistics.maximum;break}case se.Variance:{i=r.statistics.variance;break}case se.DiscretePercentile:{i=r.statistics.discretePercentile;break}case se.NoAggregation:{i=r.statistics.noAggregation;break}case se.Count:default:{i=r.statistics.count;break}}return i}async function Qj(e){let r=await lt(),i;switch(e){case lr.End:{i=r.timeAggregationTypes.end;break}case lr.Start:{i=r.timeAggregationTypes.start;break}default:i="";break}return i}function _b(){return Mr.Side}async function Kj(){return(await lt()).notAvailable}var Jj=0,Rb="_arcgis_charts_outliers",kb="_arcgis_charts_z_score",Zj=[210,210,210,255*et];var ea=function(){return ea=Object.assign||function(e){for(var r,i=1,t=arguments.length;i<t;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ea.apply(this,arguments)},Ua={exports:{}},ce={},Ga={exports:{}},rr={};function cp(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function Bb(e,r,i){}function qb(e,r,i){}var Mb=/javascript\s*\:/img;function Nb(e,r){return Mb.test(r)?"":r}rr.whiteList=cp();rr.getDefaultWhiteList=cp;rr.onAttr=Bb;rr.onIgnoreAttr=qb;rr.safeAttrValue=Nb;var Wb={indexOf:function(e,r){var i,t;if(Array.prototype.indexOf)return e.indexOf(r);for(i=0,t=e.length;i<t;i++)if(e[i]===r)return i;return-1},forEach:function(e,r,i){var t,a;if(Array.prototype.forEach)return e.forEach(r,i);for(t=0,a=e.length;t<a;t++)r.call(i,e[t],t,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Hr=Wb;function zb(e,r){e=Hr.trimRight(e),e[e.length-1]!==";"&&(e+=";");var i=e.length,t=!1,a=0,o=0,n="";function s(){if(!t){var d=Hr.trim(e.slice(a,o)),c=d.indexOf(":");if(c!==-1){var p=Hr.trim(d.slice(0,c)),h=Hr.trim(d.slice(c+1));if(p){var y=r(a,n.length,p,h,d);y&&(n+=y+"; ")}}}a=o+1}for(;o<i;o++){var l=e[o];if(l==="/"&&e[o+1]==="*"){var u=e.indexOf("*/",o+2);if(u===-1)break;o=u+1,a=o+1,t=!1}else l==="("?t=!0:l===")"?t=!1:l===";"?t||s():l===`
54
- `&&s()}return Hr.trim(n)}var Vb=zb,zi=rr,Ub=Vb;function ql(e){return e==null}function Gb(e){var r={};for(var i in e)r[i]=e[i];return r}function up(e){e=Gb(e||{}),e.whiteList=e.whiteList||zi.whiteList,e.onAttr=e.onAttr||zi.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||zi.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||zi.safeAttrValue,this.options=e}up.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,i=r.options,t=i.whiteList,a=i.onAttr,o=i.onIgnoreAttr,n=i.safeAttrValue,s=Ub(e,function(l,u,d,c,p){var h=t[d],y=!1;if(h===!0?y=h:typeof h=="function"?y=h(c):h instanceof RegExp&&(y=h.test(c)),y!==!0&&(y=!1),c=n(d,c),!!c){var m={position:u,sourcePosition:l,source:p,isWhite:y};if(y){var v=a(d,c,m);return ql(v)?d+":"+c:v}else{var v=o(d,c,m);if(!ql(v))return v}}});return s};var Hb=up;(function(e,r){var i=rr,t=Hb;function a(n,s){var l=new t(s);return l.process(n)}r=e.exports=a,r.FilterCSS=t;for(var o in i)r[o]=i[o]})(Ga,Ga.exports);var io=Ga.exports,ao={indexOf:function(e,r){var i,t;if(Array.prototype.indexOf)return e.indexOf(r);for(i=0,t=e.length;i<t;i++)if(e[i]===r)return i;return-1},forEach:function(e,r,i){var t,a;if(Array.prototype.forEach)return e.forEach(r,i);for(t=0,a=e.length;t<a;t++)r.call(i,e[t],t,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var r=/\s|\n|\t/,i=r.exec(e);return i?i.index:-1}},Qb=io.FilterCSS,Kb=io.getDefaultWhiteList,ta=ao;function fp(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var hp=new Qb;function Jb(e,r,i){}function Zb(e,r,i){}function Xb(e,r,i){}function Yb(e,r,i){}function mp(e){return e.replace(tv,"&lt;").replace(rv,"&gt;")}function ev(e,r,i,t){if(i=wp(i),r==="href"||r==="src"){if(i=ta.trim(i),i==="#")return"#";if(!(i.substr(0,7)==="http://"||i.substr(0,8)==="https://"||i.substr(0,7)==="mailto:"||i.substr(0,4)==="tel:"||i.substr(0,11)==="data:image/"||i.substr(0,6)==="ftp://"||i.substr(0,2)==="./"||i.substr(0,3)==="../"||i[0]==="#"||i[0]==="/"))return""}else if(r==="background"){if(Vi.lastIndex=0,Vi.test(i))return""}else if(r==="style"){if(Ml.lastIndex=0,Ml.test(i)||(Nl.lastIndex=0,Nl.test(i)&&(Vi.lastIndex=0,Vi.test(i))))return"";t!==!1&&(t=t||hp,i=t.process(i))}return i=xp(i),i}var tv=/</g,rv=/>/g,iv=/"/g,av=/&quot;/g,ov=/&#([a-zA-Z0-9]*);?/gim,nv=/&colon;?/gim,sv=/&newline;?/gim,Vi=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Ml=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Nl=/u\s*r\s*l\s*\(.*/gi;function yp(e){return e.replace(iv,"&quot;")}function gp(e){return e.replace(av,'"')}function bp(e){return e.replace(ov,function(r,i){return i[0]==="x"||i[0]==="X"?String.fromCharCode(parseInt(i.substr(1),16)):String.fromCharCode(parseInt(i,10))})}function vp(e){return e.replace(nv,":").replace(sv," ")}function Sp(e){for(var r="",i=0,t=e.length;i<t;i++)r+=e.charCodeAt(i)<32?" ":e.charAt(i);return ta.trim(r)}function wp(e){return e=gp(e),e=bp(e),e=vp(e),e=Sp(e),e}function xp(e){return e=yp(e),e=mp(e),e}function lv(){return""}function pv(e,r){typeof r!="function"&&(r=function(){});var i=!Array.isArray(e);function t(n){return i?!0:ta.indexOf(e,n)!==-1}var a=[],o=!1;return{onIgnoreTag:function(n,s,l){if(t(n))if(l.isClosing){var u="[/removed]",d=l.position+u.length;return a.push([o!==!1?o:l.position,d]),o=!1,u}else return o||(o=l.position),"[removed]";else return r(n,s,l)},remove:function(n){var s="",l=0;return ta.forEach(a,function(u){s+=n.slice(l,u[0]),l=u[1]}),s+=n.slice(l),s}}}function dv(e){for(var r="",i=0;i<e.length;){var t=e.indexOf("<!--",i);if(t===-1){r+=e.slice(i);break}r+=e.slice(i,t);var a=e.indexOf("-->",t);if(a===-1)break;i=a+3}return r}function cv(e){var r=e.split("");return r=r.filter(function(i){var t=i.charCodeAt(0);return t===127?!1:t<=31?t===10||t===13:!0}),r.join("")}ce.whiteList=fp();ce.getDefaultWhiteList=fp;ce.onTag=Jb;ce.onIgnoreTag=Zb;ce.onTagAttr=Xb;ce.onIgnoreTagAttr=Yb;ce.safeAttrValue=ev;ce.escapeHtml=mp;ce.escapeQuote=yp;ce.unescapeQuote=gp;ce.escapeHtmlEntities=bp;ce.escapeDangerHtml5Entities=vp;ce.clearNonPrintableCharacter=Sp;ce.friendlyAttrValue=wp;ce.escapeAttrValue=xp;ce.onIgnoreTagStripAll=lv;ce.StripTagBody=pv;ce.stripCommentTag=dv;ce.stripBlankChar=cv;ce.cssFilter=hp;ce.getDefaultCSSWhiteList=Kb;var da={},_t=ao;function uv(e){var r=_t.spaceIndex(e),i;return r===-1?i=e.slice(1,-1):i=e.slice(1,r+1),i=_t.trim(i).toLowerCase(),i.slice(0,1)==="/"&&(i=i.slice(1)),i.slice(-1)==="/"&&(i=i.slice(0,-1)),i}function fv(e){return e.slice(0,2)==="</"}function hv(e,r,i){var t="",a=0,o=!1,n=!1,s=0,l=e.length,u="",d="";e:for(s=0;s<l;s++){var c=e.charAt(s);if(o===!1){if(c==="<"){o=s;continue}}else if(n===!1){if(c==="<"){t+=i(e.slice(a,s)),o=s,a=s;continue}if(c===">"){t+=i(e.slice(a,o)),d=e.slice(o,s+1),u=uv(d),t+=r(o,t.length,u,d,fv(d)),a=s+1,o=!1;continue}if(c==='"'||c==="'")for(var p=1,h=e.charAt(s-p);h.trim()===""||h==="=";){if(h==="="){n=c;continue e}h=e.charAt(s-++p)}}else if(c===n){n=!1;continue}}return a<e.length&&(t+=i(e.substr(a))),t}var mv=/[^a-zA-Z0-9\\_:.-]/gim;function yv(e,r){var i=0,t=0,a=[],o=!1,n=e.length;function s(p,h){if(p=_t.trim(p),p=p.replace(mv,"").toLowerCase(),!(p.length<1)){var y=r(p,h||"");y&&a.push(y)}}for(var l=0;l<n;l++){var u=e.charAt(l),d,c;if(o===!1&&u==="="){o=e.slice(i,l),i=l+1,t=e.charAt(i)==='"'||e.charAt(i)==="'"?i:bv(e,l+1);continue}if(o!==!1&&l===t){if(c=e.indexOf(u,l+1),c===-1)break;d=_t.trim(e.slice(t+1,c)),s(o,d),o=!1,l=c,i=l+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(c=gv(e,l),c===-1){d=_t.trim(e.slice(i,l)),s(d),o=!1,i=l+1;continue}else{l=c-1;continue}else if(c=vv(e,l-1),c===-1){d=_t.trim(e.slice(i,l)),d=Wl(d),s(o,d),o=!1,i=l+1;continue}else continue}return i<e.length&&(o===!1?s(e.slice(i)):s(o,Wl(_t.trim(e.slice(i))))),_t.trim(a.join(" "))}function gv(e,r){for(;r<e.length;r++){var i=e[r];if(i!==" ")return i==="="?r:-1}}function bv(e,r){for(;r<e.length;r++){var i=e[r];if(i!==" ")return i==="'"||i==='"'?r:-1}}function vv(e,r){for(;r>0;r--){var i=e[r];if(i!==" ")return i==="="?r:-1}}function Sv(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Wl(e){return Sv(e)?e.substr(1,e.length-2):e}da.parseTag=hv;da.parseAttr=yv;var wv=io.FilterCSS,Ye=ce,Ip=da,xv=Ip.parseTag,Iv=Ip.parseAttr,Zi=ao;function Ui(e){return e==null}function Cv(e){var r=Zi.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=Zi.trim(e.slice(r+1,-1));var i=e[e.length-1]==="/";return i&&(e=Zi.trim(e.slice(0,-1))),{html:e,closing:i}}function Tv(e){var r={};for(var i in e)r[i]=e[i];return r}function Pv(e){var r={};for(var i in e)Array.isArray(e[i])?r[i.toLowerCase()]=e[i].map(function(t){return t.toLowerCase()}):r[i.toLowerCase()]=e[i];return r}function Cp(e){e=Tv(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Ye.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Pv(e.whiteList||e.allowList):e.whiteList=Ye.whiteList,e.onTag=e.onTag||Ye.onTag,e.onTagAttr=e.onTagAttr||Ye.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Ye.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Ye.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Ye.safeAttrValue,e.escapeHtml=e.escapeHtml||Ye.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new wv(e.css))}Cp.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,i=r.options,t=i.whiteList,a=i.onTag,o=i.onIgnoreTag,n=i.onTagAttr,s=i.onIgnoreTagAttr,l=i.safeAttrValue,u=i.escapeHtml,d=r.cssFilter;i.stripBlankChar&&(e=Ye.stripBlankChar(e)),i.allowCommentTag||(e=Ye.stripCommentTag(e));var c=!1;i.stripIgnoreTagBody&&(c=Ye.StripTagBody(i.stripIgnoreTagBody,o),o=c.onIgnoreTag);var p=xv(e,function(h,y,m,v,x){var S={sourcePosition:h,position:y,isClosing:x,isWhite:Object.prototype.hasOwnProperty.call(t,m)},T=a(m,v,S);if(!Ui(T))return T;if(S.isWhite){if(S.isClosing)return"</"+m+">";var P=Cv(v),A=t[m],L=Iv(P.html,function(O,E){var _=Zi.indexOf(A,O)!==-1,R=n(m,O,E,_);return Ui(R)?_?(E=l(m,O,E,d),E?O+'="'+E+'"':O):(R=s(m,O,E,_),Ui(R)?void 0:R):R});return v="<"+m,L&&(v+=" "+L),P.closing&&(v+=" /"),v+=">",v}else return T=o(m,v,S),Ui(T)?u(v):T},u);return c&&(p=c.remove(p)),p};var Fv=Cp;(function(e,r){var i=ce,t=da,a=Fv;function o(s,l){var u=new a(l);return u.process(s)}r=e.exports=o,r.filterXSS=o,r.FilterXSS=a,function(){for(var s in i)r[s]=i[s];for(var l in t)r[l]=t[l]}();function n(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}n()&&(self.filterXSS=e.exports)})(Ua,Ua.exports);var Dr=Ua.exports,Av=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},Ov=function(){function e(r,i){var t=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=ea(ea({},Dr.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(o,n,s,l){return o==="a"&&n==="href"||(o==="img"||o==="source")&&n==="src"?t.sanitizeUrl(s):Dr.safeAttrValue(o,n,s,l)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var a;r&&!i?a=r:r&&i?(a=Object.create(this.arcgisFilterOptions),a.css={whiteList:this.arcgisCSSWhiteList},Object.keys(r).forEach(function(o){if(o==="whiteList")a.whiteList=t._extendObjectOfArrays([t.arcgisWhiteList,r.whiteList||{}]);else if(o==="css"){var n=r.css.whiteList;n!=null&&r.css instanceof Object&&Object.keys(n).forEach(function(s){return a.css.whiteList[s]=n[s]})}else a[o]=r[o]})):(a=Object.create(this.arcgisFilterOptions),a.whiteList=this.arcgisWhiteList,a.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=a,this._xssFilter=new Dr.FilterXSS(a)}return e.prototype.sanitize=function(r,i){switch(i===void 0&&(i={}),typeof r){case"number":return isNaN(r)||!isFinite(r)?null:r;case"boolean":return r;case"string":return this._xssFilter.process(r);case"object":return this._iterateOverObject(r,i);default:return i.allowUndefined&&typeof r>"u"?void 0:null}},e.prototype.sanitizeUrl=function(r,i){var t=(i??{}).isProtocolRequired,a=t===void 0?!0:t,o=this._trim(r.substring(0,r.indexOf(":"))),n=r==="/",s=/^#/.test(r),l=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return n||s||l?Dr.escapeAttrValue(r):!o&&!a?Dr.escapeAttrValue("https://".concat(r)):""},e.prototype.sanitizeHTMLAttribute=function(r,i,t,a){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(r,i,t,a):Dr.safeAttrValue(r,i,t,a)},e.prototype.validate=function(r,i){i===void 0&&(i={});var t=this.sanitize(r,i);return{isValid:r===t,sanitized:t}},e.prototype.encodeHTML=function(r){var i=this;return String(r).replace(/[&<>"'\/]/g,function(t){return i._entityMap[t]})},e.prototype.encodeAttrValue=function(r){var i=/^[a-zA-Z0-9]$/;return String(r).replace(/[\x00-\xFF]/g,function(t,a){return i.test(t)?t:"&#x".concat(Number(r.charCodeAt(a)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(r){var i={};return r.forEach(function(t){Object.keys(t).forEach(function(a){Array.isArray(t[a])&&Array.isArray(i[a])?i[a]=i[a].concat(t[a]):i[a]=t[a]})}),i},e.prototype._iterateOverObject=function(r,i){var t=this;i===void 0&&(i={});try{var a=!1,o=void 0;if(Array.isArray(r))o=r.reduce(function(s,l){var u=t.validate(l,i);return u.isValid?s.concat([l]):(a=!0,s.concat([u.sanitized]))},[]);else if(Av(r)){var n=Object.keys(r);o=n.reduce(function(s,l){var u=r[l],d=t.validate(u,i);return d.isValid?s[l]=u:(a=!0,s[l]=d.sanitized),s},{})}else return i.allowUndefined&&typeof r>"u"?void 0:null;return a?o:r}catch{return null}},e.prototype._trim=function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},e}(),k={NonSpecific:"nonSpecific",BarAndLineNoAggregation:"barAndLineNoAggregation",BarAndLineMonoField:"barAndLineMonoField",BarAndLineMultiFields:"barAndLineMultiFields",BarAndLineFromFields:"barAndLineFromFields",BarAndLineSplitBy:"barAndLineSplitBy",BarAndLineSplitByNoAggregation:"barAndLineSplitByNoAggregation",PieNoAggregation:"pieNoAggregation",PieFromCategory:"pieFromCategory",PieFromFields:"pieFromFields",BoxPlotMonoField:"boxPlotMonoField",BoxPlotMultiFields:"boxPlotMultiFields",BoxPlotMonoFieldAndCategory:"boxPlotMonoFieldAndCategory",BoxPlotMultiFieldsAndCategory:"boxPlotMultiFieldsAndCategory",BoxPlotMonoFieldAndSplitBy:"boxPlotMonoFieldAndSplitBy",BoxPlotMultiFieldsAndSplitBy:"boxPlotMultiFieldsAndSplitBy",BoxPlotMonoFieldAndCategoryAndSplitBy:"boxPlotMonoFieldAndCategoryAndSplitBy"},Xj={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function Yj(e){return e?.colorMatch??!1}function Ev(e){return e.size===2&&e.has(w.LineSeries)&&e.has(w.BarSeries)}function Lv(e){return e.size===2&&e.has(w.LineSeries)&&e.has(w.BoxPlotSeries)||e.size===1&&e.has(w.BoxPlotSeries)}function qe(e,r){let i;if(e!==void 0&&e.length>0)if(r!==void 0&&r>=0&&r<e.length)i=e[r].type;else{let t=new Set(e.map(n=>n.type)),a=Ev(t),o=Lv(t);a===!0?i=w.ComboLineAndBarSeries:o?i=w.BoxPlotSeries:t.size>=2?i=void 0:i=e[0].type}return i}function e$(e){let r=Qr();if(e!==void 0){let i=qe(e.series);(i===w.BarSeries||i===w.LineSeries||i===w.ComboLineAndBarSeries||i===w.BoxPlotSeries)&&(r=e.rotated??Qr())}return r}function t$(e){return e?.map(r=>r.type)??[]}function Dv(e){let r=e?.stackedType;if(r===void 0&&e!==void 0){let i=qe(e.series);(i===w.BarSeries||i===w.LineSeries||i===w.ComboLineAndBarSeries||i===w.RadarSeries)&&(r=_b())}return r}function jv(e){let r=e;return r=r.replace(/'/gu,"''"),r=r.replace(/[/\\"|[\]\\]/gu,"\\$&"),r}function $v(e){let r=!1;if(typeof e!="number"){let i=new Intl.Segmenter;r=Array.from(i.segment(e),t=>t.segment).some(t=>t.charCodeAt(0)>255)}return r}function _v(e){let r=e,i="";e.startsWith("'")&&e.endsWith("'")&&(r=e.slice(1,-1),i="'"),r=r.replace(/'/gu,"''");let t="";return $v(r)&&(t="N"),`${t}${i}${r}${i}`}function Tp(e){let{value:r,keepSurroundingQuotes:i,escape:t}=e,a=r?.trim();if(!gt(a)){let o="";a.startsWith("'")&&a.endsWith("'")&&(a=a.slice(1,-1),i&&(o="'")),t!==!1&&(a=jv(a)),a=`${o}${a}${o}`}return a}function r$(e){let{count:r,seriesCount:i,chartType:t,chartLimits:a}=e,{behaviorAfterLimit:o}=a??{},n=!0;if(o!==sp.RenderUpToTheLimit){let{maxBarChartSeriesCount:s,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:u,maxBarTwoSeriesCountTotal:d,maxBarThreePlusSeriesCountPerSeries:c,maxBarThreePlusSeriesCountTotal:p,maxLineChartSeriesCount:h,maxLineUniqueSeriesCountTotal:y,maxLineTwoSeriesCountPerSeries:m,maxLineTwoSeriesCountTotal:v,maxLineThreePlusSeriesCountPerSeries:x,maxLineThreePlusSeriesCountTotal:S,maxPieChartSliceCountTotal:T,maxGaugeByFeaturesLimit:P,maxBoxPlotSeriesCount:A,maxBoxUniqueSeriesCountTotal:L,maxBoxTwoSeriesCountTotal:O,maxBoxTwoSeriesCountPerSeries:E,maxBoxThreePlusSeriesCountTotal:_,maxBoxThreePlusSeriesCountPerSeries:R}=$b(a);switch(t){case w.BarSeries:case w.ComboLineAndBarSeries:{let j=r/i;i<=s?i===0?n=!0:i===1?n=r<=l:i===2?n=r<=d&&j<=u:i>2&&(n=r<=p&&j<=c):n=!1}break;case w.LineSeries:case w.RadarSeries:{let j=r/i;i<=h?i===0?n=!0:i===1?n=r<=y:i===2?n=r<=v&&j<=m:i>2&&(n=r<=S&&j<=x):n=!1}break;case w.PieSeries:n=r<=T;break;case w.BoxPlotSeries:{let j=r/i;i<=A?i===0?n=!0:i===1?n=r<=L:i===2?n=r<=O&&j<=E:i>2&&(n=r<=_&&j<=R):n=!1}break;case w.GaugeSeries:n=r<=P;break}}return n}function i$(e=[],r){let i=e.find(t=>t.name===r)?.alias;return i!==""?i??r:r}function a$(e=[],r){let i=e.find(t=>t.alias===r)?.name;return i!==""?i??r:r}function o$(e){let r=!1;switch(qe(e)){case w.PieSeries:r=!0;break;case w.BarSeries:case w.LineSeries:case w.RadarSeries:case w.ComboLineAndBarSeries:case w.BoxPlotSeries:r=e.length>1;break;case w.HistogramSeries:case w.ScatterSeries:{let i=e[0];r=i.overlays!==void 0&&Object.values(i.overlays).some(t=>t.created===!0);break}}return r}function Rv(e){let r=!0;return qe(e.series)===w.ScatterSeries&&(r=e.series.length===1),r}function kv(e){let r=!0;return qe(e.series)===w.HistogramSeries&&(r=e.series.length<=1&&e.series[0].type===w.HistogramSeries&&(!("dataTransformationType"in e.series[0])||e.series[0].dataTransformationType!==void 0&&Object.values(va).includes(e.series[0].dataTransformationType))),r}function Bv(e){let r=!0;return qe(e.series)===w.PieSeries&&(r=e.series.length<=1),r}function n$(e,r){let i=qe(r?.series),t=e.includes(i);if(t&&r!==void 0)switch(i){case w.HistogramSeries:t=kv(r);break;case w.ScatterSeries:t=Rv(r);break;case w.PieSeries:t=Bv(r);break}return t}function gt(e){return e==null||typeof e=="string"&&e.trim()===""}function qv(e,r){let i=r.find(t=>t in e);return{isInItem:i!==void 0,expr:i}}function s$(e){return qv(e,hb)}function l$(e,r){let i;switch(e){case Le.Second:i=r.seconds??"";break;case Le.Minute:i=r.minutes??"";break;case Le.Hour:i=r.hours??"";break;case Le.Day:i=r.days??"";break;case Le.Week:i=r.weeks??"";break;case Le.Month:i=r.months??"";break;case Le.Year:i=r.years??"";break;default:i="";break}return i}function p$(e){let r;switch(e){case ot.Mean:r=1;break;case ot.Median:r=2;break;case ot.StdDev:r=3;break;case ot.Normal:default:r=0;break}return r}function d$(e,r){if(r!==void 0){let{seriesId:i,overlayType:t,visible:a}=e.detail,o;switch(t){case ot.Mean:r.series[0].type===w.HistogramSeries&&(o=r.series[0].overlays?.mean);break;case ot.Median:r.series[0].type===w.HistogramSeries&&(o=r.series[0].overlays?.median);break;case ot.StdDev:r.series[0].type===w.HistogramSeries&&(o=r.series[0].overlays?.standardDeviation);break;case ot.Normal:r.series[0].type===w.HistogramSeries&&(o=r.series[0].overlays?.comparisonDistribution);break;case ot.Trendline:r.series[0].type===w.ScatterSeries&&(o=r.series[0].overlays?.trendLine);break;default:o=r.series.find(n=>n.id===i);break}o!==void 0&&(o.visible=a)}}function c$(e){return new Ov().sanitize(e)}function u$(e){return e!=null&&!Number.isNaN(e)&&Number.isFinite(e)}function f$(e,r){let i;return r!==void 0&&(i={...r,rotated:e}),i}function h$(e,r){let i={fieldToSort:""};if(!gt(e)){let t=e.trim(),a=t.split(" ").at(-1)?.toUpperCase();a===at.Ascending||a===at.Descending?i={fieldToSort:t.substring(0,t.lastIndexOf(" ")),orderBy:a}:(i={fieldToSort:t},r!==!1&&(i.orderBy=at.Ascending))}return i}function m$(e){return e===k.BarAndLineSplitBy||e===k.BarAndLineSplitByNoAggregation||e===k.BoxPlotMonoFieldAndSplitBy||e===k.BoxPlotMultiFieldsAndSplitBy||e===k.BoxPlotMonoFieldAndCategoryAndSplitBy}function y$(e){return e?.selectionOIDs===void 0||e.selectionOIDs.length===0}function g$(e={arrayA:[],arrayB:[],getKey:r=>r}){let{arrayA:r,arrayB:i,getKey:t}=e;if(i.length===0||r.length===0)return r;let a=new Map;i.forEach((l,u)=>{let d=t(l);a.set(d,u)});let o=[],n=[];r.forEach((l,u)=>{let d=t(l);a.has(d)&&(o.push(u),n.push(l))}),n.sort((l,u)=>{let d=t(l),c=t(u);return a.get(d)-a.get(c)});let s=[...r];return o.forEach((l,u)=>{s[l]=n[u]}),s}var Kt=["1.0.0","1.0.1","2.0.0","3.0.0","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2","3.10.0","3.11.0","4.0.0","4.0.1","5.0.0","6.0.0","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","7.0.0","7.1.0","7.1.1","7.2.0","7.2.1","7.3.1","7.4.0","7.4.1","7.5.0","7.5.1","7.6.0","8.0.0","8.0.1","9.0.0","9.1.0","9.2.0","9.3.0","9.4.0","9.5.0","9.6.0","9.6.1","9.7.0","10.0.0","11.0.0","12.0.0","13.0.0","14.0.0","14.0.1","15.0.0","16.0.0","16.1.0","16.1.1","17.0.0","17.1.0","17.2.0","17.2.1","18.0.0","18.1.0","18.1.1","18.1.2","18.1.3","19.0.0","20.0.0","20.1.0","20.2.0","21.0.0"],Mv="1.0.0",Nv="unrecognized.version",Wv=[w.LineSeries,w.BarSeries,w.ComboLineAndBarSeries,w.RadarSeries];function qa(e,r){let i=0;if(e!==r){let t=e.split("."),a=r.split(".");for(let o=0;o<t.length;o+=1){let n=Number.parseInt(t[o],10),s=Number.parseInt(a[o],10);if(n>s||Number.isNaN(s)){i=1;break}if(n<s){i=-1;break}}}return i}function zv(e){return e!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(e):!1}function Vv(e){let r=It.Same,i=[];if(zv(e)&&e!==void 0){Kt.sort(qa);let t=qa(e,Kt[Kt.length-1]);if(t===1?r=It.Newer:t===-1&&(r=It.Older),r===It.Newer||r===It.Same)i.push(e);else{for(let a=Kt.length-2;a>=0;a-=1)if(qa(e,Kt[a])>=0){i=Kt.slice(a,Kt.length);break}i.length===0&&i.push(Mv)}}else r=It.Unrecognized,i.push(Nv);return{versionStatus:r,versions:i}}function Uv(e){let{series:r}=e,i=("showMean"in e?e.showMean:!1)===!0?r.find(t=>t.type===w.LineSeries):r[0];return i??=r[0],i}function b$(e,r){let i=e!==null?e.toString():null,t=r!=null?r.toString():null;return t!==null&&t!==i?De.SFS:De.SLS}function oo(e,r){let i="";return e!==void 0&&e.includes("=")&&(i=r!==!1?Tp({value:e.split("=")[0]}):e.split("=")[0].trim()),i}function Xr(e){let{where:r,normalize:i,keepSurroundingQuotes:t,escape:a}=e,o="";return r!==void 0&&r.includes("=")&&(o=r.split("=").slice(1).join("=").trim(),o==="null"?o=null:o.trim()!==""&&!Number.isNaN(Number(o))?o=Number(o):i===!1?a===!0&&(o=_v(o)):o=Tp({value:o,keepSurroundingQuotes:t,escape:a})),o}function jr(e){let r=!1;if(e===void 0||e==="")r=!0;else if(e.includes("=")){let i=oo(e,!1),t=Xr({where:e,normalize:!1});r=i===`${t}`}return r}function v$(e){let{where:r,normalize:i,escape:t}=e,a=i===void 0?!0:i,o=oo(r),n=Xr({where:r,normalize:a,keepSurroundingQuotes:!0,escape:t}),s=r;return o!==""&&n!==""&&(s=`${o}=${n}`),s}function Gv(e){let r=k.PieFromCategory;return e[0].query?.outStatistics===void 0?r=k.PieNoAggregation:e[0].query?.groupByFieldsForStatistics===void 0&&(r=k.PieFromFields),r}function Hv(e){let r=k.BarAndLineMonoField,i=e[0].query?.where;return e[0].query?.groupByFieldsForStatistics===void 0&&(e[0].query?.outStatistics??[]).length>0?r=k.BarAndLineFromFields:i===void 0&&e[0].query?.outStatistics===void 0?r=k.BarAndLineNoAggregation:jr(i)?e.length>1&&(r=k.BarAndLineMultiFields):r=e[0].query?.outStatistics===void 0?k.BarAndLineSplitByNoAggregation:k.BarAndLineSplitBy,r}function Qv(e){let r=k.BoxPlotMonoField,i=e.length===1,t=e.find(s=>s.type===w.LineSeries)??e[0],{x:a}=t,o="y"in t?t.y:"",n=t.query?.where;switch(a){case ro:typeof o=="object"&&o.length>1?jr(n)?i&&(r=k.BoxPlotMultiFields):r=k.BoxPlotMultiFieldsAndSplitBy:i?r=k.BoxPlotMonoField:jr(n)||(r=k.BoxPlotMonoFieldAndSplitBy);break;default:i?r=k.BoxPlotMonoFieldAndCategory:jr(n)?r=k.BoxPlotMultiFieldsAndCategory:r=k.BoxPlotMonoFieldAndCategoryAndSplitBy;break}return r}function bt(e){let r=k.NonSpecific;if(e?.[0]!==void 0)switch(qe(e)){case w.PieSeries:r=Gv(e);break;case w.RadarSeries:case w.BarSeries:case w.LineSeries:case w.ComboLineAndBarSeries:r=Hv(e);break;case w.BoxPlotSeries:r=Qv(e);break}return r}function S$(e){let{seriesConfig:r,xAxisValueFormatType:i,setTimeBinningInfoWhenNotProvided:t}=e,a=!1;if((r.type===w.LineSeries||r.type===w.BarSeries||r.type===w.RadarSeries)&&r.binTemporalData!==!1&&i===w.DateAxisFormat){let o=bt([r]);if(r.temporalBinning&&o!==k.BarAndLineNoAggregation&&o!==k.BarAndLineSplitByNoAggregation){let{unit:n,size:s}=r.temporalBinning;a=t===!0||s!==void 0&&s>0&&n!==void 0}}return a}function w$(e){return Wv.includes(e.type)}var oe={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"};function Kv(e){let r=e===void 0||e==="";return{[oe.Average]:`${r?"":`${e}_`}${oe.Average}`,[oe.Min]:`${r?"":`${e}_`}${oe.Min}`,[oe.Max]:`${r?"":`${e}_`}${oe.Max}`,[oe.FirstQuartile]:`${r?"":`${e}_`}${oe.FirstQuartile}`,[oe.Median]:`${r?"":`${e}_`}${oe.Median}`,[oe.ThirdQuartile]:`${r?"":`${e}_`}${oe.ThirdQuartile}`,[oe.IQR]:`${r?"":`${e}_`}${oe.IQR}`,[oe.Outlier]:`${r?"":`${e}_`}${oe.Outlier}`,[oe.StandardDeviation]:`${r?"":`${e}_`}${oe.StandardDeviation}`}}function Jv(e){return e.subType===_o.FeatureGauge}function x$(e){let r;return e!==void 0&&("bins"in e?r=e.bins:"dataItems"in e&&(r=e.dataItems)),r}function Zv(e){return e===k.BoxPlotMultiFields||e===k.BoxPlotMultiFieldsAndCategory||e===k.BoxPlotMultiFieldsAndSplitBy}function ra(e){let{key:r,y:i,chartSubType:t,splitBy:a,splitByValue:o,showOutliers:n,standardizeValues:s}=e,l=o,u=Kv(i)[r];return n===!0&&(r===oe.Min||r===oe.Max)&&(u=`${u}${Rb}`),s===!0&&(Zv(t)||r===oe.Outlier)&&(u=`${u}${kb}`),(o===void 0||`${o}`.trim()==="")&&(l=Xr({where:a,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(u=`${l}${u!==""?`_${u}`:""}`),u}function Ma(e){let{dataItem:r,y:i,splitBy:t,showOutliers:a}=e,o=ra({key:oe.FirstQuartile,y:i,splitBy:t,showOutliers:a}),n=ra({key:oe.ThirdQuartile,y:i,splitBy:t,showOutliers:a});return Number.isFinite(r[o])||Number.isFinite(r[n])}function Xv(e){let{configSeries:r,boxPlotDataItem:i,yList:t,showOutliers:a}=e,o=bt(r),n=!1;switch(o){case k.BoxPlotMonoField:case k.BoxPlotMultiFields:case k.BoxPlotMonoFieldAndCategory:n=Ma({dataItem:i,showOutliers:a});break;case k.BoxPlotMultiFieldsAndCategory:n=t.some(s=>Ma({dataItem:i,y:s,showOutliers:a}));break;case k.BoxPlotMonoFieldAndSplitBy:case k.BoxPlotMultiFieldsAndSplitBy:case k.BoxPlotMonoFieldAndCategoryAndSplitBy:n=r.some(s=>Ma({dataItem:i,splitBy:s.query?.where,showOutliers:a}));break;default:n=!1;break}return n}function Pp(e){return e.map(r=>r.id).filter(r=>r!=="undefined")}function ia(e,r){let i=[],t=r??Pp(e),a=bt(e);return i=e.filter(o=>t.includes(o.id)).map(o=>{let n="y"in o?o.y:void 0;return n!==void 0&&a===k.BarAndLineSplitByNoAggregation&&(n=`${n.toString()}_${Xr({where:o.query?.where})}`),n}).filter(o=>o!==void 0),Array.from(new Set(i.flat()))}function Yv(e){let{seriesConfig:r,filteredSeriesIds:i,showMean:t}=e,a=[];if(t===!0){let o=r.find(n=>n.type===w.BoxPlotSeries);o!==void 0&&"y"in o&&(a=[o.y].flat())}else a=ia(r,i);return a}function Jt(e,r){return e===null&&r===!0||Number.isFinite(e)}function eS(e){let{dataItem:r,x:i,y:t,nullAsValid:a=!1}=e;return r[i]!==void 0&&(typeof r[i]!="number"||Number.isFinite(r[i]))&&Jt(r[t],a)}function I$(e){let{chartConfig:r,nullAsValid:i=!1,dataSet:t}=e,a=!0;if(r!==void 0){let o=qe(r.series);if(t===void 0||t.length===0)a=!0;else{let n=ia(r.series);a=!t.some(s=>{let l=!1;switch(o){case w.HistogramSeries:{let u=s;l=Jt(u.minValue,i)&&Jt(u.maxValue,i)}break;case w.ScatterSeries:{let u=s,{x:d,y:c}=r.series[0];l=Jt(u[d],i)&&Jt(u[c],i)}break;case w.ComboLineAndBarSeries:case w.RadarSeries:case w.LineSeries:case w.BarSeries:{let u=s,{x:d}=r.series[0];l=n.some(c=>eS({dataItem:u,x:d,y:c,nullAsValid:i}));break}case w.BoxPlotSeries:{let u=r.series,{showOutliers:d}=r;l=Xv({configSeries:u,boxPlotDataItem:s,yList:n,showOutliers:d});break}case w.PieSeries:{let u=s,{x:d,y:c}=r.series[0];bt(r.series)===k.PieFromFields&&(d=ni,c=Ia);let p=u[c];l=u[d]!==void 0&&u[d]!==null&&!Aa(p)&&Jt(Number(p),i)}break;case w.GaugeSeries:{let{x:u}=r.series[0];l=Jt(s[u],i)}break}return l})}}return a}function tS(e,r){let i=new Map,t=r??Pp(e);return e.forEach(a=>{if(t.includes(a.id)&&"y"in a){let o=i.get(a.type)??[];o.push(a.y),i.set(a.type,o)}}),i}function rS(e){let{seriesConfig:r,filteredSeriesIds:i,filteredData:t}=e,a=tS(r,i),o=r.find(l=>l.type===w.LineSeries||l.type===w.RadarSeries)?.stackNegativeValuesToBaseline??!0,n=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER;return t.forEach((l,u)=>{a.forEach(d=>{if(o){let c=[],p=[];for(let h=0;h<d.length;h+=1){let y=l[d[h]];y<0?p[u]=(p[u]??0)+y:c[u]=(c[u]??0)+y}c=c.filter(h=>Number.isFinite(h)).sort((h,y)=>h-y),p=p.filter(h=>Number.isFinite(h)).sort((h,y)=>h-y),n=Math.max(n,c.length>0?c[c.length-1]:p[p.length-1]),s=Math.min(s,p.length>0?p[0]:c[0])}else{let c=0;for(let p=0;p<d.length;p+=1){let h=l[d[p]];c+=h,n=Math.max(n,c),s=Math.min(s,c)}}})}),{stackedMinY:s,stackedMaxY:n}}function iS(e){let{dataItem:r,...i}=e,t=ra({key:oe.Min,...i}),a=ra({key:oe.Max,...i}),o=r[t],n=r[a];return{min:o,max:n}}function C$(e){let r=Number.NaN,i=Number.NaN,t,a,{chartConfig:o,chartData:n,filteredSeriesIds:s}=e,{series:l}=o;if(l?.length>0){let{x:u}=l[0],d=n.filter(c=>c[u]!==null);if([t,a]=Gr(d,c=>c[u]),o.axes?.[1]?.valueFormat.type===w.DateAxisFormat&&t!==void 0&&a!==void 0&&([t,a]=[new Date(t).valueOf(),new Date(a).valueOf()]),qe(o.series)===w.BoxPlotSeries){r=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;let c=ia(l,s),p=bt(l),h="standardizeValues"in o?o.standardizeValues===!0:void 0,y=o.series.map(m=>m.visible!==!1?Xr({where:m.query?.where}):"");y.length===0&&y.push(" ");for(let m=0;m<d.length;m+=1)for(let v=0;v<c.length;v+=1){let x=p===k.BoxPlotMultiFieldsAndCategory?c[v]:void 0;for(let S=0;S<y.length;S+=1){let{min:T,max:P}=iS({y:x,splitByValue:y[S],chartSubType:p,showOutliers:!1,standardizeValues:h,dataItem:d[m]});T!=null&&T<r&&(r=T),P!=null&&P>i&&(i=P)}}}else switch(Dv(o)){case Mr.Stacked100:{r=Number.NaN,i=Number.NaN;break}case Mr.Stacked:{let{stackedMinY:c,stackedMaxY:p}=rS({seriesConfig:l,filteredData:d,filteredSeriesIds:s});r=c,i=p;break}case Mr.Side:default:{r=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;let c=ia(l,s);for(let p=0;p<c.length;p+=1){let h=c[p],[y,m]=Gr(d,v=>v[h]);y!==void 0&&y<r&&(r=y),m!==void 0&&m>i&&(i=m)}break}}}return{minY:r,maxY:i,minX:t,maxX:a}}async function vt(e=np().locale){let r=await import("./XGY7BCLR.js");switch(e){case D.Arabic:r=await import("./I5XFZO2Q.js");break;case D.Bosnian:r=await import("./MQFRQWW2.js");break;case D.Bulgarian:r=await import("./SB4SN6WF.js");break;case D.Catalan:r=await import("./N6QOGIBP.js");break;case D.Czech:r=await import("./3K4E2YVP.js");break;case D.Danish:r=await import("./7KWEJ6BU.js");break;case D.German:r=await import("./F57GLOPB.js");break;case D.Greek:r=await import("./SDDBBFVS.js");break;case D.EnglishUSA:r=await import("./OJLWF72A.js");break;case D.Spanish:r=await import("./4KPTWA6D.js");break;case D.Estonian:r=await import("./SSJC363X.js");break;case D.Finnish:r=await import("./D4PKAPI4.js");break;case D.French:r=await import("./QF2PRONL.js");break;case D.Hebrew:r=await import("./I42TJK34.js");break;case D.Croatian:r=await import("./QPXMGAMU.js");break;case D.Hungarian:r=await import("./4PW3XKWV.js");break;case D.Indonesian:r=await import("./PKAI23LW.js");break;case D.Italian:r=await import("./JX3JEYAB.js");break;case D.Japanese:r=await import("./JPN2MDU7.js");break;case D.Korean:r=await import("./LITFKKMO.js");break;case D.Lithuanian:r=await import("./OCYCT576.js");break;case D.Latvian:r=await import("./KEM72BCC.js");break;case D.NorwegianBokml:r=await import("./WIK7H6LZ.js");break;case D.Dutch:r=await import("./XOP2RKJO.js");break;case D.Polish:r=await import("./SY2E25CV.js");break;case D.PortugueseBrazil:r=await import("./6523OZ7H.js");break;case D.PortuguesePortugal:r=await import("./OVZFQBGA.js");break;case D.Romanian:r=await import("./WX6OW2GZ.js");break;case D.Russian:r=await import("./TDSEDBEF.js");break;case D.Serbian:r=await import("./L27GVMTV.js");break;case D.Slovak:r=await import("./Q5ZQNYDV.js");break;case D.Slovenian:r=await import("./DRJLIW64.js");break;case D.Swedish:r=await import("./6VTWUEMA.js");break;case D.Thai:r=await import("./TPS3KN3W.js");break;case D.Turkish:r=await import("./LM3ZTCBB.js");break;case D.Ukrainian:r=await import("./PC3MEYGK.js");break;case D.Vietnamese:r=await import("./LUG7YVZT.js");break;case D.ChineseChina:r=await import("./3XTZL6NT.js");break;case D.ChineseHongKong:r=await import("./635JD6XQ.js");break;case D.ChineseTaiwan:r=await import("./MTGMXRS5.js");break;case D.English:}return r}var Yt=class extends Error{constructor(r,i,t){super(i),this.name=r,this.details=t}},ir={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound"};function T$(e){return e!==void 0&&(!("url"in e)||!e.url)}function no(e){return e!==void 0&&"layer"in e}function aS(e){return e!==void 0&&"type"in e&&e.type==="feature"}function oS(e){return e!==void 0&&"type"in e&&e.type==="subtype-group"}function so(e){return e!==void 0&&"type"in e&&e.type==="subtype-sublayer"}function P$(e){return aS(e)||so(e)}function we(e){return so(e)?e.parent:e}function Fp(e){return e.capabilities?.query?.supportsDistance||we(e).sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function nS(e){return e.sourceJSON?.advancedQueryCapabilities?.supportsQueryBins}function sS(e){return we(Ae(e))?.sourceJSON?.advancedQueryCapabilities.supportedOperationsWithCacheHint.includes("queryBins")}function F$(e){let r=!1,i=we(Ae(e)).sourceJSON;if(i){let t=i.queryBinsCapabilities?.supportsFixedIntervalBin,a=i.queryBinsCapabilities?.supportedStatisticTypes,o=[se.Maximum,se.Count].every(n=>a?.includes(n.toUpperCase())||a?.includes(n.toLowerCase()));r=t&&o}return r}function A$(e){let r;return no(e)?r=e.layer:r=e,r}function Ae(e){let r;return no(e)?r=e.layer:r=e,r}function lS(e){let r=!1,i=we(e).sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],t=e.capabilities?.query.supportedSpatialAggregationStatistics??{};return r=i.includes("EnvelopeAggregate")||"envelope"in t&&t.envelope===!0,r}function O$(e){let{chartConfig:r,queryObject:i}=e,t,a=Ae(i);return a&&(t={id:a.id,layerType:"ArcGISFeatureLayer"},a.url&&(t.url=a.url)),{...r,iLayer:t}}var Kr=new Map;function pS(e){let r;switch(e){case Vt.Feet:r="esriSRUnit_Foot";break;case Vt.Miles:r="esriSRUnit_StatuteMile";break;case Vt.NauticalMiles:r="esriSRUnit_NauticalMile";break;case Vt.USNauticalMiles:r="esriSRUnit_USNauticalMile";break;case Vt.Meters:r="esriSRUnit_Meter";break;case Vt.Kilometers:r="esriSRUnit_Kilometer";break}return r}async function E$(e){let{queryObject:r,queryConfig:i,outputFormat:t,dataFormat:a,outAnalytics:o}=e,{where:n,geometry:s,distance:l,units:u,timeExtent:d}=i,c,p=Ae(r),h=we(p),y={query:{where:Jr([n,h.definitionExpression])}},m=lo(s)?.extent?.toJSON();if(m!==void 0){let x=pS(u),{xmin:S,ymin:T,xmax:P,ymax:A}=m;y.query={...y.query,geometryType:"esriGeometryEnvelope",geometry:`${S},${T},${P},${A}`,distance:l,units:x,inSR:s?.spatialReference?.wkid}}d&&(y.query.time=`${d[0]},${d[1]}`);let v=`${h.url}/${h.layerId}/queryAnalytic?f=${t}&dataFormat=${a}&outAnalytics=${o}`;try{c=(await Yi(v,y)).data?.features?.[0]?.attributes}catch(x){let S=await vt();throw new Yt(ir.QueryFeaturesError,S.queryError,x)}return c}function dS(e,r){return{lowerBoundaryAlias:`charts_lower_boundary_${e}`,upperBoundaryAlias:`charts_upper_boundary_${e}`,stackAlias:`charts_stack_alias_${r}`}}async function L$(e){let{queryObject:r,queryConfig:i,xStep:t,xMin:a,xMax:o,x:n,y:s,yStep:l,errorStrings:u}=e,d=[];if(Number.isFinite(t)&&Number.isFinite(l)&&Number.isFinite(a)&&Number.isFinite(o)&&t>0&&l>0){let c=Ae(r),p=we(c),h=dS(n,s),y={query:{cacheHint:sS(r),outStatistics:JSON.stringify(i.outStatistics),lowerBoundaryAlias:h.lowerBoundaryAlias,upperBoundaryAlias:h.upperBoundaryAlias,bin:JSON.stringify({type:"fixedIntervalBin",parameters:{interval:t,start:a,end:o},onField:n,stackBy:{value:`FLOOR(${s} / ${l})`,type:"Expression",valueType:We.Integer,outAlias:h.stackAlias}})}},m=`${p.url}/${p.layerId}/queryBins?f=json&dataFormat=json`;try{d=(await Yi(m,y)).data?.features}catch(v){throw new Yt(ir.QueryFeaturesError,u.errors.queryError,v)}}return d}async function D$(e){let{queryConfig:r,x:i,queryObject:t,chartSubType:a,isGaugeByFeature:o}=e,n=Ae(t),s;if(t!==void 0){let l=n.objectIdField,{where:u,gdbVersion:d,timeExtent:c,geometry:p,distance:h,units:y}=r,m=yS(c),v=lo(p),x=we(n),S=Jr([u,x.definitionExpression]),T={returnDistinctValues:!0,outFields:o===!0||a===k.PieNoAggregation||a===k.BarAndLineNoAggregation||a===k.BarAndLineSplitByNoAggregation?[l]:[i],where:S,gdbVersion:d??x.gdbVersion,timeExtent:m??x.timeExtent,geometry:v};Op(T)&&(T.cacheHint=!0),T.geometry!==void 0&&Fp(n)&&(h!==void 0&&(T.distance=h),y!==void 0&&(T.units=y));try{s=await t.queryFeatureCount(T)}catch{s=Number.NaN}}return s}async function j$(e){let{queryObject:r,queryConfig:i,abortKey:t}=e,{outStatistics:a}=i,o=new Map;if(r!==void 0&&a!==void 0&&a.length>0){let n=a.map(d=>{let{statisticType:c,onStatisticField:p,outStatisticFieldName:h}=d;return{statisticType:c,onStatisticField:p,outStatisticFieldName:h?.toUpperCase()}});i.outStatistics=n,delete i.num,delete i.orderByFields;let s=Dp({queryObject:r,queryConfig:i}),l;try{l=await r.queryFeatures(s,{signal:t!==void 0?Kr.get(t)?.signal:void 0})}catch(d){if(!to.isAbortError(d)){let c=await vt();throw new Yt(ir.QueryFeaturesError,c.queryError,d)}}let u=l?.features?.[0]?.attributes;u!==void 0&&a.forEach(d=>{let{outStatisticFieldName:c}=d;if(c!==void 0){let p=u[c.toLowerCase()]??u[c.toUpperCase()]??u[c];p!==void 0&&o.set(c,p)}})}return o}async function Ap(e){let{queryObject:r,queryConfig:i,returnUniqueIdsOnly:t,abortKey:a}=e,o=[],n=Ae(r);if(r!==void 0){let s=SS(n),l=Dp({queryObject:r,queryConfig:i,maxRecordCountFactor:s});try{t===!0?"queryObjectIds"in r?o=await r.queryObjectIds(l):(l.outFields=[n.objectIdField],o=(await r.queryFeatures(l,{signal:a!==void 0?Kr.get(a)?.signal:void 0})).features.map(u=>u.attributes[n.objectIdField])):o=(await r.queryFeatures(l,{signal:a!==void 0?Kr.get(a)?.signal:void 0})).features}catch(u){if(!to.isAbortError(u)){let d=await vt();throw new Yt(ir.QueryFeaturesError,d.queryError,u)}}}return o}async function cS(e){let r=[],{featureCount:i,maxRecords:t,queryConfig:a}=e,o=[],n=0,s=a?.start??0;for(;n<Xt.maxParallelRequests&&s<i;){let l={...e};l.queryConfig={...a,start:s,num:Math.min(t,i-s)},r.push(Ap(l)),s+=t,n+=1}return o=(await Promise.all(r)).flat(),o}async function uS(e){let{queryObject:r,queryConfig:i,returnUniqueIdsOnly:t,featureCount:a,noBatch:o,abortKey:n}=e,s=[],l=Ae(r);if(r!==void 0){let u=a??1,d=Ep(l);if(o!==!0&&u>d&&l.capabilities?.query.supportsPagination){let c=0,p=0,h=Math.ceil(u/d),y=Math.ceil(h/Xt.maxParallelRequests),m=[];for(;p<y;){c=p*Xt.maxParallelRequests*d;let v=cS({queryConfig:{...i,start:c},queryObject:r,maxRecords:d,featureCount:u,returnUniqueIdsOnly:t,abortKey:n});m.push(v),p+=1}s=(await Promise.all(m)).flat()}else(Number.isNaN(u)||u>=0)&&(s=await Ap({queryObject:r,queryConfig:i,returnUniqueIdsOnly:t,abortKey:n}))}return s}async function $$(e){let{queryObject:r,queryConfig:i,uniqueFeature:t,abortKey:a}=e,o={...i,returnDistinctValues:!0};return await uS({queryObject:r,abortKey:a,queryConfig:o,returnUniqueIdsOnly:!0,featureCount:t===!0?1:void 0})}function _$(e){if(e!==void 0){let r=Kr.get(e);r!==void 0&&r.abort(),Kr.set(e,new AbortController)}}function fS(e){return{lowerBoundaryAlias:`charts_lower_boundary_${e}`,upperBoundaryAlias:`charts_upper_boundary_${e}`}}async function R$(e){let{queryObject:r,dateField:i,splitByField:t,queryConfig:a,temporalBinning:o}=e,n=[];if(o){let{unit:s}=o;try{if(s){let l=we(Ae(r));if(nS(l)&&r&&"queryAttributeBins"in r){let u=vS({queryObject:r,queryConfig:a,temporalBinning:o,dateField:i,splitByField:t});n=(await r.queryAttributeBins(u)).features.map(d=>d.attributes)}}}catch(l){let u=await vt();throw new Yt(ir.QueryFeaturesError,u.queryError,l)}}return n}function Op(e){let r=!e.geometry||e.geometry.type==="extent",i=(e.where??"").toUpperCase(),t=!i.includes("CURRENT_TIMESTAMP")&&!i.includes("CURRENT_DATE")&&!i.includes("CURRENT_TIME");return r&&t}function Ep(e){let r=we(e)?.sourceJSON,i=r?.maxRecordCount??Xt.maxRecords;return r?.advancedQueryCapabilities?.supportsMaxRecordCountFactor&&r?.maxRecordCount!==void 0&&(i=r.maxRecordCount*Xt.maxRecordCountFactor),i}function Jr(e,r){let i,t=Array.from(new Set(e)).filter(a=>a!=null&&a!==""&&!jr(a));return t.sort((a,o)=>o.length-a.length),t.length===1?[i]=t:t?.forEach(a=>{a!==void 0&&(gt(i)?i=`(${a})`:i?.includes(`(${a})`)||(i=`${i} ${r??"AND"} (${a})`))}),i??"1=1"}function hS(e,r){let i=r;if(e!==void 0){let t=Ae(e),a=we(t).timeExtent;a?.start!=null&&a?.end!=null&&(i=[a.start.valueOf(),a.end.valueOf()])}return i}function mS(e){let{queryObject:r,defaultGeometry:i,ignoreViewExtent:t}=e,a=i;if(!t&&no(r)){let o=r.view.extent,{xmin:n,xmax:s,ymin:l,ymax:u,zmin:d,zmax:c,spatialReference:p}=o;a={xmin:n,ymin:l,zmin:d,xmax:s,ymax:u,zmax:c,spatialReference:p}}return a}function yS(e){let r;return e!==void 0&&(r=new op({start:new Date(e[0]),end:new Date(e[1])})),r}function lo(e){let r;return e!==void 0&&(r=eo.fromJSON(e)),r}function gS(e){return e===void 0?["*"]:Array.from(new Set(e))}function Lp(e){let{queryObject:r,queryConfig:i,queryType:t}=e,{where:a,outStatistics:o,geometry:n,distance:s,units:l,timeExtent:u,returnDistinctValues:d}=i??{},c=t==="Query"?new db({}):new pb({}),p=Ae(r),h=we(p),y=[a,h.definitionExpression];if(c.where=Jr(y),c.returnDistinctValues=d??!1,o!==void 0){let x=lS(p);c.outStatistics=o.filter(S=>S.statisticType!==se.EnvelopeAggregate||x).map(S=>lb.fromJSON(S))}let m=lo(n);m!==void 0&&(c.geometry=m,i?.spatialRelationship&&(c.spatialRelationship=i.spatialRelationship),Fp(p)&&(s!==void 0&&(c.distance=s),l!==void 0&&(c.units=l)));let v;return u&&(v=new op({start:u?.[0],end:u?.[1]})),v!==void 0?c.timeExtent=v:h.timeExtent!==void 0&&(c.timeExtent=h.timeExtent),Op(c)&&(c.cacheHint=!0),c}function bS(e){let r;switch(e){case lr.Start:r="first";break;case lr.End:r="last";break}return r}function vS(e){let{queryObject:r,queryConfig:i,temporalBinning:t,dateField:a,splitByField:o}=e,n=Lp({queryObject:r,queryConfig:i,queryType:"AttributeBinsQuery"}),{type:s,unit:l,size:u,trimIncompleteTimeInterval:d,timeAggregationType:c}=t,{start:p,end:h,offset:y,outTimeZone:m}=s===Sa.CalendarBased?t:{},v=fS(a);if(n.lowerBoundaryAlias=v.lowerBoundaryAlias,n.upperBoundaryAlias=v.upperBoundaryAlias,n.outTimeZone=m??Intl.DateTimeFormat().resolvedOptions().timeZone,n.binParameters={type:"date",field:a,interval:{unit:l,value:u},returnFullIntervalBin:d===!1,snapToData:bS(c),start:p,end:h,offset:y?{unit:y.unit,value:y.size}:null},!gt(o)){let x=Ae(r),S=we(x).fields.find(T=>T.name===o)?.type;(!S||S==="string"||S==="integer")&&(n.binParameters.splitBy={type:"field",value:o,valueType:S??"string"})}return n}function Dp(e){let{queryObject:r,queryConfig:i,maxRecordCountFactor:t}=e,{groupByFieldsForStatistics:a,orderByFields:o,gdbVersion:n,start:s,num:l,outFields:u}=i??{},d=Lp({queryObject:r,queryConfig:i,queryType:"Query"});d.returnGeometry=!1;let c=Ae(r),p=we(c);return d.outFields=gS(u),d.groupByFieldsForStatistics=a??d.groupByFieldsForStatistics,d.orderByFields=o??[],d.objectIds=i?.objectIds,t!==void 0&&(d.maxRecordCountFactor=t),n!==void 0&&n!==""?d.gdbVersion=n:p.gdbVersion!==void 0&&p.gdbVersion!==""&&(d.gdbVersion=p.gdbVersion),l!==void 0&&(d.num=l),s!==void 0&&(d.start=s,d.num=d.num??Ep(c)),d}function SS(e){return we(e)?.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?Xt.maxRecordCountFactor:void 0}function k$(e){let r,i,t;return e!==void 0&&(r=e.type,(r===oi.UniqueValue||r===oi.ClassBreaks)&&(i=e.field??void 0,r===oi.ClassBreaks&&(t=e.normalizationField??void 0))),{rendererType:r,rendererField:i,rendererNormalizationField:t}}var wS=(0,ap.default)(async e=>{let r=e.featureCollection,i,t;if(r?.layers?.[0]!==void 0){let n=r.layers[0];i=n.featureSet,t=n.layerDefinition}else t=e.layerDefinition;let a={};if(i!==void 0){if(a.source=ob.fromJSON(i).features,t?.fields!==void 0&&(a.fields=t.fields.map(n=>ab.fromJSON(n))),t?.objectIdField!==void 0&&(a.objectIdField=t.objectIdField),t?.geometryType!==void 0){let n=eo.fromJSON({geometryType:t.geometryType});n?.type!==void 0&&n?.type!=="extent"&&(a.geometryType=n.type)}t?.spatialReference!==void 0&&(a.spatialReference=t.spatialReference)}else a.id=e.id,t?.id!==void 0&&(a.layerId=t.id),e.url!==void 0&&(a.url=e.url),e.itemId!==void 0&&t?.id!==void 0&&(a.portalItem={id:e.itemId});if(t!==void 0){let n=t.drawingInfo;n?.renderer!==void 0&&(a.renderer=ip.fromJSON(n.renderer))}let o=new nb(a);return await o.load(),o});async function B$(e){let{layer:r,view:i,chartConfig:t}=e,a;if(r!==void 0){let o=Ae(r),n=we(o);if(i!==void 0&&!n.isTable){n.outFields=["*"];let s=u=>"highlight"in u,l=await i.whenLayerView(n);s(l)&&(a=l)}else a=r}else"iLayer"in t&&t.iLayer&&(a=await wS(t.iLayer));return a}async function po(e,r){let i=Ae(e),t=[];if(i!==void 0){await i.load();let a=r===!0&&i?.popupTemplate?.fieldInfos!==void 0;t=i.fields.map(o=>{let n=o.toJSON();if(a){let s=i.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===o.name.toLowerCase())?.label;s!==void 0&&s!==o.name&&(n.alias=s)}return n})}return t}function co(e,r=[]){return r.find(i=>i.name===e)}function q$(e){return e.find(r=>r.type===We.OID)?.name??""}function jp(e){return[We.Single,We.Double,We.SmallInteger,We.Integer].includes(e.type)}function M$(e){return e.type===We.Date}function N$(e){return[We.SmallInteger,We.Integer].includes(e.type)}function W$(e){return e.filter(r=>r.type===We.Date).map(r=>r.name)}function z$(e){return e.filter(r=>jp(r)).map(r=>r.name)}function xS(e){let{subtypeInfo:r,fieldName:i,fieldValueToMatch:t}=e,a,o=n=>`${n.id}`==`${t}`;return r?.subtypeField===i&&r.subtypes?a=r.subtypes.find(o)?.name:r?.typeIdField===i&&r.types&&(a=r.types.find(o)?.name),a}function zl(e,r){let i=[],t=oS(e)?e.subtypes:e[r];return t?.[0]!==void 0&&t.forEach(a=>{let{name:o,domains:n}=a,s="id"in a?a.id:void 0;!s&&"code"in a&&(s=a.code);let l=Object.entries(n??{}),u=[],d=l?.filter(([c,p])=>p?.type==="coded-value")?.map(([c,p])=>{let h={fieldName:c,name:o,codedValues:u};if(p&&"codedValues"in p){let y=p.codedValues.map(({code:m,name:v})=>({name:v,code:m}));h={fieldName:c,name:p.name,codedValues:y}}return h});i.push({id:s??"",name:o,domains:d})}),i.length===0?void 0:i}function V$(e){let r;if(e!==void 0){let i=Ae(e);if(!so(i)&&!gt(i?.typeIdField)){let t=zl(i,"types");t!==void 0&&(r={typeIdField:i.typeIdField??void 0,types:t})}if(!gt(i?.subtypeField)){let t=we(i),a=zl(t,"subtypes");a!==void 0&&(r={...r,subtypeField:t.subtypeField??void 0,subtypes:a})}}return r}function U$(e){let{fieldName:r,fieldValueToMatch:i,subtypeInfo:t,fieldList:a}=e,o;if((typeof i!="string"||!gt(i))&&!gt(r)&&(o=xS({subtypeInfo:t,fieldName:r,fieldValueToMatch:i}),o===void 0)){let n=co(r,a);if(t?.types!==void 0){let s=t?.types;for(let l of s){let u=l.domains?.filter(d=>d.fieldName===n?.name)??[];for(let d of u)if(o=d?.codedValues?.find(c=>`${c.code}`===i)?.name,o!==void 0)break;if(o!==void 0)break}}o===void 0&&n?.domain!==void 0&&n.domain.type==="codedValue"&&(o=n.domain.codedValues?.find(s=>`${s.code}`==`${i}`)?.name)}return o}async function G$(e){let r=[];return!we(e).isTable&&e.fieldsIndex&&(r=await rp.getRendererFields(e.renderer,e.fieldsIndex)),r}function IS(e){let r="/rest/services",i=e.toLowerCase(),t=i.indexOf(r);return i=t>-1?e.substring(0,t):e,`${i}/rest/info`}async function H$(e){let r=!0,i=".arcgis.com/",t=e.url,a=t?.includes(i);if(t&&a&&we(e).sourceJSON.serviceItemId!==void 0){let o=IS(t);try{let n=(await Yi(o,{query:{f:"json"}})).data;if(n.owningTenant!==void 0&&n.owningSystemUrl!==void 0){let s=`${n.owningSystemUrl}/sharing/rest/portals/${n.owningTenant}`,l=(await Yi(s,{authMode:"auto",query:{f:"json"}})).data,u=new sb({sourceJSON:l});await u.load(),r=u?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return r}async function CS(e){let{queryObject:r,fieldToMatch:i,returnUndefinedIfNotFound:t}=e,a=await po(r),o=a.find(s=>i===s.name);o||(o=a.find(s=>i.toUpperCase()===s.name.toUpperCase()));let n=t?"":i;return o?.name??n}async function Q$(e){let{fieldsList:r,queryObject:i,returnUndefinedIfNotFound:t}=e,a=r;return a!==void 0&&(a=await Promise.all(a.map(async o=>await CS({queryObject:i,fieldToMatch:o,returnUndefinedIfNotFound:t})))),a}function K$(e){let{queryObject:r,chartConfig:i,runtimeDataFilters:t,ignoreViewExtent:a}=e,{series:o,dataFilters:n}=i,{where:s,gdbVersion:l,timeExtent:u,geometry:d,distance:c,units:p,objectIds:h,spatialRelationship:y}=n??{},{where:m,gdbVersion:v,timeExtent:x,geometry:S,distance:T,units:P,objectIds:A,spatialRelationship:L}=t??{},O=o[0],{query:E}=O,{where:_}=E??{},R=bt(o),j={...E};return j.where=Jr([s,m]),R!==k.BarAndLineSplitBy&&R!==k.BoxPlotMonoFieldAndSplitBy&&R!==k.BoxPlotMonoFieldAndCategoryAndSplitBy&&R!==k.BoxPlotMultiFieldsAndSplitBy&&R!==k.BarAndLineSplitByNoAggregation&&(j.where=Jr([j.where,_])),i.orderOptions?.orderByFields!==void 0&&(j.orderByFields=i.orderOptions.orderByFields),j.gdbVersion=v??l,j.timeExtent=hS(r,x??u),j.geometry=mS({queryObject:r,defaultGeometry:S??d,ignoreViewExtent:a}),j.distance=T??c,j.units=P??p,j.objectIds=A??h,j.spatialRelationship=L??y,E?.outStatistics?.[0]?.statisticType===se.Count&&(j.returnDistinctValues=E?.returnDistinctValues??!1),j}var TS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function PS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ha={exports:{}};(function(e,r){(function(i,t){t(r)})(TS,function(i){function t(){for(var f=arguments.length,g=Array(f),b=0;b<f;b++)g[b]=arguments[b];if(g.length>1){g[0]=g[0].slice(0,-1);for(var I=g.length-1,C=1;C<I;++C)g[C]=g[C].slice(1,-1);return g[I]=g[I].slice(1),g.join("")}else return g[0]}function a(f){return"(?:"+f+")"}function o(f){return f===void 0?"undefined":f===null?"null":Object.prototype.toString.call(f).split(" ").pop().split("]").shift().toLowerCase()}function n(f){return f.toUpperCase()}function s(f){return f!=null?f instanceof Array?f:typeof f.length!="number"||f.split||f.setInterval||f.call?[f]:Array.prototype.slice.call(f):[]}function l(f,g){var b=f;if(g)for(var I in g)b[I]=g[I];return b}function u(f){var g="[A-Za-z]",b="[0-9]",I=t(b,"[A-Fa-f]"),C=a(a("%[EFef]"+I+"%"+I+I+"%"+I+I)+"|"+a("%[89A-Fa-f]"+I+"%"+I+I)+"|"+a("%"+I+I)),M="[\\:\\/\\?\\#\\[\\]\\@]",q="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Z=t(M,q),ve=f?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",ee=f?"[\\uE000-\\uF8FF]":"[]",Q=t(g,b,"[\\-\\.\\_\\~]",ve);a(g+t(g,b,"[\\+\\-\\.]")+"*"),a(a(C+"|"+t(Q,q,"[\\:]"))+"*");var ie=a(a("25[0-5]")+"|"+a("2[0-4]"+b)+"|"+a("1"+b+b)+"|"+a("0?[1-9]"+b)+"|0?0?"+b),ge=a(ie+"\\."+ie+"\\."+ie+"\\."+ie),N=a(I+"{1,4}"),Se=a(a(N+"\\:"+N)+"|"+ge),te=a(a(N+"\\:")+"{6}"+Se),Me=a("\\:\\:"+a(N+"\\:")+"{5}"+Se),sr=a(a(N)+"?\\:\\:"+a(N+"\\:")+"{4}"+Se),Qe=a(a(a(N+"\\:")+"{0,1}"+N)+"?\\:\\:"+a(N+"\\:")+"{3}"+Se),ct=a(a(a(N+"\\:")+"{0,2}"+N)+"?\\:\\:"+a(N+"\\:")+"{2}"+Se),Nt=a(a(a(N+"\\:")+"{0,3}"+N)+"?\\:\\:"+N+"\\:"+Se),Wt=a(a(a(N+"\\:")+"{0,4}"+N)+"?\\:\\:"+Se),Ne=a(a(a(N+"\\:")+"{0,5}"+N)+"?\\:\\:"+N),ut=a(a(a(N+"\\:")+"{0,6}"+N)+"?\\:\\:"),zt=a([te,Me,sr,Qe,ct,Nt,Wt,Ne,ut].join("|")),it=a(a(Q+"|"+C)+"+");a("[vV]"+I+"+\\."+t(Q,q,"[\\:]")+"+"),a(a(C+"|"+t(Q,q))+"*");var ei=a(C+"|"+t(Q,q,"[\\:\\@]"));return a(a(C+"|"+t(Q,q,"[\\@]"))+"+"),a(a(ei+"|"+t("[\\/\\?]",ee))+"*"),{NOT_SCHEME:new RegExp(t("[^]",g,b,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",Q,q),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",Q,q),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",Q,q),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",Q,q),"g"),NOT_QUERY:new RegExp(t("[^\\%]",Q,q,"[\\:\\@\\/\\?]",ee),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",Q,q,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",Q,q),"g"),UNRESERVED:new RegExp(Q,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",Q,Z),"g"),PCT_ENCODED:new RegExp(C,"g"),IPV4ADDRESS:new RegExp("^("+ge+")$"),IPV6ADDRESS:new RegExp("^\\[?("+zt+")"+a(a("\\%25|\\%(?!"+I+"{2})")+"("+it+")")+"?\\]?$")}}var d=u(!1),c=u(!0),p=function(){function f(g,b){var I=[],C=!0,M=!1,q=void 0;try{for(var Z=g[Symbol.iterator](),ve;!(C=(ve=Z.next()).done)&&(I.push(ve.value),!(b&&I.length===b));C=!0);}catch(ee){M=!0,q=ee}finally{try{!C&&Z.return&&Z.return()}finally{if(M)throw q}}return I}return function(g,b){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return f(g,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(f){if(Array.isArray(f)){for(var g=0,b=Array(f.length);g<f.length;g++)b[g]=f[g];return b}else return Array.from(f)},y=2147483647,m=36,v=1,x=26,S=38,T=700,P=72,A=128,L="-",O=/^xn--/,E=/[^\0-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=m-v,B=Math.floor,F=String.fromCharCode;function $(f){throw new RangeError(R[f])}function W(f,g){for(var b=[],I=f.length;I--;)b[I]=g(f[I]);return b}function U(f,g){var b=f.split("@"),I="";b.length>1&&(I=b[0]+"@",f=b[1]),f=f.replace(_,".");var C=f.split("."),M=W(C,g).join(".");return I+M}function H(f){for(var g=[],b=0,I=f.length;b<I;){var C=f.charCodeAt(b++);if(C>=55296&&C<=56319&&b<I){var M=f.charCodeAt(b++);(M&64512)==56320?g.push(((C&1023)<<10)+(M&1023)+65536):(g.push(C),b--)}else g.push(C)}return g}var V=function(f){return String.fromCodePoint.apply(String,h(f))},z=function(f){return f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:m},J=function(f,g){return f+22+75*(f<26)-((g!=0)<<5)},ue=function(f,g,b){var I=0;for(f=b?B(f/T):f>>1,f+=B(f/g);f>j*x>>1;I+=m)f=B(f/j);return B(I+(j+1)*f/(f+S))},xe=function(f){var g=[],b=f.length,I=0,C=A,M=P,q=f.lastIndexOf(L);q<0&&(q=0);for(var Z=0;Z<q;++Z)f.charCodeAt(Z)>=128&&$("not-basic"),g.push(f.charCodeAt(Z));for(var ve=q>0?q+1:0;ve<b;){for(var ee=I,Q=1,ie=m;;ie+=m){ve>=b&&$("invalid-input");var ge=z(f.charCodeAt(ve++));(ge>=m||ge>B((y-I)/Q))&&$("overflow"),I+=ge*Q;var N=ie<=M?v:ie>=M+x?x:ie-M;if(ge<N)break;var Se=m-N;Q>B(y/Se)&&$("overflow"),Q*=Se}var te=g.length+1;M=ue(I-ee,te,ee==0),B(I/te)>y-C&&$("overflow"),C+=B(I/te),I%=te,g.splice(I++,0,C)}return String.fromCodePoint.apply(String,g)},ye=function(f){var g=[];f=H(f);var b=f.length,I=A,C=0,M=P,q=!0,Z=!1,ve=void 0;try{for(var ee=f[Symbol.iterator](),Q;!(q=(Q=ee.next()).done);q=!0){var ie=Q.value;ie<128&&g.push(F(ie))}}catch(qr){Z=!0,ve=qr}finally{try{!q&&ee.return&&ee.return()}finally{if(Z)throw ve}}var ge=g.length,N=ge;for(ge&&g.push(L);N<b;){var Se=y,te=!0,Me=!1,sr=void 0;try{for(var Qe=f[Symbol.iterator](),ct;!(te=(ct=Qe.next()).done);te=!0){var Nt=ct.value;Nt>=I&&Nt<Se&&(Se=Nt)}}catch(qr){Me=!0,sr=qr}finally{try{!te&&Qe.return&&Qe.return()}finally{if(Me)throw sr}}var Wt=N+1;Se-I>B((y-C)/Wt)&&$("overflow"),C+=(Se-I)*Wt,I=Se;var Ne=!0,ut=!1,zt=void 0;try{for(var it=f[Symbol.iterator](),ei;!(Ne=(ei=it.next()).done);Ne=!0){var Oo=ei.value;if(Oo<I&&++C>y&&$("overflow"),Oo==I){for(var ti=C,ri=m;;ri+=m){var ii=ri<=M?v:ri>=M+x?x:ri-M;if(ti<ii)break;var Eo=ti-ii,Lo=m-ii;g.push(F(J(ii+Eo%Lo,0))),ti=B(Eo/Lo)}g.push(F(J(ti,0))),M=ue(C,Wt,N==ge),C=0,++N}}}catch(qr){ut=!0,zt=qr}finally{try{!Ne&&it.return&&it.return()}finally{if(ut)throw zt}}++C,++I}return g.join("")},Oe=function(f){return U(f,function(g){return O.test(g)?xe(g.slice(4).toLowerCase()):g})},tt=function(f){return U(f,function(g){return E.test(g)?"xn--"+ye(g):g})},Pe={version:"2.1.0",ucs2:{decode:H,encode:V},decode:xe,encode:ye,toASCII:tt,toUnicode:Oe},Fe={};function Ee(f){var g=f.charCodeAt(0),b=void 0;return g<16?b="%0"+g.toString(16).toUpperCase():g<128?b="%"+g.toString(16).toUpperCase():g<2048?b="%"+(g>>6|192).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase():b="%"+(g>>12|224).toString(16).toUpperCase()+"%"+(g>>6&63|128).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase(),b}function pe(f){for(var g="",b=0,I=f.length;b<I;){var C=parseInt(f.substr(b+1,2),16);if(C<128)g+=String.fromCharCode(C),b+=3;else if(C>=194&&C<224){if(I-b>=6){var M=parseInt(f.substr(b+4,2),16);g+=String.fromCharCode((C&31)<<6|M&63)}else g+=f.substr(b,6);b+=6}else if(C>=224){if(I-b>=9){var q=parseInt(f.substr(b+4,2),16),Z=parseInt(f.substr(b+7,2),16);g+=String.fromCharCode((C&15)<<12|(q&63)<<6|Z&63)}else g+=f.substr(b,9);b+=9}else g+=f.substr(b,3),b+=3}return g}function de(f,g){function b(I){var C=pe(I);return C.match(g.UNRESERVED)?C:I}return f.scheme&&(f.scheme=String(f.scheme).replace(g.PCT_ENCODED,b).toLowerCase().replace(g.NOT_SCHEME,"")),f.userinfo!==void 0&&(f.userinfo=String(f.userinfo).replace(g.PCT_ENCODED,b).replace(g.NOT_USERINFO,Ee).replace(g.PCT_ENCODED,n)),f.host!==void 0&&(f.host=String(f.host).replace(g.PCT_ENCODED,b).toLowerCase().replace(g.NOT_HOST,Ee).replace(g.PCT_ENCODED,n)),f.path!==void 0&&(f.path=String(f.path).replace(g.PCT_ENCODED,b).replace(f.scheme?g.NOT_PATH:g.NOT_PATH_NOSCHEME,Ee).replace(g.PCT_ENCODED,n)),f.query!==void 0&&(f.query=String(f.query).replace(g.PCT_ENCODED,b).replace(g.NOT_QUERY,Ee).replace(g.PCT_ENCODED,n)),f.fragment!==void 0&&(f.fragment=String(f.fragment).replace(g.PCT_ENCODED,b).replace(g.NOT_FRAGMENT,Ee).replace(g.PCT_ENCODED,n)),f}function pt(f){return f.replace(/^0*(.*)/,"$1")||"0"}function Ie(f,g){var b=f.match(g.IPV4ADDRESS)||[],I=p(b,2),C=I[1];return C?C.split(".").map(pt).join("."):f}function ne(f,g){var b=f.match(g.IPV6ADDRESS)||[],I=p(b,3),C=I[1],M=I[2];if(C){for(var q=C.toLowerCase().split("::").reverse(),Z=p(q,2),ve=Z[0],ee=Z[1],Q=ee?ee.split(":").map(pt):[],ie=ve.split(":").map(pt),ge=g.IPV4ADDRESS.test(ie[ie.length-1]),N=ge?7:8,Se=ie.length-N,te=Array(N),Me=0;Me<N;++Me)te[Me]=Q[Me]||ie[Se+Me]||"";ge&&(te[N-1]=Ie(te[N-1],g));var sr=te.reduce(function(Ne,ut,zt){if(!ut||ut==="0"){var it=Ne[Ne.length-1];it&&it.index+it.length===zt?it.length++:Ne.push({index:zt,length:1})}return Ne},[]),Qe=sr.sort(function(Ne,ut){return ut.length-Ne.length})[0],ct=void 0;if(Qe&&Qe.length>1){var Nt=te.slice(0,Qe.index),Wt=te.slice(Qe.index+Qe.length);ct=Nt.join(":")+"::"+Wt.join(":")}else ct=te.join(":");return M&&(ct+="%"+M),ct}else return f}var St=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,wt="".match(/(){0}/)[1]===void 0;function _e(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b={},I=g.iri!==!1?c:d;g.reference==="suffix"&&(f=(g.scheme?g.scheme+":":"")+"//"+f);var C=f.match(St);if(C){wt?(b.scheme=C[1],b.userinfo=C[3],b.host=C[4],b.port=parseInt(C[5],10),b.path=C[6]||"",b.query=C[7],b.fragment=C[8],isNaN(b.port)&&(b.port=C[5])):(b.scheme=C[1]||void 0,b.userinfo=f.indexOf("@")!==-1?C[3]:void 0,b.host=f.indexOf("//")!==-1?C[4]:void 0,b.port=parseInt(C[5],10),b.path=C[6]||"",b.query=f.indexOf("?")!==-1?C[7]:void 0,b.fragment=f.indexOf("#")!==-1?C[8]:void 0,isNaN(b.port)&&(b.port=f.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?C[4]:void 0)),b.host&&(b.host=ne(Ie(b.host,I),I)),b.scheme===void 0&&b.userinfo===void 0&&b.host===void 0&&b.port===void 0&&!b.path&&b.query===void 0?b.reference="same-document":b.scheme===void 0?b.reference="relative":b.fragment===void 0?b.reference="absolute":b.reference="uri",g.reference&&g.reference!=="suffix"&&g.reference!==b.reference&&(b.error=b.error||"URI is not a "+g.reference+" reference.");var M=Fe[(g.scheme||b.scheme||"").toLowerCase()];if(!g.unicodeSupport&&(!M||!M.unicodeSupport)){if(b.host&&(g.domainHost||M&&M.domainHost))try{b.host=Pe.toASCII(b.host.replace(I.PCT_ENCODED,pe).toLowerCase())}catch(q){b.error=b.error||"Host's domain name can not be converted to ASCII via punycode: "+q}de(b,d)}else de(b,I);M&&M.parse&&M.parse(b,g)}else b.error=b.error||"URI can not be parsed.";return b}function ar(f,g){var b=g.iri!==!1?c:d,I=[];return f.userinfo!==void 0&&(I.push(f.userinfo),I.push("@")),f.host!==void 0&&I.push(ne(Ie(String(f.host),b),b).replace(b.IPV6ADDRESS,function(C,M,q){return"["+M+(q?"%25"+q:"")+"]"})),(typeof f.port=="number"||typeof f.port=="string")&&(I.push(":"),I.push(String(f.port))),I.length?I.join(""):void 0}var Ce=/^\.\.?\//,xt=/^\/\.(\/|$)/,or=/^\/\.\.(\/|$)/,Re=/^\/?(?:.|\n)*?(?=\/|$)/;function je(f){for(var g=[];f.length;)if(f.match(Ce))f=f.replace(Ce,"");else if(f.match(xt))f=f.replace(xt,"/");else if(f.match(or))f=f.replace(or,"/"),g.pop();else if(f==="."||f==="..")f="";else{var b=f.match(Re);if(b){var I=b[0];f=f.slice(I.length),g.push(I)}else throw new Error("Unexpected dot segment condition")}return g.join("")}function fe(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=g.iri?c:d,I=[],C=Fe[(g.scheme||f.scheme||"").toLowerCase()];if(C&&C.serialize&&C.serialize(f,g),f.host&&!b.IPV6ADDRESS.test(f.host)&&(g.domainHost||C&&C.domainHost))try{f.host=g.iri?Pe.toUnicode(f.host):Pe.toASCII(f.host.replace(b.PCT_ENCODED,pe).toLowerCase())}catch(Z){f.error=f.error||"Host's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+Z}de(f,b),g.reference!=="suffix"&&f.scheme&&(I.push(f.scheme),I.push(":"));var M=ar(f,g);if(M!==void 0&&(g.reference!=="suffix"&&I.push("//"),I.push(M),f.path&&f.path.charAt(0)!=="/"&&I.push("/")),f.path!==void 0){var q=f.path;!g.absolutePath&&(!C||!C.absolutePath)&&(q=je(q)),M===void 0&&(q=q.replace(/^\/\//,"/%2F")),I.push(q)}return f.query!==void 0&&(I.push("?"),I.push(f.query)),f.fragment!==void 0&&(I.push("#"),I.push(f.fragment)),I.join("")}function Rr(f,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments[3],C={};return I||(f=_e(fe(f,b),b),g=_e(fe(g,b),b)),b=b||{},!b.tolerant&&g.scheme?(C.scheme=g.scheme,C.userinfo=g.userinfo,C.host=g.host,C.port=g.port,C.path=je(g.path||""),C.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?(C.userinfo=g.userinfo,C.host=g.host,C.port=g.port,C.path=je(g.path||""),C.query=g.query):(g.path?(g.path.charAt(0)==="/"?C.path=je(g.path):((f.userinfo!==void 0||f.host!==void 0||f.port!==void 0)&&!f.path?C.path="/"+g.path:f.path?C.path=f.path.slice(0,f.path.lastIndexOf("/")+1)+g.path:C.path=g.path,C.path=je(C.path)),C.query=g.query):(C.path=f.path,g.query!==void 0?C.query=g.query:C.query=f.query),C.userinfo=f.userinfo,C.host=f.host,C.port=f.port),C.scheme=f.scheme),C.fragment=g.fragment,C}function ya(f,g,b){var I=l({scheme:"null"},b);return fe(Rr(_e(f,I),_e(g,I),I,!0),I)}function ga(f,g){return typeof f=="string"?f=fe(_e(f,g),g):o(f)==="object"&&(f=_e(fe(f,g),g)),f}function cd(f,g,b){return typeof f=="string"?f=fe(_e(f,b),b):o(f)==="object"&&(f=fe(f,b)),typeof g=="string"?g=fe(_e(g,b),b):o(g)==="object"&&(g=fe(g,b)),f===g}function ud(f,g){return f&&f.toString().replace(!g||!g.iri?d.ESCAPE:c.ESCAPE,Ee)}function dt(f,g){return f&&f.toString().replace(!g||!g.iri?d.PCT_ENCODED:c.PCT_ENCODED,pe)}var kr={scheme:"http",domainHost:!0,parse:function(f,g){return f.host||(f.error=f.error||"HTTP URIs must have a host."),f},serialize:function(f,g){var b=String(f.scheme).toLowerCase()==="https";return(f.port===(b?443:80)||f.port==="")&&(f.port=void 0),f.path||(f.path="/"),f}},wo={scheme:"https",domainHost:kr.domainHost,parse:kr.parse,serialize:kr.serialize};function xo(f){return typeof f.secure=="boolean"?f.secure:String(f.scheme).toLowerCase()==="wss"}var Br={scheme:"ws",domainHost:!0,parse:function(f,g){var b=f;return b.secure=xo(b),b.resourceName=(b.path||"/")+(b.query?"?"+b.query:""),b.path=void 0,b.query=void 0,b},serialize:function(f,g){if((f.port===(xo(f)?443:80)||f.port==="")&&(f.port=void 0),typeof f.secure=="boolean"&&(f.scheme=f.secure?"wss":"ws",f.secure=void 0),f.resourceName){var b=f.resourceName.split("?"),I=p(b,2),C=I[0],M=I[1];f.path=C&&C!=="/"?C:void 0,f.query=M,f.resourceName=void 0}return f.fragment=void 0,f}},Io={scheme:"wss",domainHost:Br.domainHost,parse:Br.parse,serialize:Br.serialize},fd={},Co="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",rt="[0-9A-Fa-f]",hd=a(a("%[EFef]"+rt+"%"+rt+rt+"%"+rt+rt)+"|"+a("%[89A-Fa-f]"+rt+"%"+rt+rt)+"|"+a("%"+rt+rt)),md="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",yd="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",gd=t(yd,'[\\"\\\\]'),bd="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vd=new RegExp(Co,"g"),nr=new RegExp(hd,"g"),Sd=new RegExp(t("[^]",md,"[\\.]",'[\\"]',gd),"g"),To=new RegExp(t("[^]",Co,bd),"g"),wd=To;function ba(f){var g=pe(f);return g.match(vd)?g:f}var Po={scheme:"mailto",parse:function(f,g){var b=f,I=b.to=b.path?b.path.split(","):[];if(b.path=void 0,b.query){for(var C=!1,M={},q=b.query.split("&"),Z=0,ve=q.length;Z<ve;++Z){var ee=q[Z].split("=");switch(ee[0]){case"to":for(var Q=ee[1].split(","),ie=0,ge=Q.length;ie<ge;++ie)I.push(Q[ie]);break;case"subject":b.subject=dt(ee[1],g);break;case"body":b.body=dt(ee[1],g);break;default:C=!0,M[dt(ee[0],g)]=dt(ee[1],g);break}}C&&(b.headers=M)}b.query=void 0;for(var N=0,Se=I.length;N<Se;++N){var te=I[N].split("@");if(te[0]=dt(te[0]),g.unicodeSupport)te[1]=dt(te[1],g).toLowerCase();else try{te[1]=Pe.toASCII(dt(te[1],g).toLowerCase())}catch(Me){b.error=b.error||"Email address's domain name can not be converted to ASCII via punycode: "+Me}I[N]=te.join("@")}return b},serialize:function(f,g){var b=f,I=s(f.to);if(I){for(var C=0,M=I.length;C<M;++C){var q=String(I[C]),Z=q.lastIndexOf("@"),ve=q.slice(0,Z).replace(nr,ba).replace(nr,n).replace(Sd,Ee),ee=q.slice(Z+1);try{ee=g.iri?Pe.toUnicode(ee):Pe.toASCII(dt(ee,g).toLowerCase())}catch(N){b.error=b.error||"Email address's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+N}I[C]=ve+"@"+ee}b.path=I.join(",")}var Q=f.headers=f.headers||{};f.subject&&(Q.subject=f.subject),f.body&&(Q.body=f.body);var ie=[];for(var ge in Q)Q[ge]!==fd[ge]&&ie.push(ge.replace(nr,ba).replace(nr,n).replace(To,Ee)+"="+Q[ge].replace(nr,ba).replace(nr,n).replace(wd,Ee));return ie.length&&(b.query=ie.join("&")),b}},xd=/^([^\:]+)\:(.*)/,Fo={scheme:"urn",parse:function(f,g){var b=f.path&&f.path.match(xd),I=f;if(b){var C=g.scheme||I.scheme||"urn",M=b[1].toLowerCase(),q=b[2],Z=C+":"+(g.nid||M),ve=Fe[Z];I.nid=M,I.nss=q,I.path=void 0,ve&&(I=ve.parse(I,g))}else I.error=I.error||"URN can not be parsed.";return I},serialize:function(f,g){var b=g.scheme||f.scheme||"urn",I=f.nid,C=b+":"+(g.nid||I),M=Fe[C];M&&(f=M.serialize(f,g));var q=f,Z=f.nss;return q.path=(I||g.nid)+":"+Z,q}},Id=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ao={scheme:"urn:uuid",parse:function(f,g){var b=f;return b.uuid=b.nss,b.nss=void 0,!g.tolerant&&(!b.uuid||!b.uuid.match(Id))&&(b.error=b.error||"UUID is not valid."),b},serialize:function(f,g){var b=f;return b.nss=(f.uuid||"").toLowerCase(),b}};Fe[kr.scheme]=kr,Fe[wo.scheme]=wo,Fe[Br.scheme]=Br,Fe[Io.scheme]=Io,Fe[Po.scheme]=Po,Fe[Fo.scheme]=Fo,Fe[Ao.scheme]=Ao,i.SCHEMES=Fe,i.pctEncChar=Ee,i.pctDecChars=pe,i.parse=_e,i.removeDotSegments=je,i.serialize=fe,i.resolveComponents=Rr,i.resolve=ya,i.normalize=ga,i.equal=cd,i.escapeComponent=ud,i.unescapeComponent=dt,Object.defineProperty(i,"__esModule",{value:!0})})})(Ha,Ha.exports);var FS=Ha.exports,uo=function e(r,i){if(r===i)return!0;if(r&&i&&typeof r=="object"&&typeof i=="object"){if(r.constructor!==i.constructor)return!1;var t,a,o;if(Array.isArray(r)){if(t=r.length,t!=i.length)return!1;for(a=t;a--!==0;)if(!e(r[a],i[a]))return!1;return!0}if(r.constructor===RegExp)return r.source===i.source&&r.flags===i.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===i.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===i.toString();if(o=Object.keys(r),t=o.length,t!==Object.keys(i).length)return!1;for(a=t;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,o[a]))return!1;for(a=t;a--!==0;){var n=o[a];if(!e(r[n],i[n]))return!1}return!0}return r!==r&&i!==i},AS=function(e){for(var r=0,i=e.length,t=0,a;t<i;)r++,a=e.charCodeAt(t++),a>=55296&&a<=56319&&t<i&&(a=e.charCodeAt(t),(a&64512)==56320&&t++);return r},_r={copy:OS,checkDataType:Qa,checkDataTypes:ES,coerceToTypes:LS,toHash:fo,getProperty:ho,escapeQuotes:mo,equal:uo,ucs2length:AS,varOccurences:$S,varReplace:_S,schemaHasRules:RS,schemaHasRulesExcept:kS,schemaUnknownRules:BS,toQuotedString:$p,getPathExpr:qS,getPath:MS,getData:zS,unescapeFragment:VS,unescapeJsonPointer:go,escapeFragment:US,escapeJsonPointer:yo};function OS(e,r){r=r||{};for(var i in e)r[i]=e[i];return r}function Qa(e,r,i,t){var a=t?" !== ":" === ",o=t?" || ":" && ",n=t?"!":"",s=t?"":"!";switch(e){case"null":return r+a+"null";case"array":return n+"Array.isArray("+r+")";case"object":return"("+n+r+o+"typeof "+r+a+'"object"'+o+s+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+a+'"number"'+o+s+"("+r+" % 1)"+o+r+a+r+(i?o+n+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+a+'"'+e+'"'+(i?o+n+"isFinite("+r+")":"")+")";default:return"typeof "+r+a+'"'+e+'"'}}function ES(e,r,i){switch(e.length){case 1:return Qa(e[0],r,i,!0);default:var t="",a=fo(e);a.array&&a.object&&(t=a.null?"(":"(!"+r+" || ",t+="typeof "+r+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer;for(var o in a)t+=(t?" && ":"")+Qa(o,r,i,!0);return t}}var Vl=fo(["string","number","integer","boolean","null"]);function LS(e,r){if(Array.isArray(r)){for(var i=[],t=0;t<r.length;t++){var a=r[t];(Vl[a]||e==="array"&&a==="array")&&(i[i.length]=a)}if(i.length)return i}else{if(Vl[r])return[r];if(e==="array"&&r==="array")return["array"]}}function fo(e){for(var r={},i=0;i<e.length;i++)r[e[i]]=!0;return r}var DS=/^[a-z$_][a-z$_0-9]*$/i,jS=/'|\\/g;function ho(e){return typeof e=="number"?"["+e+"]":DS.test(e)?"."+e:"['"+mo(e)+"']"}function mo(e){return e.replace(jS,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function $S(e,r){r+="[^0-9]";var i=e.match(new RegExp(r,"g"));return i?i.length:0}function _S(e,r,i){return r+="([^0-9])",i=i.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),i+"$1")}function RS(e,r){if(typeof e=="boolean")return!e;for(var i in e)if(r[i])return!0}function kS(e,r,i){if(typeof e=="boolean")return!e&&i!="not";for(var t in e)if(t!=i&&r[t])return!0}function BS(e,r){if(typeof e!="boolean"){for(var i in e)if(!r[i])return i}}function $p(e){return"'"+mo(e)+"'"}function qS(e,r,i,t){var a=i?"'/' + "+r+(t?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):t?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'";return _p(e,a)}function MS(e,r,i){var t=$p(i?"/"+yo(r):ho(r));return _p(e,t)}var NS=/^\/(?:[^~]|~0|~1)*$/,WS=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function zS(e,r,i){var t,a,o,n;if(e==="")return"rootData";if(e[0]=="/"){if(!NS.test(e))throw new Error("Invalid JSON-pointer: "+e);a=e,o="rootData"}else{if(n=e.match(WS),!n)throw new Error("Invalid JSON-pointer: "+e);if(t=+n[1],a=n[2],a=="#"){if(t>=r)throw new Error("Cannot access property/index "+t+" levels up, current level is "+r);return i[r-t]}if(t>r)throw new Error("Cannot access data "+t+" levels up, current level is "+r);if(o="data"+(r-t||""),!a)return o}for(var s=o,l=a.split("/"),u=0;u<l.length;u++){var d=l[u];d&&(o+=ho(go(d)),s+=" && "+o)}return s}function _p(e,r){return e=='""'?r:(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function VS(e){return go(decodeURIComponent(e))}function US(e){return encodeURIComponent(yo(e))}function yo(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function go(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var GS=_r,Rp=HS;function HS(e){GS.copy(e,this)}var kp={exports:{}},Rt=kp.exports=function(e,r,i){typeof r=="function"&&(i=r,r={}),i=r.cb||i;var t=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};Xi(r,t,a,e,"",e)};Rt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Rt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Rt.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Rt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Xi(e,r,i,t,a,o,n,s,l,u){if(t&&typeof t=="object"&&!Array.isArray(t)){r(t,a,o,n,s,l,u);for(var d in t){var c=t[d];if(Array.isArray(c)){if(d in Rt.arrayKeywords)for(var p=0;p<c.length;p++)Xi(e,r,i,c[p],a+"/"+d+"/"+p,o,a,d,t,p)}else if(d in Rt.propsKeywords){if(c&&typeof c=="object")for(var h in c)Xi(e,r,i,c[h],a+"/"+d+"/"+QS(h),o,a,d,t,h)}else(d in Rt.keywords||e.allKeys&&!(d in Rt.skipKeywords))&&Xi(e,r,i,c,a+"/"+d,o,a,d,t)}i(t,a,o,n,s,l,u)}}function QS(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var KS=kp.exports,Yr=FS,Ul=uo,ca=_r,aa=Rp,JS=KS,bo=Mt;Mt.normalizeId=kt;Mt.fullPath=oa;Mt.url=na;Mt.ids=tw;Mt.inlineRef=Ka;Mt.schema=ua;function Mt(e,r,i){var t=this._refs[i];if(typeof t=="string")if(this._refs[t])t=this._refs[t];else return Mt.call(this,e,r,t);if(t=t||this._schemas[i],t instanceof aa)return Ka(t.schema,this._opts.inlineRefs)?t.schema:t.validate||this._compile(t);var a=ua.call(this,r,i),o,n,s;return a&&(o=a.schema,r=a.root,s=a.baseId),o instanceof aa?n=o.validate||e.call(this,o.schema,r,void 0,s):o!==void 0&&(n=Ka(o,this._opts.inlineRefs)?o:e.call(this,o,r,void 0,s)),n}function ua(e,r){var i=Yr.parse(r),t=qp(i),a=oa(this._getId(e.schema));if(Object.keys(e.schema).length===0||t!==a){var o=kt(t),n=this._refs[o];if(typeof n=="string")return ZS.call(this,e,n,i);if(n instanceof aa)n.validate||this._compile(n),e=n;else if(n=this._schemas[o],n instanceof aa){if(n.validate||this._compile(n),o==kt(r))return{schema:n,root:e,baseId:a};e=n}else return;if(!e.schema)return;a=oa(this._getId(e.schema))}return Bp.call(this,i,a,e.schema,e)}function ZS(e,r,i){var t=ua.call(this,e,r);if(t){var a=t.schema,o=t.baseId;e=t.root;var n=this._getId(a);return n&&(o=na(o,n)),Bp.call(this,i,o,a,e)}}var XS=ca.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Bp(e,r,i,t){if(e.fragment=e.fragment||"",e.fragment.slice(0,1)=="/"){for(var a=e.fragment.split("/"),o=1;o<a.length;o++){var n=a[o];if(n){if(n=ca.unescapeFragment(n),i=i[n],i===void 0)break;var s;if(!XS[n]&&(s=this._getId(i),s&&(r=na(r,s)),i.$ref)){var l=na(r,i.$ref),u=ua.call(this,t,l);u&&(i=u.schema,t=u.root,r=u.baseId)}}}if(i!==void 0&&i!==t.schema)return{schema:i,root:t,baseId:r}}}var YS=ca.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Ka(e,r){if(r===!1)return!1;if(r===void 0||r===!0)return Ja(e);if(r)return Za(e)<=r}function Ja(e){var r;if(Array.isArray(e)){for(var i=0;i<e.length;i++)if(r=e[i],typeof r=="object"&&!Ja(r))return!1}else for(var t in e)if(t=="$ref"||(r=e[t],typeof r=="object"&&!Ja(r)))return!1;return!0}function Za(e){var r=0,i;if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(i=e[t],typeof i=="object"&&(r+=Za(i)),r==1/0)return 1/0}else for(var a in e){if(a=="$ref")return 1/0;if(YS[a])r++;else if(i=e[a],typeof i=="object"&&(r+=Za(i)+1),r==1/0)return 1/0}return r}function oa(e,r){r!==!1&&(e=kt(e));var i=Yr.parse(e);return qp(i)}function qp(e){return Yr.serialize(e).split("#")[0]+"#"}var ew=/#\/?$/;function kt(e){return e?e.replace(ew,""):""}function na(e,r){return r=kt(r),Yr.resolve(e,r)}function tw(e){var r=kt(this._getId(e)),i={"":r},t={"":oa(r,!1)},a={},o=this;return JS(e,{allKeys:!0},function(n,s,l,u,d,c,p){if(s!==""){var h=o._getId(n),y=i[u],m=t[u]+"/"+d;if(p!==void 0&&(m+="/"+(typeof p=="number"?p:ca.escapeFragment(p))),typeof h=="string"){h=y=kt(y?Yr.resolve(y,h):h);var v=o._refs[h];if(typeof v=="string"&&(v=o._refs[v]),v&&v.schema){if(!Ul(n,v.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=kt(m))if(h[0]=="#"){if(a[h]&&!Ul(n,a[h]))throw new Error('id "'+h+'" resolves to more than one schema');a[h]=n}else o._refs[h]=m}i[s]=y,t[s]=m}}),a}var Na=bo,vo={Validation:Gl(rw),MissingRef:Gl(So)};function rw(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}So.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function So(e,r,i){this.message=i||So.message(e,r),this.missingRef=Na.url(e,r),this.missingSchema=Na.normalizeId(Na.fullPath(this.missingRef))}function Gl(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Mp=function(e,r){r||(r={}),typeof r=="function"&&(r={cmp:r});var i=typeof r.cycles=="boolean"?r.cycles:!1,t=r.cmp&&function(o){return function(n){return function(s,l){var u={key:s,value:n[s]},d={key:l,value:n[l]};return o(u,d)}}}(r.cmp),a=[];return function o(n){if(n&&n.toJSON&&typeof n.toJSON=="function"&&(n=n.toJSON()),n!==void 0){if(typeof n=="number")return isFinite(n)?""+n:"null";if(typeof n!="object")return JSON.stringify(n);var s,l;if(Array.isArray(n)){for(l="[",s=0;s<n.length;s++)s&&(l+=","),l+=o(n[s])||"null";return l+"]"}if(n===null)return"null";if(a.indexOf(n)!==-1){if(i)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=a.push(n)-1,d=Object.keys(n).sort(t&&t(n));for(l="",s=0;s<d.length;s++){var c=d[s],p=o(n[c]);p&&(l&&(l+=","),l+=JSON.stringify(c)+":"+p)}return a.splice(u,1),"{"+l+"}"}}(e)},Np=function(e,r,i){var t="",a=e.schema.$async===!0,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),n=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var l="unknown keyword: "+s;if(e.opts.strictKeywords==="log")e.logger.warn(l);else throw new Error(l)}}if(e.isTop&&(t+=" var validate = ",a&&(e.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",n&&(e.opts.sourceCode||e.opts.processCode)&&(t+=" "+("/*# sourceURL="+n+" */")+" ")),typeof e.schema=="boolean"||!(o||e.schema.$ref)){var r="false schema",u=e.level,d=e.dataLevel,c=e.schema[r],p=e.schemaPath+e.util.getProperty(r),h=e.errSchemaPath+"/"+r,P=!e.opts.allErrors,O,y="data"+(d||""),T="valid"+u;if(e.schema===!1){e.isTop?P=!0:t+=" var "+T+" = false; ";var m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(O||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'boolean schema is false' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),!e.compositeRule&&P?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?a?t+=" return data; ":t+=" validate.errors = null; return true; ":t+=" var "+T+" = true; ";return e.isTop&&(t+=" }; return validate; "),t}if(e.isTop){var x=e.isTop,u=e.level=0,d=e.dataLevel=0,y="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var S="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,d=e.dataLevel,y="data"+(d||"");if(n&&(e.baseId=e.resolve.url(e.baseId,n)),a&&!e.async)throw new Error("async schema in sync schema");t+=" var errs_"+u+" = errors;"}var T="valid"+u,P=!e.opts.allErrors,A="",L="",O,E=e.schema.type,_=Array.isArray(E);if(E&&e.opts.nullable&&e.schema.nullable===!0&&(_?E.indexOf("null")==-1&&(E=E.concat("null")):E!="null"&&(E=[E,"null"],_=!0)),_&&E.length==1&&(E=E[0],_=!1),e.schema.$ref&&o){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(t+=" "+e.RULES.all.$comment.code(e,"$comment")),E){if(e.opts.coerceTypes)var R=e.util.coerceToTypes(e.opts.coerceTypes,E);var j=e.RULES.types[E];if(R||_||j===!0||j&&!Ce(j)){var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type",B=_?"checkDataTypes":"checkDataType";if(t+=" if ("+e.util[B](E,y,e.opts.strictNumbers,!0)+") { ",R){var F="dataType"+u,$="coerced"+u;t+=" var "+F+" = typeof "+y+"; var "+$+" = undefined; ",e.opts.coerceTypes=="array"&&(t+=" if ("+F+" == 'object' && Array.isArray("+y+") && "+y+".length == 1) { "+y+" = "+y+"[0]; "+F+" = typeof "+y+"; if ("+e.util.checkDataType(e.schema.type,y,e.opts.strictNumbers)+") "+$+" = "+y+"; } "),t+=" if ("+$+" !== undefined) ; ";var W=R;if(W)for(var U,H=-1,V=W.length-1;H<V;)U=W[H+=1],U=="string"?t+=" else if ("+F+" == 'number' || "+F+" == 'boolean') "+$+" = '' + "+y+"; else if ("+y+" === null) "+$+" = ''; ":U=="number"||U=="integer"?(t+=" else if ("+F+" == 'boolean' || "+y+" === null || ("+F+" == 'string' && "+y+" && "+y+" == +"+y+" ",U=="integer"&&(t+=" && !("+y+" % 1)"),t+=")) "+$+" = +"+y+"; "):U=="boolean"?t+=" else if ("+y+" === 'false' || "+y+" === 0 || "+y+" === null) "+$+" = false; else if ("+y+" === 'true' || "+y+" === 1) "+$+" = true; ":U=="null"?t+=" else if ("+y+" === '' || "+y+" === 0 || "+y+" === false) "+$+" = null; ":e.opts.coerceTypes=="array"&&U=="array"&&(t+=" else if ("+F+" == 'string' || "+F+" == 'number' || "+F+" == 'boolean' || "+y+" == null) "+$+" = ["+y+"]; ");t+=" else { ";var m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",_?t+=""+E.join(","):t+=""+E,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",_?t+=""+E.join(","):t+=""+E,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),!e.compositeRule&&P?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } if ("+$+" !== undefined) { ";var z=d?"data"+(d-1||""):"parentData",J=d?e.dataPathArr[d]:"parentDataProperty";t+=" "+y+" = "+$+"; ",d||(t+="if ("+z+" !== undefined)"),t+=" "+z+"["+J+"] = "+$+"; } "}else{var m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",_?t+=""+E.join(","):t+=""+E,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",_?t+=""+E.join(","):t+=""+E,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),!e.compositeRule&&P?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } "}}if(e.schema.$ref&&!o)t+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",P&&(t+=" } if (errors === ",x?t+="0":t+="errs_"+u,t+=") { ",L+="}");else{var ue=e.RULES;if(ue){for(var j,xe=-1,ye=ue.length-1;xe<ye;)if(j=ue[xe+=1],Ce(j)){if(j.type&&(t+=" if ("+e.util.checkDataType(j.type,y,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(j.type=="object"&&e.schema.properties){var c=e.schema.properties,Oe=Object.keys(c),tt=Oe;if(tt)for(var Pe,Fe=-1,Ee=tt.length-1;Fe<Ee;){Pe=tt[Fe+=1];var pe=c[Pe];if(pe.default!==void 0){var de=y+e.util.getProperty(Pe);if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+de;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else t+=" if ("+de+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+de+" === null || "+de+" === '' "),t+=" ) "+de+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(pe.default)+" ":t+=" "+JSON.stringify(pe.default)+" ",t+="; "}}}else if(j.type=="array"&&Array.isArray(e.schema.items)){var pt=e.schema.items;if(pt){for(var pe,H=-1,Ie=pt.length-1;H<Ie;)if(pe=pt[H+=1],pe.default!==void 0){var de=y+"["+H+"]";if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+de;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else t+=" if ("+de+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+de+" === null || "+de+" === '' "),t+=" ) "+de+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(pe.default)+" ":t+=" "+JSON.stringify(pe.default)+" ",t+="; "}}}}var ne=j.rules;if(ne){for(var St,wt=-1,_e=ne.length-1;wt<_e;)if(St=ne[wt+=1],xt(St)){var ar=St.code(e,St.keyword,j.type);ar&&(t+=" "+ar+" ",P&&(A+="}"))}}if(P&&(t+=" "+A+" ",A=""),j.type&&(t+=" } ",E&&E===j.type&&!R)){t+=" else { ";var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",_?t+=""+E.join(","):t+=""+E,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",_?t+=""+E.join(","):t+=""+E,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),!e.compositeRule&&P?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } "}P&&(t+=" if (errors === ",x?t+="0":t+="errs_"+u,t+=") { ",L+="}")}}}P&&(t+=" "+L+" "),x?(a?(t+=" if (errors === 0) return data; ",t+=" else throw new ValidationError(vErrors); "):(t+=" validate.errors = vErrors; ",t+=" return errors === 0; "),t+=" }; return validate;"):t+=" var "+T+" = errors === errs_"+u+";";function Ce(Re){for(var je=Re.rules,fe=0;fe<je.length;fe++)if(xt(je[fe]))return!0}function xt(Re){return e.schema[Re.keyword]!==void 0||Re.implements&&or(Re)}function or(Re){for(var je=Re.implements,fe=0;fe<je.length;fe++)if(e.schema[je[fe]]!==void 0)return!0}return t},Gi=bo,sa=_r,Wp=vo,iw=Mp,Hl=Np,aw=sa.ucs2length,ow=uo,nw=Wp.Validation,sw=Xa;function Xa(e,r,i,t){var a=this,o=this._opts,n=[void 0],s={},l=[],u={},d=[],c={},p=[];r=r||{schema:e,refVal:n,refs:s};var h=lw.call(this,e,r,t),y=this._compilations[h.index];if(h.compiling)return y.callValidate=T;var m=this._formats,v=this.RULES;try{var x=P(e,r,i,t);y.validate=x;var S=y.callValidate;return S&&(S.schema=x.schema,S.errors=null,S.refs=x.refs,S.refVal=x.refVal,S.root=x.root,S.$async=x.$async,o.sourceCode&&(S.source=x.source)),x}finally{pw.call(this,e,r,t)}function T(){var F=y.validate,$=F.apply(this,arguments);return T.errors=F.errors,$}function P(F,$,W,U){var H=!$||$&&$.schema==F;if($.schema!=r.schema)return Xa.call(a,F,$,W,U);var V=F.$async===!0,z=Hl({isTop:!0,schema:F,isRoot:H,baseId:U,root:$,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Wp.MissingRef,RULES:v,validate:Hl,util:sa,resolve:Gi,resolveRef:A,usePattern:R,useDefault:j,useCustomRule:B,opts:o,formats:m,logger:a.logger,self:a});z=Hi(n,uw)+Hi(l,dw)+Hi(d,cw)+Hi(p,fw)+z,o.processCode&&(z=o.processCode(z,F));var J;try{var ue=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",z);J=ue(a,v,m,r,n,d,p,ow,aw,nw),n[0]=J}catch(xe){throw a.logger.error("Error compiling schema, function code:",z),xe}return J.schema=F,J.errors=null,J.refs=s,J.refVal=n,J.root=H?J:$,V&&(J.$async=!0),o.sourceCode===!0&&(J.source={code:z,patterns:l,defaults:d}),J}function A(F,$,W){$=Gi.url(F,$);var U=s[$],H,V;if(U!==void 0)return H=n[U],V="refVal["+U+"]",_(H,V);if(!W&&r.refs){var z=r.refs[$];if(z!==void 0)return H=r.refVal[z],V=L($,H),_(H,V)}V=L($);var J=Gi.call(a,P,r,$);if(J===void 0){var ue=i&&i[$];ue&&(J=Gi.inlineRef(ue,o.inlineRefs)?ue:Xa.call(a,ue,r,i,F))}if(J===void 0)O($);else return E($,J),_(J,V)}function L(F,$){var W=n.length;return n[W]=$,s[F]=W,"refVal"+W}function O(F){delete s[F]}function E(F,$){var W=s[F];n[W]=$}function _(F,$){return typeof F=="object"||typeof F=="boolean"?{code:$,schema:F,inline:!0}:{code:$,$async:F&&!!F.$async}}function R(F){var $=u[F];return $===void 0&&($=u[F]=l.length,l[$]=F),"pattern"+$}function j(F){switch(typeof F){case"boolean":case"number":return""+F;case"string":return sa.toQuotedString(F);case"object":if(F===null)return"null";var $=iw(F),W=c[$];return W===void 0&&(W=c[$]=d.length,d[W]=F),"default"+W}}function B(F,$,W,U){if(a._opts.validateSchema!==!1){var H=F.definition.dependencies;if(H&&!H.every(function(Pe){return Object.prototype.hasOwnProperty.call(W,Pe)}))throw new Error("parent schema must have all required keywords: "+H.join(","));var V=F.definition.validateSchema;if(V){var z=V($);if(!z){var J="keyword schema is invalid: "+a.errorsText(V.errors);if(a._opts.validateSchema=="log")a.logger.error(J);else throw new Error(J)}}}var ue=F.definition.compile,xe=F.definition.inline,ye=F.definition.macro,Oe;if(ue)Oe=ue.call(a,$,W,U);else if(ye)Oe=ye.call(a,$,W,U),o.validateSchema!==!1&&a.validateSchema(Oe,!0);else if(xe)Oe=xe.call(a,U,F.keyword,$,W);else if(Oe=F.definition.validate,!Oe)return;if(Oe===void 0)throw new Error('custom keyword "'+F.keyword+'"failed to compile');var tt=p.length;return p[tt]=Oe,{code:"customRule"+tt,validate:Oe}}}function lw(e,r,i){var t=zp.call(this,e,r,i);return t>=0?{index:t,compiling:!0}:(t=this._compilations.length,this._compilations[t]={schema:e,root:r,baseId:i},{index:t,compiling:!1})}function pw(e,r,i){var t=zp.call(this,e,r,i);t>=0&&this._compilations.splice(t,1)}function zp(e,r,i){for(var t=0;t<this._compilations.length;t++){var a=this._compilations[t];if(a.schema==e&&a.root==r&&a.baseId==i)return t}return-1}function dw(e,r){return"var pattern"+e+" = new RegExp("+sa.toQuotedString(r[e])+");"}function cw(e){return"var default"+e+" = defaults["+e+"];"}function uw(e,r){return r[e]===void 0?"":"var refVal"+e+" = refVal["+e+"];"}function fw(e){return"var customRule"+e+" = customRules["+e+"];"}function Hi(e,r){if(!e.length)return"";for(var i="",t=0;t<e.length;t++)i+=r(t,e);return i}var Vp={exports:{}},fa=Vp.exports=function(){this._cache={}};fa.prototype.put=function(e,r){this._cache[e]=r};fa.prototype.get=function(e){return this._cache[e]};fa.prototype.del=function(e){delete this._cache[e]};fa.prototype.clear=function(){this._cache={}};var hw=Vp.exports,mw=_r,yw=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,gw=[0,31,28,31,30,31,30,31,31,30,31,30,31],bw=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Up=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,vw=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Sw=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Gp=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Hp=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Qp=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Kp=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Jp=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Zp=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,ww=ha;function ha(e){return e=e=="full"?"full":"fast",mw.copy(ha[e])}ha.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Gp,url:Hp,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Up,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ed,uuid:Qp,"json-pointer":Kp,"json-pointer-uri-fragment":Jp,"relative-json-pointer":Zp};ha.full={date:Xp,time:Yp,"date-time":Cw,uri:Pw,"uri-reference":Sw,"uri-template":Gp,url:Hp,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Up,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ed,uuid:Qp,"json-pointer":Kp,"json-pointer-uri-fragment":Jp,"relative-json-pointer":Zp};function xw(e){return e%4===0&&(e%100!==0||e%400===0)}function Xp(e){var r=e.match(yw);if(!r)return!1;var i=+r[1],t=+r[2],a=+r[3];return t>=1&&t<=12&&a>=1&&a<=(t==2&&xw(i)?29:gw[t])}function Yp(e,r){var i=e.match(bw);if(!i)return!1;var t=i[1],a=i[2],o=i[3],n=i[5];return(t<=23&&a<=59&&o<=59||t==23&&a==59&&o==60)&&(!r||n)}var Iw=/t|\s/i;function Cw(e){var r=e.split(Iw);return r.length==2&&Xp(r[0])&&Yp(r[1],!0)}var Tw=/\/|:/;function Pw(e){return Tw.test(e)&&vw.test(e)}var Fw=/[^\\]\\Z/;function ed(e){if(Fw.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}var Aw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,u="data"+(o||""),d="valid"+a,c,p;if(n=="#"||n=="#/")e.isRoot?(c=e.async,p="validate"):(c=e.root.schema.$async===!0,p="root.refVal[0]");else{var h=e.resolveRef(e.baseId,n,e.isRoot);if(h===void 0){var y=e.MissingRefError.message(e.baseId,n);if(e.opts.missingRefs=="fail"){e.logger.error(y);var m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(s)+" , params: { ref: '"+e.util.escapeQuotes(n)+"' } ",e.opts.messages!==!1&&(t+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(n)+"' "),e.opts.verbose&&(t+=" , schema: "+e.util.toQuotedString(n)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),!e.compositeRule&&l?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(t+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(y),l&&(t+=" if (true) { ");else throw new e.MissingRefError(e.baseId,n,y)}else if(h.inline){var x=e.util.copy(e);x.level++;var S="valid"+x.level;x.schema=h.schema,x.schemaPath="",x.errSchemaPath=n;var T=e.validate(x).replace(/validate\.schema/g,h.code);t+=" "+T+" ",l&&(t+=" if ("+S+") { ")}else c=h.$async===!0||e.async&&h.$async!==!1,p=h.code}if(p){var m=m||[];m.push(t),t="",e.opts.passContext?t+=" "+p+".call(this, ":t+=" "+p+"( ",t+=" "+u+", (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var P=o?"data"+(o-1||""):"parentData",A=o?e.dataPathArr[o]:"parentDataProperty";t+=" , "+P+" , "+A+", rootData) ";var L=t;if(t=m.pop(),c){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(t+=" var "+d+"; "),t+=" try { await "+L+"; ",l&&(t+=" "+d+" = true; "),t+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(t+=" "+d+" = false; "),t+=" } ",l&&(t+=" if ("+d+") { ")}else t+=" if (!"+L+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",l&&(t+=" else { ")}return t},Ow=function(e,r,i){var t=" ",a=e.schema[r],o=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,s=!e.opts.allErrors,l=e.util.copy(e),u="";l.level++;var d="valid"+l.level,c=l.baseId,p=!0,h=a;if(h)for(var y,m=-1,v=h.length-1;m<v;)y=h[m+=1],(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all))&&(p=!1,l.schema=y,l.schemaPath=o+"["+m+"]",l.errSchemaPath=n+"/"+m,t+=" "+e.validate(l)+" ",l.baseId=c,s&&(t+=" if ("+d+") { ",u+="}"));return s&&(p?t+=" if (true) { ":t+=" "+u.slice(0,-1)+" "),t},Ew=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p="errs__"+a,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,v=n.every(function(O){return e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:e.util.schemaHasRules(O,e.RULES.all)});if(v){var x=h.baseId;t+=" var "+p+" = errors; var "+c+" = false; ";var S=e.compositeRule;e.compositeRule=h.compositeRule=!0;var T=n;if(T)for(var P,A=-1,L=T.length-1;A<L;)P=T[A+=1],h.schema=P,h.schemaPath=s+"["+A+"]",h.errSchemaPath=l+"/"+A,t+=" "+e.validate(h)+" ",h.baseId=x,t+=" "+c+" = "+c+" || "+m+"; if (!"+c+") { ",y+="}";e.compositeRule=h.compositeRule=S,t+=" "+y+" if (!"+c+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else u&&(t+=" if (true) { ");return t},Lw=function(e,r,i){var t=" ",a=e.schema[r],o=e.errSchemaPath+"/"+r;e.opts.allErrors;var n=e.util.toQuotedString(a);return e.opts.$comment===!0?t+=" console.log("+n+");":typeof e.opts.$comment=="function"&&(t+=" self._opts.$comment("+n+", "+e.util.toQuotedString(o)+", validate.root.schema);"),t},Dw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p=e.opts.$data&&n&&n.$data;p&&(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; "),p||(t+=" var schema"+a+" = validate.schema"+s+";"),t+="var "+c+" = equal("+d+", schema"+a+"); if (!"+c+") { ";var h=h||[];h.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+a+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to constant' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var y=t;return t=h.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+y+"]); ":t+=" validate.errors = ["+y+"]; return false; ":t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",u&&(t+=" else { "),t},jw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p="errs__"+a,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,v="i"+a,x=h.dataLevel=e.dataLevel+1,S="data"+x,T=e.baseId,P=e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all);if(t+="var "+p+" = errors;var "+c+";",P){var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=n,h.schemaPath=s,h.errSchemaPath=l,t+=" var "+m+" = false; for (var "+v+" = 0; "+v+" < "+d+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var L=d+"["+v+"]";h.dataPathArr[x]=v;var O=e.validate(h);h.baseId=T,e.util.varOccurences(O,S)<2?t+=" "+e.util.varReplace(O,S,L)+" ":t+=" var "+S+" = "+L+"; "+O+" ",t+=" if ("+m+") break; } ",e.compositeRule=h.compositeRule=A,t+=" "+y+" if (!"+m+") {"}else t+=" if ("+d+".length == 0) {";var E=E||[];E.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should contain a valid item' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var _=t;return t=E.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+_+"]); ":t+=" validate.errors = ["+_+"]; return false; ":t+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { ",P&&(t+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(t+=" } "),t},$w=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="errs__"+a,p=e.util.copy(e),h="";p.level++;var y="valid"+p.level,m={},v={},x=e.opts.ownProperties;for(A in n)if(A!="__proto__"){var S=n[A],T=Array.isArray(S)?v:m;T[A]=S}t+="var "+c+" = errors;";var P=e.errorPath;t+="var missing"+a+";";for(var A in v)if(T=v[A],T.length){if(t+=" if ( "+d+e.util.getProperty(A)+" !== undefined ",x&&(t+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(A)+"') "),u){t+=" && ( ";var L=T;if(L)for(var O,E=-1,_=L.length-1;E<_;){O=L[E+=1],E&&(t+=" || ");var R=e.util.getProperty(O),j=d+R;t+=" ( ( "+j+" === undefined ",x&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(O)+"') "),t+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:R)+") ) "}t+=")) { ";var B="missing"+a,F="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,B,!0):P+" + "+B);var $=$||[];$.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+F+"', depsCount: "+T.length+", deps: '"+e.util.escapeQuotes(T.length==1?T[0]:T.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",T.length==1?t+="property "+e.util.escapeQuotes(T[0]):t+="properties "+e.util.escapeQuotes(T.join(", ")),t+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var W=t;t=$.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+W+"]); ":t+=" validate.errors = ["+W+"]; return false; ":t+=" var err = "+W+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{t+=" ) { ";var U=T;if(U)for(var O,H=-1,V=U.length-1;H<V;){O=U[H+=1];var R=e.util.getProperty(O),F=e.util.escapeQuotes(O),j=d+R;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,O,e.opts.jsonPointers)),t+=" if ( "+j+" === undefined ",x&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(O)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+F+"', depsCount: "+T.length+", deps: '"+e.util.escapeQuotes(T.length==1?T[0]:T.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",T.length==1?t+="property "+e.util.escapeQuotes(T[0]):t+="properties "+e.util.escapeQuotes(T.join(", ")),t+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t+=" } ",u&&(h+="}",t+=" else { ")}e.errorPath=P;var z=p.baseId;for(var A in m){var S=m[A];(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all))&&(t+=" "+y+" = true; if ( "+d+e.util.getProperty(A)+" !== undefined ",x&&(t+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(A)+"') "),t+=") { ",p.schema=S,p.schemaPath=s+e.util.getProperty(A),p.errSchemaPath=l+"/"+e.util.escapeFragment(A),t+=" "+e.validate(p)+" ",p.baseId=z,t+=" } ",u&&(t+=" if ("+y+") { ",h+="}"))}return u&&(t+=" "+h+" if ("+c+" == errors) {"),t},_w=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p=e.opts.$data&&n&&n.$data;p&&(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ");var h="i"+a,y="schema"+a;p||(t+=" var "+y+" = validate.schema"+s+";"),t+="var "+c+";",p&&(t+=" if (schema"+a+" === undefined) "+c+" = true; else if (!Array.isArray(schema"+a+")) "+c+" = false; else {"),t+=""+c+" = false;for (var "+h+"=0; "+h+"<"+y+".length; "+h+"++) if (equal("+d+", "+y+"["+h+"])) { "+c+" = true; break; }",p&&(t+=" } "),t+=" if (!"+c+") { ";var m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+a+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var v=t;return t=m.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",u&&(t+=" else { "),t},Rw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||"");if(e.opts.format===!1)return u&&(t+=" if (true) { "),t;var c=e.opts.$data&&n&&n.$data,p;c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n;var h=e.opts.unknownFormats,y=Array.isArray(h);if(c){var m="format"+a,v="isObject"+a,x="formatType"+a;t+=" var "+m+" = formats["+p+"]; var "+v+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+x+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ",e.async&&(t+=" var async"+a+" = "+m+".async; "),t+=" "+m+" = "+m+".validate; } if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),t+=" (",h!="ignore"&&(t+=" ("+p+" && !"+m+" ",y&&(t+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),t+=") || "),t+=" ("+m+" && "+x+" == '"+i+"' && !(typeof "+m+" == 'function' ? ",e.async?t+=" (async"+a+" ? await "+m+"("+d+") : "+m+"("+d+")) ":t+=" "+m+"("+d+") ",t+=" : "+m+".test("+d+"))))) {"}else{var m=e.formats[n];if(!m){if(h=="ignore")return e.logger.warn('unknown format "'+n+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(t+=" if (true) { "),t;if(y&&h.indexOf(n)>=0)return u&&(t+=" if (true) { "),t;throw new Error('unknown format "'+n+'" is used in schema at path "'+e.errSchemaPath+'"')}var v=typeof m=="object"&&!(m instanceof RegExp)&&m.validate,x=v&&m.type||"string";if(v){var S=m.async===!0;m=m.validate}if(x!=i)return u&&(t+=" if (true) { "),t;if(S){if(!e.async)throw new Error("async format in sync schema");var T="formats"+e.util.getProperty(n)+".validate";t+=" if (!(await "+T+"("+d+"))) { "}else{t+=" if (! ";var T="formats"+e.util.getProperty(n);v&&(T+=".validate"),typeof m=="function"?t+=" "+T+"("+d+") ":t+=" "+T+".test("+d+") ",t+=") { "}}var P=P||[];P.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",c?t+=""+p:t+=""+e.util.toQuotedString(n),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match format "`,c?t+="' + "+p+" + '":t+=""+e.util.escapeQuotes(n),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+e.util.toQuotedString(n),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var A=t;return t=P.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",u&&(t+=" else { "),t},kw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p="errs__"+a,h=e.util.copy(e);h.level++;var y="valid"+h.level,m=e.schema.then,v=e.schema.else,x=m!==void 0&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all)),S=v!==void 0&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)),T=h.baseId;if(x||S){var P;h.createErrors=!1,h.schema=n,h.schemaPath=s,h.errSchemaPath=l,t+=" var "+p+" = errors; var "+c+" = true; ";var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,t+=" "+e.validate(h)+" ",h.baseId=T,h.createErrors=!0,t+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=A,x?(t+=" if ("+y+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",t+=" "+e.validate(h)+" ",h.baseId=T,t+=" "+c+" = "+y+"; ",x&&S?(P="ifClause"+a,t+=" var "+P+" = 'then'; "):P="'then'",t+=" } ",S&&(t+=" else { ")):t+=" if (!"+y+") { ",S&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",t+=" "+e.validate(h)+" ",h.baseId=T,t+=" "+c+" = "+y+"; ",x&&S?(P="ifClause"+a,t+=" var "+P+" = 'else'; "):P="'else'",t+=" } "),t+=" if (!"+c+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+P+" } ",e.opts.messages!==!1&&(t+=` , message: 'should match "' + `+P+` + '" schema' `),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } ",u&&(t+=" else { ")}else u&&(t+=" if (true) { ");return t},Bw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p="errs__"+a,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,v="i"+a,x=h.dataLevel=e.dataLevel+1,S="data"+x,T=e.baseId;if(t+="var "+p+" = errors;var "+c+";",Array.isArray(n)){var P=e.schema.additionalItems;if(P===!1){t+=" "+c+" = "+d+".length <= "+n.length+"; ";var A=l;l=e.errSchemaPath+"/additionalItems",t+=" if (!"+c+") { ";var L=L||[];L.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n.length+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have more than "+n.length+" items' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var O=t;t=L.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+O+"]); ":t+=" validate.errors = ["+O+"]; return false; ":t+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",l=A,u&&(y+="}",t+=" else { ")}var E=n;if(E){for(var _,R=-1,j=E.length-1;R<j;)if(_=E[R+=1],e.opts.strictKeywords?typeof _=="object"&&Object.keys(_).length>0||_===!1:e.util.schemaHasRules(_,e.RULES.all)){t+=" "+m+" = true; if ("+d+".length > "+R+") { ";var B=d+"["+R+"]";h.schema=_,h.schemaPath=s+"["+R+"]",h.errSchemaPath=l+"/"+R,h.errorPath=e.util.getPathExpr(e.errorPath,R,e.opts.jsonPointers,!0),h.dataPathArr[x]=R;var F=e.validate(h);h.baseId=T,e.util.varOccurences(F,S)<2?t+=" "+e.util.varReplace(F,S,B)+" ":t+=" var "+S+" = "+B+"; "+F+" ",t+=" } ",u&&(t+=" if ("+m+") { ",y+="}")}}if(typeof P=="object"&&(e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all))){h.schema=P,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",t+=" "+m+" = true; if ("+d+".length > "+n.length+") { for (var "+v+" = "+n.length+"; "+v+" < "+d+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var B=d+"["+v+"]";h.dataPathArr[x]=v;var F=e.validate(h);h.baseId=T,e.util.varOccurences(F,S)<2?t+=" "+e.util.varReplace(F,S,B)+" ":t+=" var "+S+" = "+B+"; "+F+" ",u&&(t+=" if (!"+m+") break; "),t+=" } } ",u&&(t+=" if ("+m+") { ",y+="}")}}else if(e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){h.schema=n,h.schemaPath=s,h.errSchemaPath=l,t+=" for (var "+v+" = 0; "+v+" < "+d+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var B=d+"["+v+"]";h.dataPathArr[x]=v;var F=e.validate(h);h.baseId=T,e.util.varOccurences(F,S)<2?t+=" "+e.util.varReplace(F,S,B)+" ":t+=" var "+S+" = "+B+"; "+F+" ",u&&(t+=" if (!"+m+") break; "),t+=" }"}return u&&(t+=" "+y+" if ("+p+" == errors) {"),t},Ql=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,T,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n;var h=r=="maximum",y=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[y],v=e.opts.$data&&m&&m.$data,x=h?"<":">",S=h?">":"<",T=void 0;if(!(c||typeof n=="number"||n===void 0))throw new Error(r+" must be number");if(!(v||m===void 0||typeof m=="number"||typeof m=="boolean"))throw new Error(y+" must be number or boolean");if(v){var P=e.util.getData(m.$data,o,e.dataPathArr),A="exclusive"+a,L="exclType"+a,O="exclIsNumber"+a,E="op"+a,_="' + "+E+" + '";t+=" var schemaExcl"+a+" = "+P+"; ",P="schemaExcl"+a,t+=" var "+A+"; var "+L+" = typeof "+P+"; if ("+L+" != 'boolean' && "+L+" != 'undefined' && "+L+" != 'number') { ";var T=y,R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(T||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: '"+y+" should be boolean' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var j=t;t=R.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t+=" "+L+" == 'number' ? ( ("+A+" = "+p+" === undefined || "+P+" "+x+"= "+p+") ? "+d+" "+S+"= "+P+" : "+d+" "+S+" "+p+" ) : ( ("+A+" = "+P+" === true) ? "+d+" "+S+"= "+p+" : "+d+" "+S+" "+p+" ) || "+d+" !== "+d+") { var op"+a+" = "+A+" ? '"+x+"' : '"+x+"='; ",n===void 0&&(T=y,l=e.errSchemaPath+"/"+y,p=P,c=v)}else{var O=typeof m=="number",_=x;if(O&&c){var E="'"+_+"'";t+=" if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t+=" ( "+p+" === undefined || "+m+" "+x+"= "+p+" ? "+d+" "+S+"= "+m+" : "+d+" "+S+" "+p+" ) || "+d+" !== "+d+") { "}else{O&&n===void 0?(A=!0,T=y,l=e.errSchemaPath+"/"+y,p=m,S+="="):(O&&(p=Math[h?"min":"max"](m,n)),m===(O?p:!0)?(A=!0,T=y,l=e.errSchemaPath+"/"+y,S+="="):(A=!1,_+="="));var E="'"+_+"'";t+=" if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t+=" "+d+" "+S+" "+p+" || "+d+" !== "+d+") { "}}T=T||r;var R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(T||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+E+", limit: "+p+", exclusive: "+A+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be "+_+" ",c?t+="' + "+p:t+=""+p+"'"),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var j=t;return t=R.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",u&&(t+=" else { "),t},Kl=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,y,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;if(c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n,!(c||typeof n=="number"))throw new Error(r+" must be number");var h=r=="maxItems"?">":"<";t+="if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t+=" "+d+".length "+h+" "+p+") { ";var y=r,m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(y||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",r=="maxItems"?t+="more":t+="fewer",t+=" than ",c?t+="' + "+p+" + '":t+=""+n,t+=" items' "),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var v=t;return t=m.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",u&&(t+=" else { "),t},Jl=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,y,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;if(c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n,!(c||typeof n=="number"))throw new Error(r+" must be number");var h=r=="maxLength"?">":"<";t+="if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?t+=" "+d+".length ":t+=" ucs2length("+d+") ",t+=" "+h+" "+p+") { ";var y=r,m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(y||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be ",r=="maxLength"?t+="longer":t+="shorter",t+=" than ",c?t+="' + "+p+" + '":t+=""+n,t+=" characters' "),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var v=t;return t=m.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",u&&(t+=" else { "),t},Zl=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,y,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;if(c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n,!(c||typeof n=="number"))throw new Error(r+" must be number");var h=r=="maxProperties"?">":"<";t+="if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t+=" Object.keys("+d+").length "+h+" "+p+") { ";var y=r,m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(y||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",r=="maxProperties"?t+="more":t+="fewer",t+=" than ",c?t+="' + "+p+" + '":t+=""+n,t+=" properties' "),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var v=t;return t=m.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",u&&(t+=" else { "),t},qw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;if(c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n,!(c||typeof n=="number"))throw new Error(r+" must be number");t+="var division"+a+";if (",c&&(t+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),t+=" (division"+a+" = "+d+" / "+p+", ",e.opts.multipleOfPrecision?t+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":t+=" division"+a+" !== parseInt(division"+a+") ",t+=" ) ",c&&(t+=" ) "),t+=" ) { ";var h=h||[];h.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be multiple of ",c?t+="' + "+p:t+=""+p+"'"),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var y=t;return t=h.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+y+"]); ":t+=" validate.errors = ["+y+"]; return false; ":t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",u&&(t+=" else { "),t},Mw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="errs__"+a,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){p.schema=n,p.schemaPath=s,p.errSchemaPath=l,t+=" var "+c+" = errors; ";var y=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var m;p.opts.allErrors&&(m=p.opts.allErrors,p.opts.allErrors=!1),t+=" "+e.validate(p)+" ",p.createErrors=!0,m&&(p.opts.allErrors=m),e.compositeRule=p.compositeRule=y,t+=" if ("+h+") { ";var v=v||[];v.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var x=t;t=v.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+x+"]); ":t+=" validate.errors = ["+x+"]; return false; ":t+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(t+=" if (false) { ");return t},Nw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p="errs__"+a,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,v=h.baseId,x="prevValid"+a,S="passingSchemas"+a;t+="var "+p+" = errors , "+x+" = false , "+c+" = false , "+S+" = null; ";var T=e.compositeRule;e.compositeRule=h.compositeRule=!0;var P=n;if(P)for(var A,L=-1,O=P.length-1;L<O;)A=P[L+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(h.schema=A,h.schemaPath=s+"["+L+"]",h.errSchemaPath=l+"/"+L,t+=" "+e.validate(h)+" ",h.baseId=v):t+=" var "+m+" = true; ",L&&(t+=" if ("+m+" && "+x+") { "+c+" = false; "+S+" = ["+S+", "+L+"]; } else { ",y+="}"),t+=" if ("+m+") { "+c+" = "+x+" = true; "+S+" = "+L+"; }";return e.compositeRule=h.compositeRule=T,t+=""+y+"if (!"+c+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+S+" } ",e.opts.messages!==!1&&(t+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(t+=" } "),t},Ww=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n;var h=c?"(new RegExp("+p+"))":e.usePattern(n);t+="if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),t+=" !"+h+".test("+d+") ) { ";var y=y||[];y.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",c?t+=""+p:t+=""+e.util.toQuotedString(n),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match pattern "`,c?t+="' + "+p+" + '":t+=""+e.util.escapeQuotes(n),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+e.util.toQuotedString(n),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var m=t;return t=y.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+m+"]); ":t+=" validate.errors = ["+m+"]; return false; ":t+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",u&&(t+=" else { "),t},zw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="errs__"+a,p=e.util.copy(e),h="";p.level++;var y="valid"+p.level,m="key"+a,v="idx"+a,x=p.dataLevel=e.dataLevel+1,S="data"+x,T="dataProperties"+a,P=Object.keys(n||{}).filter(H),A=e.schema.patternProperties||{},L=Object.keys(A).filter(H),O=e.schema.additionalProperties,E=P.length||L.length,_=O===!1,R=typeof O=="object"&&Object.keys(O).length,j=e.opts.removeAdditional,B=_||R||j,F=e.opts.ownProperties,$=e.baseId,W=e.schema.required;if(W&&!(e.opts.$data&&W.$data)&&W.length<e.opts.loopRequired)var U=e.util.toHash(W);function H(ga){return ga!=="__proto__"}if(t+="var "+c+" = errors;var "+y+" = true;",F&&(t+=" var "+T+" = undefined;"),B){if(F?t+=" "+T+" = "+T+" || Object.keys("+d+"); for (var "+v+"=0; "+v+"<"+T+".length; "+v+"++) { var "+m+" = "+T+"["+v+"]; ":t+=" for (var "+m+" in "+d+") { ",E){if(t+=" var isAdditional"+a+" = !(false ",P.length)if(P.length>8)t+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var V=P;if(V)for(var z,J=-1,ue=V.length-1;J<ue;)z=V[J+=1],t+=" || "+m+" == "+e.util.toQuotedString(z)+" "}if(L.length){var xe=L;if(xe)for(var ye,Oe=-1,tt=xe.length-1;Oe<tt;)ye=xe[Oe+=1],t+=" || "+e.usePattern(ye)+".test("+m+") "}t+=" ); if (isAdditional"+a+") { "}if(j=="all")t+=" delete "+d+"["+m+"]; ";else{var Pe=e.errorPath,Fe="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),_)if(j)t+=" delete "+d+"["+m+"]; ";else{t+=" "+y+" = false; ";var Ee=l;l=e.errSchemaPath+"/additionalProperties";var pe=pe||[];pe.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { additionalProperty: '"+Fe+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is an invalid additional property":t+="should NOT have additional properties",t+="' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var de=t;t=pe.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+de+"]); ":t+=" validate.errors = ["+de+"]; return false; ":t+=" var err = "+de+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=Ee,u&&(t+=" break; ")}else if(R)if(j=="failing"){t+=" var "+c+" = errors; ";var pt=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=O,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Ie=d+"["+m+"]";p.dataPathArr[x]=m;var ne=e.validate(p);p.baseId=$,e.util.varOccurences(ne,S)<2?t+=" "+e.util.varReplace(ne,S,Ie)+" ":t+=" var "+S+" = "+Ie+"; "+ne+" ",t+=" if (!"+y+") { errors = "+c+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+d+"["+m+"]; } ",e.compositeRule=p.compositeRule=pt}else{p.schema=O,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Ie=d+"["+m+"]";p.dataPathArr[x]=m;var ne=e.validate(p);p.baseId=$,e.util.varOccurences(ne,S)<2?t+=" "+e.util.varReplace(ne,S,Ie)+" ":t+=" var "+S+" = "+Ie+"; "+ne+" ",u&&(t+=" if (!"+y+") break; ")}e.errorPath=Pe}E&&(t+=" } "),t+=" } ",u&&(t+=" if ("+y+") { ",h+="}")}var St=e.opts.useDefaults&&!e.compositeRule;if(P.length){var wt=P;if(wt)for(var z,_e=-1,ar=wt.length-1;_e<ar;){z=wt[_e+=1];var Ce=n[z];if(e.opts.strictKeywords?typeof Ce=="object"&&Object.keys(Ce).length>0||Ce===!1:e.util.schemaHasRules(Ce,e.RULES.all)){var xt=e.util.getProperty(z),Ie=d+xt,or=St&&Ce.default!==void 0;p.schema=Ce,p.schemaPath=s+xt,p.errSchemaPath=l+"/"+e.util.escapeFragment(z),p.errorPath=e.util.getPath(e.errorPath,z,e.opts.jsonPointers),p.dataPathArr[x]=e.util.toQuotedString(z);var ne=e.validate(p);if(p.baseId=$,e.util.varOccurences(ne,S)<2){ne=e.util.varReplace(ne,S,Ie);var Re=Ie}else{var Re=S;t+=" var "+S+" = "+Ie+"; "}if(or)t+=" "+ne+" ";else{if(U&&U[z]){t+=" if ( "+Re+" === undefined ",F&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(z)+"') "),t+=") { "+y+" = false; ";var Pe=e.errorPath,Ee=l,je=e.util.escapeQuotes(z);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Pe,z,e.opts.jsonPointers)),l=e.errSchemaPath+"/required";var pe=pe||[];pe.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+je+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+je+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var de=t;t=pe.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+de+"]); ":t+=" validate.errors = ["+de+"]; return false; ":t+=" var err = "+de+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=Ee,e.errorPath=Pe,t+=" } else { "}else u?(t+=" if ( "+Re+" === undefined ",F&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(z)+"') "),t+=") { "+y+" = true; } else { "):(t+=" if ("+Re+" !== undefined ",F&&(t+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(z)+"') "),t+=" ) { ");t+=" "+ne+" } "}}u&&(t+=" if ("+y+") { ",h+="}")}}if(L.length){var fe=L;if(fe)for(var ye,Rr=-1,ya=fe.length-1;Rr<ya;){ye=fe[Rr+=1];var Ce=A[ye];if(e.opts.strictKeywords?typeof Ce=="object"&&Object.keys(Ce).length>0||Ce===!1:e.util.schemaHasRules(Ce,e.RULES.all)){p.schema=Ce,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ye),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ye),F?t+=" "+T+" = "+T+" || Object.keys("+d+"); for (var "+v+"=0; "+v+"<"+T+".length; "+v+"++) { var "+m+" = "+T+"["+v+"]; ":t+=" for (var "+m+" in "+d+") { ",t+=" if ("+e.usePattern(ye)+".test("+m+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Ie=d+"["+m+"]";p.dataPathArr[x]=m;var ne=e.validate(p);p.baseId=$,e.util.varOccurences(ne,S)<2?t+=" "+e.util.varReplace(ne,S,Ie)+" ":t+=" var "+S+" = "+Ie+"; "+ne+" ",u&&(t+=" if (!"+y+") break; "),t+=" } ",u&&(t+=" else "+y+" = true; "),t+=" } ",u&&(t+=" if ("+y+") { ",h+="}")}}}return u&&(t+=" "+h+" if ("+c+" == errors) {"),t},Vw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="errs__"+a,p=e.util.copy(e),h="";p.level++;var y="valid"+p.level;if(t+="var "+c+" = errors;",e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){p.schema=n,p.schemaPath=s,p.errSchemaPath=l;var m="key"+a,v="idx"+a,x="i"+a,S="' + "+m+" + '",T=p.dataLevel=e.dataLevel+1,P="data"+T,A="dataProperties"+a,L=e.opts.ownProperties,O=e.baseId;L&&(t+=" var "+A+" = undefined; "),L?t+=" "+A+" = "+A+" || Object.keys("+d+"); for (var "+v+"=0; "+v+"<"+A+".length; "+v+"++) { var "+m+" = "+A+"["+v+"]; ":t+=" for (var "+m+" in "+d+") { ",t+=" var startErrs"+a+" = errors; ";var E=m,_=e.compositeRule;e.compositeRule=p.compositeRule=!0;var R=e.validate(p);p.baseId=O,e.util.varOccurences(R,P)<2?t+=" "+e.util.varReplace(R,P,E)+" ":t+=" var "+P+" = "+E+"; "+R+" ",e.compositeRule=p.compositeRule=_,t+=" if (!"+y+") { for (var "+x+"=startErrs"+a+"; "+x+"<errors; "+x+"++) { vErrors["+x+"].propertyName = "+m+"; } var err = ",e.createErrors!==!1?(t+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { propertyName: '"+S+"' } ",e.opts.messages!==!1&&(t+=" , message: 'property name \\'"+S+"\\' is invalid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),u&&(t+=" break; "),t+=" } }"}return u&&(t+=" "+h+" if ("+c+" == errors) {"),t},Uw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p=e.opts.$data&&n&&n.$data;p&&(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ");var h="schema"+a;if(!p)if(n.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var T=[],y=n;if(y)for(var m,v=-1,x=y.length-1;v<x;){m=y[v+=1];var S=e.schema.properties[m];S&&(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all))||(T[T.length]=m)}}else var T=n;if(p||T.length){var P=e.errorPath,A=p||T.length>=e.opts.loopRequired,L=e.opts.ownProperties;if(u)if(t+=" var missing"+a+"; ",A){p||(t+=" var "+h+" = validate.schema"+s+"; ");var O="i"+a,E="schema"+a+"["+O+"]",_="' + "+E+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,E,e.opts.jsonPointers)),t+=" var "+c+" = true; ",p&&(t+=" if (schema"+a+" === undefined) "+c+" = true; else if (!Array.isArray(schema"+a+")) "+c+" = false; else {"),t+=" for (var "+O+" = 0; "+O+" < "+h+".length; "+O+"++) { "+c+" = "+d+"["+h+"["+O+"]] !== undefined ",L&&(t+=" && Object.prototype.hasOwnProperty.call("+d+", "+h+"["+O+"]) "),t+="; if (!"+c+") break; } ",p&&(t+=" } "),t+=" if (!"+c+") { ";var R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+_+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var j=t;t=R.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var B=T;if(B)for(var F,O=-1,$=B.length-1;O<$;){F=B[O+=1],O&&(t+=" || ");var W=e.util.getProperty(F),U=d+W;t+=" ( ( "+U+" === undefined ",L&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(F)+"') "),t+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?F:W)+") ) "}t+=") { ";var E="missing"+a,_="' + "+E+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,E,!0):P+" + "+E);var R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+_+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var j=t;t=R.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else if(A){p||(t+=" var "+h+" = validate.schema"+s+"; ");var O="i"+a,E="schema"+a+"["+O+"]",_="' + "+E+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,E,e.opts.jsonPointers)),p&&(t+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+_+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),t+=" for (var "+O+" = 0; "+O+" < "+h+".length; "+O+"++) { if ("+d+"["+h+"["+O+"]] === undefined ",L&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", "+h+"["+O+"]) "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+_+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(t+=" } ")}else{var H=T;if(H)for(var F,V=-1,z=H.length-1;V<z;){F=H[V+=1];var W=e.util.getProperty(F),_=e.util.escapeQuotes(F),U=d+W;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,F,e.opts.jsonPointers)),t+=" if ( "+U+" === undefined ",L&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(F)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+_+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=P}else u&&(t+=" if (true) {");return t},Gw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p=e.opts.$data&&n&&n.$data,h;if(p?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",h="schema"+a):h=n,(n||p)&&e.opts.uniqueItems!==!1){p&&(t+=" var "+c+"; if ("+h+" === false || "+h+" === undefined) "+c+" = true; else if (typeof "+h+" != 'boolean') "+c+" = false; else { "),t+=" var i = "+d+".length , "+c+" = true , j; if (i > 1) { ";var y=e.schema.items&&e.schema.items.type,m=Array.isArray(y);if(!y||y=="object"||y=="array"||m&&(y.indexOf("object")>=0||y.indexOf("array")>=0))t+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+c+" = false; break outer; } } } ";else{t+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var v="checkDataType"+(m?"s":"");t+=" if ("+e.util[v](y,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(t+=` if (typeof item == 'string') item = '"' + item; `),t+=" if (typeof itemIndices[item] == 'number') { "+c+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}t+=" } ",p&&(t+=" } "),t+=" if (!"+c+") { ";var x=x||[];x.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(t+=" , schema: ",p?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var S=t;t=x.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+S+"]); ":t+=" validate.errors = ["+S+"]; return false; ":t+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",u&&(t+=" else { ")}else u&&(t+=" if (true) { ");return t},Hw={$ref:Aw,allOf:Ow,anyOf:Ew,$comment:Lw,const:Dw,contains:jw,dependencies:$w,enum:_w,format:Rw,if:kw,items:Bw,maximum:Ql,minimum:Ql,maxItems:Kl,minItems:Kl,maxLength:Jl,minLength:Jl,maxProperties:Zl,minProperties:Zl,multipleOf:qw,not:Mw,oneOf:Nw,pattern:Ww,properties:zw,propertyNames:Vw,required:Uw,uniqueItems:Gw,validate:Np},Xl=Hw,Wa=_r.toHash,Qw=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],t=["number","integer","string","array","object","boolean","null"];return e.all=Wa(r),e.types=Wa(t),e.forEach(function(a){a.rules=a.rules.map(function(o){var n;if(typeof o=="object"){var s=Object.keys(o)[0];n=o[s],o=s,n.forEach(function(u){r.push(u),e.all[u]=!0})}r.push(o);var l=e.all[o]={keyword:o,code:Xl[o],implements:n};return l}),e.all.$comment={keyword:"$comment",code:Xl.$comment},a.type&&(e.types[a.type]=a)}),e.keywords=Wa(r.concat(i)),e.custom={},e},Yl=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],Kw=function(e,r){for(var i=0;i<r.length;i++){e=JSON.parse(JSON.stringify(e));var t=r[i].split("/"),a=e,o;for(o=1;o<t.length;o++)a=a[t[o]];for(o=0;o<Yl.length;o++){var n=Yl[o],s=a[n];s&&(a[n]={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},Jw=vo.MissingRef,Zw=td;function td(e,r,i){var t=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof r=="function"&&(i=r,r=void 0);var a=o(e).then(function(){var s=t._addSchema(e,void 0,r);return s.validate||n(s)});return i&&a.then(function(s){i(null,s)},i),a;function o(s){var l=s.$schema;return l&&!t.getSchema(l)?td.call(t,{$ref:l},!0):Promise.resolve()}function n(s){try{return t._compile(s)}catch(u){if(u instanceof Jw)return l(u);throw u}function l(u){var d=u.missingSchema;if(h(d))throw new Error("Schema "+d+" is loaded but "+u.missingRef+" cannot be resolved");var c=t._loadingSchemas[d];return c||(c=t._loadingSchemas[d]=t._opts.loadSchema(d),c.then(p,p)),c.then(function(y){if(!h(d))return o(y).then(function(){h(d)||t.addSchema(y,d,void 0,r)})}).then(function(){return n(s)});function p(){delete t._loadingSchemas[d]}function h(y){return t._refs[y]||t._schemas[y]}}}}var Xw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d,c="data"+(o||""),p="valid"+a,h="errs__"+a,y=e.opts.$data&&n&&n.$data,m;y?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",m="schema"+a):m=n;var v=this,x="definition"+a,S=v.definition,T="",P,A,L,O,E;if(y&&S.$data){E="keywordValidate"+a;var _=S.validateSchema;t+=" var "+x+" = RULES.custom['"+r+"'].definition; var "+E+" = "+x+".validate;"}else{if(O=e.useCustomRule(v,n,e.schema,e),!O)return;m="validate.schema"+s,E=O.code,P=S.compile,A=S.inline,L=S.macro}var R=E+".errors",j="i"+a,B="ruleErr"+a,F=S.async;if(F&&!e.async)throw new Error("async keyword in sync schema");if(A||L||(t+=""+R+" = null;"),t+="var "+h+" = errors;var "+p+";",y&&S.$data&&(T+="}",t+=" if ("+m+" === undefined) { "+p+" = true; } else { ",_&&(T+="}",t+=" "+p+" = "+x+".validateSchema("+m+"); if ("+p+") { ")),A)S.statements?t+=" "+O.validate+" ":t+=" "+p+" = "+O.validate+"; ";else if(L){var $=e.util.copy(e),T="";$.level++;var W="valid"+$.level;$.schema=O.validate,$.schemaPath="";var U=e.compositeRule;e.compositeRule=$.compositeRule=!0;var H=e.validate($).replace(/validate\.schema/g,E);e.compositeRule=$.compositeRule=U,t+=" "+H}else{var V=V||[];V.push(t),t="",t+=" "+E+".call( ",e.opts.passContext?t+="this":t+="self",P||S.schema===!1?t+=" , "+c+" ":t+=" , "+m+" , "+c+" , validate.schema"+e.schemaPath+" ",t+=" , (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var z=o?"data"+(o-1||""):"parentData",J=o?e.dataPathArr[o]:"parentDataProperty";t+=" , "+z+" , "+J+" , rootData ) ";var ue=t;t=V.pop(),S.errors===!1?(t+=" "+p+" = ",F&&(t+="await "),t+=""+ue+"; "):F?(R="customErrors"+a,t+=" var "+R+" = null; try { "+p+" = await "+ue+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+R+" = e.errors; else throw e; } "):t+=" "+R+" = null; "+p+" = "+ue+"; "}if(S.modifying&&(t+=" if ("+z+") "+c+" = "+z+"["+J+"];"),t+=""+T,S.valid)u&&(t+=" if (true) { ");else{t+=" if ( ",S.valid===void 0?(t+=" !",L?t+=""+W:t+=""+p):t+=" "+!S.valid+" ",t+=") { ",d=v.keyword;var V=V||[];V.push(t),t="";var V=V||[];V.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var xe=t;t=V.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+xe+"]); ":t+=" validate.errors = ["+xe+"]; return false; ":t+=" var err = "+xe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var ye=t;t=V.pop(),A?S.errors?S.errors!="full"&&(t+=" for (var "+j+"="+h+"; "+j+"<errors; "+j+"++) { var "+B+" = vErrors["+j+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(t+=" "+B+".schema = "+m+"; "+B+".data = "+c+"; "),t+=" } "):S.errors===!1?t+=" "+ye+" ":(t+=" if ("+h+" == errors) { "+ye+" } else { for (var "+j+"="+h+"; "+j+"<errors; "+j+"++) { var "+B+" = vErrors["+j+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(t+=" "+B+".schema = "+m+"; "+B+".data = "+c+"; "),t+=" } } "):L?(t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; ")):S.errors===!1?t+=" "+ye+" ":(t+=" if (Array.isArray("+R+")) { if (vErrors === null) vErrors = "+R+"; else vErrors = vErrors.concat("+R+"); errors = vErrors.length; for (var "+j+"="+h+"; "+j+"<errors; "+j+"++) { var "+B+" = vErrors["+j+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; "+B+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(t+=" "+B+".schema = "+m+"; "+B+".data = "+c+"; "),t+=" } } else { "+ye+" } "),t+=" } ",u&&(t+=" else { ")}return t},Yw="http://json-schema.org/draft-07/schema#",ex="http://json-schema.org/draft-07/schema#",tx="Core schema meta-schema",rx={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},ix=["object","boolean"],ax={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},rd={$schema:Yw,$id:ex,title:tx,definitions:rx,type:ix,properties:ax,default:!0},ep=rd,ox={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:ep.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:ep.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},nx=/^[a-z_$][a-z0-9_$-]*$/i,sx=Xw,lx=ox,px={add:dx,get:cx,remove:ux,validate:Ya};function dx(e,r){var i=this.RULES;if(i.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!nx.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var t=r.type;if(Array.isArray(t))for(var a=0;a<t.length;a++)n(e,t[a],r);else n(e,t,r);var o=r.metaSchema;o&&(r.$data&&this._opts.$data&&(o={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(o,!0))}i.keywords[e]=i.all[e]=!0;function n(s,l,u){for(var d,c=0;c<i.length;c++){var p=i[c];if(p.type==l){d=p;break}}d||(d={type:l,rules:[]},i.push(d));var h={keyword:s,definition:u,custom:!0,code:sx,implements:u.implements};d.rules.push(h),i.custom[s]=h}return this}function cx(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||!1}function ux(e){var r=this.RULES;delete r.keywords[e],delete r.all[e],delete r.custom[e];for(var i=0;i<r.length;i++)for(var t=r[i].rules,a=0;a<t.length;a++)if(t[a].keyword==e){t.splice(a,1);break}return this}function Ya(e,r){Ya.errors=null;var i=this._validateKeyword=this._validateKeyword||this.compile(lx,!0);if(i(e))return!0;if(Ya.errors=i.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(i.errors));return!1}var fx="http://json-schema.org/draft-07/schema#",hx="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",mx="Meta-schema for $data reference (JSON Schema extension proposal)",yx="object",gx=["$data"],bx={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},vx=!1,Sx={$schema:fx,$id:hx,description:mx,type:yx,required:gx,properties:bx,additionalProperties:vx},id=sw,Zt=bo,wx=hw,ad=Rp,xx=Mp,Ix=ww,Cx=Qw,od=Kw,nd=_r,Tx=me;me.prototype.validate=Fx;me.prototype.compile=Ax;me.prototype.addSchema=Ox;me.prototype.addMetaSchema=Ex;me.prototype.validateSchema=Lx;me.prototype.getSchema=jx;me.prototype.removeSchema=_x;me.prototype.addFormat=zx;me.prototype.errorsText=Wx;me.prototype._addSchema=Rx;me.prototype._compile=kx;me.prototype.compileAsync=Zw;var ma=px;me.prototype.addKeyword=ma.add;me.prototype.getKeyword=ma.get;me.prototype.removeKeyword=ma.remove;me.prototype.validateKeyword=ma.validate;var sd=vo;me.ValidationError=sd.Validation;me.MissingRefError=sd.MissingRef;me.$dataMetaSchema=od;var la="http://json-schema.org/draft-07/schema",tp=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Px=["/properties"];function me(e){if(!(this instanceof me))return new me(e);e=this._opts=nd.copy(e)||{},Kx(this),this._schemas={},this._refs={},this._fragments={},this._formats=Ix(e.format),this._cache=e.cache||new wx,this._loadingSchemas={},this._compilations=[],this.RULES=Cx(),this._getId=Bx(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath=="property"&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=xx),this._metaOpts=Qx(this),e.formats&&Gx(this),e.keywords&&Hx(this),Vx(this),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),Ux(this)}function Fx(e,r){var i;if(typeof e=="string"){if(i=this.getSchema(e),!i)throw new Error('no schema with key or ref "'+e+'"')}else{var t=this._addSchema(e);i=t.validate||this._compile(t)}var a=i(r);return i.$async!==!0&&(this.errors=i.errors),a}function Ax(e,r){var i=this._addSchema(e,void 0,r);return i.validate||this._compile(i)}function Ox(e,r,i,t){if(Array.isArray(e)){for(var a=0;a<e.length;a++)this.addSchema(e[a],void 0,i,t);return this}var o=this._getId(e);if(o!==void 0&&typeof o!="string")throw new Error("schema id must be string");return r=Zt.normalizeId(r||o),pd(this,r),this._schemas[r]=this._addSchema(e,i,t,!0),this}function Ex(e,r,i){return this.addSchema(e,r,i,!0),this}function Lx(e,r){var i=e.$schema;if(i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this._opts.defaultMeta||Dx(this),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var t=this.validate(i,e);if(!t&&r){var a="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(a);else throw new Error(a)}return t}function Dx(e){var r=e._opts.meta;return e._opts.defaultMeta=typeof r=="object"?e._getId(r)||r:e.getSchema(la)?la:void 0,e._opts.defaultMeta}function jx(e){var r=ld(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return $x(this,e)}}function $x(e,r){var i=Zt.schema.call(e,{schema:{}},r);if(i){var t=i.schema,a=i.root,o=i.baseId,n=id.call(e,t,a,void 0,o);return e._fragments[r]=new ad({ref:r,fragment:!0,schema:t,root:a,baseId:o,validate:n}),n}}function ld(e,r){return r=Zt.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function _x(e){if(e instanceof RegExp)return Qi(this,this._schemas,e),Qi(this,this._refs,e),this;switch(typeof e){case"undefined":return Qi(this,this._schemas),Qi(this,this._refs),this._cache.clear(),this;case"string":var r=ld(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var i=this._opts.serialize,t=i?i(e):e;this._cache.del(t);var a=this._getId(e);a&&(a=Zt.normalizeId(a),delete this._schemas[a],delete this._refs[a])}return this}function Qi(e,r,i){for(var t in r){var a=r[t];!a.meta&&(!i||i.test(t))&&(e._cache.del(a.cacheKey),delete r[t])}}function Rx(e,r,i,t){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var a=this._opts.serialize,o=a?a(e):e,n=this._cache.get(o);if(n)return n;t=t||this._opts.addUsedSchema!==!1;var s=Zt.normalizeId(this._getId(e));s&&t&&pd(this,s);var l=this._opts.validateSchema!==!1&&!r,u;l&&!(u=s&&s==Zt.normalizeId(e.$schema))&&this.validateSchema(e,!0);var d=Zt.ids.call(this,e),c=new ad({id:s,schema:e,localRefs:d,cacheKey:o,meta:i});return s[0]!="#"&&t&&(this._refs[s]=c),this._cache.put(o,c),l&&u&&this.validateSchema(e,!0),c}function kx(e,r){if(e.compiling)return e.validate=a,a.schema=e.schema,a.errors=null,a.root=r||a,e.schema.$async===!0&&(a.$async=!0),a;e.compiling=!0;var i;e.meta&&(i=this._opts,this._opts=this._metaOpts);var t;try{t=id.call(this,e.schema,r,e.localRefs)}catch(o){throw delete e.validate,o}finally{e.compiling=!1,e.meta&&(this._opts=i)}return e.validate=t,e.refs=t.refs,e.refVal=t.refVal,e.root=t.root,t;function a(){var o=e.validate,n=o.apply(this,arguments);return a.errors=o.errors,n}}function Bx(e){switch(e.schemaId){case"auto":return Nx;case"id":return qx;default:return Mx}}function qx(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function Mx(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function Nx(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function Wx(e,r){if(e=e||this.errors,!e)return"No errors";r=r||{};for(var i=r.separator===void 0?", ":r.separator,t=r.dataVar===void 0?"data":r.dataVar,a="",o=0;o<e.length;o++){var n=e[o];n&&(a+=t+n.dataPath+" "+n.message+i)}return a.slice(0,-i.length)}function zx(e,r){return typeof r=="string"&&(r=new RegExp(r)),this._formats[e]=r,this}function Vx(e){var r;if(e._opts.$data&&(r=Sx,e.addMetaSchema(r,r.$id,!0)),e._opts.meta!==!1){var i=rd;e._opts.$data&&(i=od(i,Px)),e.addMetaSchema(i,la,!0),e._refs["http://json-schema.org/schema"]=la}}function Ux(e){var r=e._opts.schemas;if(r)if(Array.isArray(r))e.addSchema(r);else for(var i in r)e.addSchema(r[i],i)}function Gx(e){for(var r in e._opts.formats){var i=e._opts.formats[r];e.addFormat(r,i)}}function Hx(e){for(var r in e._opts.keywords){var i=e._opts.keywords[r];e.addKeyword(r,i)}}function pd(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function Qx(e){for(var r=nd.copy(e._opts),i=0;i<tp.length;i++)delete r[tp[i]];return r}function Kx(e){var r=e._opts.logger;if(r===!1)e.logger={log:za,warn:za,error:za};else{if(r===void 0&&(r=console),!(typeof r=="object"&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}function za(){}var Jx=PS(Tx),dd={NonNumericAggregation:"nonNumericAggregation",DuplicateSeriesID:"duplicateSeriesId"},$t={Required:"required",MinLength:"minLength",MinItems:"minItems",MaxItems:"maxItems",Pattern:"pattern",AdditionalProperties:"additionalProperties",Enum:"enum",AnyOf:"anyOf"},J$={BadData:"badData",EmptyDataSet:"emptyDataSet",HistogramEmptyField:"histogramEmptyField",BarElementExceedsLimit:"barElementExceedsLimit",LineChartExceedsLimit:"lineChartExceedsLimit",BoxPlotExceedsLimit:"boxPlotExceedsLimit",BoxPlotOutliersExceedsLimit:"boxPlotOutliersExceedsLimit",PieChartExceedsLimit:"pieChartExceedsLimit",GaugeExceedsLimit:"gaugeExceedsLimit",PieChartMixOfNegativePositiveSlices:"PieChartMixOfNegativePositiveSlices",NegativeValueInSqrtCalculation:"negativeValueInSqrtCalculation",NegativeValueInLogCalculation:"negativeValueInLogCalculation",NegativeValueInXAxisLogScale:"negativeValueInXAxisLogScale",NegativeValueInYAxisLogScale:"negativeValueInYAxisLogScale"};function Zx(e){let r=e.lastIndexOf("/");return r!==-1?e.slice(r+1):e}async function Xx(e){let r=await vt();return e.map(i=>{let t=i,a=i.dataPath.startsWith(".")?i.dataPath.substring(1):i.dataPath;switch(i.keyword){case $t.Required:t={...i,message:He(r.requiredProperty,{dataPath:a,missingProperty:i.params.missingProperty})};break;case $t.MinLength:t={...i,message:He(r.minLength,{dataPath:a,limit:i.params.limit.toString()})};break;case $t.MinItems:t={...i,message:He(r.minItems,{dataPath:a,limit:i.params.limit.toString()})};break;case $t.MaxItems:t={...i,message:He(r.maxItems,{dataPath:a,limit:i.params.limit.toString()})};break;case $t.Pattern:i.params.pattern==="\\w+"&&(t={...i,message:He(r.whiteSpacePattern,{dataPath:a}),params:{}});break;case $t.AdditionalProperties:t={...i,message:He(r.additionalProperty,{dataPath:a,additionalProperty:i.params.additionalProperty})};break;case $t.Enum:t={...i,message:He(r.enumValues,{dataPath:a,allowedValues:i.params.allowedValues.join(", ")})};break;case $t.AnyOf:{let o=[];i.schemaPath==="#/properties/legend/anyOf"&&(o=Qt.definitions.WebChart.properties.legend.anyOf.map(n=>Zx(n.$ref))),t={...i,params:o,message:He(r.anyOfValues,{dataPath:a,schemaOptions:o.join(", ")})};break}}return t})}function Ki(e,r){return{...e,$ref:`#/definitions/${r}`}}async function Yx(e){let r,i=await vt(),t=Ae(e);try{await t.load()}catch{let a=t?.url??"",o=we(t)?.portalItem?.id??"";r={keyword:ir.LayerLoadFailure,message:He(i.layerLoadFailure,{url:a,portalItemId:o}),params:{url:a,portalItemId:o}}}return r}function e0(){let e=new Jx({allErrors:!0});return async r=>{let i=[],t=qe(r?.series),a=Qt;switch(t){case w.GaugeSeries:a=Ki(Qt,"WebGaugeChart");break;case w.BoxPlotSeries:a=Ki(Qt,"WebBoxPlot");break;case w.RadarSeries:a=Ki(Qt,"WebRadarChart");break;default:a=Ki(Qt,"WebChart");break}let o=e.compile(a);return o(r),o.errors!==null&&o.errors!==void 0&&(i=await Xx(o.errors)),i}}var t0=e0();async function r0(e){let{seriesConfigs:r,queryObject:i,allowUsingObjectIdStat:t}=e,a=[],o=await po(i),n=await vt();for(let s=0;s<r.length;s+=1){let l=r[s].query?.outStatistics;if(l!==void 0)for(let u=0;u<l.length;u+=1){let d=l[u],c=co(d.onStatisticField,o);if(c&&!(c.type===We.OID&&t||jp(c))&&d.statisticType!==se.Count){let p=`series[${s}].query.outStatistics[${u}]`;a.push({keyword:dd.NonNumericAggregation,message:He(n.nonNumericAggregation,{dataPath:p}),dataPath:p,params:{fieldName:d.onStatisticField,fieldType:c.type,aggregationRequested:d.statisticType}})}}}return a}async function i0(e){let r=[],i=await vt();if(e!==void 0&&e.series.length>1){let t=new Set,a=0;e.series.forEach((o,n)=>{if(t.add(o.id),t.size===a){let s=`series[${n}].id`;r.push({keyword:dd.DuplicateSeriesID,message:He(i.duplicateSeriesID,{dataPath:s,seriesID:o.id,seriesName:o.name}),dataPath:s,params:{seriesId:o.id,seriesName:o.name}})}else a+=1})}return r}function a0(e){let r=new Set,i=Uv(e);if(i){let t=qe(e.series),a=bt(e.series);t===w.GaugeSeries&&!Jv(e)||a===k.PieFromFields||a===k.BarAndLineFromFields||a===k.BoxPlotMonoField||a===k.BoxPlotMultiFields||a===k.BoxPlotMonoFieldAndSplitBy||a===k.BoxPlotMultiFieldsAndSplitBy||r.add(i.x);let o=t===w.ScatterSeries||t===w.BoxPlotSeries||a===k.BarAndLineNoAggregation||a===k.BarAndLineSplitByNoAggregation||a===k.PieNoAggregation,n=[ro,ni,ko,Ia,Bo,Xt.outStatistics.outStatisticFieldName??""],s=[];if(t===w.BoxPlotSeries?s=Yv({showMean:e.showMean,seriesConfig:e.series}):s=e.series.map(l=>"y"in l?l.y:void 0).filter(l=>l!==void 0).flat(),o?s.forEach(l=>r.add(l)):n.push(...s),e.series.forEach(l=>{let{query:u}=l;u&&(jr(u.where)||r.add(oo(u.where)),u.groupByFieldsForStatistics&&u.groupByFieldsForStatistics.forEach(d=>r.add(d)),u.outStatistics&&u.outStatistics.forEach(d=>r.add(d.onStatisticField)))}),t===w.GaugeSeries&&e.axes?.[0]!==void 0){let l=e.axes?.[0];l&&"minimumFromField"in l&&typeof l.minimumFromField=="string"&&r.add(l.minimumFromField),l&&"maximumFromField"in l&&typeof l.maximumFromField=="string"&&r.add(l.maximumFromField)}n.forEach(l=>{r.delete(l)})}return Array.from(r.values()).filter(t=>!gt(t))}async function o0(e,r){let i,t=await vt(),a=await po(r),o=a0(e).filter(n=>!co(n,a));if(o.length>0){let n=o.join(", ");i={keyword:ir.LayerFieldsNotFound,message:He(t.layerFieldsNotFound,{fieldNames:n}),params:n}}return i}async function n0(e){let{input:r,queryObject:i,allowUsingObjectIdStat:t}=e,a=[];if(i!==void 0){let o=await r0({seriesConfigs:r.series,queryObject:i,allowUsingObjectIdStat:t});a=a.concat(o)}return a=a.concat(await i0(r)),a}async function s0(e,r){let i=[];if(e!==void 0){let t=await Yx(e);if(t!==void 0)i=i.concat(t);else if(r!==void 0){let a=await o0(r,e);a!==void 0&&(i=i.concat(a))}}return i}async function Z$(e){let{input:r,queryObject:i,allowUsingObjectIdStat:t}=e,a;if(Vv(r?.version).versionStatus===It.Newer)a={valid:!0,schemaErrors:[],customErrors:[],warnings:[]};else{let o=await t0(r),n=[],s=[];r!==void 0&&o.length===0&&(s=await s0(i,r),s.length===0&&(n=await n0({input:r,queryObject:i,allowUsingObjectIdStat:t}))),a={valid:o.length===0&&n.length===0&&s.length===0,schemaErrors:o,customErrors:s,warnings:n}}return a}function X$(e){let r=qe(e?.series),i=!1;switch(r){case w.HistogramSeries:{i=(e?.series?.[0]?.x?.trim()?.length??0)===0;break}case w.ScatterSeries:{let t=e?.series;i=(t?.[0]?.x?.length??0)===0||(t?.[0]?.y?.length??0)===0;break}case w.PieSeries:{let t=e?.series;bt(t)===k.PieFromFields?i=(t?.[0]?.query?.outStatistics?.length??0)===0:i=(t?.[0]?.x?.length??0)===0||t?.[0]?.x===ni;break}case w.BoxPlotSeries:{let t=e?.series;i=[t?.[0]?.y].flat().length===0||t?.[0]?.y==="";break}case w.ComboLineAndBarSeries:case w.RadarSeries:case w.BarSeries:case w.LineSeries:{let t=e?.series;bt(t)===k.BarAndLineFromFields?i=(t?.[0]?.query?.outStatistics?.length??0)===0:i=(t?.[0]?.x?.trim()?.length??0)===0;break}}return i}var Y$=[{unit:Le.Second,threshold:6e4,unitMs:1e3,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:Le.Minute,threshold:36e5,unitMs:1e3*60,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:Le.Hour,threshold:864e5,unitMs:1e3*60*60,preferredIntervalSize:[1,2,3,4,6,8,12,24]},{unit:Le.Day,threshold:6048e5,unitMs:1e3*60*60*24,preferredIntervalSize:[1,2,3,4,5,6,7]},{unit:Le.Week,threshold:24192e5,unitMs:1e3*60*60*24*7,preferredIntervalSize:[1,2,3,4]},{unit:Le.Month,threshold:290304e5,unitMs:1e3*60*60*24*7*4,preferredIntervalSize:[1,2,3,4,6,12]},{unit:Le.Year,threshold:Number.MAX_SAFE_INTEGER,unitMs:1e3*60*60*24*7*4*12,preferredIntervalSize:[1,2,4,5,10,25,50,100]}],e_="${ groupByFieldsForStatistics } WHEN ${ dateField }>='${ startDate }' AND ${ dateField }${ endDateOperand }'${ endDate }' THEN '${ y }|${ binIndex}'";return{a:yt,b:w,c:se,d:va,e:l0,f:Do,g:Mr,h:p0,i:at,j:jo,k:d0,l:Sa,m:Le,n:c0,o:$o,p:lr,q:u0,r:It,s:f0,t:_o,u:Ro,v:h0,w:pr,x:We,y:dr,z:wa,A:cr,B:ai,C:xa,D:De,E:y0,F:g0,G:b0,H:oi,I:ni,J:Ia,K:ko,L:Bo,M:ot,N:X,O:le,P:li,Q:Ea,R:im,S:pm,T:km,U:zm,V:qs,W:Aa,X:Ag,Y:Cy,Z:mg,_:Kg,$:Al,aa:Ol,ba:El,ca:Ll,da:Dl,ea:D,fa:He,ga:np,ha:gj,ia:bj,ja:vj,ka:Sj,la:lt,ma:sp,na:G,oa:wj,pa:xj,qa:Xt,ra:hb,sa:Ij,ta:et,ua:yb,va:Cj,wa:Tj,xa:Pj,ya:ro,za:st,Aa:pp,Ba:Fj,Ca:pa,Da:Y,Ea:dp,Fa:K,Ga:Zr,Ha:vb,Ia:Aj,Ja:Va,Ka:Oj,La:Ej,Ma:er,Na:Wi,Oa:Lj,Pa:Sb,Qa:wb,Ra:xb,Sa:Dj,Ta:Ib,Ua:$r,Va:Tb,Wa:Fb,Xa:jj,Ya:Ab,Za:$j,_a:_j,$a:Ob,ab:Eb,bb:Rj,cb:kj,db:Qr,eb:Bj,fb:qj,gb:Mj,hb:Nj,ib:Wj,jb:zj,kb:Vj,lb:Lb,mb:Db,nb:jb,ob:Uj,pb:$b,qb:Gj,rb:Hj,sb:Qj,tb:_b,ub:Kj,vb:Jj,wb:Zj,xb:k,yb:Xj,zb:Yj,Ab:qe,Bb:e$,Cb:t$,Db:Dv,Eb:_v,Fb:Tp,Gb:r$,Hb:i$,Ib:a$,Jb:o$,Kb:n$,Lb:gt,Mb:qv,Nb:s$,Ob:l$,Pb:p$,Qb:d$,Rb:c$,Sb:u$,Tb:f$,Ub:h$,Vb:m$,Wb:y$,Xb:g$,Yb:Mv,Zb:Nv,_b:Vv,$b:Uv,ac:b$,bc:oo,cc:Xr,dc:jr,ec:v$,fc:bt,gc:S$,hc:w$,ic:oe,jc:Kv,kc:Jv,lc:x$,mc:Zv,nc:ra,oc:Ma,pc:ia,qc:Yv,rc:eS,sc:I$,tc:C$,uc:Yt,vc:ir,wc:T$,xc:no,yc:P$,zc:we,Ac:Fp,Bc:F$,Cc:A$,Dc:Ae,Ec:O$,Fc:Kr,Gc:E$,Hc:dS,Ic:L$,Jc:D$,Kc:j$,Lc:uS,Mc:$$,Nc:_$,Oc:fS,Pc:R$,Qc:Jr,Rc:lo,Sc:k$,Tc:wS,Uc:B$,Vc:po,Wc:q$,Xc:jp,Yc:M$,Zc:N$,_c:W$,$c:z$,ad:V$,bd:U$,cd:G$,dd:H$,ed:CS,fd:Q$,gd:K$,hd:dd,id:J$,jd:Z$,kd:X$,ld:Y$,md:e_}},"geometry/support/jsonUtils","layers/support/fieldUtils","renderers/support/jsonUtils","layers/support/Field","request","rest/support/FeatureSet","layers/FeatureLayer","portal/Portal","rest/support/StatisticDefinition","rest/support/AttributeBinsQuery","rest/support/Query","time/TimeExtent","core/promiseUtils")
53
+ {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PublishingInfo.html#updating Read more...}`}},required:["declaredClass","destroyed","initialized","status","updating"],title:"__esri.PublishingInfo"},"__esri.ScaleRangeLayer":{type:"object",properties:{maxScale:{type:"number"},minScale:{type:"number"}},required:["maxScale","minScale"],title:"__esri.ScaleRangeLayer"},"__esri.TemporalLayer":{type:"object",properties:{useViewTime:{type:"boolean"}},required:["useViewTime"],title:"__esri.TemporalLayer"},"__esri.TrackableLayer":{type:"object",title:"__esri.TrackableLayer"},"__esri.SubtypeSublayer":{type:"object",properties:{uid:{type:"string"},loadError:{anyOf:[{$ref:"#/definitions/__esri.Error"},{$ref:"#/definitions/nullish"}]},loadStatus:{type:"string",enum:["not-loaded","loading","failed","loaded"]},loadWarnings:{type:"array",items:{}},destroyed:{type:"boolean"},initialized:{type:"boolean"},declaredClass:{type:"string"}},required:["declaredClass","destroyed","initialized","loadError","loadStatus","loadWarnings","uid"],title:"__esri.SubtypeSublayer"},RGBObject:{type:"object",properties:{r:{type:"number"},g:{type:"number"},b:{type:"number"},a:{type:"number",default:1}},required:["r","g","b"],description:"JSON representation of the color object",title:"RGBObject"},IRendererSymbol:{type:"object",properties:{style:{type:"string"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},label:{type:"string"},uniqueValue:{type:"string"},type:{$ref:"#/definitions/SymbolType"}},required:["color","type"],title:"IRendererSymbol"},WebChartDataItemColor:{anyOf:[{$ref:"#/definitions/Color"},{$ref:"#/definitions/RGBArray"},{$ref:"#/definitions/RGBObject"},{type:"string"}],title:"WebChartDataItemColor"},RGBArray:{type:"array",items:{type:"number"},minItems:3,maxItems:3,title:"RGBArray"},WebChartDataItemValue:{anyOf:[{type:"string",format:"date-time"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IRendererSymbol"},{type:"array",items:{type:"number"}},{type:"array",items:{type:"string"}},{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},{$ref:"#/definitions/WebChartDataItemColor"},{type:"boolean"},{type:"number"},{type:"string"},{type:"null"},{not:{}}],title:"WebChartDataItemValue"},WebChartDataItem:{$ref:"#/definitions/Record%3Cstring%2CWebChartDataItemValue%3E",description:"JSON representation of a typical data item",title:"WebChartDataItem"},"Record<string,WebChartDataItemValue>":{type:"object",additionalProperties:{$ref:"#/definitions/WebChartDataItemValue"},title:"Record<string,WebChartDataItemValue>"},WebChartBoxPlotDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},outliers:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},meanLines:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}}},required:["dataItems"],description:"JSON representation of the processed data for a Box Plot",title:"WebChartBoxPlotDataItem"},ScatterplotTrendLineData:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2}},description:"JSON representation of the processed data for a Scatter plot trend line",title:"ScatterplotTrendLineData"},WebChartScatterPlotDataItem:{type:"object",properties:{r2:{type:"number"},trendLinePoints:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"},minItems:2,maxItems:2},dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}}},required:["dataItems"],description:"JSON representation of the processed data for a Scatter plot",title:"WebChartScatterPlotDataItem"},WebChartGenericDataItem:{type:"object",properties:{dataItems:{type:"array",items:{$ref:"#/definitions/WebChartDataItem"}},timeIntervalInfo:{$ref:"#/definitions/TimeIntervalInfo",description:"Time interval information, only for line charts"}},required:["dataItems"],description:"JSON representation of the generic data structure for bar, line bar-line, gauge and pie chart",title:"WebChartGenericDataItem"},WebChartBin:{type:"object",properties:{count:{type:"number"},minValue:{type:"number",description:"Min value in the bin"},maxValue:{type:"number",description:"Max value in the bin"},symbol:{$ref:"#/definitions/WebChartDataItem"}},required:["count","minValue","maxValue"],description:"JSON representation of a Histogram bin",title:"WebChartBin"},WebChartHistogramDataItem:{type:"object",properties:{mean:{type:"number"},median:{type:"number"},stddev:{type:"number"},max:{type:"number"},min:{type:"number"},sum:{type:"number",description:"Sum of the values of all the points"},count:{type:"number",description:"Number of all the points/features in un-binned data (including only non-null entries)"},nulls:{type:"number",description:"Number of null entries in the pool of points"},bins:{type:"array",items:{$ref:"#/definitions/WebChartBin"}}},required:["mean","median","stddev","max","min","bins"],description:"JSON representation of the processed data for a Histogram",title:"WebChartHistogramDataItem"},WebChartDataTypes:{anyOf:[{$ref:"#/definitions/WebChartBoxPlotDataItem"},{$ref:"#/definitions/WebChartGenericDataItem"},{$ref:"#/definitions/WebChartHistogramDataItem"},{$ref:"#/definitions/WebChartScatterPlotDataItem"}],title:"WebChartDataTypes"},WebChartTypes:{type:"string",enum:["chart","chartText","chartOverlay","chartOverlays","chartLegend","cursorCrosshair","chartAxis","gaugeAxisTick","gaugeNeedle","category","number","date","chartGuide","scatterSeries","pieSeries","pieTick","gaugeSeries","lineSeries","barSeries","histogramSeries","boxPlotSeries","radarSeries","comboLineAndBarSeries","buffer","sizeScale"],title:"WebChartTypes"},WebChartStatisticType:{type:"string",enum:["count","sum","min","max","avg","stddev","var","percentile-continuous","percentile-discrete","envelope-aggregate","centroid-aggregate","convex-hull-aggregate","no_aggregation"],title:"WebChartStatisticType"},WebChartColoringPatterns:{type:"string",enum:["singleColor","colorMatch"],title:"WebChartColoringPatterns"},WebChartBoxPlotMultipleSeriesKinds:{type:"string",enum:["sideBySide","meanLines"],title:"WebChartBoxPlotMultipleSeriesKinds"},WebChartLineSmoothedKinds:{type:"string",enum:["bezier","monotoneX","monotoneY"],description:"Represents the different types of smoothing that can be applied to a line chart when the `lineSmoothed` property is set to `true`.",title:"WebChartLineSmoothedKinds"},WebChartTemporalBinningTypes:{type:"string",enum:["fixedDateBased","calendarBased"],description:"Represents the different types of temporal binning that can be applied to a chart.",title:"WebChartTemporalBinningTypes"},WebChartCalendarBinningUnits:{type:"string",enum:["seconds","Minutes","hours","days","weeks","months","quarters","years"],description:"The temporal binning units for calendar based binning",title:"WebChartCalendarBinningUnits"},WebChartVersionStatus:{type:"string",enum:["same","newer","older","unrecognized"],title:"WebChartVersionStatus"},WebChartAxisTypes:{type:"string",enum:["value","date","category"],description:"Represents the different types of axes that can be used in a chart.",title:"WebChartAxisTypes"},RESTFieldType:{type:"string",enum:["esriFieldTypeBlob","esriFieldTypeDate","esriFieldTypeDouble","esriFieldTypeGeometry","esriFieldTypeGlobalID","esriFieldTypeGUID","esriFieldTypeInteger","esriFieldTypeOID","esriFieldTypeRaster","esriFieldTypeSingle","esriFieldTypeSmallInteger","esriFieldTypeString","esriFieldTypeXML"],title:"RESTFieldType"},RESTSimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"RESTSimpleLineSymbolStyle"},RESTSimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSX","esriSMSTriangle"],title:"RESTSimpleMarkerSymbolStyle"},RESTSimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"RESTSimpleFillSymbolStyle"},RESTHorizontalAlignment:{type:"string",enum:["left","right","center","justify"],title:"RESTHorizontalAlignment"},RESTVerticalAlignment:{type:"string",enum:["baseline","top","middle","bottom"],title:"RESTVerticalAlignment"},RESTSymbolType:{type:"string",enum:["esriSLS","esriSMS","esriSFS","esriPMS","esriPFS","esriTS"],title:"RESTSymbolType"},RESTFontStyle:{type:"string",enum:["italic","normal","oblique"],title:"RESTFontStyle"},RESTFontWeight:{type:"string",enum:["bold","bolder","lighter","normal"],title:"RESTFontWeight"},RESTFontDecoration:{type:"string",enum:["line-through","underline","none"],title:"RESTFontDecoration"},RESTRendererType:{type:"string",enum:["unique-value","simple","class-breaks","heatmap","dot-density","dictionary","pie-chart"],title:"RESTRendererType"},OverlayTerms:{type:"string",enum:["Mean","Median","Standard Deviation","Normal Distribution","Trendline"],title:"OverlayTerms"},CalculatedMinMaxBoundsPayload:{type:"object",properties:{isXAxis:{type:"boolean"},isSecondValueAxis:{type:"boolean"},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."}},required:["isXAxis"],description:"+ Represents a subset of the event payload carrying the chart's axes bounds. See event `arcgisChartsAxesMinMaxChange`.",title:"CalculatedMinMaxBoundsPayload"},ChartDeletePayload:{type:"object",properties:{chartId:{type:"string"}},required:["chartId"],description:"Represents the payload of the event sent when a chart is removed from the chart list (component arcgis-charts-config-view-charts).",title:"ChartDeletePayload"},LegendItemVisibility:{type:"object",properties:{visible:{type:"boolean"},seriesId:{type:"string"},overlayType:{$ref:"#/definitions/OverlayTerms"},sliceId:{type:"string"},sliceData:{$ref:"#/definitions/WebChartDataItem"}},required:["visible"],description:"Represents the payload of the event sent when an item is toggled in the chart's legend (slice or series).",title:"LegendItemVisibility"},IFeatureSet:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"},objectIdFieldName:{type:"string"},globalIdFieldName:{type:"string"},displayFieldName:{type:"string"},geometryType:{$ref:"#/definitions/GeometryType"},spatialReference:{$ref:"#/definitions/ISpatialReference"},fields:{type:"array",items:{$ref:"#/definitions/IField"}},features:{type:"array",items:{$ref:"#/definitions/IFeature"}},fieldAliases:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"}},required:["features"],description:'`IFeatureSet` can also be imported from the following packages:\n\n```js import { IFeatureSet } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureSet"},"Record<string,string>":{type:"object",additionalProperties:{type:"string"},title:"Record<string,string>"},ILocation:{type:"object",properties:{latitude:{type:"number"},longitude:{type:"number"},lat:{type:"number"},long:{type:"number"},z:{type:"number"}},description:'`ILocation` can also be imported from the following packages:\n\n```js import { ILocation } from "@esri/arcgis-rest-routing"; import { ILocation } from "@esri/arcgis-rest-geocoding"; ```',title:"ILocation"},IPolylineWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curvePaths:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curvePaths"],title:"IPolylineWithCurves"},ElipticArc:{$ref:"#/definitions/IArc",title:"ElipticArc"},SpatialRelationship:{type:"string",enum:["esriSpatialRelContains","esriSpatialRelCrosses","esriSpatialRelEnvelopeIntersects","esriSpatialRelIndexIntersects","esriSpatialRelIntersects","esriSpatialRelOverlaps","esriSpatialRelTouches","esriSpatialRelWithin"],description:'The spatial relationship used to compare input geometries\n\n`SpatialRelationship` can also be imported from the following packages:\n\n```js import { SpatialRelationship } from "@esri/arcgis-rest-feature-layer"; ```',title:"SpatialRelationship"},IMultipoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},points:{type:"array",items:{$ref:"#/definitions/Position"}}},required:["points"],description:"A multipoint contains an array of points.",title:"IMultipoint"},Units:{type:"string",enum:["esriSRUnit_Foot","esriSRUnit_Kilometer","esriSRUnit_Meter","esriSRUnit_NauticalMile","esriSRUnit_StatuteMile","esriSRUnit_USNauticalMile"],description:'`Units` can also be imported from the following packages:\n\n```js import { Units } from "@esri/arcgis-rest-feature-layer"; ```',title:"Units"},GroupMembership:{type:"string",enum:["admin","member","none","owner"],description:'`GroupMembership` can also be imported from the following packages:\n\n```js import { GroupMembership } from "@esri/arcgis-rest-portal"; ```',title:"GroupMembership"},IGroupAdd:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"}},required:["title","access"],description:'A [Group](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IGroupAdd` can also be imported from the following packages:\n\n```js import { IGroupAdd } from "@esri/arcgis-rest-portal"; ```',title:"IGroupAdd"},IGroup:{type:"object",properties:{title:{type:"string"},access:{type:"string",enum:["org","private","public"]},owner:{type:"string"},tags:{type:"array",items:{type:"string"}},description:{type:"string"},phone:{type:"string"},sortField:{type:"string",enum:["avgrating","created","modified","numviews","owner","title"]},sortOrder:{type:"string",enum:["asc","desc"]},isViewOnly:{type:"boolean"},isInvitationOnly:{type:"boolean"},thumbnail:{type:"string"},autoJoin:{type:"boolean"},snippet:{type:"string"},id:{type:"string"},created:{type:"number"},modified:{type:"number"},protected:{type:"boolean"},isOpenData:{type:"boolean"},isFav:{type:"boolean"},userMembership:{type:"object",properties:{username:{type:"string"},memberType:{$ref:"#/definitions/GroupMembership"},applications:{type:"number"}}},hasCategorySchema:{type:"boolean"}},required:["access","autoJoin","created","id","isFav","isInvitationOnly","isViewOnly","modified","owner","protected","tags","title"],description:'Existing Portal [Group](https://developers.arcgis.com/rest/users-groups-and-items/group.htm).\n\n`IGroup` can also be imported from the following packages:\n\n```js import { IGroup } from "@esri/arcgis-rest-portal"; ```',title:"IGroup"},IItemAdd:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}}},required:["title","type"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.\n\n`IItemAdd` can also be imported from the following packages:\n\n```js import { IItemAdd } from "@esri/arcgis-rest-portal"; ```',title:"IItemAdd"},IItemUpdate:{type:"object",properties:{id:{type:"string"}},required:["id"],description:'A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) to be updated.\n\n`IItemUpdate` can also be imported from the following packages:\n\n```js import { IItemUpdate } from "@esri/arcgis-rest-portal"; ```',title:"IItemUpdate"},IItem:{type:"object",properties:{title:{type:"string"},type:{type:"string"},owner:{type:"string"},typeKeywords:{type:"array",items:{type:"string"}},description:{type:"string"},snippet:{type:"string"},documentation:{type:"string"},extent:{type:"array",items:{type:"array",items:{type:"number"}}},categories:{type:"array",items:{type:"string"}},spatialReference:{$ref:"#/definitions/ISpatialReference"},culture:{type:"string"},properties:{},url:{type:"string"},tags:{type:"array",items:{type:"string"}},id:{type:"string"},created:{type:"number"},modified:{type:"number"},numViews:{type:"number"},size:{type:"number"},protected:{type:"boolean"}},required:["created","id","modified","numViews","owner","size","tags","title","type"],description:'Existing Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/item.htm).\n\n`IItem` can also be imported from the following packages:\n\n```js import { IItem } from "@esri/arcgis-rest-portal"; ```',title:"IItem"},IFolder:{type:"object",properties:{username:{type:"string"},id:{type:"string"},title:{type:"string"},created:{type:"number"}},required:["username","id","title"],description:'Used for organizing content. See [Create Folder](https://developers.arcgis.com/rest/users-groups-and-items/create-folder.htm) for more details.\n\n`IFolder` can also be imported from the following packages:\n\n```js import { IFolder } from "@esri/arcgis-rest-portal"; ```',title:"IFolder"},IFeatureServiceDefinition:{type:"object",properties:{currentVersion:{type:"number"},serviceDescription:{type:"string"},hasVersionedData:{type:"boolean"},supportsDisconnectedEditing:{type:"boolean"},supportsReturnDeleteResults:{type:"boolean"},hasStaticData:{type:"boolean",description:"Boolean value indicating whether data changes. True if it does not."},maxRecordCount:{type:"number",description:"Numeric value indicating tbe maximum number of records that will be returned at once for a query."},supportedQueryFormats:{type:"string",description:"String value indicating the output formats that are supported in a query."},supportsRelationshipsResource:{type:"boolean"},capabilities:{type:"string",description:"A comma separated list of supported capabilities, e.g. Query,Editing."},description:{type:"string",description:"String value of the layer as defined in the map service."},copyrightText:{type:"string",description:"String value for the copyright text information for the layer."},advancedEditingCapabilities:{$ref:"#/definitions/Record%3Cstring%2Cboolean%3E"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"An object containing the WKID or WKT identifying the spatial reference of the layer's geometry."},initialExtent:{$ref:"#/definitions/IExtent"},fullExtent:{$ref:"#/definitions/IExtent"},allowGeometryUpdates:{type:"boolean",description:"Boolean value indicating whether the geometry of the features in the layer can be edited."},units:{type:"string"},syncEnabled:{type:"boolean"},returnServiceEditsHaveSR:{type:"boolean"},validationSystemLayers:{type:"object",properties:{validationPointErrorlayerId:{type:"number"},validationLineErrorlayerId:{type:"number"},validationPolygonErrorlayerId:{type:"number"},validationObjectErrortableId:{type:"number"}},required:["validationPointErrorlayerId","validationLineErrorlayerId","validationPolygonErrorlayerId","validationObjectErrortableId"]},extractChangesCapabilities:{type:"object",properties:{supportsReturnIdsOnly:{type:"boolean"},supportsReturnExtentOnly:{type:"boolean"},supportsReturnAttachments:{type:"boolean"},supportsLayerQueries:{type:"boolean"},supportsSpatialFilter:{type:"boolean"},supportsReturnFeature:{type:"boolean"}},required:["supportsReturnIdsOnly","supportsReturnExtentOnly","supportsReturnAttachments","supportsLayerQueries","supportsSpatialFilter","supportsReturnFeature"]},syncCapabilities:{type:"object",properties:{supportsASync:{type:"boolean"},supportsRegisteringExistingData:{type:"boolean"},supportsSyncDirectionControl:{type:"boolean"},supportsPerLayerSync:{type:"boolean"},supportsPerReplicaSync:{type:"boolean"},supportsRollbackOnFailure:{type:"boolean"},supportedSyncDataOptions:{type:"number"}},required:["supportsASync","supportsRegisteringExistingData","supportsSyncDirectionControl","supportsPerLayerSync","supportsPerReplicaSync","supportsRollbackOnFailure","supportedSyncDataOptions"]},editorTrackingInfo:{type:"object",properties:{enableEditorTracking:{type:"boolean"},enableOwnershipAccessControl:{type:"boolean"},allowOthersToUpdate:{type:"boolean"},allowOthersToDelete:{type:"boolean"}},required:["enableEditorTracking","enableOwnershipAccessControl","allowOthersToUpdate","allowOthersToDelete"]},documentInfo:{$ref:"#/definitions/Record%3Cstring%2Cstring%3E"},layers:{type:"array",items:{$ref:"#/definitions/ILayerDefinition"}},tables:{type:"array",items:{$ref:"#/definitions/ITable"}},relationships:{type:"array",items:{type:"object",properties:{id:{type:"number"},name:{type:"string"},backwardPathLabel:{type:"string"},originLayerId:{type:"number"},originPrimaryKey:{type:"string"},forwardPathLabel:{type:"string"},destinationLayerId:{type:"number"},originForeignKey:{type:"string"},relationshipTableId:{type:"number"},destinationPrimaryKey:{type:"string"},destinationForeignKey:{type:"string"},rules:{type:"array",items:{type:"object",properties:{ruleID:{type:"number"},originSubtypeCode:{type:"number"},originMinimumCardinality:{type:"number"},originMaximumCardinality:{type:"number"},destinationSubtypeCode:{type:"number"},destinationMinimumCardinality:{type:"number"},destinationMaximumCardinality:{type:"number"}},required:["ruleID","originSubtypeCode","originMinimumCardinality","originMaximumCardinality","destinationSubtypeCode","destinationMinimumCardinality","destinationMaximumCardinality"]},minItems:1,maxItems:1},cardinality:{type:"string",enum:["esriRelCardinalityManyToMany","esriRelCardinalityOneToMany","esriRelCardinalityOneToOne"]},attributed:{type:"boolean"},composite:{type:"boolean"}},required:["id","name","backwardPathLabel","originLayerId","originPrimaryKey","forwardPathLabel","destinationLayerId","originForeignKey","relationshipTableId","destinationPrimaryKey","destinationForeignKey","rules","cardinality","attributed","composite"]},minItems:1,maxItems:1},enableZDefaults:{type:"boolean"},isLocationTrackingService:{type:"boolean"},isLocationTrackingView:{type:"boolean"},zDefault:{type:"number"}},required:["serviceDescription","hasVersionedData","supportsDisconnectedEditing","supportsReturnDeleteResults","maxRecordCount","supportedQueryFormats","supportsRelationshipsResource","capabilities","description","copyrightText","advancedEditingCapabilities","spatialReference","initialExtent","fullExtent","allowGeometryUpdates","units","syncEnabled","validationSystemLayers","extractChangesCapabilities","syncCapabilities","editorTrackingInfo","layers","tables","relationships","isLocationTrackingService","isLocationTrackingView"],description:'`IFeatureServiceDefinition` can also be imported from the following packages:\n\n```js import { IFeatureServiceDefinition } from "@esri/arcgis-rest-service-admin"; import { IFeatureServiceDefinition } from "@esri/arcgis-rest-feature-layer"; ```',title:"IFeatureServiceDefinition"},"Record<string,boolean>":{type:"object",additionalProperties:{type:"boolean"},title:"Record<string,boolean>"},ITable:{type:"object",properties:{name:{type:"string",description:"Table name"},capabilities:{type:"string",description:"A comma-separated string listing which editing operations are allowed on an editable feature service. Available operations include: 'Create', 'Delete', 'Query', 'Update', and 'Editing'."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Object indicating the definitionEditor used as a layer's interactive filter."},id:{type:"number",description:"Unique identifier for the table."},itemId:{type:"string",description:"Unique string value indicating an item registered in ArcGIS Online or your organization's portal."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining a definition expression for the table."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"An object defining the content of popup windows when you query a record and the sort option for child related records."},title:{type:"string",description:"String value for the title of the table."},url:{type:"string",description:"String value indicating the URL reference of the hosted table."}},description:'Root element in the web map specifying an array of table objects.\n\n`ITable` can also be imported from the following packages:\n\n```js import { ITable } from "@esri-arcgis-rest-service-admin" ```',title:"ITable"},IServiceInfo:{type:"object",properties:{adminServiceInfo:{type:"object",properties:{name:{type:"string"},type:{type:"string"},status:{type:"string"},database:{type:"object",properties:{datasource:{type:"object",properties:{name:{type:"string"}},required:["name"]}},required:["datasource"]}},required:["name","type","status","database"]},layers:{type:"array",items:{$ref:"#/definitions/Record%3Cstring%2Cunknown%3E"}}},required:["adminServiceInfo","layers"],description:"Very generic structure representing the return value from the /arcgis/rest/admin/services/<service-name>/FeatureServer?f=json response",title:"IServiceInfo"},"Record<string,unknown>":{type:"object",additionalProperties:{},title:"Record<string,unknown>"},IViewServiceSource:{type:"object",properties:{name:{type:"string"},type:{type:"string"},url:{type:"string"},serviceItemId:{type:"string"}},required:["name","type","url","serviceItemId"],description:"Individual View Source entry",title:"IViewServiceSource"},IViewServiceSources:{type:"object",properties:{currentVersion:{type:"number"},services:{type:"array",items:{$ref:"#/definitions/IViewServiceSource"}}},required:["currentVersion","services"],description:"Response from the /sources end-point of a view service",title:"IViewServiceSources"},IServiceNameAvailable:{type:"object",properties:{available:{type:"boolean"}},required:["available"],description:"Response from the portals/Self/isServiceNameAvailable request",title:"IServiceNameAvailable"},IPictureSourced:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},title:"IPictureSourced"},IPictureFillSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPFS"},style:{type:"string"},outline:{$ref:"#/definitions/ISimpleLineSymbol"},xscale:{type:"number"},yscale:{type:"number"}},required:["type"],title:"IPictureFillSymbol"},IPictureMarkerSymbol:{type:"object",properties:{url:{type:"string"},imageData:{type:"string"},contentType:{type:"string"},width:{type:"number"},height:{type:"number"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},type:{type:"string",const:"esriPMS"},style:{type:"string"}},required:["type"],title:"IPictureMarkerSymbol"},ITextSymbol:{type:"object",properties:{type:{type:"string",const:"esriTS"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string"}},required:["type"],title:"ITextSymbol"},IUser:{type:"object",properties:{username:{type:"string"},fullName:{type:"string"},availableCredits:{type:"number"},assignedCredits:{type:"number"},firstName:{type:"string"},lastName:{type:"string"},preferredView:{},description:{type:"string"},email:{type:"string"},idpUsername:{type:"string"},favGroupId:{type:"string"},lastLogin:{type:"number"},mfaEnabled:{type:"boolean"},access:{type:"string"},storageUsage:{type:"number"},storageQuota:{type:"number"},orgId:{type:"string"},cOrgId:{type:"string"},role:{type:"string",enum:["org_admin","org_publisher","org_user"]},privileges:{type:"array",items:{type:"string"}},roleId:{type:"string"},level:{type:"string"},disabled:{type:"boolean"},units:{type:"string"},tags:{type:"array",items:{type:"string"}},culture:{type:"string"},region:{type:"string"},thumbnail:{type:"string"},created:{type:"number"},modified:{type:"number"},groups:{type:"array",items:{$ref:"#/definitions/IGroup"}},provider:{type:"string",enum:["arcgis","enterprise","facebook","google"]}},description:'An ArcGIS Online or Enterprise user\n\n`IUser` can also be imported from the following packages:\n\n```js import { IUser } from "@esri/arcgis-rest-auth"; import { IUser } from "@esri/arcgis-rest-portal"; ```',title:"IUser"},IPagingParams:{type:"object",properties:{start:{type:"number"},num:{type:"number"}},description:'Params for paging operations\n\n`IPagingParams` can also be imported from the following packages:\n\n```js import { IPagingParams } from "@esri/arcgis-rest-portal"; ```',title:"IPagingParams"},IPagedResponse:{type:"object",properties:{start:{type:"number"},num:{type:"number"},total:{type:"number",description:"total number of object across all pages"},nextStart:{type:"number",description:"next entry index or -1 for the last page"}},required:["total","nextStart"],description:'Paging properties for paged responses.\n\n`IPagedResponse` can also be imported from the following packages:\n\n```js import { IPagedResponse } from "@esri/arcgis-rest-portal"; ```',title:"IPagedResponse"},IWebMapBackground:{type:"object",properties:{color:{$ref:"#/definitions/Color",description:"To define the color of the background of the map (which is shown when no data is shown)."}},required:["color"],description:"Defines the appearance for the background of the map.",examples:[{background:{color:[255,255,255,255]}}],title:"IWebMapBackground"},IBookmark:{type:"object",properties:{extent:{$ref:"#/definitions/IExtent",description:"An extent object containing a spatial reference, a lower left coordinate, and an upper right coordinate defining the rectangular area of the bookmark. The spatial reference must be the same as the map spatial reference. Documentation for the envelope is in the Geometry Objects topic of the ArcGIS REST API help."},name:{type:"string",description:"A string name for the bookmark."}},required:["extent","name"],description:"Predefined bookmarks for use by the application. A bookmark is a saved map extent that allows end users to quickly navigate to a particular area of interest.",title:"IBookmark"},IMapRangeInfo:{type:"object",properties:{activeRangeName:{type:"string",description:"Active range ID that slider/picker acts upon."},currentRangeExtent:{type:"array",items:{type:"number"},description:"Current range for the active range."},fullRangeExtent:{type:"array",items:{type:"number"},description:"Full range extent for the active range to be presented in the UI."}},description:"Map range information",examples:[{mapRangeInfo:{activeRangeName:"floors",currentRangeExtent:[-2,10],fullRangeExtent:[-2,100]}}],title:"IMapRangeInfo"},IMapLocation:{type:"object",properties:{centerPoint:{$ref:"#/definitions/IPoint",description:"The center of the map specified using X/Y coordinates."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"Well-known ID (WKID) or well-known text (WKT)."}},required:["centerPoint","spatialReference"],description:"Contains location information within a presentation slide.",title:"IMapLocation"},IVisibleLayer:{type:"object",properties:{featureVisibility:{type:"array",items:{type:"array",items:{}},description:"An array of arrays."},id:{type:"number",description:"The id of the layer as listed on the operational layer."},subLayerIds:{type:"array",items:{type:"number"},description:"An array of integers."}},description:"An array of numbers indicating layer visibility.",examples:[{visibleLayer:{featureVisibility:[[1],[],[],[0]],id:"73128eb3-05ee-46a7-8c22-0c385a0b1827"}}],title:"IVisibleLayer"},IVisiblePopup:{type:"object",properties:{anchorPoint:{$ref:"#/definitions/IPoint",description:"Object with spatialReference, x, and y."},featureId:{type:"number",description:"An integer specifying the feature's id."},layerId:{type:"string",description:"A string specifying the layer id."},subLayerId:{type:"number",description:"An integer specifying the sublayer id."}},description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId.",title:"IVisiblePopup"},ISlide:{type:"object",properties:{baseMap:{$ref:"#/definitions/IBaseMap",description:"Basemaps give the web map a geographic context."},extent:{$ref:"#/definitions/IExtent",description:"The standard Esri extent object with spatialReference, xmax, xmin, ymax and ymin."},hidden:{type:"boolean",description:"Indicates whether the slide should be hidden within the presentation."},mapLocation:{$ref:"#/definitions/IMapLocation",description:"An object with a centerPoint object and sometimes a resolution."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"An array of two numbers. The first one indicates start time and the second one indicates end time."},title:{type:"string",description:"Title including text and formatting for each slide."},visibleLayers:{$ref:"#/definitions/IVisibleLayer",description:"An array of objects used to indicate layer visibility."},visiblePopup:{$ref:"#/definitions/IVisiblePopup",description:"A presentation slide's visiblePopup which contains anchorPoint, featureId, layerId, and subLayerId."}},title:"ISlide"},IBaseMap:{type:"object",properties:{baseMapLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"An array of baseMapLayer objects defining the basemaps used in the web map."},title:{type:"string",description:"Required string title for the basemap that can be used in a table of contents. It takes the title of the first baseMapLayer in the array."}},required:["baseMapLayers","title"],description:"A basemap layer is a layer that provides geographic context to the map. A web map always contains a basemap. The basemap has a title and is the combination of each baseMapLayer. It is required that a baseMap be saved within the web map.",title:"IBaseMap"},IPresentation:{type:"object",properties:{displayTimeSlider:{type:"boolean",description:"Indicates whether to display the time slider (if accessible)."},showLegend:{type:"boolean",description:"Indicates whether to display a legend on all slides."},slideAdvancementInterval:{type:"number",description:"Number of seconds to show slide before proceeding to the next slide."},slides:{type:"array",items:{$ref:"#/definitions/ISlide"},description:"Array of slide objects."},useTimeExtentOfSlide:{type:"boolean",description:"Indicates whether to use the time extent (if applicable) of a slide."}},title:"IPresentation"},IWebmap:{type:"object",properties:{applicationProperties:{$ref:"#/definitions/IApplicationProperties",description:"Viewing and editing properties of the webmap"},authoringApp:{type:"string",description:"String value indicating the application which authored the webmap"},authoringAppVersion:{type:"string",description:"String value indicating the authoring App's version number"},background:{$ref:"#/definitions/IWebMapBackground",description:"Defines the appearance for the background of the map."},baseMap:{$ref:"#/definitions/IBaseMap",description:"[Required] Basemaps give the web map a geographic context"},bookmarks:{type:"array",items:{$ref:"#/definitions/IBookmark"},description:"A bookmark is a saved geographic extent that allows end users to quickly navigate to a particular area of interest"},mapRangeInfo:{$ref:"#/definitions/IMapRangeInfo",description:"Map Range Information"},operationalLayers:{type:"array",items:{$ref:"#/definitions/ILayer"},description:"Operational layers contain business data which are used to make thematic maps"},presentation:{description:"A presentation consists of multiple slides. Each slide has a different title, extent, basemap, layers etc"},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"[Required] An object used to specify the spatial reference of the given geometry."},tables:{type:"array",items:{$ref:"#/definitions/ITable"},description:"Root element in the web map specifying an array of table objects. (optional)"},version:{type:"string",description:"[Required] Root element in the web map specifying a string value indicating the web map version."},widgets:{description:"The widgets object contains widgets that should be exposed to the user"}},required:["baseMap","spatialReference","version"],description:"The web map data lists the basemap, operational layers, and bookmarks to be used in the web map. It also contains information about popup windows and layer styling overrides to be used in the web map. A version property allows you to supply the version of the web map JSON format being used.",title:"IWebmap"},IApplicationProperties:{type:"object",properties:{editing:{anyOf:[{$ref:"#/definitions/IEditingProperties"},{type:"null"}],description:"If locationTracking is set and enabled, the Collector application will update the feature service at the defined interval with the current location of the user logged into the Collector app."},offline:{anyOf:[{$ref:"#/definitions/IOfflineInfo"},{type:"null"}],description:"Use if working with offline maps."},viewing:{anyOf:[{$ref:"#/definitions/IViewingInfo"},{type:"null"}],description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default."}},description:"The applicationProperties object is one of the objects at the top level of the JSON web map JSON schema. This is responsible for containing the viewing and editing properties of the web map. There are specific objects within this object that are applicable only to Collector and are explained within the property descriptions.",title:"IApplicationProperties"},IEditingProperties:{type:"object",properties:{locationTracking:{$ref:"#/definitions/ILocationTracking",description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application."}},required:["locationTracking"],description:"An object containing all the editing properties within the web map.",title:"IEditingProperties"},ILocationTracking:{type:"object",properties:{enabled:{type:"boolean",description:"A boolean value indicating whether or not location tracking is enabled on the webmap."},info:{$ref:"#/definitions/ILocationTrackingInfo",description:"An object of additional information specifying layer and update interval time."}},required:["enabled","info"],description:"If locationTracking is set and enabled, the collector app will update the feature service at the defined interval with the current location of the user logged into the collector application.",title:"ILocationTracking"},ILocationTrackingInfo:{type:"object",properties:{layerId:{description:"A string value indicating the given layer id specified in the web map."},updateInterval:{description:"A numeric value indicating the time interval used to update the feature service. Default value is 300 seconds."}},required:["layerId"],description:"An object containing additional information specifying layer and update interval time used in the locationTracking object.",title:"ILocationTrackingInfo"},IOfflineInfo:{type:"object",properties:{editableLayers:{$ref:"#/definitions/IEditableLayers",description:"Object detailing the available offline editing options."},readonlyLayers:{$ref:"#/definitions/IReadOnlyLayers",description:"Object indicating what to do with attachments in read-only layers."}},required:["editableLayers","readonlyLayers"],description:"Use if working with offline maps.",title:"IOfflineInfo"},IEditableLayers:{type:"object",properties:{download:{type:"string",enum:["featuers","featuresAndAttachments","none"],description:"When editing layers, the edits are always sent to the server. This string value indicates which data is retrieved. For example, none indicates that only the schema is written since neither the features nor attachments are retrieved. For a full sync without downloading attachments, indicate features. Lastly, the default behavior is to have a full sync using featuresAndAttachments where both features and attachments are retrieved."},sync:{type:"string",enum:["syncFeaturesAndAttachments","syncFeaturesUploadAttachments","uploadFeaturesAndAttachments"],description:"This string value indicates how the data is synced."}},required:["download","sync"],description:"Object detailing the available offline editing options.",title:"IEditableLayers"},IReadOnlyLayers:{type:"object",properties:{downloadAttachments:{type:"boolean",description:"Indicates whether to include attachments with the read-only data."}},required:["downloadAttachments"],description:"Read-only layers as the features are always retrieved from the server.",title:"IReadOnlyLayers"},IViewingInfo:{type:"object",properties:{basemapGallery:{$ref:"#/definitions/IEnableable",description:"The basemap tool which will use the basemap group defined in the Portal."},measure:{$ref:"#/definitions/IEnableable",description:"Measure tool."},routing:{$ref:"#/definitions/IEnableable",description:"The route tool which will leverage the Portals defined route service."},search:{$ref:"#/definitions/ISearch",description:"An object specifying search parameters within the webmap."}},description:"An object containing all the viewing properties of the web map. If this is null or not defined, the client should assume a logical default.",title:"IViewingInfo"},IEnableable:{type:"object",properties:{enabled:{type:"boolean"}},required:["enabled"],title:"IEnableable"},ISearch:{type:"object",properties:{enabled:{type:"boolean"},disablePlaceFinder:{description:"A boolean value indicating whether or not to disable the place finder."},hintText:{description:"A string value used to indicate the hint provided with the search dialog."},layers:{description:"An array of layer objects defining the styling, geometry, and attribute information for the features."}},required:["enabled"],description:"An object specifying the search parameters set within the web map.",title:"ISearch"},IRange:{type:"object",properties:{interactionMode:{type:"string",enum:["picker","slider"],description:"Indicates the mode in which the active range should be presented to the user. Must be one of the following values: slider, picker"},numberOfStops:{description:"This is used to generate the activeRangeValues if activeRangeValues are not specified."},stopInterval:{type:"number",description:"Interval in which stops should be generated."}},description:"Range object.",title:"IRange"},IWidget:{type:"object",properties:{range:{$ref:"#/definitions/IRange",description:"Active range."},timeSlider:{$ref:"#/definitions/ITimeSliderProperties",description:"Time animation is controlled by a configurable time slider. The time slider widget will act upon all the time aware layers in the map."}},description:"The widgets object contains widgets that should be exposed to the user.",title:"IWidget"},ITimeSliderProperties:{type:"object",properties:{currentTimeExtent:{type:"array",items:{type:"number"},description:"An optional array of numbers indicating the slider's start to end time extent."},endTime:{type:"number",description:"The optional end of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},numberOfStops:{type:"number",description:"Number of stops within the timeSlider widget."},startTime:{type:"number",description:"The optional start of the time slider. If not specified, the slider defaults to the full time extent of all time-enabled layers."},thumbCount:{type:"number",description:"The default value for the thumbCount is 1."},thumbMovingRate:{type:"number",description:"Rate at which the time animation plays. Units are in milliseconds. Default is 1000."},timeStopInterval:{type:"number",description:"The interval which has been defined for the time slider."}},description:"Configurable properties used within the TimeSlider widget.",title:"ITimeSliderProperties"},ITimeSlider:{type:"object",properties:{properties:{$ref:"#/definitions/ITimeSliderProperties",description:"Configurable properties used within the TimeSlider widget."}},required:["properties"],description:"Time animation is controlled by a configurable time slider. Those configurations are saved to the web map as a timeSlider widget.",title:"ITimeSlider"},IBingLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",enum:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"],description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bingKey:{type:"string",description:"String value that unlocks the use of Bing layers in a web map."},canShareBingPublic:{type:"boolean",description:"Boolean value indicating whether the Bing key can be shared to the public."},portalUrl:{type:"string",description:"A string value representing the URL to the Portal/organization Self resource. Calls should be made to this property to retrieve the Bing key. If the key is not made accessible to the public or if canShareBingPublic is false, any web maps using Bing layers will not work."}},required:["id","layerType"],title:"IBingLayer"},IImageServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},bandIds:{type:"array",items:{type:"number"},description:"An array of bandIds that are visible, can specify bands to export or rearrange band order(from image service)."},compressionQuality:{description:"Controls how much loss the image will be subjected to by the compression algorithm (from image service)."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Boolean property indicating whether to ignore popups defined by the service item."},format:{type:"string",enum:["bmp","gif","jpg","jpgpng","png","png8","png24","png32","tiff"],description:"String value representing image format."},interpolation:{type:"string",enum:["RSP_BilinearInterpolation","RSP_CubicConvolution","RSP_Majority","RSP_NearestNeighbor"],description:"The algorithm used for interpolation."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},noData:{description:"The pixel value that represents no information."},noDataInterpretation:{type:"string",enum:["esriNoDataMatchAll","esriNoDataMatchAny"],description:"A string value of interpretation of noData setting. Default is 'esriNoDataMatchAny' when noData is a number, and 'esriNoDataMatchAll' when noData is an array."},pixelType:{type:"string",enum:["C64","C128","F32","F64","S8","S16","S32","U1","U2","U4","U8","U16","U32","UNKNOWN"],description:"Pertains to the type of values stored in the raster, such as signed integer, unsigned integer, or floating point."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},renderingRule:{description:"Specifies the rendering rule for how the requested image should be rendered."}},required:["id","layerType"],title:"IImageServiceLayer"},IImageVectorLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISImageServiceVectorLayer",description:"String indicating the layer type. Value of this property must be ArcGISImageServiceVectorLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{description:"Stores interactive filters."},disablePopup:{description:"Boolean property indicating whether to ignore popups defined by the service item."},isReference:{type:"boolean",description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layerDefinition:{description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},mosaicRule:{description:"Specifies the mosaic rule when defining how individual images should be mosaicked."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},symbolTileSize:{description:"Number describing the size of the tile."}},required:["id","layerType"],title:"IImageVectorLayer"},IChildLayer:{type:"object",properties:{defaultVisibility:{description:"Default visibility of the layers in the map service."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"An object that provides interactive filters."},featureSet:{$ref:"#/definitions/IFeatureSet",description:"A featureSet object containing the geometry and attributes of the features in the layer. Used with feature collections only."},field:{type:"array",items:{$ref:"#/definitions/IField"},description:"Information about each field in a layer. Used with feature collections."},id:{type:"string",description:"A string indicating the index position of the layer in the map service or feature collection."},layerDefinition:{description:"The layerDefinition object defines the attribute schema and drawing information for the layer."},layerUrl:{description:"A string URL to a service that should be used for all queries against the layer. Used with hosted tiled map services on ArcGIS Online when there is an associated feature service that allows for queries."},maxScale:{description:"Represents the maximum scale at which the layer definition will be applied."},minScale:{description:"Represents the minimum scale at which the layer definition will be applied."},nextObjectId:{description:"Iterates within a featureset. Number objectId value is incremented +1 based on last Object ID defined for the feature in a featureset. Used with feature collections."},parentLayerId:{description:"If working with nested layers, this is the numeric value indicating the layer id of the next layer (parent) directly above the current referenced layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the popup window content for the layer."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},subLayer:{description:"Array of numeric values indicating the layer index for layers nested directly under the parent layer."},subLayerIds:{description:"If the layer is a parent layer, it will have one or more sub layers included in an array."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."}},description:"A layer object may allow overrides on popup content and drawing behavior for individual layers of a web service. This object also contains geographic features and their attributes when used in a feature collection.",title:"IChildLayer"},IMapServiceLayer:{type:"object",properties:{timeAnimation:{type:"boolean",description:"This property is applicable to layers that support time. If 'true', timeAnimation is enabled."},id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining the styling, geometry, and attribute information for the features."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},thematicGroup:{$ref:"#/definitions/IThematicGroup",description:"(Optional) A thematicGroup object used in ArcGISMapServiceLayer layers."},visibleLayers:{type:"array",items:{type:"number"},description:"An array of sublayer ids that should appear visible. Used with map service layers that are not tiled."}},required:["id","layerType"],title:"IMapServiceLayer"},IThematicGroup:{type:"object",properties:{fieldNames:{type:"array",items:{type:"string"},description:"An array of string values indicating all the fields used within the webmap. All other fields can be disregarded and should not display in any field selection list."},layerIds:{type:"array",items:{type:"number"},description:"A zero-based array of integers indicating the layers to be used in the webmap. NOTE: All other layers should not be added to the TOC and may or may not be visible on the map as reference layers."},name:{type:"string",description:"String property indicating the name for the thematic grouping of layers."}},title:"IThematicGroup"},IDrawingInfo:{type:"object",properties:{fixedSymbols:{description:"Only used for feature collections with a renderer. The feature's symbol is defined by the layer's renderer."},labelingInfo:{description:"An object defining the properties used for labeling the layer."},renderer:{description:"An object defined which provides the symbology for the layer."},scaleSymbols:{description:"Boolean property indicating whether symbols should stay the same size in screen units as you zoom in. A value of true means the symbols stay the same size in screen units regardless of the map scale."},showLabels:{type:"boolean",description:"Defines whether labels should be shown or not. This is only valid for sublayers."},transparency:{type:"number",description:"Number value ranging between 0 (no transparency) to 100 (completely transparent)."}},title:"IDrawingInfo"},ITypeInfoDomain:{type:"object",properties:{type:{type:"string"}},required:["type"],title:"ITypeInfoDomain"},ITypeInfo:{type:"object",properties:{domains:{$ref:"#/definitions/Record%3Cstring%2CITypeInfoDomain%3E",description:"A comma-delimited series of domain objects for each domain in the type."},id:{type:["number","string"],description:"A unique string or numerical ID for the type."},name:{type:"string",description:"A user-friendly name for the type."},templates:{type:"array",items:{$ref:"#/definitions/ITemplate"},description:"Defined as a property of the layer definition when there are no types defined; otherwise, templates are defined as properties of the types."}},title:"ITypeInfo"},"Record<string,ITypeInfoDomain>":{type:"object",additionalProperties:{$ref:"#/definitions/ITypeInfoDomain"},title:"Record<string,ITypeInfoDomain>"},IOpenStreetMapLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"OpenStreetMap",description:"String indicating the layer type. Value of this property must be OpenStreetMap"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"OpenStreetMap",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."}},required:["id","layerType"],description:"Allows use of OpenStreetMap data for use in basemaps only.",title:"IOpenStreetMapLayer"},ITiledImageServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledImageServiceLayer",description:"String indicating the layer type. Value of this property must be ArcGISTiledImageServiceLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},isReference:{type:"boolean",description:"Applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"ITiledImageServiceLayer"},IExclusionArea:{type:"object",properties:{geometry:{$ref:"#/definitions/IGeometry",description:"The geometry defining the area where no data will be fetched. Only extent is supported."},maxScale:{type:"number",description:"The zoom level where the exclusion ends."},maxZoom:{type:"number",description:"The zoom level where the exclusion ends."},minScale:{type:"number",description:"The zoom level where the exclusion starts."},minZoom:{type:"number",description:"The zoom level where the exclusion starts."}},description:"Exclusion areas define extent areas where no data will be fetched for a layer.",title:"IExclusionArea"},ITiledMapServiceLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISTiledMapServiceLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},displayLevels:{anyOf:[{type:"array",items:{type:"number"}},{type:"number"}],description:"NOTE: Applicable if used as a baseMapLayer. Integer value(s) indicating the display levels of the basemap layer. Only applicable for TiledMapService layers. All tiled map service layers should share the same tiling scheme. This property cannot be set via the Map Viewer UI."},exclusionAreas:{type:"array",items:{$ref:"#/definitions/IExclusionArea"},description:"NOTE: Applicable if used as a baseMapLayer. An array of exclusionArea objects defining the layer exclusions."},isReference:{description:"This property is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},layers:{type:"array",items:{$ref:"#/definitions/IChildLayer"},description:"An array of layer objects defining a URL for queries and the popup window content."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"An ArcGIS Tiled Map Service layer displays map content from an ArcGIS Server Map service that has been cached (tiled).",title:"ITiledMapServiceLayer"},IVectorTileLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"VectorTileLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"VectorTileLayer",description:"Deprecated. User layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},styleUrl:{type:"string",description:"A url to a JSON file containing the stylesheet information used to render the layer. You may also pass an object containing the stylesheet information identical to the JSON file."}},required:["id","layerType"],description:"A vector tile layer references a set of web-accessible vector tiles and the corresponding style for how those tiles should be drawn.",title:"IVectorTileLayer"},ILod:{type:"object",properties:{level:{type:"number",description:"ID for each level."},levelValue:{type:"string",description:"String to be used when constructing URL to access a tile from this LOD."},resolution:{type:"number",description:"Resolution in map units of each pixel in a tile for each level."},scale:{type:"number",description:"Scale for each level."}},title:"ILod"},ITileInfo:{type:"object",properties:{cols:{description:"Requested tile's column."},compressionQuality:{description:"Compression quality of the tile."},dpi:{description:"The dpi of the tiling scheme."},format:{type:"string",enum:["bmp","emf","gif","jpg","lerc","mixed","pdf","png","png8","png24","png32","ps","svg","svgz"],description:"Image format of the cached tiles."},lods:{type:"array",items:{$ref:"#/definitions/ILod"},description:"An array of levels of detail that define the tiling scheme."},origin:{$ref:"#/definitions/IPoint",description:"The tiling scheme origin."},rows:{description:"Requested tile's row."},spatialReference:{$ref:"#/definitions/ISpatialReference",description:"The spatial reference of the tiling schema."}},description:"Tile information, returned from the WMTS OGC Web Service. The tileInfo will contain the spatial reference of the layer. tileInfo is the same json representation as the ArcGIS Map/Image service tileInfo except that it may contain a levelValue on the lod objects that should be used instead of the level in the templateUrl.",title:"ITileInfo"},IWebMapTileServiceInfo:{type:"object",properties:{customLayerParameters:{description:"A sequence of parameters used to append different custom parameters to a WMTS tile request. These parameters are applied to GetTile. The customLayerParameters property takes precedence if customParameters is also present."},customParameters:{description:"A sequence of parameters used to append custom parameters to all WMTS requests. These parameters are applied to GetCapabilities and GetTile. If used with the customLayerParameters property, customParameters will not take precedence."},layerIdentifier:{type:"string",description:"Identifier for the specific layer used in the WMTS service. Required input by the user."},tileMatrixSet:{description:"Tiling schema, set by the WMTS service."},url:{type:"string",description:"URL to the WMTS web service. Required input by the user."}},required:["layerIdentifier","url"],description:"Object defines and provides information about layers in a WMTSLayer service.",title:"IWebMapTileServiceInfo"},IWebTiledLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"WebTiledLayer",description:"String indicating the layer type. Value of this property must be WebTiledLayer"},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"WebTiledLayer",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},copyright:{description:"Attribution to the Web Tiled Layer provider. It is displayed in the attribution on the web map. Input required by the user when the layer is added to the web map."},fullExtent:{$ref:"#/definitions/IExtent",description:"An extent object representing the full extent envelope for the layer."},isReference:{description:"This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false)."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},subDomains:{description:"If subdomains are detected, they must be specified. The map viewer detects if the Web Tiled Layer has subdomains by parsing the templateURL value for {subDomain}."},templateUrl:{description:"URL to the Web Tiled Layer. Input required by the user when the layer is added to the web map. The template URL contains a parameterized URL. The URL can contain the following templated parameters: 'level', 'col', 'row', and 'subDomain'."},tileInfo:{$ref:"#/definitions/ITileInfo",description:"Contains the spatial reference and the tiling scheme of the layer. Typically retrieved from a WMTS OGC Web Service. If missing the layer must be in the WGS 1984 Web Mercator (Auxiliary Sphere) tiling scheme."},wmtsInfo:{$ref:"#/definitions/IWebMapTileServiceInfo",description:"Object containing information about the chosen WMTS service layer and tiling schema."}},required:["id","layerType"],title:"IWebTiledLayer"},ICsvLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"CSV",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"CSV",description:"Deprecated, use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},columnDelimiter:{type:"string",enum:[" ",",",";"," ","|"],description:"A string defining the character used to separate columns in a CSV file."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},locationInfo:{description:"A locationInfo object defining how location information will be retrieved from a CSV file."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of popup windows when you click or query a feature."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],description:"The CSV layer type references a CSV or TXT file from a publically-accessible web server. It then dynamically loads into the map at run time. The CSV layer will maintain a reference to the CSV resource.",title:"ICsvLayer"},IGeoRssLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"GeoRSS",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"GeoRSS",description:"Deprecated, please use layerType.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have lines, this property is not added to the layer JSON."},pointSymbol:{$ref:"#/definitions/IPictureMarkerSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have points, this property is not added to the layer JSON."},polygonSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Defined by the GeoRSS to JSON request service. If the GeoRSS feed does not have polygons, this property is not added to the layer JSON."},refreshInterval:{type:"number",description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."}},required:["id","layerType"],title:"IGeoRssLayer"},IKmlLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"KML",description:"String indicating the layer type."},maxScale:{description:"A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator."},minScale:{description:"A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator."},opacity:{description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{description:"Indicates whether to allow map authors the ability to control what layers should be shown in a client's legend."},title:{description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",const:"KML",description:"Deprecated, use layerType instead.",deprecated:"Use layerType instead."},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},refreshInterval:{description:"Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled."},visibleFolders:{type:"array",items:{type:"number"},description:"Array of numeric IDs of folders that will be made visible."}},required:["id","layerType"],title:"IKmlLayer"},IArcGisStreamLayer:{type:"object",properties:{id:{description:"A unique identifying string for the layer."},name:{type:"string",description:"Layer name"},itemId:{type:"string",description:"Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal."},layerType:{type:"string",const:"ArcGISStreamLayer",description:"String indicating the layer type."},maxScale:{type:"number",description:"Integer property used to determine the maximum scale at which the layer is displayed."},minScale:{type:"number",description:"Integer property used to determine the minimum scale at which the layer is displayed."},opacity:{type:"number",description:"The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency."},showLegend:{type:"boolean",description:"Boolean property indicating whether to display in the legend."},title:{type:"string",description:"A user-friendly string title for the layer that can be used in a table of contents."},type:{type:"string",description:"Deprecated, use layerType instead.",deprecated:!0},visibility:{type:"boolean",description:"Boolean property determining whether the layer is initially visible in the web map."},url:{type:"string",description:"The URL to the layer. Not applicable to all layer types."},definitionEditor:{$ref:"#/definitions/IDefinitionEditor",description:"Stores interactive filters."},disablePopup:{type:"boolean",description:"Indicates whether to ignore popups defined by the service item."},layerDefinition:{$ref:"#/definitions/ILayerDefinition",description:"A layerDefinition object defining the attribute schema and drawing information for the layer."},popupInfo:{$ref:"#/definitions/IPopupInfo",description:"A popupInfo object defining the content of pop-up windows when you click or query a feature."}},required:["id","layerType"],title:"IArcGisStreamLayer"}},$ref:"#/definitions/WebChart"};var ap=Td(_l(),1);var D={Arabic:"ar",ArabicLatin:"ar-u-nu-latn",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Czech:"cs",Danish:"da",German:"de",Greek:"el",English:"en",EnglishUSA:"en-US",Spanish:"es",Estonian:"et",Finnish:"fi",French:"fr",Hebrew:"he",Croatian:"hr",Hungarian:"hu",Indonesian:"id",Italian:"it",Japanese:"ja",Korean:"ko",Lithuanian:"lt",Latvian:"lv",NorwegianBokml:"no",Dutch:"nl",Polish:"pl",PortugueseBrazil:"pt-BR",PortuguesePortugal:"pt-PT",Romanian:"ro",Russian:"ru",Serbian:"sr",Slovenian:"sl",Slovak:"sk",Swedish:"sv",Thai:"th",Turkish:"tr",Ukrainian:"uk",Vietnamese:"vi",ChineseChina:"zh-CN",ChineseHongKong:"zh-HK",ChineseTaiwan:"zh-TW"},cb=[...Object.values(D),"en-AU","en-GB","es-ES","es-MX","de-CH","de-DE","de-AT","it-CH","it-IT"];function He(e,r){return $a(e)(r)}function ub(e){let r=/^([a-z]{2})-([A-Z]{2})$/u,i=e?.match(r),t=D.English;return i!=null&&i?.length>1?t=i[1]:e?.length===2&&e.toLowerCase()===e&&(t=e),t}function fb(e){let r=e;if(e!==void 0&&e.includes("-")){let[i,t]=e.split("-");r=`${i}-${t.toUpperCase()}`}return r}function Rl(e,r){let i=D.English,t=fb(e);if(t!==void 0)if(r.includes(t))i=t;else{let a=ub(t);r.includes(a)?i=a:a==="nb"&&(i="no")}return i}function kl(e,r){function i(t){let a;return t===void 0||t===document||t===window?a=null:a=t.closest(e)||i(t.getRootNode().host),a}return i(r)}function np(e=document.documentElement){let r=kl("[lang]",e)?.lang??window.navigator.language,i=Object.values(D),t=Object.values(cb),a=Rl(r,i),o=Rl(r,t);return o=o==="ar"?"ar-u-nu-latn":o,{locale:a,rtl:kl("[dir]",e)?.getAttribute("dir")==="rtl",formatLocale:o}}function gj(e){let r;return e==="unknown"?r="UTC":e!==void 0&&e!=="system"&&(r=e),r}function bj(e,r){let i={year:"numeric",month:"2-digit",day:"2-digit",timeZone:r};return new Intl.DateTimeFormat("en-CA",i).format(e)}function vj(e,r){let i={hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:r};return new Intl.DateTimeFormat("en-US",i).format(e)}function Sj(e,r){let[,i,,,,t]=1111.1.toLocaleString(r),a=e.replace(i,"").replace(t,".");return Number.parseFloat(a)}async function lt(e=np().locale){let r=await import("./WIPHSZ7J.js");switch(e){case D.Arabic:r=await import("./4FSQSTM7.js");break;case D.Bosnian:r=await import("./AYC2IHKF.js");break;case D.Bulgarian:r=await import("./5NUA5VTX.js");break;case D.Catalan:r=await import("./IOBQGE5A.js");break;case D.Czech:r=await import("./APUP5YTR.js");break;case D.Danish:r=await import("./VH3MA3BD.js");break;case D.German:r=await import("./UNZZFUPK.js");break;case D.Greek:r=await import("./IFJ3HDVY.js");break;case D.EnglishUSA:r=await import("./5B6E6LGF.js");break;case D.Spanish:r=await import("./DWWF6TG2.js");break;case D.Estonian:r=await import("./F6I3TM2F.js");break;case D.Finnish:r=await import("./HFC6B5AL.js");break;case D.French:r=await import("./3CIUHWDZ.js");break;case D.Hebrew:r=await import("./FIDAMWS7.js");break;case D.Croatian:r=await import("./UJD5F7GD.js");break;case D.Hungarian:r=await import("./JL7OURWJ.js");break;case D.Indonesian:r=await import("./SOCAMNMB.js");break;case D.Italian:r=await import("./U2OPL3MY.js");break;case D.Japanese:r=await import("./KDUY7J5C.js");break;case D.Korean:r=await import("./CUXH26AE.js");break;case D.Lithuanian:r=await import("./NKX547AQ.js");break;case D.Latvian:r=await import("./TEBPQGWM.js");break;case D.NorwegianBokml:r=await import("./FPQUHO3A.js");break;case D.Dutch:r=await import("./TDT4ITT2.js");break;case D.Polish:r=await import("./YJIQPSOM.js");break;case D.PortugueseBrazil:r=await import("./ES4IF5G5.js");break;case D.PortuguesePortugal:r=await import("./XMDXIPRW.js");break;case D.Romanian:r=await import("./DNJAHCJD.js");break;case D.Russian:r=await import("./R4ESHUAX.js");break;case D.Serbian:r=await import("./ISZGLQP4.js");break;case D.Slovak:r=await import("./D7WECG7P.js");break;case D.Slovenian:r=await import("./TL5IYFBD.js");break;case D.Swedish:r=await import("./IS5RG7YY.js");break;case D.Thai:r=await import("./RD75WUKO.js");break;case D.Turkish:r=await import("./F4Y3VJZ5.js");break;case D.Ukrainian:r=await import("./4CNY2RTW.js");break;case D.Vietnamese:r=await import("./DHSQAEBT.js");break;case D.ChineseChina:r=await import("./FCLFSURE.js");break;case D.ChineseHongKong:r=await import("./HLABWJCY.js");break;case D.ChineseTaiwan:r=await import("./3AAAZEPG.js");break;case D.English:}return r}var sp={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},G={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},wj=32,xj="arcgis_charts_features_extent",Xt={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:jo.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds"},hb=["EXPR_1","Expr1","expr1","EXPR1"],Ij=1,et=.7,mb=25,lp=[156,156,156,255],yb=[156,156,156,255],Cj=dr.Solid,Tj=2,Pj={defaultGroupOfSlicesId:"arcgis_charts_group_of_slices",sliceIdPrefix:"arcgis-charts-slice-id",undefinedSliceId:"arcgis-charts-slice-id-undefined",nullSliceId:"arcgis-charts-slice-id-null",emptySliceId:"arcgis-charts-slice-id-empty"},ro="arcgis_charts_box_plot_category",gb=[[31,120,180,255],[166,206,227,255],[51,160,44,255],[178,223,138,255],[227,26,28,255],[251,154,153,255],[255,127,0,255],[253,191,111,255],[106,61,154,255],[202,178,214,255]],bb=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]];function st(e){let{colorIndex:r,opacity:i,histogramOverlays:t}=e,a=Math.max(0,r??0),o=[...t===!0?bb:gb],[n,s,l,u]=o[a%o.length],d=i!==void 0?i*255:u;return[n,s,l,d]}function pp(e){return[0,0,0,(e??et)*255]}function Fj(){return{type:w.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:De.SLS,style:dr.Dot,color:[211,211,211,255],width:1}}}function pa(e=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),e*255]}function Y(e){let r={family:"Arial, Helvetica, sans-serif",size:10};switch(e){case G.ChartTitle:r.size=18;break;case G.AxisTitle:r.size=14;break;case G.LegendText:r.size=12;break;case G.LegendTitle:r.size=13;break;case G.DescriptionText:r.size=11;break}return r}function dp(e="",r=Y(),i){let t=ai.Center;return(i===G.DataLabels||i===G.GuideLabel)&&(t=void 0),{type:De.TS,color:pp(),text:e,font:r,horizontalAlignment:t}}function K(e){let{text:r,visible:i,font:t,type:a}=e??{text:"",visible:!0,font:Y()};return{type:w.Text,visible:i,content:dp(r,t,a)}}function Zr(e){let r=e?.useRandomColor??!1,i=e?.useRampColor,t=e?.width??1,a=e?.isHistogramOverlay,o=e?.color??pp(1);return r?o=pa():i!==void 0&&(a===!0?o=st({colorIndex:i.colorIndex,histogramOverlays:a}):o=st({colorIndex:i.colorIndex})),e?.opacity!==void 0&&(o[3]=e.opacity),{type:De.SLS,style:dr.Solid,color:o,width:t}}function vb(){return{type:w.CategoryAxisFormat,characterLimit:11}}function Aj(){return{type:w.DateAxisFormat,intlOptions:{}}}function Va(){return{type:w.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function Oj(){return{type:w.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function Ej(){return{type:w.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function Bl(e="Category Axis"){let r=K({text:e,visible:!0,font:Y(G.AxisTitle)});r.content.horizontalAlignment=ai.Center,r.content.verticalAlignment=xa.Middle;let i=K({text:e,visible:!0,font:Y(G.AxisLabels)});return{type:w.Axis,visible:!0,title:r,labels:i,valueFormat:vb(),lineSymbol:Zr({color:lp})}}function Ji(e="Value Axis"){let r=K({text:e,visible:!0,font:Y(G.AxisTitle)}),i=K({text:e,visible:!0,font:Y(G.AxisLabels)});return r.content.verticalAlignment=xa.Middle,r.content.horizontalAlignment=ai.Center,{type:w.Axis,visible:!0,title:r,labels:i,valueFormat:Va(),lineSymbol:Zr({color:lp})}}function er(){return{type:w.Legend,visible:!0,title:K({text:"",visible:!0,font:Y(G.LegendTitle)}),body:dp("",Y(G.LegendText)),position:Do.Right,maxHeight:Number.NaN}}function Wi(e){return{type:w.Overlay,visible:!0,created:!1,symbol:Zr({useRampColor:{colorIndex:e},isHistogramOverlay:!0})}}function tr(){return[255,255,255,255]}async function Bt(){return(await lt()).defaultTitle}function qt(){return`Chart ${Date.now()}`}function Lj(e,r=!1){return{type:De.SFS,style:cr.Solid,color:r?pa(et):st({colorIndex:e??0,opacity:et})}}function Sb(e=0){return{type:De.SMS,style:wa.Circle,color:st({colorIndex:e,opacity:et}),size:4}}function wb(e){return{type:De.SLS,style:dr.Solid,color:st({colorIndex:e,opacity:et}),width:2}}function xb(e=!1){return{type:De.SMS,style:wa.Circle,color:e?pa(et):st({colorIndex:0,opacity:et}),size:7}}function Dj(){return{type:w.SizePolicy,field:"",scaleType:Ro.Linear,minSize:5,maxSize:30}}function Ib(e=!1){return{type:w.Overlays,trendLine:{type:w.Overlay,created:!1,visible:!0,symbol:{type:De.SLS,style:dr.Solid,color:e?pa():st({colorIndex:1}),width:2}}}}function Cb(){return{type:w.ScatterSeries,id:w.ScatterSeries,name:w.ScatterSeries,x:"",y:"",markerSymbol:xb(),overlays:Ib(),dataLabels:K({text:"",visible:!1,font:Y(G.DataLabels)})}}async function $r(e){let r=await lt(),i=[],t=r.xAxis,a=r.statistics.count,o,n=Ji(a),s=Zr({opacity:mb});switch(n.grid=s,e){case w.BarSeries:{o=Bl(t);break}case w.ScatterSeries:{o=Ji(t),o.grid=s;break}case w.RadarSeries:case w.LineSeries:case w.HistogramSeries:{o=Ji(t);break}case w.BoxPlotSeries:{o=Bl("");break}}return o!==void 0&&i.push(o,n),i}function Tb(){return{type:w.GaugeNeedle,symbol:{type:De.SFS,color:[0,0,0,200]}}}async function Pb(){let e=await lt(),r=[],i=e.xAxis,t=Ji(i);return t.needle=Tb(),r.push(t),r}async function Fb(e){let r=e.objectIDField??"ObjectID",i=`${se.Count}_${r}_0`.toUpperCase(),t=(await lt()).countSeries;return{type:w.LineSeries,id:t,name:t,query:{outStatistics:[{statisticType:se.Count,onStatisticField:r,outStatisticFieldName:i}],groupByFieldsForStatistics:[]},x:"",y:i,lineSymbol:wb(e.seriesIndex),markerSymbol:Sb(e.seriesIndex),dataLabels:K({text:"",visible:!1,font:Y(G.DataLabels)}),temporalBinning:{type:Sa.FixedDateBased,unit:Le.Day,size:0,timeAggregationType:lr.Start,trimIncompleteTimeInterval:!0,nullPolicy:$o.Interpolate}}}async function jj(e){return{...await Fb(e),type:w.RadarSeries}}function Ab(e){return{type:De.SFS,style:cr.Solid,color:st({colorIndex:e,opacity:et})}}async function $j(e){let r=e.objectIDField??"ObjectID",i=`${se.Count}_${r}_0`.toUpperCase(),t=(await lt()).countSeries;return{type:w.BarSeries,id:t,name:t,query:{outStatistics:[{statisticType:se.Count,onStatisticField:r,outStatisticFieldName:i}],groupByFieldsForStatistics:[]},x:"",y:i,fillSymbol:Ab(e.seriesIndex),dataLabels:K({text:"",visible:!1,font:Y(G.DataLabels),type:G.DataLabels})}}async function _j(e){let r=(await lt()).countSeries;return{name:r,type:w.BoxPlotSeries,id:r,fillSymbol:{type:De.SFS,style:cr.Solid,color:st({colorIndex:e,opacity:et})},query:{},x:ro,y:""}}function Ob(){return{type:w.PieTick,visible:!0,lineSymbol:Zr({width:1,color:yb})}}function Eb(){return{type:De.SFS,style:cr.Solid}}async function Rj(e){let r=`${se.Count}_${e}_0`.toUpperCase(),i=(await lt()).countSeries;return{type:w.PieSeries,id:i,name:i,query:{outStatistics:[{statisticType:se.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:r}],groupByFieldsForStatistics:[]},x:"",y:r,fillSymbol:Eb(),dataLabels:K({text:"",visible:!1,font:Y(G.DataLabels),type:G.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...Va(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...Va(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:Ob()}}function kj(e){let r=e.objectIDField??"ObjectID",i=`${se.Count}_${r}_0`.toUpperCase(),t="Series0";return{type:w.GaugeSeries,id:t,name:t,query:{outStatistics:[{statisticType:se.Count,onStatisticField:r,outStatisticFieldName:i}]},x:""}}function Qr(){return!1}async function Bj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,rotated:Qr(),orderOptions:{data:{orderType:pr.Category,orderBy:at.Ascending}},title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),axes:await $r(w.BarSeries),series:[],legend:er()}}async function qj(e=qt()){return{version:yt,type:w.Chart,id:e,rotated:Qr(),colorMatch:!0,orderOptions:{data:{orderType:pr.Category,orderBy:at.Ascending}},title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),series:[],legend:er(),axes:await $r(w.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}async function Mj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,rotated:Qr(),orderOptions:{data:{orderType:pr.Category,orderBy:at.Ascending}},title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),axes:await $r(w.LineSeries),series:[],legend:er()}}async function Nj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:pr.Category,orderBy:at.Ascending}},title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),axes:await $r(w.RadarSeries),series:[],legend:er()}}async function Wj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:pr.YValue,orderBy:at.Descending}},title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),series:[],legend:{...er(),displayNumericValue:!1,displayPercentage:!0}}}async function zj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),series:[],axes:await Pb()}}async function Vj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),axes:await $r(w.ScatterSeries),series:[Cb()],legend:er()}}function Lb(){return{type:w.Overlays,mean:Wi(1),median:Wi(2),standardDeviation:Wi(3),comparisonDistribution:Wi(4)}}function Db(){return{type:De.SFS,style:cr.Solid,color:st({colorIndex:0,opacity:et})}}function jb(){return{type:w.HistogramSeries,id:w.HistogramSeries,name:w.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:Lb(),dataTransformationType:va.None,fillSymbol:Db(),dataLabels:K({text:"",visible:!1,font:Y(G.DataLabels)})}}async function Uj(e=qt()){return{version:yt,type:w.Chart,id:e,colorMatch:!0,title:K({text:await Bt(),visible:!0,font:Y(G.ChartTitle)}),subTitle:K(),footer:K({text:"",visible:!0,font:Y(G.DescriptionText)}),background:tr(),axes:await $r(w.HistogramSeries),series:[jb()],legend:er()}}var Ba={behaviorAfterLimit:sp.Reject,maxCategoryCount:Number.NaN,maxBarChartSeriesCount:100,maxBarUniqueSeriesCountTotal:1e4,maxBarTwoSeriesCountPerSeries:1e3,maxBarTwoSeriesCountTotal:2e3,maxBarThreePlusSeriesCountPerSeries:100,maxBarThreePlusSeriesCountTotal:2e3,maxScatterPointsBeforeAggregation:1e4,maxScatterPointsAfterAggregation:1e4,maxLineChartSeriesCount:100,maxLineUniqueSeriesCountTotal:1e4,maxLineTwoSeriesCountPerSeries:5e3,maxLineTwoSeriesCountTotal:1e4,maxLineThreePlusSeriesCountPerSeries:1e3,maxLineThreePlusSeriesCountTotal:1e4,maxPieChartSliceCountTotal:300,maxGaugeByFeaturesLimit:50,maxBoxPlotSeriesCount:100,maxBoxUniqueSeriesCountTotal:1e4,maxBoxTwoSeriesCountPerSeries:1e3,maxBoxTwoSeriesCountTotal:2e3,maxBoxThreePlusSeriesCountPerSeries:100,maxBoxThreePlusSeriesCountTotal:2e3,maxBoxPlotOutlierLimit:1e4};function $b(e){let r={...Ba};return e!==void 0&&Object.keys(Ba).forEach(i=>{let t=i;r[t]=e[t]??Ba[t]}),r}function Gj(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:200}}async function Hj(e){let r=await lt(),i;switch(e){case se.Average:{i=r.statistics.mean;break}case se.ContinuousPercentile:{i=r.statistics.median;break}case se.Sum:{i=r.statistics.sum;break}case se.Minimum:{i=r.statistics.minimum;break}case se.Maximum:{i=r.statistics.maximum;break}case se.Variance:{i=r.statistics.variance;break}case se.DiscretePercentile:{i=r.statistics.discretePercentile;break}case se.NoAggregation:{i=r.statistics.noAggregation;break}case se.Count:default:{i=r.statistics.count;break}}return i}async function Qj(e){let r=await lt(),i;switch(e){case lr.End:{i=r.timeAggregationTypes.end;break}case lr.Start:{i=r.timeAggregationTypes.start;break}default:i="";break}return i}function _b(){return Mr.Side}async function Kj(){return(await lt()).notAvailable}var Jj=0,Rb="_arcgis_charts_outliers",kb="_arcgis_charts_z_score",Zj=[210,210,210,255*et];var ea=function(){return ea=Object.assign||function(e){for(var r,i=1,t=arguments.length;i<t;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ea.apply(this,arguments)},Ua={exports:{}},ce={},Ga={exports:{}},rr={};function cp(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function Bb(e,r,i){}function qb(e,r,i){}var Mb=/javascript\s*\:/img;function Nb(e,r){return Mb.test(r)?"":r}rr.whiteList=cp();rr.getDefaultWhiteList=cp;rr.onAttr=Bb;rr.onIgnoreAttr=qb;rr.safeAttrValue=Nb;var Wb={indexOf:function(e,r){var i,t;if(Array.prototype.indexOf)return e.indexOf(r);for(i=0,t=e.length;i<t;i++)if(e[i]===r)return i;return-1},forEach:function(e,r,i){var t,a;if(Array.prototype.forEach)return e.forEach(r,i);for(t=0,a=e.length;t<a;t++)r.call(i,e[t],t,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Hr=Wb;function zb(e,r){e=Hr.trimRight(e),e[e.length-1]!==";"&&(e+=";");var i=e.length,t=!1,a=0,o=0,n="";function s(){if(!t){var d=Hr.trim(e.slice(a,o)),c=d.indexOf(":");if(c!==-1){var p=Hr.trim(d.slice(0,c)),h=Hr.trim(d.slice(c+1));if(p){var y=r(a,n.length,p,h,d);y&&(n+=y+"; ")}}}a=o+1}for(;o<i;o++){var l=e[o];if(l==="/"&&e[o+1]==="*"){var u=e.indexOf("*/",o+2);if(u===-1)break;o=u+1,a=o+1,t=!1}else l==="("?t=!0:l===")"?t=!1:l===";"?t||s():l===`
54
+ `&&s()}return Hr.trim(n)}var Vb=zb,zi=rr,Ub=Vb;function ql(e){return e==null}function Gb(e){var r={};for(var i in e)r[i]=e[i];return r}function up(e){e=Gb(e||{}),e.whiteList=e.whiteList||zi.whiteList,e.onAttr=e.onAttr||zi.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||zi.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||zi.safeAttrValue,this.options=e}up.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,i=r.options,t=i.whiteList,a=i.onAttr,o=i.onIgnoreAttr,n=i.safeAttrValue,s=Ub(e,function(l,u,d,c,p){var h=t[d],y=!1;if(h===!0?y=h:typeof h=="function"?y=h(c):h instanceof RegExp&&(y=h.test(c)),y!==!0&&(y=!1),c=n(d,c),!!c){var m={position:u,sourcePosition:l,source:p,isWhite:y};if(y){var v=a(d,c,m);return ql(v)?d+":"+c:v}else{var v=o(d,c,m);if(!ql(v))return v}}});return s};var Hb=up;(function(e,r){var i=rr,t=Hb;function a(n,s){var l=new t(s);return l.process(n)}r=e.exports=a,r.FilterCSS=t;for(var o in i)r[o]=i[o]})(Ga,Ga.exports);var io=Ga.exports,ao={indexOf:function(e,r){var i,t;if(Array.prototype.indexOf)return e.indexOf(r);for(i=0,t=e.length;i<t;i++)if(e[i]===r)return i;return-1},forEach:function(e,r,i){var t,a;if(Array.prototype.forEach)return e.forEach(r,i);for(t=0,a=e.length;t<a;t++)r.call(i,e[t],t,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var r=/\s|\n|\t/,i=r.exec(e);return i?i.index:-1}},Qb=io.FilterCSS,Kb=io.getDefaultWhiteList,ta=ao;function fp(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var hp=new Qb;function Jb(e,r,i){}function Zb(e,r,i){}function Xb(e,r,i){}function Yb(e,r,i){}function mp(e){return e.replace(tv,"&lt;").replace(rv,"&gt;")}function ev(e,r,i,t){if(i=wp(i),r==="href"||r==="src"){if(i=ta.trim(i),i==="#")return"#";if(!(i.substr(0,7)==="http://"||i.substr(0,8)==="https://"||i.substr(0,7)==="mailto:"||i.substr(0,4)==="tel:"||i.substr(0,11)==="data:image/"||i.substr(0,6)==="ftp://"||i.substr(0,2)==="./"||i.substr(0,3)==="../"||i[0]==="#"||i[0]==="/"))return""}else if(r==="background"){if(Vi.lastIndex=0,Vi.test(i))return""}else if(r==="style"){if(Ml.lastIndex=0,Ml.test(i)||(Nl.lastIndex=0,Nl.test(i)&&(Vi.lastIndex=0,Vi.test(i))))return"";t!==!1&&(t=t||hp,i=t.process(i))}return i=xp(i),i}var tv=/</g,rv=/>/g,iv=/"/g,av=/&quot;/g,ov=/&#([a-zA-Z0-9]*);?/gim,nv=/&colon;?/gim,sv=/&newline;?/gim,Vi=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Ml=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Nl=/u\s*r\s*l\s*\(.*/gi;function yp(e){return e.replace(iv,"&quot;")}function gp(e){return e.replace(av,'"')}function bp(e){return e.replace(ov,function(r,i){return i[0]==="x"||i[0]==="X"?String.fromCharCode(parseInt(i.substr(1),16)):String.fromCharCode(parseInt(i,10))})}function vp(e){return e.replace(nv,":").replace(sv," ")}function Sp(e){for(var r="",i=0,t=e.length;i<t;i++)r+=e.charCodeAt(i)<32?" ":e.charAt(i);return ta.trim(r)}function wp(e){return e=gp(e),e=bp(e),e=vp(e),e=Sp(e),e}function xp(e){return e=yp(e),e=mp(e),e}function lv(){return""}function pv(e,r){typeof r!="function"&&(r=function(){});var i=!Array.isArray(e);function t(n){return i?!0:ta.indexOf(e,n)!==-1}var a=[],o=!1;return{onIgnoreTag:function(n,s,l){if(t(n))if(l.isClosing){var u="[/removed]",d=l.position+u.length;return a.push([o!==!1?o:l.position,d]),o=!1,u}else return o||(o=l.position),"[removed]";else return r(n,s,l)},remove:function(n){var s="",l=0;return ta.forEach(a,function(u){s+=n.slice(l,u[0]),l=u[1]}),s+=n.slice(l),s}}}function dv(e){for(var r="",i=0;i<e.length;){var t=e.indexOf("<!--",i);if(t===-1){r+=e.slice(i);break}r+=e.slice(i,t);var a=e.indexOf("-->",t);if(a===-1)break;i=a+3}return r}function cv(e){var r=e.split("");return r=r.filter(function(i){var t=i.charCodeAt(0);return t===127?!1:t<=31?t===10||t===13:!0}),r.join("")}ce.whiteList=fp();ce.getDefaultWhiteList=fp;ce.onTag=Jb;ce.onIgnoreTag=Zb;ce.onTagAttr=Xb;ce.onIgnoreTagAttr=Yb;ce.safeAttrValue=ev;ce.escapeHtml=mp;ce.escapeQuote=yp;ce.unescapeQuote=gp;ce.escapeHtmlEntities=bp;ce.escapeDangerHtml5Entities=vp;ce.clearNonPrintableCharacter=Sp;ce.friendlyAttrValue=wp;ce.escapeAttrValue=xp;ce.onIgnoreTagStripAll=lv;ce.StripTagBody=pv;ce.stripCommentTag=dv;ce.stripBlankChar=cv;ce.cssFilter=hp;ce.getDefaultCSSWhiteList=Kb;var da={},_t=ao;function uv(e){var r=_t.spaceIndex(e),i;return r===-1?i=e.slice(1,-1):i=e.slice(1,r+1),i=_t.trim(i).toLowerCase(),i.slice(0,1)==="/"&&(i=i.slice(1)),i.slice(-1)==="/"&&(i=i.slice(0,-1)),i}function fv(e){return e.slice(0,2)==="</"}function hv(e,r,i){var t="",a=0,o=!1,n=!1,s=0,l=e.length,u="",d="";e:for(s=0;s<l;s++){var c=e.charAt(s);if(o===!1){if(c==="<"){o=s;continue}}else if(n===!1){if(c==="<"){t+=i(e.slice(a,s)),o=s,a=s;continue}if(c===">"){t+=i(e.slice(a,o)),d=e.slice(o,s+1),u=uv(d),t+=r(o,t.length,u,d,fv(d)),a=s+1,o=!1;continue}if(c==='"'||c==="'")for(var p=1,h=e.charAt(s-p);h.trim()===""||h==="=";){if(h==="="){n=c;continue e}h=e.charAt(s-++p)}}else if(c===n){n=!1;continue}}return a<e.length&&(t+=i(e.substr(a))),t}var mv=/[^a-zA-Z0-9\\_:.-]/gim;function yv(e,r){var i=0,t=0,a=[],o=!1,n=e.length;function s(p,h){if(p=_t.trim(p),p=p.replace(mv,"").toLowerCase(),!(p.length<1)){var y=r(p,h||"");y&&a.push(y)}}for(var l=0;l<n;l++){var u=e.charAt(l),d,c;if(o===!1&&u==="="){o=e.slice(i,l),i=l+1,t=e.charAt(i)==='"'||e.charAt(i)==="'"?i:bv(e,l+1);continue}if(o!==!1&&l===t){if(c=e.indexOf(u,l+1),c===-1)break;d=_t.trim(e.slice(t+1,c)),s(o,d),o=!1,l=c,i=l+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(c=gv(e,l),c===-1){d=_t.trim(e.slice(i,l)),s(d),o=!1,i=l+1;continue}else{l=c-1;continue}else if(c=vv(e,l-1),c===-1){d=_t.trim(e.slice(i,l)),d=Wl(d),s(o,d),o=!1,i=l+1;continue}else continue}return i<e.length&&(o===!1?s(e.slice(i)):s(o,Wl(_t.trim(e.slice(i))))),_t.trim(a.join(" "))}function gv(e,r){for(;r<e.length;r++){var i=e[r];if(i!==" ")return i==="="?r:-1}}function bv(e,r){for(;r<e.length;r++){var i=e[r];if(i!==" ")return i==="'"||i==='"'?r:-1}}function vv(e,r){for(;r>0;r--){var i=e[r];if(i!==" ")return i==="="?r:-1}}function Sv(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Wl(e){return Sv(e)?e.substr(1,e.length-2):e}da.parseTag=hv;da.parseAttr=yv;var wv=io.FilterCSS,Ye=ce,Ip=da,xv=Ip.parseTag,Iv=Ip.parseAttr,Zi=ao;function Ui(e){return e==null}function Cv(e){var r=Zi.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=Zi.trim(e.slice(r+1,-1));var i=e[e.length-1]==="/";return i&&(e=Zi.trim(e.slice(0,-1))),{html:e,closing:i}}function Tv(e){var r={};for(var i in e)r[i]=e[i];return r}function Pv(e){var r={};for(var i in e)Array.isArray(e[i])?r[i.toLowerCase()]=e[i].map(function(t){return t.toLowerCase()}):r[i.toLowerCase()]=e[i];return r}function Cp(e){e=Tv(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Ye.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Pv(e.whiteList||e.allowList):e.whiteList=Ye.whiteList,e.onTag=e.onTag||Ye.onTag,e.onTagAttr=e.onTagAttr||Ye.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Ye.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Ye.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Ye.safeAttrValue,e.escapeHtml=e.escapeHtml||Ye.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new wv(e.css))}Cp.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,i=r.options,t=i.whiteList,a=i.onTag,o=i.onIgnoreTag,n=i.onTagAttr,s=i.onIgnoreTagAttr,l=i.safeAttrValue,u=i.escapeHtml,d=r.cssFilter;i.stripBlankChar&&(e=Ye.stripBlankChar(e)),i.allowCommentTag||(e=Ye.stripCommentTag(e));var c=!1;i.stripIgnoreTagBody&&(c=Ye.StripTagBody(i.stripIgnoreTagBody,o),o=c.onIgnoreTag);var p=xv(e,function(h,y,m,v,x){var S={sourcePosition:h,position:y,isClosing:x,isWhite:Object.prototype.hasOwnProperty.call(t,m)},T=a(m,v,S);if(!Ui(T))return T;if(S.isWhite){if(S.isClosing)return"</"+m+">";var P=Cv(v),A=t[m],L=Iv(P.html,function(O,E){var _=Zi.indexOf(A,O)!==-1,R=n(m,O,E,_);return Ui(R)?_?(E=l(m,O,E,d),E?O+'="'+E+'"':O):(R=s(m,O,E,_),Ui(R)?void 0:R):R});return v="<"+m,L&&(v+=" "+L),P.closing&&(v+=" /"),v+=">",v}else return T=o(m,v,S),Ui(T)?u(v):T},u);return c&&(p=c.remove(p)),p};var Fv=Cp;(function(e,r){var i=ce,t=da,a=Fv;function o(s,l){var u=new a(l);return u.process(s)}r=e.exports=o,r.filterXSS=o,r.FilterXSS=a,function(){for(var s in i)r[s]=i[s];for(var l in t)r[l]=t[l]}();function n(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}n()&&(self.filterXSS=e.exports)})(Ua,Ua.exports);var Dr=Ua.exports,Av=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},Ov=function(){function e(r,i){var t=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=ea(ea({},Dr.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(o,n,s,l){return o==="a"&&n==="href"||(o==="img"||o==="source")&&n==="src"?t.sanitizeUrl(s):Dr.safeAttrValue(o,n,s,l)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var a;r&&!i?a=r:r&&i?(a=Object.create(this.arcgisFilterOptions),a.css={whiteList:this.arcgisCSSWhiteList},Object.keys(r).forEach(function(o){if(o==="whiteList")a.whiteList=t._extendObjectOfArrays([t.arcgisWhiteList,r.whiteList||{}]);else if(o==="css"){var n=r.css.whiteList;n!=null&&r.css instanceof Object&&Object.keys(n).forEach(function(s){return a.css.whiteList[s]=n[s]})}else a[o]=r[o]})):(a=Object.create(this.arcgisFilterOptions),a.whiteList=this.arcgisWhiteList,a.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=a,this._xssFilter=new Dr.FilterXSS(a)}return e.prototype.sanitize=function(r,i){switch(i===void 0&&(i={}),typeof r){case"number":return isNaN(r)||!isFinite(r)?null:r;case"boolean":return r;case"string":return this._xssFilter.process(r);case"object":return this._iterateOverObject(r,i);default:return i.allowUndefined&&typeof r>"u"?void 0:null}},e.prototype.sanitizeUrl=function(r,i){var t=(i??{}).isProtocolRequired,a=t===void 0?!0:t,o=this._trim(r.substring(0,r.indexOf(":"))),n=r==="/",s=/^#/.test(r),l=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return n||s||l?Dr.escapeAttrValue(r):!o&&!a?Dr.escapeAttrValue("https://".concat(r)):""},e.prototype.sanitizeHTMLAttribute=function(r,i,t,a){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(r,i,t,a):Dr.safeAttrValue(r,i,t,a)},e.prototype.validate=function(r,i){i===void 0&&(i={});var t=this.sanitize(r,i);return{isValid:r===t,sanitized:t}},e.prototype.encodeHTML=function(r){var i=this;return String(r).replace(/[&<>"'\/]/g,function(t){return i._entityMap[t]})},e.prototype.encodeAttrValue=function(r){var i=/^[a-zA-Z0-9]$/;return String(r).replace(/[\x00-\xFF]/g,function(t,a){return i.test(t)?t:"&#x".concat(Number(r.charCodeAt(a)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(r){var i={};return r.forEach(function(t){Object.keys(t).forEach(function(a){Array.isArray(t[a])&&Array.isArray(i[a])?i[a]=i[a].concat(t[a]):i[a]=t[a]})}),i},e.prototype._iterateOverObject=function(r,i){var t=this;i===void 0&&(i={});try{var a=!1,o=void 0;if(Array.isArray(r))o=r.reduce(function(s,l){var u=t.validate(l,i);return u.isValid?s.concat([l]):(a=!0,s.concat([u.sanitized]))},[]);else if(Av(r)){var n=Object.keys(r);o=n.reduce(function(s,l){var u=r[l],d=t.validate(u,i);return d.isValid?s[l]=u:(a=!0,s[l]=d.sanitized),s},{})}else return i.allowUndefined&&typeof r>"u"?void 0:null;return a?o:r}catch{return null}},e.prototype._trim=function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},e}(),k={NonSpecific:"nonSpecific",BarAndLineNoAggregation:"barAndLineNoAggregation",BarAndLineMonoField:"barAndLineMonoField",BarAndLineMultiFields:"barAndLineMultiFields",BarAndLineFromFields:"barAndLineFromFields",BarAndLineSplitBy:"barAndLineSplitBy",BarAndLineSplitByNoAggregation:"barAndLineSplitByNoAggregation",PieNoAggregation:"pieNoAggregation",PieFromCategory:"pieFromCategory",PieFromFields:"pieFromFields",BoxPlotMonoField:"boxPlotMonoField",BoxPlotMultiFields:"boxPlotMultiFields",BoxPlotMonoFieldAndCategory:"boxPlotMonoFieldAndCategory",BoxPlotMultiFieldsAndCategory:"boxPlotMultiFieldsAndCategory",BoxPlotMonoFieldAndSplitBy:"boxPlotMonoFieldAndSplitBy",BoxPlotMultiFieldsAndSplitBy:"boxPlotMultiFieldsAndSplitBy",BoxPlotMonoFieldAndCategoryAndSplitBy:"boxPlotMonoFieldAndCategoryAndSplitBy"},Xj={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function Yj(e){return e?.colorMatch??!1}function Ev(e){return e.size===2&&e.has(w.LineSeries)&&e.has(w.BarSeries)}function Lv(e){return e.size===2&&e.has(w.LineSeries)&&e.has(w.BoxPlotSeries)||e.size===1&&e.has(w.BoxPlotSeries)}function qe(e,r){let i;if(e!==void 0&&e.length>0)if(r!==void 0&&r>=0&&r<e.length)i=e[r].type;else{let t=new Set(e.map(n=>n.type)),a=Ev(t),o=Lv(t);a===!0?i=w.ComboLineAndBarSeries:o?i=w.BoxPlotSeries:t.size>=2?i=void 0:i=e[0].type}return i}function e$(e){let r=Qr();if(e!==void 0){let i=qe(e.series);(i===w.BarSeries||i===w.LineSeries||i===w.ComboLineAndBarSeries||i===w.BoxPlotSeries)&&(r=e.rotated??Qr())}return r}function t$(e){return e?.map(r=>r.type)??[]}function Dv(e){let r=e?.stackedType;if(r===void 0&&e!==void 0){let i=qe(e.series);(i===w.BarSeries||i===w.LineSeries||i===w.ComboLineAndBarSeries||i===w.RadarSeries)&&(r=_b())}return r}function jv(e){let r=e;return r=r.replace(/'/gu,"''"),r=r.replace(/[/\\"|[\]\\]/gu,"\\$&"),r}function $v(e){let r=!1;if(typeof e!="number"){let i=new Intl.Segmenter;r=Array.from(i.segment(e),t=>t.segment).some(t=>t.charCodeAt(0)>255)}return r}function _v(e){let r=e,i="";e.startsWith("'")&&e.endsWith("'")&&(r=e.slice(1,-1),i="'"),r=r.replace(/'/gu,"''");let t="";return $v(r)&&(t="N"),`${t}${i}${r}${i}`}function Tp(e){let{value:r,keepSurroundingQuotes:i,escape:t}=e,a=r?.trim();if(!gt(a)){let o="";a.startsWith("'")&&a.endsWith("'")&&(a=a.slice(1,-1),i&&(o="'")),t!==!1&&(a=jv(a)),a=`${o}${a}${o}`}return a}function r$(e){let{count:r,seriesCount:i,chartType:t,chartLimits:a}=e,{behaviorAfterLimit:o}=a??{},n=!0;if(o!==sp.RenderUpToTheLimit){let{maxBarChartSeriesCount:s,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:u,maxBarTwoSeriesCountTotal:d,maxBarThreePlusSeriesCountPerSeries:c,maxBarThreePlusSeriesCountTotal:p,maxLineChartSeriesCount:h,maxLineUniqueSeriesCountTotal:y,maxLineTwoSeriesCountPerSeries:m,maxLineTwoSeriesCountTotal:v,maxLineThreePlusSeriesCountPerSeries:x,maxLineThreePlusSeriesCountTotal:S,maxPieChartSliceCountTotal:T,maxGaugeByFeaturesLimit:P,maxBoxPlotSeriesCount:A,maxBoxUniqueSeriesCountTotal:L,maxBoxTwoSeriesCountTotal:O,maxBoxTwoSeriesCountPerSeries:E,maxBoxThreePlusSeriesCountTotal:_,maxBoxThreePlusSeriesCountPerSeries:R}=$b(a);switch(t){case w.BarSeries:case w.ComboLineAndBarSeries:{let j=r/i;i<=s?i===0?n=!0:i===1?n=r<=l:i===2?n=r<=d&&j<=u:i>2&&(n=r<=p&&j<=c):n=!1}break;case w.LineSeries:case w.RadarSeries:{let j=r/i;i<=h?i===0?n=!0:i===1?n=r<=y:i===2?n=r<=v&&j<=m:i>2&&(n=r<=S&&j<=x):n=!1}break;case w.PieSeries:n=r<=T;break;case w.BoxPlotSeries:{let j=r/i;i<=A?i===0?n=!0:i===1?n=r<=L:i===2?n=r<=O&&j<=E:i>2&&(n=r<=_&&j<=R):n=!1}break;case w.GaugeSeries:n=r<=P;break}}return n}function i$(e=[],r){let i=e.find(t=>t.name===r)?.alias;return i!==""?i??r:r}function a$(e=[],r){let i=e.find(t=>t.alias===r)?.name;return i!==""?i??r:r}function o$(e){let r=!1;switch(qe(e)){case w.PieSeries:r=!0;break;case w.BarSeries:case w.LineSeries:case w.RadarSeries:case w.ComboLineAndBarSeries:case w.BoxPlotSeries:r=e.length>1;break;case w.HistogramSeries:case w.ScatterSeries:{let i=e[0];r=i.overlays!==void 0&&Object.values(i.overlays).some(t=>t.created===!0);break}}return r}function Rv(e){let r=!0;return qe(e.series)===w.ScatterSeries&&(r=e.series.length===1),r}function kv(e){let r=!0;return qe(e.series)===w.HistogramSeries&&(r=e.series.length<=1&&e.series[0].type===w.HistogramSeries&&(!("dataTransformationType"in e.series[0])||e.series[0].dataTransformationType!==void 0&&Object.values(va).includes(e.series[0].dataTransformationType))),r}function Bv(e){let r=!0;return qe(e.series)===w.PieSeries&&(r=e.series.length<=1),r}function n$(e,r){let i=qe(r?.series),t=e.includes(i);if(t&&r!==void 0)switch(i){case w.HistogramSeries:t=kv(r);break;case w.ScatterSeries:t=Rv(r);break;case w.PieSeries:t=Bv(r);break}return t}function gt(e){return e==null||typeof e=="string"&&e.trim()===""}function qv(e,r){let i=r.find(t=>t in e);return{isInItem:i!==void 0,expr:i}}function s$(e){return qv(e,hb)}function l$(e,r){let i;switch(e){case Le.Second:i=r.seconds??"";break;case Le.Minute:i=r.minutes??"";break;case Le.Hour:i=r.hours??"";break;case Le.Day:i=r.days??"";break;case Le.Week:i=r.weeks??"";break;case Le.Month:i=r.months??"";break;case Le.Year:i=r.years??"";break;default:i="";break}return i}function p$(e){let r;switch(e){case ot.Mean:r=1;break;case ot.Median:r=2;break;case ot.StdDev:r=3;break;case ot.Normal:default:r=0;break}return r}function d$(e,r){if(r!==void 0){let{seriesId:i,overlayType:t,visible:a}=e.detail,o;switch(t){case ot.Mean:r.series[0].type===w.HistogramSeries&&(o=r.series[0].overlays?.mean);break;case ot.Median:r.series[0].type===w.HistogramSeries&&(o=r.series[0].overlays?.median);break;case ot.StdDev:r.series[0].type===w.HistogramSeries&&(o=r.series[0].overlays?.standardDeviation);break;case ot.Normal:r.series[0].type===w.HistogramSeries&&(o=r.series[0].overlays?.comparisonDistribution);break;case ot.Trendline:r.series[0].type===w.ScatterSeries&&(o=r.series[0].overlays?.trendLine);break;default:o=r.series.find(n=>n.id===i);break}o!==void 0&&(o.visible=a)}}function c$(e){return new Ov().sanitize(e)}function u$(e){return e!=null&&!Number.isNaN(e)&&Number.isFinite(e)}function f$(e,r){let i;return r!==void 0&&(i={...r,rotated:e}),i}function h$(e,r){let i={fieldToSort:""};if(!gt(e)){let t=e.trim(),a=t.split(" ").at(-1)?.toUpperCase();a===at.Ascending||a===at.Descending?i={fieldToSort:t.substring(0,t.lastIndexOf(" ")),orderBy:a}:(i={fieldToSort:t},r!==!1&&(i.orderBy=at.Ascending))}return i}function m$(e){return e===k.BarAndLineSplitBy||e===k.BarAndLineSplitByNoAggregation||e===k.BoxPlotMonoFieldAndSplitBy||e===k.BoxPlotMultiFieldsAndSplitBy||e===k.BoxPlotMonoFieldAndCategoryAndSplitBy}function y$(e){return e?.selectionOIDs===void 0||e.selectionOIDs.length===0}function g$(e={arrayA:[],arrayB:[],getKey:r=>r}){let{arrayA:r,arrayB:i,getKey:t}=e;if(i.length===0||r.length===0)return r;let a=new Map;i.forEach((l,u)=>{let d=t(l);a.set(d,u)});let o=[],n=[];r.forEach((l,u)=>{let d=t(l);a.has(d)&&(o.push(u),n.push(l))}),n.sort((l,u)=>{let d=t(l),c=t(u);return a.get(d)-a.get(c)});let s=[...r];return o.forEach((l,u)=>{s[l]=n[u]}),s}var Kt=["1.0.0","1.0.1","2.0.0","3.0.0","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2","3.10.0","3.11.0","4.0.0","4.0.1","5.0.0","6.0.0","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","7.0.0","7.1.0","7.1.1","7.2.0","7.2.1","7.3.1","7.4.0","7.4.1","7.5.0","7.5.1","7.6.0","8.0.0","8.0.1","9.0.0","9.1.0","9.2.0","9.3.0","9.4.0","9.5.0","9.6.0","9.6.1","9.7.0","10.0.0","11.0.0","12.0.0","13.0.0","14.0.0","14.0.1","15.0.0","16.0.0","16.1.0","16.1.1","17.0.0","17.1.0","17.2.0","17.2.1","18.0.0","18.1.0","18.1.1","18.1.2","18.1.3","19.0.0","20.0.0","20.1.0","20.2.0","21.0.0"],Mv="1.0.0",Nv="unrecognized.version",Wv=[w.LineSeries,w.BarSeries,w.ComboLineAndBarSeries,w.RadarSeries];function qa(e,r){let i=0;if(e!==r){let t=e.split("."),a=r.split(".");for(let o=0;o<t.length;o+=1){let n=Number.parseInt(t[o],10),s=Number.parseInt(a[o],10);if(n>s||Number.isNaN(s)){i=1;break}if(n<s){i=-1;break}}}return i}function zv(e){return e!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(e):!1}function Vv(e){let r=It.Same,i=[];if(zv(e)&&e!==void 0){Kt.sort(qa);let t=qa(e,Kt[Kt.length-1]);if(t===1?r=It.Newer:t===-1&&(r=It.Older),r===It.Newer||r===It.Same)i.push(e);else{for(let a=Kt.length-2;a>=0;a-=1)if(qa(e,Kt[a])>=0){i=Kt.slice(a,Kt.length);break}i.length===0&&i.push(Mv)}}else r=It.Unrecognized,i.push(Nv);return{versionStatus:r,versions:i}}function Uv(e){let{series:r}=e,i=("showMean"in e?e.showMean:!1)===!0?r.find(t=>t.type===w.LineSeries):r[0];return i??=r[0],i}function b$(e,r){let i=e!==null?e.toString():null,t=r!=null?r.toString():null;return t!==null&&t!==i?De.SFS:De.SLS}function oo(e,r){let i="";return e!==void 0&&e.includes("=")&&(i=r!==!1?Tp({value:e.split("=")[0]}):e.split("=")[0].trim()),i}function Xr(e){let{where:r,normalize:i,keepSurroundingQuotes:t,escape:a}=e,o="";return r!==void 0&&r.includes("=")&&(o=r.split("=").slice(1).join("=").trim(),o==="null"?o=null:o.trim()!==""&&!Number.isNaN(Number(o))?o=Number(o):i===!1?a===!0&&(o=_v(o)):o=Tp({value:o,keepSurroundingQuotes:t,escape:a})),o}function jr(e){let r=!1;if(e===void 0||e==="")r=!0;else if(e.includes("=")){let i=oo(e,!1),t=Xr({where:e,normalize:!1});r=i===`${t}`}return r}function v$(e){let{where:r,normalize:i,escape:t}=e,a=i===void 0?!0:i,o=oo(r),n=Xr({where:r,normalize:a,keepSurroundingQuotes:!0,escape:t}),s=r;return o!==""&&n!==""&&(s=`${o}=${n}`),s}function Gv(e){let r=k.PieFromCategory;return e[0].query?.outStatistics===void 0?r=k.PieNoAggregation:e[0].query?.groupByFieldsForStatistics===void 0&&(r=k.PieFromFields),r}function Hv(e){let r=k.BarAndLineMonoField,i=e[0].query?.where;return e[0].query?.groupByFieldsForStatistics===void 0&&(e[0].query?.outStatistics??[]).length>0?r=k.BarAndLineFromFields:i===void 0&&e[0].query?.outStatistics===void 0?r=k.BarAndLineNoAggregation:jr(i)?e.length>1&&(r=k.BarAndLineMultiFields):r=e[0].query?.outStatistics===void 0?k.BarAndLineSplitByNoAggregation:k.BarAndLineSplitBy,r}function Qv(e){let r=k.BoxPlotMonoField,i=e.length===1,t=e.find(s=>s.type===w.LineSeries)??e[0],{x:a}=t,o="y"in t?t.y:"",n=t.query?.where;switch(a){case ro:typeof o=="object"&&o.length>1?jr(n)?i&&(r=k.BoxPlotMultiFields):r=k.BoxPlotMultiFieldsAndSplitBy:i?r=k.BoxPlotMonoField:jr(n)||(r=k.BoxPlotMonoFieldAndSplitBy);break;default:i?r=k.BoxPlotMonoFieldAndCategory:jr(n)?r=k.BoxPlotMultiFieldsAndCategory:r=k.BoxPlotMonoFieldAndCategoryAndSplitBy;break}return r}function bt(e){let r=k.NonSpecific;if(e?.[0]!==void 0)switch(qe(e)){case w.PieSeries:r=Gv(e);break;case w.RadarSeries:case w.BarSeries:case w.LineSeries:case w.ComboLineAndBarSeries:r=Hv(e);break;case w.BoxPlotSeries:r=Qv(e);break}return r}function S$(e){let{seriesConfig:r,xAxisValueFormatType:i,setTimeBinningInfoWhenNotProvided:t}=e,a=!1;if((r.type===w.LineSeries||r.type===w.BarSeries||r.type===w.RadarSeries)&&r.binTemporalData!==!1&&i===w.DateAxisFormat){let o=bt([r]);if(r.temporalBinning&&o!==k.BarAndLineNoAggregation&&o!==k.BarAndLineSplitByNoAggregation){let{unit:n,size:s}=r.temporalBinning;a=t===!0||s!==void 0&&s>0&&n!==void 0}}return a}function w$(e){return Wv.includes(e.type)}var oe={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"};function Kv(e){let r=e===void 0||e==="";return{[oe.Average]:`${r?"":`${e}_`}${oe.Average}`,[oe.Min]:`${r?"":`${e}_`}${oe.Min}`,[oe.Max]:`${r?"":`${e}_`}${oe.Max}`,[oe.FirstQuartile]:`${r?"":`${e}_`}${oe.FirstQuartile}`,[oe.Median]:`${r?"":`${e}_`}${oe.Median}`,[oe.ThirdQuartile]:`${r?"":`${e}_`}${oe.ThirdQuartile}`,[oe.IQR]:`${r?"":`${e}_`}${oe.IQR}`,[oe.Outlier]:`${r?"":`${e}_`}${oe.Outlier}`,[oe.StandardDeviation]:`${r?"":`${e}_`}${oe.StandardDeviation}`}}function Jv(e){return e.subType===_o.FeatureGauge}function x$(e){let r;return e!==void 0&&("bins"in e?r=e.bins:"dataItems"in e&&(r=e.dataItems)),r}function Zv(e){return e===k.BoxPlotMultiFields||e===k.BoxPlotMultiFieldsAndCategory||e===k.BoxPlotMultiFieldsAndSplitBy}function ra(e){let{key:r,y:i,chartSubType:t,splitBy:a,splitByValue:o,showOutliers:n,standardizeValues:s}=e,l=o,u=Kv(i)[r];return n===!0&&(r===oe.Min||r===oe.Max)&&(u=`${u}${Rb}`),s===!0&&(Zv(t)||r===oe.Outlier)&&(u=`${u}${kb}`),(o===void 0||`${o}`.trim()==="")&&(l=Xr({where:a,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(u=`${l}${u!==""?`_${u}`:""}`),u}function Ma(e){let{dataItem:r,y:i,splitBy:t,showOutliers:a}=e,o=ra({key:oe.FirstQuartile,y:i,splitBy:t,showOutliers:a}),n=ra({key:oe.ThirdQuartile,y:i,splitBy:t,showOutliers:a});return Number.isFinite(r[o])||Number.isFinite(r[n])}function Xv(e){let{configSeries:r,boxPlotDataItem:i,yList:t,showOutliers:a}=e,o=bt(r),n=!1;switch(o){case k.BoxPlotMonoField:case k.BoxPlotMultiFields:case k.BoxPlotMonoFieldAndCategory:n=Ma({dataItem:i,showOutliers:a});break;case k.BoxPlotMultiFieldsAndCategory:n=t.some(s=>Ma({dataItem:i,y:s,showOutliers:a}));break;case k.BoxPlotMonoFieldAndSplitBy:case k.BoxPlotMultiFieldsAndSplitBy:case k.BoxPlotMonoFieldAndCategoryAndSplitBy:n=r.some(s=>Ma({dataItem:i,splitBy:s.query?.where,showOutliers:a}));break;default:n=!1;break}return n}function Pp(e){return e.map(r=>r.id).filter(r=>r!=="undefined")}function ia(e,r){let i=[],t=r??Pp(e),a=bt(e);return i=e.filter(o=>t.includes(o.id)).map(o=>{let n="y"in o?o.y:void 0;return n!==void 0&&a===k.BarAndLineSplitByNoAggregation&&(n=`${n.toString()}_${Xr({where:o.query?.where})}`),n}).filter(o=>o!==void 0),Array.from(new Set(i.flat()))}function Yv(e){let{seriesConfig:r,filteredSeriesIds:i,showMean:t}=e,a=[];if(t===!0){let o=r.find(n=>n.type===w.BoxPlotSeries);o!==void 0&&"y"in o&&(a=[o.y].flat())}else a=ia(r,i);return a}function Jt(e,r){return e===null&&r===!0||Number.isFinite(e)}function eS(e){let{dataItem:r,x:i,y:t,nullAsValid:a=!1}=e;return r[i]!==void 0&&(typeof r[i]!="number"||Number.isFinite(r[i]))&&Jt(r[t],a)}function I$(e){let{chartConfig:r,nullAsValid:i=!1,dataSet:t}=e,a=!0;if(r!==void 0){let o=qe(r.series);if(t===void 0||t.length===0)a=!0;else{let n=ia(r.series);a=!t.some(s=>{let l=!1;switch(o){case w.HistogramSeries:{let u=s;l=Jt(u.minValue,i)&&Jt(u.maxValue,i)}break;case w.ScatterSeries:{let u=s,{x:d,y:c}=r.series[0];l=Jt(u[d],i)&&Jt(u[c],i)}break;case w.ComboLineAndBarSeries:case w.RadarSeries:case w.LineSeries:case w.BarSeries:{let u=s,{x:d}=r.series[0];l=n.some(c=>eS({dataItem:u,x:d,y:c,nullAsValid:i}));break}case w.BoxPlotSeries:{let u=r.series,{showOutliers:d}=r;l=Xv({configSeries:u,boxPlotDataItem:s,yList:n,showOutliers:d});break}case w.PieSeries:{let u=s,{x:d,y:c}=r.series[0];bt(r.series)===k.PieFromFields&&(d=ni,c=Ia);let p=u[c];l=u[d]!==void 0&&u[d]!==null&&!Aa(p)&&Jt(Number(p),i)}break;case w.GaugeSeries:{let{x:u}=r.series[0];l=Jt(s[u],i)}break}return l})}}return a}function tS(e,r){let i=new Map,t=r??Pp(e);return e.forEach(a=>{if(t.includes(a.id)&&"y"in a){let o=i.get(a.type)??[];o.push(a.y),i.set(a.type,o)}}),i}function rS(e){let{seriesConfig:r,filteredSeriesIds:i,filteredData:t}=e,a=tS(r,i),o=r.find(l=>l.type===w.LineSeries||l.type===w.RadarSeries)?.stackNegativeValuesToBaseline??!0,n=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER;return t.forEach((l,u)=>{a.forEach(d=>{if(o){let c=[],p=[];for(let h=0;h<d.length;h+=1){let y=l[d[h]];y<0?p[u]=(p[u]??0)+y:c[u]=(c[u]??0)+y}c=c.filter(h=>Number.isFinite(h)).sort((h,y)=>h-y),p=p.filter(h=>Number.isFinite(h)).sort((h,y)=>h-y),n=Math.max(n,c.length>0?c[c.length-1]:p[p.length-1]),s=Math.min(s,p.length>0?p[0]:c[0])}else{let c=0;for(let p=0;p<d.length;p+=1){let h=l[d[p]];c+=h,n=Math.max(n,c),s=Math.min(s,c)}}})}),{stackedMinY:s,stackedMaxY:n}}function iS(e){let{dataItem:r,...i}=e,t=ra({key:oe.Min,...i}),a=ra({key:oe.Max,...i}),o=r[t],n=r[a];return{min:o,max:n}}function C$(e){let r=Number.NaN,i=Number.NaN,t,a,{chartConfig:o,chartData:n,filteredSeriesIds:s}=e,{series:l}=o;if(l?.length>0){let{x:u}=l[0],d=n.filter(c=>c[u]!==null);if([t,a]=Gr(d,c=>c[u]),o.axes?.[1]?.valueFormat.type===w.DateAxisFormat&&t!==void 0&&a!==void 0&&([t,a]=[new Date(t).valueOf(),new Date(a).valueOf()]),qe(o.series)===w.BoxPlotSeries){r=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;let c=ia(l,s),p=bt(l),h="standardizeValues"in o?o.standardizeValues===!0:void 0,y=o.series.map(m=>m.visible!==!1?Xr({where:m.query?.where}):"");y.length===0&&y.push(" ");for(let m=0;m<d.length;m+=1)for(let v=0;v<c.length;v+=1){let x=p===k.BoxPlotMultiFieldsAndCategory?c[v]:void 0;for(let S=0;S<y.length;S+=1){let{min:T,max:P}=iS({y:x,splitByValue:y[S],chartSubType:p,showOutliers:!1,standardizeValues:h,dataItem:d[m]});T!=null&&T<r&&(r=T),P!=null&&P>i&&(i=P)}}}else switch(Dv(o)){case Mr.Stacked100:{r=Number.NaN,i=Number.NaN;break}case Mr.Stacked:{let{stackedMinY:c,stackedMaxY:p}=rS({seriesConfig:l,filteredData:d,filteredSeriesIds:s});r=c,i=p;break}case Mr.Side:default:{r=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;let c=ia(l,s);for(let p=0;p<c.length;p+=1){let h=c[p],[y,m]=Gr(d,v=>v[h]);y!==void 0&&y<r&&(r=y),m!==void 0&&m>i&&(i=m)}break}}}return{minY:r,maxY:i,minX:t,maxX:a}}async function vt(e=np().locale){let r=await import("./FVS5JNXJ.js");switch(e){case D.Arabic:r=await import("./IRR2T4PA.js");break;case D.Bosnian:r=await import("./NVFTXBP4.js");break;case D.Bulgarian:r=await import("./PMMRZRYN.js");break;case D.Catalan:r=await import("./TQHVJ5NT.js");break;case D.Czech:r=await import("./7HPZXC7B.js");break;case D.Danish:r=await import("./OA6GWVVC.js");break;case D.German:r=await import("./2QHY3YDI.js");break;case D.Greek:r=await import("./N4I6MPNH.js");break;case D.EnglishUSA:r=await import("./5CLTQEJX.js");break;case D.Spanish:r=await import("./6KTKHQ2I.js");break;case D.Estonian:r=await import("./RQWMH75L.js");break;case D.Finnish:r=await import("./W3GPU2NH.js");break;case D.French:r=await import("./VBB5TXDX.js");break;case D.Hebrew:r=await import("./P7Z36PG4.js");break;case D.Croatian:r=await import("./WNKT5TJT.js");break;case D.Hungarian:r=await import("./XM2PALNU.js");break;case D.Indonesian:r=await import("./TUMTAR6Y.js");break;case D.Italian:r=await import("./TKSDHJSN.js");break;case D.Japanese:r=await import("./4QSYP77L.js");break;case D.Korean:r=await import("./OTG35F3S.js");break;case D.Lithuanian:r=await import("./VTFSSYKQ.js");break;case D.Latvian:r=await import("./MD76SALG.js");break;case D.NorwegianBokml:r=await import("./OXMLOJZE.js");break;case D.Dutch:r=await import("./RQNMGE7K.js");break;case D.Polish:r=await import("./CWRPZ5AX.js");break;case D.PortugueseBrazil:r=await import("./XFUEOWUO.js");break;case D.PortuguesePortugal:r=await import("./4TYUQ6LZ.js");break;case D.Romanian:r=await import("./O4EHLLLB.js");break;case D.Russian:r=await import("./HJWSAPG5.js");break;case D.Serbian:r=await import("./JE2IOFO5.js");break;case D.Slovak:r=await import("./PZPOZ23A.js");break;case D.Slovenian:r=await import("./W7VQGTCP.js");break;case D.Swedish:r=await import("./ZE37CLAX.js");break;case D.Thai:r=await import("./WRJHLGNE.js");break;case D.Turkish:r=await import("./KQOWNWKN.js");break;case D.Ukrainian:r=await import("./4Y25PHVL.js");break;case D.Vietnamese:r=await import("./PSCGFDJ7.js");break;case D.ChineseChina:r=await import("./5AV7JCUJ.js");break;case D.ChineseHongKong:r=await import("./4Q37PHPN.js");break;case D.ChineseTaiwan:r=await import("./GIJ4FWTA.js");break;case D.English:}return r}var Yt=class extends Error{constructor(r,i,t){super(i),this.name=r,this.details=t}},ir={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound"};function T$(e){return e!==void 0&&(!("url"in e)||!e.url)}function no(e){return e!==void 0&&"layer"in e}function aS(e){return e!==void 0&&"type"in e&&e.type==="feature"}function oS(e){return e!==void 0&&"type"in e&&e.type==="subtype-group"}function so(e){return e!==void 0&&"type"in e&&e.type==="subtype-sublayer"}function P$(e){return aS(e)||so(e)}function we(e){return so(e)?e.parent:e}function Fp(e){return e.capabilities?.query?.supportsDistance||we(e).sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function nS(e){return e.sourceJSON?.advancedQueryCapabilities?.supportsQueryBins}function sS(e){return we(Ae(e))?.sourceJSON?.advancedQueryCapabilities.supportedOperationsWithCacheHint.includes("queryBins")}function F$(e){let r=!1,i=we(Ae(e)).sourceJSON;if(i){let t=i.queryBinsCapabilities?.supportsFixedIntervalBin,a=i.queryBinsCapabilities?.supportedStatisticTypes,o=[se.Maximum,se.Count].every(n=>a?.includes(n.toUpperCase())||a?.includes(n.toLowerCase()));r=t&&o}return r}function A$(e){let r;return no(e)?r=e.layer:r=e,r}function Ae(e){let r;return no(e)?r=e.layer:r=e,r}function lS(e){let r=!1,i=we(e).sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],t=e.capabilities?.query.supportedSpatialAggregationStatistics??{};return r=i.includes("EnvelopeAggregate")||"envelope"in t&&t.envelope===!0,r}function O$(e){let{chartConfig:r,queryObject:i}=e,t,a=Ae(i);return a&&(t={id:a.id,layerType:"ArcGISFeatureLayer"},a.url&&(t.url=a.url)),{...r,iLayer:t}}var Kr=new Map;function pS(e){let r;switch(e){case Vt.Feet:r="esriSRUnit_Foot";break;case Vt.Miles:r="esriSRUnit_StatuteMile";break;case Vt.NauticalMiles:r="esriSRUnit_NauticalMile";break;case Vt.USNauticalMiles:r="esriSRUnit_USNauticalMile";break;case Vt.Meters:r="esriSRUnit_Meter";break;case Vt.Kilometers:r="esriSRUnit_Kilometer";break}return r}async function E$(e){let{queryObject:r,queryConfig:i,outputFormat:t,dataFormat:a,outAnalytics:o}=e,{where:n,geometry:s,distance:l,units:u,timeExtent:d}=i,c,p=Ae(r),h=we(p),y={query:{where:Jr([n,h.definitionExpression])}},m=lo(s)?.extent?.toJSON();if(m!==void 0){let x=pS(u),{xmin:S,ymin:T,xmax:P,ymax:A}=m;y.query={...y.query,geometryType:"esriGeometryEnvelope",geometry:`${S},${T},${P},${A}`,distance:l,units:x,inSR:s?.spatialReference?.wkid}}d&&(y.query.time=`${d[0]},${d[1]}`);let v=`${h.url}/${h.layerId}/queryAnalytic?f=${t}&dataFormat=${a}&outAnalytics=${o}`;try{c=(await Yi(v,y)).data?.features?.[0]?.attributes}catch(x){let S=await vt();throw new Yt(ir.QueryFeaturesError,S.queryError,x)}return c}function dS(e,r){return{lowerBoundaryAlias:`charts_lower_boundary_${e}`,upperBoundaryAlias:`charts_upper_boundary_${e}`,stackAlias:`charts_stack_alias_${r}`}}async function L$(e){let{queryObject:r,queryConfig:i,xStep:t,xMin:a,xMax:o,x:n,y:s,yStep:l,errorStrings:u}=e,d=[];if(Number.isFinite(t)&&Number.isFinite(l)&&Number.isFinite(a)&&Number.isFinite(o)&&t>0&&l>0){let c=Ae(r),p=we(c),h=dS(n,s),y={query:{cacheHint:sS(r),outStatistics:JSON.stringify(i.outStatistics),lowerBoundaryAlias:h.lowerBoundaryAlias,upperBoundaryAlias:h.upperBoundaryAlias,bin:JSON.stringify({type:"fixedIntervalBin",parameters:{interval:t,start:a,end:o},onField:n,stackBy:{value:`FLOOR(${s} / ${l})`,type:"Expression",valueType:We.Integer,outAlias:h.stackAlias}})}},m=`${p.url}/${p.layerId}/queryBins?f=json&dataFormat=json`;try{d=(await Yi(m,y)).data?.features}catch(v){throw new Yt(ir.QueryFeaturesError,u.errors.queryError,v)}}return d}async function D$(e){let{queryConfig:r,x:i,queryObject:t,chartSubType:a,isGaugeByFeature:o}=e,n=Ae(t),s;if(t!==void 0){let l=n.objectIdField,{where:u,gdbVersion:d,timeExtent:c,geometry:p,distance:h,units:y}=r,m=yS(c),v=lo(p),x=we(n),S=Jr([u,x.definitionExpression]),T={returnDistinctValues:!0,outFields:o===!0||a===k.PieNoAggregation||a===k.BarAndLineNoAggregation||a===k.BarAndLineSplitByNoAggregation?[l]:[i],where:S,gdbVersion:d??x.gdbVersion,timeExtent:m??x.timeExtent,geometry:v};Op(T)&&(T.cacheHint=!0),T.geometry!==void 0&&Fp(n)&&(h!==void 0&&(T.distance=h),y!==void 0&&(T.units=y));try{s=await t.queryFeatureCount(T)}catch{s=Number.NaN}}return s}async function j$(e){let{queryObject:r,queryConfig:i,abortKey:t}=e,{outStatistics:a}=i,o=new Map;if(r!==void 0&&a!==void 0&&a.length>0){let n=a.map(d=>{let{statisticType:c,onStatisticField:p,outStatisticFieldName:h}=d;return{statisticType:c,onStatisticField:p,outStatisticFieldName:h?.toUpperCase()}});i.outStatistics=n,delete i.num,delete i.orderByFields;let s=Dp({queryObject:r,queryConfig:i}),l;try{l=await r.queryFeatures(s,{signal:t!==void 0?Kr.get(t)?.signal:void 0})}catch(d){if(!to.isAbortError(d)){let c=await vt();throw new Yt(ir.QueryFeaturesError,c.queryError,d)}}let u=l?.features?.[0]?.attributes;u!==void 0&&a.forEach(d=>{let{outStatisticFieldName:c}=d;if(c!==void 0){let p=u[c.toLowerCase()]??u[c.toUpperCase()]??u[c];p!==void 0&&o.set(c,p)}})}return o}async function Ap(e){let{queryObject:r,queryConfig:i,returnUniqueIdsOnly:t,abortKey:a}=e,o=[],n=Ae(r);if(r!==void 0){let s=SS(n),l=Dp({queryObject:r,queryConfig:i,maxRecordCountFactor:s});try{t===!0?"queryObjectIds"in r?o=await r.queryObjectIds(l):(l.outFields=[n.objectIdField],o=(await r.queryFeatures(l,{signal:a!==void 0?Kr.get(a)?.signal:void 0})).features.map(u=>u.attributes[n.objectIdField])):o=(await r.queryFeatures(l,{signal:a!==void 0?Kr.get(a)?.signal:void 0})).features}catch(u){if(!to.isAbortError(u)){let d=await vt();throw new Yt(ir.QueryFeaturesError,d.queryError,u)}}}return o}async function cS(e){let r=[],{featureCount:i,maxRecords:t,queryConfig:a}=e,o=[],n=0,s=a?.start??0;for(;n<Xt.maxParallelRequests&&s<i;){let l={...e};l.queryConfig={...a,start:s,num:Math.min(t,i-s)},r.push(Ap(l)),s+=t,n+=1}return o=(await Promise.all(r)).flat(),o}async function uS(e){let{queryObject:r,queryConfig:i,returnUniqueIdsOnly:t,featureCount:a,noBatch:o,abortKey:n}=e,s=[],l=Ae(r);if(r!==void 0){let u=a??1,d=Ep(l);if(o!==!0&&u>d&&l.capabilities?.query.supportsPagination){let c=0,p=0,h=Math.ceil(u/d),y=Math.ceil(h/Xt.maxParallelRequests),m=[];for(;p<y;){c=p*Xt.maxParallelRequests*d;let v=cS({queryConfig:{...i,start:c},queryObject:r,maxRecords:d,featureCount:u,returnUniqueIdsOnly:t,abortKey:n});m.push(v),p+=1}s=(await Promise.all(m)).flat()}else(Number.isNaN(u)||u>=0)&&(s=await Ap({queryObject:r,queryConfig:i,returnUniqueIdsOnly:t,abortKey:n}))}return s}async function $$(e){let{queryObject:r,queryConfig:i,uniqueFeature:t,abortKey:a}=e,o={...i,returnDistinctValues:!0};return await uS({queryObject:r,abortKey:a,queryConfig:o,returnUniqueIdsOnly:!0,featureCount:t===!0?1:void 0})}function _$(e){if(e!==void 0){let r=Kr.get(e);r!==void 0&&r.abort(),Kr.set(e,new AbortController)}}function fS(e){return{lowerBoundaryAlias:`charts_lower_boundary_${e}`,upperBoundaryAlias:`charts_upper_boundary_${e}`}}async function R$(e){let{queryObject:r,dateField:i,splitByField:t,queryConfig:a,temporalBinning:o}=e,n=[];if(o){let{unit:s}=o;try{if(s){let l=we(Ae(r));if(nS(l)&&r&&"queryAttributeBins"in r){let u=vS({queryObject:r,queryConfig:a,temporalBinning:o,dateField:i,splitByField:t});n=(await r.queryAttributeBins(u)).features.map(d=>d.attributes)}}}catch(l){let u=await vt();throw new Yt(ir.QueryFeaturesError,u.queryError,l)}}return n}function Op(e){let r=!e.geometry||e.geometry.type==="extent",i=(e.where??"").toUpperCase(),t=!i.includes("CURRENT_TIMESTAMP")&&!i.includes("CURRENT_DATE")&&!i.includes("CURRENT_TIME");return r&&t}function Ep(e){let r=we(e)?.sourceJSON,i=r?.maxRecordCount??Xt.maxRecords;return r?.advancedQueryCapabilities?.supportsMaxRecordCountFactor&&r?.maxRecordCount!==void 0&&(i=r.maxRecordCount*Xt.maxRecordCountFactor),i}function Jr(e,r){let i,t=Array.from(new Set(e)).filter(a=>a!=null&&a!==""&&!jr(a));return t.sort((a,o)=>o.length-a.length),t.length===1?[i]=t:t?.forEach(a=>{a!==void 0&&(gt(i)?i=`(${a})`:i?.includes(`(${a})`)||(i=`${i} ${r??"AND"} (${a})`))}),i??"1=1"}function hS(e,r){let i=r;if(e!==void 0){let t=Ae(e),a=we(t).timeExtent;a?.start!=null&&a?.end!=null&&(i=[a.start.valueOf(),a.end.valueOf()])}return i}function mS(e){let{queryObject:r,defaultGeometry:i,ignoreViewExtent:t}=e,a=i;if(!t&&no(r)){let o=r.view.extent,{xmin:n,xmax:s,ymin:l,ymax:u,zmin:d,zmax:c,spatialReference:p}=o;a={xmin:n,ymin:l,zmin:d,xmax:s,ymax:u,zmax:c,spatialReference:p}}return a}function yS(e){let r;return e!==void 0&&(r=new op({start:new Date(e[0]),end:new Date(e[1])})),r}function lo(e){let r;return e!==void 0&&(r=eo.fromJSON(e)),r}function gS(e){return e===void 0?["*"]:Array.from(new Set(e))}function Lp(e){let{queryObject:r,queryConfig:i,queryType:t}=e,{where:a,outStatistics:o,geometry:n,distance:s,units:l,timeExtent:u,returnDistinctValues:d}=i??{},c=t==="Query"?new db({}):new pb({}),p=Ae(r),h=we(p),y=[a,h.definitionExpression];if(c.where=Jr(y),c.returnDistinctValues=d??!1,o!==void 0){let x=lS(p);c.outStatistics=o.filter(S=>S.statisticType!==se.EnvelopeAggregate||x).map(S=>lb.fromJSON(S))}let m=lo(n);m!==void 0&&(c.geometry=m,i?.spatialRelationship&&(c.spatialRelationship=i.spatialRelationship),Fp(p)&&(s!==void 0&&(c.distance=s),l!==void 0&&(c.units=l)));let v;return u&&(v=new op({start:u?.[0],end:u?.[1]})),v!==void 0?c.timeExtent=v:h.timeExtent!==void 0&&(c.timeExtent=h.timeExtent),Op(c)&&(c.cacheHint=!0),c}function bS(e){let r;switch(e){case lr.Start:r="first";break;case lr.End:r="last";break}return r}function vS(e){let{queryObject:r,queryConfig:i,temporalBinning:t,dateField:a,splitByField:o}=e,n=Lp({queryObject:r,queryConfig:i,queryType:"AttributeBinsQuery"}),{type:s,unit:l,size:u,trimIncompleteTimeInterval:d,timeAggregationType:c}=t,{start:p,end:h,offset:y,outTimeZone:m}=s===Sa.CalendarBased?t:{},v=fS(a);if(n.lowerBoundaryAlias=v.lowerBoundaryAlias,n.upperBoundaryAlias=v.upperBoundaryAlias,n.outTimeZone=m??Intl.DateTimeFormat().resolvedOptions().timeZone,n.binParameters={type:"date",field:a,interval:{unit:l,value:u},returnFullIntervalBin:d===!1,snapToData:bS(c),start:p,end:h,offset:y?{unit:y.unit,value:y.size}:null},!gt(o)){let x=Ae(r),S=we(x).fields.find(T=>T.name===o)?.type;(!S||S==="string"||S==="integer")&&(n.binParameters.splitBy={type:"field",value:o,valueType:S??"string"})}return n}function Dp(e){let{queryObject:r,queryConfig:i,maxRecordCountFactor:t}=e,{groupByFieldsForStatistics:a,orderByFields:o,gdbVersion:n,start:s,num:l,outFields:u}=i??{},d=Lp({queryObject:r,queryConfig:i,queryType:"Query"});d.returnGeometry=!1;let c=Ae(r),p=we(c);return d.outFields=gS(u),d.groupByFieldsForStatistics=a??d.groupByFieldsForStatistics,d.orderByFields=o??[],d.objectIds=i?.objectIds,t!==void 0&&(d.maxRecordCountFactor=t),n!==void 0&&n!==""?d.gdbVersion=n:p.gdbVersion!==void 0&&p.gdbVersion!==""&&(d.gdbVersion=p.gdbVersion),l!==void 0&&(d.num=l),s!==void 0&&(d.start=s,d.num=d.num??Ep(c)),d}function SS(e){return we(e)?.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?Xt.maxRecordCountFactor:void 0}function k$(e){let r,i,t;return e!==void 0&&(r=e.type,(r===oi.UniqueValue||r===oi.ClassBreaks)&&(i=e.field??void 0,r===oi.ClassBreaks&&(t=e.normalizationField??void 0))),{rendererType:r,rendererField:i,rendererNormalizationField:t}}var wS=(0,ap.default)(async e=>{let r=e.featureCollection,i,t;if(r?.layers?.[0]!==void 0){let n=r.layers[0];i=n.featureSet,t=n.layerDefinition}else t=e.layerDefinition;let a={};if(i!==void 0){if(a.source=ob.fromJSON(i).features,t?.fields!==void 0&&(a.fields=t.fields.map(n=>ab.fromJSON(n))),t?.objectIdField!==void 0&&(a.objectIdField=t.objectIdField),t?.geometryType!==void 0){let n=eo.fromJSON({geometryType:t.geometryType});n?.type!==void 0&&n?.type!=="extent"&&(a.geometryType=n.type)}t?.spatialReference!==void 0&&(a.spatialReference=t.spatialReference)}else a.id=e.id,t?.id!==void 0&&(a.layerId=t.id),e.url!==void 0&&(a.url=e.url),e.itemId!==void 0&&t?.id!==void 0&&(a.portalItem={id:e.itemId});if(t!==void 0){let n=t.drawingInfo;n?.renderer!==void 0&&(a.renderer=ip.fromJSON(n.renderer))}let o=new nb(a);return await o.load(),o});async function B$(e){let{layer:r,view:i,chartConfig:t}=e,a;if(r!==void 0){let o=Ae(r),n=we(o);if(i!==void 0&&!n.isTable){n.outFields=["*"];let s=u=>"highlight"in u,l=await i.whenLayerView(n);s(l)&&(a=l)}else a=r}else"iLayer"in t&&t.iLayer&&(a=await wS(t.iLayer));return a}async function po(e,r){let i=Ae(e),t=[];if(i!==void 0){await i.load();let a=r===!0&&i?.popupTemplate?.fieldInfos!==void 0;t=i.fields.map(o=>{let n=o.toJSON();if(a){let s=i.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===o.name.toLowerCase())?.label;s!==void 0&&s!==o.name&&(n.alias=s)}return n})}return t}function co(e,r=[]){return r.find(i=>i.name===e)}function q$(e){return e.find(r=>r.type===We.OID)?.name??""}function jp(e){return[We.Single,We.Double,We.SmallInteger,We.Integer].includes(e.type)}function M$(e){return e.type===We.Date}function N$(e){return[We.SmallInteger,We.Integer].includes(e.type)}function W$(e){return e.filter(r=>r.type===We.Date).map(r=>r.name)}function z$(e){return e.filter(r=>jp(r)).map(r=>r.name)}function xS(e){let{subtypeInfo:r,fieldName:i,fieldValueToMatch:t}=e,a,o=n=>`${n.id}`==`${t}`;return r?.subtypeField===i&&r.subtypes?a=r.subtypes.find(o)?.name:r?.typeIdField===i&&r.types&&(a=r.types.find(o)?.name),a}function zl(e,r){let i=[],t=oS(e)?e.subtypes:e[r];return t?.[0]!==void 0&&t.forEach(a=>{let{name:o,domains:n}=a,s="id"in a?a.id:void 0;!s&&"code"in a&&(s=a.code);let l=Object.entries(n??{}),u=[],d=l?.filter(([c,p])=>p?.type==="coded-value")?.map(([c,p])=>{let h={fieldName:c,name:o,codedValues:u};if(p&&"codedValues"in p){let y=p.codedValues.map(({code:m,name:v})=>({name:v,code:m}));h={fieldName:c,name:p.name,codedValues:y}}return h});i.push({id:s??"",name:o,domains:d})}),i.length===0?void 0:i}function V$(e){let r;if(e!==void 0){let i=Ae(e);if(!so(i)&&!gt(i?.typeIdField)){let t=zl(i,"types");t!==void 0&&(r={typeIdField:i.typeIdField??void 0,types:t})}if(!gt(i?.subtypeField)){let t=we(i),a=zl(t,"subtypes");a!==void 0&&(r={...r,subtypeField:t.subtypeField??void 0,subtypes:a})}}return r}function U$(e){let{fieldName:r,fieldValueToMatch:i,subtypeInfo:t,fieldList:a}=e,o;if((typeof i!="string"||!gt(i))&&!gt(r)&&(o=xS({subtypeInfo:t,fieldName:r,fieldValueToMatch:i}),o===void 0)){let n=co(r,a);if(t?.types!==void 0){let s=t?.types;for(let l of s){let u=l.domains?.filter(d=>d.fieldName===n?.name)??[];for(let d of u)if(o=d?.codedValues?.find(c=>`${c.code}`===i)?.name,o!==void 0)break;if(o!==void 0)break}}o===void 0&&n?.domain!==void 0&&n.domain.type==="codedValue"&&(o=n.domain.codedValues?.find(s=>`${s.code}`==`${i}`)?.name)}return o}async function G$(e){let r=[];return!we(e).isTable&&e.fieldsIndex&&(r=await rp.getRendererFields(e.renderer,e.fieldsIndex)),r}function IS(e){let r="/rest/services",i=e.toLowerCase(),t=i.indexOf(r);return i=t>-1?e.substring(0,t):e,`${i}/rest/info`}async function H$(e){let r=!0,i=".arcgis.com/",t=e.url,a=t?.includes(i);if(t&&a&&we(e).sourceJSON.serviceItemId!==void 0){let o=IS(t);try{let n=(await Yi(o,{query:{f:"json"}})).data;if(n.owningTenant!==void 0&&n.owningSystemUrl!==void 0){let s=`${n.owningSystemUrl}/sharing/rest/portals/${n.owningTenant}`,l=(await Yi(s,{authMode:"auto",query:{f:"json"}})).data,u=new sb({sourceJSON:l});await u.load(),r=u?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return r}async function CS(e){let{queryObject:r,fieldToMatch:i,returnUndefinedIfNotFound:t}=e,a=await po(r),o=a.find(s=>i===s.name);o||(o=a.find(s=>i.toUpperCase()===s.name.toUpperCase()));let n=t?"":i;return o?.name??n}async function Q$(e){let{fieldsList:r,queryObject:i,returnUndefinedIfNotFound:t}=e,a=r;return a!==void 0&&(a=await Promise.all(a.map(async o=>await CS({queryObject:i,fieldToMatch:o,returnUndefinedIfNotFound:t})))),a}function K$(e){let{queryObject:r,chartConfig:i,runtimeDataFilters:t,ignoreViewExtent:a}=e,{series:o,dataFilters:n}=i,{where:s,gdbVersion:l,timeExtent:u,geometry:d,distance:c,units:p,objectIds:h,spatialRelationship:y}=n??{},{where:m,gdbVersion:v,timeExtent:x,geometry:S,distance:T,units:P,objectIds:A,spatialRelationship:L}=t??{},O=o[0],{query:E}=O,{where:_}=E??{},R=bt(o),j={...E};return j.where=Jr([s,m]),R!==k.BarAndLineSplitBy&&R!==k.BoxPlotMonoFieldAndSplitBy&&R!==k.BoxPlotMonoFieldAndCategoryAndSplitBy&&R!==k.BoxPlotMultiFieldsAndSplitBy&&R!==k.BarAndLineSplitByNoAggregation&&(j.where=Jr([j.where,_])),i.orderOptions?.orderByFields!==void 0&&(j.orderByFields=i.orderOptions.orderByFields),j.gdbVersion=v??l,j.timeExtent=hS(r,x??u),j.geometry=mS({queryObject:r,defaultGeometry:S??d,ignoreViewExtent:a}),j.distance=T??c,j.units=P??p,j.objectIds=A??h,j.spatialRelationship=L??y,E?.outStatistics?.[0]?.statisticType===se.Count&&(j.returnDistinctValues=E?.returnDistinctValues??!1),j}var TS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function PS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ha={exports:{}};(function(e,r){(function(i,t){t(r)})(TS,function(i){function t(){for(var f=arguments.length,g=Array(f),b=0;b<f;b++)g[b]=arguments[b];if(g.length>1){g[0]=g[0].slice(0,-1);for(var I=g.length-1,C=1;C<I;++C)g[C]=g[C].slice(1,-1);return g[I]=g[I].slice(1),g.join("")}else return g[0]}function a(f){return"(?:"+f+")"}function o(f){return f===void 0?"undefined":f===null?"null":Object.prototype.toString.call(f).split(" ").pop().split("]").shift().toLowerCase()}function n(f){return f.toUpperCase()}function s(f){return f!=null?f instanceof Array?f:typeof f.length!="number"||f.split||f.setInterval||f.call?[f]:Array.prototype.slice.call(f):[]}function l(f,g){var b=f;if(g)for(var I in g)b[I]=g[I];return b}function u(f){var g="[A-Za-z]",b="[0-9]",I=t(b,"[A-Fa-f]"),C=a(a("%[EFef]"+I+"%"+I+I+"%"+I+I)+"|"+a("%[89A-Fa-f]"+I+"%"+I+I)+"|"+a("%"+I+I)),M="[\\:\\/\\?\\#\\[\\]\\@]",q="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Z=t(M,q),ve=f?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",ee=f?"[\\uE000-\\uF8FF]":"[]",Q=t(g,b,"[\\-\\.\\_\\~]",ve);a(g+t(g,b,"[\\+\\-\\.]")+"*"),a(a(C+"|"+t(Q,q,"[\\:]"))+"*");var ie=a(a("25[0-5]")+"|"+a("2[0-4]"+b)+"|"+a("1"+b+b)+"|"+a("0?[1-9]"+b)+"|0?0?"+b),ge=a(ie+"\\."+ie+"\\."+ie+"\\."+ie),N=a(I+"{1,4}"),Se=a(a(N+"\\:"+N)+"|"+ge),te=a(a(N+"\\:")+"{6}"+Se),Me=a("\\:\\:"+a(N+"\\:")+"{5}"+Se),sr=a(a(N)+"?\\:\\:"+a(N+"\\:")+"{4}"+Se),Qe=a(a(a(N+"\\:")+"{0,1}"+N)+"?\\:\\:"+a(N+"\\:")+"{3}"+Se),ct=a(a(a(N+"\\:")+"{0,2}"+N)+"?\\:\\:"+a(N+"\\:")+"{2}"+Se),Nt=a(a(a(N+"\\:")+"{0,3}"+N)+"?\\:\\:"+N+"\\:"+Se),Wt=a(a(a(N+"\\:")+"{0,4}"+N)+"?\\:\\:"+Se),Ne=a(a(a(N+"\\:")+"{0,5}"+N)+"?\\:\\:"+N),ut=a(a(a(N+"\\:")+"{0,6}"+N)+"?\\:\\:"),zt=a([te,Me,sr,Qe,ct,Nt,Wt,Ne,ut].join("|")),it=a(a(Q+"|"+C)+"+");a("[vV]"+I+"+\\."+t(Q,q,"[\\:]")+"+"),a(a(C+"|"+t(Q,q))+"*");var ei=a(C+"|"+t(Q,q,"[\\:\\@]"));return a(a(C+"|"+t(Q,q,"[\\@]"))+"+"),a(a(ei+"|"+t("[\\/\\?]",ee))+"*"),{NOT_SCHEME:new RegExp(t("[^]",g,b,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",Q,q),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",Q,q),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",Q,q),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",Q,q),"g"),NOT_QUERY:new RegExp(t("[^\\%]",Q,q,"[\\:\\@\\/\\?]",ee),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",Q,q,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",Q,q),"g"),UNRESERVED:new RegExp(Q,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",Q,Z),"g"),PCT_ENCODED:new RegExp(C,"g"),IPV4ADDRESS:new RegExp("^("+ge+")$"),IPV6ADDRESS:new RegExp("^\\[?("+zt+")"+a(a("\\%25|\\%(?!"+I+"{2})")+"("+it+")")+"?\\]?$")}}var d=u(!1),c=u(!0),p=function(){function f(g,b){var I=[],C=!0,M=!1,q=void 0;try{for(var Z=g[Symbol.iterator](),ve;!(C=(ve=Z.next()).done)&&(I.push(ve.value),!(b&&I.length===b));C=!0);}catch(ee){M=!0,q=ee}finally{try{!C&&Z.return&&Z.return()}finally{if(M)throw q}}return I}return function(g,b){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return f(g,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(f){if(Array.isArray(f)){for(var g=0,b=Array(f.length);g<f.length;g++)b[g]=f[g];return b}else return Array.from(f)},y=2147483647,m=36,v=1,x=26,S=38,T=700,P=72,A=128,L="-",O=/^xn--/,E=/[^\0-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=m-v,B=Math.floor,F=String.fromCharCode;function $(f){throw new RangeError(R[f])}function W(f,g){for(var b=[],I=f.length;I--;)b[I]=g(f[I]);return b}function U(f,g){var b=f.split("@"),I="";b.length>1&&(I=b[0]+"@",f=b[1]),f=f.replace(_,".");var C=f.split("."),M=W(C,g).join(".");return I+M}function H(f){for(var g=[],b=0,I=f.length;b<I;){var C=f.charCodeAt(b++);if(C>=55296&&C<=56319&&b<I){var M=f.charCodeAt(b++);(M&64512)==56320?g.push(((C&1023)<<10)+(M&1023)+65536):(g.push(C),b--)}else g.push(C)}return g}var V=function(f){return String.fromCodePoint.apply(String,h(f))},z=function(f){return f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:m},J=function(f,g){return f+22+75*(f<26)-((g!=0)<<5)},ue=function(f,g,b){var I=0;for(f=b?B(f/T):f>>1,f+=B(f/g);f>j*x>>1;I+=m)f=B(f/j);return B(I+(j+1)*f/(f+S))},xe=function(f){var g=[],b=f.length,I=0,C=A,M=P,q=f.lastIndexOf(L);q<0&&(q=0);for(var Z=0;Z<q;++Z)f.charCodeAt(Z)>=128&&$("not-basic"),g.push(f.charCodeAt(Z));for(var ve=q>0?q+1:0;ve<b;){for(var ee=I,Q=1,ie=m;;ie+=m){ve>=b&&$("invalid-input");var ge=z(f.charCodeAt(ve++));(ge>=m||ge>B((y-I)/Q))&&$("overflow"),I+=ge*Q;var N=ie<=M?v:ie>=M+x?x:ie-M;if(ge<N)break;var Se=m-N;Q>B(y/Se)&&$("overflow"),Q*=Se}var te=g.length+1;M=ue(I-ee,te,ee==0),B(I/te)>y-C&&$("overflow"),C+=B(I/te),I%=te,g.splice(I++,0,C)}return String.fromCodePoint.apply(String,g)},ye=function(f){var g=[];f=H(f);var b=f.length,I=A,C=0,M=P,q=!0,Z=!1,ve=void 0;try{for(var ee=f[Symbol.iterator](),Q;!(q=(Q=ee.next()).done);q=!0){var ie=Q.value;ie<128&&g.push(F(ie))}}catch(qr){Z=!0,ve=qr}finally{try{!q&&ee.return&&ee.return()}finally{if(Z)throw ve}}var ge=g.length,N=ge;for(ge&&g.push(L);N<b;){var Se=y,te=!0,Me=!1,sr=void 0;try{for(var Qe=f[Symbol.iterator](),ct;!(te=(ct=Qe.next()).done);te=!0){var Nt=ct.value;Nt>=I&&Nt<Se&&(Se=Nt)}}catch(qr){Me=!0,sr=qr}finally{try{!te&&Qe.return&&Qe.return()}finally{if(Me)throw sr}}var Wt=N+1;Se-I>B((y-C)/Wt)&&$("overflow"),C+=(Se-I)*Wt,I=Se;var Ne=!0,ut=!1,zt=void 0;try{for(var it=f[Symbol.iterator](),ei;!(Ne=(ei=it.next()).done);Ne=!0){var Oo=ei.value;if(Oo<I&&++C>y&&$("overflow"),Oo==I){for(var ti=C,ri=m;;ri+=m){var ii=ri<=M?v:ri>=M+x?x:ri-M;if(ti<ii)break;var Eo=ti-ii,Lo=m-ii;g.push(F(J(ii+Eo%Lo,0))),ti=B(Eo/Lo)}g.push(F(J(ti,0))),M=ue(C,Wt,N==ge),C=0,++N}}}catch(qr){ut=!0,zt=qr}finally{try{!Ne&&it.return&&it.return()}finally{if(ut)throw zt}}++C,++I}return g.join("")},Oe=function(f){return U(f,function(g){return O.test(g)?xe(g.slice(4).toLowerCase()):g})},tt=function(f){return U(f,function(g){return E.test(g)?"xn--"+ye(g):g})},Pe={version:"2.1.0",ucs2:{decode:H,encode:V},decode:xe,encode:ye,toASCII:tt,toUnicode:Oe},Fe={};function Ee(f){var g=f.charCodeAt(0),b=void 0;return g<16?b="%0"+g.toString(16).toUpperCase():g<128?b="%"+g.toString(16).toUpperCase():g<2048?b="%"+(g>>6|192).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase():b="%"+(g>>12|224).toString(16).toUpperCase()+"%"+(g>>6&63|128).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase(),b}function pe(f){for(var g="",b=0,I=f.length;b<I;){var C=parseInt(f.substr(b+1,2),16);if(C<128)g+=String.fromCharCode(C),b+=3;else if(C>=194&&C<224){if(I-b>=6){var M=parseInt(f.substr(b+4,2),16);g+=String.fromCharCode((C&31)<<6|M&63)}else g+=f.substr(b,6);b+=6}else if(C>=224){if(I-b>=9){var q=parseInt(f.substr(b+4,2),16),Z=parseInt(f.substr(b+7,2),16);g+=String.fromCharCode((C&15)<<12|(q&63)<<6|Z&63)}else g+=f.substr(b,9);b+=9}else g+=f.substr(b,3),b+=3}return g}function de(f,g){function b(I){var C=pe(I);return C.match(g.UNRESERVED)?C:I}return f.scheme&&(f.scheme=String(f.scheme).replace(g.PCT_ENCODED,b).toLowerCase().replace(g.NOT_SCHEME,"")),f.userinfo!==void 0&&(f.userinfo=String(f.userinfo).replace(g.PCT_ENCODED,b).replace(g.NOT_USERINFO,Ee).replace(g.PCT_ENCODED,n)),f.host!==void 0&&(f.host=String(f.host).replace(g.PCT_ENCODED,b).toLowerCase().replace(g.NOT_HOST,Ee).replace(g.PCT_ENCODED,n)),f.path!==void 0&&(f.path=String(f.path).replace(g.PCT_ENCODED,b).replace(f.scheme?g.NOT_PATH:g.NOT_PATH_NOSCHEME,Ee).replace(g.PCT_ENCODED,n)),f.query!==void 0&&(f.query=String(f.query).replace(g.PCT_ENCODED,b).replace(g.NOT_QUERY,Ee).replace(g.PCT_ENCODED,n)),f.fragment!==void 0&&(f.fragment=String(f.fragment).replace(g.PCT_ENCODED,b).replace(g.NOT_FRAGMENT,Ee).replace(g.PCT_ENCODED,n)),f}function pt(f){return f.replace(/^0*(.*)/,"$1")||"0"}function Ie(f,g){var b=f.match(g.IPV4ADDRESS)||[],I=p(b,2),C=I[1];return C?C.split(".").map(pt).join("."):f}function ne(f,g){var b=f.match(g.IPV6ADDRESS)||[],I=p(b,3),C=I[1],M=I[2];if(C){for(var q=C.toLowerCase().split("::").reverse(),Z=p(q,2),ve=Z[0],ee=Z[1],Q=ee?ee.split(":").map(pt):[],ie=ve.split(":").map(pt),ge=g.IPV4ADDRESS.test(ie[ie.length-1]),N=ge?7:8,Se=ie.length-N,te=Array(N),Me=0;Me<N;++Me)te[Me]=Q[Me]||ie[Se+Me]||"";ge&&(te[N-1]=Ie(te[N-1],g));var sr=te.reduce(function(Ne,ut,zt){if(!ut||ut==="0"){var it=Ne[Ne.length-1];it&&it.index+it.length===zt?it.length++:Ne.push({index:zt,length:1})}return Ne},[]),Qe=sr.sort(function(Ne,ut){return ut.length-Ne.length})[0],ct=void 0;if(Qe&&Qe.length>1){var Nt=te.slice(0,Qe.index),Wt=te.slice(Qe.index+Qe.length);ct=Nt.join(":")+"::"+Wt.join(":")}else ct=te.join(":");return M&&(ct+="%"+M),ct}else return f}var St=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,wt="".match(/(){0}/)[1]===void 0;function _e(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b={},I=g.iri!==!1?c:d;g.reference==="suffix"&&(f=(g.scheme?g.scheme+":":"")+"//"+f);var C=f.match(St);if(C){wt?(b.scheme=C[1],b.userinfo=C[3],b.host=C[4],b.port=parseInt(C[5],10),b.path=C[6]||"",b.query=C[7],b.fragment=C[8],isNaN(b.port)&&(b.port=C[5])):(b.scheme=C[1]||void 0,b.userinfo=f.indexOf("@")!==-1?C[3]:void 0,b.host=f.indexOf("//")!==-1?C[4]:void 0,b.port=parseInt(C[5],10),b.path=C[6]||"",b.query=f.indexOf("?")!==-1?C[7]:void 0,b.fragment=f.indexOf("#")!==-1?C[8]:void 0,isNaN(b.port)&&(b.port=f.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?C[4]:void 0)),b.host&&(b.host=ne(Ie(b.host,I),I)),b.scheme===void 0&&b.userinfo===void 0&&b.host===void 0&&b.port===void 0&&!b.path&&b.query===void 0?b.reference="same-document":b.scheme===void 0?b.reference="relative":b.fragment===void 0?b.reference="absolute":b.reference="uri",g.reference&&g.reference!=="suffix"&&g.reference!==b.reference&&(b.error=b.error||"URI is not a "+g.reference+" reference.");var M=Fe[(g.scheme||b.scheme||"").toLowerCase()];if(!g.unicodeSupport&&(!M||!M.unicodeSupport)){if(b.host&&(g.domainHost||M&&M.domainHost))try{b.host=Pe.toASCII(b.host.replace(I.PCT_ENCODED,pe).toLowerCase())}catch(q){b.error=b.error||"Host's domain name can not be converted to ASCII via punycode: "+q}de(b,d)}else de(b,I);M&&M.parse&&M.parse(b,g)}else b.error=b.error||"URI can not be parsed.";return b}function ar(f,g){var b=g.iri!==!1?c:d,I=[];return f.userinfo!==void 0&&(I.push(f.userinfo),I.push("@")),f.host!==void 0&&I.push(ne(Ie(String(f.host),b),b).replace(b.IPV6ADDRESS,function(C,M,q){return"["+M+(q?"%25"+q:"")+"]"})),(typeof f.port=="number"||typeof f.port=="string")&&(I.push(":"),I.push(String(f.port))),I.length?I.join(""):void 0}var Ce=/^\.\.?\//,xt=/^\/\.(\/|$)/,or=/^\/\.\.(\/|$)/,Re=/^\/?(?:.|\n)*?(?=\/|$)/;function je(f){for(var g=[];f.length;)if(f.match(Ce))f=f.replace(Ce,"");else if(f.match(xt))f=f.replace(xt,"/");else if(f.match(or))f=f.replace(or,"/"),g.pop();else if(f==="."||f==="..")f="";else{var b=f.match(Re);if(b){var I=b[0];f=f.slice(I.length),g.push(I)}else throw new Error("Unexpected dot segment condition")}return g.join("")}function fe(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=g.iri?c:d,I=[],C=Fe[(g.scheme||f.scheme||"").toLowerCase()];if(C&&C.serialize&&C.serialize(f,g),f.host&&!b.IPV6ADDRESS.test(f.host)&&(g.domainHost||C&&C.domainHost))try{f.host=g.iri?Pe.toUnicode(f.host):Pe.toASCII(f.host.replace(b.PCT_ENCODED,pe).toLowerCase())}catch(Z){f.error=f.error||"Host's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+Z}de(f,b),g.reference!=="suffix"&&f.scheme&&(I.push(f.scheme),I.push(":"));var M=ar(f,g);if(M!==void 0&&(g.reference!=="suffix"&&I.push("//"),I.push(M),f.path&&f.path.charAt(0)!=="/"&&I.push("/")),f.path!==void 0){var q=f.path;!g.absolutePath&&(!C||!C.absolutePath)&&(q=je(q)),M===void 0&&(q=q.replace(/^\/\//,"/%2F")),I.push(q)}return f.query!==void 0&&(I.push("?"),I.push(f.query)),f.fragment!==void 0&&(I.push("#"),I.push(f.fragment)),I.join("")}function Rr(f,g){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments[3],C={};return I||(f=_e(fe(f,b),b),g=_e(fe(g,b),b)),b=b||{},!b.tolerant&&g.scheme?(C.scheme=g.scheme,C.userinfo=g.userinfo,C.host=g.host,C.port=g.port,C.path=je(g.path||""),C.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?(C.userinfo=g.userinfo,C.host=g.host,C.port=g.port,C.path=je(g.path||""),C.query=g.query):(g.path?(g.path.charAt(0)==="/"?C.path=je(g.path):((f.userinfo!==void 0||f.host!==void 0||f.port!==void 0)&&!f.path?C.path="/"+g.path:f.path?C.path=f.path.slice(0,f.path.lastIndexOf("/")+1)+g.path:C.path=g.path,C.path=je(C.path)),C.query=g.query):(C.path=f.path,g.query!==void 0?C.query=g.query:C.query=f.query),C.userinfo=f.userinfo,C.host=f.host,C.port=f.port),C.scheme=f.scheme),C.fragment=g.fragment,C}function ya(f,g,b){var I=l({scheme:"null"},b);return fe(Rr(_e(f,I),_e(g,I),I,!0),I)}function ga(f,g){return typeof f=="string"?f=fe(_e(f,g),g):o(f)==="object"&&(f=_e(fe(f,g),g)),f}function cd(f,g,b){return typeof f=="string"?f=fe(_e(f,b),b):o(f)==="object"&&(f=fe(f,b)),typeof g=="string"?g=fe(_e(g,b),b):o(g)==="object"&&(g=fe(g,b)),f===g}function ud(f,g){return f&&f.toString().replace(!g||!g.iri?d.ESCAPE:c.ESCAPE,Ee)}function dt(f,g){return f&&f.toString().replace(!g||!g.iri?d.PCT_ENCODED:c.PCT_ENCODED,pe)}var kr={scheme:"http",domainHost:!0,parse:function(f,g){return f.host||(f.error=f.error||"HTTP URIs must have a host."),f},serialize:function(f,g){var b=String(f.scheme).toLowerCase()==="https";return(f.port===(b?443:80)||f.port==="")&&(f.port=void 0),f.path||(f.path="/"),f}},wo={scheme:"https",domainHost:kr.domainHost,parse:kr.parse,serialize:kr.serialize};function xo(f){return typeof f.secure=="boolean"?f.secure:String(f.scheme).toLowerCase()==="wss"}var Br={scheme:"ws",domainHost:!0,parse:function(f,g){var b=f;return b.secure=xo(b),b.resourceName=(b.path||"/")+(b.query?"?"+b.query:""),b.path=void 0,b.query=void 0,b},serialize:function(f,g){if((f.port===(xo(f)?443:80)||f.port==="")&&(f.port=void 0),typeof f.secure=="boolean"&&(f.scheme=f.secure?"wss":"ws",f.secure=void 0),f.resourceName){var b=f.resourceName.split("?"),I=p(b,2),C=I[0],M=I[1];f.path=C&&C!=="/"?C:void 0,f.query=M,f.resourceName=void 0}return f.fragment=void 0,f}},Io={scheme:"wss",domainHost:Br.domainHost,parse:Br.parse,serialize:Br.serialize},fd={},Co="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",rt="[0-9A-Fa-f]",hd=a(a("%[EFef]"+rt+"%"+rt+rt+"%"+rt+rt)+"|"+a("%[89A-Fa-f]"+rt+"%"+rt+rt)+"|"+a("%"+rt+rt)),md="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",yd="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",gd=t(yd,'[\\"\\\\]'),bd="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",vd=new RegExp(Co,"g"),nr=new RegExp(hd,"g"),Sd=new RegExp(t("[^]",md,"[\\.]",'[\\"]',gd),"g"),To=new RegExp(t("[^]",Co,bd),"g"),wd=To;function ba(f){var g=pe(f);return g.match(vd)?g:f}var Po={scheme:"mailto",parse:function(f,g){var b=f,I=b.to=b.path?b.path.split(","):[];if(b.path=void 0,b.query){for(var C=!1,M={},q=b.query.split("&"),Z=0,ve=q.length;Z<ve;++Z){var ee=q[Z].split("=");switch(ee[0]){case"to":for(var Q=ee[1].split(","),ie=0,ge=Q.length;ie<ge;++ie)I.push(Q[ie]);break;case"subject":b.subject=dt(ee[1],g);break;case"body":b.body=dt(ee[1],g);break;default:C=!0,M[dt(ee[0],g)]=dt(ee[1],g);break}}C&&(b.headers=M)}b.query=void 0;for(var N=0,Se=I.length;N<Se;++N){var te=I[N].split("@");if(te[0]=dt(te[0]),g.unicodeSupport)te[1]=dt(te[1],g).toLowerCase();else try{te[1]=Pe.toASCII(dt(te[1],g).toLowerCase())}catch(Me){b.error=b.error||"Email address's domain name can not be converted to ASCII via punycode: "+Me}I[N]=te.join("@")}return b},serialize:function(f,g){var b=f,I=s(f.to);if(I){for(var C=0,M=I.length;C<M;++C){var q=String(I[C]),Z=q.lastIndexOf("@"),ve=q.slice(0,Z).replace(nr,ba).replace(nr,n).replace(Sd,Ee),ee=q.slice(Z+1);try{ee=g.iri?Pe.toUnicode(ee):Pe.toASCII(dt(ee,g).toLowerCase())}catch(N){b.error=b.error||"Email address's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+N}I[C]=ve+"@"+ee}b.path=I.join(",")}var Q=f.headers=f.headers||{};f.subject&&(Q.subject=f.subject),f.body&&(Q.body=f.body);var ie=[];for(var ge in Q)Q[ge]!==fd[ge]&&ie.push(ge.replace(nr,ba).replace(nr,n).replace(To,Ee)+"="+Q[ge].replace(nr,ba).replace(nr,n).replace(wd,Ee));return ie.length&&(b.query=ie.join("&")),b}},xd=/^([^\:]+)\:(.*)/,Fo={scheme:"urn",parse:function(f,g){var b=f.path&&f.path.match(xd),I=f;if(b){var C=g.scheme||I.scheme||"urn",M=b[1].toLowerCase(),q=b[2],Z=C+":"+(g.nid||M),ve=Fe[Z];I.nid=M,I.nss=q,I.path=void 0,ve&&(I=ve.parse(I,g))}else I.error=I.error||"URN can not be parsed.";return I},serialize:function(f,g){var b=g.scheme||f.scheme||"urn",I=f.nid,C=b+":"+(g.nid||I),M=Fe[C];M&&(f=M.serialize(f,g));var q=f,Z=f.nss;return q.path=(I||g.nid)+":"+Z,q}},Id=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ao={scheme:"urn:uuid",parse:function(f,g){var b=f;return b.uuid=b.nss,b.nss=void 0,!g.tolerant&&(!b.uuid||!b.uuid.match(Id))&&(b.error=b.error||"UUID is not valid."),b},serialize:function(f,g){var b=f;return b.nss=(f.uuid||"").toLowerCase(),b}};Fe[kr.scheme]=kr,Fe[wo.scheme]=wo,Fe[Br.scheme]=Br,Fe[Io.scheme]=Io,Fe[Po.scheme]=Po,Fe[Fo.scheme]=Fo,Fe[Ao.scheme]=Ao,i.SCHEMES=Fe,i.pctEncChar=Ee,i.pctDecChars=pe,i.parse=_e,i.removeDotSegments=je,i.serialize=fe,i.resolveComponents=Rr,i.resolve=ya,i.normalize=ga,i.equal=cd,i.escapeComponent=ud,i.unescapeComponent=dt,Object.defineProperty(i,"__esModule",{value:!0})})})(Ha,Ha.exports);var FS=Ha.exports,uo=function e(r,i){if(r===i)return!0;if(r&&i&&typeof r=="object"&&typeof i=="object"){if(r.constructor!==i.constructor)return!1;var t,a,o;if(Array.isArray(r)){if(t=r.length,t!=i.length)return!1;for(a=t;a--!==0;)if(!e(r[a],i[a]))return!1;return!0}if(r.constructor===RegExp)return r.source===i.source&&r.flags===i.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===i.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===i.toString();if(o=Object.keys(r),t=o.length,t!==Object.keys(i).length)return!1;for(a=t;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,o[a]))return!1;for(a=t;a--!==0;){var n=o[a];if(!e(r[n],i[n]))return!1}return!0}return r!==r&&i!==i},AS=function(e){for(var r=0,i=e.length,t=0,a;t<i;)r++,a=e.charCodeAt(t++),a>=55296&&a<=56319&&t<i&&(a=e.charCodeAt(t),(a&64512)==56320&&t++);return r},_r={copy:OS,checkDataType:Qa,checkDataTypes:ES,coerceToTypes:LS,toHash:fo,getProperty:ho,escapeQuotes:mo,equal:uo,ucs2length:AS,varOccurences:$S,varReplace:_S,schemaHasRules:RS,schemaHasRulesExcept:kS,schemaUnknownRules:BS,toQuotedString:$p,getPathExpr:qS,getPath:MS,getData:zS,unescapeFragment:VS,unescapeJsonPointer:go,escapeFragment:US,escapeJsonPointer:yo};function OS(e,r){r=r||{};for(var i in e)r[i]=e[i];return r}function Qa(e,r,i,t){var a=t?" !== ":" === ",o=t?" || ":" && ",n=t?"!":"",s=t?"":"!";switch(e){case"null":return r+a+"null";case"array":return n+"Array.isArray("+r+")";case"object":return"("+n+r+o+"typeof "+r+a+'"object"'+o+s+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+a+'"number"'+o+s+"("+r+" % 1)"+o+r+a+r+(i?o+n+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+a+'"'+e+'"'+(i?o+n+"isFinite("+r+")":"")+")";default:return"typeof "+r+a+'"'+e+'"'}}function ES(e,r,i){switch(e.length){case 1:return Qa(e[0],r,i,!0);default:var t="",a=fo(e);a.array&&a.object&&(t=a.null?"(":"(!"+r+" || ",t+="typeof "+r+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer;for(var o in a)t+=(t?" && ":"")+Qa(o,r,i,!0);return t}}var Vl=fo(["string","number","integer","boolean","null"]);function LS(e,r){if(Array.isArray(r)){for(var i=[],t=0;t<r.length;t++){var a=r[t];(Vl[a]||e==="array"&&a==="array")&&(i[i.length]=a)}if(i.length)return i}else{if(Vl[r])return[r];if(e==="array"&&r==="array")return["array"]}}function fo(e){for(var r={},i=0;i<e.length;i++)r[e[i]]=!0;return r}var DS=/^[a-z$_][a-z$_0-9]*$/i,jS=/'|\\/g;function ho(e){return typeof e=="number"?"["+e+"]":DS.test(e)?"."+e:"['"+mo(e)+"']"}function mo(e){return e.replace(jS,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function $S(e,r){r+="[^0-9]";var i=e.match(new RegExp(r,"g"));return i?i.length:0}function _S(e,r,i){return r+="([^0-9])",i=i.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),i+"$1")}function RS(e,r){if(typeof e=="boolean")return!e;for(var i in e)if(r[i])return!0}function kS(e,r,i){if(typeof e=="boolean")return!e&&i!="not";for(var t in e)if(t!=i&&r[t])return!0}function BS(e,r){if(typeof e!="boolean"){for(var i in e)if(!r[i])return i}}function $p(e){return"'"+mo(e)+"'"}function qS(e,r,i,t){var a=i?"'/' + "+r+(t?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):t?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'";return _p(e,a)}function MS(e,r,i){var t=$p(i?"/"+yo(r):ho(r));return _p(e,t)}var NS=/^\/(?:[^~]|~0|~1)*$/,WS=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function zS(e,r,i){var t,a,o,n;if(e==="")return"rootData";if(e[0]=="/"){if(!NS.test(e))throw new Error("Invalid JSON-pointer: "+e);a=e,o="rootData"}else{if(n=e.match(WS),!n)throw new Error("Invalid JSON-pointer: "+e);if(t=+n[1],a=n[2],a=="#"){if(t>=r)throw new Error("Cannot access property/index "+t+" levels up, current level is "+r);return i[r-t]}if(t>r)throw new Error("Cannot access data "+t+" levels up, current level is "+r);if(o="data"+(r-t||""),!a)return o}for(var s=o,l=a.split("/"),u=0;u<l.length;u++){var d=l[u];d&&(o+=ho(go(d)),s+=" && "+o)}return s}function _p(e,r){return e=='""'?r:(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function VS(e){return go(decodeURIComponent(e))}function US(e){return encodeURIComponent(yo(e))}function yo(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function go(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}var GS=_r,Rp=HS;function HS(e){GS.copy(e,this)}var kp={exports:{}},Rt=kp.exports=function(e,r,i){typeof r=="function"&&(i=r,r={}),i=r.cb||i;var t=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};Xi(r,t,a,e,"",e)};Rt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Rt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Rt.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Rt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Xi(e,r,i,t,a,o,n,s,l,u){if(t&&typeof t=="object"&&!Array.isArray(t)){r(t,a,o,n,s,l,u);for(var d in t){var c=t[d];if(Array.isArray(c)){if(d in Rt.arrayKeywords)for(var p=0;p<c.length;p++)Xi(e,r,i,c[p],a+"/"+d+"/"+p,o,a,d,t,p)}else if(d in Rt.propsKeywords){if(c&&typeof c=="object")for(var h in c)Xi(e,r,i,c[h],a+"/"+d+"/"+QS(h),o,a,d,t,h)}else(d in Rt.keywords||e.allKeys&&!(d in Rt.skipKeywords))&&Xi(e,r,i,c,a+"/"+d,o,a,d,t)}i(t,a,o,n,s,l,u)}}function QS(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var KS=kp.exports,Yr=FS,Ul=uo,ca=_r,aa=Rp,JS=KS,bo=Mt;Mt.normalizeId=kt;Mt.fullPath=oa;Mt.url=na;Mt.ids=tw;Mt.inlineRef=Ka;Mt.schema=ua;function Mt(e,r,i){var t=this._refs[i];if(typeof t=="string")if(this._refs[t])t=this._refs[t];else return Mt.call(this,e,r,t);if(t=t||this._schemas[i],t instanceof aa)return Ka(t.schema,this._opts.inlineRefs)?t.schema:t.validate||this._compile(t);var a=ua.call(this,r,i),o,n,s;return a&&(o=a.schema,r=a.root,s=a.baseId),o instanceof aa?n=o.validate||e.call(this,o.schema,r,void 0,s):o!==void 0&&(n=Ka(o,this._opts.inlineRefs)?o:e.call(this,o,r,void 0,s)),n}function ua(e,r){var i=Yr.parse(r),t=qp(i),a=oa(this._getId(e.schema));if(Object.keys(e.schema).length===0||t!==a){var o=kt(t),n=this._refs[o];if(typeof n=="string")return ZS.call(this,e,n,i);if(n instanceof aa)n.validate||this._compile(n),e=n;else if(n=this._schemas[o],n instanceof aa){if(n.validate||this._compile(n),o==kt(r))return{schema:n,root:e,baseId:a};e=n}else return;if(!e.schema)return;a=oa(this._getId(e.schema))}return Bp.call(this,i,a,e.schema,e)}function ZS(e,r,i){var t=ua.call(this,e,r);if(t){var a=t.schema,o=t.baseId;e=t.root;var n=this._getId(a);return n&&(o=na(o,n)),Bp.call(this,i,o,a,e)}}var XS=ca.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Bp(e,r,i,t){if(e.fragment=e.fragment||"",e.fragment.slice(0,1)=="/"){for(var a=e.fragment.split("/"),o=1;o<a.length;o++){var n=a[o];if(n){if(n=ca.unescapeFragment(n),i=i[n],i===void 0)break;var s;if(!XS[n]&&(s=this._getId(i),s&&(r=na(r,s)),i.$ref)){var l=na(r,i.$ref),u=ua.call(this,t,l);u&&(i=u.schema,t=u.root,r=u.baseId)}}}if(i!==void 0&&i!==t.schema)return{schema:i,root:t,baseId:r}}}var YS=ca.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Ka(e,r){if(r===!1)return!1;if(r===void 0||r===!0)return Ja(e);if(r)return Za(e)<=r}function Ja(e){var r;if(Array.isArray(e)){for(var i=0;i<e.length;i++)if(r=e[i],typeof r=="object"&&!Ja(r))return!1}else for(var t in e)if(t=="$ref"||(r=e[t],typeof r=="object"&&!Ja(r)))return!1;return!0}function Za(e){var r=0,i;if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(i=e[t],typeof i=="object"&&(r+=Za(i)),r==1/0)return 1/0}else for(var a in e){if(a=="$ref")return 1/0;if(YS[a])r++;else if(i=e[a],typeof i=="object"&&(r+=Za(i)+1),r==1/0)return 1/0}return r}function oa(e,r){r!==!1&&(e=kt(e));var i=Yr.parse(e);return qp(i)}function qp(e){return Yr.serialize(e).split("#")[0]+"#"}var ew=/#\/?$/;function kt(e){return e?e.replace(ew,""):""}function na(e,r){return r=kt(r),Yr.resolve(e,r)}function tw(e){var r=kt(this._getId(e)),i={"":r},t={"":oa(r,!1)},a={},o=this;return JS(e,{allKeys:!0},function(n,s,l,u,d,c,p){if(s!==""){var h=o._getId(n),y=i[u],m=t[u]+"/"+d;if(p!==void 0&&(m+="/"+(typeof p=="number"?p:ca.escapeFragment(p))),typeof h=="string"){h=y=kt(y?Yr.resolve(y,h):h);var v=o._refs[h];if(typeof v=="string"&&(v=o._refs[v]),v&&v.schema){if(!Ul(n,v.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=kt(m))if(h[0]=="#"){if(a[h]&&!Ul(n,a[h]))throw new Error('id "'+h+'" resolves to more than one schema');a[h]=n}else o._refs[h]=m}i[s]=y,t[s]=m}}),a}var Na=bo,vo={Validation:Gl(rw),MissingRef:Gl(So)};function rw(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}So.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function So(e,r,i){this.message=i||So.message(e,r),this.missingRef=Na.url(e,r),this.missingSchema=Na.normalizeId(Na.fullPath(this.missingRef))}function Gl(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Mp=function(e,r){r||(r={}),typeof r=="function"&&(r={cmp:r});var i=typeof r.cycles=="boolean"?r.cycles:!1,t=r.cmp&&function(o){return function(n){return function(s,l){var u={key:s,value:n[s]},d={key:l,value:n[l]};return o(u,d)}}}(r.cmp),a=[];return function o(n){if(n&&n.toJSON&&typeof n.toJSON=="function"&&(n=n.toJSON()),n!==void 0){if(typeof n=="number")return isFinite(n)?""+n:"null";if(typeof n!="object")return JSON.stringify(n);var s,l;if(Array.isArray(n)){for(l="[",s=0;s<n.length;s++)s&&(l+=","),l+=o(n[s])||"null";return l+"]"}if(n===null)return"null";if(a.indexOf(n)!==-1){if(i)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=a.push(n)-1,d=Object.keys(n).sort(t&&t(n));for(l="",s=0;s<d.length;s++){var c=d[s],p=o(n[c]);p&&(l&&(l+=","),l+=JSON.stringify(c)+":"+p)}return a.splice(u,1),"{"+l+"}"}}(e)},Np=function(e,r,i){var t="",a=e.schema.$async===!0,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),n=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var l="unknown keyword: "+s;if(e.opts.strictKeywords==="log")e.logger.warn(l);else throw new Error(l)}}if(e.isTop&&(t+=" var validate = ",a&&(e.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",n&&(e.opts.sourceCode||e.opts.processCode)&&(t+=" "+("/*# sourceURL="+n+" */")+" ")),typeof e.schema=="boolean"||!(o||e.schema.$ref)){var r="false schema",u=e.level,d=e.dataLevel,c=e.schema[r],p=e.schemaPath+e.util.getProperty(r),h=e.errSchemaPath+"/"+r,P=!e.opts.allErrors,O,y="data"+(d||""),T="valid"+u;if(e.schema===!1){e.isTop?P=!0:t+=" var "+T+" = false; ";var m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(O||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'boolean schema is false' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),!e.compositeRule&&P?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?a?t+=" return data; ":t+=" validate.errors = null; return true; ":t+=" var "+T+" = true; ";return e.isTop&&(t+=" }; return validate; "),t}if(e.isTop){var x=e.isTop,u=e.level=0,d=e.dataLevel=0,y="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var S="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,d=e.dataLevel,y="data"+(d||"");if(n&&(e.baseId=e.resolve.url(e.baseId,n)),a&&!e.async)throw new Error("async schema in sync schema");t+=" var errs_"+u+" = errors;"}var T="valid"+u,P=!e.opts.allErrors,A="",L="",O,E=e.schema.type,_=Array.isArray(E);if(E&&e.opts.nullable&&e.schema.nullable===!0&&(_?E.indexOf("null")==-1&&(E=E.concat("null")):E!="null"&&(E=[E,"null"],_=!0)),_&&E.length==1&&(E=E[0],_=!1),e.schema.$ref&&o){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(t+=" "+e.RULES.all.$comment.code(e,"$comment")),E){if(e.opts.coerceTypes)var R=e.util.coerceToTypes(e.opts.coerceTypes,E);var j=e.RULES.types[E];if(R||_||j===!0||j&&!Ce(j)){var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type",B=_?"checkDataTypes":"checkDataType";if(t+=" if ("+e.util[B](E,y,e.opts.strictNumbers,!0)+") { ",R){var F="dataType"+u,$="coerced"+u;t+=" var "+F+" = typeof "+y+"; var "+$+" = undefined; ",e.opts.coerceTypes=="array"&&(t+=" if ("+F+" == 'object' && Array.isArray("+y+") && "+y+".length == 1) { "+y+" = "+y+"[0]; "+F+" = typeof "+y+"; if ("+e.util.checkDataType(e.schema.type,y,e.opts.strictNumbers)+") "+$+" = "+y+"; } "),t+=" if ("+$+" !== undefined) ; ";var W=R;if(W)for(var U,H=-1,V=W.length-1;H<V;)U=W[H+=1],U=="string"?t+=" else if ("+F+" == 'number' || "+F+" == 'boolean') "+$+" = '' + "+y+"; else if ("+y+" === null) "+$+" = ''; ":U=="number"||U=="integer"?(t+=" else if ("+F+" == 'boolean' || "+y+" === null || ("+F+" == 'string' && "+y+" && "+y+" == +"+y+" ",U=="integer"&&(t+=" && !("+y+" % 1)"),t+=")) "+$+" = +"+y+"; "):U=="boolean"?t+=" else if ("+y+" === 'false' || "+y+" === 0 || "+y+" === null) "+$+" = false; else if ("+y+" === 'true' || "+y+" === 1) "+$+" = true; ":U=="null"?t+=" else if ("+y+" === '' || "+y+" === 0 || "+y+" === false) "+$+" = null; ":e.opts.coerceTypes=="array"&&U=="array"&&(t+=" else if ("+F+" == 'string' || "+F+" == 'number' || "+F+" == 'boolean' || "+y+" == null) "+$+" = ["+y+"]; ");t+=" else { ";var m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",_?t+=""+E.join(","):t+=""+E,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",_?t+=""+E.join(","):t+=""+E,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),!e.compositeRule&&P?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } if ("+$+" !== undefined) { ";var z=d?"data"+(d-1||""):"parentData",J=d?e.dataPathArr[d]:"parentDataProperty";t+=" "+y+" = "+$+"; ",d||(t+="if ("+z+" !== undefined)"),t+=" "+z+"["+J+"] = "+$+"; } "}else{var m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",_?t+=""+E.join(","):t+=""+E,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",_?t+=""+E.join(","):t+=""+E,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),!e.compositeRule&&P?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } "}}if(e.schema.$ref&&!o)t+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",P&&(t+=" } if (errors === ",x?t+="0":t+="errs_"+u,t+=") { ",L+="}");else{var ue=e.RULES;if(ue){for(var j,xe=-1,ye=ue.length-1;xe<ye;)if(j=ue[xe+=1],Ce(j)){if(j.type&&(t+=" if ("+e.util.checkDataType(j.type,y,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(j.type=="object"&&e.schema.properties){var c=e.schema.properties,Oe=Object.keys(c),tt=Oe;if(tt)for(var Pe,Fe=-1,Ee=tt.length-1;Fe<Ee;){Pe=tt[Fe+=1];var pe=c[Pe];if(pe.default!==void 0){var de=y+e.util.getProperty(Pe);if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+de;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else t+=" if ("+de+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+de+" === null || "+de+" === '' "),t+=" ) "+de+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(pe.default)+" ":t+=" "+JSON.stringify(pe.default)+" ",t+="; "}}}else if(j.type=="array"&&Array.isArray(e.schema.items)){var pt=e.schema.items;if(pt){for(var pe,H=-1,Ie=pt.length-1;H<Ie;)if(pe=pt[H+=1],pe.default!==void 0){var de=y+"["+H+"]";if(e.compositeRule){if(e.opts.strictDefaults){var S="default is ignored for: "+de;if(e.opts.strictDefaults==="log")e.logger.warn(S);else throw new Error(S)}}else t+=" if ("+de+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+de+" === null || "+de+" === '' "),t+=" ) "+de+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(pe.default)+" ":t+=" "+JSON.stringify(pe.default)+" ",t+="; "}}}}var ne=j.rules;if(ne){for(var St,wt=-1,_e=ne.length-1;wt<_e;)if(St=ne[wt+=1],xt(St)){var ar=St.code(e,St.keyword,j.type);ar&&(t+=" "+ar+" ",P&&(A+="}"))}}if(P&&(t+=" "+A+" ",A=""),j.type&&(t+=" } ",E&&E===j.type&&!R)){t+=" else { ";var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(O||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",_?t+=""+E.join(","):t+=""+E,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",_?t+=""+E.join(","):t+=""+E,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+y+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),!e.compositeRule&&P?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } "}P&&(t+=" if (errors === ",x?t+="0":t+="errs_"+u,t+=") { ",L+="}")}}}P&&(t+=" "+L+" "),x?(a?(t+=" if (errors === 0) return data; ",t+=" else throw new ValidationError(vErrors); "):(t+=" validate.errors = vErrors; ",t+=" return errors === 0; "),t+=" }; return validate;"):t+=" var "+T+" = errors === errs_"+u+";";function Ce(Re){for(var je=Re.rules,fe=0;fe<je.length;fe++)if(xt(je[fe]))return!0}function xt(Re){return e.schema[Re.keyword]!==void 0||Re.implements&&or(Re)}function or(Re){for(var je=Re.implements,fe=0;fe<je.length;fe++)if(e.schema[je[fe]]!==void 0)return!0}return t},Gi=bo,sa=_r,Wp=vo,iw=Mp,Hl=Np,aw=sa.ucs2length,ow=uo,nw=Wp.Validation,sw=Xa;function Xa(e,r,i,t){var a=this,o=this._opts,n=[void 0],s={},l=[],u={},d=[],c={},p=[];r=r||{schema:e,refVal:n,refs:s};var h=lw.call(this,e,r,t),y=this._compilations[h.index];if(h.compiling)return y.callValidate=T;var m=this._formats,v=this.RULES;try{var x=P(e,r,i,t);y.validate=x;var S=y.callValidate;return S&&(S.schema=x.schema,S.errors=null,S.refs=x.refs,S.refVal=x.refVal,S.root=x.root,S.$async=x.$async,o.sourceCode&&(S.source=x.source)),x}finally{pw.call(this,e,r,t)}function T(){var F=y.validate,$=F.apply(this,arguments);return T.errors=F.errors,$}function P(F,$,W,U){var H=!$||$&&$.schema==F;if($.schema!=r.schema)return Xa.call(a,F,$,W,U);var V=F.$async===!0,z=Hl({isTop:!0,schema:F,isRoot:H,baseId:U,root:$,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Wp.MissingRef,RULES:v,validate:Hl,util:sa,resolve:Gi,resolveRef:A,usePattern:R,useDefault:j,useCustomRule:B,opts:o,formats:m,logger:a.logger,self:a});z=Hi(n,uw)+Hi(l,dw)+Hi(d,cw)+Hi(p,fw)+z,o.processCode&&(z=o.processCode(z,F));var J;try{var ue=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",z);J=ue(a,v,m,r,n,d,p,ow,aw,nw),n[0]=J}catch(xe){throw a.logger.error("Error compiling schema, function code:",z),xe}return J.schema=F,J.errors=null,J.refs=s,J.refVal=n,J.root=H?J:$,V&&(J.$async=!0),o.sourceCode===!0&&(J.source={code:z,patterns:l,defaults:d}),J}function A(F,$,W){$=Gi.url(F,$);var U=s[$],H,V;if(U!==void 0)return H=n[U],V="refVal["+U+"]",_(H,V);if(!W&&r.refs){var z=r.refs[$];if(z!==void 0)return H=r.refVal[z],V=L($,H),_(H,V)}V=L($);var J=Gi.call(a,P,r,$);if(J===void 0){var ue=i&&i[$];ue&&(J=Gi.inlineRef(ue,o.inlineRefs)?ue:Xa.call(a,ue,r,i,F))}if(J===void 0)O($);else return E($,J),_(J,V)}function L(F,$){var W=n.length;return n[W]=$,s[F]=W,"refVal"+W}function O(F){delete s[F]}function E(F,$){var W=s[F];n[W]=$}function _(F,$){return typeof F=="object"||typeof F=="boolean"?{code:$,schema:F,inline:!0}:{code:$,$async:F&&!!F.$async}}function R(F){var $=u[F];return $===void 0&&($=u[F]=l.length,l[$]=F),"pattern"+$}function j(F){switch(typeof F){case"boolean":case"number":return""+F;case"string":return sa.toQuotedString(F);case"object":if(F===null)return"null";var $=iw(F),W=c[$];return W===void 0&&(W=c[$]=d.length,d[W]=F),"default"+W}}function B(F,$,W,U){if(a._opts.validateSchema!==!1){var H=F.definition.dependencies;if(H&&!H.every(function(Pe){return Object.prototype.hasOwnProperty.call(W,Pe)}))throw new Error("parent schema must have all required keywords: "+H.join(","));var V=F.definition.validateSchema;if(V){var z=V($);if(!z){var J="keyword schema is invalid: "+a.errorsText(V.errors);if(a._opts.validateSchema=="log")a.logger.error(J);else throw new Error(J)}}}var ue=F.definition.compile,xe=F.definition.inline,ye=F.definition.macro,Oe;if(ue)Oe=ue.call(a,$,W,U);else if(ye)Oe=ye.call(a,$,W,U),o.validateSchema!==!1&&a.validateSchema(Oe,!0);else if(xe)Oe=xe.call(a,U,F.keyword,$,W);else if(Oe=F.definition.validate,!Oe)return;if(Oe===void 0)throw new Error('custom keyword "'+F.keyword+'"failed to compile');var tt=p.length;return p[tt]=Oe,{code:"customRule"+tt,validate:Oe}}}function lw(e,r,i){var t=zp.call(this,e,r,i);return t>=0?{index:t,compiling:!0}:(t=this._compilations.length,this._compilations[t]={schema:e,root:r,baseId:i},{index:t,compiling:!1})}function pw(e,r,i){var t=zp.call(this,e,r,i);t>=0&&this._compilations.splice(t,1)}function zp(e,r,i){for(var t=0;t<this._compilations.length;t++){var a=this._compilations[t];if(a.schema==e&&a.root==r&&a.baseId==i)return t}return-1}function dw(e,r){return"var pattern"+e+" = new RegExp("+sa.toQuotedString(r[e])+");"}function cw(e){return"var default"+e+" = defaults["+e+"];"}function uw(e,r){return r[e]===void 0?"":"var refVal"+e+" = refVal["+e+"];"}function fw(e){return"var customRule"+e+" = customRules["+e+"];"}function Hi(e,r){if(!e.length)return"";for(var i="",t=0;t<e.length;t++)i+=r(t,e);return i}var Vp={exports:{}},fa=Vp.exports=function(){this._cache={}};fa.prototype.put=function(e,r){this._cache[e]=r};fa.prototype.get=function(e){return this._cache[e]};fa.prototype.del=function(e){delete this._cache[e]};fa.prototype.clear=function(){this._cache={}};var hw=Vp.exports,mw=_r,yw=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,gw=[0,31,28,31,30,31,30,31,31,30,31,30,31],bw=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Up=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,vw=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Sw=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Gp=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Hp=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Qp=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Kp=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Jp=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Zp=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,ww=ha;function ha(e){return e=e=="full"?"full":"fast",mw.copy(ha[e])}ha.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Gp,url:Hp,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Up,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ed,uuid:Qp,"json-pointer":Kp,"json-pointer-uri-fragment":Jp,"relative-json-pointer":Zp};ha.full={date:Xp,time:Yp,"date-time":Cw,uri:Pw,"uri-reference":Sw,"uri-template":Gp,url:Hp,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Up,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ed,uuid:Qp,"json-pointer":Kp,"json-pointer-uri-fragment":Jp,"relative-json-pointer":Zp};function xw(e){return e%4===0&&(e%100!==0||e%400===0)}function Xp(e){var r=e.match(yw);if(!r)return!1;var i=+r[1],t=+r[2],a=+r[3];return t>=1&&t<=12&&a>=1&&a<=(t==2&&xw(i)?29:gw[t])}function Yp(e,r){var i=e.match(bw);if(!i)return!1;var t=i[1],a=i[2],o=i[3],n=i[5];return(t<=23&&a<=59&&o<=59||t==23&&a==59&&o==60)&&(!r||n)}var Iw=/t|\s/i;function Cw(e){var r=e.split(Iw);return r.length==2&&Xp(r[0])&&Yp(r[1],!0)}var Tw=/\/|:/;function Pw(e){return Tw.test(e)&&vw.test(e)}var Fw=/[^\\]\\Z/;function ed(e){if(Fw.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}var Aw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,u="data"+(o||""),d="valid"+a,c,p;if(n=="#"||n=="#/")e.isRoot?(c=e.async,p="validate"):(c=e.root.schema.$async===!0,p="root.refVal[0]");else{var h=e.resolveRef(e.baseId,n,e.isRoot);if(h===void 0){var y=e.MissingRefError.message(e.baseId,n);if(e.opts.missingRefs=="fail"){e.logger.error(y);var m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(s)+" , params: { ref: '"+e.util.escapeQuotes(n)+"' } ",e.opts.messages!==!1&&(t+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(n)+"' "),e.opts.verbose&&(t+=" , schema: "+e.util.toQuotedString(n)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),!e.compositeRule&&l?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(t+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(y),l&&(t+=" if (true) { ");else throw new e.MissingRefError(e.baseId,n,y)}else if(h.inline){var x=e.util.copy(e);x.level++;var S="valid"+x.level;x.schema=h.schema,x.schemaPath="",x.errSchemaPath=n;var T=e.validate(x).replace(/validate\.schema/g,h.code);t+=" "+T+" ",l&&(t+=" if ("+S+") { ")}else c=h.$async===!0||e.async&&h.$async!==!1,p=h.code}if(p){var m=m||[];m.push(t),t="",e.opts.passContext?t+=" "+p+".call(this, ":t+=" "+p+"( ",t+=" "+u+", (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var P=o?"data"+(o-1||""):"parentData",A=o?e.dataPathArr[o]:"parentDataProperty";t+=" , "+P+" , "+A+", rootData) ";var L=t;if(t=m.pop(),c){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(t+=" var "+d+"; "),t+=" try { await "+L+"; ",l&&(t+=" "+d+" = true; "),t+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(t+=" "+d+" = false; "),t+=" } ",l&&(t+=" if ("+d+") { ")}else t+=" if (!"+L+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",l&&(t+=" else { ")}return t},Ow=function(e,r,i){var t=" ",a=e.schema[r],o=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,s=!e.opts.allErrors,l=e.util.copy(e),u="";l.level++;var d="valid"+l.level,c=l.baseId,p=!0,h=a;if(h)for(var y,m=-1,v=h.length-1;m<v;)y=h[m+=1],(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all))&&(p=!1,l.schema=y,l.schemaPath=o+"["+m+"]",l.errSchemaPath=n+"/"+m,t+=" "+e.validate(l)+" ",l.baseId=c,s&&(t+=" if ("+d+") { ",u+="}"));return s&&(p?t+=" if (true) { ":t+=" "+u.slice(0,-1)+" "),t},Ew=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p="errs__"+a,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,v=n.every(function(O){return e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:e.util.schemaHasRules(O,e.RULES.all)});if(v){var x=h.baseId;t+=" var "+p+" = errors; var "+c+" = false; ";var S=e.compositeRule;e.compositeRule=h.compositeRule=!0;var T=n;if(T)for(var P,A=-1,L=T.length-1;A<L;)P=T[A+=1],h.schema=P,h.schemaPath=s+"["+A+"]",h.errSchemaPath=l+"/"+A,t+=" "+e.validate(h)+" ",h.baseId=x,t+=" "+c+" = "+c+" || "+m+"; if (!"+c+") { ",y+="}";e.compositeRule=h.compositeRule=S,t+=" "+y+" if (!"+c+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else u&&(t+=" if (true) { ");return t},Lw=function(e,r,i){var t=" ",a=e.schema[r],o=e.errSchemaPath+"/"+r;e.opts.allErrors;var n=e.util.toQuotedString(a);return e.opts.$comment===!0?t+=" console.log("+n+");":typeof e.opts.$comment=="function"&&(t+=" self._opts.$comment("+n+", "+e.util.toQuotedString(o)+", validate.root.schema);"),t},Dw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p=e.opts.$data&&n&&n.$data;p&&(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; "),p||(t+=" var schema"+a+" = validate.schema"+s+";"),t+="var "+c+" = equal("+d+", schema"+a+"); if (!"+c+") { ";var h=h||[];h.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+a+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to constant' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var y=t;return t=h.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+y+"]); ":t+=" validate.errors = ["+y+"]; return false; ":t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",u&&(t+=" else { "),t},jw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p="errs__"+a,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,v="i"+a,x=h.dataLevel=e.dataLevel+1,S="data"+x,T=e.baseId,P=e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all);if(t+="var "+p+" = errors;var "+c+";",P){var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=n,h.schemaPath=s,h.errSchemaPath=l,t+=" var "+m+" = false; for (var "+v+" = 0; "+v+" < "+d+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var L=d+"["+v+"]";h.dataPathArr[x]=v;var O=e.validate(h);h.baseId=T,e.util.varOccurences(O,S)<2?t+=" "+e.util.varReplace(O,S,L)+" ":t+=" var "+S+" = "+L+"; "+O+" ",t+=" if ("+m+") break; } ",e.compositeRule=h.compositeRule=A,t+=" "+y+" if (!"+m+") {"}else t+=" if ("+d+".length == 0) {";var E=E||[];E.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should contain a valid item' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var _=t;return t=E.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+_+"]); ":t+=" validate.errors = ["+_+"]; return false; ":t+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { ",P&&(t+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(t+=" } "),t},$w=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="errs__"+a,p=e.util.copy(e),h="";p.level++;var y="valid"+p.level,m={},v={},x=e.opts.ownProperties;for(A in n)if(A!="__proto__"){var S=n[A],T=Array.isArray(S)?v:m;T[A]=S}t+="var "+c+" = errors;";var P=e.errorPath;t+="var missing"+a+";";for(var A in v)if(T=v[A],T.length){if(t+=" if ( "+d+e.util.getProperty(A)+" !== undefined ",x&&(t+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(A)+"') "),u){t+=" && ( ";var L=T;if(L)for(var O,E=-1,_=L.length-1;E<_;){O=L[E+=1],E&&(t+=" || ");var R=e.util.getProperty(O),j=d+R;t+=" ( ( "+j+" === undefined ",x&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(O)+"') "),t+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:R)+") ) "}t+=")) { ";var B="missing"+a,F="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,B,!0):P+" + "+B);var $=$||[];$.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+F+"', depsCount: "+T.length+", deps: '"+e.util.escapeQuotes(T.length==1?T[0]:T.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",T.length==1?t+="property "+e.util.escapeQuotes(T[0]):t+="properties "+e.util.escapeQuotes(T.join(", ")),t+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var W=t;t=$.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+W+"]); ":t+=" validate.errors = ["+W+"]; return false; ":t+=" var err = "+W+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{t+=" ) { ";var U=T;if(U)for(var O,H=-1,V=U.length-1;H<V;){O=U[H+=1];var R=e.util.getProperty(O),F=e.util.escapeQuotes(O),j=d+R;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,O,e.opts.jsonPointers)),t+=" if ( "+j+" === undefined ",x&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(O)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+F+"', depsCount: "+T.length+", deps: '"+e.util.escapeQuotes(T.length==1?T[0]:T.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",T.length==1?t+="property "+e.util.escapeQuotes(T[0]):t+="properties "+e.util.escapeQuotes(T.join(", ")),t+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t+=" } ",u&&(h+="}",t+=" else { ")}e.errorPath=P;var z=p.baseId;for(var A in m){var S=m[A];(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all))&&(t+=" "+y+" = true; if ( "+d+e.util.getProperty(A)+" !== undefined ",x&&(t+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(A)+"') "),t+=") { ",p.schema=S,p.schemaPath=s+e.util.getProperty(A),p.errSchemaPath=l+"/"+e.util.escapeFragment(A),t+=" "+e.validate(p)+" ",p.baseId=z,t+=" } ",u&&(t+=" if ("+y+") { ",h+="}"))}return u&&(t+=" "+h+" if ("+c+" == errors) {"),t},_w=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p=e.opts.$data&&n&&n.$data;p&&(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ");var h="i"+a,y="schema"+a;p||(t+=" var "+y+" = validate.schema"+s+";"),t+="var "+c+";",p&&(t+=" if (schema"+a+" === undefined) "+c+" = true; else if (!Array.isArray(schema"+a+")) "+c+" = false; else {"),t+=""+c+" = false;for (var "+h+"=0; "+h+"<"+y+".length; "+h+"++) if (equal("+d+", "+y+"["+h+"])) { "+c+" = true; break; }",p&&(t+=" } "),t+=" if (!"+c+") { ";var m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+a+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var v=t;return t=m.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",u&&(t+=" else { "),t},Rw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||"");if(e.opts.format===!1)return u&&(t+=" if (true) { "),t;var c=e.opts.$data&&n&&n.$data,p;c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n;var h=e.opts.unknownFormats,y=Array.isArray(h);if(c){var m="format"+a,v="isObject"+a,x="formatType"+a;t+=" var "+m+" = formats["+p+"]; var "+v+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+x+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ",e.async&&(t+=" var async"+a+" = "+m+".async; "),t+=" "+m+" = "+m+".validate; } if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),t+=" (",h!="ignore"&&(t+=" ("+p+" && !"+m+" ",y&&(t+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),t+=") || "),t+=" ("+m+" && "+x+" == '"+i+"' && !(typeof "+m+" == 'function' ? ",e.async?t+=" (async"+a+" ? await "+m+"("+d+") : "+m+"("+d+")) ":t+=" "+m+"("+d+") ",t+=" : "+m+".test("+d+"))))) {"}else{var m=e.formats[n];if(!m){if(h=="ignore")return e.logger.warn('unknown format "'+n+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(t+=" if (true) { "),t;if(y&&h.indexOf(n)>=0)return u&&(t+=" if (true) { "),t;throw new Error('unknown format "'+n+'" is used in schema at path "'+e.errSchemaPath+'"')}var v=typeof m=="object"&&!(m instanceof RegExp)&&m.validate,x=v&&m.type||"string";if(v){var S=m.async===!0;m=m.validate}if(x!=i)return u&&(t+=" if (true) { "),t;if(S){if(!e.async)throw new Error("async format in sync schema");var T="formats"+e.util.getProperty(n)+".validate";t+=" if (!(await "+T+"("+d+"))) { "}else{t+=" if (! ";var T="formats"+e.util.getProperty(n);v&&(T+=".validate"),typeof m=="function"?t+=" "+T+"("+d+") ":t+=" "+T+".test("+d+") ",t+=") { "}}var P=P||[];P.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",c?t+=""+p:t+=""+e.util.toQuotedString(n),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match format "`,c?t+="' + "+p+" + '":t+=""+e.util.escapeQuotes(n),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+e.util.toQuotedString(n),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var A=t;return t=P.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",u&&(t+=" else { "),t},kw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p="errs__"+a,h=e.util.copy(e);h.level++;var y="valid"+h.level,m=e.schema.then,v=e.schema.else,x=m!==void 0&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all)),S=v!==void 0&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)),T=h.baseId;if(x||S){var P;h.createErrors=!1,h.schema=n,h.schemaPath=s,h.errSchemaPath=l,t+=" var "+p+" = errors; var "+c+" = true; ";var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,t+=" "+e.validate(h)+" ",h.baseId=T,h.createErrors=!0,t+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=A,x?(t+=" if ("+y+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",t+=" "+e.validate(h)+" ",h.baseId=T,t+=" "+c+" = "+y+"; ",x&&S?(P="ifClause"+a,t+=" var "+P+" = 'then'; "):P="'then'",t+=" } ",S&&(t+=" else { ")):t+=" if (!"+y+") { ",S&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",t+=" "+e.validate(h)+" ",h.baseId=T,t+=" "+c+" = "+y+"; ",x&&S?(P="ifClause"+a,t+=" var "+P+" = 'else'; "):P="'else'",t+=" } "),t+=" if (!"+c+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+P+" } ",e.opts.messages!==!1&&(t+=` , message: 'should match "' + `+P+` + '" schema' `),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } ",u&&(t+=" else { ")}else u&&(t+=" if (true) { ");return t},Bw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p="errs__"+a,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,v="i"+a,x=h.dataLevel=e.dataLevel+1,S="data"+x,T=e.baseId;if(t+="var "+p+" = errors;var "+c+";",Array.isArray(n)){var P=e.schema.additionalItems;if(P===!1){t+=" "+c+" = "+d+".length <= "+n.length+"; ";var A=l;l=e.errSchemaPath+"/additionalItems",t+=" if (!"+c+") { ";var L=L||[];L.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+n.length+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have more than "+n.length+" items' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var O=t;t=L.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+O+"]); ":t+=" validate.errors = ["+O+"]; return false; ":t+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",l=A,u&&(y+="}",t+=" else { ")}var E=n;if(E){for(var _,R=-1,j=E.length-1;R<j;)if(_=E[R+=1],e.opts.strictKeywords?typeof _=="object"&&Object.keys(_).length>0||_===!1:e.util.schemaHasRules(_,e.RULES.all)){t+=" "+m+" = true; if ("+d+".length > "+R+") { ";var B=d+"["+R+"]";h.schema=_,h.schemaPath=s+"["+R+"]",h.errSchemaPath=l+"/"+R,h.errorPath=e.util.getPathExpr(e.errorPath,R,e.opts.jsonPointers,!0),h.dataPathArr[x]=R;var F=e.validate(h);h.baseId=T,e.util.varOccurences(F,S)<2?t+=" "+e.util.varReplace(F,S,B)+" ":t+=" var "+S+" = "+B+"; "+F+" ",t+=" } ",u&&(t+=" if ("+m+") { ",y+="}")}}if(typeof P=="object"&&(e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all))){h.schema=P,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",t+=" "+m+" = true; if ("+d+".length > "+n.length+") { for (var "+v+" = "+n.length+"; "+v+" < "+d+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var B=d+"["+v+"]";h.dataPathArr[x]=v;var F=e.validate(h);h.baseId=T,e.util.varOccurences(F,S)<2?t+=" "+e.util.varReplace(F,S,B)+" ":t+=" var "+S+" = "+B+"; "+F+" ",u&&(t+=" if (!"+m+") break; "),t+=" } } ",u&&(t+=" if ("+m+") { ",y+="}")}}else if(e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){h.schema=n,h.schemaPath=s,h.errSchemaPath=l,t+=" for (var "+v+" = 0; "+v+" < "+d+".length; "+v+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var B=d+"["+v+"]";h.dataPathArr[x]=v;var F=e.validate(h);h.baseId=T,e.util.varOccurences(F,S)<2?t+=" "+e.util.varReplace(F,S,B)+" ":t+=" var "+S+" = "+B+"; "+F+" ",u&&(t+=" if (!"+m+") break; "),t+=" }"}return u&&(t+=" "+y+" if ("+p+" == errors) {"),t},Ql=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,T,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n;var h=r=="maximum",y=h?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[y],v=e.opts.$data&&m&&m.$data,x=h?"<":">",S=h?">":"<",T=void 0;if(!(c||typeof n=="number"||n===void 0))throw new Error(r+" must be number");if(!(v||m===void 0||typeof m=="number"||typeof m=="boolean"))throw new Error(y+" must be number or boolean");if(v){var P=e.util.getData(m.$data,o,e.dataPathArr),A="exclusive"+a,L="exclType"+a,O="exclIsNumber"+a,E="op"+a,_="' + "+E+" + '";t+=" var schemaExcl"+a+" = "+P+"; ",P="schemaExcl"+a,t+=" var "+A+"; var "+L+" = typeof "+P+"; if ("+L+" != 'boolean' && "+L+" != 'undefined' && "+L+" != 'number') { ";var T=y,R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(T||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: '"+y+" should be boolean' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var j=t;t=R.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t+=" "+L+" == 'number' ? ( ("+A+" = "+p+" === undefined || "+P+" "+x+"= "+p+") ? "+d+" "+S+"= "+P+" : "+d+" "+S+" "+p+" ) : ( ("+A+" = "+P+" === true) ? "+d+" "+S+"= "+p+" : "+d+" "+S+" "+p+" ) || "+d+" !== "+d+") { var op"+a+" = "+A+" ? '"+x+"' : '"+x+"='; ",n===void 0&&(T=y,l=e.errSchemaPath+"/"+y,p=P,c=v)}else{var O=typeof m=="number",_=x;if(O&&c){var E="'"+_+"'";t+=" if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t+=" ( "+p+" === undefined || "+m+" "+x+"= "+p+" ? "+d+" "+S+"= "+m+" : "+d+" "+S+" "+p+" ) || "+d+" !== "+d+") { "}else{O&&n===void 0?(A=!0,T=y,l=e.errSchemaPath+"/"+y,p=m,S+="="):(O&&(p=Math[h?"min":"max"](m,n)),m===(O?p:!0)?(A=!0,T=y,l=e.errSchemaPath+"/"+y,S+="="):(A=!1,_+="="));var E="'"+_+"'";t+=" if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t+=" "+d+" "+S+" "+p+" || "+d+" !== "+d+") { "}}T=T||r;var R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(T||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+E+", limit: "+p+", exclusive: "+A+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be "+_+" ",c?t+="' + "+p:t+=""+p+"'"),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var j=t;return t=R.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",u&&(t+=" else { "),t},Kl=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,y,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;if(c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n,!(c||typeof n=="number"))throw new Error(r+" must be number");var h=r=="maxItems"?">":"<";t+="if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t+=" "+d+".length "+h+" "+p+") { ";var y=r,m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(y||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",r=="maxItems"?t+="more":t+="fewer",t+=" than ",c?t+="' + "+p+" + '":t+=""+n,t+=" items' "),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var v=t;return t=m.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",u&&(t+=" else { "),t},Jl=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,y,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;if(c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n,!(c||typeof n=="number"))throw new Error(r+" must be number");var h=r=="maxLength"?">":"<";t+="if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?t+=" "+d+".length ":t+=" ucs2length("+d+") ",t+=" "+h+" "+p+") { ";var y=r,m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(y||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be ",r=="maxLength"?t+="longer":t+="shorter",t+=" than ",c?t+="' + "+p+" + '":t+=""+n,t+=" characters' "),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var v=t;return t=m.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",u&&(t+=" else { "),t},Zl=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,y,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;if(c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n,!(c||typeof n=="number"))throw new Error(r+" must be number");var h=r=="maxProperties"?">":"<";t+="if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),t+=" Object.keys("+d+").length "+h+" "+p+") { ";var y=r,m=m||[];m.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(y||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",r=="maxProperties"?t+="more":t+="fewer",t+=" than ",c?t+="' + "+p+" + '":t+=""+n,t+=" properties' "),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var v=t;return t=m.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",u&&(t+=" else { "),t},qw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;if(c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n,!(c||typeof n=="number"))throw new Error(r+" must be number");t+="var division"+a+";if (",c&&(t+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),t+=" (division"+a+" = "+d+" / "+p+", ",e.opts.multipleOfPrecision?t+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":t+=" division"+a+" !== parseInt(division"+a+") ",t+=" ) ",c&&(t+=" ) "),t+=" ) { ";var h=h||[];h.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be multiple of ",c?t+="' + "+p:t+=""+p+"'"),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var y=t;return t=h.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+y+"]); ":t+=" validate.errors = ["+y+"]; return false; ":t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",u&&(t+=" else { "),t},Mw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="errs__"+a,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){p.schema=n,p.schemaPath=s,p.errSchemaPath=l,t+=" var "+c+" = errors; ";var y=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var m;p.opts.allErrors&&(m=p.opts.allErrors,p.opts.allErrors=!1),t+=" "+e.validate(p)+" ",p.createErrors=!0,m&&(p.opts.allErrors=m),e.compositeRule=p.compositeRule=y,t+=" if ("+h+") { ";var v=v||[];v.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var x=t;t=v.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+x+"]); ":t+=" validate.errors = ["+x+"]; return false; ":t+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(t+=" if (false) { ");return t},Nw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p="errs__"+a,h=e.util.copy(e),y="";h.level++;var m="valid"+h.level,v=h.baseId,x="prevValid"+a,S="passingSchemas"+a;t+="var "+p+" = errors , "+x+" = false , "+c+" = false , "+S+" = null; ";var T=e.compositeRule;e.compositeRule=h.compositeRule=!0;var P=n;if(P)for(var A,L=-1,O=P.length-1;L<O;)A=P[L+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(h.schema=A,h.schemaPath=s+"["+L+"]",h.errSchemaPath=l+"/"+L,t+=" "+e.validate(h)+" ",h.baseId=v):t+=" var "+m+" = true; ",L&&(t+=" if ("+m+" && "+x+") { "+c+" = false; "+S+" = ["+S+", "+L+"]; } else { ",y+="}"),t+=" if ("+m+") { "+c+" = "+x+" = true; "+S+" = "+L+"; }";return e.compositeRule=h.compositeRule=T,t+=""+y+"if (!"+c+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+S+" } ",e.opts.messages!==!1&&(t+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(t+=" } "),t},Ww=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c=e.opts.$data&&n&&n.$data,p;c?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",p="schema"+a):p=n;var h=c?"(new RegExp("+p+"))":e.usePattern(n);t+="if ( ",c&&(t+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),t+=" !"+h+".test("+d+") ) { ";var y=y||[];y.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",c?t+=""+p:t+=""+e.util.toQuotedString(n),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match pattern "`,c?t+="' + "+p+" + '":t+=""+e.util.escapeQuotes(n),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",c?t+="validate.schema"+s:t+=""+e.util.toQuotedString(n),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var m=t;return t=y.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+m+"]); ":t+=" validate.errors = ["+m+"]; return false; ":t+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",u&&(t+=" else { "),t},zw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="errs__"+a,p=e.util.copy(e),h="";p.level++;var y="valid"+p.level,m="key"+a,v="idx"+a,x=p.dataLevel=e.dataLevel+1,S="data"+x,T="dataProperties"+a,P=Object.keys(n||{}).filter(H),A=e.schema.patternProperties||{},L=Object.keys(A).filter(H),O=e.schema.additionalProperties,E=P.length||L.length,_=O===!1,R=typeof O=="object"&&Object.keys(O).length,j=e.opts.removeAdditional,B=_||R||j,F=e.opts.ownProperties,$=e.baseId,W=e.schema.required;if(W&&!(e.opts.$data&&W.$data)&&W.length<e.opts.loopRequired)var U=e.util.toHash(W);function H(ga){return ga!=="__proto__"}if(t+="var "+c+" = errors;var "+y+" = true;",F&&(t+=" var "+T+" = undefined;"),B){if(F?t+=" "+T+" = "+T+" || Object.keys("+d+"); for (var "+v+"=0; "+v+"<"+T+".length; "+v+"++) { var "+m+" = "+T+"["+v+"]; ":t+=" for (var "+m+" in "+d+") { ",E){if(t+=" var isAdditional"+a+" = !(false ",P.length)if(P.length>8)t+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var V=P;if(V)for(var z,J=-1,ue=V.length-1;J<ue;)z=V[J+=1],t+=" || "+m+" == "+e.util.toQuotedString(z)+" "}if(L.length){var xe=L;if(xe)for(var ye,Oe=-1,tt=xe.length-1;Oe<tt;)ye=xe[Oe+=1],t+=" || "+e.usePattern(ye)+".test("+m+") "}t+=" ); if (isAdditional"+a+") { "}if(j=="all")t+=" delete "+d+"["+m+"]; ";else{var Pe=e.errorPath,Fe="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),_)if(j)t+=" delete "+d+"["+m+"]; ";else{t+=" "+y+" = false; ";var Ee=l;l=e.errSchemaPath+"/additionalProperties";var pe=pe||[];pe.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { additionalProperty: '"+Fe+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is an invalid additional property":t+="should NOT have additional properties",t+="' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var de=t;t=pe.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+de+"]); ":t+=" validate.errors = ["+de+"]; return false; ":t+=" var err = "+de+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=Ee,u&&(t+=" break; ")}else if(R)if(j=="failing"){t+=" var "+c+" = errors; ";var pt=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=O,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Ie=d+"["+m+"]";p.dataPathArr[x]=m;var ne=e.validate(p);p.baseId=$,e.util.varOccurences(ne,S)<2?t+=" "+e.util.varReplace(ne,S,Ie)+" ":t+=" var "+S+" = "+Ie+"; "+ne+" ",t+=" if (!"+y+") { errors = "+c+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+d+"["+m+"]; } ",e.compositeRule=p.compositeRule=pt}else{p.schema=O,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Ie=d+"["+m+"]";p.dataPathArr[x]=m;var ne=e.validate(p);p.baseId=$,e.util.varOccurences(ne,S)<2?t+=" "+e.util.varReplace(ne,S,Ie)+" ":t+=" var "+S+" = "+Ie+"; "+ne+" ",u&&(t+=" if (!"+y+") break; ")}e.errorPath=Pe}E&&(t+=" } "),t+=" } ",u&&(t+=" if ("+y+") { ",h+="}")}var St=e.opts.useDefaults&&!e.compositeRule;if(P.length){var wt=P;if(wt)for(var z,_e=-1,ar=wt.length-1;_e<ar;){z=wt[_e+=1];var Ce=n[z];if(e.opts.strictKeywords?typeof Ce=="object"&&Object.keys(Ce).length>0||Ce===!1:e.util.schemaHasRules(Ce,e.RULES.all)){var xt=e.util.getProperty(z),Ie=d+xt,or=St&&Ce.default!==void 0;p.schema=Ce,p.schemaPath=s+xt,p.errSchemaPath=l+"/"+e.util.escapeFragment(z),p.errorPath=e.util.getPath(e.errorPath,z,e.opts.jsonPointers),p.dataPathArr[x]=e.util.toQuotedString(z);var ne=e.validate(p);if(p.baseId=$,e.util.varOccurences(ne,S)<2){ne=e.util.varReplace(ne,S,Ie);var Re=Ie}else{var Re=S;t+=" var "+S+" = "+Ie+"; "}if(or)t+=" "+ne+" ";else{if(U&&U[z]){t+=" if ( "+Re+" === undefined ",F&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(z)+"') "),t+=") { "+y+" = false; ";var Pe=e.errorPath,Ee=l,je=e.util.escapeQuotes(z);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Pe,z,e.opts.jsonPointers)),l=e.errSchemaPath+"/required";var pe=pe||[];pe.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+je+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+je+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var de=t;t=pe.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+de+"]); ":t+=" validate.errors = ["+de+"]; return false; ":t+=" var err = "+de+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=Ee,e.errorPath=Pe,t+=" } else { "}else u?(t+=" if ( "+Re+" === undefined ",F&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(z)+"') "),t+=") { "+y+" = true; } else { "):(t+=" if ("+Re+" !== undefined ",F&&(t+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(z)+"') "),t+=" ) { ");t+=" "+ne+" } "}}u&&(t+=" if ("+y+") { ",h+="}")}}if(L.length){var fe=L;if(fe)for(var ye,Rr=-1,ya=fe.length-1;Rr<ya;){ye=fe[Rr+=1];var Ce=A[ye];if(e.opts.strictKeywords?typeof Ce=="object"&&Object.keys(Ce).length>0||Ce===!1:e.util.schemaHasRules(Ce,e.RULES.all)){p.schema=Ce,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ye),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ye),F?t+=" "+T+" = "+T+" || Object.keys("+d+"); for (var "+v+"=0; "+v+"<"+T+".length; "+v+"++) { var "+m+" = "+T+"["+v+"]; ":t+=" for (var "+m+" in "+d+") { ",t+=" if ("+e.usePattern(ye)+".test("+m+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var Ie=d+"["+m+"]";p.dataPathArr[x]=m;var ne=e.validate(p);p.baseId=$,e.util.varOccurences(ne,S)<2?t+=" "+e.util.varReplace(ne,S,Ie)+" ":t+=" var "+S+" = "+Ie+"; "+ne+" ",u&&(t+=" if (!"+y+") break; "),t+=" } ",u&&(t+=" else "+y+" = true; "),t+=" } ",u&&(t+=" if ("+y+") { ",h+="}")}}}return u&&(t+=" "+h+" if ("+c+" == errors) {"),t},Vw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="errs__"+a,p=e.util.copy(e),h="";p.level++;var y="valid"+p.level;if(t+="var "+c+" = errors;",e.opts.strictKeywords?typeof n=="object"&&Object.keys(n).length>0||n===!1:e.util.schemaHasRules(n,e.RULES.all)){p.schema=n,p.schemaPath=s,p.errSchemaPath=l;var m="key"+a,v="idx"+a,x="i"+a,S="' + "+m+" + '",T=p.dataLevel=e.dataLevel+1,P="data"+T,A="dataProperties"+a,L=e.opts.ownProperties,O=e.baseId;L&&(t+=" var "+A+" = undefined; "),L?t+=" "+A+" = "+A+" || Object.keys("+d+"); for (var "+v+"=0; "+v+"<"+A+".length; "+v+"++) { var "+m+" = "+A+"["+v+"]; ":t+=" for (var "+m+" in "+d+") { ",t+=" var startErrs"+a+" = errors; ";var E=m,_=e.compositeRule;e.compositeRule=p.compositeRule=!0;var R=e.validate(p);p.baseId=O,e.util.varOccurences(R,P)<2?t+=" "+e.util.varReplace(R,P,E)+" ":t+=" var "+P+" = "+E+"; "+R+" ",e.compositeRule=p.compositeRule=_,t+=" if (!"+y+") { for (var "+x+"=startErrs"+a+"; "+x+"<errors; "+x+"++) { vErrors["+x+"].propertyName = "+m+"; } var err = ",e.createErrors!==!1?(t+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { propertyName: '"+S+"' } ",e.opts.messages!==!1&&(t+=" , message: 'property name \\'"+S+"\\' is invalid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),u&&(t+=" break; "),t+=" } }"}return u&&(t+=" "+h+" if ("+c+" == errors) {"),t},Uw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p=e.opts.$data&&n&&n.$data;p&&(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ");var h="schema"+a;if(!p)if(n.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var T=[],y=n;if(y)for(var m,v=-1,x=y.length-1;v<x;){m=y[v+=1];var S=e.schema.properties[m];S&&(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all))||(T[T.length]=m)}}else var T=n;if(p||T.length){var P=e.errorPath,A=p||T.length>=e.opts.loopRequired,L=e.opts.ownProperties;if(u)if(t+=" var missing"+a+"; ",A){p||(t+=" var "+h+" = validate.schema"+s+"; ");var O="i"+a,E="schema"+a+"["+O+"]",_="' + "+E+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,E,e.opts.jsonPointers)),t+=" var "+c+" = true; ",p&&(t+=" if (schema"+a+" === undefined) "+c+" = true; else if (!Array.isArray(schema"+a+")) "+c+" = false; else {"),t+=" for (var "+O+" = 0; "+O+" < "+h+".length; "+O+"++) { "+c+" = "+d+"["+h+"["+O+"]] !== undefined ",L&&(t+=" && Object.prototype.hasOwnProperty.call("+d+", "+h+"["+O+"]) "),t+="; if (!"+c+") break; } ",p&&(t+=" } "),t+=" if (!"+c+") { ";var R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+_+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var j=t;t=R.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var B=T;if(B)for(var F,O=-1,$=B.length-1;O<$;){F=B[O+=1],O&&(t+=" || ");var W=e.util.getProperty(F),U=d+W;t+=" ( ( "+U+" === undefined ",L&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(F)+"') "),t+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?F:W)+") ) "}t+=") { ";var E="missing"+a,_="' + "+E+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,E,!0):P+" + "+E);var R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+_+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var j=t;t=R.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+j+"]); ":t+=" validate.errors = ["+j+"]; return false; ":t+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else if(A){p||(t+=" var "+h+" = validate.schema"+s+"; ");var O="i"+a,E="schema"+a+"["+O+"]",_="' + "+E+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,E,e.opts.jsonPointers)),p&&(t+=" if ("+h+" && !Array.isArray("+h+")) { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+_+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+h+" !== undefined) { "),t+=" for (var "+O+" = 0; "+O+" < "+h+".length; "+O+"++) { if ("+d+"["+h+"["+O+"]] === undefined ",L&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", "+h+"["+O+"]) "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+_+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(t+=" } ")}else{var H=T;if(H)for(var F,V=-1,z=H.length-1;V<z;){F=H[V+=1];var W=e.util.getProperty(F),_=e.util.escapeQuotes(F),U=d+W;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,F,e.opts.jsonPointers)),t+=" if ( "+U+" === undefined ",L&&(t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(F)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+_+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+_+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=P}else u&&(t+=" if (true) {");return t},Gw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d="data"+(o||""),c="valid"+a,p=e.opts.$data&&n&&n.$data,h;if(p?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",h="schema"+a):h=n,(n||p)&&e.opts.uniqueItems!==!1){p&&(t+=" var "+c+"; if ("+h+" === false || "+h+" === undefined) "+c+" = true; else if (typeof "+h+" != 'boolean') "+c+" = false; else { "),t+=" var i = "+d+".length , "+c+" = true , j; if (i > 1) { ";var y=e.schema.items&&e.schema.items.type,m=Array.isArray(y);if(!y||y=="object"||y=="array"||m&&(y.indexOf("object")>=0||y.indexOf("array")>=0))t+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+c+" = false; break outer; } } } ";else{t+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var v="checkDataType"+(m?"s":"");t+=" if ("+e.util[v](y,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(t+=` if (typeof item == 'string') item = '"' + item; `),t+=" if (typeof itemIndices[item] == 'number') { "+c+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}t+=" } ",p&&(t+=" } "),t+=" if (!"+c+") { ";var x=x||[];x.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(t+=" , schema: ",p?t+="validate.schema"+s:t+=""+n,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var S=t;t=x.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+S+"]); ":t+=" validate.errors = ["+S+"]; return false; ":t+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",u&&(t+=" else { ")}else u&&(t+=" if (true) { ");return t},Hw={$ref:Aw,allOf:Ow,anyOf:Ew,$comment:Lw,const:Dw,contains:jw,dependencies:$w,enum:_w,format:Rw,if:kw,items:Bw,maximum:Ql,minimum:Ql,maxItems:Kl,minItems:Kl,maxLength:Jl,minLength:Jl,maxProperties:Zl,minProperties:Zl,multipleOf:qw,not:Mw,oneOf:Nw,pattern:Ww,properties:zw,propertyNames:Vw,required:Uw,uniqueItems:Gw,validate:Np},Xl=Hw,Wa=_r.toHash,Qw=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],t=["number","integer","string","array","object","boolean","null"];return e.all=Wa(r),e.types=Wa(t),e.forEach(function(a){a.rules=a.rules.map(function(o){var n;if(typeof o=="object"){var s=Object.keys(o)[0];n=o[s],o=s,n.forEach(function(u){r.push(u),e.all[u]=!0})}r.push(o);var l=e.all[o]={keyword:o,code:Xl[o],implements:n};return l}),e.all.$comment={keyword:"$comment",code:Xl.$comment},a.type&&(e.types[a.type]=a)}),e.keywords=Wa(r.concat(i)),e.custom={},e},Yl=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"],Kw=function(e,r){for(var i=0;i<r.length;i++){e=JSON.parse(JSON.stringify(e));var t=r[i].split("/"),a=e,o;for(o=1;o<t.length;o++)a=a[t[o]];for(o=0;o<Yl.length;o++){var n=Yl[o],s=a[n];s&&(a[n]={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},Jw=vo.MissingRef,Zw=td;function td(e,r,i){var t=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof r=="function"&&(i=r,r=void 0);var a=o(e).then(function(){var s=t._addSchema(e,void 0,r);return s.validate||n(s)});return i&&a.then(function(s){i(null,s)},i),a;function o(s){var l=s.$schema;return l&&!t.getSchema(l)?td.call(t,{$ref:l},!0):Promise.resolve()}function n(s){try{return t._compile(s)}catch(u){if(u instanceof Jw)return l(u);throw u}function l(u){var d=u.missingSchema;if(h(d))throw new Error("Schema "+d+" is loaded but "+u.missingRef+" cannot be resolved");var c=t._loadingSchemas[d];return c||(c=t._loadingSchemas[d]=t._opts.loadSchema(d),c.then(p,p)),c.then(function(y){if(!h(d))return o(y).then(function(){h(d)||t.addSchema(y,d,void 0,r)})}).then(function(){return n(s)});function p(){delete t._loadingSchemas[d]}function h(y){return t._refs[y]||t._schemas[y]}}}}var Xw=function(e,r,i){var t=" ",a=e.level,o=e.dataLevel,n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,d,c="data"+(o||""),p="valid"+a,h="errs__"+a,y=e.opts.$data&&n&&n.$data,m;y?(t+=" var schema"+a+" = "+e.util.getData(n.$data,o,e.dataPathArr)+"; ",m="schema"+a):m=n;var v=this,x="definition"+a,S=v.definition,T="",P,A,L,O,E;if(y&&S.$data){E="keywordValidate"+a;var _=S.validateSchema;t+=" var "+x+" = RULES.custom['"+r+"'].definition; var "+E+" = "+x+".validate;"}else{if(O=e.useCustomRule(v,n,e.schema,e),!O)return;m="validate.schema"+s,E=O.code,P=S.compile,A=S.inline,L=S.macro}var R=E+".errors",j="i"+a,B="ruleErr"+a,F=S.async;if(F&&!e.async)throw new Error("async keyword in sync schema");if(A||L||(t+=""+R+" = null;"),t+="var "+h+" = errors;var "+p+";",y&&S.$data&&(T+="}",t+=" if ("+m+" === undefined) { "+p+" = true; } else { ",_&&(T+="}",t+=" "+p+" = "+x+".validateSchema("+m+"); if ("+p+") { ")),A)S.statements?t+=" "+O.validate+" ":t+=" "+p+" = "+O.validate+"; ";else if(L){var $=e.util.copy(e),T="";$.level++;var W="valid"+$.level;$.schema=O.validate,$.schemaPath="";var U=e.compositeRule;e.compositeRule=$.compositeRule=!0;var H=e.validate($).replace(/validate\.schema/g,E);e.compositeRule=$.compositeRule=U,t+=" "+H}else{var V=V||[];V.push(t),t="",t+=" "+E+".call( ",e.opts.passContext?t+="this":t+="self",P||S.schema===!1?t+=" , "+c+" ":t+=" , "+m+" , "+c+" , validate.schema"+e.schemaPath+" ",t+=" , (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var z=o?"data"+(o-1||""):"parentData",J=o?e.dataPathArr[o]:"parentDataProperty";t+=" , "+z+" , "+J+" , rootData ) ";var ue=t;t=V.pop(),S.errors===!1?(t+=" "+p+" = ",F&&(t+="await "),t+=""+ue+"; "):F?(R="customErrors"+a,t+=" var "+R+" = null; try { "+p+" = await "+ue+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+R+" = e.errors; else throw e; } "):t+=" "+R+" = null; "+p+" = "+ue+"; "}if(S.modifying&&(t+=" if ("+z+") "+c+" = "+z+"["+J+"];"),t+=""+T,S.valid)u&&(t+=" if (true) { ");else{t+=" if ( ",S.valid===void 0?(t+=" !",L?t+=""+W:t+=""+p):t+=" "+!S.valid+" ",t+=") { ",d=v.keyword;var V=V||[];V.push(t),t="";var V=V||[];V.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var xe=t;t=V.pop(),!e.compositeRule&&u?e.async?t+=" throw new ValidationError(["+xe+"]); ":t+=" validate.errors = ["+xe+"]; return false; ":t+=" var err = "+xe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var ye=t;t=V.pop(),A?S.errors?S.errors!="full"&&(t+=" for (var "+j+"="+h+"; "+j+"<errors; "+j+"++) { var "+B+" = vErrors["+j+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(t+=" "+B+".schema = "+m+"; "+B+".data = "+c+"; "),t+=" } "):S.errors===!1?t+=" "+ye+" ":(t+=" if ("+h+" == errors) { "+ye+" } else { for (var "+j+"="+h+"; "+j+"<errors; "+j+"++) { var "+B+" = vErrors["+j+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(t+=" "+B+".schema = "+m+"; "+B+".data = "+c+"; "),t+=" } } "):L?(t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: '"+(d||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; ")):S.errors===!1?t+=" "+ye+" ":(t+=" if (Array.isArray("+R+")) { if (vErrors === null) vErrors = "+R+"; else vErrors = vErrors.concat("+R+"); errors = vErrors.length; for (var "+j+"="+h+"; "+j+"<errors; "+j+"++) { var "+B+" = vErrors["+j+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; "+B+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(t+=" "+B+".schema = "+m+"; "+B+".data = "+c+"; "),t+=" } } else { "+ye+" } "),t+=" } ",u&&(t+=" else { ")}return t},Yw="http://json-schema.org/draft-07/schema#",ex="http://json-schema.org/draft-07/schema#",tx="Core schema meta-schema",rx={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},ix=["object","boolean"],ax={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},rd={$schema:Yw,$id:ex,title:tx,definitions:rx,type:ix,properties:ax,default:!0},ep=rd,ox={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:ep.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:ep.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},nx=/^[a-z_$][a-z0-9_$-]*$/i,sx=Xw,lx=ox,px={add:dx,get:cx,remove:ux,validate:Ya};function dx(e,r){var i=this.RULES;if(i.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!nx.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var t=r.type;if(Array.isArray(t))for(var a=0;a<t.length;a++)n(e,t[a],r);else n(e,t,r);var o=r.metaSchema;o&&(r.$data&&this._opts.$data&&(o={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(o,!0))}i.keywords[e]=i.all[e]=!0;function n(s,l,u){for(var d,c=0;c<i.length;c++){var p=i[c];if(p.type==l){d=p;break}}d||(d={type:l,rules:[]},i.push(d));var h={keyword:s,definition:u,custom:!0,code:sx,implements:u.implements};d.rules.push(h),i.custom[s]=h}return this}function cx(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||!1}function ux(e){var r=this.RULES;delete r.keywords[e],delete r.all[e],delete r.custom[e];for(var i=0;i<r.length;i++)for(var t=r[i].rules,a=0;a<t.length;a++)if(t[a].keyword==e){t.splice(a,1);break}return this}function Ya(e,r){Ya.errors=null;var i=this._validateKeyword=this._validateKeyword||this.compile(lx,!0);if(i(e))return!0;if(Ya.errors=i.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(i.errors));return!1}var fx="http://json-schema.org/draft-07/schema#",hx="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",mx="Meta-schema for $data reference (JSON Schema extension proposal)",yx="object",gx=["$data"],bx={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},vx=!1,Sx={$schema:fx,$id:hx,description:mx,type:yx,required:gx,properties:bx,additionalProperties:vx},id=sw,Zt=bo,wx=hw,ad=Rp,xx=Mp,Ix=ww,Cx=Qw,od=Kw,nd=_r,Tx=me;me.prototype.validate=Fx;me.prototype.compile=Ax;me.prototype.addSchema=Ox;me.prototype.addMetaSchema=Ex;me.prototype.validateSchema=Lx;me.prototype.getSchema=jx;me.prototype.removeSchema=_x;me.prototype.addFormat=zx;me.prototype.errorsText=Wx;me.prototype._addSchema=Rx;me.prototype._compile=kx;me.prototype.compileAsync=Zw;var ma=px;me.prototype.addKeyword=ma.add;me.prototype.getKeyword=ma.get;me.prototype.removeKeyword=ma.remove;me.prototype.validateKeyword=ma.validate;var sd=vo;me.ValidationError=sd.Validation;me.MissingRefError=sd.MissingRef;me.$dataMetaSchema=od;var la="http://json-schema.org/draft-07/schema",tp=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Px=["/properties"];function me(e){if(!(this instanceof me))return new me(e);e=this._opts=nd.copy(e)||{},Kx(this),this._schemas={},this._refs={},this._fragments={},this._formats=Ix(e.format),this._cache=e.cache||new wx,this._loadingSchemas={},this._compilations=[],this.RULES=Cx(),this._getId=Bx(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath=="property"&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=xx),this._metaOpts=Qx(this),e.formats&&Gx(this),e.keywords&&Hx(this),Vx(this),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),Ux(this)}function Fx(e,r){var i;if(typeof e=="string"){if(i=this.getSchema(e),!i)throw new Error('no schema with key or ref "'+e+'"')}else{var t=this._addSchema(e);i=t.validate||this._compile(t)}var a=i(r);return i.$async!==!0&&(this.errors=i.errors),a}function Ax(e,r){var i=this._addSchema(e,void 0,r);return i.validate||this._compile(i)}function Ox(e,r,i,t){if(Array.isArray(e)){for(var a=0;a<e.length;a++)this.addSchema(e[a],void 0,i,t);return this}var o=this._getId(e);if(o!==void 0&&typeof o!="string")throw new Error("schema id must be string");return r=Zt.normalizeId(r||o),pd(this,r),this._schemas[r]=this._addSchema(e,i,t,!0),this}function Ex(e,r,i){return this.addSchema(e,r,i,!0),this}function Lx(e,r){var i=e.$schema;if(i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this._opts.defaultMeta||Dx(this),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var t=this.validate(i,e);if(!t&&r){var a="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(a);else throw new Error(a)}return t}function Dx(e){var r=e._opts.meta;return e._opts.defaultMeta=typeof r=="object"?e._getId(r)||r:e.getSchema(la)?la:void 0,e._opts.defaultMeta}function jx(e){var r=ld(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return $x(this,e)}}function $x(e,r){var i=Zt.schema.call(e,{schema:{}},r);if(i){var t=i.schema,a=i.root,o=i.baseId,n=id.call(e,t,a,void 0,o);return e._fragments[r]=new ad({ref:r,fragment:!0,schema:t,root:a,baseId:o,validate:n}),n}}function ld(e,r){return r=Zt.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function _x(e){if(e instanceof RegExp)return Qi(this,this._schemas,e),Qi(this,this._refs,e),this;switch(typeof e){case"undefined":return Qi(this,this._schemas),Qi(this,this._refs),this._cache.clear(),this;case"string":var r=ld(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var i=this._opts.serialize,t=i?i(e):e;this._cache.del(t);var a=this._getId(e);a&&(a=Zt.normalizeId(a),delete this._schemas[a],delete this._refs[a])}return this}function Qi(e,r,i){for(var t in r){var a=r[t];!a.meta&&(!i||i.test(t))&&(e._cache.del(a.cacheKey),delete r[t])}}function Rx(e,r,i,t){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var a=this._opts.serialize,o=a?a(e):e,n=this._cache.get(o);if(n)return n;t=t||this._opts.addUsedSchema!==!1;var s=Zt.normalizeId(this._getId(e));s&&t&&pd(this,s);var l=this._opts.validateSchema!==!1&&!r,u;l&&!(u=s&&s==Zt.normalizeId(e.$schema))&&this.validateSchema(e,!0);var d=Zt.ids.call(this,e),c=new ad({id:s,schema:e,localRefs:d,cacheKey:o,meta:i});return s[0]!="#"&&t&&(this._refs[s]=c),this._cache.put(o,c),l&&u&&this.validateSchema(e,!0),c}function kx(e,r){if(e.compiling)return e.validate=a,a.schema=e.schema,a.errors=null,a.root=r||a,e.schema.$async===!0&&(a.$async=!0),a;e.compiling=!0;var i;e.meta&&(i=this._opts,this._opts=this._metaOpts);var t;try{t=id.call(this,e.schema,r,e.localRefs)}catch(o){throw delete e.validate,o}finally{e.compiling=!1,e.meta&&(this._opts=i)}return e.validate=t,e.refs=t.refs,e.refVal=t.refVal,e.root=t.root,t;function a(){var o=e.validate,n=o.apply(this,arguments);return a.errors=o.errors,n}}function Bx(e){switch(e.schemaId){case"auto":return Nx;case"id":return qx;default:return Mx}}function qx(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function Mx(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function Nx(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function Wx(e,r){if(e=e||this.errors,!e)return"No errors";r=r||{};for(var i=r.separator===void 0?", ":r.separator,t=r.dataVar===void 0?"data":r.dataVar,a="",o=0;o<e.length;o++){var n=e[o];n&&(a+=t+n.dataPath+" "+n.message+i)}return a.slice(0,-i.length)}function zx(e,r){return typeof r=="string"&&(r=new RegExp(r)),this._formats[e]=r,this}function Vx(e){var r;if(e._opts.$data&&(r=Sx,e.addMetaSchema(r,r.$id,!0)),e._opts.meta!==!1){var i=rd;e._opts.$data&&(i=od(i,Px)),e.addMetaSchema(i,la,!0),e._refs["http://json-schema.org/schema"]=la}}function Ux(e){var r=e._opts.schemas;if(r)if(Array.isArray(r))e.addSchema(r);else for(var i in r)e.addSchema(r[i],i)}function Gx(e){for(var r in e._opts.formats){var i=e._opts.formats[r];e.addFormat(r,i)}}function Hx(e){for(var r in e._opts.keywords){var i=e._opts.keywords[r];e.addKeyword(r,i)}}function pd(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function Qx(e){for(var r=nd.copy(e._opts),i=0;i<tp.length;i++)delete r[tp[i]];return r}function Kx(e){var r=e._opts.logger;if(r===!1)e.logger={log:za,warn:za,error:za};else{if(r===void 0&&(r=console),!(typeof r=="object"&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}function za(){}var Jx=PS(Tx),dd={NonNumericAggregation:"nonNumericAggregation",DuplicateSeriesID:"duplicateSeriesId"},$t={Required:"required",MinLength:"minLength",MinItems:"minItems",MaxItems:"maxItems",Pattern:"pattern",AdditionalProperties:"additionalProperties",Enum:"enum",AnyOf:"anyOf"},J$={BadData:"badData",EmptyDataSet:"emptyDataSet",HistogramEmptyField:"histogramEmptyField",BarElementExceedsLimit:"barElementExceedsLimit",LineChartExceedsLimit:"lineChartExceedsLimit",BoxPlotExceedsLimit:"boxPlotExceedsLimit",BoxPlotOutliersExceedsLimit:"boxPlotOutliersExceedsLimit",PieChartExceedsLimit:"pieChartExceedsLimit",GaugeExceedsLimit:"gaugeExceedsLimit",PieChartMixOfNegativePositiveSlices:"PieChartMixOfNegativePositiveSlices",NegativeValueInSqrtCalculation:"negativeValueInSqrtCalculation",NegativeValueInLogCalculation:"negativeValueInLogCalculation",NegativeValueInXAxisLogScale:"negativeValueInXAxisLogScale",NegativeValueInYAxisLogScale:"negativeValueInYAxisLogScale"};function Zx(e){let r=e.lastIndexOf("/");return r!==-1?e.slice(r+1):e}async function Xx(e){let r=await vt();return e.map(i=>{let t=i,a=i.dataPath.startsWith(".")?i.dataPath.substring(1):i.dataPath;switch(i.keyword){case $t.Required:t={...i,message:He(r.requiredProperty,{dataPath:a,missingProperty:i.params.missingProperty})};break;case $t.MinLength:t={...i,message:He(r.minLength,{dataPath:a,limit:i.params.limit.toString()})};break;case $t.MinItems:t={...i,message:He(r.minItems,{dataPath:a,limit:i.params.limit.toString()})};break;case $t.MaxItems:t={...i,message:He(r.maxItems,{dataPath:a,limit:i.params.limit.toString()})};break;case $t.Pattern:i.params.pattern==="\\w+"&&(t={...i,message:He(r.whiteSpacePattern,{dataPath:a}),params:{}});break;case $t.AdditionalProperties:t={...i,message:He(r.additionalProperty,{dataPath:a,additionalProperty:i.params.additionalProperty})};break;case $t.Enum:t={...i,message:He(r.enumValues,{dataPath:a,allowedValues:i.params.allowedValues.join(", ")})};break;case $t.AnyOf:{let o=[];i.schemaPath==="#/properties/legend/anyOf"&&(o=Qt.definitions.WebChart.properties.legend.anyOf.map(n=>Zx(n.$ref))),t={...i,params:o,message:He(r.anyOfValues,{dataPath:a,schemaOptions:o.join(", ")})};break}}return t})}function Ki(e,r){return{...e,$ref:`#/definitions/${r}`}}async function Yx(e){let r,i=await vt(),t=Ae(e);try{await t.load()}catch{let a=t?.url??"",o=we(t)?.portalItem?.id??"";r={keyword:ir.LayerLoadFailure,message:He(i.layerLoadFailure,{url:a,portalItemId:o}),params:{url:a,portalItemId:o}}}return r}function e0(){let e=new Jx({allErrors:!0});return async r=>{let i=[],t=qe(r?.series),a=Qt;switch(t){case w.GaugeSeries:a=Ki(Qt,"WebGaugeChart");break;case w.BoxPlotSeries:a=Ki(Qt,"WebBoxPlot");break;case w.RadarSeries:a=Ki(Qt,"WebRadarChart");break;default:a=Ki(Qt,"WebChart");break}let o=e.compile(a);return o(r),o.errors!==null&&o.errors!==void 0&&(i=await Xx(o.errors)),i}}var t0=e0();async function r0(e){let{seriesConfigs:r,queryObject:i,allowUsingObjectIdStat:t}=e,a=[],o=await po(i),n=await vt();for(let s=0;s<r.length;s+=1){let l=r[s].query?.outStatistics;if(l!==void 0)for(let u=0;u<l.length;u+=1){let d=l[u],c=co(d.onStatisticField,o);if(c&&!(c.type===We.OID&&t||jp(c))&&d.statisticType!==se.Count){let p=`series[${s}].query.outStatistics[${u}]`;a.push({keyword:dd.NonNumericAggregation,message:He(n.nonNumericAggregation,{dataPath:p}),dataPath:p,params:{fieldName:d.onStatisticField,fieldType:c.type,aggregationRequested:d.statisticType}})}}}return a}async function i0(e){let r=[],i=await vt();if(e!==void 0&&e.series.length>1){let t=new Set,a=0;e.series.forEach((o,n)=>{if(t.add(o.id),t.size===a){let s=`series[${n}].id`;r.push({keyword:dd.DuplicateSeriesID,message:He(i.duplicateSeriesID,{dataPath:s,seriesID:o.id,seriesName:o.name}),dataPath:s,params:{seriesId:o.id,seriesName:o.name}})}else a+=1})}return r}function a0(e){let r=new Set,i=Uv(e);if(i){let t=qe(e.series),a=bt(e.series);t===w.GaugeSeries&&!Jv(e)||a===k.PieFromFields||a===k.BarAndLineFromFields||a===k.BoxPlotMonoField||a===k.BoxPlotMultiFields||a===k.BoxPlotMonoFieldAndSplitBy||a===k.BoxPlotMultiFieldsAndSplitBy||r.add(i.x);let o=t===w.ScatterSeries||t===w.BoxPlotSeries||a===k.BarAndLineNoAggregation||a===k.BarAndLineSplitByNoAggregation||a===k.PieNoAggregation,n=[ro,ni,ko,Ia,Bo,Xt.outStatistics.outStatisticFieldName??""],s=[];if(t===w.BoxPlotSeries?s=Yv({showMean:e.showMean,seriesConfig:e.series}):s=e.series.map(l=>"y"in l?l.y:void 0).filter(l=>l!==void 0).flat(),o?s.forEach(l=>r.add(l)):n.push(...s),e.series.forEach(l=>{let{query:u}=l;u&&(jr(u.where)||r.add(oo(u.where)),u.groupByFieldsForStatistics&&u.groupByFieldsForStatistics.forEach(d=>r.add(d)),u.outStatistics&&u.outStatistics.forEach(d=>r.add(d.onStatisticField)))}),t===w.GaugeSeries&&e.axes?.[0]!==void 0){let l=e.axes?.[0];l&&"minimumFromField"in l&&typeof l.minimumFromField=="string"&&r.add(l.minimumFromField),l&&"maximumFromField"in l&&typeof l.maximumFromField=="string"&&r.add(l.maximumFromField)}n.forEach(l=>{r.delete(l)})}return Array.from(r.values()).filter(t=>!gt(t))}async function o0(e,r){let i,t=await vt(),a=await po(r),o=a0(e).filter(n=>!co(n,a));if(o.length>0){let n=o.join(", ");i={keyword:ir.LayerFieldsNotFound,message:He(t.layerFieldsNotFound,{fieldNames:n}),params:n}}return i}async function n0(e){let{input:r,queryObject:i,allowUsingObjectIdStat:t}=e,a=[];if(i!==void 0){let o=await r0({seriesConfigs:r.series,queryObject:i,allowUsingObjectIdStat:t});a=a.concat(o)}return a=a.concat(await i0(r)),a}async function s0(e,r){let i=[];if(e!==void 0){let t=await Yx(e);if(t!==void 0)i=i.concat(t);else if(r!==void 0){let a=await o0(r,e);a!==void 0&&(i=i.concat(a))}}return i}async function Z$(e){let{input:r,queryObject:i,allowUsingObjectIdStat:t}=e,a;if(Vv(r?.version).versionStatus===It.Newer)a={valid:!0,schemaErrors:[],customErrors:[],warnings:[]};else{let o=await t0(r),n=[],s=[];r!==void 0&&o.length===0&&(s=await s0(i,r),s.length===0&&(n=await n0({input:r,queryObject:i,allowUsingObjectIdStat:t}))),a={valid:o.length===0&&n.length===0&&s.length===0,schemaErrors:o,customErrors:s,warnings:n}}return a}function X$(e){let r=qe(e?.series),i=!1;switch(r){case w.HistogramSeries:{i=(e?.series?.[0]?.x?.trim()?.length??0)===0;break}case w.ScatterSeries:{let t=e?.series;i=(t?.[0]?.x?.length??0)===0||(t?.[0]?.y?.length??0)===0;break}case w.PieSeries:{let t=e?.series;bt(t)===k.PieFromFields?i=(t?.[0]?.query?.outStatistics?.length??0)===0:i=(t?.[0]?.x?.length??0)===0||t?.[0]?.x===ni;break}case w.BoxPlotSeries:{let t=e?.series;i=[t?.[0]?.y].flat().length===0||t?.[0]?.y==="";break}case w.ComboLineAndBarSeries:case w.RadarSeries:case w.BarSeries:case w.LineSeries:{let t=e?.series;bt(t)===k.BarAndLineFromFields?i=(t?.[0]?.query?.outStatistics?.length??0)===0:i=(t?.[0]?.x?.trim()?.length??0)===0;break}}return i}var Y$=[{unit:Le.Second,threshold:6e4,unitMs:1e3,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:Le.Minute,threshold:36e5,unitMs:1e3*60,preferredIntervalSize:[1,2,3,5,6,10,12,15,20,30,60]},{unit:Le.Hour,threshold:864e5,unitMs:1e3*60*60,preferredIntervalSize:[1,2,3,4,6,8,12,24]},{unit:Le.Day,threshold:6048e5,unitMs:1e3*60*60*24,preferredIntervalSize:[1,2,3,4,5,6,7]},{unit:Le.Week,threshold:24192e5,unitMs:1e3*60*60*24*7,preferredIntervalSize:[1,2,3,4]},{unit:Le.Month,threshold:290304e5,unitMs:1e3*60*60*24*7*4,preferredIntervalSize:[1,2,3,4,6,12]},{unit:Le.Year,threshold:Number.MAX_SAFE_INTEGER,unitMs:1e3*60*60*24*7*4*12,preferredIntervalSize:[1,2,4,5,10,25,50,100]}],e_="${ groupByFieldsForStatistics } WHEN ${ dateField }>='${ startDate }' AND ${ dateField }${ endDateOperand }'${ endDate }' THEN '${ y }|${ binIndex}'";return{a:yt,b:w,c:se,d:va,e:l0,f:Do,g:Mr,h:p0,i:at,j:jo,k:d0,l:Sa,m:Le,n:c0,o:$o,p:lr,q:u0,r:It,s:f0,t:_o,u:Ro,v:h0,w:pr,x:We,y:dr,z:wa,A:cr,B:ai,C:xa,D:De,E:y0,F:g0,G:b0,H:oi,I:ni,J:Ia,K:ko,L:Bo,M:ot,N:X,O:le,P:li,Q:Ea,R:im,S:pm,T:km,U:zm,V:qs,W:Aa,X:Ag,Y:Cy,Z:mg,_:Kg,$:Al,aa:Ol,ba:El,ca:Ll,da:Dl,ea:D,fa:He,ga:np,ha:gj,ia:bj,ja:vj,ka:Sj,la:lt,ma:sp,na:G,oa:wj,pa:xj,qa:Xt,ra:hb,sa:Ij,ta:et,ua:yb,va:Cj,wa:Tj,xa:Pj,ya:ro,za:st,Aa:pp,Ba:Fj,Ca:pa,Da:Y,Ea:dp,Fa:K,Ga:Zr,Ha:vb,Ia:Aj,Ja:Va,Ka:Oj,La:Ej,Ma:er,Na:Wi,Oa:Lj,Pa:Sb,Qa:wb,Ra:xb,Sa:Dj,Ta:Ib,Ua:$r,Va:Tb,Wa:Fb,Xa:jj,Ya:Ab,Za:$j,_a:_j,$a:Ob,ab:Eb,bb:Rj,cb:kj,db:Qr,eb:Bj,fb:qj,gb:Mj,hb:Nj,ib:Wj,jb:zj,kb:Vj,lb:Lb,mb:Db,nb:jb,ob:Uj,pb:$b,qb:Gj,rb:Hj,sb:Qj,tb:_b,ub:Kj,vb:Jj,wb:Zj,xb:k,yb:Xj,zb:Yj,Ab:qe,Bb:e$,Cb:t$,Db:Dv,Eb:_v,Fb:Tp,Gb:r$,Hb:i$,Ib:a$,Jb:o$,Kb:n$,Lb:gt,Mb:qv,Nb:s$,Ob:l$,Pb:p$,Qb:d$,Rb:c$,Sb:u$,Tb:f$,Ub:h$,Vb:m$,Wb:y$,Xb:g$,Yb:Mv,Zb:Nv,_b:Vv,$b:Uv,ac:b$,bc:oo,cc:Xr,dc:jr,ec:v$,fc:bt,gc:S$,hc:w$,ic:oe,jc:Kv,kc:Jv,lc:x$,mc:Zv,nc:ra,oc:Ma,pc:ia,qc:Yv,rc:eS,sc:I$,tc:C$,uc:Yt,vc:ir,wc:T$,xc:no,yc:P$,zc:we,Ac:Fp,Bc:F$,Cc:A$,Dc:Ae,Ec:O$,Fc:Kr,Gc:E$,Hc:dS,Ic:L$,Jc:D$,Kc:j$,Lc:uS,Mc:$$,Nc:_$,Oc:fS,Pc:R$,Qc:Jr,Rc:lo,Sc:k$,Tc:wS,Uc:B$,Vc:po,Wc:q$,Xc:jp,Yc:M$,Zc:N$,_c:W$,$c:z$,ad:V$,bd:U$,cd:G$,dd:H$,ed:CS,fd:Q$,gd:K$,hd:dd,id:J$,jd:Z$,kd:X$,ld:Y$,md:e_}},"geometry/support/jsonUtils","layers/support/fieldUtils","renderers/support/jsonUtils","layers/support/Field","request","rest/support/FeatureSet","layers/FeatureLayer","portal/Portal","rest/support/StatisticDefinition","rest/support/AttributeBinsQuery","rest/support/Query","time/TimeExtent","core/promiseUtils")