@arcgis/charts-components 4.34.0-next.166 → 4.34.0-next.167
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.
- package/dist/cdn/{2VZTNYHJ.js → 22HAJS76.js} +2 -2
- package/dist/cdn/{IA7WO6ES.js → 2535R5PC.js} +2 -2
- package/dist/cdn/{YMNATLRF.js → 2CFK6ZGN.js} +2 -2
- package/dist/cdn/{5NNVKFNV.js → 2HLV245O.js} +2 -2
- package/dist/cdn/{7CZVVYWQ.js → 2KHVS7WH.js} +2 -2
- package/dist/cdn/{KFMRU6KM.js → 2KSMATEZ.js} +2 -2
- package/dist/cdn/{LYKEUZCB.js → 3ZOB75K4.js} +1 -1
- package/dist/cdn/{Z6FJDKDB.js → 42DIZGTA.js} +2 -2
- package/dist/cdn/{ED2KMW4M.js → 43RDZAGT.js} +2 -2
- package/dist/cdn/{2N5BXAYR.js → 462QYHVE.js} +2 -2
- package/dist/cdn/{ALDRN6BR.js → 4FI2EOQV.js} +2 -2
- package/dist/cdn/{OIBTC3OJ.js → 4H5OLLOU.js} +2 -2
- package/dist/cdn/{ZJG3ICRS.js → 4HU5AU4X.js} +2 -2
- package/dist/cdn/{QRJQHM4E.js → 4IADR3UY.js} +2 -2
- package/dist/cdn/{KYH5KUJY.js → 4NCKPB3B.js} +2 -2
- package/dist/cdn/{TVUU7E7I.js → 4SDOYRXS.js} +2 -2
- package/dist/cdn/{RC4ML5ZC.js → 4TXW5PLG.js} +2 -2
- package/dist/cdn/{SGQWUSWD.js → 57IZWWAV.js} +2 -2
- package/dist/cdn/{6CPR7E7E.js → 5CPUHDJW.js} +2 -2
- package/dist/cdn/{EEZJ25AP.js → 5OJWDGAA.js} +2 -2
- package/dist/cdn/{UBSJEZ27.js → 5OMCHSQE.js} +2 -2
- package/dist/cdn/{TDSAKVMH.js → 5QLXXF7Q.js} +2 -2
- package/dist/cdn/{XO5HI3BD.js → 5ZI7DYS6.js} +2 -2
- package/dist/cdn/{GT4DIBGL.js → 62NWDWEU.js} +2 -2
- package/dist/cdn/{GN6EX6KX.js → 62RI5PYV.js} +2 -2
- package/dist/cdn/{ZEJYS4HQ.js → 63ATITIJ.js} +2 -2
- package/dist/cdn/{2467CQUK.js → 6CI7B47O.js} +2 -2
- package/dist/cdn/{XTIQKRGV.js → 6E2P5VCJ.js} +2 -2
- package/dist/cdn/{PVIHXOEW.js → 6EBSLMVZ.js} +2 -2
- package/dist/cdn/{GSZSCDJX.js → 6HURMJKI.js} +2 -2
- package/dist/cdn/{JMSBNR4A.js → 6N6RCPW2.js} +2 -2
- package/dist/cdn/{CEFWRML5.js → 6S4DGDXP.js} +2 -2
- package/dist/cdn/{EOA5UBX6.js → 6XD5SUMN.js} +2 -2
- package/dist/cdn/{TN4GDZ7V.js → 6XRJZ7YH.js} +2 -2
- package/dist/cdn/{G5YGVOKT.js → 77C3MJUI.js} +2 -2
- package/dist/cdn/{SKELRJRD.js → 7BJWCD25.js} +2 -2
- package/dist/cdn/{UHYYP63L.js → 7H5VUNSS.js} +2 -2
- package/dist/cdn/{HFYCEATB.js → 7ISVTKH7.js} +2 -2
- package/dist/cdn/{EOGXAAJ5.js → 7QIJH5W5.js} +2 -2
- package/dist/cdn/{72IBIBIN.js → A7ED7GWN.js} +2 -2
- package/dist/cdn/{SNC2JS3K.js → AAKUEIRJ.js} +2 -2
- package/dist/cdn/{UOMVVNHK.js → AIQ6CLIE.js} +2 -2
- package/dist/cdn/{3ZXFUPFF.js → B4ZOSNRG.js} +7 -7
- package/dist/cdn/{UKHHLEXX.js → BCZ24IUW.js} +2 -2
- package/dist/cdn/{X73ZUHJC.js → BFFWYLPL.js} +2 -2
- package/dist/cdn/{ITBYIXQU.js → BIGSG4YC.js} +2 -2
- package/dist/cdn/{T3XFT5L4.js → BQVCRUMH.js} +2 -2
- package/dist/cdn/{CQS7HIDK.js → C4VBU7EP.js} +2 -2
- package/dist/cdn/{2L2IOYOU.js → CGDRVIMM.js} +2 -2
- package/dist/cdn/{XVIADDBZ.js → CH63PKZC.js} +2 -2
- package/dist/cdn/{FSLDYE6D.js → CLDZEOA6.js} +2 -2
- package/dist/cdn/{PUWRU2OD.js → CS6YOBP7.js} +2 -2
- package/dist/cdn/{GXXKZKPQ.js → DBEZUYTT.js} +2 -2
- package/dist/cdn/{ONNWZ6KJ.js → DC44BBXM.js} +2 -2
- package/dist/cdn/{VL3V2YOS.js → DGYTTYA2.js} +2 -2
- package/dist/cdn/{SLJEPKA2.js → DJWWYNZ7.js} +2 -2
- package/dist/cdn/{YWPM3MFC.js → DNREQ3UC.js} +1 -1
- package/dist/cdn/{LX45X3S4.js → DOW4SQQ6.js} +2 -2
- package/dist/cdn/{C2BEIZ3Y.js → DWMZMMGZ.js} +2 -2
- package/dist/cdn/{HUBL5HYI.js → DXRQ6BNC.js} +2 -2
- package/dist/cdn/{JV42PHEA.js → EHSA7LRS.js} +2 -2
- package/dist/cdn/{3QAUW6NB.js → EM5EVRY7.js} +2 -2
- package/dist/cdn/{ZXVIF2EP.js → ERPOO4EE.js} +2 -2
- package/dist/cdn/{4DB3BMRM.js → ESV3I2AO.js} +1 -1
- package/dist/cdn/{F56ARBBZ.js → F45GPS3L.js} +2 -2
- package/dist/cdn/{QLTY37CH.js → F67LZPRG.js} +2 -2
- package/dist/cdn/{UUAIJNVR.js → FAKZ36X2.js} +2 -2
- package/dist/cdn/{IWUELCPX.js → FCFU4N7P.js} +1 -1
- package/dist/cdn/{6Q5OEJ5G.js → FD7PGJ6E.js} +2 -2
- package/dist/cdn/{U4FYWVSA.js → FHKE54PE.js} +2 -2
- package/dist/cdn/{BSEMBUBF.js → FJAC52ZQ.js} +2 -2
- package/dist/cdn/{MN5JAMPL.js → GDFYLWVI.js} +2 -2
- package/dist/cdn/{M22KZHYU.js → GZYINBUG.js} +2 -2
- package/dist/cdn/{FSQ5W2KA.js → HN554LHT.js} +2 -2
- package/dist/cdn/{UCRXWJQN.js → HPHKOC4Z.js} +2 -2
- package/dist/cdn/{WZ5E3CUD.js → HTDY37VW.js} +2 -2
- package/dist/cdn/{7JUVKIW2.js → HUQCSYST.js} +2 -2
- package/dist/cdn/{RTJC3GQN.js → HZLHAK4V.js} +2 -2
- package/dist/cdn/{V73EG7DJ.js → I4Y5YE5N.js} +2 -2
- package/dist/cdn/{P462CDCL.js → ICTE6EJI.js} +2 -2
- package/dist/cdn/{7JP773RP.js → IDN3FXBB.js} +2 -2
- package/dist/cdn/{S7GG25FT.js → IIRASQZJ.js} +2 -2
- package/dist/cdn/{5E7WAKYD.js → IL7O7WQH.js} +2 -2
- package/dist/cdn/{BB7S267T.js → IUJAV3O5.js} +2 -2
- package/dist/cdn/{KTCNQDUX.js → IXLXR6W3.js} +2 -2
- package/dist/cdn/{TIOVOKP7.js → IZQG3ILI.js} +2 -2
- package/dist/cdn/{SVYAFOPA.js → J4AW4S36.js} +2 -2
- package/dist/cdn/{4LIFWDWC.js → J56Z47OW.js} +1 -1
- package/dist/cdn/{P6AFJCLJ.js → JVQJSYTB.js} +2 -2
- package/dist/cdn/{EVW2U66T.js → KFFGEUAZ.js} +2 -2
- package/dist/cdn/{BTPDJGXN.js → KOBSBIVX.js} +2 -2
- package/dist/cdn/{QHW6PXPN.js → KQ45V4YJ.js} +2 -2
- package/dist/cdn/{XPRBZUMA.js → KV4OR6Q7.js} +2 -2
- package/dist/cdn/{5YCZFQKO.js → KWDZVZMW.js} +2 -2
- package/dist/cdn/{E6UNXUQT.js → KXNBG33Y.js} +2 -2
- package/dist/cdn/{NXZTRSTM.js → LEC6YOF3.js} +2 -2
- package/dist/cdn/{E7PI747Z.js → LNI2HNCW.js} +2 -2
- package/dist/cdn/{3XJESUIW.js → LT6O24KP.js} +2 -2
- package/dist/cdn/{VNGTOWEG.js → LUHQ5T6V.js} +2 -2
- package/dist/cdn/{UGABXA7K.js → M4MVD5NJ.js} +2 -2
- package/dist/cdn/{UWJNFY2S.js → MDODF7UG.js} +2 -2
- package/dist/cdn/{DVCA65CA.js → MECK3YEC.js} +2 -2
- package/dist/cdn/{ZKFF5YAE.js → MIAXER3D.js} +2 -2
- package/dist/cdn/{4EDODSCQ.js → MJFX7JDK.js} +2 -2
- package/dist/cdn/{WIAJNTZK.js → MJISBI6G.js} +2 -2
- package/dist/cdn/{NJLHDS6Z.js → MK7JQE5F.js} +2 -2
- package/dist/cdn/{J6XDRUGU.js → MPW3DDYS.js} +2 -2
- package/dist/cdn/{WPJQBHN3.js → MTSGWLWO.js} +2 -2
- package/dist/cdn/{EO472F7S.js → MYP6WOLL.js} +2 -2
- package/dist/cdn/{BFNCIOB6.js → MZOUGMCK.js} +2 -2
- package/dist/cdn/{NQWTE5EA.js → NDOOJUUG.js} +2 -2
- package/dist/cdn/{KJ6D5HFT.js → NH3DMFLB.js} +2 -2
- package/dist/cdn/{XSXT6GZ2.js → NN7XCRRL.js} +2 -2
- package/dist/cdn/{SYOP5NGV.js → NVVEI4TI.js} +2 -2
- package/dist/cdn/{BRSOE73M.js → NZAIVWU5.js} +2 -2
- package/dist/cdn/{RVCN37DP.js → O63NGIWD.js} +2 -2
- package/dist/cdn/{IIRJENPU.js → OAGLQMDD.js} +2 -2
- package/dist/cdn/{BEST3YKF.js → OCUBBJUM.js} +2 -2
- package/dist/cdn/{YCFGOSYH.js → OEUYFEI6.js} +2 -2
- package/dist/cdn/{MJ574YZM.js → OHLWHDIR.js} +2 -2
- package/dist/cdn/{HNVKWIEW.js → OVTKIEPK.js} +2 -2
- package/dist/cdn/{7TZGE5YC.js → P5G322WQ.js} +2 -2
- package/dist/cdn/{J5DWAU5T.js → P6KW7QI7.js} +2 -2
- package/dist/cdn/{M7HIAJH7.js → PFR2NPUV.js} +2 -2
- package/dist/cdn/{KVBCOD3Q.js → PJHNE2XF.js} +2 -2
- package/dist/cdn/{MEYMBHQ7.js → PJU3DZDS.js} +2 -2
- package/dist/cdn/{XO2QGVLW.js → PLQ7AFTW.js} +2 -2
- package/dist/cdn/{HKUAUMKJ.js → PMFTLDXN.js} +2 -2
- package/dist/cdn/{2PUUI7EF.js → PO4AMAIX.js} +1 -1
- package/dist/cdn/{M4EOKTDK.js → PZKCRTRK.js} +2 -2
- package/dist/cdn/{JV26IXY4.js → QQD47BQ3.js} +2 -2
- package/dist/cdn/{K4HWMP2U.js → QYN3EAAQ.js} +2 -2
- package/dist/cdn/{KKQTQCDF.js → RDQB7TI3.js} +2 -2
- package/dist/cdn/{A3OLBRRO.js → RWXTVN63.js} +2 -2
- package/dist/cdn/{JZQSFQR4.js → RYDX7OP4.js} +1 -1
- package/dist/cdn/{SYFSEMKK.js → SB3EAJKH.js} +2 -2
- package/dist/cdn/{GBQWVBRL.js → SMH5TTEH.js} +2 -2
- package/dist/cdn/{PMLKAJ4E.js → SOT6TF4E.js} +2 -2
- package/dist/cdn/{4X3FZDMQ.js → SQJYBGJO.js} +1 -1
- package/dist/cdn/{EOVPJQGX.js → SZEH64LI.js} +2 -2
- package/dist/cdn/{IBSGS5JG.js → SZU6UCE4.js} +2 -2
- package/dist/cdn/{VSHXE6UK.js → TC2VWW57.js} +2 -2
- package/dist/cdn/{DIEHQOVL.js → TLF6BDWN.js} +2 -2
- package/dist/cdn/{VFYR2NLS.js → TPHWVTJ2.js} +2 -2
- package/dist/cdn/{P2H4EYCM.js → TUAOKAJA.js} +2 -2
- package/dist/cdn/{X6PQFQAJ.js → TX5KF6RO.js} +2 -2
- package/dist/cdn/{CWKTQZJM.js → U2CMUH7C.js} +2 -2
- package/dist/cdn/{7GPZX2Y6.js → U3GFRA4X.js} +2 -2
- package/dist/cdn/{VBUDS7IW.js → UABBDVVO.js} +2 -2
- package/dist/cdn/{QN3EJV2J.js → UBHPPUWS.js} +2 -2
- package/dist/cdn/{2N2XWU7S.js → UCRGQQSX.js} +2 -2
- package/dist/cdn/{B7MXJCE5.js → V3X6PVX2.js} +2 -2
- package/dist/cdn/{IVBWFWAM.js → VF5HFYM4.js} +2 -2
- package/dist/cdn/{KNYIZRQP.js → VHUIHUMM.js} +2 -2
- package/dist/cdn/{A332LQGP.js → VLFY7SL4.js} +2 -2
- package/dist/cdn/{FZRZ2LZN.js → VOFMCS5Z.js} +2 -2
- package/dist/cdn/{IISX3LJG.js → VP75B5UL.js} +2 -2
- package/dist/cdn/{HCJHDOQ4.js → VUNIK7ME.js} +2 -2
- package/dist/cdn/{O6QQXEDF.js → VW46WZNC.js} +2 -2
- package/dist/cdn/{LIFIJC4T.js → W3I5FEDE.js} +2 -2
- package/dist/cdn/{KTW4DJEY.js → WC5QUXAL.js} +2 -2
- package/dist/cdn/{WL7CHFRS.js → WEDIU7NB.js} +2 -2
- package/dist/cdn/{4ZZ4CIZP.js → WHPKDUMJ.js} +2 -2
- package/dist/cdn/{L6MZWLVU.js → WJNKBPVV.js} +2 -2
- package/dist/cdn/{QWHUSELL.js → WUOUXIBL.js} +2 -2
- package/dist/cdn/{2QI6H6TR.js → X7ZMKHMX.js} +2 -2
- package/dist/cdn/{TMSXEH7W.js → XCMYGAAB.js} +2 -2
- package/dist/cdn/{Y2EBKENG.js → XCPEMPS3.js} +2 -2
- package/dist/cdn/{IOVHS3DW.js → XF72FXAY.js} +2 -2
- package/dist/cdn/{ZAOL23R2.js → XQWHBNOA.js} +2 -2
- package/dist/cdn/{LWNJEJ2R.js → XSH7QILF.js} +2 -2
- package/dist/cdn/{LIMV4LYY.js → XSJXNHQL.js} +2 -2
- package/dist/cdn/{GZHOOOB6.js → XUOBQIP5.js} +1 -1
- package/dist/cdn/{FDBBURQQ.js → XZ623MDQ.js} +2 -2
- package/dist/cdn/{N4PU5OKI.js → Y4SMF3UZ.js} +2 -2
- package/dist/cdn/{G7SQXY2N.js → Y73JF6A6.js} +1 -1
- package/dist/cdn/{HUZUJ7R2.js → YG4N62NR.js} +2 -2
- package/dist/cdn/{IXZZDNGT.js → YP7LDH5R.js} +2 -2
- package/dist/cdn/{OYPOYU6U.js → YTFR64ZQ.js} +2 -2
- package/dist/cdn/{BLM26XNN.js → Z7DED25Z.js} +2 -2
- package/dist/cdn/{ODX2B6ZQ.js → ZTUF33VE.js} +2 -2
- package/dist/cdn/{222BQGQU.js → ZUJOQ2VU.js} +2 -2
- package/dist/cdn/{OTFRRHSH.js → ZZBSICMM.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/baseline-stacking.js +1 -1
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/bg_BG2.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/config-update.js +1 -1
- package/dist/chunks/data.js +1 -1
- package/dist/chunks/data2.js +1 -1
- package/dist/chunks/default.js +1 -1
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/heat-chart-model.js +1 -1
- package/dist/chunks/histogram-data.js +1 -1
- package/dist/chunks/histogram-model.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/index2.js +1 -1
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/index5.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/interfaces2.js +1 -1
- package/dist/chunks/interfaces3.js +1 -1
- package/dist/chunks/interfaces4.js +1 -1
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-with-baseline-stacking.js +1 -1
- package/dist/chunks/model-with-data-labels.js +1 -1
- package/dist/chunks/model-with-multi-axes.js +1 -1
- package/dist/chunks/model-with-rotation.js +1 -1
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/series-types.js +1 -1
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/sk_SK.js +1 -1
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/type-guards.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/model.js +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{A as fi,B as Xt,l as ls,q as ve,r as vr,s as wa,t as Sr,u as hi,v as Ia,w as Re}from"./4X3FZDMQ.js";import{b as hs,c as rt,d as it}from"./4DB3BMRM.js";import{a as x,b as le,c as va,e as Sa,f as Vr,h as It,i as ds,k as me,l as xt,n as cs,o as gr,q as Lt,s as ps,t as us,v as br,w as qe}from"./IWUELCPX.js";import{G as tt}from"./GZHOOOB6.js";import{b as W,d as os}from"./4LIFWDWC.js";export default $arcgis.t(([{substitute:Je},Dn,dd,cd,Yu,cn,Ku,Xu,eh,th,rh,ih,ud,Ln])=>{var ws=W((yi,Ss)=>{(function(t,e){typeof yi=="object"&&typeof Ss<"u"?e(yi):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(yi,function(t){"use strict";function e(){for(var b=arguments.length,f=Array(b),v=0;v<b;v++)f[v]=arguments[v];if(f.length>1){f[0]=f[0].slice(0,-1);for(var I=f.length-1,T=1;T<I;++T)f[T]=f[T].slice(1,-1);return f[I]=f[I].slice(1),f.join("")}else return f[0]}function i(b){return"(?:"+b+")"}function a(b){return b===void 0?"undefined":b===null?"null":Object.prototype.toString.call(b).split(" ").pop().split("]").shift().toLowerCase()}function r(b){return b.toUpperCase()}function n(b){return b!=null?b instanceof Array?b:typeof b.length!="number"||b.split||b.setInterval||b.call?[b]:Array.prototype.slice.call(b):[]}function s(b,f){var v=b;if(f)for(var I in f)v[I]=f[I];return v}function o(b){var f="[A-Za-z]",v="[\\x0D]",I="[0-9]",T="[\\x22]",N=e(I,"[A-Fa-f]"),z="[\\x0A]",Y="[\\x20]",re=i(i("%[EFef]"+N+"%"+N+N+"%"+N+N)+"|"+i("%[89A-Fa-f]"+N+"%"+N+N)+"|"+i("%"+N+N)),xe="[\\:\\/\\?\\#\\[\\]\\@]",Z="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",he=e(xe,Z),Te=b?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",ce=b?"[\\uE000-\\uF8FF]":"[]",X=e(f,I,"[\\-\\.\\_\\~]",Te),fe=i(f+e(f,I,"[\\+\\-\\.]")+"*"),ne=i(i(re+"|"+e(X,Z,"[\\:]"))+"*"),Jt=i(i("25[0-5]")+"|"+i("2[0-4]"+I)+"|"+i("1"+I+I)+"|"+i("[1-9]"+I)+"|"+I),Be=i(i("25[0-5]")+"|"+i("2[0-4]"+I)+"|"+i("1"+I+I)+"|"+i("0?[1-9]"+I)+"|0?0?"+I),He=i(Be+"\\."+Be+"\\."+Be+"\\."+Be),se=i(N+"{1,4}"),We=i(i(se+"\\:"+se)+"|"+He),Qe=i(i(se+"\\:")+"{6}"+We),ht=i("\\:\\:"+i(se+"\\:")+"{5}"+We),Yt=i(i(se)+"?\\:\\:"+i(se+"\\:")+"{4}"+We),vt=i(i(i(se+"\\:")+"{0,1}"+se)+"?\\:\\:"+i(se+"\\:")+"{3}"+We),_r=i(i(i(se+"\\:")+"{0,2}"+se)+"?\\:\\:"+i(se+"\\:")+"{2}"+We),ci=i(i(i(se+"\\:")+"{0,3}"+se)+"?\\:\\:"+se+"\\:"+We),pi=i(i(i(se+"\\:")+"{0,4}"+se)+"?\\:\\:"+We),pr=i(i(i(se+"\\:")+"{0,5}"+se)+"?\\:\\:"+se),ur=i(i(i(se+"\\:")+"{0,6}"+se)+"?\\:\\:"),St=i([Qe,ht,Yt,vt,_r,ci,pi,pr,ur].join("|")),hr=i(i(X+"|"+re)+"+"),ga=i(St+"\\%25"+hr),Kt=i(St+i("\\%25|\\%(?!"+N+"{2})")+hr),ep=i("[vV]"+N+"+\\."+e(X,Z,"[\\:]")+"+"),tp=i("\\["+i(Kt+"|"+St+"|"+ep)+"\\]"),is=i(i(re+"|"+e(X,Z))+"*"),qr=i(tp+"|"+He+"(?!"+is+")|"+is),Mr=i(I+"*"),as=i(i(ne+"@")+"?"+qr+i("\\:"+Mr)+"?"),Br=i(re+"|"+e(X,Z,"[\\:\\@]")),rp=i(Br+"*"),ns=i(Br+"+"),ip=i(i(re+"|"+e(X,Z,"[\\@]"))+"+"),wt=i(i("\\/"+rp)+"*"),fr=i("\\/"+i(ns+wt)+"?"),ba=i(ip+wt),ui=i(ns+wt),mr="(?!"+Br+")",Tg=i(wt+"|"+fr+"|"+ba+"|"+ui+"|"+mr),yr=i(i(Br+"|"+e("[\\/\\?]",ce))+"*"),Wr=i(i(Br+"|[\\/\\?]")+"*"),ss=i(i("\\/\\/"+as+wt)+"|"+fr+"|"+ui+"|"+mr),ap=i(fe+"\\:"+ss+i("\\?"+yr)+"?"+i("\\#"+Wr)+"?"),np=i(i("\\/\\/"+as+wt)+"|"+fr+"|"+ba+"|"+mr),sp=i(np+i("\\?"+yr)+"?"+i("\\#"+Wr)+"?"),Cg=i(ap+"|"+sp),Fg=i(fe+"\\:"+ss+i("\\?"+yr)+"?"),Pg="^("+fe+")\\:"+i(i("\\/\\/("+i("("+ne+")@")+"?("+qr+")"+i("\\:("+Mr+")")+"?)")+"?("+wt+"|"+fr+"|"+ui+"|"+mr+")")+i("\\?("+yr+")")+"?"+i("\\#("+Wr+")")+"?$",Og="^(){0}"+i(i("\\/\\/("+i("("+ne+")@")+"?("+qr+")"+i("\\:("+Mr+")")+"?)")+"?("+wt+"|"+fr+"|"+ba+"|"+mr+")")+i("\\?("+yr+")")+"?"+i("\\#("+Wr+")")+"?$",Eg="^("+fe+")\\:"+i(i("\\/\\/("+i("("+ne+")@")+"?("+qr+")"+i("\\:("+Mr+")")+"?)")+"?("+wt+"|"+fr+"|"+ui+"|"+mr+")")+i("\\?("+yr+")")+"?$",Ag="^"+i("\\#("+Wr+")")+"?$",$g="^"+i("("+ne+")@")+"?("+qr+")"+i("\\:("+Mr+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",f,I,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",X,Z),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",X,Z),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",X,Z),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",X,Z),"g"),NOT_QUERY:new RegExp(e("[^\\%]",X,Z,"[\\:\\@\\/\\?]",ce),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",X,Z,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",X,Z),"g"),UNRESERVED:new RegExp(X,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",X,he),"g"),PCT_ENCODED:new RegExp(re,"g"),IPV4ADDRESS:new RegExp("^("+He+")$"),IPV6ADDRESS:new RegExp("^\\[?("+St+")"+i(i("\\%25|\\%(?!"+N+"{2})")+"("+hr+")")+"?\\]?$")}}var l=o(!1),d=o(!0),p=function(){function b(f,v){var I=[],T=!0,N=!1,z=void 0;try{for(var Y=f[Symbol.iterator](),re;!(T=(re=Y.next()).done)&&(I.push(re.value),!(v&&I.length===v));T=!0);}catch(xe){N=!0,z=xe}finally{try{!T&&Y.return&&Y.return()}finally{if(N)throw z}}return I}return function(f,v){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f))return b(f,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(b){if(Array.isArray(b)){for(var f=0,v=Array(b.length);f<b.length;f++)v[f]=b[f];return v}else return Array.from(b)},h=2147483647,c=36,m=1,g=26,y=38,S=700,C=72,w=128,P="-",O=/^xn--/,A=/[^\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"},F=c-m,D=Math.floor,L=String.fromCharCode;function j(b){throw new RangeError(R[b])}function E(b,f){for(var v=[],I=b.length;I--;)v[I]=f(b[I]);return v}function $(b,f){var v=b.split("@"),I="";v.length>1&&(I=v[0]+"@",b=v[1]),b=b.replace(_,".");var T=b.split("."),N=E(T,f).join(".");return I+N}function q(b){for(var f=[],v=0,I=b.length;v<I;){var T=b.charCodeAt(v++);if(T>=55296&&T<=56319&&v<I){var N=b.charCodeAt(v++);(N&64512)==56320?f.push(((T&1023)<<10)+(N&1023)+65536):(f.push(T),v--)}else f.push(T)}return f}var ae=function(f){return String.fromCodePoint.apply(String,u(f))},G=function(f){return f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:c},Q=function(f,v){return f+22+75*(f<26)-((v!=0)<<5)},U=function(f,v,I){var T=0;for(f=I?D(f/S):f>>1,f+=D(f/v);f>F*g>>1;T+=c)f=D(f/F);return D(T+(F+1)*f/(f+y))},B=function(f){var v=[],I=f.length,T=0,N=w,z=C,Y=f.lastIndexOf(P);Y<0&&(Y=0);for(var re=0;re<Y;++re)f.charCodeAt(re)>=128&&j("not-basic"),v.push(f.charCodeAt(re));for(var xe=Y>0?Y+1:0;xe<I;){for(var Z=T,he=1,Te=c;;Te+=c){xe>=I&&j("invalid-input");var ce=G(f.charCodeAt(xe++));(ce>=c||ce>D((h-T)/he))&&j("overflow"),T+=ce*he;var X=Te<=z?m:Te>=z+g?g:Te-z;if(ce<X)break;var fe=c-X;he>D(h/fe)&&j("overflow"),he*=fe}var ne=v.length+1;z=U(T-Z,ne,Z==0),D(T/ne)>h-N&&j("overflow"),N+=D(T/ne),T%=ne,v.splice(T++,0,N)}return String.fromCodePoint.apply(String,v)},ge=function(f){var v=[];f=q(f);var I=f.length,T=w,N=0,z=C,Y=!0,re=!1,xe=void 0;try{for(var Z=f[Symbol.iterator](),he;!(Y=(he=Z.next()).done);Y=!0){var Te=he.value;Te<128&&v.push(L(Te))}}catch(Kt){re=!0,xe=Kt}finally{try{!Y&&Z.return&&Z.return()}finally{if(re)throw xe}}var ce=v.length,X=ce;for(ce&&v.push(P);X<I;){var fe=h,ne=!0,Jt=!1,Be=void 0;try{for(var He=f[Symbol.iterator](),se;!(ne=(se=He.next()).done);ne=!0){var We=se.value;We>=T&&We<fe&&(fe=We)}}catch(Kt){Jt=!0,Be=Kt}finally{try{!ne&&He.return&&He.return()}finally{if(Jt)throw Be}}var Qe=X+1;fe-T>D((h-N)/Qe)&&j("overflow"),N+=(fe-T)*Qe,T=fe;var ht=!0,Yt=!1,vt=void 0;try{for(var _r=f[Symbol.iterator](),ci;!(ht=(ci=_r.next()).done);ht=!0){var pi=ci.value;if(pi<T&&++N>h&&j("overflow"),pi==T){for(var pr=N,ur=c;;ur+=c){var St=ur<=z?m:ur>=z+g?g:ur-z;if(pr<St)break;var hr=pr-St,ga=c-St;v.push(L(Q(St+hr%ga,0))),pr=D(hr/ga)}v.push(L(Q(pr,0))),z=U(N,Qe,X==ce),N=0,++X}}}catch(Kt){Yt=!0,vt=Kt}finally{try{!ht&&_r.return&&_r.return()}finally{if(Yt)throw vt}}++N,++T}return v.join("")},De=function(f){return $(f,function(v){return O.test(v)?B(v.slice(4).toLowerCase()):v})},ke=function(f){return $(f,function(v){return A.test(v)?"xn--"+ge(v):v})},K={version:"2.1.0",ucs2:{decode:q,encode:ae},decode:B,encode:ge,toASCII:ke,toUnicode:De},we={};function Fe(b){var f=b.charCodeAt(0),v=void 0;return f<16?v="%0"+f.toString(16).toUpperCase():f<128?v="%"+f.toString(16).toUpperCase():f<2048?v="%"+(f>>6|192).toString(16).toUpperCase()+"%"+(f&63|128).toString(16).toUpperCase():v="%"+(f>>12|224).toString(16).toUpperCase()+"%"+(f>>6&63|128).toString(16).toUpperCase()+"%"+(f&63|128).toString(16).toUpperCase(),v}function je(b){for(var f="",v=0,I=b.length;v<I;){var T=parseInt(b.substr(v+1,2),16);if(T<128)f+=String.fromCharCode(T),v+=3;else if(T>=194&&T<224){if(I-v>=6){var N=parseInt(b.substr(v+4,2),16);f+=String.fromCharCode((T&31)<<6|N&63)}else f+=b.substr(v,6);v+=6}else if(T>=224){if(I-v>=9){var z=parseInt(b.substr(v+4,2),16),Y=parseInt(b.substr(v+7,2),16);f+=String.fromCharCode((T&15)<<12|(z&63)<<6|Y&63)}else f+=b.substr(v,9);v+=9}else f+=b.substr(v,3),v+=3}return f}function $t(b,f){function v(I){var T=je(I);return T.match(f.UNRESERVED)?T:I}return b.scheme&&(b.scheme=String(b.scheme).replace(f.PCT_ENCODED,v).toLowerCase().replace(f.NOT_SCHEME,"")),b.userinfo!==void 0&&(b.userinfo=String(b.userinfo).replace(f.PCT_ENCODED,v).replace(f.NOT_USERINFO,Fe).replace(f.PCT_ENCODED,r)),b.host!==void 0&&(b.host=String(b.host).replace(f.PCT_ENCODED,v).toLowerCase().replace(f.NOT_HOST,Fe).replace(f.PCT_ENCODED,r)),b.path!==void 0&&(b.path=String(b.path).replace(f.PCT_ENCODED,v).replace(b.scheme?f.NOT_PATH:f.NOT_PATH_NOSCHEME,Fe).replace(f.PCT_ENCODED,r)),b.query!==void 0&&(b.query=String(b.query).replace(f.PCT_ENCODED,v).replace(f.NOT_QUERY,Fe).replace(f.PCT_ENCODED,r)),b.fragment!==void 0&&(b.fragment=String(b.fragment).replace(f.PCT_ENCODED,v).replace(f.NOT_FRAGMENT,Fe).replace(f.PCT_ENCODED,r)),b}function gt(b){return b.replace(/^0*(.*)/,"$1")||"0"}function Ie(b,f){var v=b.match(f.IPV4ADDRESS)||[],I=p(v,2),T=I[1];return T?T.split(".").map(gt).join("."):b}function be(b,f){var v=b.match(f.IPV6ADDRESS)||[],I=p(v,3),T=I[1],N=I[2];if(T){for(var z=T.toLowerCase().split("::").reverse(),Y=p(z,2),re=Y[0],xe=Y[1],Z=xe?xe.split(":").map(gt):[],he=re.split(":").map(gt),Te=f.IPV4ADDRESS.test(he[he.length-1]),ce=Te?7:8,X=he.length-ce,fe=Array(ce),ne=0;ne<ce;++ne)fe[ne]=Z[ne]||he[X+ne]||"";Te&&(fe[ce-1]=Ie(fe[ce-1],f));var Jt=fe.reduce(function(Qe,ht,Yt){if(!ht||ht==="0"){var vt=Qe[Qe.length-1];vt&&vt.index+vt.length===Yt?vt.length++:Qe.push({index:Yt,length:1})}return Qe},[]),Be=Jt.sort(function(Qe,ht){return ht.length-Qe.length})[0],He=void 0;if(Be&&Be.length>1){var se=fe.slice(0,Be.index),We=fe.slice(Be.index+Be.length);He=se.join(":")+"::"+We.join(":")}else He=fe.join(":");return N&&(He+="%"+N),He}else return b}var Ht=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Le="".match(/(){0}/)[1]===void 0;function ee(b){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v={},I=f.iri!==!1?d:l;f.reference==="suffix"&&(b=(f.scheme?f.scheme+":":"")+"//"+b);var T=b.match(Ht);if(T){Le?(v.scheme=T[1],v.userinfo=T[3],v.host=T[4],v.port=parseInt(T[5],10),v.path=T[6]||"",v.query=T[7],v.fragment=T[8],isNaN(v.port)&&(v.port=T[5])):(v.scheme=T[1]||void 0,v.userinfo=b.indexOf("@")!==-1?T[3]:void 0,v.host=b.indexOf("//")!==-1?T[4]:void 0,v.port=parseInt(T[5],10),v.path=T[6]||"",v.query=b.indexOf("?")!==-1?T[7]:void 0,v.fragment=b.indexOf("#")!==-1?T[8]:void 0,isNaN(v.port)&&(v.port=b.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?T[4]:void 0)),v.host&&(v.host=be(Ie(v.host,I),I)),v.scheme===void 0&&v.userinfo===void 0&&v.host===void 0&&v.port===void 0&&!v.path&&v.query===void 0?v.reference="same-document":v.scheme===void 0?v.reference="relative":v.fragment===void 0?v.reference="absolute":v.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==v.reference&&(v.error=v.error||"URI is not a "+f.reference+" reference.");var N=we[(f.scheme||v.scheme||"").toLowerCase()];if(!f.unicodeSupport&&(!N||!N.unicodeSupport)){if(v.host&&(f.domainHost||N&&N.domainHost))try{v.host=K.toASCII(v.host.replace(I.PCT_ENCODED,je).toLowerCase())}catch(z){v.error=v.error||"Host's domain name can not be converted to ASCII via punycode: "+z}$t(v,l)}else $t(v,I);N&&N.parse&&N.parse(v,f)}else v.error=v.error||"URI can not be parsed.";return v}function Dt(b,f){var v=f.iri!==!1?d:l,I=[];return b.userinfo!==void 0&&(I.push(b.userinfo),I.push("@")),b.host!==void 0&&I.push(be(Ie(String(b.host),v),v).replace(v.IPV6ADDRESS,function(T,N,z){return"["+N+(z?"%25"+z:"")+"]"})),(typeof b.port=="number"||typeof b.port=="string")&&(I.push(":"),I.push(String(b.port))),I.length?I.join(""):void 0}var bt=/^\.\.?\//,Qt=/^\/\.(\/|$)/,Zt=/^\/\.\.(\/|$)/,Ae=/^\/?(?:.|\n)*?(?=\/|$)/;function Ge(b){for(var f=[];b.length;)if(b.match(bt))b=b.replace(bt,"");else if(b.match(Qt))b=b.replace(Qt,"/");else if(b.match(Zt))b=b.replace(Zt,"/"),f.pop();else if(b==="."||b==="..")b="";else{var v=b.match(Ae);if(v){var I=v[0];b=b.slice(I.length),f.push(I)}else throw new Error("Unexpected dot segment condition")}return f.join("")}function _e(b){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=f.iri?d:l,I=[],T=we[(f.scheme||b.scheme||"").toLowerCase()];if(T&&T.serialize&&T.serialize(b,f),b.host&&!v.IPV6ADDRESS.test(b.host)){if(f.domainHost||T&&T.domainHost)try{b.host=f.iri?K.toUnicode(b.host):K.toASCII(b.host.replace(v.PCT_ENCODED,je).toLowerCase())}catch(Y){b.error=b.error||"Host's domain name can not be converted to "+(f.iri?"Unicode":"ASCII")+" via punycode: "+Y}}$t(b,v),f.reference!=="suffix"&&b.scheme&&(I.push(b.scheme),I.push(":"));var N=Dt(b,f);if(N!==void 0&&(f.reference!=="suffix"&&I.push("//"),I.push(N),b.path&&b.path.charAt(0)!=="/"&&I.push("/")),b.path!==void 0){var z=b.path;!f.absolutePath&&(!T||!T.absolutePath)&&(z=Ge(z)),N===void 0&&(z=z.replace(/^\/\//,"/%2F")),I.push(z)}return b.query!==void 0&&(I.push("?"),I.push(b.query)),b.fragment!==void 0&&(I.push("#"),I.push(b.fragment)),I.join("")}function Ne(b,f){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments[3],T={};return I||(b=ee(_e(b,v),v),f=ee(_e(f,v),v)),v=v||{},!v.tolerant&&f.scheme?(T.scheme=f.scheme,T.userinfo=f.userinfo,T.host=f.host,T.port=f.port,T.path=Ge(f.path||""),T.query=f.query):(f.userinfo!==void 0||f.host!==void 0||f.port!==void 0?(T.userinfo=f.userinfo,T.host=f.host,T.port=f.port,T.path=Ge(f.path||""),T.query=f.query):(f.path?(f.path.charAt(0)==="/"?T.path=Ge(f.path):((b.userinfo!==void 0||b.host!==void 0||b.port!==void 0)&&!b.path?T.path="/"+f.path:b.path?T.path=b.path.slice(0,b.path.lastIndexOf("/")+1)+f.path:T.path=f.path,T.path=Ge(T.path)),T.query=f.query):(T.path=b.path,f.query!==void 0?T.query=f.query:T.query=b.query),T.userinfo=b.userinfo,T.host=b.host,T.port=b.port),T.scheme=b.scheme),T.fragment=f.fragment,T}function pt(b,f,v){var I=s({scheme:"null"},v);return _e(Ne(ee(b,I),ee(f,I),I,!0),I)}function Me(b,f){return typeof b=="string"?b=_e(ee(b,f),f):a(b)==="object"&&(b=ee(_e(b,f),f)),b}function di(b,f,v){return typeof b=="string"?b=_e(ee(b,v),v):a(b)==="object"&&(b=_e(b,v)),typeof f=="string"?f=_e(ee(f,v),v):a(f)==="object"&&(f=_e(f,v)),b===f}function ma(b,f){return b&&b.toString().replace(!f||!f.iri?l.ESCAPE:d.ESCAPE,Fe)}function et(b,f){return b&&b.toString().replace(!f||!f.iri?l.PCT_ENCODED:d.PCT_ENCODED,je)}var jr={scheme:"http",domainHost:!0,parse:function(f,v){return f.host||(f.error=f.error||"HTTP URIs must have a host."),f},serialize:function(f,v){var I=String(f.scheme).toLowerCase()==="https";return(f.port===(I?443:80)||f.port==="")&&(f.port=void 0),f.path||(f.path="/"),f}},Zn={scheme:"https",domainHost:jr.domainHost,parse:jr.parse,serialize:jr.serialize};function Jn(b){return typeof b.secure=="boolean"?b.secure:String(b.scheme).toLowerCase()==="wss"}var Nr={scheme:"ws",domainHost:!0,parse:function(f,v){var I=f;return I.secure=Jn(I),I.resourceName=(I.path||"/")+(I.query?"?"+I.query:""),I.path=void 0,I.query=void 0,I},serialize:function(f,v){if((f.port===(Jn(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 I=f.resourceName.split("?"),T=p(I,2),N=T[0],z=T[1];f.path=N&&N!=="/"?N:void 0,f.query=z,f.resourceName=void 0}return f.fragment=void 0,f}},Yn={scheme:"wss",domainHost:Nr.domainHost,parse:Nr.parse,serialize:Nr.serialize},Wc={},Vc=!0,Kn="[A-Za-z0-9\\-\\.\\_\\~"+(Vc?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",ut="[0-9A-Fa-f]",zc=i(i("%[EFef]"+ut+"%"+ut+ut+"%"+ut+ut)+"|"+i("%[89A-Fa-f]"+ut+"%"+ut+ut)+"|"+i("%"+ut+ut)),Uc="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Gc="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Hc=e(Gc,'[\\"\\\\]'),Qc="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Zc=new RegExp(Kn,"g"),cr=new RegExp(zc,"g"),Jc=new RegExp(e("[^]",Uc,"[\\.]",'[\\"]',Hc),"g"),Xn=new RegExp(e("[^]",Kn,Qc),"g"),Yc=Xn;function ya(b){var f=je(b);return f.match(Zc)?f:b}var es={scheme:"mailto",parse:function(f,v){var I=f,T=I.to=I.path?I.path.split(","):[];if(I.path=void 0,I.query){for(var N=!1,z={},Y=I.query.split("&"),re=0,xe=Y.length;re<xe;++re){var Z=Y[re].split("=");switch(Z[0]){case"to":for(var he=Z[1].split(","),Te=0,ce=he.length;Te<ce;++Te)T.push(he[Te]);break;case"subject":I.subject=et(Z[1],v);break;case"body":I.body=et(Z[1],v);break;default:N=!0,z[et(Z[0],v)]=et(Z[1],v);break}}N&&(I.headers=z)}I.query=void 0;for(var X=0,fe=T.length;X<fe;++X){var ne=T[X].split("@");if(ne[0]=et(ne[0]),v.unicodeSupport)ne[1]=et(ne[1],v).toLowerCase();else try{ne[1]=K.toASCII(et(ne[1],v).toLowerCase())}catch(Jt){I.error=I.error||"Email address's domain name can not be converted to ASCII via punycode: "+Jt}T[X]=ne.join("@")}return I},serialize:function(f,v){var I=f,T=n(f.to);if(T){for(var N=0,z=T.length;N<z;++N){var Y=String(T[N]),re=Y.lastIndexOf("@"),xe=Y.slice(0,re).replace(cr,ya).replace(cr,r).replace(Jc,Fe),Z=Y.slice(re+1);try{Z=v.iri?K.toUnicode(Z):K.toASCII(et(Z,v).toLowerCase())}catch(X){I.error=I.error||"Email address's domain name can not be converted to "+(v.iri?"Unicode":"ASCII")+" via punycode: "+X}T[N]=xe+"@"+Z}I.path=T.join(",")}var he=f.headers=f.headers||{};f.subject&&(he.subject=f.subject),f.body&&(he.body=f.body);var Te=[];for(var ce in he)he[ce]!==Wc[ce]&&Te.push(ce.replace(cr,ya).replace(cr,r).replace(Xn,Fe)+"="+he[ce].replace(cr,ya).replace(cr,r).replace(Yc,Fe));return Te.length&&(I.query=Te.join("&")),I}},Kc=/^([^\:]+)\:(.*)/,ts={scheme:"urn",parse:function(f,v){var I=f.path&&f.path.match(Kc),T=f;if(I){var N=v.scheme||T.scheme||"urn",z=I[1].toLowerCase(),Y=I[2],re=N+":"+(v.nid||z),xe=we[re];T.nid=z,T.nss=Y,T.path=void 0,xe&&(T=xe.parse(T,v))}else T.error=T.error||"URN can not be parsed.";return T},serialize:function(f,v){var I=v.scheme||f.scheme||"urn",T=f.nid,N=I+":"+(v.nid||T),z=we[N];z&&(f=z.serialize(f,v));var Y=f,re=f.nss;return Y.path=(T||v.nid)+":"+re,Y}},Xc=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,rs={scheme:"urn:uuid",parse:function(f,v){var I=f;return I.uuid=I.nss,I.nss=void 0,!v.tolerant&&(!I.uuid||!I.uuid.match(Xc))&&(I.error=I.error||"UUID is not valid."),I},serialize:function(f,v){var I=f;return I.nss=(f.uuid||"").toLowerCase(),I}};we[jr.scheme]=jr,we[Zn.scheme]=Zn,we[Nr.scheme]=Nr,we[Yn.scheme]=Yn,we[es.scheme]=es,we[ts.scheme]=ts,we[rs.scheme]=rs,t.SCHEMES=we,t.pctEncChar=Fe,t.pctDecChars=je,t.parse=ee,t.removeDotSegments=Ge,t.serialize=_e,t.resolveComponents=Ne,t.resolve=pt,t.normalize=Me,t.equal=di,t.escapeComponent=ma,t.unescapeComponent=et,Object.defineProperty(t,"__esModule",{value:!0})})});var gi=W((ab,Is)=>{"use strict";Is.exports=function t(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var a,r,n;if(Array.isArray(e)){if(a=e.length,a!=i.length)return!1;for(r=a;r--!==0;)if(!t(e[r],i[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(n=Object.keys(e),a=n.length,a!==Object.keys(i).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(i,n[r]))return!1;for(r=a;r--!==0;){var s=n[r];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}});var Ts=W((nb,xs)=>{"use strict";xs.exports=function(e){for(var i=0,a=e.length,r=0,n;r<a;)i++,n=e.charCodeAt(r++),n>=55296&&n<=56319&&r<a&&(n=e.charCodeAt(r),(n&64512)==56320&&r++);return i}});var er=W((sb,Ps)=>{"use strict";Ps.exports={copy:up,checkDataType:Ta,checkDataTypes:hp,coerceToTypes:fp,toHash:Fa,getProperty:Pa,escapeQuotes:Oa,equal:gi(),ucs2length:Ts(),varOccurences:gp,varReplace:bp,schemaHasRules:vp,schemaHasRulesExcept:Sp,schemaUnknownRules:wp,toQuotedString:Ca,getPathExpr:Ip,getPath:xp,getData:Fp,unescapeFragment:Pp,unescapeJsonPointer:Aa,escapeFragment:Op,escapeJsonPointer:Ea};function up(t,e){e=e||{};for(var i in t)e[i]=t[i];return e}function Ta(t,e,i,a){var r=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(t){case"null":return e+r+"null";case"array":return s+"Array.isArray("+e+")";case"object":return"("+s+e+n+"typeof "+e+r+'"object"'+n+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+r+'"number"'+n+o+"("+e+" % 1)"+n+e+r+e+(i?n+s+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+r+'"'+t+'"'+(i?n+s+"isFinite("+e+")":"")+")";default:return"typeof "+e+r+'"'+t+'"'}}function hp(t,e,i){switch(t.length){case 1:return Ta(t[0],e,i,!0);default:var a="",r=Fa(t);r.array&&r.object&&(a=r.null?"(":"(!"+e+" || ",a+="typeof "+e+' !== "object")',delete r.null,delete r.array,delete r.object),r.number&&delete r.integer;for(var n in r)a+=(a?" && ":"")+Ta(n,e,i,!0);return a}}var Cs=Fa(["string","number","integer","boolean","null"]);function fp(t,e){if(Array.isArray(e)){for(var i=[],a=0;a<e.length;a++){var r=e[a];(Cs[r]||t==="array"&&r==="array")&&(i[i.length]=r)}if(i.length)return i}else{if(Cs[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Fa(t){for(var e={},i=0;i<t.length;i++)e[t[i]]=!0;return e}var mp=/^[a-z$_][a-z$_0-9]*$/i,yp=/'|\\/g;function Pa(t){return typeof t=="number"?"["+t+"]":mp.test(t)?"."+t:"['"+Oa(t)+"']"}function Oa(t){return t.replace(yp,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function gp(t,e){e+="[^0-9]";var i=t.match(new RegExp(e,"g"));return i?i.length:0}function bp(t,e,i){return e+="([^0-9])",i=i.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),i+"$1")}function vp(t,e){if(typeof t=="boolean")return!t;for(var i in t)if(e[i])return!0}function Sp(t,e,i){if(typeof t=="boolean")return!t&&i!="not";for(var a in t)if(a!=i&&e[a])return!0}function wp(t,e){if(typeof t!="boolean"){for(var i in t)if(!e[i])return i}}function Ca(t){return"'"+Oa(t)+"'"}function Ip(t,e,i,a){var r=i?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return Fs(t,r)}function xp(t,e,i){var a=Ca(i?"/"+Ea(e):Pa(e));return Fs(t,a)}var Tp=/^\/(?:[^~]|~0|~1)*$/,Cp=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Fp(t,e,i){var a,r,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!Tp.test(t))throw new Error("Invalid JSON-pointer: "+t);r=t,n="rootData"}else{if(s=t.match(Cp),!s)throw new Error("Invalid JSON-pointer: "+t);if(a=+s[1],r=s[2],r=="#"){if(a>=e)throw new Error("Cannot access property/index "+a+" levels up, current level is "+e);return i[e-a]}if(a>e)throw new Error("Cannot access data "+a+" levels up, current level is "+e);if(n="data"+(e-a||""),!r)return n}for(var o=n,l=r.split("/"),d=0;d<l.length;d++){var p=l[d];p&&(n+=Pa(Aa(p)),o+=" && "+n)}return o}function Fs(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function Pp(t){return Aa(decodeURIComponent(t))}function Op(t){return encodeURIComponent(Ea(t))}function Ea(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function Aa(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var $a=W((ob,Os)=>{"use strict";var Ep=er();Os.exports=Ap;function Ap(t){Ep.copy(t,this)}});var As=W((lb,Es)=>{"use strict";var Rt=Es.exports=function(t,e,i){typeof e=="function"&&(i=e,e={}),i=e.cb||i;var a=typeof i=="function"?i:i.pre||function(){},r=i.post||function(){};bi(e,a,r,t,"",t)};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 bi(t,e,i,a,r,n,s,o,l,d){if(a&&typeof a=="object"&&!Array.isArray(a)){e(a,r,n,s,o,l,d);for(var p in a){var u=a[p];if(Array.isArray(u)){if(p in Rt.arrayKeywords)for(var h=0;h<u.length;h++)bi(t,e,i,u[h],r+"/"+p+"/"+h,n,r,p,a,h)}else if(p in Rt.propsKeywords){if(u&&typeof u=="object")for(var c in u)bi(t,e,i,u[c],r+"/"+p+"/"+$p(c),n,r,p,a,c)}else(p in Rt.keywords||t.allKeys&&!(p in Rt.skipKeywords))&&bi(t,e,i,u,r+"/"+p,n,r,p,a)}i(a,r,n,s,o,l,d)}}function $p(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ti=W((db,Rs)=>{"use strict";var Ur=ws(),$s=gi(),Ii=er(),vi=$a(),Dp=As();Rs.exports=jt;jt.normalizeId=kt;jt.fullPath=Si;jt.url=wi;jt.ids=Np;jt.inlineRef=Da;jt.schema=xi;function jt(t,e,i){var a=this._refs[i];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return jt.call(this,t,e,a);if(a=a||this._schemas[i],a instanceof vi)return Da(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var r=xi.call(this,e,i),n,s,o;return r&&(n=r.schema,e=r.root,o=r.baseId),n instanceof vi?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=Da(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function xi(t,e){var i=Ur.parse(e),a=Ls(i),r=Si(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==r){var n=kt(a),s=this._refs[n];if(typeof s=="string")return Lp.call(this,t,s,i);if(s instanceof vi)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof vi){if(s.validate||this._compile(s),n==kt(e))return{schema:s,root:t,baseId:r};t=s}else return;if(!t.schema)return;r=Si(this._getId(t.schema))}return Ds.call(this,i,r,t.schema,t)}function Lp(t,e,i){var a=xi.call(this,t,e);if(a){var r=a.schema,n=a.baseId;t=a.root;var s=this._getId(r);return s&&(n=wi(n,s)),Ds.call(this,i,n,r,t)}}var Rp=Ii.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Ds(t,e,i,a){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var r=t.fragment.split("/"),n=1;n<r.length;n++){var s=r[n];if(s){if(s=Ii.unescapeFragment(s),i=i[s],i===void 0)break;var o;if(!Rp[s]&&(o=this._getId(i),o&&(e=wi(e,o)),i.$ref)){var l=wi(e,i.$ref),d=xi.call(this,a,l);d&&(i=d.schema,a=d.root,e=d.baseId)}}}if(i!==void 0&&i!==a.schema)return{schema:i,root:a,baseId:e}}}var kp=Ii.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Da(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return La(t);if(e)return Ra(t)<=e}function La(t){var e;if(Array.isArray(t)){for(var i=0;i<t.length;i++)if(e=t[i],typeof e=="object"&&!La(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!La(e)))return!1;return!0}function Ra(t){var e=0,i;if(Array.isArray(t)){for(var a=0;a<t.length;a++)if(i=t[a],typeof i=="object"&&(e+=Ra(i)),e==1/0)return 1/0}else for(var r in t){if(r=="$ref")return 1/0;if(kp[r])e++;else if(i=t[r],typeof i=="object"&&(e+=Ra(i)+1),e==1/0)return 1/0}return e}function Si(t,e){e!==!1&&(t=kt(t));var i=Ur.parse(t);return Ls(i)}function Ls(t){return Ur.serialize(t).split("#")[0]+"#"}var jp=/#\/?$/;function kt(t){return t?t.replace(jp,""):""}function wi(t,e){return e=kt(e),Ur.resolve(t,e)}function Np(t){var e=kt(this._getId(t)),i={"":e},a={"":Si(e,!1)},r={},n=this;return Dp(t,{allKeys:!0},function(s,o,l,d,p,u,h){if(o!==""){var c=n._getId(s),m=i[d],g=a[d]+"/"+p;if(h!==void 0&&(g+="/"+(typeof h=="number"?h:Ii.escapeFragment(h))),typeof c=="string"){c=m=kt(m?Ur.resolve(m,c):c);var y=n._refs[c];if(typeof y=="string"&&(y=n._refs[y]),y&&y.schema){if(!$s(s,y.schema))throw new Error('id "'+c+'" resolves to more than one schema')}else if(c!=kt(g))if(c[0]=="#"){if(r[c]&&!$s(s,r[c]))throw new Error('id "'+c+'" resolves to more than one schema');r[c]=s}else n._refs[c]=g}i[o]=m,a[o]=g}}),r}});var Ci=W((cb,js)=>{"use strict";var ka=Ti();js.exports={Validation:ks(_p),MissingRef:ks(ja)};function _p(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}ja.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function ja(t,e,i){this.message=i||ja.message(t,e),this.missingRef=ka.url(t,e),this.missingSchema=ka.normalizeId(ka.fullPath(this.missingRef))}function ks(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Na=W((pb,Ns)=>{"use strict";Ns.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var i=typeof e.cycles=="boolean"?e.cycles:!1,a=e.cmp&&function(n){return function(s){return function(o,l){var d={key:o,value:s[o]},p={key:l,value:s[l]};return n(d,p)}}}(e.cmp),r=[];return function n(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var o,l;if(Array.isArray(s)){for(l="[",o=0;o<s.length;o++)o&&(l+=","),l+=n(s[o])||"null";return l+"]"}if(s===null)return"null";if(r.indexOf(s)!==-1){if(i)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var d=r.push(s)-1,p=Object.keys(s).sort(a&&a(s));for(l="",o=0;o<p.length;o++){var u=p[o],h=n(s[u]);h&&(l&&(l+=","),l+=JSON.stringify(u)+":"+h)}return r.splice(d,1),"{"+l+"}"}}(t)}});var _a=W((ub,_s)=>{"use strict";_s.exports=function(e,i,a){var r="",n=e.schema.$async===!0,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var d="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(d);else throw new Error(d)}}if(e.isTop&&(r+=" var validate = ",n&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" "+("/*# sourceURL="+o+" */")+" ")),typeof e.schema=="boolean"||!(s||e.schema.$ref)){var i="false schema",p=e.level,u=e.dataLevel,h=e.schema[i],c=e.schemaPath+e.util.getProperty(i),m=e.errSchemaPath+"/"+i,O=!e.opts.allErrors,R,g="data"+(u||""),P="valid"+p;if(e.schema===!1){e.isTop?O=!0:r+=" var "+P+" = false; ";var y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(R||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var S=r;r=y.pop(),!e.compositeRule&&O?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n?r+=" return data; ":r+=" validate.errors = null; return true; ":r+=" var "+P+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var C=e.isTop,p=e.level=0,u=e.dataLevel=0,g="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 w="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{var p=e.level,u=e.dataLevel,g="data"+(u||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+p+" = errors;"}var P="valid"+p,O=!e.opts.allErrors,A="",_="",R,F=e.schema.type,D=Array.isArray(F);if(F&&e.opts.nullable&&e.schema.nullable===!0&&(D?F.indexOf("null")==-1&&(F=F.concat("null")):F!="null"&&(F=[F,"null"],D=!0)),D&&F.length==1&&(F=F[0],D=!1),e.schema.$ref&&s){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&&(s=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),F){if(e.opts.coerceTypes)var L=e.util.coerceToTypes(e.opts.coerceTypes,F);var j=e.RULES.types[F];if(L||D||j===!0||j&&!Ae(j)){var c=e.schemaPath+".type",m=e.errSchemaPath+"/type",c=e.schemaPath+".type",m=e.errSchemaPath+"/type",E=D?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[E](F,g,e.opts.strictNumbers,!0)+") { ",L){var $="dataType"+p,q="coerced"+p;r+=" var "+$+" = typeof "+g+"; var "+q+" = undefined; ",e.opts.coerceTypes=="array"&&(r+=" if ("+$+" == 'object' && Array.isArray("+g+") && "+g+".length == 1) { "+g+" = "+g+"[0]; "+$+" = typeof "+g+"; if ("+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+") "+q+" = "+g+"; } "),r+=" if ("+q+" !== undefined) ; ";var ae=L;if(ae)for(var G,Q=-1,U=ae.length-1;Q<U;)G=ae[Q+=1],G=="string"?r+=" else if ("+$+" == 'number' || "+$+" == 'boolean') "+q+" = '' + "+g+"; else if ("+g+" === null) "+q+" = ''; ":G=="number"||G=="integer"?(r+=" else if ("+$+" == 'boolean' || "+g+" === null || ("+$+" == 'string' && "+g+" && "+g+" == +"+g+" ",G=="integer"&&(r+=" && !("+g+" % 1)"),r+=")) "+q+" = +"+g+"; "):G=="boolean"?r+=" else if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+q+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+q+" = true; ":G=="null"?r+=" else if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+q+" = null; ":e.opts.coerceTypes=="array"&&G=="array"&&(r+=" else if ("+$+" == 'string' || "+$+" == 'number' || "+$+" == 'boolean' || "+g+" == null) "+q+" = ["+g+"]; ");r+=" else { ";var y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(R||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",D?r+=""+F.join(","):r+=""+F,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",D?r+=""+F.join(","):r+=""+F,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var S=r;r=y.pop(),!e.compositeRule&&O?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+q+" !== undefined) { ";var B=u?"data"+(u-1||""):"parentData",ge=u?e.dataPathArr[u]:"parentDataProperty";r+=" "+g+" = "+q+"; ",u||(r+="if ("+B+" !== undefined)"),r+=" "+B+"["+ge+"] = "+q+"; } "}else{var y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(R||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",D?r+=""+F.join(","):r+=""+F,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",D?r+=""+F.join(","):r+=""+F,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var S=r;r=y.pop(),!e.compositeRule&&O?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!s)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",O&&(r+=" } if (errors === ",C?r+="0":r+="errs_"+p,r+=") { ",_+="}");else{var De=e.RULES;if(De){for(var j,ke=-1,K=De.length-1;ke<K;)if(j=De[ke+=1],Ae(j)){if(j.type&&(r+=" if ("+e.util.checkDataType(j.type,g,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(j.type=="object"&&e.schema.properties){var h=e.schema.properties,we=Object.keys(h),Fe=we;if(Fe)for(var je,$t=-1,gt=Fe.length-1;$t<gt;){je=Fe[$t+=1];var Ie=h[je];if(Ie.default!==void 0){var be=g+e.util.getProperty(je);if(e.compositeRule){if(e.opts.strictDefaults){var w="default is ignored for: "+be;if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}}else r+=" if ("+be+" === undefined ",e.opts.useDefaults=="empty"&&(r+=" || "+be+" === null || "+be+" === '' "),r+=" ) "+be+" = ",e.opts.useDefaults=="shared"?r+=" "+e.useDefault(Ie.default)+" ":r+=" "+JSON.stringify(Ie.default)+" ",r+="; "}}}else if(j.type=="array"&&Array.isArray(e.schema.items)){var Ht=e.schema.items;if(Ht){for(var Ie,Q=-1,Le=Ht.length-1;Q<Le;)if(Ie=Ht[Q+=1],Ie.default!==void 0){var be=g+"["+Q+"]";if(e.compositeRule){if(e.opts.strictDefaults){var w="default is ignored for: "+be;if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}}else r+=" if ("+be+" === undefined ",e.opts.useDefaults=="empty"&&(r+=" || "+be+" === null || "+be+" === '' "),r+=" ) "+be+" = ",e.opts.useDefaults=="shared"?r+=" "+e.useDefault(Ie.default)+" ":r+=" "+JSON.stringify(Ie.default)+" ",r+="; "}}}}var ee=j.rules;if(ee){for(var Dt,bt=-1,Qt=ee.length-1;bt<Qt;)if(Dt=ee[bt+=1],Ge(Dt)){var Zt=Dt.code(e,Dt.keyword,j.type);Zt&&(r+=" "+Zt+" ",O&&(A+="}"))}}if(O&&(r+=" "+A+" ",A=""),j.type&&(r+=" } ",F&&F===j.type&&!L)){r+=" else { ";var c=e.schemaPath+".type",m=e.errSchemaPath+"/type",y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(R||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",D?r+=""+F.join(","):r+=""+F,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",D?r+=""+F.join(","):r+=""+F,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var S=r;r=y.pop(),!e.compositeRule&&O?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}O&&(r+=" if (errors === ",C?r+="0":r+="errs_"+p,r+=") { ",_+="}")}}}O&&(r+=" "+_+" "),C?(n?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+P+" = errors === errs_"+p+";";function Ae(Ne){for(var pt=Ne.rules,Me=0;Me<pt.length;Me++)if(Ge(pt[Me]))return!0}function Ge(Ne){return e.schema[Ne.keyword]!==void 0||Ne.implements&&_e(Ne)}function _e(Ne){for(var pt=Ne.implements,Me=0;Me<pt.length;Me++)if(e.schema[pt[Me]]!==void 0)return!0}return r}});var Vs=W((hb,Ws)=>{"use strict";var Fi=Ti(),Oi=er(),Ms=Ci(),qp=Na(),qs=_a(),Mp=Oi.ucs2length,Bp=gi(),Wp=Ms.Validation;Ws.exports=qa;function qa(t,e,i,a){var r=this,n=this._opts,s=[void 0],o={},l=[],d={},p=[],u={},h=[];e=e||{schema:t,refVal:s,refs:o};var c=Vp.call(this,t,e,a),m=this._compilations[c.index];if(c.compiling)return m.callValidate=w;var g=this._formats,y=this.RULES;try{var S=P(t,e,i,a);m.validate=S;var C=m.callValidate;return C&&(C.schema=S.schema,C.errors=null,C.refs=S.refs,C.refVal=S.refVal,C.root=S.root,C.$async=S.$async,n.sourceCode&&(C.source=S.source)),S}finally{zp.call(this,t,e,a)}function w(){var E=m.validate,$=E.apply(this,arguments);return w.errors=E.errors,$}function P(E,$,q,ae){var G=!$||$&&$.schema==E;if($.schema!=e.schema)return qa.call(r,E,$,q,ae);var Q=E.$async===!0,U=qs({isTop:!0,schema:E,isRoot:G,baseId:ae,root:$,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Ms.MissingRef,RULES:y,validate:qs,util:Oi,resolve:Fi,resolveRef:O,usePattern:D,useDefault:L,useCustomRule:j,opts:n,formats:g,logger:r.logger,self:r});U=Pi(s,Hp)+Pi(l,Up)+Pi(p,Gp)+Pi(h,Qp)+U,n.processCode&&(U=n.processCode(U,E));var B;try{var ge=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",U);B=ge(r,y,g,e,s,p,h,Bp,Mp,Wp),s[0]=B}catch(De){throw r.logger.error("Error compiling schema, function code:",U),De}return B.schema=E,B.errors=null,B.refs=o,B.refVal=s,B.root=G?B:$,Q&&(B.$async=!0),n.sourceCode===!0&&(B.source={code:U,patterns:l,defaults:p}),B}function O(E,$,q){$=Fi.url(E,$);var ae=o[$],G,Q;if(ae!==void 0)return G=s[ae],Q="refVal["+ae+"]",F(G,Q);if(!q&&e.refs){var U=e.refs[$];if(U!==void 0)return G=e.refVal[U],Q=A($,G),F(G,Q)}Q=A($);var B=Fi.call(r,P,e,$);if(B===void 0){var ge=i&&i[$];ge&&(B=Fi.inlineRef(ge,n.inlineRefs)?ge:qa.call(r,ge,e,i,E))}if(B===void 0)_($);else return R($,B),F(B,Q)}function A(E,$){var q=s.length;return s[q]=$,o[E]=q,"refVal"+q}function _(E){delete o[E]}function R(E,$){var q=o[E];s[q]=$}function F(E,$){return typeof E=="object"||typeof E=="boolean"?{code:$,schema:E,inline:!0}:{code:$,$async:E&&!!E.$async}}function D(E){var $=d[E];return $===void 0&&($=d[E]=l.length,l[$]=E),"pattern"+$}function L(E){switch(typeof E){case"boolean":case"number":return""+E;case"string":return Oi.toQuotedString(E);case"object":if(E===null)return"null";var $=qp(E),q=u[$];return q===void 0&&(q=u[$]=p.length,p[q]=E),"default"+q}}function j(E,$,q,ae){if(r._opts.validateSchema!==!1){var G=E.definition.dependencies;if(G&&!G.every(function(Fe){return Object.prototype.hasOwnProperty.call(q,Fe)}))throw new Error("parent schema must have all required keywords: "+G.join(","));var Q=E.definition.validateSchema;if(Q){var U=Q($);if(!U){var B="keyword schema is invalid: "+r.errorsText(Q.errors);if(r._opts.validateSchema=="log")r.logger.error(B);else throw new Error(B)}}}var ge=E.definition.compile,De=E.definition.inline,ke=E.definition.macro,K;if(ge)K=ge.call(r,$,q,ae);else if(ke)K=ke.call(r,$,q,ae),n.validateSchema!==!1&&r.validateSchema(K,!0);else if(De)K=De.call(r,ae,E.keyword,$,q);else if(K=E.definition.validate,!K)return;if(K===void 0)throw new Error('custom keyword "'+E.keyword+'"failed to compile');var we=h.length;return h[we]=K,{code:"customRule"+we,validate:K}}}function Vp(t,e,i){var a=Bs.call(this,t,e,i);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:t,root:e,baseId:i},{index:a,compiling:!1})}function zp(t,e,i){var a=Bs.call(this,t,e,i);a>=0&&this._compilations.splice(a,1)}function Bs(t,e,i){for(var a=0;a<this._compilations.length;a++){var r=this._compilations[a];if(r.schema==t&&r.root==e&&r.baseId==i)return a}return-1}function Up(t,e){return"var pattern"+t+" = new RegExp("+Oi.toQuotedString(e[t])+");"}function Gp(t){return"var default"+t+" = defaults["+t+"];"}function Hp(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function Qp(t){return"var customRule"+t+" = customRules["+t+"];"}function Pi(t,e){if(!t.length)return"";for(var i="",a=0;a<t.length;a++)i+=e(a,t);return i}});var Us=W((fb,zs)=>{"use strict";var Ei=zs.exports=function(){this._cache={}};Ei.prototype.put=function(e,i){this._cache[e]=i};Ei.prototype.get=function(e){return this._cache[e]};Ei.prototype.del=function(e){delete this._cache[e]};Ei.prototype.clear=function(){this._cache={}}});var io=W((mb,ro)=>{"use strict";var Zp=er(),Jp=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Yp=[0,31,28,31,30,31,30,31,31,30,31,30,31],Kp=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Gs=/^(?=.{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,Xp=/^(?:[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,eu=/^(?:[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,Hs=/^(?:(?:[^\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,Qs=/^(?:(?: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,Zs=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Js=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Ys=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Ks=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;ro.exports=Ai;function Ai(t){return t=t=="full"?"full":"fast",Zp.copy(Ai[t])}Ai.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":Hs,url:Qs,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:Gs,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:to,uuid:Zs,"json-pointer":Js,"json-pointer-uri-fragment":Ys,"relative-json-pointer":Ks};Ai.full={date:Xs,time:eo,"date-time":iu,uri:nu,"uri-reference":eu,"uri-template":Hs,url:Qs,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:Gs,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:to,uuid:Zs,"json-pointer":Js,"json-pointer-uri-fragment":Ys,"relative-json-pointer":Ks};function tu(t){return t%4===0&&(t%100!==0||t%400===0)}function Xs(t){var e=t.match(Jp);if(!e)return!1;var i=+e[1],a=+e[2],r=+e[3];return a>=1&&a<=12&&r>=1&&r<=(a==2&&tu(i)?29:Yp[a])}function eo(t,e){var i=t.match(Kp);if(!i)return!1;var a=i[1],r=i[2],n=i[3],s=i[5];return(a<=23&&r<=59&&n<=59||a==23&&r==59&&n==60)&&(!e||s)}var ru=/t|\s/i;function iu(t){var e=t.split(ru);return e.length==2&&Xs(e[0])&&eo(e[1],!0)}var au=/\/|:/;function nu(t){return au.test(t)&&Xp.test(t)}var su=/[^\\]\\Z/;function to(t){if(su.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var no=W((yb,ao)=>{"use strict";ao.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.errSchemaPath+"/"+i,d=!e.opts.allErrors,p="data"+(s||""),u="valid"+n,h,c;if(o=="#"||o=="#/")e.isRoot?(h=e.async,c="validate"):(h=e.root.schema.$async===!0,c="root.refVal[0]");else{var m=e.resolveRef(e.baseId,o,e.isRoot);if(m===void 0){var g=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(g);var y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(r+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(r+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var S=r;r=y.pop(),!e.compositeRule&&d?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(r+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(g),d&&(r+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,g)}else if(m.inline){var C=e.util.copy(e);C.level++;var w="valid"+C.level;C.schema=m.schema,C.schemaPath="",C.errSchemaPath=o;var P=e.validate(C).replace(/validate\.schema/g,m.code);r+=" "+P+" ",d&&(r+=" if ("+w+") { ")}else h=m.$async===!0||e.async&&m.$async!==!1,c=m.code}if(c){var y=y||[];y.push(r),r="",e.opts.passContext?r+=" "+c+".call(this, ":r+=" "+c+"( ",r+=" "+p+", (dataPath || '')",e.errorPath!='""'&&(r+=" + "+e.errorPath);var O=s?"data"+(s-1||""):"parentData",A=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+O+" , "+A+", rootData) ";var _=r;if(r=y.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(r+=" var "+u+"; "),r+=" try { await "+_+"; ",d&&(r+=" "+u+" = true; "),r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",d&&(r+=" "+u+" = false; "),r+=" } ",d&&(r+=" if ("+u+") { ")}else r+=" if (!"+_+") { if (vErrors === null) vErrors = "+c+".errors; else vErrors = vErrors.concat("+c+".errors); errors = vErrors.length; } ",d&&(r+=" else { ")}return r}});var oo=W((gb,so)=>{"use strict";so.exports=function(e,i,a){var r=" ",n=e.schema[i],s=e.schemaPath+e.util.getProperty(i),o=e.errSchemaPath+"/"+i,l=!e.opts.allErrors,d=e.util.copy(e),p="";d.level++;var u="valid"+d.level,h=d.baseId,c=!0,m=n;if(m)for(var g,y=-1,S=m.length-1;y<S;)g=m[y+=1],(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all))&&(c=!1,d.schema=g,d.schemaPath=s+"["+y+"]",d.errSchemaPath=o+"/"+y,r+=" "+e.validate(d)+" ",d.baseId=h,l&&(r+=" if ("+u+") { ",p+="}"));return l&&(c?r+=" if (true) { ":r+=" "+p.slice(0,-1)+" "),r}});var co=W((bb,lo)=>{"use strict";lo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c="errs__"+n,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,S=o.every(function(R){return e.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:e.util.schemaHasRules(R,e.RULES.all)});if(S){var C=m.baseId;r+=" var "+c+" = errors; var "+h+" = false; ";var w=e.compositeRule;e.compositeRule=m.compositeRule=!0;var P=o;if(P)for(var O,A=-1,_=P.length-1;A<_;)O=P[A+=1],m.schema=O,m.schemaPath=l+"["+A+"]",m.errSchemaPath=d+"/"+A,r+=" "+e.validate(m)+" ",m.baseId=C,r+=" "+h+" = "+h+" || "+y+"; if (!"+h+") { ",g+="}";e.compositeRule=m.compositeRule=w,r+=" "+g+" if (!"+h+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else p&&(r+=" if (true) { ");return r}});var uo=W((vb,po)=>{"use strict";po.exports=function(e,i,a){var r=" ",n=e.schema[i],s=e.errSchemaPath+"/"+i,o=!e.opts.allErrors,l=e.util.toQuotedString(n);return e.opts.$comment===!0?r+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(r+=" self._opts.$comment("+l+", "+e.util.toQuotedString(s)+", validate.root.schema);"),r}});var fo=W((Sb,ho)=>{"use strict";ho.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c=e.opts.$data&&o&&o.$data,m;c?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o,c||(r+=" var schema"+n+" = validate.schema"+l+";"),r+="var "+h+" = equal("+u+", schema"+n+"); if (!"+h+") { ";var g=g||[];g.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValue: schema"+n+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be equal to constant' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var y=r;return r=g.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",p&&(r+=" else { "),r}});var yo=W((wb,mo)=>{"use strict";mo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c="errs__"+n,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,S="i"+n,C=m.dataLevel=e.dataLevel+1,w="data"+C,P=e.baseId,O=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(r+="var "+c+" = errors;var "+h+";",O){var A=e.compositeRule;e.compositeRule=m.compositeRule=!0,m.schema=o,m.schemaPath=l,m.errSchemaPath=d,r+=" var "+y+" = false; for (var "+S+" = 0; "+S+" < "+u+".length; "+S+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var _=u+"["+S+"]";m.dataPathArr[C]=S;var R=e.validate(m);m.baseId=P,e.util.varOccurences(R,w)<2?r+=" "+e.util.varReplace(R,w,_)+" ":r+=" var "+w+" = "+_+"; "+R+" ",r+=" if ("+y+") break; } ",e.compositeRule=m.compositeRule=A,r+=" "+g+" if (!"+y+") {"}else r+=" if ("+u+".length == 0) {";var F=F||[];F.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should contain a valid item' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var D=r;return r=F.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+D+"]); ":r+=" validate.errors = ["+D+"]; return false; ":r+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",O&&(r+=" errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } "),e.opts.allErrors&&(r+=" } "),r}});var bo=W((Ib,go)=>{"use strict";go.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,c=e.util.copy(e),m="";c.level++;var g="valid"+c.level,y={},S={},C=e.opts.ownProperties;for(A in o)if(A!="__proto__"){var w=o[A],P=Array.isArray(w)?S:y;P[A]=w}r+="var "+h+" = errors;";var O=e.errorPath;r+="var missing"+n+";";for(var A in S)if(P=S[A],P.length){if(r+=" if ( "+u+e.util.getProperty(A)+" !== undefined ",C&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),p){r+=" && ( ";var _=P;if(_)for(var R,F=-1,D=_.length-1;F<D;){R=_[F+=1],F&&(r+=" || ");var L=e.util.getProperty(R),j=u+L;r+=" ( ( "+j+" === undefined ",C&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?R:L)+") ) "}r+=")) { ";var E="missing"+n,$="' + "+E+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(O,E,!0):O+" + "+E);var q=q||[];q.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+$+"', depsCount: "+P.length+", deps: '"+e.util.escapeQuotes(P.length==1?P[0]:P.join(", "))+"' } ",e.opts.messages!==!1&&(r+=" , message: 'should have ",P.length==1?r+="property "+e.util.escapeQuotes(P[0]):r+="properties "+e.util.escapeQuotes(P.join(", ")),r+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var ae=r;r=q.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+ae+"]); ":r+=" validate.errors = ["+ae+"]; return false; ":r+=" var err = "+ae+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var G=P;if(G)for(var R,Q=-1,U=G.length-1;Q<U;){R=G[Q+=1];var L=e.util.getProperty(R),$=e.util.escapeQuotes(R),j=u+L;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(O,R,e.opts.jsonPointers)),r+=" if ( "+j+" === undefined ",C&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+$+"', depsCount: "+P.length+", deps: '"+e.util.escapeQuotes(P.length==1?P[0]:P.join(", "))+"' } ",e.opts.messages!==!1&&(r+=" , message: 'should have ",P.length==1?r+="property "+e.util.escapeQuotes(P[0]):r+="properties "+e.util.escapeQuotes(P.join(", ")),r+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",p&&(m+="}",r+=" else { ")}e.errorPath=O;var B=c.baseId;for(var A in y){var w=y[A];(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all))&&(r+=" "+g+" = true; if ( "+u+e.util.getProperty(A)+" !== undefined ",C&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),r+=") { ",c.schema=w,c.schemaPath=l+e.util.getProperty(A),c.errSchemaPath=d+"/"+e.util.escapeFragment(A),r+=" "+e.validate(c)+" ",c.baseId=B,r+=" } ",p&&(r+=" if ("+g+") { ",m+="}"))}return p&&(r+=" "+m+" if ("+h+" == errors) {"),r}});var So=W((xb,vo)=>{"use strict";vo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c=e.opts.$data&&o&&o.$data,m;c?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o;var g="i"+n,y="schema"+n;c||(r+=" var "+y+" = validate.schema"+l+";"),r+="var "+h+";",c&&(r+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),r+=""+h+" = false;for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) if (equal("+u+", "+y+"["+g+"])) { "+h+" = true; break; }",c&&(r+=" } "),r+=" if (!"+h+") { ";var S=S||[];S.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValues: schema"+n+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;return r=S.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",p&&(r+=" else { "),r}});var Io=W((Tb,wo)=>{"use strict";wo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||"");if(e.opts.format===!1)return p&&(r+=" if (true) { "),r;var h=e.opts.$data&&o&&o.$data,c;h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o;var m=e.opts.unknownFormats,g=Array.isArray(m);if(h){var y="format"+n,S="isObject"+n,C="formatType"+n;r+=" var "+y+" = formats["+c+"]; var "+S+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+C+" = "+S+" && "+y+".type || 'string'; if ("+S+") { ",e.async&&(r+=" var async"+n+" = "+y+".async; "),r+=" "+y+" = "+y+".validate; } if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'string') || "),r+=" (",m!="ignore"&&(r+=" ("+c+" && !"+y+" ",g&&(r+=" && self._opts.unknownFormats.indexOf("+c+") == -1 "),r+=") || "),r+=" ("+y+" && "+C+" == '"+a+"' && !(typeof "+y+" == 'function' ? ",e.async?r+=" (async"+n+" ? await "+y+"("+u+") : "+y+"("+u+")) ":r+=" "+y+"("+u+") ",r+=" : "+y+".test("+u+"))))) {"}else{var y=e.formats[o];if(!y){if(m=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),p&&(r+=" if (true) { "),r;if(g&&m.indexOf(o)>=0)return p&&(r+=" if (true) { "),r;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var S=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,C=S&&y.type||"string";if(S){var w=y.async===!0;y=y.validate}if(C!=a)return p&&(r+=" if (true) { "),r;if(w){if(!e.async)throw new Error("async format in sync schema");var P="formats"+e.util.getProperty(o)+".validate";r+=" if (!(await "+P+"("+u+"))) { "}else{r+=" if (! ";var P="formats"+e.util.getProperty(o);S&&(P+=".validate"),typeof y=="function"?r+=" "+P+"("+u+") ":r+=" "+P+".test("+u+") ",r+=") { "}}var O=O||[];O.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { format: ",h?r+=""+c:r+=""+e.util.toQuotedString(o),r+=" } ",e.opts.messages!==!1&&(r+=` , message: 'should match format "`,h?r+="' + "+c+" + '":r+=""+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+e.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var A=r;return r=O.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+A+"]); ":r+=" validate.errors = ["+A+"]; return false; ":r+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",p&&(r+=" else { "),r}});var To=W((Cb,xo)=>{"use strict";xo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c="errs__"+n,m=e.util.copy(e);m.level++;var g="valid"+m.level,y=e.schema.then,S=e.schema.else,C=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),w=S!==void 0&&(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all)),P=m.baseId;if(C||w){var O;m.createErrors=!1,m.schema=o,m.schemaPath=l,m.errSchemaPath=d,r+=" var "+c+" = errors; var "+h+" = true; ";var A=e.compositeRule;e.compositeRule=m.compositeRule=!0,r+=" "+e.validate(m)+" ",m.baseId=P,m.createErrors=!0,r+=" errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } ",e.compositeRule=m.compositeRule=A,C?(r+=" if ("+g+") { ",m.schema=e.schema.then,m.schemaPath=e.schemaPath+".then",m.errSchemaPath=e.errSchemaPath+"/then",r+=" "+e.validate(m)+" ",m.baseId=P,r+=" "+h+" = "+g+"; ",C&&w?(O="ifClause"+n,r+=" var "+O+" = 'then'; "):O="'then'",r+=" } ",w&&(r+=" else { ")):r+=" if (!"+g+") { ",w&&(m.schema=e.schema.else,m.schemaPath=e.schemaPath+".else",m.errSchemaPath=e.errSchemaPath+"/else",r+=" "+e.validate(m)+" ",m.baseId=P,r+=" "+h+" = "+g+"; ",C&&w?(O="ifClause"+n,r+=" var "+O+" = 'else'; "):O="'else'",r+=" } "),r+=" if (!"+h+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { failingKeyword: "+O+" } ",e.opts.messages!==!1&&(r+=` , message: 'should match "' + `+O+` + '" schema' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",p&&(r+=" else { ")}else p&&(r+=" if (true) { ");return r}});var Fo=W((Fb,Co)=>{"use strict";Co.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c="errs__"+n,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,S="i"+n,C=m.dataLevel=e.dataLevel+1,w="data"+C,P=e.baseId;if(r+="var "+c+" = errors;var "+h+";",Array.isArray(o)){var O=e.schema.additionalItems;if(O===!1){r+=" "+h+" = "+u+".length <= "+o.length+"; ";var A=d;d=e.errSchemaPath+"/additionalItems",r+=" if (!"+h+") { ";var _=_||[];_.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var R=r;r=_.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+R+"]); ":r+=" validate.errors = ["+R+"]; return false; ":r+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",d=A,p&&(g+="}",r+=" else { ")}var F=o;if(F){for(var D,L=-1,j=F.length-1;L<j;)if(D=F[L+=1],e.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:e.util.schemaHasRules(D,e.RULES.all)){r+=" "+y+" = true; if ("+u+".length > "+L+") { ";var E=u+"["+L+"]";m.schema=D,m.schemaPath=l+"["+L+"]",m.errSchemaPath=d+"/"+L,m.errorPath=e.util.getPathExpr(e.errorPath,L,e.opts.jsonPointers,!0),m.dataPathArr[C]=L;var $=e.validate(m);m.baseId=P,e.util.varOccurences($,w)<2?r+=" "+e.util.varReplace($,w,E)+" ":r+=" var "+w+" = "+E+"; "+$+" ",r+=" } ",p&&(r+=" if ("+y+") { ",g+="}")}}if(typeof O=="object"&&(e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:e.util.schemaHasRules(O,e.RULES.all))){m.schema=O,m.schemaPath=e.schemaPath+".additionalItems",m.errSchemaPath=e.errSchemaPath+"/additionalItems",r+=" "+y+" = true; if ("+u+".length > "+o.length+") { for (var "+S+" = "+o.length+"; "+S+" < "+u+".length; "+S+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var E=u+"["+S+"]";m.dataPathArr[C]=S;var $=e.validate(m);m.baseId=P,e.util.varOccurences($,w)<2?r+=" "+e.util.varReplace($,w,E)+" ":r+=" var "+w+" = "+E+"; "+$+" ",p&&(r+=" if (!"+y+") break; "),r+=" } } ",p&&(r+=" if ("+y+") { ",g+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){m.schema=o,m.schemaPath=l,m.errSchemaPath=d,r+=" for (var "+S+" = 0; "+S+" < "+u+".length; "+S+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var E=u+"["+S+"]";m.dataPathArr[C]=S;var $=e.validate(m);m.baseId=P,e.util.varOccurences($,w)<2?r+=" "+e.util.varReplace($,w,E)+" ":r+=" var "+w+" = "+E+"; "+$+" ",p&&(r+=" if (!"+y+") break; "),r+=" }"}return p&&(r+=" "+g+" if ("+c+" == errors) {"),r}});var Ma=W((Pb,Po)=>{"use strict";Po.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,P,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o;var m=i=="maximum",g=m?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[g],S=e.opts.$data&&y&&y.$data,C=m?"<":">",w=m?">":"<",P=void 0;if(!(h||typeof o=="number"||o===void 0))throw new Error(i+" must be number");if(!(S||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(g+" must be number or boolean");if(S){var O=e.util.getData(y.$data,s,e.dataPathArr),A="exclusive"+n,_="exclType"+n,R="exclIsNumber"+n,F="op"+n,D="' + "+F+" + '";r+=" var schemaExcl"+n+" = "+O+"; ",O="schemaExcl"+n,r+=" var "+A+"; var "+_+" = typeof "+O+"; if ("+_+" != 'boolean' && "+_+" != 'undefined' && "+_+" != 'number') { ";var P=g,L=L||[];L.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(P||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: '"+g+" should be boolean' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var j=r;r=L.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" "+_+" == 'number' ? ( ("+A+" = "+c+" === undefined || "+O+" "+C+"= "+c+") ? "+u+" "+w+"= "+O+" : "+u+" "+w+" "+c+" ) : ( ("+A+" = "+O+" === true) ? "+u+" "+w+"= "+c+" : "+u+" "+w+" "+c+" ) || "+u+" !== "+u+") { var op"+n+" = "+A+" ? '"+C+"' : '"+C+"='; ",o===void 0&&(P=g,d=e.errSchemaPath+"/"+g,c=O,h=S)}else{var R=typeof y=="number",D=C;if(R&&h){var F="'"+D+"'";r+=" if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" ( "+c+" === undefined || "+y+" "+C+"= "+c+" ? "+u+" "+w+"= "+y+" : "+u+" "+w+" "+c+" ) || "+u+" !== "+u+") { "}else{R&&o===void 0?(A=!0,P=g,d=e.errSchemaPath+"/"+g,c=y,w+="="):(R&&(c=Math[m?"min":"max"](y,o)),y===(R?c:!0)?(A=!0,P=g,d=e.errSchemaPath+"/"+g,w+="="):(A=!1,D+="="));var F="'"+D+"'";r+=" if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" "+u+" "+w+" "+c+" || "+u+" !== "+u+") { "}}P=P||i;var L=L||[];L.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(P||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+F+", limit: "+c+", exclusive: "+A+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be "+D+" ",h?r+="' + "+c:r+=""+c+"'"),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var j=r;return r=L.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",p&&(r+=" else { "),r}});var Ba=W((Ob,Oo)=>{"use strict";Oo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,g,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;if(h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o,!(h||typeof o=="number"))throw new Error(i+" must be number");var m=i=="maxItems"?">":"<";r+="if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" "+u+".length "+m+" "+c+") { ";var g=i,y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(g||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+c+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have ",i=="maxItems"?r+="more":r+="fewer",r+=" than ",h?r+="' + "+c+" + '":r+=""+o,r+=" items' "),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var S=r;return r=y.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",p&&(r+=" else { "),r}});var Wa=W((Eb,Eo)=>{"use strict";Eo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,g,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;if(h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o,!(h||typeof o=="number"))throw new Error(i+" must be number");var m=i=="maxLength"?">":"<";r+="if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),e.opts.unicode===!1?r+=" "+u+".length ":r+=" ucs2length("+u+") ",r+=" "+m+" "+c+") { ";var g=i,y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(g||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+c+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be ",i=="maxLength"?r+="longer":r+="shorter",r+=" than ",h?r+="' + "+c+" + '":r+=""+o,r+=" characters' "),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var S=r;return r=y.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",p&&(r+=" else { "),r}});var Va=W((Ab,Ao)=>{"use strict";Ao.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,g,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;if(h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o,!(h||typeof o=="number"))throw new Error(i+" must be number");var m=i=="maxProperties"?">":"<";r+="if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" Object.keys("+u+").length "+m+" "+c+") { ";var g=i,y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(g||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+c+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have ",i=="maxProperties"?r+="more":r+="fewer",r+=" than ",h?r+="' + "+c+" + '":r+=""+o,r+=" properties' "),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var S=r;return r=y.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",p&&(r+=" else { "),r}});var Do=W(($b,$o)=>{"use strict";$o.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;if(h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o,!(h||typeof o=="number"))throw new Error(i+" must be number");r+="var division"+n+";if (",h&&(r+=" "+c+" !== undefined && ( typeof "+c+" != 'number' || "),r+=" (division"+n+" = "+u+" / "+c+", ",e.opts.multipleOfPrecision?r+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":r+=" division"+n+" !== parseInt(division"+n+") ",r+=" ) ",h&&(r+=" ) "),r+=" ) { ";var m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+c+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be multiple of ",h?r+="' + "+c:r+=""+c+"'"),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var g=r;return r=m.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",p&&(r+=" else { "),r}});var Ro=W((Db,Lo)=>{"use strict";Lo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,c=e.util.copy(e);c.level++;var m="valid"+c.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){c.schema=o,c.schemaPath=l,c.errSchemaPath=d,r+=" var "+h+" = errors; ";var g=e.compositeRule;e.compositeRule=c.compositeRule=!0,c.createErrors=!1;var y;c.opts.allErrors&&(y=c.opts.allErrors,c.opts.allErrors=!1),r+=" "+e.validate(c)+" ",c.createErrors=!0,y&&(c.opts.allErrors=y),e.compositeRule=c.compositeRule=g,r+=" if ("+m+") { ";var S=S||[];S.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;r=S.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else r+=" var err = ",e.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(r+=" if (false) { ");return r}});var jo=W((Lb,ko)=>{"use strict";ko.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c="errs__"+n,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,S=m.baseId,C="prevValid"+n,w="passingSchemas"+n;r+="var "+c+" = errors , "+C+" = false , "+h+" = false , "+w+" = null; ";var P=e.compositeRule;e.compositeRule=m.compositeRule=!0;var O=o;if(O)for(var A,_=-1,R=O.length-1;_<R;)A=O[_+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(m.schema=A,m.schemaPath=l+"["+_+"]",m.errSchemaPath=d+"/"+_,r+=" "+e.validate(m)+" ",m.baseId=S):r+=" var "+y+" = true; ",_&&(r+=" if ("+y+" && "+C+") { "+h+" = false; "+w+" = ["+w+", "+_+"]; } else { ",g+="}"),r+=" if ("+y+") { "+h+" = "+C+" = true; "+w+" = "+_+"; }";return e.compositeRule=m.compositeRule=P,r+=""+g+"if (!"+h+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { passingSchemas: "+w+" } ",e.opts.messages!==!1&&(r+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; }",e.opts.allErrors&&(r+=" } "),r}});var _o=W((Rb,No)=>{"use strict";No.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o;var m=h?"(new RegExp("+c+"))":e.usePattern(o);r+="if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'string') || "),r+=" !"+m+".test("+u+") ) { ";var g=g||[];g.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",h?r+=""+c:r+=""+e.util.toQuotedString(o),r+=" } ",e.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,h?r+="' + "+c+" + '":r+=""+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+e.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var y=r;return r=g.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",p&&(r+=" else { "),r}});var Mo=W((kb,qo)=>{"use strict";qo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,c=e.util.copy(e),m="";c.level++;var g="valid"+c.level,y="key"+n,S="idx"+n,C=c.dataLevel=e.dataLevel+1,w="data"+C,P="dataProperties"+n,O=Object.keys(o||{}).filter(Q),A=e.schema.patternProperties||{},_=Object.keys(A).filter(Q),R=e.schema.additionalProperties,F=O.length||_.length,D=R===!1,L=typeof R=="object"&&Object.keys(R).length,j=e.opts.removeAdditional,E=D||L||j,$=e.opts.ownProperties,q=e.baseId,ae=e.schema.required;if(ae&&!(e.opts.$data&&ae.$data)&&ae.length<e.opts.loopRequired)var G=e.util.toHash(ae);function Q(et){return et!=="__proto__"}if(r+="var "+h+" = errors;var "+g+" = true;",$&&(r+=" var "+P+" = undefined;"),E){if($?r+=" "+P+" = "+P+" || Object.keys("+u+"); for (var "+S+"=0; "+S+"<"+P+".length; "+S+"++) { var "+y+" = "+P+"["+S+"]; ":r+=" for (var "+y+" in "+u+") { ",F){if(r+=" var isAdditional"+n+" = !(false ",O.length)if(O.length>8)r+=" || validate.schema"+l+".hasOwnProperty("+y+") ";else{var U=O;if(U)for(var B,ge=-1,De=U.length-1;ge<De;)B=U[ge+=1],r+=" || "+y+" == "+e.util.toQuotedString(B)+" "}if(_.length){var ke=_;if(ke)for(var K,we=-1,Fe=ke.length-1;we<Fe;)K=ke[we+=1],r+=" || "+e.usePattern(K)+".test("+y+") "}r+=" ); if (isAdditional"+n+") { "}if(j=="all")r+=" delete "+u+"["+y+"]; ";else{var je=e.errorPath,$t="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),D)if(j)r+=" delete "+u+"["+y+"]; ";else{r+=" "+g+" = false; ";var gt=d;d=e.errSchemaPath+"/additionalProperties";var Ie=Ie||[];Ie.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { additionalProperty: '"+$t+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var be=r;r=Ie.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+be+"]); ":r+=" validate.errors = ["+be+"]; return false; ":r+=" var err = "+be+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=gt,p&&(r+=" break; ")}else if(L)if(j=="failing"){r+=" var "+h+" = errors; ";var Ht=e.compositeRule;e.compositeRule=c.compositeRule=!0,c.schema=R,c.schemaPath=e.schemaPath+".additionalProperties",c.errSchemaPath=e.errSchemaPath+"/additionalProperties",c.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Le=u+"["+y+"]";c.dataPathArr[C]=y;var ee=e.validate(c);c.baseId=q,e.util.varOccurences(ee,w)<2?r+=" "+e.util.varReplace(ee,w,Le)+" ":r+=" var "+w+" = "+Le+"; "+ee+" ",r+=" if (!"+g+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+y+"]; } ",e.compositeRule=c.compositeRule=Ht}else{c.schema=R,c.schemaPath=e.schemaPath+".additionalProperties",c.errSchemaPath=e.errSchemaPath+"/additionalProperties",c.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Le=u+"["+y+"]";c.dataPathArr[C]=y;var ee=e.validate(c);c.baseId=q,e.util.varOccurences(ee,w)<2?r+=" "+e.util.varReplace(ee,w,Le)+" ":r+=" var "+w+" = "+Le+"; "+ee+" ",p&&(r+=" if (!"+g+") break; ")}e.errorPath=je}F&&(r+=" } "),r+=" } ",p&&(r+=" if ("+g+") { ",m+="}")}var Dt=e.opts.useDefaults&&!e.compositeRule;if(O.length){var bt=O;if(bt)for(var B,Qt=-1,Zt=bt.length-1;Qt<Zt;){B=bt[Qt+=1];var Ae=o[B];if(e.opts.strictKeywords?typeof Ae=="object"&&Object.keys(Ae).length>0||Ae===!1:e.util.schemaHasRules(Ae,e.RULES.all)){var Ge=e.util.getProperty(B),Le=u+Ge,_e=Dt&&Ae.default!==void 0;c.schema=Ae,c.schemaPath=l+Ge,c.errSchemaPath=d+"/"+e.util.escapeFragment(B),c.errorPath=e.util.getPath(e.errorPath,B,e.opts.jsonPointers),c.dataPathArr[C]=e.util.toQuotedString(B);var ee=e.validate(c);if(c.baseId=q,e.util.varOccurences(ee,w)<2){ee=e.util.varReplace(ee,w,Le);var Ne=Le}else{var Ne=w;r+=" var "+w+" = "+Le+"; "}if(_e)r+=" "+ee+" ";else{if(G&&G[B]){r+=" if ( "+Ne+" === undefined ",$&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(B)+"') "),r+=") { "+g+" = false; ";var je=e.errorPath,gt=d,pt=e.util.escapeQuotes(B);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(je,B,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Ie=Ie||[];Ie.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+pt+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+pt+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var be=r;r=Ie.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+be+"]); ":r+=" validate.errors = ["+be+"]; return false; ":r+=" var err = "+be+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=gt,e.errorPath=je,r+=" } else { "}else p?(r+=" if ( "+Ne+" === undefined ",$&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(B)+"') "),r+=") { "+g+" = true; } else { "):(r+=" if ("+Ne+" !== undefined ",$&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(B)+"') "),r+=" ) { ");r+=" "+ee+" } "}}p&&(r+=" if ("+g+") { ",m+="}")}}if(_.length){var Me=_;if(Me)for(var K,di=-1,ma=Me.length-1;di<ma;){K=Me[di+=1];var Ae=A[K];if(e.opts.strictKeywords?typeof Ae=="object"&&Object.keys(Ae).length>0||Ae===!1:e.util.schemaHasRules(Ae,e.RULES.all)){c.schema=Ae,c.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(K),c.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(K),$?r+=" "+P+" = "+P+" || Object.keys("+u+"); for (var "+S+"=0; "+S+"<"+P+".length; "+S+"++) { var "+y+" = "+P+"["+S+"]; ":r+=" for (var "+y+" in "+u+") { ",r+=" if ("+e.usePattern(K)+".test("+y+")) { ",c.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Le=u+"["+y+"]";c.dataPathArr[C]=y;var ee=e.validate(c);c.baseId=q,e.util.varOccurences(ee,w)<2?r+=" "+e.util.varReplace(ee,w,Le)+" ":r+=" var "+w+" = "+Le+"; "+ee+" ",p&&(r+=" if (!"+g+") break; "),r+=" } ",p&&(r+=" else "+g+" = true; "),r+=" } ",p&&(r+=" if ("+g+") { ",m+="}")}}}return p&&(r+=" "+m+" if ("+h+" == errors) {"),r}});var Wo=W((jb,Bo)=>{"use strict";Bo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,c=e.util.copy(e),m="";c.level++;var g="valid"+c.level;if(r+="var "+h+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){c.schema=o,c.schemaPath=l,c.errSchemaPath=d;var y="key"+n,S="idx"+n,C="i"+n,w="' + "+y+" + '",P=c.dataLevel=e.dataLevel+1,O="data"+P,A="dataProperties"+n,_=e.opts.ownProperties,R=e.baseId;_&&(r+=" var "+A+" = undefined; "),_?r+=" "+A+" = "+A+" || Object.keys("+u+"); for (var "+S+"=0; "+S+"<"+A+".length; "+S+"++) { var "+y+" = "+A+"["+S+"]; ":r+=" for (var "+y+" in "+u+") { ",r+=" var startErrs"+n+" = errors; ";var F=y,D=e.compositeRule;e.compositeRule=c.compositeRule=!0;var L=e.validate(c);c.baseId=R,e.util.varOccurences(L,O)<2?r+=" "+e.util.varReplace(L,O,F)+" ":r+=" var "+O+" = "+F+"; "+L+" ",e.compositeRule=c.compositeRule=D,r+=" if (!"+g+") { for (var "+C+"=startErrs"+n+"; "+C+"<errors; "+C+"++) { vErrors["+C+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { propertyName: '"+w+"' } ",e.opts.messages!==!1&&(r+=" , message: 'property name \\'"+w+"\\' is invalid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),p&&(r+=" break; "),r+=" } }"}return p&&(r+=" "+m+" if ("+h+" == errors) {"),r}});var zo=W((Nb,Vo)=>{"use strict";Vo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c=e.opts.$data&&o&&o.$data,m;c?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o;var g="schema"+n;if(!c)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],S=o;if(S)for(var C,w=-1,P=S.length-1;w<P;){C=S[w+=1];var O=e.schema.properties[C];O&&(e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:e.util.schemaHasRules(O,e.RULES.all))||(y[y.length]=C)}}else var y=o;if(c||y.length){var A=e.errorPath,_=c||y.length>=e.opts.loopRequired,R=e.opts.ownProperties;if(p)if(r+=" var missing"+n+"; ",_){c||(r+=" var "+g+" = validate.schema"+l+"; ");var F="i"+n,D="schema"+n+"["+F+"]",L="' + "+D+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,D,e.opts.jsonPointers)),r+=" var "+h+" = true; ",c&&(r+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),r+=" for (var "+F+" = 0; "+F+" < "+g+".length; "+F+"++) { "+h+" = "+u+"["+g+"["+F+"]] !== undefined ",R&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", "+g+"["+F+"]) "),r+="; if (!"+h+") break; } ",c&&(r+=" } "),r+=" if (!"+h+") { ";var j=j||[];j.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+L+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var E=r;r=j.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var $=y;if($)for(var q,F=-1,ae=$.length-1;F<ae;){q=$[F+=1],F&&(r+=" || ");var G=e.util.getProperty(q),Q=u+G;r+=" ( ( "+Q+" === undefined ",R&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(q)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?q:G)+") ) "}r+=") { ";var D="missing"+n,L="' + "+D+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(A,D,!0):A+" + "+D);var j=j||[];j.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+L+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var E=r;r=j.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(_){c||(r+=" var "+g+" = validate.schema"+l+"; ");var F="i"+n,D="schema"+n+"["+F+"]",L="' + "+D+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,D,e.opts.jsonPointers)),c&&(r+=" if ("+g+" && !Array.isArray("+g+")) { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+L+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+g+" !== undefined) { "),r+=" for (var "+F+" = 0; "+F+" < "+g+".length; "+F+"++) { if ("+u+"["+g+"["+F+"]] === undefined ",R&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+g+"["+F+"]) "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+L+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",c&&(r+=" } ")}else{var U=y;if(U)for(var q,B=-1,ge=U.length-1;B<ge;){q=U[B+=1];var G=e.util.getProperty(q),L=e.util.escapeQuotes(q),Q=u+G;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(A,q,e.opts.jsonPointers)),r+=" if ( "+Q+" === undefined ",R&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(q)+"') "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+L+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=A}else p&&(r+=" if (true) {");return r}});var Go=W((_b,Uo)=>{"use strict";Uo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c=e.opts.$data&&o&&o.$data,m;if(c?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o,(o||c)&&e.opts.uniqueItems!==!1){c&&(r+=" var "+h+"; if ("+m+" === false || "+m+" === undefined) "+h+" = true; else if (typeof "+m+" != 'boolean') "+h+" = false; else { "),r+=" var i = "+u+".length , "+h+" = true , j; if (i > 1) { ";var g=e.schema.items&&e.schema.items.type,y=Array.isArray(g);if(!g||g=="object"||g=="array"||y&&(g.indexOf("object")>=0||g.indexOf("array")>=0))r+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+h+" = false; break outer; } } } ";else{r+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[i]; ";var S="checkDataType"+(y?"s":"");r+=" if ("+e.util[S](g,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(r+=` if (typeof item == 'string') item = '"' + item; `),r+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}r+=" } ",c&&(r+=" } "),r+=" if (!"+h+") { ";var C=C||[];C.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(r+=" , schema: ",c?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var w=r;r=C.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",p&&(r+=" else { ")}else p&&(r+=" if (true) { ");return r}});var Qo=W((qb,Ho)=>{"use strict";Ho.exports={$ref:no(),allOf:oo(),anyOf:co(),$comment:uo(),const:fo(),contains:yo(),dependencies:bo(),enum:So(),format:Io(),if:To(),items:Fo(),maximum:Ma(),minimum:Ma(),maxItems:Ba(),minItems:Ba(),maxLength:Wa(),minLength:Wa(),maxProperties:Va(),minProperties:Va(),multipleOf:Do(),not:Ro(),oneOf:jo(),pattern:_o(),properties:Mo(),propertyNames:Wo(),required:zo(),uniqueItems:Go(),validate:_a()}});var Yo=W((Mb,Jo)=>{"use strict";var Zo=Qo(),za=er().toHash;Jo.exports=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"]}],i=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],r=["number","integer","string","array","object","boolean","null"];return e.all=za(i),e.types=za(r),e.forEach(function(n){n.rules=n.rules.map(function(s){var o;if(typeof s=="object"){var l=Object.keys(s)[0];o=s[l],s=l,o.forEach(function(p){i.push(p),e.all[p]=!0})}i.push(s);var d=e.all[s]={keyword:s,code:Zo[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:Zo.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=za(i.concat(a)),e.custom={},e}});var el=W((Bb,Xo)=>{"use strict";var Ko=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Xo.exports=function(t,e){for(var i=0;i<e.length;i++){t=JSON.parse(JSON.stringify(t));var a=e[i].split("/"),r=t,n;for(n=1;n<a.length;n++)r=r[a[n]];for(n=0;n<Ko.length;n++){var s=Ko[n],o=r[s];o&&(r[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var il=W((Wb,rl)=>{"use strict";var ou=Ci().MissingRef;rl.exports=tl;function tl(t,e,i){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(i=e,e=void 0);var r=n(t).then(function(){var o=a._addSchema(t,void 0,e);return o.validate||s(o)});return i&&r.then(function(o){i(null,o)},i),r;function n(o){var l=o.$schema;return l&&!a.getSchema(l)?tl.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof ou)return l(d);throw d}function l(d){var p=d.missingSchema;if(c(p))throw new Error("Schema "+p+" is loaded but "+d.missingRef+" cannot be resolved");var u=a._loadingSchemas[p];return u||(u=a._loadingSchemas[p]=a._opts.loadSchema(p),u.then(h,h)),u.then(function(m){if(!c(p))return n(m).then(function(){c(p)||a.addSchema(m,p,void 0,e)})}).then(function(){return s(o)});function h(){delete a._loadingSchemas[p]}function c(m){return a._refs[m]||a._schemas[m]}}}}});var nl=W((Vb,al)=>{"use strict";al.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u,h="data"+(s||""),c="valid"+n,m="errs__"+n,g=e.opts.$data&&o&&o.$data,y;g?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",y="schema"+n):y=o;var S=this,C="definition"+n,w=S.definition,P="",O,A,_,R,F;if(g&&w.$data){F="keywordValidate"+n;var D=w.validateSchema;r+=" var "+C+" = RULES.custom['"+i+"'].definition; var "+F+" = "+C+".validate;"}else{if(R=e.useCustomRule(S,o,e.schema,e),!R)return;y="validate.schema"+l,F=R.code,O=w.compile,A=w.inline,_=w.macro}var L=F+".errors",j="i"+n,E="ruleErr"+n,$=w.async;if($&&!e.async)throw new Error("async keyword in sync schema");if(A||_||(r+=""+L+" = null;"),r+="var "+m+" = errors;var "+c+";",g&&w.$data&&(P+="}",r+=" if ("+y+" === undefined) { "+c+" = true; } else { ",D&&(P+="}",r+=" "+c+" = "+C+".validateSchema("+y+"); if ("+c+") { ")),A)w.statements?r+=" "+R.validate+" ":r+=" "+c+" = "+R.validate+"; ";else if(_){var q=e.util.copy(e),P="";q.level++;var ae="valid"+q.level;q.schema=R.validate,q.schemaPath="";var G=e.compositeRule;e.compositeRule=q.compositeRule=!0;var Q=e.validate(q).replace(/validate\.schema/g,F);e.compositeRule=q.compositeRule=G,r+=" "+Q}else{var U=U||[];U.push(r),r="",r+=" "+F+".call( ",e.opts.passContext?r+="this":r+="self",O||w.schema===!1?r+=" , "+h+" ":r+=" , "+y+" , "+h+" , validate.schema"+e.schemaPath+" ",r+=" , (dataPath || '')",e.errorPath!='""'&&(r+=" + "+e.errorPath);var B=s?"data"+(s-1||""):"parentData",ge=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+B+" , "+ge+" , rootData ) ";var De=r;r=U.pop(),w.errors===!1?(r+=" "+c+" = ",$&&(r+="await "),r+=""+De+"; "):$?(L="customErrors"+n,r+=" var "+L+" = null; try { "+c+" = await "+De+"; } catch (e) { "+c+" = false; if (e instanceof ValidationError) "+L+" = e.errors; else throw e; } "):r+=" "+L+" = null; "+c+" = "+De+"; "}if(w.modifying&&(r+=" if ("+B+") "+h+" = "+B+"["+ge+"];"),r+=""+P,w.valid)p&&(r+=" if (true) { ");else{r+=" if ( ",w.valid===void 0?(r+=" !",_?r+=""+ae:r+=""+c):r+=" "+!w.valid+" ",r+=") { ",u=S.keyword;var U=U||[];U.push(r),r="";var U=U||[];U.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+S.keyword+"' } ",e.opts.messages!==!1&&(r+=` , message: 'should pass "`+S.keyword+`" keyword validation' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";var ke=r;r=U.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+ke+"]); ":r+=" validate.errors = ["+ke+"]; return false; ":r+=" var err = "+ke+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var K=r;r=U.pop(),A?w.errors?w.errors!="full"&&(r+=" for (var "+j+"="+m+"; "+j+"<errors; "+j+"++) { var "+E+" = vErrors["+j+"]; if ("+E+".dataPath === undefined) "+E+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+E+".schemaPath === undefined) { "+E+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(r+=" "+E+".schema = "+y+"; "+E+".data = "+h+"; "),r+=" } "):w.errors===!1?r+=" "+K+" ":(r+=" if ("+m+" == errors) { "+K+" } else { for (var "+j+"="+m+"; "+j+"<errors; "+j+"++) { var "+E+" = vErrors["+j+"]; if ("+E+".dataPath === undefined) "+E+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+E+".schemaPath === undefined) { "+E+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(r+=" "+E+".schema = "+y+"; "+E+".data = "+h+"; "),r+=" } } "):_?(r+=" var err = ",e.createErrors!==!1?(r+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+S.keyword+"' } ",e.opts.messages!==!1&&(r+=` , message: 'should pass "`+S.keyword+`" keyword validation' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; ")):w.errors===!1?r+=" "+K+" ":(r+=" if (Array.isArray("+L+")) { if (vErrors === null) vErrors = "+L+"; else vErrors = vErrors.concat("+L+"); errors = vErrors.length; for (var "+j+"="+m+"; "+j+"<errors; "+j+"++) { var "+E+" = vErrors["+j+"]; if ("+E+".dataPath === undefined) "+E+".dataPath = (dataPath || '') + "+e.errorPath+"; "+E+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(r+=" "+E+".schema = "+y+"; "+E+".data = "+h+"; "),r+=" } } else { "+K+" } "),r+=" } ",p&&(r+=" else { ")}return r}});var Ua=W((zb,lu)=>{lu.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{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:[]}},type:["object","boolean"],properties:{$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:"#"}},default:!0}});var ll=W((Ub,ol)=>{"use strict";var sl=Ua();ol.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:sl.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:sl.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"}]}}}});var cl=W((Gb,dl)=>{"use strict";var du=/^[a-z_$][a-z0-9_$-]*$/i,cu=nl(),pu=ll();dl.exports={add:uu,get:hu,remove:fu,validate:Ga};function uu(t,e){var i=this.RULES;if(i.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!du.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var r=0;r<a.length;r++)s(t,a[r],e);else s(t,a,e);var n=e.metaSchema;n&&(e.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(n,!0))}i.keywords[t]=i.all[t]=!0;function s(o,l,d){for(var p,u=0;u<i.length;u++){var h=i[u];if(h.type==l){p=h;break}}p||(p={type:l,rules:[]},i.push(p));var c={keyword:o,definition:d,custom:!0,code:cu,implements:d.implements};p.rules.push(c),i.custom[o]=c}return this}function hu(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function fu(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var i=0;i<e.length;i++)for(var a=e[i].rules,r=0;r<a.length;r++)if(a[r].keyword==t){a.splice(r,1);break}return this}function Ga(t,e){Ga.errors=null;var i=this._validateKeyword=this._validateKeyword||this.compile(pu,!0);if(i(t))return!0;if(Ga.errors=i.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(i.errors));return!1}});var pl=W((Hb,mu)=>{mu.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var wl=W((Qb,Sl)=>{"use strict";var hl=Vs(),tr=Ti(),yu=Us(),fl=$a(),gu=Na(),bu=io(),vu=Yo(),ml=el(),yl=er();Sl.exports=Se;Se.prototype.validate=wu;Se.prototype.compile=Iu;Se.prototype.addSchema=xu;Se.prototype.addMetaSchema=Tu;Se.prototype.validateSchema=Cu;Se.prototype.getSchema=Pu;Se.prototype.removeSchema=Eu;Se.prototype.addFormat=Nu;Se.prototype.errorsText=ju;Se.prototype._addSchema=Au;Se.prototype._compile=$u;Se.prototype.compileAsync=il();var Li=cl();Se.prototype.addKeyword=Li.add;Se.prototype.getKeyword=Li.get;Se.prototype.removeKeyword=Li.remove;Se.prototype.validateKeyword=Li.validate;var gl=Ci();Se.ValidationError=gl.Validation;Se.MissingRefError=gl.MissingRef;Se.$dataMetaSchema=ml;var Di="http://json-schema.org/draft-07/schema",ul=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Su=["/properties"];function Se(t){if(!(this instanceof Se))return new Se(t);t=this._opts=yl.copy(t)||{},Vu(this),this._schemas={},this._refs={},this._fragments={},this._formats=bu(t.format),this._cache=t.cache||new yu,this._loadingSchemas={},this._compilations=[],this.RULES=vu(),this._getId=Du(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=gu),this._metaOpts=Wu(this),t.formats&&Mu(this),t.keywords&&Bu(this),_u(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),qu(this)}function wu(t,e){var i;if(typeof t=="string"){if(i=this.getSchema(t),!i)throw new Error('no schema with key or ref "'+t+'"')}else{var a=this._addSchema(t);i=a.validate||this._compile(a)}var r=i(e);return i.$async!==!0&&(this.errors=i.errors),r}function Iu(t,e){var i=this._addSchema(t,void 0,e);return i.validate||this._compile(i)}function xu(t,e,i,a){if(Array.isArray(t)){for(var r=0;r<t.length;r++)this.addSchema(t[r],void 0,i,a);return this}var n=this._getId(t);if(n!==void 0&&typeof n!="string")throw new Error("schema id must be string");return e=tr.normalizeId(e||n),vl(this,e),this._schemas[e]=this._addSchema(t,i,a,!0),this}function Tu(t,e,i){return this.addSchema(t,e,i,!0),this}function Cu(t,e){var i=t.$schema;if(i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this._opts.defaultMeta||Fu(this),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(i,t);if(!a&&e){var r="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(r);else throw new Error(r)}return a}function Fu(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(Di)?Di:void 0,t._opts.defaultMeta}function Pu(t){var e=bl(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return Ou(this,t)}}function Ou(t,e){var i=tr.schema.call(t,{schema:{}},e);if(i){var a=i.schema,r=i.root,n=i.baseId,s=hl.call(t,a,r,void 0,n);return t._fragments[e]=new fl({ref:e,fragment:!0,schema:a,root:r,baseId:n,validate:s}),s}}function bl(t,e){return e=tr.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function Eu(t){if(t instanceof RegExp)return $i(this,this._schemas,t),$i(this,this._refs,t),this;switch(typeof t){case"undefined":return $i(this,this._schemas),$i(this,this._refs),this._cache.clear(),this;case"string":var e=bl(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var i=this._opts.serialize,a=i?i(t):t;this._cache.del(a);var r=this._getId(t);r&&(r=tr.normalizeId(r),delete this._schemas[r],delete this._refs[r])}return this}function $i(t,e,i){for(var a in e){var r=e[a];!r.meta&&(!i||i.test(a))&&(t._cache.del(r.cacheKey),delete e[a])}}function Au(t,e,i,a){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var r=this._opts.serialize,n=r?r(t):t,s=this._cache.get(n);if(s)return s;a=a||this._opts.addUsedSchema!==!1;var o=tr.normalizeId(this._getId(t));o&&a&&vl(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==tr.normalizeId(t.$schema))&&this.validateSchema(t,!0);var p=tr.ids.call(this,t),u=new fl({id:o,schema:t,localRefs:p,cacheKey:n,meta:i});return o[0]!="#"&&a&&(this._refs[o]=u),this._cache.put(n,u),l&&d&&this.validateSchema(t,!0),u}function $u(t,e){if(t.compiling)return t.validate=r,r.schema=t.schema,r.errors=null,r.root=e||r,t.schema.$async===!0&&(r.$async=!0),r;t.compiling=!0;var i;t.meta&&(i=this._opts,this._opts=this._metaOpts);var a;try{a=hl.call(this,t.schema,e,t.localRefs)}catch(n){throw delete t.validate,n}finally{t.compiling=!1,t.meta&&(this._opts=i)}return t.validate=a,t.refs=a.refs,t.refVal=a.refVal,t.root=a.root,a;function r(){var n=t.validate,s=n.apply(this,arguments);return r.errors=n.errors,s}}function Du(t){switch(t.schemaId){case"auto":return ku;case"id":return Lu;default:return Ru}}function Lu(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function Ru(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function ku(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function ju(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var i=e.separator===void 0?", ":e.separator,a=e.dataVar===void 0?"data":e.dataVar,r="",n=0;n<t.length;n++){var s=t[n];s&&(r+=a+s.dataPath+" "+s.message+i)}return r.slice(0,-i.length)}function Nu(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function _u(t){var e;if(t._opts.$data&&(e=pl(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var i=Ua();t._opts.$data&&(i=ml(i,Su)),t.addMetaSchema(i,Di,!0),t._refs["http://json-schema.org/schema"]=Di}}function qu(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var i in e)t.addSchema(e[i],i)}function Mu(t){for(var e in t._opts.formats){var i=t._opts.formats[e];t.addFormat(e,i)}}function Bu(t){for(var e in t._opts.keywords){var i=t._opts.keywords[e];t.addKeyword(e,i)}}function vl(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function Wu(t){for(var e=yl.copy(t._opts),i=0;i<ul.length;i++)delete e[ul[i]];return e}function Vu(t){var e=t._opts.logger;if(e===!1)t.logger={log:Ha,warn:Ha,error:Ha};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function Ha(){}});var Tl=W((Zb,Za)=>{function zu(t,e){var i=e&&e.cache?e.cache:Ju,a=e&&e.serializer?e.serializer:Zu,r=e&&e.strategy?e.strategy:Gu;return r(t,{cache:i,serializer:a})}function Uu(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Il(t,e,i,a){var r=Uu(a)?a:i(a),n=e.get(r);return typeof n>"u"&&(n=t.call(this,a),e.set(r,n)),n}function xl(t,e,i){var a=Array.prototype.slice.call(arguments,3),r=i(a),n=e.get(r);return typeof n>"u"&&(n=t.apply(this,a),e.set(r,n)),n}function Qa(t,e,i,a,r){return i.bind(e,t,a,r)}function Gu(t,e){var i=t.length===1?Il:xl;return Qa(t,this,i,e.cache.create(),e.serializer)}function Hu(t,e){var i=xl;return Qa(t,this,i,e.cache.create(),e.serializer)}function Qu(t,e){var i=Il;return Qa(t,this,i,e.cache.create(),e.serializer)}function Zu(){return JSON.stringify(arguments)}function Ri(){this.cache=Object.create(null)}Ri.prototype.has=function(t){return t in this.cache};Ri.prototype.get=function(t){return this.cache[t]};Ri.prototype.set=function(t,e){this.cache[t]=e};var Ju={create:function(){return new Ri}};Za.exports=zu;Za.exports.strategies={variadic:Hu,monadic:Qu}});function fs(t,e,i){t=+t,e=+e,i=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+i;for(var a=-1,r=Math.max(0,Math.ceil((e-t)/i))|0,n=new Array(r);++a<r;)n[a]=t+a*i;return n}function zr(t,e){let i,a;if(e===void 0)for(let r of t)r!=null&&(i===void 0?r>=r&&(i=a=r):(i>r&&(i=r),a<r&&(a=r)));else{let r=-1;for(let n of t)(n=e(n,++r,t))!=null&&(i===void 0?n>=n&&(i=a=n):(i>n&&(i=n),a<n&&(a=n)))}return[i,a]}var mi=class extends Map{constructor(e,i=dp){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),e!=null)for(let[a,r]of e)this.set(a,r)}get(e){return super.get(ms(this,e))}has(e){return super.has(ms(this,e))}set(e,i){return super.set(op(this,e),i)}delete(e){return super.delete(lp(this,e))}};function ms({_intern:t,_key:e},i){let a=e(i);return t.has(a)?t.get(a):i}function op({_intern:t,_key:e},i){let a=e(i);return t.has(a)?t.get(a):(t.set(a,i),i)}function lp({_intern:t,_key:e},i){let a=e(i);return t.has(a)&&(i=t.get(a),t.delete(a)),i}function dp(t){return t!==null&&typeof t=="object"?t.valueOf():t}function xa(t){return t}function cp(t,e,...i){return pp(t,xa,e,i)}function pp(t,e,i,a){return function r(n,s){if(s>=a.length)return i(n);let o=new mi,l=a[s++],d=-1;for(let p of n){let u=l(p,++d,n),h=o.get(u);h?h.push(p):o.set(u,[p])}for(let[p,u]of o)o.set(p,r(u,s));return e(o)}(t,0)}function ys(t,e){let i;if(e===void 0)for(let a of t)a!=null&&(i<a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let r of t)(r=e(r,++a,t))!=null&&(i<r||i===void 0&&r>=r)&&(i=r)}return i}function gs(t,e){let i;if(e===void 0)for(let a of t)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let r of t)(r=e(r,++a,t))!=null&&(i>r||i===void 0&&r>=r)&&(i=r)}return i}function bs(t,e){let i=0,a=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(++i,a+=r);else{let r=-1;for(let n of t)(n=e(n,++r,t))!=null&&(n=+n)>=n&&(++i,a+=n)}if(i)return a/i}function vs(t,e){let i=0;if(e===void 0)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let r of t)(r=+e(r,++a,t))&&(i+=r)}return i}var ld=os(wl(),1);var pd=os(Tl(),1);var Ot="24.4.0",Rn="arcgis_charts_pie_from_fields_name",hd="arcgis_charts_pie_from_fields_value",ah="arcgis_charts_bar_line_from_fields_name",nh="arcgis_charts_bar_line_from_fields_value",Ct={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"},Ft=class extends Error{},pn=class extends Ft{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},un=class extends Ft{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},hn=class extends Ft{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Wt=class extends Ft{},Ji=class extends Ft{constructor(e){super(`Invalid unit ${e}`)}},Pe=class extends Ft{},ft=class extends Ft{constructor(){super("Zone is an abstract class")}},k="numeric",ot="short",Ue="long",Yi={year:k,month:k,day:k},fd={year:k,month:ot,day:k},sh={year:k,month:ot,day:k,weekday:ot},md={year:k,month:Ue,day:k},yd={year:k,month:Ue,day:k,weekday:Ue},gd={hour:k,minute:k},bd={hour:k,minute:k,second:k},vd={hour:k,minute:k,second:k,timeZoneName:ot},Sd={hour:k,minute:k,second:k,timeZoneName:Ue},wd={hour:k,minute:k,hourCycle:"h23"},Id={hour:k,minute:k,second:k,hourCycle:"h23"},xd={hour:k,minute:k,second:k,hourCycle:"h23",timeZoneName:ot},Td={hour:k,minute:k,second:k,hourCycle:"h23",timeZoneName:Ue},Cd={year:k,month:k,day:k,hour:k,minute:k},Fd={year:k,month:k,day:k,hour:k,minute:k,second:k},Pd={year:k,month:ot,day:k,hour:k,minute:k},Od={year:k,month:ot,day:k,hour:k,minute:k,second:k},oh={year:k,month:ot,day:k,weekday:ot,hour:k,minute:k},Ed={year:k,month:Ue,day:k,hour:k,minute:k,timeZoneName:ot},Ad={year:k,month:Ue,day:k,hour:k,minute:k,second:k,timeZoneName:ot},$d={year:k,month:Ue,day:k,weekday:Ue,hour:k,minute:k,timeZoneName:Ue},Dd={year:k,month:Ue,day:k,weekday:Ue,hour:k,minute:k,second:k,timeZoneName:Ue},sr=class{get type(){throw new ft}get name(){throw new ft}get ianaName(){return this.name}get isUniversal(){throw new ft}offsetName(e,i){throw new ft}formatOffset(e,i){throw new ft}offset(e){throw new ft}equals(e){throw new ft}get isValid(){throw new ft}},Ja=null,Ki=class t extends sr{static get instance(){return Ja===null&&(Ja=new t),Ja}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:a}){return Vd(e,i,a)}formatOffset(e,i){return Yr(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},fn=new Map;function lh(t){let e=fn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),fn.set(t,e)),e}var dh={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ch(t,e){let i=t.format(e).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,r,n,s,o,l,d,p]=a;return[s,r,n,o,l,d,p]}function ph(t,e){let i=t.formatToParts(e),a=[];for(let r=0;r<i.length;r++){let{type:n,value:s}=i[r],o=dh[n];n==="era"?a[o]=s:V(o)||(a[o]=parseInt(s,10))}return a}var Ya=new Map,zt=class t extends sr{static create(e){let i=Ya.get(e);return i===void 0&&Ya.set(e,i=new t(e)),i}static resetCache(){Ya.clear(),fn.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:a}){return Vd(e,i,a,this.name)}formatOffset(e,i){return Yr(this.offset(e),i)}offset(e){if(!this.valid)return NaN;let i=new Date(e);if(isNaN(i))return NaN;let a=lh(this.name),[r,n,s,o,l,d,p]=a.formatToParts?ph(a,i):ch(a,i);o==="BC"&&(r=-Math.abs(r)+1);let u=la({year:r,month:n,day:s,hour:l===24?0:l,minute:d,second:p,millisecond:0}),h=+i,c=h%1e3;return h-=c>=0?c:1e3+c,(u-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},Cl={};function uh(t,e={}){let i=JSON.stringify([t,e]),a=Cl[i];return a||(a=new Intl.ListFormat(t,e),Cl[i]=a),a}var mn=new Map;function yn(t,e={}){let i=JSON.stringify([t,e]),a=mn.get(i);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),mn.set(i,a)),a}var gn=new Map;function hh(t,e={}){let i=JSON.stringify([t,e]),a=gn.get(i);return a===void 0&&(a=new Intl.NumberFormat(t,e),gn.set(i,a)),a}var bn=new Map;function fh(t,e={}){let{base:i,...a}=e,r=JSON.stringify([t,a]),n=bn.get(r);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),bn.set(r,n)),n}var zi=null;function mh(){return zi||(zi=new Intl.DateTimeFormat().resolvedOptions().locale,zi)}var vn=new Map;function Ld(t){let e=vn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),vn.set(t,e)),e}var Sn=new Map;function yh(t){let e=Sn.get(t);if(!e){let i=new Intl.Locale(t);e="getWeekInfo"in i?i.getWeekInfo():i.weekInfo,"minimalDays"in e||(e={...Rd,...e}),Sn.set(t,e)}return e}function gh(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let i=t.indexOf("-u-");if(i===-1)return[t];{let a,r;try{a=yn(t).resolvedOptions(),r=t}catch{let o=t.substring(0,i);a=yn(o).resolvedOptions(),r=o}let{numberingSystem:n,calendar:s}=a;return[r,n,s]}}function bh(t,e,i){return(i||e)&&(t.includes("-u-")||(t+="-u"),i&&(t+=`-ca-${i}`),e&&(t+=`-nu-${e}`)),t}function vh(t){let e=[];for(let i=1;i<=12;i++){let a=ue.utc(2009,i,1);e.push(t(a))}return e}function Sh(t){let e=[];for(let i=1;i<=7;i++){let a=ue.utc(2016,11,13+i);e.push(t(a))}return e}function ki(t,e,i,a){let r=t.listingMode();return r==="error"?null:r==="en"?i(e):a(e)}function wh(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Ld(t.locale).numberingSystem==="latn"}var wn=class{constructor(e,i,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:r,floor:n,...s}=a;if(!i||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=hh(e,o)}}format(e){if(this.inf){let i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{let i=this.floor?Math.floor(e):qn(e,3);return Ce(i,this.padTo)}}},In=class{constructor(e,i,a){this.opts=a,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&zt.create(o).valid?(r=o,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||r,this.dtf=yn(i,n)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(i=>{if(i.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:a}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},xn=class{constructor(e,i,a){this.opts={style:"long",...a},!i&&Bd()&&(this.rtf=fh(e,a))}format(e,i){return this.rtf?this.rtf.format(e,i):Wh(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}},Rd={firstDay:1,minimalDays:4,weekend:[6,7]},oe=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,i,a,r,n=!1){let s=e||pe.defaultLocale,o=s||(n?"en-US":mh()),l=i||pe.defaultNumberingSystem,d=a||pe.defaultOutputCalendar,p=Fn(r)||pe.defaultWeekSettings;return new t(o,l,d,p,s)}static resetCache(){zi=null,mn.clear(),gn.clear(),bn.clear(),vn.clear(),Sn.clear()}static fromObject({locale:e,numberingSystem:i,outputCalendar:a,weekSettings:r}={}){return t.create(e,i,a,r)}constructor(e,i,a,r,n){let[s,o,l]=gh(e);this.locale=s,this.numberingSystem=i||o||null,this.outputCalendar=a||l||null,this.weekSettings=r,this.intl=bh(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=wh(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Fn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,i=!1){return ki(this,e,Gd,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");i&=!a;let r=i?{month:e,day:"numeric"}:{month:e},n=i?"format":"standalone";if(!this.monthsCache[n][e]){let s=a?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[n][e]=vh(s)}return this.monthsCache[n][e]})}weekdays(e,i=!1){return ki(this,e,Zd,()=>{let a=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=i?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=Sh(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return ki(this,void 0,()=>Jd,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ue.utc(2016,11,13,9),ue.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ki(this,e,Yd,()=>{let i={era:e};return this.eraCache[e]||(this.eraCache[e]=[ue.utc(-40,1,1),ue.utc(2017,1,1)].map(a=>this.extract(a,i,"era"))),this.eraCache[e]})}extract(e,i,a){let r=this.dtFormatter(e,i),n=r.formatToParts(),s=n.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(e={}){return new wn(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new In(e,this.intl,i)}relFormatter(e={}){return new xn(this.intl,this.isEnglish(),e)}listFormatter(e={}){return uh(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Ld(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Wd()?yh(this.locale):Rd}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Ka=null,Xe=class t extends sr{static get utcInstance(){return Ka===null&&(Ka=new t(0)),Ka}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new t(da(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Yr(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Yr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return Yr(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},Tn=class extends sr{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Bt(t,e){if(V(t)||t===null)return e;if(t instanceof sr)return t;if(Ph(t)){let i=t.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Ki.instance:i==="utc"||i==="gmt"?Xe.utcInstance:Xe.parseSpecifier(i)||zt.create(t)}else return Vt(t)?Xe.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Tn(t)}var kn={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Fl={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ih=kn.hanidec.replace(/[\[|\]]/g,"").split("");function xh(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let i=0;i<t.length;i++){let a=t.charCodeAt(i);if(t[i].search(kn.hanidec)!==-1)e+=Ih.indexOf(t[i]);else for(let r in Fl){let[n,s]=Fl[r];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var Cn=new Map;function Th(){Cn.clear()}function at({numberingSystem:t},e=""){let i=t||"latn",a=Cn.get(i);a===void 0&&(a=new Map,Cn.set(i,a));let r=a.get(e);return r===void 0&&(r=new RegExp(`${kn[i]}${e}`),a.set(e,r)),r}var Pl=()=>Date.now(),Ol="system",El=null,Al=null,$l=null,Dl=60,Ll,Rl=null,pe=class{static get now(){return Pl}static set now(e){Pl=e}static set defaultZone(e){Ol=e}static get defaultZone(){return Bt(Ol,Ki.instance)}static get defaultLocale(){return El}static set defaultLocale(e){El=e}static get defaultNumberingSystem(){return Al}static set defaultNumberingSystem(e){Al=e}static get defaultOutputCalendar(){return $l}static set defaultOutputCalendar(e){$l=e}static get defaultWeekSettings(){return Rl}static set defaultWeekSettings(e){Rl=Fn(e)}static get twoDigitCutoffYear(){return Dl}static set twoDigitCutoffYear(e){Dl=e%100}static get throwOnInvalid(){return Ll}static set throwOnInvalid(e){Ll=e}static resetCaches(){oe.resetCache(),zt.resetCache(),ue.resetCache(),Th()}},ze=class{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},kd=[0,31,59,90,120,151,181,212,243,273,304,334],jd=[0,31,60,91,121,152,182,213,244,274,305,335];function Ye(t,e){return new ze("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function jn(t,e,i){let a=new Date(Date.UTC(t,e-1,i));t<100&&t>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let r=a.getUTCDay();return r===0?7:r}function Nd(t,e,i){return i+(ri(t)?jd:kd)[e-1]}function _d(t,e){let i=ri(t)?jd:kd,a=i.findIndex(n=>n<e),r=e-i[a];return{month:a+1,day:r}}function Nn(t,e){return(t-e+7)%7+1}function Xi(t,e=4,i=1){let{year:a,month:r,day:n}=t,s=Nd(a,r,n),o=Nn(jn(a,r,n),i),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=Kr(d,e,i)):l>Kr(a,e,i)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...ca(t)}}function kl(t,e=4,i=1){let{weekYear:a,weekNumber:r,weekday:n}=t,s=Nn(jn(a,1,e),i),o=Pr(a),l=r*7+n-s-7+e,d;l<1?(d=a-1,l+=Pr(d)):l>o?(d=a+1,l-=Pr(a)):d=a;let{month:p,day:u}=_d(d,l);return{year:d,month:p,day:u,...ca(t)}}function Xa(t){let{year:e,month:i,day:a}=t,r=Nd(e,i,a);return{year:e,ordinal:r,...ca(t)}}function jl(t){let{year:e,ordinal:i}=t,{month:a,day:r}=_d(e,i);return{year:e,month:a,day:r,...ca(t)}}function Nl(t,e){if(!V(t.localWeekday)||!V(t.localWeekNumber)||!V(t.localWeekYear)){if(!V(t.weekday)||!V(t.weekNumber)||!V(t.weekYear))throw new Wt("Cannot mix locale-based week fields with ISO-based week fields");return V(t.localWeekday)||(t.weekday=t.localWeekday),V(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),V(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Ch(t,e=4,i=1){let a=oa(t.weekYear),r=Ke(t.weekNumber,1,Kr(t.weekYear,e,i)),n=Ke(t.weekday,1,7);return a?r?n?!1:Ye("weekday",t.weekday):Ye("week",t.weekNumber):Ye("weekYear",t.weekYear)}function Fh(t){let e=oa(t.year),i=Ke(t.ordinal,1,Pr(t.year));return e?i?!1:Ye("ordinal",t.ordinal):Ye("year",t.year)}function qd(t){let e=oa(t.year),i=Ke(t.month,1,12),a=Ke(t.day,1,ea(t.year,t.month));return e?i?a?!1:Ye("day",t.day):Ye("month",t.month):Ye("year",t.year)}function Md(t){let{hour:e,minute:i,second:a,millisecond:r}=t,n=Ke(e,0,23)||e===24&&i===0&&a===0&&r===0,s=Ke(i,0,59),o=Ke(a,0,59),l=Ke(r,0,999);return n?s?o?l?!1:Ye("millisecond",r):Ye("second",a):Ye("minute",i):Ye("hour",e)}function V(t){return typeof t>"u"}function Vt(t){return typeof t=="number"}function oa(t){return typeof t=="number"&&t%1===0}function Ph(t){return typeof t=="string"}function Oh(t){return Object.prototype.toString.call(t)==="[object Date]"}function Bd(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Wd(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Eh(t){return Array.isArray(t)?t:[t]}function _l(t,e,i){if(t.length!==0)return t.reduce((a,r)=>{let n=[e(r),r];return a&&i(a[0],n[0])===a[0]?a:n},null)[1]}function Ah(t,e){return e.reduce((i,a)=>(i[a]=t[a],i),{})}function $r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Fn(t){if(t==null)return null;if(typeof t!="object")throw new Pe("Week settings must be an object");if(!Ke(t.firstDay,1,7)||!Ke(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Ke(e,1,7)))throw new Pe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Ke(t,e,i){return oa(t)&&t>=e&&t<=i}function $h(t,e){return t-e*Math.floor(t/e)}function Ce(t,e=2){let i=t<0,a;return i?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function qt(t){if(!(V(t)||t===null||t===""))return parseInt(t,10)}function rr(t){if(!(V(t)||t===null||t===""))return parseFloat(t)}function _n(t){if(!(V(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function qn(t,e,i="round"){let a=10**e;switch(i){case"expand":return t>0?Math.ceil(t*a)/a:Math.floor(t*a)/a;case"trunc":return Math.trunc(t*a)/a;case"round":return Math.round(t*a)/a;case"floor":return Math.floor(t*a)/a;case"ceil":return Math.ceil(t*a)/a;default:throw new RangeError(`Value rounding ${i} is out of range`)}}function ri(t){return t%4===0&&(t%100!==0||t%400===0)}function Pr(t){return ri(t)?366:365}function ea(t,e){let i=$h(e-1,12)+1,a=t+(e-i)/12;return i===2?ri(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function la(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function ql(t,e,i){return-Nn(jn(t,1,e),i)+e-1}function Kr(t,e=4,i=1){let a=ql(t,e,i),r=ql(t+1,e,i);return(Pr(t)-a+r)/7}function Pn(t){return t>99?t:t>pe.twoDigitCutoffYear?1900+t:2e3+t}function Vd(t,e,i,a=null){let r=new Date(t),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(n.timeZone=a);let s={timeZoneName:e,...n},o=new Intl.DateTimeFormat(i,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function da(t,e){let i=parseInt(t,10);Number.isNaN(i)&&(i=0);let a=parseInt(e,10)||0,r=i<0||Object.is(i,-0)?-a:a;return i*60+r}function zd(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Pe(`Invalid unit value ${t}`);return e}function ta(t,e){let i={};for(let a in t)if($r(t,a)){let r=t[a];if(r==null)continue;i[e(a)]=zd(r)}return i}function Yr(t,e){let i=Math.trunc(Math.abs(t/60)),a=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${Ce(i,2)}:${Ce(a,2)}`;case"narrow":return`${r}${i}${a>0?`:${a}`:""}`;case"techie":return`${r}${Ce(i,2)}${Ce(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ca(t){return Ah(t,["hour","minute","second","millisecond"])}var Dh=["January","February","March","April","May","June","July","August","September","October","November","December"],Ud=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Lh=["J","F","M","A","M","J","J","A","S","O","N","D"];function Gd(t){switch(t){case"narrow":return[...Lh];case"short":return[...Ud];case"long":return[...Dh];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Hd=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Qd=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Rh=["M","T","W","T","F","S","S"];function Zd(t){switch(t){case"narrow":return[...Rh];case"short":return[...Qd];case"long":return[...Hd];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Jd=["AM","PM"],kh=["Before Christ","Anno Domini"],jh=["BC","AD"],Nh=["B","A"];function Yd(t){switch(t){case"narrow":return[...Nh];case"short":return[...jh];case"long":return[...kh];default:return null}}function _h(t){return Jd[t.hour<12?0:1]}function qh(t,e){return Zd(e)[t.weekday-1]}function Mh(t,e){return Gd(e)[t.month-1]}function Bh(t,e){return Yd(e)[t.year<0?0:1]}function Wh(t,e,i="always",a=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=["hours","minutes","seconds"].indexOf(t)===-1;if(i==="auto"&&n){let u=t==="days";switch(e){case 1:return u?"tomorrow":`next ${r[t][0]}`;case-1:return u?"yesterday":`last ${r[t][0]}`;case 0:return u?"today":`this ${r[t][0]}`}}let s=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,d=r[t],p=a?l?d[1]:d[2]||d[1]:l?r[t][0]:t;return s?`${o} ${p} ago`:`in ${o} ${p}`}function Ml(t,e){let i="";for(let a of t)a.literal?i+=a.val:i+=e(a.val);return i}var Vh={D:Yi,DD:fd,DDD:md,DDDD:yd,t:gd,tt:bd,ttt:vd,tttt:Sd,T:wd,TT:Id,TTT:xd,TTTT:Td,f:Cd,ff:Pd,fff:Ed,ffff:$d,F:Fd,FF:Od,FFF:Ad,FFFF:Dd},Ve=class t{static create(e,i={}){return new t(e,i)}static parseFormat(e){let i=null,a="",r=!1,n=[];for(let s=0;s<e.length;s++){let o=e.charAt(s);o==="'"?((a.length>0||r)&&n.push({literal:r||/^\s+$/.test(a),val:a===""?"'":a}),i=null,a="",r=!r):r||o===i?a+=o:(a.length>0&&n.push({literal:/^\s+$/.test(a),val:a}),a=o,i=o)}return a.length>0&&n.push({literal:r||/^\s+$/.test(a),val:a}),n}static macroTokenToFormatOpts(e){return Vh[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0,a=void 0){if(this.opts.forceSimple)return Ce(e,i);let r={...this.opts};return i>0&&(r.padTo=i),a&&(r.signDisplay=a),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,i){let a=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(c,m)=>this.loc.extract(e,c,m),s=c=>e.isOffsetFixed&&e.offset===0&&c.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,c.format):"",o=()=>a?_h(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(c,m)=>a?Mh(e,c):n(m?{month:c}:{month:c,day:"numeric"},"month"),d=(c,m)=>a?qh(e,c):n(m?{weekday:c}:{weekday:c,month:"long",day:"numeric"},"weekday"),p=c=>{let m=t.macroTokenToFormatOpts(c);return m?this.formatWithSystemDefault(e,m):c},u=c=>a?Bh(e,c):n({era:c},"era"),h=c=>{switch(c){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return r?n({day:"numeric"},"day"):this.num(e.day);case"dd":return r?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return r?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?n({month:"numeric"},"month"):this.num(e.month);case"MM":return r?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?n({year:"numeric"},"year"):this.num(e.year);case"yy":return r?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return p(c)}};return Ml(t.parseFormat(i),h)}formatDurationFromString(e,i){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,r=p=>{switch(p[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},n=(p,u)=>h=>{let c=r(h);if(c){let m=u.isNegativeDuration&&c!==u.largestUnit?a:1,g;return this.opts.signMode==="negativeLargestOnly"&&c!==u.largestUnit?g="never":this.opts.signMode==="all"?g="always":g="auto",this.num(p.get(c)*m,h.length,g)}else return h},s=t.parseFormat(i),o=s.reduce((p,{literal:u,val:h})=>u?p:p.concat(h),[]),l=e.shiftTo(...o.map(r).filter(p=>p)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Ml(s,n(l,d))}},Kd=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Dr(...t){let e=t.reduce((i,a)=>i+a.source,"");return RegExp(`^${e}$`)}function Lr(...t){return e=>t.reduce(([i,a,r],n)=>{let[s,o,l]=n(e,r);return[{...i,...s},o||a,l]},[{},null,1]).slice(0,2)}function Rr(t,...e){if(t==null)return[null,null];for(let[i,a]of e){let r=i.exec(t);if(r)return a(r)}return[null,null]}function Xd(...t){return(e,i)=>{let a={},r;for(r=0;r<t.length;r++)a[t[r]]=qt(e[i+r]);return[a,null,i+r]}}var ec=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,zh=`(?:${ec.source}?(?:\\[(${Kd.source})\\])?)?`,Mn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,tc=RegExp(`${Mn.source}${zh}`),Bn=RegExp(`(?:[Tt]${tc.source})?`),Uh=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Gh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Hh=/(\d{4})-?(\d{3})/,Qh=Xd("weekYear","weekNumber","weekDay"),Zh=Xd("year","ordinal"),Jh=/(\d{4})-(\d\d)-(\d\d)/,rc=RegExp(`${Mn.source} ?(?:${ec.source}|(${Kd.source}))?`),Yh=RegExp(`(?: ${rc.source})?`);function Or(t,e,i){let a=t[e];return V(a)?i:qt(a)}function Kh(t,e){return[{year:Or(t,e),month:Or(t,e+1,1),day:Or(t,e+2,1)},null,e+3]}function kr(t,e){return[{hours:Or(t,e,0),minutes:Or(t,e+1,0),seconds:Or(t,e+2,0),milliseconds:_n(t[e+3])},null,e+4]}function ii(t,e){let i=!t[e]&&!t[e+1],a=da(t[e+1],t[e+2]),r=i?null:Xe.instance(a);return[{},r,e+3]}function ai(t,e){let i=t[e]?zt.create(t[e]):null;return[{},i,e+1]}var Xh=RegExp(`^T?${Mn.source}$`),ef=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function tf(t){let[e,i,a,r,n,s,o,l,d]=t,p=e[0]==="-",u=l&&l[0]==="-",h=(c,m=!1)=>c!==void 0&&(m||c&&p)?-c:c;return[{years:h(rr(i)),months:h(rr(a)),weeks:h(rr(r)),days:h(rr(n)),hours:h(rr(s)),minutes:h(rr(o)),seconds:h(rr(l),l==="-0"),milliseconds:h(_n(d),u)}]}var rf={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wn(t,e,i,a,r,n,s){let o={year:e.length===2?Pn(qt(e)):qt(e),month:Ud.indexOf(i)+1,day:qt(a),hour:qt(r),minute:qt(n)};return s&&(o.second=qt(s)),t&&(o.weekday=t.length>3?Hd.indexOf(t)+1:Qd.indexOf(t)+1),o}var af=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function nf(t){let[,e,i,a,r,n,s,o,l,d,p,u]=t,h=Wn(e,r,a,i,n,s,o),c;return l?c=rf[l]:d?c=0:c=da(p,u),[h,new Xe(c)]}function sf(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var of=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,lf=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,df=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Bl(t){let[,e,i,a,r,n,s,o]=t;return[Wn(e,r,a,i,n,s,o),Xe.utcInstance]}function cf(t){let[,e,i,a,r,n,s,o]=t;return[Wn(e,o,i,a,r,n,s),Xe.utcInstance]}var pf=Dr(Uh,Bn),uf=Dr(Gh,Bn),hf=Dr(Hh,Bn),ff=Dr(tc),ic=Lr(Kh,kr,ii,ai),mf=Lr(Qh,kr,ii,ai),yf=Lr(Zh,kr,ii,ai),gf=Lr(kr,ii,ai);function bf(t){return Rr(t,[pf,ic],[uf,mf],[hf,yf],[ff,gf])}function vf(t){return Rr(sf(t),[af,nf])}function Sf(t){return Rr(t,[of,Bl],[lf,Bl],[df,cf])}function wf(t){return Rr(t,[ef,tf])}var If=Lr(kr);function xf(t){return Rr(t,[Xh,If])}var Tf=Dr(Jh,Yh),Cf=Dr(rc),Ff=Lr(kr,ii,ai);function Pf(t){return Rr(t,[Tf,ic],[Cf,Ff])}var Wl="Invalid Duration",ac={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Of={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...ac},Ze=146097/400,wr=146097/4800,Ef={years:{quarters:4,months:12,weeks:Ze/7,days:Ze,hours:Ze*24,minutes:Ze*24*60,seconds:Ze*24*60*60,milliseconds:Ze*24*60*60*1e3},quarters:{months:3,weeks:Ze/28,days:Ze/4,hours:Ze*24/4,minutes:Ze*24*60/4,seconds:Ze*24*60*60/4,milliseconds:Ze*24*60*60*1e3/4},months:{weeks:wr/7,days:wr,hours:wr*24,minutes:wr*24*60,seconds:wr*24*60*60,milliseconds:wr*24*60*60*1e3},...ac},nr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Af=nr.slice(0).reverse();function Tt(t,e,i=!1){let a={values:i?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Oe(a)}function nc(t,e){let i=e.milliseconds??0;for(let a of Af.slice(1))e[a]&&(i+=e[a]*t[a].milliseconds);return i}function Vl(t,e){let i=nc(t,e)<0?-1:1;nr.reduceRight((a,r)=>{if(V(e[r]))return a;if(a){let n=e[a]*i,s=t[r][a],o=Math.floor(n/s);e[r]+=o*i,e[a]-=o*s*i}return r},null),nr.reduce((a,r)=>{if(V(e[r]))return a;if(a){let n=e[a]%1;e[a]-=n,e[r]+=n*t[a][r]}return r},null)}function zl(t){let e={};for(let[i,a]of Object.entries(t))a!==0&&(e[i]=a);return e}var Oe=class t{constructor(e){let i=e.conversionAccuracy==="longterm"||!1,a=i?Ef:Of;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||oe.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,i){return t.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new Pe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:ta(e,t.normalizeUnit),loc:oe.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(Vt(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Pe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){let[a]=wf(e);return a?t.fromObject(a,i):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){let[a]=xf(e);return a?t.fromObject(a,i):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new Pe("need to specify a reason the Duration is invalid");let a=e instanceof ze?e:new ze(e,i);if(pe.throwOnInvalid)throw new hn(a);return new t({invalid:a})}static normalizeUnit(e){let i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!i)throw new Ji(e);return i}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,i={}){let a={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?Ve.create(this.loc,a).formatDurationFromString(this,e):Wl}toHuman(e={}){if(!this.isValid)return Wl;let i=e.showZeros!==!1,a=nr.map(r=>{let n=this.values[r];return V(n)||n===0&&!i?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(n)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=qn(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ue.fromMillis(i,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?nc(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let i=t.fromDurationLike(e),a={};for(let r of nr)($r(i.values,r)||$r(this.values,r))&&(a[r]=i.get(r)+this.get(r));return Tt(this,{values:a},!0)}minus(e){if(!this.isValid)return this;let i=t.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;let i={};for(let a of Object.keys(this.values))i[a]=zd(e(this.values[a],a));return Tt(this,{values:i},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let i={...this.values,...ta(e,t.normalizeUnit)};return Tt(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:a,matrix:r}={}){let n={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:r,conversionAccuracy:a};return Tt(this,n)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return Vl(this.matrix,e),Tt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=zl(this.normalize().shiftToAll().toObject());return Tt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let i={},a={},r=this.toObject(),n;for(let s of nr)if(e.indexOf(s)>=0){n=s;let o=0;for(let d in a)o+=this.matrix[d][s]*a[d],a[d]=0;Vt(r[s])&&(o+=r[s]);let l=Math.trunc(o);i[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else Vt(r[s])&&(a[s]=r[s]);for(let s in a)a[s]!==0&&(i[n]+=s===n?a[s]:a[s]/this.matrix[n][s]);return Vl(this.matrix,i),Tt(this,{values:i},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return Tt(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=zl(this.values);return Tt(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function i(a,r){return a===void 0||a===0?r===void 0||r===0:a===r}for(let a of nr)if(!i(this.values[a],e.values[a]))return!1;return!0}},Ir="Invalid Interval";function $f(t,e){return!t||!t.isValid?Er.invalid("missing or invalid start"):!e||!e.isValid?Er.invalid("missing or invalid end"):e<t?Er.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var Er=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new Pe("need to specify a reason the Interval is invalid");let a=e instanceof ze?e:new ze(e,i);if(pe.throwOnInvalid)throw new un(a);return new t({invalid:a})}static fromDateTimes(e,i){let a=Gr(e),r=Gr(i);return $f(a,r)??new t({start:a,end:r})}static after(e,i){let a=Oe.fromDurationLike(i),r=Gr(e);return t.fromDateTimes(r,r.plus(a))}static before(e,i){let a=Oe.fromDurationLike(i),r=Gr(e);return t.fromDateTimes(r.minus(a),r)}static fromISO(e,i){let[a,r]=(e||"").split("/",2);if(a&&r){let n,s;try{n=ue.fromISO(a,i),s=n.isValid}catch{s=!1}let o,l;try{o=ue.fromISO(r,i),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Oe.fromISO(r,i);if(d.isValid)return t.after(n,d)}else if(l){let d=Oe.fromISO(a,i);if(d.isValid)return t.before(o,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",i){if(!this.isValid)return NaN;let a=this.start.startOf(e,i),r;return i?.useLocaleWeeks?r=this.end.reconfigure({locale:a.locale}):r=this.end,r=r.startOf(e,i),Math.floor(r.diff(a,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:i}={}){return this.isValid?t.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];let i=e.map(Gr).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:r}=this,n=0;for(;r<this.e;){let s=i[n]||this.e,o=+s>+this.e?this.e:s;a.push(t.fromDateTimes(r,o)),r=o,n+=1}return a}splitBy(e){let i=Oe.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:a}=this,r=1,n,s=[];for(;a<this.e;){let o=this.start.plus(i.mapUnits(l=>l*r));n=+o>+this.e?this.e:o,s.push(t.fromDateTimes(a,n)),a=n,r+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let i=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return i>=a?null:t.fromDateTimes(i,a)}union(e){if(!this.isValid)return this;let i=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return t.fromDateTimes(i,a)}static merge(e){let[i,a]=e.sort((r,n)=>r.s-n.s).reduce(([r,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[r,n.union(s)]:[r.concat([n]),s]:[r,s],[[],null]);return a&&i.push(a),i}static xor(e){let i=null,a=0,r=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,d)=>l.time-d.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?i=l.time:(i&&+i!=+l.time&&r.push(t.fromDateTimes(i,l.time)),i=null);return t.merge(r)}difference(...e){return t.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Ir}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Yi,i={}){return this.isValid?Ve.create(this.s.loc.clone(i),e).formatInterval(this):Ir}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ir}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ir}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ir}toFormat(e,{separator:i=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:Ir}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):Oe.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},Fr=class{static hasDST(e=pe.defaultZone){let i=ue.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return zt.isValidZone(e)}static normalizeZone(e){return Bt(e,pe.defaultZone)}static getStartOfWeek({locale:e=null,locObj:i=null}={}){return(i||oe.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:i=null}={}){return(i||oe.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:i=null}={}){return(i||oe.create(e)).getWeekendDays().slice()}static months(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null,outputCalendar:n="gregory"}={}){return(r||oe.create(i,a,n)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null,outputCalendar:n="gregory"}={}){return(r||oe.create(i,a,n)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null}={}){return(r||oe.create(i,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null}={}){return(r||oe.create(i,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return oe.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return oe.create(i,null,"gregory").eras(e)}static features(){return{relative:Bd(),localeWeek:Wd()}}};function Ul(t,e){let i=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=i(e)-i(t);return Math.floor(Oe.fromMillis(a).as("days"))}function Df(t,e,i){let a=[["years",(l,d)=>d.year-l.year],["quarters",(l,d)=>d.quarter-l.quarter+(d.year-l.year)*4],["months",(l,d)=>d.month-l.month+(d.year-l.year)*12],["weeks",(l,d)=>{let p=Ul(l,d);return(p-p%7)/7}],["days",Ul]],r={},n=t,s,o;for(let[l,d]of a)i.indexOf(l)>=0&&(s=l,r[l]=d(t,e),o=n.plus(r),o>e?(r[l]--,t=n.plus(r),t>e&&(o=t,r[l]--,t=n.plus(r))):t=o);return[t,r,o,s]}function Lf(t,e,i,a){let[r,n,s,o]=Df(t,e,i),l=e-r,d=i.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);d.length===0&&(s<e&&(s=r.plus({[o]:1})),s!==r&&(n[o]=(n[o]||0)+l/(s-r)));let p=Oe.fromObject(n,a);return d.length>0?Oe.fromMillis(l,a).shiftTo(...d).plus(p):p}var Rf="missing Intl.DateTimeFormat.formatToParts support";function te(t,e=i=>i){return{regex:t,deser:([i])=>e(xh(i))}}var kf="\xA0",sc=`[ ${kf}]`,oc=new RegExp(sc,"g");function jf(t){return t.replace(/\./g,"\\.?").replace(oc,sc)}function Gl(t){return t.replace(/\./g,"").replace(oc," ").toLowerCase()}function nt(t,e){return t===null?null:{regex:RegExp(t.map(jf).join("|")),deser:([i])=>t.findIndex(a=>Gl(i)===Gl(a))+e}}function Hl(t,e){return{regex:t,deser:([,i,a])=>da(i,a),groups:e}}function ji(t){return{regex:t,deser:([e])=>e}}function Nf(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function _f(t,e){let i=at(e),a=at(e,"{2}"),r=at(e,"{3}"),n=at(e,"{4}"),s=at(e,"{6}"),o=at(e,"{1,2}"),l=at(e,"{1,3}"),d=at(e,"{1,6}"),p=at(e,"{1,9}"),u=at(e,"{2,4}"),h=at(e,"{4,6}"),c=g=>({regex:RegExp(Nf(g.val)),deser:([y])=>y,literal:!0}),m=(g=>{if(t.literal)return c(g);switch(g.val){case"G":return nt(e.eras("short"),0);case"GG":return nt(e.eras("long"),0);case"y":return te(d);case"yy":return te(u,Pn);case"yyyy":return te(n);case"yyyyy":return te(h);case"yyyyyy":return te(s);case"M":return te(o);case"MM":return te(a);case"MMM":return nt(e.months("short",!0),1);case"MMMM":return nt(e.months("long",!0),1);case"L":return te(o);case"LL":return te(a);case"LLL":return nt(e.months("short",!1),1);case"LLLL":return nt(e.months("long",!1),1);case"d":return te(o);case"dd":return te(a);case"o":return te(l);case"ooo":return te(r);case"HH":return te(a);case"H":return te(o);case"hh":return te(a);case"h":return te(o);case"mm":return te(a);case"m":return te(o);case"q":return te(o);case"qq":return te(a);case"s":return te(o);case"ss":return te(a);case"S":return te(l);case"SSS":return te(r);case"u":return ji(p);case"uu":return ji(o);case"uuu":return te(i);case"a":return nt(e.meridiems(),0);case"kkkk":return te(n);case"kk":return te(u,Pn);case"W":return te(o);case"WW":return te(a);case"E":case"c":return te(i);case"EEE":return nt(e.weekdays("short",!1),1);case"EEEE":return nt(e.weekdays("long",!1),1);case"ccc":return nt(e.weekdays("short",!0),1);case"cccc":return nt(e.weekdays("long",!0),1);case"Z":case"ZZ":return Hl(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return Hl(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return ji(/[a-z_+-/]{1,256}?/i);case" ":return ji(/[^\S\n\r]/);default:return c(g)}})(t)||{invalidReason:Rf};return m.token=t,m}var qf={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Mf(t,e,i){let{type:a,value:r}=t;if(a==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let n=e[a],s=a;a==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=i.hour12?"hour12":"hour24");let o=qf[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function Bf(t){return[`^${t.map(e=>e.regex).reduce((e,i)=>`${e}(${i.source})`,"")}$`,t]}function Wf(t,e,i){let a=t.match(e);if(a){let r={},n=1;for(let s in i)if($r(i,s)){let o=i[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(a.slice(n,n+l))),n+=l}return[a,r]}else return[a,{}]}function Vf(t){let e=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},i=null,a;return V(t.z)||(i=zt.create(t.z)),V(t.Z)||(i||(i=new Xe(t.Z)),a=t.Z),V(t.q)||(t.M=(t.q-1)*3+1),V(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),V(t.u)||(t.S=_n(t.u)),[Object.keys(t).reduce((r,n)=>{let s=e(n);return s&&(r[s]=t[n]),r},{}),i,a]}var en=null;function zf(){return en||(en=ue.fromMillis(1555555555555)),en}function Uf(t,e){if(t.literal)return t;let i=Ve.macroTokenToFormatOpts(t.val),a=cc(i,e);return a==null||a.includes(void 0)?t:a}function lc(t,e){return Array.prototype.concat(...t.map(i=>Uf(i,e)))}var ra=class{constructor(e,i){if(this.locale=e,this.format=i,this.tokens=lc(Ve.parseFormat(i),e),this.units=this.tokens.map(a=>_f(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,r]=Bf(this.units);this.regex=RegExp(a,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){let[i,a]=Wf(e,this.regex,this.handlers),[r,n,s]=a?Vf(a):[null,null,void 0];if($r(a,"a")&&$r(a,"H"))throw new Wt("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:i,matches:a,result:r,zone:n,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function dc(t,e,i){return new ra(t,i).explainFromTokens(e)}function Gf(t,e,i){let{result:a,zone:r,specificOffset:n,invalidReason:s}=dc(t,e,i);return[a,r,n,s]}function cc(t,e){if(!t)return null;let i=Ve.create(e,t).dtFormatter(zf()),a=i.formatToParts(),r=i.resolvedOptions();return a.map(n=>Mf(n,t,r))}var tn="Invalid DateTime",Ql=864e13;function Zr(t){return new ze("unsupported zone",`the zone "${t.name}" is not supported`)}function rn(t){return t.weekData===null&&(t.weekData=Xi(t.c)),t.weekData}function an(t){return t.localWeekData===null&&(t.localWeekData=Xi(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ir(t,e){let i={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ue({...i,...e,old:i})}function pc(t,e,i){let a=t-e*60*1e3,r=i.offset(a);if(e===r)return[a,e];a-=(r-e)*60*1e3;let n=i.offset(a);return r===n?[a,r]:[t-Math.min(r,n)*60*1e3,Math.max(r,n)]}function Ni(t,e){t+=e*60*1e3;let i=new Date(t);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Ui(t,e,i){return pc(la(t),e,i)}function Zl(t,e){let i=t.o,a=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...t.c,year:a,month:r,day:Math.min(t.c.day,ea(a,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Oe.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=la(n),[l,d]=pc(o,i,t.zone);return s!==0&&(l+=s,d=t.zone.offset(l)),{ts:l,o:d}}function xr(t,e,i,a,r,n){let{setZone:s,zone:o}=i;if(t&&Object.keys(t).length!==0||e){let l=e||o,d=ue.fromObject(t,{...i,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ue.invalid(new ze("unparsable",`the input "${r}" can't be parsed as ${a}`))}function _i(t,e,i=!0){return t.isValid?Ve.create(oe.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(t,e):null}function nn(t,e,i){let a=t.c.year>9999||t.c.year<0,r="";if(a&&t.c.year>=0&&(r+="+"),r+=Ce(t.c.year,a?6:4),i==="year")return r;if(e){if(r+="-",r+=Ce(t.c.month),i==="month")return r;r+="-"}else if(r+=Ce(t.c.month),i==="month")return r;return r+=Ce(t.c.day),r}function Jl(t,e,i,a,r,n,s){let o=!i||t.c.millisecond!==0||t.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=Ce(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=Ce(t.c.minute),s==="minute")break;o&&(l+=":",l+=Ce(t.c.second))}else{if(l+=Ce(t.c.minute),s==="minute")break;o&&(l+=Ce(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=Ce(t.c.millisecond,3))}return r&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=Ce(Math.trunc(-t.o/60)),l+=":",l+=Ce(Math.trunc(-t.o%60))):(l+="+",l+=Ce(Math.trunc(t.o/60)),l+=":",l+=Ce(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var uc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Hf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Qf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Gi=["year","month","day","hour","minute","second","millisecond"],Zf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Jf=["year","ordinal","hour","minute","second","millisecond"];function Hi(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Ji(t);return e}function Yl(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Hi(t)}}function Yf(t){if(Jr===void 0&&(Jr=pe.now()),t.type!=="iana")return t.offset(Jr);let e=t.name,i=On.get(e);return i===void 0&&(i=t.offset(Jr),On.set(e,i)),i}function Kl(t,e){let i=Bt(e.zone,pe.defaultZone);if(!i.isValid)return ue.invalid(Zr(i));let a=oe.fromObject(e),r,n;if(V(t.year))r=pe.now();else{for(let l of Gi)V(t[l])&&(t[l]=uc[l]);let s=qd(t)||Md(t);if(s)return ue.invalid(s);let o=Yf(i);[r,n]=Ui(t,o,i)}return new ue({ts:r,zone:i,loc:a,o:n})}function Xl(t,e,i){let a=V(i.round)?!0:i.round,r=V(i.rounding)?"trunc":i.rounding,n=(o,l)=>(o=qn(o,a||i.calendary?0:2,i.calendary?"round":r),e.loc.clone(i).relFormatter(i).format(o,l)),s=o=>i.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(i.unit)return n(s(i.unit),i.unit);for(let o of i.units){let l=s(o);if(Math.abs(l)>=1)return n(l,o)}return n(t>e?-0:0,i.units[i.units.length-1])}function ed(t){let e={},i;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],i=Array.from(t).slice(0,t.length-1)):i=Array.from(t),[e,i]}var Jr,On=new Map,ue=class t{constructor(e){let i=e.zone||pe.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new ze("invalid input"):null)||(i.isValid?null:Zr(i));this.ts=V(e.ts)?pe.now():e.ts;let r=null,n=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[r,n]=[e.old.c,e.old.o];else{let s=Vt(e.o)&&!e.old?e.o:i.offset(this.ts);r=Ni(this.ts,s),a=Number.isNaN(r.year)?new ze("invalid input"):null,r=a?null:r,n=a?null:s}this._zone=i,this.loc=e.loc||oe.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=r,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,i]=ed(arguments),[a,r,n,s,o,l,d]=i;return Kl({year:a,month:r,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,i]=ed(arguments),[a,r,n,s,o,l,d]=i;return e.zone=Xe.utcInstance,Kl({year:a,month:r,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,i={}){let a=Oh(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let r=Bt(i.zone,pe.defaultZone);return r.isValid?new t({ts:a,zone:r,loc:oe.fromObject(i)}):t.invalid(Zr(r))}static fromMillis(e,i={}){if(Vt(e))return e<-Ql||e>Ql?t.invalid("Timestamp out of range"):new t({ts:e,zone:Bt(i.zone,pe.defaultZone),loc:oe.fromObject(i)});throw new Pe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(Vt(e))return new t({ts:e*1e3,zone:Bt(i.zone,pe.defaultZone),loc:oe.fromObject(i)});throw new Pe("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};let a=Bt(i.zone,pe.defaultZone);if(!a.isValid)return t.invalid(Zr(a));let r=oe.fromObject(i),n=ta(e,Yl),{minDaysInFirstWeek:s,startOfWeek:o}=Nl(n,r),l=pe.now(),d=V(i.specificOffset)?a.offset(l):i.specificOffset,p=!V(n.ordinal),u=!V(n.year),h=!V(n.month)||!V(n.day),c=u||h,m=n.weekYear||n.weekNumber;if((c||p)&&m)throw new Wt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&p)throw new Wt("Can't mix ordinal dates with month/day");let g=m||n.weekday&&!c,y,S,C=Ni(l,d);g?(y=Zf,S=Hf,C=Xi(C,s,o)):p?(y=Jf,S=Qf,C=Xa(C)):(y=Gi,S=uc);let w=!1;for(let D of y){let L=n[D];V(L)?w?n[D]=S[D]:n[D]=C[D]:w=!0}let P=g?Ch(n,s,o):p?Fh(n):qd(n),O=P||Md(n);if(O)return t.invalid(O);let A=g?kl(n,s,o):p?jl(n):n,[_,R]=Ui(A,d,a),F=new t({ts:_,zone:a,o:R,loc:r});return n.weekday&&c&&e.weekday!==F.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${F.toISO()}`):F.isValid?F:t.invalid(F.invalid)}static fromISO(e,i={}){let[a,r]=bf(e);return xr(a,r,i,"ISO 8601",e)}static fromRFC2822(e,i={}){let[a,r]=vf(e);return xr(a,r,i,"RFC 2822",e)}static fromHTTP(e,i={}){let[a,r]=Sf(e);return xr(a,r,i,"HTTP",i)}static fromFormat(e,i,a={}){if(V(e)||V(i))throw new Pe("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:n=null}=a,s=oe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0}),[o,l,d,p]=Gf(s,e,i);return p?t.invalid(p):xr(o,l,a,`format ${i}`,e,d)}static fromString(e,i,a={}){return t.fromFormat(e,i,a)}static fromSQL(e,i={}){let[a,r]=Pf(e);return xr(a,r,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new Pe("need to specify a reason the DateTime is invalid");let a=e instanceof ze?e:new ze(e,i);if(pe.throwOnInvalid)throw new pn(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){let a=cc(e,oe.fromObject(i));return a?a.map(r=>r?r.val:null).join(""):null}static expandFormat(e,i={}){return lc(Ve.parseFormat(e),oe.fromObject(i)).map(a=>a.val).join("")}static resetCache(){Jr=void 0,On.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?rn(this).weekYear:NaN}get weekNumber(){return this.isValid?rn(this).weekNumber:NaN}get weekday(){return this.isValid?rn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?an(this).weekday:NaN}get localWeekNumber(){return this.isValid?an(this).weekNumber:NaN}get localWeekYear(){return this.isValid?an(this).weekYear:NaN}get ordinal(){return this.isValid?Xa(this.c).ordinal:NaN}get monthShort(){return this.isValid?Fr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Fr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Fr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Fr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,i=6e4,a=la(this.c),r=this.zone.offset(a-e),n=this.zone.offset(a+e),s=this.zone.offset(a-r*i),o=this.zone.offset(a-n*i);if(s===o)return[this];let l=a-s*i,d=a-o*i,p=Ni(l,s),u=Ni(d,o);return p.hour===u.hour&&p.minute===u.minute&&p.second===u.second&&p.millisecond===u.millisecond?[ir(this,{ts:l}),ir(this,{ts:d})]:[this]}get isInLeapYear(){return ri(this.year)}get daysInMonth(){return ea(this.year,this.month)}get daysInYear(){return this.isValid?Pr(this.year):NaN}get weeksInWeekYear(){return this.isValid?Kr(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Kr(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:i,numberingSystem:a,calendar:r}=Ve.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:a,outputCalendar:r}}toUTC(e=0,i={}){return this.setZone(Xe.instance(e),i)}toLocal(){return this.setZone(pe.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:a=!1}={}){if(e=Bt(e,pe.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(i||a){let n=e.offset(this.ts),s=this.toObject();[r]=Ui(s,n,e)}return ir(this,{ts:r,zone:e})}else return t.invalid(Zr(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:a}={}){let r=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:a});return ir(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let i=ta(e,Yl),{minDaysInFirstWeek:a,startOfWeek:r}=Nl(i,this.loc),n=!V(i.weekYear)||!V(i.weekNumber)||!V(i.weekday),s=!V(i.ordinal),o=!V(i.year),l=!V(i.month)||!V(i.day),d=o||l,p=i.weekYear||i.weekNumber;if((d||s)&&p)throw new Wt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Wt("Can't mix ordinal dates with month/day");let u;n?u=kl({...Xi(this.c,a,r),...i},a,r):V(i.ordinal)?(u={...this.toObject(),...i},V(i.day)&&(u.day=Math.min(ea(u.year,u.month),u.day))):u=jl({...Xa(this.c),...i});let[h,c]=Ui(u,this.o,this.zone);return ir(this,{ts:h,o:c})}plus(e){if(!this.isValid)return this;let i=Oe.fromDurationLike(e);return ir(this,Zl(this,i))}minus(e){if(!this.isValid)return this;let i=Oe.fromDurationLike(e).negate();return ir(this,Zl(this,i))}startOf(e,{useLocaleWeeks:i=!1}={}){if(!this.isValid)return this;let a={},r=Oe.normalizeUnit(e);switch(r){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(r==="weeks")if(i){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(a.weekNumber=this.weekNumber-1),a.weekday=n}else a.weekday=1;if(r==="quarters"){let n=Math.ceil(this.month/3);a.month=(n-1)*3+1}return this.set(a)}endOf(e,i){return this.isValid?this.plus({[e]:1}).startOf(e,i).minus(1):this}toFormat(e,i={}){return this.isValid?Ve.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):tn}toLocaleString(e=Yi,i={}){return this.isValid?Ve.create(this.loc.clone(i),e).formatDateTime(this):tn}toLocaleParts(e={}){return this.isValid?Ve.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:a=!1,includeOffset:r=!0,extendedZone:n=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=Hi(s);let o=e==="extended",l=nn(this,o,s);return Gi.indexOf(s)>=3&&(l+="T"),l+=Jl(this,o,i,a,r,n,s),l}toISODate({format:e="extended",precision:i="day"}={}){return this.isValid?nn(this,e==="extended",Hi(i)):null}toISOWeekDate(){return _i(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:a=!0,includePrefix:r=!1,extendedZone:n=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=Hi(o),(r&&Gi.indexOf(o)>=3?"T":"")+Jl(this,s==="extended",i,e,a,n,o)):null}toRFC2822(){return _i(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return _i(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:a=!0}={}){let r="HH:mm:ss.SSS";return(i||e)&&(a&&(r+=" "),i?r+="z":e&&(r+="ZZ")),_i(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():tn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",a={}){if(!this.isValid||!e.isValid)return Oe.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=Eh(i).map(Oe.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=Lf(o,l,n,r);return s?d.negate():d}diffNow(e="milliseconds",i={}){return this.diff(t.now(),e,i)}until(e){return this.isValid?Er.fromDateTimes(this,e):this}hasSame(e,i,a){if(!this.isValid)return!1;let r=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(i,a)<=r&&r<=n.endOf(i,a)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let i=e.base||t.fromObject({},{zone:this.zone}),a=e.padding?this<i?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(r=e.unit,n=void 0),Xl(i,this.plus(a),{...e,numeric:"always",units:r,unit:n})}toRelativeCalendar(e={}){return this.isValid?Xl(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new Pe("min requires all arguments be DateTimes");return _l(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Pe("max requires all arguments be DateTimes");return _l(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,a={}){let{locale:r=null,numberingSystem:n=null}=a,s=oe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});return dc(s,e,i)}static fromStringExplain(e,i,a={}){return t.fromFormatExplain(e,i,a)}static buildFormatParser(e,i={}){let{locale:a=null,numberingSystem:r=null}=i,n=oe.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0});return new ra(n,e)}static fromFormatParser(e,i,a={}){if(V(e)||V(i))throw new Pe("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:n=null}=a,s=oe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});if(!s.equals(i.locale))throw new Pe(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${i.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:p}=i.explainFromTokens(e);return p?t.invalid(p):xr(o,l,a,`format ${i.format}`,e,d)}static get DATE_SHORT(){return Yi}static get DATE_MED(){return fd}static get DATE_MED_WITH_WEEKDAY(){return sh}static get DATE_FULL(){return md}static get DATE_HUGE(){return yd}static get TIME_SIMPLE(){return gd}static get TIME_WITH_SECONDS(){return bd}static get TIME_WITH_SHORT_OFFSET(){return vd}static get TIME_WITH_LONG_OFFSET(){return Sd}static get TIME_24_SIMPLE(){return wd}static get TIME_24_WITH_SECONDS(){return Id}static get TIME_24_WITH_SHORT_OFFSET(){return xd}static get TIME_24_WITH_LONG_OFFSET(){return Td}static get DATETIME_SHORT(){return Cd}static get DATETIME_SHORT_WITH_SECONDS(){return Fd}static get DATETIME_MED(){return Pd}static get DATETIME_MED_WITH_SECONDS(){return Od}static get DATETIME_MED_WITH_WEEKDAY(){return oh}static get DATETIME_FULL(){return Ed}static get DATETIME_FULL_WITH_SECONDS(){return Ad}static get DATETIME_HUGE(){return $d}static get DATETIME_HUGE_WITH_SECONDS(){return Dd}};function Gr(t){if(ue.isDateTime(t))return t;if(t&&t.valueOf&&Vt(t.valueOf()))return ue.fromJSDate(t);if(t&&typeof t=="object")return ue.fromObject(t);throw new Pe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var td={Count:"count",Start:"minValue",End:"maxValue"},hc={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},H={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},hv=32,fv="arcgis_charts_features_extent",or={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:ds.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds"},Kf=["EXPR_1","Expr1","expr1","EXPR1"],mv=1,lt=.7,Xf=25,fc=[156,156,156,255],em=[156,156,156,255],yv=vr.Solid,gv=2,bv={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"},Vn="arcgis_charts_box_plot_category",tm={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},rm=[[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]],im=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]];function mt(t){let{colorIndex:e,opacity:i,histogramOverlays:a}=t,r=Math.max(0,e??0),n=[...a===!0?im:rm],[s,o,l,d]=n[r%n.length],p=i!==void 0?i*255:d;return[s,o,l,p]}function mc(t){return[0,0,0,(t??lt)*255]}function vv(){return{type:x.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:Re.SLS,style:vr.Dot,color:[211,211,211,255],width:1}}}function pa(t=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),t*255]}function ie(t){let e={family:"Arial, Helvetica, sans-serif",size:10};switch(t){case H.ChartTitle:e.size=18;break;case H.AxisTitle:e.size=14;break;case H.LegendText:e.size=12;break;case H.LegendTitle:e.size=13;break;case H.DescriptionText:e.size=11;break}return e}function yc(t="",e=ie(),i){let a=hi.Center;return(i===H.DataLabels||i===H.GuideLabel)&&(a=void 0),{type:Re.TS,color:mc(),text:t,font:e,horizontalAlignment:a}}function J(t){let{text:e,visible:i,font:a,type:r}=t??{text:"",visible:!0,font:ie()};return{type:x.Text,visible:i,content:yc(e,a,r)}}function ni(t){let e=t?.useRandomColor??!1,i=t?.useRampColor,a=t?.width??1,r=t?.isHistogramOverlay,n=t?.color??mc(1);return e?n=pa():i!==void 0&&(r===!0?n=mt({colorIndex:i.colorIndex,histogramOverlays:r}):n=mt({colorIndex:i.colorIndex})),t?.opacity!==void 0&&(n[3]=t.opacity),{type:Re.SLS,style:vr.Solid,color:n,width:a}}function am(){return{type:x.CategoryAxisFormat,characterLimit:11}}function Sv(){return{type:x.DateAxisFormat,intlOptions:{}}}function En(){return{type:x.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function wv(){return{type:x.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function Iv(){return{type:x.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function sn(t="Category Axis"){let e=J({text:t,visible:!0,font:ie(H.AxisTitle)});e.content.horizontalAlignment=hi.Center,e.content.verticalAlignment=Ia.Middle;let i=J({text:t,visible:!0,font:ie(H.AxisLabels)});return{type:x.Axis,visible:!0,title:e,labels:i,valueFormat:am(),lineSymbol:ni({color:fc})}}function Qi(t="Value Axis"){let e=J({text:t,visible:!0,font:ie(H.AxisTitle)}),i=J({text:t,visible:!0,font:ie(H.AxisLabels)});return e.content.verticalAlignment=Ia.Middle,e.content.horizontalAlignment=hi.Center,{type:x.Axis,visible:!0,title:e,labels:i,valueFormat:En(),lineSymbol:ni({color:fc})}}function Ut(){return{type:x.Legend,visible:!0,title:J({text:"",visible:!0,font:ie(H.LegendTitle)}),body:yc("",ie(H.LegendText)),position:Sa.Right,maxHeight:Number.NaN}}function qi(t){return{type:x.Overlay,visible:!0,created:!1,symbol:ni({useRampColor:{colorIndex:t},isHistogramOverlay:!0})}}function Gt(){return[255,255,255,255]}function Et(t){return t.utilsStrings.chartType.chart}function At(){return`Chart ${Date.now()}`}function xv(t,e=!1){return{type:Re.SFS,style:Sr.Solid,color:e?pa(lt):mt({colorIndex:t??0,opacity:lt})}}function nm(t=0){return{type:Re.SMS,style:wa.Circle,color:mt({colorIndex:t,opacity:lt}),size:4}}function sm(t){return{type:Re.SLS,style:vr.Solid,color:mt({colorIndex:t,opacity:lt}),width:2}}function om(t=!1){return{type:Re.SMS,style:wa.Circle,color:t?pa(lt):mt({colorIndex:0,opacity:lt}),size:7}}function Tv(){return{type:x.SizePolicy,field:"",scaleType:us.Linear,minSize:5,maxSize:30}}function lm(t=!1){return{type:x.Overlays,trendLine:{type:x.Overlay,created:!1,visible:!0,symbol:{type:Re.SLS,style:vr.Solid,color:t?pa():mt({colorIndex:1}),width:2}}}}function dm(t){let e=t??"ObjectID";return{type:x.HeatSeries,id:x.HeatSeries,name:x.HeatSeries,y:"",x:"",dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels)}),query:{outStatistics:[{statisticType:le.Count,onStatisticField:e,outStatisticFieldName:"coutnt_objectt_id"}]}}}function cm(){return{type:x.ScatterSeries,id:x.ScatterSeries,name:x.ScatterSeries,x:"",y:"",markerSymbol:om(),overlays:lm(),dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels)})}}function lr(t,e){let i=[],a=t.xAxis,r=t.utilsStrings.statistics.count,n,s,o=ni({opacity:Xf});switch(e===x.HeatSeries?s=sn(r):(s=Qi(r),s.grid=o),e){case x.BarSeries:case x.HeatSeries:{n=sn(a);break}case x.ScatterSeries:{n=Qi(a),n.grid=o;break}case x.RadarSeries:case x.LineSeries:case x.HistogramSeries:{n=Qi(a);break}case x.BoxPlotSeries:{n=sn("");break}}return n!==void 0&&i.push(n,s),i}function pm(){return{type:x.GaugeNeedle,symbol:{type:Re.SFS,color:[0,0,0,200]}}}function um(t){let e=[],i=t.xAxis,a=Qi(i);return a.needle=pm(),e.push(a),e}function hm(t){let e=t.commonStrings,i=t.objectIDField??"ObjectID",a=`${le.Count}_${i}_0`.toUpperCase(),r=e.countSeries;return{type:x.LineSeries,id:r,name:r,query:{outStatistics:[{statisticType:le.Count,onStatisticField:i,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,lineSymbol:sm(t.seriesIndex),markerSymbol:nm(t.seriesIndex),dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels)}),temporalBinning:{unit:me.Day,size:0,timeAggregationType:gr.Start,trimIncompleteTimeInterval:!0,nullPolicy:cs.Interpolate}}}function Cv(t){return{...hm(t),type:x.RadarSeries}}function fm(t){return{type:Re.SFS,style:Sr.Solid,color:mt({colorIndex:t,opacity:lt})}}function Fv(t){let e=t.objectIDField??"ObjectID",i=t.commonStrings,a=`${le.Count}_${e}_0`.toUpperCase(),r=i.countSeries;return{type:x.BarSeries,id:r,name:r,query:{outStatistics:[{statisticType:le.Count,onStatisticField:e,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,fillSymbol:fm(t.seriesIndex),dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels),type:H.DataLabels})}}function Pv(t,e){let i=t.countSeries;return{name:i,type:x.BoxPlotSeries,id:i,fillSymbol:{type:Re.SFS,style:Sr.Solid,color:mt({colorIndex:e,opacity:lt})},query:{},x:Vn,y:""}}function mm(){return{type:x.PieTick,visible:!0,lineSymbol:ni({width:1,color:em})}}function ym(){return{type:Re.SFS,style:Sr.Solid}}function Ov(t,e){let i=`${le.Count}_${e}_0`.toUpperCase(),a=t.countSeries;return{type:x.PieSeries,id:a,name:a,query:{outStatistics:[{statisticType:le.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:i}],groupByFieldsForStatistics:[]},x:"",y:i,fillSymbol:ym(),dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels),type:H.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...En(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...En(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:mm()}}function Ev(t){let e=t.objectIDField??"ObjectID",i=`${le.Count}_${e}_0`.toUpperCase(),a="Series0";return{type:x.GaugeSeries,id:a,name:a,query:{outStatistics:[{statisticType:le.Count,onStatisticField:e,outStatisticFieldName:i}]},x:""}}function Xr(){return!1}function Av(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,rotated:Xr(),orderOptions:{data:{orderType:br.Category,orderBy:It.Ascending}},title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),axes:lr(t,x.BarSeries),series:[],legend:Ut()}}function $v(t,e=At()){return{version:Ot,type:x.Chart,id:e,rotated:Xr(),colorMatch:!0,orderOptions:{data:{orderType:br.Category,orderBy:It.Ascending}},title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),series:[],legend:Ut(),axes:lr(t,x.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function Dv(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,rotated:Xr(),orderOptions:{data:{orderType:br.Category,orderBy:It.Ascending}},title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),axes:lr(t,x.LineSeries),series:[],legend:Ut()}}function Lv(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:br.Category,orderBy:It.Ascending}},title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),axes:lr(t,x.RadarSeries),series:[],legend:Ut()}}function Rv(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:br.YValue,orderBy:It.Descending}},title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),series:[],legend:{...Ut(),displayNumericValue:!1,displayPercentage:!0}}}function kv(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),series:[],axes:um(t)}}function jv(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),axes:lr(t,x.ScatterSeries),series:[cm()],legend:Ut()}}function Nv(t,e){return{version:Ot,type:x.Chart,id:At(),title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),background:Gt(),axes:lr(t,x.HeatSeries),series:[dm(e)],legend:{...Ut(),position:Sa.Bottom}}}function gm(){return{type:x.Overlays,mean:qi(1),median:qi(2),standardDeviation:qi(3),comparisonDistribution:qi(4)}}function bm(){return{type:Re.SFS,style:Sr.Solid,color:mt({colorIndex:0,opacity:lt})}}function vm(){return{type:x.HistogramSeries,id:x.HistogramSeries,name:x.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:gm(),dataTransformationType:va.None,fillSymbol:bm(),dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels)})}}function _v(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),axes:lr(t,x.HistogramSeries),series:[vm()],legend:Ut()}}var on={behaviorAfterLimit:hc.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,maxHeatChartCellLimit:1e4};function Sm(t){let e={...on};return t!==void 0&&Object.keys(on).forEach(i=>{let a=i;e[a]=t[a]??on[a]}),e}function qv(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:200}}function Mv(t,e){let i;switch(t){case le.Average:{i=e.utilsStrings.statistics.mean;break}case le.ContinuousPercentile:{i=e.utilsStrings.statistics.median;break}case le.Sum:{i=e.utilsStrings.statistics.sum;break}case le.Minimum:{i=e.utilsStrings.statistics.minimum;break}case le.Maximum:{i=e.utilsStrings.statistics.maximum;break}case le.Variance:{i=e.utilsStrings.statistics.variance;break}case le.DiscretePercentile:{i=e.utilsStrings.statistics.discretePercentile;break}case le.NoAggregation:{i=e.utilsStrings.statistics.noAggregation;break}case le.Count:default:{i=e.utilsStrings.statistics.count;break}}return i}function Bv(t,e){let i;switch(t){case gr.End:{i=e.timeAggregationTypes.end;break}case gr.Start:{i=e.timeAggregationTypes.start;break}default:i="";break}return i}function wm(){return Vr.Side}function Wv(t){return t.utilsStrings.notAvailable}var Vv=0,Im="_arcgis_charts_outliers",xm="_arcgis_charts_z_score",zv=[210,210,210,255*lt],Uv=" percentage ";var ia=function(){return ia=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ia.apply(this,arguments)},An={exports:{}},ye={},$n={exports:{}},dr={};function gc(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function Tm(t,e,i){}function Cm(t,e,i){}var Fm=/javascript\s*\:/img;function Pm(t,e){return Fm.test(e)?"":e}dr.whiteList=gc();dr.getDefaultWhiteList=gc;dr.onAttr=Tm;dr.onIgnoreAttr=Cm;dr.safeAttrValue=Pm;var Om={indexOf:function(t,e){var i,a;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,a=t.length;i<a;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var a,r;if(Array.prototype.forEach)return t.forEach(e,i);for(a=0,r=t.length;a<r;a++)e.call(i,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Hr=Om;function Em(t,e){t=Hr.trimRight(t),t[t.length-1]!==";"&&(t+=";");var i=t.length,a=!1,r=0,n=0,s="";function o(){if(!a){var p=Hr.trim(t.slice(r,n)),u=p.indexOf(":");if(u!==-1){var h=Hr.trim(p.slice(0,u)),c=Hr.trim(p.slice(u+1));if(h){var m=e(r,s.length,h,c,p);m&&(s+=m+"; ")}}}r=n+1}for(;n<i;n++){var l=t[n];if(l==="/"&&t[n+1]==="*"){var d=t.indexOf("*/",n+2);if(d===-1)break;n=d+1,r=n+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
|
|
3
|
+
v4.34.0-next.167 */
|
|
4
|
+
import{A as fi,B as Xt,l as ls,q as ve,r as vr,s as wa,t as Sr,u as hi,v as Ia,w as Re}from"./SQJYBGJO.js";import{b as hs,c as rt,d as it}from"./ESV3I2AO.js";import{a as x,b as le,c as va,e as Sa,f as Vr,h as It,i as ds,k as me,l as xt,n as cs,o as gr,q as Lt,s as ps,t as us,v as br,w as qe}from"./FCFU4N7P.js";import{G as tt}from"./XUOBQIP5.js";import{b as W,d as os}from"./J56Z47OW.js";export default $arcgis.t(([{substitute:Je},Dn,dd,cd,Yu,cn,Ku,Xu,eh,th,rh,ih,ud,Ln])=>{var ws=W((yi,Ss)=>{(function(t,e){typeof yi=="object"&&typeof Ss<"u"?e(yi):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(yi,function(t){"use strict";function e(){for(var b=arguments.length,f=Array(b),v=0;v<b;v++)f[v]=arguments[v];if(f.length>1){f[0]=f[0].slice(0,-1);for(var I=f.length-1,T=1;T<I;++T)f[T]=f[T].slice(1,-1);return f[I]=f[I].slice(1),f.join("")}else return f[0]}function i(b){return"(?:"+b+")"}function a(b){return b===void 0?"undefined":b===null?"null":Object.prototype.toString.call(b).split(" ").pop().split("]").shift().toLowerCase()}function r(b){return b.toUpperCase()}function n(b){return b!=null?b instanceof Array?b:typeof b.length!="number"||b.split||b.setInterval||b.call?[b]:Array.prototype.slice.call(b):[]}function s(b,f){var v=b;if(f)for(var I in f)v[I]=f[I];return v}function o(b){var f="[A-Za-z]",v="[\\x0D]",I="[0-9]",T="[\\x22]",N=e(I,"[A-Fa-f]"),z="[\\x0A]",Y="[\\x20]",re=i(i("%[EFef]"+N+"%"+N+N+"%"+N+N)+"|"+i("%[89A-Fa-f]"+N+"%"+N+N)+"|"+i("%"+N+N)),xe="[\\:\\/\\?\\#\\[\\]\\@]",Z="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",he=e(xe,Z),Te=b?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",ce=b?"[\\uE000-\\uF8FF]":"[]",X=e(f,I,"[\\-\\.\\_\\~]",Te),fe=i(f+e(f,I,"[\\+\\-\\.]")+"*"),ne=i(i(re+"|"+e(X,Z,"[\\:]"))+"*"),Jt=i(i("25[0-5]")+"|"+i("2[0-4]"+I)+"|"+i("1"+I+I)+"|"+i("[1-9]"+I)+"|"+I),Be=i(i("25[0-5]")+"|"+i("2[0-4]"+I)+"|"+i("1"+I+I)+"|"+i("0?[1-9]"+I)+"|0?0?"+I),He=i(Be+"\\."+Be+"\\."+Be+"\\."+Be),se=i(N+"{1,4}"),We=i(i(se+"\\:"+se)+"|"+He),Qe=i(i(se+"\\:")+"{6}"+We),ht=i("\\:\\:"+i(se+"\\:")+"{5}"+We),Yt=i(i(se)+"?\\:\\:"+i(se+"\\:")+"{4}"+We),vt=i(i(i(se+"\\:")+"{0,1}"+se)+"?\\:\\:"+i(se+"\\:")+"{3}"+We),_r=i(i(i(se+"\\:")+"{0,2}"+se)+"?\\:\\:"+i(se+"\\:")+"{2}"+We),ci=i(i(i(se+"\\:")+"{0,3}"+se)+"?\\:\\:"+se+"\\:"+We),pi=i(i(i(se+"\\:")+"{0,4}"+se)+"?\\:\\:"+We),pr=i(i(i(se+"\\:")+"{0,5}"+se)+"?\\:\\:"+se),ur=i(i(i(se+"\\:")+"{0,6}"+se)+"?\\:\\:"),St=i([Qe,ht,Yt,vt,_r,ci,pi,pr,ur].join("|")),hr=i(i(X+"|"+re)+"+"),ga=i(St+"\\%25"+hr),Kt=i(St+i("\\%25|\\%(?!"+N+"{2})")+hr),ep=i("[vV]"+N+"+\\."+e(X,Z,"[\\:]")+"+"),tp=i("\\["+i(Kt+"|"+St+"|"+ep)+"\\]"),is=i(i(re+"|"+e(X,Z))+"*"),qr=i(tp+"|"+He+"(?!"+is+")|"+is),Mr=i(I+"*"),as=i(i(ne+"@")+"?"+qr+i("\\:"+Mr)+"?"),Br=i(re+"|"+e(X,Z,"[\\:\\@]")),rp=i(Br+"*"),ns=i(Br+"+"),ip=i(i(re+"|"+e(X,Z,"[\\@]"))+"+"),wt=i(i("\\/"+rp)+"*"),fr=i("\\/"+i(ns+wt)+"?"),ba=i(ip+wt),ui=i(ns+wt),mr="(?!"+Br+")",Tg=i(wt+"|"+fr+"|"+ba+"|"+ui+"|"+mr),yr=i(i(Br+"|"+e("[\\/\\?]",ce))+"*"),Wr=i(i(Br+"|[\\/\\?]")+"*"),ss=i(i("\\/\\/"+as+wt)+"|"+fr+"|"+ui+"|"+mr),ap=i(fe+"\\:"+ss+i("\\?"+yr)+"?"+i("\\#"+Wr)+"?"),np=i(i("\\/\\/"+as+wt)+"|"+fr+"|"+ba+"|"+mr),sp=i(np+i("\\?"+yr)+"?"+i("\\#"+Wr)+"?"),Cg=i(ap+"|"+sp),Fg=i(fe+"\\:"+ss+i("\\?"+yr)+"?"),Pg="^("+fe+")\\:"+i(i("\\/\\/("+i("("+ne+")@")+"?("+qr+")"+i("\\:("+Mr+")")+"?)")+"?("+wt+"|"+fr+"|"+ui+"|"+mr+")")+i("\\?("+yr+")")+"?"+i("\\#("+Wr+")")+"?$",Og="^(){0}"+i(i("\\/\\/("+i("("+ne+")@")+"?("+qr+")"+i("\\:("+Mr+")")+"?)")+"?("+wt+"|"+fr+"|"+ba+"|"+mr+")")+i("\\?("+yr+")")+"?"+i("\\#("+Wr+")")+"?$",Eg="^("+fe+")\\:"+i(i("\\/\\/("+i("("+ne+")@")+"?("+qr+")"+i("\\:("+Mr+")")+"?)")+"?("+wt+"|"+fr+"|"+ui+"|"+mr+")")+i("\\?("+yr+")")+"?$",Ag="^"+i("\\#("+Wr+")")+"?$",$g="^"+i("("+ne+")@")+"?("+qr+")"+i("\\:("+Mr+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",f,I,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",X,Z),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",X,Z),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",X,Z),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",X,Z),"g"),NOT_QUERY:new RegExp(e("[^\\%]",X,Z,"[\\:\\@\\/\\?]",ce),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",X,Z,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",X,Z),"g"),UNRESERVED:new RegExp(X,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",X,he),"g"),PCT_ENCODED:new RegExp(re,"g"),IPV4ADDRESS:new RegExp("^("+He+")$"),IPV6ADDRESS:new RegExp("^\\[?("+St+")"+i(i("\\%25|\\%(?!"+N+"{2})")+"("+hr+")")+"?\\]?$")}}var l=o(!1),d=o(!0),p=function(){function b(f,v){var I=[],T=!0,N=!1,z=void 0;try{for(var Y=f[Symbol.iterator](),re;!(T=(re=Y.next()).done)&&(I.push(re.value),!(v&&I.length===v));T=!0);}catch(xe){N=!0,z=xe}finally{try{!T&&Y.return&&Y.return()}finally{if(N)throw z}}return I}return function(f,v){if(Array.isArray(f))return f;if(Symbol.iterator in Object(f))return b(f,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(b){if(Array.isArray(b)){for(var f=0,v=Array(b.length);f<b.length;f++)v[f]=b[f];return v}else return Array.from(b)},h=2147483647,c=36,m=1,g=26,y=38,S=700,C=72,w=128,P="-",O=/^xn--/,A=/[^\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"},F=c-m,D=Math.floor,L=String.fromCharCode;function j(b){throw new RangeError(R[b])}function E(b,f){for(var v=[],I=b.length;I--;)v[I]=f(b[I]);return v}function $(b,f){var v=b.split("@"),I="";v.length>1&&(I=v[0]+"@",b=v[1]),b=b.replace(_,".");var T=b.split("."),N=E(T,f).join(".");return I+N}function q(b){for(var f=[],v=0,I=b.length;v<I;){var T=b.charCodeAt(v++);if(T>=55296&&T<=56319&&v<I){var N=b.charCodeAt(v++);(N&64512)==56320?f.push(((T&1023)<<10)+(N&1023)+65536):(f.push(T),v--)}else f.push(T)}return f}var ae=function(f){return String.fromCodePoint.apply(String,u(f))},G=function(f){return f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:c},Q=function(f,v){return f+22+75*(f<26)-((v!=0)<<5)},U=function(f,v,I){var T=0;for(f=I?D(f/S):f>>1,f+=D(f/v);f>F*g>>1;T+=c)f=D(f/F);return D(T+(F+1)*f/(f+y))},B=function(f){var v=[],I=f.length,T=0,N=w,z=C,Y=f.lastIndexOf(P);Y<0&&(Y=0);for(var re=0;re<Y;++re)f.charCodeAt(re)>=128&&j("not-basic"),v.push(f.charCodeAt(re));for(var xe=Y>0?Y+1:0;xe<I;){for(var Z=T,he=1,Te=c;;Te+=c){xe>=I&&j("invalid-input");var ce=G(f.charCodeAt(xe++));(ce>=c||ce>D((h-T)/he))&&j("overflow"),T+=ce*he;var X=Te<=z?m:Te>=z+g?g:Te-z;if(ce<X)break;var fe=c-X;he>D(h/fe)&&j("overflow"),he*=fe}var ne=v.length+1;z=U(T-Z,ne,Z==0),D(T/ne)>h-N&&j("overflow"),N+=D(T/ne),T%=ne,v.splice(T++,0,N)}return String.fromCodePoint.apply(String,v)},ge=function(f){var v=[];f=q(f);var I=f.length,T=w,N=0,z=C,Y=!0,re=!1,xe=void 0;try{for(var Z=f[Symbol.iterator](),he;!(Y=(he=Z.next()).done);Y=!0){var Te=he.value;Te<128&&v.push(L(Te))}}catch(Kt){re=!0,xe=Kt}finally{try{!Y&&Z.return&&Z.return()}finally{if(re)throw xe}}var ce=v.length,X=ce;for(ce&&v.push(P);X<I;){var fe=h,ne=!0,Jt=!1,Be=void 0;try{for(var He=f[Symbol.iterator](),se;!(ne=(se=He.next()).done);ne=!0){var We=se.value;We>=T&&We<fe&&(fe=We)}}catch(Kt){Jt=!0,Be=Kt}finally{try{!ne&&He.return&&He.return()}finally{if(Jt)throw Be}}var Qe=X+1;fe-T>D((h-N)/Qe)&&j("overflow"),N+=(fe-T)*Qe,T=fe;var ht=!0,Yt=!1,vt=void 0;try{for(var _r=f[Symbol.iterator](),ci;!(ht=(ci=_r.next()).done);ht=!0){var pi=ci.value;if(pi<T&&++N>h&&j("overflow"),pi==T){for(var pr=N,ur=c;;ur+=c){var St=ur<=z?m:ur>=z+g?g:ur-z;if(pr<St)break;var hr=pr-St,ga=c-St;v.push(L(Q(St+hr%ga,0))),pr=D(hr/ga)}v.push(L(Q(pr,0))),z=U(N,Qe,X==ce),N=0,++X}}}catch(Kt){Yt=!0,vt=Kt}finally{try{!ht&&_r.return&&_r.return()}finally{if(Yt)throw vt}}++N,++T}return v.join("")},De=function(f){return $(f,function(v){return O.test(v)?B(v.slice(4).toLowerCase()):v})},ke=function(f){return $(f,function(v){return A.test(v)?"xn--"+ge(v):v})},K={version:"2.1.0",ucs2:{decode:q,encode:ae},decode:B,encode:ge,toASCII:ke,toUnicode:De},we={};function Fe(b){var f=b.charCodeAt(0),v=void 0;return f<16?v="%0"+f.toString(16).toUpperCase():f<128?v="%"+f.toString(16).toUpperCase():f<2048?v="%"+(f>>6|192).toString(16).toUpperCase()+"%"+(f&63|128).toString(16).toUpperCase():v="%"+(f>>12|224).toString(16).toUpperCase()+"%"+(f>>6&63|128).toString(16).toUpperCase()+"%"+(f&63|128).toString(16).toUpperCase(),v}function je(b){for(var f="",v=0,I=b.length;v<I;){var T=parseInt(b.substr(v+1,2),16);if(T<128)f+=String.fromCharCode(T),v+=3;else if(T>=194&&T<224){if(I-v>=6){var N=parseInt(b.substr(v+4,2),16);f+=String.fromCharCode((T&31)<<6|N&63)}else f+=b.substr(v,6);v+=6}else if(T>=224){if(I-v>=9){var z=parseInt(b.substr(v+4,2),16),Y=parseInt(b.substr(v+7,2),16);f+=String.fromCharCode((T&15)<<12|(z&63)<<6|Y&63)}else f+=b.substr(v,9);v+=9}else f+=b.substr(v,3),v+=3}return f}function $t(b,f){function v(I){var T=je(I);return T.match(f.UNRESERVED)?T:I}return b.scheme&&(b.scheme=String(b.scheme).replace(f.PCT_ENCODED,v).toLowerCase().replace(f.NOT_SCHEME,"")),b.userinfo!==void 0&&(b.userinfo=String(b.userinfo).replace(f.PCT_ENCODED,v).replace(f.NOT_USERINFO,Fe).replace(f.PCT_ENCODED,r)),b.host!==void 0&&(b.host=String(b.host).replace(f.PCT_ENCODED,v).toLowerCase().replace(f.NOT_HOST,Fe).replace(f.PCT_ENCODED,r)),b.path!==void 0&&(b.path=String(b.path).replace(f.PCT_ENCODED,v).replace(b.scheme?f.NOT_PATH:f.NOT_PATH_NOSCHEME,Fe).replace(f.PCT_ENCODED,r)),b.query!==void 0&&(b.query=String(b.query).replace(f.PCT_ENCODED,v).replace(f.NOT_QUERY,Fe).replace(f.PCT_ENCODED,r)),b.fragment!==void 0&&(b.fragment=String(b.fragment).replace(f.PCT_ENCODED,v).replace(f.NOT_FRAGMENT,Fe).replace(f.PCT_ENCODED,r)),b}function gt(b){return b.replace(/^0*(.*)/,"$1")||"0"}function Ie(b,f){var v=b.match(f.IPV4ADDRESS)||[],I=p(v,2),T=I[1];return T?T.split(".").map(gt).join("."):b}function be(b,f){var v=b.match(f.IPV6ADDRESS)||[],I=p(v,3),T=I[1],N=I[2];if(T){for(var z=T.toLowerCase().split("::").reverse(),Y=p(z,2),re=Y[0],xe=Y[1],Z=xe?xe.split(":").map(gt):[],he=re.split(":").map(gt),Te=f.IPV4ADDRESS.test(he[he.length-1]),ce=Te?7:8,X=he.length-ce,fe=Array(ce),ne=0;ne<ce;++ne)fe[ne]=Z[ne]||he[X+ne]||"";Te&&(fe[ce-1]=Ie(fe[ce-1],f));var Jt=fe.reduce(function(Qe,ht,Yt){if(!ht||ht==="0"){var vt=Qe[Qe.length-1];vt&&vt.index+vt.length===Yt?vt.length++:Qe.push({index:Yt,length:1})}return Qe},[]),Be=Jt.sort(function(Qe,ht){return ht.length-Qe.length})[0],He=void 0;if(Be&&Be.length>1){var se=fe.slice(0,Be.index),We=fe.slice(Be.index+Be.length);He=se.join(":")+"::"+We.join(":")}else He=fe.join(":");return N&&(He+="%"+N),He}else return b}var Ht=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Le="".match(/(){0}/)[1]===void 0;function ee(b){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v={},I=f.iri!==!1?d:l;f.reference==="suffix"&&(b=(f.scheme?f.scheme+":":"")+"//"+b);var T=b.match(Ht);if(T){Le?(v.scheme=T[1],v.userinfo=T[3],v.host=T[4],v.port=parseInt(T[5],10),v.path=T[6]||"",v.query=T[7],v.fragment=T[8],isNaN(v.port)&&(v.port=T[5])):(v.scheme=T[1]||void 0,v.userinfo=b.indexOf("@")!==-1?T[3]:void 0,v.host=b.indexOf("//")!==-1?T[4]:void 0,v.port=parseInt(T[5],10),v.path=T[6]||"",v.query=b.indexOf("?")!==-1?T[7]:void 0,v.fragment=b.indexOf("#")!==-1?T[8]:void 0,isNaN(v.port)&&(v.port=b.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?T[4]:void 0)),v.host&&(v.host=be(Ie(v.host,I),I)),v.scheme===void 0&&v.userinfo===void 0&&v.host===void 0&&v.port===void 0&&!v.path&&v.query===void 0?v.reference="same-document":v.scheme===void 0?v.reference="relative":v.fragment===void 0?v.reference="absolute":v.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==v.reference&&(v.error=v.error||"URI is not a "+f.reference+" reference.");var N=we[(f.scheme||v.scheme||"").toLowerCase()];if(!f.unicodeSupport&&(!N||!N.unicodeSupport)){if(v.host&&(f.domainHost||N&&N.domainHost))try{v.host=K.toASCII(v.host.replace(I.PCT_ENCODED,je).toLowerCase())}catch(z){v.error=v.error||"Host's domain name can not be converted to ASCII via punycode: "+z}$t(v,l)}else $t(v,I);N&&N.parse&&N.parse(v,f)}else v.error=v.error||"URI can not be parsed.";return v}function Dt(b,f){var v=f.iri!==!1?d:l,I=[];return b.userinfo!==void 0&&(I.push(b.userinfo),I.push("@")),b.host!==void 0&&I.push(be(Ie(String(b.host),v),v).replace(v.IPV6ADDRESS,function(T,N,z){return"["+N+(z?"%25"+z:"")+"]"})),(typeof b.port=="number"||typeof b.port=="string")&&(I.push(":"),I.push(String(b.port))),I.length?I.join(""):void 0}var bt=/^\.\.?\//,Qt=/^\/\.(\/|$)/,Zt=/^\/\.\.(\/|$)/,Ae=/^\/?(?:.|\n)*?(?=\/|$)/;function Ge(b){for(var f=[];b.length;)if(b.match(bt))b=b.replace(bt,"");else if(b.match(Qt))b=b.replace(Qt,"/");else if(b.match(Zt))b=b.replace(Zt,"/"),f.pop();else if(b==="."||b==="..")b="";else{var v=b.match(Ae);if(v){var I=v[0];b=b.slice(I.length),f.push(I)}else throw new Error("Unexpected dot segment condition")}return f.join("")}function _e(b){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=f.iri?d:l,I=[],T=we[(f.scheme||b.scheme||"").toLowerCase()];if(T&&T.serialize&&T.serialize(b,f),b.host&&!v.IPV6ADDRESS.test(b.host)){if(f.domainHost||T&&T.domainHost)try{b.host=f.iri?K.toUnicode(b.host):K.toASCII(b.host.replace(v.PCT_ENCODED,je).toLowerCase())}catch(Y){b.error=b.error||"Host's domain name can not be converted to "+(f.iri?"Unicode":"ASCII")+" via punycode: "+Y}}$t(b,v),f.reference!=="suffix"&&b.scheme&&(I.push(b.scheme),I.push(":"));var N=Dt(b,f);if(N!==void 0&&(f.reference!=="suffix"&&I.push("//"),I.push(N),b.path&&b.path.charAt(0)!=="/"&&I.push("/")),b.path!==void 0){var z=b.path;!f.absolutePath&&(!T||!T.absolutePath)&&(z=Ge(z)),N===void 0&&(z=z.replace(/^\/\//,"/%2F")),I.push(z)}return b.query!==void 0&&(I.push("?"),I.push(b.query)),b.fragment!==void 0&&(I.push("#"),I.push(b.fragment)),I.join("")}function Ne(b,f){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments[3],T={};return I||(b=ee(_e(b,v),v),f=ee(_e(f,v),v)),v=v||{},!v.tolerant&&f.scheme?(T.scheme=f.scheme,T.userinfo=f.userinfo,T.host=f.host,T.port=f.port,T.path=Ge(f.path||""),T.query=f.query):(f.userinfo!==void 0||f.host!==void 0||f.port!==void 0?(T.userinfo=f.userinfo,T.host=f.host,T.port=f.port,T.path=Ge(f.path||""),T.query=f.query):(f.path?(f.path.charAt(0)==="/"?T.path=Ge(f.path):((b.userinfo!==void 0||b.host!==void 0||b.port!==void 0)&&!b.path?T.path="/"+f.path:b.path?T.path=b.path.slice(0,b.path.lastIndexOf("/")+1)+f.path:T.path=f.path,T.path=Ge(T.path)),T.query=f.query):(T.path=b.path,f.query!==void 0?T.query=f.query:T.query=b.query),T.userinfo=b.userinfo,T.host=b.host,T.port=b.port),T.scheme=b.scheme),T.fragment=f.fragment,T}function pt(b,f,v){var I=s({scheme:"null"},v);return _e(Ne(ee(b,I),ee(f,I),I,!0),I)}function Me(b,f){return typeof b=="string"?b=_e(ee(b,f),f):a(b)==="object"&&(b=ee(_e(b,f),f)),b}function di(b,f,v){return typeof b=="string"?b=_e(ee(b,v),v):a(b)==="object"&&(b=_e(b,v)),typeof f=="string"?f=_e(ee(f,v),v):a(f)==="object"&&(f=_e(f,v)),b===f}function ma(b,f){return b&&b.toString().replace(!f||!f.iri?l.ESCAPE:d.ESCAPE,Fe)}function et(b,f){return b&&b.toString().replace(!f||!f.iri?l.PCT_ENCODED:d.PCT_ENCODED,je)}var jr={scheme:"http",domainHost:!0,parse:function(f,v){return f.host||(f.error=f.error||"HTTP URIs must have a host."),f},serialize:function(f,v){var I=String(f.scheme).toLowerCase()==="https";return(f.port===(I?443:80)||f.port==="")&&(f.port=void 0),f.path||(f.path="/"),f}},Zn={scheme:"https",domainHost:jr.domainHost,parse:jr.parse,serialize:jr.serialize};function Jn(b){return typeof b.secure=="boolean"?b.secure:String(b.scheme).toLowerCase()==="wss"}var Nr={scheme:"ws",domainHost:!0,parse:function(f,v){var I=f;return I.secure=Jn(I),I.resourceName=(I.path||"/")+(I.query?"?"+I.query:""),I.path=void 0,I.query=void 0,I},serialize:function(f,v){if((f.port===(Jn(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 I=f.resourceName.split("?"),T=p(I,2),N=T[0],z=T[1];f.path=N&&N!=="/"?N:void 0,f.query=z,f.resourceName=void 0}return f.fragment=void 0,f}},Yn={scheme:"wss",domainHost:Nr.domainHost,parse:Nr.parse,serialize:Nr.serialize},Wc={},Vc=!0,Kn="[A-Za-z0-9\\-\\.\\_\\~"+(Vc?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",ut="[0-9A-Fa-f]",zc=i(i("%[EFef]"+ut+"%"+ut+ut+"%"+ut+ut)+"|"+i("%[89A-Fa-f]"+ut+"%"+ut+ut)+"|"+i("%"+ut+ut)),Uc="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Gc="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Hc=e(Gc,'[\\"\\\\]'),Qc="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Zc=new RegExp(Kn,"g"),cr=new RegExp(zc,"g"),Jc=new RegExp(e("[^]",Uc,"[\\.]",'[\\"]',Hc),"g"),Xn=new RegExp(e("[^]",Kn,Qc),"g"),Yc=Xn;function ya(b){var f=je(b);return f.match(Zc)?f:b}var es={scheme:"mailto",parse:function(f,v){var I=f,T=I.to=I.path?I.path.split(","):[];if(I.path=void 0,I.query){for(var N=!1,z={},Y=I.query.split("&"),re=0,xe=Y.length;re<xe;++re){var Z=Y[re].split("=");switch(Z[0]){case"to":for(var he=Z[1].split(","),Te=0,ce=he.length;Te<ce;++Te)T.push(he[Te]);break;case"subject":I.subject=et(Z[1],v);break;case"body":I.body=et(Z[1],v);break;default:N=!0,z[et(Z[0],v)]=et(Z[1],v);break}}N&&(I.headers=z)}I.query=void 0;for(var X=0,fe=T.length;X<fe;++X){var ne=T[X].split("@");if(ne[0]=et(ne[0]),v.unicodeSupport)ne[1]=et(ne[1],v).toLowerCase();else try{ne[1]=K.toASCII(et(ne[1],v).toLowerCase())}catch(Jt){I.error=I.error||"Email address's domain name can not be converted to ASCII via punycode: "+Jt}T[X]=ne.join("@")}return I},serialize:function(f,v){var I=f,T=n(f.to);if(T){for(var N=0,z=T.length;N<z;++N){var Y=String(T[N]),re=Y.lastIndexOf("@"),xe=Y.slice(0,re).replace(cr,ya).replace(cr,r).replace(Jc,Fe),Z=Y.slice(re+1);try{Z=v.iri?K.toUnicode(Z):K.toASCII(et(Z,v).toLowerCase())}catch(X){I.error=I.error||"Email address's domain name can not be converted to "+(v.iri?"Unicode":"ASCII")+" via punycode: "+X}T[N]=xe+"@"+Z}I.path=T.join(",")}var he=f.headers=f.headers||{};f.subject&&(he.subject=f.subject),f.body&&(he.body=f.body);var Te=[];for(var ce in he)he[ce]!==Wc[ce]&&Te.push(ce.replace(cr,ya).replace(cr,r).replace(Xn,Fe)+"="+he[ce].replace(cr,ya).replace(cr,r).replace(Yc,Fe));return Te.length&&(I.query=Te.join("&")),I}},Kc=/^([^\:]+)\:(.*)/,ts={scheme:"urn",parse:function(f,v){var I=f.path&&f.path.match(Kc),T=f;if(I){var N=v.scheme||T.scheme||"urn",z=I[1].toLowerCase(),Y=I[2],re=N+":"+(v.nid||z),xe=we[re];T.nid=z,T.nss=Y,T.path=void 0,xe&&(T=xe.parse(T,v))}else T.error=T.error||"URN can not be parsed.";return T},serialize:function(f,v){var I=v.scheme||f.scheme||"urn",T=f.nid,N=I+":"+(v.nid||T),z=we[N];z&&(f=z.serialize(f,v));var Y=f,re=f.nss;return Y.path=(T||v.nid)+":"+re,Y}},Xc=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,rs={scheme:"urn:uuid",parse:function(f,v){var I=f;return I.uuid=I.nss,I.nss=void 0,!v.tolerant&&(!I.uuid||!I.uuid.match(Xc))&&(I.error=I.error||"UUID is not valid."),I},serialize:function(f,v){var I=f;return I.nss=(f.uuid||"").toLowerCase(),I}};we[jr.scheme]=jr,we[Zn.scheme]=Zn,we[Nr.scheme]=Nr,we[Yn.scheme]=Yn,we[es.scheme]=es,we[ts.scheme]=ts,we[rs.scheme]=rs,t.SCHEMES=we,t.pctEncChar=Fe,t.pctDecChars=je,t.parse=ee,t.removeDotSegments=Ge,t.serialize=_e,t.resolveComponents=Ne,t.resolve=pt,t.normalize=Me,t.equal=di,t.escapeComponent=ma,t.unescapeComponent=et,Object.defineProperty(t,"__esModule",{value:!0})})});var gi=W((ab,Is)=>{"use strict";Is.exports=function t(e,i){if(e===i)return!0;if(e&&i&&typeof e=="object"&&typeof i=="object"){if(e.constructor!==i.constructor)return!1;var a,r,n;if(Array.isArray(e)){if(a=e.length,a!=i.length)return!1;for(r=a;r--!==0;)if(!t(e[r],i[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if(n=Object.keys(e),a=n.length,a!==Object.keys(i).length)return!1;for(r=a;r--!==0;)if(!Object.prototype.hasOwnProperty.call(i,n[r]))return!1;for(r=a;r--!==0;){var s=n[r];if(!t(e[s],i[s]))return!1}return!0}return e!==e&&i!==i}});var Ts=W((nb,xs)=>{"use strict";xs.exports=function(e){for(var i=0,a=e.length,r=0,n;r<a;)i++,n=e.charCodeAt(r++),n>=55296&&n<=56319&&r<a&&(n=e.charCodeAt(r),(n&64512)==56320&&r++);return i}});var er=W((sb,Ps)=>{"use strict";Ps.exports={copy:up,checkDataType:Ta,checkDataTypes:hp,coerceToTypes:fp,toHash:Fa,getProperty:Pa,escapeQuotes:Oa,equal:gi(),ucs2length:Ts(),varOccurences:gp,varReplace:bp,schemaHasRules:vp,schemaHasRulesExcept:Sp,schemaUnknownRules:wp,toQuotedString:Ca,getPathExpr:Ip,getPath:xp,getData:Fp,unescapeFragment:Pp,unescapeJsonPointer:Aa,escapeFragment:Op,escapeJsonPointer:Ea};function up(t,e){e=e||{};for(var i in t)e[i]=t[i];return e}function Ta(t,e,i,a){var r=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(t){case"null":return e+r+"null";case"array":return s+"Array.isArray("+e+")";case"object":return"("+s+e+n+"typeof "+e+r+'"object"'+n+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+r+'"number"'+n+o+"("+e+" % 1)"+n+e+r+e+(i?n+s+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+r+'"'+t+'"'+(i?n+s+"isFinite("+e+")":"")+")";default:return"typeof "+e+r+'"'+t+'"'}}function hp(t,e,i){switch(t.length){case 1:return Ta(t[0],e,i,!0);default:var a="",r=Fa(t);r.array&&r.object&&(a=r.null?"(":"(!"+e+" || ",a+="typeof "+e+' !== "object")',delete r.null,delete r.array,delete r.object),r.number&&delete r.integer;for(var n in r)a+=(a?" && ":"")+Ta(n,e,i,!0);return a}}var Cs=Fa(["string","number","integer","boolean","null"]);function fp(t,e){if(Array.isArray(e)){for(var i=[],a=0;a<e.length;a++){var r=e[a];(Cs[r]||t==="array"&&r==="array")&&(i[i.length]=r)}if(i.length)return i}else{if(Cs[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Fa(t){for(var e={},i=0;i<t.length;i++)e[t[i]]=!0;return e}var mp=/^[a-z$_][a-z$_0-9]*$/i,yp=/'|\\/g;function Pa(t){return typeof t=="number"?"["+t+"]":mp.test(t)?"."+t:"['"+Oa(t)+"']"}function Oa(t){return t.replace(yp,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function gp(t,e){e+="[^0-9]";var i=t.match(new RegExp(e,"g"));return i?i.length:0}function bp(t,e,i){return e+="([^0-9])",i=i.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),i+"$1")}function vp(t,e){if(typeof t=="boolean")return!t;for(var i in t)if(e[i])return!0}function Sp(t,e,i){if(typeof t=="boolean")return!t&&i!="not";for(var a in t)if(a!=i&&e[a])return!0}function wp(t,e){if(typeof t!="boolean"){for(var i in t)if(!e[i])return i}}function Ca(t){return"'"+Oa(t)+"'"}function Ip(t,e,i,a){var r=i?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return Fs(t,r)}function xp(t,e,i){var a=Ca(i?"/"+Ea(e):Pa(e));return Fs(t,a)}var Tp=/^\/(?:[^~]|~0|~1)*$/,Cp=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Fp(t,e,i){var a,r,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!Tp.test(t))throw new Error("Invalid JSON-pointer: "+t);r=t,n="rootData"}else{if(s=t.match(Cp),!s)throw new Error("Invalid JSON-pointer: "+t);if(a=+s[1],r=s[2],r=="#"){if(a>=e)throw new Error("Cannot access property/index "+a+" levels up, current level is "+e);return i[e-a]}if(a>e)throw new Error("Cannot access data "+a+" levels up, current level is "+e);if(n="data"+(e-a||""),!r)return n}for(var o=n,l=r.split("/"),d=0;d<l.length;d++){var p=l[d];p&&(n+=Pa(Aa(p)),o+=" && "+n)}return o}function Fs(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function Pp(t){return Aa(decodeURIComponent(t))}function Op(t){return encodeURIComponent(Ea(t))}function Ea(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function Aa(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var $a=W((ob,Os)=>{"use strict";var Ep=er();Os.exports=Ap;function Ap(t){Ep.copy(t,this)}});var As=W((lb,Es)=>{"use strict";var Rt=Es.exports=function(t,e,i){typeof e=="function"&&(i=e,e={}),i=e.cb||i;var a=typeof i=="function"?i:i.pre||function(){},r=i.post||function(){};bi(e,a,r,t,"",t)};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 bi(t,e,i,a,r,n,s,o,l,d){if(a&&typeof a=="object"&&!Array.isArray(a)){e(a,r,n,s,o,l,d);for(var p in a){var u=a[p];if(Array.isArray(u)){if(p in Rt.arrayKeywords)for(var h=0;h<u.length;h++)bi(t,e,i,u[h],r+"/"+p+"/"+h,n,r,p,a,h)}else if(p in Rt.propsKeywords){if(u&&typeof u=="object")for(var c in u)bi(t,e,i,u[c],r+"/"+p+"/"+$p(c),n,r,p,a,c)}else(p in Rt.keywords||t.allKeys&&!(p in Rt.skipKeywords))&&bi(t,e,i,u,r+"/"+p,n,r,p,a)}i(a,r,n,s,o,l,d)}}function $p(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ti=W((db,Rs)=>{"use strict";var Ur=ws(),$s=gi(),Ii=er(),vi=$a(),Dp=As();Rs.exports=jt;jt.normalizeId=kt;jt.fullPath=Si;jt.url=wi;jt.ids=Np;jt.inlineRef=Da;jt.schema=xi;function jt(t,e,i){var a=this._refs[i];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return jt.call(this,t,e,a);if(a=a||this._schemas[i],a instanceof vi)return Da(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var r=xi.call(this,e,i),n,s,o;return r&&(n=r.schema,e=r.root,o=r.baseId),n instanceof vi?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=Da(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function xi(t,e){var i=Ur.parse(e),a=Ls(i),r=Si(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==r){var n=kt(a),s=this._refs[n];if(typeof s=="string")return Lp.call(this,t,s,i);if(s instanceof vi)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof vi){if(s.validate||this._compile(s),n==kt(e))return{schema:s,root:t,baseId:r};t=s}else return;if(!t.schema)return;r=Si(this._getId(t.schema))}return Ds.call(this,i,r,t.schema,t)}function Lp(t,e,i){var a=xi.call(this,t,e);if(a){var r=a.schema,n=a.baseId;t=a.root;var s=this._getId(r);return s&&(n=wi(n,s)),Ds.call(this,i,n,r,t)}}var Rp=Ii.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Ds(t,e,i,a){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var r=t.fragment.split("/"),n=1;n<r.length;n++){var s=r[n];if(s){if(s=Ii.unescapeFragment(s),i=i[s],i===void 0)break;var o;if(!Rp[s]&&(o=this._getId(i),o&&(e=wi(e,o)),i.$ref)){var l=wi(e,i.$ref),d=xi.call(this,a,l);d&&(i=d.schema,a=d.root,e=d.baseId)}}}if(i!==void 0&&i!==a.schema)return{schema:i,root:a,baseId:e}}}var kp=Ii.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Da(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return La(t);if(e)return Ra(t)<=e}function La(t){var e;if(Array.isArray(t)){for(var i=0;i<t.length;i++)if(e=t[i],typeof e=="object"&&!La(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!La(e)))return!1;return!0}function Ra(t){var e=0,i;if(Array.isArray(t)){for(var a=0;a<t.length;a++)if(i=t[a],typeof i=="object"&&(e+=Ra(i)),e==1/0)return 1/0}else for(var r in t){if(r=="$ref")return 1/0;if(kp[r])e++;else if(i=t[r],typeof i=="object"&&(e+=Ra(i)+1),e==1/0)return 1/0}return e}function Si(t,e){e!==!1&&(t=kt(t));var i=Ur.parse(t);return Ls(i)}function Ls(t){return Ur.serialize(t).split("#")[0]+"#"}var jp=/#\/?$/;function kt(t){return t?t.replace(jp,""):""}function wi(t,e){return e=kt(e),Ur.resolve(t,e)}function Np(t){var e=kt(this._getId(t)),i={"":e},a={"":Si(e,!1)},r={},n=this;return Dp(t,{allKeys:!0},function(s,o,l,d,p,u,h){if(o!==""){var c=n._getId(s),m=i[d],g=a[d]+"/"+p;if(h!==void 0&&(g+="/"+(typeof h=="number"?h:Ii.escapeFragment(h))),typeof c=="string"){c=m=kt(m?Ur.resolve(m,c):c);var y=n._refs[c];if(typeof y=="string"&&(y=n._refs[y]),y&&y.schema){if(!$s(s,y.schema))throw new Error('id "'+c+'" resolves to more than one schema')}else if(c!=kt(g))if(c[0]=="#"){if(r[c]&&!$s(s,r[c]))throw new Error('id "'+c+'" resolves to more than one schema');r[c]=s}else n._refs[c]=g}i[o]=m,a[o]=g}}),r}});var Ci=W((cb,js)=>{"use strict";var ka=Ti();js.exports={Validation:ks(_p),MissingRef:ks(ja)};function _p(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}ja.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function ja(t,e,i){this.message=i||ja.message(t,e),this.missingRef=ka.url(t,e),this.missingSchema=ka.normalizeId(ka.fullPath(this.missingRef))}function ks(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Na=W((pb,Ns)=>{"use strict";Ns.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var i=typeof e.cycles=="boolean"?e.cycles:!1,a=e.cmp&&function(n){return function(s){return function(o,l){var d={key:o,value:s[o]},p={key:l,value:s[l]};return n(d,p)}}}(e.cmp),r=[];return function n(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var o,l;if(Array.isArray(s)){for(l="[",o=0;o<s.length;o++)o&&(l+=","),l+=n(s[o])||"null";return l+"]"}if(s===null)return"null";if(r.indexOf(s)!==-1){if(i)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var d=r.push(s)-1,p=Object.keys(s).sort(a&&a(s));for(l="",o=0;o<p.length;o++){var u=p[o],h=n(s[u]);h&&(l&&(l+=","),l+=JSON.stringify(u)+":"+h)}return r.splice(d,1),"{"+l+"}"}}(t)}});var _a=W((ub,_s)=>{"use strict";_s.exports=function(e,i,a){var r="",n=e.schema.$async===!0,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var d="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(d);else throw new Error(d)}}if(e.isTop&&(r+=" var validate = ",n&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" "+("/*# sourceURL="+o+" */")+" ")),typeof e.schema=="boolean"||!(s||e.schema.$ref)){var i="false schema",p=e.level,u=e.dataLevel,h=e.schema[i],c=e.schemaPath+e.util.getProperty(i),m=e.errSchemaPath+"/"+i,O=!e.opts.allErrors,R,g="data"+(u||""),P="valid"+p;if(e.schema===!1){e.isTop?O=!0:r+=" var "+P+" = false; ";var y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(R||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var S=r;r=y.pop(),!e.compositeRule&&O?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n?r+=" return data; ":r+=" validate.errors = null; return true; ":r+=" var "+P+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var C=e.isTop,p=e.level=0,u=e.dataLevel=0,g="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 w="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{var p=e.level,u=e.dataLevel,g="data"+(u||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+p+" = errors;"}var P="valid"+p,O=!e.opts.allErrors,A="",_="",R,F=e.schema.type,D=Array.isArray(F);if(F&&e.opts.nullable&&e.schema.nullable===!0&&(D?F.indexOf("null")==-1&&(F=F.concat("null")):F!="null"&&(F=[F,"null"],D=!0)),D&&F.length==1&&(F=F[0],D=!1),e.schema.$ref&&s){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&&(s=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),F){if(e.opts.coerceTypes)var L=e.util.coerceToTypes(e.opts.coerceTypes,F);var j=e.RULES.types[F];if(L||D||j===!0||j&&!Ae(j)){var c=e.schemaPath+".type",m=e.errSchemaPath+"/type",c=e.schemaPath+".type",m=e.errSchemaPath+"/type",E=D?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[E](F,g,e.opts.strictNumbers,!0)+") { ",L){var $="dataType"+p,q="coerced"+p;r+=" var "+$+" = typeof "+g+"; var "+q+" = undefined; ",e.opts.coerceTypes=="array"&&(r+=" if ("+$+" == 'object' && Array.isArray("+g+") && "+g+".length == 1) { "+g+" = "+g+"[0]; "+$+" = typeof "+g+"; if ("+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+") "+q+" = "+g+"; } "),r+=" if ("+q+" !== undefined) ; ";var ae=L;if(ae)for(var G,Q=-1,U=ae.length-1;Q<U;)G=ae[Q+=1],G=="string"?r+=" else if ("+$+" == 'number' || "+$+" == 'boolean') "+q+" = '' + "+g+"; else if ("+g+" === null) "+q+" = ''; ":G=="number"||G=="integer"?(r+=" else if ("+$+" == 'boolean' || "+g+" === null || ("+$+" == 'string' && "+g+" && "+g+" == +"+g+" ",G=="integer"&&(r+=" && !("+g+" % 1)"),r+=")) "+q+" = +"+g+"; "):G=="boolean"?r+=" else if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+q+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+q+" = true; ":G=="null"?r+=" else if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+q+" = null; ":e.opts.coerceTypes=="array"&&G=="array"&&(r+=" else if ("+$+" == 'string' || "+$+" == 'number' || "+$+" == 'boolean' || "+g+" == null) "+q+" = ["+g+"]; ");r+=" else { ";var y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(R||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",D?r+=""+F.join(","):r+=""+F,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",D?r+=""+F.join(","):r+=""+F,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var S=r;r=y.pop(),!e.compositeRule&&O?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } if ("+q+" !== undefined) { ";var B=u?"data"+(u-1||""):"parentData",ge=u?e.dataPathArr[u]:"parentDataProperty";r+=" "+g+" = "+q+"; ",u||(r+="if ("+B+" !== undefined)"),r+=" "+B+"["+ge+"] = "+q+"; } "}else{var y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(R||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",D?r+=""+F.join(","):r+=""+F,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",D?r+=""+F.join(","):r+=""+F,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var S=r;r=y.pop(),!e.compositeRule&&O?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!s)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",O&&(r+=" } if (errors === ",C?r+="0":r+="errs_"+p,r+=") { ",_+="}");else{var De=e.RULES;if(De){for(var j,ke=-1,K=De.length-1;ke<K;)if(j=De[ke+=1],Ae(j)){if(j.type&&(r+=" if ("+e.util.checkDataType(j.type,g,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(j.type=="object"&&e.schema.properties){var h=e.schema.properties,we=Object.keys(h),Fe=we;if(Fe)for(var je,$t=-1,gt=Fe.length-1;$t<gt;){je=Fe[$t+=1];var Ie=h[je];if(Ie.default!==void 0){var be=g+e.util.getProperty(je);if(e.compositeRule){if(e.opts.strictDefaults){var w="default is ignored for: "+be;if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}}else r+=" if ("+be+" === undefined ",e.opts.useDefaults=="empty"&&(r+=" || "+be+" === null || "+be+" === '' "),r+=" ) "+be+" = ",e.opts.useDefaults=="shared"?r+=" "+e.useDefault(Ie.default)+" ":r+=" "+JSON.stringify(Ie.default)+" ",r+="; "}}}else if(j.type=="array"&&Array.isArray(e.schema.items)){var Ht=e.schema.items;if(Ht){for(var Ie,Q=-1,Le=Ht.length-1;Q<Le;)if(Ie=Ht[Q+=1],Ie.default!==void 0){var be=g+"["+Q+"]";if(e.compositeRule){if(e.opts.strictDefaults){var w="default is ignored for: "+be;if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}}else r+=" if ("+be+" === undefined ",e.opts.useDefaults=="empty"&&(r+=" || "+be+" === null || "+be+" === '' "),r+=" ) "+be+" = ",e.opts.useDefaults=="shared"?r+=" "+e.useDefault(Ie.default)+" ":r+=" "+JSON.stringify(Ie.default)+" ",r+="; "}}}}var ee=j.rules;if(ee){for(var Dt,bt=-1,Qt=ee.length-1;bt<Qt;)if(Dt=ee[bt+=1],Ge(Dt)){var Zt=Dt.code(e,Dt.keyword,j.type);Zt&&(r+=" "+Zt+" ",O&&(A+="}"))}}if(O&&(r+=" "+A+" ",A=""),j.type&&(r+=" } ",F&&F===j.type&&!L)){r+=" else { ";var c=e.schemaPath+".type",m=e.errSchemaPath+"/type",y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(R||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { type: '",D?r+=""+F.join(","):r+=""+F,r+="' } ",e.opts.messages!==!1&&(r+=" , message: 'should be ",D?r+=""+F.join(","):r+=""+F,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),r+=" } "):r+=" {} ";var S=r;r=y.pop(),!e.compositeRule&&O?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}O&&(r+=" if (errors === ",C?r+="0":r+="errs_"+p,r+=") { ",_+="}")}}}O&&(r+=" "+_+" "),C?(n?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+P+" = errors === errs_"+p+";";function Ae(Ne){for(var pt=Ne.rules,Me=0;Me<pt.length;Me++)if(Ge(pt[Me]))return!0}function Ge(Ne){return e.schema[Ne.keyword]!==void 0||Ne.implements&&_e(Ne)}function _e(Ne){for(var pt=Ne.implements,Me=0;Me<pt.length;Me++)if(e.schema[pt[Me]]!==void 0)return!0}return r}});var Vs=W((hb,Ws)=>{"use strict";var Fi=Ti(),Oi=er(),Ms=Ci(),qp=Na(),qs=_a(),Mp=Oi.ucs2length,Bp=gi(),Wp=Ms.Validation;Ws.exports=qa;function qa(t,e,i,a){var r=this,n=this._opts,s=[void 0],o={},l=[],d={},p=[],u={},h=[];e=e||{schema:t,refVal:s,refs:o};var c=Vp.call(this,t,e,a),m=this._compilations[c.index];if(c.compiling)return m.callValidate=w;var g=this._formats,y=this.RULES;try{var S=P(t,e,i,a);m.validate=S;var C=m.callValidate;return C&&(C.schema=S.schema,C.errors=null,C.refs=S.refs,C.refVal=S.refVal,C.root=S.root,C.$async=S.$async,n.sourceCode&&(C.source=S.source)),S}finally{zp.call(this,t,e,a)}function w(){var E=m.validate,$=E.apply(this,arguments);return w.errors=E.errors,$}function P(E,$,q,ae){var G=!$||$&&$.schema==E;if($.schema!=e.schema)return qa.call(r,E,$,q,ae);var Q=E.$async===!0,U=qs({isTop:!0,schema:E,isRoot:G,baseId:ae,root:$,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Ms.MissingRef,RULES:y,validate:qs,util:Oi,resolve:Fi,resolveRef:O,usePattern:D,useDefault:L,useCustomRule:j,opts:n,formats:g,logger:r.logger,self:r});U=Pi(s,Hp)+Pi(l,Up)+Pi(p,Gp)+Pi(h,Qp)+U,n.processCode&&(U=n.processCode(U,E));var B;try{var ge=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",U);B=ge(r,y,g,e,s,p,h,Bp,Mp,Wp),s[0]=B}catch(De){throw r.logger.error("Error compiling schema, function code:",U),De}return B.schema=E,B.errors=null,B.refs=o,B.refVal=s,B.root=G?B:$,Q&&(B.$async=!0),n.sourceCode===!0&&(B.source={code:U,patterns:l,defaults:p}),B}function O(E,$,q){$=Fi.url(E,$);var ae=o[$],G,Q;if(ae!==void 0)return G=s[ae],Q="refVal["+ae+"]",F(G,Q);if(!q&&e.refs){var U=e.refs[$];if(U!==void 0)return G=e.refVal[U],Q=A($,G),F(G,Q)}Q=A($);var B=Fi.call(r,P,e,$);if(B===void 0){var ge=i&&i[$];ge&&(B=Fi.inlineRef(ge,n.inlineRefs)?ge:qa.call(r,ge,e,i,E))}if(B===void 0)_($);else return R($,B),F(B,Q)}function A(E,$){var q=s.length;return s[q]=$,o[E]=q,"refVal"+q}function _(E){delete o[E]}function R(E,$){var q=o[E];s[q]=$}function F(E,$){return typeof E=="object"||typeof E=="boolean"?{code:$,schema:E,inline:!0}:{code:$,$async:E&&!!E.$async}}function D(E){var $=d[E];return $===void 0&&($=d[E]=l.length,l[$]=E),"pattern"+$}function L(E){switch(typeof E){case"boolean":case"number":return""+E;case"string":return Oi.toQuotedString(E);case"object":if(E===null)return"null";var $=qp(E),q=u[$];return q===void 0&&(q=u[$]=p.length,p[q]=E),"default"+q}}function j(E,$,q,ae){if(r._opts.validateSchema!==!1){var G=E.definition.dependencies;if(G&&!G.every(function(Fe){return Object.prototype.hasOwnProperty.call(q,Fe)}))throw new Error("parent schema must have all required keywords: "+G.join(","));var Q=E.definition.validateSchema;if(Q){var U=Q($);if(!U){var B="keyword schema is invalid: "+r.errorsText(Q.errors);if(r._opts.validateSchema=="log")r.logger.error(B);else throw new Error(B)}}}var ge=E.definition.compile,De=E.definition.inline,ke=E.definition.macro,K;if(ge)K=ge.call(r,$,q,ae);else if(ke)K=ke.call(r,$,q,ae),n.validateSchema!==!1&&r.validateSchema(K,!0);else if(De)K=De.call(r,ae,E.keyword,$,q);else if(K=E.definition.validate,!K)return;if(K===void 0)throw new Error('custom keyword "'+E.keyword+'"failed to compile');var we=h.length;return h[we]=K,{code:"customRule"+we,validate:K}}}function Vp(t,e,i){var a=Bs.call(this,t,e,i);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:t,root:e,baseId:i},{index:a,compiling:!1})}function zp(t,e,i){var a=Bs.call(this,t,e,i);a>=0&&this._compilations.splice(a,1)}function Bs(t,e,i){for(var a=0;a<this._compilations.length;a++){var r=this._compilations[a];if(r.schema==t&&r.root==e&&r.baseId==i)return a}return-1}function Up(t,e){return"var pattern"+t+" = new RegExp("+Oi.toQuotedString(e[t])+");"}function Gp(t){return"var default"+t+" = defaults["+t+"];"}function Hp(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function Qp(t){return"var customRule"+t+" = customRules["+t+"];"}function Pi(t,e){if(!t.length)return"";for(var i="",a=0;a<t.length;a++)i+=e(a,t);return i}});var Us=W((fb,zs)=>{"use strict";var Ei=zs.exports=function(){this._cache={}};Ei.prototype.put=function(e,i){this._cache[e]=i};Ei.prototype.get=function(e){return this._cache[e]};Ei.prototype.del=function(e){delete this._cache[e]};Ei.prototype.clear=function(){this._cache={}}});var io=W((mb,ro)=>{"use strict";var Zp=er(),Jp=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Yp=[0,31,28,31,30,31,30,31,31,30,31,30,31],Kp=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Gs=/^(?=.{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,Xp=/^(?:[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,eu=/^(?:[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,Hs=/^(?:(?:[^\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,Qs=/^(?:(?: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,Zs=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Js=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Ys=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Ks=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;ro.exports=Ai;function Ai(t){return t=t=="full"?"full":"fast",Zp.copy(Ai[t])}Ai.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":Hs,url:Qs,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:Gs,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:to,uuid:Zs,"json-pointer":Js,"json-pointer-uri-fragment":Ys,"relative-json-pointer":Ks};Ai.full={date:Xs,time:eo,"date-time":iu,uri:nu,"uri-reference":eu,"uri-template":Hs,url:Qs,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:Gs,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:to,uuid:Zs,"json-pointer":Js,"json-pointer-uri-fragment":Ys,"relative-json-pointer":Ks};function tu(t){return t%4===0&&(t%100!==0||t%400===0)}function Xs(t){var e=t.match(Jp);if(!e)return!1;var i=+e[1],a=+e[2],r=+e[3];return a>=1&&a<=12&&r>=1&&r<=(a==2&&tu(i)?29:Yp[a])}function eo(t,e){var i=t.match(Kp);if(!i)return!1;var a=i[1],r=i[2],n=i[3],s=i[5];return(a<=23&&r<=59&&n<=59||a==23&&r==59&&n==60)&&(!e||s)}var ru=/t|\s/i;function iu(t){var e=t.split(ru);return e.length==2&&Xs(e[0])&&eo(e[1],!0)}var au=/\/|:/;function nu(t){return au.test(t)&&Xp.test(t)}var su=/[^\\]\\Z/;function to(t){if(su.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var no=W((yb,ao)=>{"use strict";ao.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.errSchemaPath+"/"+i,d=!e.opts.allErrors,p="data"+(s||""),u="valid"+n,h,c;if(o=="#"||o=="#/")e.isRoot?(h=e.async,c="validate"):(h=e.root.schema.$async===!0,c="root.refVal[0]");else{var m=e.resolveRef(e.baseId,o,e.isRoot);if(m===void 0){var g=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(g);var y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(r+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(r+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var S=r;r=y.pop(),!e.compositeRule&&d?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(r+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(g),d&&(r+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,g)}else if(m.inline){var C=e.util.copy(e);C.level++;var w="valid"+C.level;C.schema=m.schema,C.schemaPath="",C.errSchemaPath=o;var P=e.validate(C).replace(/validate\.schema/g,m.code);r+=" "+P+" ",d&&(r+=" if ("+w+") { ")}else h=m.$async===!0||e.async&&m.$async!==!1,c=m.code}if(c){var y=y||[];y.push(r),r="",e.opts.passContext?r+=" "+c+".call(this, ":r+=" "+c+"( ",r+=" "+p+", (dataPath || '')",e.errorPath!='""'&&(r+=" + "+e.errorPath);var O=s?"data"+(s-1||""):"parentData",A=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+O+" , "+A+", rootData) ";var _=r;if(r=y.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(r+=" var "+u+"; "),r+=" try { await "+_+"; ",d&&(r+=" "+u+" = true; "),r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",d&&(r+=" "+u+" = false; "),r+=" } ",d&&(r+=" if ("+u+") { ")}else r+=" if (!"+_+") { if (vErrors === null) vErrors = "+c+".errors; else vErrors = vErrors.concat("+c+".errors); errors = vErrors.length; } ",d&&(r+=" else { ")}return r}});var oo=W((gb,so)=>{"use strict";so.exports=function(e,i,a){var r=" ",n=e.schema[i],s=e.schemaPath+e.util.getProperty(i),o=e.errSchemaPath+"/"+i,l=!e.opts.allErrors,d=e.util.copy(e),p="";d.level++;var u="valid"+d.level,h=d.baseId,c=!0,m=n;if(m)for(var g,y=-1,S=m.length-1;y<S;)g=m[y+=1],(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all))&&(c=!1,d.schema=g,d.schemaPath=s+"["+y+"]",d.errSchemaPath=o+"/"+y,r+=" "+e.validate(d)+" ",d.baseId=h,l&&(r+=" if ("+u+") { ",p+="}"));return l&&(c?r+=" if (true) { ":r+=" "+p.slice(0,-1)+" "),r}});var co=W((bb,lo)=>{"use strict";lo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c="errs__"+n,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,S=o.every(function(R){return e.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:e.util.schemaHasRules(R,e.RULES.all)});if(S){var C=m.baseId;r+=" var "+c+" = errors; var "+h+" = false; ";var w=e.compositeRule;e.compositeRule=m.compositeRule=!0;var P=o;if(P)for(var O,A=-1,_=P.length-1;A<_;)O=P[A+=1],m.schema=O,m.schemaPath=l+"["+A+"]",m.errSchemaPath=d+"/"+A,r+=" "+e.validate(m)+" ",m.baseId=C,r+=" "+h+" = "+h+" || "+y+"; if (!"+h+") { ",g+="}";e.compositeRule=m.compositeRule=w,r+=" "+g+" if (!"+h+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } else { errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else p&&(r+=" if (true) { ");return r}});var uo=W((vb,po)=>{"use strict";po.exports=function(e,i,a){var r=" ",n=e.schema[i],s=e.errSchemaPath+"/"+i,o=!e.opts.allErrors,l=e.util.toQuotedString(n);return e.opts.$comment===!0?r+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(r+=" self._opts.$comment("+l+", "+e.util.toQuotedString(s)+", validate.root.schema);"),r}});var fo=W((Sb,ho)=>{"use strict";ho.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c=e.opts.$data&&o&&o.$data,m;c?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o,c||(r+=" var schema"+n+" = validate.schema"+l+";"),r+="var "+h+" = equal("+u+", schema"+n+"); if (!"+h+") { ";var g=g||[];g.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValue: schema"+n+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be equal to constant' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var y=r;return r=g.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",p&&(r+=" else { "),r}});var yo=W((wb,mo)=>{"use strict";mo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c="errs__"+n,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,S="i"+n,C=m.dataLevel=e.dataLevel+1,w="data"+C,P=e.baseId,O=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(r+="var "+c+" = errors;var "+h+";",O){var A=e.compositeRule;e.compositeRule=m.compositeRule=!0,m.schema=o,m.schemaPath=l,m.errSchemaPath=d,r+=" var "+y+" = false; for (var "+S+" = 0; "+S+" < "+u+".length; "+S+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var _=u+"["+S+"]";m.dataPathArr[C]=S;var R=e.validate(m);m.baseId=P,e.util.varOccurences(R,w)<2?r+=" "+e.util.varReplace(R,w,_)+" ":r+=" var "+w+" = "+_+"; "+R+" ",r+=" if ("+y+") break; } ",e.compositeRule=m.compositeRule=A,r+=" "+g+" if (!"+y+") {"}else r+=" if ("+u+".length == 0) {";var F=F||[];F.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should contain a valid item' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var D=r;return r=F.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+D+"]); ":r+=" validate.errors = ["+D+"]; return false; ":r+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ",O&&(r+=" errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } "),e.opts.allErrors&&(r+=" } "),r}});var bo=W((Ib,go)=>{"use strict";go.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,c=e.util.copy(e),m="";c.level++;var g="valid"+c.level,y={},S={},C=e.opts.ownProperties;for(A in o)if(A!="__proto__"){var w=o[A],P=Array.isArray(w)?S:y;P[A]=w}r+="var "+h+" = errors;";var O=e.errorPath;r+="var missing"+n+";";for(var A in S)if(P=S[A],P.length){if(r+=" if ( "+u+e.util.getProperty(A)+" !== undefined ",C&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),p){r+=" && ( ";var _=P;if(_)for(var R,F=-1,D=_.length-1;F<D;){R=_[F+=1],F&&(r+=" || ");var L=e.util.getProperty(R),j=u+L;r+=" ( ( "+j+" === undefined ",C&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?R:L)+") ) "}r+=")) { ";var E="missing"+n,$="' + "+E+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(O,E,!0):O+" + "+E);var q=q||[];q.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+$+"', depsCount: "+P.length+", deps: '"+e.util.escapeQuotes(P.length==1?P[0]:P.join(", "))+"' } ",e.opts.messages!==!1&&(r+=" , message: 'should have ",P.length==1?r+="property "+e.util.escapeQuotes(P[0]):r+="properties "+e.util.escapeQuotes(P.join(", ")),r+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var ae=r;r=q.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+ae+"]); ":r+=" validate.errors = ["+ae+"]; return false; ":r+=" var err = "+ae+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{r+=" ) { ";var G=P;if(G)for(var R,Q=-1,U=G.length-1;Q<U;){R=G[Q+=1];var L=e.util.getProperty(R),$=e.util.escapeQuotes(R),j=u+L;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(O,R,e.opts.jsonPointers)),r+=" if ( "+j+" === undefined ",C&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(R)+"') "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+$+"', depsCount: "+P.length+", deps: '"+e.util.escapeQuotes(P.length==1?P[0]:P.join(", "))+"' } ",e.opts.messages!==!1&&(r+=" , message: 'should have ",P.length==1?r+="property "+e.util.escapeQuotes(P[0]):r+="properties "+e.util.escapeQuotes(P.join(", ")),r+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r+=" } ",p&&(m+="}",r+=" else { ")}e.errorPath=O;var B=c.baseId;for(var A in y){var w=y[A];(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all))&&(r+=" "+g+" = true; if ( "+u+e.util.getProperty(A)+" !== undefined ",C&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(A)+"') "),r+=") { ",c.schema=w,c.schemaPath=l+e.util.getProperty(A),c.errSchemaPath=d+"/"+e.util.escapeFragment(A),r+=" "+e.validate(c)+" ",c.baseId=B,r+=" } ",p&&(r+=" if ("+g+") { ",m+="}"))}return p&&(r+=" "+m+" if ("+h+" == errors) {"),r}});var So=W((xb,vo)=>{"use strict";vo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c=e.opts.$data&&o&&o.$data,m;c?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o;var g="i"+n,y="schema"+n;c||(r+=" var "+y+" = validate.schema"+l+";"),r+="var "+h+";",c&&(r+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),r+=""+h+" = false;for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) if (equal("+u+", "+y+"["+g+"])) { "+h+" = true; break; }",c&&(r+=" } "),r+=" if (!"+h+") { ";var S=S||[];S.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValues: schema"+n+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;return r=S.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" }",p&&(r+=" else { "),r}});var Io=W((Tb,wo)=>{"use strict";wo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||"");if(e.opts.format===!1)return p&&(r+=" if (true) { "),r;var h=e.opts.$data&&o&&o.$data,c;h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o;var m=e.opts.unknownFormats,g=Array.isArray(m);if(h){var y="format"+n,S="isObject"+n,C="formatType"+n;r+=" var "+y+" = formats["+c+"]; var "+S+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+C+" = "+S+" && "+y+".type || 'string'; if ("+S+") { ",e.async&&(r+=" var async"+n+" = "+y+".async; "),r+=" "+y+" = "+y+".validate; } if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'string') || "),r+=" (",m!="ignore"&&(r+=" ("+c+" && !"+y+" ",g&&(r+=" && self._opts.unknownFormats.indexOf("+c+") == -1 "),r+=") || "),r+=" ("+y+" && "+C+" == '"+a+"' && !(typeof "+y+" == 'function' ? ",e.async?r+=" (async"+n+" ? await "+y+"("+u+") : "+y+"("+u+")) ":r+=" "+y+"("+u+") ",r+=" : "+y+".test("+u+"))))) {"}else{var y=e.formats[o];if(!y){if(m=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),p&&(r+=" if (true) { "),r;if(g&&m.indexOf(o)>=0)return p&&(r+=" if (true) { "),r;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var S=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,C=S&&y.type||"string";if(S){var w=y.async===!0;y=y.validate}if(C!=a)return p&&(r+=" if (true) { "),r;if(w){if(!e.async)throw new Error("async format in sync schema");var P="formats"+e.util.getProperty(o)+".validate";r+=" if (!(await "+P+"("+u+"))) { "}else{r+=" if (! ";var P="formats"+e.util.getProperty(o);S&&(P+=".validate"),typeof y=="function"?r+=" "+P+"("+u+") ":r+=" "+P+".test("+u+") ",r+=") { "}}var O=O||[];O.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { format: ",h?r+=""+c:r+=""+e.util.toQuotedString(o),r+=" } ",e.opts.messages!==!1&&(r+=` , message: 'should match format "`,h?r+="' + "+c+" + '":r+=""+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+e.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var A=r;return r=O.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+A+"]); ":r+=" validate.errors = ["+A+"]; return false; ":r+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",p&&(r+=" else { "),r}});var To=W((Cb,xo)=>{"use strict";xo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c="errs__"+n,m=e.util.copy(e);m.level++;var g="valid"+m.level,y=e.schema.then,S=e.schema.else,C=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),w=S!==void 0&&(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all)),P=m.baseId;if(C||w){var O;m.createErrors=!1,m.schema=o,m.schemaPath=l,m.errSchemaPath=d,r+=" var "+c+" = errors; var "+h+" = true; ";var A=e.compositeRule;e.compositeRule=m.compositeRule=!0,r+=" "+e.validate(m)+" ",m.baseId=P,m.createErrors=!0,r+=" errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; } ",e.compositeRule=m.compositeRule=A,C?(r+=" if ("+g+") { ",m.schema=e.schema.then,m.schemaPath=e.schemaPath+".then",m.errSchemaPath=e.errSchemaPath+"/then",r+=" "+e.validate(m)+" ",m.baseId=P,r+=" "+h+" = "+g+"; ",C&&w?(O="ifClause"+n,r+=" var "+O+" = 'then'; "):O="'then'",r+=" } ",w&&(r+=" else { ")):r+=" if (!"+g+") { ",w&&(m.schema=e.schema.else,m.schemaPath=e.schemaPath+".else",m.errSchemaPath=e.errSchemaPath+"/else",r+=" "+e.validate(m)+" ",m.baseId=P,r+=" "+h+" = "+g+"; ",C&&w?(O="ifClause"+n,r+=" var "+O+" = 'else'; "):O="'else'",r+=" } "),r+=" if (!"+h+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { failingKeyword: "+O+" } ",e.opts.messages!==!1&&(r+=` , message: 'should match "' + `+O+` + '" schema' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+=" } ",p&&(r+=" else { ")}else p&&(r+=" if (true) { ");return r}});var Fo=W((Fb,Co)=>{"use strict";Co.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c="errs__"+n,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,S="i"+n,C=m.dataLevel=e.dataLevel+1,w="data"+C,P=e.baseId;if(r+="var "+c+" = errors;var "+h+";",Array.isArray(o)){var O=e.schema.additionalItems;if(O===!1){r+=" "+h+" = "+u+".length <= "+o.length+"; ";var A=d;d=e.errSchemaPath+"/additionalItems",r+=" if (!"+h+") { ";var _=_||[];_.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var R=r;r=_.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+R+"]); ":r+=" validate.errors = ["+R+"]; return false; ":r+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",d=A,p&&(g+="}",r+=" else { ")}var F=o;if(F){for(var D,L=-1,j=F.length-1;L<j;)if(D=F[L+=1],e.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:e.util.schemaHasRules(D,e.RULES.all)){r+=" "+y+" = true; if ("+u+".length > "+L+") { ";var E=u+"["+L+"]";m.schema=D,m.schemaPath=l+"["+L+"]",m.errSchemaPath=d+"/"+L,m.errorPath=e.util.getPathExpr(e.errorPath,L,e.opts.jsonPointers,!0),m.dataPathArr[C]=L;var $=e.validate(m);m.baseId=P,e.util.varOccurences($,w)<2?r+=" "+e.util.varReplace($,w,E)+" ":r+=" var "+w+" = "+E+"; "+$+" ",r+=" } ",p&&(r+=" if ("+y+") { ",g+="}")}}if(typeof O=="object"&&(e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:e.util.schemaHasRules(O,e.RULES.all))){m.schema=O,m.schemaPath=e.schemaPath+".additionalItems",m.errSchemaPath=e.errSchemaPath+"/additionalItems",r+=" "+y+" = true; if ("+u+".length > "+o.length+") { for (var "+S+" = "+o.length+"; "+S+" < "+u+".length; "+S+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var E=u+"["+S+"]";m.dataPathArr[C]=S;var $=e.validate(m);m.baseId=P,e.util.varOccurences($,w)<2?r+=" "+e.util.varReplace($,w,E)+" ":r+=" var "+w+" = "+E+"; "+$+" ",p&&(r+=" if (!"+y+") break; "),r+=" } } ",p&&(r+=" if ("+y+") { ",g+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){m.schema=o,m.schemaPath=l,m.errSchemaPath=d,r+=" for (var "+S+" = 0; "+S+" < "+u+".length; "+S+"++) { ",m.errorPath=e.util.getPathExpr(e.errorPath,S,e.opts.jsonPointers,!0);var E=u+"["+S+"]";m.dataPathArr[C]=S;var $=e.validate(m);m.baseId=P,e.util.varOccurences($,w)<2?r+=" "+e.util.varReplace($,w,E)+" ":r+=" var "+w+" = "+E+"; "+$+" ",p&&(r+=" if (!"+y+") break; "),r+=" }"}return p&&(r+=" "+g+" if ("+c+" == errors) {"),r}});var Ma=W((Pb,Po)=>{"use strict";Po.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,P,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o;var m=i=="maximum",g=m?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[g],S=e.opts.$data&&y&&y.$data,C=m?"<":">",w=m?">":"<",P=void 0;if(!(h||typeof o=="number"||o===void 0))throw new Error(i+" must be number");if(!(S||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(g+" must be number or boolean");if(S){var O=e.util.getData(y.$data,s,e.dataPathArr),A="exclusive"+n,_="exclType"+n,R="exclIsNumber"+n,F="op"+n,D="' + "+F+" + '";r+=" var schemaExcl"+n+" = "+O+"; ",O="schemaExcl"+n,r+=" var "+A+"; var "+_+" = typeof "+O+"; if ("+_+" != 'boolean' && "+_+" != 'undefined' && "+_+" != 'number') { ";var P=g,L=L||[];L.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(P||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: '"+g+" should be boolean' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var j=r;r=L.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" "+_+" == 'number' ? ( ("+A+" = "+c+" === undefined || "+O+" "+C+"= "+c+") ? "+u+" "+w+"= "+O+" : "+u+" "+w+" "+c+" ) : ( ("+A+" = "+O+" === true) ? "+u+" "+w+"= "+c+" : "+u+" "+w+" "+c+" ) || "+u+" !== "+u+") { var op"+n+" = "+A+" ? '"+C+"' : '"+C+"='; ",o===void 0&&(P=g,d=e.errSchemaPath+"/"+g,c=O,h=S)}else{var R=typeof y=="number",D=C;if(R&&h){var F="'"+D+"'";r+=" if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" ( "+c+" === undefined || "+y+" "+C+"= "+c+" ? "+u+" "+w+"= "+y+" : "+u+" "+w+" "+c+" ) || "+u+" !== "+u+") { "}else{R&&o===void 0?(A=!0,P=g,d=e.errSchemaPath+"/"+g,c=y,w+="="):(R&&(c=Math[m?"min":"max"](y,o)),y===(R?c:!0)?(A=!0,P=g,d=e.errSchemaPath+"/"+g,w+="="):(A=!1,D+="="));var F="'"+D+"'";r+=" if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" "+u+" "+w+" "+c+" || "+u+" !== "+u+") { "}}P=P||i;var L=L||[];L.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(P||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+F+", limit: "+c+", exclusive: "+A+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be "+D+" ",h?r+="' + "+c:r+=""+c+"'"),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var j=r;return r=L.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+j+"]); ":r+=" validate.errors = ["+j+"]; return false; ":r+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",p&&(r+=" else { "),r}});var Ba=W((Ob,Oo)=>{"use strict";Oo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,g,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;if(h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o,!(h||typeof o=="number"))throw new Error(i+" must be number");var m=i=="maxItems"?">":"<";r+="if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" "+u+".length "+m+" "+c+") { ";var g=i,y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(g||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+c+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have ",i=="maxItems"?r+="more":r+="fewer",r+=" than ",h?r+="' + "+c+" + '":r+=""+o,r+=" items' "),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var S=r;return r=y.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",p&&(r+=" else { "),r}});var Wa=W((Eb,Eo)=>{"use strict";Eo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,g,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;if(h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o,!(h||typeof o=="number"))throw new Error(i+" must be number");var m=i=="maxLength"?">":"<";r+="if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),e.opts.unicode===!1?r+=" "+u+".length ":r+=" ucs2length("+u+") ",r+=" "+m+" "+c+") { ";var g=i,y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(g||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+c+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be ",i=="maxLength"?r+="longer":r+="shorter",r+=" than ",h?r+="' + "+c+" + '":r+=""+o,r+=" characters' "),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var S=r;return r=y.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",p&&(r+=" else { "),r}});var Va=W((Ab,Ao)=>{"use strict";Ao.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,g,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;if(h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o,!(h||typeof o=="number"))throw new Error(i+" must be number");var m=i=="maxProperties"?">":"<";r+="if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'number') || "),r+=" Object.keys("+u+").length "+m+" "+c+") { ";var g=i,y=y||[];y.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(g||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+c+" } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have ",i=="maxProperties"?r+="more":r+="fewer",r+=" than ",h?r+="' + "+c+" + '":r+=""+o,r+=" properties' "),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var S=r;return r=y.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+S+"]); ":r+=" validate.errors = ["+S+"]; return false; ":r+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",p&&(r+=" else { "),r}});var Do=W(($b,$o)=>{"use strict";$o.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;if(h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o,!(h||typeof o=="number"))throw new Error(i+" must be number");r+="var division"+n+";if (",h&&(r+=" "+c+" !== undefined && ( typeof "+c+" != 'number' || "),r+=" (division"+n+" = "+u+" / "+c+", ",e.opts.multipleOfPrecision?r+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":r+=" division"+n+" !== parseInt(division"+n+") ",r+=" ) ",h&&(r+=" ) "),r+=" ) { ";var m=m||[];m.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+c+" } ",e.opts.messages!==!1&&(r+=" , message: 'should be multiple of ",h?r+="' + "+c:r+=""+c+"'"),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var g=r;return r=m.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",p&&(r+=" else { "),r}});var Ro=W((Db,Lo)=>{"use strict";Lo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,c=e.util.copy(e);c.level++;var m="valid"+c.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){c.schema=o,c.schemaPath=l,c.errSchemaPath=d,r+=" var "+h+" = errors; ";var g=e.compositeRule;e.compositeRule=c.compositeRule=!0,c.createErrors=!1;var y;c.opts.allErrors&&(y=c.opts.allErrors,c.opts.allErrors=!1),r+=" "+e.validate(c)+" ",c.createErrors=!0,y&&(c.opts.allErrors=y),e.compositeRule=c.compositeRule=g,r+=" if ("+m+") { ";var S=S||[];S.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var C=r;r=S.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+C+"]); ":r+=" validate.errors = ["+C+"]; return false; ":r+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(r+=" } ")}else r+=" var err = ",e.createErrors!==!1?(r+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(r+=" , message: 'should NOT be valid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(r+=" if (false) { ");return r}});var jo=W((Lb,ko)=>{"use strict";ko.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c="errs__"+n,m=e.util.copy(e),g="";m.level++;var y="valid"+m.level,S=m.baseId,C="prevValid"+n,w="passingSchemas"+n;r+="var "+c+" = errors , "+C+" = false , "+h+" = false , "+w+" = null; ";var P=e.compositeRule;e.compositeRule=m.compositeRule=!0;var O=o;if(O)for(var A,_=-1,R=O.length-1;_<R;)A=O[_+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(m.schema=A,m.schemaPath=l+"["+_+"]",m.errSchemaPath=d+"/"+_,r+=" "+e.validate(m)+" ",m.baseId=S):r+=" var "+y+" = true; ",_&&(r+=" if ("+y+" && "+C+") { "+h+" = false; "+w+" = ["+w+", "+_+"]; } else { ",g+="}"),r+=" if ("+y+") { "+h+" = "+C+" = true; "+w+" = "+_+"; }";return e.compositeRule=m.compositeRule=P,r+=""+g+"if (!"+h+") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { passingSchemas: "+w+" } ",e.opts.messages!==!1&&(r+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),r+="} else { errors = "+c+"; if (vErrors !== null) { if ("+c+") vErrors.length = "+c+"; else vErrors = null; }",e.opts.allErrors&&(r+=" } "),r}});var _o=W((Rb,No)=>{"use strict";No.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h=e.opts.$data&&o&&o.$data,c;h?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",c="schema"+n):c=o;var m=h?"(new RegExp("+c+"))":e.usePattern(o);r+="if ( ",h&&(r+=" ("+c+" !== undefined && typeof "+c+" != 'string') || "),r+=" !"+m+".test("+u+") ) { ";var g=g||[];g.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",h?r+=""+c:r+=""+e.util.toQuotedString(o),r+=" } ",e.opts.messages!==!1&&(r+=` , message: 'should match pattern "`,h?r+="' + "+c+" + '":r+=""+e.util.escapeQuotes(o),r+=`"' `),e.opts.verbose&&(r+=" , schema: ",h?r+="validate.schema"+l:r+=""+e.util.toQuotedString(o),r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var y=r;return r=g.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+="} ",p&&(r+=" else { "),r}});var Mo=W((kb,qo)=>{"use strict";qo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,c=e.util.copy(e),m="";c.level++;var g="valid"+c.level,y="key"+n,S="idx"+n,C=c.dataLevel=e.dataLevel+1,w="data"+C,P="dataProperties"+n,O=Object.keys(o||{}).filter(Q),A=e.schema.patternProperties||{},_=Object.keys(A).filter(Q),R=e.schema.additionalProperties,F=O.length||_.length,D=R===!1,L=typeof R=="object"&&Object.keys(R).length,j=e.opts.removeAdditional,E=D||L||j,$=e.opts.ownProperties,q=e.baseId,ae=e.schema.required;if(ae&&!(e.opts.$data&&ae.$data)&&ae.length<e.opts.loopRequired)var G=e.util.toHash(ae);function Q(et){return et!=="__proto__"}if(r+="var "+h+" = errors;var "+g+" = true;",$&&(r+=" var "+P+" = undefined;"),E){if($?r+=" "+P+" = "+P+" || Object.keys("+u+"); for (var "+S+"=0; "+S+"<"+P+".length; "+S+"++) { var "+y+" = "+P+"["+S+"]; ":r+=" for (var "+y+" in "+u+") { ",F){if(r+=" var isAdditional"+n+" = !(false ",O.length)if(O.length>8)r+=" || validate.schema"+l+".hasOwnProperty("+y+") ";else{var U=O;if(U)for(var B,ge=-1,De=U.length-1;ge<De;)B=U[ge+=1],r+=" || "+y+" == "+e.util.toQuotedString(B)+" "}if(_.length){var ke=_;if(ke)for(var K,we=-1,Fe=ke.length-1;we<Fe;)K=ke[we+=1],r+=" || "+e.usePattern(K)+".test("+y+") "}r+=" ); if (isAdditional"+n+") { "}if(j=="all")r+=" delete "+u+"["+y+"]; ";else{var je=e.errorPath,$t="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),D)if(j)r+=" delete "+u+"["+y+"]; ";else{r+=" "+g+" = false; ";var gt=d;d=e.errSchemaPath+"/additionalProperties";var Ie=Ie||[];Ie.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { additionalProperty: '"+$t+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is an invalid additional property":r+="should NOT have additional properties",r+="' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var be=r;r=Ie.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+be+"]); ":r+=" validate.errors = ["+be+"]; return false; ":r+=" var err = "+be+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=gt,p&&(r+=" break; ")}else if(L)if(j=="failing"){r+=" var "+h+" = errors; ";var Ht=e.compositeRule;e.compositeRule=c.compositeRule=!0,c.schema=R,c.schemaPath=e.schemaPath+".additionalProperties",c.errSchemaPath=e.errSchemaPath+"/additionalProperties",c.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Le=u+"["+y+"]";c.dataPathArr[C]=y;var ee=e.validate(c);c.baseId=q,e.util.varOccurences(ee,w)<2?r+=" "+e.util.varReplace(ee,w,Le)+" ":r+=" var "+w+" = "+Le+"; "+ee+" ",r+=" if (!"+g+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+u+"["+y+"]; } ",e.compositeRule=c.compositeRule=Ht}else{c.schema=R,c.schemaPath=e.schemaPath+".additionalProperties",c.errSchemaPath=e.errSchemaPath+"/additionalProperties",c.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Le=u+"["+y+"]";c.dataPathArr[C]=y;var ee=e.validate(c);c.baseId=q,e.util.varOccurences(ee,w)<2?r+=" "+e.util.varReplace(ee,w,Le)+" ":r+=" var "+w+" = "+Le+"; "+ee+" ",p&&(r+=" if (!"+g+") break; ")}e.errorPath=je}F&&(r+=" } "),r+=" } ",p&&(r+=" if ("+g+") { ",m+="}")}var Dt=e.opts.useDefaults&&!e.compositeRule;if(O.length){var bt=O;if(bt)for(var B,Qt=-1,Zt=bt.length-1;Qt<Zt;){B=bt[Qt+=1];var Ae=o[B];if(e.opts.strictKeywords?typeof Ae=="object"&&Object.keys(Ae).length>0||Ae===!1:e.util.schemaHasRules(Ae,e.RULES.all)){var Ge=e.util.getProperty(B),Le=u+Ge,_e=Dt&&Ae.default!==void 0;c.schema=Ae,c.schemaPath=l+Ge,c.errSchemaPath=d+"/"+e.util.escapeFragment(B),c.errorPath=e.util.getPath(e.errorPath,B,e.opts.jsonPointers),c.dataPathArr[C]=e.util.toQuotedString(B);var ee=e.validate(c);if(c.baseId=q,e.util.varOccurences(ee,w)<2){ee=e.util.varReplace(ee,w,Le);var Ne=Le}else{var Ne=w;r+=" var "+w+" = "+Le+"; "}if(_e)r+=" "+ee+" ";else{if(G&&G[B]){r+=" if ( "+Ne+" === undefined ",$&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(B)+"') "),r+=") { "+g+" = false; ";var je=e.errorPath,gt=d,pt=e.util.escapeQuotes(B);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(je,B,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Ie=Ie||[];Ie.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+pt+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+pt+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var be=r;r=Ie.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+be+"]); ":r+=" validate.errors = ["+be+"]; return false; ":r+=" var err = "+be+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=gt,e.errorPath=je,r+=" } else { "}else p?(r+=" if ( "+Ne+" === undefined ",$&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(B)+"') "),r+=") { "+g+" = true; } else { "):(r+=" if ("+Ne+" !== undefined ",$&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(B)+"') "),r+=" ) { ");r+=" "+ee+" } "}}p&&(r+=" if ("+g+") { ",m+="}")}}if(_.length){var Me=_;if(Me)for(var K,di=-1,ma=Me.length-1;di<ma;){K=Me[di+=1];var Ae=A[K];if(e.opts.strictKeywords?typeof Ae=="object"&&Object.keys(Ae).length>0||Ae===!1:e.util.schemaHasRules(Ae,e.RULES.all)){c.schema=Ae,c.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(K),c.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(K),$?r+=" "+P+" = "+P+" || Object.keys("+u+"); for (var "+S+"=0; "+S+"<"+P+".length; "+S+"++) { var "+y+" = "+P+"["+S+"]; ":r+=" for (var "+y+" in "+u+") { ",r+=" if ("+e.usePattern(K)+".test("+y+")) { ",c.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Le=u+"["+y+"]";c.dataPathArr[C]=y;var ee=e.validate(c);c.baseId=q,e.util.varOccurences(ee,w)<2?r+=" "+e.util.varReplace(ee,w,Le)+" ":r+=" var "+w+" = "+Le+"; "+ee+" ",p&&(r+=" if (!"+g+") break; "),r+=" } ",p&&(r+=" else "+g+" = true; "),r+=" } ",p&&(r+=" if ("+g+") { ",m+="}")}}}return p&&(r+=" "+m+" if ("+h+" == errors) {"),r}});var Wo=W((jb,Bo)=>{"use strict";Bo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="errs__"+n,c=e.util.copy(e),m="";c.level++;var g="valid"+c.level;if(r+="var "+h+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){c.schema=o,c.schemaPath=l,c.errSchemaPath=d;var y="key"+n,S="idx"+n,C="i"+n,w="' + "+y+" + '",P=c.dataLevel=e.dataLevel+1,O="data"+P,A="dataProperties"+n,_=e.opts.ownProperties,R=e.baseId;_&&(r+=" var "+A+" = undefined; "),_?r+=" "+A+" = "+A+" || Object.keys("+u+"); for (var "+S+"=0; "+S+"<"+A+".length; "+S+"++) { var "+y+" = "+A+"["+S+"]; ":r+=" for (var "+y+" in "+u+") { ",r+=" var startErrs"+n+" = errors; ";var F=y,D=e.compositeRule;e.compositeRule=c.compositeRule=!0;var L=e.validate(c);c.baseId=R,e.util.varOccurences(L,O)<2?r+=" "+e.util.varReplace(L,O,F)+" ":r+=" var "+O+" = "+F+"; "+L+" ",e.compositeRule=c.compositeRule=D,r+=" if (!"+g+") { for (var "+C+"=startErrs"+n+"; "+C+"<errors; "+C+"++) { vErrors["+C+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(r+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { propertyName: '"+w+"' } ",e.opts.messages!==!1&&(r+=" , message: 'property name \\'"+w+"\\' is invalid' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; "),p&&(r+=" break; "),r+=" } }"}return p&&(r+=" "+m+" if ("+h+" == errors) {"),r}});var zo=W((Nb,Vo)=>{"use strict";Vo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c=e.opts.$data&&o&&o.$data,m;c?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o;var g="schema"+n;if(!c)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],S=o;if(S)for(var C,w=-1,P=S.length-1;w<P;){C=S[w+=1];var O=e.schema.properties[C];O&&(e.opts.strictKeywords?typeof O=="object"&&Object.keys(O).length>0||O===!1:e.util.schemaHasRules(O,e.RULES.all))||(y[y.length]=C)}}else var y=o;if(c||y.length){var A=e.errorPath,_=c||y.length>=e.opts.loopRequired,R=e.opts.ownProperties;if(p)if(r+=" var missing"+n+"; ",_){c||(r+=" var "+g+" = validate.schema"+l+"; ");var F="i"+n,D="schema"+n+"["+F+"]",L="' + "+D+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,D,e.opts.jsonPointers)),r+=" var "+h+" = true; ",c&&(r+=" if (schema"+n+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+n+")) "+h+" = false; else {"),r+=" for (var "+F+" = 0; "+F+" < "+g+".length; "+F+"++) { "+h+" = "+u+"["+g+"["+F+"]] !== undefined ",R&&(r+=" && Object.prototype.hasOwnProperty.call("+u+", "+g+"["+F+"]) "),r+="; if (!"+h+") break; } ",c&&(r+=" } "),r+=" if (!"+h+") { ";var j=j||[];j.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+L+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var E=r;r=j.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else{r+=" if ( ";var $=y;if($)for(var q,F=-1,ae=$.length-1;F<ae;){q=$[F+=1],F&&(r+=" || ");var G=e.util.getProperty(q),Q=u+G;r+=" ( ( "+Q+" === undefined ",R&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(q)+"') "),r+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?q:G)+") ) "}r+=") { ";var D="missing"+n,L="' + "+D+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(A,D,!0):A+" + "+D);var j=j||[];j.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+L+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var E=r;r=j.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+E+"]); ":r+=" validate.errors = ["+E+"]; return false; ":r+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { "}else if(_){c||(r+=" var "+g+" = validate.schema"+l+"; ");var F="i"+n,D="schema"+n+"["+F+"]",L="' + "+D+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,D,e.opts.jsonPointers)),c&&(r+=" if ("+g+" && !Array.isArray("+g+")) { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+L+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+g+" !== undefined) { "),r+=" for (var "+F+" = 0; "+F+" < "+g+".length; "+F+"++) { if ("+u+"["+g+"["+F+"]] === undefined ",R&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", "+g+"["+F+"]) "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+L+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",c&&(r+=" } ")}else{var U=y;if(U)for(var q,B=-1,ge=U.length-1;B<ge;){q=U[B+=1];var G=e.util.getProperty(q),L=e.util.escapeQuotes(q),Q=u+G;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(A,q,e.opts.jsonPointers)),r+=" if ( "+Q+" === undefined ",R&&(r+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(q)+"') "),r+=") { var err = ",e.createErrors!==!1?(r+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+L+"' } ",e.opts.messages!==!1&&(r+=" , message: '",e.opts._errorDataPathProperty?r+="is a required property":r+="should have required property \\'"+L+"\\'",r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=A}else p&&(r+=" if (true) {");return r}});var Go=W((_b,Uo)=>{"use strict";Uo.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u="data"+(s||""),h="valid"+n,c=e.opts.$data&&o&&o.$data,m;if(c?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",m="schema"+n):m=o,(o||c)&&e.opts.uniqueItems!==!1){c&&(r+=" var "+h+"; if ("+m+" === false || "+m+" === undefined) "+h+" = true; else if (typeof "+m+" != 'boolean') "+h+" = false; else { "),r+=" var i = "+u+".length , "+h+" = true , j; if (i > 1) { ";var g=e.schema.items&&e.schema.items.type,y=Array.isArray(g);if(!g||g=="object"||g=="array"||y&&(g.indexOf("object")>=0||g.indexOf("array")>=0))r+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+h+" = false; break outer; } } } ";else{r+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[i]; ";var S="checkDataType"+(y?"s":"");r+=" if ("+e.util[S](g,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(r+=` if (typeof item == 'string') item = '"' + item; `),r+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}r+=" } ",c&&(r+=" } "),r+=" if (!"+h+") { ";var C=C||[];C.push(r),r="",e.createErrors!==!1?(r+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(r+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(r+=" , schema: ",c?r+="validate.schema"+l:r+=""+o,r+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var w=r;r=C.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+w+"]); ":r+=" validate.errors = ["+w+"]; return false; ":r+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ",p&&(r+=" else { ")}else p&&(r+=" if (true) { ");return r}});var Qo=W((qb,Ho)=>{"use strict";Ho.exports={$ref:no(),allOf:oo(),anyOf:co(),$comment:uo(),const:fo(),contains:yo(),dependencies:bo(),enum:So(),format:Io(),if:To(),items:Fo(),maximum:Ma(),minimum:Ma(),maxItems:Ba(),minItems:Ba(),maxLength:Wa(),minLength:Wa(),maxProperties:Va(),minProperties:Va(),multipleOf:Do(),not:Ro(),oneOf:jo(),pattern:_o(),properties:Mo(),propertyNames:Wo(),required:zo(),uniqueItems:Go(),validate:_a()}});var Yo=W((Mb,Jo)=>{"use strict";var Zo=Qo(),za=er().toHash;Jo.exports=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"]}],i=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],r=["number","integer","string","array","object","boolean","null"];return e.all=za(i),e.types=za(r),e.forEach(function(n){n.rules=n.rules.map(function(s){var o;if(typeof s=="object"){var l=Object.keys(s)[0];o=s[l],s=l,o.forEach(function(p){i.push(p),e.all[p]=!0})}i.push(s);var d=e.all[s]={keyword:s,code:Zo[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:Zo.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=za(i.concat(a)),e.custom={},e}});var el=W((Bb,Xo)=>{"use strict";var Ko=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Xo.exports=function(t,e){for(var i=0;i<e.length;i++){t=JSON.parse(JSON.stringify(t));var a=e[i].split("/"),r=t,n;for(n=1;n<a.length;n++)r=r[a[n]];for(n=0;n<Ko.length;n++){var s=Ko[n],o=r[s];o&&(r[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var il=W((Wb,rl)=>{"use strict";var ou=Ci().MissingRef;rl.exports=tl;function tl(t,e,i){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(i=e,e=void 0);var r=n(t).then(function(){var o=a._addSchema(t,void 0,e);return o.validate||s(o)});return i&&r.then(function(o){i(null,o)},i),r;function n(o){var l=o.$schema;return l&&!a.getSchema(l)?tl.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof ou)return l(d);throw d}function l(d){var p=d.missingSchema;if(c(p))throw new Error("Schema "+p+" is loaded but "+d.missingRef+" cannot be resolved");var u=a._loadingSchemas[p];return u||(u=a._loadingSchemas[p]=a._opts.loadSchema(p),u.then(h,h)),u.then(function(m){if(!c(p))return n(m).then(function(){c(p)||a.addSchema(m,p,void 0,e)})}).then(function(){return s(o)});function h(){delete a._loadingSchemas[p]}function c(m){return a._refs[m]||a._schemas[m]}}}}});var nl=W((Vb,al)=>{"use strict";al.exports=function(e,i,a){var r=" ",n=e.level,s=e.dataLevel,o=e.schema[i],l=e.schemaPath+e.util.getProperty(i),d=e.errSchemaPath+"/"+i,p=!e.opts.allErrors,u,h="data"+(s||""),c="valid"+n,m="errs__"+n,g=e.opts.$data&&o&&o.$data,y;g?(r+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",y="schema"+n):y=o;var S=this,C="definition"+n,w=S.definition,P="",O,A,_,R,F;if(g&&w.$data){F="keywordValidate"+n;var D=w.validateSchema;r+=" var "+C+" = RULES.custom['"+i+"'].definition; var "+F+" = "+C+".validate;"}else{if(R=e.useCustomRule(S,o,e.schema,e),!R)return;y="validate.schema"+l,F=R.code,O=w.compile,A=w.inline,_=w.macro}var L=F+".errors",j="i"+n,E="ruleErr"+n,$=w.async;if($&&!e.async)throw new Error("async keyword in sync schema");if(A||_||(r+=""+L+" = null;"),r+="var "+m+" = errors;var "+c+";",g&&w.$data&&(P+="}",r+=" if ("+y+" === undefined) { "+c+" = true; } else { ",D&&(P+="}",r+=" "+c+" = "+C+".validateSchema("+y+"); if ("+c+") { ")),A)w.statements?r+=" "+R.validate+" ":r+=" "+c+" = "+R.validate+"; ";else if(_){var q=e.util.copy(e),P="";q.level++;var ae="valid"+q.level;q.schema=R.validate,q.schemaPath="";var G=e.compositeRule;e.compositeRule=q.compositeRule=!0;var Q=e.validate(q).replace(/validate\.schema/g,F);e.compositeRule=q.compositeRule=G,r+=" "+Q}else{var U=U||[];U.push(r),r="",r+=" "+F+".call( ",e.opts.passContext?r+="this":r+="self",O||w.schema===!1?r+=" , "+h+" ":r+=" , "+y+" , "+h+" , validate.schema"+e.schemaPath+" ",r+=" , (dataPath || '')",e.errorPath!='""'&&(r+=" + "+e.errorPath);var B=s?"data"+(s-1||""):"parentData",ge=s?e.dataPathArr[s]:"parentDataProperty";r+=" , "+B+" , "+ge+" , rootData ) ";var De=r;r=U.pop(),w.errors===!1?(r+=" "+c+" = ",$&&(r+="await "),r+=""+De+"; "):$?(L="customErrors"+n,r+=" var "+L+" = null; try { "+c+" = await "+De+"; } catch (e) { "+c+" = false; if (e instanceof ValidationError) "+L+" = e.errors; else throw e; } "):r+=" "+L+" = null; "+c+" = "+De+"; "}if(w.modifying&&(r+=" if ("+B+") "+h+" = "+B+"["+ge+"];"),r+=""+P,w.valid)p&&(r+=" if (true) { ");else{r+=" if ( ",w.valid===void 0?(r+=" !",_?r+=""+ae:r+=""+c):r+=" "+!w.valid+" ",r+=") { ",u=S.keyword;var U=U||[];U.push(r),r="";var U=U||[];U.push(r),r="",e.createErrors!==!1?(r+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+S.keyword+"' } ",e.opts.messages!==!1&&(r+=` , message: 'should pass "`+S.keyword+`" keyword validation' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";var ke=r;r=U.pop(),!e.compositeRule&&p?e.async?r+=" throw new ValidationError(["+ke+"]); ":r+=" validate.errors = ["+ke+"]; return false; ":r+=" var err = "+ke+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var K=r;r=U.pop(),A?w.errors?w.errors!="full"&&(r+=" for (var "+j+"="+m+"; "+j+"<errors; "+j+"++) { var "+E+" = vErrors["+j+"]; if ("+E+".dataPath === undefined) "+E+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+E+".schemaPath === undefined) { "+E+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(r+=" "+E+".schema = "+y+"; "+E+".data = "+h+"; "),r+=" } "):w.errors===!1?r+=" "+K+" ":(r+=" if ("+m+" == errors) { "+K+" } else { for (var "+j+"="+m+"; "+j+"<errors; "+j+"++) { var "+E+" = vErrors["+j+"]; if ("+E+".dataPath === undefined) "+E+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+E+".schemaPath === undefined) { "+E+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(r+=" "+E+".schema = "+y+"; "+E+".data = "+h+"; "),r+=" } } "):_?(r+=" var err = ",e.createErrors!==!1?(r+=" { keyword: '"+(u||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+S.keyword+"' } ",e.opts.messages!==!1&&(r+=` , message: 'should pass "`+S.keyword+`" keyword validation' `),e.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ",r+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; ")):w.errors===!1?r+=" "+K+" ":(r+=" if (Array.isArray("+L+")) { if (vErrors === null) vErrors = "+L+"; else vErrors = vErrors.concat("+L+"); errors = vErrors.length; for (var "+j+"="+m+"; "+j+"<errors; "+j+"++) { var "+E+" = vErrors["+j+"]; if ("+E+".dataPath === undefined) "+E+".dataPath = (dataPath || '') + "+e.errorPath+"; "+E+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(r+=" "+E+".schema = "+y+"; "+E+".data = "+h+"; "),r+=" } } else { "+K+" } "),r+=" } ",p&&(r+=" else { ")}return r}});var Ua=W((zb,lu)=>{lu.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{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:[]}},type:["object","boolean"],properties:{$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:"#"}},default:!0}});var ll=W((Ub,ol)=>{"use strict";var sl=Ua();ol.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:sl.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:sl.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"}]}}}});var cl=W((Gb,dl)=>{"use strict";var du=/^[a-z_$][a-z0-9_$-]*$/i,cu=nl(),pu=ll();dl.exports={add:uu,get:hu,remove:fu,validate:Ga};function uu(t,e){var i=this.RULES;if(i.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!du.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var r=0;r<a.length;r++)s(t,a[r],e);else s(t,a,e);var n=e.metaSchema;n&&(e.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(n,!0))}i.keywords[t]=i.all[t]=!0;function s(o,l,d){for(var p,u=0;u<i.length;u++){var h=i[u];if(h.type==l){p=h;break}}p||(p={type:l,rules:[]},i.push(p));var c={keyword:o,definition:d,custom:!0,code:cu,implements:d.implements};p.rules.push(c),i.custom[o]=c}return this}function hu(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function fu(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var i=0;i<e.length;i++)for(var a=e[i].rules,r=0;r<a.length;r++)if(a[r].keyword==t){a.splice(r,1);break}return this}function Ga(t,e){Ga.errors=null;var i=this._validateKeyword=this._validateKeyword||this.compile(pu,!0);if(i(t))return!0;if(Ga.errors=i.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(i.errors));return!1}});var pl=W((Hb,mu)=>{mu.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var wl=W((Qb,Sl)=>{"use strict";var hl=Vs(),tr=Ti(),yu=Us(),fl=$a(),gu=Na(),bu=io(),vu=Yo(),ml=el(),yl=er();Sl.exports=Se;Se.prototype.validate=wu;Se.prototype.compile=Iu;Se.prototype.addSchema=xu;Se.prototype.addMetaSchema=Tu;Se.prototype.validateSchema=Cu;Se.prototype.getSchema=Pu;Se.prototype.removeSchema=Eu;Se.prototype.addFormat=Nu;Se.prototype.errorsText=ju;Se.prototype._addSchema=Au;Se.prototype._compile=$u;Se.prototype.compileAsync=il();var Li=cl();Se.prototype.addKeyword=Li.add;Se.prototype.getKeyword=Li.get;Se.prototype.removeKeyword=Li.remove;Se.prototype.validateKeyword=Li.validate;var gl=Ci();Se.ValidationError=gl.Validation;Se.MissingRefError=gl.MissingRef;Se.$dataMetaSchema=ml;var Di="http://json-schema.org/draft-07/schema",ul=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Su=["/properties"];function Se(t){if(!(this instanceof Se))return new Se(t);t=this._opts=yl.copy(t)||{},Vu(this),this._schemas={},this._refs={},this._fragments={},this._formats=bu(t.format),this._cache=t.cache||new yu,this._loadingSchemas={},this._compilations=[],this.RULES=vu(),this._getId=Du(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=gu),this._metaOpts=Wu(this),t.formats&&Mu(this),t.keywords&&Bu(this),_u(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),qu(this)}function wu(t,e){var i;if(typeof t=="string"){if(i=this.getSchema(t),!i)throw new Error('no schema with key or ref "'+t+'"')}else{var a=this._addSchema(t);i=a.validate||this._compile(a)}var r=i(e);return i.$async!==!0&&(this.errors=i.errors),r}function Iu(t,e){var i=this._addSchema(t,void 0,e);return i.validate||this._compile(i)}function xu(t,e,i,a){if(Array.isArray(t)){for(var r=0;r<t.length;r++)this.addSchema(t[r],void 0,i,a);return this}var n=this._getId(t);if(n!==void 0&&typeof n!="string")throw new Error("schema id must be string");return e=tr.normalizeId(e||n),vl(this,e),this._schemas[e]=this._addSchema(t,i,a,!0),this}function Tu(t,e,i){return this.addSchema(t,e,i,!0),this}function Cu(t,e){var i=t.$schema;if(i!==void 0&&typeof i!="string")throw new Error("$schema must be a string");if(i=i||this._opts.defaultMeta||Fu(this),!i)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(i,t);if(!a&&e){var r="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(r);else throw new Error(r)}return a}function Fu(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(Di)?Di:void 0,t._opts.defaultMeta}function Pu(t){var e=bl(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return Ou(this,t)}}function Ou(t,e){var i=tr.schema.call(t,{schema:{}},e);if(i){var a=i.schema,r=i.root,n=i.baseId,s=hl.call(t,a,r,void 0,n);return t._fragments[e]=new fl({ref:e,fragment:!0,schema:a,root:r,baseId:n,validate:s}),s}}function bl(t,e){return e=tr.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function Eu(t){if(t instanceof RegExp)return $i(this,this._schemas,t),$i(this,this._refs,t),this;switch(typeof t){case"undefined":return $i(this,this._schemas),$i(this,this._refs),this._cache.clear(),this;case"string":var e=bl(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var i=this._opts.serialize,a=i?i(t):t;this._cache.del(a);var r=this._getId(t);r&&(r=tr.normalizeId(r),delete this._schemas[r],delete this._refs[r])}return this}function $i(t,e,i){for(var a in e){var r=e[a];!r.meta&&(!i||i.test(a))&&(t._cache.del(r.cacheKey),delete e[a])}}function Au(t,e,i,a){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var r=this._opts.serialize,n=r?r(t):t,s=this._cache.get(n);if(s)return s;a=a||this._opts.addUsedSchema!==!1;var o=tr.normalizeId(this._getId(t));o&&a&&vl(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==tr.normalizeId(t.$schema))&&this.validateSchema(t,!0);var p=tr.ids.call(this,t),u=new fl({id:o,schema:t,localRefs:p,cacheKey:n,meta:i});return o[0]!="#"&&a&&(this._refs[o]=u),this._cache.put(n,u),l&&d&&this.validateSchema(t,!0),u}function $u(t,e){if(t.compiling)return t.validate=r,r.schema=t.schema,r.errors=null,r.root=e||r,t.schema.$async===!0&&(r.$async=!0),r;t.compiling=!0;var i;t.meta&&(i=this._opts,this._opts=this._metaOpts);var a;try{a=hl.call(this,t.schema,e,t.localRefs)}catch(n){throw delete t.validate,n}finally{t.compiling=!1,t.meta&&(this._opts=i)}return t.validate=a,t.refs=a.refs,t.refVal=a.refVal,t.root=a.root,a;function r(){var n=t.validate,s=n.apply(this,arguments);return r.errors=n.errors,s}}function Du(t){switch(t.schemaId){case"auto":return ku;case"id":return Lu;default:return Ru}}function Lu(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function Ru(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function ku(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function ju(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var i=e.separator===void 0?", ":e.separator,a=e.dataVar===void 0?"data":e.dataVar,r="",n=0;n<t.length;n++){var s=t[n];s&&(r+=a+s.dataPath+" "+s.message+i)}return r.slice(0,-i.length)}function Nu(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function _u(t){var e;if(t._opts.$data&&(e=pl(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var i=Ua();t._opts.$data&&(i=ml(i,Su)),t.addMetaSchema(i,Di,!0),t._refs["http://json-schema.org/schema"]=Di}}function qu(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var i in e)t.addSchema(e[i],i)}function Mu(t){for(var e in t._opts.formats){var i=t._opts.formats[e];t.addFormat(e,i)}}function Bu(t){for(var e in t._opts.keywords){var i=t._opts.keywords[e];t.addKeyword(e,i)}}function vl(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function Wu(t){for(var e=yl.copy(t._opts),i=0;i<ul.length;i++)delete e[ul[i]];return e}function Vu(t){var e=t._opts.logger;if(e===!1)t.logger={log:Ha,warn:Ha,error:Ha};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function Ha(){}});var Tl=W((Zb,Za)=>{function zu(t,e){var i=e&&e.cache?e.cache:Ju,a=e&&e.serializer?e.serializer:Zu,r=e&&e.strategy?e.strategy:Gu;return r(t,{cache:i,serializer:a})}function Uu(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Il(t,e,i,a){var r=Uu(a)?a:i(a),n=e.get(r);return typeof n>"u"&&(n=t.call(this,a),e.set(r,n)),n}function xl(t,e,i){var a=Array.prototype.slice.call(arguments,3),r=i(a),n=e.get(r);return typeof n>"u"&&(n=t.apply(this,a),e.set(r,n)),n}function Qa(t,e,i,a,r){return i.bind(e,t,a,r)}function Gu(t,e){var i=t.length===1?Il:xl;return Qa(t,this,i,e.cache.create(),e.serializer)}function Hu(t,e){var i=xl;return Qa(t,this,i,e.cache.create(),e.serializer)}function Qu(t,e){var i=Il;return Qa(t,this,i,e.cache.create(),e.serializer)}function Zu(){return JSON.stringify(arguments)}function Ri(){this.cache=Object.create(null)}Ri.prototype.has=function(t){return t in this.cache};Ri.prototype.get=function(t){return this.cache[t]};Ri.prototype.set=function(t,e){this.cache[t]=e};var Ju={create:function(){return new Ri}};Za.exports=zu;Za.exports.strategies={variadic:Hu,monadic:Qu}});function fs(t,e,i){t=+t,e=+e,i=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+i;for(var a=-1,r=Math.max(0,Math.ceil((e-t)/i))|0,n=new Array(r);++a<r;)n[a]=t+a*i;return n}function zr(t,e){let i,a;if(e===void 0)for(let r of t)r!=null&&(i===void 0?r>=r&&(i=a=r):(i>r&&(i=r),a<r&&(a=r)));else{let r=-1;for(let n of t)(n=e(n,++r,t))!=null&&(i===void 0?n>=n&&(i=a=n):(i>n&&(i=n),a<n&&(a=n)))}return[i,a]}var mi=class extends Map{constructor(e,i=dp){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),e!=null)for(let[a,r]of e)this.set(a,r)}get(e){return super.get(ms(this,e))}has(e){return super.has(ms(this,e))}set(e,i){return super.set(op(this,e),i)}delete(e){return super.delete(lp(this,e))}};function ms({_intern:t,_key:e},i){let a=e(i);return t.has(a)?t.get(a):i}function op({_intern:t,_key:e},i){let a=e(i);return t.has(a)?t.get(a):(t.set(a,i),i)}function lp({_intern:t,_key:e},i){let a=e(i);return t.has(a)&&(i=t.get(a),t.delete(a)),i}function dp(t){return t!==null&&typeof t=="object"?t.valueOf():t}function xa(t){return t}function cp(t,e,...i){return pp(t,xa,e,i)}function pp(t,e,i,a){return function r(n,s){if(s>=a.length)return i(n);let o=new mi,l=a[s++],d=-1;for(let p of n){let u=l(p,++d,n),h=o.get(u);h?h.push(p):o.set(u,[p])}for(let[p,u]of o)o.set(p,r(u,s));return e(o)}(t,0)}function ys(t,e){let i;if(e===void 0)for(let a of t)a!=null&&(i<a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let r of t)(r=e(r,++a,t))!=null&&(i<r||i===void 0&&r>=r)&&(i=r)}return i}function gs(t,e){let i;if(e===void 0)for(let a of t)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let r of t)(r=e(r,++a,t))!=null&&(i>r||i===void 0&&r>=r)&&(i=r)}return i}function bs(t,e){let i=0,a=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(++i,a+=r);else{let r=-1;for(let n of t)(n=e(n,++r,t))!=null&&(n=+n)>=n&&(++i,a+=n)}if(i)return a/i}function vs(t,e){let i=0;if(e===void 0)for(let a of t)(a=+a)&&(i+=a);else{let a=-1;for(let r of t)(r=+e(r,++a,t))&&(i+=r)}return i}var ld=os(wl(),1);var pd=os(Tl(),1);var Ot="24.4.0",Rn="arcgis_charts_pie_from_fields_name",hd="arcgis_charts_pie_from_fields_value",ah="arcgis_charts_bar_line_from_fields_name",nh="arcgis_charts_bar_line_from_fields_value",Ct={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"},Ft=class extends Error{},pn=class extends Ft{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},un=class extends Ft{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},hn=class extends Ft{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Wt=class extends Ft{},Ji=class extends Ft{constructor(e){super(`Invalid unit ${e}`)}},Pe=class extends Ft{},ft=class extends Ft{constructor(){super("Zone is an abstract class")}},k="numeric",ot="short",Ue="long",Yi={year:k,month:k,day:k},fd={year:k,month:ot,day:k},sh={year:k,month:ot,day:k,weekday:ot},md={year:k,month:Ue,day:k},yd={year:k,month:Ue,day:k,weekday:Ue},gd={hour:k,minute:k},bd={hour:k,minute:k,second:k},vd={hour:k,minute:k,second:k,timeZoneName:ot},Sd={hour:k,minute:k,second:k,timeZoneName:Ue},wd={hour:k,minute:k,hourCycle:"h23"},Id={hour:k,minute:k,second:k,hourCycle:"h23"},xd={hour:k,minute:k,second:k,hourCycle:"h23",timeZoneName:ot},Td={hour:k,minute:k,second:k,hourCycle:"h23",timeZoneName:Ue},Cd={year:k,month:k,day:k,hour:k,minute:k},Fd={year:k,month:k,day:k,hour:k,minute:k,second:k},Pd={year:k,month:ot,day:k,hour:k,minute:k},Od={year:k,month:ot,day:k,hour:k,minute:k,second:k},oh={year:k,month:ot,day:k,weekday:ot,hour:k,minute:k},Ed={year:k,month:Ue,day:k,hour:k,minute:k,timeZoneName:ot},Ad={year:k,month:Ue,day:k,hour:k,minute:k,second:k,timeZoneName:ot},$d={year:k,month:Ue,day:k,weekday:Ue,hour:k,minute:k,timeZoneName:Ue},Dd={year:k,month:Ue,day:k,weekday:Ue,hour:k,minute:k,second:k,timeZoneName:Ue},sr=class{get type(){throw new ft}get name(){throw new ft}get ianaName(){return this.name}get isUniversal(){throw new ft}offsetName(e,i){throw new ft}formatOffset(e,i){throw new ft}offset(e){throw new ft}equals(e){throw new ft}get isValid(){throw new ft}},Ja=null,Ki=class t extends sr{static get instance(){return Ja===null&&(Ja=new t),Ja}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:a}){return Vd(e,i,a)}formatOffset(e,i){return Yr(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},fn=new Map;function lh(t){let e=fn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),fn.set(t,e)),e}var dh={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ch(t,e){let i=t.format(e).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,r,n,s,o,l,d,p]=a;return[s,r,n,o,l,d,p]}function ph(t,e){let i=t.formatToParts(e),a=[];for(let r=0;r<i.length;r++){let{type:n,value:s}=i[r],o=dh[n];n==="era"?a[o]=s:V(o)||(a[o]=parseInt(s,10))}return a}var Ya=new Map,zt=class t extends sr{static create(e){let i=Ya.get(e);return i===void 0&&Ya.set(e,i=new t(e)),i}static resetCache(){Ya.clear(),fn.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:a}){return Vd(e,i,a,this.name)}formatOffset(e,i){return Yr(this.offset(e),i)}offset(e){if(!this.valid)return NaN;let i=new Date(e);if(isNaN(i))return NaN;let a=lh(this.name),[r,n,s,o,l,d,p]=a.formatToParts?ph(a,i):ch(a,i);o==="BC"&&(r=-Math.abs(r)+1);let u=la({year:r,month:n,day:s,hour:l===24?0:l,minute:d,second:p,millisecond:0}),h=+i,c=h%1e3;return h-=c>=0?c:1e3+c,(u-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},Cl={};function uh(t,e={}){let i=JSON.stringify([t,e]),a=Cl[i];return a||(a=new Intl.ListFormat(t,e),Cl[i]=a),a}var mn=new Map;function yn(t,e={}){let i=JSON.stringify([t,e]),a=mn.get(i);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),mn.set(i,a)),a}var gn=new Map;function hh(t,e={}){let i=JSON.stringify([t,e]),a=gn.get(i);return a===void 0&&(a=new Intl.NumberFormat(t,e),gn.set(i,a)),a}var bn=new Map;function fh(t,e={}){let{base:i,...a}=e,r=JSON.stringify([t,a]),n=bn.get(r);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),bn.set(r,n)),n}var zi=null;function mh(){return zi||(zi=new Intl.DateTimeFormat().resolvedOptions().locale,zi)}var vn=new Map;function Ld(t){let e=vn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),vn.set(t,e)),e}var Sn=new Map;function yh(t){let e=Sn.get(t);if(!e){let i=new Intl.Locale(t);e="getWeekInfo"in i?i.getWeekInfo():i.weekInfo,"minimalDays"in e||(e={...Rd,...e}),Sn.set(t,e)}return e}function gh(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let i=t.indexOf("-u-");if(i===-1)return[t];{let a,r;try{a=yn(t).resolvedOptions(),r=t}catch{let o=t.substring(0,i);a=yn(o).resolvedOptions(),r=o}let{numberingSystem:n,calendar:s}=a;return[r,n,s]}}function bh(t,e,i){return(i||e)&&(t.includes("-u-")||(t+="-u"),i&&(t+=`-ca-${i}`),e&&(t+=`-nu-${e}`)),t}function vh(t){let e=[];for(let i=1;i<=12;i++){let a=ue.utc(2009,i,1);e.push(t(a))}return e}function Sh(t){let e=[];for(let i=1;i<=7;i++){let a=ue.utc(2016,11,13+i);e.push(t(a))}return e}function ki(t,e,i,a){let r=t.listingMode();return r==="error"?null:r==="en"?i(e):a(e)}function wh(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Ld(t.locale).numberingSystem==="latn"}var wn=class{constructor(e,i,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:r,floor:n,...s}=a;if(!i||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=hh(e,o)}}format(e){if(this.inf){let i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{let i=this.floor?Math.floor(e):qn(e,3);return Ce(i,this.padTo)}}},In=class{constructor(e,i,a){this.opts=a,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&zt.create(o).valid?(r=o,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||r,this.dtf=yn(i,n)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(i=>{if(i.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:a}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},xn=class{constructor(e,i,a){this.opts={style:"long",...a},!i&&Bd()&&(this.rtf=fh(e,a))}format(e,i){return this.rtf?this.rtf.format(e,i):Wh(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}},Rd={firstDay:1,minimalDays:4,weekend:[6,7]},oe=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,i,a,r,n=!1){let s=e||pe.defaultLocale,o=s||(n?"en-US":mh()),l=i||pe.defaultNumberingSystem,d=a||pe.defaultOutputCalendar,p=Fn(r)||pe.defaultWeekSettings;return new t(o,l,d,p,s)}static resetCache(){zi=null,mn.clear(),gn.clear(),bn.clear(),vn.clear(),Sn.clear()}static fromObject({locale:e,numberingSystem:i,outputCalendar:a,weekSettings:r}={}){return t.create(e,i,a,r)}constructor(e,i,a,r,n){let[s,o,l]=gh(e);this.locale=s,this.numberingSystem=i||o||null,this.outputCalendar=a||l||null,this.weekSettings=r,this.intl=bh(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=wh(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Fn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,i=!1){return ki(this,e,Gd,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");i&=!a;let r=i?{month:e,day:"numeric"}:{month:e},n=i?"format":"standalone";if(!this.monthsCache[n][e]){let s=a?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[n][e]=vh(s)}return this.monthsCache[n][e]})}weekdays(e,i=!1){return ki(this,e,Zd,()=>{let a=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=i?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=Sh(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return ki(this,void 0,()=>Jd,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ue.utc(2016,11,13,9),ue.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ki(this,e,Yd,()=>{let i={era:e};return this.eraCache[e]||(this.eraCache[e]=[ue.utc(-40,1,1),ue.utc(2017,1,1)].map(a=>this.extract(a,i,"era"))),this.eraCache[e]})}extract(e,i,a){let r=this.dtFormatter(e,i),n=r.formatToParts(),s=n.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(e={}){return new wn(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new In(e,this.intl,i)}relFormatter(e={}){return new xn(this.intl,this.isEnglish(),e)}listFormatter(e={}){return uh(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Ld(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Wd()?yh(this.locale):Rd}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Ka=null,Xe=class t extends sr{static get utcInstance(){return Ka===null&&(Ka=new t(0)),Ka}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new t(da(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Yr(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Yr(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return Yr(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},Tn=class extends sr{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Bt(t,e){if(V(t)||t===null)return e;if(t instanceof sr)return t;if(Ph(t)){let i=t.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Ki.instance:i==="utc"||i==="gmt"?Xe.utcInstance:Xe.parseSpecifier(i)||zt.create(t)}else return Vt(t)?Xe.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Tn(t)}var kn={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Fl={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ih=kn.hanidec.replace(/[\[|\]]/g,"").split("");function xh(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let i=0;i<t.length;i++){let a=t.charCodeAt(i);if(t[i].search(kn.hanidec)!==-1)e+=Ih.indexOf(t[i]);else for(let r in Fl){let[n,s]=Fl[r];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var Cn=new Map;function Th(){Cn.clear()}function at({numberingSystem:t},e=""){let i=t||"latn",a=Cn.get(i);a===void 0&&(a=new Map,Cn.set(i,a));let r=a.get(e);return r===void 0&&(r=new RegExp(`${kn[i]}${e}`),a.set(e,r)),r}var Pl=()=>Date.now(),Ol="system",El=null,Al=null,$l=null,Dl=60,Ll,Rl=null,pe=class{static get now(){return Pl}static set now(e){Pl=e}static set defaultZone(e){Ol=e}static get defaultZone(){return Bt(Ol,Ki.instance)}static get defaultLocale(){return El}static set defaultLocale(e){El=e}static get defaultNumberingSystem(){return Al}static set defaultNumberingSystem(e){Al=e}static get defaultOutputCalendar(){return $l}static set defaultOutputCalendar(e){$l=e}static get defaultWeekSettings(){return Rl}static set defaultWeekSettings(e){Rl=Fn(e)}static get twoDigitCutoffYear(){return Dl}static set twoDigitCutoffYear(e){Dl=e%100}static get throwOnInvalid(){return Ll}static set throwOnInvalid(e){Ll=e}static resetCaches(){oe.resetCache(),zt.resetCache(),ue.resetCache(),Th()}},ze=class{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},kd=[0,31,59,90,120,151,181,212,243,273,304,334],jd=[0,31,60,91,121,152,182,213,244,274,305,335];function Ye(t,e){return new ze("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function jn(t,e,i){let a=new Date(Date.UTC(t,e-1,i));t<100&&t>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let r=a.getUTCDay();return r===0?7:r}function Nd(t,e,i){return i+(ri(t)?jd:kd)[e-1]}function _d(t,e){let i=ri(t)?jd:kd,a=i.findIndex(n=>n<e),r=e-i[a];return{month:a+1,day:r}}function Nn(t,e){return(t-e+7)%7+1}function Xi(t,e=4,i=1){let{year:a,month:r,day:n}=t,s=Nd(a,r,n),o=Nn(jn(a,r,n),i),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=Kr(d,e,i)):l>Kr(a,e,i)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...ca(t)}}function kl(t,e=4,i=1){let{weekYear:a,weekNumber:r,weekday:n}=t,s=Nn(jn(a,1,e),i),o=Pr(a),l=r*7+n-s-7+e,d;l<1?(d=a-1,l+=Pr(d)):l>o?(d=a+1,l-=Pr(a)):d=a;let{month:p,day:u}=_d(d,l);return{year:d,month:p,day:u,...ca(t)}}function Xa(t){let{year:e,month:i,day:a}=t,r=Nd(e,i,a);return{year:e,ordinal:r,...ca(t)}}function jl(t){let{year:e,ordinal:i}=t,{month:a,day:r}=_d(e,i);return{year:e,month:a,day:r,...ca(t)}}function Nl(t,e){if(!V(t.localWeekday)||!V(t.localWeekNumber)||!V(t.localWeekYear)){if(!V(t.weekday)||!V(t.weekNumber)||!V(t.weekYear))throw new Wt("Cannot mix locale-based week fields with ISO-based week fields");return V(t.localWeekday)||(t.weekday=t.localWeekday),V(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),V(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Ch(t,e=4,i=1){let a=oa(t.weekYear),r=Ke(t.weekNumber,1,Kr(t.weekYear,e,i)),n=Ke(t.weekday,1,7);return a?r?n?!1:Ye("weekday",t.weekday):Ye("week",t.weekNumber):Ye("weekYear",t.weekYear)}function Fh(t){let e=oa(t.year),i=Ke(t.ordinal,1,Pr(t.year));return e?i?!1:Ye("ordinal",t.ordinal):Ye("year",t.year)}function qd(t){let e=oa(t.year),i=Ke(t.month,1,12),a=Ke(t.day,1,ea(t.year,t.month));return e?i?a?!1:Ye("day",t.day):Ye("month",t.month):Ye("year",t.year)}function Md(t){let{hour:e,minute:i,second:a,millisecond:r}=t,n=Ke(e,0,23)||e===24&&i===0&&a===0&&r===0,s=Ke(i,0,59),o=Ke(a,0,59),l=Ke(r,0,999);return n?s?o?l?!1:Ye("millisecond",r):Ye("second",a):Ye("minute",i):Ye("hour",e)}function V(t){return typeof t>"u"}function Vt(t){return typeof t=="number"}function oa(t){return typeof t=="number"&&t%1===0}function Ph(t){return typeof t=="string"}function Oh(t){return Object.prototype.toString.call(t)==="[object Date]"}function Bd(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Wd(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Eh(t){return Array.isArray(t)?t:[t]}function _l(t,e,i){if(t.length!==0)return t.reduce((a,r)=>{let n=[e(r),r];return a&&i(a[0],n[0])===a[0]?a:n},null)[1]}function Ah(t,e){return e.reduce((i,a)=>(i[a]=t[a],i),{})}function $r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Fn(t){if(t==null)return null;if(typeof t!="object")throw new Pe("Week settings must be an object");if(!Ke(t.firstDay,1,7)||!Ke(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Ke(e,1,7)))throw new Pe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Ke(t,e,i){return oa(t)&&t>=e&&t<=i}function $h(t,e){return t-e*Math.floor(t/e)}function Ce(t,e=2){let i=t<0,a;return i?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function qt(t){if(!(V(t)||t===null||t===""))return parseInt(t,10)}function rr(t){if(!(V(t)||t===null||t===""))return parseFloat(t)}function _n(t){if(!(V(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function qn(t,e,i="round"){let a=10**e;switch(i){case"expand":return t>0?Math.ceil(t*a)/a:Math.floor(t*a)/a;case"trunc":return Math.trunc(t*a)/a;case"round":return Math.round(t*a)/a;case"floor":return Math.floor(t*a)/a;case"ceil":return Math.ceil(t*a)/a;default:throw new RangeError(`Value rounding ${i} is out of range`)}}function ri(t){return t%4===0&&(t%100!==0||t%400===0)}function Pr(t){return ri(t)?366:365}function ea(t,e){let i=$h(e-1,12)+1,a=t+(e-i)/12;return i===2?ri(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function la(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function ql(t,e,i){return-Nn(jn(t,1,e),i)+e-1}function Kr(t,e=4,i=1){let a=ql(t,e,i),r=ql(t+1,e,i);return(Pr(t)-a+r)/7}function Pn(t){return t>99?t:t>pe.twoDigitCutoffYear?1900+t:2e3+t}function Vd(t,e,i,a=null){let r=new Date(t),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(n.timeZone=a);let s={timeZoneName:e,...n},o=new Intl.DateTimeFormat(i,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function da(t,e){let i=parseInt(t,10);Number.isNaN(i)&&(i=0);let a=parseInt(e,10)||0,r=i<0||Object.is(i,-0)?-a:a;return i*60+r}function zd(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Pe(`Invalid unit value ${t}`);return e}function ta(t,e){let i={};for(let a in t)if($r(t,a)){let r=t[a];if(r==null)continue;i[e(a)]=zd(r)}return i}function Yr(t,e){let i=Math.trunc(Math.abs(t/60)),a=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${Ce(i,2)}:${Ce(a,2)}`;case"narrow":return`${r}${i}${a>0?`:${a}`:""}`;case"techie":return`${r}${Ce(i,2)}${Ce(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ca(t){return Ah(t,["hour","minute","second","millisecond"])}var Dh=["January","February","March","April","May","June","July","August","September","October","November","December"],Ud=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Lh=["J","F","M","A","M","J","J","A","S","O","N","D"];function Gd(t){switch(t){case"narrow":return[...Lh];case"short":return[...Ud];case"long":return[...Dh];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Hd=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Qd=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Rh=["M","T","W","T","F","S","S"];function Zd(t){switch(t){case"narrow":return[...Rh];case"short":return[...Qd];case"long":return[...Hd];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Jd=["AM","PM"],kh=["Before Christ","Anno Domini"],jh=["BC","AD"],Nh=["B","A"];function Yd(t){switch(t){case"narrow":return[...Nh];case"short":return[...jh];case"long":return[...kh];default:return null}}function _h(t){return Jd[t.hour<12?0:1]}function qh(t,e){return Zd(e)[t.weekday-1]}function Mh(t,e){return Gd(e)[t.month-1]}function Bh(t,e){return Yd(e)[t.year<0?0:1]}function Wh(t,e,i="always",a=!1){let r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=["hours","minutes","seconds"].indexOf(t)===-1;if(i==="auto"&&n){let u=t==="days";switch(e){case 1:return u?"tomorrow":`next ${r[t][0]}`;case-1:return u?"yesterday":`last ${r[t][0]}`;case 0:return u?"today":`this ${r[t][0]}`}}let s=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,d=r[t],p=a?l?d[1]:d[2]||d[1]:l?r[t][0]:t;return s?`${o} ${p} ago`:`in ${o} ${p}`}function Ml(t,e){let i="";for(let a of t)a.literal?i+=a.val:i+=e(a.val);return i}var Vh={D:Yi,DD:fd,DDD:md,DDDD:yd,t:gd,tt:bd,ttt:vd,tttt:Sd,T:wd,TT:Id,TTT:xd,TTTT:Td,f:Cd,ff:Pd,fff:Ed,ffff:$d,F:Fd,FF:Od,FFF:Ad,FFFF:Dd},Ve=class t{static create(e,i={}){return new t(e,i)}static parseFormat(e){let i=null,a="",r=!1,n=[];for(let s=0;s<e.length;s++){let o=e.charAt(s);o==="'"?((a.length>0||r)&&n.push({literal:r||/^\s+$/.test(a),val:a===""?"'":a}),i=null,a="",r=!r):r||o===i?a+=o:(a.length>0&&n.push({literal:/^\s+$/.test(a),val:a}),a=o,i=o)}return a.length>0&&n.push({literal:r||/^\s+$/.test(a),val:a}),n}static macroTokenToFormatOpts(e){return Vh[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0,a=void 0){if(this.opts.forceSimple)return Ce(e,i);let r={...this.opts};return i>0&&(r.padTo=i),a&&(r.signDisplay=a),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,i){let a=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(c,m)=>this.loc.extract(e,c,m),s=c=>e.isOffsetFixed&&e.offset===0&&c.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,c.format):"",o=()=>a?_h(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(c,m)=>a?Mh(e,c):n(m?{month:c}:{month:c,day:"numeric"},"month"),d=(c,m)=>a?qh(e,c):n(m?{weekday:c}:{weekday:c,month:"long",day:"numeric"},"weekday"),p=c=>{let m=t.macroTokenToFormatOpts(c);return m?this.formatWithSystemDefault(e,m):c},u=c=>a?Bh(e,c):n({era:c},"era"),h=c=>{switch(c){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return r?n({day:"numeric"},"day"):this.num(e.day);case"dd":return r?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return r?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?n({month:"numeric"},"month"):this.num(e.month);case"MM":return r?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?n({year:"numeric"},"year"):this.num(e.year);case"yy":return r?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return p(c)}};return Ml(t.parseFormat(i),h)}formatDurationFromString(e,i){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,r=p=>{switch(p[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},n=(p,u)=>h=>{let c=r(h);if(c){let m=u.isNegativeDuration&&c!==u.largestUnit?a:1,g;return this.opts.signMode==="negativeLargestOnly"&&c!==u.largestUnit?g="never":this.opts.signMode==="all"?g="always":g="auto",this.num(p.get(c)*m,h.length,g)}else return h},s=t.parseFormat(i),o=s.reduce((p,{literal:u,val:h})=>u?p:p.concat(h),[]),l=e.shiftTo(...o.map(r).filter(p=>p)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Ml(s,n(l,d))}},Kd=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Dr(...t){let e=t.reduce((i,a)=>i+a.source,"");return RegExp(`^${e}$`)}function Lr(...t){return e=>t.reduce(([i,a,r],n)=>{let[s,o,l]=n(e,r);return[{...i,...s},o||a,l]},[{},null,1]).slice(0,2)}function Rr(t,...e){if(t==null)return[null,null];for(let[i,a]of e){let r=i.exec(t);if(r)return a(r)}return[null,null]}function Xd(...t){return(e,i)=>{let a={},r;for(r=0;r<t.length;r++)a[t[r]]=qt(e[i+r]);return[a,null,i+r]}}var ec=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,zh=`(?:${ec.source}?(?:\\[(${Kd.source})\\])?)?`,Mn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,tc=RegExp(`${Mn.source}${zh}`),Bn=RegExp(`(?:[Tt]${tc.source})?`),Uh=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Gh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Hh=/(\d{4})-?(\d{3})/,Qh=Xd("weekYear","weekNumber","weekDay"),Zh=Xd("year","ordinal"),Jh=/(\d{4})-(\d\d)-(\d\d)/,rc=RegExp(`${Mn.source} ?(?:${ec.source}|(${Kd.source}))?`),Yh=RegExp(`(?: ${rc.source})?`);function Or(t,e,i){let a=t[e];return V(a)?i:qt(a)}function Kh(t,e){return[{year:Or(t,e),month:Or(t,e+1,1),day:Or(t,e+2,1)},null,e+3]}function kr(t,e){return[{hours:Or(t,e,0),minutes:Or(t,e+1,0),seconds:Or(t,e+2,0),milliseconds:_n(t[e+3])},null,e+4]}function ii(t,e){let i=!t[e]&&!t[e+1],a=da(t[e+1],t[e+2]),r=i?null:Xe.instance(a);return[{},r,e+3]}function ai(t,e){let i=t[e]?zt.create(t[e]):null;return[{},i,e+1]}var Xh=RegExp(`^T?${Mn.source}$`),ef=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function tf(t){let[e,i,a,r,n,s,o,l,d]=t,p=e[0]==="-",u=l&&l[0]==="-",h=(c,m=!1)=>c!==void 0&&(m||c&&p)?-c:c;return[{years:h(rr(i)),months:h(rr(a)),weeks:h(rr(r)),days:h(rr(n)),hours:h(rr(s)),minutes:h(rr(o)),seconds:h(rr(l),l==="-0"),milliseconds:h(_n(d),u)}]}var rf={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wn(t,e,i,a,r,n,s){let o={year:e.length===2?Pn(qt(e)):qt(e),month:Ud.indexOf(i)+1,day:qt(a),hour:qt(r),minute:qt(n)};return s&&(o.second=qt(s)),t&&(o.weekday=t.length>3?Hd.indexOf(t)+1:Qd.indexOf(t)+1),o}var af=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function nf(t){let[,e,i,a,r,n,s,o,l,d,p,u]=t,h=Wn(e,r,a,i,n,s,o),c;return l?c=rf[l]:d?c=0:c=da(p,u),[h,new Xe(c)]}function sf(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var of=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,lf=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,df=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Bl(t){let[,e,i,a,r,n,s,o]=t;return[Wn(e,r,a,i,n,s,o),Xe.utcInstance]}function cf(t){let[,e,i,a,r,n,s,o]=t;return[Wn(e,o,i,a,r,n,s),Xe.utcInstance]}var pf=Dr(Uh,Bn),uf=Dr(Gh,Bn),hf=Dr(Hh,Bn),ff=Dr(tc),ic=Lr(Kh,kr,ii,ai),mf=Lr(Qh,kr,ii,ai),yf=Lr(Zh,kr,ii,ai),gf=Lr(kr,ii,ai);function bf(t){return Rr(t,[pf,ic],[uf,mf],[hf,yf],[ff,gf])}function vf(t){return Rr(sf(t),[af,nf])}function Sf(t){return Rr(t,[of,Bl],[lf,Bl],[df,cf])}function wf(t){return Rr(t,[ef,tf])}var If=Lr(kr);function xf(t){return Rr(t,[Xh,If])}var Tf=Dr(Jh,Yh),Cf=Dr(rc),Ff=Lr(kr,ii,ai);function Pf(t){return Rr(t,[Tf,ic],[Cf,Ff])}var Wl="Invalid Duration",ac={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Of={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...ac},Ze=146097/400,wr=146097/4800,Ef={years:{quarters:4,months:12,weeks:Ze/7,days:Ze,hours:Ze*24,minutes:Ze*24*60,seconds:Ze*24*60*60,milliseconds:Ze*24*60*60*1e3},quarters:{months:3,weeks:Ze/28,days:Ze/4,hours:Ze*24/4,minutes:Ze*24*60/4,seconds:Ze*24*60*60/4,milliseconds:Ze*24*60*60*1e3/4},months:{weeks:wr/7,days:wr,hours:wr*24,minutes:wr*24*60,seconds:wr*24*60*60,milliseconds:wr*24*60*60*1e3},...ac},nr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Af=nr.slice(0).reverse();function Tt(t,e,i=!1){let a={values:i?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Oe(a)}function nc(t,e){let i=e.milliseconds??0;for(let a of Af.slice(1))e[a]&&(i+=e[a]*t[a].milliseconds);return i}function Vl(t,e){let i=nc(t,e)<0?-1:1;nr.reduceRight((a,r)=>{if(V(e[r]))return a;if(a){let n=e[a]*i,s=t[r][a],o=Math.floor(n/s);e[r]+=o*i,e[a]-=o*s*i}return r},null),nr.reduce((a,r)=>{if(V(e[r]))return a;if(a){let n=e[a]%1;e[a]-=n,e[r]+=n*t[a][r]}return r},null)}function zl(t){let e={};for(let[i,a]of Object.entries(t))a!==0&&(e[i]=a);return e}var Oe=class t{constructor(e){let i=e.conversionAccuracy==="longterm"||!1,a=i?Ef:Of;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||oe.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,i){return t.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new Pe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:ta(e,t.normalizeUnit),loc:oe.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(Vt(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Pe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){let[a]=wf(e);return a?t.fromObject(a,i):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){let[a]=xf(e);return a?t.fromObject(a,i):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new Pe("need to specify a reason the Duration is invalid");let a=e instanceof ze?e:new ze(e,i);if(pe.throwOnInvalid)throw new hn(a);return new t({invalid:a})}static normalizeUnit(e){let i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!i)throw new Ji(e);return i}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,i={}){let a={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?Ve.create(this.loc,a).formatDurationFromString(this,e):Wl}toHuman(e={}){if(!this.isValid)return Wl;let i=e.showZeros!==!1,a=nr.map(r=>{let n=this.values[r];return V(n)||n===0&&!i?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(n)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=qn(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ue.fromMillis(i,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?nc(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let i=t.fromDurationLike(e),a={};for(let r of nr)($r(i.values,r)||$r(this.values,r))&&(a[r]=i.get(r)+this.get(r));return Tt(this,{values:a},!0)}minus(e){if(!this.isValid)return this;let i=t.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;let i={};for(let a of Object.keys(this.values))i[a]=zd(e(this.values[a],a));return Tt(this,{values:i},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let i={...this.values,...ta(e,t.normalizeUnit)};return Tt(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:a,matrix:r}={}){let n={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:r,conversionAccuracy:a};return Tt(this,n)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return Vl(this.matrix,e),Tt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=zl(this.normalize().shiftToAll().toObject());return Tt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let i={},a={},r=this.toObject(),n;for(let s of nr)if(e.indexOf(s)>=0){n=s;let o=0;for(let d in a)o+=this.matrix[d][s]*a[d],a[d]=0;Vt(r[s])&&(o+=r[s]);let l=Math.trunc(o);i[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else Vt(r[s])&&(a[s]=r[s]);for(let s in a)a[s]!==0&&(i[n]+=s===n?a[s]:a[s]/this.matrix[n][s]);return Vl(this.matrix,i),Tt(this,{values:i},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return Tt(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=zl(this.values);return Tt(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function i(a,r){return a===void 0||a===0?r===void 0||r===0:a===r}for(let a of nr)if(!i(this.values[a],e.values[a]))return!1;return!0}},Ir="Invalid Interval";function $f(t,e){return!t||!t.isValid?Er.invalid("missing or invalid start"):!e||!e.isValid?Er.invalid("missing or invalid end"):e<t?Er.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var Er=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new Pe("need to specify a reason the Interval is invalid");let a=e instanceof ze?e:new ze(e,i);if(pe.throwOnInvalid)throw new un(a);return new t({invalid:a})}static fromDateTimes(e,i){let a=Gr(e),r=Gr(i);return $f(a,r)??new t({start:a,end:r})}static after(e,i){let a=Oe.fromDurationLike(i),r=Gr(e);return t.fromDateTimes(r,r.plus(a))}static before(e,i){let a=Oe.fromDurationLike(i),r=Gr(e);return t.fromDateTimes(r.minus(a),r)}static fromISO(e,i){let[a,r]=(e||"").split("/",2);if(a&&r){let n,s;try{n=ue.fromISO(a,i),s=n.isValid}catch{s=!1}let o,l;try{o=ue.fromISO(r,i),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Oe.fromISO(r,i);if(d.isValid)return t.after(n,d)}else if(l){let d=Oe.fromISO(a,i);if(d.isValid)return t.before(o,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",i){if(!this.isValid)return NaN;let a=this.start.startOf(e,i),r;return i?.useLocaleWeeks?r=this.end.reconfigure({locale:a.locale}):r=this.end,r=r.startOf(e,i),Math.floor(r.diff(a,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:i}={}){return this.isValid?t.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];let i=e.map(Gr).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:r}=this,n=0;for(;r<this.e;){let s=i[n]||this.e,o=+s>+this.e?this.e:s;a.push(t.fromDateTimes(r,o)),r=o,n+=1}return a}splitBy(e){let i=Oe.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:a}=this,r=1,n,s=[];for(;a<this.e;){let o=this.start.plus(i.mapUnits(l=>l*r));n=+o>+this.e?this.e:o,s.push(t.fromDateTimes(a,n)),a=n,r+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let i=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return i>=a?null:t.fromDateTimes(i,a)}union(e){if(!this.isValid)return this;let i=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return t.fromDateTimes(i,a)}static merge(e){let[i,a]=e.sort((r,n)=>r.s-n.s).reduce(([r,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[r,n.union(s)]:[r.concat([n]),s]:[r,s],[[],null]);return a&&i.push(a),i}static xor(e){let i=null,a=0,r=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,d)=>l.time-d.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?i=l.time:(i&&+i!=+l.time&&r.push(t.fromDateTimes(i,l.time)),i=null);return t.merge(r)}difference(...e){return t.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Ir}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Yi,i={}){return this.isValid?Ve.create(this.s.loc.clone(i),e).formatInterval(this):Ir}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ir}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ir}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ir}toFormat(e,{separator:i=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:Ir}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):Oe.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},Fr=class{static hasDST(e=pe.defaultZone){let i=ue.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return zt.isValidZone(e)}static normalizeZone(e){return Bt(e,pe.defaultZone)}static getStartOfWeek({locale:e=null,locObj:i=null}={}){return(i||oe.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:i=null}={}){return(i||oe.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:i=null}={}){return(i||oe.create(e)).getWeekendDays().slice()}static months(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null,outputCalendar:n="gregory"}={}){return(r||oe.create(i,a,n)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null,outputCalendar:n="gregory"}={}){return(r||oe.create(i,a,n)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null}={}){return(r||oe.create(i,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:a=null,locObj:r=null}={}){return(r||oe.create(i,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return oe.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return oe.create(i,null,"gregory").eras(e)}static features(){return{relative:Bd(),localeWeek:Wd()}}};function Ul(t,e){let i=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=i(e)-i(t);return Math.floor(Oe.fromMillis(a).as("days"))}function Df(t,e,i){let a=[["years",(l,d)=>d.year-l.year],["quarters",(l,d)=>d.quarter-l.quarter+(d.year-l.year)*4],["months",(l,d)=>d.month-l.month+(d.year-l.year)*12],["weeks",(l,d)=>{let p=Ul(l,d);return(p-p%7)/7}],["days",Ul]],r={},n=t,s,o;for(let[l,d]of a)i.indexOf(l)>=0&&(s=l,r[l]=d(t,e),o=n.plus(r),o>e?(r[l]--,t=n.plus(r),t>e&&(o=t,r[l]--,t=n.plus(r))):t=o);return[t,r,o,s]}function Lf(t,e,i,a){let[r,n,s,o]=Df(t,e,i),l=e-r,d=i.filter(u=>["hours","minutes","seconds","milliseconds"].indexOf(u)>=0);d.length===0&&(s<e&&(s=r.plus({[o]:1})),s!==r&&(n[o]=(n[o]||0)+l/(s-r)));let p=Oe.fromObject(n,a);return d.length>0?Oe.fromMillis(l,a).shiftTo(...d).plus(p):p}var Rf="missing Intl.DateTimeFormat.formatToParts support";function te(t,e=i=>i){return{regex:t,deser:([i])=>e(xh(i))}}var kf="\xA0",sc=`[ ${kf}]`,oc=new RegExp(sc,"g");function jf(t){return t.replace(/\./g,"\\.?").replace(oc,sc)}function Gl(t){return t.replace(/\./g,"").replace(oc," ").toLowerCase()}function nt(t,e){return t===null?null:{regex:RegExp(t.map(jf).join("|")),deser:([i])=>t.findIndex(a=>Gl(i)===Gl(a))+e}}function Hl(t,e){return{regex:t,deser:([,i,a])=>da(i,a),groups:e}}function ji(t){return{regex:t,deser:([e])=>e}}function Nf(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function _f(t,e){let i=at(e),a=at(e,"{2}"),r=at(e,"{3}"),n=at(e,"{4}"),s=at(e,"{6}"),o=at(e,"{1,2}"),l=at(e,"{1,3}"),d=at(e,"{1,6}"),p=at(e,"{1,9}"),u=at(e,"{2,4}"),h=at(e,"{4,6}"),c=g=>({regex:RegExp(Nf(g.val)),deser:([y])=>y,literal:!0}),m=(g=>{if(t.literal)return c(g);switch(g.val){case"G":return nt(e.eras("short"),0);case"GG":return nt(e.eras("long"),0);case"y":return te(d);case"yy":return te(u,Pn);case"yyyy":return te(n);case"yyyyy":return te(h);case"yyyyyy":return te(s);case"M":return te(o);case"MM":return te(a);case"MMM":return nt(e.months("short",!0),1);case"MMMM":return nt(e.months("long",!0),1);case"L":return te(o);case"LL":return te(a);case"LLL":return nt(e.months("short",!1),1);case"LLLL":return nt(e.months("long",!1),1);case"d":return te(o);case"dd":return te(a);case"o":return te(l);case"ooo":return te(r);case"HH":return te(a);case"H":return te(o);case"hh":return te(a);case"h":return te(o);case"mm":return te(a);case"m":return te(o);case"q":return te(o);case"qq":return te(a);case"s":return te(o);case"ss":return te(a);case"S":return te(l);case"SSS":return te(r);case"u":return ji(p);case"uu":return ji(o);case"uuu":return te(i);case"a":return nt(e.meridiems(),0);case"kkkk":return te(n);case"kk":return te(u,Pn);case"W":return te(o);case"WW":return te(a);case"E":case"c":return te(i);case"EEE":return nt(e.weekdays("short",!1),1);case"EEEE":return nt(e.weekdays("long",!1),1);case"ccc":return nt(e.weekdays("short",!0),1);case"cccc":return nt(e.weekdays("long",!0),1);case"Z":case"ZZ":return Hl(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return Hl(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return ji(/[a-z_+-/]{1,256}?/i);case" ":return ji(/[^\S\n\r]/);default:return c(g)}})(t)||{invalidReason:Rf};return m.token=t,m}var qf={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Mf(t,e,i){let{type:a,value:r}=t;if(a==="literal"){let l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}let n=e[a],s=a;a==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=i.hour12?"hour12":"hour24");let o=qf[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function Bf(t){return[`^${t.map(e=>e.regex).reduce((e,i)=>`${e}(${i.source})`,"")}$`,t]}function Wf(t,e,i){let a=t.match(e);if(a){let r={},n=1;for(let s in i)if($r(i,s)){let o=i[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(r[o.token.val[0]]=o.deser(a.slice(n,n+l))),n+=l}return[a,r]}else return[a,{}]}function Vf(t){let e=r=>{switch(r){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},i=null,a;return V(t.z)||(i=zt.create(t.z)),V(t.Z)||(i||(i=new Xe(t.Z)),a=t.Z),V(t.q)||(t.M=(t.q-1)*3+1),V(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),V(t.u)||(t.S=_n(t.u)),[Object.keys(t).reduce((r,n)=>{let s=e(n);return s&&(r[s]=t[n]),r},{}),i,a]}var en=null;function zf(){return en||(en=ue.fromMillis(1555555555555)),en}function Uf(t,e){if(t.literal)return t;let i=Ve.macroTokenToFormatOpts(t.val),a=cc(i,e);return a==null||a.includes(void 0)?t:a}function lc(t,e){return Array.prototype.concat(...t.map(i=>Uf(i,e)))}var ra=class{constructor(e,i){if(this.locale=e,this.format=i,this.tokens=lc(Ve.parseFormat(i),e),this.units=this.tokens.map(a=>_f(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,r]=Bf(this.units);this.regex=RegExp(a,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){let[i,a]=Wf(e,this.regex,this.handlers),[r,n,s]=a?Vf(a):[null,null,void 0];if($r(a,"a")&&$r(a,"H"))throw new Wt("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:i,matches:a,result:r,zone:n,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function dc(t,e,i){return new ra(t,i).explainFromTokens(e)}function Gf(t,e,i){let{result:a,zone:r,specificOffset:n,invalidReason:s}=dc(t,e,i);return[a,r,n,s]}function cc(t,e){if(!t)return null;let i=Ve.create(e,t).dtFormatter(zf()),a=i.formatToParts(),r=i.resolvedOptions();return a.map(n=>Mf(n,t,r))}var tn="Invalid DateTime",Ql=864e13;function Zr(t){return new ze("unsupported zone",`the zone "${t.name}" is not supported`)}function rn(t){return t.weekData===null&&(t.weekData=Xi(t.c)),t.weekData}function an(t){return t.localWeekData===null&&(t.localWeekData=Xi(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ir(t,e){let i={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ue({...i,...e,old:i})}function pc(t,e,i){let a=t-e*60*1e3,r=i.offset(a);if(e===r)return[a,e];a-=(r-e)*60*1e3;let n=i.offset(a);return r===n?[a,r]:[t-Math.min(r,n)*60*1e3,Math.max(r,n)]}function Ni(t,e){t+=e*60*1e3;let i=new Date(t);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Ui(t,e,i){return pc(la(t),e,i)}function Zl(t,e){let i=t.o,a=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...t.c,year:a,month:r,day:Math.min(t.c.day,ea(a,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Oe.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=la(n),[l,d]=pc(o,i,t.zone);return s!==0&&(l+=s,d=t.zone.offset(l)),{ts:l,o:d}}function xr(t,e,i,a,r,n){let{setZone:s,zone:o}=i;if(t&&Object.keys(t).length!==0||e){let l=e||o,d=ue.fromObject(t,{...i,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ue.invalid(new ze("unparsable",`the input "${r}" can't be parsed as ${a}`))}function _i(t,e,i=!0){return t.isValid?Ve.create(oe.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(t,e):null}function nn(t,e,i){let a=t.c.year>9999||t.c.year<0,r="";if(a&&t.c.year>=0&&(r+="+"),r+=Ce(t.c.year,a?6:4),i==="year")return r;if(e){if(r+="-",r+=Ce(t.c.month),i==="month")return r;r+="-"}else if(r+=Ce(t.c.month),i==="month")return r;return r+=Ce(t.c.day),r}function Jl(t,e,i,a,r,n,s){let o=!i||t.c.millisecond!==0||t.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=Ce(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=Ce(t.c.minute),s==="minute")break;o&&(l+=":",l+=Ce(t.c.second))}else{if(l+=Ce(t.c.minute),s==="minute")break;o&&(l+=Ce(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=Ce(t.c.millisecond,3))}return r&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=Ce(Math.trunc(-t.o/60)),l+=":",l+=Ce(Math.trunc(-t.o%60))):(l+="+",l+=Ce(Math.trunc(t.o/60)),l+=":",l+=Ce(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var uc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Hf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Qf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Gi=["year","month","day","hour","minute","second","millisecond"],Zf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Jf=["year","ordinal","hour","minute","second","millisecond"];function Hi(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Ji(t);return e}function Yl(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Hi(t)}}function Yf(t){if(Jr===void 0&&(Jr=pe.now()),t.type!=="iana")return t.offset(Jr);let e=t.name,i=On.get(e);return i===void 0&&(i=t.offset(Jr),On.set(e,i)),i}function Kl(t,e){let i=Bt(e.zone,pe.defaultZone);if(!i.isValid)return ue.invalid(Zr(i));let a=oe.fromObject(e),r,n;if(V(t.year))r=pe.now();else{for(let l of Gi)V(t[l])&&(t[l]=uc[l]);let s=qd(t)||Md(t);if(s)return ue.invalid(s);let o=Yf(i);[r,n]=Ui(t,o,i)}return new ue({ts:r,zone:i,loc:a,o:n})}function Xl(t,e,i){let a=V(i.round)?!0:i.round,r=V(i.rounding)?"trunc":i.rounding,n=(o,l)=>(o=qn(o,a||i.calendary?0:2,i.calendary?"round":r),e.loc.clone(i).relFormatter(i).format(o,l)),s=o=>i.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(i.unit)return n(s(i.unit),i.unit);for(let o of i.units){let l=s(o);if(Math.abs(l)>=1)return n(l,o)}return n(t>e?-0:0,i.units[i.units.length-1])}function ed(t){let e={},i;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],i=Array.from(t).slice(0,t.length-1)):i=Array.from(t),[e,i]}var Jr,On=new Map,ue=class t{constructor(e){let i=e.zone||pe.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new ze("invalid input"):null)||(i.isValid?null:Zr(i));this.ts=V(e.ts)?pe.now():e.ts;let r=null,n=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[r,n]=[e.old.c,e.old.o];else{let s=Vt(e.o)&&!e.old?e.o:i.offset(this.ts);r=Ni(this.ts,s),a=Number.isNaN(r.year)?new ze("invalid input"):null,r=a?null:r,n=a?null:s}this._zone=i,this.loc=e.loc||oe.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=r,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,i]=ed(arguments),[a,r,n,s,o,l,d]=i;return Kl({year:a,month:r,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,i]=ed(arguments),[a,r,n,s,o,l,d]=i;return e.zone=Xe.utcInstance,Kl({year:a,month:r,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,i={}){let a=Oh(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let r=Bt(i.zone,pe.defaultZone);return r.isValid?new t({ts:a,zone:r,loc:oe.fromObject(i)}):t.invalid(Zr(r))}static fromMillis(e,i={}){if(Vt(e))return e<-Ql||e>Ql?t.invalid("Timestamp out of range"):new t({ts:e,zone:Bt(i.zone,pe.defaultZone),loc:oe.fromObject(i)});throw new Pe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(Vt(e))return new t({ts:e*1e3,zone:Bt(i.zone,pe.defaultZone),loc:oe.fromObject(i)});throw new Pe("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};let a=Bt(i.zone,pe.defaultZone);if(!a.isValid)return t.invalid(Zr(a));let r=oe.fromObject(i),n=ta(e,Yl),{minDaysInFirstWeek:s,startOfWeek:o}=Nl(n,r),l=pe.now(),d=V(i.specificOffset)?a.offset(l):i.specificOffset,p=!V(n.ordinal),u=!V(n.year),h=!V(n.month)||!V(n.day),c=u||h,m=n.weekYear||n.weekNumber;if((c||p)&&m)throw new Wt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&p)throw new Wt("Can't mix ordinal dates with month/day");let g=m||n.weekday&&!c,y,S,C=Ni(l,d);g?(y=Zf,S=Hf,C=Xi(C,s,o)):p?(y=Jf,S=Qf,C=Xa(C)):(y=Gi,S=uc);let w=!1;for(let D of y){let L=n[D];V(L)?w?n[D]=S[D]:n[D]=C[D]:w=!0}let P=g?Ch(n,s,o):p?Fh(n):qd(n),O=P||Md(n);if(O)return t.invalid(O);let A=g?kl(n,s,o):p?jl(n):n,[_,R]=Ui(A,d,a),F=new t({ts:_,zone:a,o:R,loc:r});return n.weekday&&c&&e.weekday!==F.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${F.toISO()}`):F.isValid?F:t.invalid(F.invalid)}static fromISO(e,i={}){let[a,r]=bf(e);return xr(a,r,i,"ISO 8601",e)}static fromRFC2822(e,i={}){let[a,r]=vf(e);return xr(a,r,i,"RFC 2822",e)}static fromHTTP(e,i={}){let[a,r]=Sf(e);return xr(a,r,i,"HTTP",i)}static fromFormat(e,i,a={}){if(V(e)||V(i))throw new Pe("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:n=null}=a,s=oe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0}),[o,l,d,p]=Gf(s,e,i);return p?t.invalid(p):xr(o,l,a,`format ${i}`,e,d)}static fromString(e,i,a={}){return t.fromFormat(e,i,a)}static fromSQL(e,i={}){let[a,r]=Pf(e);return xr(a,r,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new Pe("need to specify a reason the DateTime is invalid");let a=e instanceof ze?e:new ze(e,i);if(pe.throwOnInvalid)throw new pn(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){let a=cc(e,oe.fromObject(i));return a?a.map(r=>r?r.val:null).join(""):null}static expandFormat(e,i={}){return lc(Ve.parseFormat(e),oe.fromObject(i)).map(a=>a.val).join("")}static resetCache(){Jr=void 0,On.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?rn(this).weekYear:NaN}get weekNumber(){return this.isValid?rn(this).weekNumber:NaN}get weekday(){return this.isValid?rn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?an(this).weekday:NaN}get localWeekNumber(){return this.isValid?an(this).weekNumber:NaN}get localWeekYear(){return this.isValid?an(this).weekYear:NaN}get ordinal(){return this.isValid?Xa(this.c).ordinal:NaN}get monthShort(){return this.isValid?Fr.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Fr.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Fr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Fr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,i=6e4,a=la(this.c),r=this.zone.offset(a-e),n=this.zone.offset(a+e),s=this.zone.offset(a-r*i),o=this.zone.offset(a-n*i);if(s===o)return[this];let l=a-s*i,d=a-o*i,p=Ni(l,s),u=Ni(d,o);return p.hour===u.hour&&p.minute===u.minute&&p.second===u.second&&p.millisecond===u.millisecond?[ir(this,{ts:l}),ir(this,{ts:d})]:[this]}get isInLeapYear(){return ri(this.year)}get daysInMonth(){return ea(this.year,this.month)}get daysInYear(){return this.isValid?Pr(this.year):NaN}get weeksInWeekYear(){return this.isValid?Kr(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Kr(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:i,numberingSystem:a,calendar:r}=Ve.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:a,outputCalendar:r}}toUTC(e=0,i={}){return this.setZone(Xe.instance(e),i)}toLocal(){return this.setZone(pe.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:a=!1}={}){if(e=Bt(e,pe.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(i||a){let n=e.offset(this.ts),s=this.toObject();[r]=Ui(s,n,e)}return ir(this,{ts:r,zone:e})}else return t.invalid(Zr(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:a}={}){let r=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:a});return ir(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let i=ta(e,Yl),{minDaysInFirstWeek:a,startOfWeek:r}=Nl(i,this.loc),n=!V(i.weekYear)||!V(i.weekNumber)||!V(i.weekday),s=!V(i.ordinal),o=!V(i.year),l=!V(i.month)||!V(i.day),d=o||l,p=i.weekYear||i.weekNumber;if((d||s)&&p)throw new Wt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new Wt("Can't mix ordinal dates with month/day");let u;n?u=kl({...Xi(this.c,a,r),...i},a,r):V(i.ordinal)?(u={...this.toObject(),...i},V(i.day)&&(u.day=Math.min(ea(u.year,u.month),u.day))):u=jl({...Xa(this.c),...i});let[h,c]=Ui(u,this.o,this.zone);return ir(this,{ts:h,o:c})}plus(e){if(!this.isValid)return this;let i=Oe.fromDurationLike(e);return ir(this,Zl(this,i))}minus(e){if(!this.isValid)return this;let i=Oe.fromDurationLike(e).negate();return ir(this,Zl(this,i))}startOf(e,{useLocaleWeeks:i=!1}={}){if(!this.isValid)return this;let a={},r=Oe.normalizeUnit(e);switch(r){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(r==="weeks")if(i){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(a.weekNumber=this.weekNumber-1),a.weekday=n}else a.weekday=1;if(r==="quarters"){let n=Math.ceil(this.month/3);a.month=(n-1)*3+1}return this.set(a)}endOf(e,i){return this.isValid?this.plus({[e]:1}).startOf(e,i).minus(1):this}toFormat(e,i={}){return this.isValid?Ve.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):tn}toLocaleString(e=Yi,i={}){return this.isValid?Ve.create(this.loc.clone(i),e).formatDateTime(this):tn}toLocaleParts(e={}){return this.isValid?Ve.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:a=!1,includeOffset:r=!0,extendedZone:n=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=Hi(s);let o=e==="extended",l=nn(this,o,s);return Gi.indexOf(s)>=3&&(l+="T"),l+=Jl(this,o,i,a,r,n,s),l}toISODate({format:e="extended",precision:i="day"}={}){return this.isValid?nn(this,e==="extended",Hi(i)):null}toISOWeekDate(){return _i(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:a=!0,includePrefix:r=!1,extendedZone:n=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=Hi(o),(r&&Gi.indexOf(o)>=3?"T":"")+Jl(this,s==="extended",i,e,a,n,o)):null}toRFC2822(){return _i(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return _i(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:a=!0}={}){let r="HH:mm:ss.SSS";return(i||e)&&(a&&(r+=" "),i?r+="z":e&&(r+="ZZ")),_i(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():tn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",a={}){if(!this.isValid||!e.isValid)return Oe.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=Eh(i).map(Oe.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=Lf(o,l,n,r);return s?d.negate():d}diffNow(e="milliseconds",i={}){return this.diff(t.now(),e,i)}until(e){return this.isValid?Er.fromDateTimes(this,e):this}hasSame(e,i,a){if(!this.isValid)return!1;let r=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(i,a)<=r&&r<=n.endOf(i,a)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let i=e.base||t.fromObject({},{zone:this.zone}),a=e.padding?this<i?-e.padding:e.padding:0,r=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(r=e.unit,n=void 0),Xl(i,this.plus(a),{...e,numeric:"always",units:r,unit:n})}toRelativeCalendar(e={}){return this.isValid?Xl(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new Pe("min requires all arguments be DateTimes");return _l(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Pe("max requires all arguments be DateTimes");return _l(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,a={}){let{locale:r=null,numberingSystem:n=null}=a,s=oe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});return dc(s,e,i)}static fromStringExplain(e,i,a={}){return t.fromFormatExplain(e,i,a)}static buildFormatParser(e,i={}){let{locale:a=null,numberingSystem:r=null}=i,n=oe.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0});return new ra(n,e)}static fromFormatParser(e,i,a={}){if(V(e)||V(i))throw new Pe("fromFormatParser requires an input string and a format parser");let{locale:r=null,numberingSystem:n=null}=a,s=oe.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});if(!s.equals(i.locale))throw new Pe(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${i.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:p}=i.explainFromTokens(e);return p?t.invalid(p):xr(o,l,a,`format ${i.format}`,e,d)}static get DATE_SHORT(){return Yi}static get DATE_MED(){return fd}static get DATE_MED_WITH_WEEKDAY(){return sh}static get DATE_FULL(){return md}static get DATE_HUGE(){return yd}static get TIME_SIMPLE(){return gd}static get TIME_WITH_SECONDS(){return bd}static get TIME_WITH_SHORT_OFFSET(){return vd}static get TIME_WITH_LONG_OFFSET(){return Sd}static get TIME_24_SIMPLE(){return wd}static get TIME_24_WITH_SECONDS(){return Id}static get TIME_24_WITH_SHORT_OFFSET(){return xd}static get TIME_24_WITH_LONG_OFFSET(){return Td}static get DATETIME_SHORT(){return Cd}static get DATETIME_SHORT_WITH_SECONDS(){return Fd}static get DATETIME_MED(){return Pd}static get DATETIME_MED_WITH_SECONDS(){return Od}static get DATETIME_MED_WITH_WEEKDAY(){return oh}static get DATETIME_FULL(){return Ed}static get DATETIME_FULL_WITH_SECONDS(){return Ad}static get DATETIME_HUGE(){return $d}static get DATETIME_HUGE_WITH_SECONDS(){return Dd}};function Gr(t){if(ue.isDateTime(t))return t;if(t&&t.valueOf&&Vt(t.valueOf()))return ue.fromJSDate(t);if(t&&typeof t=="object")return ue.fromObject(t);throw new Pe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var td={Count:"count",Start:"minValue",End:"maxValue"},hc={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},H={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},hv=32,fv="arcgis_charts_features_extent",or={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:ds.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds"},Kf=["EXPR_1","Expr1","expr1","EXPR1"],mv=1,lt=.7,Xf=25,fc=[156,156,156,255],em=[156,156,156,255],yv=vr.Solid,gv=2,bv={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"},Vn="arcgis_charts_box_plot_category",tm={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},rm=[[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]],im=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]];function mt(t){let{colorIndex:e,opacity:i,histogramOverlays:a}=t,r=Math.max(0,e??0),n=[...a===!0?im:rm],[s,o,l,d]=n[r%n.length],p=i!==void 0?i*255:d;return[s,o,l,p]}function mc(t){return[0,0,0,(t??lt)*255]}function vv(){return{type:x.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:Re.SLS,style:vr.Dot,color:[211,211,211,255],width:1}}}function pa(t=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),t*255]}function ie(t){let e={family:"Arial, Helvetica, sans-serif",size:10};switch(t){case H.ChartTitle:e.size=18;break;case H.AxisTitle:e.size=14;break;case H.LegendText:e.size=12;break;case H.LegendTitle:e.size=13;break;case H.DescriptionText:e.size=11;break}return e}function yc(t="",e=ie(),i){let a=hi.Center;return(i===H.DataLabels||i===H.GuideLabel)&&(a=void 0),{type:Re.TS,color:mc(),text:t,font:e,horizontalAlignment:a}}function J(t){let{text:e,visible:i,font:a,type:r}=t??{text:"",visible:!0,font:ie()};return{type:x.Text,visible:i,content:yc(e,a,r)}}function ni(t){let e=t?.useRandomColor??!1,i=t?.useRampColor,a=t?.width??1,r=t?.isHistogramOverlay,n=t?.color??mc(1);return e?n=pa():i!==void 0&&(r===!0?n=mt({colorIndex:i.colorIndex,histogramOverlays:r}):n=mt({colorIndex:i.colorIndex})),t?.opacity!==void 0&&(n[3]=t.opacity),{type:Re.SLS,style:vr.Solid,color:n,width:a}}function am(){return{type:x.CategoryAxisFormat,characterLimit:11}}function Sv(){return{type:x.DateAxisFormat,intlOptions:{}}}function En(){return{type:x.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function wv(){return{type:x.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function Iv(){return{type:x.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function sn(t="Category Axis"){let e=J({text:t,visible:!0,font:ie(H.AxisTitle)});e.content.horizontalAlignment=hi.Center,e.content.verticalAlignment=Ia.Middle;let i=J({text:t,visible:!0,font:ie(H.AxisLabels)});return{type:x.Axis,visible:!0,title:e,labels:i,valueFormat:am(),lineSymbol:ni({color:fc})}}function Qi(t="Value Axis"){let e=J({text:t,visible:!0,font:ie(H.AxisTitle)}),i=J({text:t,visible:!0,font:ie(H.AxisLabels)});return e.content.verticalAlignment=Ia.Middle,e.content.horizontalAlignment=hi.Center,{type:x.Axis,visible:!0,title:e,labels:i,valueFormat:En(),lineSymbol:ni({color:fc})}}function Ut(){return{type:x.Legend,visible:!0,title:J({text:"",visible:!0,font:ie(H.LegendTitle)}),body:yc("",ie(H.LegendText)),position:Sa.Right,maxHeight:Number.NaN}}function qi(t){return{type:x.Overlay,visible:!0,created:!1,symbol:ni({useRampColor:{colorIndex:t},isHistogramOverlay:!0})}}function Gt(){return[255,255,255,255]}function Et(t){return t.utilsStrings.chartType.chart}function At(){return`Chart ${Date.now()}`}function xv(t,e=!1){return{type:Re.SFS,style:Sr.Solid,color:e?pa(lt):mt({colorIndex:t??0,opacity:lt})}}function nm(t=0){return{type:Re.SMS,style:wa.Circle,color:mt({colorIndex:t,opacity:lt}),size:4}}function sm(t){return{type:Re.SLS,style:vr.Solid,color:mt({colorIndex:t,opacity:lt}),width:2}}function om(t=!1){return{type:Re.SMS,style:wa.Circle,color:t?pa(lt):mt({colorIndex:0,opacity:lt}),size:7}}function Tv(){return{type:x.SizePolicy,field:"",scaleType:us.Linear,minSize:5,maxSize:30}}function lm(t=!1){return{type:x.Overlays,trendLine:{type:x.Overlay,created:!1,visible:!0,symbol:{type:Re.SLS,style:vr.Solid,color:t?pa():mt({colorIndex:1}),width:2}}}}function dm(t){let e=t??"ObjectID";return{type:x.HeatSeries,id:x.HeatSeries,name:x.HeatSeries,y:"",x:"",dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels)}),query:{outStatistics:[{statisticType:le.Count,onStatisticField:e,outStatisticFieldName:"coutnt_objectt_id"}]}}}function cm(){return{type:x.ScatterSeries,id:x.ScatterSeries,name:x.ScatterSeries,x:"",y:"",markerSymbol:om(),overlays:lm(),dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels)})}}function lr(t,e){let i=[],a=t.xAxis,r=t.utilsStrings.statistics.count,n,s,o=ni({opacity:Xf});switch(e===x.HeatSeries?s=sn(r):(s=Qi(r),s.grid=o),e){case x.BarSeries:case x.HeatSeries:{n=sn(a);break}case x.ScatterSeries:{n=Qi(a),n.grid=o;break}case x.RadarSeries:case x.LineSeries:case x.HistogramSeries:{n=Qi(a);break}case x.BoxPlotSeries:{n=sn("");break}}return n!==void 0&&i.push(n,s),i}function pm(){return{type:x.GaugeNeedle,symbol:{type:Re.SFS,color:[0,0,0,200]}}}function um(t){let e=[],i=t.xAxis,a=Qi(i);return a.needle=pm(),e.push(a),e}function hm(t){let e=t.commonStrings,i=t.objectIDField??"ObjectID",a=`${le.Count}_${i}_0`.toUpperCase(),r=e.countSeries;return{type:x.LineSeries,id:r,name:r,query:{outStatistics:[{statisticType:le.Count,onStatisticField:i,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,lineSymbol:sm(t.seriesIndex),markerSymbol:nm(t.seriesIndex),dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels)}),temporalBinning:{unit:me.Day,size:0,timeAggregationType:gr.Start,trimIncompleteTimeInterval:!0,nullPolicy:cs.Interpolate}}}function Cv(t){return{...hm(t),type:x.RadarSeries}}function fm(t){return{type:Re.SFS,style:Sr.Solid,color:mt({colorIndex:t,opacity:lt})}}function Fv(t){let e=t.objectIDField??"ObjectID",i=t.commonStrings,a=`${le.Count}_${e}_0`.toUpperCase(),r=i.countSeries;return{type:x.BarSeries,id:r,name:r,query:{outStatistics:[{statisticType:le.Count,onStatisticField:e,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,fillSymbol:fm(t.seriesIndex),dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels),type:H.DataLabels})}}function Pv(t,e){let i=t.countSeries;return{name:i,type:x.BoxPlotSeries,id:i,fillSymbol:{type:Re.SFS,style:Sr.Solid,color:mt({colorIndex:e,opacity:lt})},query:{},x:Vn,y:""}}function mm(){return{type:x.PieTick,visible:!0,lineSymbol:ni({width:1,color:em})}}function ym(){return{type:Re.SFS,style:Sr.Solid}}function Ov(t,e){let i=`${le.Count}_${e}_0`.toUpperCase(),a=t.countSeries;return{type:x.PieSeries,id:a,name:a,query:{outStatistics:[{statisticType:le.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:i}],groupByFieldsForStatistics:[]},x:"",y:i,fillSymbol:ym(),dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels),type:H.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...En(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...En(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:mm()}}function Ev(t){let e=t.objectIDField??"ObjectID",i=`${le.Count}_${e}_0`.toUpperCase(),a="Series0";return{type:x.GaugeSeries,id:a,name:a,query:{outStatistics:[{statisticType:le.Count,onStatisticField:e,outStatisticFieldName:i}]},x:""}}function Xr(){return!1}function Av(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,rotated:Xr(),orderOptions:{data:{orderType:br.Category,orderBy:It.Ascending}},title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),axes:lr(t,x.BarSeries),series:[],legend:Ut()}}function $v(t,e=At()){return{version:Ot,type:x.Chart,id:e,rotated:Xr(),colorMatch:!0,orderOptions:{data:{orderType:br.Category,orderBy:It.Ascending}},title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),series:[],legend:Ut(),axes:lr(t,x.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function Dv(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,rotated:Xr(),orderOptions:{data:{orderType:br.Category,orderBy:It.Ascending}},title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),axes:lr(t,x.LineSeries),series:[],legend:Ut()}}function Lv(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:br.Category,orderBy:It.Ascending}},title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),axes:lr(t,x.RadarSeries),series:[],legend:Ut()}}function Rv(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:br.YValue,orderBy:It.Descending}},title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),series:[],legend:{...Ut(),displayNumericValue:!1,displayPercentage:!0}}}function kv(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),series:[],axes:um(t)}}function jv(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),axes:lr(t,x.ScatterSeries),series:[cm()],legend:Ut()}}function Nv(t,e){return{version:Ot,type:x.Chart,id:At(),title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),background:Gt(),axes:lr(t,x.HeatSeries),series:[dm(e)],legend:{...Ut(),position:Sa.Bottom}}}function gm(){return{type:x.Overlays,mean:qi(1),median:qi(2),standardDeviation:qi(3),comparisonDistribution:qi(4)}}function bm(){return{type:Re.SFS,style:Sr.Solid,color:mt({colorIndex:0,opacity:lt})}}function vm(){return{type:x.HistogramSeries,id:x.HistogramSeries,name:x.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:gm(),dataTransformationType:va.None,fillSymbol:bm(),dataLabels:J({text:"",visible:!1,font:ie(H.DataLabels)})}}function _v(t,e=At()){return{version:Ot,type:x.Chart,id:e,colorMatch:!0,title:J({text:Et(t),visible:!0,font:ie(H.ChartTitle)}),subtitle:J(),footer:J({text:"",visible:!0,font:ie(H.DescriptionText)}),background:Gt(),axes:lr(t,x.HistogramSeries),series:[vm()],legend:Ut()}}var on={behaviorAfterLimit:hc.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,maxHeatChartCellLimit:1e4};function Sm(t){let e={...on};return t!==void 0&&Object.keys(on).forEach(i=>{let a=i;e[a]=t[a]??on[a]}),e}function qv(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:200}}function Mv(t,e){let i;switch(t){case le.Average:{i=e.utilsStrings.statistics.mean;break}case le.ContinuousPercentile:{i=e.utilsStrings.statistics.median;break}case le.Sum:{i=e.utilsStrings.statistics.sum;break}case le.Minimum:{i=e.utilsStrings.statistics.minimum;break}case le.Maximum:{i=e.utilsStrings.statistics.maximum;break}case le.Variance:{i=e.utilsStrings.statistics.variance;break}case le.DiscretePercentile:{i=e.utilsStrings.statistics.discretePercentile;break}case le.NoAggregation:{i=e.utilsStrings.statistics.noAggregation;break}case le.Count:default:{i=e.utilsStrings.statistics.count;break}}return i}function Bv(t,e){let i;switch(t){case gr.End:{i=e.timeAggregationTypes.end;break}case gr.Start:{i=e.timeAggregationTypes.start;break}default:i="";break}return i}function wm(){return Vr.Side}function Wv(t){return t.utilsStrings.notAvailable}var Vv=0,Im="_arcgis_charts_outliers",xm="_arcgis_charts_z_score",zv=[210,210,210,255*lt],Uv=" percentage ";var ia=function(){return ia=Object.assign||function(t){for(var e,i=1,a=arguments.length;i<a;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ia.apply(this,arguments)},An={exports:{}},ye={},$n={exports:{}},dr={};function gc(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function Tm(t,e,i){}function Cm(t,e,i){}var Fm=/javascript\s*\:/img;function Pm(t,e){return Fm.test(e)?"":e}dr.whiteList=gc();dr.getDefaultWhiteList=gc;dr.onAttr=Tm;dr.onIgnoreAttr=Cm;dr.safeAttrValue=Pm;var Om={indexOf:function(t,e){var i,a;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,a=t.length;i<a;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var a,r;if(Array.prototype.forEach)return t.forEach(e,i);for(a=0,r=t.length;a<r;a++)e.call(i,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Hr=Om;function Em(t,e){t=Hr.trimRight(t),t[t.length-1]!==";"&&(t+=";");var i=t.length,a=!1,r=0,n=0,s="";function o(){if(!a){var p=Hr.trim(t.slice(r,n)),u=p.indexOf(":");if(u!==-1){var h=Hr.trim(p.slice(0,u)),c=Hr.trim(p.slice(u+1));if(h){var m=e(r,s.length,h,c,p);m&&(s+=m+"; ")}}}r=n+1}for(;n<i;n++){var l=t[n];if(l==="/"&&t[n+1]==="*"){var d=t.indexOf("*/",n+2);if(d===-1)break;n=d+1,r=n+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
|
|
5
5
|
`&&o()}return Hr.trim(s)}var Am=Em,Mi=dr,$m=Am;function rd(t){return t==null}function Dm(t){var e={};for(var i in t)e[i]=t[i];return e}function bc(t){t=Dm(t||{}),t.whiteList=t.whiteList||Mi.whiteList,t.onAttr=t.onAttr||Mi.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Mi.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Mi.safeAttrValue,this.options=t}bc.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,i=e.options,a=i.whiteList,r=i.onAttr,n=i.onIgnoreAttr,s=i.safeAttrValue,o=$m(t,function(l,d,p,u,h){var c=a[p],m=!1;if(c===!0?m=c:typeof c=="function"?m=c(u):c instanceof RegExp&&(m=c.test(u)),m!==!0&&(m=!1),u=s(p,u),!!u){var g={position:d,sourcePosition:l,source:h,isWhite:m};if(m){var y=r(p,u,g);return rd(y)?p+":"+u:y}else{var y=n(p,u,g);if(!rd(y))return y}}});return o};var Lm=bc;(function(t,e){var i=dr,a=Lm;function r(s,o){var l=new a(o);return l.process(s)}e=t.exports=r,e.FilterCSS=a;for(var n in i)e[n]=i[n]})($n,$n.exports);var zn=$n.exports,Un={indexOf:function(t,e){var i,a;if(Array.prototype.indexOf)return t.indexOf(e);for(i=0,a=t.length;i<a;i++)if(t[i]===e)return i;return-1},forEach:function(t,e,i){var a,r;if(Array.prototype.forEach)return t.forEach(e,i);for(a=0,r=t.length;a<r;a++)e.call(i,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,i=e.exec(t);return i?i.index:-1}},Rm=zn.FilterCSS,km=zn.getDefaultWhiteList,aa=Un;function vc(){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 Sc=new Rm;function jm(t,e,i){}function Nm(t,e,i){}function _m(t,e,i){}function qm(t,e,i){}function wc(t){return t.replace(Bm,"<").replace(Wm,">")}function Mm(t,e,i,a){if(i=Pc(i),e==="href"||e==="src"){if(i=aa.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(e==="background"){if(Bi.lastIndex=0,Bi.test(i))return""}else if(e==="style"){if(id.lastIndex=0,id.test(i)||(ad.lastIndex=0,ad.test(i)&&(Bi.lastIndex=0,Bi.test(i))))return"";a!==!1&&(a=a||Sc,i=a.process(i))}return i=Oc(i),i}var Bm=/</g,Wm=/>/g,Vm=/"/g,zm=/"/g,Um=/&#([a-zA-Z0-9]*);?/gim,Gm=/:?/gim,Hm=/&newline;?/gim,Bi=/((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,id=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ad=/u\s*r\s*l\s*\(.*/gi;function Ic(t){return t.replace(Vm,""")}function xc(t){return t.replace(zm,'"')}function Tc(t){return t.replace(Um,function(e,i){return i[0]==="x"||i[0]==="X"?String.fromCharCode(parseInt(i.substr(1),16)):String.fromCharCode(parseInt(i,10))})}function Cc(t){return t.replace(Gm,":").replace(Hm," ")}function Fc(t){for(var e="",i=0,a=t.length;i<a;i++)e+=t.charCodeAt(i)<32?" ":t.charAt(i);return aa.trim(e)}function Pc(t){return t=xc(t),t=Tc(t),t=Cc(t),t=Fc(t),t}function Oc(t){return t=Ic(t),t=wc(t),t}function Qm(){return""}function Zm(t,e){typeof e!="function"&&(e=function(){});var i=!Array.isArray(t);function a(s){return i?!0:aa.indexOf(t,s)!==-1}var r=[],n=!1;return{onIgnoreTag:function(s,o,l){if(a(s))if(l.isClosing){var d="[/removed]",p=l.position+d.length;return r.push([n!==!1?n:l.position,p]),n=!1,d}else return n||(n=l.position),"[removed]";else return e(s,o,l)},remove:function(s){var o="",l=0;return aa.forEach(r,function(d){o+=s.slice(l,d[0]),l=d[1]}),o+=s.slice(l),o}}}function Jm(t){for(var e="",i=0;i<t.length;){var a=t.indexOf("<!--",i);if(a===-1){e+=t.slice(i);break}e+=t.slice(i,a);var r=t.indexOf("-->",a);if(r===-1)break;i=r+3}return e}function Ym(t){var e=t.split("");return e=e.filter(function(i){var a=i.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),e.join("")}ye.whiteList=vc();ye.getDefaultWhiteList=vc;ye.onTag=jm;ye.onIgnoreTag=Nm;ye.onTagAttr=_m;ye.onIgnoreTagAttr=qm;ye.safeAttrValue=Mm;ye.escapeHtml=wc;ye.escapeQuote=Ic;ye.unescapeQuote=xc;ye.escapeHtmlEntities=Tc;ye.escapeDangerHtml5Entities=Cc;ye.clearNonPrintableCharacter=Fc;ye.friendlyAttrValue=Pc;ye.escapeAttrValue=Oc;ye.onIgnoreTagStripAll=Qm;ye.StripTagBody=Zm;ye.stripCommentTag=Jm;ye.stripBlankChar=Ym;ye.cssFilter=Sc;ye.getDefaultCSSWhiteList=km;var ua={},Mt=Un;function Km(t){var e=Mt.spaceIndex(t),i;return e===-1?i=t.slice(1,-1):i=t.slice(1,e+1),i=Mt.trim(i).toLowerCase(),i.slice(0,1)==="/"&&(i=i.slice(1)),i.slice(-1)==="/"&&(i=i.slice(0,-1)),i}function Xm(t){return t.slice(0,2)==="</"}function ey(t,e,i){var a="",r=0,n=!1,s=!1,o=0,l=t.length,d="",p="";e:for(o=0;o<l;o++){var u=t.charAt(o);if(n===!1){if(u==="<"){n=o;continue}}else if(s===!1){if(u==="<"){a+=i(t.slice(r,o)),n=o,r=o;continue}if(u===">"){a+=i(t.slice(r,n)),p=t.slice(n,o+1),d=Km(p),a+=e(n,a.length,d,p,Xm(p)),r=o+1,n=!1;continue}if(u==='"'||u==="'")for(var h=1,c=t.charAt(o-h);c.trim()===""||c==="=";){if(c==="="){s=u;continue e}c=t.charAt(o-++h)}}else if(u===s){s=!1;continue}}return r<t.length&&(a+=i(t.substr(r))),a}var ty=/[^a-zA-Z0-9\\_:.-]/gim;function ry(t,e){var i=0,a=0,r=[],n=!1,s=t.length;function o(h,c){if(h=Mt.trim(h),h=h.replace(ty,"").toLowerCase(),!(h.length<1)){var m=e(h,c||"");m&&r.push(m)}}for(var l=0;l<s;l++){var d=t.charAt(l),p,u;if(n===!1&&d==="="){n=t.slice(i,l),i=l+1,a=t.charAt(i)==='"'||t.charAt(i)==="'"?i:ay(t,l+1);continue}if(n!==!1&&l===a){if(u=t.indexOf(d,l+1),u===-1)break;p=Mt.trim(t.slice(a+1,u)),o(n,p),n=!1,l=u,i=l+1;continue}if(/\s|\n|\t/.test(d))if(t=t.replace(/\s|\n|\t/g," "),n===!1)if(u=iy(t,l),u===-1){p=Mt.trim(t.slice(i,l)),o(p),n=!1,i=l+1;continue}else{l=u-1;continue}else if(u=ny(t,l-1),u===-1){p=Mt.trim(t.slice(i,l)),p=nd(p),o(n,p),n=!1,i=l+1;continue}else continue}return i<t.length&&(n===!1?o(t.slice(i)):o(n,nd(Mt.trim(t.slice(i))))),Mt.trim(r.join(" "))}function iy(t,e){for(;e<t.length;e++){var i=t[e];if(i!==" ")return i==="="?e:-1}}function ay(t,e){for(;e<t.length;e++){var i=t[e];if(i!==" ")return i==="'"||i==='"'?e:-1}}function ny(t,e){for(;e>0;e--){var i=t[e];if(i!==" ")return i==="="?e:-1}}function sy(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function nd(t){return sy(t)?t.substr(1,t.length-2):t}ua.parseTag=ey;ua.parseAttr=ry;var oy=zn.FilterCSS,st=ye,Ec=ua,ly=Ec.parseTag,dy=Ec.parseAttr,Zi=Un;function Wi(t){return t==null}function cy(t){var e=Zi.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=Zi.trim(t.slice(e+1,-1));var i=t[t.length-1]==="/";return i&&(t=Zi.trim(t.slice(0,-1))),{html:t,closing:i}}function py(t){var e={};for(var i in t)e[i]=t[i];return e}function uy(t){var e={};for(var i in t)Array.isArray(t[i])?e[i.toLowerCase()]=t[i].map(function(a){return a.toLowerCase()}):e[i.toLowerCase()]=t[i];return e}function Ac(t){t=py(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=st.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=uy(t.whiteList||t.allowList):t.whiteList=st.whiteList,t.onTag=t.onTag||st.onTag,t.onTagAttr=t.onTagAttr||st.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||st.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||st.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||st.safeAttrValue,t.escapeHtml=t.escapeHtml||st.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new oy(t.css))}Ac.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,i=e.options,a=i.whiteList,r=i.onTag,n=i.onIgnoreTag,s=i.onTagAttr,o=i.onIgnoreTagAttr,l=i.safeAttrValue,d=i.escapeHtml,p=e.cssFilter;i.stripBlankChar&&(t=st.stripBlankChar(t)),i.allowCommentTag||(t=st.stripCommentTag(t));var u=!1;i.stripIgnoreTagBody&&(u=st.StripTagBody(i.stripIgnoreTagBody,n),n=u.onIgnoreTag);var h=ly(t,function(c,m,g,y,S){var C={sourcePosition:c,position:m,isClosing:S,isWhite:Object.prototype.hasOwnProperty.call(a,g)},w=r(g,y,C);if(!Wi(w))return w;if(C.isWhite){if(C.isClosing)return"</"+g+">";var P=cy(y),O=a[g],A=dy(P.html,function(_,R){var F=Zi.indexOf(O,_)!==-1,D=s(g,_,R,F);return Wi(D)?F?(R=l(g,_,R,p),R?_+'="'+R+'"':_):(D=o(g,_,R,F),Wi(D)?void 0:D):D});return y="<"+g,A&&(y+=" "+A),P.closing&&(y+=" /"),y+=">",y}else return w=n(g,y,C),Wi(w)?d(y):w},d);return u&&(h=u.remove(h)),h};var hy=Ac;(function(t,e){var i=ye,a=ua,r=hy;function n(o,l){var d=new r(l);return d.process(o)}e=t.exports=n,e.filterXSS=n,e.FilterXSS=r,function(){for(var o in i)e[o]=i[o];for(var l in a)e[l]=a[l]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=t.exports)})(An,An.exports);var Tr=An.exports,fy=function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},my=function(){function t(e,i){var a=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=ia(ia({},Tr.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(n,s,o,l){return n==="a"&&s==="href"||(n==="img"||n==="source")&&s==="src"?a.sanitizeUrl(o):Tr.safeAttrValue(n,s,o,l)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var r;e&&!i?r=e:e&&i?(r=Object.create(this.arcgisFilterOptions),r.css={whiteList:this.arcgisCSSWhiteList},Object.keys(e).forEach(function(n){if(n==="whiteList")r.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,e.whiteList||{}]);else if(n==="css"){var s=e.css.whiteList;s!=null&&e.css instanceof Object&&Object.keys(s).forEach(function(o){return r.css.whiteList[o]=s[o]})}else r[n]=e[n]})):(r=Object.create(this.arcgisFilterOptions),r.whiteList=this.arcgisWhiteList,r.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=r,this._xssFilter=new Tr.FilterXSS(r)}return t.prototype.sanitize=function(e,i){switch(i===void 0&&(i={}),typeof e){case"number":return isNaN(e)||!isFinite(e)?null:e;case"boolean":return e;case"string":return this._xssFilter.process(e);case"object":return this._iterateOverObject(e,i);default:return i.allowUndefined&&typeof e>"u"?void 0:null}},t.prototype.sanitizeUrl=function(e,i){var a=(i??{}).isProtocolRequired,r=a===void 0?!0:a,n=this._trim(e.substring(0,e.indexOf(":"))),s=e==="/",o=/^#/.test(e),l=n&&this.allowedProtocols.indexOf(n.toLowerCase())>-1;return s||o||l?Tr.escapeAttrValue(e):!n&&!r?Tr.escapeAttrValue("https://".concat(e)):""},t.prototype.sanitizeHTMLAttribute=function(e,i,a,r){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(e,i,a,r):Tr.safeAttrValue(e,i,a,r)},t.prototype.validate=function(e,i){i===void 0&&(i={});var a=this.sanitize(e,i);return{isValid:e===a,sanitized:a}},t.prototype.encodeHTML=function(e){var i=this;return String(e).replace(/[&<>"'\/]/g,function(a){return i._entityMap[a]})},t.prototype.encodeAttrValue=function(e){var i=/^[a-zA-Z0-9]$/;return String(e).replace(/[\x00-\xFF]/g,function(a,r){return i.test(a)?a:"&#x".concat(Number(e.charCodeAt(r)).toString(16),";")})},t.prototype._extendObjectOfArrays=function(e){var i={};return e.forEach(function(a){Object.keys(a).forEach(function(r){Array.isArray(a[r])&&Array.isArray(i[r])?i[r]=i[r].concat(a[r]):i[r]=a[r]})}),i},t.prototype._iterateOverObject=function(e,i){var a=this;i===void 0&&(i={});try{var r=!1,n=void 0;if(Array.isArray(e))n=e.reduce(function(o,l){var d=a.validate(l,i);return d.isValid?o.concat([l]):(r=!0,o.concat([d.sanitized]))},[]);else if(fy(e)){var s=Object.keys(e);n=s.reduce(function(o,l){var d=e[l],p=a.validate(d,i);return p.isValid?o[l]=d:(r=!0,o[l]=p.sanitized),o},{})}else return i.allowUndefined&&typeof e>"u"?void 0:null;return r?n:e}catch{return null}},t.prototype._trim=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},t}(),M={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"},Gv={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function Hv(t){return t?.colorMatch??!1}function Qv(t){let e=Xr();if(t!==void 0){let i=qe(t.series);(i===x.BarSeries||i===x.LineSeries||i===x.ComboLineAndBarSeries||i===x.BoxPlotSeries)&&(e=t.rotated??Xr())}return e}function Zv(t){return t?.map(e=>e.type)??[]}function yy(t){let e=t?.stackedType;if(e===void 0&&t!==void 0){let i=qe(t.series);(i===x.BarSeries||i===x.LineSeries||i===x.ComboLineAndBarSeries||i===x.RadarSeries)&&(e=wm())}return e}function gy(t){let e=t;return e=e.replace(/'/gu,"''"),e=e.replace(/[/\\"|[\]\\]/gu,"\\$&"),e}function by(t){let e=!1;if(typeof t!="number"){let i=new Intl.Segmenter;e=Array.from(i.segment(t),a=>a.segment).some(a=>a.charCodeAt(0)>255)}return e}function vy(t){let e=t,i="";t.startsWith("'")&&t.endsWith("'")&&(e=t.slice(1,-1),i="'"),e=e.replace(/'/gu,"''");let a="";return by(e)&&(a="N"),`${a}${i}${e}${i}`}function $c(t){let{value:e,keepSurroundingQuotes:i,escape:a}=t,r=e?.trim();if(!yt(r)){let n="";r.startsWith("'")&&r.endsWith("'")&&(r=r.slice(1,-1),i&&(n="'")),a!==!1&&(r=gy(r)),r=`${n}${r}${n}`}return r}function Jv(t){let{count:e,seriesCount:i,chartType:a,chartLimits:r}=t,{behaviorAfterLimit:n}=r??{},s=!0;if(n!==hc.RenderUpToTheLimit){let{maxBarChartSeriesCount:o,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:d,maxBarTwoSeriesCountTotal:p,maxBarThreePlusSeriesCountPerSeries:u,maxBarThreePlusSeriesCountTotal:h,maxLineChartSeriesCount:c,maxLineUniqueSeriesCountTotal:m,maxLineTwoSeriesCountPerSeries:g,maxLineTwoSeriesCountTotal:y,maxLineThreePlusSeriesCountPerSeries:S,maxLineThreePlusSeriesCountTotal:C,maxPieChartSliceCountTotal:w,maxGaugeByFeaturesLimit:P,maxBoxPlotSeriesCount:O,maxBoxUniqueSeriesCountTotal:A,maxBoxTwoSeriesCountTotal:_,maxBoxTwoSeriesCountPerSeries:R,maxBoxThreePlusSeriesCountTotal:F,maxBoxThreePlusSeriesCountPerSeries:D,maxHeatChartCellLimit:L}=Sm(r);switch(a){case x.BarSeries:case x.ComboLineAndBarSeries:{let j=e/i;i<=o?i===0?s=!0:i===1?s=e<=l:i===2?s=e<=p&&j<=d:i>2&&(s=e<=h&&j<=u):s=!1}break;case x.LineSeries:case x.RadarSeries:{let j=e/i;i<=c?i===0?s=!0:i===1?s=e<=m:i===2?s=e<=y&&j<=g:i>2&&(s=e<=C&&j<=S):s=!1}break;case x.PieSeries:s=e<=w;break;case x.BoxPlotSeries:{let j=e/i;i<=O?i===0?s=!0:i===1?s=e<=A:i===2?s=e<=_&&j<=R:i>2&&(s=e<=F&&j<=D):s=!1}break;case x.HeatSeries:s=e<=L;break;case x.GaugeSeries:s=e<=P;break}}return s}function Yv(t=[],e){let i=t.find(a=>a.name===e)?.alias;return i!==""?i??e:e}function Kv(t=[],e){let i=t.find(a=>a.alias===e)?.name;return i!==""?i??e:e}function Xv(t){let e=!1;switch(qe(t)){case x.HeatSeries:case x.PieSeries:e=!0;break;case x.BarSeries:case x.LineSeries:case x.RadarSeries:case x.ComboLineAndBarSeries:case x.BoxPlotSeries:e=t.length>1;break;case x.HistogramSeries:case x.ScatterSeries:{let i=t[0];e=i.overlays!==void 0&&Object.values(i.overlays).some(a=>a.created===!0);break}}return e}function Sy(t){let e=!0;return qe(t.series)===x.ScatterSeries&&(e=t.series.length===1),e}function wy(t){let e=!0;return qe(t.series)===x.HistogramSeries&&(e=t.series.length<=1&&t.series[0].type===x.HistogramSeries&&(!("dataTransformationType"in t.series[0])||t.series[0].dataTransformationType!==void 0&&Object.values(va).includes(t.series[0].dataTransformationType))),e}function Iy(t){let e=!0;return qe(t.series)===x.PieSeries&&(e=t.series.length<=1),e}function eS(t,e){let i=qe(e?.series),a=i!==void 0&&t.includes(i);if(a&&e!==void 0)switch(i){case x.HistogramSeries:a=wy(e);break;case x.ScatterSeries:a=Sy(e);break;case x.PieSeries:a=Iy(e);break}return a}function yt(t){return t==null||typeof t=="string"&&t.trim()===""}function xy(t,e){let i=e.find(a=>a in t);return{isInItem:i!==void 0,expr:i}}function tS(t){return xy(t,Kf)}function rS(t,e){let i;switch(t){case me.Second:i=e.seconds??"";break;case me.Minute:i=e.minutes??"";break;case me.Hour:i=e.hours??"";break;case me.Day:i=e.days??"";break;case me.Week:i=e.weeks??"";break;case me.Month:i=e.months??"";break;case me.Year:i=e.years??"";break;default:i="";break}return i}function iS(t){let e;switch(t){case Ct.Mean:e=1;break;case Ct.Median:e=2;break;case Ct.StdDev:e=3;break;case Ct.Normal:default:e=0;break}return e}function aS(t,e){if(e!==void 0){let{seriesId:i,overlayType:a,visible:r}=t.detail,n;switch(a){case Ct.Mean:e.series[0].type===x.HistogramSeries&&(n=e.series[0].overlays?.mean);break;case Ct.Median:e.series[0].type===x.HistogramSeries&&(n=e.series[0].overlays?.median);break;case Ct.StdDev:e.series[0].type===x.HistogramSeries&&(n=e.series[0].overlays?.standardDeviation);break;case Ct.Normal:e.series[0].type===x.HistogramSeries&&(n=e.series[0].overlays?.comparisonDistribution);break;case Ct.Trendline:e.series[0].type===x.ScatterSeries&&(n=e.series[0].overlays?.trendLine);break;default:n=e.series.find(s=>s.id===i);break}n!==void 0&&(n.visible=r)}}function nS(t){return new my().sanitize(t)}function sS(t){return t!=null&&!Number.isNaN(t)&&Number.isFinite(t)}function oS(t,e){let i;return e!==void 0&&(i={...e,rotated:t}),i}function lS(t,e){let i={fieldToSort:""};if(!yt(t)){let a=t.trim(),r=a.split(" ").at(-1)?.toUpperCase();r===It.Ascending||r===It.Descending?i={fieldToSort:a.substring(0,a.lastIndexOf(" ")),orderBy:r}:(i={fieldToSort:a},e!==!1&&(i.orderBy=It.Ascending))}return i}function dS(t){return t===M.BarAndLineSplitBy||t===M.BarAndLineSplitByNoAggregation||t===M.BoxPlotMonoFieldAndSplitBy||t===M.BoxPlotMultiFieldsAndSplitBy||t===M.BoxPlotMonoFieldAndCategoryAndSplitBy}function cS(t){return t?.selectionOIDs===void 0||t.selectionOIDs.length===0}function pS(t={arrayA:[],arrayB:[],getKey:e=>e}){let{arrayA:e,arrayB:i,getKey:a}=t;if(i.length===0||e.length===0)return e;let r=new Map;i.forEach((l,d)=>{let p=a(l);r.set(p,d)});let n=[],s=[];e.forEach((l,d)=>{let p=a(l);r.has(p)&&(n.push(d),s.push(l))}),s.sort((l,d)=>{let p=a(l),u=a(d);return r.get(p)-r.get(u)});let o=[...e];return n.forEach((l,d)=>{o[l]=s[d]}),o}var ar=["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","21.1.0","22.0.0","23.0.0","23.1.0","23.2.0","23.3.0","24.0.0","24.1.0","24.2.0","24.3.0","24.4.0"],Ty="1.0.0",Cy="unrecognized.version",Fy=[x.LineSeries,x.BarSeries,x.ComboLineAndBarSeries,x.RadarSeries];function ln(t,e){let i=0;if(t!==e){let a=t.split("."),r=e.split(".");for(let n=0;n<a.length;n+=1){let s=Number.parseInt(a[n],10),o=Number.parseInt(r[n],10);if(s>o||Number.isNaN(o)){i=1;break}if(s<o){i=-1;break}}}return i}function Py(t){return t!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(t):!1}function Oy(t){let e=Lt.Same,i=[];if(Py(t)&&t!==void 0){ar.sort(ln);let a=ln(t,ar[ar.length-1]);if(a===1?e=Lt.Newer:a===-1&&(e=Lt.Older),e===Lt.Newer||e===Lt.Same)i.push(t);else{for(let r=ar.length-2;r>=0;r-=1)if(ln(t,ar[r])>=0){i=ar.slice(r,ar.length);break}i.length===0&&i.push(Ty)}}else e=Lt.Unrecognized,i.push(Cy);return{versionStatus:e,versions:i}}function Ey(t){let{series:e}=t,i=("showMean"in t?t.showMean:!1)===!0?e.find(a=>a.type===x.LineSeries):e[0];return i??=e[0],i}function uS(t,e){let i=t!==null?t.toString():null,a=e!=null?e.toString():null;return a!==null&&a!==i?Re.SFS:Re.SLS}function Gn(t,e){let i="";return t!==void 0&&t.includes("=")&&(i=e!==!1?$c({value:t.split("=")[0]}):t.split("=")[0].trim()),i}function si(t){let{where:e,normalize:i,keepSurroundingQuotes:a,escape:r}=t,n="";return e!==void 0&&e.includes("=")&&(n=e.split("=").slice(1).join("=").trim(),n==="null"?n=null:n.trim()!==""&&!Number.isNaN(Number(n))?n=Number(n):i===!1?r===!0&&(n=vy(n)):n=$c({value:n,keepSurroundingQuotes:a,escape:r})),n}function Ar(t){let e=!1;if(t===void 0||t==="")e=!0;else if(t.includes("=")){let i=Gn(t,!1),a=si({where:t,normalize:!1});e=i===`${a}`}return e}function hS(t){let{where:e,normalize:i,escape:a}=t,r=i===void 0?!0:i,n=Gn(e),s=si({where:e,normalize:r,keepSurroundingQuotes:!0,escape:a}),o=e;return n!==""&&s!==""&&(o=`${n}=${s}`),o}function Ay(t){let e=M.PieFromCategory;return t[0].query?.outStatistics===void 0?e=M.PieNoAggregation:t[0].query?.groupByFieldsForStatistics===void 0&&(e=M.PieFromFields),e}function $y(t){let e=M.BarAndLineMonoField,i=t[0].query?.where;return t[0].query?.groupByFieldsForStatistics===void 0&&(t[0].query?.outStatistics??[]).length>0?e=M.BarAndLineFromFields:i===void 0&&t[0].query?.outStatistics===void 0?e=M.BarAndLineNoAggregation:Ar(i)?t.length>1&&(e=M.BarAndLineMultiFields):e=t[0].query?.outStatistics===void 0?M.BarAndLineSplitByNoAggregation:M.BarAndLineSplitBy,e}function Dy(t){let e=M.BoxPlotMonoField,i=t.length===1,a=t.find(o=>o.type===x.LineSeries)??t[0],{x:r}=a,n="y"in a?a.y:"",s=a.query?.where;switch(r){case Vn:typeof n=="object"&&n.length>1?Ar(s)?i&&(e=M.BoxPlotMultiFields):e=M.BoxPlotMultiFieldsAndSplitBy:i?e=M.BoxPlotMonoField:Ar(s)||(e=M.BoxPlotMonoFieldAndSplitBy);break;default:i?e=M.BoxPlotMonoFieldAndCategory:Ar(s)?e=M.BoxPlotMultiFieldsAndCategory:e=M.BoxPlotMonoFieldAndCategoryAndSplitBy;break}return e}function Pt(t){let e=M.NonSpecific;if(t?.[0]!==void 0)switch(qe(t)){case x.PieSeries:e=Ay(t);break;case x.RadarSeries:case x.BarSeries:case x.LineSeries:case x.ComboLineAndBarSeries:e=$y(t);break;case x.BoxPlotSeries:e=Dy(t);break}return e}function fS(t){let{seriesConfig:e,xAxisValueFormatType:i,setTimeBinningInfoWhenNotProvided:a}=t,r=!1;if(Ly(e)&&e.binTemporalData!==!1&&i===x.DateAxisFormat){let n=Pt([e]);if(e.temporalBinning&&n!==M.BarAndLineNoAggregation&&n!==M.BarAndLineSplitByNoAggregation){let{unit:s,size:o}=e.temporalBinning;r=a===!0||o!==void 0&&o>0&&s!==void 0}}return r}function Ly(t){return Fy.includes(t.type)}function mS(t,e){return JSON.stringify(t.dataFilters)!==JSON.stringify(e.dataFilters)}var de={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"};function Ry(t){let e=t===void 0||t==="";return{[de.Average]:`${e?"":`${t}_`}${de.Average}`,[de.Min]:`${e?"":`${t}_`}${de.Min}`,[de.Max]:`${e?"":`${t}_`}${de.Max}`,[de.FirstQuartile]:`${e?"":`${t}_`}${de.FirstQuartile}`,[de.Median]:`${e?"":`${t}_`}${de.Median}`,[de.ThirdQuartile]:`${e?"":`${t}_`}${de.ThirdQuartile}`,[de.IQR]:`${e?"":`${t}_`}${de.IQR}`,[de.Outlier]:`${e?"":`${t}_`}${de.Outlier}`,[de.StandardDeviation]:`${e?"":`${t}_`}${de.StandardDeviation}`}}function ky(t){return t.subType===ps.FeatureGauge}function yS(t){let e;return t!==void 0&&("bins"in t?e=t.bins:"dataItems"in t&&(e=t.dataItems)),e}function jy(t){return t===M.BoxPlotMultiFields||t===M.BoxPlotMultiFieldsAndCategory||t===M.BoxPlotMultiFieldsAndSplitBy}function na(t){let{key:e,y:i,chartSubType:a,splitBy:r,splitByValue:n,showOutliers:s,standardizeValues:o}=t,l=n,d=Ry(i)[e];return s===!0&&(e===de.Min||e===de.Max)&&(d=`${d}${Im}`),o===!0&&(jy(a)||e===de.Outlier)&&(d=`${d}${xm}`),(n===void 0||`${n}`.trim()==="")&&(l=si({where:r,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(d=`${l}${d!==""?`_${d}`:""}`),d}function dn(t){let{dataItem:e,y:i,splitBy:a,showOutliers:r}=t,n=na({key:de.FirstQuartile,y:i,splitBy:a,showOutliers:r}),s=na({key:de.ThirdQuartile,y:i,splitBy:a,showOutliers:r});return Number.isFinite(e[n])||Number.isFinite(e[s])}function Ny(t){let{configSeries:e,boxPlotDataItem:i,yList:a,showOutliers:r}=t,n=Pt(e),s=!1;switch(n){case M.BoxPlotMonoField:case M.BoxPlotMultiFields:case M.BoxPlotMonoFieldAndCategory:s=dn({dataItem:i,showOutliers:r});break;case M.BoxPlotMultiFieldsAndCategory:s=a.some(o=>dn({dataItem:i,y:o,showOutliers:r}));break;case M.BoxPlotMonoFieldAndSplitBy:case M.BoxPlotMultiFieldsAndSplitBy:case M.BoxPlotMonoFieldAndCategoryAndSplitBy:s=e.some(o=>dn({dataItem:i,splitBy:o.query?.where,showOutliers:r}));break;default:s=!1;break}return s}function Dc(t){return t.map(e=>e.id).filter(e=>e!==void 0)}function sa(t,e){let i=[],a=e??Dc(t),r=Pt(t);return i=t.filter(n=>a.includes(n.id)).map(n=>{let s="y"in n?n.y:void 0;return s!==void 0&&r===M.BarAndLineSplitByNoAggregation&&(s=`${s.toString()}_${si({where:n.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),s}).filter(n=>n!==void 0),Array.from(new Set(i.flat()))}function _y(t){let{seriesConfig:e,filteredSeriesIds:i,showMean:a}=t,r=[];if(a===!0){let n=e.find(s=>s.type===x.BoxPlotSeries);n!==void 0&&"y"in n&&(r=[n.y].flat())}else r=sa(e,i);return r}function _t(t,e){return t===null&&e===!0||Number.isFinite(t)}function qy(t){let{dataItem:e,x:i,y:a,nullAsValid:r=!1}=t;return e[i]!==void 0&&(typeof e[i]!="number"||Number.isFinite(e[i]))&&_t(e[a],r)}function gS(t){let{chartConfig:e,nullAsValid:i=!1,dataSet:a}=t,r=!0;if(e!==void 0){let n=qe(e.series);if(a===void 0||a.length===0)r=!0;else{let s=sa(e.series);r=!a.some(o=>{let l=!1;switch(n){case x.HistogramSeries:{let d=o;l=_t(d.minValue,i)&&_t(d.maxValue,i)}break;case x.ScatterSeries:{let d=o,{x:p,y:u}=e.series[0];l=_t(d[p],i)&&_t(d[u],i)}break;case x.ComboLineAndBarSeries:case x.RadarSeries:case x.LineSeries:case x.BarSeries:{let d=o,{x:p}=e.series[0];l=s.some(u=>qy({dataItem:d,x:p,y:u,nullAsValid:i}));break}case x.BoxPlotSeries:{let d=e.series,{showOutliers:p}=e;l=Ny({configSeries:d,boxPlotDataItem:o,yList:s,showOutliers:p});break}case x.PieSeries:{let d=o,{x:p,y:u}=e.series[0];Pt(e.series)===M.PieFromFields&&(p=Rn,u=hd);let h=d[u];l=d[p]!==void 0&&d[p]!==null&&!ls(h)&&_t(Number(h),i)}break;case x.GaugeSeries:{let{x:d}=e.series[0];l=_t(o[d],i)}break;case x.HeatSeries:l=a.some(d=>_t(d[tm.valueField],i));break}return l})}}return r}function My(t,e){let i=new Map,a=e??Dc(t);return t.forEach(r=>{if(a.includes(r.id)&&"y"in r){let n=i.get(r.type)??[];n.push(r.y),i.set(r.type,n)}}),i}function By(t){let{seriesConfig:e,filteredSeriesIds:i,filteredData:a}=t,r=My(e,i),n=e.find(l=>l.type===x.LineSeries||l.type===x.RadarSeries)?.stackNegativeValuesToBaseline??!0,s=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER;return a.forEach((l,d)=>{r.forEach(p=>{if(n){let u=[],h=[];for(let c=0;c<p.length;c+=1){let m=l[p[c]];Number.isFinite(m)&&(m<0?h[d]=(h[d]??0)+m:u[d]=(u[d]??0)+m)}u=u.filter(c=>Number.isFinite(c)).sort((c,m)=>c-m),h=h.filter(c=>Number.isFinite(c)).sort((c,m)=>c-m),s=Math.max(s,u.length>0?u[u.length-1]:h[h.length-1]),o=Math.min(o,h.length>0?h[0]:u[0])}else{let u=0;for(let h=0;h<p.length;h+=1){let c=l[p[h]];u+=c,s=Math.max(s,u),o=Math.min(o,u)}}})}),{stackedMinY:o,stackedMaxY:s}}function Wy(t){let{dataItem:e,...i}=t,a=na({key:de.Min,...i}),r=na({key:de.Max,...i}),n=e[a],s=e[r];return{min:n,max:s}}function bS(t){let e=Number.NaN,i=Number.NaN,a,r,{chartConfig:n,chartData:s,filteredSeriesIds:o}=t,{series:l}=n;if(l?.length>0){let{x:d}=l[0],p=s.filter(h=>h[d]!==null);[a,r]=zr(p,h=>h[d]),n.axes?.[1]?.valueFormat.type===x.DateAxisFormat&&a!==void 0&&r!==void 0&&([a,r]=[new Date(a).valueOf(),new Date(r).valueOf()]);let u=qe(n.series);if(u===x.HistogramSeries&&s.length>0){let h=s[0]?.[td.Start],c=s[s.length-1]?.[td.End];a=typeof h=="number"?h:a,r=typeof c=="number"?c:r}else if(u===x.BoxPlotSeries){e=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;let h=sa(l,o),c=Pt(l),m="standardizeValues"in n?n.standardizeValues===!0:void 0,g=n.series.map(y=>y.visible!==!1?si({where:y.query?.where}):"");g.length===0&&g.push(" ");for(let y=0;y<p.length;y+=1)for(let S=0;S<h.length;S+=1){let C=c===M.BoxPlotMultiFieldsAndCategory?h[S]:void 0;for(let w=0;w<g.length;w+=1){let{min:P,max:O}=Wy({y:C,splitByValue:g[w],chartSubType:c,showOutliers:!1,standardizeValues:m,dataItem:p[y]});P!=null&&P<e&&(e=P),O!=null&&O>i&&(i=O)}}}else switch(yy(n)){case Vr.Stacked100:{e=Number.NaN,i=Number.NaN;break}case Vr.Stacked:{let{stackedMinY:h,stackedMaxY:c}=By({seriesConfig:l,filteredData:p,filteredSeriesIds:o});e=h,i=c;break}case Vr.Side:default:{e=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;let h=sa(l,o);for(let c=0;c<h.length;c+=1){let m=h[c],[g,y]=zr(p,S=>S[m]);g!==void 0&&g<e&&(e=g),y!==void 0&&y>i&&(i=y)}break}}}return{minY:e,maxY:i,minX:a,maxX:r}}function Lc(t){let{outTimeZone:e=Intl.DateTimeFormat().resolvedOptions().timeZone,dataTimeZone:i="UTC",runsOnClientQueryEngine:a}=t,r="",n=ue.now().setZone(e),s=n.offset/60,o=i?n.setZone(i).offset/60:0,l=s-o;return l!==0&&(a?r=`${l>0?"+":"-"}1*INTERVAL '${Math.abs(l)}' HOUR `:r=l>0?`+INTERVAL '${Math.abs(l)}:00:01' HOUR TO SECOND`:`-INTERVAL '${Math.abs(l)-1}:59:59' HOUR TO SECOND`),r}function vS(t,e){let i=Lc({}),a=`EXTRACT(YEAR FROM ${t} ${i})`,r=`EXTRACT(MONTH FROM ${t} ${i})`,n=`EXTRACT(DAY FROM ${t} ${i})`,s=`EXTRACT(HOUR FROM ${t} ${i})`,o=`EXTRACT(MINUTE FROM ${t} ${i})`,l=`EXTRACT(SECOND FROM ${t} ${i})`,d=[];switch(e){case me.Second:d=[a,r,n,s,o,l];break;case me.Minute:d=[a,r,n,s,o];break;case me.Hour:d=[a,r,n,s];break;case me.Day:case me.Week:case me.Month:case me.Year:d=[a,r,n];break}return d}var dt=class extends Error{constructor(e,i,a){super(i),this.name=e,this.details=a}},ct={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound"};function SS(t){return t!==void 0&&(!("url"in t)||!t.url)}function oi(t){return t!==void 0&&"layer"in t}function Vy(t){return t!==void 0&&"type"in t&&t.type==="feature"}function zy(t){return t!==void 0&&"type"in t&&t.type==="subtype-group"}function ha(t){return t!==void 0&&"type"in t&&t.type==="subtype-sublayer"}function wS(t){return Vy(t)||ha(t)}function Ee(t){return ha(t)?t.parent:t}function Rc(t){return t.capabilities?.query?.supportsDistance||Ee(t).sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function Uy(t,e){return t.capabilities?.queryAttributeBins?.supportsFixedInterval===!0&&t.capabilities?.queryAttributeBins?.supportsStackBy&&!oi(e)}function Gy(t,e){return t!==void 0&&(oi(t)||"capabilities"in t&&t.capabilities?.queryAttributeBins?.supportsDate===!0&&(yt(e)||t.capabilities?.queryAttributeBins?.supportsStackBy))}function IS(t){let e=!1,i=Ee($e(t)).sourceJSON;if(i){let a=i.queryBinsCapabilities?.supportsFixedIntervalBin,r=i.queryBinsCapabilities?.supportedStatisticTypes,n=[le.Maximum,le.Count].every(s=>r?.includes(s.toUpperCase())||r?.includes(s.toLowerCase()));e=a&&n}return e}function xS(t){let e;return oi(t)?e=t.layer:e=t,e}function $e(t){let e;return oi(t)?e=t.layer:e=t,e}function Hy(t){let e=!1,i=Ee(t).sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],a=t.capabilities?.query.supportedSpatialAggregationStatistics??{};return e=i.includes("EnvelopeAggregate")||"envelope"in a&&a.envelope===!0,e}function TS(t){let{chartConfig:e,queryObject:i}=t,a,r=$e(i);return r&&(a={id:r.id,layerType:"ArcGISFeatureLayer"},r.url&&(a.url=r.url)),{...e,iLayer:a}}var ei=new Map;function Qy(t){let e;switch(t){case Xt.Feet:e="esriSRUnit_Foot";break;case Xt.Miles:e="esriSRUnit_StatuteMile";break;case Xt.NauticalMiles:e="esriSRUnit_NauticalMile";break;case Xt.USNauticalMiles:e="esriSRUnit_USNauticalMile";break;case Xt.Meters:e="esriSRUnit_Meter";break;case Xt.Kilometers:e="esriSRUnit_Kilometer";break}return e}async function CS(t){let{queryObject:e,queryConfig:i,outputFormat:a,dataFormat:r,outAnalytics:n}=t,{where:s,geometry:o,distance:l,units:d,timeExtent:p}=i,u,h=$e(e),c=Ee(h),m={query:{where:ti([s,c.definitionExpression])}},g=Hn(o)?.extent?.toJSON();if(g!==void 0){let S=Qy(d),{xmin:C,ymin:w,xmax:P,ymax:O}=g;m.query={...m.query,geometryType:"esriGeometryEnvelope",geometry:`${C},${w},${P},${O}`,distance:l,units:S,inSR:o?.spatialReference?.wkid}}p&&(m.query.time=`${p[0]},${p[1]}`);let y=`${c.url}/${c.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;try{u=(await cn(y,m)).data?.features?.[0]?.attributes}catch(S){let C=(await rt(it(document.documentElement).t9nLocale,tt("./assets/common/t9n"),"messages.")).errorStrings;throw new dt(ct.QueryFeaturesError,C.errors.queryError,S)}return u}function Zy(t,e){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`,stackAlias:`charts_stack_alias_${e}`}}async function FS(t){let{chartConfig:e,queryObject:i,queryConfig:a,errorStrings:r}=t,n,s=$e(i),o=Uy(s,i);if(o&&i&&"queryAttributeBins"in i&&e.series[0].type===x.HeatSeries){let{x:l,y:d,xTemporalBinning:p,yTemporalBinning:u}=e.series[0],{outTimeZone:h,firstDayOfWeek:c}=e,m=await ng({queryObject:i,queryConfig:a,x:l,y:d,xTemporalBinning:p,yTemporalBinning:u,outTimeZone:h,firstDayOfWeek:c});try{n=await i.queryAttributeBins(m)}catch(g){throw new dt(ct.QueryFeaturesError,r.errors.queryError,g)}}if(!o)throw new dt(ct.QueryFeaturesError,r.errors.queryBinsNotSupported,r.errors.queryBinsNotSupported);return n}async function PS(t){let{chartConfig:e,queryObject:i,queryConfig:a,returnFeaturesExtent:r,errorStrings:n,abortKey:s}=t,o=e.series[0],l;if(o.type===x.HeatSeries){let{x:d,y:p}=o;a.groupByFieldsForStatistics=[d],d!==p&&a.groupByFieldsForStatistics.push(p),a&&r===!0&&!a.outStatistics?.some(u=>u.statisticType===le.EnvelopeAggregate)&&a.outStatistics?.push({statisticType:le.EnvelopeAggregate,onStatisticField:"1"});try{l=await jc({queryObject:i,queryConfig:a,abortKey:s})}catch(u){throw new dt(ct.QueryFeaturesError,n.errors.queryError,u)}}return l}async function OS(t){let{queryObject:e,queryConfig:i,xStep:a,xMin:r,xMax:n,x:s,y:o,yStep:l,errorStrings:d}=t,p;if(e&&"queryAttributeBins"in e&&Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(r)&&Number.isFinite(n)&&a>0&&l>0){let u=sg({queryObject:e,queryConfig:i,xStep:a,xMin:r,xMax:n,x:s,y:o,yStep:l});try{p=await e.queryAttributeBins(u)}catch(h){throw new dt(ct.QueryFeaturesError,d.errors.queryError,h)}}return p}async function ES(t){let{queryConfig:e,x:i,queryObject:a,chartSubType:r,isGaugeByFeature:n}=t,s=$e(a),o;if(a!==void 0){let l=s.objectIdField,{where:d,gdbVersion:p,timeExtent:u,geometry:h,distance:c,units:m}=e,g=eg(u),y=Hn(h),S=Ee(s),C=ti([d,S.definitionExpression]),w={returnDistinctValues:!0,outFields:n===!0||r===M.PieNoAggregation||r===M.BarAndLineNoAggregation||r===M.BarAndLineSplitByNoAggregation?[l]:[i],where:C,gdbVersion:p??S.gdbVersion,timeExtent:g??S.timeExtent,geometry:y};Nc(w)&&(w.cacheHint=!0),w.geometry!==void 0&&Rc(s)&&(c!==void 0&&(w.distance=c),m!==void 0&&(w.units=m));try{o=await a.queryFeatureCount(w)}catch{o=Number.NaN}}return o}async function AS(t){let{queryObject:e,queryConfig:i,abortKey:a}=t,{outStatistics:r}=i,n=new Map;if(e!==void 0&&r!==void 0&&r.length>0){let s=r.map(p=>{let{statisticType:u,onStatisticField:h,outStatisticFieldName:c}=p;return{statisticType:u,onStatisticField:h,outStatisticFieldName:c?.toUpperCase()}});i.outStatistics=s,delete i.num,delete i.orderByFields;let o=qc({queryObject:e,queryConfig:i}),l;try{l=await e.queryFeatures(o,{signal:a!==void 0?ei.get(a)?.signal:void 0})}catch(p){if(!Ln.isAbortError(p)){let u=(await rt(it(document.documentElement).t9nLocale,tt("./assets/common/t9n"),"messages.")).errorStrings;throw new dt(ct.QueryFeaturesError,u.errors.queryError,p)}}let d=l?.features?.[0]?.attributes;d!==void 0&&r.forEach(p=>{let{outStatisticFieldName:u}=p;if(u!==void 0){let h=d[u.toLowerCase()]??d[u.toUpperCase()]??d[u];h!==void 0&&n.set(u,h)}})}return n}async function kc(t){let{queryObject:e,queryConfig:i,returnUniqueIdsOnly:a,abortKey:r}=t,n=[],s=$e(e);if(e!==void 0){let o=og(s),l=qc({queryObject:e,queryConfig:i,maxRecordCountFactor:o});try{a===!0?"queryObjectIds"in e?n=await e.queryObjectIds(l):(l.outFields=[s.objectIdField],n=(await e.queryFeatures(l,{signal:r!==void 0?ei.get(r)?.signal:void 0})).features.map(d=>d.attributes[s.objectIdField])):n=(await e.queryFeatures(l,{signal:r!==void 0?ei.get(r)?.signal:void 0})).features}catch(d){if(!Ln.isAbortError(d)){let p=(await rt(it(document.documentElement).t9nLocale,tt("./assets/common/t9n"),"messages.")).errorStrings;throw new dt(ct.QueryFeaturesError,p.errors.queryError,d)}}}return n}async function Jy(t){let e=[],{featureCount:i,maxRecords:a,queryConfig:r}=t,n=[],s=0,o=r?.start??0;for(;s<or.maxParallelRequests&&o<i;){let l={...t};l.queryConfig={...r,start:o,num:Math.min(a,i-o)},e.push(kc(l)),o+=a,s+=1}return n=(await Promise.all(e)).flat(),n}async function jc(t){let{queryObject:e,queryConfig:i,returnUniqueIdsOnly:a,featureCount:r,noBatch:n,abortKey:s}=t,o=[],l=$e(e);if(e!==void 0){let d=r??1,p=_c(l);if(n!==!0&&d>p&&l.capabilities?.query.supportsPagination){let u=0,h=0,c=Math.ceil(d/p),m=Math.ceil(c/or.maxParallelRequests),g=[];for(;h<m;){u=h*or.maxParallelRequests*p;let y=Jy({queryConfig:{...i,start:u},queryObject:e,maxRecords:p,featureCount:d,returnUniqueIdsOnly:a,abortKey:s});g.push(y),h+=1}o=(await Promise.all(g)).flat()}else(Number.isNaN(d)||d>=0)&&(o=await kc({queryObject:e,queryConfig:i,returnUniqueIdsOnly:a,abortKey:s}))}return o}async function $S(t){let{queryObject:e,queryConfig:i,uniqueFeature:a,abortKey:r}=t,n={...i,returnDistinctValues:!0};return await jc({queryObject:e,abortKey:r,queryConfig:n,returnUniqueIdsOnly:!0,featureCount:a===!0?1:void 0})}function DS(t){if(t!==void 0){let e=ei.get(t);e!==void 0&&e.abort(),ei.set(t,new AbortController)}}function Yy(t){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`}}async function LS(t){let{queryObject:e,dateField:i,splitByField:a,queryConfig:r,temporalBinning:n}=t,s=[],o;if(n){let{unit:l}=n;try{if(l){let d=Ee($e(e));if(o=Gy(d,a),o&&e&&"queryAttributeBins"in e){let p=await ig({queryObject:e,queryConfig:r,temporalBinning:n,dateField:i,splitByField:a});s=(await e.queryAttributeBins(p)).features}}}catch(d){let p=(await rt(it(document.documentElement).t9nLocale,tt("./assets/common/t9n"),"messages.")).errorStrings;throw new dt(ct.QueryFeaturesError,p.errors.queryError,d)}}if(o===!1){let l=(await rt(it(document.documentElement).t9nLocale,tt("./assets/common/t9n"),"messages.")).errorStrings;throw new dt(ct.QueryFeaturesError,l.errors.queryBinsNotSupported,l.errors.queryBinsNotSupported)}return s}function Nc(t){let e=!t.geometry||t.geometry.type==="extent",i=(t.where??"").toUpperCase(),a=!i.includes("CURRENT_TIMESTAMP")&&!i.includes("CURRENT_DATE")&&!i.includes("CURRENT_TIME");return e&&a}function _c(t){let e=Ee(t)?.sourceJSON,i=e?.maxRecordCount??or.maxRecords;return e?.advancedQueryCapabilities?.supportsMaxRecordCountFactor&&e?.maxRecordCount!==void 0&&(i=e.maxRecordCount*or.maxRecordCountFactor),i}function ti(t,e){let i,a=Array.from(new Set(t)).filter(r=>r!=null&&r!==""&&!Ar(r));return a.sort((r,n)=>n.length-r.length),a.length===1?[i]=a:a?.forEach(r=>{r!==void 0&&(yt(i)?i=`(${r})`:i?.includes(`(${r})`)||(i=`${i} ${e??"AND"} (${r})`))}),i??"1=1"}function Ky(t,e){let i=e;if(t!==void 0){let a=$e(t),r=Ee(a).timeExtent;r?.start!=null&&r?.end!=null&&(i=[r.start.valueOf(),r.end.valueOf()])}return i}function Xy(t){let{queryObject:e,defaultGeometry:i,ignoreViewExtent:a}=t,r=i;if(!a&&oi(e)){let n=e.view.extent,{xmin:s,xmax:o,ymin:l,ymax:d,zmin:p,zmax:u,spatialReference:h}=n;r={xmin:s,ymin:l,zmin:p,xmax:o,ymax:d,zmax:u,spatialReference:h}}return r}function eg(t){let e;return t!==void 0&&(e=new ud({start:new Date(t[0]),end:new Date(t[1])})),e}function Hn(t){let e;return t!==void 0&&(e=Dn.fromJSON(t)),e}function tg(t){return t===void 0?["*"]:Array.from(new Set(t))}function fa(t){let{queryObject:e,queryConfig:i,queryType:a}=t,{where:r,outStatistics:n,geometry:s,distance:o,units:l,timeExtent:d,returnDistinctValues:p}=i??{},u=a==="Query"?new rh({}):new th({}),h=$e(e),c=Ee(h),m;a==="AttributeBinsQuery"&&i?.objectIds?.[0]!==void 0&&(m=`${h.objectIdField} IN (${i.objectIds.join(",")})`);let g=[r,c.definitionExpression,m];if(u.where=ti(g),u.returnDistinctValues=p??!1,n!==void 0){let C=Hy(h);u.outStatistics=n.filter(w=>w.statisticType!==le.EnvelopeAggregate||C).map(w=>ih.fromJSON(w))}let y=Hn(s);y!==void 0&&(u.geometry=y,i?.spatialRelationship&&(u.spatialRelationship=i.spatialRelationship),Rc(h)&&(o!==void 0&&(u.distance=o),l!==void 0&&(u.units=l)));let S;return d&&(S=new ud({start:d?.[0],end:d?.[1]})),S!==void 0?u.timeExtent=S:c.timeExtent!==void 0&&(u.timeExtent=c.timeExtent),Nc(u)&&(u.cacheHint=!0),u}function rg(t){let e;switch(t){case gr.Start:e="first";break;case gr.End:e="last";break}return e}async function ig(t){let{queryObject:e,queryConfig:i,temporalBinning:a,dateField:r,splitByField:n}=t,s=$e(e),o=(await li(e)).find(S=>S.name===r)?.type,l=fa({queryObject:e,queryConfig:i,queryType:"AttributeBinsQuery"}),{unit:d,size:p,timeAggregationType:u,start:h,end:c,offset:m,outTimeZone:g}=a,y=Yy(r);if(l.lowerBoundaryAlias=y.lowerBoundaryAlias,l.upperBoundaryAlias=y.upperBoundaryAlias,o!==ve.DateOnly&&(l.outTimeZone=g??Intl.DateTimeFormat().resolvedOptions().timeZone),l.binParameters={type:"date",field:r,interval:{unit:d,value:p},start:h,end:c,offset:m?{unit:m.unit,value:m.size}:null},l.binParameters.type==="date"&&(s.capabilities?.queryAttributeBins?.supportsSnapToData&&(l.binParameters.snapToData=rg(u)),s.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin&&(l.binParameters.returnFullIntervalBin=!0)),!yt(n)){let S=Ee(s).fields.find(C=>C.name===n)?.type;(!S||S==="string"||S==="integer"||S==="small-integer"||S==="big-integer"||S==="double")&&(l.binParameters.stackBy={type:"field",value:n,valueType:S==="string"?"string":"integer"})}return l}function ag(t){let{field:e,fieldType:i,unit:a,outTimeZone:r,dataTimeZone:n,runsOnClientQueryEngine:s,addIntervalStatement:o}=t,l,d,p=1,u=1;switch(a){case xt.MinuteOfDay:i!==ve.DateOnly&&(d="MINUTE",p=0,u=59);break;case xt.HourOfDay:i!==ve.DateOnly&&(d="HOUR",p=0,u=23);break;case xt.DayOfWeek:d="DOW",u=7;break;case xt.DayOfMonth:d="DAY",u=31;break;case xt.DayOfYear:d="DOY",u=366;break;case xt.WeekOfYear:d="WEEK",u=53;break;case xt.MonthOfYear:d="MONTH",u=12;break;case xt.QuarterOfYear:d="QUARTER",u=4;break}if(d){let h=o?` ${Lc({dataTimeZone:n,runsOnClientQueryEngine:s,outTimeZone:r})}`:"";l=`EXTRACT (${d} FROM ${e}${h})`}return{expression:l,start:p,end:u}}function sd(t){let{temporalBinning:e,xOrY:i,xOrYFieldType:a,addIntervalStatement:r,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,{unit:l}=e??{},d,p,u,h;return a===ve.Date||a===ve.DateOnly||a===ve.TimestampOffset?{expression:p,start:u,end:h}=ag({field:i,fieldType:a,unit:l,addIntervalStatement:r,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}):d=i,{field:d,expression:p,start:u,end:h}}async function ng(t){let{queryObject:e,queryConfig:i,x:a,y:r,xTemporalBinning:n,yTemporalBinning:s,firstDayOfWeek:o,outTimeZone:l}=t,d=await li(e),p=d.find(w=>w.name===a)?.type,u=d.find(w=>w.name===r)?.type,h=fa({queryObject:e,queryConfig:i,queryType:"AttributeBinsQuery"});h.binParameters={type:"fixed-interval",interval:1},p!==ve.DateOnly&&(h.outTimeZone=l??Intl.DateTimeFormat().resolvedOptions().timeZone),o!==void 0&&(h.binParameters.firstDayOfWeek=o);let c=sd({temporalBinning:n,xOrY:a,xOrYFieldType:p,addIntervalStatement:!1}),{field:m,expression:g,start:y,end:S}=c;m?h.binParameters.field=m:g&&(h.binParameters.expression=g,h.binParameters.expressionValueType="integer",h.binParameters.type==="fixed-interval"&&(y!==void 0&&(h.binParameters.start=y),S!==void 0&&(h.binParameters.end=S)));let C=sd({temporalBinning:s,xOrY:r,xOrYFieldType:u,addIntervalStatement:!1});return C.field?h.binParameters.stackBy={type:"field",value:C.field}:C.expression&&(h.binParameters.stackBy={type:"expression",value:C.expression,valueType:"integer",alias:r}),h}function sg(t){let{queryObject:e,queryConfig:i,xStep:a,xMin:r,xMax:n,x:s,y:o,yStep:l}=t,d=fa({queryObject:e,queryConfig:i,queryType:"AttributeBinsQuery"}),p=Zy(s,o);return d.lowerBoundaryAlias=p.lowerBoundaryAlias,d.upperBoundaryAlias=p.upperBoundaryAlias,d.binParameters={type:"fixed-interval",field:s,interval:a,start:r,end:n,stackBy:{value:`FLOOR(${o} / ${l})`,type:"expression",alias:p.stackAlias,valueType:"integer"}},d}function qc(t){let{queryObject:e,queryConfig:i,maxRecordCountFactor:a}=t,{groupByFieldsForStatistics:r,orderByFields:n,gdbVersion:s,start:o,num:l,outFields:d}=i??{},p=fa({queryObject:e,queryConfig:i,queryType:"Query"});p.returnGeometry=!1;let u=$e(e),h=Ee(u);return p.outFields=tg(d),p.groupByFieldsForStatistics=r??p.groupByFieldsForStatistics,p.orderByFields=n??[],p.objectIds=i?.objectIds,a!==void 0&&(p.maxRecordCountFactor=a),s!==void 0&&s!==""?p.gdbVersion=s:h.gdbVersion!==void 0&&h.gdbVersion!==""&&(p.gdbVersion=h.gdbVersion),l!==void 0&&(p.num=l),o!==void 0&&(p.start=o,p.num=p.num??_c(u)),p}function og(t){return Ee(t)?.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?or.maxRecordCountFactor:void 0}function RS(t){let e,i,a;return t!==void 0&&(e=t.type,(e===fi.UniqueValue||e===fi.ClassBreaks)&&(i=t.field??void 0,e===fi.ClassBreaks&&(a=t.normalizationField??void 0))),{rendererType:e,rendererField:i,rendererNormalizationField:a}}var lg=(0,pd.default)(async t=>{let e=t.featureCollection,i,a;if(e?.layers?.[0]!==void 0){let s=e.layers[0];i=s.featureSet,a=s.layerDefinition}else a=t.layerDefinition;let r={};if(i!==void 0){if(r.source=Ku.fromJSON(i).features,a?.fields!==void 0&&(r.fields=a.fields.map(s=>Yu.fromJSON(s))),a?.objectIdField!==void 0&&(r.objectIdField=a.objectIdField),a?.geometryType!==void 0){let s=Dn.fromJSON({geometryType:a.geometryType});s?.type!==void 0&&s?.type!=="extent"&&(r.geometryType=s.type)}a?.spatialReference!==void 0&&(r.spatialReference=a.spatialReference)}else r.id=t.id,a?.id!==void 0&&(r.layerId=a.id),t.url!==void 0&&(r.url=t.url),t.itemId!==void 0&&a?.id!==void 0&&(r.portalItem={id:t.itemId});if(a!==void 0){let s=a.drawingInfo;s?.renderer!==void 0&&(r.renderer=cd.fromJSON(s.renderer))}let n=new Xu(r);return await n.load(),n});async function kS(t){let{layer:e,view:i,chartConfig:a}=t,r;if(e!==void 0){let n=$e(e),s=Ee(n);if(i!==void 0&&!s.isTable){s.outFields=["*"];let o=d=>"highlight"in d,l=await i.whenLayerView(s);o(l)&&(r=l)}else r=e}else"iLayer"in a&&a.iLayer&&(r=await lg(a.iLayer));return r}async function li(t,e){let i=$e(t),a=[];if(i!==void 0){await i.load();let r=e===!0&&i?.popupTemplate?.fieldInfos!==void 0;a=i.fields.map(n=>{let s=n.toJSON();if(r){let o=i.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===n.name.toLowerCase())?.label;o!==void 0&&o!==n.name&&(s.alias=o)}return s})}return a}function Qn(t,e=[]){return e.find(i=>i.name===t)}function jS(t){return t.find(e=>e.type===ve.OID)?.name??""}function Mc(t){return[ve.Single,ve.Double,ve.SmallInteger,ve.Integer,ve.BigInteger].includes(t.type)}function NS(t){return t.type===ve.Date}function _S(t){return[ve.SmallInteger,ve.Integer,ve.BigInteger].includes(t.type)}function qS(t){return t.filter(e=>e.type===ve.Date||e.type===ve.DateOnly||e.type===ve.TimestampOffset).map(e=>e.name)}function MS(t){return t.filter(e=>Mc(e)).map(e=>e.name)}function dg(t){let{subtypeInfo:e,fieldName:i,fieldValueToMatch:a}=t,r,n=s=>`${s.id}`==`${a}`;return e?.subtypeField===i&&e.subtypes?r=e.subtypes.find(n)?.name:e?.typeIdField===i&&e.types&&(r=e.types.find(n)?.name),r}function od(t,e){let i=[],a=zy(t)?t.subtypes:t[e];return a?.[0]!==void 0&&a.forEach(r=>{let{name:n,domains:s}=r,o="id"in r?r.id:void 0;!o&&"code"in r&&(o=r.code);let l=Object.entries(s??{}),d=[],p=l?.filter(([u,h])=>h?.type==="coded-value")?.map(([u,h])=>{let c={fieldName:u,name:n,codedValues:d};if(h&&"codedValues"in h){let m=h.codedValues.map(({code:g,name:y})=>({name:y,code:g}));c={fieldName:u,name:h.name,codedValues:m}}return c});i.push({id:o??"",name:n,domains:p})}),i.length===0?void 0:i}function BS(t){let e;if(t!==void 0){let i=$e(t);if(!ha(i)&&!yt(i?.typeIdField)){let a=od(i,"types");a!==void 0&&(e={typeIdField:i.typeIdField??void 0,types:a})}if(!yt(i?.subtypeField)){let a=Ee(i),r=od(a,"subtypes");r!==void 0&&(e={...e,subtypeField:a.subtypeField??void 0,subtypes:r})}}return e}function WS(t){let{fieldName:e,fieldValueToMatch:i,subtypeInfo:a,fieldList:r}=t,n;if((typeof i!="string"||!yt(i))&&!yt(e)&&(n=dg({subtypeInfo:a,fieldName:e,fieldValueToMatch:i}),n===void 0)){let s=Qn(e,r);if(a?.types!==void 0){let o=a?.types;for(let l of o){let d=l.domains?.filter(p=>p.fieldName===s?.name)??[];for(let p of d)if(n=p?.codedValues?.find(u=>`${u.code}`===i)?.name,n!==void 0)break;if(n!==void 0)break}}n===void 0&&s?.domain!==void 0&&s.domain.type==="codedValue"&&(n=s.domain.codedValues?.find(o=>`${o.code}`==`${i}`)?.name)}return n}async function VS(t){let e=[];return!Ee(t).isTable&&t.fieldsIndex&&(e=await dd.getRendererFields(t.renderer,t.fieldsIndex)),e}function cg(t){let e="/rest/services",i=t.toLowerCase(),a=i.indexOf(e);return i=a>-1?t.substring(0,a):t,`${i}/rest/info`}async function zS(t){let e=!0,i=".arcgis.com/",a=t.url,r=a?.includes(i);if(a&&r&&Ee(t).sourceJSON.serviceItemId!==void 0){let n=cg(a);try{let s=(await cn(n,{query:{f:"json"}})).data;if(s.owningTenant!==void 0&&s.owningSystemUrl!==void 0){let o=`${s.owningSystemUrl}/sharing/rest/portals/${s.owningTenant}`,l=(await cn(o,{authMode:"auto",query:{f:"json"}})).data,d=new eh({sourceJSON:l});await d.load(),e=d?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return e}async function pg(t){let{queryObject:e,fieldToMatch:i,returnUndefinedIfNotFound:a}=t,r=await li(e),n=ug(r,i),s=a?"":i;return n?.name??s}function ug(t,e){let i=t.find(a=>e===a.name);return i||(i=t.find(a=>e.toUpperCase()===a.name.toUpperCase())),i}async function US(t){let{fieldsList:e,queryObject:i,returnUndefinedIfNotFound:a}=t,r=e;return r!==void 0&&(r=await Promise.all(r.map(async n=>await pg({queryObject:i,fieldToMatch:n,returnUndefinedIfNotFound:a})))),r}function GS(t){let{queryObject:e,chartConfig:i,runtimeDataFilters:a,ignoreViewExtent:r}=t,{series:n,dataFilters:s}=i,{where:o,gdbVersion:l,timeExtent:d,geometry:p,distance:u,units:h,objectIds:c,spatialRelationship:m}=s??{},{where:g,gdbVersion:y,timeExtent:S,geometry:C,distance:w,units:P,objectIds:O,spatialRelationship:A}=a??{},_=n[0],{query:R}=_,{where:F}=R??{},D=Pt(n),L={...R};return L.where=ti([o,g]),D!==M.BarAndLineSplitBy&&D!==M.BoxPlotMonoFieldAndSplitBy&&D!==M.BoxPlotMonoFieldAndCategoryAndSplitBy&&D!==M.BoxPlotMultiFieldsAndSplitBy&&D!==M.BarAndLineSplitByNoAggregation&&(L.where=ti([L.where,F])),i.orderOptions?.orderByFields!==void 0&&(L.orderByFields=i.orderOptions.orderByFields),L.gdbVersion=y??l,L.timeExtent=Ky(e,S??d),L.geometry=Xy({queryObject:e,defaultGeometry:C??p,ignoreViewExtent:r}),L.distance=w??u,L.units=P??h,L.objectIds=O??c,L.spatialRelationship=A??m,R?.outStatistics?.[0]?.statisticType===le.Count&&(L.returnDistinctValues=R?.returnDistinctValues??!1),L}var Qr=t=>{let e,i;if(t&&typeof t=="object"){if("portalItem"in t){let a=t.portalItem?.id;typeof a=="string"&&(e=a)}if("url"in t){let a=t.url;typeof a=="string"&&(i=a)}}return{portalItemId:e,url:i}};function HS(t){let{view:e,layer:i,portalItemId:a}=t,r;if(e){let n=i?$e(i):void 0,s=!!(n&&ha(n));if(s&&n){let o=Ee(n),{portalItemId:l,url:d}=Qr(o),p=l??a,u=d,h=Array.from(e.map?.allLayers??[]).find(c=>{let{portalItemId:m,url:g}=Qr(c);return!!p&&m===p||!!u&&g===u});if(h&&"sublayers"in h){let c=h.sublayers.find(m=>m.id===n.id);c&&(r=c)}}else if(!s){if(!i&&a){let o=Array.from(e.map?.allLayers??[]).find(l=>{let{portalItemId:d}=Qr(l);return!!d&&d===a});o&&(r=o)}else if(i&&n){let o=n?.constructor,{portalItemId:l,url:d}=Qr(n),p=l??a,u=d;for(let h of Array.from(e.map?.allLayers??[])){let c=o?h instanceof o:!0,{portalItemId:m,url:g}=Qr(h);if(c&&(p&&m===p||u&&g===u)){r=h;break}}}}}return r}var Cr={$schema:"http://json-schema.org/draft-07/schema#",definitions:{ValueConversion:{type:"object",properties:{factor:{type:"number",description:"A numeric value multiplying the value to convert"},offset:{type:"number",description:"A numeric offset to apply to the value to convert"}},description:"Stores information regarding a numeric conversion",title:"ValueConversion"},WebChartAxisScrollBar:{type:"object",properties:{visible:{type:"boolean",description:"Scrollbar visibility",default:!1},width:{type:"number",description:"Scrollbar width in pixels"},color:{$ref:"#/definitions/Color",description:"Scrollbar color"},gripSize:{type:"number",description:"Grip size in pixels"},margin:{type:"number",description:"Margin between the scrollbar and the series container in pixels"}},description:"Describes the properties of an axis scrollbar",title:"WebChartAxisScrollBar"},Color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,title:"Color"},WebChartTextSymbol:{type:"object",properties:{xoffset:{type:["number","string"],description:`Horizontal offset. Can be a number for a fixed value in pixels, or a string as "25%" for a value relative to the label's container width.`},yoffset:{type:["number","string"],description:`Horizontal offset. Can be a number for a fixed value in pixels, or a string as "25%" for a value relative to the label's container height.`},angle:{type:"number",description:"Rotation of the label"},style:{type:"string",description:"Label style"},type:{type:"string",const:"esriTS"},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"],description:"Represents a text symbol.",title:"WebChartTextSymbol"},'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>':{$ref:"#/definitions/Pick%3CITextSymbol%2CExclude%3C(%22type%22%7C%22color%22%7C%22backgroundColor%22%7C%22borderLineSize%22%7C%22borderLineColor%22%7C%22haloSize%22%7C%22haloColor%22%7C%22verticalAlignment%22%7C%22horizontalAlignment%22%7C%22rightToLeft%22%7C%22kerning%22%7C%22font%22%7C%22text%22%7C%22angle%22%7C%22xoffset%22%7C%22yoffset%22%7C%22style%22%7Cstring)%2C(%22angle%22%7C%22style%22%7C%22xoffset%22%7C%22yoffset%22)%3E%3E",title:'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>'},'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>':{type:"object",properties:{type:{type:"string",const:"esriTS"},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:'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>'},IFont:{type:"object",properties:{family:{type:"string"},size:{type:"number"},style:{type:"string",enum:["italic","normal","oblique"]},weight:{type:"string",enum:["bold","bolder","lighter","normal"]},decoration:{type:"string",enum:["line-through","none","underline"]}},title:"IFont"},WebChartText:{type:"object",properties:{type:{type:"string",const:"chartText",description:'Represents a unique string identifier for the ChartText object. For ChartText object, it is "chartText".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},content:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains the styling info and text content. Details on **esriTS** are [here](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm)."}},required:["type","content"],description:"Stores info on how some text is rendered on the chart and whether it is visible or not.",title:"WebChartText"},WebChartCursorCrosshair:{type:"object",properties:{type:{type:"string",const:"cursorCrosshair",description:"Represents a unique string identifier for the chart cursor's crosshair."},style:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the chart cursor's crosshair should be rendered."},verticalLineVisible:{type:"boolean",description:"Indicates whether the vertical crosshair line should be displayed",default:!1},horizontalLineVisible:{type:"boolean",description:"Indicates whether the horizontal crosshair line should be displayed",default:!1}},required:["type"],description:"JSON representation of the cursor's crosshair for a chart.",title:"WebChartCursorCrosshair"},ISimpleLineSymbol:{type:"object",properties:{type:{type:"string",const:"esriSLS"},style:{$ref:"#/definitions/SimpleLineSymbolStyle"},color:{$ref:"#/definitions/Color"},width:{type:"number"}},required:["type"],title:"ISimpleLineSymbol"},ISymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"}},required:["type"],title:"ISymbol"},SymbolType:{type:"string",enum:["esriPFS","esriPMS","esriSFS","esriSLS","esriSMS","esriTS"],title:"SymbolType"},SimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"SimpleLineSymbolStyle"},WebChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:'Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is "chartLegend".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the legend box should be rendered"},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling info on how legend body (excluding the **title**) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"WebChartLegendPositions.Right"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles. If the property is to:\n- `false` or `undefined` they will be rounded rectangles\n- `true` they will be circles",default:!1}},required:["type"],description:"JSON representation of the Chart's legend box",title:"WebChartLegend"},WebChartLegendPositions:{type:"string",enum:["left","right","top","bottom"],title:"WebChartLegendPositions"},WebChartNullCategory:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use for the null category. If none is provided, the default `null` text will be used."},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the overlay should be rendered If not provided a default style is applied.",default:"1 - symbol.outline.width"}},title:"WebChartNullCategory"},ISimpleFillSymbol:{type:"object",properties:{type:{type:"string",const:"esriSFS"},style:{$ref:"#/definitions/SimpleFillSymbolStyle"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleFillSymbol"},SimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"SimpleFillSymbolStyle"},WebChartPieChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:'Represents a unique string identifier for the ChartLegend object. For ChartLegend object, it is "chartLegend".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the legend box should be rendered"},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling info on how legend body (excluding the **title**) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"WebChartLegendPositions.Right"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container or pie chart.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles. If the property is to:\n- `false` or `undefined` they will be rounded rectangles\n- `true` they will be circles",default:!1},displayCategory:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed in the legend.",default:!0},displayNumericValue:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed in the legend. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`",default:!1},displayPercentage:{type:"boolean",description:"Indicates whether the percentage to a slice is to be displayed in the legend. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`",default:!1},labelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200},valueLabelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200}},required:["type"],description:"Specific legend for the Pie chart",title:"WebChartPieChartLegend"},WebChartOverlay:{type:"object",properties:{type:{type:"string",const:"chartOverlay",description:'Represents a unique string identifier for the ChartOverlay object. For ChartOverlay object, it is "chartOverlay".'},created:{type:"boolean",description:"Determines whether the overlay is created under the hood. It may or may not be visible.",default:!1},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},symbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the overlay should be rendered If not provided a default style is applied."}},required:["type"],description:"JSON representation of the chart's overlays like trendline scatter plot, and median in histogram",title:"WebChartOverlay"},NumberFormatOptions:{type:"object",properties:{type:{type:"string",const:"number",description:'Represents a unique string identifier for the NumberFormatOptions object. For NumberFormatOptions object, it is "number". It can help us to differentiate numerical (value) axis from other types of axes viz., date-time axis and category axis.'},intlOptions:{$ref:"#/definitions/Intl.NumberFormatOptions",description:"Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](http://cldr.unicode.org/translation/numbers-currency/number-patterns) specifications."}},required:["type","intlOptions"],description:"Defines how the numerical(value) axis data should be formatted.",title:"NumberFormatOptions"},"Intl.NumberFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["lookup","best fit"]},style:{$ref:"#/definitions/Intl.NumberFormatOptionsStyle"},currency:{type:"string"},currencyDisplay:{$ref:"#/definitions/Intl.NumberFormatOptionsCurrencyDisplay"},useGrouping:{$ref:"#/definitions/Intl.NumberFormatOptionsUseGrouping"},minimumIntegerDigits:{type:"number"},minimumFractionDigits:{type:"number"},maximumFractionDigits:{type:"number"},minimumSignificantDigits:{type:"number"},maximumSignificantDigits:{type:"number"}},title:"Intl.NumberFormatOptions"},"Intl.NumberFormatOptionsStyle":{title:"Intl.NumberFormatOptionsStyle"},"Intl.NumberFormatOptionsCurrencyDisplay":{title:"Intl.NumberFormatOptionsCurrencyDisplay"},"Intl.NumberFormatOptionsUseGrouping":{type:"boolean",title:"Intl.NumberFormatOptionsUseGrouping"},WebChartDateTimeUnitFormatOptions:{type:"object",properties:{year:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},month:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},day:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},hour:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},minute:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},second:{$ref:"#/definitions/Intl.DateTimeFormatOptions"}},description:'Interface used by the axis `valueFormat` property to describe how to format specific date and time units when displayed on the axis. For instance: "year": { year: "numeric" } "month": { month: "numeric" } "day": { day: "2-digit" } "hour": { day: "numeric" } "minute": { minute: "numeric" } "second": { second: "numeric" } Reference: https://tc39.es/ecma402/#sec-datetimeformat-abstracts',title:"WebChartDateTimeUnitFormatOptions"},"Intl.DateTimeFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["best fit","lookup"]},weekday:{type:"string",enum:["long","short","narrow"]},era:{type:"string",enum:["long","short","narrow"]},year:{type:"string",enum:["numeric","2-digit"]},month:{type:"string",enum:["numeric","2-digit","long","short","narrow"]},day:{type:"string",enum:["numeric","2-digit"]},hour:{type:"string",enum:["numeric","2-digit"]},minute:{type:"string",enum:["numeric","2-digit"]},second:{type:"string",enum:["numeric","2-digit"]},timeZoneName:{type:"string",enum:["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},formatMatcher:{type:"string",enum:["best fit","basic"]},hour12:{type:"boolean"},timeZone:{type:"string"}},title:"Intl.DateTimeFormatOptions"},DateTimeFormatOptions:{type:"object",properties:{type:{type:"string",const:"date",description:'Represents a unique string identifier for the NumberFormatOptions object. For NumberFormatOptions object, it is "date". It can help us to differentiate date-time axis from other types of axes viz., numeric (value) axis and category axis.'},intlOptions:{$ref:"#/definitions/Intl.DateTimeFormatOptions",description:"Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](http://cldr.unicode.org/translation/date-time-1/date-time-patterns) specifications."},formatPerDateTimeUnit:{$ref:"#/definitions/WebChartDateTimeUnitFormatOptions",description:"Represents how to format specific date and time units when displayed on the axis, independently from the `intlOptions`."}},required:["type","intlOptions"],description:"Defines how the DateTime axis data should be formatted.",title:"DateTimeFormatOptions"},CategoryFormatOptions:{type:"object",properties:{type:{type:"string",const:"category",description:'Represents a unique string identifier for the CategoryFormatOptions object. For CategoryFormatOptions object, it is "category". It can help us to differentiate category axis from other types of axes, viz., date-time axis and numeric (value) axis.'},characterLimit:{type:["number","null"],description:"Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with `...`. If property is not present or `null`, no truncation is done.",minimum:1,multipleOf:1}},required:["type"],description:"Defines how the category axis data (Categories) should be formatted.",title:"CategoryFormatOptions"},WebChartGuide:{type:"object",properties:{type:{type:"string",const:"chartGuide",description:'Represents a unique string identifier for the Guide object. For Guide class, it is "chartGuide".'},start:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should begin."},end:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should end. If it is not specified, we get a line guide, otherwise we get a fill/rectangular guide."},style:{anyOf:[{$ref:"#/definitions/ISimpleFillSymbol"},{$ref:"#/definitions/ISimpleLineSymbol"}],description:"Determines how the guide should be rendered. Line guide requires [esriSLS](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm) format, and fill guide requires [esriSFS](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm) format."},name:{type:"string",description:"A unique string identifier which is used to refer to a particular guide. It is displayed in the Chart Authoring UI to differentiate between different guides."},label:{$ref:"#/definitions/WebChartTextSymbol",description:"Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using **esriTS** format."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},above:{type:"boolean",description:"Determines whether the guide should be rendered on top of (overlapping) the series or under the series.",default:!1},tooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).",default:!1}},required:["type","start","style","name"],description:"JSON representation of the chart's guide object. Can be used to represent both line and fill guides.",title:"WebChartGuide"},WebChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},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."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:"The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.",minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."}},required:["type","valueFormat","labels"],description:"JSON representation of the chart's axis object",title:"WebChartAxis"},TimeIntervalInfo:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},title:"TimeIntervalInfo"},WebChartTemporalBinningUnits:{type:"string",enum:["seconds","minutes","hours","days","weeks","months","quarters","years"],description:"The temporal binning units",title:"WebChartTemporalBinningUnits"},WebChartGaugeAxisTick:{type:"object",properties:{type:{type:"string",const:"gaugeAxisTick",description:'Represents a unique string identifier for the GaugeAxisTick object. For WebChartGaugeAxisTick object, it is "gaugeAxisTick".'},visible:{type:"boolean",description:"Determines the visibility of the axis ticks.",default:!0}},required:["type"],description:"JSON representation of the gauge axis ticks. Currently only used by WebChartGaugeAxis.",title:"WebChartGaugeAxisTick"},WebChartNeedle:{type:"object",properties:{type:{type:"string",const:"gaugeNeedle",description:'Represents a unique string identifier for the ChartNeedle object. For WebChartNeedle object, it is "gaugeNeedle".'},visible:{type:"boolean",description:"Hides or shows the needle.",default:!0},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the needle should be rendered"},startWidth:{type:["number","null"],description:"Represents the needle's thickness at the bottom (chart's center), in px",minimum:1,default:10},endWidth:{type:["number","null"],description:"Represents the needle's thickness at the top, in px",minimum:1,default:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in the middle of the chart. Can be visualized when guides are displayed.",minimum:0,maximum:100,default:25},displayPin:{type:"boolean",description:"Hides or shows the needle's pin (centroid circle)",default:!1}},required:["type"],description:"JSON representation of a gauge needle.",title:"WebChartNeedle"},WebChartGaugeAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},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."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:"The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.",minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."},innerLabel:{$ref:"#/definitions/WebChartText",description:"Specifies how the axis' inner label needs to be displayed"},needle:{$ref:"#/definitions/WebChartNeedle",description:"Specifies how the axis' needle needs to be displayed"},ticks:{$ref:"#/definitions/WebChartGaugeAxisTick",description:"Specifies how the axis' ticks need to be displayed"},labelsIncrement:{type:"number",description:"If a label has a value being a multiple of that property, it will be displayed. Otherwise it will be hidden.\n\nIf the property is `undefined` or 0, the chart will be displayed with 6 axis labels distributed evenly along the axis min and max.\n\nIf the property has a value that results in more than a set limit of axis labels (25 as defined in `ChartDefaults.gauge.maximumNumberOfLabelIntervals`) this property value will be ignored and the chart will be displayed with only axis min/max with 4 ticks in between.",default:"undefined"},onlyShowFirstAndLastLabels:{type:"boolean",description:"Specifies if only the first and last labels need to be displayed. If set to `true` all the other labels will be hidden. Their visibility still depends on the axis labels visibility (WebChartAxis.labels.visible).",default:!1},minimumValueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines how to convert the axis minimum"},maximumValueConversion:{$ref:"#/definitions/ValueConversion",description:"Defines how to convert the axis maximum"},minimumFromField:{anyOf:[{$ref:"#/definitions/IStatisticDefinition"},{type:"string"}],description:"If used with a gauge by feature:\n- `minimumFromField` is expected to be a field name. The value from that field for the given feature is mapped to the axis minimum value If used with a statistic gauge:\n- If `minimumFromField` is set to a field name (string), the minimum from that field is mapped to the axis minimum value\n- If it is set to an `IStatisticDefinition` the statistic (min, max, avg...) from the given field is mapped to the axis minimum value When `minimumFromField` is not provided or when it leads to an invalid value, the `minimum` value from the axis config, if provided, or the default value of 0, in that order, will be used."},maximumFromField:{anyOf:[{$ref:"#/definitions/IStatisticDefinition"},{type:"string"}],description:"If used with a gauge by feature:\n- `maximumFromField` is expected to be a field name. The value from that field for the given feature is mapped to the axis maximum value If used with a statistic gauge:\n- If `maximumFromField` is set to a field name (string), the maximum from that field is mapped to the axis maximum value\n- If it is set to an `IStatisticDefinition` the statistic (min, max, avg...) from the given field is mapped to the axis maximum value When `maximumFromField` is not provided or when it leads to an invalid value, the `maximum` value from the axis config, if provided, or the default value of 0, in that order, will be used."}},required:["labels","type","valueFormat"],description:"JSON representation of the gauge chart's axis object. Inherits from the WebChartAxis properties.",title:"WebChartGaugeAxis"},IStatisticDefinition:{type:"object",properties:{statisticType:{type:"string",enum:["avg","centroid-aggregate","convex-hull-aggregate","count","envelope-aggregate","max","min","percentile-continuous","percentile-discrete","stddev","sum","var"],description:"Statistical operation to perform (count, sum, min, max, avg, stddev, var, percentile_cont, percentile_disc, EnvelopeAggregate, CentroidAggregate, ConvexHullAggregate)."},statisticParameters:{type:"object",properties:{value:{type:"number"},orderBy:{type:"string",enum:["asc","desc"]}},required:["value"],description:"Parameters to be used along with statisticType. Currently, only applicable for percentile-continuous (continuous percentile) and percentile-discrete (discrete percentile)."},onStatisticField:{type:"string",description:"Field on which to perform the statistical operation."},outStatisticFieldName:{type:"string",description:"Field name for the returned statistic field. If outStatisticFieldName is empty or missing, the server will assign one. A valid field name can only contain alphanumeric characters and an underscore. If the outStatisticFieldName is a reserved keyword of the underlying DBMS, the operation can fail. Try specifying an alternative outStatisticFieldName."}},required:["statisticType","onStatisticField"],title:"IStatisticDefinition"},WebChartRadarChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:'Represents a unique string identifier for the WebChartAxis object. For ChartAxis object, it is "chartAxis".'},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},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."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling info on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility"},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:"The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.",minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."},labelsOrientation:{$ref:"#/definitions/WebChartRadarChartAxisLabelsOrientation",description:"Defines the labels orientation",default:"WebChartRadarChartAxisLabelsOrientation.Circular"}},required:["labels","type","valueFormat"],description:"JSON representation of the radar chart's axis object.",title:"WebChartRadarChartAxis"},WebChartRadarChartAxisLabelsOrientation:{type:"string",enum:["radial","circular","horizontal"],description:"Labels orientation for radar chart axes.",title:"WebChartRadarChartAxisLabelsOrientation"},WebChartQuery:{type:"object",properties:{outFields:{type:"array",items:{type:"string"},description:"Attribute fields to include in the FeatureSet. Will have an effect on chart with no aggregation."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."},groupByFieldsForStatistics:{type:"array",items:{type:"string"},description:"An array of fields which determine how the base data is grouped. Only one **groupBy** Field is supported, but ArcGIS JSAPI [supports multiple groupBy fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#groupByFieldsForStatistics). While splitting by multiple group-by fields is possible, it is not being done because of the number of series it will give rise to (equal to the length of the Cartesian product set) possibly making the visualization hard to interpret.",maxItems:1},outStatistics:{type:"array",items:{$ref:"#/definitions/IStatisticDefinition"},description:"Represents an array of statistics definitions which dictate how a particular field should be aggregated. Refer to [JSAPI Statistics Definition class](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-StatisticDefinition.html) for more info."},orderByFields:{type:"array",items:{type:"string"},description:"Represents the sorting order of the output result. More info present in [JSAPI docs](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#orderByFields). The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending."},gdbVersion:{type:"string",description:"Specifies the geodatabase version to display for feature service queries."},geometry:{anyOf:[{$ref:"#/definitions/IEnvelope"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IPoint"},{$ref:"#/definitions/IPolygon"},{$ref:"#/definitions/IPolygonWithCurves"},{$ref:"#/definitions/IPolyline"}],description:"The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties `distance` and `units`."},spatialRelationship:{description:"For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter geometry."},distance:{type:"number",description:"Specifies a search distance for the `geometry`. To be associated with the `units` property. For compatible layers only."},units:{$ref:"#/definitions/RESTUnits",description:"The unit for calculating the buffer distance when `distance` and `geometry` are provided. If not specified, the unit is derived from the geometry spatial reference."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"A time extent ([timestamp, timestamp]) for a temporal query against time-aware layers."},start:{type:"number",description:"The zero-based index indicating where to begin retrieving features."},num:{type:"number",description:"The number of features to retrieve."},returnDistinctValues:{type:"boolean",description:"If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.",default:!1},fetchNullValues:{type:"boolean",description:"Indicates whether to fetch null values for them to be counted or displayed as categories on the chart.",default:!1},objectIds:{type:"array",items:{type:"number"},description:"An array of objectIds of the features to be filtered."}},description:"Chart query object inspired by [JSAPI Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html) class.",title:"WebChartQuery"},IEnvelope:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},xmin:{type:"number"},xmax:{type:"number"},ymin:{type:"number"},ymax:{type:"number"},zmin:{type:"number"},zmax:{type:"number"},mmin:{type:"number"},mmax:{type:"number"}},required:["xmin","xmax","ymin","ymax"],description:"An envelope is a rectangle defined by a range of values for each coordinate and attribute.",title:"IEnvelope"},IGeometry:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"}},description:'a building block for discrete geometries\n\n`IGeometry` can also be imported from the following packages:\n\n```js import { IGeometry } from "@esri/arcgis-rest-feature-layer"; ```',title:"IGeometry"},ISpatialReference:{type:"object",properties:{wkid:{type:["number","null"]},latestWkid:{type:"number"},vcsWkid:{type:"number"},latestVcsWkid:{type:"number"},wkt:{type:["string","null"]},latestWkt:{type:"string"}},description:'Spatial reference systems define mathematical transformations and coordinate systems for displaying spatial information in 2D and 3D.\n\n`ISpatialReference` can also be imported from the following packages:\n\n```js import { ISpatialReference } from "@esri/arcgis-rest-geocoding"; import { ISpatialReference } from "@esri/arcgis-rest-routing"; import { ISpatialReference } from "@esri/arcgis-rest-service-admin"; import { ISpatialReference } from "@esri/arcgis-rest-feature-layer"; ```',title:"ISpatialReference"},IExtent:{type:"object",properties:{xmin:{type:"number"},ymin:{type:"number"},zmin:{type:"number"},xmax:{type:"number"},ymax:{type:"number"},zmax:{type:"number"},spatialReference:{$ref:"#/definitions/ISpatialReference"}},required:["xmin","ymin","xmax","ymax"],description:'Extents are used to define rectangles and bounding boxes.\n\n`IExtent` can also be imported from the following packages:\n\n```js import { IExtent } from "@esri/arcgis-rest-geocoding"; import { IExtent } from "@esri/arcgis-rest-service-admin"; import { IExtent } from "@esri/arcgis-rest-feature-layer"; ```',title:"IExtent"},IPoint:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},x:{type:"number"},y:{type:"number"},z:{type:"number"}},required:["x","y"],description:'A simple point geometry, with spatial reference defined.\n\n`IPoint` can also be imported from the following packages:\n\n```js import { IPoint } from "@esri/arcgis-rest-routing"; import { IPoint } from "@esri/arcgis-rest-geocoding"; ```',title:"IPoint"},IHasZM:{type:"object",properties:{hasZ:{type:"boolean"},hasM:{type:"boolean"}},description:'`IHasZM` can also be imported from the following packages:\n\n```js import { IHasZM } from "@esri/arcgis-rest-feature-layer"; ```',title:"IHasZM"},IPolygon:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},rings:{type:"array",items:{type:"array",items:{$ref:"#/definitions/Position"}}}},required:["rings"],title:"IPolygon"},Position:{anyOf:[{$ref:"#/definitions/Position2D"},{type:"array",items:{type:"number"},minItems:4,maxItems:4},{type:"array",items:{type:"number"},minItems:3,maxItems:3}],title:"Position"},Position2D:{type:"array",items:{type:"number"},minItems:2,maxItems:2,title:"Position2D"},IPolygonWithCurves:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},curveRings:{type:"array",items:{type:"array",items:{anyOf:[{$ref:"#/definitions/JsonCurve"},{$ref:"#/definitions/Position"}]}}}},required:["curveRings"],title:"IPolygonWithCurves"},JsonCurve:{anyOf:[{$ref:"#/definitions/IArc"},{$ref:"#/definitions/IBezierCurve"},{$ref:"#/definitions/ICircularArc"},{$ref:"#/definitions/IOldCircularArc"}],title:"JsonCurve"},IArc:{type:"object",properties:{a:{type:"array",minItems:7,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{type:"number"},{type:"number"},{type:"number"},{type:"number"},{type:"number"}],maxItems:7}},required:["a"],description:"an arc can be represented as a JSON curve object",title:"IArc"},IBezierCurve:{type:"object",properties:{b:{type:"array",minItems:3,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{$ref:"#/definitions/Position2D"}],maxItems:3}},required:["b"],description:"a bezier curve can be represented as a JSON curve object",title:"IBezierCurve"},ICircularArc:{type:"object",properties:{c:{type:"array",minItems:2,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"}],maxItems:2}},required:["c"],description:"a circular arc can be represented as a JSON curve object",title:"ICircularArc"},IOldCircularArc:{type:"object",properties:{a:{type:"array",minItems:4,items:[{$ref:"#/definitions/Position"},{$ref:"#/definitions/Position2D"},{type:"number"},{type:"number"}],maxItems:4}},required:["a"],title:"IOldCircularArc"},IPolyline:{type:"object",properties:{spatialReference:{$ref:"#/definitions/ISpatialReference"},hasZ:{type:"boolean"},hasM:{type:"boolean"},paths:{type:"array",items:{type:"array",items:{$ref:"#/definitions/Position"}}}},required:["paths"],title:"IPolyline"},RESTUnits:{type:"string",enum:["feet","miles","nautical-miles","us-nautical-miles","meters","kilometers"],title:"RESTUnits"},WebChartSeriesQuery:{$ref:"#/definitions/Omit%3CWebChartQuery%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22num%22%7C%22objectIds%22%7C%22orderByFields%22%7C%22spatialRelationship%22%7C%22start%22%7C%22timeExtent%22%7C%22units%22)%3E",description:"Subset of the WebChartQuery, used at the series level",title:"WebChartSeriesQuery"},'Omit<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>':{$ref:"#/definitions/Pick%3CWebChartQuery%2CExclude%3C(%22outFields%22%7C%22where%22%7C%22groupByFieldsForStatistics%22%7C%22outStatistics%22%7C%22orderByFields%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22spatialRelationship%22%7C%22distance%22%7C%22units%22%7C%22timeExtent%22%7C%22start%22%7C%22num%22%7C%22returnDistinctValues%22%7C%22fetchNullValues%22%7C%22objectIds%22%7Cstring)%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22num%22%7C%22objectIds%22%7C%22orderByFields%22%7C%22spatialRelationship%22%7C%22start%22%7C%22timeExtent%22%7C%22units%22)%3E%3E",title:'Omit<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>'},'Pick<WebChartQuery,Exclude<("outFields"|"where"|"groupByFieldsForStatistics"|"outStatistics"|"orderByFields"|"gdbVersion"|"geometry"|"spatialRelationship"|"distance"|"units"|"timeExtent"|"start"|"num"|"returnDistinctValues"|"fetchNullValues"|"objectIds"|string),("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>>':{type:"object",properties:{outFields:{type:"array",items:{type:"string"},description:"Attribute fields to include in the FeatureSet. Will have an effect on chart with no aggregation."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."},groupByFieldsForStatistics:{type:"array",items:{type:"string"},description:"An array of fields which determine how the base data is grouped. Only one **groupBy** Field is supported, but ArcGIS JSAPI [supports multiple groupBy fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-Query.html#groupByFieldsForStatistics). While splitting by multiple group-by fields is possible, it is not being done because of the number of series it will give rise to (equal to the length of the Cartesian product set) possibly making the visualization hard to interpret.",maxItems:1},outStatistics:{type:"array",items:{$ref:"#/definitions/IStatisticDefinition"},description:"Represents an array of statistics definitions which dictate how a particular field should be aggregated. Refer to [JSAPI Statistics Definition class](https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-StatisticDefinition.html) for more info."},returnDistinctValues:{type:"boolean",description:"If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.",default:!1},fetchNullValues:{type:"boolean",description:"Indicates whether to fetch null values for them to be counted or displayed as categories on the chart.",default:!1}},title:'Pick<WebChartQuery,Exclude<("outFields"|"where"|"groupByFieldsForStatistics"|"outStatistics"|"orderByFields"|"gdbVersion"|"geometry"|"spatialRelationship"|"distance"|"units"|"timeExtent"|"start"|"num"|"returnDistinctValues"|"fetchNullValues"|"objectIds"|string),("distance"|"gdbVersion"|"geometry"|"num"|"objectIds"|"orderByFields"|"spatialRelationship"|"start"|"timeExtent"|"units")>>'},WebChartDataFilters:{$ref:"#/definitions/Pick%3CWebChartQuery%2C(%22distance%22%7C%22gdbVersion%22%7C%22geometry%22%7C%22objectIds%22%7C%22spatialRelationship%22%7C%22timeExtent%22%7C%22units%22%7C%22where%22)%3E",description:"JSON representation of filters applied to the data",title:"WebChartDataFilters"},'Pick<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"objectIds"|"spatialRelationship"|"timeExtent"|"units"|"where")>':{type:"object",properties:{distance:{type:"number",description:"Specifies a search distance for the `geometry`. To be associated with the `units` property. For compatible layers only."},gdbVersion:{type:"string",description:"Specifies the geodatabase version to display for feature service queries."},geometry:{anyOf:[{$ref:"#/definitions/IEnvelope"},{$ref:"#/definitions/IExtent"},{$ref:"#/definitions/IPoint"},{$ref:"#/definitions/IPolygon"},{$ref:"#/definitions/IPolygonWithCurves"},{$ref:"#/definitions/IPolyline"}],description:"The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties `distance` and `units`."},objectIds:{type:"array",items:{type:"number"},description:"An array of objectIds of the features to be filtered."},spatialRelationship:{description:"For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter geometry."},timeExtent:{type:"array",items:{type:"number"},minItems:2,maxItems:2,description:"A time extent ([timestamp, timestamp]) for a temporal query against time-aware layers."},units:{$ref:"#/definitions/RESTUnits",description:"The unit for calculating the buffer distance when `distance` and `geometry` are provided. If not specified, the unit is derived from the geometry spatial reference."},where:{type:"string",description:"Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values."}},title:'Pick<WebChartQuery,("distance"|"gdbVersion"|"geometry"|"objectIds"|"spatialRelationship"|"timeExtent"|"units"|"where")>'},WebChartSeries:{type:"object",properties:{type:{type:"string"},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1}},required:["type","id","name","x"],description:"JSON representation of the chart's series object. All other series extends this interface.",title:"WebChartSeries"},WebChartCalendarDatePartsBinning:{type:"object",properties:{trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart. Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval. Setting `true` indicates to trim these incomplete intervals. Setting `false` does not trim incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date. Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},unit:{$ref:"#/definitions/WebChartCalendarDatePartsUnits",description:"Represents the unit to use to bin the data."}},required:["unit"],title:"WebChartCalendarDatePartsBinning"},WebChartTemporalBinningBase:{type:"object",properties:{trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart. Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval. Setting `true` indicates to trim these incomplete intervals. Setting `false` does not trim incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date. Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results Current limitation: this is applied only when the provided layer supports the `queryBins` operation."}},description:"Describes the basic properties available for a temporal binning",title:"WebChartTemporalBinningBase"},WebChartCalendarDatePartsUnits:{type:"string",enum:["dayOfMonth","dayOfWeek","dayOfYear","hourOfDay","monthOfYear","minuteOfDay","weekOfYear","quarterOfYear"],description:"Represents the units that can be used for calendar-based date parts binning.",title:"WebChartCalendarDatePartsUnits"},WebChartTemporalBinning:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. 7 as Sunday for a USA user, 1 as Monday for a French one). Current limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series\n- `null` and `zero` for bar series",default:"null"},trimIncompleteTimeInterval:{type:"boolean",description:"Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart. Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval. Setting `true` indicates to trim these incomplete intervals. Setting `false` does not trim incomplete intervals.",default:!0},start:{type:"number",description:"The binning start date. Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},end:{type:"number",description:"The binning end date Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},offset:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},required:["unit","size"],description:"Offset to apply to the results Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},unit:{$ref:"#/definitions/WebChartTemporalBinningUnits",description:'The unit of time to use to bin the temporal data. Current limitation: the "quarters" unit is only supported if the provided layer supports the `queryBins` operation.'},size:{type:"number",description:"The span of time that will be binned or aggregated together. Works in coordination with `unit`."},timeAggregationType:{$ref:"#/definitions/WebChartTimeAggregationTypes",description:"The time interval alignment type. Valid options include `equalIntervalsFromStartTime` and `equalIntervalsFromEndTime`. When specific the binning will start at the first or last date of the dataset.",default:"equalIntervalsFromStartTime"}},description:"Describes the properties available for a temporal binning for a bar or line",title:"WebChartTemporalBinning"},WebChartTemporalBinningExtras:{type:"object",properties:{outTimeZone:{type:"string",description:"Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations Current limitation: this is applied only when the provided layer supports the `queryBins` operation."},firstDayOfWeek:{type:"number",description:"The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. 7 as Sunday for a USA user, 1 as Monday for a French one). Current limitation: this is applied only when the provided layer supports the `queryBins` operation.",minimum:1,maximum:7,multipleOf:1},nullPolicy:{$ref:"#/definitions/WebChartNullPolicyTypes",description:"How summarized bins returning a null value are displayed. Supported options are:\n- `null`, `zero`, and `interpolate` for line series\n- `null` and `zero` for bar series",default:"null"}},description:"Describes the extra properties available for a temporal series and for the heat chart",title:"WebChartTemporalBinningExtras"},WebChartNullPolicyTypes:{type:"string",enum:["null","zero","interpolate"],description:"Represents the different types of null policy that can be applied to a chart using the time binning feature.",title:"WebChartNullPolicyTypes"},WebChartTimeAggregationTypes:{type:"string",enum:["equalIntervalsFromStartTime","equalIntervalsFromEndTime"],description:"Represents the different types of time aggregation that can be applied to a chart using the time binning feature.",title:"WebChartTimeAggregationTypes"},WebChartTemporalSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data. If set to `false` the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."}},description:"Describes the properties related to a temporal series",title:"WebChartTemporalSeries"},WebChartBarChartSeries:{type:"object",properties:{binTemporalData:{type:"boolean",description:"Whether to use the time properties to bin the temporal data. If set to `false` the `binCount` and `unit` properties can be used to set the date axis base interval.",default:!0},temporalBinning:{$ref:"#/definitions/WebChartTemporalBinning",description:"Describes how to bin the temporal data."},type:{type:"string",const:"barSeries",description:'Represents a unique string identifier for the BarChartSeries object. For BarSeries object, it is "barSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the columns/bars should be rendered"},hideOversizedStackedLabels:{type:"boolean",description:"When true or undefined (default), the labels displayed within a small stacked column are hidden to avoid cluttering. When false, all the data labels are displayed.",default:!0},hideOversizedSideBySideLabels:{type:"boolean",description:"When true, the labels displayed within a small column for sideBySide bar series are hidden to avoid cluttering. When false or undefined (default), all the data labels are displayed.",default:!1},nullCategory:{$ref:"#/definitions/WebChartNullCategory",description:"Specifies how to display the category with null value Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color."}},required:["id","name","type","x","y"],description:"[Bar chart](https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/charts/bar-chart.htm) shows the categorical distribution of String/DateTime data.",title:"WebChartBarChartSeries"},HistogramOverlays:{type:"object",properties:{type:{type:"string",const:"chartOverlays",description:'Represents a unique string identifier for the HistogramOverlays object. For HistogramOverlays object, it is "chartOverlays".'},mean:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the mean overlay for histogram. If not provided, the mean overlay is not displayed."},median:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the median overlay for histogram. If not provided, the median overlay is not displayed."},standardDeviation:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the standard deviation overlay for histogram. If not provided, the standard deviation overlay is not displayed."},comparisonDistribution:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the comparison distribution overlay for histogram. If not provided, the comparison distribution overlay is not displayed."}},required:["type"],description:"Object containing Histogram overlays",title:"HistogramOverlays"},WebChartHistogramSeries:{type:"object",properties:{type:{type:"string",const:"histogramSeries",description:'Represents a unique string identifier for the HistogramSeries object. For BarSeries object, it is "histogramSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},binCount:{type:["number","null"],description:"Bin count must be a positive integer.",minimum:1,multipleOf:1,default:32},overlays:{$ref:"#/definitions/HistogramOverlays",description:"Specifies the chart overlays. Histogram supports 4 overlays: **mean**, **median**, **standardDeviation** and **comparisonDistribution**. The overlays won't show if the property is not defined."},dataTransformationType:{$ref:"#/definitions/WebChartDataTransformations",description:"Specifies how the data should be transformed (e.g. square root, log, etc.) before binning."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the columns/bars should be rendered"}},required:["id","name","type","x"],description:"[Histogram](https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/charts/histogram.htm) shows the numerical(frequency) distribution of a numerical field.",title:"WebChartHistogramSeries"},WebChartDataTransformations:{type:"string",enum:["none","logarithmic","squareRoot"],title:"WebChartDataTransformations"},ScatterplotOverlays:{type:"object",properties:{type:{type:"string",const:"chartOverlays",description:'Represents a unique string identifier for the ScatterplotOverlays object. For ScatterplotOverlays object, it is "chartOverlays".'},trendLine:{$ref:"#/definitions/WebChartOverlay",description:"Specifies the trendline overlay for scatter plot. The trendline won't show if the property is not defined."}},required:["type"],description:"Object containing Scatter Plot overlays",title:"ScatterplotOverlays"},SizePolicy:{type:"object",properties:{type:{type:"string",const:"sizeScale",description:'Represents a unique string identifier for the sizePolicy object. For sizePolicy object, it is "sizeScale".'},scaleType:{$ref:"#/definitions/SizePolicyScaleTypes",description:"The type of scale to apply to the markers (linear or logarithmic)",default:"SizePolicyScaleTypes.Linear"},field:{type:"string",description:"The field which determines the markers size"},minSize:{type:"number",description:"The minimum marker size",default:5,multipleOf:1},maxSize:{type:"number",description:"The maximum marker size",default:30,multipleOf:1}},required:["type","field"],title:"SizePolicy"},SizePolicyScaleTypes:{type:"string",enum:["linear","logarithmic"],description:"Represents the types of scales that can be applied to the size policy. Use by bubble charts (scatterplot).",title:"SizePolicyScaleTypes"},WebChartScatterplotSeries:{type:"object",properties:{type:{type:"string",const:"scatterSeries",description:'Represents a unique string identifier for the ScatterSeries object. For ScatterSeries object, it is "scatterSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},markerSymbol:{$ref:"#/definitions/ISimpleMarkerSymbol",description:'Specifies how each data point in the scatter plot should be rendered. The type is `"esriSMS"` and it is adopted from the [REST API Types](https://developers.arcgis.com/documentation/common-data-types/symbol-objects.htm#GUID-C8D40B32-5F4B-45EB-8048-6D5A8763E13B).'},overlays:{$ref:"#/definitions/ScatterplotOverlays",description:"Specifies all the chart overlays. The scatter plot implements only 1 overlay, **trendLine**. The overlays won't show if the property is not defined."},sizePolicy:{$ref:"#/definitions/SizePolicy",description:"Specifies rules to use the scatter plot as bubble plot, by changing dynamically the markers size according to a specific field value"},additionalTooltipFields:{type:"array",items:{type:"string"},description:"Specifies the additional numeric fields in the tooltip."}},required:["id","name","type","x","y"],description:"[Scatter plot](https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/charts/scatter-plot.htm) shows the relationship between two numerical fields.",title:"WebChartScatterplotSeries"},ISimpleMarkerSymbol:{type:"object",properties:{type:{type:"string",const:"esriSMS"},style:{$ref:"#/definitions/SimpleMarkerSymbolStyle"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"},color:{$ref:"#/definitions/Color"},size:{type:"number"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleMarkerSymbol"},IMarkerSymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"},angle:{type:"number"},xoffset:{type:"number"},yoffset:{type:"number"}},required:["type"],title:"IMarkerSymbol"},SimpleMarkerSymbolStyle:{type:"string",enum:["esriSMSCircle","esriSMSCross","esriSMSDiamond","esriSMSSquare","esriSMSTriangle","esriSMSX"],title:"SimpleMarkerSymbolStyle"},WebChartPieChartTick:{type:"object",properties:{type:{type:"string",const:"pieTick",description:'Represents a unique string identifier for the WebChartPieChartTick object. For PieTick object, it is "pieTick".'},visible:{type:"boolean",description:"Determines the visibility of the tick. Assigning the `true` value will only be considered when the data labels are visible (`series.dataLabels.visible`) and when the data label associated to the tick is outside of the chart (`series.dataLabelsOffset` > 0)."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling info on how the pie chart ticks should be rendered"}},required:["type"],description:"JSON representation of the pie ticks.",title:"WebChartPieChartTick"},WebChartPieChartSlice:{type:"object",properties:{sliceId:{type:"string",description:"A unique string used identify the slice of a pie chart."},originalLabel:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"The slice's original label."},label:{type:"string",description:"Custom label for the slice. For grouped slice, the default value is `Other`. For regular slice, it will be either the category or field name."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the slice should be rendered. If not provided, the slice will be styled with default values."}},required:["sliceId"],description:"JSON representation of the pie slices",title:"WebChartPieChartSlice"},WebChartPieChartGroupSlice:{type:"object",properties:{sliceId:{type:"string",description:"A unique string used identify the slice of a pie chart."},originalLabel:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"The slice's original label."},label:{type:"string",description:"Custom label for the slice. For grouped slice, the default value is `Other`. For regular slice, it will be either the category or field name."},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the slice should be rendered. If not provided, the slice will be styled with default values."},percentageThreshold:{type:"number",description:"Slices that have a percent value equal or lesser to this threshold are grouped into a unique slice"},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the grouped slice data labels should be rendered. If the property is not set the `series.dataLabels` will be used instead."}},required:["percentageThreshold","sliceId"],description:"JSON representation of the pie grouped slice",title:"WebChartPieChartGroupSlice"},WebChartPieChartSeries:{type:"object",properties:{type:{type:"string",const:"pieSeries",description:'Represents a unique string identifier for the PieSeries object. For PieSeries object, it is "pieSeries".'},id:{type:"string",description:"A unique string used to differentiate the series on a chart."},visible:{type:"boolean",description:"Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.",default:!0},dataTooltipVisible:{type:"boolean",description:"Hides or shows data tooltips. Applies to all charts but Gauge.",default:!0},dataTooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the background (false) or the outline (true). Applies to all charts but Gauge.",default:!1},dataTooltipValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render numeric values in tooltips."},dataTooltipPercentFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Defines how to render percent values in tooltips. Currently used for stacked 100% bar and line charts, as well as pie charts."},dataTooltipDateFormat:{$ref:"#/definitions/DateTimeFormatOptions",description:"Defines how to render dates in tooltips. Currently used for bar and line charts using a date x-axis with no time binning."},name:{type:"string",description:"Specifies the name of the series. It would be reflected in the chart [legends](#legend)"},query:{$ref:"#/definitions/WebChartSeriesQuery",description:"Specifies a query object associated with a particular series containing info on what data to fetch for that series."},x:{type:"string",description:"Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},dataLabels:{$ref:"#/definitions/WebChartText",description:"Specifies how the data labels should be rendered."},assignToSecondValueAxis:{type:"boolean",description:"Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it. Supported by bar and line series.",default:!1},y:{type:"string",description:"Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.",minLength:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.",minimum:0,maximum:100,default:50},startAngle:{type:["number","null"],default:-90},endAngle:{type:["number","null"],default:270},fillSymbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling info on how the slices should be rendered"},displayCategoryOnDataLabel:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed on its data label. This property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!0},displayNumericValueOnDataLabel:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed on its data label. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`. This property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!0},displayPercentageOnDataLabel:{type:"boolean",description:"Indicates whether the percentage associated to a slice is to be displayed on its data label. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)` This property will be ignored if the chart options `dataLabelFormatter` is provided.",default:!1},displayCategoryOnTooltip:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed on its tooltip. This property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},displayNumericValueOnTooltip:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed on its tooltip. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)` This property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},displayPercentageOnTooltip:{type:"boolean",description:"Indicates whether the percentage associated to a slice is to be displayed on its tooltip. If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)` This property will be ignored if the chart options `tooltipFormatter` is provided.",default:!0},numericValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Specifies how the numerical values should be formatted (applied to label, tooltip and legend). Can be overridden for the tooltips by series.dataTooltipValueFormat."},percentValueFormat:{$ref:"#/definitions/NumberFormatOptions",description:"Specifies how the percent values should be formatted (applied to label, tooltip and legend) Can be overridden for the tooltips by series.dataTooltipPercentFormat."},valuePrefix:{type:"string",description:"Adds a prefix to all the values displayed on the pie chart: data labels, tooltips and legend"},valueSuffix:{type:"string",description:"Adds a suffix to all the values displayed on the pie chart: data labels, tooltips and legend"},percentagePrefix:{type:"string",description:"Adds a prefix to all the percentages displayed on the pie chart: data labels, tooltips and legend"},percentageSuffix:{type:"string",description:"Adds a suffix to all the percentages displayed on the pie chart: data labels, tooltips and legend"},dataLabelsCharacterLimit:{type:["number","null"],description:'If set, the category on the data label is truncated to display only `characterLimit` characters, and an ellipsis ("...") is added to the end of the label. This does not affect the value and percentage part of the labels. Does not apply to tooltips and legend labels.',default:"undefined",minimum:1,multipleOf:1},ticks:{$ref:"#/definitions/WebChartPieChartTick",description:"Specifies how to render the ticks shown on each slide. Ticks will be displayed with default values if not provided."},dataLabelsInside:{type:"boolean",description:`Whether to place the data labels inside the pie slices. When set to \`true\` the following properties will be ignored:
|
|
6
6
|
- dataLabelsOffset
|
|
7
7
|
- alignDataLabels
|