@esri/solutions-components 1.2.0-next.3 → 1.2.0-next.30
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/README.md +2 -59
- package/dist/assets/config/appConfig.json.d.ts +2 -0
- package/dist/cdn/24DMHUEK.js +4 -0
- package/dist/cdn/25MYRWPK.js +4 -0
- package/dist/cdn/277565E7.js +4 -0
- package/dist/cdn/2776LBZR.js +18 -0
- package/dist/cdn/27GKKFQI.js +18 -0
- package/dist/cdn/2DKKN6C2.js +4 -0
- package/dist/cdn/2GFXYPLE.js +18 -0
- package/dist/cdn/2GMVKD6U.js +4 -0
- package/dist/cdn/2HXRWLJY.js +4 -0
- package/dist/cdn/2IKATLLY.js +4 -0
- package/dist/cdn/2PW6ABS2.js +4 -0
- package/dist/cdn/2RHNGWV3.js +4 -0
- package/dist/cdn/2U7L5PBM.js +4 -0
- package/dist/cdn/2YRUPZI2.js +4 -0
- package/dist/cdn/2ZIO725Y.js +4 -0
- package/dist/cdn/346BLCF2.js +4 -0
- package/dist/cdn/34PDVGEI.js +4 -0
- package/dist/cdn/36VKRU3A.js +4 -0
- package/dist/cdn/3CSYZLTP.js +18 -0
- package/dist/cdn/3FWMXAKG.js +4 -0
- package/dist/cdn/3FYPCIOV.js +4 -0
- package/dist/cdn/3ICH54JL.js +18 -0
- package/dist/cdn/3JCJJ2GF.js +5 -0
- package/dist/cdn/3VWHKZED.js +4 -0
- package/dist/cdn/3WDCAEUK.js +4 -0
- package/dist/cdn/3Z6YZFUQ.js +4 -0
- package/dist/cdn/47L5OVTL.js +18 -0
- package/dist/cdn/4ETQSIFF.js +4 -0
- package/dist/cdn/4EXGNBXW.js +4 -0
- package/dist/cdn/4R3HMKHB.js +4 -0
- package/dist/cdn/4SKQUXSZ.js +4 -0
- package/dist/cdn/4T73N7V2.js +4 -0
- package/dist/cdn/4U3FPTF5.js +4 -0
- package/dist/cdn/5AWDPORB.js +18 -0
- package/dist/cdn/5HZVV4CF.js +4 -0
- package/dist/cdn/5LKRTP4M.js +4 -0
- package/dist/cdn/5MKH7FO7.js +18 -0
- package/dist/cdn/5NTV25EH.js +4 -0
- package/dist/cdn/5PWFCMK4.js +4 -0
- package/dist/cdn/5QGNITLO.js +4 -0
- package/dist/cdn/63WA56NY.js +4 -0
- package/dist/cdn/65GKVZWM.js +4 -0
- package/dist/cdn/65ZZ77SE.js +4 -0
- package/dist/cdn/6DCWHIG6.js +4 -0
- package/dist/cdn/6FNOQGIZ.js +4 -0
- package/dist/cdn/6M575VM5.js +4 -0
- package/dist/cdn/6NKXBHT3.js +4 -0
- package/dist/cdn/6QXC35GC.js +18 -0
- package/dist/cdn/6RA3RUIS.js +4 -0
- package/dist/cdn/6TAASZPW.js +18 -0
- package/dist/cdn/6YD2HBWD.js +18 -0
- package/dist/cdn/72SAT2FH.js +4 -0
- package/dist/cdn/72XEQTIF.js +4 -0
- package/dist/cdn/74G765B3.js +4 -0
- package/dist/cdn/7F6JTIWK.js +4 -0
- package/dist/cdn/7HFPD7CI.js +4 -0
- package/dist/cdn/7NHT4ID4.js +4 -0
- package/dist/cdn/7QLGF5J6.js +4 -0
- package/dist/cdn/7S7DGB25.js +18 -0
- package/dist/cdn/7VMUOYRC.js +4 -0
- package/dist/cdn/ABDQSCIZ.js +18 -0
- package/dist/cdn/AE6H6ELK.js +4 -0
- package/dist/cdn/AK4FP6HL.js +4 -0
- package/dist/cdn/ASR3PHZX.js +4 -0
- package/dist/cdn/AT2K2TZK.js +4 -0
- package/dist/cdn/AUZIEPJY.js +25 -0
- package/dist/cdn/AWBOSR4C.js +4 -0
- package/dist/cdn/AXOVLMEZ.js +4 -0
- package/dist/cdn/AZCLMDQA.js +4 -0
- package/dist/cdn/B4GTYQZH.js +4 -0
- package/dist/cdn/B4OV3LHY.js +4 -0
- package/dist/cdn/B7ALYLRG.js +4 -0
- package/dist/cdn/B7RCE3HL.js +21 -0
- package/dist/cdn/B7V66ZZG.js +4 -0
- package/dist/cdn/BBIGCWRV.js +4 -0
- package/dist/cdn/BDJVTVGV.js +4 -0
- package/dist/cdn/BHDNLSI7.js +4 -0
- package/dist/cdn/BMYOJ35W.js +4 -0
- package/dist/cdn/BPOQYDR5.js +4 -0
- package/dist/cdn/BPXPCMXX.js +18 -0
- package/dist/cdn/BTBWYAZW.js +18 -0
- package/dist/cdn/BUF25CTJ.js +4 -0
- package/dist/cdn/BV53Z64R.js +4 -0
- package/dist/cdn/BX56GQJM.js +4 -0
- package/dist/cdn/C4AGRX46.js +18 -0
- package/dist/cdn/C6XXEAWS.js +4 -0
- package/dist/cdn/CAC5OPSW.js +4 -0
- package/dist/cdn/CEUB4OXF.js +4 -0
- package/dist/cdn/CNZTLIB3.js +4 -0
- package/dist/cdn/CP4HACAH.js +4 -0
- package/dist/cdn/CQKXZVLC.js +4 -0
- package/dist/cdn/CUAZD4LK.js +4 -0
- package/dist/cdn/CYDNA2QI.js +4 -0
- package/dist/cdn/D2D2CPBJ.js +4 -0
- package/dist/cdn/D465QWTQ.js +4 -0
- package/dist/cdn/DFEHZSKJ.js +4 -0
- package/dist/cdn/DLDZLA7R.js +18 -0
- package/dist/cdn/DOUPRF5M.js +18 -0
- package/dist/cdn/DPZVQEH4.js +4 -0
- package/dist/cdn/DTHSN36M.js +4 -0
- package/dist/cdn/DUBCPEXD.js +4 -0
- package/dist/cdn/DUH2FCJG.js +4 -0
- package/dist/cdn/E6CHHVGK.js +4 -0
- package/dist/cdn/EB2JKK3D.js +4 -0
- package/dist/cdn/ECGNRFQC.js +4 -0
- package/dist/cdn/ECKEIM2Y.js +4 -0
- package/dist/cdn/EDB5QBJ4.js +4 -0
- package/dist/cdn/EGM522HI.js +4 -0
- package/dist/cdn/EHZVBSNG.js +4 -0
- package/dist/cdn/EIY2RNYU.js +18 -0
- package/dist/cdn/EORDZOGU.js +18 -0
- package/dist/cdn/EVNTAGJW.js +4 -0
- package/dist/cdn/EVNUKA47.js +4 -0
- package/dist/cdn/EZU7FJ4I.js +18 -0
- package/dist/cdn/F2EIQ3EO.js +4 -0
- package/dist/cdn/F2QEERVM.js +18 -0
- package/dist/cdn/F5Z37SAY.js +4 -0
- package/dist/cdn/F6BFZHUG.js +4 -0
- package/dist/cdn/FA3IKFAL.js +4 -0
- package/dist/cdn/FDUPZ25R.js +18 -0
- package/dist/cdn/FEWO73EQ.js +4 -0
- package/dist/cdn/FG6WOVWI.js +18 -0
- package/dist/cdn/FKNP522A.js +4 -0
- package/dist/cdn/FLQEDTUI.js +20 -0
- package/dist/cdn/FP6CVRPP.js +8 -0
- package/dist/cdn/FRS5F6O5.js +18 -0
- package/dist/cdn/GAQ3EPIU.js +4 -0
- package/dist/cdn/GD43N373.js +4 -0
- package/dist/cdn/GFEO3V7B.js +4 -0
- package/dist/cdn/GGMFABEF.js +4 -0
- package/dist/cdn/GJYH7TRE.js +4 -0
- package/dist/cdn/GLIEFW2W.js +4 -0
- package/dist/cdn/GNLAHRZT.js +18 -0
- package/dist/cdn/GOLJIOZF.js +4 -0
- package/dist/cdn/GPLD4OLN.js +4 -0
- package/dist/cdn/GPLPJI55.js +4 -0
- package/dist/cdn/GWPPIURG.js +4 -0
- package/dist/cdn/H2R75MHA.js +4 -0
- package/dist/cdn/H3WB7ANQ.js +4 -0
- package/dist/cdn/H4UX7IPM.js +4 -0
- package/dist/cdn/HC4IU67I.js +4 -0
- package/dist/cdn/HDWF5BGC.js +4 -0
- package/dist/cdn/HGN2PHJG.js +4 -0
- package/dist/cdn/HMBSQFUJ.js +4 -0
- package/dist/cdn/HN2G2EYZ.js +387 -0
- package/dist/cdn/HQX2UTQA.js +18 -0
- package/dist/cdn/HVONRLYE.js +19 -0
- package/dist/cdn/HXI2RJM3.js +9 -0
- package/dist/cdn/HXVM7BGX.js +4 -0
- package/dist/cdn/HYVUOIDV.js +4 -0
- package/dist/cdn/I73WIDZD.js +4 -0
- package/dist/cdn/IJCG3D4S.js +4 -0
- package/dist/cdn/IJGEUPSK.js +4 -0
- package/dist/cdn/ILTORA35.js +18 -0
- package/dist/cdn/ISBYRWUS.js +4 -0
- package/dist/cdn/ITD43QIH.js +4 -0
- package/dist/cdn/ITJX53EA.js +4 -0
- package/dist/cdn/J2A24DGF.js +4 -0
- package/dist/cdn/J45MBO4E.js +4 -0
- package/dist/cdn/J62SMQQ7.js +18 -0
- package/dist/cdn/J7QDKBVB.js +4 -0
- package/dist/cdn/JACZFLX5.js +18 -0
- package/dist/cdn/JBJKRXXO.js +4 -0
- package/dist/cdn/JC7USH53.js +4 -0
- package/dist/cdn/JFL4U4UA.js +4 -0
- package/dist/cdn/JFT5UZJT.js +4 -0
- package/dist/cdn/JHUQCA3Z.js +4 -0
- package/dist/cdn/JN3I6HM2.js +18 -0
- package/dist/cdn/JNSLXW7O.js +9 -0
- package/dist/cdn/JQHH2OCZ.js +4 -0
- package/dist/cdn/JTVBLWSK.js +4 -0
- package/dist/cdn/JXBEZT5A.js +4 -0
- package/dist/cdn/K54HDSYB.js +8 -0
- package/dist/cdn/KAFYTKP3.js +18 -0
- package/dist/cdn/KIOXB2OZ.js +18 -0
- package/dist/cdn/KJ7FA4KA.js +4 -0
- package/dist/cdn/KJQJXQFO.js +4 -0
- package/dist/cdn/KPWGBLMQ.js +19 -0
- package/dist/cdn/KRGPHVWG.js +4 -0
- package/dist/cdn/KUQK2ONH.js +18 -0
- package/dist/cdn/KV6OFAYE.js +4 -0
- package/dist/cdn/KXFJ5CVI.js +4 -0
- package/dist/cdn/L4ENNIQZ.js +4 -0
- package/dist/cdn/L5LXFBXD.js +4 -0
- package/dist/cdn/LAOPK2BR.js +4 -0
- package/dist/cdn/LGY6RHRJ.js +4 -0
- package/dist/cdn/LIQY6VUI.js +18 -0
- package/dist/cdn/LJ37OTR5.js +4 -0
- package/dist/cdn/LKEA7WT3.js +4 -0
- package/dist/cdn/LMF2IQVY.js +18 -0
- package/dist/cdn/LMLBAQTW.js +4 -0
- package/dist/cdn/LONY44WL.js +4 -0
- package/dist/cdn/LPOSNNLD.js +8 -0
- package/dist/cdn/LWNDAKHU.js +4 -0
- package/dist/cdn/LYQT3N5Z.js +4 -0
- package/dist/cdn/M77VUV2Q.js +4 -0
- package/dist/cdn/MBBBUQA7.js +4 -0
- package/dist/cdn/MBGLCBIC.js +4 -0
- package/dist/cdn/MCPVXPMM.js +4 -0
- package/dist/cdn/MMRBO6I4.js +4 -0
- package/dist/cdn/MRRQXIAY.js +4 -0
- package/dist/cdn/MRS7JBCM.js +4 -0
- package/dist/cdn/MT4KKD5M.js +4 -0
- package/dist/cdn/MXKXWU54.js +4 -0
- package/dist/cdn/MYKMNK6X.js +4 -0
- package/dist/cdn/MYMVJFH4.js +64 -0
- package/dist/cdn/N3YA5MDL.js +4 -0
- package/dist/cdn/NALQ7ZA4.js +4 -0
- package/dist/cdn/NDBQUUTO.js +4 -0
- package/dist/cdn/NEVLWT5F.js +4 -0
- package/dist/cdn/NGHRTOE5.js +5 -0
- package/dist/cdn/NGL5DBBP.js +4 -0
- package/dist/cdn/NLLMNIAA.js +4 -0
- package/dist/cdn/NLPH7XLY.js +18 -0
- package/dist/cdn/NMEYVDKO.js +4 -0
- package/dist/cdn/NQNIGRVW.js +4 -0
- package/dist/cdn/NS2BBVPW.js +4 -0
- package/dist/cdn/NTLJHWLQ.js +89 -0
- package/dist/cdn/NWANGG5T.js +4 -0
- package/dist/cdn/O4LF5ZK4.js +18 -0
- package/dist/cdn/O5O4WPGT.js +4 -0
- package/dist/cdn/OCTGDVTD.js +4 -0
- package/dist/cdn/OGFRY2XT.js +4 -0
- package/dist/cdn/OGFYIHYL.js +4 -0
- package/dist/cdn/OHWJG6P3.js +4 -0
- package/dist/cdn/OJFZ6T4L.js +4 -0
- package/dist/cdn/OKEQ6VW4.js +18 -0
- package/dist/cdn/ON3VIYPQ.js +4 -0
- package/dist/cdn/OOC5Y54N.js +4 -0
- package/dist/cdn/OOHID67S.js +18 -0
- package/dist/cdn/OSOFOQEK.js +4 -0
- package/dist/cdn/OU7QCTNJ.js +18 -0
- package/dist/cdn/OVWAIW4T.js +6 -0
- package/dist/cdn/P32GLMOO.js +4 -0
- package/dist/cdn/P7TBO62O.js +4 -0
- package/dist/cdn/PCJIW7J4.js +4 -0
- package/dist/cdn/PGGLPX3Y.js +4 -0
- package/dist/cdn/PGWOXALJ.js +4 -0
- package/dist/cdn/PJFQYGK6.js +4 -0
- package/dist/cdn/PKH6X23Q.js +4 -0
- package/dist/cdn/PLRNVZN6.js +4 -0
- package/dist/cdn/PNAS5XAC.js +4 -0
- package/dist/cdn/PPT7MVPV.js +4 -0
- package/dist/cdn/PTTGFXZZ.js +18 -0
- package/dist/cdn/PVKLE7AC.js +18 -0
- package/dist/cdn/Q5KLXIL2.js +4 -0
- package/dist/cdn/QCGMRCNR.js +4 -0
- package/dist/cdn/QDHG7XI7.js +18 -0
- package/dist/cdn/QG473DGW.js +4 -0
- package/dist/cdn/QH7G7WSC.js +6 -0
- package/dist/cdn/QN7Y6QOZ.js +18 -0
- package/dist/cdn/QNUGOWWM.js +18 -0
- package/dist/cdn/QOAKCYXR.js +4 -0
- package/dist/cdn/QRR2HRFO.js +4 -0
- package/dist/cdn/QSX5S7NE.js +4 -0
- package/dist/cdn/QTHKDVZA.js +18 -0
- package/dist/cdn/QTQ5VFMI.js +4 -0
- package/dist/cdn/QVX3HKWH.js +4 -0
- package/dist/cdn/QYQGUEKK.js +4 -0
- package/dist/cdn/R5UVF7YP.js +4 -0
- package/dist/cdn/R6C247GY.js +4 -0
- package/dist/cdn/RBY55AW4.js +4 -0
- package/dist/cdn/RH7MI7ML.js +18 -0
- package/dist/cdn/RJAI2F2A.js +4 -0
- package/dist/cdn/RKXN5H6E.js +18 -0
- package/dist/cdn/RMJBQVZQ.js +4 -0
- package/dist/cdn/RYDA2GVY.js +4 -0
- package/dist/cdn/RYTGUQNW.js +4 -0
- package/dist/cdn/S2AT5YY2.js +4 -0
- package/dist/cdn/S362MWIR.js +18 -0
- package/dist/cdn/SH2FEGSB.js +4 -0
- package/dist/cdn/SJGKDRLS.js +4 -0
- package/dist/cdn/SLTVLCFQ.js +4 -0
- package/dist/cdn/SQ4ONYA6.js +18 -0
- package/dist/cdn/STNJMHAQ.js +4 -0
- package/dist/cdn/SWMICF3O.js +18 -0
- package/dist/cdn/SZSFIVOE.js +4 -0
- package/dist/cdn/SZVZ7L22.js +4 -0
- package/dist/cdn/T66GPNTR.js +18 -0
- package/dist/cdn/TC3U37J7.js +4 -0
- package/dist/cdn/TDB43YAO.js +18 -0
- package/dist/cdn/TE7MJY7J.js +19 -0
- package/dist/cdn/TF7HCU4R.js +4 -0
- package/dist/cdn/TISZ6QTW.js +4 -0
- package/dist/cdn/TPMDZI3N.js +4 -0
- package/dist/cdn/TQZZQ74I.js +4 -0
- package/dist/cdn/TUMBFPWA.js +4 -0
- package/dist/cdn/TXZZ7IGA.js +4 -0
- package/dist/cdn/TZC7FR57.js +4 -0
- package/dist/cdn/U3RN3VMR.js +18 -0
- package/dist/cdn/U6IZ7NDO.js +4 -0
- package/dist/cdn/U7CHN77W.js +4 -0
- package/dist/cdn/UE4JYH6Q.js +294 -0
- package/dist/cdn/UJ7M33YD.js +4 -0
- package/dist/cdn/UN3HEMCS.js +4 -0
- package/dist/cdn/UNU2VFCG.js +4 -0
- package/dist/cdn/UQDX4HH7.js +4 -0
- package/dist/cdn/UVYMD3SU.js +4 -0
- package/dist/cdn/UWIIDEOZ.js +18 -0
- package/dist/cdn/UXPVRSYI.js +18 -0
- package/dist/cdn/V33LR6IS.js +4 -0
- package/dist/cdn/VF3BOXK6.js +4 -0
- package/dist/cdn/VFV5JCQN.js +18 -0
- package/dist/cdn/VWZIPDPO.js +4 -0
- package/dist/cdn/VZLRW2AX.js +4 -0
- package/dist/cdn/W5WC3DQR.js +4 -0
- package/dist/cdn/WA6JCIVJ.js +18 -0
- package/dist/cdn/WFJNZNPO.js +4 -0
- package/dist/cdn/WIIOBTYW.js +4 -0
- package/dist/cdn/WL6ES3HJ.js +4 -0
- package/dist/cdn/WMWRHS2O.js +4 -0
- package/dist/cdn/WNNXONB6.js +4 -0
- package/dist/cdn/WNSRF7JD.js +4 -0
- package/dist/cdn/WP6QUJD5.js +4 -0
- package/dist/cdn/WR2PXMWC.js +4 -0
- package/dist/cdn/X4O2UX77.js +4 -0
- package/dist/cdn/XDQ5U3RX.js +4 -0
- package/dist/cdn/XEQGJKML.js +4 -0
- package/dist/cdn/XLTAB44X.js +4 -0
- package/dist/cdn/XP2EQZNN.js +4 -0
- package/dist/cdn/XPA5STW7.js +4 -0
- package/dist/cdn/XQK2EEXA.js +18 -0
- package/dist/cdn/XQURVTFE.js +4 -0
- package/dist/cdn/XTBZMRJM.js +4 -0
- package/dist/cdn/Y27TXUN2.js +82 -0
- package/dist/cdn/Y5BS3BHR.js +18 -0
- package/dist/cdn/Y7MPYZYV.js +18 -0
- package/dist/cdn/Y7YN2IIU.js +4 -0
- package/dist/cdn/YFRAG76M.js +18 -0
- package/dist/cdn/YLAFYD5G.js +4 -0
- package/dist/cdn/YOA42CLH.js +18 -0
- package/dist/cdn/YUE54TGU.js +4 -0
- package/dist/cdn/YWB3PVWJ.js +29 -0
- package/dist/cdn/YZLM4OIF.js +4 -0
- package/dist/cdn/Z6455FX4.js +4 -0
- package/dist/cdn/ZGWPTRGZ.js +4 -0
- package/dist/cdn/ZIRTUZJU.js +4 -0
- package/dist/cdn/ZKOJOIGE.js +4 -0
- package/dist/cdn/ZL226NXE.js +18 -0
- package/dist/cdn/ZLJ5FGJ6.js +4 -0
- package/dist/cdn/ZLWE4SGQ.js +4 -0
- package/dist/cdn/ZPV3TQLX.js +4 -0
- package/dist/cdn/ZQLLWXUS.js +4 -0
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -0
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.json +1 -0
- 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/assets/solution-details-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-details-card/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-resource-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/solution-resource-card/t9n/messages.json +1 -0
- package/dist/cdn/assets/solutions-all-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-all-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-all-shell/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-all-shell/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-deploy-app-nav/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/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-filter-panel/t9n/messages.json +1 -1
- package/dist/cdn/assets/solutions-resources/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/solutions-resources/t9n/messages.json +1 -0
- package/dist/cdn/assets/solutions-searchsort-toolbar/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solutions-searchsort-toolbar/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/Auth.js +14 -14
- package/dist/chunks/CardsFetcher.js +29 -30
- package/dist/chunks/appConfig.js +22 -16
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.js +30 -20
- 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 +30 -25
- package/dist/chunks/interfaces.js +18 -19
- 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 +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.d.ts +92 -9
- package/dist/components/arcgis-solutions-assistant/customElement.js +1420 -60
- package/dist/components/arcgis-solutions-assistant/index.d.ts +4 -4
- package/dist/components/arcgis-solutions-assistant/index.js +4 -4
- package/dist/components/arcgis-solutions-assistant/utils/querySolutions.d.ts +22 -0
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.d.ts +2 -2
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.d.ts +1 -2
- package/dist/components/card-manager/customElement.js +2 -2
- package/dist/components/consent-manager/customElement.d.ts +5 -5
- package/dist/components/consent-manager/customElement.js +142 -142
- 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 +8 -20
- package/dist/components/crowdsource-reporter/customElement.d.ts +1 -6
- package/dist/components/crowdsource-reporter/customElement.js +10 -10
- 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.d.ts +0 -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 +2 -2
- package/dist/components/edit-card/customElement.js +6 -6
- package/dist/components/feature-details/customElement.d.ts +0 -2
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.d.ts +1 -1
- package/dist/components/feature-list/customElement.js +44 -45
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.d.ts +0 -1
- package/dist/components/info-card/customElement.js +2 -2
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.d.ts +0 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.d.ts +1 -2
- package/dist/components/layer-table/customElement.js +23 -23
- package/dist/components/map-card/customElement.d.ts +6 -9
- package/dist/components/map-card/customElement.js +26 -36
- package/dist/components/map-draw-tools/customElement.js +2 -2
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.d.ts +13 -11
- package/dist/components/map-layer-picker/customElement.js +24 -22
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +5 -5
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.d.ts +3 -5
- package/dist/components/map-select-tools/customElement.js +25 -25
- package/dist/components/map-tools/customElement.d.ts +4 -10
- package/dist/components/map-tools/customElement.js +62 -63
- package/dist/components/pci-calculator/customElement.js +9 -9
- package/dist/components/pdf-download/customElement.js +29 -37
- package/dist/components/public-notification/customElement.d.ts +5 -6
- package/dist/components/public-notification/customElement.js +10 -14
- package/dist/components/refine-selection/customElement.d.ts +1 -4
- package/dist/components/refine-selection/customElement.js +15 -15
- package/dist/components/selection-tool/customElement.d.ts +2 -2
- 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 +24 -21
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.d.ts +0 -1
- package/dist/components/solution-delete-dialog/customElement.js +12 -10
- package/dist/components/solution-deploy-dialog/customElement.js +4 -4
- package/dist/components/solution-deployed-card/customElement.d.ts +4 -5
- package/dist/components/solution-deployed-card/customElement.js +34 -33
- package/dist/components/solution-deployed-card/index.d.ts +0 -1
- package/dist/components/solution-deployed-card/index.js +0 -1
- package/dist/components/solution-deployed-card-panel/customElement.d.ts +40 -0
- package/dist/components/solution-deployed-card-panel/customElement.js +118 -0
- package/dist/components/solution-deployed-card-panel/index.d.ts +16 -0
- package/dist/components/solution-deployed-card-panel/index.js +16 -0
- package/dist/components/solution-deploying-dialog/customElement.d.ts +2 -0
- package/dist/components/solution-deploying-dialog/customElement.js +81 -18
- package/dist/components/solution-details-card/customElement.js +7 -7
- package/dist/components/solution-details-panel/customElement.js +78 -88
- package/dist/components/solution-details-panel/index.d.ts +1 -1
- package/dist/components/solution-details-panel/index.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.d.ts +2 -0
- package/dist/components/solution-item-accordion/customElement.js +6 -2
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +116 -114
- 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.d.ts +37 -0
- package/dist/components/solution-resource-card/customElement.js +49 -0
- 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.d.ts +6 -2
- package/dist/components/solutions-all-panel/customElement.js +68 -52
- package/dist/components/solutions-all-panel/index.d.ts +1 -0
- package/dist/components/solutions-all-panel/index.js +1 -0
- package/dist/components/solutions-all-shell/customElement.js +34 -23
- package/dist/components/solutions-all-shell/index.d.ts +1 -1
- package/dist/components/solutions-all-shell/index.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.d.ts +2 -1
- package/dist/components/solutions-deploy-app/customElement.js +51 -44
- package/dist/components/solutions-deploy-app/index.d.ts +2 -1
- package/dist/components/solutions-deploy-app/index.js +2 -1
- package/dist/components/solutions-deploy-app-nav/customElement.d.ts +5 -2
- package/dist/components/solutions-deploy-app-nav/customElement.js +91 -29
- package/dist/components/solutions-deploy-app-nav/index.d.ts +8 -2
- package/dist/components/solutions-deploy-app-nav/index.js +8 -2
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.d.ts +4 -2
- package/dist/components/solutions-deployed-panel/customElement.js +43 -38
- package/dist/components/solutions-deployed-shell/customElement.js +16 -19
- package/dist/components/solutions-deployed-shell/index.d.ts +0 -1
- package/dist/components/solutions-deployed-shell/index.js +0 -1
- package/dist/components/solutions-filter-panel/customElement.d.ts +12 -0
- package/dist/components/solutions-filter-panel/customElement.js +98 -58
- package/dist/components/solutions-filter-panel/index.d.ts +2 -0
- package/dist/components/solutions-filter-panel/index.js +2 -0
- package/dist/components/solutions-resource-panel/customElement.d.ts +17 -0
- package/dist/components/solutions-resource-panel/customElement.js +43 -0
- package/dist/components/solutions-resources/customElement.d.ts +7 -0
- package/dist/components/solutions-resources/customElement.js +105 -0
- package/dist/components/solutions-resources/index.d.ts +12 -0
- package/dist/components/solutions-resources/index.js +12 -0
- package/dist/components/solutions-resources-shell/customElement.d.ts +7 -0
- package/dist/components/solutions-resources-shell/customElement.js +43 -0
- package/dist/components/solutions-resources-shell/index.d.ts +5 -0
- package/dist/components/solutions-resources-shell/index.js +5 -0
- package/dist/components/solutions-searchsort-toolbar/customElement.d.ts +11 -0
- package/dist/components/solutions-searchsort-toolbar/customElement.js +85 -65
- package/dist/components/solutions-searchsort-toolbar/index.d.ts +1 -1
- package/dist/components/solutions-searchsort-toolbar/index.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 +2607 -2064
- package/dist/docs/docs.json +3129 -2587
- package/dist/docs/vscode.html-custom-data.json +151 -124
- package/dist/docs/web-types.json +509 -353
- package/dist/index.d.ts +105 -70
- package/dist/index.js +35 -36
- package/dist/loader.js +13 -13
- package/dist/types/lumina.d.ts +43 -34
- package/dist/types/preact.d.ts +48 -39
- package/dist/types/preact10.d.ts +53 -44
- package/dist/types/react.d.ts +53 -44
- package/dist/types/stencil.d.ts +43 -34
- package/dist/utils/cardsHelpers.d.ts +14 -0
- package/dist/utils/helpers.d.ts +8 -1
- package/dist/utils/interfaces.d.ts +49 -27
- package/dist/utils/queryUtils.d.ts +2 -2
- package/package.json +27 -27
- package/dist/cdn/234YSPUP.js +0 -4
- package/dist/cdn/23F7WS6U.js +0 -18
- package/dist/cdn/25CBXU7A.js +0 -4
- package/dist/cdn/2B2JMPFN.js +0 -18
- package/dist/cdn/2BUXYBPD.js +0 -4
- package/dist/cdn/2C5JNPGO.js +0 -4
- package/dist/cdn/2FURWI7Y.js +0 -4
- package/dist/cdn/2IRNZ42K.js +0 -19
- package/dist/cdn/2L4XL6GG.js +0 -4
- package/dist/cdn/2LVJZ2NV.js +0 -4
- package/dist/cdn/2MHGYWN7.js +0 -4
- package/dist/cdn/2NLKFSQN.js +0 -4
- package/dist/cdn/2QVOCL3G.js +0 -4
- package/dist/cdn/2RVAN3GE.js +0 -20
- package/dist/cdn/2SZF4MLJ.js +0 -4
- package/dist/cdn/2TADDW4W.js +0 -8
- package/dist/cdn/2TADYBIO.js +0 -4
- package/dist/cdn/2TB3YOHP.js +0 -4
- package/dist/cdn/2W5UVWEN.js +0 -4
- package/dist/cdn/2WLLRLZ7.js +0 -4
- package/dist/cdn/2XCAUYR2.js +0 -4
- package/dist/cdn/2Y2EWR7H.js +0 -4
- package/dist/cdn/35UXOOHD.js +0 -4
- package/dist/cdn/36VZRVY2.js +0 -4
- package/dist/cdn/37TV2MQL.js +0 -4
- package/dist/cdn/3E7HOSDD.js +0 -4
- package/dist/cdn/3EU6WGZO.js +0 -4
- package/dist/cdn/3JMRSSB5.js +0 -4
- package/dist/cdn/3LHVSQGT.js +0 -4
- package/dist/cdn/3NJX3MB3.js +0 -18
- package/dist/cdn/3Q6YGL57.js +0 -18
- package/dist/cdn/3X7XYYFW.js +0 -4
- package/dist/cdn/45BXFKGN.js +0 -4
- package/dist/cdn/45HNI5CK.js +0 -4
- package/dist/cdn/46UDJ6Q6.js +0 -8
- package/dist/cdn/4DCZ2ZRI.js +0 -18
- package/dist/cdn/4EWREADY.js +0 -4
- package/dist/cdn/4GQA73TQ.js +0 -4
- package/dist/cdn/4I7PCYCC.js +0 -4
- package/dist/cdn/4LZZGUWP.js +0 -4
- package/dist/cdn/4MHLESLH.js +0 -4
- package/dist/cdn/4MQB77K7.js +0 -4
- package/dist/cdn/4OWQLN7N.js +0 -18
- package/dist/cdn/4PPJBKDP.js +0 -4
- package/dist/cdn/4QXAYPME.js +0 -4
- package/dist/cdn/53SCKT44.js +0 -4
- package/dist/cdn/5A6Y54WJ.js +0 -4
- package/dist/cdn/5G4RLNCB.js +0 -4
- package/dist/cdn/5O75XOMI.js +0 -4
- package/dist/cdn/5QF7JXXA.js +0 -4
- package/dist/cdn/5YYJDNXT.js +0 -4
- package/dist/cdn/5Z7ZG2XK.js +0 -4
- package/dist/cdn/62GUE4Z3.js +0 -4
- package/dist/cdn/62ISZVOF.js +0 -4
- package/dist/cdn/62NAX7KS.js +0 -18
- package/dist/cdn/62XTNKST.js +0 -4
- package/dist/cdn/64CYMAYN.js +0 -4
- package/dist/cdn/64JDACKK.js +0 -6
- package/dist/cdn/65AXSWLQ.js +0 -18
- package/dist/cdn/67P77RII.js +0 -4
- package/dist/cdn/6AWOKZWN.js +0 -4
- package/dist/cdn/6DO5FV6V.js +0 -18
- package/dist/cdn/6GNQRHUK.js +0 -4
- package/dist/cdn/6I4GOE3Y.js +0 -18
- package/dist/cdn/6JQ4EGSQ.js +0 -18
- package/dist/cdn/6NG5X7FZ.js +0 -294
- package/dist/cdn/6RAGUS7J.js +0 -4
- package/dist/cdn/6RBJGB46.js +0 -4
- package/dist/cdn/6ROK6EHE.js +0 -4
- package/dist/cdn/6V7JLIJ5.js +0 -9
- package/dist/cdn/74OGQVZH.js +0 -4
- package/dist/cdn/76WRSP3A.js +0 -4
- package/dist/cdn/7ASZTQ45.js +0 -4
- package/dist/cdn/7CPPZBTT.js +0 -6
- package/dist/cdn/7CPTTYU3.js +0 -4
- package/dist/cdn/7KWG3Z6K.js +0 -4
- package/dist/cdn/7L3YAL47.js +0 -4
- package/dist/cdn/7LSLVXGD.js +0 -18
- package/dist/cdn/7QYTSIGP.js +0 -18
- package/dist/cdn/7UCFU6IJ.js +0 -4
- package/dist/cdn/7YT73G5X.js +0 -4
- package/dist/cdn/7YX7AHVW.js +0 -4
- package/dist/cdn/AB76D7WU.js +0 -18
- package/dist/cdn/ABDWQOBA.js +0 -4
- package/dist/cdn/ACQPRV6Q.js +0 -4
- package/dist/cdn/AOC5GCMF.js +0 -4
- package/dist/cdn/APV7UOJA.js +0 -4
- package/dist/cdn/ARMMHG3S.js +0 -4
- package/dist/cdn/ARZ6JPA3.js +0 -4
- package/dist/cdn/ASDXD6UG.js +0 -4
- package/dist/cdn/AUCJ7ZFB.js +0 -18
- package/dist/cdn/AWOFK74F.js +0 -4
- package/dist/cdn/AX4BFIAK.js +0 -4
- package/dist/cdn/B24TVNRU.js +0 -4
- package/dist/cdn/B4OEZKHF.js +0 -4
- package/dist/cdn/B6FXHHYN.js +0 -4
- package/dist/cdn/BAFRQNS7.js +0 -18
- package/dist/cdn/BC4V4TZO.js +0 -4
- package/dist/cdn/BCTLXB2M.js +0 -4
- package/dist/cdn/BCXBU3KU.js +0 -4
- package/dist/cdn/BEBW4GAM.js +0 -4
- package/dist/cdn/BEHKUS5D.js +0 -4
- package/dist/cdn/BHUNFJZD.js +0 -4
- package/dist/cdn/BIT3Z27V.js +0 -18
- package/dist/cdn/BMUTEUNT.js +0 -4
- package/dist/cdn/BQT6MIAJ.js +0 -4
- package/dist/cdn/BSMBN633.js +0 -18
- package/dist/cdn/BVPEEMND.js +0 -4
- package/dist/cdn/BXQASW7J.js +0 -4
- package/dist/cdn/C27Y63JS.js +0 -4
- package/dist/cdn/C2ENPVZG.js +0 -8
- package/dist/cdn/C5M3F3HQ.js +0 -18
- package/dist/cdn/CAPI4G74.js +0 -18
- package/dist/cdn/CDKVJSXJ.js +0 -4
- package/dist/cdn/CLIFIAZI.js +0 -4
- package/dist/cdn/COPHOT6L.js +0 -4
- package/dist/cdn/CPVXVEVK.js +0 -4
- package/dist/cdn/CQ5FSDXN.js +0 -4
- package/dist/cdn/CRISXI26.js +0 -4
- package/dist/cdn/CT4XO4WW.js +0 -4
- package/dist/cdn/CTC7YRAU.js +0 -18
- package/dist/cdn/CVKEYABL.js +0 -4
- package/dist/cdn/CW3G7QFS.js +0 -18
- package/dist/cdn/CXWN46XU.js +0 -4
- package/dist/cdn/D2WVODK6.js +0 -4
- package/dist/cdn/D37JXHEV.js +0 -4
- package/dist/cdn/DA2RWFBR.js +0 -4
- package/dist/cdn/DB6YMDTC.js +0 -4
- package/dist/cdn/DCZHIM53.js +0 -4
- package/dist/cdn/DDTBMHDE.js +0 -385
- package/dist/cdn/DI4JRI7B.js +0 -4
- package/dist/cdn/DQAOXKZZ.js +0 -4
- package/dist/cdn/DQBTQ7WA.js +0 -18
- package/dist/cdn/DR37YWXO.js +0 -4
- package/dist/cdn/DTQPYWIB.js +0 -4
- package/dist/cdn/DX5ZAVMY.js +0 -4
- package/dist/cdn/E27JDCXQ.js +0 -4
- package/dist/cdn/EAQS76QZ.js +0 -4
- package/dist/cdn/ECC74KLR.js +0 -4
- package/dist/cdn/EEENCZTC.js +0 -4
- package/dist/cdn/EMWBS4WA.js +0 -18
- package/dist/cdn/EOUSEWUA.js +0 -4
- package/dist/cdn/EQ3MVJLN.js +0 -4
- package/dist/cdn/EWXCPV2X.js +0 -5
- package/dist/cdn/FD2JMETF.js +0 -18
- package/dist/cdn/FFAQ3R3T.js +0 -89
- package/dist/cdn/FFFY6LX5.js +0 -18
- package/dist/cdn/FHL2CPZT.js +0 -4
- package/dist/cdn/FID2OEYF.js +0 -4
- package/dist/cdn/FM7AGRNK.js +0 -4
- package/dist/cdn/FNE6U57W.js +0 -4
- package/dist/cdn/FNUPI5TB.js +0 -4
- package/dist/cdn/FO5BU27P.js +0 -4
- package/dist/cdn/FTF5P4HQ.js +0 -4
- package/dist/cdn/FZE37VRW.js +0 -4
- package/dist/cdn/GBLJSF3O.js +0 -18
- package/dist/cdn/GDNCH7FM.js +0 -4
- package/dist/cdn/GGN6M4IW.js +0 -4
- package/dist/cdn/GQEO4O6A.js +0 -4
- package/dist/cdn/GT7IOPMK.js +0 -4
- package/dist/cdn/GVXCIENL.js +0 -18
- package/dist/cdn/H2HVUDCU.js +0 -4
- package/dist/cdn/H35JZY2E.js +0 -4
- package/dist/cdn/HEO5YC5E.js +0 -4
- package/dist/cdn/HHILRSR3.js +0 -4
- package/dist/cdn/HL4GCE2D.js +0 -4
- package/dist/cdn/HS2SGNFL.js +0 -4
- package/dist/cdn/HZI7AR5Z.js +0 -4
- package/dist/cdn/I5HY4B6L.js +0 -18
- package/dist/cdn/I7OV3TY4.js +0 -4
- package/dist/cdn/IBFX4PWN.js +0 -18
- package/dist/cdn/IGWJ7WZQ.js +0 -4
- package/dist/cdn/IHL22CRN.js +0 -18
- package/dist/cdn/IJZ5WMRB.js +0 -4
- package/dist/cdn/ILOQ3A64.js +0 -4
- package/dist/cdn/ILW4KIM2.js +0 -4
- package/dist/cdn/IMTDRHTU.js +0 -4
- package/dist/cdn/IUNP2FEQ.js +0 -18
- package/dist/cdn/IVWVJPPG.js +0 -4
- package/dist/cdn/IZQ2GJTG.js +0 -4
- package/dist/cdn/J2VOTAZW.js +0 -4
- package/dist/cdn/JEBENHMN.js +0 -18
- package/dist/cdn/JJ33PDCY.js +0 -4
- package/dist/cdn/JKFTGZOQ.js +0 -4
- package/dist/cdn/JKXQNJEW.js +0 -4
- package/dist/cdn/JMBWWCV6.js +0 -4
- package/dist/cdn/JVKOJX2S.js +0 -4
- package/dist/cdn/JZC3ICX7.js +0 -4
- package/dist/cdn/JZIIJVDB.js +0 -4
- package/dist/cdn/K2UJVJCK.js +0 -18
- package/dist/cdn/K6ZPYGKA.js +0 -18
- package/dist/cdn/KEFKS53V.js +0 -4
- package/dist/cdn/KJ266TAM.js +0 -4
- package/dist/cdn/KMO43UXT.js +0 -25
- package/dist/cdn/KR4KMGJB.js +0 -18
- package/dist/cdn/KZFM7YTE.js +0 -18
- package/dist/cdn/L5GLQINC.js +0 -4
- package/dist/cdn/L5NUJEH6.js +0 -18
- package/dist/cdn/L7GUOPMU.js +0 -4
- package/dist/cdn/LBSP4K35.js +0 -4
- package/dist/cdn/LFNGTUHE.js +0 -4
- package/dist/cdn/LHJTXTF5.js +0 -4
- package/dist/cdn/LMVNSMV2.js +0 -29
- package/dist/cdn/LNNSONRN.js +0 -18
- package/dist/cdn/LOK5CX76.js +0 -4
- package/dist/cdn/LQJ7XXC5.js +0 -4
- package/dist/cdn/LYMRS7P6.js +0 -4
- package/dist/cdn/LZJPR4X7.js +0 -4
- package/dist/cdn/LZN5VEV6.js +0 -18
- package/dist/cdn/M2OW6QBQ.js +0 -4
- package/dist/cdn/M7I6TQVN.js +0 -4
- package/dist/cdn/MAS7EYR3.js +0 -4
- package/dist/cdn/MNNUTOFN.js +0 -4
- package/dist/cdn/MR53MAQ6.js +0 -4
- package/dist/cdn/N3IWMVZ5.js +0 -4
- package/dist/cdn/N4Z6EYO4.js +0 -18
- package/dist/cdn/N77DPTLF.js +0 -4
- package/dist/cdn/NCI5BIFP.js +0 -4
- package/dist/cdn/NG5AQI5M.js +0 -4
- package/dist/cdn/NHCXGI3Z.js +0 -4
- package/dist/cdn/NKYNFTHT.js +0 -4
- package/dist/cdn/NOVJRUUK.js +0 -4
- package/dist/cdn/NVM5PDRT.js +0 -18
- package/dist/cdn/NY6XIURZ.js +0 -82
- package/dist/cdn/NYQ4OZXY.js +0 -18
- package/dist/cdn/NZGGCRYY.js +0 -4
- package/dist/cdn/OA5X23GP.js +0 -4
- package/dist/cdn/OACHOZNB.js +0 -4
- package/dist/cdn/OC2PGR4W.js +0 -4
- package/dist/cdn/OCFWH2MU.js +0 -18
- package/dist/cdn/OCQ4MKGB.js +0 -4
- package/dist/cdn/OE4MMX4T.js +0 -4
- package/dist/cdn/OQPY5EJA.js +0 -4
- package/dist/cdn/OS52MWOK.js +0 -4
- package/dist/cdn/OXZXBSMK.js +0 -4
- package/dist/cdn/P3SCBY53.js +0 -4
- package/dist/cdn/P57EK6OT.js +0 -19
- package/dist/cdn/P5ETCO7H.js +0 -4
- package/dist/cdn/PFG6ZMZH.js +0 -18
- package/dist/cdn/PGDXLL6Y.js +0 -4
- package/dist/cdn/PIYRA3IK.js +0 -4
- package/dist/cdn/PKCDCMTI.js +0 -4
- package/dist/cdn/POBHMXVN.js +0 -4
- package/dist/cdn/PVBHNQMI.js +0 -9
- package/dist/cdn/PWNQBRTS.js +0 -4
- package/dist/cdn/PXL6KSAZ.js +0 -4
- package/dist/cdn/Q24E6XEJ.js +0 -4
- package/dist/cdn/Q4JKPYH3.js +0 -4
- package/dist/cdn/Q67QGD63.js +0 -4
- package/dist/cdn/QC4H73ZM.js +0 -4
- package/dist/cdn/QCUZ36WP.js +0 -4
- package/dist/cdn/QFI4JQHX.js +0 -4
- package/dist/cdn/QKG5BAFS.js +0 -4
- package/dist/cdn/QOFGAP4Z.js +0 -18
- package/dist/cdn/QVKG5VJZ.js +0 -4
- package/dist/cdn/QX5H4XZ4.js +0 -4
- package/dist/cdn/QZG7DRDQ.js +0 -18
- package/dist/cdn/R3RWVGJC.js +0 -4
- package/dist/cdn/RANKC4FB.js +0 -4
- package/dist/cdn/RC5HYK5Q.js +0 -4
- package/dist/cdn/RDYTTPKB.js +0 -4
- package/dist/cdn/RE4N56Q2.js +0 -18
- package/dist/cdn/RHL6NUIU.js +0 -4
- package/dist/cdn/RLKKLGY4.js +0 -18
- package/dist/cdn/RT67IRZT.js +0 -4
- package/dist/cdn/RUQI6YVJ.js +0 -4
- package/dist/cdn/RV4NW4XO.js +0 -4
- package/dist/cdn/RXU36Q5Q.js +0 -4
- package/dist/cdn/S3VHQFOC.js +0 -18
- package/dist/cdn/S4TJ224O.js +0 -18
- package/dist/cdn/SBVYCA5T.js +0 -4
- package/dist/cdn/SEQYFJN3.js +0 -4
- package/dist/cdn/SGFO45SM.js +0 -4
- package/dist/cdn/SL6H3SHV.js +0 -18
- package/dist/cdn/SOAYGRAI.js +0 -4
- package/dist/cdn/STTGVLDE.js +0 -4
- package/dist/cdn/SVGFOYCQ.js +0 -4
- package/dist/cdn/SVKD3HCO.js +0 -4
- package/dist/cdn/T2TMGGNG.js +0 -4
- package/dist/cdn/T5EHVA6S.js +0 -4
- package/dist/cdn/TANEEDP3.js +0 -4
- package/dist/cdn/TAXDYLNQ.js +0 -4
- package/dist/cdn/TKYFLPXP.js +0 -4
- package/dist/cdn/TLNGNV7G.js +0 -18
- package/dist/cdn/TN2UEPVT.js +0 -4
- package/dist/cdn/TNEMCYWH.js +0 -4
- package/dist/cdn/TO5P7NGV.js +0 -4
- package/dist/cdn/TO66PKJF.js +0 -4
- package/dist/cdn/TOJDM5UZ.js +0 -19
- package/dist/cdn/TOTUDQKH.js +0 -4
- package/dist/cdn/TPO5J63A.js +0 -4
- package/dist/cdn/TV2SJ62Y.js +0 -18
- package/dist/cdn/U6JEQWZ5.js +0 -18
- package/dist/cdn/U6QNATC3.js +0 -4
- package/dist/cdn/UAZL2ZIR.js +0 -4
- package/dist/cdn/UOSNNDWX.js +0 -4
- package/dist/cdn/UPKV6OGB.js +0 -4
- package/dist/cdn/URS66YMT.js +0 -4
- package/dist/cdn/UUFG2IPV.js +0 -4
- package/dist/cdn/UVJGULSN.js +0 -4
- package/dist/cdn/V75D7IJY.js +0 -4
- package/dist/cdn/VERTSCDD.js +0 -4
- package/dist/cdn/VF6P6PS2.js +0 -18
- package/dist/cdn/VMLVIBVL.js +0 -5
- package/dist/cdn/VPGE5727.js +0 -18
- package/dist/cdn/VTPTDE33.js +0 -4
- package/dist/cdn/VUQWNJXP.js +0 -4
- package/dist/cdn/VXDIW5WH.js +0 -4
- package/dist/cdn/VXRLLXEF.js +0 -4
- package/dist/cdn/VXVWFC3D.js +0 -4
- package/dist/cdn/VY7447H3.js +0 -4
- package/dist/cdn/W4XCDIQT.js +0 -18
- package/dist/cdn/WEERXYI7.js +0 -4
- package/dist/cdn/WERJXBD5.js +0 -4
- package/dist/cdn/WF2LBWF7.js +0 -4
- package/dist/cdn/WGSBFQ5N.js +0 -4
- package/dist/cdn/WJDDXVE5.js +0 -4
- package/dist/cdn/WVURBKDW.js +0 -18
- package/dist/cdn/WXYWYTJG.js +0 -18
- package/dist/cdn/WY23ERGW.js +0 -4
- package/dist/cdn/X74GGNIS.js +0 -18
- package/dist/cdn/XBL3EGZR.js +0 -4
- package/dist/cdn/XBOSZH7N.js +0 -4
- package/dist/cdn/XO3JIQCS.js +0 -4
- package/dist/cdn/XQ5KACZ3.js +0 -18
- package/dist/cdn/XQMJCJMU.js +0 -4
- package/dist/cdn/XU2SIPXX.js +0 -18
- package/dist/cdn/YADLOKQK.js +0 -4
- package/dist/cdn/YAGTTBJW.js +0 -4
- package/dist/cdn/YCJGW46U.js +0 -4
- package/dist/cdn/YERONLAQ.js +0 -4
- package/dist/cdn/YGKAUSDA.js +0 -18
- package/dist/cdn/YQ67CMRM.js +0 -4
- package/dist/cdn/YVGSFUVM.js +0 -18
- package/dist/cdn/Z2CJ77IR.js +0 -4
- package/dist/cdn/Z5K6UMGM.js +0 -4
- package/dist/cdn/ZANJ2QQO.js +0 -4
- package/dist/cdn/ZCHM4BFA.js +0 -21
- package/dist/cdn/ZGLJOWGH.js +0 -4
- package/dist/cdn/ZMGJ7NGP.js +0 -4
- package/dist/cdn/ZPGXJFXY.js +0 -4
- package/dist/cdn/ZQUJXA67.js +0 -4
- package/dist/cdn/ZUUYQFKK.js +0 -4
- package/dist/cdn/assets/solution-article-card/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/solution-article-card/t9n/messages.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-TW.json +0 -1
- package/dist/cdn/assets/solutions-articles/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/solutions-articles/t9n/messages.json +0 -1
- package/dist/components/solution-article-card/customElement.d.ts +0 -37
- package/dist/components/solution-article-card/customElement.js +0 -49
- package/dist/components/solution-configure-dialog/customElement.d.ts +0 -30
- package/dist/components/solution-configure-dialog/customElement.js +0 -131
- package/dist/components/solution-configure-dialog/index.d.ts +0 -13
- package/dist/components/solution-configure-dialog/index.js +0 -13
- package/dist/components/solutions-article-panel/customElement.d.ts +0 -17
- package/dist/components/solutions-article-panel/customElement.js +0 -43
- package/dist/components/solutions-articles/customElement.d.ts +0 -7
- package/dist/components/solutions-articles/customElement.js +0 -79
- package/dist/components/solutions-articles/index.d.ts +0 -11
- package/dist/components/solutions-articles/index.js +0 -11
- package/dist/components/solutions-articles-shell/customElement.d.ts +0 -7
- package/dist/components/solutions-articles-shell/customElement.js +0 -43
- package/dist/components/solutions-articles-shell/index.d.ts +0 -5
- package/dist/components/solutions-articles-shell/index.js +0 -5
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ar.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.bg.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.bs.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ca.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.cs.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.da.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.de.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.el.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.es.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.et.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.fi.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.fr.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.he.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.hr.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.hu.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.id.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.it.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ja.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ko.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.lt.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.lv.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.nl.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.no.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.pl.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.pt-BR.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.pt-PT.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ro.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.ru.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.sk.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.sl.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.sr.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.sv.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.th.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.tr.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.uk.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.vi.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.zh-CN.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.zh-HK.json +0 -0
- /package/dist/cdn/assets/{solution-article-card → solution-resource-card}/t9n/messages.zh-TW.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ar.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.bg.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.bs.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ca.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.cs.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.da.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.de.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.el.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.en.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.es.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.et.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.fi.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.fr.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.he.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.hr.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.hu.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.id.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.it.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ja.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ko.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.lt.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.lv.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.nl.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.no.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.pl.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.pt-BR.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.pt-PT.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ro.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.ru.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.sk.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.sl.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.sr.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.sv.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.th.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.tr.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.uk.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.vi.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.zh-CN.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.zh-HK.json +0 -0
- /package/dist/cdn/assets/{solutions-article-panel → solutions-resource-panel}/t9n/messages.zh-TW.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ar.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.bg.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.bs.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ca.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.cs.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.da.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.de.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.el.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.es.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.et.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.fi.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.fr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.he.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.hr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.hu.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.id.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.it.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ja.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ko.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.lt.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.lv.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.nl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.no.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.pl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.pt-BR.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.pt-PT.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ro.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.ru.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.sk.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.sl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.sr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.sv.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.th.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.tr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.uk.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.vi.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.zh-CN.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.zh-HK.json +0 -0
- /package/dist/cdn/assets/{solutions-articles → solutions-resources}/t9n/messages.zh-TW.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ar.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.bg.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.bs.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ca.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.cs.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.da.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.de.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.el.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.en.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.es.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.et.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.fi.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.fr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.he.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.hr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.hu.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.id.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.it.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ja.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ko.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.lt.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.lv.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.nl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.no.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.pl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.pt-BR.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.pt-PT.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ro.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.ru.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.sk.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.sl.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.sr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.sv.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.th.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.tr.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.uk.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.vi.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.zh-CN.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.zh-HK.json +0 -0
- /package/dist/cdn/assets/{solutions-articles-shell → solutions-resources-shell}/t9n/messages.zh-TW.json +0 -0
- /package/dist/components/{solution-article-card → solution-resource-card}/index.d.ts +0 -0
- /package/dist/components/{solution-article-card → solution-resource-card}/index.js +0 -0
- /package/dist/components/{solutions-article-panel → solutions-resource-panel}/index.d.ts +0 -0
- /package/dist/components/{solutions-article-panel → solutions-resource-panel}/index.js +0 -0
|
@@ -1,81 +1,1441 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { LitElement as
|
|
1
|
+
import { c as we } from "../../chunks/runtime.js";
|
|
2
|
+
import { ref as te } from "lit/directives/ref.js";
|
|
3
|
+
import { u as ve } from "../../chunks/useT9n.js";
|
|
4
|
+
import { LitElement as ye, createEvent as Se, nothing as O, safeClassMap as $e } from "@arcgis/lumina";
|
|
5
|
+
import { css as _e, html as b } from "lit";
|
|
6
|
+
import { unsafeHTML as Re } from "lit/directives/unsafe-html.js";
|
|
5
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
8
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
7
|
-
v1.2.0-next.
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
v1.2.0-next.30 */
|
|
10
|
+
const Te = _e`: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
|
+
/**
|
|
12
|
+
* @license
|
|
13
|
+
* Copyright 2025 Esri
|
|
14
|
+
*
|
|
15
|
+
* Licensed under the Apache License, Version 2.0 (the 'License');
|
|
16
|
+
* you may not use this file except in compliance with the License.
|
|
17
|
+
* You may obtain a copy of the License at
|
|
18
|
+
*
|
|
19
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
+
*
|
|
21
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
22
|
+
* distributed under the License is distributed on an 'AS IS' BASIS,
|
|
23
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24
|
+
* See the License for the specific language governing permissions and
|
|
25
|
+
* limitations under the License.
|
|
26
|
+
*/
|
|
27
|
+
const Ie = "https://www.arcgis.com/sharing/rest/content/items/";
|
|
28
|
+
async function Ae(n) {
|
|
29
|
+
return await ze(n);
|
|
30
|
+
}
|
|
31
|
+
async function ze(n) {
|
|
32
|
+
const e = Ie + n + "?f=json";
|
|
33
|
+
try {
|
|
34
|
+
const s = await fetch(
|
|
35
|
+
e,
|
|
36
|
+
{ method: "GET" }
|
|
37
|
+
);
|
|
38
|
+
if (!s.ok)
|
|
39
|
+
throw new Error(`HTTP error! Status: ${s.status}`);
|
|
40
|
+
return await s.json();
|
|
41
|
+
} catch (s) {
|
|
42
|
+
return { error: s.message };
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function U() {
|
|
46
|
+
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
47
|
+
}
|
|
48
|
+
var $ = U();
|
|
49
|
+
function oe(n) {
|
|
50
|
+
$ = n;
|
|
51
|
+
}
|
|
52
|
+
var A = { exec: () => null };
|
|
53
|
+
function u(n, e = "") {
|
|
54
|
+
let s = typeof n == "string" ? n : n.source, r = { replace: (t, a) => {
|
|
55
|
+
let i = typeof a == "string" ? a : a.source;
|
|
56
|
+
return i = i.replace(x.caret, "$1"), s = s.replace(t, i), r;
|
|
57
|
+
}, getRegex: () => new RegExp(s, e) };
|
|
58
|
+
return r;
|
|
59
|
+
}
|
|
60
|
+
var Ce = (() => {
|
|
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]\] +/, listTaskCheckbox: /\[[ 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") }, qe = /^(?:[ \t]*(?:\n|$))+/, Le = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ee = /^ {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+|$)/, Me = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, ce = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, he = u(ce).replace(/bull/g, j).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(), Pe = u(ce).replace(/bull/g, j).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(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Be = /^[^\n]+/, H = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Qe = u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", H).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Oe = u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).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]*?(?:-->|$))/, Ze = 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(), ue = u(F).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(), De = u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ue).getRegex(), K = { blockquote: De, code: Le, def: Qe, fences: Ee, heading: Me, hr: z, html: Ze, lheading: he, list: Oe, newline: qe, paragraph: ue, table: A, text: Be }, se = 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(), Ne = { ...K, lheading: Pe, table: se, paragraph: u(F).replace("hr", z).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", se).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(F).replace("hr", z).replace("heading", ` *#{1,6} *[^
|
|
67
|
+
]`).replace("lheading", he).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, je = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Fe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, pe = /^( {2,}|\\)\n(?!\s*$)/, He = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, P = /[\p{P}\p{S}]/u, X = /[\s\p{P}\p{S}]/u, de = /[^\s\p{P}\p{S}]/u, Ge = u(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, X).getRegex(), ge = /(?!~)[\p{P}\p{S}]/u, Ke = /(?!~)[\s\p{P}\p{S}]/u, Xe = /(?:[^\s\p{P}\p{S}]|~)/u, We = u(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Ce ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), fe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Je = u(fe, "u").replace(/punct/g, P).getRegex(), Ve = u(fe, "u").replace(/punct/g, ge).getRegex(), ke = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ye = u(ke, "gu").replace(/notPunctSpace/g, de).replace(/punctSpace/g, X).replace(/punct/g, P).getRegex(), et = u(ke, "gu").replace(/notPunctSpace/g, Xe).replace(/punctSpace/g, Ke).replace(/punct/g, ge).getRegex(), tt = u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, de).replace(/punctSpace/g, X).replace(/punct/g, P).getRegex(), st = u(/\\(punct)/, "gu").replace(/punct/g, P).getRegex(), nt = 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(), rt = u(G).replace("(?:-->|$)", "-->").getRegex(), it = 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", rt).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, at = u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), be = u(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", H).getRegex(), xe = u(/^!?\[(ref)\](?:\[\])?/).replace("ref", H).getRegex(), lt = u("reflink|nolink(?!\\()", "g").replace("reflink", be).replace("nolink", xe).getRegex(), ne = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, W = { _backpedal: A, anyPunctuation: st, autolink: nt, blockSkip: We, br: pe, code: Fe, del: A, emStrongLDelim: Je, emStrongRDelimAst: Ye, emStrongRDelimUnd: tt, escape: je, link: at, nolink: xe, punctuation: Ge, reflink: be, reflinkSearch: lt, tag: it, text: He, url: A }, ot = { ...W, link: u(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, Z = { ...W, emStrongRDelimAst: et, emStrongLDelim: Ve, url: u(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).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", ne).getRegex() }, ct = { ...Z, br: u(pe).replace("{2,}", "*").getRegex(), text: u(Z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K, gfm: Ne, pedantic: Ue }, R = { normal: W, gfm: Z, breaks: ct, pedantic: ot }, ht = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, re = (n) => ht[n];
|
|
68
|
+
function y(n, e) {
|
|
69
|
+
if (e) {
|
|
70
|
+
if (x.escapeTest.test(n)) return n.replace(x.escapeReplace, re);
|
|
71
|
+
} else if (x.escapeTestNoEncode.test(n)) return n.replace(x.escapeReplaceNoEncode, re);
|
|
72
|
+
return n;
|
|
73
|
+
}
|
|
74
|
+
function ie(n) {
|
|
75
|
+
try {
|
|
76
|
+
n = encodeURI(n).replace(x.percentDecode, "%");
|
|
77
|
+
} catch {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return n;
|
|
81
|
+
}
|
|
82
|
+
function ae(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 ? "|" : " |";
|
|
87
|
+
}), r = s.split(x.splitPipe), t = 0;
|
|
88
|
+
if (r[0].trim() || r.shift(), r.length > 0 && !r.at(-1)?.trim() && r.pop(), e) if (r.length > e) r.splice(e);
|
|
89
|
+
else for (; r.length < e; ) r.push("");
|
|
90
|
+
for (; t < r.length; t++) r[t] = r[t].trim().replace(x.slashPipe, "|");
|
|
91
|
+
return r;
|
|
92
|
+
}
|
|
93
|
+
function T(n, e, s) {
|
|
94
|
+
let r = n.length;
|
|
95
|
+
if (r === 0) return "";
|
|
96
|
+
let t = 0;
|
|
97
|
+
for (; t < r && n.charAt(r - t - 1) === e; )
|
|
98
|
+
t++;
|
|
99
|
+
return n.slice(0, r - t);
|
|
100
|
+
}
|
|
101
|
+
function ut(n, e) {
|
|
102
|
+
if (n.indexOf(e[1]) === -1) return -1;
|
|
103
|
+
let s = 0;
|
|
104
|
+
for (let r = 0; r < n.length; r++) if (n[r] === "\\") r++;
|
|
105
|
+
else if (n[r] === e[0]) s++;
|
|
106
|
+
else if (n[r] === e[1] && (s--, s < 0)) return r;
|
|
107
|
+
return s > 0 ? -2 : -1;
|
|
108
|
+
}
|
|
109
|
+
function le(n, e, s, r, t) {
|
|
110
|
+
let a = e.href, i = e.title || null, o = n[1].replace(t.other.outputLinkReplace, "$1");
|
|
111
|
+
r.state.inLink = !0;
|
|
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;
|
|
114
|
+
}
|
|
115
|
+
function pt(n, e, s) {
|
|
116
|
+
let r = n.match(s.other.indentCodeCompensation);
|
|
117
|
+
if (r === null) return e;
|
|
118
|
+
let t = r[1];
|
|
119
|
+
return e.split(`
|
|
120
|
+
`).map((a) => {
|
|
121
|
+
let i = a.match(s.other.beginningSpace);
|
|
122
|
+
if (i === null) return a;
|
|
123
|
+
let [o] = i;
|
|
124
|
+
return o.length >= t.length ? a.slice(t.length) : a;
|
|
125
|
+
}).join(`
|
|
126
|
+
`);
|
|
127
|
+
}
|
|
128
|
+
var L = class {
|
|
129
|
+
options;
|
|
130
|
+
rules;
|
|
131
|
+
lexer;
|
|
132
|
+
constructor(n) {
|
|
133
|
+
this.options = n || $;
|
|
134
|
+
}
|
|
135
|
+
space(n) {
|
|
136
|
+
let e = this.rules.block.newline.exec(n);
|
|
137
|
+
if (e && e[0].length > 0) return { type: "space", raw: e[0] };
|
|
138
|
+
}
|
|
139
|
+
code(n) {
|
|
140
|
+
let e = this.rules.block.code.exec(n);
|
|
141
|
+
if (e) {
|
|
142
|
+
let s = e[0].replace(this.rules.other.codeRemoveIndent, "");
|
|
143
|
+
return { type: "code", raw: e[0], codeBlockStyle: "indented", text: this.options.pedantic ? s : T(s, `
|
|
144
|
+
`) };
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
fences(n) {
|
|
148
|
+
let e = this.rules.block.fences.exec(n);
|
|
149
|
+
if (e) {
|
|
150
|
+
let s = e[0], r = pt(s, e[3] || "", this.rules);
|
|
151
|
+
return { type: "code", raw: s, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: r };
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
heading(n) {
|
|
155
|
+
let e = this.rules.block.heading.exec(n);
|
|
156
|
+
if (e) {
|
|
157
|
+
let s = e[2].trim();
|
|
158
|
+
if (this.rules.other.endingHash.test(s)) {
|
|
159
|
+
let r = T(s, "#");
|
|
160
|
+
(this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (s = r.trim());
|
|
161
|
+
}
|
|
162
|
+
return { type: "heading", raw: e[0], depth: e[1].length, text: s, tokens: this.lexer.inline(s) };
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
hr(n) {
|
|
166
|
+
let e = this.rules.block.hr.exec(n);
|
|
167
|
+
if (e) return { type: "hr", raw: T(e[0], `
|
|
168
|
+
`) };
|
|
169
|
+
}
|
|
170
|
+
blockquote(n) {
|
|
171
|
+
let e = this.rules.block.blockquote.exec(n);
|
|
172
|
+
if (e) {
|
|
173
|
+
let s = T(e[0], `
|
|
174
|
+
`).split(`
|
|
175
|
+
`), r = "", t = "", a = [];
|
|
176
|
+
for (; s.length > 0; ) {
|
|
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]);
|
|
180
|
+
else break;
|
|
181
|
+
s = s.slice(l);
|
|
182
|
+
let h = o.join(`
|
|
183
|
+
`), c = h.replace(this.rules.other.blockquoteSetextReplace, `
|
|
184
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
185
|
+
r = r ? `${r}
|
|
186
|
+
${h}` : h, t = t ? `${t}
|
|
187
|
+
${c}` : c;
|
|
188
|
+
let g = this.lexer.state.top;
|
|
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 + `
|
|
194
|
+
` + s.join(`
|
|
195
|
+
`), m = this.blockquote(f);
|
|
196
|
+
a[a.length - 1] = m, r = r.substring(0, r.length - k.raw.length) + m.raw, t = t.substring(0, t.length - k.text.length) + m.text;
|
|
197
|
+
break;
|
|
198
|
+
} else if (p?.type === "list") {
|
|
199
|
+
let k = p, f = k.raw + `
|
|
200
|
+
` + s.join(`
|
|
201
|
+
`), m = this.list(f);
|
|
202
|
+
a[a.length - 1] = m, r = r.substring(0, r.length - p.raw.length) + m.raw, t = t.substring(0, t.length - k.raw.length) + m.raw, s = f.substring(a.at(-1).raw.length).split(`
|
|
203
|
+
`);
|
|
204
|
+
continue;
|
|
24
205
|
}
|
|
25
|
-
} else if (this.token) {
|
|
26
|
-
const s = await this.requestAIServer(i, this.token);
|
|
27
|
-
this.conversationStore.conversationId = s.conversationId, this.conversationStore.inquiryId = s.inquiryId, this.conversationStore.ackSequenceNumber = s.sequenceNumber, this.loopRequest(s, this.token);
|
|
28
206
|
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
207
|
+
return { type: "blockquote", raw: r, tokens: a, text: t };
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
list(n) {
|
|
211
|
+
let e = this.rules.block.list.exec(n);
|
|
212
|
+
if (e) {
|
|
213
|
+
let s = e[1].trim(), r = s.length > 1, t = { type: "list", raw: "", ordered: r, start: r ? +s.slice(0, -1) : "", loose: !1, items: [] };
|
|
214
|
+
s = r ? `\\d{1,9}\\${s.slice(-1)}` : `\\${s}`, this.options.pedantic && (s = r ? s : "[*+-]");
|
|
215
|
+
let a = this.rules.other.listItemRegex(s), i = !1;
|
|
216
|
+
for (; n; ) {
|
|
217
|
+
let l = !1, h = "", c = "";
|
|
218
|
+
if (!(e = a.exec(n)) || this.rules.block.hr.test(n)) break;
|
|
219
|
+
h = e[0], n = n.substring(h.length);
|
|
220
|
+
let g = e[2].split(`
|
|
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), V = this.rules.other.hrRegex(f), Y = this.rules.other.fencesBeginRegex(f), ee = this.rules.other.headingBeginRegex(f), me = this.rules.other.htmlBeginRegex(f);
|
|
226
|
+
for (; n; ) {
|
|
227
|
+
let Q = n.split(`
|
|
228
|
+
`, 1)[0], _;
|
|
229
|
+
if (p = Q, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), _ = p) : _ = p.replace(this.rules.other.tabCharGlobal, " "), Y.test(p) || ee.test(p) || me.test(p) || B.test(p) || V.test(p)) break;
|
|
230
|
+
if (_.search(this.rules.other.nonSpaceChar) >= f || !p.trim()) c += `
|
|
231
|
+
` + _.slice(f);
|
|
232
|
+
else {
|
|
233
|
+
if (k || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(g) || ee.test(g) || V.test(g)) break;
|
|
234
|
+
c += `
|
|
235
|
+
` + p;
|
|
236
|
+
}
|
|
237
|
+
!k && !p.trim() && (k = !0), h += Q + `
|
|
238
|
+
`, n = n.substring(Q.length + 1), g = _.slice(f);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
t.loose || (i ? t.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (i = !0));
|
|
242
|
+
let m = null;
|
|
243
|
+
this.options.gfm && (m = this.rules.other.listIsTask.exec(c), m && (c = c.replace(this.rules.other.listReplaceTask, ""))), t.items.push({ type: "list_item", raw: h, task: !!m, loose: !1, text: c, tokens: [] }), t.raw += h;
|
|
244
|
+
}
|
|
245
|
+
let o = t.items.at(-1);
|
|
246
|
+
if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
|
|
247
|
+
else return;
|
|
248
|
+
t.raw = t.raw.trimEnd();
|
|
249
|
+
for (let l of t.items) {
|
|
250
|
+
if (this.lexer.state.top = !1, l.tokens = this.lexer.blockTokens(l.text, []), l.task) {
|
|
251
|
+
let h = this.rules.other.listTaskCheckbox.exec(l.raw);
|
|
252
|
+
if (h) {
|
|
253
|
+
let c = { type: "checkbox", raw: h[0] + " ", checked: h[0] !== "[ ]" };
|
|
254
|
+
l.checked = c.checked, t.loose ? l.tokens[0] && ["paragraph", "text"].includes(l.tokens[0].type) && "tokens" in l.tokens[0] && l.tokens[0].tokens ? (l.tokens[0].raw = c.raw + l.tokens[0].raw, l.tokens[0].text = c.raw + l.tokens[0].text, l.tokens[0].tokens.unshift(c)) : l.tokens.unshift({ type: "paragraph", raw: c.raw, text: c.raw, tokens: [c] }) : l.tokens.unshift(c);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
if (!t.loose) {
|
|
258
|
+
let h = l.tokens.filter((g) => g.type === "space"), c = h.length > 0 && h.some((g) => this.rules.other.anyLine.test(g.raw));
|
|
259
|
+
t.loose = c;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
if (t.loose) for (let l of t.items) {
|
|
263
|
+
l.loose = !0;
|
|
264
|
+
for (let h of l.tokens) h.type === "text" && (h.type = "paragraph");
|
|
265
|
+
}
|
|
266
|
+
return t;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
html(n) {
|
|
270
|
+
let e = this.rules.block.html.exec(n);
|
|
271
|
+
if (e) return { type: "html", block: !0, raw: e[0], pre: e[1] === "pre" || e[1] === "script" || e[1] === "style", text: e[0] };
|
|
272
|
+
}
|
|
273
|
+
def(n) {
|
|
274
|
+
let e = this.rules.block.def.exec(n);
|
|
275
|
+
if (e) {
|
|
276
|
+
let s = e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), r = 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];
|
|
277
|
+
return { type: "def", tag: s, raw: e[0], href: r, title: t };
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
table(n) {
|
|
281
|
+
let e = this.rules.block.table.exec(n);
|
|
282
|
+
if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
|
|
283
|
+
let s = ae(e[1]), r = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), t = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
284
|
+
`) : [], a = { type: "table", raw: e[0], header: [], align: [], rows: [] };
|
|
285
|
+
if (s.length === r.length) {
|
|
286
|
+
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);
|
|
287
|
+
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] });
|
|
288
|
+
for (let i of t) a.rows.push(ae(i, a.header.length).map((o, l) => ({ text: o, tokens: this.lexer.inline(o), header: !1, align: a.align[l] })));
|
|
289
|
+
return a;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
lheading(n) {
|
|
293
|
+
let e = this.rules.block.lheading.exec(n);
|
|
294
|
+
if (e) return { type: "heading", raw: e[0], depth: e[2].charAt(0) === "=" ? 1 : 2, text: e[1], tokens: this.lexer.inline(e[1]) };
|
|
295
|
+
}
|
|
296
|
+
paragraph(n) {
|
|
297
|
+
let e = this.rules.block.paragraph.exec(n);
|
|
298
|
+
if (e) {
|
|
299
|
+
let s = e[1].charAt(e[1].length - 1) === `
|
|
300
|
+
` ? e[1].slice(0, -1) : e[1];
|
|
301
|
+
return { type: "paragraph", raw: e[0], text: s, tokens: this.lexer.inline(s) };
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
text(n) {
|
|
305
|
+
let e = this.rules.block.text.exec(n);
|
|
306
|
+
if (e) return { type: "text", raw: e[0], text: e[0], tokens: this.lexer.inline(e[0]) };
|
|
307
|
+
}
|
|
308
|
+
escape(n) {
|
|
309
|
+
let e = this.rules.inline.escape.exec(n);
|
|
310
|
+
if (e) return { type: "escape", raw: e[0], text: e[1] };
|
|
311
|
+
}
|
|
312
|
+
tag(n) {
|
|
313
|
+
let e = this.rules.inline.tag.exec(n);
|
|
314
|
+
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] };
|
|
315
|
+
}
|
|
316
|
+
link(n) {
|
|
317
|
+
let e = this.rules.inline.link.exec(n);
|
|
318
|
+
if (e) {
|
|
319
|
+
let s = e[2].trim();
|
|
320
|
+
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(s)) {
|
|
321
|
+
if (!this.rules.other.endAngleBracket.test(s)) return;
|
|
322
|
+
let a = T(s.slice(0, -1), "\\");
|
|
323
|
+
if ((s.length - a.length) % 2 === 0) return;
|
|
324
|
+
} else {
|
|
325
|
+
let a = ut(e[2], "()");
|
|
326
|
+
if (a === -2) return;
|
|
327
|
+
if (a > -1) {
|
|
328
|
+
let i = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + a;
|
|
329
|
+
e[2] = e[2].substring(0, a), e[0] = e[0].substring(0, i).trim(), e[3] = "";
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
let r = e[2], t = "";
|
|
333
|
+
if (this.options.pedantic) {
|
|
334
|
+
let a = this.rules.other.pedanticHrefTitle.exec(r);
|
|
335
|
+
a && (r = a[1], t = a[3]);
|
|
336
|
+
} else t = e[3] ? e[3].slice(1, -1) : "";
|
|
337
|
+
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)), le(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);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
reflink(n, e) {
|
|
341
|
+
let s;
|
|
342
|
+
if ((s = this.rules.inline.reflink.exec(n)) || (s = this.rules.inline.nolink.exec(n))) {
|
|
343
|
+
let r = (s[2] || s[1]).replace(this.rules.other.multipleSpaceGlobal, " "), t = e[r.toLowerCase()];
|
|
344
|
+
if (!t) {
|
|
345
|
+
let a = s[0].charAt(0);
|
|
346
|
+
return { type: "text", raw: a, text: a };
|
|
347
|
+
}
|
|
348
|
+
return le(s, t, s[0], this.lexer, this.rules);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
emStrong(n, e, s = "") {
|
|
352
|
+
let r = this.rules.inline.emStrongLDelim.exec(n);
|
|
353
|
+
if (!(!r || r[3] && s.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[2]) || !s || this.rules.inline.punctuation.exec(s))) {
|
|
354
|
+
let t = [...r[0]].length - 1, a, i, o = t, l = 0, h = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
355
|
+
for (h.lastIndex = 0, e = e.slice(-1 * n.length + t); (r = h.exec(e)) != null; ) {
|
|
356
|
+
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a) continue;
|
|
357
|
+
if (i = [...a].length, r[3] || r[4]) {
|
|
358
|
+
o += i;
|
|
359
|
+
continue;
|
|
360
|
+
} else if ((r[5] || r[6]) && t % 3 && !((t + i) % 3)) {
|
|
361
|
+
l += i;
|
|
362
|
+
continue;
|
|
363
|
+
}
|
|
364
|
+
if (o -= i, o > 0) continue;
|
|
365
|
+
i = Math.min(i, i + o + l);
|
|
366
|
+
let c = [...r[0]][0].length, g = n.slice(0, t + r.index + c + i);
|
|
367
|
+
if (Math.min(t, i) % 2) {
|
|
368
|
+
let k = g.slice(1, -1);
|
|
369
|
+
return { type: "em", raw: g, text: k, tokens: this.lexer.inlineTokens(k) };
|
|
370
|
+
}
|
|
371
|
+
let p = g.slice(2, -2);
|
|
372
|
+
return { type: "strong", raw: g, text: p, tokens: this.lexer.inlineTokens(p) };
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
codespan(n) {
|
|
377
|
+
let e = this.rules.inline.code.exec(n);
|
|
378
|
+
if (e) {
|
|
379
|
+
let s = e[2].replace(this.rules.other.newLineCharGlobal, " "), r = this.rules.other.nonSpaceChar.test(s), t = this.rules.other.startingSpaceChar.test(s) && this.rules.other.endingSpaceChar.test(s);
|
|
380
|
+
return r && t && (s = s.substring(1, s.length - 1)), { type: "codespan", raw: e[0], text: s };
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
br(n) {
|
|
384
|
+
let e = this.rules.inline.br.exec(n);
|
|
385
|
+
if (e) return { type: "br", raw: e[0] };
|
|
386
|
+
}
|
|
387
|
+
del(n) {
|
|
388
|
+
let e = this.rules.inline.del.exec(n);
|
|
389
|
+
if (e) return { type: "del", raw: e[0], text: e[2], tokens: this.lexer.inlineTokens(e[2]) };
|
|
390
|
+
}
|
|
391
|
+
autolink(n) {
|
|
392
|
+
let e = this.rules.inline.autolink.exec(n);
|
|
393
|
+
if (e) {
|
|
394
|
+
let s, r;
|
|
395
|
+
return e[2] === "@" ? (s = e[1], r = "mailto:" + s) : (s = e[1], r = s), { type: "link", raw: e[0], text: s, href: r, tokens: [{ type: "text", raw: s, text: s }] };
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
url(n) {
|
|
399
|
+
let e;
|
|
400
|
+
if (e = this.rules.inline.url.exec(n)) {
|
|
401
|
+
let s, r;
|
|
402
|
+
if (e[2] === "@") s = e[0], r = "mailto:" + s;
|
|
403
|
+
else {
|
|
404
|
+
let t;
|
|
405
|
+
do
|
|
406
|
+
t = e[0], e[0] = this.rules.inline._backpedal.exec(e[0])?.[0] ?? "";
|
|
407
|
+
while (t !== e[0]);
|
|
408
|
+
s = e[0], e[1] === "www." ? r = "http://" + e[0] : r = e[0];
|
|
409
|
+
}
|
|
410
|
+
return { type: "link", raw: e[0], text: s, href: r, tokens: [{ type: "text", raw: s, text: s }] };
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
inlineText(n) {
|
|
414
|
+
let e = this.rules.inline.text.exec(n);
|
|
415
|
+
if (e) {
|
|
416
|
+
let s = this.lexer.state.inRawBlock;
|
|
417
|
+
return { type: "text", raw: e[0], text: e[0], escaped: s };
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}, w = class D {
|
|
421
|
+
tokens;
|
|
422
|
+
options;
|
|
423
|
+
state;
|
|
424
|
+
tokenizer;
|
|
425
|
+
inlineQueue;
|
|
426
|
+
constructor(e) {
|
|
427
|
+
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 };
|
|
428
|
+
let s = { other: x, block: C.normal, inline: R.normal };
|
|
429
|
+
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;
|
|
430
|
+
}
|
|
431
|
+
static get rules() {
|
|
432
|
+
return { block: C, inline: R };
|
|
433
|
+
}
|
|
434
|
+
static lex(e, s) {
|
|
435
|
+
return new D(s).lex(e);
|
|
436
|
+
}
|
|
437
|
+
static lexInline(e, s) {
|
|
438
|
+
return new D(s).inlineTokens(e);
|
|
439
|
+
}
|
|
440
|
+
lex(e) {
|
|
441
|
+
e = e.replace(x.carriageReturn, `
|
|
442
|
+
`), this.blockTokens(e, this.tokens);
|
|
443
|
+
for (let s = 0; s < this.inlineQueue.length; s++) {
|
|
444
|
+
let r = this.inlineQueue[s];
|
|
445
|
+
this.inlineTokens(r.src, r.tokens);
|
|
446
|
+
}
|
|
447
|
+
return this.inlineQueue = [], this.tokens;
|
|
448
|
+
}
|
|
449
|
+
blockTokens(e, s = [], r = !1) {
|
|
450
|
+
for (this.options.pedantic && (e = e.replace(x.tabCharGlobal, " ").replace(x.spaceLine, "")); e; ) {
|
|
451
|
+
let t;
|
|
452
|
+
if (this.options.extensions?.block?.some((i) => (t = i.call({ lexer: this }, e, s)) ? (e = e.substring(t.raw.length), s.push(t), !0) : !1)) continue;
|
|
453
|
+
if (t = this.tokenizer.space(e)) {
|
|
454
|
+
e = e.substring(t.raw.length);
|
|
455
|
+
let i = s.at(-1);
|
|
456
|
+
t.raw.length === 1 && i !== void 0 ? i.raw += `
|
|
457
|
+
` : s.push(t);
|
|
458
|
+
continue;
|
|
459
|
+
}
|
|
460
|
+
if (t = this.tokenizer.code(e)) {
|
|
461
|
+
e = e.substring(t.raw.length);
|
|
462
|
+
let i = s.at(-1);
|
|
463
|
+
i?.type === "paragraph" || i?.type === "text" ? (i.raw += (i.raw.endsWith(`
|
|
464
|
+
`) ? "" : `
|
|
465
|
+
`) + t.raw, i.text += `
|
|
466
|
+
` + t.text, this.inlineQueue.at(-1).src = i.text) : s.push(t);
|
|
467
|
+
continue;
|
|
468
|
+
}
|
|
469
|
+
if (t = this.tokenizer.fences(e)) {
|
|
470
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
if (t = this.tokenizer.heading(e)) {
|
|
474
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
475
|
+
continue;
|
|
476
|
+
}
|
|
477
|
+
if (t = this.tokenizer.hr(e)) {
|
|
478
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
479
|
+
continue;
|
|
480
|
+
}
|
|
481
|
+
if (t = this.tokenizer.blockquote(e)) {
|
|
482
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
483
|
+
continue;
|
|
484
|
+
}
|
|
485
|
+
if (t = this.tokenizer.list(e)) {
|
|
486
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
if (t = this.tokenizer.html(e)) {
|
|
490
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
493
|
+
if (t = this.tokenizer.def(e)) {
|
|
494
|
+
e = e.substring(t.raw.length);
|
|
495
|
+
let i = s.at(-1);
|
|
496
|
+
i?.type === "paragraph" || i?.type === "text" ? (i.raw += (i.raw.endsWith(`
|
|
497
|
+
`) ? "" : `
|
|
498
|
+
`) + t.raw, i.text += `
|
|
499
|
+
` + t.raw, this.inlineQueue.at(-1).src = i.text) : this.tokens.links[t.tag] || (this.tokens.links[t.tag] = { href: t.href, title: t.title }, s.push(t));
|
|
500
|
+
continue;
|
|
501
|
+
}
|
|
502
|
+
if (t = this.tokenizer.table(e)) {
|
|
503
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
504
|
+
continue;
|
|
505
|
+
}
|
|
506
|
+
if (t = this.tokenizer.lheading(e)) {
|
|
507
|
+
e = e.substring(t.raw.length), s.push(t);
|
|
508
|
+
continue;
|
|
509
|
+
}
|
|
510
|
+
let a = e;
|
|
511
|
+
if (this.options.extensions?.startBlock) {
|
|
512
|
+
let i = 1 / 0, o = e.slice(1), l;
|
|
513
|
+
this.options.extensions.startBlock.forEach((h) => {
|
|
514
|
+
l = h.call({ lexer: this }, o), typeof l == "number" && l >= 0 && (i = Math.min(i, l));
|
|
515
|
+
}), i < 1 / 0 && i >= 0 && (a = e.substring(0, i + 1));
|
|
516
|
+
}
|
|
517
|
+
if (this.state.top && (t = this.tokenizer.paragraph(a))) {
|
|
518
|
+
let i = s.at(-1);
|
|
519
|
+
r && i?.type === "paragraph" ? (i.raw += (i.raw.endsWith(`
|
|
520
|
+
`) ? "" : `
|
|
521
|
+
`) + t.raw, i.text += `
|
|
522
|
+
` + t.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = i.text) : s.push(t), r = a.length !== e.length, e = e.substring(t.raw.length);
|
|
523
|
+
continue;
|
|
524
|
+
}
|
|
525
|
+
if (t = this.tokenizer.text(e)) {
|
|
526
|
+
e = e.substring(t.raw.length);
|
|
527
|
+
let i = s.at(-1);
|
|
528
|
+
i?.type === "text" ? (i.raw += (i.raw.endsWith(`
|
|
529
|
+
`) ? "" : `
|
|
530
|
+
`) + t.raw, i.text += `
|
|
531
|
+
` + t.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = i.text) : s.push(t);
|
|
532
|
+
continue;
|
|
533
|
+
}
|
|
534
|
+
if (e) {
|
|
535
|
+
let i = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
536
|
+
if (this.options.silent) {
|
|
537
|
+
console.error(i);
|
|
538
|
+
break;
|
|
539
|
+
} else throw new Error(i);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
return this.state.top = !0, s;
|
|
543
|
+
}
|
|
544
|
+
inline(e, s = []) {
|
|
545
|
+
return this.inlineQueue.push({ src: e, tokens: s }), s;
|
|
546
|
+
}
|
|
547
|
+
inlineTokens(e, s = []) {
|
|
548
|
+
let r = e, t = null;
|
|
549
|
+
if (this.tokens.links) {
|
|
550
|
+
let l = Object.keys(this.tokens.links);
|
|
551
|
+
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));
|
|
552
|
+
}
|
|
553
|
+
for (; (t = this.tokenizer.rules.inline.anyPunctuation.exec(r)) != null; ) r = r.slice(0, t.index) + "++" + r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
554
|
+
let a;
|
|
555
|
+
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);
|
|
556
|
+
r = this.options.hooks?.emStrongMask?.call({ lexer: this }, r) ?? r;
|
|
557
|
+
let i = !1, o = "";
|
|
558
|
+
for (; e; ) {
|
|
559
|
+
i || (o = ""), i = !1;
|
|
560
|
+
let l;
|
|
561
|
+
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;
|
|
562
|
+
if (l = this.tokenizer.escape(e)) {
|
|
563
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
564
|
+
continue;
|
|
565
|
+
}
|
|
566
|
+
if (l = this.tokenizer.tag(e)) {
|
|
567
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
568
|
+
continue;
|
|
569
|
+
}
|
|
570
|
+
if (l = this.tokenizer.link(e)) {
|
|
571
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
if (l = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
575
|
+
e = e.substring(l.raw.length);
|
|
576
|
+
let c = s.at(-1);
|
|
577
|
+
l.type === "text" && c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : s.push(l);
|
|
578
|
+
continue;
|
|
579
|
+
}
|
|
580
|
+
if (l = this.tokenizer.emStrong(e, r, o)) {
|
|
581
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
582
|
+
continue;
|
|
583
|
+
}
|
|
584
|
+
if (l = this.tokenizer.codespan(e)) {
|
|
585
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
586
|
+
continue;
|
|
587
|
+
}
|
|
588
|
+
if (l = this.tokenizer.br(e)) {
|
|
589
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
590
|
+
continue;
|
|
591
|
+
}
|
|
592
|
+
if (l = this.tokenizer.del(e)) {
|
|
593
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
594
|
+
continue;
|
|
595
|
+
}
|
|
596
|
+
if (l = this.tokenizer.autolink(e)) {
|
|
597
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
598
|
+
continue;
|
|
599
|
+
}
|
|
600
|
+
if (!this.state.inLink && (l = this.tokenizer.url(e))) {
|
|
601
|
+
e = e.substring(l.raw.length), s.push(l);
|
|
602
|
+
continue;
|
|
603
|
+
}
|
|
604
|
+
let h = e;
|
|
605
|
+
if (this.options.extensions?.startInline) {
|
|
606
|
+
let c = 1 / 0, g = e.slice(1), p;
|
|
607
|
+
this.options.extensions.startInline.forEach((k) => {
|
|
608
|
+
p = k.call({ lexer: this }, g), typeof p == "number" && p >= 0 && (c = Math.min(c, p));
|
|
609
|
+
}), c < 1 / 0 && c >= 0 && (h = e.substring(0, c + 1));
|
|
610
|
+
}
|
|
611
|
+
if (l = this.tokenizer.inlineText(h)) {
|
|
612
|
+
e = e.substring(l.raw.length), l.raw.slice(-1) !== "_" && (o = l.raw.slice(-1)), i = !0;
|
|
613
|
+
let c = s.at(-1);
|
|
614
|
+
c?.type === "text" ? (c.raw += l.raw, c.text += l.text) : s.push(l);
|
|
615
|
+
continue;
|
|
616
|
+
}
|
|
617
|
+
if (e) {
|
|
618
|
+
let c = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
619
|
+
if (this.options.silent) {
|
|
620
|
+
console.error(c);
|
|
621
|
+
break;
|
|
622
|
+
} else throw new Error(c);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
return s;
|
|
626
|
+
}
|
|
627
|
+
}, E = class {
|
|
628
|
+
options;
|
|
629
|
+
parser;
|
|
630
|
+
constructor(n) {
|
|
631
|
+
this.options = n || $;
|
|
632
|
+
}
|
|
633
|
+
space(n) {
|
|
634
|
+
return "";
|
|
635
|
+
}
|
|
636
|
+
code({ text: n, lang: e, escaped: s }) {
|
|
637
|
+
let r = (e || "").match(x.notSpaceStart)?.[0], t = n.replace(x.endingNewline, "") + `
|
|
638
|
+
`;
|
|
639
|
+
return r ? '<pre><code class="language-' + y(r) + '">' + (s ? t : y(t, !0)) + `</code></pre>
|
|
640
|
+
` : "<pre><code>" + (s ? t : y(t, !0)) + `</code></pre>
|
|
641
|
+
`;
|
|
642
|
+
}
|
|
643
|
+
blockquote({ tokens: n }) {
|
|
644
|
+
return `<blockquote>
|
|
645
|
+
${this.parser.parse(n)}</blockquote>
|
|
646
|
+
`;
|
|
647
|
+
}
|
|
648
|
+
html({ text: n }) {
|
|
649
|
+
return n;
|
|
650
|
+
}
|
|
651
|
+
def(n) {
|
|
652
|
+
return "";
|
|
653
|
+
}
|
|
654
|
+
heading({ tokens: n, depth: e }) {
|
|
655
|
+
return `<h${e}>${this.parser.parseInline(n)}</h${e}>
|
|
656
|
+
`;
|
|
657
|
+
}
|
|
658
|
+
hr(n) {
|
|
659
|
+
return `<hr>
|
|
660
|
+
`;
|
|
661
|
+
}
|
|
662
|
+
list(n) {
|
|
663
|
+
let e = n.ordered, s = n.start, r = "";
|
|
664
|
+
for (let i = 0; i < n.items.length; i++) {
|
|
665
|
+
let o = n.items[i];
|
|
666
|
+
r += this.listitem(o);
|
|
667
|
+
}
|
|
668
|
+
let t = e ? "ol" : "ul", a = e && s !== 1 ? ' start="' + s + '"' : "";
|
|
669
|
+
return "<" + t + a + `>
|
|
670
|
+
` + r + "</" + t + `>
|
|
671
|
+
`;
|
|
672
|
+
}
|
|
673
|
+
listitem(n) {
|
|
674
|
+
return `<li>${this.parser.parse(n.tokens)}</li>
|
|
675
|
+
`;
|
|
676
|
+
}
|
|
677
|
+
checkbox({ checked: n }) {
|
|
678
|
+
return "<input " + (n ? 'checked="" ' : "") + 'disabled="" type="checkbox"> ';
|
|
679
|
+
}
|
|
680
|
+
paragraph({ tokens: n }) {
|
|
681
|
+
return `<p>${this.parser.parseInline(n)}</p>
|
|
682
|
+
`;
|
|
683
|
+
}
|
|
684
|
+
table(n) {
|
|
685
|
+
let e = "", s = "";
|
|
686
|
+
for (let t = 0; t < n.header.length; t++) s += this.tablecell(n.header[t]);
|
|
687
|
+
e += this.tablerow({ text: s });
|
|
688
|
+
let r = "";
|
|
689
|
+
for (let t = 0; t < n.rows.length; t++) {
|
|
690
|
+
let a = n.rows[t];
|
|
691
|
+
s = "";
|
|
692
|
+
for (let i = 0; i < a.length; i++) s += this.tablecell(a[i]);
|
|
693
|
+
r += this.tablerow({ text: s });
|
|
694
|
+
}
|
|
695
|
+
return r && (r = `<tbody>${r}</tbody>`), `<table>
|
|
696
|
+
<thead>
|
|
697
|
+
` + e + `</thead>
|
|
698
|
+
` + r + `</table>
|
|
699
|
+
`;
|
|
700
|
+
}
|
|
701
|
+
tablerow({ text: n }) {
|
|
702
|
+
return `<tr>
|
|
703
|
+
${n}</tr>
|
|
704
|
+
`;
|
|
705
|
+
}
|
|
706
|
+
tablecell(n) {
|
|
707
|
+
let e = this.parser.parseInline(n.tokens), s = n.header ? "th" : "td";
|
|
708
|
+
return (n.align ? `<${s} align="${n.align}">` : `<${s}>`) + e + `</${s}>
|
|
709
|
+
`;
|
|
710
|
+
}
|
|
711
|
+
strong({ tokens: n }) {
|
|
712
|
+
return `<strong>${this.parser.parseInline(n)}</strong>`;
|
|
713
|
+
}
|
|
714
|
+
em({ tokens: n }) {
|
|
715
|
+
return `<em>${this.parser.parseInline(n)}</em>`;
|
|
716
|
+
}
|
|
717
|
+
codespan({ text: n }) {
|
|
718
|
+
return `<code>${y(n, !0)}</code>`;
|
|
719
|
+
}
|
|
720
|
+
br(n) {
|
|
721
|
+
return "<br>";
|
|
722
|
+
}
|
|
723
|
+
del({ tokens: n }) {
|
|
724
|
+
return `<del>${this.parser.parseInline(n)}</del>`;
|
|
725
|
+
}
|
|
726
|
+
link({ href: n, title: e, tokens: s }) {
|
|
727
|
+
let r = this.parser.parseInline(s), t = ie(n);
|
|
728
|
+
if (t === null) return r;
|
|
729
|
+
n = t;
|
|
730
|
+
let a = '<a href="' + n + '"';
|
|
731
|
+
return e && (a += ' title="' + y(e) + '"'), a += ">" + r + "</a>", a;
|
|
732
|
+
}
|
|
733
|
+
image({ href: n, title: e, text: s, tokens: r }) {
|
|
734
|
+
r && (s = this.parser.parseInline(r, this.parser.textRenderer));
|
|
735
|
+
let t = ie(n);
|
|
736
|
+
if (t === null) return y(s);
|
|
737
|
+
n = t;
|
|
738
|
+
let a = `<img src="${n}" alt="${s}"`;
|
|
739
|
+
return e && (a += ` title="${y(e)}"`), a += ">", a;
|
|
740
|
+
}
|
|
741
|
+
text(n) {
|
|
742
|
+
return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : y(n.text);
|
|
743
|
+
}
|
|
744
|
+
}, J = class {
|
|
745
|
+
strong({ text: n }) {
|
|
746
|
+
return n;
|
|
747
|
+
}
|
|
748
|
+
em({ text: n }) {
|
|
749
|
+
return n;
|
|
750
|
+
}
|
|
751
|
+
codespan({ text: n }) {
|
|
752
|
+
return n;
|
|
753
|
+
}
|
|
754
|
+
del({ text: n }) {
|
|
755
|
+
return n;
|
|
756
|
+
}
|
|
757
|
+
html({ text: n }) {
|
|
758
|
+
return n;
|
|
759
|
+
}
|
|
760
|
+
text({ text: n }) {
|
|
761
|
+
return n;
|
|
762
|
+
}
|
|
763
|
+
link({ text: n }) {
|
|
764
|
+
return "" + n;
|
|
765
|
+
}
|
|
766
|
+
image({ text: n }) {
|
|
767
|
+
return "" + n;
|
|
768
|
+
}
|
|
769
|
+
br() {
|
|
770
|
+
return "";
|
|
771
|
+
}
|
|
772
|
+
checkbox({ raw: n }) {
|
|
773
|
+
return n;
|
|
774
|
+
}
|
|
775
|
+
}, v = class N {
|
|
776
|
+
options;
|
|
777
|
+
renderer;
|
|
778
|
+
textRenderer;
|
|
779
|
+
constructor(e) {
|
|
780
|
+
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();
|
|
781
|
+
}
|
|
782
|
+
static parse(e, s) {
|
|
783
|
+
return new N(s).parse(e);
|
|
784
|
+
}
|
|
785
|
+
static parseInline(e, s) {
|
|
786
|
+
return new N(s).parseInline(e);
|
|
787
|
+
}
|
|
788
|
+
parse(e) {
|
|
789
|
+
let s = "";
|
|
790
|
+
for (let r = 0; r < e.length; r++) {
|
|
791
|
+
let t = e[r];
|
|
792
|
+
if (this.options.extensions?.renderers?.[t.type]) {
|
|
793
|
+
let i = t, o = this.options.extensions.renderers[i.type].call({ parser: this }, i);
|
|
794
|
+
if (o !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(i.type)) {
|
|
795
|
+
s += o || "";
|
|
796
|
+
continue;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
let a = t;
|
|
800
|
+
switch (a.type) {
|
|
801
|
+
case "space": {
|
|
802
|
+
s += this.renderer.space(a);
|
|
803
|
+
break;
|
|
804
|
+
}
|
|
805
|
+
case "hr": {
|
|
806
|
+
s += this.renderer.hr(a);
|
|
807
|
+
break;
|
|
808
|
+
}
|
|
809
|
+
case "heading": {
|
|
810
|
+
s += this.renderer.heading(a);
|
|
811
|
+
break;
|
|
812
|
+
}
|
|
813
|
+
case "code": {
|
|
814
|
+
s += this.renderer.code(a);
|
|
815
|
+
break;
|
|
816
|
+
}
|
|
817
|
+
case "table": {
|
|
818
|
+
s += this.renderer.table(a);
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
case "blockquote": {
|
|
822
|
+
s += this.renderer.blockquote(a);
|
|
823
|
+
break;
|
|
824
|
+
}
|
|
825
|
+
case "list": {
|
|
826
|
+
s += this.renderer.list(a);
|
|
827
|
+
break;
|
|
828
|
+
}
|
|
829
|
+
case "checkbox": {
|
|
830
|
+
s += this.renderer.checkbox(a);
|
|
831
|
+
break;
|
|
832
|
+
}
|
|
833
|
+
case "html": {
|
|
834
|
+
s += this.renderer.html(a);
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
case "def": {
|
|
838
|
+
s += this.renderer.def(a);
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
case "paragraph": {
|
|
842
|
+
s += this.renderer.paragraph(a);
|
|
843
|
+
break;
|
|
844
|
+
}
|
|
845
|
+
case "text": {
|
|
846
|
+
s += this.renderer.text(a);
|
|
847
|
+
break;
|
|
848
|
+
}
|
|
849
|
+
default: {
|
|
850
|
+
let i = 'Token with "' + a.type + '" type was not found.';
|
|
851
|
+
if (this.options.silent) return console.error(i), "";
|
|
852
|
+
throw new Error(i);
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
return s;
|
|
857
|
+
}
|
|
858
|
+
parseInline(e, s = this.renderer) {
|
|
859
|
+
let r = "";
|
|
860
|
+
for (let t = 0; t < e.length; t++) {
|
|
861
|
+
let a = e[t];
|
|
862
|
+
if (this.options.extensions?.renderers?.[a.type]) {
|
|
863
|
+
let o = this.options.extensions.renderers[a.type].call({ parser: this }, a);
|
|
864
|
+
if (o !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
|
|
865
|
+
r += o || "";
|
|
866
|
+
continue;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
let i = a;
|
|
870
|
+
switch (i.type) {
|
|
871
|
+
case "escape": {
|
|
872
|
+
r += s.text(i);
|
|
873
|
+
break;
|
|
874
|
+
}
|
|
875
|
+
case "html": {
|
|
876
|
+
r += s.html(i);
|
|
877
|
+
break;
|
|
878
|
+
}
|
|
879
|
+
case "link": {
|
|
880
|
+
r += s.link(i);
|
|
881
|
+
break;
|
|
882
|
+
}
|
|
883
|
+
case "image": {
|
|
884
|
+
r += s.image(i);
|
|
885
|
+
break;
|
|
886
|
+
}
|
|
887
|
+
case "checkbox": {
|
|
888
|
+
r += s.checkbox(i);
|
|
889
|
+
break;
|
|
890
|
+
}
|
|
891
|
+
case "strong": {
|
|
892
|
+
r += s.strong(i);
|
|
893
|
+
break;
|
|
894
|
+
}
|
|
895
|
+
case "em": {
|
|
896
|
+
r += s.em(i);
|
|
897
|
+
break;
|
|
898
|
+
}
|
|
899
|
+
case "codespan": {
|
|
900
|
+
r += s.codespan(i);
|
|
901
|
+
break;
|
|
902
|
+
}
|
|
903
|
+
case "br": {
|
|
904
|
+
r += s.br(i);
|
|
905
|
+
break;
|
|
906
|
+
}
|
|
907
|
+
case "del": {
|
|
908
|
+
r += s.del(i);
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
case "text": {
|
|
912
|
+
r += s.text(i);
|
|
913
|
+
break;
|
|
914
|
+
}
|
|
915
|
+
default: {
|
|
916
|
+
let o = 'Token with "' + i.type + '" type was not found.';
|
|
917
|
+
if (this.options.silent) return console.error(o), "";
|
|
918
|
+
throw new Error(o);
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
return r;
|
|
923
|
+
}
|
|
924
|
+
}, I = class {
|
|
925
|
+
options;
|
|
926
|
+
block;
|
|
927
|
+
constructor(n) {
|
|
928
|
+
this.options = n || $;
|
|
929
|
+
}
|
|
930
|
+
static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
|
|
931
|
+
static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
|
|
932
|
+
preprocess(n) {
|
|
933
|
+
return n;
|
|
934
|
+
}
|
|
935
|
+
postprocess(n) {
|
|
936
|
+
return n;
|
|
937
|
+
}
|
|
938
|
+
processAllTokens(n) {
|
|
939
|
+
return n;
|
|
940
|
+
}
|
|
941
|
+
emStrongMask(n) {
|
|
942
|
+
return n;
|
|
943
|
+
}
|
|
944
|
+
provideLexer() {
|
|
945
|
+
return this.block ? w.lex : w.lexInline;
|
|
946
|
+
}
|
|
947
|
+
provideParser() {
|
|
948
|
+
return this.block ? v.parse : v.parseInline;
|
|
949
|
+
}
|
|
950
|
+
}, dt = class {
|
|
951
|
+
defaults = U();
|
|
952
|
+
options = this.setOptions;
|
|
953
|
+
parse = this.parseMarkdown(!0);
|
|
954
|
+
parseInline = this.parseMarkdown(!1);
|
|
955
|
+
Parser = v;
|
|
956
|
+
Renderer = E;
|
|
957
|
+
TextRenderer = J;
|
|
958
|
+
Lexer = w;
|
|
959
|
+
Tokenizer = L;
|
|
960
|
+
Hooks = I;
|
|
961
|
+
constructor(...n) {
|
|
962
|
+
this.use(...n);
|
|
963
|
+
}
|
|
964
|
+
walkTokens(n, e) {
|
|
965
|
+
let s = [];
|
|
966
|
+
for (let r of n) switch (s = s.concat(e.call(this, r)), r.type) {
|
|
967
|
+
case "table": {
|
|
968
|
+
let t = r;
|
|
969
|
+
for (let a of t.header) s = s.concat(this.walkTokens(a.tokens, e));
|
|
970
|
+
for (let a of t.rows) for (let i of a) s = s.concat(this.walkTokens(i.tokens, e));
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
case "list": {
|
|
974
|
+
let t = r;
|
|
975
|
+
s = s.concat(this.walkTokens(t.items, e));
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
default: {
|
|
979
|
+
let t = r;
|
|
980
|
+
this.defaults.extensions?.childTokens?.[t.type] ? this.defaults.extensions.childTokens[t.type].forEach((a) => {
|
|
981
|
+
let i = t[a].flat(1 / 0);
|
|
982
|
+
s = s.concat(this.walkTokens(i, e));
|
|
983
|
+
}) : t.tokens && (s = s.concat(this.walkTokens(t.tokens, e)));
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
return s;
|
|
987
|
+
}
|
|
988
|
+
use(...n) {
|
|
989
|
+
let e = this.defaults.extensions || { renderers: {}, childTokens: {} };
|
|
990
|
+
return n.forEach((s) => {
|
|
991
|
+
let r = { ...s };
|
|
992
|
+
if (r.async = this.defaults.async || r.async || !1, s.extensions && (s.extensions.forEach((t) => {
|
|
993
|
+
if (!t.name) throw new Error("extension name required");
|
|
994
|
+
if ("renderer" in t) {
|
|
995
|
+
let a = e.renderers[t.name];
|
|
996
|
+
a ? e.renderers[t.name] = function(...i) {
|
|
997
|
+
let o = t.renderer.apply(this, i);
|
|
998
|
+
return o === !1 && (o = a.apply(this, i)), o;
|
|
999
|
+
} : e.renderers[t.name] = t.renderer;
|
|
1000
|
+
}
|
|
1001
|
+
if ("tokenizer" in t) {
|
|
1002
|
+
if (!t.level || t.level !== "block" && t.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
|
|
1003
|
+
let a = e[t.level];
|
|
1004
|
+
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]));
|
|
1005
|
+
}
|
|
1006
|
+
"childTokens" in t && t.childTokens && (e.childTokens[t.name] = t.childTokens);
|
|
1007
|
+
}), r.extensions = e), s.renderer) {
|
|
1008
|
+
let t = this.defaults.renderer || new E(this.defaults);
|
|
1009
|
+
for (let a in s.renderer) {
|
|
1010
|
+
if (!(a in t)) throw new Error(`renderer '${a}' does not exist`);
|
|
1011
|
+
if (["options", "parser"].includes(a)) continue;
|
|
1012
|
+
let i = a, o = s.renderer[i], l = t[i];
|
|
1013
|
+
t[i] = (...h) => {
|
|
1014
|
+
let c = o.apply(t, h);
|
|
1015
|
+
return c === !1 && (c = l.apply(t, h)), c || "";
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
r.renderer = t;
|
|
1019
|
+
}
|
|
1020
|
+
if (s.tokenizer) {
|
|
1021
|
+
let t = this.defaults.tokenizer || new L(this.defaults);
|
|
1022
|
+
for (let a in s.tokenizer) {
|
|
1023
|
+
if (!(a in t)) throw new Error(`tokenizer '${a}' does not exist`);
|
|
1024
|
+
if (["options", "rules", "lexer"].includes(a)) continue;
|
|
1025
|
+
let i = a, o = s.tokenizer[i], l = t[i];
|
|
1026
|
+
t[i] = (...h) => {
|
|
1027
|
+
let c = o.apply(t, h);
|
|
1028
|
+
return c === !1 && (c = l.apply(t, h)), c;
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
r.tokenizer = t;
|
|
1032
|
+
}
|
|
1033
|
+
if (s.hooks) {
|
|
1034
|
+
let t = this.defaults.hooks || new I();
|
|
1035
|
+
for (let a in s.hooks) {
|
|
1036
|
+
if (!(a in t)) throw new Error(`hook '${a}' does not exist`);
|
|
1037
|
+
if (["options", "block"].includes(a)) continue;
|
|
1038
|
+
let i = a, o = s.hooks[i], l = t[i];
|
|
1039
|
+
I.passThroughHooks.has(a) ? t[i] = (h) => {
|
|
1040
|
+
if (this.defaults.async && I.passThroughHooksRespectAsync.has(a)) return (async () => {
|
|
1041
|
+
let g = await o.call(t, h);
|
|
1042
|
+
return l.call(t, g);
|
|
1043
|
+
})();
|
|
1044
|
+
let c = o.call(t, h);
|
|
1045
|
+
return l.call(t, c);
|
|
1046
|
+
} : t[i] = (...h) => {
|
|
1047
|
+
if (this.defaults.async) return (async () => {
|
|
1048
|
+
let g = await o.apply(t, h);
|
|
1049
|
+
return g === !1 && (g = await l.apply(t, h)), g;
|
|
1050
|
+
})();
|
|
1051
|
+
let c = o.apply(t, h);
|
|
1052
|
+
return c === !1 && (c = l.apply(t, h)), c;
|
|
1053
|
+
};
|
|
1054
|
+
}
|
|
1055
|
+
r.hooks = t;
|
|
1056
|
+
}
|
|
1057
|
+
if (s.walkTokens) {
|
|
1058
|
+
let t = this.defaults.walkTokens, a = s.walkTokens;
|
|
1059
|
+
r.walkTokens = function(i) {
|
|
1060
|
+
let o = [];
|
|
1061
|
+
return o.push(a.call(this, i)), t && (o = o.concat(t.call(this, i))), o;
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
this.defaults = { ...this.defaults, ...r };
|
|
1065
|
+
}), this;
|
|
1066
|
+
}
|
|
1067
|
+
setOptions(n) {
|
|
1068
|
+
return this.defaults = { ...this.defaults, ...n }, this;
|
|
1069
|
+
}
|
|
1070
|
+
lexer(n, e) {
|
|
1071
|
+
return w.lex(n, e ?? this.defaults);
|
|
1072
|
+
}
|
|
1073
|
+
parser(n, e) {
|
|
1074
|
+
return v.parse(n, e ?? this.defaults);
|
|
1075
|
+
}
|
|
1076
|
+
parseMarkdown(n) {
|
|
1077
|
+
return (e, s) => {
|
|
1078
|
+
let r = { ...s }, t = { ...this.defaults, ...r }, a = this.onError(!!t.silent, !!t.async);
|
|
1079
|
+
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."));
|
|
1080
|
+
if (typeof e > "u" || e === null) return a(new Error("marked(): input parameter is undefined or null"));
|
|
1081
|
+
if (typeof e != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
|
|
1082
|
+
if (t.hooks && (t.hooks.options = t, t.hooks.block = n), t.async) return (async () => {
|
|
1083
|
+
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;
|
|
1084
|
+
t.walkTokens && await Promise.all(this.walkTokens(l, t.walkTokens));
|
|
1085
|
+
let h = await (t.hooks ? await t.hooks.provideParser() : n ? v.parse : v.parseInline)(l, t);
|
|
1086
|
+
return t.hooks ? await t.hooks.postprocess(h) : h;
|
|
1087
|
+
})().catch(a);
|
|
47
1088
|
try {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1089
|
+
t.hooks && (e = t.hooks.preprocess(e));
|
|
1090
|
+
let i = (t.hooks ? t.hooks.provideLexer() : n ? w.lex : w.lexInline)(e, t);
|
|
1091
|
+
t.hooks && (i = t.hooks.processAllTokens(i)), t.walkTokens && this.walkTokens(i, t.walkTokens);
|
|
1092
|
+
let o = (t.hooks ? t.hooks.provideParser() : n ? v.parse : v.parseInline)(i, t);
|
|
1093
|
+
return t.hooks && (o = t.hooks.postprocess(o)), o;
|
|
1094
|
+
} catch (i) {
|
|
1095
|
+
return a(i);
|
|
51
1096
|
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1097
|
+
};
|
|
1098
|
+
}
|
|
1099
|
+
onError(n, e) {
|
|
1100
|
+
return (s) => {
|
|
1101
|
+
if (s.message += `
|
|
1102
|
+
Please report this to https://github.com/markedjs/marked.`, n) {
|
|
1103
|
+
let r = "<p>An error occurred:</p><pre>" + y(s.message + "", !0) + "</pre>";
|
|
1104
|
+
return e ? Promise.resolve(r) : r;
|
|
1105
|
+
}
|
|
1106
|
+
if (e) return Promise.reject(s);
|
|
1107
|
+
throw s;
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
}, S = new dt();
|
|
1111
|
+
function d(n, e) {
|
|
1112
|
+
return S.parse(n, e);
|
|
1113
|
+
}
|
|
1114
|
+
d.options = d.setOptions = function(n) {
|
|
1115
|
+
return S.setOptions(n), d.defaults = S.defaults, oe(d.defaults), d;
|
|
1116
|
+
};
|
|
1117
|
+
d.getDefaults = U;
|
|
1118
|
+
d.defaults = $;
|
|
1119
|
+
d.use = function(...n) {
|
|
1120
|
+
return S.use(...n), d.defaults = S.defaults, oe(d.defaults), d;
|
|
1121
|
+
};
|
|
1122
|
+
d.walkTokens = function(n, e) {
|
|
1123
|
+
return S.walkTokens(n, e);
|
|
1124
|
+
};
|
|
1125
|
+
d.parseInline = S.parseInline;
|
|
1126
|
+
d.Parser = v;
|
|
1127
|
+
d.parser = v.parse;
|
|
1128
|
+
d.Renderer = E;
|
|
1129
|
+
d.TextRenderer = J;
|
|
1130
|
+
d.Lexer = w;
|
|
1131
|
+
d.lexer = w.lex;
|
|
1132
|
+
d.Tokenizer = L;
|
|
1133
|
+
d.Hooks = I;
|
|
1134
|
+
d.parse = d;
|
|
1135
|
+
d.options;
|
|
1136
|
+
d.setOptions;
|
|
1137
|
+
d.use;
|
|
1138
|
+
d.walkTokens;
|
|
1139
|
+
d.parseInline;
|
|
1140
|
+
v.parse;
|
|
1141
|
+
w.lex;
|
|
1142
|
+
class gt extends ye {
|
|
1143
|
+
constructor() {
|
|
1144
|
+
super(), this.serverRoot = "https://aiservices-beta.arcgis.com", this.token = null, this.open = !1, this.conversationStore = {
|
|
57
1145
|
conversationId: null,
|
|
58
1146
|
inquiryId: null,
|
|
59
1147
|
ackSequenceNumber: null
|
|
60
|
-
}, this.
|
|
1148
|
+
}, this._isLoading = !1, this._isLoadingText = "", this.messages = [], this._translations = ve({ name: "arcgis-solutions-assistant", blocking: !0 }), this.closeAssistant = Se(), this._resetConversation = () => {
|
|
1149
|
+
this.conversationStore.conversationId = null, this.conversationStore.inquiryId = null, this.conversationStore.ackSequenceNumber = null;
|
|
1150
|
+
}, this._setMessageContainerRef = (e) => {
|
|
1151
|
+
this._chatContainer = e;
|
|
1152
|
+
}, this._setInputRef = (e) => {
|
|
1153
|
+
this._inputRef = e, this._inputRef.addEventListener("keydown", (s) => {
|
|
1154
|
+
s.key === "Enter" && !s.shiftKey && (s.preventDefault(), this.handleSendMessage());
|
|
1155
|
+
}), setTimeout(() => {
|
|
1156
|
+
this._inputRef?.focus();
|
|
1157
|
+
}, 100);
|
|
1158
|
+
}, this._submitQuestion = (e) => {
|
|
1159
|
+
this._inputRef && (this._inputRef.value = e, this.handleSendMessage());
|
|
1160
|
+
}, this.listenOn(window, "submitQuestion", (e) => {
|
|
1161
|
+
this._submitQuestion(e.detail);
|
|
1162
|
+
});
|
|
61
1163
|
}
|
|
62
1164
|
static {
|
|
63
|
-
this.properties = {
|
|
1165
|
+
this.properties = { serverRoot: 1, token: 1, open: 5, conversationStore: 16, _isLoading: 16, _isLoadingText: 16, messages: 16, _translations: 16 };
|
|
64
1166
|
}
|
|
65
1167
|
static {
|
|
66
|
-
this.styles =
|
|
1168
|
+
this.styles = Te;
|
|
67
1169
|
}
|
|
68
|
-
|
|
69
|
-
return
|
|
1170
|
+
get solutionAIurl() {
|
|
1171
|
+
return `${this.serverRoot}/skills/solution_deployment/chat`;
|
|
1172
|
+
}
|
|
1173
|
+
get docAIurl() {
|
|
1174
|
+
return `${this.serverRoot}/skills/doc_ai_assistant/chat`;
|
|
1175
|
+
}
|
|
1176
|
+
async handleSendMessage() {
|
|
1177
|
+
if (!this._inputRef?.value.trim())
|
|
1178
|
+
return;
|
|
1179
|
+
this._isLoading = !0;
|
|
1180
|
+
const e = this._inputRef.value.trim();
|
|
1181
|
+
this._inputRef.value = "";
|
|
1182
|
+
let s = {
|
|
1183
|
+
message: e,
|
|
1184
|
+
context: {
|
|
1185
|
+
debug: !1,
|
|
1186
|
+
kind: "SolutionRequest"
|
|
1187
|
+
}
|
|
1188
|
+
};
|
|
1189
|
+
if (this.conversationStore.conversationId !== null) {
|
|
1190
|
+
if (s.conversationId = this.conversationStore.conversationId, this.token) {
|
|
1191
|
+
const r = {
|
|
1192
|
+
author: "human",
|
|
1193
|
+
conversationId: this.conversationStore.conversationId ? this.conversationStore.conversationId : "",
|
|
1194
|
+
message: e,
|
|
1195
|
+
render: this._renderSimpleTextMessage(e, "human", "", "Other")
|
|
1196
|
+
};
|
|
1197
|
+
this.messages = [...this.messages, r];
|
|
1198
|
+
const t = await this.requestAIServer(s, this.token, this.solutionAIurl);
|
|
1199
|
+
this.loopRequest(t, this.token, this.solutionAIurl);
|
|
1200
|
+
}
|
|
1201
|
+
} else if (this.token) {
|
|
1202
|
+
const r = {
|
|
1203
|
+
author: "human",
|
|
1204
|
+
message: e,
|
|
1205
|
+
render: this._renderSimpleTextMessage(e, "human", "", "Other")
|
|
1206
|
+
};
|
|
1207
|
+
this.messages = [...this.messages, r];
|
|
1208
|
+
const t = await this.requestAIServer(s, this.token, this.solutionAIurl);
|
|
1209
|
+
this.conversationStore.conversationId = t.conversationId, this.conversationStore.inquiryId = t.inquiryId, this.conversationStore.ackSequenceNumber = t.sequenceNumber, this.loopRequest(t, this.token, this.solutionAIurl);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
async loopRequest(e, s, r) {
|
|
1213
|
+
let t = e, a = r;
|
|
1214
|
+
for (this._isLoading = !0; t.hasMore; ) {
|
|
1215
|
+
const i = {
|
|
1216
|
+
conversationId: t.conversationId,
|
|
1217
|
+
ackSequenceNumber: t.sequenceNumber,
|
|
1218
|
+
inquiryId: t.inquiryId
|
|
1219
|
+
};
|
|
1220
|
+
if (t = await this.requestAIServer(i, s, a), t.context)
|
|
1221
|
+
if (this.conversationStore.context = t.context, t.context.intent)
|
|
1222
|
+
switch (t.context.intent) {
|
|
1223
|
+
case "Solution question":
|
|
1224
|
+
this.messages.push({
|
|
1225
|
+
author: "ai",
|
|
1226
|
+
conversationId: t.conversationId,
|
|
1227
|
+
intent: "Solution question",
|
|
1228
|
+
message: t.message ?? ""
|
|
1229
|
+
});
|
|
1230
|
+
const o = {
|
|
1231
|
+
message: t.message,
|
|
1232
|
+
conversationId: i.conversationId,
|
|
1233
|
+
context: {
|
|
1234
|
+
kind: "DocAIAssistantRequest",
|
|
1235
|
+
filters: {
|
|
1236
|
+
products: "ArcGIS Solutions"
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
};
|
|
1240
|
+
a = this.docAIurl, t = await this.requestAIServer(o, s, a);
|
|
1241
|
+
break;
|
|
1242
|
+
case "Recommend solution":
|
|
1243
|
+
if (t.context.results) {
|
|
1244
|
+
const h = {
|
|
1245
|
+
author: "ai",
|
|
1246
|
+
conversationId: t.conversationId,
|
|
1247
|
+
message: t.message ?? "",
|
|
1248
|
+
intent: "Recommend solution",
|
|
1249
|
+
render: this._renderSuggestedSolutions(t.message ?? "", t.context.results, t.conversationId, "Recommend solution")
|
|
1250
|
+
};
|
|
1251
|
+
this.messages.push(h);
|
|
1252
|
+
}
|
|
1253
|
+
break;
|
|
1254
|
+
default:
|
|
1255
|
+
this.messages.push({
|
|
1256
|
+
author: "ai",
|
|
1257
|
+
conversationId: t.conversationId,
|
|
1258
|
+
message: t.message ?? "",
|
|
1259
|
+
intent: "Other",
|
|
1260
|
+
render: this._renderSimpleTextMessage(t.message ?? "", "ai", t.conversationId, "Other")
|
|
1261
|
+
});
|
|
1262
|
+
break;
|
|
1263
|
+
}
|
|
1264
|
+
else if (t.context.results) {
|
|
1265
|
+
for (const o of t.context.results)
|
|
1266
|
+
if (o.reply !== "") {
|
|
1267
|
+
this._isLoadingText = "";
|
|
1268
|
+
const l = await Promise.resolve(d(o.reply));
|
|
1269
|
+
this.messages.push({
|
|
1270
|
+
message: l,
|
|
1271
|
+
author: "ai",
|
|
1272
|
+
conversationId: t.conversationId,
|
|
1273
|
+
intent: "Solution question",
|
|
1274
|
+
render: this._renderDocAssistantResults(l, o.reply, o.ref, o.followupQuestions, t.conversationId, "Solution question")
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
} else {
|
|
1278
|
+
t.context.kind && t.context.kind.toLowerCase() === "ArcGISErrorAsContext".toLowerCase() ? this.messages.push({
|
|
1279
|
+
author: "ai",
|
|
1280
|
+
conversationId: t.conversationId,
|
|
1281
|
+
message: t.message ?? "",
|
|
1282
|
+
intent: "Error",
|
|
1283
|
+
render: this._renderSimpleTextMessage(this._translations.genericErrorMessage, "ai", t.conversationId, "Error")
|
|
1284
|
+
}) : this.messages.push({
|
|
1285
|
+
author: "ai",
|
|
1286
|
+
conversationId: t.conversationId,
|
|
1287
|
+
message: t.message ?? "",
|
|
1288
|
+
intent: "Other",
|
|
1289
|
+
render: this._renderSimpleTextMessage(t.message ?? "", "ai", t.conversationId, "Error")
|
|
1290
|
+
});
|
|
1291
|
+
break;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
this._isLoading = !1;
|
|
1295
|
+
}
|
|
1296
|
+
async requestAIServer(e, s, r) {
|
|
1297
|
+
try {
|
|
1298
|
+
const a = await (await fetch(r, {
|
|
1299
|
+
method: "POST",
|
|
1300
|
+
headers: {
|
|
1301
|
+
"Content-Type": "application/json",
|
|
1302
|
+
token: s
|
|
1303
|
+
},
|
|
1304
|
+
body: JSON.stringify(e)
|
|
1305
|
+
})).json();
|
|
1306
|
+
if (a)
|
|
1307
|
+
return a;
|
|
1308
|
+
throw new Error("No data returned");
|
|
1309
|
+
} catch (t) {
|
|
1310
|
+
throw new Error(`Request failed: ${t}`);
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
resetChat() {
|
|
1314
|
+
const e = this.messages[this.messages.length - 1];
|
|
1315
|
+
if (e.author !== "system" && e.conversationId !== "-1") {
|
|
1316
|
+
this._resetConversation();
|
|
1317
|
+
const s = {
|
|
1318
|
+
author: "system",
|
|
1319
|
+
conversationId: "-1",
|
|
1320
|
+
message: this._translations.newConversationStarted,
|
|
1321
|
+
render: this._renderSimpleTextMessage(this._translations.newConversationStarted, "system", "", "Other", "speech-bubble-plus")
|
|
1322
|
+
};
|
|
1323
|
+
this.messages = [...this.messages, s], this._inputRef && (this._inputRef.value = "");
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
willUpdate(e) {
|
|
1327
|
+
this.messages.length === 0 && this._translations.defaultStartUpMessage && (this.messages = [
|
|
1328
|
+
{
|
|
1329
|
+
author: "ai",
|
|
1330
|
+
conversationId: "",
|
|
1331
|
+
message: this._translations.defaultStartUpMessage,
|
|
1332
|
+
render: this._renderSimpleTextMessage(this._translations.defaultStartUpMessage, "ai", "", "Other")
|
|
1333
|
+
}
|
|
1334
|
+
]);
|
|
1335
|
+
}
|
|
1336
|
+
updated(e) {
|
|
1337
|
+
(e.size || this._isLoading) && this._scrollToBottom();
|
|
1338
|
+
}
|
|
1339
|
+
_renderFeedback(e, s, r, t) {
|
|
1340
|
+
return b`<div><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-up label="position feedback" kind=neutral @click=${() => {
|
|
1341
|
+
this._sendFeedback(e, s, "Good", r, t);
|
|
1342
|
+
}}></calcite-button><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=thumbs-down label="position feedback" kind=neutral @click=${() => {
|
|
1343
|
+
this._sendFeedback(e, s, "Bad", r, t);
|
|
1344
|
+
}}></calcite-button><calcite-button appearance=transparent class="height-32-flex-auto" icon-start=copy label="position feedback" kind=neutral @click=${(a) => {
|
|
1345
|
+
this._copyResponseToClipboard(e, a);
|
|
1346
|
+
}}></calcite-button></div>`;
|
|
1347
|
+
}
|
|
1348
|
+
_renderSolutionQuestionReferences(e) {
|
|
1349
|
+
return e.map((s) => b`<div class="message-content-pad"><a href=${s.url ?? O} target=_blank>${s.title}</a></div>`);
|
|
1350
|
+
}
|
|
1351
|
+
_renderSolutionQuestionFollowup(e) {
|
|
1352
|
+
return e.map((s) => b`<calcite-chip class="chip-content cursor-pointer" kind=brand .label=${s} @click=${() => {
|
|
1353
|
+
this._submitFollowupQuestion(s);
|
|
1354
|
+
}}>${s}</calcite-chip>`);
|
|
1355
|
+
}
|
|
1356
|
+
_renderSolutionsQuestionTable(e, s, r) {
|
|
1357
|
+
const t = this._renderSolutionQuestionReferences(s), a = this._renderSolutionQuestionFollowup(r);
|
|
1358
|
+
return b`<div><div slot=description class="message-content">${Re(e)}<div style="display: flex; justify-content: flex-start;"><calcite-button appearance=outline icon-end=chevron-down icon-start=link @click=${(i) => {
|
|
1359
|
+
const o = i.currentTarget.parentElement?.nextElementSibling;
|
|
1360
|
+
o.classList.toggle("collapsed"), i.currentTarget.setAttribute("icon-end", o.classList.contains("collapsed") ? "chevron-down" : "chevron-up");
|
|
1361
|
+
}}>${`${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>`;
|
|
1362
|
+
}
|
|
1363
|
+
_renderSolutionCard(e, s) {
|
|
1364
|
+
return b`<a class="solution-card" id=${s ?? O} @click=${() => {
|
|
1365
|
+
this._emitItemIdFromAI(s);
|
|
1366
|
+
}}>${b`<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>`;
|
|
1367
|
+
}
|
|
1368
|
+
_renderExistingSolutionsTable(e, s) {
|
|
1369
|
+
const r = s.map((t) => {
|
|
1370
|
+
const a = t.thumbnail.match(/\/items\/([a-f0-9]+)\//);
|
|
1371
|
+
return a ? this._renderSolutionCard(t, a[1]) : null;
|
|
1372
|
+
}).filter((t) => t !== null);
|
|
1373
|
+
return b`<div><div slot=description class="message-content"><div class="message-content-summary">${e}</div>${r}</div></div>`;
|
|
1374
|
+
}
|
|
1375
|
+
_renderSimpleTextMessage(e, s, r, t, a) {
|
|
1376
|
+
const i = this.messages.length >= 2 ? this._getMostRecentQuestion() : "", o = typeof i == "string" ? "" : i?.message ?? "";
|
|
1377
|
+
return s === "system" ? b`<div class="message-content message-content-alignment">${a && b`<calcite-icon .icon=${a}></calcite-icon>` || ""}${e}</div>` : b`<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>`;
|
|
1378
|
+
}
|
|
1379
|
+
_renderDocAssistantResults(e, s, r, t, a, i) {
|
|
1380
|
+
const o = this._getMostRecentQuestion();
|
|
1381
|
+
return b`<calcite-card class="system-message"><div class="message-content">${this._renderSolutionsQuestionTable(e, r, t)}${this._renderFeedback(s, o?.message ?? "", a, i)}</div></calcite-card>`;
|
|
1382
|
+
}
|
|
1383
|
+
_renderSuggestedSolutions(e, s, r, t) {
|
|
1384
|
+
const a = this._getMostRecentQuestion(), i = s.map((o) => `- ${o.title}`).join(`
|
|
1385
|
+
`);
|
|
1386
|
+
return b`<calcite-card class="system-message"><div class="message-content">${this._renderExistingSolutionsTable(e, s)}${this._renderFeedback(e + `
|
|
1387
|
+
` + i.toString(), a?.message ?? "", r, t)}</div></calcite-card>`;
|
|
70
1388
|
}
|
|
71
1389
|
render() {
|
|
72
|
-
return
|
|
1390
|
+
return b`<calcite-dialog class="chat-panel" .open=${this.open} resizable .heading=${this._translations.solutionAssistantTitle} id=example-dialog placement=bottom-start @calciteDialogClose=${() => {
|
|
1391
|
+
this.closeAssistant.emit(!0), this.open = !1;
|
|
1392
|
+
}}><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 ? b`<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" ${te(this._setMessageContainerRef)}>${this.messages.map((e) => e.render)}${this._isLoading && b`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText != "" && b`<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 ${te(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>`;
|
|
1393
|
+
}
|
|
1394
|
+
_scrollToBottom() {
|
|
1395
|
+
this._chatContainer && setTimeout(() => {
|
|
1396
|
+
this._chatContainer && (this._chatContainer.scrollTop = this._chatContainer.scrollHeight);
|
|
1397
|
+
}, 100);
|
|
1398
|
+
}
|
|
1399
|
+
_emitItemIdFromAI(e) {
|
|
1400
|
+
this._querySolutions(e).then((s) => {
|
|
1401
|
+
const t = s.typeKeywords.filter((i) => i.includes("solutionid")), a = new CustomEvent("solutionIDFromAssistant", {
|
|
1402
|
+
detail: t.length > 0 ? t[0] : e,
|
|
1403
|
+
bubbles: !0,
|
|
1404
|
+
composed: !0
|
|
1405
|
+
});
|
|
1406
|
+
window.dispatchEvent(a);
|
|
1407
|
+
});
|
|
1408
|
+
}
|
|
1409
|
+
_submitFollowupQuestion(e) {
|
|
1410
|
+
const s = new CustomEvent("submitQuestion", {
|
|
1411
|
+
detail: e,
|
|
1412
|
+
bubbles: !0,
|
|
1413
|
+
composed: !0
|
|
1414
|
+
});
|
|
1415
|
+
window.dispatchEvent(s);
|
|
1416
|
+
}
|
|
1417
|
+
_getMostRecentQuestion() {
|
|
1418
|
+
return [...this.messages].reverse().find((e) => e.author === "human") || null;
|
|
1419
|
+
}
|
|
1420
|
+
async _querySolutions(e) {
|
|
1421
|
+
const s = await Ae(e);
|
|
1422
|
+
if ("error" in s)
|
|
1423
|
+
throw new Error(s.error);
|
|
1424
|
+
return s;
|
|
1425
|
+
}
|
|
1426
|
+
_sendFeedback(e, s, r, t, a) {
|
|
1427
|
+
const 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")}`;
|
|
1428
|
+
window.open(i, "_blank");
|
|
73
1429
|
}
|
|
74
|
-
|
|
75
|
-
|
|
1430
|
+
_copyResponseToClipboard(e, s) {
|
|
1431
|
+
navigator.clipboard.writeText(e);
|
|
1432
|
+
const r = s.currentTarget;
|
|
1433
|
+
r.iconStart = "check", setTimeout(() => {
|
|
1434
|
+
r.iconStart = "copy";
|
|
1435
|
+
}, 3e3);
|
|
76
1436
|
}
|
|
77
1437
|
}
|
|
78
|
-
|
|
1438
|
+
we("arcgis-solutions-assistant", gt);
|
|
79
1439
|
export {
|
|
80
|
-
|
|
1440
|
+
gt as ArcgisSolutionsAssistant
|
|
81
1441
|
};
|