@esri/solutions-components 1.2.0-next.20 → 1.2.0-next.22
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/{I3DKKF5F.js → 2J76TI3Y.js} +1 -1
- package/dist/cdn/{XIEML7FT.js → 2LAEPCUT.js} +2 -2
- package/dist/cdn/{C6F4HO5U.js → 2NGTPAY6.js} +1 -1
- package/dist/cdn/{VIKALXXD.js → 3BA4TVKZ.js} +1 -1
- package/dist/cdn/{A7TYO73E.js → 3BSOZ44L.js} +2 -2
- package/dist/cdn/{ZIAGI22J.js → 3DII42GS.js} +2 -2
- package/dist/cdn/{UWAVF2GP.js → 3E5MUBDX.js} +2 -2
- package/dist/cdn/{WJAN6LLL.js → 3U6NZ374.js} +2 -2
- package/dist/cdn/{JE7GMEC2.js → 3WSM6NO6.js} +2 -2
- package/dist/cdn/43XU6K7E.js +18 -0
- package/dist/cdn/{3XMYR6AO.js → 47BR2SZD.js} +2 -2
- package/dist/cdn/{X7HNESXH.js → 4DVTM7ED.js} +2 -2
- package/dist/cdn/{ZFZ663TV.js → 4KD2CAOM.js} +1 -1
- package/dist/cdn/{6VXUORBY.js → 4N6YXJN2.js} +2 -2
- package/dist/cdn/{YKPVSW3B.js → 4NKIAU37.js} +2 -2
- package/dist/cdn/{NMG2ID6N.js → 4QQCA3U4.js} +1 -1
- package/dist/cdn/{KYROOFA3.js → 4T5OFFVJ.js} +2 -2
- package/dist/cdn/{5JWBQM5X.js → 4Z3G2C6M.js} +2 -2
- package/dist/cdn/{ZF2XHMQZ.js → 56MNA2VS.js} +1 -1
- package/dist/cdn/57N3RILQ.js +18 -0
- package/dist/cdn/{3J6DNKCB.js → 57YR4QF4.js} +2 -2
- package/dist/cdn/{T47XNO3L.js → 5A4CLVYZ.js} +1 -1
- package/dist/cdn/{P3BJE2HN.js → 5AFTWETY.js} +2 -2
- package/dist/cdn/{FF3XYEI3.js → 5GXSDMY4.js} +2 -2
- package/dist/cdn/{OK6VX227.js → 5IGBKFAS.js} +2 -2
- package/dist/cdn/{L5IXOZ6K.js → 5IGSIDCX.js} +2 -2
- package/dist/cdn/{UMFU7KU2.js → 5ISMY7M2.js} +2 -2
- package/dist/cdn/{YWYPENHD.js → 5NCBUEPR.js} +2 -2
- package/dist/cdn/{ZV5K3H2V.js → 5ON45F2D.js} +2 -2
- package/dist/cdn/{2KGL2KRL.js → 5UBEIDUY.js} +2 -2
- package/dist/cdn/{DGGOQ3L4.js → 5WF2EVNT.js} +1 -1
- package/dist/cdn/{VCA7V37B.js → 5WJ4J535.js} +2 -2
- package/dist/cdn/{ALEZMHWP.js → 5Y7G2BLZ.js} +2 -2
- package/dist/cdn/{NPAJ34CV.js → 63KS5ZBF.js} +2 -2
- package/dist/cdn/{MQUYDV5R.js → 67YVVSND.js} +1 -1
- package/dist/cdn/{ERJ3FGFF.js → 6GY47336.js} +2 -2
- package/dist/cdn/{VP76CX4U.js → 6IJ2366S.js} +2 -2
- package/dist/cdn/{WBZEJCYL.js → 6KLNSSNI.js} +2 -2
- package/dist/cdn/{2E2FE2UD.js → 6MLPFUBD.js} +1 -1
- package/dist/cdn/{L5L3D2MP.js → 6QELS3Z2.js} +2 -2
- package/dist/cdn/{5FQDPXO7.js → 6SZHNYTZ.js} +2 -2
- package/dist/cdn/{VZ2AGJN5.js → 6XC45ETQ.js} +2 -2
- package/dist/cdn/{CRA26J6U.js → 6ZQWYLNF.js} +2 -2
- package/dist/cdn/{RJBUFP4Z.js → 76CP2OWS.js} +1 -1
- package/dist/cdn/{KCUSGNOT.js → 7AMGNCI5.js} +2 -2
- package/dist/cdn/{KHN6DAWC.js → 7BZRS3T5.js} +1 -1
- package/dist/cdn/{JWKBLBHU.js → 7I6EJ6DQ.js} +2 -2
- package/dist/cdn/{BYHVLFM4.js → 7KWP5FHY.js} +2 -2
- package/dist/cdn/{5BCHBBEG.js → 7NF4C7Q6.js} +2 -2
- package/dist/cdn/7NGOIUPA.js +4 -0
- package/dist/cdn/{OL22QE26.js → 7OQQQ7DH.js} +2 -2
- package/dist/cdn/{MPEIFNG5.js → 7P2XP63S.js} +3 -3
- package/dist/cdn/{5Q45QLUW.js → 7RDNACQ2.js} +2 -2
- package/dist/cdn/{QEIXC65L.js → 7S22H73A.js} +2 -2
- package/dist/cdn/{CVPWFU5K.js → 7V4NDZHP.js} +2 -2
- package/dist/cdn/{XHXMDQDA.js → 7ZG66OFU.js} +1 -1
- package/dist/cdn/{GMXSVE5F.js → A3JNJEXJ.js} +1 -1
- package/dist/cdn/{WX6CMXEK.js → A3RFYTTG.js} +1 -1
- package/dist/cdn/{LLCAUOLE.js → A4LF2IU3.js} +2 -2
- package/dist/cdn/{VRYNGE64.js → ABU7II4P.js} +1 -1
- package/dist/cdn/{UNXBX2LJ.js → ALPEUENN.js} +2 -2
- package/dist/cdn/{OKERLMQE.js → ALSPCWO6.js} +2 -2
- package/dist/cdn/{Q5CNUDGT.js → AMEG6Y2U.js} +2 -2
- package/dist/cdn/{5CLHQWXO.js → ANBPB5IE.js} +2 -2
- package/dist/cdn/{TJBM3R6U.js → AOTY27J7.js} +2 -2
- package/dist/cdn/{GUBSZEOJ.js → ASZKILYC.js} +2 -2
- package/dist/cdn/{CNQYI77D.js → ATV7OCMV.js} +2 -2
- package/dist/cdn/{PSMIHRUH.js → AWZQ2TRC.js} +2 -2
- package/dist/cdn/{I5BUX6M6.js → AZBT7TRF.js} +2 -2
- package/dist/cdn/{WOC7MJRV.js → AZERSVAV.js} +2 -2
- package/dist/cdn/{I7DFBRAW.js → AZLSPTNN.js} +2 -2
- package/dist/cdn/B5FNHYSZ.js +18 -0
- package/dist/cdn/{CP4KQ5JU.js → BDGTGDFW.js} +2 -2
- package/dist/cdn/{PTF4V2H4.js → BDT5NRCH.js} +2 -2
- package/dist/cdn/{K5R7D36H.js → BDZD3CVH.js} +2 -2
- package/dist/cdn/{5Y5WZKXD.js → BIDEU7W3.js} +2 -2
- package/dist/cdn/{A2NUNLI7.js → BL7OQNJS.js} +2 -2
- package/dist/cdn/{YLYRRWJW.js → BOSFQLI6.js} +2 -2
- package/dist/cdn/{SRGIOXPX.js → BQG6YY27.js} +2 -2
- package/dist/cdn/BRKMDWXS.js +18 -0
- package/dist/cdn/{RT3O7MJA.js → BRZXGWDB.js} +3 -3
- package/dist/cdn/{AUEIJUOE.js → BSE6M452.js} +2 -2
- package/dist/cdn/{NOPHLD4K.js → BSVWOZY5.js} +2 -2
- package/dist/cdn/{HVJNKZ76.js → BWBSEHRI.js} +2 -2
- package/dist/cdn/{7GMOCOVS.js → BZJ6ESSC.js} +2 -2
- package/dist/cdn/{QFJYWPYF.js → BZNPKPP7.js} +2 -2
- package/dist/cdn/{Q62F7PR4.js → C2LPPIYP.js} +2 -2
- package/dist/cdn/{NPOGRCJT.js → CEJRXTAP.js} +2 -2
- package/dist/cdn/{24NXLO23.js → CIIVSICU.js} +2 -2
- package/dist/cdn/{RLZYJMK2.js → CJZQ6JFL.js} +2 -2
- package/dist/cdn/{44X6QKRO.js → COKCSW5M.js} +2 -2
- package/dist/cdn/{LHSOZNOH.js → CVDMNQMG.js} +2 -2
- package/dist/cdn/{DZVV6CD7.js → D64YWVBM.js} +2 -2
- package/dist/cdn/{T6EN2LQT.js → D7WRWG4G.js} +2 -2
- package/dist/cdn/{TXQG7PH5.js → DCNCQVZU.js} +2 -2
- package/dist/cdn/{LEJ63S6Y.js → DGD6AY26.js} +2 -2
- package/dist/cdn/{VLVHNMFY.js → DI7ZAJJN.js} +2 -2
- package/dist/cdn/{VHUKKY5C.js → DJOW4VU6.js} +2 -2
- package/dist/cdn/{LCJL63FQ.js → DKO57ZWW.js} +2 -2
- package/dist/cdn/{IP5RAZNL.js → DLFCYL32.js} +2 -2
- package/dist/cdn/{OJYHZLP5.js → DNJTQZGW.js} +2 -2
- package/dist/cdn/{OPR2BXKC.js → DPUIBCUX.js} +2 -2
- package/dist/cdn/{RFFJFE4V.js → DSWZRGSA.js} +2 -2
- package/dist/cdn/{3RRAETYC.js → DTGCP5A5.js} +2 -2
- package/dist/cdn/{3JEP4BL5.js → DTITQ4KX.js} +1 -1
- package/dist/cdn/{VZ4GI3Y5.js → E36E5442.js} +2 -2
- package/dist/cdn/{PNIMBHES.js → EFY33UCE.js} +2 -2
- package/dist/cdn/{NF4TQGZG.js → EGOO6T5E.js} +2 -2
- package/dist/cdn/{HETCA2TC.js → EKAMOWDX.js} +2 -2
- package/dist/cdn/{2LPVFJKJ.js → EMCKMG77.js} +2 -2
- package/dist/cdn/{7L3YSULP.js → ENZNXZL6.js} +2 -2
- package/dist/cdn/{CL2HUELG.js → EQVOII7W.js} +2 -2
- package/dist/cdn/{E3DHDSJM.js → ETBLUH5E.js} +2 -2
- package/dist/cdn/{7B2JUGRA.js → EU3IQK3Z.js} +2 -2
- package/dist/cdn/{4KVLYOZL.js → EZQK7BI4.js} +1 -1
- package/dist/cdn/{2I5JVFLV.js → FBBVBR5A.js} +2 -2
- package/dist/cdn/{ST3O4SWS.js → FIFGGEED.js} +2 -2
- package/dist/cdn/{UEBQNKZH.js → FLZL5MYI.js} +2 -2
- package/dist/cdn/{62MLOWEA.js → FNWAWKAT.js} +2 -2
- package/dist/cdn/{TS3DBIH4.js → FOBH7PYG.js} +2 -2
- package/dist/cdn/{QU42CF6F.js → FWGNWNBB.js} +2 -2
- package/dist/cdn/{ZUQRVCPO.js → FWSZLG4E.js} +2 -2
- package/dist/cdn/{MQ6QXIYX.js → FXUF5PDO.js} +2 -2
- package/dist/cdn/{DOFGLV3C.js → G36XD6KA.js} +2 -2
- package/dist/cdn/{7QNFIYHN.js → G6R3KQSS.js} +2 -2
- package/dist/cdn/{6TJU76R3.js → GBRE25RH.js} +1 -1
- package/dist/cdn/{YIXPGCUC.js → GG6OEQ4D.js} +2 -2
- package/dist/cdn/{5UKVAD54.js → GHAVCIL3.js} +2 -2
- package/dist/cdn/{4L4Y76VM.js → GIX2IW6Y.js} +2 -2
- package/dist/cdn/{XX4ZM5IC.js → GMMRDHZU.js} +2 -2
- package/dist/cdn/{5UFQVWVZ.js → GTCHPWOM.js} +2 -2
- package/dist/cdn/{2ALMQ2ZF.js → H7C3BRTP.js} +2 -2
- package/dist/cdn/{NQP4W34S.js → HB3S47XT.js} +2 -2
- package/dist/cdn/{6WZU5A27.js → HDHV7JZB.js} +2 -2
- package/dist/cdn/{UNXJMJFU.js → HUSG6A7E.js} +2 -2
- package/dist/cdn/{ABVF5BMO.js → HWECP5SJ.js} +2 -2
- package/dist/cdn/{VKQSUS2D.js → HX7JRDBY.js} +2 -2
- package/dist/cdn/{I7PYIEVL.js → HYKIFANV.js} +2 -2
- package/dist/cdn/{6HKQWPJC.js → HZAZFSYY.js} +2 -2
- package/dist/cdn/{AKYZ7MV4.js → I3MJVYAU.js} +2 -2
- package/dist/cdn/{A4BQL2K3.js → I6OCOHZ5.js} +2 -2
- package/dist/cdn/{I4PXPOT7.js → I7NZK7VA.js} +2 -2
- package/dist/cdn/{2A43GCOV.js → ICZLPAYA.js} +2 -2
- package/dist/cdn/{V272SPSH.js → IDFQGGDV.js} +1 -1
- package/dist/cdn/{7CGF4Q2X.js → IDY2HCL4.js} +2 -2
- package/dist/cdn/{C2NWD2IM.js → IGP55N3J.js} +2 -2
- package/dist/cdn/{GKEQBFSS.js → IKXRXOR4.js} +2 -2
- package/dist/cdn/IRMKTEGT.js +18 -0
- package/dist/cdn/{BHQ5RFLI.js → IRZC2FGR.js} +2 -2
- package/dist/cdn/{KI2VCUWI.js → ISSOGJCD.js} +2 -2
- package/dist/cdn/{Z3JRVSB5.js → ITEAXFL7.js} +2 -2
- package/dist/cdn/IVZFPQHF.js +4 -0
- package/dist/cdn/{GEUPVEDN.js → IX5DZANU.js} +2 -2
- package/dist/cdn/{5RB6LGBC.js → J5WQSJRQ.js} +2 -2
- package/dist/cdn/{KWTHKTQ3.js → J6I4CQUW.js} +2 -2
- package/dist/cdn/{DZPWOUEC.js → J6QQCPG3.js} +2 -2
- package/dist/cdn/{67PFFTBT.js → J7WGRAVD.js} +2 -2
- package/dist/cdn/{WO3K4V6S.js → JDGP7IH2.js} +2 -2
- package/dist/cdn/{PXQKI3CA.js → JDXOSH6W.js} +2 -2
- package/dist/cdn/{SKNE6RLM.js → JFWEV72O.js} +2 -2
- package/dist/cdn/{C3XGN444.js → JJMULAR6.js} +1 -1
- package/dist/cdn/{4W4KYXC7.js → JLFACBAC.js} +2 -2
- package/dist/cdn/{YESTJISJ.js → JOGLZRNT.js} +2 -2
- package/dist/cdn/{BP2CHTVW.js → JP2DX62F.js} +2 -2
- package/dist/cdn/{QFF7V4PQ.js → JRQYZJIL.js} +2 -2
- package/dist/cdn/{3SE34IUW.js → JRS2R7FM.js} +2 -2
- package/dist/cdn/{CDI76SS4.js → JUJMZFNA.js} +2 -2
- package/dist/cdn/{RYLMXGYK.js → K3B77KNR.js} +1 -1
- package/dist/cdn/{2CK7SB3E.js → K3I6QOKJ.js} +2 -2
- package/dist/cdn/{GKZFHOW2.js → K4OCUFNZ.js} +2 -2
- package/dist/cdn/{EJ6BXACD.js → K5E7SDHF.js} +2 -2
- package/dist/cdn/{J6IBYFB7.js → K6P572FU.js} +2 -2
- package/dist/cdn/{TZ4JYL26.js → K7EO7SCJ.js} +2 -2
- package/dist/cdn/{F3N33DMK.js → K7GBK475.js} +1 -1
- package/dist/cdn/{IXDDY2QM.js → KMFXZ7E6.js} +2 -2
- package/dist/cdn/{LEMWW4ED.js → KQEG2VSM.js} +1 -1
- package/dist/cdn/{WS4XMXPD.js → KRDDFDOO.js} +1 -1
- package/dist/cdn/{M7J53CH4.js → KU4LDDKR.js} +2 -2
- package/dist/cdn/{YKBX525C.js → KVWUHT6P.js} +2 -2
- package/dist/cdn/{OUD44QTO.js → KXZIEXP4.js} +2 -2
- package/dist/cdn/{D7VLL243.js → KYBUZUQT.js} +2 -2
- package/dist/cdn/{EM3ALNIJ.js → LJQD3F2H.js} +2 -2
- package/dist/cdn/{PFGY7OJD.js → LKPIRCG4.js} +1 -1
- package/dist/cdn/{3JTKRUV2.js → LMICKMZD.js} +2 -2
- package/dist/cdn/{KVXQDAG4.js → LOM2QEE7.js} +2 -2
- package/dist/cdn/{DMWBD2QY.js → LPRTYYSR.js} +2 -2
- package/dist/cdn/{QCFLEL57.js → LRRKW6H5.js} +2 -2
- package/dist/cdn/LSUPOGJI.js +18 -0
- package/dist/cdn/{B2WOMW43.js → LT3CRKFO.js} +2 -2
- package/dist/cdn/{WL5TY3AP.js → LVKU6CB5.js} +2 -2
- package/dist/cdn/{3SZISG5C.js → LY574EPN.js} +2 -2
- package/dist/cdn/{G2V4X4JH.js → M5L46EPB.js} +2 -2
- package/dist/cdn/{I6MYM6IJ.js → MBB7JMCL.js} +2 -2
- package/dist/cdn/{WXWPPR6B.js → ME7PTO3E.js} +2 -2
- package/dist/cdn/{WPRUSW2K.js → MHS63FKV.js} +2 -2
- package/dist/cdn/{7JBU7L6F.js → MIECMGBZ.js} +2 -2
- package/dist/cdn/{LSNSP3E4.js → MKN4Z56R.js} +2 -2
- package/dist/cdn/{ZE3EUHXG.js → MOV63G63.js} +2 -2
- package/dist/cdn/{W6PJINLH.js → MUW67XQT.js} +2 -2
- package/dist/cdn/{HWXHOMUP.js → N3SINIML.js} +2 -2
- package/dist/cdn/{ZFAAOHYX.js → NAWETRQ6.js} +2 -2
- package/dist/cdn/{EA2CRCAW.js → NAY26ZKT.js} +2 -2
- package/dist/cdn/{AFTQSX7I.js → NH67I2JP.js} +2 -2
- package/dist/cdn/{I3PEU4E4.js → NHC6L4QY.js} +2 -2
- package/dist/cdn/{C2HOCMY5.js → NK5RFP3X.js} +2 -2
- package/dist/cdn/{XYCXFP2Q.js → NPNHPZAS.js} +2 -2
- package/dist/cdn/{M67UKJWV.js → NTQTWQB6.js} +2 -2
- package/dist/cdn/{D6U22V3H.js → NVZ7ZC4O.js} +2 -2
- package/dist/cdn/{XOT6KGWE.js → O3BS4V4J.js} +2 -2
- package/dist/cdn/O7VEV6AV.js +4 -0
- package/dist/cdn/{5LCZHYVJ.js → O7W4WOJI.js} +2 -2
- package/dist/cdn/{C3V5DJBO.js → OA5YW6CR.js} +2 -2
- package/dist/cdn/{WGNE3DPP.js → OKHNCIUI.js} +2 -2
- package/dist/cdn/{73ILD7CJ.js → OQNBWIYI.js} +1 -1
- package/dist/cdn/{KM5ULZP3.js → ORFF3N7F.js} +2 -2
- package/dist/cdn/{Z56HKANV.js → OUIIIMBH.js} +2 -2
- package/dist/cdn/{RXAFOSW5.js → OYLG7NMH.js} +2 -2
- package/dist/cdn/{6JWFKDA2.js → P5L3Z4MM.js} +2 -2
- package/dist/cdn/{2AZTXL4Y.js → P5M23NUP.js} +2 -2
- package/dist/cdn/{OTUN2NKK.js → P7475IP6.js} +2 -2
- package/dist/cdn/{IW5AHPNH.js → PA4KJ3OT.js} +2 -2
- package/dist/cdn/{FDYQ2FKY.js → PEAGXXX7.js} +1 -1
- package/dist/cdn/{M2ZJDR4T.js → PEDZ3CZE.js} +2 -2
- package/dist/cdn/{HJMB6XLQ.js → PMAYORJM.js} +2 -2
- package/dist/cdn/{CCSUXK4Q.js → PQDXLQR7.js} +2 -2
- package/dist/cdn/{B53MK47Y.js → PRACR4OZ.js} +3 -3
- package/dist/cdn/{DTS4PRW6.js → PS2HCXPC.js} +2 -2
- package/dist/cdn/{T4BKHW4Q.js → PV2QCV7Z.js} +2 -2
- package/dist/cdn/{KHVQFIOO.js → QCJFS667.js} +2 -2
- package/dist/cdn/{LA57LCMB.js → QCXTCMEW.js} +2 -2
- package/dist/cdn/{7KMYAWJ5.js → QEMWXWF7.js} +2 -2
- package/dist/cdn/{X3CQIPF3.js → QEZQG4UJ.js} +2 -2
- package/dist/cdn/{KX5726AR.js → QJV2HXKI.js} +2 -2
- package/dist/cdn/QKCFMI7O.js +4 -0
- package/dist/cdn/{GLDIEU4P.js → QKKOOLCZ.js} +2 -2
- package/dist/cdn/{G7XF4ZJ4.js → QYW7MR6M.js} +2 -2
- package/dist/cdn/{FDRN4UNS.js → RAFE4Y2S.js} +2 -2
- package/dist/cdn/{XY6XTEZB.js → RBXB7VA5.js} +2 -2
- package/dist/cdn/{AHNRTMIR.js → RCYLKWSP.js} +2 -2
- package/dist/cdn/{DMHPJDKF.js → RDHTUBN7.js} +2 -2
- package/dist/cdn/{DPD4MWDN.js → RHCVCLZT.js} +2 -2
- package/dist/cdn/{XBNCRUBM.js → RHFWWEBY.js} +2 -2
- package/dist/cdn/{4KSQVRTW.js → RQLUKQEG.js} +2 -2
- package/dist/cdn/{HYVUWU6M.js → RRTLN7R4.js} +2 -2
- package/dist/cdn/{VX7VTV2U.js → RU6ANVFN.js} +2 -2
- package/dist/cdn/{LQHGJORU.js → RUT6CBUH.js} +1 -1
- package/dist/cdn/{SNAXFCRD.js → RWDN5N2Z.js} +2 -2
- package/dist/cdn/{KLYMYJXG.js → RZDW2F4Y.js} +2 -2
- package/dist/cdn/{A7N6WDBV.js → S44FPEJZ.js} +2 -2
- package/dist/cdn/{5K27OV6X.js → S7ZPZDLD.js} +2 -2
- package/dist/cdn/{PKJNXMVR.js → SCGPU45I.js} +1 -1
- package/dist/cdn/{S6R6G6MM.js → SDDG4ZNW.js} +1 -1
- package/dist/cdn/{3C4ETSRM.js → SF5F7OGC.js} +2 -2
- package/dist/cdn/{2R7AUPQI.js → SIGC4HV4.js} +1 -1
- package/dist/cdn/{NMIFRQTZ.js → SMH6JAXF.js} +2 -2
- package/dist/cdn/{J27HWMOU.js → SQWMQEXG.js} +2 -2
- package/dist/cdn/{SHFBCRKO.js → SSIC74L6.js} +2 -2
- package/dist/cdn/{6ZG44WOK.js → STRDFVCX.js} +2 -2
- package/dist/cdn/{YTTUHU2O.js → SVZ3OKM7.js} +2 -2
- package/dist/cdn/{6PHCJUDM.js → T7FLMBUP.js} +2 -2
- package/dist/cdn/{WPCGB26M.js → TAHGD2O4.js} +2 -2
- package/dist/cdn/{NL5HFA2J.js → TDOB3OYC.js} +2 -2
- package/dist/cdn/{D7VNUZC6.js → TFU6LP44.js} +2 -2
- package/dist/cdn/{SV5GS7VD.js → TIUHRZUS.js} +2 -2
- package/dist/cdn/{Z2XSUUH4.js → TIYTFD5S.js} +2 -2
- package/dist/cdn/{NFAELL2V.js → TJFMZ5AI.js} +2 -2
- package/dist/cdn/TNA4UKTA.js +4 -0
- package/dist/cdn/{VEILQFP2.js → TNLGNDJT.js} +2 -2
- package/dist/cdn/{5GMJ5YD4.js → TQQ5N2OO.js} +2 -2
- package/dist/cdn/TQUCYDON.js +4 -0
- package/dist/cdn/{KUAZYP5Z.js → TTI4XUEY.js} +2 -2
- package/dist/cdn/{4VB4MJKS.js → TTOAZGMT.js} +2 -2
- package/dist/cdn/{3UHWOBFU.js → TU2WGWTD.js} +2 -2
- package/dist/cdn/{BCVMTQ7X.js → TXCGA6H6.js} +2 -2
- package/dist/cdn/TYIKQWD7.js +18 -0
- package/dist/cdn/{5VCN4HJU.js → TYKGZHC7.js} +1 -1
- package/dist/cdn/{WX2Q5L3D.js → TZWUZYFQ.js} +2 -2
- package/dist/cdn/{Z2FUMODE.js → U5C4UNHM.js} +2 -2
- package/dist/cdn/{YRBA2ZGR.js → U6IOPARX.js} +2 -2
- package/dist/cdn/{ET53ODBH.js → UDOBEWPP.js} +2 -2
- package/dist/cdn/{4H5JZV3N.js → UENBDNEI.js} +1 -1
- package/dist/cdn/{YIFZSXOX.js → UEQV47GY.js} +2 -2
- package/dist/cdn/{Z2V2BGBO.js → UFVKB5BE.js} +2 -2
- package/dist/cdn/{X4HZQF3T.js → UHXHSSXB.js} +2 -2
- package/dist/cdn/{AWYWTRXR.js → UK3KUJMQ.js} +1 -1
- package/dist/cdn/{K2RFNUWO.js → UKS25OFJ.js} +2 -2
- package/dist/cdn/{CBW6ZCMO.js → ULCE466Z.js} +2 -2
- package/dist/cdn/{WTEOQ6IU.js → UWWHODFG.js} +2 -2
- package/dist/cdn/{HA4BRCZL.js → UX6HCXQS.js} +2 -2
- package/dist/cdn/{BZ4SCSVK.js → UZDUYYDY.js} +2 -2
- package/dist/cdn/V2SNCDR5.js +18 -0
- package/dist/cdn/{VMS64XK4.js → V2SZ77LE.js} +2 -2
- package/dist/cdn/{DEGZEHFA.js → V7HJUDXK.js} +2 -2
- package/dist/cdn/{IXMHUULQ.js → VJ3OBFSQ.js} +2 -2
- package/dist/cdn/{QTFLAIE5.js → VLKS5OXM.js} +2 -2
- package/dist/cdn/{4EKEBZDH.js → VMCWUHIT.js} +4 -4
- package/dist/cdn/VNWZKWFC.js +4 -0
- package/dist/cdn/{FJUDCABT.js → VRVJCGDV.js} +2 -2
- package/dist/cdn/{6TG2EO2Z.js → VRWUCH5D.js} +2 -2
- package/dist/cdn/VSJVIZGQ.js +63 -0
- package/dist/cdn/{LIXADYN2.js → VV26WPIK.js} +2 -2
- package/dist/cdn/{AMM6V7TB.js → VXLOZPRP.js} +2 -2
- package/dist/cdn/{IQ653RQE.js → VXMBJE2D.js} +2 -2
- package/dist/cdn/{7M2CWJFQ.js → VY3LCIKX.js} +2 -2
- package/dist/cdn/{CHWH5FGQ.js → W3D34FZA.js} +2 -2
- package/dist/cdn/{WEUFVO6F.js → W46D2COK.js} +2 -2
- package/dist/cdn/W5W7JFTZ.js +18 -0
- package/dist/cdn/{EDGKUXXH.js → WAQBAPR3.js} +2 -2
- package/dist/cdn/{UI7FKZHS.js → WD7VSNNZ.js} +1 -1
- package/dist/cdn/{UQHNT6NC.js → WE6HWGXJ.js} +2 -2
- package/dist/cdn/{EL22VV3P.js → WGR5GX2D.js} +2 -2
- package/dist/cdn/{GLAVWPYD.js → WKQ2RBCF.js} +2 -2
- package/dist/cdn/{NUYH6NTK.js → WPXB7ULE.js} +2 -2
- package/dist/cdn/{UHDBPQAZ.js → WU3PDZMB.js} +2 -2
- package/dist/cdn/{CA3G4QAA.js → WV4YBBNZ.js} +2 -2
- package/dist/cdn/{G577XEWY.js → WZB4BJD4.js} +2 -2
- package/dist/cdn/{W7I2RFAY.js → WZBY5ZWL.js} +2 -2
- package/dist/cdn/{NKYODIPR.js → WZHAHR26.js} +2 -2
- package/dist/cdn/{CEDUDGY3.js → X6ZQSZQU.js} +2 -2
- package/dist/cdn/{XHLRAGQ2.js → XEQPE5AQ.js} +2 -2
- package/dist/cdn/{XLNL32C3.js → XHLXBLDD.js} +2 -2
- package/dist/cdn/{IWS4I3HA.js → XJUYCZK6.js} +2 -2
- package/dist/cdn/{7MLWYGOM.js → XNTJWPM3.js} +2 -2
- package/dist/cdn/XUVQ6BRC.js +18 -0
- package/dist/cdn/{Y5GTJ73V.js → XVFKUURP.js} +2 -2
- package/dist/cdn/{2KDPEGNM.js → XYR6PESG.js} +2 -2
- package/dist/cdn/{HGSRS4G7.js → Y3M3ZSYR.js} +2 -2
- package/dist/cdn/{PYISYGHM.js → YBNDRIUZ.js} +2 -2
- package/dist/cdn/{V5XAPNIN.js → YDOFUTBW.js} +2 -2
- package/dist/cdn/{NQHBEVOL.js → YGQM56OM.js} +2 -2
- package/dist/cdn/YKNMVOHO.js +4 -0
- package/dist/cdn/{CKIAT6FZ.js → YQCBAF3G.js} +2 -2
- package/dist/cdn/{RGTERX4S.js → YTT2J3YO.js} +2 -2
- package/dist/cdn/{FGMT2KHY.js → YUHIK6J3.js} +2 -2
- package/dist/cdn/{5IY7QON3.js → Z6WJEJX2.js} +2 -2
- package/dist/cdn/{KIB3SJXC.js → ZCR63VKD.js} +2 -2
- package/dist/cdn/{RBY4RRXS.js → ZKALBQL6.js} +2 -2
- package/dist/cdn/{GZ45JBXT.js → ZMXSR2TT.js} +2 -2
- package/dist/cdn/{LBN2RTAD.js → ZORVIUJJ.js} +2 -2
- package/dist/cdn/{HUP3H66T.js → ZOZBNFAW.js} +2 -2
- package/dist/cdn/{RCFLYQVH.js → ZPUSPQYX.js} +2 -2
- package/dist/cdn/{N4AIZVPV.js → ZQV3UEGN.js} +1 -1
- package/dist/cdn/{EMC4J76D.js → ZVJJI7J2.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/solution-deploying-dialog/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +29 -30
- 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 +6 -6
- package/dist/chunks/interfaces.js +16 -17
- 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 +2 -2
- package/dist/chunks/publicNotificationContext.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- 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 +256 -234
- 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.d.ts +3 -5
- package/dist/components/crowdsource-manager/customElement.js +7 -19
- package/dist/components/crowdsource-reporter/customElement.js +3 -3
- package/dist/components/crowdsource-reporter/index.d.ts +1 -1
- package/dist/components/crowdsource-reporter/index.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.d.ts +2 -6
- package/dist/components/delete-button/customElement.js +3 -3
- 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 +3 -3
- package/dist/components/map-card/customElement.js +2 -2
- 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.d.ts +2 -6
- package/dist/components/map-layer-picker/customElement.js +9 -13
- 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 +1 -1
- package/dist/components/map-tools/customElement.js +56 -57
- 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 +1 -1
- 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 +2 -2
- 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 +26 -26
- package/dist/components/solution-deploying-dialog/customElement.d.ts +2 -0
- package/dist/components/solution-deploying-dialog/customElement.js +94 -18
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- 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 +1 -1
- 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 +15 -15
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +15 -15
- 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 +1 -1
- 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 +31 -46
- package/dist/docs/docs.json +42 -27
- package/dist/docs/vscode.html-custom-data.json +3 -13
- package/dist/docs/web-types.json +22 -26
- package/dist/index.d.ts +15 -1
- package/dist/index.js +35 -36
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +1 -0
- package/dist/types/preact.d.ts +1 -0
- package/dist/types/preact10.d.ts +1 -0
- package/dist/types/react.d.ts +1 -0
- package/dist/types/stencil.d.ts +1 -0
- package/dist/utils/interfaces.d.ts +7 -4
- package/package.json +22 -22
- package/dist/cdn/2U37MMSW.js +0 -18
- package/dist/cdn/3D3RNQXF.js +0 -4
- package/dist/cdn/6JLUJWH6.js +0 -18
- package/dist/cdn/7RFFTMJS.js +0 -4
- package/dist/cdn/7XIYLGPM.js +0 -4
- package/dist/cdn/AA4EWK4C.js +0 -18
- package/dist/cdn/BFY7RHIE.js +0 -18
- package/dist/cdn/DFADPAZK.js +0 -4
- package/dist/cdn/NHSZXNZV.js +0 -18
- package/dist/cdn/OX3SGCCQ.js +0 -18
- package/dist/cdn/R4NHUKQL.js +0 -18
- package/dist/cdn/RCKQ7IME.js +0 -18
- package/dist/cdn/SCSYXJ7N.js +0 -18
- package/dist/cdn/SWAZYX4I.js +0 -63
- package/dist/cdn/USDRTL75.js +0 -4
- package/dist/cdn/UV3OCW2R.js +0 -4
- package/dist/cdn/VC3ONQSP.js +0 -4
- package/dist/cdn/XBVQ745C.js +0 -18
- package/dist/cdn/YFSAZFMI.js +0 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as ve } from "../../chunks/runtime.js";
|
|
2
2
|
import { ref as se } from "lit/directives/ref.js";
|
|
3
|
-
import { u as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { css as
|
|
6
|
-
import { unsafeHTML as
|
|
3
|
+
import { u as ye } from "../../chunks/useT9n.js";
|
|
4
|
+
import { LitElement as Se, createEvent as $e, nothing as O, safeClassMap as _e } from "@arcgis/lumina";
|
|
5
|
+
import { css as Re, html as m } from "lit";
|
|
6
|
+
import { unsafeHTML as Te } from "lit/directives/unsafe-html.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
9
|
-
v1.2.0-next.
|
|
10
|
-
const
|
|
9
|
+
v1.2.0-next.22 */
|
|
10
|
+
const Ie = Re`: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}`;
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2025 Esri
|
|
@@ -24,12 +24,12 @@ const Te = _e`:host{display:block;height:100%}.display-flex-row{display:flex;fle
|
|
|
24
24
|
* See the License for the specific language governing permissions and
|
|
25
25
|
* limitations under the License.
|
|
26
26
|
*/
|
|
27
|
-
const
|
|
28
|
-
async function Ae(n) {
|
|
29
|
-
return await ze(n);
|
|
30
|
-
}
|
|
27
|
+
const Ae = "https://www.arcgis.com/sharing/rest/content/items/";
|
|
31
28
|
async function ze(n) {
|
|
32
|
-
|
|
29
|
+
return await Ce(n);
|
|
30
|
+
}
|
|
31
|
+
async function Ce(n) {
|
|
32
|
+
const e = Ae + n + "?f=json";
|
|
33
33
|
try {
|
|
34
34
|
const s = await fetch(
|
|
35
35
|
e,
|
|
@@ -42,12 +42,12 @@ async function ze(n) {
|
|
|
42
42
|
return { error: s.message };
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function F() {
|
|
46
46
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
47
47
|
}
|
|
48
|
-
var
|
|
49
|
-
function
|
|
50
|
-
|
|
48
|
+
var $ = F();
|
|
49
|
+
function ce(n) {
|
|
50
|
+
$ = n;
|
|
51
51
|
}
|
|
52
52
|
var A = { exec: () => null };
|
|
53
53
|
function u(n, e = "") {
|
|
@@ -57,15 +57,21 @@ function u(n, e = "") {
|
|
|
57
57
|
}, getRegex: () => new RegExp(s, e) };
|
|
58
58
|
return r;
|
|
59
59
|
}
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
var qe = (() => {
|
|
61
|
+
try {
|
|
62
|
+
return !!new RegExp("(?<=1)(?<!1)");
|
|
63
|
+
} catch {
|
|
64
|
+
return !1;
|
|
65
|
+
}
|
|
66
|
+
})(), 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") }, Le = /^(?:[ \t]*(?:\n|$))+/, Ee = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Me = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, z = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Pe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, U = /(?:[*+-]|\d{1,9}[.)])/, he = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ue = u(he).replace(/bull/g, U).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(), Be = u(he).replace(/bull/g, U).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(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Qe = /^[^\n]+/, H = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Oe = u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", H).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ze = u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, U).getRegex(), M = "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", G = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, De = u("^ {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", G).replace("tag", M).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), pe = u(j).replace("hr", z).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", M).getRegex(), Ne = u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pe).getRegex(), K = { blockquote: Ne, code: Ee, def: Oe, fences: Me, heading: Pe, hr: z, html: De, lheading: ue, list: Ze, newline: Le, paragraph: pe, table: A, text: Qe }, ne = u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", z).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", M).getRegex(), Fe = { ...K, lheading: Be, table: ne, paragraph: u(j).replace("hr", z).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ne).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", M).getRegex() }, Ue = { ...K, html: u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", G).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: A, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: u(j).replace("hr", z).replace("heading", ` *#{1,6} *[^
|
|
67
|
+
]`).replace("lheading", ue).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, je = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, He = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, de = /^( {2,}|\\)\n(?!\s*$)/, Ge = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, P = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ge = /[^\s\p{P}\p{S}]/u, Ke = u(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), fe = /(?!~)[\p{P}\p{S}]/u, We = /(?!~)[\s\p{P}\p{S}]/u, Xe = /(?:[^\s\p{P}\p{S}]|~)/u, Je = u(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", qe ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ke = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ve = u(ke, "u").replace(/punct/g, P).getRegex(), Ye = u(ke, "u").replace(/punct/g, fe).getRegex(), me = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", et = u(me, "gu").replace(/notPunctSpace/g, ge).replace(/punctSpace/g, W).replace(/punct/g, P).getRegex(), tt = u(me, "gu").replace(/notPunctSpace/g, Xe).replace(/punctSpace/g, We).replace(/punct/g, fe).getRegex(), st = u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ge).replace(/punctSpace/g, W).replace(/punct/g, P).getRegex(), nt = u(/\\(punct)/, "gu").replace(/punct/g, P).getRegex(), rt = u(/^<(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(), it = u(G).replace("(?:-->|$)", "-->").getRegex(), at = u("^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", it).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, lt = u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), xe = u(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", H).getRegex(), be = u(/^!?\[(ref)\](?:\[\])?/).replace("ref", H).getRegex(), ot = u("reflink|nolink(?!\\()", "g").replace("reflink", xe).replace("nolink", be).getRegex(), re = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: A, anyPunctuation: nt, autolink: rt, blockSkip: Je, br: de, code: He, del: A, emStrongLDelim: Ve, emStrongRDelimAst: et, emStrongRDelimUnd: st, escape: je, link: lt, nolink: be, punctuation: Ke, reflink: xe, reflinkSearch: ot, tag: at, text: Ge, url: A }, ct = { ...X, link: u(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, Z = { ...X, emStrongRDelimAst: tt, emStrongLDelim: Ye, url: u(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", re).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: u(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", re).getRegex() }, ht = { ...Z, br: u(de).replace("{2,}", "*").getRegex(), text: u(Z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K, gfm: Fe, pedantic: Ue }, R = { normal: X, gfm: Z, breaks: ht, pedantic: ct }, ut = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ie = (n) => ut[n];
|
|
68
|
+
function y(n, e) {
|
|
63
69
|
if (e) {
|
|
64
|
-
if (x.escapeTest.test(n)) return n.replace(x.escapeReplace,
|
|
65
|
-
} else if (x.escapeTestNoEncode.test(n)) return n.replace(x.escapeReplaceNoEncode,
|
|
70
|
+
if (x.escapeTest.test(n)) return n.replace(x.escapeReplace, ie);
|
|
71
|
+
} else if (x.escapeTestNoEncode.test(n)) return n.replace(x.escapeReplaceNoEncode, ie);
|
|
66
72
|
return n;
|
|
67
73
|
}
|
|
68
|
-
function
|
|
74
|
+
function ae(n) {
|
|
69
75
|
try {
|
|
70
76
|
n = encodeURI(n).replace(x.percentDecode, "%");
|
|
71
77
|
} catch {
|
|
@@ -73,11 +79,11 @@ function ie(n) {
|
|
|
73
79
|
}
|
|
74
80
|
return n;
|
|
75
81
|
}
|
|
76
|
-
function
|
|
77
|
-
let s = n.replace(x.findPipe, (a, i,
|
|
78
|
-
let
|
|
79
|
-
for (; --
|
|
80
|
-
return
|
|
82
|
+
function le(n, e) {
|
|
83
|
+
let s = n.replace(x.findPipe, (a, i, o) => {
|
|
84
|
+
let l = !1, h = i;
|
|
85
|
+
for (; --h >= 0 && o[h] === "\\"; ) l = !l;
|
|
86
|
+
return l ? "|" : " |";
|
|
81
87
|
}), r = s.split(x.splitPipe), t = 0;
|
|
82
88
|
if (r[0].trim() || r.shift(), r.length > 0 && !r.at(-1)?.trim() && r.pop(), e) if (r.length > e) r.splice(e);
|
|
83
89
|
else for (; r.length < e; ) r.push("");
|
|
@@ -92,7 +98,7 @@ function T(n, e, s) {
|
|
|
92
98
|
t++;
|
|
93
99
|
return n.slice(0, r - t);
|
|
94
100
|
}
|
|
95
|
-
function
|
|
101
|
+
function pt(n, e) {
|
|
96
102
|
if (n.indexOf(e[1]) === -1) return -1;
|
|
97
103
|
let s = 0;
|
|
98
104
|
for (let r = 0; r < n.length; r++) if (n[r] === "\\") r++;
|
|
@@ -100,13 +106,13 @@ function ht(n, e) {
|
|
|
100
106
|
else if (n[r] === e[1] && (s--, s < 0)) return r;
|
|
101
107
|
return s > 0 ? -2 : -1;
|
|
102
108
|
}
|
|
103
|
-
function
|
|
104
|
-
let a = e.href, i = e.title || null,
|
|
109
|
+
function oe(n, e, s, r, t) {
|
|
110
|
+
let a = e.href, i = e.title || null, o = n[1].replace(t.other.outputLinkReplace, "$1");
|
|
105
111
|
r.state.inLink = !0;
|
|
106
|
-
let
|
|
107
|
-
return r.state.inLink = !1,
|
|
112
|
+
let l = { type: n[0].charAt(0) === "!" ? "image" : "link", raw: s, href: a, title: i, text: o, tokens: r.inlineTokens(o) };
|
|
113
|
+
return r.state.inLink = !1, l;
|
|
108
114
|
}
|
|
109
|
-
function
|
|
115
|
+
function dt(n, e, s) {
|
|
110
116
|
let r = n.match(s.other.indentCodeCompensation);
|
|
111
117
|
if (r === null) return e;
|
|
112
118
|
let t = r[1];
|
|
@@ -114,8 +120,8 @@ function ut(n, e, s) {
|
|
|
114
120
|
`).map((a) => {
|
|
115
121
|
let i = a.match(s.other.beginningSpace);
|
|
116
122
|
if (i === null) return a;
|
|
117
|
-
let [
|
|
118
|
-
return
|
|
123
|
+
let [o] = i;
|
|
124
|
+
return o.length >= t.length ? a.slice(t.length) : a;
|
|
119
125
|
}).join(`
|
|
120
126
|
`);
|
|
121
127
|
}
|
|
@@ -124,7 +130,7 @@ var L = class {
|
|
|
124
130
|
rules;
|
|
125
131
|
lexer;
|
|
126
132
|
constructor(n) {
|
|
127
|
-
this.options = n ||
|
|
133
|
+
this.options = n || $;
|
|
128
134
|
}
|
|
129
135
|
space(n) {
|
|
130
136
|
let e = this.rules.block.newline.exec(n);
|
|
@@ -141,7 +147,7 @@ var L = class {
|
|
|
141
147
|
fences(n) {
|
|
142
148
|
let e = this.rules.block.fences.exec(n);
|
|
143
149
|
if (e) {
|
|
144
|
-
let s = e[0], r =
|
|
150
|
+
let s = e[0], r = dt(s, e[3] || "", this.rules);
|
|
145
151
|
return { type: "code", raw: s, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: r };
|
|
146
152
|
}
|
|
147
153
|
}
|
|
@@ -168,32 +174,32 @@ var L = class {
|
|
|
168
174
|
`).split(`
|
|
169
175
|
`), r = "", t = "", a = [];
|
|
170
176
|
for (; s.length > 0; ) {
|
|
171
|
-
let i = !1,
|
|
172
|
-
for (
|
|
173
|
-
else if (!i)
|
|
177
|
+
let i = !1, o = [], l;
|
|
178
|
+
for (l = 0; l < s.length; l++) if (this.rules.other.blockquoteStart.test(s[l])) o.push(s[l]), i = !0;
|
|
179
|
+
else if (!i) o.push(s[l]);
|
|
174
180
|
else break;
|
|
175
|
-
s = s.slice(
|
|
176
|
-
let
|
|
177
|
-
`),
|
|
181
|
+
s = s.slice(l);
|
|
182
|
+
let h = o.join(`
|
|
183
|
+
`), c = h.replace(this.rules.other.blockquoteSetextReplace, `
|
|
178
184
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
179
185
|
r = r ? `${r}
|
|
180
|
-
${
|
|
181
|
-
${
|
|
186
|
+
${h}` : h, t = t ? `${t}
|
|
187
|
+
${c}` : c;
|
|
182
188
|
let g = this.lexer.state.top;
|
|
183
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(
|
|
184
|
-
let
|
|
185
|
-
if (
|
|
186
|
-
if (
|
|
187
|
-
let
|
|
189
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, a, !0), this.lexer.state.top = g, s.length === 0) break;
|
|
190
|
+
let p = a.at(-1);
|
|
191
|
+
if (p?.type === "code") break;
|
|
192
|
+
if (p?.type === "blockquote") {
|
|
193
|
+
let k = p, f = k.raw + `
|
|
188
194
|
` + s.join(`
|
|
189
195
|
`), b = this.blockquote(f);
|
|
190
|
-
a[a.length - 1] = b, r = r.substring(0, r.length -
|
|
196
|
+
a[a.length - 1] = b, r = r.substring(0, r.length - k.raw.length) + b.raw, t = t.substring(0, t.length - k.text.length) + b.text;
|
|
191
197
|
break;
|
|
192
|
-
} else if (
|
|
193
|
-
let
|
|
198
|
+
} else if (p?.type === "list") {
|
|
199
|
+
let k = p, f = k.raw + `
|
|
194
200
|
` + s.join(`
|
|
195
201
|
`), b = this.list(f);
|
|
196
|
-
a[a.length - 1] = b, r = r.substring(0, r.length -
|
|
202
|
+
a[a.length - 1] = b, r = r.substring(0, r.length - p.raw.length) + b.raw, t = t.substring(0, t.length - k.raw.length) + b.raw, s = f.substring(a.at(-1).raw.length).split(`
|
|
197
203
|
`);
|
|
198
204
|
continue;
|
|
199
205
|
}
|
|
@@ -208,43 +214,43 @@ ${h}` : h;
|
|
|
208
214
|
s = r ? `\\d{1,9}\\${s.slice(-1)}` : `\\${s}`, this.options.pedantic && (s = r ? s : "[*+-]");
|
|
209
215
|
let a = this.rules.other.listItemRegex(s), i = !1;
|
|
210
216
|
for (; n; ) {
|
|
211
|
-
let
|
|
217
|
+
let l = !1, h = "", c = "";
|
|
212
218
|
if (!(e = a.exec(n)) || this.rules.block.hr.test(n)) break;
|
|
213
|
-
|
|
219
|
+
h = e[0], n = n.substring(h.length);
|
|
214
220
|
let g = e[2].split(`
|
|
215
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (B) => " ".repeat(3 * B.length)),
|
|
216
|
-
`, 1)[0],
|
|
217
|
-
if (this.options.pedantic ? (f = 2,
|
|
218
|
-
`, n = n.substring(
|
|
219
|
-
let B = this.rules.other.nextBulletRegex(f), Y = this.rules.other.hrRegex(f), ee = this.rules.other.fencesBeginRegex(f), te = this.rules.other.headingBeginRegex(f),
|
|
221
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (B) => " ".repeat(3 * B.length)), p = n.split(`
|
|
222
|
+
`, 1)[0], k = !g.trim(), f = 0;
|
|
223
|
+
if (this.options.pedantic ? (f = 2, c = g.trimStart()) : k ? f = e[1].length + 1 : (f = e[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = g.slice(f), f += e[1].length), k && this.rules.other.blankLine.test(p) && (h += p + `
|
|
224
|
+
`, n = n.substring(p.length + 1), l = !0), !l) {
|
|
225
|
+
let B = this.rules.other.nextBulletRegex(f), Y = this.rules.other.hrRegex(f), ee = this.rules.other.fencesBeginRegex(f), te = this.rules.other.headingBeginRegex(f), we = this.rules.other.htmlBeginRegex(f);
|
|
220
226
|
for (; n; ) {
|
|
221
227
|
let Q = n.split(`
|
|
222
228
|
`, 1)[0], _;
|
|
223
|
-
if (
|
|
224
|
-
if (_.search(this.rules.other.nonSpaceChar) >= f || !
|
|
229
|
+
if (p = Q, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), _ = p) : _ = p.replace(this.rules.other.tabCharGlobal, " "), ee.test(p) || te.test(p) || we.test(p) || B.test(p) || Y.test(p)) break;
|
|
230
|
+
if (_.search(this.rules.other.nonSpaceChar) >= f || !p.trim()) c += `
|
|
225
231
|
` + _.slice(f);
|
|
226
232
|
else {
|
|
227
|
-
if (
|
|
228
|
-
|
|
229
|
-
` +
|
|
233
|
+
if (k || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ee.test(g) || te.test(g) || Y.test(g)) break;
|
|
234
|
+
c += `
|
|
235
|
+
` + p;
|
|
230
236
|
}
|
|
231
|
-
!
|
|
237
|
+
!k && !p.trim() && (k = !0), h += Q + `
|
|
232
238
|
`, n = n.substring(Q.length + 1), g = _.slice(f);
|
|
233
239
|
}
|
|
234
240
|
}
|
|
235
|
-
t.loose || (i ? t.loose = !0 : this.rules.other.doubleBlankLine.test(
|
|
241
|
+
t.loose || (i ? t.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (i = !0));
|
|
236
242
|
let b = null, V;
|
|
237
|
-
this.options.gfm && (b = this.rules.other.listIsTask.exec(
|
|
243
|
+
this.options.gfm && (b = this.rules.other.listIsTask.exec(c), b && (V = b[0] !== "[ ] ", c = c.replace(this.rules.other.listReplaceTask, ""))), t.items.push({ type: "list_item", raw: h, task: !!b, checked: V, loose: !1, text: c, tokens: [] }), t.raw += h;
|
|
238
244
|
}
|
|
239
|
-
let
|
|
240
|
-
if (
|
|
245
|
+
let o = t.items.at(-1);
|
|
246
|
+
if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
|
|
241
247
|
else return;
|
|
242
248
|
t.raw = t.raw.trimEnd();
|
|
243
|
-
for (let
|
|
244
|
-
let
|
|
245
|
-
t.loose =
|
|
249
|
+
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) {
|
|
250
|
+
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));
|
|
251
|
+
t.loose = c;
|
|
246
252
|
}
|
|
247
|
-
if (t.loose) for (let
|
|
253
|
+
if (t.loose) for (let l = 0; l < t.items.length; l++) t.items[l].loose = !0;
|
|
248
254
|
return t;
|
|
249
255
|
}
|
|
250
256
|
}
|
|
@@ -262,12 +268,12 @@ ${h}` : h;
|
|
|
262
268
|
table(n) {
|
|
263
269
|
let e = this.rules.block.table.exec(n);
|
|
264
270
|
if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
|
|
265
|
-
let s =
|
|
271
|
+
let s = le(e[1]), r = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), t = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
266
272
|
`) : [], a = { type: "table", raw: e[0], header: [], align: [], rows: [] };
|
|
267
273
|
if (s.length === r.length) {
|
|
268
274
|
for (let i of r) this.rules.other.tableAlignRight.test(i) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(i) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(i) ? a.align.push("left") : a.align.push(null);
|
|
269
275
|
for (let i = 0; i < s.length; i++) a.header.push({ text: s[i], tokens: this.lexer.inline(s[i]), header: !0, align: a.align[i] });
|
|
270
|
-
for (let i of t) a.rows.push(
|
|
276
|
+
for (let i of t) a.rows.push(le(i, a.header.length).map((o, l) => ({ text: o, tokens: this.lexer.inline(o), header: !1, align: a.align[l] })));
|
|
271
277
|
return a;
|
|
272
278
|
}
|
|
273
279
|
}
|
|
@@ -304,7 +310,7 @@ ${h}` : h;
|
|
|
304
310
|
let a = T(s.slice(0, -1), "\\");
|
|
305
311
|
if ((s.length - a.length) % 2 === 0) return;
|
|
306
312
|
} else {
|
|
307
|
-
let a =
|
|
313
|
+
let a = pt(e[2], "()");
|
|
308
314
|
if (a === -2) return;
|
|
309
315
|
if (a > -1) {
|
|
310
316
|
let i = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + a;
|
|
@@ -316,7 +322,7 @@ ${h}` : h;
|
|
|
316
322
|
let a = this.rules.other.pedanticHrefTitle.exec(r);
|
|
317
323
|
a && (r = a[1], t = a[3]);
|
|
318
324
|
} else t = e[3] ? e[3].slice(1, -1) : "";
|
|
319
|
-
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(s) ? r = r.slice(1) : r = r.slice(1, -1)),
|
|
325
|
+
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(s) ? r = r.slice(1) : r = r.slice(1, -1)), oe(e, { href: r && r.replace(this.rules.inline.anyPunctuation, "$1"), title: t && t.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
|
|
320
326
|
}
|
|
321
327
|
}
|
|
322
328
|
reflink(n, e) {
|
|
@@ -327,31 +333,31 @@ ${h}` : h;
|
|
|
327
333
|
let a = s[0].charAt(0);
|
|
328
334
|
return { type: "text", raw: a, text: a };
|
|
329
335
|
}
|
|
330
|
-
return
|
|
336
|
+
return oe(s, t, s[0], this.lexer, this.rules);
|
|
331
337
|
}
|
|
332
338
|
}
|
|
333
339
|
emStrong(n, e, s = "") {
|
|
334
340
|
let r = this.rules.inline.emStrongLDelim.exec(n);
|
|
335
341
|
if (!(!r || r[3] && s.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[2]) || !s || this.rules.inline.punctuation.exec(s))) {
|
|
336
|
-
let t = [...r[0]].length - 1, a, i,
|
|
337
|
-
for (
|
|
342
|
+
let t = [...r[0]].length - 1, a, i, o = t, l = 0, h = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
343
|
+
for (h.lastIndex = 0, e = e.slice(-1 * n.length + t); (r = h.exec(e)) != null; ) {
|
|
338
344
|
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a) continue;
|
|
339
345
|
if (i = [...a].length, r[3] || r[4]) {
|
|
340
|
-
|
|
346
|
+
o += i;
|
|
341
347
|
continue;
|
|
342
348
|
} else if ((r[5] || r[6]) && t % 3 && !((t + i) % 3)) {
|
|
343
|
-
|
|
349
|
+
l += i;
|
|
344
350
|
continue;
|
|
345
351
|
}
|
|
346
|
-
if (
|
|
347
|
-
i = Math.min(i, i +
|
|
348
|
-
let
|
|
352
|
+
if (o -= i, o > 0) continue;
|
|
353
|
+
i = Math.min(i, i + o + l);
|
|
354
|
+
let c = [...r[0]][0].length, g = n.slice(0, t + r.index + c + i);
|
|
349
355
|
if (Math.min(t, i) % 2) {
|
|
350
|
-
let
|
|
351
|
-
return { type: "em", raw: g, text:
|
|
356
|
+
let k = g.slice(1, -1);
|
|
357
|
+
return { type: "em", raw: g, text: k, tokens: this.lexer.inlineTokens(k) };
|
|
352
358
|
}
|
|
353
|
-
let
|
|
354
|
-
return { type: "strong", raw: g, text:
|
|
359
|
+
let p = g.slice(2, -2);
|
|
360
|
+
return { type: "strong", raw: g, text: p, tokens: this.lexer.inlineTokens(p) };
|
|
355
361
|
}
|
|
356
362
|
}
|
|
357
363
|
}
|
|
@@ -399,14 +405,14 @@ ${h}` : h;
|
|
|
399
405
|
return { type: "text", raw: e[0], text: e[0], escaped: s };
|
|
400
406
|
}
|
|
401
407
|
}
|
|
402
|
-
},
|
|
408
|
+
}, w = class D {
|
|
403
409
|
tokens;
|
|
404
410
|
options;
|
|
405
411
|
state;
|
|
406
412
|
tokenizer;
|
|
407
413
|
inlineQueue;
|
|
408
414
|
constructor(e) {
|
|
409
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
415
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || $, this.options.tokenizer = this.options.tokenizer || new L(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
410
416
|
let s = { other: x, block: C.normal, inline: R.normal };
|
|
411
417
|
this.options.pedantic ? (s.block = C.pedantic, s.inline = R.pedantic) : this.options.gfm && (s.block = C.gfm, this.options.breaks ? s.inline = R.breaks : s.inline = R.gfm), this.tokenizer.rules = s;
|
|
412
418
|
}
|
|
@@ -491,9 +497,9 @@ ${h}` : h;
|
|
|
491
497
|
}
|
|
492
498
|
let a = e;
|
|
493
499
|
if (this.options.extensions?.startBlock) {
|
|
494
|
-
let i = 1 / 0,
|
|
495
|
-
this.options.extensions.startBlock.forEach((
|
|
496
|
-
|
|
500
|
+
let i = 1 / 0, o = e.slice(1), l;
|
|
501
|
+
this.options.extensions.startBlock.forEach((h) => {
|
|
502
|
+
l = h.call({ lexer: this }, o), typeof l == "number" && l >= 0 && (i = Math.min(i, l));
|
|
497
503
|
}), i < 1 / 0 && i >= 0 && (a = e.substring(0, i + 1));
|
|
498
504
|
}
|
|
499
505
|
if (this.state.top && (t = this.tokenizer.paragraph(a))) {
|
|
@@ -533,11 +539,12 @@ ${h}` : h;
|
|
|
533
539
|
if (l.length > 0) for (; (t = this.tokenizer.rules.inline.reflinkSearch.exec(r)) != null; ) l.includes(t[0].slice(t[0].lastIndexOf("[") + 1, -1)) && (r = r.slice(0, t.index) + "[" + "a".repeat(t[0].length - 2) + "]" + r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
534
540
|
}
|
|
535
541
|
for (; (t = this.tokenizer.rules.inline.anyPunctuation.exec(r)) != null; ) r = r.slice(0, t.index) + "++" + r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
536
|
-
|
|
542
|
+
let a;
|
|
543
|
+
for (; (t = this.tokenizer.rules.inline.blockSkip.exec(r)) != null; ) a = t[2] ? t[2].length : 0, r = r.slice(0, t.index + a) + "[" + "a".repeat(t[0].length - a - 2) + "]" + r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
537
544
|
r = this.options.hooks?.emStrongMask?.call({ lexer: this }, r) ?? r;
|
|
538
|
-
let
|
|
545
|
+
let i = !1, o = "";
|
|
539
546
|
for (; e; ) {
|
|
540
|
-
|
|
547
|
+
i || (o = ""), i = !1;
|
|
541
548
|
let l;
|
|
542
549
|
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;
|
|
543
550
|
if (l = this.tokenizer.escape(e)) {
|
|
@@ -558,7 +565,7 @@ ${h}` : h;
|
|
|
558
565
|
l.type === "text" && c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : s.push(l);
|
|
559
566
|
continue;
|
|
560
567
|
}
|
|
561
|
-
if (l = this.tokenizer.emStrong(e, r,
|
|
568
|
+
if (l = this.tokenizer.emStrong(e, r, o)) {
|
|
562
569
|
e = e.substring(l.raw.length), s.push(l);
|
|
563
570
|
continue;
|
|
564
571
|
}
|
|
@@ -582,15 +589,15 @@ ${h}` : h;
|
|
|
582
589
|
e = e.substring(l.raw.length), s.push(l);
|
|
583
590
|
continue;
|
|
584
591
|
}
|
|
585
|
-
let
|
|
592
|
+
let h = e;
|
|
586
593
|
if (this.options.extensions?.startInline) {
|
|
587
|
-
let c = 1 / 0,
|
|
588
|
-
this.options.extensions.startInline.forEach((
|
|
589
|
-
|
|
590
|
-
}), c < 1 / 0 && c >= 0 && (
|
|
594
|
+
let c = 1 / 0, g = e.slice(1), p;
|
|
595
|
+
this.options.extensions.startInline.forEach((k) => {
|
|
596
|
+
p = k.call({ lexer: this }, g), typeof p == "number" && p >= 0 && (c = Math.min(c, p));
|
|
597
|
+
}), c < 1 / 0 && c >= 0 && (h = e.substring(0, c + 1));
|
|
591
598
|
}
|
|
592
|
-
if (l = this.tokenizer.inlineText(
|
|
593
|
-
e = e.substring(l.raw.length), l.raw.slice(-1) !== "_" && (
|
|
599
|
+
if (l = this.tokenizer.inlineText(h)) {
|
|
600
|
+
e = e.substring(l.raw.length), l.raw.slice(-1) !== "_" && (o = l.raw.slice(-1)), i = !0;
|
|
594
601
|
let c = s.at(-1);
|
|
595
602
|
c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : s.push(l);
|
|
596
603
|
continue;
|
|
@@ -609,7 +616,7 @@ ${h}` : h;
|
|
|
609
616
|
options;
|
|
610
617
|
parser;
|
|
611
618
|
constructor(n) {
|
|
612
|
-
this.options = n ||
|
|
619
|
+
this.options = n || $;
|
|
613
620
|
}
|
|
614
621
|
space(n) {
|
|
615
622
|
return "";
|
|
@@ -617,8 +624,8 @@ ${h}` : h;
|
|
|
617
624
|
code({ text: n, lang: e, escaped: s }) {
|
|
618
625
|
let r = (e || "").match(x.notSpaceStart)?.[0], t = n.replace(x.endingNewline, "") + `
|
|
619
626
|
`;
|
|
620
|
-
return r ? '<pre><code class="language-' +
|
|
621
|
-
` : "<pre><code>" + (s ? t :
|
|
627
|
+
return r ? '<pre><code class="language-' + y(r) + '">' + (s ? t : y(t, !0)) + `</code></pre>
|
|
628
|
+
` : "<pre><code>" + (s ? t : y(t, !0)) + `</code></pre>
|
|
622
629
|
`;
|
|
623
630
|
}
|
|
624
631
|
blockquote({ tokens: n }) {
|
|
@@ -643,8 +650,8 @@ ${this.parser.parse(n)}</blockquote>
|
|
|
643
650
|
list(n) {
|
|
644
651
|
let e = n.ordered, s = n.start, r = "";
|
|
645
652
|
for (let i = 0; i < n.items.length; i++) {
|
|
646
|
-
let
|
|
647
|
-
r += this.listitem(
|
|
653
|
+
let o = n.items[i];
|
|
654
|
+
r += this.listitem(o);
|
|
648
655
|
}
|
|
649
656
|
let t = e ? "ol" : "ul", a = e && s !== 1 ? ' start="' + s + '"' : "";
|
|
650
657
|
return "<" + t + a + `>
|
|
@@ -655,7 +662,7 @@ ${this.parser.parse(n)}</blockquote>
|
|
|
655
662
|
let e = "";
|
|
656
663
|
if (n.task) {
|
|
657
664
|
let s = this.checkbox({ checked: !!n.checked });
|
|
658
|
-
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 + " " +
|
|
665
|
+
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 + " ";
|
|
659
666
|
}
|
|
660
667
|
return e += this.parser.parse(n.tokens, !!n.loose), `<li>${e}</li>
|
|
661
668
|
`;
|
|
@@ -701,7 +708,7 @@ ${n}</tr>
|
|
|
701
708
|
return `<em>${this.parser.parseInline(n)}</em>`;
|
|
702
709
|
}
|
|
703
710
|
codespan({ text: n }) {
|
|
704
|
-
return `<code>${
|
|
711
|
+
return `<code>${y(n, !0)}</code>`;
|
|
705
712
|
}
|
|
706
713
|
br(n) {
|
|
707
714
|
return "<br>";
|
|
@@ -710,22 +717,22 @@ ${n}</tr>
|
|
|
710
717
|
return `<del>${this.parser.parseInline(n)}</del>`;
|
|
711
718
|
}
|
|
712
719
|
link({ href: n, title: e, tokens: s }) {
|
|
713
|
-
let r = this.parser.parseInline(s), t =
|
|
720
|
+
let r = this.parser.parseInline(s), t = ae(n);
|
|
714
721
|
if (t === null) return r;
|
|
715
722
|
n = t;
|
|
716
723
|
let a = '<a href="' + n + '"';
|
|
717
|
-
return e && (a += ' title="' +
|
|
724
|
+
return e && (a += ' title="' + y(e) + '"'), a += ">" + r + "</a>", a;
|
|
718
725
|
}
|
|
719
726
|
image({ href: n, title: e, text: s, tokens: r }) {
|
|
720
727
|
r && (s = this.parser.parseInline(r, this.parser.textRenderer));
|
|
721
|
-
let t =
|
|
722
|
-
if (t === null) return
|
|
728
|
+
let t = ae(n);
|
|
729
|
+
if (t === null) return y(s);
|
|
723
730
|
n = t;
|
|
724
731
|
let a = `<img src="${n}" alt="${s}"`;
|
|
725
|
-
return e && (a += ` title="${
|
|
732
|
+
return e && (a += ` title="${y(e)}"`), a += ">", a;
|
|
726
733
|
}
|
|
727
734
|
text(n) {
|
|
728
|
-
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text :
|
|
735
|
+
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : y(n.text);
|
|
729
736
|
}
|
|
730
737
|
}, J = class {
|
|
731
738
|
strong({ text: n }) {
|
|
@@ -755,12 +762,12 @@ ${n}</tr>
|
|
|
755
762
|
br() {
|
|
756
763
|
return "";
|
|
757
764
|
}
|
|
758
|
-
},
|
|
765
|
+
}, v = class N {
|
|
759
766
|
options;
|
|
760
767
|
renderer;
|
|
761
768
|
textRenderer;
|
|
762
769
|
constructor(e) {
|
|
763
|
-
this.options = e ||
|
|
770
|
+
this.options = e || $, this.options.renderer = this.options.renderer || new E(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new J();
|
|
764
771
|
}
|
|
765
772
|
static parse(e, s) {
|
|
766
773
|
return new N(s).parse(e);
|
|
@@ -773,9 +780,9 @@ ${n}</tr>
|
|
|
773
780
|
for (let t = 0; t < e.length; t++) {
|
|
774
781
|
let a = e[t];
|
|
775
782
|
if (this.options.extensions?.renderers?.[a.type]) {
|
|
776
|
-
let
|
|
777
|
-
if (
|
|
778
|
-
r +=
|
|
783
|
+
let o = a, l = this.options.extensions.renderers[o.type].call({ parser: this }, o);
|
|
784
|
+
if (l !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(o.type)) {
|
|
785
|
+
r += l || "";
|
|
779
786
|
continue;
|
|
780
787
|
}
|
|
781
788
|
}
|
|
@@ -822,16 +829,16 @@ ${n}</tr>
|
|
|
822
829
|
continue;
|
|
823
830
|
}
|
|
824
831
|
case "text": {
|
|
825
|
-
let
|
|
826
|
-
for (; t + 1 < e.length && e[t + 1].type === "text"; )
|
|
827
|
-
` + this.renderer.text(
|
|
828
|
-
s ? r += this.renderer.paragraph({ type: "paragraph", raw:
|
|
832
|
+
let o = i, l = this.renderer.text(o);
|
|
833
|
+
for (; t + 1 < e.length && e[t + 1].type === "text"; ) o = e[++t], l += `
|
|
834
|
+
` + this.renderer.text(o);
|
|
835
|
+
s ? r += this.renderer.paragraph({ type: "paragraph", raw: l, text: l, tokens: [{ type: "text", raw: l, text: l, escaped: !0 }] }) : r += l;
|
|
829
836
|
continue;
|
|
830
837
|
}
|
|
831
838
|
default: {
|
|
832
|
-
let
|
|
833
|
-
if (this.options.silent) return console.error(
|
|
834
|
-
throw new Error(
|
|
839
|
+
let o = 'Token with "' + i.type + '" type was not found.';
|
|
840
|
+
if (this.options.silent) return console.error(o), "";
|
|
841
|
+
throw new Error(o);
|
|
835
842
|
}
|
|
836
843
|
}
|
|
837
844
|
}
|
|
@@ -842,9 +849,9 @@ ${n}</tr>
|
|
|
842
849
|
for (let t = 0; t < e.length; t++) {
|
|
843
850
|
let a = e[t];
|
|
844
851
|
if (this.options.extensions?.renderers?.[a.type]) {
|
|
845
|
-
let
|
|
846
|
-
if (
|
|
847
|
-
r +=
|
|
852
|
+
let o = this.options.extensions.renderers[a.type].call({ parser: this }, a);
|
|
853
|
+
if (o !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
|
|
854
|
+
r += o || "";
|
|
848
855
|
continue;
|
|
849
856
|
}
|
|
850
857
|
}
|
|
@@ -891,9 +898,9 @@ ${n}</tr>
|
|
|
891
898
|
break;
|
|
892
899
|
}
|
|
893
900
|
default: {
|
|
894
|
-
let
|
|
895
|
-
if (this.options.silent) return console.error(
|
|
896
|
-
throw new Error(
|
|
901
|
+
let o = 'Token with "' + i.type + '" type was not found.';
|
|
902
|
+
if (this.options.silent) return console.error(o), "";
|
|
903
|
+
throw new Error(o);
|
|
897
904
|
}
|
|
898
905
|
}
|
|
899
906
|
}
|
|
@@ -903,7 +910,7 @@ ${n}</tr>
|
|
|
903
910
|
options;
|
|
904
911
|
block;
|
|
905
912
|
constructor(n) {
|
|
906
|
-
this.options = n ||
|
|
913
|
+
this.options = n || $;
|
|
907
914
|
}
|
|
908
915
|
static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
|
|
909
916
|
static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
|
|
@@ -920,20 +927,20 @@ ${n}</tr>
|
|
|
920
927
|
return n;
|
|
921
928
|
}
|
|
922
929
|
provideLexer() {
|
|
923
|
-
return this.block ?
|
|
930
|
+
return this.block ? w.lex : w.lexInline;
|
|
924
931
|
}
|
|
925
932
|
provideParser() {
|
|
926
|
-
return this.block ?
|
|
933
|
+
return this.block ? v.parse : v.parseInline;
|
|
927
934
|
}
|
|
928
|
-
},
|
|
929
|
-
defaults =
|
|
935
|
+
}, gt = class {
|
|
936
|
+
defaults = F();
|
|
930
937
|
options = this.setOptions;
|
|
931
938
|
parse = this.parseMarkdown(!0);
|
|
932
939
|
parseInline = this.parseMarkdown(!1);
|
|
933
|
-
Parser =
|
|
940
|
+
Parser = v;
|
|
934
941
|
Renderer = E;
|
|
935
942
|
TextRenderer = J;
|
|
936
|
-
Lexer =
|
|
943
|
+
Lexer = w;
|
|
937
944
|
Tokenizer = L;
|
|
938
945
|
Hooks = I;
|
|
939
946
|
constructor(...n) {
|
|
@@ -972,8 +979,8 @@ ${n}</tr>
|
|
|
972
979
|
if ("renderer" in t) {
|
|
973
980
|
let a = e.renderers[t.name];
|
|
974
981
|
a ? e.renderers[t.name] = function(...i) {
|
|
975
|
-
let
|
|
976
|
-
return
|
|
982
|
+
let o = t.renderer.apply(this, i);
|
|
983
|
+
return o === !1 && (o = a.apply(this, i)), o;
|
|
977
984
|
} : e.renderers[t.name] = t.renderer;
|
|
978
985
|
}
|
|
979
986
|
if ("tokenizer" in t) {
|
|
@@ -987,10 +994,10 @@ ${n}</tr>
|
|
|
987
994
|
for (let a in s.renderer) {
|
|
988
995
|
if (!(a in t)) throw new Error(`renderer '${a}' does not exist`);
|
|
989
996
|
if (["options", "parser"].includes(a)) continue;
|
|
990
|
-
let i = a,
|
|
991
|
-
t[i] = (...
|
|
992
|
-
let
|
|
993
|
-
return
|
|
997
|
+
let i = a, o = s.renderer[i], l = t[i];
|
|
998
|
+
t[i] = (...h) => {
|
|
999
|
+
let c = o.apply(t, h);
|
|
1000
|
+
return c === !1 && (c = l.apply(t, h)), c || "";
|
|
994
1001
|
};
|
|
995
1002
|
}
|
|
996
1003
|
r.renderer = t;
|
|
@@ -1000,10 +1007,10 @@ ${n}</tr>
|
|
|
1000
1007
|
for (let a in s.tokenizer) {
|
|
1001
1008
|
if (!(a in t)) throw new Error(`tokenizer '${a}' does not exist`);
|
|
1002
1009
|
if (["options", "rules", "lexer"].includes(a)) continue;
|
|
1003
|
-
let i = a,
|
|
1004
|
-
t[i] = (...
|
|
1005
|
-
let
|
|
1006
|
-
return
|
|
1010
|
+
let i = a, o = s.tokenizer[i], l = t[i];
|
|
1011
|
+
t[i] = (...h) => {
|
|
1012
|
+
let c = o.apply(t, h);
|
|
1013
|
+
return c === !1 && (c = l.apply(t, h)), c;
|
|
1007
1014
|
};
|
|
1008
1015
|
}
|
|
1009
1016
|
r.tokenizer = t;
|
|
@@ -1013,14 +1020,21 @@ ${n}</tr>
|
|
|
1013
1020
|
for (let a in s.hooks) {
|
|
1014
1021
|
if (!(a in t)) throw new Error(`hook '${a}' does not exist`);
|
|
1015
1022
|
if (["options", "block"].includes(a)) continue;
|
|
1016
|
-
let i = a,
|
|
1017
|
-
I.passThroughHooks.has(a) ? t[i] = (
|
|
1018
|
-
if (this.defaults.async && I.passThroughHooksRespectAsync.has(a)) return
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
let
|
|
1023
|
-
return
|
|
1023
|
+
let i = a, o = s.hooks[i], l = t[i];
|
|
1024
|
+
I.passThroughHooks.has(a) ? t[i] = (h) => {
|
|
1025
|
+
if (this.defaults.async && I.passThroughHooksRespectAsync.has(a)) return (async () => {
|
|
1026
|
+
let g = await o.call(t, h);
|
|
1027
|
+
return l.call(t, g);
|
|
1028
|
+
})();
|
|
1029
|
+
let c = o.call(t, h);
|
|
1030
|
+
return l.call(t, c);
|
|
1031
|
+
} : t[i] = (...h) => {
|
|
1032
|
+
if (this.defaults.async) return (async () => {
|
|
1033
|
+
let g = await o.apply(t, h);
|
|
1034
|
+
return g === !1 && (g = await l.apply(t, h)), g;
|
|
1035
|
+
})();
|
|
1036
|
+
let c = o.apply(t, h);
|
|
1037
|
+
return c === !1 && (c = l.apply(t, h)), c;
|
|
1024
1038
|
};
|
|
1025
1039
|
}
|
|
1026
1040
|
r.hooks = t;
|
|
@@ -1028,8 +1042,8 @@ ${n}</tr>
|
|
|
1028
1042
|
if (s.walkTokens) {
|
|
1029
1043
|
let t = this.defaults.walkTokens, a = s.walkTokens;
|
|
1030
1044
|
r.walkTokens = function(i) {
|
|
1031
|
-
let
|
|
1032
|
-
return
|
|
1045
|
+
let o = [];
|
|
1046
|
+
return o.push(a.call(this, i)), t && (o = o.concat(t.call(this, i))), o;
|
|
1033
1047
|
};
|
|
1034
1048
|
}
|
|
1035
1049
|
this.defaults = { ...this.defaults, ...r };
|
|
@@ -1039,10 +1053,10 @@ ${n}</tr>
|
|
|
1039
1053
|
return this.defaults = { ...this.defaults, ...n }, this;
|
|
1040
1054
|
}
|
|
1041
1055
|
lexer(n, e) {
|
|
1042
|
-
return
|
|
1056
|
+
return w.lex(n, e ?? this.defaults);
|
|
1043
1057
|
}
|
|
1044
1058
|
parser(n, e) {
|
|
1045
|
-
return
|
|
1059
|
+
return v.parse(n, e ?? this.defaults);
|
|
1046
1060
|
}
|
|
1047
1061
|
parseMarkdown(n) {
|
|
1048
1062
|
return (e, s) => {
|
|
@@ -1050,17 +1064,20 @@ ${n}</tr>
|
|
|
1050
1064
|
if (this.defaults.async === !0 && r.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."));
|
|
1051
1065
|
if (typeof e > "u" || e === null) return a(new Error("marked(): input parameter is undefined or null"));
|
|
1052
1066
|
if (typeof e != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
|
|
1053
|
-
t.hooks && (t.hooks.options = t, t.hooks.block = n)
|
|
1054
|
-
|
|
1055
|
-
|
|
1067
|
+
if (t.hooks && (t.hooks.options = t, t.hooks.block = n), t.async) return (async () => {
|
|
1068
|
+
let i = t.hooks ? await t.hooks.preprocess(e) : e, o = await (t.hooks ? await t.hooks.provideLexer() : n ? w.lex : w.lexInline)(i, t), l = t.hooks ? await t.hooks.processAllTokens(o) : o;
|
|
1069
|
+
t.walkTokens && await Promise.all(this.walkTokens(l, t.walkTokens));
|
|
1070
|
+
let h = await (t.hooks ? await t.hooks.provideParser() : n ? v.parse : v.parseInline)(l, t);
|
|
1071
|
+
return t.hooks ? await t.hooks.postprocess(h) : h;
|
|
1072
|
+
})().catch(a);
|
|
1056
1073
|
try {
|
|
1057
1074
|
t.hooks && (e = t.hooks.preprocess(e));
|
|
1058
|
-
let
|
|
1059
|
-
t.hooks && (
|
|
1060
|
-
let
|
|
1061
|
-
return t.hooks && (
|
|
1062
|
-
} catch (
|
|
1063
|
-
return a(
|
|
1075
|
+
let i = (t.hooks ? t.hooks.provideLexer() : n ? w.lex : w.lexInline)(e, t);
|
|
1076
|
+
t.hooks && (i = t.hooks.processAllTokens(i)), t.walkTokens && this.walkTokens(i, t.walkTokens);
|
|
1077
|
+
let o = (t.hooks ? t.hooks.provideParser() : n ? v.parse : v.parseInline)(i, t);
|
|
1078
|
+
return t.hooks && (o = t.hooks.postprocess(o)), o;
|
|
1079
|
+
} catch (i) {
|
|
1080
|
+
return a(i);
|
|
1064
1081
|
}
|
|
1065
1082
|
};
|
|
1066
1083
|
}
|
|
@@ -1068,52 +1085,52 @@ ${n}</tr>
|
|
|
1068
1085
|
return (s) => {
|
|
1069
1086
|
if (s.message += `
|
|
1070
1087
|
Please report this to https://github.com/markedjs/marked.`, n) {
|
|
1071
|
-
let r = "<p>An error occurred:</p><pre>" +
|
|
1088
|
+
let r = "<p>An error occurred:</p><pre>" + y(s.message + "", !0) + "</pre>";
|
|
1072
1089
|
return e ? Promise.resolve(r) : r;
|
|
1073
1090
|
}
|
|
1074
1091
|
if (e) return Promise.reject(s);
|
|
1075
1092
|
throw s;
|
|
1076
1093
|
};
|
|
1077
1094
|
}
|
|
1078
|
-
},
|
|
1079
|
-
function
|
|
1080
|
-
return
|
|
1095
|
+
}, S = new gt();
|
|
1096
|
+
function d(n, e) {
|
|
1097
|
+
return S.parse(n, e);
|
|
1081
1098
|
}
|
|
1082
|
-
|
|
1083
|
-
return
|
|
1099
|
+
d.options = d.setOptions = function(n) {
|
|
1100
|
+
return S.setOptions(n), d.defaults = S.defaults, ce(d.defaults), d;
|
|
1084
1101
|
};
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
return
|
|
1102
|
+
d.getDefaults = F;
|
|
1103
|
+
d.defaults = $;
|
|
1104
|
+
d.use = function(...n) {
|
|
1105
|
+
return S.use(...n), d.defaults = S.defaults, ce(d.defaults), d;
|
|
1089
1106
|
};
|
|
1090
|
-
|
|
1091
|
-
return
|
|
1107
|
+
d.walkTokens = function(n, e) {
|
|
1108
|
+
return S.walkTokens(n, e);
|
|
1092
1109
|
};
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
class
|
|
1110
|
+
d.parseInline = S.parseInline;
|
|
1111
|
+
d.Parser = v;
|
|
1112
|
+
d.parser = v.parse;
|
|
1113
|
+
d.Renderer = E;
|
|
1114
|
+
d.TextRenderer = J;
|
|
1115
|
+
d.Lexer = w;
|
|
1116
|
+
d.lexer = w.lex;
|
|
1117
|
+
d.Tokenizer = L;
|
|
1118
|
+
d.Hooks = I;
|
|
1119
|
+
d.parse = d;
|
|
1120
|
+
d.options;
|
|
1121
|
+
d.setOptions;
|
|
1122
|
+
d.use;
|
|
1123
|
+
d.walkTokens;
|
|
1124
|
+
d.parseInline;
|
|
1125
|
+
v.parse;
|
|
1126
|
+
w.lex;
|
|
1127
|
+
class ft extends Se {
|
|
1111
1128
|
constructor() {
|
|
1112
1129
|
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 = {
|
|
1113
1130
|
conversationId: null,
|
|
1114
1131
|
inquiryId: null,
|
|
1115
1132
|
ackSequenceNumber: null
|
|
1116
|
-
}, this._isLoading = !1, this._isLoadingText = "", this.messages = [], this._translations =
|
|
1133
|
+
}, this._isLoading = !1, this._isLoadingText = "", this.messages = [], this._translations = ye({ name: "arcgis-solutions-assistant", blocking: !0 }), this.closeAssistant = $e(), this._resetConversation = () => {
|
|
1117
1134
|
this.conversationStore.conversationId = null, this.conversationStore.inquiryId = null, this.conversationStore.ackSequenceNumber = null;
|
|
1118
1135
|
}, this._setMessageContainerRef = (e) => {
|
|
1119
1136
|
this._chatContainer = e;
|
|
@@ -1133,7 +1150,7 @@ class dt extends ye {
|
|
|
1133
1150
|
this.properties = { serverRoot: 1, solutionAIurl: 1, docAIurl: 1, token: 1, open: 5, conversationStore: 16, _isLoading: 16, _isLoadingText: 16, messages: 16, _translations: 16 };
|
|
1134
1151
|
}
|
|
1135
1152
|
static {
|
|
1136
|
-
this.styles =
|
|
1153
|
+
this.styles = Ie;
|
|
1137
1154
|
}
|
|
1138
1155
|
async handleSendMessage() {
|
|
1139
1156
|
if (!this._inputRef?.value.trim())
|
|
@@ -1192,20 +1209,25 @@ class dt extends ye {
|
|
|
1192
1209
|
const i = {
|
|
1193
1210
|
message: t.message,
|
|
1194
1211
|
conversationId: a.conversationId,
|
|
1195
|
-
context: {
|
|
1212
|
+
context: {
|
|
1213
|
+
kind: "DocAIAssistantRequest",
|
|
1214
|
+
filters: {
|
|
1215
|
+
products: "ArcGIS Solutions"
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1196
1218
|
};
|
|
1197
1219
|
t = await this.requestAIServer(i, s, this.docAIurl);
|
|
1198
1220
|
break;
|
|
1199
1221
|
case "Recommend solution":
|
|
1200
1222
|
if (t.context.results && t.context.results?.length > 0) {
|
|
1201
|
-
const
|
|
1223
|
+
const l = {
|
|
1202
1224
|
author: "ai",
|
|
1203
1225
|
conversationId: t.conversationId,
|
|
1204
1226
|
message: t.message ?? "",
|
|
1205
1227
|
intent: "Recommend solution",
|
|
1206
1228
|
render: this._renderSuggestedSolutions(t.message ?? "", t.context.results, t.conversationId, "Recommend solution")
|
|
1207
1229
|
};
|
|
1208
|
-
this.messages.push(
|
|
1230
|
+
this.messages.push(l);
|
|
1209
1231
|
}
|
|
1210
1232
|
break;
|
|
1211
1233
|
default:
|
|
@@ -1222,13 +1244,13 @@ class dt extends ye {
|
|
|
1222
1244
|
for (const i of t.context.results)
|
|
1223
1245
|
if (i.reply !== "") {
|
|
1224
1246
|
this._isLoadingText = "";
|
|
1225
|
-
const
|
|
1247
|
+
const o = await Promise.resolve(d(i.reply));
|
|
1226
1248
|
this.messages.push({
|
|
1227
|
-
message:
|
|
1249
|
+
message: o,
|
|
1228
1250
|
author: "ai",
|
|
1229
1251
|
conversationId: t.conversationId,
|
|
1230
1252
|
intent: "Solution question",
|
|
1231
|
-
render: this._renderDocAssistantResults(
|
|
1253
|
+
render: this._renderDocAssistantResults(o, i.reply, i.ref, i.followupQuestions, t.conversationId, "Solution question")
|
|
1232
1254
|
});
|
|
1233
1255
|
}
|
|
1234
1256
|
} else {
|
|
@@ -1294,55 +1316,55 @@ class dt extends ye {
|
|
|
1294
1316
|
(e.size || this._isLoading) && this._scrollToBottom();
|
|
1295
1317
|
}
|
|
1296
1318
|
_renderFeedback(e, s, r, t) {
|
|
1297
|
-
return
|
|
1319
|
+
return m`<div><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-up label="position feedback" kind=neutral @click=${() => {
|
|
1298
1320
|
this._sendFeedback(e, s, "Good", r, t);
|
|
1299
1321
|
}}></calcite-button><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-down label="position feedback" kind=neutral @click=${() => {
|
|
1300
1322
|
this._sendFeedback(e, s, "Bad", r, t);
|
|
1301
1323
|
}}></calcite-button></div>`;
|
|
1302
1324
|
}
|
|
1303
1325
|
_renderSolutionQuestionReferences(e) {
|
|
1304
|
-
return e.map((s) =>
|
|
1326
|
+
return e.map((s) => m`<div class="message-content-pad"><a href=${s.url ?? O} target=_blank>${s.title}</a></div>`);
|
|
1305
1327
|
}
|
|
1306
1328
|
_renderSolutionQuestionFollowup(e) {
|
|
1307
|
-
return e.map((s) =>
|
|
1329
|
+
return e.map((s) => m`<calcite-chip class="chip-content cursor-pointer" kind=brand .label=${s} @click=${() => {
|
|
1308
1330
|
this._submitFollowupQuestion(s);
|
|
1309
1331
|
}}>${s}</calcite-chip>`);
|
|
1310
1332
|
}
|
|
1311
1333
|
_renderSolutionsQuestionTable(e, s, r) {
|
|
1312
1334
|
const t = this._renderSolutionQuestionReferences(s), a = this._renderSolutionQuestionFollowup(r);
|
|
1313
|
-
return
|
|
1314
|
-
const
|
|
1315
|
-
|
|
1335
|
+
return m`<div><div slot=description class="message-content">${Te(e)}<div style="display: flex; justify-content: flex-start;"><calcite-button appearance=outline icon-end=chevron-down icon-start=link @click=${(i) => {
|
|
1336
|
+
const o = i.currentTarget.parentElement?.nextElementSibling;
|
|
1337
|
+
o.classList.toggle("collapsed"), i.currentTarget.setAttribute("icon-end", o.classList.contains("collapsed") ? "chevron-down" : "chevron-up");
|
|
1316
1338
|
}}>${`${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>`;
|
|
1317
1339
|
}
|
|
1318
1340
|
_renderSolutionCard(e, s) {
|
|
1319
|
-
return
|
|
1341
|
+
return m`<a class="solution-card" id=${s ?? O} @click=${() => {
|
|
1320
1342
|
this._emitItemIdFromAI(s);
|
|
1321
|
-
}}>${
|
|
1343
|
+
}}>${m`<calcite-card thumbnail-position=inline-start><div slot=thumbnail><img src=${e.thumbnail ?? O} 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>`;
|
|
1322
1344
|
}
|
|
1323
1345
|
_renderExistingSolutionsTable(e, s) {
|
|
1324
1346
|
const r = s.map((t) => {
|
|
1325
1347
|
const a = t.thumbnail.match(/\/items\/([a-f0-9]+)\//);
|
|
1326
1348
|
return a ? this._renderSolutionCard(t, a[1]) : null;
|
|
1327
1349
|
}).filter((t) => t !== null);
|
|
1328
|
-
return
|
|
1350
|
+
return m`<div><div slot=description class="message-content"><div class="message-content-summary">${e}</div>${r}</div></div>`;
|
|
1329
1351
|
}
|
|
1330
1352
|
_renderSimpleTextMessage(e, s, r, t, a) {
|
|
1331
|
-
const i = this.messages.length >= 2 ? this._getMostRecentQuestion() : "",
|
|
1332
|
-
return s === "system" ?
|
|
1353
|
+
const i = this.messages.length >= 2 ? this._getMostRecentQuestion() : "", o = typeof i == "string" ? "" : i?.message ?? "";
|
|
1354
|
+
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=${_e(s === "human" ? "user-message" : "system-message")}><div class="message-content">${e}${s === "ai" && r !== "" && this._renderFeedback(e, o, r, t) || ""}</div></calcite-card>`;
|
|
1333
1355
|
}
|
|
1334
1356
|
_renderDocAssistantResults(e, s, r, t, a, i) {
|
|
1335
|
-
const
|
|
1336
|
-
return
|
|
1357
|
+
const o = this._getMostRecentQuestion();
|
|
1358
|
+
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>`;
|
|
1337
1359
|
}
|
|
1338
1360
|
_renderSuggestedSolutions(e, s, r, t) {
|
|
1339
|
-
const a = this._getMostRecentQuestion(), i = s.map((
|
|
1340
|
-
return
|
|
1361
|
+
const a = this._getMostRecentQuestion(), i = s.map((o) => o.title);
|
|
1362
|
+
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>`;
|
|
1341
1363
|
}
|
|
1342
1364
|
render() {
|
|
1343
|
-
return
|
|
1365
|
+
return m`<calcite-dialog class="chat-panel" .open=${this.open} resizable .heading=${this._translations.solutionAssistantTitle} id=example-dialog placement=bottom-start @calciteDialogClose=${() => {
|
|
1344
1366
|
this.closeAssistant.emit(!0), this.open = !1;
|
|
1345
|
-
}}><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 ?
|
|
1367
|
+
}}><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" ${se(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 ${se(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>`;
|
|
1346
1368
|
}
|
|
1347
1369
|
_scrollToBottom() {
|
|
1348
1370
|
this._chatContainer && setTimeout(() => {
|
|
@@ -1371,7 +1393,7 @@ class dt extends ye {
|
|
|
1371
1393
|
return [...this.messages].reverse().find((e) => e.author === "human") || null;
|
|
1372
1394
|
}
|
|
1373
1395
|
async _querySolutions(e) {
|
|
1374
|
-
const s = await
|
|
1396
|
+
const s = await ze(e);
|
|
1375
1397
|
if ("error" in s)
|
|
1376
1398
|
throw new Error(s.error);
|
|
1377
1399
|
return s;
|
|
@@ -1381,7 +1403,7 @@ class dt extends ye {
|
|
|
1381
1403
|
window.open(i, "_blank");
|
|
1382
1404
|
}
|
|
1383
1405
|
}
|
|
1384
|
-
|
|
1406
|
+
ve("arcgis-solutions-assistant", ft);
|
|
1385
1407
|
export {
|
|
1386
|
-
|
|
1408
|
+
ft as ArcgisSolutionsAssistant
|
|
1387
1409
|
};
|