@esri/solutions-components 1.2.0-next.22 → 1.2.0-next.24
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/{ATV7OCMV.js → 27VT6FGO.js} +1 -1
- package/dist/cdn/{5ISMY7M2.js → 27YRRENY.js} +2 -2
- package/dist/cdn/{TAHGD2O4.js → 2AI475Q6.js} +2 -2
- package/dist/cdn/{NAWETRQ6.js → 2BLFCKKA.js} +2 -2
- package/dist/cdn/2CCBXSKK.js +4 -0
- package/dist/cdn/{DTITQ4KX.js → 2JWUVZ2L.js} +1 -1
- package/dist/cdn/{XUVQ6BRC.js → 2KHJ7DAR.js} +2 -2
- package/dist/cdn/{IDY2HCL4.js → 2KZX4PSI.js} +2 -2
- package/dist/cdn/{VXMBJE2D.js → 2M4ILWS4.js} +2 -2
- package/dist/cdn/{NK5RFP3X.js → 2PC724CH.js} +2 -2
- package/dist/cdn/2PHLVPTR.js +4 -0
- package/dist/cdn/{DPUIBCUX.js → 2S3FX57Y.js} +2 -2
- package/dist/cdn/{FXUF5PDO.js → 2YG6C32T.js} +2 -2
- package/dist/cdn/{IKXRXOR4.js → 2ZWVBNPH.js} +2 -2
- package/dist/cdn/{7AMGNCI5.js → 34HAWRGI.js} +2 -2
- package/dist/cdn/{QEMWXWF7.js → 35KLNGC5.js} +2 -2
- package/dist/cdn/{WU3PDZMB.js → 36BDQG6C.js} +2 -2
- package/dist/cdn/{5GXSDMY4.js → 3DQY36BR.js} +2 -2
- package/dist/cdn/{TIUHRZUS.js → 3E3IBLXH.js} +2 -2
- package/dist/cdn/{DKO57ZWW.js → 3G3I5XU7.js} +2 -2
- package/dist/cdn/3LF35Q54.js +4 -0
- package/dist/cdn/{IX5DZANU.js → 3P4LQ4TN.js} +2 -2
- package/dist/cdn/{K7EO7SCJ.js → 3VUSEXMB.js} +2 -2
- package/dist/cdn/{K3I6QOKJ.js → 3WHGZJJS.js} +2 -2
- package/dist/cdn/{TJFMZ5AI.js → 3WPZIU5L.js} +2 -2
- package/dist/cdn/{SSIC74L6.js → 43NXLAVY.js} +2 -2
- package/dist/cdn/{D7WRWG4G.js → 443EHILD.js} +2 -2
- package/dist/cdn/4BXRZ62B.js +4 -0
- package/dist/cdn/{JDGP7IH2.js → 4EQVVEVL.js} +2 -2
- package/dist/cdn/{PV2QCV7Z.js → 4HFOPNFI.js} +2 -2
- package/dist/cdn/{LPRTYYSR.js → 4JCL7LZR.js} +2 -2
- package/dist/cdn/{4DVTM7ED.js → 4JHKVR7I.js} +2 -2
- package/dist/cdn/{VNWZKWFC.js → 4QNOYSPY.js} +2 -2
- package/dist/cdn/{MUW67XQT.js → 4RNO5M22.js} +2 -2
- package/dist/cdn/{P5M23NUP.js → 4RTC5XWR.js} +2 -2
- package/dist/cdn/{3BA4TVKZ.js → 4SOCIVF6.js} +1 -1
- package/dist/cdn/{4T5OFFVJ.js → 4WOSAZZE.js} +2 -2
- package/dist/cdn/{J6QQCPG3.js → 4Y7ZVP46.js} +2 -2
- package/dist/cdn/{ZVJJI7J2.js → 55A2KYUG.js} +2 -2
- package/dist/cdn/{4QQCA3U4.js → 5AERAR2L.js} +1 -1
- package/dist/cdn/{FWSZLG4E.js → 5D7BHC5A.js} +2 -2
- package/dist/cdn/{T7FLMBUP.js → 5JZITWD2.js} +2 -2
- package/dist/cdn/{B5FNHYSZ.js → 5N7W6CKG.js} +2 -2
- package/dist/cdn/{NVZ7ZC4O.js → 5NLABLUG.js} +2 -2
- package/dist/cdn/{P7475IP6.js → 5ROXJJIZ.js} +2 -2
- package/dist/cdn/{JFWEV72O.js → 5TKI4FG4.js} +2 -2
- package/dist/cdn/{HUSG6A7E.js → 5V5O4IVZ.js} +2 -2
- package/dist/cdn/{5ON45F2D.js → 5XHMHEC7.js} +2 -2
- package/dist/cdn/{ISSOGJCD.js → 63DFPGXG.js} +2 -2
- package/dist/cdn/{RZDW2F4Y.js → 67TNRLBR.js} +2 -2
- package/dist/cdn/{I7NZK7VA.js → 6EHWI7JM.js} +2 -2
- package/dist/cdn/{XYR6PESG.js → 6JJBGLJE.js} +2 -2
- package/dist/cdn/{WV4YBBNZ.js → 6MECJUZM.js} +2 -2
- package/dist/cdn/{RCYLKWSP.js → 6R6WIO6H.js} +2 -2
- package/dist/cdn/{5WF2EVNT.js → 6WW2DA2G.js} +1 -1
- package/dist/cdn/{RHCVCLZT.js → 6XXBH32V.js} +2 -2
- package/dist/cdn/{M5L46EPB.js → 6Z47NIFS.js} +2 -2
- package/dist/cdn/{X6ZQSZQU.js → 6Z7A2SPS.js} +2 -2
- package/dist/cdn/{YQCBAF3G.js → 73OBTSKG.js} +2 -2
- package/dist/cdn/{SDDG4ZNW.js → 74AIX5RH.js} +1 -1
- package/dist/cdn/{WKQ2RBCF.js → 75CES5F2.js} +2 -2
- package/dist/cdn/{6GY47336.js → 76RER7LN.js} +2 -2
- package/dist/cdn/{6SZHNYTZ.js → 7GAWPJYN.js} +2 -2
- package/dist/cdn/{6QELS3Z2.js → 7HWYZVCJ.js} +2 -2
- package/dist/cdn/{FIFGGEED.js → 7LEW57R4.js} +2 -2
- package/dist/cdn/{CEJRXTAP.js → 7OW5IQNG.js} +2 -2
- package/dist/cdn/{TFU6LP44.js → 7QBFHK6I.js} +2 -2
- package/dist/cdn/{BDGTGDFW.js → 7UWI5KWK.js} +2 -2
- package/dist/cdn/{TTOAZGMT.js → A65SF5TP.js} +2 -2
- package/dist/cdn/{FBBVBR5A.js → AAXTQRZG.js} +2 -2
- package/dist/cdn/{UX6HCXQS.js → ANOEINZT.js} +2 -2
- package/dist/cdn/{DCNCQVZU.js → ANWXMLC5.js} +2 -2
- package/dist/cdn/{DNJTQZGW.js → AO32HRV6.js} +2 -2
- package/dist/cdn/{WZBY5ZWL.js → ASC5OMBD.js} +2 -2
- package/dist/cdn/{7I6EJ6DQ.js → AVA46ODH.js} +2 -2
- package/dist/cdn/{WPXB7ULE.js → B6DL7APO.js} +2 -2
- package/dist/cdn/{OA5YW6CR.js → BEV4LNQI.js} +2 -2
- package/dist/cdn/{BSVWOZY5.js → BF6B5YPC.js} +1 -1
- package/dist/cdn/{OKHNCIUI.js → BGC5OXBC.js} +2 -2
- package/dist/cdn/{4N6YXJN2.js → BLIFIP2J.js} +2 -2
- package/dist/cdn/{PEAGXXX7.js → BOHI7OOB.js} +1 -1
- package/dist/cdn/{OQNBWIYI.js → BR65SFX2.js} +1 -1
- package/dist/cdn/{SCGPU45I.js → BTLVFHR2.js} +1 -1
- package/dist/cdn/{LY574EPN.js → BUJ7HMXE.js} +2 -2
- package/dist/cdn/{JRQYZJIL.js → BUQMZQDZ.js} +2 -2
- package/dist/cdn/{2LAEPCUT.js → C5H65524.js} +2 -2
- package/dist/cdn/{4NKIAU37.js → C7RFHH22.js} +2 -2
- package/dist/cdn/{FOBH7PYG.js → CE2PWV2T.js} +2 -2
- package/dist/cdn/{D64YWVBM.js → CELVLTD3.js} +2 -2
- package/dist/cdn/{7V4NDZHP.js → CFRDPWXR.js} +2 -2
- package/dist/cdn/{S44FPEJZ.js → CHNYABSO.js} +2 -2
- package/dist/cdn/{VRVJCGDV.js → CLFLK4OG.js} +2 -2
- package/dist/cdn/{MKN4Z56R.js → CO3TU24E.js} +2 -2
- package/dist/cdn/{EZQK7BI4.js → CQIWHMR3.js} +1 -1
- package/dist/cdn/{K4OCUFNZ.js → CSH7RK4L.js} +2 -2
- package/dist/cdn/{LRRKW6H5.js → CYADZ6PK.js} +2 -2
- package/dist/cdn/{K3B77KNR.js → CYG5JUF7.js} +1 -1
- package/dist/cdn/{6ZQWYLNF.js → CZIXYCET.js} +2 -2
- package/dist/cdn/{EGOO6T5E.js → D67LKKO3.js} +2 -2
- package/dist/cdn/{VSJVIZGQ.js → D7WDGASK.js} +36 -34
- package/dist/cdn/{UKS25OFJ.js → DCNEHZTW.js} +2 -2
- package/dist/cdn/{GTCHPWOM.js → DED6BDXL.js} +2 -2
- package/dist/cdn/{BZJ6ESSC.js → DFO6WKOY.js} +2 -2
- package/dist/cdn/{IDFQGGDV.js → DK5FUIGH.js} +1 -1
- package/dist/cdn/{43XU6K7E.js → DQZF7IPW.js} +2 -2
- package/dist/cdn/{PRACR4OZ.js → DUYSEICC.js} +2 -2
- package/dist/cdn/{SIGC4HV4.js → DVGLTRJU.js} +1 -1
- package/dist/cdn/{IRZC2FGR.js → DW7PYNVR.js} +2 -2
- package/dist/cdn/{ME7PTO3E.js → DWL4LXGS.js} +14 -14
- package/dist/cdn/{AZERSVAV.js → E23BMOKL.js} +2 -2
- package/dist/cdn/{YGQM56OM.js → E4JZL5IT.js} +2 -2
- package/dist/cdn/{ZQV3UEGN.js → EAS42GZC.js} +1 -1
- package/dist/cdn/{V2SZ77LE.js → EE3RLK54.js} +2 -2
- package/dist/cdn/{RDHTUBN7.js → EHS77SRG.js} +2 -2
- package/dist/cdn/{LKPIRCG4.js → EIXF5OZH.js} +1 -1
- package/dist/cdn/EJX4TNGV.js +18 -0
- package/dist/cdn/{NAY26ZKT.js → ENUF5QK4.js} +2 -2
- package/dist/cdn/{STRDFVCX.js → EOLIKK4H.js} +2 -2
- package/dist/cdn/{ZORVIUJJ.js → EOZZELAV.js} +2 -2
- package/dist/cdn/{WZB4BJD4.js → EROCJUGG.js} +2 -2
- package/dist/cdn/{AZBT7TRF.js → ERSOKPXT.js} +2 -2
- package/dist/cdn/{BRKMDWXS.js → EY4LNEPF.js} +2 -2
- package/dist/cdn/{SQWMQEXG.js → EYIL3WCN.js} +2 -2
- package/dist/cdn/{ASZKILYC.js → F37UKUAV.js} +2 -2
- package/dist/cdn/{AZLSPTNN.js → FAFTQRQY.js} +2 -2
- package/dist/cdn/{O7W4WOJI.js → FBAY6DO3.js} +2 -2
- package/dist/cdn/{U5C4UNHM.js → FCJJ2E2N.js} +2 -2
- package/dist/cdn/{OYLG7NMH.js → FDGI4V7M.js} +2 -2
- package/dist/cdn/{KVWUHT6P.js → FEODTSQT.js} +2 -2
- package/dist/cdn/{QKKOOLCZ.js → FFLBALPH.js} +2 -2
- package/dist/cdn/{WE6HWGXJ.js → FFZY7CPX.js} +2 -2
- package/dist/cdn/{HB3S47XT.js → FLA5RSAG.js} +2 -2
- package/dist/cdn/{RHFWWEBY.js → FLMS2TR4.js} +2 -2
- package/dist/cdn/{PEDZ3CZE.js → FLMVVIYI.js} +2 -2
- package/dist/cdn/{TZWUZYFQ.js → FVLOODPF.js} +2 -2
- package/dist/cdn/{WAQBAPR3.js → FWE4FUJH.js} +2 -2
- package/dist/cdn/{HZAZFSYY.js → FY6XKBZS.js} +2 -2
- package/dist/cdn/{J7WGRAVD.js → G24DNHCB.js} +2 -2
- package/dist/cdn/{BIDEU7W3.js → G37T64CV.js} +2 -2
- package/dist/cdn/{NPNHPZAS.js → G7OBBNFQ.js} +2 -2
- package/dist/cdn/GDO7SFZU.js +18 -0
- package/dist/cdn/{VLKS5OXM.js → GFXNHLR7.js} +2 -2
- package/dist/cdn/{HX7JRDBY.js → GGQUPRRV.js} +2 -2
- package/dist/cdn/{UFVKB5BE.js → GHD3JMA4.js} +2 -2
- package/dist/cdn/{VMCWUHIT.js → GHZ256AS.js} +4 -4
- package/dist/cdn/{ZCR63VKD.js → GJEPJCWP.js} +2 -2
- package/dist/cdn/{A3RFYTTG.js → GKD47RX5.js} +1 -1
- package/dist/cdn/{LSUPOGJI.js → GKS4SDRE.js} +2 -2
- package/dist/cdn/{AOTY27J7.js → GQYBA7GH.js} +2 -2
- package/dist/cdn/{XJUYCZK6.js → GWYYMTWP.js} +2 -2
- package/dist/cdn/{K6P572FU.js → GYIUJFGM.js} +2 -2
- package/dist/cdn/{VRWUCH5D.js → GZK6A527.js} +2 -2
- package/dist/cdn/{2J76TI3Y.js → H2UXJKPU.js} +1 -1
- package/dist/cdn/{SVZ3OKM7.js → H34VS27L.js} +2 -2
- package/dist/cdn/{ALPEUENN.js → HBNX26U7.js} +2 -2
- package/dist/cdn/{WGR5GX2D.js → HBOBM65G.js} +2 -2
- package/dist/cdn/{UDOBEWPP.js → HF6CCTGX.js} +2 -2
- package/dist/cdn/{ICZLPAYA.js → HFSAMU3B.js} +2 -2
- package/dist/cdn/{MIECMGBZ.js → HP4JIDLF.js} +2 -2
- package/dist/cdn/{FNWAWKAT.js → HRKWHIYV.js} +2 -2
- package/dist/cdn/{3E5MUBDX.js → HST46P5Y.js} +2 -2
- package/dist/cdn/{G36XD6KA.js → HWKBNZEW.js} +2 -2
- package/dist/cdn/{NH67I2JP.js → HXHGWVUO.js} +2 -2
- package/dist/cdn/{QCXTCMEW.js → I5JM65X6.js} +2 -2
- package/dist/cdn/{DTGCP5A5.js → IBLOFUUX.js} +2 -2
- package/dist/cdn/{DLFCYL32.js → II25P5CO.js} +2 -2
- package/dist/cdn/{O3BS4V4J.js → IJEJXWF7.js} +2 -2
- package/dist/cdn/{QEZQG4UJ.js → IKBTX6QZ.js} +2 -2
- package/dist/cdn/{WZHAHR26.js → ILRIV2PZ.js} +2 -2
- package/dist/cdn/{K5E7SDHF.js → IMPPWVVG.js} +2 -2
- package/dist/cdn/{KU4LDDKR.js → J4UA37P6.js} +2 -2
- package/dist/cdn/{FWGNWNBB.js → J5GBXHV7.js} +2 -2
- package/dist/cdn/{TU2WGWTD.js → JEWJNGE6.js} +2 -2
- package/dist/cdn/{6KLNSSNI.js → JGT3UVSS.js} +2 -2
- package/dist/cdn/{CJZQ6JFL.js → JIREIGOU.js} +2 -2
- package/dist/cdn/{3BSOZ44L.js → JKYLZXQW.js} +2 -2
- package/dist/cdn/{TIYTFD5S.js → JOSEALSV.js} +2 -2
- package/dist/cdn/{V7HJUDXK.js → JYBZAUFS.js} +2 -2
- package/dist/cdn/{7P2XP63S.js → K2C56RZ4.js} +3 -3
- package/dist/cdn/{GMMRDHZU.js → K2VMZCUX.js} +2 -2
- package/dist/cdn/K3OZMGZ3.js +4 -0
- package/dist/cdn/{LOM2QEE7.js → K4HRSAES.js} +2 -2
- package/dist/cdn/{MHS63FKV.js → KESHQJDL.js} +2 -2
- package/dist/cdn/{HWECP5SJ.js → KG4IFWCZ.js} +2 -2
- package/dist/cdn/{AWZQ2TRC.js → KIUNRSQA.js} +2 -2
- package/dist/cdn/{I3MJVYAU.js → KOT36X5I.js} +2 -2
- package/dist/cdn/{A4LF2IU3.js → KRZ6DGKX.js} +2 -2
- package/dist/cdn/{BQG6YY27.js → KSO7CXKH.js} +2 -2
- package/dist/cdn/{ZMXSR2TT.js → KTJDLUIU.js} +2 -2
- package/dist/cdn/{UEQV47GY.js → KWTCG2SE.js} +2 -2
- package/dist/cdn/{UWWHODFG.js → KX7PNFBK.js} +2 -2
- package/dist/cdn/{GBRE25RH.js → KXKFOLKN.js} +1 -1
- package/dist/cdn/{BZNPKPP7.js → KZD2C2ML.js} +2 -2
- package/dist/cdn/{RUT6CBUH.js → L2WHYM3J.js} +1 -1
- package/dist/cdn/{3U6NZ374.js → L6PIPEF2.js} +2 -2
- package/dist/cdn/{5Y7G2BLZ.js → LCZYX2MS.js} +2 -2
- package/dist/cdn/{SF5F7OGC.js → LG6DSYZW.js} +2 -2
- package/dist/cdn/{KYBUZUQT.js → LH3A7YCF.js} +2 -2
- package/dist/cdn/{LVKU6CB5.js → LNFEAJAZ.js} +2 -2
- package/dist/cdn/{XEQPE5AQ.js → LOIGPO5O.js} +2 -2
- package/dist/cdn/{V2SNCDR5.js → LPQM324E.js} +2 -2
- package/dist/cdn/{LJQD3F2H.js → LQVI3NR7.js} +2 -2
- package/dist/cdn/{UK3KUJMQ.js → LYXGPO4K.js} +1 -1
- package/dist/cdn/{BSE6M452.js → MLY5XS76.js} +2 -2
- package/dist/cdn/{EU3IQK3Z.js → MSBJECJS.js} +2 -2
- package/dist/cdn/{ITEAXFL7.js → MTH7WCDT.js} +2 -2
- package/dist/cdn/{NTQTWQB6.js → MWLY3N7C.js} +2 -2
- package/dist/cdn/{OUIIIMBH.js → MZVQVHJA.js} +2 -2
- package/dist/cdn/{N3SINIML.js → NAUVQEGN.js} +2 -2
- package/dist/cdn/{TNLGNDJT.js → NBZ4SJV4.js} +2 -2
- package/dist/cdn/{ULCE466Z.js → NDJVE732.js} +2 -2
- package/dist/cdn/{UHXHSSXB.js → NEDCAXJL.js} +2 -2
- package/dist/cdn/{76CP2OWS.js → NI64NXLH.js} +1 -1
- package/dist/cdn/{DJOW4VU6.js → NWOOAUG7.js} +2 -2
- package/dist/cdn/{ENZNXZL6.js → NX4JHBIH.js} +2 -2
- package/dist/cdn/{Z6WJEJX2.js → NZO56NNR.js} +2 -2
- package/dist/cdn/{56MNA2VS.js → O4ZKMCDY.js} +1 -1
- package/dist/cdn/{TXCGA6H6.js → OABMD66T.js} +2 -2
- package/dist/cdn/{IGP55N3J.js → OC7V7KCG.js} +2 -2
- package/dist/cdn/{ZOZBNFAW.js → OJG6HIKN.js} +2 -2
- package/dist/cdn/{EMCKMG77.js → OLKLMVT2.js} +2 -2
- package/dist/cdn/{3WSM6NO6.js → OOSMF7MX.js} +2 -2
- package/dist/cdn/{SMH6JAXF.js → OPFB2Y4V.js} +2 -2
- package/dist/cdn/{VXLOZPRP.js → OQF6YVUK.js} +2 -2
- package/dist/cdn/{RQLUKQEG.js → OUYGAAGX.js} +2 -2
- package/dist/cdn/{RAFE4Y2S.js → OYGODC65.js} +2 -2
- package/dist/cdn/{G6R3KQSS.js → P3LUAT4F.js} +2 -2
- package/dist/cdn/{J6I4CQUW.js → P6OT3PMN.js} +2 -2
- package/dist/cdn/P7A24J32.js +18 -0
- package/dist/cdn/{7KWP5FHY.js → P7H776WT.js} +2 -2
- package/dist/cdn/{RU6ANVFN.js → PFXC7WOR.js} +2 -2
- package/dist/cdn/{DGD6AY26.js → PHHVQRLL.js} +2 -2
- package/dist/cdn/{K7GBK475.js → PHLPFYN3.js} +1 -1
- package/dist/cdn/{6XC45ETQ.js → PRIALFET.js} +2 -2
- package/dist/cdn/{TQQ5N2OO.js → PSACJE2J.js} +2 -2
- package/dist/cdn/{Y3M3ZSYR.js → PZ5GGYLN.js} +2 -2
- package/dist/cdn/{LMICKMZD.js → Q4ZZ6NDL.js} +2 -2
- package/dist/cdn/{4KD2CAOM.js → QBBC7A4Y.js} +1 -1
- package/dist/cdn/{VY3LCIKX.js → QC34FER4.js} +2 -2
- package/dist/cdn/{H7C3BRTP.js → QGWCUXVU.js} +2 -2
- package/dist/cdn/{63KS5ZBF.js → QH2BEMM6.js} +2 -2
- package/dist/cdn/{PQDXLQR7.js → QJRGXDSI.js} +2 -2
- package/dist/cdn/{5UBEIDUY.js → QO2AZMFP.js} +2 -2
- package/dist/cdn/QU33YK2I.js +4 -0
- package/dist/cdn/{7BZRS3T5.js → QUO6TIFZ.js} +1 -1
- package/dist/cdn/{ZKALBQL6.js → QXX2SNE5.js} +2 -2
- package/dist/cdn/{WD7VSNNZ.js → QYQTOIF6.js} +1 -1
- package/dist/cdn/{GG6OEQ4D.js → R22HIDGZ.js} +2 -2
- package/dist/cdn/{AMEG6Y2U.js → R47VKS7S.js} +2 -2
- package/dist/cdn/{KQEG2VSM.js → R6MJ3BWC.js} +1 -1
- package/dist/cdn/{67YVVSND.js → REW2XBKZ.js} +1 -1
- package/dist/cdn/{QJV2HXKI.js → RFLU2ZRI.js} +2 -2
- package/dist/cdn/{6IJ2366S.js → RGGUA4QF.js} +3 -3
- package/dist/cdn/{COKCSW5M.js → RPY6EG62.js} +2 -2
- package/dist/cdn/{EKAMOWDX.js → RRNRGQVC.js} +2 -2
- package/dist/cdn/RXDDH7T7.js +4 -0
- package/dist/cdn/{VV26WPIK.js → RY2JRQIA.js} +2 -2
- package/dist/cdn/{47BR2SZD.js → SERCADIE.js} +2 -2
- package/dist/cdn/{PMAYORJM.js → SGEGTSUZ.js} +2 -2
- package/dist/cdn/{VJ3OBFSQ.js → SKGMLLPH.js} +2 -2
- package/dist/cdn/{5IGSIDCX.js → SKZURFAS.js} +2 -2
- package/dist/cdn/{RWDN5N2Z.js → SMZGBF7A.js} +2 -2
- package/dist/cdn/{BWBSEHRI.js → SNLUBEJI.js} +2 -2
- package/dist/cdn/{YTT2J3YO.js → SSHAOTEK.js} +2 -2
- package/dist/cdn/{E36E5442.js → STHO3HPO.js} +2 -2
- package/dist/cdn/{MBB7JMCL.js → SU5NQO2Y.js} +2 -2
- package/dist/cdn/{QCJFS667.js → SVTYAHMC.js} +2 -2
- package/dist/cdn/{JJMULAR6.js → SZNJD54W.js} +1 -1
- package/dist/cdn/{XNTJWPM3.js → T3HXN3EN.js} +2 -2
- package/dist/cdn/{UENBDNEI.js → T5CPOSYR.js} +1 -1
- package/dist/cdn/{W3D34FZA.js → T6DIELVZ.js} +2 -2
- package/dist/cdn/{BDZD3CVH.js → T6FIJDJK.js} +2 -2
- package/dist/cdn/{7S22H73A.js → T6KDHTIZ.js} +2 -2
- package/dist/cdn/T6NNOIF5.js +4 -0
- package/dist/cdn/{GIX2IW6Y.js → T74GGRMS.js} +2 -2
- package/dist/cdn/{5AFTWETY.js → T7GSBDIG.js} +2 -2
- package/dist/cdn/{W46D2COK.js → TDZ7C2M7.js} +2 -2
- package/dist/cdn/{DI7ZAJJN.js → TEY2ATFL.js} +2 -2
- package/dist/cdn/{TDOB3OYC.js → TKRGPMED.js} +2 -2
- package/dist/cdn/{JOGLZRNT.js → TNHXSGP4.js} +2 -2
- package/dist/cdn/{TYKGZHC7.js → TO6ZG5LX.js} +1 -1
- package/dist/cdn/{LT3CRKFO.js → TOEQLEDG.js} +2 -2
- package/dist/cdn/{IRMKTEGT.js → TRN3X66C.js} +2 -2
- package/dist/cdn/{BRZXGWDB.js → TW7EJR75.js} +2 -2
- package/dist/cdn/{YUHIK6J3.js → TZ4BYOUZ.js} +2 -2
- package/dist/cdn/{BDT5NRCH.js → UIGYM74T.js} +2 -2
- package/dist/cdn/{I6OCOHZ5.js → UM5O6SR4.js} +2 -2
- package/dist/cdn/{TTI4XUEY.js → UMEH46X4.js} +2 -2
- package/dist/cdn/{5A4CLVYZ.js → UNOFD42Q.js} +1 -1
- package/dist/cdn/{FLZL5MYI.js → UQVFINXF.js} +2 -2
- package/dist/cdn/{5NCBUEPR.js → URRLKSMA.js} +2 -2
- package/dist/cdn/{CIIVSICU.js → V2K3CARG.js} +2 -2
- package/dist/cdn/{PA4KJ3OT.js → VBGQ7FE6.js} +2 -2
- package/dist/cdn/{JP2DX62F.js → VDTXZ2OC.js} +2 -2
- package/dist/cdn/{3DII42GS.js → VEUQH5L3.js} +2 -2
- package/dist/cdn/{57N3RILQ.js → VGHU623Q.js} +2 -2
- package/dist/cdn/{ALSPCWO6.js → VHW5YMZI.js} +2 -2
- package/dist/cdn/{KMFXZ7E6.js → VJU2J222.js} +2 -2
- package/dist/cdn/{KXZIEXP4.js → VK3OPHNA.js} +2 -2
- package/dist/cdn/{JRS2R7FM.js → VK5SHRI7.js} +2 -2
- package/dist/cdn/{KRDDFDOO.js → VW2WEXVP.js} +1 -1
- package/dist/cdn/{BOSFQLI6.js → VX2H4KEW.js} +2 -2
- package/dist/cdn/{ZPUSPQYX.js → W5O6BHYJ.js} +2 -2
- package/dist/cdn/{XVFKUURP.js → W6XHOAIY.js} +2 -2
- package/dist/cdn/{EQVOII7W.js → W75YFHYB.js} +2 -2
- package/dist/cdn/{7RDNACQ2.js → WFZWW33X.js} +2 -2
- package/dist/cdn/{DSWZRGSA.js → WL4NQCES.js} +2 -2
- package/dist/cdn/{5WJ4J535.js → WNFEGMNZ.js} +2 -2
- package/dist/cdn/{U6IOPARX.js → WOXREBHW.js} +2 -2
- package/dist/cdn/{JUJMZFNA.js → WOZIGPUB.js} +2 -2
- package/dist/cdn/{J5WQSJRQ.js → WP7F5HRM.js} +2 -2
- package/dist/cdn/{RBXB7VA5.js → WTVABM3O.js} +2 -2
- package/dist/cdn/{2NGTPAY6.js → WUTY55ZF.js} +1 -1
- package/dist/cdn/{EFY33UCE.js → WWSSJEOD.js} +2 -2
- package/dist/cdn/{JLFACBAC.js → WYDM2CB5.js} +2 -2
- package/dist/cdn/{7OQQQ7DH.js → X4DEDSCC.js} +2 -2
- package/dist/cdn/{PS2HCXPC.js → X5FANKH6.js} +2 -2
- package/dist/cdn/{YDOFUTBW.js → XCDDDB5R.js} +2 -2
- package/dist/cdn/{QYW7MR6M.js → XDEV64FQ.js} +2 -2
- package/dist/cdn/{P5L3Z4MM.js → XH2Q2TTU.js} +2 -2
- package/dist/cdn/{7ZG66OFU.js → XIKGCL6Z.js} +1 -1
- package/dist/cdn/{UZDUYYDY.js → XSE22DX2.js} +2 -2
- package/dist/cdn/{JDXOSH6W.js → XUNRNHCK.js} +2 -2
- package/dist/cdn/{HDHV7JZB.js → XVG5AXU3.js} +2 -2
- package/dist/cdn/Y5S76IXI.js +4 -0
- package/dist/cdn/{CVDMNQMG.js → YAYHUH5G.js} +2 -2
- package/dist/cdn/{RRTLN7R4.js → YEKIMYDO.js} +2 -2
- package/dist/cdn/{A3JNJEXJ.js → YFOSFQMV.js} +1 -1
- package/dist/cdn/{C2LPPIYP.js → YHMAN2VX.js} +2 -2
- package/dist/cdn/{7NF4C7Q6.js → YMNTHO2F.js} +2 -2
- package/dist/cdn/{GHAVCIL3.js → YOIQKWPE.js} +2 -2
- package/dist/cdn/{ETBLUH5E.js → YWXJ2RX3.js} +2 -2
- package/dist/cdn/{MOV63G63.js → Z2EMCTSK.js} +2 -2
- package/dist/cdn/{57YR4QF4.js → Z2MGL6AZ.js} +2 -2
- package/dist/cdn/{ABU7II4P.js → ZAL2JPN6.js} +1 -1
- package/dist/cdn/{TYIKQWD7.js → ZDTIXH2P.js} +2 -2
- package/dist/cdn/{W5W7JFTZ.js → ZF5KTUHD.js} +2 -2
- package/dist/cdn/{S7ZPZDLD.js → ZGXAJOK6.js} +2 -2
- package/dist/cdn/{5IGBKFAS.js → ZJ5VS3XI.js} +2 -2
- package/dist/cdn/{4Z3G2C6M.js → ZL7IV42Y.js} +2 -2
- package/dist/cdn/{XHLXBLDD.js → ZLEHSIQE.js} +2 -2
- package/dist/cdn/{YBNDRIUZ.js → ZT7KJDTU.js} +2 -2
- package/dist/cdn/{NHC6L4QY.js → ZVYGJ3ZV.js} +2 -2
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationContext.js +1 -1
- package/dist/chunks/queryUtils.js +43 -38
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +38 -27
- package/dist/components/arcgis-solutions-assistant/index.d.ts +1 -0
- package/dist/components/arcgis-solutions-assistant/index.js +1 -0
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +15 -15
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +5 -6
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
- package/dist/components/solution-deploying-dialog/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +27 -30
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +116 -113
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-card/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +1 -1
- package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +2 -2
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-resource-panel/customElement.js +1 -1
- package/dist/components/solutions-resources/customElement.js +1 -1
- package/dist/components/solutions-resources-shell/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/utils/queryUtils.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cdn/6MLPFUBD.js +0 -4
- package/dist/cdn/7NGOIUPA.js +0 -4
- package/dist/cdn/ANBPB5IE.js +0 -18
- package/dist/cdn/BL7OQNJS.js +0 -4
- package/dist/cdn/HYKIFANV.js +0 -18
- package/dist/cdn/IVZFPQHF.js +0 -4
- package/dist/cdn/O7VEV6AV.js +0 -4
- package/dist/cdn/ORFF3N7F.js +0 -18
- package/dist/cdn/QKCFMI7O.js +0 -4
- package/dist/cdn/TNA4UKTA.js +0 -4
- package/dist/cdn/TQUCYDON.js +0 -4
- package/dist/cdn/YKNMVOHO.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{Cb as S}from"./
|
|
3
|
+
v1.2.0-next.24 */
|
|
4
|
+
import{Cb as S}from"./KSO7CXKH.js";import"./GFXNHLR7.js";import"./CYG5JUF7.js";import"./3E3IBLXH.js";import"./EROCJUGG.js";import"./VX2H4KEW.js";import"./L2WHYM3J.js";import"./ZAL2JPN6.js";import"./ENUF5QK4.js";import"./BOHI7OOB.js";import"./KXKFOLKN.js";import"./XIKGCL6Z.js";import"./EYIL3WCN.js";import"./IMPPWVVG.js";import"./YMNTHO2F.js";import{g as h}from"./4SOCIVF6.js";import"./R6MJ3BWC.js";import"./ZVYGJ3ZV.js";import"./74AIX5RH.js";import"./T5CPOSYR.js";import{a as I}from"./K2VMZCUX.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{b}from"./443EHILD.js";import{C as p,D as u,E as v,I as n,h as _,i as c,j as f,o as d}from"./6WW2DA2G.js";import"./EAS42GZC.js";export default $arcgis.t(([r,w,y])=>{var m=class{constructor(t,e,i){this._credential=null,this._isEnterprise=!1,this._locale="en",this._portalSubset=null,this._portalUserSubset=null,this._clientId=t??"",this._locale=i??"en",this._portalUrl=e??"https://www.arcgis.com",this._portalRestUrl=this._portalUrl+"/sharing/rest",this._credential=r.findCredential(this._portalRestUrl),this._portalUrl=location.origin.endsWith(".arcgis.com")?window.location.origin:this._portalUrl}get Credential(){return this._credential}get IsEnterprisePortal(){return this._isEnterprise}get IsSignedIn(){return!!this._credential}get Portal(){return this._portal}get PortalSubset(){return this._portalSubset}get PortalUrl(){return this._portalUrl}get PortalUserOrg(){return this._portalSubset&&this._portalSubset.id}get PortalUserName(){return this._portalUserSubset&&this._portalUserSubset.username||""}get PortalUserSubset(){return this._portalUserSubset}get PortalUserPrivileges(){let t=[];return this._portalUserSubset?.privileges&&(t=this._portalUserSubset.privileges),t}get RestUserSession(){let t=r.findServerInfo(this._portalRestUrl),e=this._credential?h.fromCredential(this._credential,t):new h({});return e.portal=this.PortalSubset?.restUrl?this.PortalSubset?.restUrl:e.portal,e.clientId=this._credential?._oAuthCred?.appId,e._refreshToken=this._credential?._oAuthCred?.refreshToken,e}async initialize(){try{await this._init()}catch{this.destroy()}return this}destroy(){this._credential=null,this._portalSubset=null,this._portalUserSubset=null,r.destroyCredentials()}async signIn(t=""){r.setOAuthRedirectionHandler(e=>{let i=e.authorizeParams.redirect_uri;if(t.length>0){let a=i.split("?"),s=a[0],l="";if(a[1]){let o=new URLSearchParams(a[1]);o.append("signInParam",t),l="?"+o.toString()}e.authorizeParams.redirect_uri=s+l}window.location.href=e.authorizeUrl+"?"+this._objectToQuery(e.authorizeParams)}),await r.getCredential((this._portalSubset?.portalUrl??this._portalUrl)+"/sharing").then(e=>{e&&window.location.reload()})}signOut(){r.destroyCredentials(),this.destroy(),window.location.reload()}refreshSession(){let t=this.RestUserSession;return!t||!this.IsSignedIn?null:t.exchangeRefreshToken()}_getOrgUrl(t,e,i){return e&&i?window.location.protocol+"//"+e.toLowerCase()+"."+i:t}async _init(){let t=new w({appId:this._clientId,locale:this._locale,popup:!1,portalUrl:this._portalUrl,preserveUrlHash:!0});r.registerOAuthInfos([t]);try{let e=await r.checkAppAccess(this._portalUrl,this._clientId);(typeof e.valid<"u"&&!e.valid||e.viewOnlyUserTypeApp)&&window.location.replace(`error.html?error=blocked&locale=${this._locale}`),this._credential=e.credential}catch(e){if(e.name==="identity-manager:not-authenticated")return this;this.destroy(),window.location.replace(`error.html?error=blocked&locale=${this._locale}`)}return this._portal=new y({url:this._portalUrl}),this._portal.authMode="immediate",await this._portal.load(),this._isEnterprise=this._portal.isPortal,this._portalSubset={name:this._portal.name??"",id:this._portal.id??"",restUrl:this._portal.restUrl??"",portalUrl:this._portal.url??"",urlKey:this._portal.urlKey??"",hostName:this._portal.portalHostname??"",orgUrl:this._getOrgUrl(this._portal.url,this._portal.urlKey??"",this._portal.customBaseUrl??""),locationTrackingEnabled:this._portal.helperServices.hasOwnProperty("locationTracking"),hubPremiumEnabled:this._portal.portalProperties?.hub?.enabled||!1,workflowURL:this._portal.helperServices?.workflowManager?.url??this._portal.url,isReadOnly:this._portal.isReadOnly},this._portalUserSubset={fullName:this._portal.user?.fullName??"",username:this._portal.user?.username??"",culture:this._portal.user?.culture?.toLowerCase()||"en",thumbnailUrl:this._portal.user?.thumbnailUrl||this._portal.url+"/home/js/arcgisonline/css/images/no-user-thumb.jpg",orgId:this._portal.user?.orgId??"",privileges:this._portal.user.privileges,role:this._portal.user?.role??""},this._isEnterprise&&this._portalSubset&&(this._portalSubset.workflowURL=await S(this._portal.restUrl,this.RestUserSession||new h({}))),this._portal?.user?.roleId&&this._portalUserSubset&&(this._portalUserSubset.roleId=this._portal.user.roleId),this}_isSerializable(t){return t&&typeof t=="object"&&"toJSON"in t&&typeof t.toJSON=="function"}_objectToQuery(t,e){return t?e&&typeof e=="function"?Object.keys(t).map(i=>encodeURIComponent(i)+"="+encodeURIComponent(e(i,t[i]))).join("&"):Object.keys(t).map(i=>{let a=t[i];if(a==null)return"";let s=encodeURIComponent(i)+"=",l=e&&e[i];return l?s+encodeURIComponent(l(a)):Array.isArray(a)?a.map(o=>this._isSerializable(o)?s+encodeURIComponent(JSON.stringify(o)):s+encodeURIComponent(o)).join("&"):this._isSerializable(a)?s+encodeURIComponent(JSON.stringify(a)):s+encodeURIComponent(a)}).filter(i=>i).join("&"):""}};var C=_`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,63 +1,65 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as ke}from"./GMMRDHZU.js";import"./JOGLZRNT.js";import"./JFWEV72O.js";import{b as ge}from"./D7WRWG4G.js";import{D as O,E as ue,G as de,I as q,h as ae,i as m,k as le,l as Z,o as oe,t as ce,u as he,v as pe}from"./5WF2EVNT.js";import"./ZQV3UEGN.js";var R=class extends pe{constructor(e){if(super(e),this.it=Z,e.type!==ce.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Z||e==null)return this._t=void 0,this.it=e;if(e===le)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let s=[e];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};R.directiveName="unsafeHTML",R.resultType=1;var fe=he(R);var Pe=ae`:host{display:block;height:100%}.display-flex-row{display:flex;flex-direction:row}.padding-left-10{padding-left:10px}.chat-container{display:flex;flex-direction:column;gap:0px;max-width:600px;height:75%;background-color:var(--calcite-color-foreground-3);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-background);border-radius:10px;padding:10px}.chat-panel{--calcite-panel-header-background-color: var(--calcite-color-brand);--calcite-panel-action-background-color: var(--calcite-color-brand);--calcite-panel-heading-text-color: var(--calcite-color-background);--calcite-dialog-min-size-y: 90vh;--calcite-dialog-max-size-y: 90vh}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.chat-messages{display:flex;flex-direction:column;gap:20px;padding:4px;height:100%;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-brand);--calcite-card-border-color: var(--calcite-color-brand);color:var(--calcite-color-background);text-align:left}.system-message{align-self:flex-start;background:var(--calcite-color-foreground-2);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-foreground-3);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3)}.message-content{padding:0;font-size:14px}.message-content p:first-child{margin-top:0}.message-content img{max-width:100%;height:auto;display:block;object-fit:contain}.message-content-pad{padding-bottom:10px;font-size:14px}.message-content-summary{padding-bottom:14px}.message-content-alignment{display:flex;align-items:center;gap:var(--calcite-spacing-md);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}.padding-top-10{padding-top:10px}.padding-right-8{padding-right:8px}.chip-content{padding:5px 5px 5px 0}.chat-input{display:flex;flex-direction:row;flex-grow:1}.table-cell{--calcite-table-cell-background: var(--calcite-color-foreground-3)}.cursor-pointer{cursor:pointer}.notice-border-color{--temp-initial-brand: var(--calcite-color-brand)}.notice-border-color calcite-notice{--calcite-color-brand: #ddd;--calcite-icon-color: var(--temp-initial-brand)}.notice-border-color calcite-notice *{--calcite-color-brand: var(--temp-initial-brand)}.solution-card{padding:5px 0;text-decoration:none;display:block;width:100%;cursor:pointer}.solution-card calcite-card{display:flex;flex-direction:column;max-height:132px;overflow:hidden;--calcite-card-corner-radius: var(--calcite-corner-radius-round) !important;--calcite-card-shadow: var(--calcite-shadow-sm);--calcite-card-background-color: var(--calcite-card-background-color) }.solution-card div[slot=thumbnail]{max-height:100%;width:100%;position:relative;&:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:all .15s ease-in-out}}.solution-card div[slot=thumbnail] img{max-height:100%;width:100%;object-fit:cover}.solution-card span[slot=description]{padding-top:10px}.solution-card calcite-chip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);visibility:hidden;pointer-events:none;opacity:0;transition:all .15s ease-in-out;z-index:9999}.solution-card:hover calcite-chip{visibility:visible;opacity:1}.solution-card:hover div[slot=thumbnail]:after{background-color:#00000080}.solution-card:hover h3{text-decoration:underline}.references-container{padding-top:10px;display:block}.references-container.collapsed{display:none}.width-100{width:100%}.disclaimer-div{display:flex;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size--0);color:var(--calcite-color-text-1)}.height-32-flex-auto{height:32px;flex:0 0 auto}`;var Me="https://www.arcgis.com/sharing/rest/content/items/";async function Be(n){return await Qe(n)}async function Qe(n){let e=Me+n+"?f=json";try{let s=await fetch(e,{method:"GET"});if(!s.ok)throw new Error(`HTTP error! Status: ${s.status}`);return await s.json()}catch(s){return{error:s.message}}}function G(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var S=G();function $e(n){S=n}var z={exec:()=>null};function p(n,e=""){let s=typeof n=="string"?n:n.source,r={replace:(t,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(x.caret,"$1"),s=s.replace(t,i),r},getRegex:()=>new RegExp(s,e)};return r}var De=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},Ne=/^(?:[ \t]*(?:\n|$))+/,Ze=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Oe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,C=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Fe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,W=/(?:[*+-]|\d{1,9}[.)])/,Se=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_e=p(Se).replace(/bull/g,W).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),He=p(Se).replace(/bull/g,W).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),X=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,je=/^[^\n]+/,J=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ue=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",J).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ge=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,W).getRegex(),B="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",K=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,We=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",K).replace("tag",B).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Re=p(X).replace("hr",C).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex(),Xe=p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Re).getRegex(),V={blockquote:Xe,code:Ze,def:Ue,fences:Oe,heading:Fe,hr:C,html:We,lheading:_e,list:Ge,newline:Ne,paragraph:Re,table:z,text:je},me=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",C).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex(),Je={...V,lheading:He,table:me,paragraph:p(X).replace("hr",C).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex()},Ke={...V,html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",K).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:z,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(X).replace("hr",C).replace("heading",` *#{1,6} *[^
|
|
5
|
-
]`).replace("lheading",_e).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ve=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ye=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Te=/^( {2,}|\\)\n(?!\s*$)/,et=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Q=/[\p{P}\p{S}]/u,Y=/[\s\p{P}\p{S}]/u,Ie=/[^\s\p{P}\p{S}]/u,tt=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Y).getRegex(),Ae=/(?!~)[\p{P}\p{S}]/u,st=/(?!~)[\s\p{P}\p{S}]/u,nt=/(?:[^\s\p{P}\p{S}]|~)/u,
|
|
6
|
-
`).map(a=>{let
|
|
3
|
+
v1.2.0-next.24 */
|
|
4
|
+
import{a as ke}from"./K2VMZCUX.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{b as ge}from"./443EHILD.js";import{D as O,E as ue,G as de,I as q,h as ae,i as m,k as le,l as Z,o as oe,t as ce,u as he,v as pe}from"./6WW2DA2G.js";import"./EAS42GZC.js";var R=class extends pe{constructor(e){if(super(e),this.it=Z,e.type!==ce.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Z||e==null)return this._t=void 0,this.it=e;if(e===le)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let s=[e];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}};R.directiveName="unsafeHTML",R.resultType=1;var fe=he(R);var Pe=ae`:host{display:block;height:100%}.display-flex-row{display:flex;flex-direction:row}.padding-left-10{padding-left:10px}.chat-container{display:flex;flex-direction:column;gap:0px;max-width:600px;height:75%;background-color:var(--calcite-color-foreground-3);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-background);border-radius:10px;padding:10px}.chat-panel{--calcite-panel-header-background-color: var(--calcite-color-brand);--calcite-panel-action-background-color: var(--calcite-color-brand);--calcite-panel-heading-text-color: var(--calcite-color-background);--calcite-dialog-min-size-y: 90vh;--calcite-dialog-max-size-y: 90vh}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.chat-messages{display:flex;flex-direction:column;gap:20px;padding:4px;height:100%;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-brand);--calcite-card-border-color: var(--calcite-color-brand);color:var(--calcite-color-background);text-align:left}.system-message{align-self:flex-start;background:var(--calcite-color-foreground-2);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-foreground-3);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3)}.message-content{padding:0;font-size:14px}.message-content p:first-child{margin-top:0}.message-content img{max-width:100%;height:auto;display:block;object-fit:contain}.message-content-pad{padding-bottom:10px;font-size:14px}.message-content-summary{padding-bottom:14px}.message-content-alignment{display:flex;align-items:center;gap:var(--calcite-spacing-md);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}.padding-top-10{padding-top:10px}.padding-right-8{padding-right:8px}.chip-content{padding:5px 5px 5px 0}.chat-input{display:flex;flex-direction:row;flex-grow:1}.table-cell{--calcite-table-cell-background: var(--calcite-color-foreground-3)}.cursor-pointer{cursor:pointer}.notice-border-color{--temp-initial-brand: var(--calcite-color-brand)}.notice-border-color calcite-notice{--calcite-color-brand: #ddd;--calcite-icon-color: var(--temp-initial-brand)}.notice-border-color calcite-notice *{--calcite-color-brand: var(--temp-initial-brand)}.solution-card{padding:5px 0;text-decoration:none;display:block;width:100%;cursor:pointer}.solution-card calcite-card{display:flex;flex-direction:column;max-height:132px;overflow:hidden;--calcite-card-corner-radius: var(--calcite-corner-radius-round) !important;--calcite-card-shadow: var(--calcite-shadow-sm);--calcite-card-background-color: var(--calcite-card-background-color) }.solution-card div[slot=thumbnail]{max-height:100%;width:100%;position:relative;&:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:all .15s ease-in-out}}.solution-card div[slot=thumbnail] img{max-height:100%;width:100%;object-fit:cover}.solution-card span[slot=description]{padding-top:10px}.solution-card calcite-chip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);visibility:hidden;pointer-events:none;opacity:0;transition:all .15s ease-in-out;z-index:9999}.solution-card:hover calcite-chip{visibility:visible;opacity:1}.solution-card:hover div[slot=thumbnail]:after{background-color:#00000080}.solution-card:hover h3{text-decoration:underline}.references-container{padding-top:10px;display:block}.references-container.collapsed{display:none}.width-100{width:100%}.disclaimer-div{display:flex;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size--0);color:var(--calcite-color-text-1)}.height-32-flex-auto{height:32px;flex:0 0 auto}`;var Me="https://www.arcgis.com/sharing/rest/content/items/";async function Be(n){return await Qe(n)}async function Qe(n){let e=Me+n+"?f=json";try{let s=await fetch(e,{method:"GET"});if(!s.ok)throw new Error(`HTTP error! Status: ${s.status}`);return await s.json()}catch(s){return{error:s.message}}}function G(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var S=G();function $e(n){S=n}var z={exec:()=>null};function p(n,e=""){let s=typeof n=="string"?n:n.source,i={replace:(t,a)=>{let r=typeof a=="string"?a:a.source;return r=r.replace(x.caret,"$1"),s=s.replace(t,r),i},getRegex:()=>new RegExp(s,e)};return i}var De=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},Ne=/^(?:[ \t]*(?:\n|$))+/,Ze=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Oe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,C=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,je=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,W=/(?:[*+-]|\d{1,9}[.)])/,Se=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_e=p(Se).replace(/bull/g,W).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Fe=p(Se).replace(/bull/g,W).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),X=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,He=/^[^\n]+/,J=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ue=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",J).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ge=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,W).getRegex(),B="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",K=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,We=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",K).replace("tag",B).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Re=p(X).replace("hr",C).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex(),Xe=p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Re).getRegex(),V={blockquote:Xe,code:Ze,def:Ue,fences:Oe,heading:je,hr:C,html:We,lheading:_e,list:Ge,newline:Ne,paragraph:Re,table:z,text:He},me=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",C).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex(),Je={...V,lheading:Fe,table:me,paragraph:p(X).replace("hr",C).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex()},Ke={...V,html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",K).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:z,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(X).replace("hr",C).replace("heading",` *#{1,6} *[^
|
|
5
|
+
]`).replace("lheading",_e).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ve=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ye=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Te=/^( {2,}|\\)\n(?!\s*$)/,et=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Q=/[\p{P}\p{S}]/u,Y=/[\s\p{P}\p{S}]/u,Ie=/[^\s\p{P}\p{S}]/u,tt=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Y).getRegex(),Ae=/(?!~)[\p{P}\p{S}]/u,st=/(?!~)[\s\p{P}\p{S}]/u,nt=/(?:[^\s\p{P}\p{S}]|~)/u,it=p(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",De?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ze=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,rt=p(ze,"u").replace(/punct/g,Q).getRegex(),at=p(ze,"u").replace(/punct/g,Ae).getRegex(),Ce="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",lt=p(Ce,"gu").replace(/notPunctSpace/g,Ie).replace(/punctSpace/g,Y).replace(/punct/g,Q).getRegex(),ot=p(Ce,"gu").replace(/notPunctSpace/g,nt).replace(/punctSpace/g,st).replace(/punct/g,Ae).getRegex(),ct=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ie).replace(/punctSpace/g,Y).replace(/punct/g,Q).getRegex(),ht=p(/\\(punct)/,"gu").replace(/punct/g,Q).getRegex(),pt=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ut=p(K).replace("(?:-->|$)","-->").getRegex(),dt=p("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ut).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),E=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,gt=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",E).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qe=p(/^!?\[(label)\]\[(ref)\]/).replace("label",E).replace("ref",J).getRegex(),Le=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",J).getRegex(),kt=p("reflink|nolink(?!\\()","g").replace("reflink",qe).replace("nolink",Le).getRegex(),xe=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ee={_backpedal:z,anyPunctuation:ht,autolink:pt,blockSkip:it,br:Te,code:Ye,del:z,emStrongLDelim:rt,emStrongRDelimAst:lt,emStrongRDelimUnd:ct,escape:Ve,link:gt,nolink:Le,punctuation:tt,reflink:qe,reflinkSearch:kt,tag:dt,text:et,url:z},ft={...ee,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",E).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",E).getRegex()},j={...ee,emStrongRDelimAst:ot,emStrongLDelim:at,url:p(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",xe).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:p(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",xe).getRegex()},mt={...j,br:p(Te).replace("{2,}","*").getRegex(),text:p(j.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},L={normal:V,gfm:Je,pedantic:Ke},T={normal:ee,gfm:j,breaks:mt,pedantic:ft},xt={"&":"&","<":"<",">":">",'"':""","'":"'"},be=n=>xt[n];function y(n,e){if(e){if(x.escapeTest.test(n))return n.replace(x.escapeReplace,be)}else if(x.escapeTestNoEncode.test(n))return n.replace(x.escapeReplaceNoEncode,be);return n}function we(n){try{n=encodeURI(n).replace(x.percentDecode,"%")}catch{return null}return n}function ve(n,e){let s=n.replace(x.findPipe,(a,r,o)=>{let l=!1,h=r;for(;--h>=0&&o[h]==="\\";)l=!l;return l?"|":" |"}),i=s.split(x.splitPipe),t=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;t<i.length;t++)i[t]=i[t].trim().replace(x.slashPipe,"|");return i}function I(n,e,s){let i=n.length;if(i===0)return"";let t=0;for(;t<i&&n.charAt(i-t-1)===e;)t++;return n.slice(0,i-t)}function bt(n,e){if(n.indexOf(e[1])===-1)return-1;let s=0;for(let i=0;i<n.length;i++)if(n[i]==="\\")i++;else if(n[i]===e[0])s++;else if(n[i]===e[1]&&(s--,s<0))return i;return s>0?-2:-1}function ye(n,e,s,i,t){let a=e.href,r=e.title||null,o=n[1].replace(t.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:n[0].charAt(0)==="!"?"image":"link",raw:s,href:a,title:r,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,l}function wt(n,e,s){let i=n.match(s.other.indentCodeCompensation);if(i===null)return e;let t=i[1];return e.split(`
|
|
6
|
+
`).map(a=>{let r=a.match(s.other.beginningSpace);if(r===null)return a;let[o]=r;return o.length>=t.length?a.slice(t.length):a}).join(`
|
|
7
7
|
`)}var P=class{options;rules;lexer;constructor(n){this.options=n||S}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let s=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?s:I(s,`
|
|
8
|
-
`)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let s=e[0],
|
|
8
|
+
`)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let s=e[0],i=wt(s,e[3]||"",this.rules);return{type:"code",raw:s,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let s=e[2].trim();if(this.rules.other.endingHash.test(s)){let i=I(s,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(s=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:I(e[0],`
|
|
9
9
|
`)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let s=I(e[0],`
|
|
10
10
|
`).split(`
|
|
11
|
-
`),
|
|
11
|
+
`),i="",t="",a=[];for(;s.length>0;){let r=!1,o=[],l;for(l=0;l<s.length;l++)if(this.rules.other.blockquoteStart.test(s[l]))o.push(s[l]),r=!0;else if(!r)o.push(s[l]);else break;s=s.slice(l);let h=o.join(`
|
|
12
12
|
`),c=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
13
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
13
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
14
14
|
${h}`:h,t=t?`${t}
|
|
15
15
|
${c}`:c;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=g,s.length===0)break;let u=a.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let f=u,k=f.raw+`
|
|
16
16
|
`+s.join(`
|
|
17
|
-
`),b=this.blockquote(k);a[a.length-1]=b,
|
|
17
|
+
`),b=this.blockquote(k);a[a.length-1]=b,i=i.substring(0,i.length-f.raw.length)+b.raw,t=t.substring(0,t.length-f.text.length)+b.text;break}else if(u?.type==="list"){let f=u,k=f.raw+`
|
|
18
18
|
`+s.join(`
|
|
19
|
-
`),b=this.list(k);a[a.length-1]=b,
|
|
20
|
-
`);continue}}return{type:"blockquote",raw:
|
|
19
|
+
`),b=this.list(k);a[a.length-1]=b,i=i.substring(0,i.length-u.raw.length)+b.raw,t=t.substring(0,t.length-f.raw.length)+b.raw,s=k.substring(a.at(-1).raw.length).split(`
|
|
20
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:a,text:t}}}list(n){let e=this.rules.block.list.exec(n);if(e){let s=e[1].trim(),i=s.length>1,t={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");let a=this.rules.other.listItemRegex(s),r=!1;for(;n;){let l=!1,h="",c="";if(!(e=a.exec(n))||this.rules.block.hr.test(n))break;h=e[0],n=n.substring(h.length);let g=e[2].split(`
|
|
21
21
|
`,1)[0].replace(this.rules.other.listReplaceTabs,D=>" ".repeat(3*D.length)),u=n.split(`
|
|
22
22
|
`,1)[0],f=!g.trim(),k=0;if(this.options.pedantic?(k=2,c=g.trimStart()):f?k=e[1].length+1:(k=e[2].search(this.rules.other.nonSpaceChar),k=k>4?1:k,c=g.slice(k),k+=e[1].length),f&&this.rules.other.blankLine.test(u)&&(h+=u+`
|
|
23
|
-
`,n=n.substring(u.length+1),l=!0),!l){let D=this.rules.other.nextBulletRegex(k),ne=this.rules.other.hrRegex(k),
|
|
24
|
-
`,1)[0],_;if(u=N,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),_=u):_=u.replace(this.rules.other.tabCharGlobal," "),
|
|
25
|
-
`+_.slice(k);else{if(f||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||
|
|
23
|
+
`,n=n.substring(u.length+1),l=!0),!l){let D=this.rules.other.nextBulletRegex(k),ne=this.rules.other.hrRegex(k),ie=this.rules.other.fencesBeginRegex(k),re=this.rules.other.headingBeginRegex(k),Ee=this.rules.other.htmlBeginRegex(k);for(;n;){let N=n.split(`
|
|
24
|
+
`,1)[0],_;if(u=N,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),_=u):_=u.replace(this.rules.other.tabCharGlobal," "),ie.test(u)||re.test(u)||Ee.test(u)||D.test(u)||ne.test(u))break;if(_.search(this.rules.other.nonSpaceChar)>=k||!u.trim())c+=`
|
|
25
|
+
`+_.slice(k);else{if(f||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||ie.test(g)||re.test(g)||ne.test(g))break;c+=`
|
|
26
26
|
`+u}!f&&!u.trim()&&(f=!0),h+=N+`
|
|
27
|
-
`,n=n.substring(N.length+1),g=_.slice(k)}}t.loose||(
|
|
28
|
-
`):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(s.length===
|
|
29
|
-
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:s,tokens:this.lexer.inline(s)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){let e=this.rules.inline.link.exec(n);if(e){let s=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let a=I(s.slice(0,-1),"\\");if((s.length-a.length)%2===0)return}else{let a=bt(e[2],"()");if(a===-2)return;if(a>-1){let
|
|
30
|
-
`),this.blockTokens(e,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let
|
|
31
|
-
`:s.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let
|
|
27
|
+
`,n=n.substring(N.length+1),g=_.slice(k)}}t.loose||(r?t.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(r=!0));let b=null,se;this.options.gfm&&(b=this.rules.other.listIsTask.exec(c),b&&(se=b[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),t.items.push({type:"list_item",raw:h,task:!!b,checked:se,loose:!1,text:c,tokens:[]}),t.raw+=h}let o=t.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let l=0;l<t.items.length;l++)if(this.lexer.state.top=!1,t.items[l].tokens=this.lexer.blockTokens(t.items[l].text,[]),!t.loose){let h=t.items[l].tokens.filter(g=>g.type==="space"),c=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.raw));t.loose=c}if(t.loose)for(let l=0;l<t.items.length;l++)t.items[l].loose=!0;return t}}html(n){let e=this.rules.block.html.exec(n);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){let e=this.rules.block.def.exec(n);if(e){let s=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:s,raw:e[0],href:i,title:t}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let s=ve(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
28
|
+
`):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(s.length===i.length){for(let r of i)this.rules.other.tableAlignRight.test(r)?a.align.push("right"):this.rules.other.tableAlignCenter.test(r)?a.align.push("center"):this.rules.other.tableAlignLeft.test(r)?a.align.push("left"):a.align.push(null);for(let r=0;r<s.length;r++)a.header.push({text:s[r],tokens:this.lexer.inline(s[r]),header:!0,align:a.align[r]});for(let r of t)a.rows.push(ve(r,a.header.length).map((o,l)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[l]})));return a}}lheading(n){let e=this.rules.block.lheading.exec(n);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(n){let e=this.rules.block.paragraph.exec(n);if(e){let s=e[1].charAt(e[1].length-1)===`
|
|
29
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:s,tokens:this.lexer.inline(s)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){let e=this.rules.inline.link.exec(n);if(e){let s=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let a=I(s.slice(0,-1),"\\");if((s.length-a.length)%2===0)return}else{let a=bt(e[2],"()");if(a===-2)return;if(a>-1){let r=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let i=e[2],t="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(i);a&&(i=a[1],t=a[3])}else t=e[3]?e[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?i=i.slice(1):i=i.slice(1,-1)),ye(e,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let s;if((s=this.rules.inline.reflink.exec(n))||(s=this.rules.inline.nolink.exec(n))){let i=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[i.toLowerCase()];if(!t){let a=s[0].charAt(0);return{type:"text",raw:a,text:a}}return ye(s,t,s[0],this.lexer,this.rules)}}emStrong(n,e,s=""){let i=this.rules.inline.emStrongLDelim.exec(n);if(!(!i||i[3]&&s.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!s||this.rules.inline.punctuation.exec(s))){let t=[...i[0]].length-1,a,r,o=t,l=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*n.length+t);(i=h.exec(e))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(r=[...a].length,i[3]||i[4]){o+=r;continue}else if((i[5]||i[6])&&t%3&&!((t+r)%3)){l+=r;continue}if(o-=r,o>0)continue;r=Math.min(r,r+o+l);let c=[...i[0]][0].length,g=n.slice(0,t+i.index+c+r);if(Math.min(t,r)%2){let f=g.slice(1,-1);return{type:"em",raw:g,text:f,tokens:this.lexer.inlineTokens(f)}}let u=g.slice(2,-2);return{type:"strong",raw:g,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let s=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(s),t=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return i&&t&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:e[0],text:s}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){let e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let s,i;return e[2]==="@"?(s=e[1],i="mailto:"+s):(s=e[1],i=s),{type:"link",raw:e[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}url(n){let e;if(e=this.rules.inline.url.exec(n)){let s,i;if(e[2]==="@")s=e[0],i="mailto:"+s;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);s=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let s=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:s}}}},w=class F{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||S,this.options.tokenizer=this.options.tokenizer||new P,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let s={other:x,block:L.normal,inline:T.normal};this.options.pedantic?(s.block=L.pedantic,s.inline=T.pedantic):this.options.gfm&&(s.block=L.gfm,this.options.breaks?s.inline=T.breaks:s.inline=T.gfm),this.tokenizer.rules=s}static get rules(){return{block:L,inline:T}}static lex(e,s){return new F(s).lex(e)}static lexInline(e,s){return new F(s).inlineTokens(e)}lex(e){e=e.replace(x.carriageReturn,`
|
|
30
|
+
`),this.blockTokens(e,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let i=this.inlineQueue[s];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,s=[],i=!1){for(this.options.pedantic&&(e=e.replace(x.tabCharGlobal," ").replace(x.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(r=>(t=r.call({lexer:this},e,s))?(e=e.substring(t.raw.length),s.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let r=s.at(-1);t.raw.length===1&&r!==void 0?r.raw+=`
|
|
31
|
+
`:s.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let r=s.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
|
|
32
32
|
`)?"":`
|
|
33
|
-
`)+t.raw,
|
|
34
|
-
`+t.text,this.inlineQueue.at(-1).src=
|
|
33
|
+
`)+t.raw,r.text+=`
|
|
34
|
+
`+t.text,this.inlineQueue.at(-1).src=r.text):s.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let r=s.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
|
|
35
35
|
`)?"":`
|
|
36
|
-
`)+t.raw,
|
|
37
|
-
`+t.raw,this.inlineQueue.at(-1).src=
|
|
36
|
+
`)+t.raw,r.text+=`
|
|
37
|
+
`+t.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},s.push(t));continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),s.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),s.push(t);continue}let a=e;if(this.options.extensions?.startBlock){let r=1/0,o=e.slice(1),l;this.options.extensions.startBlock.forEach(h=>{l=h.call({lexer:this},o),typeof l=="number"&&l>=0&&(r=Math.min(r,l))}),r<1/0&&r>=0&&(a=e.substring(0,r+1))}if(this.state.top&&(t=this.tokenizer.paragraph(a))){let r=s.at(-1);i&&r?.type==="paragraph"?(r.raw+=(r.raw.endsWith(`
|
|
38
38
|
`)?"":`
|
|
39
|
-
`)+t.raw,
|
|
40
|
-
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
39
|
+
`)+t.raw,r.text+=`
|
|
40
|
+
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):s.push(t),i=a.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let r=s.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
|
|
41
41
|
`)?"":`
|
|
42
|
-
`)+t.raw,
|
|
43
|
-
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=
|
|
44
|
-
`;return
|
|
42
|
+
`)+t.raw,r.text+=`
|
|
43
|
+
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):s.push(t);continue}if(e){let r="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(r);break}else throw new Error(r)}}return this.state.top=!0,s}inline(e,s=[]){return this.inlineQueue.push({src:e,tokens:s}),s}inlineTokens(e,s=[]){let i=e,t=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,t.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=t[2]?t[2].length:0,i=i.slice(0,t.index+a)+"["+"a".repeat(t[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let r=!1,o="";for(;e;){r||(o=""),r=!1;let l;if(this.options.extensions?.inline?.some(c=>(l=c.call({lexer:this},e,s))?(e=e.substring(l.raw.length),s.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let c=s.at(-1);l.type==="text"&&c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):s.push(l);continue}if(l=this.tokenizer.emStrong(e,i,o)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.del(e)){e=e.substring(l.raw.length),s.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),s.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),s.push(l);continue}let h=e;if(this.options.extensions?.startInline){let c=1/0,g=e.slice(1),u;this.options.extensions.startInline.forEach(f=>{u=f.call({lexer:this},g),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(h=e.substring(0,c+1))}if(l=this.tokenizer.inlineText(h)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),r=!0;let c=s.at(-1);c?.type==="text"?(c.raw+=l.raw,c.text+=l.text):s.push(l);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return s}},M=class{options;parser;constructor(n){this.options=n||S}space(n){return""}code({text:n,lang:e,escaped:s}){let i=(e||"").match(x.notSpaceStart)?.[0],t=n.replace(x.endingNewline,"")+`
|
|
44
|
+
`;return i?'<pre><code class="language-'+y(i)+'">'+(s?t:y(t,!0))+`</code></pre>
|
|
45
45
|
`:"<pre><code>"+(s?t:y(t,!0))+`</code></pre>
|
|
46
46
|
`}blockquote({tokens:n}){return`<blockquote>
|
|
47
47
|
${this.parser.parse(n)}</blockquote>
|
|
48
48
|
`}html({text:n}){return n}def(n){return""}heading({tokens:n,depth:e}){return`<h${e}>${this.parser.parseInline(n)}</h${e}>
|
|
49
49
|
`}hr(n){return`<hr>
|
|
50
|
-
`}list(n){let e=n.ordered,s=n.start,
|
|
51
|
-
`+
|
|
50
|
+
`}list(n){let e=n.ordered,s=n.start,i="";for(let r=0;r<n.items.length;r++){let o=n.items[r];i+=this.listitem(o)}let t=e?"ol":"ul",a=e&&s!==1?' start="'+s+'"':"";return"<"+t+a+`>
|
|
51
|
+
`+i+"</"+t+`>
|
|
52
52
|
`}listitem(n){let e="";if(n.task){let s=this.checkbox({checked:!!n.checked});n.loose?n.tokens[0]?.type==="paragraph"?(n.tokens[0].text=s+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&n.tokens[0].tokens[0].type==="text"&&(n.tokens[0].tokens[0].text=s+" "+y(n.tokens[0].tokens[0].text),n.tokens[0].tokens[0].escaped=!0)):n.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):e+=s+" "}return e+=this.parser.parse(n.tokens,!!n.loose),`<li>${e}</li>
|
|
53
53
|
`}checkbox({checked:n}){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:n}){return`<p>${this.parser.parseInline(n)}</p>
|
|
54
|
-
`}table(n){let e="",s="";for(let t=0;t<n.header.length;t++)s+=this.tablecell(n.header[t]);e+=this.tablerow({text:s});let
|
|
54
|
+
`}table(n){let e="",s="";for(let t=0;t<n.header.length;t++)s+=this.tablecell(n.header[t]);e+=this.tablerow({text:s});let i="";for(let t=0;t<n.rows.length;t++){let a=n.rows[t];s="";for(let r=0;r<a.length;r++)s+=this.tablecell(a[r]);i+=this.tablerow({text:s})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
55
55
|
<thead>
|
|
56
56
|
`+e+`</thead>
|
|
57
|
-
`+
|
|
57
|
+
`+i+`</table>
|
|
58
58
|
`}tablerow({text:n}){return`<tr>
|
|
59
59
|
${n}</tr>
|
|
60
60
|
`}tablecell(n){let e=this.parser.parseInline(n.tokens),s=n.header?"th":"td";return(n.align?`<${s} align="${n.align}">`:`<${s}>`)+e+`</${s}>
|
|
61
|
-
`}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${y(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:s}){let
|
|
62
|
-
`+this.renderer.text(o);s?
|
|
63
|
-
Please report this to https://github.com/markedjs/marked.`,n){let r="<p>An error occurred:</p><pre>"+y(s.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(s);throw s}}},$=new vt;function d(n,e){return $.parse(n,e)}d.options=d.setOptions=function(n){return $.setOptions(n),d.defaults=$.defaults,$e(d.defaults),d};d.getDefaults=G;d.defaults=S;d.use=function(...n){return $.use(...n),d.defaults=$.defaults,$e(d.defaults),d};d.walkTokens=function(n,e){return $.walkTokens(n,e)};d.parseInline=$.parseInline;d.Parser=v;d.parser=v.parse;d.Renderer=M;d.TextRenderer=te;d.Lexer=w;d.lexer=w.lex;d.Tokenizer=P;d.Hooks=A;d.parse=d;d.options;d.setOptions;d.use;d.walkTokens;d.parseInline;v.parse;w.lex;var U=class extends ue{constructor(){super(),this.serverRoot="https://aiservices-beta.arcgis.com/",this.solutionAIurl=`${this.serverRoot}skills/solution_deployment/chat`,this.docAIurl=`${this.serverRoot}skills/doc_ai_assistant/chat`,this.token=null,this.open=!1,this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this._isLoading=!1,this._isLoadingText="",this.messages=[],this._translations=ke({name:"arcgis-solutions-assistant",blocking:!0}),this.closeAssistant=oe(),this._resetConversation=()=>{this.conversationStore.conversationId=null,this.conversationStore.inquiryId=null,this.conversationStore.ackSequenceNumber=null},this._setMessageContainerRef=e=>{this._chatContainer=e},this._setInputRef=e=>{this._inputRef=e,this._inputRef.addEventListener("keydown",s=>{s.key==="Enter"&&!s.shiftKey&&(s.preventDefault(),this.handleSendMessage())}),setTimeout(()=>{this._inputRef?.focus()},100)},this._submitQuestion=e=>{this._inputRef&&(this._inputRef.value=e,this.handleSendMessage())},this.listenOn(window,"submitQuestion",e=>{this._submitQuestion(e.detail)})}static{this.properties={serverRoot:1,solutionAIurl:1,docAIurl:1,token:1,open:5,conversationStore:16,_isLoading:16,_isLoadingText:16,messages:16,_translations:16}}static{this.styles=Pe}async handleSendMessage(){if(!this._inputRef?.value.trim())return;this._isLoading=!0;let e=this._inputRef.value.trim();this._inputRef.value="";let s={message:e,context:{debug:!1,kind:"SolutionRequest"}};if(this.conversationStore.conversationId!==null){if(s.conversationId=this.conversationStore.conversationId,this.token){let r={author:"human",conversationId:this.conversationStore.conversationId?this.conversationStore.conversationId:"",message:e,render:this._renderSimpleTextMessage(e,"human","","Other")};this.messages=[...this.messages,r];let t=await this.requestAIServer(s,this.token,this.solutionAIurl);this.loopRequest(t,this.token,this.solutionAIurl)}}else if(this.token){let r={author:"human",message:e,render:this._renderSimpleTextMessage(e,"human","","Other")};this.messages=[...this.messages,r];let t=await this.requestAIServer(s,this.token,this.solutionAIurl);this.conversationStore.conversationId=t.conversationId,this.conversationStore.inquiryId=t.inquiryId,this.conversationStore.ackSequenceNumber=t.sequenceNumber,this.loopRequest(t,this.token,this.solutionAIurl)}}async loopRequest(e,s,r){let t=e;for(this._isLoading=!0;t.hasMore;){let a={conversationId:t.conversationId,ackSequenceNumber:t.sequenceNumber,inquiryId:t.inquiryId};if(t=await this.requestAIServer(a,s,r),t.context)if(this.conversationStore.context=t.context,t.context.intent)switch(t.context.intent){case"Solution question":this.messages.push({author:"ai",conversationId:t.conversationId,intent:"Solution question",message:t.message??""});let i={message:t.message,conversationId:a.conversationId,context:{kind:"DocAIAssistantRequest",filters:{products:"ArcGIS Solutions"}}};t=await this.requestAIServer(i,s,this.docAIurl);break;case"Recommend solution":if(t.context.results&&t.context.results?.length>0){let o={author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Recommend solution",render:this._renderSuggestedSolutions(t.message??"",t.context.results,t.conversationId,"Recommend solution")};this.messages.push(o)}break;default:this.messages.push({author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Other",render:this._renderSimpleTextMessage(t.message??"","ai",t.conversationId,"Other")});break}else if(t.context.results){for(let i of t.context.results)if(i.reply!==""){this._isLoadingText="";let o=await Promise.resolve(d(i.reply));this.messages.push({message:o,author:"ai",conversationId:t.conversationId,intent:"Solution question",render:this._renderDocAssistantResults(o,i.reply,i.ref,i.followupQuestions,t.conversationId,"Solution question")})}}else{t.context.kind&&t.context.kind.toLowerCase()==="ArcGISErrorAsContext".toLowerCase()?this.messages.push({author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Error",render:this._renderSimpleTextMessage(this._translations.genericErrorMessage,"ai",t.conversationId,"Error")}):this.messages.push({author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Other",render:this._renderSimpleTextMessage(t.message??"","ai",t.conversationId,"Error")});break}}this._isLoading=!1}async requestAIServer(e,s,r){try{let t=await(await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",token:s},body:JSON.stringify(e)})).json();if(t)return t;throw new Error("No data returned")}catch(t){throw new Error(`Request failed: ${t}`)}}resetChat(){let e=this.messages[this.messages.length-1];if(e.author!=="system"&&e.conversationId!=="-1"){this._resetConversation();let s={author:"system",conversationId:"-1",message:this._translations.newConversationStarted,render:this._renderSimpleTextMessage(this._translations.newConversationStarted,"system","","Other","speech-bubble-plus")};this.messages=[...this.messages,s],this._inputRef&&(this._inputRef.value="")}}willUpdate(e){this.messages.length===0&&this._translations.defaultStartUpMessage&&(this.messages=[{author:"ai",conversationId:"",message:this._translations.defaultStartUpMessage,render:this._renderSimpleTextMessage(this._translations.defaultStartUpMessage,"ai","","Other")}])}updated(e){(e.size||this._isLoading)&&this._scrollToBottom()}_renderFeedback(e,s,r,t){return m`<div><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-up label="position feedback" kind=neutral @click=${()=>{this._sendFeedback(e,s,"Good",r,t)}}></calcite-button><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-down label="position feedback" kind=neutral @click=${()=>{this._sendFeedback(e,s,"Bad",r,t)}}></calcite-button></div>`}_renderSolutionQuestionReferences(e){return e.map(s=>m`<div class="message-content-pad"><a href=${s.url??q} target=_blank>${s.title}</a></div>`)}_renderSolutionQuestionFollowup(e){return e.map(s=>m`<calcite-chip class="chip-content cursor-pointer" kind=brand .label=${s} @click=${()=>{this._submitFollowupQuestion(s)}}>${s}</calcite-chip>`)}_renderSolutionsQuestionTable(e,s,r){let t=this._renderSolutionQuestionReferences(s),a=this._renderSolutionQuestionFollowup(r);return m`<div><div slot=description class="message-content">${fe(e)}<div style="display: flex; justify-content: flex-start;"><calcite-button appearance=outline icon-end=chevron-down icon-start=link @click=${i=>{let o=i.currentTarget.parentElement?.nextElementSibling;o.classList.toggle("collapsed"),i.currentTarget.setAttribute("icon-end",o.classList.contains("collapsed")?"chevron-down":"chevron-up")}}>${`${s.length} ${s.length===1?this._translations.solutionsDocReference:this._translations.solutionsDocReferences}`}</calcite-button></div><div class="references-container collapsed">${t}</div></div><div class="padding-top-10">${a}</div></div>`}_renderSolutionCard(e,s){return m`<a class="solution-card" id=${s??q} @click=${()=>{this._emitItemIdFromAI(s)}}>${m`<calcite-card thumbnail-position=inline-start><div slot=thumbnail><img src=${e.thumbnail??q} alt=Thumbnail><calcite-chip icon=launch label="View solution">${this._translations.viewSolutionInApp}</calcite-chip></div><h3 slot=heading><b>${e.title}</b></h3><span slot=description>${e.snippet}</span></calcite-card>`}</a>`}_renderExistingSolutionsTable(e,s){let r=s.map(t=>{let a=t.thumbnail.match(/\/items\/([a-f0-9]+)\//);return a?this._renderSolutionCard(t,a[1]):null}).filter(t=>t!==null);return m`<div><div slot=description class="message-content"><div class="message-content-summary">${e}</div>${r}</div></div>`}_renderSimpleTextMessage(e,s,r,t,a){let i=this.messages.length>=2?this._getMostRecentQuestion():"",o=typeof i=="string"?"":i?.message??"";return s==="system"?m`<div class="message-content message-content-alignment">${a&&m`<calcite-icon .icon=${a}></calcite-icon>`||""}${e}</div>`:m`<calcite-card class=${de(s==="human"?"user-message":"system-message")}><div class="message-content">${e}${s==="ai"&&r!==""&&this._renderFeedback(e,o,r,t)||""}</div></calcite-card>`}_renderDocAssistantResults(e,s,r,t,a,i){let o=this._getMostRecentQuestion();return m`<calcite-card class="system-message"><div class="message-content">${this._renderSolutionsQuestionTable(e,r,t)}${this._renderFeedback(s,o?.message??"",a,i)}</div></calcite-card>`}_renderSuggestedSolutions(e,s,r,t){let a=this._getMostRecentQuestion(),i=s.map(o=>o.title);return m`<calcite-card class="system-message"><div class="message-content">${this._renderExistingSolutionsTable(e,s)}${this._renderFeedback(e+"("+i.toString()+")",a?.message??"",r,t)}</div></calcite-card>`}render(){return m`<calcite-dialog class="chat-panel" .open=${this.open} resizable .heading=${this._translations.solutionAssistantTitle} id=example-dialog placement=bottom-start @calciteDialogClose=${()=>{this.closeAssistant.emit(!0),this.open=!1}}><span class="chat-panel-heading" slot=header-content><span class="padding-right-8">${this._translations.solutionAssistantTitle}</span><calcite-chip .label=${this._translations.betaTag} .value=${this._translations.betaTag}>${this._translations.betaTag}</calcite-chip></span>${this.messages.length>1?m`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent icon-end=speech-bubble-plus label="New conversation" kind=neutral></calcite-button>`:""}<div class="chat-messages" ${O(this._setMessageContainerRef)}>${this.messages.map(e=>e.render)}${this._isLoading&&m`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText!=""&&m`<div class="padding-left-10">${this._isLoadingText}</div>`||""}</div></calcite-card>`||""}</div><div slot=footer class="width-100"><div class="chat-input"><calcite-text-area resize=none rows=3 .placeholder=${this._translations.sendMessage} value ${O(this._setInputRef)}></calcite-text-area><calcite-button icon-start=send appearance=outline kind=neutral @click=${this.handleSendMessage} .disabled=${!!this._isLoading}></calcite-button></div><div class="disclaimer-div padding-top-10" slot=footer><calcite-icon icon=information scale=s></calcite-icon>${this._translations.disclaimerMessage}<a href=https://trust.arcgis.com/en/security-concern/ target=_blank>${this._translations.reportConcern}</a></div></div></calcite-dialog>`}_scrollToBottom(){this._chatContainer&&setTimeout(()=>{this._chatContainer&&(this._chatContainer.scrollTop=this._chatContainer.scrollHeight)},100)}_emitItemIdFromAI(e){this._querySolutions(e).then(s=>{let r=s.typeKeywords.filter(a=>a.includes("solutionid")),t=new CustomEvent("solutionIDFromAssistant",{detail:r.length>0?r[0]:e,bubbles:!0,composed:!0});window.dispatchEvent(t)})}_submitFollowupQuestion(e){let s=new CustomEvent("submitQuestion",{detail:e,bubbles:!0,composed:!0});window.dispatchEvent(s)}_getMostRecentQuestion(){return[...this.messages].reverse().find(e=>e.author==="human")||null}async _querySolutions(e){let s=await Be(e);if("error"in s)throw new Error(s.error);return s}_sendFeedback(e,s,r,t,a){let i=`https://survey123.arcgis.com/share/6e349a50b4504ca6b6107216d568db5f?field:_source=${encodeURIComponent("Solutions Assistant")}&field:user_evaluation=${encodeURIComponent(r)}&field:question=${encodeURIComponent(s)}&field:answer=${encodeURIComponent(e)}&field:context=${encodeURIComponent(JSON.stringify({intent:a}))}&field:conversation_id=${encodeURIComponent(t)}&field:version=${encodeURIComponent("v1")}`;window.open(i,"_blank")}};ge("arcgis-solutions-assistant",U);export{U as ArcgisSolutionsAssistant};
|
|
61
|
+
`}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${y(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:s}){let i=this.parser.parseInline(s),t=we(n);if(t===null)return i;n=t;let a='<a href="'+n+'"';return e&&(a+=' title="'+y(e)+'"'),a+=">"+i+"</a>",a}image({href:n,title:e,text:s,tokens:i}){i&&(s=this.parser.parseInline(i,this.parser.textRenderer));let t=we(n);if(t===null)return y(s);n=t;let a=`<img src="${n}" alt="${s}"`;return e&&(a+=` title="${y(e)}"`),a+=">",a}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:y(n.text)}},te=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}},v=class H{options;renderer;textRenderer;constructor(e){this.options=e||S,this.options.renderer=this.options.renderer||new M,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new te}static parse(e,s){return new H(s).parse(e)}static parseInline(e,s){return new H(s).parseInline(e)}parse(e,s=!0){let i="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let o=a,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){i+=l||"";continue}}let r=a;switch(r.type){case"space":{i+=this.renderer.space(r);continue}case"hr":{i+=this.renderer.hr(r);continue}case"heading":{i+=this.renderer.heading(r);continue}case"code":{i+=this.renderer.code(r);continue}case"table":{i+=this.renderer.table(r);continue}case"blockquote":{i+=this.renderer.blockquote(r);continue}case"list":{i+=this.renderer.list(r);continue}case"html":{i+=this.renderer.html(r);continue}case"def":{i+=this.renderer.def(r);continue}case"paragraph":{i+=this.renderer.paragraph(r);continue}case"text":{let o=r,l=this.renderer.text(o);for(;t+1<e.length&&e[t+1].type==="text";)o=e[++t],l+=`
|
|
62
|
+
`+this.renderer.text(o);s?i+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):i+=l;continue}default:{let o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}parseInline(e,s=this.renderer){let i="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=o||"";continue}}let r=a;switch(r.type){case"escape":{i+=s.text(r);break}case"html":{i+=s.html(r);break}case"link":{i+=s.link(r);break}case"image":{i+=s.image(r);break}case"strong":{i+=s.strong(r);break}case"em":{i+=s.em(r);break}case"codespan":{i+=s.codespan(r);break}case"br":{i+=s.br(r);break}case"del":{i+=s.del(r);break}case"text":{i+=s.text(r);break}default:{let o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}},A=class{options;block;constructor(n){this.options=n||S}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}emStrongMask(n){return n}provideLexer(){return this.block?w.lex:w.lexInline}provideParser(){return this.block?v.parse:v.parseInline}},vt=class{defaults=G();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=v;Renderer=M;TextRenderer=te;Lexer=w;Tokenizer=P;Hooks=A;constructor(...n){this.use(...n)}walkTokens(n,e){let s=[];for(let i of n)switch(s=s.concat(e.call(this,i)),i.type){case"table":{let t=i;for(let a of t.header)s=s.concat(this.walkTokens(a.tokens,e));for(let a of t.rows)for(let r of a)s=s.concat(this.walkTokens(r.tokens,e));break}case"list":{let t=i;s=s.concat(this.walkTokens(t.items,e));break}default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(a=>{let r=t[a].flat(1/0);s=s.concat(this.walkTokens(r,e))}):t.tokens&&(s=s.concat(this.walkTokens(t.tokens,e)))}}return s}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(s=>{let i={...s};if(i.async=this.defaults.async||i.async||!1,s.extensions&&(s.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let a=e.renderers[t.name];a?e.renderers[t.name]=function(...r){let o=t.renderer.apply(this,r);return o===!1&&(o=a.apply(this,r)),o}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[t.level];a?a.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),i.extensions=e),s.renderer){let t=this.defaults.renderer||new M(this.defaults);for(let a in s.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let r=a,o=s.renderer[r],l=t[r];t[r]=(...h)=>{let c=o.apply(t,h);return c===!1&&(c=l.apply(t,h)),c||""}}i.renderer=t}if(s.tokenizer){let t=this.defaults.tokenizer||new P(this.defaults);for(let a in s.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let r=a,o=s.tokenizer[r],l=t[r];t[r]=(...h)=>{let c=o.apply(t,h);return c===!1&&(c=l.apply(t,h)),c}}i.tokenizer=t}if(s.hooks){let t=this.defaults.hooks||new A;for(let a in s.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let r=a,o=s.hooks[r],l=t[r];A.passThroughHooks.has(a)?t[r]=h=>{if(this.defaults.async&&A.passThroughHooksRespectAsync.has(a))return(async()=>{let g=await o.call(t,h);return l.call(t,g)})();let c=o.call(t,h);return l.call(t,c)}:t[r]=(...h)=>{if(this.defaults.async)return(async()=>{let g=await o.apply(t,h);return g===!1&&(g=await l.apply(t,h)),g})();let c=o.apply(t,h);return c===!1&&(c=l.apply(t,h)),c}}i.hooks=t}if(s.walkTokens){let t=this.defaults.walkTokens,a=s.walkTokens;i.walkTokens=function(r){let o=[];return o.push(a.call(this,r)),t&&(o=o.concat(t.call(this,r))),o}}this.defaults={...this.defaults,...i}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return w.lex(n,e??this.defaults)}parser(n,e){return v.parse(n,e??this.defaults)}parseMarkdown(n){return(e,s)=>{let i={...s},t={...this.defaults,...i},a=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=n),t.async)return(async()=>{let r=t.hooks?await t.hooks.preprocess(e):e,o=await(t.hooks?await t.hooks.provideLexer():n?w.lex:w.lexInline)(r,t),l=t.hooks?await t.hooks.processAllTokens(o):o;t.walkTokens&&await Promise.all(this.walkTokens(l,t.walkTokens));let h=await(t.hooks?await t.hooks.provideParser():n?v.parse:v.parseInline)(l,t);return t.hooks?await t.hooks.postprocess(h):h})().catch(a);try{t.hooks&&(e=t.hooks.preprocess(e));let r=(t.hooks?t.hooks.provideLexer():n?w.lex:w.lexInline)(e,t);t.hooks&&(r=t.hooks.processAllTokens(r)),t.walkTokens&&this.walkTokens(r,t.walkTokens);let o=(t.hooks?t.hooks.provideParser():n?v.parse:v.parseInline)(r,t);return t.hooks&&(o=t.hooks.postprocess(o)),o}catch(r){return a(r)}}}onError(n,e){return s=>{if(s.message+=`
|
|
63
|
+
Please report this to https://github.com/markedjs/marked.`,n){let i="<p>An error occurred:</p><pre>"+y(s.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(s);throw s}}},$=new vt;function d(n,e){return $.parse(n,e)}d.options=d.setOptions=function(n){return $.setOptions(n),d.defaults=$.defaults,$e(d.defaults),d};d.getDefaults=G;d.defaults=S;d.use=function(...n){return $.use(...n),d.defaults=$.defaults,$e(d.defaults),d};d.walkTokens=function(n,e){return $.walkTokens(n,e)};d.parseInline=$.parseInline;d.Parser=v;d.parser=v.parse;d.Renderer=M;d.TextRenderer=te;d.Lexer=w;d.lexer=w.lex;d.Tokenizer=P;d.Hooks=A;d.parse=d;d.options;d.setOptions;d.use;d.walkTokens;d.parseInline;v.parse;w.lex;var U=class extends ue{constructor(){super(),this.serverRoot="https://aiservices-beta.arcgis.com/",this.solutionAIurl=`${this.serverRoot}skills/solution_deployment/chat`,this.docAIurl=`${this.serverRoot}skills/doc_ai_assistant/chat`,this.token=null,this.open=!1,this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this._isLoading=!1,this._isLoadingText="",this.messages=[],this._showCopyAlert=!1,this._translations=ke({name:"arcgis-solutions-assistant",blocking:!0}),this.closeAssistant=oe(),this._resetConversation=()=>{this.conversationStore.conversationId=null,this.conversationStore.inquiryId=null,this.conversationStore.ackSequenceNumber=null},this._setMessageContainerRef=e=>{this._chatContainer=e},this._setInputRef=e=>{this._inputRef=e,this._inputRef.addEventListener("keydown",s=>{s.key==="Enter"&&!s.shiftKey&&(s.preventDefault(),this.handleSendMessage())}),setTimeout(()=>{this._inputRef?.focus()},100)},this._submitQuestion=e=>{this._inputRef&&(this._inputRef.value=e,this.handleSendMessage())},this.listenOn(window,"submitQuestion",e=>{this._submitQuestion(e.detail)})}static{this.properties={serverRoot:1,solutionAIurl:1,docAIurl:1,token:1,open:5,conversationStore:16,_isLoading:16,_isLoadingText:16,messages:16,_showCopyAlert:16,_translations:16}}static{this.styles=Pe}async handleSendMessage(){if(!this._inputRef?.value.trim())return;this._isLoading=!0;let e=this._inputRef.value.trim();this._inputRef.value="";let s={message:e,context:{debug:!1,kind:"SolutionRequest"}};if(this.conversationStore.conversationId!==null){if(s.conversationId=this.conversationStore.conversationId,this.token){let i={author:"human",conversationId:this.conversationStore.conversationId?this.conversationStore.conversationId:"",message:e,render:this._renderSimpleTextMessage(e,"human","","Other")};this.messages=[...this.messages,i];let t=await this.requestAIServer(s,this.token,this.solutionAIurl);this.loopRequest(t,this.token,this.solutionAIurl)}}else if(this.token){let i={author:"human",message:e,render:this._renderSimpleTextMessage(e,"human","","Other")};this.messages=[...this.messages,i];let t=await this.requestAIServer(s,this.token,this.solutionAIurl);this.conversationStore.conversationId=t.conversationId,this.conversationStore.inquiryId=t.inquiryId,this.conversationStore.ackSequenceNumber=t.sequenceNumber,this.loopRequest(t,this.token,this.solutionAIurl)}}async loopRequest(e,s,i){let t=e;for(this._isLoading=!0;t.hasMore;){let a={conversationId:t.conversationId,ackSequenceNumber:t.sequenceNumber,inquiryId:t.inquiryId};if(t=await this.requestAIServer(a,s,i),t.context)if(this.conversationStore.context=t.context,t.context.intent)switch(t.context.intent){case"Solution question":this.messages.push({author:"ai",conversationId:t.conversationId,intent:"Solution question",message:t.message??""});let r={message:t.message,conversationId:a.conversationId,context:{kind:"DocAIAssistantRequest",filters:{products:"ArcGIS Solutions"}}};t=await this.requestAIServer(r,s,this.docAIurl);break;case"Recommend solution":if(t.context.results&&t.context.results?.length>0){let o={author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Recommend solution",render:this._renderSuggestedSolutions(t.message??"",t.context.results,t.conversationId,"Recommend solution")};this.messages.push(o)}break;default:this.messages.push({author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Other",render:this._renderSimpleTextMessage(t.message??"","ai",t.conversationId,"Other")});break}else if(t.context.results){for(let r of t.context.results)if(r.reply!==""){this._isLoadingText="";let o=await Promise.resolve(d(r.reply));this.messages.push({message:o,author:"ai",conversationId:t.conversationId,intent:"Solution question",render:this._renderDocAssistantResults(o,r.reply,r.ref,r.followupQuestions,t.conversationId,"Solution question")})}}else{t.context.kind&&t.context.kind.toLowerCase()==="ArcGISErrorAsContext".toLowerCase()?this.messages.push({author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Error",render:this._renderSimpleTextMessage(this._translations.genericErrorMessage,"ai",t.conversationId,"Error")}):this.messages.push({author:"ai",conversationId:t.conversationId,message:t.message??"",intent:"Other",render:this._renderSimpleTextMessage(t.message??"","ai",t.conversationId,"Error")});break}}this._isLoading=!1}async requestAIServer(e,s,i){try{let t=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",token:s},body:JSON.stringify(e)})).json();if(t)return t;throw new Error("No data returned")}catch(t){throw new Error(`Request failed: ${t}`)}}resetChat(){let e=this.messages[this.messages.length-1];if(e.author!=="system"&&e.conversationId!=="-1"){this._resetConversation();let s={author:"system",conversationId:"-1",message:this._translations.newConversationStarted,render:this._renderSimpleTextMessage(this._translations.newConversationStarted,"system","","Other","speech-bubble-plus")};this.messages=[...this.messages,s],this._inputRef&&(this._inputRef.value="")}}willUpdate(e){this.messages.length===0&&this._translations.defaultStartUpMessage&&(this.messages=[{author:"ai",conversationId:"",message:this._translations.defaultStartUpMessage,render:this._renderSimpleTextMessage(this._translations.defaultStartUpMessage,"ai","","Other")}])}updated(e){(e.size||this._isLoading)&&this._scrollToBottom()}_renderFeedback(e,s,i,t){return m`<div><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-up label="position feedback" kind=neutral @click=${()=>{this._sendFeedback(e,s,"Good",i,t)}}></calcite-button><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-down label="position feedback" kind=neutral @click=${()=>{this._sendFeedback(e,s,"Bad",i,t)}}></calcite-button><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=copy label="position feedback" kind=neutral @click=${()=>{this._copyResponseToClipboard(e)}}></calcite-button></div>`}_renderSolutionQuestionReferences(e){return e.map(s=>m`<div class="message-content-pad"><a href=${s.url??q} target=_blank>${s.title}</a></div>`)}_renderSolutionQuestionFollowup(e){return e.map(s=>m`<calcite-chip class="chip-content cursor-pointer" kind=brand .label=${s} @click=${()=>{this._submitFollowupQuestion(s)}}>${s}</calcite-chip>`)}_renderSolutionsQuestionTable(e,s,i){let t=this._renderSolutionQuestionReferences(s),a=this._renderSolutionQuestionFollowup(i);return m`<div><div slot=description class="message-content">${fe(e)}<div style="display: flex; justify-content: flex-start;"><calcite-button appearance=outline icon-end=chevron-down icon-start=link @click=${r=>{let o=r.currentTarget.parentElement?.nextElementSibling;o.classList.toggle("collapsed"),r.currentTarget.setAttribute("icon-end",o.classList.contains("collapsed")?"chevron-down":"chevron-up")}}>${`${s.length} ${s.length===1?this._translations.solutionsDocReference:this._translations.solutionsDocReferences}`}</calcite-button></div><div class="references-container collapsed">${t}</div></div><div class="padding-top-10">${a}</div></div>`}_renderSolutionCard(e,s){return m`<a class="solution-card" id=${s??q} @click=${()=>{this._emitItemIdFromAI(s)}}>${m`<calcite-card thumbnail-position=inline-start><div slot=thumbnail><img src=${e.thumbnail??q} alt=Thumbnail><calcite-chip icon=launch label="View solution">${this._translations.viewSolutionInApp}</calcite-chip></div><h3 slot=heading><b>${e.title}</b></h3><span slot=description>${e.snippet}</span></calcite-card>`}</a>`}_renderExistingSolutionsTable(e,s){let i=s.map(t=>{let a=t.thumbnail.match(/\/items\/([a-f0-9]+)\//);return a?this._renderSolutionCard(t,a[1]):null}).filter(t=>t!==null);return m`<div><div slot=description class="message-content"><div class="message-content-summary">${e}</div>${i}</div></div>`}_renderSimpleTextMessage(e,s,i,t,a){let r=this.messages.length>=2?this._getMostRecentQuestion():"",o=typeof r=="string"?"":r?.message??"";return s==="system"?m`<div class="message-content message-content-alignment">${a&&m`<calcite-icon .icon=${a}></calcite-icon>`||""}${e}</div>`:m`<calcite-card class=${de(s==="human"?"user-message":"system-message")}><div class="message-content">${e}${s==="ai"&&i!==""&&this._renderFeedback(e,o,i,t)||""}</div></calcite-card>`}_renderDocAssistantResults(e,s,i,t,a,r){let o=this._getMostRecentQuestion();return m`<calcite-card class="system-message"><div class="message-content">${this._renderSolutionsQuestionTable(e,i,t)}${this._renderFeedback(s,o?.message??"",a,r)}</div></calcite-card>`}_renderSuggestedSolutions(e,s,i,t){let a=this._getMostRecentQuestion(),r=s.map(o=>`- ${o.title}`).join(`
|
|
64
|
+
`);return m`<calcite-card class="system-message"><div class="message-content">${this._renderExistingSolutionsTable(e,s)}${this._renderFeedback(e+`
|
|
65
|
+
`+r.toString(),a?.message??"",i,t)}</div></calcite-card>`}render(){return m`<calcite-dialog class="chat-panel" .open=${this.open} resizable .heading=${this._translations.solutionAssistantTitle} id=example-dialog placement=bottom-start @calciteDialogClose=${()=>{this.closeAssistant.emit(!0),this.open=!1}}><span class="chat-panel-heading" slot=header-content><span class="padding-right-8">${this._translations.solutionAssistantTitle}</span><calcite-chip .label=${this._translations.betaTag} .value=${this._translations.betaTag}>${this._translations.betaTag}</calcite-chip></span>${this.messages.length>1?m`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent icon-end=speech-bubble-plus label="New conversation" kind=neutral></calcite-button>`:""}<div class="chat-messages" ${O(this._setMessageContainerRef)}>${this.messages.map(e=>e.render)}${this._isLoading&&m`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText!=""&&m`<div class="padding-left-10">${this._isLoadingText}</div>`||""}</div></calcite-card>`||""}</div><div slot=footer class="width-100"><div class="chat-input"><calcite-text-area resize=none rows=3 .placeholder=${this._translations.sendMessage} value ${O(this._setInputRef)}></calcite-text-area><calcite-button icon-start=send appearance=outline kind=neutral @click=${this.handleSendMessage} .disabled=${!!this._isLoading}></calcite-button></div><div class="disclaimer-div padding-top-10" slot=footer><calcite-icon icon=information scale=s></calcite-icon>${this._translations.disclaimerMessage}<a href=https://trust.arcgis.com/en/security-concern/ target=_blank>${this._translations.reportConcern}</a></div></div><calcite-alert auto-close auto-close-duration=fast kind=success .label=${this._translations.copyResponse} .open=${this._showCopyAlert} @close=${()=>{this._showCopyAlert=!1}} @calciteAlertClose=${()=>{this._showCopyAlert=!1}}><div slot=title>${this._translations.copyResponse}</div></calcite-alert></calcite-dialog>`}_scrollToBottom(){this._chatContainer&&setTimeout(()=>{this._chatContainer&&(this._chatContainer.scrollTop=this._chatContainer.scrollHeight)},100)}_emitItemIdFromAI(e){this._querySolutions(e).then(s=>{let i=s.typeKeywords.filter(a=>a.includes("solutionid")),t=new CustomEvent("solutionIDFromAssistant",{detail:i.length>0?i[0]:e,bubbles:!0,composed:!0});window.dispatchEvent(t)})}_submitFollowupQuestion(e){let s=new CustomEvent("submitQuestion",{detail:e,bubbles:!0,composed:!0});window.dispatchEvent(s)}_getMostRecentQuestion(){return[...this.messages].reverse().find(e=>e.author==="human")||null}async _querySolutions(e){let s=await Be(e);if("error"in s)throw new Error(s.error);return s}_sendFeedback(e,s,i,t,a){let r=`https://survey123.arcgis.com/share/6e349a50b4504ca6b6107216d568db5f?field:_source=${encodeURIComponent("Solutions Assistant")}&field:user_evaluation=${encodeURIComponent(i)}&field:question=${encodeURIComponent(s)}&field:answer=${encodeURIComponent(e)}&field:context=${encodeURIComponent(JSON.stringify({intent:a}))}&field:conversation_id=${encodeURIComponent(t)}&field:version=${encodeURIComponent("v1")}`;window.open(r,"_blank")}_copyResponseToClipboard(e){navigator.clipboard.writeText(e),this._showCopyAlert=!0}};ge("arcgis-solutions-assistant",U);export{U as ArcgisSolutionsAssistant};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as e}from"./
|
|
3
|
+
v1.2.0-next.24 */
|
|
4
|
+
import{a as e}from"./MSBJECJS.js";var n=["hub:content:edit","hub:content:settings","hub:content:discussions"],s=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{licenseInfo:{type:"string"},serverExtractCapability:{type:"boolean",enum:[!0,!1]},schedule:{type:"object"},_forceUpdate:{type:"array",items:{type:"boolean",enum:[!0]}},downloadFormats:{type:"array",items:{type:"object"}}})});export{n as a,s as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.24 */
|
|
4
|
+
import"./EAS42GZC.js";var l=async(e,r,o)=>{let t=r.orgUrlKey;return{type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.siteEntityTitleValidatorError`}]}},{scope:"/properties/_urlInfo",type:"Control",options:{type:"Control",control:"hub-composite-input-site-url",orgUrlKey:t,messages:[{type:"ERROR",keyword:"isUniqueDomain",labelKey:`${e}.fields.siteUrl.isUniqueError`,icon:!0}]}}]}};export{l as buildUiSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as q}from"./WD7VSNNZ.js";import{a as w}from"./Y3M3ZSYR.js";import{a as M}from"./6KLNSSNI.js";import{C as T,b as v,c as F,z as P}from"./BSVWOZY5.js";import{b as S}from"./VNWZKWFC.js";import"./JOGLZRNT.js";import"./JFWEV72O.js";import{E as k,G as y,h as E,i as h,l as $,o as U}from"./5WF2EVNT.js";import"./ZQV3UEGN.js";var n=(a=>(a.Loading="loading",a.Disabled="disabled",a.Complete="complete",a.Calculating="calculating",a.Bottom="bottom",a.Left="left",a.Right="right",a.Floating="floating",a.Pinned="pinned",a))(n||{}),g=(a=>(a.Up="chevron-up",a.Down="chevron-down",a.Left="chevron-left",a.Right="chevron-right",a.Blank="blank",a))(g||{}),I=(a=>(a.Small="s",a.Medium="m",a.Large="l",a))(I||{}),R=(a=>(a.Transparent="transparent",a))(R||{}),L=(a=>(a.Start="start",a.Center="center",a))(L||{}),N=E`:host{display:block;--instant-apps-scoreboard-background-color: var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color: var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom: 0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0 3px 15px #0003;border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding: 1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word}:host .instant-apps-scoreboard__item-label{font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%,-15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:.5vh;padding-bottom:.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}`,x="instant-apps-scoreboard",O=6,B=`${x}--`,m=`${x}__`,j=q.medium[1],r={itemsContainer:`${m}items-container`,items:`${m}items`,item:`${m}item`,label:`${m}item-label`,value:`${m}item-value`,valuePlaceholder:`${m}item-value-placeholder`,position:{bottom:`${m}position--bottom`,side:`${m}position--side`,left:`${m}position--left`,right:`${m}position--right`},mode:{floating:`${m}mode--floating`,pinned:`${m}mode--pinned`}},V=class extends k{constructor(){super(...arguments),this._messages=M({name:"instant-apps-scoreboard"}),this.state=n.Loading,this.itemIndex=0,this.isMobile=!1,this.position=n.Bottom,this.mode=n.Floating,this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.scoreboardItemsUpdated=U()}static{this.properties={state:16,itemIndex:16,layers:16,layerViews:16,isMobile:16,view:0,items:0,position:0,mode:0,itemLimit:9,autoDockEnabled:5,geometry:0,queryType:1}}static{this.styles=N}get checkMobile(){let t=this.el?.parentElement?.offsetWidth;return t&&!Number.isNaN(t)&&t>0?t<j:!1}get getItemsToDisplay(){let t=this.getItemLimit();return this.items.filter(e=>e.visible).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){let t=this.getItemLimit(),e=this.items.slice(this.items.length-t).map(s=>s.uid),o=this.items.slice(this.itemIndex,this.itemIndex+t).map(s=>s.uid);return e.every((s,c)=>s===o[c])}async load(){let t=new ResizeObserver(()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)});if(this.el?.parentElement&&t.observe(this.el.parentElement),!this.view||!this.items)this.state=n.Disabled;else try{await this.initModules()}catch{this.state=n.Disabled}}willUpdate(t){t.has("items")&&this.generateUIDs(),t.has("items")&&this.storeLayers(),t.has("layers")&&this.storeLayerViews(),t.has("geometry")&&(this.hasUpdated||this.geometry!==null)&&this.calculateScoreboardItemValuesFromGeometry(),t.has("layerViews")&&this.calculateScoreboardItemValues()}async loaded(){if(this.state!==n.Disabled)try{await this.reactiveUtils?.whenOnce(()=>this.view?.ready),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch{this.state=n.Disabled,console.error(`${x}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){super.disconnectedCallback(),this.state=n.Disabled,this.itemIndex=0,this.layers?.removeAll(),this.layers?.destroy(),this.layers=null,this.layerViews?.removeAll(),this.layerViews?.destroy(),this.layerViews=null,this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state=n.Calculating,await(this.view?.map).loadAll();let t=this.items.map(i=>i?.layer?.id),e=i=>i.type!=="feature"||!i.isTable,o=i=>i.type==="feature"||i.type==="scene",s=i=>t.includes(i.id),c=i=>e(i)&&o(i)&&s(i);this.layers=this.view?.map?.allLayers?.filter(i=>c(i)),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach(s=>s.outFields=["*"]);let t=[];this.layers.forEach(s=>{let c=s,i=this.view?.whenLayerView(c);t.push(i)});let e=(await Promise.allSettled(t)).filter(s=>s.status==="fulfilled"&&s.value).map(s=>s.value),o=[];e.forEach(s=>o.push(this.reactiveUtils?.whenOnce(()=>!s.updating))),await Promise.all(o),this.layerViews=await v([...e])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&this.layers.length===0||this.layerViews&&this.layerViews.length===0)return;this.state=n.Calculating;let t=[...this.items],e=[];this.queryStatDefinitions(t,e);let o=await Promise.all(e);this.handleQueryFeaturesResponses(o,t),this.items.length=0,t.forEach(s=>this.items.push(s)),this.state=n.Complete,this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async initModules(){try{let[t,e]=await Promise.all([P(),T()]);this.reactiveUtils=t,this.intl=e,this.handles=await F(),this.layers=await v([]),this.layerViews=await v([])}catch(t){throw console.error(t),this.state=n.Disabled,new Error("Failed to initialize modules")}}async loadMapResources(){if(this.view){let{map:t}=this.view,e=t;try{await e.loadAll()}catch(o){throw console.error(o),this.state=n.Disabled,new Error("Failed to load map resources")}}}generateUID(){return t=>{let e=Math.random(),o=Math.floor(Math.random()*10)+11,s=e.toString(o).replace("0.","");t.uid=s}}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,e){let o=i=>{let{field:l,operation:d}=i,p=l,b=`${l}_${d}`;return{onStatisticField:p,outStatisticFieldName:b,statisticType:d}},s=(i,l)=>{let d=this.queryType==="layer"?i.layer.createQuery():i.createQuery(),p=[l],b=this.geometry??this.view?.extent;d.outStatistics=p,d.geometry=b;let u=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null;return u&&(d.timeExtent=u),d},c=()=>async i=>{let l=this.layerViews?.find(u=>u.layer.id===i?.layer?.id);if(!l)return;let d=o(i),p=s(l,d),b=this.queryType==="layer"?l.layer.queryFeatures(p):l.queryFeatures(p);e.push(b)};t.forEach(c())}handleQueryFeaturesResponses(t,e){let o=i=>{let l=i.features[0],{attributes:d}=l;return Object.values(d)[0]},s=()=>({notation:"compact",compactDisplay:"short"}),c=()=>(i,l)=>{let d=o(i),p=s(),b=d!==null,u=b?this.intl.formatNumber(d,p):null,_=b?`${u}`:"";e[l].displayValue=_,e[l].value=d};t.forEach(c())}initStationaryWatcher(){let t={once:!0,initial:!0},e=()=>this.reactiveUtils?.when(()=>!this.view?.interacting,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},t),o=()=>this.reactiveUtils?.when(()=>this.view?.stationary,()=>e()),s="stationary-watcher-key";this.handles?.has(s)&&this.handles.remove(s),this.handles?.add(o(),s)}initViewUpdateWatcher(){return this.reactiveUtils.watch(()=>this.view?.updating,()=>{this.reactiveUtils.when(()=>!this.view?.updating,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},{once:!0,initial:!0})},{initial:!0})}watchLayerVisibility(){if(!this.layers)return;let t="visbilityWatcherKey";this.handles?.remove(t);let e=[],o=s=>{let c=async()=>{let l=await this.view?.whenLayerView(s);await this.reactiveUtils.whenOnce(()=>!l?.updating),this.calculateScoreboardItemValues()},i=this.reactiveUtils.watch(()=>s?.visible,async()=>await c());e.push(i)};this.layers.forEach(o),this.handles?.add([...e],t)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?O:this.itemLimit}setHostClassNames(){this.isMobile||this.position===n.Bottom?(this.el.classList.remove(r.position.side,r.position.left,r.position.right),this.el.classList.add(r.position.bottom)):(this.el.classList.remove(r.position.bottom),this.el.classList.add(r.position.side),this.position===n.Left?(this.el.classList.remove(r.position.right),this.el.classList.add(r.position.left)):(this.el.classList.remove(r.position.left),this.el.classList.add(r.position.right))),this.isMobile?(this.el.classList.remove(r.mode.floating),this.el.classList.add(r.mode.pinned)):this.mode===n.Floating?(this.el.classList.remove(r.mode.pinned),this.el.classList.add(r.mode.floating)):this.el.classList.add(r.mode.pinned)}render(){let{state:t}=this,e=t===n.Loading,o=t===n.Calculating,s=t===n.Disabled,c=e||o||this.queryType==="layerView"&&this.view?.updating?this.renderProgress():null;return this.setHostClassNames(),s?null:[c,this.items?.length>0?this.renderBase():null]}renderBase(){return w("instant-apps-scoreboard-base",h`<div class=${y(x)}>${this.renderContent()}</div>`)}renderContent(){let{state:t}=this;return t===n.Loading?this.renderLoader():t===n.Calculating||t===n.Complete?this.renderItemsContainer():null}renderItemsContainer(){let[t,e]=this.renderPreviousNextButtons();return h`<div class=${y(r.itemsContainer)}>${t}${this.renderItems()}${e}</div>`}renderPreviousNextButtons(){let t=this.getItemLimit(),e=this.items.filter(A=>A.visible)?.length<=t,o=this.itemIndex===0,s=this.isEnd,c=this.isMobile?!0:this.position===n.Bottom,i=c?L.Start:L.Center,l=c?g.Left:g.Up,d=c?g.Right:g.Down,p={previous:l,next:d},b=o||e?g.Blank:p.previous,u=s||e?g.Blank:p.next,_={previous:o||e,next:s||e},C=R.Transparent,D=this.isMobile?I.Small:I.Large,f={previous:this._messages.previous,next:this._messages.next};return[h`<calcite-action @click=${this.previousItem} .icon=${b} .disabled=${_.previous} .alignment=${i} .scale=${D} .appearance=${C} .text=${f.previous??""} .label=${f.previous}></calcite-action>`,h`<calcite-action @click=${this.nextItem} .icon=${u} .disabled=${_.next} .alignment=${i} .scale=${D} .appearance=${C} .text=${f.next??""} .label=${f.next}></calcite-action>`]}renderItems(){let{items:t}=r,e=this.getItemsToDisplay.map(o=>this.renderItem(o));return h`<ul class=${y(t)}>${e}</ul>`}renderItem(t){let{label:e}=t;return h`<li class=${y(r.item)}><span class=${y(r.label)} title=${e??$}>${e}</span>${this.renderValue(t)}</li>`}renderValue(t){let{displayValue:e}=t,o=this.state===n.Calculating,s=this.state===n.Disabled,c=e===void 0&&o,i=e||this._messages.NA,l=!this.layers?.find(p=>t?.layer?.id===p.id)?.visible,d=c?this.renderValuePlaceholder():s?"":l?h`<calcite-icon icon=view-hide scale=l title=${this._messages.layerVisibilityOff??$}></calcite-icon>`:i;return h`<span class=${y(r.value)}>${d}</span>`}renderValuePlaceholder(){return h`<span class=${y(r.valuePlaceholder)}></span>`}renderProgress(){let t=`${B}calcite-`;return w(`${t}progress`,h`<calcite-progress type=indeterminate></calcite-progress>`)}renderLoader(){let t=`${B}calcite-`,e=this._messages.loading;return w(`${t}loader`,h`<calcite-loader .label=${e??""} .text=${e} scale=m></calcite-loader>`)}};S("instant-apps-scoreboard",V);export{V as InstantAppsScoreboard};
|
|
3
|
+
v1.2.0-next.24 */
|
|
4
|
+
import{a as q}from"./QYQTOIF6.js";import{a as w}from"./PZ5GGYLN.js";import{a as M}from"./JGT3UVSS.js";import{C as T,b as v,c as F,z as P}from"./BF6B5YPC.js";import{b as S}from"./4QNOYSPY.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{E as k,G as y,h as E,i as h,l as $,o as U}from"./6WW2DA2G.js";import"./EAS42GZC.js";var n=(a=>(a.Loading="loading",a.Disabled="disabled",a.Complete="complete",a.Calculating="calculating",a.Bottom="bottom",a.Left="left",a.Right="right",a.Floating="floating",a.Pinned="pinned",a))(n||{}),g=(a=>(a.Up="chevron-up",a.Down="chevron-down",a.Left="chevron-left",a.Right="chevron-right",a.Blank="blank",a))(g||{}),I=(a=>(a.Small="s",a.Medium="m",a.Large="l",a))(I||{}),R=(a=>(a.Transparent="transparent",a))(R||{}),L=(a=>(a.Start="start",a.Center="center",a))(L||{}),N=E`:host{display:block;--instant-apps-scoreboard-background-color: var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color: var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom: 0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0 3px 15px #0003;border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding: 1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word}:host .instant-apps-scoreboard__item-label{font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%,-15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:.5vh;padding-bottom:.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}`,x="instant-apps-scoreboard",O=6,B=`${x}--`,m=`${x}__`,j=q.medium[1],r={itemsContainer:`${m}items-container`,items:`${m}items`,item:`${m}item`,label:`${m}item-label`,value:`${m}item-value`,valuePlaceholder:`${m}item-value-placeholder`,position:{bottom:`${m}position--bottom`,side:`${m}position--side`,left:`${m}position--left`,right:`${m}position--right`},mode:{floating:`${m}mode--floating`,pinned:`${m}mode--pinned`}},V=class extends k{constructor(){super(...arguments),this._messages=M({name:"instant-apps-scoreboard"}),this.state=n.Loading,this.itemIndex=0,this.isMobile=!1,this.position=n.Bottom,this.mode=n.Floating,this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.scoreboardItemsUpdated=U()}static{this.properties={state:16,itemIndex:16,layers:16,layerViews:16,isMobile:16,view:0,items:0,position:0,mode:0,itemLimit:9,autoDockEnabled:5,geometry:0,queryType:1}}static{this.styles=N}get checkMobile(){let t=this.el?.parentElement?.offsetWidth;return t&&!Number.isNaN(t)&&t>0?t<j:!1}get getItemsToDisplay(){let t=this.getItemLimit();return this.items.filter(e=>e.visible).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){let t=this.getItemLimit(),e=this.items.slice(this.items.length-t).map(s=>s.uid),o=this.items.slice(this.itemIndex,this.itemIndex+t).map(s=>s.uid);return e.every((s,c)=>s===o[c])}async load(){let t=new ResizeObserver(()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)});if(this.el?.parentElement&&t.observe(this.el.parentElement),!this.view||!this.items)this.state=n.Disabled;else try{await this.initModules()}catch{this.state=n.Disabled}}willUpdate(t){t.has("items")&&this.generateUIDs(),t.has("items")&&this.storeLayers(),t.has("layers")&&this.storeLayerViews(),t.has("geometry")&&(this.hasUpdated||this.geometry!==null)&&this.calculateScoreboardItemValuesFromGeometry(),t.has("layerViews")&&this.calculateScoreboardItemValues()}async loaded(){if(this.state!==n.Disabled)try{await this.reactiveUtils?.whenOnce(()=>this.view?.ready),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch{this.state=n.Disabled,console.error(`${x}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){super.disconnectedCallback(),this.state=n.Disabled,this.itemIndex=0,this.layers?.removeAll(),this.layers?.destroy(),this.layers=null,this.layerViews?.removeAll(),this.layerViews?.destroy(),this.layerViews=null,this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state=n.Calculating,await(this.view?.map).loadAll();let t=this.items.map(i=>i?.layer?.id),e=i=>i.type!=="feature"||!i.isTable,o=i=>i.type==="feature"||i.type==="scene",s=i=>t.includes(i.id),c=i=>e(i)&&o(i)&&s(i);this.layers=this.view?.map?.allLayers?.filter(i=>c(i)),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach(s=>s.outFields=["*"]);let t=[];this.layers.forEach(s=>{let c=s,i=this.view?.whenLayerView(c);t.push(i)});let e=(await Promise.allSettled(t)).filter(s=>s.status==="fulfilled"&&s.value).map(s=>s.value),o=[];e.forEach(s=>o.push(this.reactiveUtils?.whenOnce(()=>!s.updating))),await Promise.all(o),this.layerViews=await v([...e])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&this.layers.length===0||this.layerViews&&this.layerViews.length===0)return;this.state=n.Calculating;let t=[...this.items],e=[];this.queryStatDefinitions(t,e);let o=await Promise.all(e);this.handleQueryFeaturesResponses(o,t),this.items.length=0,t.forEach(s=>this.items.push(s)),this.state=n.Complete,this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async initModules(){try{let[t,e]=await Promise.all([P(),T()]);this.reactiveUtils=t,this.intl=e,this.handles=await F(),this.layers=await v([]),this.layerViews=await v([])}catch(t){throw console.error(t),this.state=n.Disabled,new Error("Failed to initialize modules")}}async loadMapResources(){if(this.view){let{map:t}=this.view,e=t;try{await e.loadAll()}catch(o){throw console.error(o),this.state=n.Disabled,new Error("Failed to load map resources")}}}generateUID(){return t=>{let e=Math.random(),o=Math.floor(Math.random()*10)+11,s=e.toString(o).replace("0.","");t.uid=s}}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,e){let o=i=>{let{field:l,operation:d}=i,p=l,b=`${l}_${d}`;return{onStatisticField:p,outStatisticFieldName:b,statisticType:d}},s=(i,l)=>{let d=this.queryType==="layer"?i.layer.createQuery():i.createQuery(),p=[l],b=this.geometry??this.view?.extent;d.outStatistics=p,d.geometry=b;let u=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null;return u&&(d.timeExtent=u),d},c=()=>async i=>{let l=this.layerViews?.find(u=>u.layer.id===i?.layer?.id);if(!l)return;let d=o(i),p=s(l,d),b=this.queryType==="layer"?l.layer.queryFeatures(p):l.queryFeatures(p);e.push(b)};t.forEach(c())}handleQueryFeaturesResponses(t,e){let o=i=>{let l=i.features[0],{attributes:d}=l;return Object.values(d)[0]},s=()=>({notation:"compact",compactDisplay:"short"}),c=()=>(i,l)=>{let d=o(i),p=s(),b=d!==null,u=b?this.intl.formatNumber(d,p):null,_=b?`${u}`:"";e[l].displayValue=_,e[l].value=d};t.forEach(c())}initStationaryWatcher(){let t={once:!0,initial:!0},e=()=>this.reactiveUtils?.when(()=>!this.view?.interacting,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},t),o=()=>this.reactiveUtils?.when(()=>this.view?.stationary,()=>e()),s="stationary-watcher-key";this.handles?.has(s)&&this.handles.remove(s),this.handles?.add(o(),s)}initViewUpdateWatcher(){return this.reactiveUtils.watch(()=>this.view?.updating,()=>{this.reactiveUtils.when(()=>!this.view?.updating,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},{once:!0,initial:!0})},{initial:!0})}watchLayerVisibility(){if(!this.layers)return;let t="visbilityWatcherKey";this.handles?.remove(t);let e=[],o=s=>{let c=async()=>{let l=await this.view?.whenLayerView(s);await this.reactiveUtils.whenOnce(()=>!l?.updating),this.calculateScoreboardItemValues()},i=this.reactiveUtils.watch(()=>s?.visible,async()=>await c());e.push(i)};this.layers.forEach(o),this.handles?.add([...e],t)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?O:this.itemLimit}setHostClassNames(){this.isMobile||this.position===n.Bottom?(this.el.classList.remove(r.position.side,r.position.left,r.position.right),this.el.classList.add(r.position.bottom)):(this.el.classList.remove(r.position.bottom),this.el.classList.add(r.position.side),this.position===n.Left?(this.el.classList.remove(r.position.right),this.el.classList.add(r.position.left)):(this.el.classList.remove(r.position.left),this.el.classList.add(r.position.right))),this.isMobile?(this.el.classList.remove(r.mode.floating),this.el.classList.add(r.mode.pinned)):this.mode===n.Floating?(this.el.classList.remove(r.mode.pinned),this.el.classList.add(r.mode.floating)):this.el.classList.add(r.mode.pinned)}render(){let{state:t}=this,e=t===n.Loading,o=t===n.Calculating,s=t===n.Disabled,c=e||o||this.queryType==="layerView"&&this.view?.updating?this.renderProgress():null;return this.setHostClassNames(),s?null:[c,this.items?.length>0?this.renderBase():null]}renderBase(){return w("instant-apps-scoreboard-base",h`<div class=${y(x)}>${this.renderContent()}</div>`)}renderContent(){let{state:t}=this;return t===n.Loading?this.renderLoader():t===n.Calculating||t===n.Complete?this.renderItemsContainer():null}renderItemsContainer(){let[t,e]=this.renderPreviousNextButtons();return h`<div class=${y(r.itemsContainer)}>${t}${this.renderItems()}${e}</div>`}renderPreviousNextButtons(){let t=this.getItemLimit(),e=this.items.filter(A=>A.visible)?.length<=t,o=this.itemIndex===0,s=this.isEnd,c=this.isMobile?!0:this.position===n.Bottom,i=c?L.Start:L.Center,l=c?g.Left:g.Up,d=c?g.Right:g.Down,p={previous:l,next:d},b=o||e?g.Blank:p.previous,u=s||e?g.Blank:p.next,_={previous:o||e,next:s||e},C=R.Transparent,D=this.isMobile?I.Small:I.Large,f={previous:this._messages.previous,next:this._messages.next};return[h`<calcite-action @click=${this.previousItem} .icon=${b} .disabled=${_.previous} .alignment=${i} .scale=${D} .appearance=${C} .text=${f.previous??""} .label=${f.previous}></calcite-action>`,h`<calcite-action @click=${this.nextItem} .icon=${u} .disabled=${_.next} .alignment=${i} .scale=${D} .appearance=${C} .text=${f.next??""} .label=${f.next}></calcite-action>`]}renderItems(){let{items:t}=r,e=this.getItemsToDisplay.map(o=>this.renderItem(o));return h`<ul class=${y(t)}>${e}</ul>`}renderItem(t){let{label:e}=t;return h`<li class=${y(r.item)}><span class=${y(r.label)} title=${e??$}>${e}</span>${this.renderValue(t)}</li>`}renderValue(t){let{displayValue:e}=t,o=this.state===n.Calculating,s=this.state===n.Disabled,c=e===void 0&&o,i=e||this._messages.NA,l=!this.layers?.find(p=>t?.layer?.id===p.id)?.visible,d=c?this.renderValuePlaceholder():s?"":l?h`<calcite-icon icon=view-hide scale=l title=${this._messages.layerVisibilityOff??$}></calcite-icon>`:i;return h`<span class=${y(r.value)}>${d}</span>`}renderValuePlaceholder(){return h`<span class=${y(r.valuePlaceholder)}></span>`}renderProgress(){let t=`${B}calcite-`;return w(`${t}progress`,h`<calcite-progress type=indeterminate></calcite-progress>`)}renderLoader(){let t=`${B}calcite-`,e=this._messages.loading;return w(`${t}loader`,h`<calcite-loader .label=${e??""} .text=${e} scale=m></calcite-loader>`)}};S("instant-apps-scoreboard",V);export{V as InstantAppsScoreboard};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import d from"./
|
|
3
|
+
v1.2.0-next.24 */
|
|
4
|
+
import d from"./KZD2C2ML.js";import{b as w}from"./VW2WEXVP.js";import b from"./KX7PNFBK.js";import{a as g,b as S,c as C,d as f}from"./DVGLTRJU.js";import a from"./UM5O6SR4.js";import{a as r}from"./T6FIJDJK.js";import"./KSO7CXKH.js";import"./GFXNHLR7.js";import"./CYG5JUF7.js";import"./3E3IBLXH.js";import"./EROCJUGG.js";import"./VX2H4KEW.js";import"./L2WHYM3J.js";import"./ZAL2JPN6.js";import"./ENUF5QK4.js";import"./BOHI7OOB.js";import"./KXKFOLKN.js";import"./XIKGCL6Z.js";import"./EYIL3WCN.js";import"./IMPPWVVG.js";import"./YMNTHO2F.js";import"./4SOCIVF6.js";import"./R6MJ3BWC.js";import"./ZVYGJ3ZV.js";import"./74AIX5RH.js";import"./T5CPOSYR.js";import{p as m}from"./27VT6FGO.js";import{a as v}from"./K2VMZCUX.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{b as y}from"./443EHILD.js";import{C as s,D as i,E as T,G as u,h as _,i as c,o as n}from"./6WW2DA2G.js";import"./EAS42GZC.js";export default $arcgis.t(([,{g:x,h:k},$])=>{var L=_`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import a from"./
|
|
3
|
+
v1.2.0-next.24 */
|
|
4
|
+
import a from"./UM5O6SR4.js";import"./KSO7CXKH.js";import"./GFXNHLR7.js";import"./CYG5JUF7.js";import"./3E3IBLXH.js";import"./EROCJUGG.js";import"./VX2H4KEW.js";import"./L2WHYM3J.js";import"./ZAL2JPN6.js";import"./ENUF5QK4.js";import"./BOHI7OOB.js";import"./KXKFOLKN.js";import"./XIKGCL6Z.js";import"./EYIL3WCN.js";import"./IMPPWVVG.js";import"./YMNTHO2F.js";import"./4SOCIVF6.js";import"./R6MJ3BWC.js";import"./ZVYGJ3ZV.js";import"./74AIX5RH.js";import"./T5CPOSYR.js";import{a as S}from"./G24DNHCB.js";import"./4QNOYSPY.js";import{c as w,j as M}from"./R22HIDGZ.js";import{j as u}from"./27VT6FGO.js";import"./4BXRZ62B.js";import{b as $}from"./SZNJD54W.js";import{a as L}from"./K2VMZCUX.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{b as v}from"./443EHILD.js";import{C as r,D as h,E as I,G as f,h as y,i as o,l as m,o as p,r as g}from"./6WW2DA2G.js";import"./EAS42GZC.js";export default $arcgis.t(([{l:W}])=>{function V(l){return l?.indexOf("http://")!==-1}function b(l){return V(l)?l.replace(/^http:\/\//,"https://"):l}function T(l,e,i){return i&&i.forEach(s=>{l.allLayers.forEach(t=>{t&&t.url===s.sourceUrl&&(t.url=b(s.proxyUrl),t.portalItem&&t.portalItem.when(()=>{t.portalItem.url=b(s.proxyUrl)}),e.request?.interceptors?.push({urls:s.sourceUrl,before:a=>{a.url&&a.url===s.sourceUrl&&(a.url=b(s.proxyUrl))}}))})}),l}var k=y`@layer{/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|