@esri/solutions-components 1.1.0-next.20250804 → 1.1.0-next.20250805
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{LZQ4FPMV.js → 2GZOS2KK.js} +2 -2
- package/dist/cdn/{JJ273SNZ.js → 2HD2VSDE.js} +2 -2
- package/dist/cdn/{2IUUDF7W.js → 2J6B6MYD.js} +1 -1
- package/dist/cdn/{FM2YTGSH.js → 2RDZT3HY.js} +2 -2
- package/dist/cdn/{SUFBRQSQ.js → 2SKQ276W.js} +1 -1
- package/dist/cdn/{A67IKYHW.js → 2WV6FKR2.js} +2 -2
- package/dist/cdn/{TVE3SWML.js → 2ZLOSH7Y.js} +2 -2
- package/dist/cdn/{NJG24YVB.js → 33BJEK5G.js} +2 -2
- package/dist/cdn/{VYDO327K.js → 3I2OPOC3.js} +2 -2
- package/dist/cdn/{Y2I7B42B.js → 3JQ57R5L.js} +1 -1
- package/dist/cdn/{3UIPAYNA.js → 3LO343UW.js} +2 -2
- package/dist/cdn/{NOPHR34M.js → 3OJA72EQ.js} +2 -2
- package/dist/cdn/{OTZTQ2VQ.js → 3R2EHQXY.js} +2 -2
- package/dist/cdn/{GQRKGQNV.js → 3RT4YQAX.js} +2 -2
- package/dist/cdn/{ASHUGWOC.js → 3VVVED3A.js} +2 -2
- package/dist/cdn/{IAPBKDX5.js → 3WL35JH2.js} +2 -2
- package/dist/cdn/3Z6KYNQU.js +4 -0
- package/dist/cdn/{MLOT2NB2.js → 44GDA3KH.js} +2 -2
- package/dist/cdn/{4HDK7HAO.js → 4E2DDRVF.js} +2 -2
- package/dist/cdn/{KKTWS5R3.js → 4JEVLL6V.js} +2 -2
- package/dist/cdn/{XVDLFOD6.js → 4R3UNRG6.js} +2 -2
- package/dist/cdn/{BTX2SLF4.js → 4XFNEG4A.js} +2 -2
- package/dist/cdn/{ZVOQGYWY.js → 55C6B2OK.js} +2 -2
- package/dist/cdn/{AGSXX26T.js → 56PTP455.js} +2 -2
- package/dist/cdn/{FDU23JEN.js → 5HTY24LH.js} +2 -2
- package/dist/cdn/{MFHK7DKH.js → 5JWWBXAA.js} +2 -2
- package/dist/cdn/{QTPRUZQW.js → 5LNMUFJT.js} +2 -2
- package/dist/cdn/{6VYTY7J6.js → 5PWG33WO.js} +2 -2
- package/dist/cdn/{T7IUOP77.js → 6CEYZTZA.js} +2 -2
- package/dist/cdn/{JYOOJOGL.js → 6HCSXP5D.js} +2 -2
- package/dist/cdn/{Z44T45GT.js → 6HVOZTQR.js} +2 -2
- package/dist/cdn/{P44L6E7C.js → 6NH3CCBF.js} +2 -2
- package/dist/cdn/{JRVEBIOC.js → 6O2T6D6A.js} +2 -2
- package/dist/cdn/{QDE6GAEL.js → 6PHIYPSU.js} +2 -2
- package/dist/cdn/{TLARAEER.js → 6PLJ2FYW.js} +2 -2
- package/dist/cdn/{PSG4RSCT.js → 6ULGEYFE.js} +2 -2
- package/dist/cdn/{XNZIKTAG.js → 6X7BRMEU.js} +2 -2
- package/dist/cdn/{RXAKD247.js → 6ZAJFBA6.js} +2 -2
- package/dist/cdn/{RLGCX67K.js → 72A27AFF.js} +2 -2
- package/dist/cdn/{PMZ5WB6C.js → 7542BUDO.js} +2 -2
- package/dist/cdn/{FWUHKSS7.js → 76DEPMZ5.js} +2 -2
- package/dist/cdn/{TJEMS4LZ.js → 7FWIZG5Z.js} +2 -2
- package/dist/cdn/{56M45FFO.js → 7WRVU2GG.js} +2 -2
- package/dist/cdn/{63DQNUCA.js → A3TXUOZ4.js} +1 -1
- package/dist/cdn/{5EBHLME5.js → AF7FDKVX.js} +2 -2
- package/dist/cdn/{MPGGUH4K.js → AG6GYAFP.js} +2 -2
- package/dist/cdn/{QYWVIB4H.js → AJPSBMVC.js} +2 -2
- package/dist/cdn/{MSIUS7CS.js → ANRBD6PG.js} +2 -2
- package/dist/cdn/{J6QSHH76.js → AOFFXP2O.js} +2 -2
- package/dist/cdn/{32NRDIX4.js → AQNIHDKY.js} +2 -2
- package/dist/cdn/{XULFPBP6.js → AXUGVBHF.js} +2 -2
- package/dist/cdn/{HQTKZXQW.js → B2DSQZNG.js} +2 -2
- package/dist/cdn/{7HFXPJAS.js → B54PDB5Z.js} +2 -2
- package/dist/cdn/{TYLIWK4T.js → BBL4ZXCQ.js} +2 -2
- package/dist/cdn/{ALCKJU52.js → BDUW5TZD.js} +2 -2
- package/dist/cdn/{MPM4KDBW.js → BFXBQLJK.js} +2 -2
- package/dist/cdn/{A2U6UU3J.js → BJBRFG23.js} +2 -2
- package/dist/cdn/{VLTYMTZ3.js → BM2CTLXF.js} +2 -2
- package/dist/cdn/{FH7KMOQC.js → BMCLDOUD.js} +2 -2
- package/dist/cdn/{TKSHKCPB.js → BMVSAQBC.js} +2 -2
- package/dist/cdn/{3YIYAWOH.js → BOK5NUWK.js} +2 -2
- package/dist/cdn/{5MIYOPHC.js → BXGDO7U6.js} +2 -2
- package/dist/cdn/{27I3AP5X.js → BZPXB24X.js} +2 -2
- package/dist/cdn/{QOWVXWJR.js → C26S3PRR.js} +2 -2
- package/dist/cdn/{QBYSBJGO.js → C27D5LN3.js} +2 -2
- package/dist/cdn/{GXC7MW7H.js → C4HKMYF3.js} +2 -2
- package/dist/cdn/{7DEYNHBU.js → C73VYQKJ.js} +2 -2
- package/dist/cdn/{JJ7QCASR.js → CB2M524H.js} +1 -1
- package/dist/cdn/{G55PKUMG.js → CD2Z74PV.js} +1 -1
- package/dist/cdn/{CCGKKPPH.js → CE3C7L3R.js} +2 -2
- package/dist/cdn/CNFHE7BS.js +18 -0
- package/dist/cdn/{3DVTJ6KE.js → CQ65R2FU.js} +2 -2
- package/dist/cdn/{4IPXIKLP.js → CWNGOD6O.js} +2 -2
- package/dist/cdn/{N4M3CA2Z.js → DBWENNZO.js} +2 -2
- package/dist/cdn/{URAGJGK6.js → DJKGU6GF.js} +2 -2
- package/dist/cdn/{IYUKZWSW.js → DP5H6AU6.js} +2 -2
- package/dist/cdn/{XRWYBWQK.js → DR7W375Q.js} +2 -2
- package/dist/cdn/{ELEAGTWW.js → DRMGG47C.js} +2 -2
- package/dist/cdn/{GMGQ7E7V.js → DSKCT7XX.js} +2 -2
- package/dist/cdn/{TVPWZMAB.js → DSTRDKGN.js} +2 -2
- package/dist/cdn/{CGPOHG6C.js → DTTA3SSA.js} +2 -2
- package/dist/cdn/{DKPSK2VS.js → DYFGQ6AI.js} +2 -2
- package/dist/cdn/{NE3BMCYD.js → DZD6IVX3.js} +2 -2
- package/dist/cdn/{RNIXWYHO.js → E24TFZEV.js} +2 -2
- package/dist/cdn/{OOM3I5RC.js → E6VM5GOR.js} +2 -2
- package/dist/cdn/{IYCDKPBQ.js → EGBZLRDM.js} +1 -1
- package/dist/cdn/{G5HT4QPA.js → EJJ6FMDK.js} +2 -2
- package/dist/cdn/{6P6LUJ43.js → EKKAECED.js} +2 -2
- package/dist/cdn/EOVOQSGB.js +4 -0
- package/dist/cdn/{CEU5C43P.js → ETAK5KUX.js} +2 -2
- package/dist/cdn/{2ENLVGEB.js → EWFUOGQX.js} +2 -2
- package/dist/cdn/{JDKSBZFE.js → EXCU7FAE.js} +2 -2
- package/dist/cdn/{LNE75S3A.js → EYB7XSNU.js} +1 -1
- package/dist/cdn/{CSDAVDXX.js → EYBDSN3O.js} +2 -2
- package/dist/cdn/{2JY7EWW7.js → EZGI72AV.js} +2 -2
- package/dist/cdn/{YLPKFOK6.js → F2NI2IXH.js} +2 -2
- package/dist/cdn/{BBWLJFLV.js → F4H2XOM2.js} +2 -2
- package/dist/cdn/{2H5ZIXV4.js → F6XWENXR.js} +2 -2
- package/dist/cdn/{CRXF4B3G.js → FJ5KMDPD.js} +2 -2
- package/dist/cdn/{KZWML2KQ.js → FSYK6HM3.js} +2 -2
- package/dist/cdn/{N2IQNH7A.js → FSZIWGYJ.js} +1 -1
- package/dist/cdn/{63LHTNJZ.js → FZXSPOZS.js} +2 -2
- package/dist/cdn/{WPXHPSPZ.js → G2ZDC4VQ.js} +2 -2
- package/dist/cdn/{IQ3QEMBR.js → G4Y7NNVO.js} +1 -1
- package/dist/cdn/{QLDQWKMR.js → GAQTA6GD.js} +2 -2
- package/dist/cdn/{2NGSYXGK.js → GBPL4KQS.js} +1 -1
- package/dist/cdn/{G7LI5TQC.js → GGUYX23F.js} +2 -2
- package/dist/cdn/{SRHCFZUY.js → GIC76A6P.js} +2 -2
- package/dist/cdn/{T6GPREAX.js → GITSLGDH.js} +2 -2
- package/dist/cdn/{MJ5DKA2X.js → GTFYWD6K.js} +2 -2
- package/dist/cdn/{C7D5MBZV.js → H34BRZJT.js} +2 -2
- package/dist/cdn/{BRRHEFK3.js → HA2CQHWG.js} +2 -2
- package/dist/cdn/{EMAGH3PG.js → HBJRA3VT.js} +2 -2
- package/dist/cdn/{PPWCXZID.js → HKRCU4W3.js} +1 -1
- package/dist/cdn/{N2FATTDH.js → HNW4XU3G.js} +1 -1
- package/dist/cdn/{R2RQDXYK.js → HO62DINJ.js} +2 -2
- package/dist/cdn/{BQ3EIQPU.js → HP4OTJNX.js} +2 -2
- package/dist/cdn/{7FJ3O3A2.js → HPTSWBMV.js} +2 -2
- package/dist/cdn/{SSLYRR7G.js → HUM5NVWR.js} +2 -2
- package/dist/cdn/{NPB3WTYD.js → HUPM3KUY.js} +2 -2
- package/dist/cdn/{5LGVQGTC.js → HWMVPAK3.js} +1 -1
- package/dist/cdn/{R73R7QCG.js → HYSWFFTS.js} +2 -2
- package/dist/cdn/{PCKSIOIQ.js → I7B6E52N.js} +2 -2
- package/dist/cdn/{VV5IQZ7Q.js → IJW4VIF6.js} +2 -2
- package/dist/cdn/{WEVC2ZGT.js → IKP2WHLC.js} +2 -2
- package/dist/cdn/{LL4DEDQC.js → IKQPJ7HH.js} +2 -2
- package/dist/cdn/{OKW3PMOC.js → ILVYQG75.js} +2 -2
- package/dist/cdn/{HGKMBBAZ.js → J72AO3O5.js} +2 -2
- package/dist/cdn/{GBVPDYV4.js → JCL4GUN2.js} +2 -2
- package/dist/cdn/{WL7SYSU2.js → JFF5GUX5.js} +2 -2
- package/dist/cdn/{DVODLANP.js → JFRS4VIJ.js} +2 -2
- package/dist/cdn/{5FZP5C3S.js → JGZZZZNQ.js} +1 -1
- package/dist/cdn/{E6HI24AH.js → JHTJPGCO.js} +2 -2
- package/dist/cdn/{4PAAQ63R.js → JIHFXVKK.js} +2 -2
- package/dist/cdn/{OS5L5UWL.js → JUPTFUOY.js} +1 -1
- package/dist/cdn/{K52ZHJL4.js → JVGFQUPU.js} +2 -2
- package/dist/cdn/{VEHDY5YP.js → JYI7HSND.js} +2 -2
- package/dist/cdn/{ZPVXCJZJ.js → JZRND6DJ.js} +2 -2
- package/dist/cdn/{J5RHSV42.js → K2A64AJY.js} +2 -2
- package/dist/cdn/{MIAJROAJ.js → K7ZCGDMP.js} +2 -2
- package/dist/cdn/{AGVM2D2C.js → KDKQRUGV.js} +2 -2
- package/dist/cdn/{MO5LTBSP.js → KFCRRA7F.js} +2 -2
- package/dist/cdn/{LW47XLXE.js → KJDK64I4.js} +2 -2
- package/dist/cdn/{TAUEMN7H.js → KKZBLGAZ.js} +2 -2
- package/dist/cdn/{GYQQ26XT.js → KOT4QQK7.js} +2 -2
- package/dist/cdn/KQWBCDF3.js +4 -0
- package/dist/cdn/{Y2CGACHS.js → KT274563.js} +2 -2
- package/dist/cdn/{MQENWQZA.js → KVKCURZR.js} +2 -2
- package/dist/cdn/{RBA3JHX2.js → KVYCPYT4.js} +2 -2
- package/dist/cdn/{AW4UUEFC.js → KYMLJ3F5.js} +2 -2
- package/dist/cdn/{HWVN3MS5.js → L22H5MXZ.js} +1 -1
- package/dist/cdn/{7JUKQJGZ.js → LHAMRSSH.js} +2 -2
- package/dist/cdn/{KJ7QVY7R.js → LJ6MM2LH.js} +2 -2
- package/dist/cdn/{GDRQ4BYH.js → LKTJBKGS.js} +2 -2
- package/dist/cdn/{5RKBTQGT.js → LLVXMJRE.js} +2 -2
- package/dist/cdn/{RL2SNSO2.js → LMOPOQVC.js} +2 -2
- package/dist/cdn/{PO57BOD5.js → LOWPGRBM.js} +1 -1
- package/dist/cdn/{H5EJ2QTN.js → LQKSTVYS.js} +2 -2
- package/dist/cdn/{NL7A2BN6.js → LRAFDTRN.js} +2 -2
- package/dist/cdn/{HMDGWSEX.js → LRHDJMA4.js} +2 -2
- package/dist/cdn/{3U2DD4IP.js → M4ZMT3GL.js} +2 -2
- package/dist/cdn/{EDYUCA7M.js → M7XSDLV5.js} +2 -2
- package/dist/cdn/{PBBG6EBI.js → MC7DNHNU.js} +2 -2
- package/dist/cdn/{PJJ7OQZQ.js → MGCPDP7J.js} +2 -2
- package/dist/cdn/{SEF73KDX.js → MH5VX6AY.js} +2 -2
- package/dist/cdn/{SQPYP57L.js → MHWX3HRT.js} +1 -1
- package/dist/cdn/{4P3JYW4U.js → MIIRZTEX.js} +2 -2
- package/dist/cdn/{2KHSTHIA.js → MJCJAFTO.js} +2 -2
- package/dist/cdn/{D2IML3DR.js → MKIJJDTQ.js} +2 -2
- package/dist/cdn/{BEBADQDD.js → MVWPTPME.js} +2 -2
- package/dist/cdn/{URYJTR3F.js → MXDTDUNL.js} +2 -2
- package/dist/cdn/{WITXMTMP.js → N2W4KKO3.js} +2 -2
- package/dist/cdn/{GJJPRDZZ.js → N7M3WPAA.js} +2 -2
- package/dist/cdn/{HHUIZRPD.js → N7VLQBAU.js} +2 -2
- package/dist/cdn/{3HWTOTAW.js → NBDFFPCF.js} +1 -1
- package/dist/cdn/{PG57XA7J.js → NGW2D4B7.js} +2 -2
- package/dist/cdn/{QMZ4ECYO.js → NOXF3KIN.js} +2 -2
- package/dist/cdn/{6WOOLJQO.js → NYHDZRED.js} +2 -2
- package/dist/cdn/{XAA2CYFY.js → O4ZHNTVR.js} +2 -2
- package/dist/cdn/{QOMQ2O42.js → O57WNQKN.js} +1 -1
- package/dist/cdn/{U3WQ32QA.js → OABISKTH.js} +2 -2
- package/dist/cdn/{TCIUPQBG.js → OD52NBEE.js} +2 -2
- package/dist/cdn/{EAARL36R.js → OG2QO65R.js} +1 -1
- package/dist/cdn/{NGZQ77Y7.js → OH74GNOX.js} +2 -2
- package/dist/cdn/{2MI622UR.js → OQPBJDKU.js} +2 -2
- package/dist/cdn/{OYB7YXXR.js → OUJ7HLKY.js} +2 -2
- package/dist/cdn/{X6IADLCS.js → P4AJ6PQC.js} +2 -2
- package/dist/cdn/{JH5MCOTH.js → P5EMX3K3.js} +2 -2
- package/dist/cdn/{7MYC4GA6.js → P6YH2464.js} +2 -2
- package/dist/cdn/{GACRNLY6.js → PCOEOT7J.js} +2 -2
- package/dist/cdn/{5DLZSIPJ.js → PGKUR4WY.js} +2 -2
- package/dist/cdn/{MOVE65J6.js → PQ3T3ICE.js} +1 -1
- package/dist/cdn/{V6Z7HS6H.js → PRZV4O3M.js} +2 -2
- package/dist/cdn/{LBVKJUVS.js → PSTZGLQY.js} +2 -2
- package/dist/cdn/{2ZDGR2WD.js → PVFGUXZQ.js} +2 -2
- package/dist/cdn/{WECF2JFD.js → PYCIIXAT.js} +2 -2
- package/dist/cdn/{FESKL5ZV.js → PZCGP7VV.js} +2 -2
- package/dist/cdn/{67N2QUDS.js → Q3EL3SKK.js} +2 -2
- package/dist/cdn/{TXIDAG5O.js → QANDE5GX.js} +1 -1
- package/dist/cdn/{26JVTWH7.js → QEHMVIZA.js} +2 -2
- package/dist/cdn/{LQYQK52P.js → QESTTPNW.js} +1 -1
- package/dist/cdn/{ZJQ2HXOP.js → QHXATMTW.js} +2 -2
- package/dist/cdn/{7L6MX7NY.js → QJU2CXDM.js} +2 -2
- package/dist/cdn/{ZKALQRBG.js → QJVJVRC5.js} +2 -2
- package/dist/cdn/{HOPT3JY4.js → QPQFHPU6.js} +2 -2
- package/dist/cdn/{2M5OJ5G2.js → QRBPOHQZ.js} +1 -1
- package/dist/cdn/{R7PQZLQD.js → QRY235DW.js} +2 -2
- package/dist/cdn/{SRPL4W6S.js → QVC6WY2U.js} +1 -1
- package/dist/cdn/{JQTH7ME2.js → QWO6PGTX.js} +2 -2
- package/dist/cdn/{7TAQ5RIA.js → QXM5FILZ.js} +1 -1
- package/dist/cdn/{ZITDPXBN.js → QYCHT4CB.js} +2 -2
- package/dist/cdn/{5BKN5ED4.js → R4IS4Q4Q.js} +2 -2
- package/dist/cdn/{UMMDZOWO.js → R5IRUI3P.js} +2 -2
- package/dist/cdn/{GFOJ2475.js → RBBBKVTL.js} +2 -2
- package/dist/cdn/{3SCQV2BA.js → RDUFBDLJ.js} +1 -1
- package/dist/cdn/{XJRM5CQS.js → RFB43MAS.js} +2 -2
- package/dist/cdn/{Z4KUME5U.js → RIMQH6RB.js} +2 -2
- package/dist/cdn/{5RI43AEF.js → RKLYOTRA.js} +2 -2
- package/dist/cdn/{VNQ5BED6.js → RMQ5YGFV.js} +2 -2
- package/dist/cdn/{NXGANU6E.js → RPLKUULS.js} +2 -2
- package/dist/cdn/{ZZ55Q6CO.js → RTYGNX7B.js} +2 -2
- package/dist/cdn/{PJSHOIQU.js → RV4AOYNF.js} +2 -2
- package/dist/cdn/{3NHES2UH.js → RXBIVFHO.js} +2 -2
- package/dist/cdn/{7AZRC4QR.js → S3XK2NOE.js} +2 -2
- package/dist/cdn/{4V36JLGC.js → SAGIFLGH.js} +2 -2
- package/dist/cdn/SINUDLTL.js +4 -0
- package/dist/cdn/{CGJFV7RC.js → SNYTROMC.js} +2 -2
- package/dist/cdn/{3T2O7NUV.js → SRAOUBKB.js} +1 -1
- package/dist/cdn/{PVQQTXL7.js → SVJHSHJO.js} +2 -2
- package/dist/cdn/{MDKYM3IA.js → SVOPWKZ7.js} +2 -2
- package/dist/cdn/{VCJXO3QG.js → SWTVJXVH.js} +1 -1
- package/dist/cdn/{JALZR5WY.js → SYBEF6K4.js} +2 -2
- package/dist/cdn/SZEBDGPL.js +4 -0
- package/dist/cdn/{4BKR62IC.js → T2SHWUJU.js} +2 -2
- package/dist/cdn/{MULCQMSH.js → T7R6C644.js} +2 -2
- package/dist/cdn/{EEBMCROU.js → TBGXCN4Y.js} +2 -2
- package/dist/cdn/TFYPM4OA.js +4 -0
- package/dist/cdn/{3U7N3IWM.js → TJISIJHC.js} +2 -2
- package/dist/cdn/{WYENCUGJ.js → TLRNKE62.js} +2 -2
- package/dist/cdn/{OZOGQMK3.js → TTRJ5CWU.js} +2 -2
- package/dist/cdn/{UPSY6F76.js → TU3CSFJD.js} +2 -2
- package/dist/cdn/TW3W5D5Z.js +4 -0
- package/dist/cdn/TXOHDU2X.js +18 -0
- package/dist/cdn/{2XVLUJAK.js → TZX3DJRS.js} +2 -2
- package/dist/cdn/{DAPORVIV.js → U65IWACU.js} +2 -2
- package/dist/cdn/{TU66IWII.js → U6E4MGA2.js} +2 -2
- package/dist/cdn/{T2E6XQL7.js → U6QU5AWC.js} +2 -2
- package/dist/cdn/{H5OYFPQ2.js → U7G6QCWK.js} +2 -2
- package/dist/cdn/{WW7WU5U3.js → UBEYAABT.js} +2 -2
- package/dist/cdn/{DF7GLOYY.js → UBM654NG.js} +2 -2
- package/dist/cdn/{5QZKRUQ7.js → UCKLWKND.js} +2 -2
- package/dist/cdn/{N36BQC66.js → UEE7MT2U.js} +2 -2
- package/dist/cdn/{GF77TENZ.js → UG5AARWL.js} +2 -2
- package/dist/cdn/{JQRYRWLD.js → UKCG2GCK.js} +2 -2
- package/dist/cdn/{7B3SIEBP.js → UNYPWENM.js} +2 -2
- package/dist/cdn/{S6ZBWBL3.js → UOGJGCZD.js} +2 -2
- package/dist/cdn/{KDVFFXU7.js → UPWMPL5L.js} +2 -2
- package/dist/cdn/{324ZDJBR.js → UV7ZLM4H.js} +1 -1
- package/dist/cdn/{RWMBL7L7.js → UYM5IUGW.js} +2 -2
- package/dist/cdn/{WH64AKQW.js → UYXL2VZ3.js} +2 -2
- package/dist/cdn/{IYBF72YG.js → VA6FV427.js} +2 -2
- package/dist/cdn/{L5Z7XJTH.js → VD5E2IZ5.js} +2 -2
- package/dist/cdn/{SMCV2SK5.js → VHRWYTD2.js} +2 -2
- package/dist/cdn/{KULFSFX2.js → VISRN5TF.js} +1 -1
- package/dist/cdn/{N5QB5MLB.js → VQCKHS53.js} +1 -1
- package/dist/cdn/{OPRT5PGD.js → VWJBKQOG.js} +2 -2
- package/dist/cdn/{GEBGZYZ4.js → VYTM5YU5.js} +2 -2
- package/dist/cdn/{KTVARFQK.js → W4ZT6LNS.js} +2 -2
- package/dist/cdn/{RJIJ4XS2.js → WFMWOZHV.js} +1 -1
- package/dist/cdn/{7WB2V7EC.js → WG27ANNL.js} +2 -2
- package/dist/cdn/{5BB4FMT7.js → WG45HABN.js} +2 -2
- package/dist/cdn/{Z563KGJ5.js → WIBJDSCB.js} +2 -2
- package/dist/cdn/{U74VGJ3T.js → WJE2COKA.js} +2 -2
- package/dist/cdn/{325K5D3X.js → X5WCK4PL.js} +2 -2
- package/dist/cdn/{5NTTXYVC.js → X6EKAG3F.js} +2 -2
- package/dist/cdn/{WO56KW63.js → XILH5SAW.js} +2 -2
- package/dist/cdn/{NNVYIBOE.js → XPTUWU57.js} +2 -2
- package/dist/cdn/{JOF7K3IJ.js → XW65OD5F.js} +1 -1
- package/dist/cdn/{SO4DF5HM.js → Y2TV3JE6.js} +2 -2
- package/dist/cdn/{LWBW2FOF.js → YBKY3MCJ.js} +2 -2
- package/dist/cdn/{EQV2JVUX.js → YEAPMC5O.js} +1 -1
- package/dist/cdn/{R4WTGITD.js → YJAZPAWN.js} +2 -2
- package/dist/cdn/{R4RV3EYA.js → YMZL25P6.js} +2 -2
- package/dist/cdn/YMZWPY25.js +4 -0
- package/dist/cdn/{A5MZMHN3.js → YRBRJ6IE.js} +2 -2
- package/dist/cdn/{ORXVHEHN.js → YT7ZIYXB.js} +2 -2
- package/dist/cdn/{G6QU7N46.js → YV2CCNLP.js} +2 -2
- package/dist/cdn/{LCDSUUY7.js → ZEGVRJQ4.js} +2 -2
- package/dist/cdn/{GEISZXPD.js → ZGMAK57M.js} +1 -1
- package/dist/cdn/{FFU4WRS2.js → ZIHEWLDS.js} +2 -2
- package/dist/cdn/{NJVLWYYW.js → ZNGYXE52.js} +1 -1
- package/dist/cdn/{XXTUAYVD.js → ZRKEB46V.js} +2 -2
- package/dist/cdn/{QH3NYN25.js → ZT2STLII.js} +2 -2
- package/dist/cdn/{U2GKHB5F.js → ZVRKMDOD.js} +4 -4
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-dialog/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-dialog/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.d.ts +3 -0
- package/dist/components/solutions-all-shell/customElement.js +42 -24
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.d.ts +3 -0
- package/dist/components/solutions-deployed-shell/customElement.js +42 -24
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +33 -1
- package/dist/docs/docs.json +45 -1
- package/dist/docs/web-types.json +11 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cdn/AVPRAXDB.js +0 -4
- package/dist/cdn/KMAVMHTP.js +0 -4
- package/dist/cdn/KYB3LCAD.js +0 -4
- package/dist/cdn/LCT3D3H4.js +0 -4
- package/dist/cdn/LVSGI3AI.js +0 -18
- package/dist/cdn/MKSQHH57.js +0 -4
- package/dist/cdn/NVD7KBCE.js +0 -4
- package/dist/cdn/SU5VMGSN.js +0 -4
- package/dist/cdn/UUOHSP2M.js +0 -4
- package/dist/cdn/V3ZTHML6.js +0 -18
@@ -1,6 +1,6 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250805 */
|
4
4
|
var Q=globalThis,Y=Q.ShadowRoot&&(Q.ShadyCSS===void 0||Q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ut=Symbol(),Ut=new WeakMap,I=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ut)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Y&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Ut.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Ut.set(e,t))}return t}toString(){return this.cssText}},Mt=o=>new I(typeof o=="string"?o:o+"",void 0,ut),pe=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,i,r)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[r+1],o[0]);return new I(e,o,ut)},It=(o,t)=>{if(Y)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=Q.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)}},ft=Y?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Mt(e)})(o):o;var{is:ue,defineProperty:fe,getOwnPropertyDescriptor:me,getOwnPropertyNames:ye,getOwnPropertySymbols:ge,getPrototypeOf:ve}=Object,X=globalThis,kt=X.trustedTypes,Ee=kt?kt.emptyScript:"",$e=X.reactiveElementPolyfillSupport,k=(o,t)=>o,Z={toAttribute(o,t){switch(t){case Boolean:o=o?Ee:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},j=(o,t)=>!ue(o,t),jt={attribute:!0,type:String,converter:Z,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),X.litPropertyMetadata??=new WeakMap;var b=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=jt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&fe(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){let{get:i,set:r}=me(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:i,set(n){let a=i?.call(this);r?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??jt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=ve(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,s=[...ye(e),...ge(e)];for(let i of s)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(ft(i))}else t!==void 0&&e.push(ft(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return It(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:Z).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let r=s.getPropertyOptions(i),n=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Z;this._$Em=i;let a=n.fromAttribute(e,r.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let i=this.constructor,r=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??j)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,r]of this._$Ep)this[i]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[i,r]of s){let{wrapped:n}=r,a=this[i];n!==!0||this._$AL.has(i)||a===void 0||this.C(i,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[k("elementProperties")]=new Map,b[k("finalized")]=new Map,$e?.({ReactiveElement:b}),(X.reactiveElementVersions??=[]).push("2.1.1");var yt=globalThis,tt=yt.trustedTypes,Ht=tt?tt.createPolicy("lit-html",{createHTML:o=>o}):void 0,gt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,vt="?"+_,be=`<${vt}>`,T=document,z=()=>T.createComment(""),V=o=>o===null||typeof o!="object"&&typeof o!="function",Et=Array.isArray,Gt=o=>Et(o)||typeof o?.[Symbol.iterator]=="function",mt=`[
|
5
5
|
\f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zt=/-->/g,Vt=/>/g,w=RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^
|
6
6
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bt=/'/g,Wt=/"/g,qt=/^(?:script|style|textarea|title)$/i,$t=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),cs=$t(1),ls=$t(2),hs=$t(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ft=new WeakMap,O=T.createTreeWalker(T,129);function Kt(o,t){if(!Et(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ht!==void 0?Ht.createHTML(t):t}var Jt=(o,t)=>{let e=o.length-1,s=[],i,r=t===2?"<svg>":t===3?"<math>":"",n=H;for(let a=0;a<e;a++){let c=o[a],h,u,l=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===H?u[1]==="!--"?n=zt:u[1]!==void 0?n=Vt:u[2]!==void 0?(qt.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=i??H,l=-1):u[1]===void 0?l=-2:(l=n.lastIndex-u[2].length,h=u[1],n=u[3]===void 0?w:u[3]==='"'?Wt:Bt):n===Wt||n===Bt?n=w:n===zt||n===Vt?n=H:(n=w,i=void 0);let g=n===w&&o[a+1].startsWith("/>")?" ":"";r+=n===H?c+be:l>=0?(s.push(h),c.slice(0,l)+gt+c.slice(l)+_+g):c+_+(l===-2?a:g)}return[Kt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,n=0,a=t.length-1,c=this.parts,[h,u]=Jt(t,e);if(this.el=o.createElement(h,s),O.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=O.nextNode())!==null&&c.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let l of i.getAttributeNames())if(l.endsWith(gt)){let y=u[n++],g=i.getAttribute(l).split(_),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:r,name:C[2],strings:g,ctor:C[1]==="."?st:C[1]==="?"?ot:C[1]==="@"?it:P}),i.removeAttribute(l)}else l.startsWith(_)&&(c.push({type:6,index:r}),i.removeAttribute(l));if(qt.test(i.tagName)){let l=i.textContent.split(_),y=l.length-1;if(y>0){i.textContent=tt?tt.emptyScript:"";for(let g=0;g<y;g++)i.append(l[g],z()),O.nextNode(),c.push({type:2,index:++r});i.append(l[y],z())}}}else if(i.nodeType===8)if(i.data===vt)c.push({type:2,index:r});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)c.push({type:7,index:r}),l+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return i?.constructor!==r&&(i?._$AO?.(!1),r===void 0?i=void 0:(i=new r(o),i._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=i:e._$Cl=i),i!==void 0&&(t=S(o,i._$AS(o,t.values),i,s)),t}var et=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??T).importNode(e,!0);O.currentNode=i;let r=O.nextNode(),n=0,a=0,c=s[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new R(r,r.nextSibling,this,t):c.type===1?h=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(h=new rt(r,this,t)),this._$AV.push(h),c=s[++a]}n!==c?.index&&(r=O.nextNode(),n++)}return O.currentNode=T,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},R=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),V(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Gt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Kt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{let r=new et(i,this),n=r.u(this.options);r.p(e),this.T(n),this._$AH=r}}_$AC(t){let e=Ft.get(t.strings);return e===void 0&&Ft.set(t.strings,e=new B(t)),e}k(t){Et(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let r of t)i===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){let r=this.strings,n=!1;if(r===void 0)t=S(this,t,e,0),n=!V(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,h;for(t=r[0],c=0;c<r.length-1;c++)h=S(this,a[s+c],e,c),h===f&&(h=this._$AH[c]),n||=!V(h)||h!==this._$AH[c],h===d?t=d:t!==d&&(t+=(h??"")+r[c+1]),this._$AH[c]=h}n&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},st=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},ot=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,i=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},rt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Qt={M:gt,P:_,A:vt,C:1,L:Jt,R:et,D:Gt,V:S,I:R,H:P,N:ot,U:it,B:st,F:rt},_e=yt.litHtmlPolyfillSupport;_e?.(B,R),(yt.litHtmlVersions??=[]).push("3.3.1");var bt=(o,t,e)=>{let s=e?.renderBefore??t,i=s._$litPart$;if(i===void 0){let r=e?.renderBefore??null;s._$litPart$=i=new R(t.insertBefore(z(),r),r,void 0,e??{})}return i._$AI(o),i};var _t=globalThis,A=class extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=bt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};A._$litElement$=!0,A.finalized=!0,_t.litElementHydrateSupport?.({LitElement:A});var Ae=_t.litElementPolyfillSupport;Ae?.({LitElement:A});(_t.litElementVersions??=[]).push("4.2.1");var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var G=Symbol.for("controller"),Ce=o=>typeof o=="object"&&o!==null&&(G in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Cs=o=>typeof o?.then=="function";var F,x=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},q=o=>F,N=[],Yt=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},Zt=()=>N,U,ws=o=>{U!==o&&(U=o,queueMicrotask(()=>U===o?U=void 0:0))},we=()=>{let o=U;return U=void 0,o},Xt=async(o,t)=>{let e=at(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(i=>t(i,s))}return e.exports},te=async o=>{let t=at(o);return await t.ready,t},at=o=>{let e=q().manager.X(o);if(e!==void 0)return e;if(Ce(o))return o;let s=we();if(s!==void 0)return s},nt=!1,Os=o=>{nt=!0;try{return o()}finally{nt=!1}};var $=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},ee=(o,t)=>{let e=t>Oe?Te:t/Se,s=0,i=setInterval(()=>{s+=e,s>=t&&(clearInterval(i),o())},e);return i},Oe=4e3,Te=2e3,Se=4;var Pe=(o,t,e)=>{let s=Object.keys(o),i=s.length;M===void 0&&queueMicrotask(K),M??=new Map;let r=M.get(o);return r===void 0&&(r={callbacks:[],keyCount:i},M.set(o,r)),r.keyCount!==i&&(r.callbacks.forEach(n=>n(s)),r.callbacks=[],r.keyCount=i),r.callbacks.push(n=>{let a=h=>p(t,null,h),c=n[i];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},M,K=()=>{M?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),M=void 0},Ne=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((i,r)=>p(t,void 0,e===r?i:void 0)),e},xe=(o=[q(),...Zt()],t,e)=>{let s=Array.isArray(o)?o:[o],i=s.length+1,r=n=>{i-=1,n!==void 0&&(i=Math.min(i,0)),i===0&&t(n)};s.forEach(n=>Pe(n,a=>r(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of s)if("manager"in n&&n.manager.component===n){Ne(n,a=>r(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},De=(o="",t={},e=q())=>{let s={emit:i=>{o===""&&K();let r=new CustomEvent(o,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&xe(void 0,i=>o=i.key,s),s},Le=De.bind(null,""),ie;ie=G;var At=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new $,this.connectedCalled=!1,this.loadedCalled=!1,this[ie]=!0,this.#a=[];let e=this,s=t??q(new.target.name);e.#r=s,e.ready=e.P.promise,e.#n=oe(e),e.component=s,e.#r.addController(e),e.#r.manager===void 0||(Yt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#o;#i;#c;#l;#p;#h;#d;#r;catchUpLifecycle(){let{manager:t}=this.#r;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(console.error)}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#r.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?oe(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#r),Xt}get useRef(){return x(this.#r),te}get useRefSync(){return x(this.#r),at}controllerRemoved(){this.#r.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#r.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#o.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(se,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(se,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#r);let e=p(t);(Array.isArray(e)?e:[e]).forEach(i=>{typeof i=="function"?this.#h.push(i):typeof i=="object"&&typeof i.remove=="function"&&this.#h.push(i.remove)})}};function se(o){p(o,void 0,this)}var re=At,oe=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,i,r){if(!((i==="exports"||i==="_exports")&&i in s&&s[i]===e)&&(i in s||i in Promise.prototype||typeof i=="symbol"))return typeof s=="function"?s[i]:Reflect.get(s,i,r)}},e=new Proxy(o,t);return e};var ct=o=>o.replace(Re,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Re=/[A-Z]+(?![a-z])|[A-Z]/gu;var Ot=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Tt={};function St(){}var Ie=(o,t)=>function(s,i){if(!globalThis.customElements)return;let n=(i??s??{}).resourcesUrl;n&&o.setAssetPath(n);for(let[a,[c,h=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,l,y]=h.split(";"),g=u?u?.split(",").map(ke):void 0,C=g?.map(([L])=>L),D=class extends wt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=l?l?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=o}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},lt=Object.defineProperty,ke=o=>{let t=o.split(":");return t.length===1?[t[0],ct(t[0])]:t},je=globalThis.HTMLElement??St,wt=class extends je{constructor(){super(),this.#e={},this.#s=[],this.I=new $,this.H=new $,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#o({a:e.A}):e.B.then(async s=>{await e.K.p,t.#o(await(s.default?.then(i=>typeof i=="function"?{a:i}:i)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])lt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])lt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])lt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Ot(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#o(t){let e=this.constructor,s=e.L,i=this.#e,r=Object.values(t).find(l=>l.L===s),n=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);ze(a),!e.A&&(e.A=r,customElements.define(n,r)),r.N=this;let h=document.createElement(n);r.N=void 0,this.#t=h,this.#e=h,this.#s.forEach(l=>h.attributeChangedCallback(l,null,this.getAttribute(l))),Object.entries(i).forEach(He,h);let u=this.isConnected;(u||this.G)&&(h.connectedCallback?.(),u||h.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function He([o,t]){this[o]=t}var ze=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(i,r){e.setAttribute.call(this.el,i,r)},t.removeAttribute=function(i){e.removeAttribute.call(this.el,i)},lt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=o=>(...t)=>({_$litDirective$:o,values:t}),v=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:Ws}=Qt;var ht=o=>o.strings===void 0;var Ve={},ne=(o,t=Ve)=>o._$AH=t;var Be=E(class extends v{constructor(o){if(super(o),o.type!==m.PROPERTY&&o.type!==m.ATTRIBUTE&&o.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===m.PROPERTY){if(t===e[s])return f}else if(o.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===m.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return ne(o),t}});var J=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),J(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ae=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Ge(t)}};function We(o){this._$AN!==void 0?(dt(this),this._$AM=o,ae(this)):this._$AM=o}function Fe(o,t=!1,e=0){let s=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)J(s[r],!1),dt(s[r]);else s!=null&&(J(s,!1),dt(s));else J(this,o)}var Ge=o=>{o.type==m.CHILD&&(o._$AP??=Fe,o._$AQ??=We)},pt=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ae(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(J(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var io=()=>new Nt,Nt=class{},Pt=new WeakMap,xt=E(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Pt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ce=E(class extends v{constructor(o){if(super(o),o.type!==m.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let i=!!t[s];i===this.st.has(s)||this.nt?.has(s)||(i?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var le="important",Ke=" !"+le,he=E(class extends v{constructor(o){if(super(o),o.type!==m.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let i=t[s];if(i!=null){this.ft.add(s);let r=typeof i=="string"&&i.endsWith(Ke);s.includes("-")||r?e.setProperty(s,r?i.slice(0,-11):i,r?le:""):e[s]=i}}return f}});var Dt=class extends re{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=Lt in t&&typeof t.destroy=="function",A.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Lt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),K();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),x(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=ee(t,os)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(i=>i(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},os=1e3,Lt="autoDestroyDisabled",de=class o extends A{constructor(){super(),this.M=[],this.manager=new Dt(this);let t=this,e=t.constructor,s=e.N,i=e.K.o,r=o.prototype.shouldUpdate;t.#o=s?.H??new $,t.I=s?.I??new $,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=St,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),i&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,i()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Tt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,i=Array.isArray(e)?e[1]:void 0,r=i?.hasChanged??j,n={attribute:s&1&&typeof t=="string"?ct(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...i,hasChanged(a,c){let h=r(a,c);return n.c=h,h}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){let i=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return i.t?.(this.#t.get(t)),r.get?.call(this)},set(n){let a=this.manager;if(s.readOnly&&!nt&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);r.set.call(this,n??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(K(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#o;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#o.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Tt?this.el:this.el.attachShadow(s));if(this.isConnected){let n=r.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#l(){let t=this.el.G??Ot(this.el);t&&await t;let e=[];for(let i of this.M)"triggerLoad"in i?e.push(i.triggerLoad()):e.push(W(i.hostLoad,i));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(i=>i.has(Lt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(i=>!i.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async i=>await i.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let i of this.M)"triggerLoaded"in i?i.triggerLoaded():p(i.hostLoaded,i);this.loaded?.(),this.#o.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#c(t):super.update(t)}listen(t,e,s){let i=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,s),()=>this.el.removeEventListener(t,i,s)))}listenOn(t,e,s,i){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,i),()=>t.removeEventListener(e,r,i)))}async componentOnReady(){return await this.#o.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}},Fo=o=>{let t,e=i=>{t=new URL(i,globalThis.location?.href||void 0).href},s={...o,getAssetPath(i){let r=new URL(i,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(i,r){r.K=s,r.L=i,customElements.get(i)||customElements.define(i,r)}};return e(o.defaultAssetPath),s};var Go=o=>typeof o=="object"&&o!=null?ce(o):o,qo=o=>typeof o=="object"&&o!=null?he(o):o;var Rt=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(i){return e.#t.call(this,i)}}render(t){return typeof t=="function"?(this.#t=t,xt(this.#e)):xt(t)}},Ko=E(Rt);var Jo=d;export{Cs as a,x as b,q as c,Yt as d,Zt as e,ws as f,Os as g,pe as h,cs as i,ls as j,d as k,Ne as l,xe as m,Le as n,At as o,re as p,Tt as q,Ie as r,E as s,v as t,ne as u,Be as v,io as w,xt as x,de as y,Fo as z,Go as A,qo as B,Jo as C};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.1.0-next.20250805 */
|
4
|
+
import{a as e}from"./JFRS4VIJ.js";var o={condition:{scope:"/properties/_metric/properties/type",schema:{const:"static"}},effect:e.SHOW},c={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"string"}}}}}},effect:e.SHOW},p={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"number"}}}}}},effect:e.SHOW},s={condition:{schema:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"},valueType:{const:"date"}}}}}},effect:e.SHOW},r={condition:{scope:"/properties/_metric/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},i={condition:{scope:"/properties/_metric/properties/shareable",schema:{const:!0}},effect:e.SHOW};export{o as a,c as b,p as c,s as d,r as e};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as e,b as i,c as l,d as s,e as t}from"./
|
3
|
+
v1.1.0-next.20250805 */
|
4
|
+
import{a as e,b as i,c as l,d as s,e as t}from"./QYCHT4CB.js";import{a as r}from"./JFRS4VIJ.js";import"./OABISKTH.js";import"./JGZZZZNQ.js";import"./WJE2COKA.js";import"./PZCGP7VV.js";import"./LHAMRSSH.js";import"./WG27ANNL.js";import"./F2NI2IXH.js";import"./UYXL2VZ3.js";import"./AXUGVBHF.js";import"./2SKQ276W.js";import"./VWJBKQOG.js";import"./EYB7XSNU.js";import"./LOWPGRBM.js";import"./2GZOS2KK.js";import"./EZGI72AV.js";import"./GGUYX23F.js";import"./GBPL4KQS.js";import"./BOK5NUWK.js";import"./SAGIFLGH.js";import"./UKCG2GCK.js";import"./NBDFFPCF.js";import"./VQCKHS53.js";import"./SWTVJXVH.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{l as c}from"./
|
3
|
+
v1.1.0-next.20250805 */
|
4
|
+
import{l as c}from"./AJPSBMVC.js";import{a as o}from"./CD2Z74PV.js";import{a as n}from"./NBDFFPCF.js";function x(e){return f(e.type,e.typeKeywords)}function f(e,r=[]){return e==="Feature Service"&&r.includes("Hosted Service")}function u(e){let r=/(feature)server(\/|\/(\d+))?$/i;return!!e&&e.includes("arcgis.com")&&r.test(e)&&!m(e)}function m(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}var p;(function(e){e.EXTRACT="Extract",e.QUERY="Query"})(p||(p={}));function b(e,r){return(r.capabilities||"").split(",").includes(e)}function S(e,r){return b(e,r)?v(e,r):g(e,r)}function g(e,r){let t=(r.capabilities||"").split(",").filter(s=>!!s).concat(e).join(",");return Object.assign(Object.assign({},r),{capabilities:t})}function v(e,r){let t=r.capabilities.split(",").filter(s=>s!==e).join(",");return Object.assign(Object.assign({},r),{capabilities:t})}function l(e){return u(e.url)&&!!e.serverExtractCapability}function d(e){let r=c(e.url),t=e.access==="public",i=e.serverQueryCapability;return r&&t&&i}function a(e){let{type:r,typeKeywords:t=[]}=e;return r===n["Image Service"]&&!t.includes("Tiled Imagery")}function M(e,r){let t=null;return l(e)?t="createReplica":d(e)&&!r?t=!!o(e,"extendedProps.serverExtractCapability")?"fgdb":"paging":a(e)&&(t="exportImage"),t}function A(e){let r=["Feature Service","Map Service"].includes(e.type)&&/\/\d+$/.test(e.url),t=o(e,"extendedProps.server.layers.length")===1,i=a(e);return r||t||i}export{x as a,p as b,b as c,S as d,M as e,A as f};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import c from"./
|
3
|
+
v1.1.0-next.20250805 */
|
4
|
+
import c from"./AOFFXP2O.js";import b from"./HYSWFFTS.js";import"./JHTJPGCO.js";import a from"./H34BRZJT.js";import{a as u}from"./UEE7MT2U.js";import{a as v}from"./X6EKAG3F.js";import{C as _}from"./G4Y7NNVO.js";import{b as h}from"./Q3EL3SKK.js";import"./W4ZT6LNS.js";import"./VD5E2IZ5.js";import{A as p,h as m,i as r,y as g}from"./QXM5FILZ.js";import"./SWTVJXVH.js";export default $arcgis.t(([,{a:s,b:y},{c:d,e:x,h:I,m:$,n:C,p:T,q:L,t:b}])=>{var w=m`:host{display:flex;align-items:center}.instant-apps-interactive-legend__total-feature-count{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.instant-apps-interactive-legend__info-count-text{font-size:var(--instant-apps-interactive-legend-info-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.calcite-mode-dark.instant-apps-interactive-legend__info-count-text.instant-apps-interactive-legend__info-count-text--selected{color:var(--calcite-color-text-inverse)}.instant-apps-interactive-legend-count--compact .instant-apps-interactive-legend__total-feature-count{font-size:.75rem}:host:dir(rtl){margin-left:0;margin-right:auto}`,c={countText:" instant-apps-interactive-legend__info-count-text",countTextSelected:" instant-apps-interactive-legend__info-count-text--selected",totalFeatureCount:"instant-apps-interactive-legend__total-feature-count",compact:"instant-apps-interactive-legend-count--compact"},f=class extends g{constructor(){super(...arguments),this._messages=v({name:"instant-apps-interactive-legend"}),this.showTotal=!1,this.categoryId=""}static{this.properties={showTotal:5,legendvm:0,activeLayerInfo:0,categoryId:1,infoIndex:9,selected:5,legendElement:0}}static{this.styles=w}async load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0});let t=await _();this.intl=t}getCount(){let{categoryId:t}=this,a=this.activeLayerInfo.layer.id,o=s.data[a]?.categories?.size;if((!s.data||!a||!t)&&!o)return"";let i=s.data[a];if(!i)return;let{categories:l}=i,e=l.get(t),n;return e?.nestedInfos?n=T(e,this.infoIndex):n=e,Number.isNaN(n.count)?"":this.intl.formatNumber(n.count)}getTotalFeatureCount(){let t=this.activeLayerInfo.layer.id;if(!s.data||!t)return"";let a=s.data[t];if(!a)return;let{categories:o}=a,i=d(o),l=L(o),e;if(l)e=C(i);else if(I(this.activeLayerInfo)){let n=x(this.activeLayerInfo.layer);e=d(n.categories)[1].count}else e=$(i);return this.intl.formatNumber(e)}render(){let t=y.get("compact")?c.compact:"";return u("int-legend-count",r`<div class=${p(t)}>${this.showTotal?r`<span class=${p(c.totalFeatureCount)}>${this._messages?.totalFeatureCount}: ${this.getTotalFeatureCount()}</span>`:u("element-info-count",r`<span class=${`${c.countText} ${b(this.el)}${this.selected?c.countTextSelected:""}`}>${this.getCount()}</span>`)}</div>`)}};h("instant-apps-interactive-legend-count",f);return f},a,b,c)
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250805 */
|
4
4
|
var n="'Avenir Next','Avenir','Helvetica Neue',sans-serif";function t(e){return e||n}export{t as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as n}from"./
|
3
|
+
v1.1.0-next.20250805 */
|
4
|
+
import{a as n}from"./JUPTFUOY.js";import{a as s}from"./KKZBLGAZ.js";import"./AJPSBMVC.js";import"./ZGMAK57M.js";import"./VISRN5TF.js";import"./HWMVPAK3.js";import{a as r,b as a}from"./JFF5GUX5.js";import"./7FWIZG5Z.js";import"./UYM5IUGW.js";import"./C26S3PRR.js";import{a as o}from"./QRY235DW.js";import{a as i}from"./5JWWBXAA.js";import"./BMCLDOUD.js";import"./L22H5MXZ.js";import"./EGBZLRDM.js";import"./B2DSQZNG.js";import"./CD2Z74PV.js";import"./JFRS4VIJ.js";import"./OABISKTH.js";import"./JGZZZZNQ.js";import"./WJE2COKA.js";import"./PZCGP7VV.js";import"./LHAMRSSH.js";import"./WG27ANNL.js";import"./F2NI2IXH.js";import"./UYXL2VZ3.js";import"./AXUGVBHF.js";import"./2SKQ276W.js";import"./VWJBKQOG.js";import"./EYB7XSNU.js";import"./LOWPGRBM.js";import"./2GZOS2KK.js";import"./EZGI72AV.js";import"./GGUYX23F.js";import"./GBPL4KQS.js";import"./BOK5NUWK.js";import"./SAGIFLGH.js";import"./UKCG2GCK.js";import"./NBDFFPCF.js";import"./VQCKHS53.js";import"./SWTVJXVH.js";var d=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.siteEntityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,l.thumbnail,l.thumbnailUrl,"site",t.requestOptions),...t.isPortal?[n(e)]:[],{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,t)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(l.location,t.hubRequestOptions),options:await a(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{$ as oe,$a as tr,A as C,Aa as Ct,Ab as hr,B as pt,Ba as de,Bb as yr,C as Ge,Ca as To,Cb as Pr,D as Pe,Da as Ut,Db as xr,E as P,Ea as Wt,Eb as re,F as ut,Fa as Nt,Fb as wr,G as ft,Ga as Lt,Gb as Sr,H as u,Ha as Vt,Hb as Er,I as lt,Ia as $t,Ib as br,Ja as Bt,Jb as Tr,K as xe,Ka as zt,Kb as vr,L as E,La as Gt,Lb as Fr,M as we,Ma as jt,Mb as _r,N as It,Na as Kt,Nb as Or,O as Po,Oa as Ht,Ob as Rr,P as xo,Pa as qt,Pb as kr,Q as je,Qa as Jt,Qb as Ar,R as K,Ra as vo,Rb as Mr,S as gt,Sa as De,Sb as Cr,T as ht,Ta as Dt,U as yt,Ua as Zt,Ub as Ur,V as L,Va as Qt,Vb as Qe,W as Pt,Wa as te,Wb as Oo,X as z,Xa as Yt,Xb as Ee,Y as Ke,Ya as Xt,Yb as Ye,Z as xt,Za as er,Zb as Wr,_ as wo,_a as or,_b as Nr,a as Ae,aa as x,ab as rr,ac as Lr,ba as b,bb as nr,bc as Vr,c as B,ca as J,cb as sr,d as X,da as He,db as ir,dc as $r,ea as wt,eb as mr,f,fa as St,fb as Se,g as ho,ga as So,gb as v,gc as Br,h as se,ha as Et,hb as Ze,hc as be,i as We,ia as bt,ic as Xe,j as me,ja as Tt,jc as eo,k as Ne,ka as vt,kb as ar,kc as zr,l as Le,la as Ft,lb as cr,lc as oo,m as yo,ma as _t,mb as V,mc as Gr,n as it,na as A,nb as dr,o as Ve,oa as ce,ob as pe,p as mt,pa as H,pb as q,q as $e,qa as qe,qb as pr,r as Be,ra as Je,rb as Fo,s as ee,sa as Ot,sb as ur,tb as _o,u as ae,ua as Rt,ub as fr,v as at,va as kt,vb as lr,w as I,wa as At,wb as Ir,x as ct,xa as Eo,y as dt,ya as bo,yb as gr,z as ze,za as Mt}from"./FFU4WRS2.js";import{a as ie,g as ye}from"./5MIYOPHC.js";import{a as W}from"./JOF7K3IJ.js";import{a as j,b as Me,c as Ce,d as Ue}from"./KULFSFX2.js";import{e as G,f as rt,j as Oe,l as Re,o as nt,s as ke}from"./FH7KMOQC.js";import{a as tt}from"./HWVN3MS5.js";import{a as st}from"./HQTKZXQW.js";import{a as N}from"./G55PKUMG.js";import{c as U}from"./VCJXO3QG.js";function ue(e,o="application/octet-stream"){if(typeof Blob<"u"){let r=[];for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);let t=new Uint8Array(r);return new Blob([t],{type:o})}else throw new Error("stringToBlob is not currently supported on Node")}function jr(e){if(typeof Blob<"u")return new Blob([JSON.stringify(e)],{type:"application/json"});throw new Error("objectToJsonBlob is not currently supported on Node")}var to={};U(to,{_mostRecentlyEditedLayer:()=>Ro,convertItemToTemplate:()=>Ts,createItemFromTemplate:()=>vs,postProcess:()=>Fs});function Ts(e,o,r,t){return new Promise((n,s)=>{let i=z(e);ir(e.groupDesignations)?Nt(i,r).then(a=>n(a),a=>s(P(a))):(i.estimatedDeploymentCostFactor=10,H(i.item.id,r).then(a=>{i.data=a,rr(i,r).then(c=>{c.item.modified=Math.max(c.item.modified,Ro(i.properties.layers),Ro(i.properties.tables)),er(c,r).then(d=>{c.dependencies=d.map(p=>p.id),n(Mt(c,d,!1,t))},d=>s(P(d)))},c=>s(P(c)))}))})}function vs(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),delete s.item.thumbnail,Ge(s,"properties.service.size");let i=Ct(s.data);Qt(s,r,o).then(m=>{m.success?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?(s=To(s,o,m),$t(s,o,i,r).then(()=>{s=To(s,o,m),pe({...s.item,url:void 0},s.data,r,e.item.thumbnail,void 0,o).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?A(s.itemId,r).then(a=>{s.item=a,u(s,"item.url")&&!s.item.url.endsWith("/")&&(s.item.url+="/"),n({item:s,id:m.serviceItemId,type:s.type,postProcess:oe({item:s.item,data:s.data})||vo(s)})},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})):(t(e.itemId,f.Cancelled,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}function Fs(e,o,r,t,n,s,i){return new Promise((m,a)=>{q(e,s,i).then(c=>{vo(t)?(t=x(t,s),De(t,i,t.item.url,s).then(m,a)):m(c)},a)})}function Ro(e){let o=0;return e.forEach(r=>{o=r.editingInfo?.lastEditDate?Math.max(o,r.editingInfo.lastEditDate):o}),o}var l={};U(l,{convertItemToTemplate:()=>_s,createItemFromTemplate:()=>Os});function _s(e,o,r){return new Promise(t=>{let n=z(e);n.item.id=b(n.item.id,n.item.id,".itemId");let s=new Promise(m=>{ce(n.itemId,n.item.name,r).then(a=>{!a||a.size===0?m(null):m(a)})}),i=Promise.resolve({});Promise.all([s,i]).then(m=>{let[a]=m;if(a){let c=Wr(a,n.item.name);n.properties[c.filename]=c.mimeType;let d=Ye(n.itemId,c.blob.name,1,c.blob.name===c.filename?Ee.data:Ee.fakezip),p={itemId:n.itemId,file:c.blob,folder:d.folder,filename:d.filename};n.dataFile=p,n.resources.push(d.folder+"/"+d.filename),t(n)}else t(n)})})}function Os(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(i=>{t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,i.id)?(s.itemId=i.id,o[e.itemId]={itemId:i.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,i.id),n({item:s,id:i.id,type:s.type,postProcess:!1})):(t(e.itemId,f.Cancelled,0),v(i.id,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}var Ho={};U(Ho,{_getFormDataFilename:()=>On,_replaceFeatureServiceURLs:()=>Sn,_replaceItemIds:()=>En,_replacePortalBaseUrls:()=>bn,_replaceWorkflowManagerBaseUrls:()=>Tn,_updateZipObjectTextContent:()=>vn,convertItemToTemplate:()=>pi,createItemFromTemplate:()=>ui,postProcess:()=>_n,postProcessFormItems:()=>li,swizzleFormObject:()=>jo,templatizeFormData:()=>Ko});function qr(e,o){return Rs(e,o)}function Rs(e,o){return["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"].forEach(t=>{let n=u(e,t);Array.isArray(n)&&n.forEach(s=>{s.type==="mapWidget"&&(e.dependencies.indexOf(s.itemId)<0&&e.dependencies.push(s.itemId),s.itemId=b(s.itemId,s.itemId,".itemId")),Array.isArray(s.datasets)&&ks(s,e,o)})}),e}function ks(e,o,r){e.datasets.forEach(t=>{if(u(t,"dataSource.type")!=="arcadeDataSource"){let s=u(t,"dataSource.itemId");if(s){o.dependencies.indexOf(s)<0&&o.dependencies.push(s);let i=u(t,"dataSource.layerId");de(i?.toString(),s,"",r),t.dataSource.itemId=b(s,s,".itemId")}}})}function Jr(e,o){let r=["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"];return r.forEach(t=>{let n=u(e,t);As(n,o)}),r.forEach(t=>{Ms(e,t,o)}),e}function As(e,o){e&&Array.isArray(e)&&e.forEach(r=>{Array.isArray(r.datasets)&&r.datasets.forEach(t=>{let n=Po(u(t,"dataSource.itemId"));if(n){let s=xo(u(t,"dataSource.layerId"));o.some(i=>i.itemId===n&&i.layerId===s?(Hr(i,r.id),!0):!1)}else{let s=u(t,"dataSource.id");if(s){let i=s.split("#")[1];o.some(m=>m.ids.indexOf(i)>-1?(Hr(m,r.id),!0):!1)}}})})}function Ms(e,o,r){let t=u(e,o);t&&E(e,o,Cs(t,r))}function Cs(e,o){return Array.isArray(e)?e.map(r=>{let t=r;return Array.isArray(t.events)&&(t.events=t.events.map(n=>{let s=n;return Array.isArray(s.actions)&&(s.actions=s.actions.map(i=>{let m=i;if(m.fieldMap&&m.targetId&&m.targetId.indexOf("#")>-1){let a=Kr(m,o);if(a){let c=u(a,"fields"),d=u(a,"basePath");Array.isArray(c)&&d&&(m.fieldMap=m.fieldMap.map(p=>{let g=p;return g.targetName=J(g.targetName,c,d),g}))}}return m})),s})),Array.isArray(t.datasets)&&(t.datasets=t.datasets.map(n=>{let s=n;if(s.type==="serviceDataset"){let i=Kr(n,o);if(i){let m=u(i,"fields"),a=u(i,"basePath");Array.isArray(m)&&a&&(t=J(t,m,a),s=J(s,m,a))}}return s})),t}):e}function Kr(e,o){let r,t=u(e,"dataSource.id")||u(e,"targetId");if(t){let n=t.split("#")[1];if(!o.some(s=>(r=s.ids.indexOf(n)>-1?s:r,s.ids.indexOf(n)>-1))){let s=t.split("#")[0];o.some(i=>{let a=(i.references||[]).indexOf(s)>-1;return r=a?i:r,a})}}else{let n=Po(u(e,"dataSource.itemId")),s=xo(u(e,"dataSource.layerId"));n&&o.some(i=>{let m=n===i.itemId&&s===i.layerId;return r=m?i:r,m})}return r}function Hr(e,o){e.references=Array.isArray(e.references)?e.references:[],e.references.indexOf(o)<0&&e.references.push(o)}var fe={};U(fe,{convertItemToTemplate:()=>js,convertNotebookToTemplate:()=>$o,createItemFromTemplate:()=>Ks,deleteProps:()=>sn,fineTuneCreatedItem:()=>Vo,postProcess:()=>qs,postProcessNotebookTemplates:()=>Hs});function Qr(e,o,r,t){return new Promise((n,s)=>{let i="";if(e.item.url){let m=e.item.url,a=m.indexOf("//");e.item.url=L(K)+m.substring(m.indexOf("/",a+2),m.lastIndexOf("=")+1)+e.item.id,i=m.replace(m.substring(m.indexOf("/",a+2)),"")}e.dependencies=Ns(e),E(e,"data.folderId","{{folderId}}"),$s(e,["data.map.itemId","data.map.appProxy.mapItemId","data.values.webmap","data.values.group"]),Xr(e,"data.appItemId",e.itemId),No(e,["data.logo","data.map.portalUrl","data.portalUrl","data.httpProxy.url"],L(K)),E(e,"data.geometryService",L(gt)),Us(e,r,i,t).then(()=>{Zr(e,r,i,"data.widgetPool.widgets").then(m=>{Zr(m,r,i,"data.widgetOnScreen.widgets",!0).then(a=>{Ws(a,r,i,"data.values").then(c=>{n(c)},c=>s(P(c)))},a=>s(P(a)))},m=>s(P(m)))},m=>s(P(m)))})}function Us(e,o,r,t){return new Promise((n,s)=>{let i=u(e,"data.dataSource.dataSources");if(i&&Object.keys(i).length>0){let m=new Array;Object.keys(i).forEach(a=>{let c=i[a];E(c,"portalUrl",L(K));let d=u(c,"itemId");if(u(c,"url")){if(d){let g=c.url.substr(c.url.lastIndexOf("/")+1);de(g.toString(),d,c.url,t),c.itemId=b(d,d,".layer"+g+".itemId")}let p=Wo(c.url,r,[],[],o);m.push(new Promise((g,h)=>{Uo(p.serviceRequests,p.requestUrls,p.testString).then(y=>{c.url=y,g()},y=>h(P(y)))}))}else d&&(c.itemId=b(d,d,".itemId"))}),Promise.all(m).then(()=>n(e),a=>s(P(a)))}else n(e)})}function Zr(e,o,r,t,n=!1){return new Promise((s,i)=>{let m=u(e,t)||[],a=[],c=[];if(m.forEach(d=>{!n&&u(d,"icon")&&No(d,["icon"],L(K));let p=d.config;if(p){let g=JSON.stringify(p),h=Wo(g,r,c,a,o);d.config=JSON.parse(h.testString),a=h.serviceRequests,c=h.requestUrls}}),a.length>0){let d=JSON.stringify(m);Uo(a,c,d).then(p=>{E(e,t,JSON.parse(p)),s(e)},p=>i(P(p)))}else s(e)})}function Ws(e,o,r,t){return new Promise((n,s)=>{let i=u(e,t),m=[],a=[];if(i){u(i,"icon")&&No(i,["icon"],L(K));let c=JSON.stringify(i),d=Wo(c,r,a,m,o);i=JSON.parse(d.testString),m=d.serviceRequests,a=d.requestUrls}if(m.length>0){let c=JSON.stringify(i);Uo(m,a,c).then(d=>{E(e,t,JSON.parse(d)),n(e)},d=>s(P(d)))}else n(e)})}function Uo(e,o,r){return new Promise((t,n)=>{if(e&&e.length>0){let s=0;Promise.all(e).then(i=>{i.forEach(m=>{if(u(m,"serviceItemId")){let a="{{"+m.serviceItemId+(m.hasOwnProperty("id")?".layer"+m.id:"")+".url}}";r=ro(r,o[s],a,!0)}s++}),t(r)},i=>n(P(i)))}else t(r)})}function Wo(e,o,r,t,n){let s={f:"json",authentication:n},i=e.match(/(\bhttps?:\/\/[-A-Z0-9/._]*)/gim);return i&&i.length&&i.forEach(m=>{m.indexOf("NAServer")>-1?e=ro(e,m,L(yt)):m.indexOf("GeocodeServer")>-1?e=ro(e,m,L(ht)):o&&m.indexOf(o)>-1?e=ro(e,o,L(K)):m.indexOf("FeatureServer")>-1&&r.indexOf(m)===-1&&(r.push(m),t.push(B(m,s)))}),{testString:e,requestUrls:r,serviceRequests:t}}function ro(e,o,r,t=!1){let n=t&&e.indexOf('"')>-1,s=new RegExp(n?'"'+o+'"':o,"gmi");return e.replace(s,n?'"'+r+'"':r)}function No(e,o,r){o.forEach(t=>{let n=u(e,t);if(n){let s=n.substring(n.indexOf("/",n.indexOf("//")+2));E(e,t,s!==n?r+s:r)}})}function Yr(e,o,r,t){return new Promise(n=>{if(we(e,["WAB2D","WAB3D","Web AppBuilder"])){let s={id:o.itemId,url:o.item.url,data:o.data},i=V(s,t),m={tags:e.item.tags,title:e.item.title,type:"Code Attachment",typeKeywords:["Code","Javascript","Web Mapping Application"],relationshipType:"WMA2Code",originItemId:o.itemId,url:Be(x(L(K),r))+"sharing/rest/content/items/"+o.itemId+"/package"},a=te(m,{},t,r.folderId);Promise.all([i,a]).then(()=>n(null),()=>n(null))}else n(null)})}function Ns(e){let o=Ls;return we(e,["WAB2D","WAB3D","Web AppBuilder"])&&(o=Vs),o(e)}function Ls(e){return lt(e,["data.values.webmap","data.values.group"])}function Vs(e){let o=[],r=u(e,"data.map.itemId");r&&o.push(r);let t=u(e,"data.dataSource.dataSources");return t&&Object.keys(t).forEach(n=>{let s=t[n];s.itemId&&o.push(s.itemId)}),o}function $s(e,o){o.forEach(r=>{let t=u(e,r);Xr(e,r,t)})}function Xr(e,o,r){E(e,o,b(r,r,".itemId"))}function en(e,o){let r=u(e,"data.dataSource.dataSources");r&&Object.keys(r).length>0&&(Object.keys(r).forEach(s=>{let i=r[s];r[s]=Mo(i,o)}),E(e,"data.dataSource.dataSources",r)),["data.widgetPool.widgets","data.widgetOnScreen.widgets"].forEach(s=>{let i=u(e,s);i&&E(e,s,Bs(i,o))});let n=u(e,"data.values");return n&&E(e,"data.values",Mo(n,o)),e}function Mo(e,o,r=!1){return e=Gs(e,o,r),zs(e,o).forEach(n=>{e=J(e,n.fields,n.basePath,r)}),e}function Bs(e,o){let r=["SmartEditor","Screening"];return e.map(t=>{if(t.config){let n=r.indexOf(t.name)>-1;t.config=Mo(t.config,o,n)}return t})}function zs(e,o){let r=JSON.stringify(e);return o.filter(n=>Ao(n,r)<4).sort((n,s)=>Ao(n,r)-Ao(s,r))}function Ao(e,o){let r=e.url,t=e.itemId,n=e.layerId,s;return r&&!isNaN(n)&&(s=new RegExp(r.replace(/[.]/,".layer"+n+"."),"gm")),s&&s.test(o)||e.ids.length>0&&e.ids.some(i=>new RegExp(i,"gm").test(o))?1:r&&new RegExp(r,"gm").test(o)?2:t&&new RegExp(t,"gm").test(o)?3:4}function Gs(e,o,r){let t=JSON.stringify(e),n=o.filter(s=>{let i;s.url&&!isNaN(s.layerId)&&(i=new RegExp(s.url.replace(/[.]/,".layer"+s.layerId+"."),"gm"));let m=!1;if(s.ids.length>0&&(m=s.ids.some(a=>new RegExp(a,"gm").test(t))),m||i&&i.test(t))return s});return n.length>0&&n.forEach(s=>{e=Co(e,s,r),s.ids.length>0&&s.ids.forEach(i=>{e=no(e,s,i,r)})}),e}function Co(e,o,r){let t={},n=o.url,s=o.layerId,i;if(n&&!isNaN(s)&&(i=new RegExp(n.replace(/[.]/,".layer"+s+"."),"gm")),Array.isArray(e))t=e.map(m=>Co(m,o,r));else if(typeof e=="object")for(let m in e)e[m]!=null&&typeof e[m]=="object"?t[m]=Co(e[m],o,r):(i&&i.test(e[m])&&(e=J(e,o.fields,o.basePath,r)),t[m]=e[m]);else t=e;return t}function no(e,o,r,t){let n={},s=new RegExp(r,"gm");if(Array.isArray(e))n=e.map(i=>no(i,o,r,t));else if(typeof e=="object")for(let i in e)if(e[i]!==null){let m;try{m=JSON.parse(e[i])}catch{m=void 0}m&&typeof m=="object"?n[i]=JSON.stringify(no(m,o,r,t)):typeof e[i]=="object"?(s.test(i)&&t&&(e[i]=J(e[i],o.fields,o.basePath,t)),n[i]=no(e[i],o,r,t)):(s.test(e[i])&&(e=J(e,o.fields,o.basePath,t)),n[i]=e[i])}else n[i]=e[i];else n=e;return n}function on(e,o,r,t){return Jt(e,r,t)}function tn(e,o,r){return De(e,o,"",r)}function D(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0))t(e.itemId,f.Ignored,0),n(I(e.type));else{let s=C(e);s=x(s,o);let i;e.type==="Web Mapping Application"&&e.data?s=JSON.parse(x(JSON.stringify(s),o)):e.type==="QuickCapture Project"&&e.data&&(i=JSON.stringify(s.data.application),delete s.data),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(m=>{if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.id))t(e.itemId,f.Cancelled,0),v(m.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else{o[e.itemId]={itemId:m.id,itemUrl:o.portalBaseUrl+"/sharing/rest/content/items/"+m.id},s.itemId=m.id,s.type==="Web Mapping Application"&&e.data&&E(s,"data.appItemId",m.id);let a=oe(s.data),c=s.item.url;s=x(s,o);let d=Promise.resolve([]);if(s.relatedItems){let g=x(He(s.relatedItems),o);d=Dt(s.itemId,g,r)}let p;if(e.type==="Web Mapping Application"&&e.data&&we(e,["WAB2D","WAB3D","Web AppBuilder"]))p=Yr(e,s,o,r);else if(e.type==="Workforce Project")p=tn(s,r,o);else if(e.type==="QuickCapture Project"){if(i){let g=ze(x(JSON.parse(i),o),"qc.project.json");p=Br(g,s.itemId,"",g.name,r)}}else e.type==="Notebook"?p=Vo(e,s,o,r):c!==s.item.url?p=new Promise((g,h)=>{pr(m.id,s.item.url,r).then(()=>g(),h)}):p=Promise.resolve(null);Promise.all([d,p]).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.id)?n({item:s,id:m.id,type:s.type,postProcess:a}):(t(e.itemId,f.Cancelled,0),v(m.id,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}})}function js(e,o,r,t){return Z(e,o,r,t)}function Ks(e,o,r,t){return D(e,o,r,t)}function $o(e){return new Promise(o=>{sn(e.data),o(e)})}function Hs(e,o){if(e.some(t=>t.type==="Notebook")){let t=Object.keys(o).filter(s=>s.indexOf("FeatureServer")>-1).sort().reverse(),n=e.reduce((s,i)=>(s=[...new Set([...s,...i.dependencies,i.itemId])],s),[]);e=e.map(s=>{if(s.type==="Notebook"){let i=s.data&&JSON.stringify(s.data);return n.forEach(m=>{new RegExp(m,"gim").test(i)&&(i=i.replace(m,"{{"+m+".itemId}}"),s.dependencies.indexOf(m)<0&&s.dependencies.push(m))}),t.forEach(m=>{let a=new RegExp(m,"gim");if(a.test(i)){let c=o[m];i=i.replace(a,c);let d=/[0-9A-F]{32}/gim,p=c.match(d)[0];s.dependencies.indexOf(p)<0&&s.dependencies.push(p)}}),s.data=JSON.parse(i),s}})}return e}function sn(e){if(e){let o=["metadata.interpreter","metadata.papermill"];Pe(e,o),(e.cells||[]).forEach(r=>{Pe(r,o)})}}function Vo(e,o,r,t){return new Promise((n,s)=>{let i={id:o.itemId,url:o.item.url,data:ze(o.data,o.itemId+".ipynb")};V(i,t).then(()=>n(null),s)})}function qs(e,o,r,t,n,s,i){return q(e,s,i)}function an(e,o,r){return new Promise((t,n)=>{Js(e,r).then(s=>{e.dependencies=s.dependencies,e.data?.properties&&(e.data.properties.ServiceURL=mn(e.data.properties.ServiceURL,s.urlHash),e.data.properties.OverviewURL=mn(e.data.properties.OverviewURL,s.urlHash)),t(e)},s=>n(P(s)))})}function Js(e,o){return new Promise((r,t)=>{let n=[];if(e.data?.properties){let s=[];e.data.properties.ServiceURL&&s.push(e.data.properties.ServiceURL),e.data.properties.OverviewURL&&e.data.properties.OverviewURL!==e.data.properties.ServiceURL&&s.push(e.data.properties.OverviewURL),Ds(s,n,o).then(i=>{r(i)},i=>t(P(i)))}else r({dependencies:n,urlHash:{}})})}function Ds(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d){let p=/.+FeatureServer/g.exec(d),g=Array.isArray(p)&&p.length>0?p[0]:void 0;return g?(Object.keys(a).indexOf(g)<0&&(a[g]=B(d,i)),m.push(a[g]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,g)=>{if(u(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[g]]=h}}),t({dependencies:o,urlHash:s})},d=>n(P(d))):t({dependencies:o,urlHash:s})})}function mn(e,o){let r=e;if(e){let t=o[e];if(t){let n=e.substr(e.lastIndexOf("/")+1);r=b(t,t,".layer"+n+".url")}r=He(r.replace(/.+?(?=\/home)/,"{{portalBaseUrl}}"))}return r}var Te={};U(Te,{_templatizeAdminEmail:()=>pn,_templatizeApplication:()=>dn,_templatizeId:()=>Bo,_templatizeUrl:()=>fn,_updateDependencies:()=>un,convertItemToTemplate:()=>Qs,convertQuickCaptureToTemplate:()=>zo,createItemFromTemplate:()=>Ys});function Qs(e,o,r,t){return Z(e,o,r,t)}function zo(e){return E(e,"data.application",dn(e.data.application,e)),e}function dn(e,o){Bo(e,"itemId"),pn(e);let r=e?.dataSources;return r&&Array.isArray(r)&&r.forEach(t=>{let n=t.featureServiceItemId;n&&(un(n,o),fn(t,"featureServiceItemId","url"),Bo(t,"featureServiceItemId"))}),e}function pn(e){u(e,"preferences.adminEmail")&&E(e,"preferences.adminEmail","{{user.email}}")}function un(e,o){o.dependencies.indexOf(e)===-1&&o.dependencies.push(e)}function fn(e,o,r){let t=u(e,o),n=u(e,r);if(n){let s=n.substr(n.lastIndexOf("/")+1);E(e,r,b(t,t,".layer"+s+".url"))}}function Bo(e,o){let r=u(e,o);r&&E(e,o,b(r,r,".itemId"))}function Ys(e,o,r,t){return D(e,o,r,t)}var Xs="home/webmap/viewer.html?webmap=";function ln(e,o,r,t){return new Promise((n,s)=>{e.type!=="Vector Tile Service"&&(e.item.url=e.item.url?Be(L(K))+Xs+e.item.id:e.item.url),ei(e,r).then(i=>{e.dependencies=i.dependencies,e.data&&(e.data.baseMap?.baseMapLayers&&Go(e.data.baseMap.baseMapLayers,i.urlHash,t),e.data.operationalLayers&&Go(e.data.operationalLayers,i.urlHash,t),Go(e.data.tables,i.urlHash,t),oi(e.data)),n(e)},i=>s(P(i)))})}function ei(e,o){return new Promise((r,t)=>{let n=[];if(e.data){let s=e.data.baseMap?.baseMapLayers||[],i=e.data.operationalLayers||[],m=e.data.tables||[],a=s.concat(i).concat(m);ti(a,n,o).then(c=>{r(c)},c=>t(P(c)))}else r({dependencies:n,urlHash:{}})})}function oi(e){Ge(e,"initialState")}function ti(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d.itemId&&d.layerType==="VectorTileLayer")return m.push(A(d.itemId,r)),!0;if(d.url&&d.url.indexOf("{{velocityUrl}}")<0){let p=/.+FeatureServer/g.exec(d.url),g=Array.isArray(p)&&p.length>0?p[0]:void 0;return g?(Object.keys(a).indexOf(g)<0&&(a[g]=B(d.url,i)),m.push(a[g]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,g)=>{if(c[g].layerType==="VectorTileLayer"){let h=u(p,"typeKeywords");if(h&&h.includes("Vector Tile Style Editor")){o.indexOf(p.id)<0&&o.push(p.id),c[g].templatizeId=!0;let y=c[g].styleUrl.indexOf(p.id)+p.id.length;c[g].styleUrl=b(c[g].styleUrl.replace(c[g].styleUrl.substring(0,y),p.id),p.id,".itemUrl")}}else if(u(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[g].url]=h}}),t({dependencies:o,urlHash:s})},d=>n(P(d))):t({dependencies:o,urlHash:s})})}function Go(e=[],o,r){e.forEach(t=>{if(t.itemId&&t.layerType==="VectorTileLayer")t.templatizeId&&(t.itemId=b(t.itemId,t.itemId,".itemId"),delete t.templatizeId);else if(t.url){let n=t.url.substr(t.url.lastIndexOf("/")+1),s=Object.keys(o).indexOf(t.url)>-1?o[t.url]:void 0;s&&(de(n,s,t.url,r),t.url=b(s,s,".layer"+n+".url"),t.itemId=b(s,s,".layer"+n+".itemId"))}})}function In(e,o){return["data.operationalLayers","data.tables","data.applicationProperties.viewing.search.layers"].forEach(t=>ri(e,o,t)),e}function ri(e,o,r){let t=u(e,r);t&&E(e,r,ni(t,o))}function ni(e,o){return e.forEach(r=>{let t=si(r,o);if(t){let n=t.fields.map(i=>i.name);Gt(r,t,t.basePath,t.itemId,n),Kt(r,t.basePath,n),r.layerDefinition&&(qt(r.layerDefinition,t.basePath,n),Ht(r.layerDefinition,t.basePath,n));let s=u(r,"field.name");s&&E(r,"field.name",jt(s,r,t.itemId,t.basePath))}}),e}function si(e,o){let r;return o.some(t=>t.ids.indexOf(e.id)>-1?(r=t,!0):!1),r}function Z(e,o,r,t){return new Promise((n,s)=>{let i=z(e);i.item.id=b(i.item.id,i.item.id,".itemId");let m=qe(i.itemId,"forward",r),a=Promise.resolve({}),c=Promise.resolve([]);switch(e.type){case"Dashboard":case"Data Pipeline":case"Feature Collection":case"Feature Service":case"Hub Initiative":case"Hub Page":case"Hub Site Application":case"Insights Model":case"Oriented Imagery Catalog":case"Project Package":case"Style":case"Workforce Project":case"Web Map":case"Web Mapping Application":case"Web Scene":case"Notebook":a=new Promise(d=>{H(i.itemId,r).then(p=>d(p))});break;case"Form":a=ce(i.itemId,i.item.name,r);break;case"QuickCapture Project":c=Je(i.itemId,r);break}Promise.all([a,m,c]).then(d=>{let[p,g,h]=d;Gr(i,t),i.data=oo(p,e.type,t);let y=g;i.dependencies=[],i.relatedItems=[],y.forEach(w=>{w.relationshipType!=="WMA2Code"&&(i.relatedItems.push(w),w.relatedItemIds.forEach(F=>{i.dependencies.indexOf(F)<0&&i.dependencies.push(F)}))}),e.type==="Data Pipeline"&&(i.dependencies=i.dependencies.concat(ii(p)));let S=Promise.resolve(i);switch(e.type){case"Dashboard":qr(i,t);break;case"Notebook":S=$o(i);break;case"Oriented Imagery Catalog":S=an(i,o,r);break;case"QuickCapture Project":i.resources=h,S=new Promise(async w=>{let F=null,R=-1;h&&(h.some((Ie,$)=>{let M=Ie.name==="qc.project.json";return M&&(F=Ie,R=$),M}),R>=0&&h.splice(R,1)),F&&(i.data={application:{...await $e(F)},name:"qc.project.json"}),i.data.application?.basemap?.type==="Web Map"&&i.dependencies.push(i.data.application.basemap.itemId);let Q=zo(i);w(Q)});break;case"Vector Tile Service":case"Web Map":case"Web Scene":S=ln(i,o,r,t);break;case"Web Mapping Application":p&&(S=Qr(i,o,r,t));break;case"Workforce Project":S=on(i,o,r,t);break}S.then(n,w=>s(P(w)))})})}function ii(e){let o=[];return(e?.inputs??[]).concat(e?.outputs??[]).forEach(t=>{if(t.type==="FeatureServiceSource"||t.type==="FeatureServiceSink"){let n=u(t,"parameters.layer.value.itemId");n&&o.push(n)}}),o}var _={};U(_,{convertItemToTemplate:()=>mi,createItemFromTemplate:()=>ai,postProcess:()=>di,postProcessFieldReferences:()=>ci});function mi(e,o,r,t){return Z(e,o,r,t)}function ai(e,o,r,t){return D(e,o,r,t)}function ci(e,o,r){switch(r){case"Web Mapping Application":en(e,o);break;case"Dashboard":Jr(e,o);break;case"Web Map":In(e,o);break}return e}function di(e,o,r,t,n,s,i){return q(e,s,i)}function pi(e,o,r,t){return _.convertItemToTemplate(e,o,r,t)}function so(e){return!!u(e,"properties.services")}function yn(e,o="https://survey123.arcgis.com"){let r=`${o}/api/survey/create`,t={credentials:"same-origin",method:"POST",body:tt({f:"json",...e},!0)};return fetch(r,t).then(n=>n.json()).then(n=>{if(!n.success)throw new Error(`Failed to create survey: ${n.error.message}`);return{formId:n.id,featureServiceId:n.featureService.source.itemId,folderId:n.formItemInfo.ownerFolder}})}var Pn=function(o){let r=C(o),t=[["header","content"],["subHeader","content"],["footer","content"],["settings","thankYouScreenContent"]],n=(i,m)=>(i&&i[m]&&(i[m]=encodeURIComponent(i[m])),i);t.forEach(([i,m])=>n(r[i],m));let s=i=>n(i,"description");return r.questions=(r.questions||[]).map(i=>i.questions?{...i,questions:i.questions.map(s)}:s(i)),r};function xn(e,o,r){let{item:{title:t,description:n,tags:s,typeKeywords:i},properties:{form:m}}=e,{user:{username:a},portalBaseUrl:c,organization:{basemapGalleryGroupQuery:d,defaultBasemap:{title:p}}}=o,{token:g}=r.toCredential();return Rt(d,p,r).then(h=>{let y="Survey-",S=It(`${y}${t}`,o,"user.folders").replace(y,"");if(m.questions){let F=R=>(R.maps&&(R.maps=R.maps.map(Q=>({...Q,itemId:h.id}))),R);m.questions=m.questions.map(R=>R.questions?{...R,questions:R.questions.map(F)}:F(R))}let w=Pn(m);return{description:n,form:w,portalUrl:c,tags:s,title:S,token:g,typeKeywords:i,username:a}})}function wn(e,o,r,t){let n=x(e,o),{survey123Url:s}=o;return xn(n,o,r).then(i=>yn(i,s)).then(i=>{let{formId:m,featureServiceId:a}=i,c=Promise.resolve(null);return e.item.thumbnail&&(c=pe({id:m},null,r,e.item.thumbnail)),c.then(()=>A(m,r)).then(d=>(o[n.itemId]={itemId:m},o[n.properties.info.serviceInfo.itemId]={itemId:a},t(n.itemId,f.Finished,n.estimatedDeploymentCostFactor,m),{item:{...e,item:d,itemId:m},id:m,type:"Form",postProcess:!0}))}).catch(i=>{throw t(n.itemId,f.Failed,0),i})}function ui(e,o,r,t){return so(e)?wn(e,o,r,t):_.createItemFromTemplate(e,o,r,t)}async function jo(e,o){let r=await _o(e),t=new Date;return t=new Date(t.valueOf()-864e5-t.getTimezoneOffset()*1e3*60),r.forEach(n=>{if(typeof n.content=="string"){let s=vn(n,o);e.file(n.file,s,{date:t})}else n.file.endsWith(".xlsx")&&e.file(n.file,n.content,{date:t})}),Promise.resolve(e)}async function Ko(e,o){return(await _o(e)).forEach(t=>{if(t.file.endsWith(".info")||t.file.endsWith(".itemInfo")||t.file.endsWith(".json")||t.file.endsWith(".webform")||t.file.endsWith(".xml")){let n=t.content,s=/\b([0-9A-Fa-f]){32}_type/g;n=En(n,o,s),n=Sn(n,o,s),n=bn(n,o),n=Tn(n,o),e.file(t.file,n)}}),Promise.resolve(e)}function Sn(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type==="Feature Service").forEach(s=>{let i=o[s].url,m=o[i];m&&(t=t.replace(new RegExp(i,"g"),m))}),t}function En(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type!=="Feature Service").map(s=>s.replace("_type","")).forEach(s=>{t=t.replace(new RegExp(s,"g"),`{{${s}.itemId}}`)}),t}function bn(e,o){let r=e;return o.portalBaseUrl&&(r=r.replace(new RegExp(o.portalBaseUrl,"g"),"{{portalBaseUrl}}")),r}function Tn(e,o){let r=e;return o.workflowBaseUrl&&(r=r.replace(new RegExp(o.workflowBaseUrl,"g"),"{{workflowBaseUrl}}")),r}function vn(e,o){let r=ct(),t=e.content;return t=x(e.content,o),ae(t.match(r)??[]).forEach(s=>{let i=o[s];typeof i?.itemId=="string"&&(t=t.replace(new RegExp(s,"g"),`${i.itemId}`))}),t}function Fn(e,o,r,t,n,s,i){let m=t.properties.info.serviceInfo.itemId,{itemId:a}=s[m],c=x(t,s);return A(a,i).then(d=>{let p=[{id:e,title:c.item.title,snippet:c.item.snippet,extent:c.item.extent,culture:c.item.culture},{id:a,extent:c.item.extent,typeKeywords:[`source-${m}`].concat(d.typeKeywords)}],g=y=>V(y,i),h=p.map(g);return Promise.all(h).then(()=>{let y=[e,a],S=F=>G({itemId:F,folderId:s.folderId,authentication:i}),w=y.map(S);return Promise.all(w)}).then(()=>mr(d.ownerFolder,i)).then(()=>{let y=z(d);return n.push(y),t.dependencies.push(d.id),!0})})}async function _n(e,o,r,t,n,s,i){let m=await ce(e,"Form",i);if(m){let a=await Fo(m),c=await jo(a,s);Qe(c,e,i)}else return await at(5e3),_n(e,o,r,t,n,s,i);return so(t)?Fn(e,o,r,t,n,s,i):q(e,s,i)}async function li(e,o){for(let r of e)if(r.type==="Form"){let t=r.data;if(r.data=null,t){let n=await Fo(t);n=await Ko(n,o),r.item.name=On(r.item.name,t.name,`${r.itemId}.zip`);let s=await fr(n,r.item.name),i=Ye(r.itemId,r.item.name,1,Ee.data),m={itemId:r.itemId,file:s,folder:i.folder,filename:r.item.name};r.dataFile=m,r.resources.push(i.folder+"/"+i.filename)}}return Promise.resolve(e)}function On(e,o,r){let t=e||o;return t&&t!=="undefined"?t:r}var qo={};U(qo,{_initializeNewGroup:()=>Rn,convertItemToTemplate:()=>Ii,createItemFromTemplate:()=>gi,postProcess:()=>hi});function Ii(e,o,r){return new Promise(t=>{let n=Pt(e);n.item.id=b(n.item.id,n.item.id,".itemId"),_t(e.id,r).then(s=>{n.type="Group",Ft(e.id,r).then(i=>{i.id=n.item.id,n.item={...i,type:"Group"},n.dependencies=s.concat(ft(i.tags)),t(n)},()=>t(n))},()=>t(n))})}function gi(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),s.item.thumbnail=e.item.thumbnail;let i=Rn(s.item);Xt(i.title,i,o,r,bo(s)?o.locationTracking.owner:void 0).then(m=>{if(m.success)if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(s.itemId=m.group.id,o[e.itemId]={itemId:m.group.id},s=x(s,o),o[e.itemId].itemId=m.group.id,!t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(bo(s)){let a=o.locationTracking.owner;ar(m.group.id,a,r).then(c=>{c.success?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?cr(m.group.id,[r.username],r).then(d=>{Array.isArray(d.notRemoved)&&d.notRemoved.length===0?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)}):(t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))})}else n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)});else t(e.itemId,f.Failed,0),n(I(e.type))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}function hi(e,o,r,t,n,s,i){let m=Promise.resolve({success:!0});return r.some(a=>{if(a.id===e){let c=a.item.item;return oe(c)&&(c=x(c,s),m=dr(c,i)),!0}}),m}function Rn(e){let o={access:"private",description:e.description,owner:e.owner,snippet:e.snippet,tags:e.tags,thumbnail:e.thumbnail,title:e.title||"",typeKeywords:e.typeKeywords};return["autoJoin","displaySettings","isInvitationOnly","isOpenData","isViewOnly","membershipAccess","properties","sortField","sortOrder"].forEach(t=>{e.hasOwnProperty(t)&&(o[t]=e[t])}),o}var ve={};U(ve,{convertItemToTemplate:()=>yi,createItemFromTemplate:()=>Pi,isAPage:()=>wi,postProcess:()=>xi});function kn(e,o,r,t){return e=me(e,r,{}),Er(e,{...t,allowList:[]}).then(()=>!0)}function io(e){let o=j(e);return(e.dependencies||[]).forEach(t=>{let n=new RegExp(t,"g"),s=`{{${t}.itemId}}`;o.item=se(o.item,n,s),o.data=se(o.data,n,s),e.properties&&(o.properties=se(o.properties,n,s))}),o}function mo(e,o,r){let t=W(G,{success:!0}),n=[t({itemId:e.item.id,folderId:o,authentication:r})];return N(e,"item.properties.parentInitiativeId")&&n.push(t({itemId:e.item.properties.parentInitiativeId,folderId:o,authentication:r})),Promise.all(n)}function yi(e,o,r=null){let t=0,n=0;return Promise.all([ye(e.id,{authentication:o}),re(o)]).then(([s,i])=>(t=s.item.created,n=s.item.modified,Tr(s,i))).then(s=>(s.item.created=t,s.item.modified=n,s.item.typeKeywords=Me(s.item.typeKeywords,"doNotDelete"),s.groups=[],s.estimatedDeploymentCostFactor=2,s.resources=[],N(s,"properties")||(s.properties={}),s=io(s),s))}function Pi(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));if(e.assets&&e.resources&&delete e.assets,o.solutionItemExtent){let c=o.solutionItemExtent.split(",");o.organization.defaultExtentBBox=[[c[0],c[1]],[c[2],c[3]]]}let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,vr(e,o,s,m))).then(c=>{let d=c,p={assets:d.assets||[]};return br(d,p,m)}).then(c=>(i=c,mo(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(Sr,{success:!0})(i,m).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw t(e.itemId,f.Failed,0),c})}function xi(e,o,r,t,n,s,i){let m;return re(i).then(a=>(m=a,ye(e,{authentication:i}))).then(a=>kn(a,r,s,m))}function wi(e){let o=!1;return(e==="Hub Page"||e==="Site Page")&&(o=!0),o}var Fe={};U(Fe,{convertItemToTemplate:()=>Si,createItemFromTemplate:()=>Ei,isASite:()=>Ti,postProcess:()=>bi});function An(e,o,r){let t=o.filter(n=>n.type.indexOf("Page")>-1).map(n=>n.id);return Promise.all(t.map(n=>ye(n,r))).then(n=>Cr(e,n,r))}function Mn(e,o,r,t){let n=o.filter(a=>a.id!==e.item.id),s=n.map(a=>({item:{id:a.id,type:a.type}})),i=[];i=i.concat(Mr(e,s,t)),i=i.concat(An(e,n,t));let m=n.map(a=>a.id);return e.item.properties.children=m,e=Rr(e,r,{}),i.push(Fr(e,{...t,allowList:void 0})),Promise.all(i).then(()=>!0)}function Si(e,o,r=null){let t=0,n=0,s,i,m;return re(o).then(a=>(m=a,yo(e.id,m))).then(a=>(t=a.item.created,n=a.item.modified,s=a.item.title,i=a.data.values.title,Ar(a,m))).then(a=>(a.item.created=t,a.item.modified=n,a.item.title=s,a.item.typeKeywords=Me(a.item.typeKeywords,"doNotDelete"),a.data.values.title=i,a.groups=[],a.estimatedDeploymentCostFactor=2,a.resources=[],u(a,"properties")||(a.properties={}),a.dependencies=ae(a.dependencies),a=io(a),a))}function Ei(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));e.assets&&e.resources&&delete e.assets,o.solution||(o.solution={}),o.solution.title=o.title;let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,kr(e,o,s,m))).then(c=>{let d={assets:c.assets||[]};return Or(c,d,m)}).then(c=>(i=c,mo(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(_r,{success:!0})(i,m).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw t(e.itemId,f.Failed,0),c})}function bi(e,o,r,t,n,s,i){let m;return re(i,s).then(a=>(m=a,yo(e,m))).then(a=>Mn(a,r,s,m)).then(()=>Promise.resolve(!0))}function Ti(e){let o=!1;return(e==="Hub Site Application"||e==="Site Application")&&(o=!0),o}var co={};U(co,{convertItemToTemplate:()=>_i,createItemFromTemplate:()=>Oi,isAStoryMap:()=>Ri});function Cn(e={}){let o=0;return Object.keys(e).reduce((r,t)=>(N(e,`${t}.type`)==="webmap"&&t!==`webmap${o}`&&(r.push({original:t,updated:`webmap${o}`}),o++),r),[])}function Un(e){let o=N(e,"data.resources")||{};return Object.keys(o).reduce((r,t)=>(N(o,`${t}.type`)==="webmap"&&r.push(N(o,`${t}.data.itemId`)),r),[])}function Nn(e){let o=Ke(e.item.id,e.item.type);o.key=`${We(e.item.title)}_${Ce("i")}`;let r=j(e);o.data=r.data;let t=r.item.created,n=r.item.modified;return o.item=Le(r.item),o.item.created=t,o.item.modified=n,o.item.url="{{storyMapTemplateUrl}}",Cn(o.data.resources).forEach(m=>{o.data.resources[m.updated]=j(o.data.resources[m.original]),delete o.data.resources[m.original],o.data.nodes=se(o.data.nodes,m.original,m.updated)}),o.item.typeKeywords.indexOf(Wn)!==-1&&(o.item.typeKeywords=[vi].concat(o.item.typeKeywords.filter(m=>m!==Wn))),o.properties={},o.properties.draftFileName="draft_{{timestamp}}.json",Object.assign(o.properties,Fi),o.dependencies=Un(e),Promise.resolve(o)}var Wn="smstatusunpublishedchanges",vi="smstatuspublished",Fi={oembed:{version:"1.0",type:"rich",title:"Example StoryMap",url:"{{storyMapTemplateUrl}}",provider_name:"ArcGIS StoryMaps",provider_url:"{{storyMapBaseUrl}}",width:800,height:600,thumbnail_url:"{{storyMapThumbnailUrl}}",thumbnail_height:"100.5",thumbnail_width:"400",html:'<iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen></iframe>',cache_age:86400},oembedXML:`<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
3
|
+
v1.1.0-next.20250805 */
|
4
|
+
import{$ as oe,$a as tr,A as C,Aa as Ct,Ab as hr,B as pt,Ba as de,Bb as yr,C as Ge,Ca as To,Cb as Pr,D as Pe,Da as Ut,Db as xr,E as P,Ea as Wt,Eb as re,F as ut,Fa as Nt,Fb as wr,G as ft,Ga as Lt,Gb as Sr,H as u,Ha as Vt,Hb as Er,I as lt,Ia as $t,Ib as br,Ja as Bt,Jb as Tr,K as xe,Ka as zt,Kb as vr,L as E,La as Gt,Lb as Fr,M as we,Ma as jt,Mb as _r,N as It,Na as Kt,Nb as Or,O as Po,Oa as Ht,Ob as Rr,P as xo,Pa as qt,Pb as kr,Q as je,Qa as Jt,Qb as Ar,R as K,Ra as vo,Rb as Mr,S as gt,Sa as De,Sb as Cr,T as ht,Ta as Dt,U as yt,Ua as Zt,Ub as Ur,V as L,Va as Qt,Vb as Qe,W as Pt,Wa as te,Wb as Oo,X as z,Xa as Yt,Xb as Ee,Y as Ke,Ya as Xt,Yb as Ye,Z as xt,Za as er,Zb as Wr,_ as wo,_a as or,_b as Nr,a as Ae,aa as x,ab as rr,ac as Lr,ba as b,bb as nr,bc as Vr,c as B,ca as J,cb as sr,d as X,da as He,db as ir,dc as $r,ea as wt,eb as mr,f,fa as St,fb as Se,g as ho,ga as So,gb as v,gc as Br,h as se,ha as Et,hb as Ze,hc as be,i as We,ia as bt,ic as Xe,j as me,ja as Tt,jc as eo,k as Ne,ka as vt,kb as ar,kc as zr,l as Le,la as Ft,lb as cr,lc as oo,m as yo,ma as _t,mb as V,mc as Gr,n as it,na as A,nb as dr,o as Ve,oa as ce,ob as pe,p as mt,pa as H,pb as q,q as $e,qa as qe,qb as pr,r as Be,ra as Je,rb as Fo,s as ee,sa as Ot,sb as ur,tb as _o,u as ae,ua as Rt,ub as fr,v as at,va as kt,vb as lr,w as I,wa as At,wb as Ir,x as ct,xa as Eo,y as dt,ya as bo,yb as gr,z as ze,za as Mt}from"./ZIHEWLDS.js";import{a as ie,g as ye}from"./BXGDO7U6.js";import{a as W}from"./XW65OD5F.js";import{a as j,b as Me,c as Ce,d as Ue}from"./VISRN5TF.js";import{e as G,f as rt,j as Oe,l as Re,o as nt,s as ke}from"./BMCLDOUD.js";import{a as tt}from"./L22H5MXZ.js";import{a as st}from"./B2DSQZNG.js";import{a as N}from"./CD2Z74PV.js";import{c as U}from"./SWTVJXVH.js";function ue(e,o="application/octet-stream"){if(typeof Blob<"u"){let r=[];for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);let t=new Uint8Array(r);return new Blob([t],{type:o})}else throw new Error("stringToBlob is not currently supported on Node")}function jr(e){if(typeof Blob<"u")return new Blob([JSON.stringify(e)],{type:"application/json"});throw new Error("objectToJsonBlob is not currently supported on Node")}var to={};U(to,{_mostRecentlyEditedLayer:()=>Ro,convertItemToTemplate:()=>Ts,createItemFromTemplate:()=>vs,postProcess:()=>Fs});function Ts(e,o,r,t){return new Promise((n,s)=>{let i=z(e);ir(e.groupDesignations)?Nt(i,r).then(a=>n(a),a=>s(P(a))):(i.estimatedDeploymentCostFactor=10,H(i.item.id,r).then(a=>{i.data=a,rr(i,r).then(c=>{c.item.modified=Math.max(c.item.modified,Ro(i.properties.layers),Ro(i.properties.tables)),er(c,r).then(d=>{c.dependencies=d.map(p=>p.id),n(Mt(c,d,!1,t))},d=>s(P(d)))},c=>s(P(c)))}))})}function vs(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),delete s.item.thumbnail,Ge(s,"properties.service.size");let i=Ct(s.data);Qt(s,r,o).then(m=>{m.success?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?(s=To(s,o,m),$t(s,o,i,r).then(()=>{s=To(s,o,m),pe({...s.item,url:void 0},s.data,r,e.item.thumbnail,void 0,o).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?A(s.itemId,r).then(a=>{s.item=a,u(s,"item.url")&&!s.item.url.endsWith("/")&&(s.item.url+="/"),n({item:s,id:m.serviceItemId,type:s.type,postProcess:oe({item:s.item,data:s.data})||vo(s)})},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})},()=>{t(e.itemId,f.Failed,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))})):(t(e.itemId,f.Cancelled,0),v(m.serviceItemId,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}function Fs(e,o,r,t,n,s,i){return new Promise((m,a)=>{q(e,s,i).then(c=>{vo(t)?(t=x(t,s),De(t,i,t.item.url,s).then(m,a)):m(c)},a)})}function Ro(e){let o=0;return e.forEach(r=>{o=r.editingInfo?.lastEditDate?Math.max(o,r.editingInfo.lastEditDate):o}),o}var l={};U(l,{convertItemToTemplate:()=>_s,createItemFromTemplate:()=>Os});function _s(e,o,r){return new Promise(t=>{let n=z(e);n.item.id=b(n.item.id,n.item.id,".itemId");let s=new Promise(m=>{ce(n.itemId,n.item.name,r).then(a=>{!a||a.size===0?m(null):m(a)})}),i=Promise.resolve({});Promise.all([s,i]).then(m=>{let[a]=m;if(a){let c=Wr(a,n.item.name);n.properties[c.filename]=c.mimeType;let d=Ye(n.itemId,c.blob.name,1,c.blob.name===c.filename?Ee.data:Ee.fakezip),p={itemId:n.itemId,file:c.blob,folder:d.folder,filename:d.filename};n.dataFile=p,n.resources.push(d.folder+"/"+d.filename),t(n)}else t(n)})})}function Os(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(i=>{t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,i.id)?(s.itemId=i.id,o[e.itemId]={itemId:i.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,i.id),n({item:s,id:i.id,type:s.type,postProcess:!1})):(t(e.itemId,f.Cancelled,0),v(i.id,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}var Ho={};U(Ho,{_getFormDataFilename:()=>On,_replaceFeatureServiceURLs:()=>Sn,_replaceItemIds:()=>En,_replacePortalBaseUrls:()=>bn,_replaceWorkflowManagerBaseUrls:()=>Tn,_updateZipObjectTextContent:()=>vn,convertItemToTemplate:()=>pi,createItemFromTemplate:()=>ui,postProcess:()=>_n,postProcessFormItems:()=>li,swizzleFormObject:()=>jo,templatizeFormData:()=>Ko});function qr(e,o){return Rs(e,o)}function Rs(e,o){return["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"].forEach(t=>{let n=u(e,t);Array.isArray(n)&&n.forEach(s=>{s.type==="mapWidget"&&(e.dependencies.indexOf(s.itemId)<0&&e.dependencies.push(s.itemId),s.itemId=b(s.itemId,s.itemId,".itemId")),Array.isArray(s.datasets)&&ks(s,e,o)})}),e}function ks(e,o,r){e.datasets.forEach(t=>{if(u(t,"dataSource.type")!=="arcadeDataSource"){let s=u(t,"dataSource.itemId");if(s){o.dependencies.indexOf(s)<0&&o.dependencies.push(s);let i=u(t,"dataSource.layerId");de(i?.toString(),s,"",r),t.dataSource.itemId=b(s,s,".itemId")}}})}function Jr(e,o){let r=["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"];return r.forEach(t=>{let n=u(e,t);As(n,o)}),r.forEach(t=>{Ms(e,t,o)}),e}function As(e,o){e&&Array.isArray(e)&&e.forEach(r=>{Array.isArray(r.datasets)&&r.datasets.forEach(t=>{let n=Po(u(t,"dataSource.itemId"));if(n){let s=xo(u(t,"dataSource.layerId"));o.some(i=>i.itemId===n&&i.layerId===s?(Hr(i,r.id),!0):!1)}else{let s=u(t,"dataSource.id");if(s){let i=s.split("#")[1];o.some(m=>m.ids.indexOf(i)>-1?(Hr(m,r.id),!0):!1)}}})})}function Ms(e,o,r){let t=u(e,o);t&&E(e,o,Cs(t,r))}function Cs(e,o){return Array.isArray(e)?e.map(r=>{let t=r;return Array.isArray(t.events)&&(t.events=t.events.map(n=>{let s=n;return Array.isArray(s.actions)&&(s.actions=s.actions.map(i=>{let m=i;if(m.fieldMap&&m.targetId&&m.targetId.indexOf("#")>-1){let a=Kr(m,o);if(a){let c=u(a,"fields"),d=u(a,"basePath");Array.isArray(c)&&d&&(m.fieldMap=m.fieldMap.map(p=>{let g=p;return g.targetName=J(g.targetName,c,d),g}))}}return m})),s})),Array.isArray(t.datasets)&&(t.datasets=t.datasets.map(n=>{let s=n;if(s.type==="serviceDataset"){let i=Kr(n,o);if(i){let m=u(i,"fields"),a=u(i,"basePath");Array.isArray(m)&&a&&(t=J(t,m,a),s=J(s,m,a))}}return s})),t}):e}function Kr(e,o){let r,t=u(e,"dataSource.id")||u(e,"targetId");if(t){let n=t.split("#")[1];if(!o.some(s=>(r=s.ids.indexOf(n)>-1?s:r,s.ids.indexOf(n)>-1))){let s=t.split("#")[0];o.some(i=>{let a=(i.references||[]).indexOf(s)>-1;return r=a?i:r,a})}}else{let n=Po(u(e,"dataSource.itemId")),s=xo(u(e,"dataSource.layerId"));n&&o.some(i=>{let m=n===i.itemId&&s===i.layerId;return r=m?i:r,m})}return r}function Hr(e,o){e.references=Array.isArray(e.references)?e.references:[],e.references.indexOf(o)<0&&e.references.push(o)}var fe={};U(fe,{convertItemToTemplate:()=>js,convertNotebookToTemplate:()=>$o,createItemFromTemplate:()=>Ks,deleteProps:()=>sn,fineTuneCreatedItem:()=>Vo,postProcess:()=>qs,postProcessNotebookTemplates:()=>Hs});function Qr(e,o,r,t){return new Promise((n,s)=>{let i="";if(e.item.url){let m=e.item.url,a=m.indexOf("//");e.item.url=L(K)+m.substring(m.indexOf("/",a+2),m.lastIndexOf("=")+1)+e.item.id,i=m.replace(m.substring(m.indexOf("/",a+2)),"")}e.dependencies=Ns(e),E(e,"data.folderId","{{folderId}}"),$s(e,["data.map.itemId","data.map.appProxy.mapItemId","data.values.webmap","data.values.group"]),Xr(e,"data.appItemId",e.itemId),No(e,["data.logo","data.map.portalUrl","data.portalUrl","data.httpProxy.url"],L(K)),E(e,"data.geometryService",L(gt)),Us(e,r,i,t).then(()=>{Zr(e,r,i,"data.widgetPool.widgets").then(m=>{Zr(m,r,i,"data.widgetOnScreen.widgets",!0).then(a=>{Ws(a,r,i,"data.values").then(c=>{n(c)},c=>s(P(c)))},a=>s(P(a)))},m=>s(P(m)))},m=>s(P(m)))})}function Us(e,o,r,t){return new Promise((n,s)=>{let i=u(e,"data.dataSource.dataSources");if(i&&Object.keys(i).length>0){let m=new Array;Object.keys(i).forEach(a=>{let c=i[a];E(c,"portalUrl",L(K));let d=u(c,"itemId");if(u(c,"url")){if(d){let g=c.url.substr(c.url.lastIndexOf("/")+1);de(g.toString(),d,c.url,t),c.itemId=b(d,d,".layer"+g+".itemId")}let p=Wo(c.url,r,[],[],o);m.push(new Promise((g,h)=>{Uo(p.serviceRequests,p.requestUrls,p.testString).then(y=>{c.url=y,g()},y=>h(P(y)))}))}else d&&(c.itemId=b(d,d,".itemId"))}),Promise.all(m).then(()=>n(e),a=>s(P(a)))}else n(e)})}function Zr(e,o,r,t,n=!1){return new Promise((s,i)=>{let m=u(e,t)||[],a=[],c=[];if(m.forEach(d=>{!n&&u(d,"icon")&&No(d,["icon"],L(K));let p=d.config;if(p){let g=JSON.stringify(p),h=Wo(g,r,c,a,o);d.config=JSON.parse(h.testString),a=h.serviceRequests,c=h.requestUrls}}),a.length>0){let d=JSON.stringify(m);Uo(a,c,d).then(p=>{E(e,t,JSON.parse(p)),s(e)},p=>i(P(p)))}else s(e)})}function Ws(e,o,r,t){return new Promise((n,s)=>{let i=u(e,t),m=[],a=[];if(i){u(i,"icon")&&No(i,["icon"],L(K));let c=JSON.stringify(i),d=Wo(c,r,a,m,o);i=JSON.parse(d.testString),m=d.serviceRequests,a=d.requestUrls}if(m.length>0){let c=JSON.stringify(i);Uo(m,a,c).then(d=>{E(e,t,JSON.parse(d)),n(e)},d=>s(P(d)))}else n(e)})}function Uo(e,o,r){return new Promise((t,n)=>{if(e&&e.length>0){let s=0;Promise.all(e).then(i=>{i.forEach(m=>{if(u(m,"serviceItemId")){let a="{{"+m.serviceItemId+(m.hasOwnProperty("id")?".layer"+m.id:"")+".url}}";r=ro(r,o[s],a,!0)}s++}),t(r)},i=>n(P(i)))}else t(r)})}function Wo(e,o,r,t,n){let s={f:"json",authentication:n},i=e.match(/(\bhttps?:\/\/[-A-Z0-9/._]*)/gim);return i&&i.length&&i.forEach(m=>{m.indexOf("NAServer")>-1?e=ro(e,m,L(yt)):m.indexOf("GeocodeServer")>-1?e=ro(e,m,L(ht)):o&&m.indexOf(o)>-1?e=ro(e,o,L(K)):m.indexOf("FeatureServer")>-1&&r.indexOf(m)===-1&&(r.push(m),t.push(B(m,s)))}),{testString:e,requestUrls:r,serviceRequests:t}}function ro(e,o,r,t=!1){let n=t&&e.indexOf('"')>-1,s=new RegExp(n?'"'+o+'"':o,"gmi");return e.replace(s,n?'"'+r+'"':r)}function No(e,o,r){o.forEach(t=>{let n=u(e,t);if(n){let s=n.substring(n.indexOf("/",n.indexOf("//")+2));E(e,t,s!==n?r+s:r)}})}function Yr(e,o,r,t){return new Promise(n=>{if(we(e,["WAB2D","WAB3D","Web AppBuilder"])){let s={id:o.itemId,url:o.item.url,data:o.data},i=V(s,t),m={tags:e.item.tags,title:e.item.title,type:"Code Attachment",typeKeywords:["Code","Javascript","Web Mapping Application"],relationshipType:"WMA2Code",originItemId:o.itemId,url:Be(x(L(K),r))+"sharing/rest/content/items/"+o.itemId+"/package"},a=te(m,{},t,r.folderId);Promise.all([i,a]).then(()=>n(null),()=>n(null))}else n(null)})}function Ns(e){let o=Ls;return we(e,["WAB2D","WAB3D","Web AppBuilder"])&&(o=Vs),o(e)}function Ls(e){return lt(e,["data.values.webmap","data.values.group"])}function Vs(e){let o=[],r=u(e,"data.map.itemId");r&&o.push(r);let t=u(e,"data.dataSource.dataSources");return t&&Object.keys(t).forEach(n=>{let s=t[n];s.itemId&&o.push(s.itemId)}),o}function $s(e,o){o.forEach(r=>{let t=u(e,r);Xr(e,r,t)})}function Xr(e,o,r){E(e,o,b(r,r,".itemId"))}function en(e,o){let r=u(e,"data.dataSource.dataSources");r&&Object.keys(r).length>0&&(Object.keys(r).forEach(s=>{let i=r[s];r[s]=Mo(i,o)}),E(e,"data.dataSource.dataSources",r)),["data.widgetPool.widgets","data.widgetOnScreen.widgets"].forEach(s=>{let i=u(e,s);i&&E(e,s,Bs(i,o))});let n=u(e,"data.values");return n&&E(e,"data.values",Mo(n,o)),e}function Mo(e,o,r=!1){return e=Gs(e,o,r),zs(e,o).forEach(n=>{e=J(e,n.fields,n.basePath,r)}),e}function Bs(e,o){let r=["SmartEditor","Screening"];return e.map(t=>{if(t.config){let n=r.indexOf(t.name)>-1;t.config=Mo(t.config,o,n)}return t})}function zs(e,o){let r=JSON.stringify(e);return o.filter(n=>Ao(n,r)<4).sort((n,s)=>Ao(n,r)-Ao(s,r))}function Ao(e,o){let r=e.url,t=e.itemId,n=e.layerId,s;return r&&!isNaN(n)&&(s=new RegExp(r.replace(/[.]/,".layer"+n+"."),"gm")),s&&s.test(o)||e.ids.length>0&&e.ids.some(i=>new RegExp(i,"gm").test(o))?1:r&&new RegExp(r,"gm").test(o)?2:t&&new RegExp(t,"gm").test(o)?3:4}function Gs(e,o,r){let t=JSON.stringify(e),n=o.filter(s=>{let i;s.url&&!isNaN(s.layerId)&&(i=new RegExp(s.url.replace(/[.]/,".layer"+s.layerId+"."),"gm"));let m=!1;if(s.ids.length>0&&(m=s.ids.some(a=>new RegExp(a,"gm").test(t))),m||i&&i.test(t))return s});return n.length>0&&n.forEach(s=>{e=Co(e,s,r),s.ids.length>0&&s.ids.forEach(i=>{e=no(e,s,i,r)})}),e}function Co(e,o,r){let t={},n=o.url,s=o.layerId,i;if(n&&!isNaN(s)&&(i=new RegExp(n.replace(/[.]/,".layer"+s+"."),"gm")),Array.isArray(e))t=e.map(m=>Co(m,o,r));else if(typeof e=="object")for(let m in e)e[m]!=null&&typeof e[m]=="object"?t[m]=Co(e[m],o,r):(i&&i.test(e[m])&&(e=J(e,o.fields,o.basePath,r)),t[m]=e[m]);else t=e;return t}function no(e,o,r,t){let n={},s=new RegExp(r,"gm");if(Array.isArray(e))n=e.map(i=>no(i,o,r,t));else if(typeof e=="object")for(let i in e)if(e[i]!==null){let m;try{m=JSON.parse(e[i])}catch{m=void 0}m&&typeof m=="object"?n[i]=JSON.stringify(no(m,o,r,t)):typeof e[i]=="object"?(s.test(i)&&t&&(e[i]=J(e[i],o.fields,o.basePath,t)),n[i]=no(e[i],o,r,t)):(s.test(e[i])&&(e=J(e,o.fields,o.basePath,t)),n[i]=e[i])}else n[i]=e[i];else n=e;return n}function on(e,o,r,t){return Jt(e,r,t)}function tn(e,o,r){return De(e,o,"",r)}function D(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0))t(e.itemId,f.Ignored,0),n(I(e.type));else{let s=C(e);s=x(s,o);let i;e.type==="Web Mapping Application"&&e.data?s=JSON.parse(x(JSON.stringify(s),o)):e.type==="QuickCapture Project"&&e.data&&(i=JSON.stringify(s.data.application),delete s.data),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(m=>{if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.id))t(e.itemId,f.Cancelled,0),v(m.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else{o[e.itemId]={itemId:m.id,itemUrl:o.portalBaseUrl+"/sharing/rest/content/items/"+m.id},s.itemId=m.id,s.type==="Web Mapping Application"&&e.data&&E(s,"data.appItemId",m.id);let a=oe(s.data),c=s.item.url;s=x(s,o);let d=Promise.resolve([]);if(s.relatedItems){let g=x(He(s.relatedItems),o);d=Dt(s.itemId,g,r)}let p;if(e.type==="Web Mapping Application"&&e.data&&we(e,["WAB2D","WAB3D","Web AppBuilder"]))p=Yr(e,s,o,r);else if(e.type==="Workforce Project")p=tn(s,r,o);else if(e.type==="QuickCapture Project"){if(i){let g=ze(x(JSON.parse(i),o),"qc.project.json");p=Br(g,s.itemId,"",g.name,r)}}else e.type==="Notebook"?p=Vo(e,s,o,r):c!==s.item.url?p=new Promise((g,h)=>{pr(m.id,s.item.url,r).then(()=>g(),h)}):p=Promise.resolve(null);Promise.all([d,p]).then(()=>{t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.id)?n({item:s,id:m.id,type:s.type,postProcess:a}):(t(e.itemId,f.Cancelled,0),v(m.id,r).then(()=>n(I(e.type)),()=>n(I(e.type))))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})}})}function js(e,o,r,t){return Z(e,o,r,t)}function Ks(e,o,r,t){return D(e,o,r,t)}function $o(e){return new Promise(o=>{sn(e.data),o(e)})}function Hs(e,o){if(e.some(t=>t.type==="Notebook")){let t=Object.keys(o).filter(s=>s.indexOf("FeatureServer")>-1).sort().reverse(),n=e.reduce((s,i)=>(s=[...new Set([...s,...i.dependencies,i.itemId])],s),[]);e=e.map(s=>{if(s.type==="Notebook"){let i=s.data&&JSON.stringify(s.data);return n.forEach(m=>{new RegExp(m,"gim").test(i)&&(i=i.replace(m,"{{"+m+".itemId}}"),s.dependencies.indexOf(m)<0&&s.dependencies.push(m))}),t.forEach(m=>{let a=new RegExp(m,"gim");if(a.test(i)){let c=o[m];i=i.replace(a,c);let d=/[0-9A-F]{32}/gim,p=c.match(d)[0];s.dependencies.indexOf(p)<0&&s.dependencies.push(p)}}),s.data=JSON.parse(i),s}})}return e}function sn(e){if(e){let o=["metadata.interpreter","metadata.papermill"];Pe(e,o),(e.cells||[]).forEach(r=>{Pe(r,o)})}}function Vo(e,o,r,t){return new Promise((n,s)=>{let i={id:o.itemId,url:o.item.url,data:ze(o.data,o.itemId+".ipynb")};V(i,t).then(()=>n(null),s)})}function qs(e,o,r,t,n,s,i){return q(e,s,i)}function an(e,o,r){return new Promise((t,n)=>{Js(e,r).then(s=>{e.dependencies=s.dependencies,e.data?.properties&&(e.data.properties.ServiceURL=mn(e.data.properties.ServiceURL,s.urlHash),e.data.properties.OverviewURL=mn(e.data.properties.OverviewURL,s.urlHash)),t(e)},s=>n(P(s)))})}function Js(e,o){return new Promise((r,t)=>{let n=[];if(e.data?.properties){let s=[];e.data.properties.ServiceURL&&s.push(e.data.properties.ServiceURL),e.data.properties.OverviewURL&&e.data.properties.OverviewURL!==e.data.properties.ServiceURL&&s.push(e.data.properties.OverviewURL),Ds(s,n,o).then(i=>{r(i)},i=>t(P(i)))}else r({dependencies:n,urlHash:{}})})}function Ds(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d){let p=/.+FeatureServer/g.exec(d),g=Array.isArray(p)&&p.length>0?p[0]:void 0;return g?(Object.keys(a).indexOf(g)<0&&(a[g]=B(d,i)),m.push(a[g]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,g)=>{if(u(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[g]]=h}}),t({dependencies:o,urlHash:s})},d=>n(P(d))):t({dependencies:o,urlHash:s})})}function mn(e,o){let r=e;if(e){let t=o[e];if(t){let n=e.substr(e.lastIndexOf("/")+1);r=b(t,t,".layer"+n+".url")}r=He(r.replace(/.+?(?=\/home)/,"{{portalBaseUrl}}"))}return r}var Te={};U(Te,{_templatizeAdminEmail:()=>pn,_templatizeApplication:()=>dn,_templatizeId:()=>Bo,_templatizeUrl:()=>fn,_updateDependencies:()=>un,convertItemToTemplate:()=>Qs,convertQuickCaptureToTemplate:()=>zo,createItemFromTemplate:()=>Ys});function Qs(e,o,r,t){return Z(e,o,r,t)}function zo(e){return E(e,"data.application",dn(e.data.application,e)),e}function dn(e,o){Bo(e,"itemId"),pn(e);let r=e?.dataSources;return r&&Array.isArray(r)&&r.forEach(t=>{let n=t.featureServiceItemId;n&&(un(n,o),fn(t,"featureServiceItemId","url"),Bo(t,"featureServiceItemId"))}),e}function pn(e){u(e,"preferences.adminEmail")&&E(e,"preferences.adminEmail","{{user.email}}")}function un(e,o){o.dependencies.indexOf(e)===-1&&o.dependencies.push(e)}function fn(e,o,r){let t=u(e,o),n=u(e,r);if(n){let s=n.substr(n.lastIndexOf("/")+1);E(e,r,b(t,t,".layer"+s+".url"))}}function Bo(e,o){let r=u(e,o);r&&E(e,o,b(r,r,".itemId"))}function Ys(e,o,r,t){return D(e,o,r,t)}var Xs="home/webmap/viewer.html?webmap=";function ln(e,o,r,t){return new Promise((n,s)=>{e.type!=="Vector Tile Service"&&(e.item.url=e.item.url?Be(L(K))+Xs+e.item.id:e.item.url),ei(e,r).then(i=>{e.dependencies=i.dependencies,e.data&&(e.data.baseMap?.baseMapLayers&&Go(e.data.baseMap.baseMapLayers,i.urlHash,t),e.data.operationalLayers&&Go(e.data.operationalLayers,i.urlHash,t),Go(e.data.tables,i.urlHash,t),oi(e.data)),n(e)},i=>s(P(i)))})}function ei(e,o){return new Promise((r,t)=>{let n=[];if(e.data){let s=e.data.baseMap?.baseMapLayers||[],i=e.data.operationalLayers||[],m=e.data.tables||[],a=s.concat(i).concat(m);ti(a,n,o).then(c=>{r(c)},c=>t(P(c)))}else r({dependencies:n,urlHash:{}})})}function oi(e){Ge(e,"initialState")}function ti(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d.itemId&&d.layerType==="VectorTileLayer")return m.push(A(d.itemId,r)),!0;if(d.url&&d.url.indexOf("{{velocityUrl}}")<0){let p=/.+FeatureServer/g.exec(d.url),g=Array.isArray(p)&&p.length>0?p[0]:void 0;return g?(Object.keys(a).indexOf(g)<0&&(a[g]=B(d.url,i)),m.push(a[g]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((p,g)=>{if(c[g].layerType==="VectorTileLayer"){let h=u(p,"typeKeywords");if(h&&h.includes("Vector Tile Style Editor")){o.indexOf(p.id)<0&&o.push(p.id),c[g].templatizeId=!0;let y=c[g].styleUrl.indexOf(p.id)+p.id.length;c[g].styleUrl=b(c[g].styleUrl.replace(c[g].styleUrl.substring(0,y),p.id),p.id,".itemUrl")}}else if(u(p,"serviceItemId")){let h=p.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[g].url]=h}}),t({dependencies:o,urlHash:s})},d=>n(P(d))):t({dependencies:o,urlHash:s})})}function Go(e=[],o,r){e.forEach(t=>{if(t.itemId&&t.layerType==="VectorTileLayer")t.templatizeId&&(t.itemId=b(t.itemId,t.itemId,".itemId"),delete t.templatizeId);else if(t.url){let n=t.url.substr(t.url.lastIndexOf("/")+1),s=Object.keys(o).indexOf(t.url)>-1?o[t.url]:void 0;s&&(de(n,s,t.url,r),t.url=b(s,s,".layer"+n+".url"),t.itemId=b(s,s,".layer"+n+".itemId"))}})}function In(e,o){return["data.operationalLayers","data.tables","data.applicationProperties.viewing.search.layers"].forEach(t=>ri(e,o,t)),e}function ri(e,o,r){let t=u(e,r);t&&E(e,r,ni(t,o))}function ni(e,o){return e.forEach(r=>{let t=si(r,o);if(t){let n=t.fields.map(i=>i.name);Gt(r,t,t.basePath,t.itemId,n),Kt(r,t.basePath,n),r.layerDefinition&&(qt(r.layerDefinition,t.basePath,n),Ht(r.layerDefinition,t.basePath,n));let s=u(r,"field.name");s&&E(r,"field.name",jt(s,r,t.itemId,t.basePath))}}),e}function si(e,o){let r;return o.some(t=>t.ids.indexOf(e.id)>-1?(r=t,!0):!1),r}function Z(e,o,r,t){return new Promise((n,s)=>{let i=z(e);i.item.id=b(i.item.id,i.item.id,".itemId");let m=qe(i.itemId,"forward",r),a=Promise.resolve({}),c=Promise.resolve([]);switch(e.type){case"Dashboard":case"Data Pipeline":case"Feature Collection":case"Feature Service":case"Hub Initiative":case"Hub Page":case"Hub Site Application":case"Insights Model":case"Oriented Imagery Catalog":case"Project Package":case"Style":case"Workforce Project":case"Web Map":case"Web Mapping Application":case"Web Scene":case"Notebook":a=new Promise(d=>{H(i.itemId,r).then(p=>d(p))});break;case"Form":a=ce(i.itemId,i.item.name,r);break;case"QuickCapture Project":c=Je(i.itemId,r);break}Promise.all([a,m,c]).then(d=>{let[p,g,h]=d;Gr(i,t),i.data=oo(p,e.type,t);let y=g;i.dependencies=[],i.relatedItems=[],y.forEach(w=>{w.relationshipType!=="WMA2Code"&&(i.relatedItems.push(w),w.relatedItemIds.forEach(F=>{i.dependencies.indexOf(F)<0&&i.dependencies.push(F)}))}),e.type==="Data Pipeline"&&(i.dependencies=i.dependencies.concat(ii(p)));let S=Promise.resolve(i);switch(e.type){case"Dashboard":qr(i,t);break;case"Notebook":S=$o(i);break;case"Oriented Imagery Catalog":S=an(i,o,r);break;case"QuickCapture Project":i.resources=h,S=new Promise(async w=>{let F=null,R=-1;h&&(h.some((Ie,$)=>{let M=Ie.name==="qc.project.json";return M&&(F=Ie,R=$),M}),R>=0&&h.splice(R,1)),F&&(i.data={application:{...await $e(F)},name:"qc.project.json"}),i.data.application?.basemap?.type==="Web Map"&&i.dependencies.push(i.data.application.basemap.itemId);let Q=zo(i);w(Q)});break;case"Vector Tile Service":case"Web Map":case"Web Scene":S=ln(i,o,r,t);break;case"Web Mapping Application":p&&(S=Qr(i,o,r,t));break;case"Workforce Project":S=on(i,o,r,t);break}S.then(n,w=>s(P(w)))})})}function ii(e){let o=[];return(e?.inputs??[]).concat(e?.outputs??[]).forEach(t=>{if(t.type==="FeatureServiceSource"||t.type==="FeatureServiceSink"){let n=u(t,"parameters.layer.value.itemId");n&&o.push(n)}}),o}var _={};U(_,{convertItemToTemplate:()=>mi,createItemFromTemplate:()=>ai,postProcess:()=>di,postProcessFieldReferences:()=>ci});function mi(e,o,r,t){return Z(e,o,r,t)}function ai(e,o,r,t){return D(e,o,r,t)}function ci(e,o,r){switch(r){case"Web Mapping Application":en(e,o);break;case"Dashboard":Jr(e,o);break;case"Web Map":In(e,o);break}return e}function di(e,o,r,t,n,s,i){return q(e,s,i)}function pi(e,o,r,t){return _.convertItemToTemplate(e,o,r,t)}function so(e){return!!u(e,"properties.services")}function yn(e,o="https://survey123.arcgis.com"){let r=`${o}/api/survey/create`,t={credentials:"same-origin",method:"POST",body:tt({f:"json",...e},!0)};return fetch(r,t).then(n=>n.json()).then(n=>{if(!n.success)throw new Error(`Failed to create survey: ${n.error.message}`);return{formId:n.id,featureServiceId:n.featureService.source.itemId,folderId:n.formItemInfo.ownerFolder}})}var Pn=function(o){let r=C(o),t=[["header","content"],["subHeader","content"],["footer","content"],["settings","thankYouScreenContent"]],n=(i,m)=>(i&&i[m]&&(i[m]=encodeURIComponent(i[m])),i);t.forEach(([i,m])=>n(r[i],m));let s=i=>n(i,"description");return r.questions=(r.questions||[]).map(i=>i.questions?{...i,questions:i.questions.map(s)}:s(i)),r};function xn(e,o,r){let{item:{title:t,description:n,tags:s,typeKeywords:i},properties:{form:m}}=e,{user:{username:a},portalBaseUrl:c,organization:{basemapGalleryGroupQuery:d,defaultBasemap:{title:p}}}=o,{token:g}=r.toCredential();return Rt(d,p,r).then(h=>{let y="Survey-",S=It(`${y}${t}`,o,"user.folders").replace(y,"");if(m.questions){let F=R=>(R.maps&&(R.maps=R.maps.map(Q=>({...Q,itemId:h.id}))),R);m.questions=m.questions.map(R=>R.questions?{...R,questions:R.questions.map(F)}:F(R))}let w=Pn(m);return{description:n,form:w,portalUrl:c,tags:s,title:S,token:g,typeKeywords:i,username:a}})}function wn(e,o,r,t){let n=x(e,o),{survey123Url:s}=o;return xn(n,o,r).then(i=>yn(i,s)).then(i=>{let{formId:m,featureServiceId:a}=i,c=Promise.resolve(null);return e.item.thumbnail&&(c=pe({id:m},null,r,e.item.thumbnail)),c.then(()=>A(m,r)).then(d=>(o[n.itemId]={itemId:m},o[n.properties.info.serviceInfo.itemId]={itemId:a},t(n.itemId,f.Finished,n.estimatedDeploymentCostFactor,m),{item:{...e,item:d,itemId:m},id:m,type:"Form",postProcess:!0}))}).catch(i=>{throw t(n.itemId,f.Failed,0),i})}function ui(e,o,r,t){return so(e)?wn(e,o,r,t):_.createItemFromTemplate(e,o,r,t)}async function jo(e,o){let r=await _o(e),t=new Date;return t=new Date(t.valueOf()-864e5-t.getTimezoneOffset()*1e3*60),r.forEach(n=>{if(typeof n.content=="string"){let s=vn(n,o);e.file(n.file,s,{date:t})}else n.file.endsWith(".xlsx")&&e.file(n.file,n.content,{date:t})}),Promise.resolve(e)}async function Ko(e,o){return(await _o(e)).forEach(t=>{if(t.file.endsWith(".info")||t.file.endsWith(".itemInfo")||t.file.endsWith(".json")||t.file.endsWith(".webform")||t.file.endsWith(".xml")){let n=t.content,s=/\b([0-9A-Fa-f]){32}_type/g;n=En(n,o,s),n=Sn(n,o,s),n=bn(n,o),n=Tn(n,o),e.file(t.file,n)}}),Promise.resolve(e)}function Sn(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type==="Feature Service").forEach(s=>{let i=o[s].url,m=o[i];m&&(t=t.replace(new RegExp(i,"g"),m))}),t}function En(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type!=="Feature Service").map(s=>s.replace("_type","")).forEach(s=>{t=t.replace(new RegExp(s,"g"),`{{${s}.itemId}}`)}),t}function bn(e,o){let r=e;return o.portalBaseUrl&&(r=r.replace(new RegExp(o.portalBaseUrl,"g"),"{{portalBaseUrl}}")),r}function Tn(e,o){let r=e;return o.workflowBaseUrl&&(r=r.replace(new RegExp(o.workflowBaseUrl,"g"),"{{workflowBaseUrl}}")),r}function vn(e,o){let r=ct(),t=e.content;return t=x(e.content,o),ae(t.match(r)??[]).forEach(s=>{let i=o[s];typeof i?.itemId=="string"&&(t=t.replace(new RegExp(s,"g"),`${i.itemId}`))}),t}function Fn(e,o,r,t,n,s,i){let m=t.properties.info.serviceInfo.itemId,{itemId:a}=s[m],c=x(t,s);return A(a,i).then(d=>{let p=[{id:e,title:c.item.title,snippet:c.item.snippet,extent:c.item.extent,culture:c.item.culture},{id:a,extent:c.item.extent,typeKeywords:[`source-${m}`].concat(d.typeKeywords)}],g=y=>V(y,i),h=p.map(g);return Promise.all(h).then(()=>{let y=[e,a],S=F=>G({itemId:F,folderId:s.folderId,authentication:i}),w=y.map(S);return Promise.all(w)}).then(()=>mr(d.ownerFolder,i)).then(()=>{let y=z(d);return n.push(y),t.dependencies.push(d.id),!0})})}async function _n(e,o,r,t,n,s,i){let m=await ce(e,"Form",i);if(m){let a=await Fo(m),c=await jo(a,s);Qe(c,e,i)}else return await at(5e3),_n(e,o,r,t,n,s,i);return so(t)?Fn(e,o,r,t,n,s,i):q(e,s,i)}async function li(e,o){for(let r of e)if(r.type==="Form"){let t=r.data;if(r.data=null,t){let n=await Fo(t);n=await Ko(n,o),r.item.name=On(r.item.name,t.name,`${r.itemId}.zip`);let s=await fr(n,r.item.name),i=Ye(r.itemId,r.item.name,1,Ee.data),m={itemId:r.itemId,file:s,folder:i.folder,filename:r.item.name};r.dataFile=m,r.resources.push(i.folder+"/"+i.filename)}}return Promise.resolve(e)}function On(e,o,r){let t=e||o;return t&&t!=="undefined"?t:r}var qo={};U(qo,{_initializeNewGroup:()=>Rn,convertItemToTemplate:()=>Ii,createItemFromTemplate:()=>gi,postProcess:()=>hi});function Ii(e,o,r){return new Promise(t=>{let n=Pt(e);n.item.id=b(n.item.id,n.item.id,".itemId"),_t(e.id,r).then(s=>{n.type="Group",Ft(e.id,r).then(i=>{i.id=n.item.id,n.item={...i,type:"Group"},n.dependencies=s.concat(ft(i.tags)),t(n)},()=>t(n))},()=>t(n))})}function gi(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,f.Started,0)){t(e.itemId,f.Ignored,0),n(I(e.type));return}let s=C(e);s=x(s,o),s.item.thumbnail=e.item.thumbnail;let i=Rn(s.item);Xt(i.title,i,o,r,bo(s)?o.locationTracking.owner:void 0).then(m=>{if(m.success)if(!t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(s.itemId=m.group.id,o[e.itemId]={itemId:m.group.id},s=x(s,o),o[e.itemId].itemId=m.group.id,!t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)));else if(bo(s)){let a=o.locationTracking.owner;ar(m.group.id,a,r).then(c=>{c.success?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?cr(m.group.id,[r.username],r).then(d=>{Array.isArray(d.notRemoved)&&d.notRemoved.length===0?t(e.itemId,f.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)}):(t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))}):(t(e.itemId,f.Cancelled,0),Se(m.group.id,r).then(()=>n(I(e.type)),()=>n(I(e.type)))):(t(e.itemId,f.Failed,0),n(I(e.type)))})}else n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)});else t(e.itemId,f.Failed,0),n(I(e.type))},()=>{t(e.itemId,f.Failed,0),n(I(e.type))})})}function hi(e,o,r,t,n,s,i){let m=Promise.resolve({success:!0});return r.some(a=>{if(a.id===e){let c=a.item.item;return oe(c)&&(c=x(c,s),m=dr(c,i)),!0}}),m}function Rn(e){let o={access:"private",description:e.description,owner:e.owner,snippet:e.snippet,tags:e.tags,thumbnail:e.thumbnail,title:e.title||"",typeKeywords:e.typeKeywords};return["autoJoin","displaySettings","isInvitationOnly","isOpenData","isViewOnly","membershipAccess","properties","sortField","sortOrder"].forEach(t=>{e.hasOwnProperty(t)&&(o[t]=e[t])}),o}var ve={};U(ve,{convertItemToTemplate:()=>yi,createItemFromTemplate:()=>Pi,isAPage:()=>wi,postProcess:()=>xi});function kn(e,o,r,t){return e=me(e,r,{}),Er(e,{...t,allowList:[]}).then(()=>!0)}function io(e){let o=j(e);return(e.dependencies||[]).forEach(t=>{let n=new RegExp(t,"g"),s=`{{${t}.itemId}}`;o.item=se(o.item,n,s),o.data=se(o.data,n,s),e.properties&&(o.properties=se(o.properties,n,s))}),o}function mo(e,o,r){let t=W(G,{success:!0}),n=[t({itemId:e.item.id,folderId:o,authentication:r})];return N(e,"item.properties.parentInitiativeId")&&n.push(t({itemId:e.item.properties.parentInitiativeId,folderId:o,authentication:r})),Promise.all(n)}function yi(e,o,r=null){let t=0,n=0;return Promise.all([ye(e.id,{authentication:o}),re(o)]).then(([s,i])=>(t=s.item.created,n=s.item.modified,Tr(s,i))).then(s=>(s.item.created=t,s.item.modified=n,s.item.typeKeywords=Me(s.item.typeKeywords,"doNotDelete"),s.groups=[],s.estimatedDeploymentCostFactor=2,s.resources=[],N(s,"properties")||(s.properties={}),s=io(s),s))}function Pi(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));if(e.assets&&e.resources&&delete e.assets,o.solutionItemExtent){let c=o.solutionItemExtent.split(",");o.organization.defaultExtentBBox=[[c[0],c[1]],[c[2],c[3]]]}let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,vr(e,o,s,m))).then(c=>{let d=c,p={assets:d.assets||[]};return br(d,p,m)}).then(c=>(i=c,mo(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(Sr,{success:!0})(i,m).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw t(e.itemId,f.Failed,0),c})}function xi(e,o,r,t,n,s,i){let m;return re(i).then(a=>(m=a,ye(e,{authentication:i}))).then(a=>kn(a,r,s,m))}function wi(e){let o=!1;return(e==="Hub Page"||e==="Site Page")&&(o=!0),o}var Fe={};U(Fe,{convertItemToTemplate:()=>Si,createItemFromTemplate:()=>Ei,isASite:()=>Ti,postProcess:()=>bi});function An(e,o,r){let t=o.filter(n=>n.type.indexOf("Page")>-1).map(n=>n.id);return Promise.all(t.map(n=>ye(n,r))).then(n=>Cr(e,n,r))}function Mn(e,o,r,t){let n=o.filter(a=>a.id!==e.item.id),s=n.map(a=>({item:{id:a.id,type:a.type}})),i=[];i=i.concat(Mr(e,s,t)),i=i.concat(An(e,n,t));let m=n.map(a=>a.id);return e.item.properties.children=m,e=Rr(e,r,{}),i.push(Fr(e,{...t,allowList:void 0})),Promise.all(i).then(()=>!0)}function Si(e,o,r=null){let t=0,n=0,s,i,m;return re(o).then(a=>(m=a,yo(e.id,m))).then(a=>(t=a.item.created,n=a.item.modified,s=a.item.title,i=a.data.values.title,Ar(a,m))).then(a=>(a.item.created=t,a.item.modified=n,a.item.title=s,a.item.typeKeywords=Me(a.item.typeKeywords,"doNotDelete"),a.data.values.title=i,a.groups=[],a.estimatedDeploymentCostFactor=2,a.resources=[],u(a,"properties")||(a.properties={}),a.dependencies=ae(a.dependencies),a=io(a),a))}function Ei(e,o,r,t){if(!t(e.itemId,f.Started,0))return Promise.resolve(I(e.type));e.assets&&e.resources&&delete e.assets,o.solution||(o.solution={}),o.solution.title=o.title;let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,kr(e,o,s,m))).then(c=>{let d={assets:c.assets||[]};return Or(c,d,m)}).then(c=>(i=c,mo(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,f.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(_r,{success:!0})(i,m).then(()=>Promise.resolve(I(e.type)))}).catch(c=>{throw t(e.itemId,f.Failed,0),c})}function bi(e,o,r,t,n,s,i){let m;return re(i,s).then(a=>(m=a,yo(e,m))).then(a=>Mn(a,r,s,m)).then(()=>Promise.resolve(!0))}function Ti(e){let o=!1;return(e==="Hub Site Application"||e==="Site Application")&&(o=!0),o}var co={};U(co,{convertItemToTemplate:()=>_i,createItemFromTemplate:()=>Oi,isAStoryMap:()=>Ri});function Cn(e={}){let o=0;return Object.keys(e).reduce((r,t)=>(N(e,`${t}.type`)==="webmap"&&t!==`webmap${o}`&&(r.push({original:t,updated:`webmap${o}`}),o++),r),[])}function Un(e){let o=N(e,"data.resources")||{};return Object.keys(o).reduce((r,t)=>(N(o,`${t}.type`)==="webmap"&&r.push(N(o,`${t}.data.itemId`)),r),[])}function Nn(e){let o=Ke(e.item.id,e.item.type);o.key=`${We(e.item.title)}_${Ce("i")}`;let r=j(e);o.data=r.data;let t=r.item.created,n=r.item.modified;return o.item=Le(r.item),o.item.created=t,o.item.modified=n,o.item.url="{{storyMapTemplateUrl}}",Cn(o.data.resources).forEach(m=>{o.data.resources[m.updated]=j(o.data.resources[m.original]),delete o.data.resources[m.original],o.data.nodes=se(o.data.nodes,m.original,m.updated)}),o.item.typeKeywords.indexOf(Wn)!==-1&&(o.item.typeKeywords=[vi].concat(o.item.typeKeywords.filter(m=>m!==Wn))),o.properties={},o.properties.draftFileName="draft_{{timestamp}}.json",Object.assign(o.properties,Fi),o.dependencies=Un(e),Promise.resolve(o)}var Wn="smstatusunpublishedchanges",vi="smstatuspublished",Fi={oembed:{version:"1.0",type:"rich",title:"Example StoryMap",url:"{{storyMapTemplateUrl}}",provider_name:"ArcGIS StoryMaps",provider_url:"{{storyMapBaseUrl}}",width:800,height:600,thumbnail_url:"{{storyMapThumbnailUrl}}",thumbnail_height:"100.5",thumbnail_width:"400",html:'<iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen></iframe>',cache_age:86400},oembedXML:`<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
5
5
|
<oembed>
|
6
6
|
<version>1.0</version>
|
7
7
|
<type>rich</type>
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as f}from"./N36BQC66.js";import{a as _}from"./LQYQK52P.js";import{a as S}from"./5NTTXYVC.js";import{B as D,C as I}from"./IQ3QEMBR.js";import{b as L}from"./67N2QUDS.js";import"./KTVARFQK.js";import"./L5Z7XJTH.js";import{A as p,h as v,i as l,k as m,n as E,w as b,x as $,y as C}from"./7TAQ5RIA.js";import"./VCJXO3QG.js";var k="instant-apps-filter-list calcite-mode-light",O="instant-apps-filter-list calcite-mode-dark",x=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(h){return h.replaceAll("'","''")}function y(h,t=!1){if(h){let e=new Date(h),i=`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`;if(t){let s=`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`;return`${i} ${s}`}else return i}}function P(h){if(h!=null){h.value=["",""];let t=h.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let e of t)e.value=""}}var R=v`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,u={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},F=class extends C{constructor(){super(...arguments),this._messages=S({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=b(),this.panelEl=b(),this.isLayerExpUpdated=!1,this.baseClass=k,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=E(),this.filterUpdate=E()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=R}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let t=structuredClone(this.filterLayerExpressions);return await Promise.resolve(t)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(t){return t==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(e=>{let i=t?.find(s=>s.id===e.id);i!=null&&(e.title=i.title,e.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(t){return this.initDefExpressions=t.initDefExpressions,this.initMapImageExpressions=t.initMapImageExpressions,this.initPointCloudFilters=t.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async load(){this.baseClass=_(this.el)==="dark"?O:k,await this.initializeModules(),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(t){t.has("view")&&this.handleWhenView(),t.has("layerExpressions")&&(this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[t,e]=await Promise.all([I(),D()]);this.geometryJsonUtils=e,this.intl=t}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:t}=this.filterLayerExpressions[0],e=t?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(u.operatorDesc)} .heading=${this._messages[e]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(t,e){let i=this.panelEl.value?.querySelector(`[id='${t.id}']`);i&&(P(i),t.active=!1,t.definitionExpression=void 0,t.range=void 0,this.generateOutput(e))}initInput(t,e){let{type:i,numDisplayOption:s,displayOption:n}=e;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(t,e);if(i==="number"||i==="range")return this.renderNumberSlider(t,e);if(i==="date")return this.renderDatePicker(t,e)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async t=>{await Promise.all((t.expressions||[]).map(async e=>await this.setInitExpression(t,e)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(t=>{t.expressions?.forEach(e=>{let{type:i,numDisplayOption:s,displayOption:n}=e,a="";i==="string"||i==="coded-value"||i==="date"&&(s==="drop-down"||n==="drop-down")||(i==="number"||i==="range")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,e):this.resetCheckbox(e),e.active=!1})})}resetExpressionUI(t,e){let{id:i}=e;switch(t){case"combobox":{e.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&P(s);break}case"numberRange":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=e.min,s.maxValue=e.max);break}}}resetCheckbox(t){let{id:e}=t,i=this.panelEl.value?.querySelector(`[id='${e}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables)?.forEach(t=>{if(!x.includes(t.type))return;let e=t;if(e.type==="point-cloud"){if(!this.initPointCloudFilters)return;e.filters=this.initPointCloudFilters[e.id]}else if(e.type==="map-image")e.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[e.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;e.definitionExpression=this.initDefExpressions[e.id]}})}async updateStringExpression(t,e){let i=this.findFilterLayer(t);return await this.getFeatureAttributes(i,e),this.handleDateField(i,e),e?.selectedFields?(e.definitionExpression=this.createDefinitionExpression(e),!0):!1}handleDateField(t,e){e.type==="date"&&t.fields.find(({name:i})=>i===e.field)?.type==="date-only"&&(e.dateOnly=!0)}createDefinitionExpression(t){if(!t.selectedFields?.length)return"";let e=t.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${t.field} IN (${e.join(",")})`}async updateNumberExpression(t,e){if(!e?.min&&e?.min!==0||!e?.max&&e?.max!==0){let i=this.findFilterLayer(t),{field:s}=e;if(s!=null)if(this.setExpressionFormat(i,e,s),e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down")await this.getFeatureAttributes(i,e);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(e.format?.places!=null?(e.min=this.roundMinNumberDown(n[`min${s}`],e.format.places),e.max=this.roundMaxNumberUp(n[`max${s}`],e.format.places)):(e.min=n[`min${s}`],e.max=n[`max${s}`]),e?.range&&Object.keys(e.range).length){let{min:a,max:r}=e.range;return e.definitionExpression=`${e.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(t,e){let{field:i,range:s}=e,n=this.findFilterLayer(t),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(e.min=y(a[`min${i}`]),e.max=y(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?e.definitionExpression=`${i} ${c} '${r??o}'`:e.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateCodedValueExpression(t,e,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(t);await this.getFeatureAttributes(s,e);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(e.codedValues=n,e.selectedFields?.length){let a=e.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return e.definitionExpression=`${e.field} IN (${a})`,!0}return!1}updateRangeExpression(t,e){if(!e?.domain||e?.domain?.type!=="range")return!1;let{field:i,range:s}=t;return t.min=e.domain.minValue,t.max=e.domain.maxValue,s&&Object.keys(s).length?(t.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(t,e){if(!this.isLayerSupported(t)){e.fields=[];return}let i=await this.getQueryLayer(t),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(t),a=await i.queryFeatureCount(),r=this.createQuery(i,e);await this.queryDistinctFeatures(i,r,e),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,e)}isLayerSupported(t){return t&&x.includes(t.type)}extractQueryCapabilities(t){return{maxRecordCount:t.capabilities?.query?.maxRecordCount??t.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:t.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(t,e){let i=t.createQuery();this.applyCacheHint(t,i);let s=e?.field;if(s){let n=this.getInitDefExprFromLayer(t);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(t,e,i){if(!e.outFields)return;let s=await this.queryForFeatures(t,e,e.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(t,e){return e?t*5:t}shouldPaginate(t,e,i){let s=this.getQueryCount(t,i);return t!=null&&e>s}async handlePagination(t,e,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let d=e.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(t,d,e?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,g)=>d.localeCompare(g)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,g)=>d-g):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(t,e,i){return(await t.queryFeatures(e))?.features.filter(s=>s.attributes?.[i])?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(t,e){if(!t||!x.includes(t.type)||!e)return[];let i=this.createStatisticsQuery(t,e);return(await t.queryFeatures(i))?.features||[]}createStatisticsQuery(t,e){let i=t.createQuery();return i.where=this.getInitDefExprFromLayer(t)||"1=1",this.applyCacheHint(t,i),i.outStatistics=[{onStatisticField:e,outStatisticFieldName:`max${e}`,statisticType:"max"},{onStatisticField:e,outStatisticFieldName:`min${e}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(t,e){if(t&&e){let{constraints:i}=e,s={...i}.geometry;if(s){let n="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(t,e){if(!e.field||!e.type){await this.updateExpression(t,e,void 0);return}let i=this.findFilterLayer(t);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===e.field),n=s?.domain?.type;e.type=n==="coded-value"||n==="range"?n:e.type,await this.updateExpression(t,e,s)}))}async updateExpression(t,e,i){await this.handleExpressionType(t,e,i)&&this.generateOutput(t)}async handleExpressionType(t,e,i){switch(e.type){case"string":return await this.updateStringExpression(t,e);case"number":return await this.updateNumberExpression(t,e);case"date":return await this.updateDateExpressionBasedOnDisplayOption(t,e);case"coded-value":return await this.updateCodedValueExpression(t,e,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(t,e,i);case"checkbox":case null:case void 0:return e.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(t,e){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):await this.updateDateExpression(t,e)}async updateRangeExpressionBasedOnDisplayOption(t,e,i){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):this.updateRangeExpression(e,i)}updateRangeExpressions(t,e,i,s){let n=this.getInitDefExprFromLayerExpression(e);(s||s===0)&&(i||i===0)&&(s===t?.min&&i===t?.max?(t.definitionExpression=void 0,t.active=!1):(t.definitionExpression=n?`(${n}) AND ${t?.field} BETWEEN ${s} AND ${i}`:`${t?.field} BETWEEN ${s} AND ${i}`,t.active=!0)),t.range={min:s,max:i}}handleCheckboxChange(t,e,i){let s=i.target;e.active=s.checked,this.generateOutput(t)}handleSliderChange(t,e,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(t,e,s,n),this.generateOutput(e)}handleComboSelect(t,e,i){let s=i.target.selectedItems,{field:n,type:a}=t;if(t.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);t.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):`${n} IN (${r.join(",")})`,t.active=!0}else t.definitionExpression=void 0,t.active=!1;this.generateOutput(e)}handleDatePickerRangeChange(t,e,i){let s=i.target,[n,a]=s.valueAsDate,r=n?y(Math.floor(n.getTime()),!0):void 0,o=a?y(Math.floor(a.getTime()),!0):void 0;(r||o)&&(t.definitionExpression=this.constructDefinitionExpression(t.field,r,o),t.range={min:r,max:o},t.active=!0,this.generateOutput(e))}constructDefinitionExpression(t,e,i){return e?i?`${t} BETWEEN '${e}' AND '${i}'`:`${t} > '${e}'`:`${t} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let e=t.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(e)}applyFilters(t){let e=0;return t.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),e++)})}),e}activateExpression(t,e){t.active=!0,e.type==="range"?t.range=e.range:e.type==="select"&&(t.selectedFields=e.selectedFields)}createURLParamExpression(t,e){let{id:i,range:s,selectedFields:n,type:a}=e;return a==="string"||a==="coded-value"||e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down"?{type:"select",layerId:t.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:t.id,expressionId:i.toString(),range:s}:{layerId:t.id,expressionId:i.toString()}}autoUpdateURLCheck(t){if(this.autoUpdateUrl){let e=t.toString()?`${window.location.pathname}?${t}`.trim():window.location.pathname;window.history.replaceState({},"",e)}}generateURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(window.location.search),e=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=e.length,e.length>0?t.set("filter",e.join(";")):t.delete("filter"),this.autoUpdateURLCheck(t),this.urlParams=t}updateFilter(t,e,i){let{id:s}=t,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(t?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,e,t)}else this.updateFilterLayerDefExpression(n,e,t)}updateFilterLayerDefExpression(t,e,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(t),a=e?.length>0&&n!=null&&n!==""?`(${e.join(s)}) AND (${n})`:e.length>0?e.join(s):n;t.definitionExpression=a}updateFilterLayerPCLFilter(t,e){t.filters=e}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(t){let e=t?.sublayerId?`#zoom-to-${t.id}-${t.sublayerId}`:`#zoom-to-${t.id}`,i=this.panelEl.value?.querySelector(e),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(t),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(t){let e=this.view.allLayerViews.find(({layer:s})=>s.id===t.id).layer,i=e.type==="map-image"?e.findSublayerById(t.sublayerId):e;if(i&&i.type!=="point-cloud"&&x.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(t){if(this.view==null)return;let e=[],i=[];if(t){for(let s of t.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&e.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(t,e,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(t){return t.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(t,e,i){if(t==null)return;let s;if(!String(t).includes("e"))s=Math[i](t*Math.pow(10,e))/Math.pow(10,e);else{let[n,a]=String(t).split("e").map(o=>Number(o)),r=a+e;s=Math[i](+`${n}e${r}`)*Math.pow(10,-e)}return+s.toFixed(e)}roundMinNumberDown(t,e){return this.scientificRounding(t,e,"floor")}roundMaxNumberUp(t,e){return this.scientificRounding(t,e,"ceil")}roundNumber(t,e){return this.scientificRounding(t,e,"round")??t}setExpressionFormat(t,e,i){if(t?.popupTemplate!=null){let s=t?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(e.format=s.format)}}getInitDefExprFromLayer(t){return t.type==="sublayer"?this.initMapImageExpressions?.[t?.layer?.id??""]?.[t.id]??"":this.initDefExpressions?.[t.id]??""}getInitDefExprFromLayerExpression(t){return t?.sublayerId!=null?this.initMapImageExpressions?.[t.id]?.[t.sublayerId]??"":this.initDefExpressions?.[t.id]??""}findFilterLayer(t){let e=this.view.map?.allLayers.concat(this.view.map?.allTables)?.find(({id:i})=>i===t.id);return e.type==="map-image"?e?.findSublayerById(t.sublayerId):e}createLabel(t,e){if(t.type==="coded-value")return t?.codedValues?.[e];if(t.type==="number"&&typeof e=="number"){let i=e;return t.format?.places!=null&&(i=this.roundNumber(e,t.format.places)),t.format?.digitSeparator?this.numberWithCommas(i):i}if(t.type==="date"&&!t.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(e,i)}return e}buildDateExpression(t,e){if(t){let i=new Date(t),s=new Date(t),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${e} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(t){let e=t.type==="sublayer"?await t.createFeatureLayer():t;if(!e)throw new Error("Failed to create feature layer");return e}applyCacheHint(t,e){t?.capabilities?.query?.supportsCacheHint&&(e.cacheHint=!0)}applyQueryGeometryFromExtentSelector(t){if(!this.extentSelector||!this.extentSelectorConfig)return;let e=this.getExtent(this.extentSelector,this.extentSelectorConfig);e&&(t.geometry=e,t.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let t=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},t.allLayers.concat(t.allTables).forEach(e=>{if(!x.includes(e.type))return;let i=e;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}render(){let t=this.loading?this.renderLoading():this.initFilterConfig(),e=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${$(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${f("filter-container",l`<div class=${p(u.filterContainer)}>${t}${e}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(t){let{id:e}=t;return t.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?f(`${e}-${s}`,l`<div class=${p(u.filterItemContainer)}><div class=${p(u.filterItemTitle)}><p>${i.name}</p></div><div class=${p(u.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??m} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,t,i)}></calcite-checkbox></div></div>`):this.initInput(t,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(t=>this.renderFilterBlocks(t))}renderFilterBlocks(t){let e=this.renderFilter(t),{operator:i}=t,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(t);return f(t.id,l`<calcite-block .heading=${t.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${e}</calcite-block>`)}renderCombobox(t,e){return f("combo-select",l`<label class=${p(u.filterUIItemContainer)}><span>${e.name}</span><calcite-combobox id=${e.id.toString()??m} @calciteComboboxChange=${this.handleComboSelect.bind(this,e,t)} .label=${e.name} .placeholder=${e.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${e.fields?.map((i,s)=>this.renderComboboxItem(e,i,s))}</calcite-combobox></label>`)}renderComboboxItem(t,e,i){let s=this.createLabel(t,e),n=t?.selectedFields?.includes(e)??!1;return f(`${s}-${i}`,l`<calcite-combobox-item .value=${e} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(t,e){let i=e?.min,s=e?.max,n=e?.step?e.step:1,a=i!=null&&s!=null,r=e?.field??"",o=e?.range?.min!=null?e.range.min:i,c=e?.range?.max!=null?e.range.max:s,d=[o,c];return a?f(e?.id.toString(),l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.numberInputContainer)}><calcite-slider id=${e?.id.toString()??m} @calciteSliderChange=${this.handleSliderChange.bind(this,e,t)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${d} .groupSeparator=${e?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(t,e){let{min:i,max:s}=e,n=[e?.range?.min,e?.range?.max];return i!=null&&s!=null?l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.dateInputContainer)}><calcite-input-date-picker id=${e?.id.toString()??m} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,e,t)} .min=${i} .max=${s} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,e,t)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??m} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let t=this.closeBtnText??this._messages.close,e=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(u.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${e} @click=${this.handleResetFilter} ${$(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${e} kind=brand @click=${this.closeBtnOnClick}>${t}</calcite-button>`:void 0}</div>`}renderZoomTo(t){let e=t?.sublayerId?`zoom-to-${t.id}-${t.sublayerId}`:`zoom-to-${t.id}`;return this.zoomBtn?l`<calcite-action id=${e??m} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??m} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,t)}></calcite-action>`:void 0}};L("instant-apps-filter-list",F);export{F as InstantAppsFilterList};
|
3
|
+
v1.1.0-next.20250805 */
|
4
|
+
import{a as f}from"./UEE7MT2U.js";import{a as _}from"./QESTTPNW.js";import{a as S}from"./X6EKAG3F.js";import{B as D,C as I}from"./G4Y7NNVO.js";import{b as L}from"./Q3EL3SKK.js";import"./W4ZT6LNS.js";import"./VD5E2IZ5.js";import{A as p,h as v,i as l,k as m,n as E,w as b,x as $,y as C}from"./QXM5FILZ.js";import"./SWTVJXVH.js";var k="instant-apps-filter-list calcite-mode-light",O="instant-apps-filter-list calcite-mode-dark",x=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(h){return h.replaceAll("'","''")}function y(h,t=!1){if(h){let e=new Date(h),i=`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`;if(t){let s=`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`;return`${i} ${s}`}else return i}}function P(h){if(h!=null){h.value=["",""];let t=h.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let e of t)e.value=""}}var R=v`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,u={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},F=class extends C{constructor(){super(...arguments),this._messages=S({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=b(),this.panelEl=b(),this.isLayerExpUpdated=!1,this.baseClass=k,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=E(),this.filterUpdate=E()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=R}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let t=structuredClone(this.filterLayerExpressions);return await Promise.resolve(t)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(t){return t==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(e=>{let i=t?.find(s=>s.id===e.id);i!=null&&(e.title=i.title,e.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(t){return this.initDefExpressions=t.initDefExpressions,this.initMapImageExpressions=t.initMapImageExpressions,this.initPointCloudFilters=t.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async load(){this.baseClass=_(this.el)==="dark"?O:k,await this.initializeModules(),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(t){t.has("view")&&this.handleWhenView(),t.has("layerExpressions")&&(this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[t,e]=await Promise.all([I(),D()]);this.geometryJsonUtils=e,this.intl=t}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:t}=this.filterLayerExpressions[0],e=t?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(u.operatorDesc)} .heading=${this._messages[e]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(t,e){let i=this.panelEl.value?.querySelector(`[id='${t.id}']`);i&&(P(i),t.active=!1,t.definitionExpression=void 0,t.range=void 0,this.generateOutput(e))}initInput(t,e){let{type:i,numDisplayOption:s,displayOption:n}=e;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(t,e);if(i==="number"||i==="range")return this.renderNumberSlider(t,e);if(i==="date")return this.renderDatePicker(t,e)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async t=>{await Promise.all((t.expressions||[]).map(async e=>await this.setInitExpression(t,e)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(t=>{t.expressions?.forEach(e=>{let{type:i,numDisplayOption:s,displayOption:n}=e,a="";i==="string"||i==="coded-value"||i==="date"&&(s==="drop-down"||n==="drop-down")||(i==="number"||i==="range")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,e):this.resetCheckbox(e),e.active=!1})})}resetExpressionUI(t,e){let{id:i}=e;switch(t){case"combobox":{e.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&P(s);break}case"numberRange":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=e.min,s.maxValue=e.max);break}}}resetCheckbox(t){let{id:e}=t,i=this.panelEl.value?.querySelector(`[id='${e}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables)?.forEach(t=>{if(!x.includes(t.type))return;let e=t;if(e.type==="point-cloud"){if(!this.initPointCloudFilters)return;e.filters=this.initPointCloudFilters[e.id]}else if(e.type==="map-image")e.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[e.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;e.definitionExpression=this.initDefExpressions[e.id]}})}async updateStringExpression(t,e){let i=this.findFilterLayer(t);return await this.getFeatureAttributes(i,e),this.handleDateField(i,e),e?.selectedFields?(e.definitionExpression=this.createDefinitionExpression(e),!0):!1}handleDateField(t,e){e.type==="date"&&t.fields.find(({name:i})=>i===e.field)?.type==="date-only"&&(e.dateOnly=!0)}createDefinitionExpression(t){if(!t.selectedFields?.length)return"";let e=t.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${t.field} IN (${e.join(",")})`}async updateNumberExpression(t,e){if(!e?.min&&e?.min!==0||!e?.max&&e?.max!==0){let i=this.findFilterLayer(t),{field:s}=e;if(s!=null)if(this.setExpressionFormat(i,e,s),e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down")await this.getFeatureAttributes(i,e);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(e.format?.places!=null?(e.min=this.roundMinNumberDown(n[`min${s}`],e.format.places),e.max=this.roundMaxNumberUp(n[`max${s}`],e.format.places)):(e.min=n[`min${s}`],e.max=n[`max${s}`]),e?.range&&Object.keys(e.range).length){let{min:a,max:r}=e.range;return e.definitionExpression=`${e.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(t,e){let{field:i,range:s}=e,n=this.findFilterLayer(t),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(e.min=y(a[`min${i}`]),e.max=y(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?e.definitionExpression=`${i} ${c} '${r??o}'`:e.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateCodedValueExpression(t,e,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(t);await this.getFeatureAttributes(s,e);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(e.codedValues=n,e.selectedFields?.length){let a=e.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return e.definitionExpression=`${e.field} IN (${a})`,!0}return!1}updateRangeExpression(t,e){if(!e?.domain||e?.domain?.type!=="range")return!1;let{field:i,range:s}=t;return t.min=e.domain.minValue,t.max=e.domain.maxValue,s&&Object.keys(s).length?(t.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(t,e){if(!this.isLayerSupported(t)){e.fields=[];return}let i=await this.getQueryLayer(t),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(t),a=await i.queryFeatureCount(),r=this.createQuery(i,e);await this.queryDistinctFeatures(i,r,e),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,e)}isLayerSupported(t){return t&&x.includes(t.type)}extractQueryCapabilities(t){return{maxRecordCount:t.capabilities?.query?.maxRecordCount??t.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:t.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(t,e){let i=t.createQuery();this.applyCacheHint(t,i);let s=e?.field;if(s){let n=this.getInitDefExprFromLayer(t);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(t,e,i){if(!e.outFields)return;let s=await this.queryForFeatures(t,e,e.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(t,e){return e?t*5:t}shouldPaginate(t,e,i){let s=this.getQueryCount(t,i);return t!=null&&e>s}async handlePagination(t,e,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let d=e.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(t,d,e?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,g)=>d.localeCompare(g)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,g)=>d-g):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(t,e,i){return(await t.queryFeatures(e))?.features.filter(s=>s.attributes?.[i])?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(t,e){if(!t||!x.includes(t.type)||!e)return[];let i=this.createStatisticsQuery(t,e);return(await t.queryFeatures(i))?.features||[]}createStatisticsQuery(t,e){let i=t.createQuery();return i.where=this.getInitDefExprFromLayer(t)||"1=1",this.applyCacheHint(t,i),i.outStatistics=[{onStatisticField:e,outStatisticFieldName:`max${e}`,statisticType:"max"},{onStatisticField:e,outStatisticFieldName:`min${e}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(t,e){if(t&&e){let{constraints:i}=e,s={...i}.geometry;if(s){let n="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(t,e){if(!e.field||!e.type){await this.updateExpression(t,e,void 0);return}let i=this.findFilterLayer(t);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===e.field),n=s?.domain?.type;e.type=n==="coded-value"||n==="range"?n:e.type,await this.updateExpression(t,e,s)}))}async updateExpression(t,e,i){await this.handleExpressionType(t,e,i)&&this.generateOutput(t)}async handleExpressionType(t,e,i){switch(e.type){case"string":return await this.updateStringExpression(t,e);case"number":return await this.updateNumberExpression(t,e);case"date":return await this.updateDateExpressionBasedOnDisplayOption(t,e);case"coded-value":return await this.updateCodedValueExpression(t,e,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(t,e,i);case"checkbox":case null:case void 0:return e.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(t,e){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):await this.updateDateExpression(t,e)}async updateRangeExpressionBasedOnDisplayOption(t,e,i){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):this.updateRangeExpression(e,i)}updateRangeExpressions(t,e,i,s){let n=this.getInitDefExprFromLayerExpression(e);(s||s===0)&&(i||i===0)&&(s===t?.min&&i===t?.max?(t.definitionExpression=void 0,t.active=!1):(t.definitionExpression=n?`(${n}) AND ${t?.field} BETWEEN ${s} AND ${i}`:`${t?.field} BETWEEN ${s} AND ${i}`,t.active=!0)),t.range={min:s,max:i}}handleCheckboxChange(t,e,i){let s=i.target;e.active=s.checked,this.generateOutput(t)}handleSliderChange(t,e,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(t,e,s,n),this.generateOutput(e)}handleComboSelect(t,e,i){let s=i.target.selectedItems,{field:n,type:a}=t;if(t.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);t.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):`${n} IN (${r.join(",")})`,t.active=!0}else t.definitionExpression=void 0,t.active=!1;this.generateOutput(e)}handleDatePickerRangeChange(t,e,i){let s=i.target,[n,a]=s.valueAsDate,r=n?y(Math.floor(n.getTime()),!0):void 0,o=a?y(Math.floor(a.getTime()),!0):void 0;(r||o)&&(t.definitionExpression=this.constructDefinitionExpression(t.field,r,o),t.range={min:r,max:o},t.active=!0,this.generateOutput(e))}constructDefinitionExpression(t,e,i){return e?i?`${t} BETWEEN '${e}' AND '${i}'`:`${t} > '${e}'`:`${t} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let e=t.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(e)}applyFilters(t){let e=0;return t.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),e++)})}),e}activateExpression(t,e){t.active=!0,e.type==="range"?t.range=e.range:e.type==="select"&&(t.selectedFields=e.selectedFields)}createURLParamExpression(t,e){let{id:i,range:s,selectedFields:n,type:a}=e;return a==="string"||a==="coded-value"||e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down"?{type:"select",layerId:t.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:t.id,expressionId:i.toString(),range:s}:{layerId:t.id,expressionId:i.toString()}}autoUpdateURLCheck(t){if(this.autoUpdateUrl){let e=t.toString()?`${window.location.pathname}?${t}`.trim():window.location.pathname;window.history.replaceState({},"",e)}}generateURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(window.location.search),e=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=e.length,e.length>0?t.set("filter",e.join(";")):t.delete("filter"),this.autoUpdateURLCheck(t),this.urlParams=t}updateFilter(t,e,i){let{id:s}=t,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(t?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,e,t)}else this.updateFilterLayerDefExpression(n,e,t)}updateFilterLayerDefExpression(t,e,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(t),a=e?.length>0&&n!=null&&n!==""?`(${e.join(s)}) AND (${n})`:e.length>0?e.join(s):n;t.definitionExpression=a}updateFilterLayerPCLFilter(t,e){t.filters=e}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(t){let e=t?.sublayerId?`#zoom-to-${t.id}-${t.sublayerId}`:`#zoom-to-${t.id}`,i=this.panelEl.value?.querySelector(e),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(t),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(t){let e=this.view.allLayerViews.find(({layer:s})=>s.id===t.id).layer,i=e.type==="map-image"?e.findSublayerById(t.sublayerId):e;if(i&&i.type!=="point-cloud"&&x.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(t){if(this.view==null)return;let e=[],i=[];if(t){for(let s of t.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&e.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(t,e,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(t){return t.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(t,e,i){if(t==null)return;let s;if(!String(t).includes("e"))s=Math[i](t*Math.pow(10,e))/Math.pow(10,e);else{let[n,a]=String(t).split("e").map(o=>Number(o)),r=a+e;s=Math[i](+`${n}e${r}`)*Math.pow(10,-e)}return+s.toFixed(e)}roundMinNumberDown(t,e){return this.scientificRounding(t,e,"floor")}roundMaxNumberUp(t,e){return this.scientificRounding(t,e,"ceil")}roundNumber(t,e){return this.scientificRounding(t,e,"round")??t}setExpressionFormat(t,e,i){if(t?.popupTemplate!=null){let s=t?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(e.format=s.format)}}getInitDefExprFromLayer(t){return t.type==="sublayer"?this.initMapImageExpressions?.[t?.layer?.id??""]?.[t.id]??"":this.initDefExpressions?.[t.id]??""}getInitDefExprFromLayerExpression(t){return t?.sublayerId!=null?this.initMapImageExpressions?.[t.id]?.[t.sublayerId]??"":this.initDefExpressions?.[t.id]??""}findFilterLayer(t){let e=this.view.map?.allLayers.concat(this.view.map?.allTables)?.find(({id:i})=>i===t.id);return e.type==="map-image"?e?.findSublayerById(t.sublayerId):e}createLabel(t,e){if(t.type==="coded-value")return t?.codedValues?.[e];if(t.type==="number"&&typeof e=="number"){let i=e;return t.format?.places!=null&&(i=this.roundNumber(e,t.format.places)),t.format?.digitSeparator?this.numberWithCommas(i):i}if(t.type==="date"&&!t.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(e,i)}return e}buildDateExpression(t,e){if(t){let i=new Date(t),s=new Date(t),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${e} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(t){let e=t.type==="sublayer"?await t.createFeatureLayer():t;if(!e)throw new Error("Failed to create feature layer");return e}applyCacheHint(t,e){t?.capabilities?.query?.supportsCacheHint&&(e.cacheHint=!0)}applyQueryGeometryFromExtentSelector(t){if(!this.extentSelector||!this.extentSelectorConfig)return;let e=this.getExtent(this.extentSelector,this.extentSelectorConfig);e&&(t.geometry=e,t.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let t=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},t.allLayers.concat(t.allTables).forEach(e=>{if(!x.includes(e.type))return;let i=e;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}render(){let t=this.loading?this.renderLoading():this.initFilterConfig(),e=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${$(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${f("filter-container",l`<div class=${p(u.filterContainer)}>${t}${e}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(t){let{id:e}=t;return t.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?f(`${e}-${s}`,l`<div class=${p(u.filterItemContainer)}><div class=${p(u.filterItemTitle)}><p>${i.name}</p></div><div class=${p(u.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??m} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,t,i)}></calcite-checkbox></div></div>`):this.initInput(t,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(t=>this.renderFilterBlocks(t))}renderFilterBlocks(t){let e=this.renderFilter(t),{operator:i}=t,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(t);return f(t.id,l`<calcite-block .heading=${t.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${e}</calcite-block>`)}renderCombobox(t,e){return f("combo-select",l`<label class=${p(u.filterUIItemContainer)}><span>${e.name}</span><calcite-combobox id=${e.id.toString()??m} @calciteComboboxChange=${this.handleComboSelect.bind(this,e,t)} .label=${e.name} .placeholder=${e.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${e.fields?.map((i,s)=>this.renderComboboxItem(e,i,s))}</calcite-combobox></label>`)}renderComboboxItem(t,e,i){let s=this.createLabel(t,e),n=t?.selectedFields?.includes(e)??!1;return f(`${s}-${i}`,l`<calcite-combobox-item .value=${e} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(t,e){let i=e?.min,s=e?.max,n=e?.step?e.step:1,a=i!=null&&s!=null,r=e?.field??"",o=e?.range?.min!=null?e.range.min:i,c=e?.range?.max!=null?e.range.max:s,d=[o,c];return a?f(e?.id.toString(),l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.numberInputContainer)}><calcite-slider id=${e?.id.toString()??m} @calciteSliderChange=${this.handleSliderChange.bind(this,e,t)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${d} .groupSeparator=${e?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(t,e){let{min:i,max:s}=e,n=[e?.range?.min,e?.range?.max];return i!=null&&s!=null?l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.dateInputContainer)}><calcite-input-date-picker id=${e?.id.toString()??m} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,e,t)} .min=${i} .max=${s} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,e,t)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??m} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let t=this.closeBtnText??this._messages.close,e=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(u.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${e} @click=${this.handleResetFilter} ${$(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${e} kind=brand @click=${this.closeBtnOnClick}>${t}</calcite-button>`:void 0}</div>`}renderZoomTo(t){let e=t?.sublayerId?`zoom-to-${t.id}-${t.sublayerId}`:`zoom-to-${t.id}`;return this.zoomBtn?l`<calcite-action id=${e??m} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??m} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,t)}></calcite-action>`:void 0}};L("instant-apps-filter-list",F);export{F as InstantAppsFilterList};
|