@esri/solutions-components 1.1.0-next.20251015 → 1.1.0
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/{ZU3D5VUY.js → 22OA2X7F.js} +2 -2
- package/dist/cdn/{FHFWCGVH.js → 23S4BMNB.js} +2 -2
- package/dist/cdn/{2V4G3WZ2.js → 27OQI5JT.js} +2 -2
- package/dist/cdn/{B7TZTDLF.js → 2BQCOVME.js} +2 -2
- package/dist/cdn/{E5RBQTNH.js → 2CIRIU3Q.js} +2 -2
- package/dist/cdn/{HJQCUBEO.js → 2G3HCFJ7.js} +2 -2
- package/dist/cdn/{IHJCOKEC.js → 2J6BGZWE.js} +2 -2
- package/dist/cdn/{3ZC2RGOR.js → 2KKFZ7KY.js} +2 -2
- package/dist/cdn/{55QDKERG.js → 2LIVMQO2.js} +2 -2
- package/dist/cdn/{WQYQRTPK.js → 2PFP4SVP.js} +2 -2
- package/dist/cdn/{LT7YPVZE.js → 2XTYWT3B.js} +2 -2
- package/dist/cdn/{7Q7YJNBZ.js → 2ZJRDJJK.js} +2 -2
- package/dist/cdn/{ZCA45OX3.js → 32HJ7U6I.js} +2 -2
- package/dist/cdn/{563F6IRC.js → 34LPRBJE.js} +3 -3
- package/dist/cdn/{4OXIZQ5A.js → 37HGSBPX.js} +2 -2
- package/dist/cdn/{6NEFR4VZ.js → 3AZTP5O6.js} +2 -2
- package/dist/cdn/{64DJDBI7.js → 3JHRLX63.js} +2 -2
- package/dist/cdn/{XWWP25D7.js → 3JNOCCQ5.js} +2 -2
- package/dist/cdn/{4RWUZIBI.js → 3LABEKOR.js} +2 -2
- package/dist/cdn/{PFC776ZU.js → 3MC7JXDY.js} +2 -2
- package/dist/cdn/{7U7GUOHV.js → 3MPDK4WK.js} +2 -2
- package/dist/cdn/{FTDZIEYQ.js → 3O2T33CU.js} +2 -2
- package/dist/cdn/{7EO77LPB.js → 3PD2HBG5.js} +2 -2
- package/dist/cdn/{UFFG3BO2.js → 3S2J6YOU.js} +2 -2
- package/dist/cdn/3WH4NYCV.js +18 -0
- package/dist/cdn/{2AZTT77Q.js → 3WJFXADS.js} +1 -1
- package/dist/cdn/{HMNVV6X6.js → 3WWK4QH7.js} +2 -2
- package/dist/cdn/{VZ32DB6K.js → 46SKFEV5.js} +2 -2
- package/dist/cdn/{RUD53N67.js → 4CQVWVRQ.js} +2 -2
- package/dist/cdn/{FJUPP7CO.js → 4FKOEYT7.js} +2 -2
- package/dist/cdn/{WE7WRF7D.js → 4OJUMAO5.js} +2 -2
- package/dist/cdn/4YJSVXJ5.js +4 -0
- package/dist/cdn/{VCCI45G4.js → 52OASXL7.js} +2 -2
- package/dist/cdn/{22OSTVBI.js → 54NFAZPM.js} +2 -2
- package/dist/cdn/{XLF4NLQH.js → 57NVVPZ6.js} +2 -2
- package/dist/cdn/{ROW3Q22Z.js → 5G7ROHGR.js} +2 -2
- package/dist/cdn/{5TIB2IQL.js → 5MIJQHLO.js} +2 -2
- package/dist/cdn/{EYRZR5WG.js → 5PI2LBL6.js} +1 -1
- package/dist/cdn/{G3DM2EW2.js → 5RWKIDK3.js} +2 -2
- package/dist/cdn/{QUFTSYUG.js → 5SS6W6NK.js} +2 -2
- package/dist/cdn/{7VGDYIEN.js → 5VLZX43L.js} +2 -2
- package/dist/cdn/{EESP547K.js → 63LGZYFE.js} +2 -2
- package/dist/cdn/{6WGAYEL3.js → 65W7HSK5.js} +2 -2
- package/dist/cdn/{MG5DOYZE.js → 66RUIDW2.js} +2 -2
- package/dist/cdn/{A3PIJKHT.js → 6BN55UJC.js} +2 -2
- package/dist/cdn/{SOHURSJL.js → 6CR3ELYN.js} +2 -2
- package/dist/cdn/{GGRNVQ4D.js → 6CYD25YN.js} +2 -2
- package/dist/cdn/{WERUCJ7K.js → 6ELJSTOG.js} +2 -2
- package/dist/cdn/{IOR7KTGI.js → 6GVUSF7Y.js} +2 -2
- package/dist/cdn/6HYASXTD.js +18 -0
- package/dist/cdn/{TINDIKXJ.js → 6NWHOOTK.js} +1 -1
- package/dist/cdn/{DL6S6VLD.js → 6QX7DZ4M.js} +2 -2
- package/dist/cdn/{U32PNVXH.js → 6RIMAYT3.js} +2 -2
- package/dist/cdn/{WQ4GN3VW.js → 6TV3KIXK.js} +2 -2
- package/dist/cdn/{K7AMIFM4.js → 6WB4Q4JY.js} +2 -2
- package/dist/cdn/{TSZVCZI5.js → 737LKBTG.js} +1 -1
- package/dist/cdn/{O7RZJPDT.js → 73SD6Y3C.js} +2 -2
- package/dist/cdn/{HKDABQVA.js → 77FI7XPK.js} +2 -2
- package/dist/cdn/{G2Z3YHRP.js → 77NM6UZI.js} +2 -2
- package/dist/cdn/7BXNJPWD.js +4 -0
- package/dist/cdn/{V3ZRAZPZ.js → 7CUPT6B7.js} +2 -2
- package/dist/cdn/{67H4ATRI.js → 7HGENER4.js} +2 -2
- package/dist/cdn/{WW4MKC7D.js → 7JFSYU6C.js} +2 -2
- package/dist/cdn/{X5JWAHMT.js → 7ODMOYJD.js} +2 -2
- package/dist/cdn/{XP5FNKPS.js → 7T2EBM7A.js} +2 -2
- package/dist/cdn/{HK67P3E3.js → 7UCBWXL5.js} +2 -2
- package/dist/cdn/{3BBUMDES.js → 7UNMXF34.js} +2 -2
- package/dist/cdn/{2O47TYV4.js → 7WT26OPO.js} +2 -2
- package/dist/cdn/{436WRDLB.js → 7XJEVL4H.js} +2 -2
- package/dist/cdn/{3I6ALJO6.js → A5WNDAV3.js} +2 -2
- package/dist/cdn/{HNYCXG4D.js → A7SGX5YT.js} +2 -2
- package/dist/cdn/{3RQJ7CCZ.js → AA5OWGXP.js} +3 -3
- package/dist/cdn/{4T2MIIGO.js → ABUXWFTT.js} +2 -2
- package/dist/cdn/{ZOCBAOJE.js → AFHWOLNP.js} +2 -2
- package/dist/cdn/{YISCR7SQ.js → AFTTIRBK.js} +2 -2
- package/dist/cdn/{SXUGU4A7.js → AIH4IM4R.js} +1 -1
- package/dist/cdn/{E3XNKGRP.js → AMY5TGXW.js} +2 -2
- package/dist/cdn/{7HYDMACA.js → AOXMRIER.js} +2 -2
- package/dist/cdn/{2FDHTTBU.js → B2YABCF7.js} +2 -2
- package/dist/cdn/{KP4UOWPE.js → B4BAMNQZ.js} +2 -2
- package/dist/cdn/{AJWPQJKO.js → B5FFRI4V.js} +2 -2
- package/dist/cdn/{KTAMUWOO.js → B5PO5VTY.js} +2 -2
- package/dist/cdn/{INC33LQG.js → B5TRNVXS.js} +2 -2
- package/dist/cdn/{VIQNQ2BF.js → BD4Z5LKE.js} +2 -2
- package/dist/cdn/{XUQNQ3TH.js → BDGS3VJY.js} +2 -2
- package/dist/cdn/BE572B5U.js +4 -0
- package/dist/cdn/{ZLUOUE7M.js → BEXEPRS5.js} +2 -2
- package/dist/cdn/{WKPYIEOP.js → BMJZ7SJU.js} +2 -2
- package/dist/cdn/{BWED2YYT.js → BSIAQJUA.js} +2 -2
- package/dist/cdn/{VOOFZBN4.js → BYTSY4W5.js} +2 -2
- package/dist/cdn/{CIVOWJYR.js → BZLXK5A3.js} +2 -2
- package/dist/cdn/{C5O7RS6Z.js → C2K74RDX.js} +2 -2
- package/dist/cdn/{MA7WYC4V.js → CAQOBV5A.js} +2 -2
- package/dist/cdn/CB76NLMT.js +18 -0
- package/dist/cdn/{TPMBBNHZ.js → CF54Q5YE.js} +2 -2
- package/dist/cdn/{UYNR4PM2.js → CHUHLOJP.js} +2 -2
- package/dist/cdn/{2JPL6BVV.js → CISIY5U6.js} +2 -2
- package/dist/cdn/{M3Z5BXVG.js → CLAJ2XOW.js} +2 -2
- package/dist/cdn/{TI5473KL.js → CRPP5JXO.js} +2 -2
- package/dist/cdn/{INIADHDQ.js → D64WOL2G.js} +2 -2
- package/dist/cdn/{5MQIU2EF.js → D6XWLOBU.js} +2 -2
- package/dist/cdn/DCWBNROW.js +4 -0
- package/dist/cdn/{C5X5HA45.js → DFGZSNVP.js} +2 -2
- package/dist/cdn/{CFTJE337.js → DFS7UUPH.js} +1 -1
- package/dist/cdn/{3XQTXZ5S.js → DGDKGAQK.js} +2 -2
- package/dist/cdn/{WQNVPOFW.js → DMQN2SPN.js} +2 -2
- package/dist/cdn/{Q5WT254T.js → DNW5Y7XF.js} +2 -2
- package/dist/cdn/{RHDUM7J6.js → DTDQRALM.js} +1 -1
- package/dist/cdn/{BMPNDHKB.js → DVFWIJKG.js} +2 -2
- package/dist/cdn/{JSRPQ56Q.js → E3VAATPC.js} +2 -2
- package/dist/cdn/E6WOGJ7F.js +18 -0
- package/dist/cdn/{ZBK2OIYQ.js → E7R7Q7EG.js} +2 -2
- package/dist/cdn/{BJ6HCUCN.js → EAKI67WF.js} +1 -1
- package/dist/cdn/{JTQOLVH2.js → EFMAKPKZ.js} +2 -2
- package/dist/cdn/{OISVL6RH.js → EIX5TZGC.js} +2 -2
- package/dist/cdn/ELHIFSH4.js +18 -0
- package/dist/cdn/{3Q3IPERH.js → EMULILDA.js} +2 -2
- package/dist/cdn/{TLY4SCKI.js → ENCPN6WR.js} +2 -2
- package/dist/cdn/{VEDNEQ6L.js → EUKEOESV.js} +2 -2
- package/dist/cdn/{U37RTFCS.js → EXVYTJWZ.js} +2 -2
- package/dist/cdn/{DCBNHUZV.js → F7FFT7ZB.js} +2 -2
- package/dist/cdn/{D2SOIFTY.js → FAFYE3RG.js} +2 -2
- package/dist/cdn/{X26E5U2M.js → FCGQOSCY.js} +2 -2
- package/dist/cdn/{IHDXSHOP.js → FDAMAPG2.js} +2 -2
- package/dist/cdn/{3RPM42IQ.js → FFTVUIP7.js} +2 -2
- package/dist/cdn/{H663WO73.js → FPVWCIO7.js} +2 -2
- package/dist/cdn/{QWUYQK6T.js → FQHTZYT7.js} +2 -2
- package/dist/cdn/{GMW6PBEO.js → FXCOD63W.js} +1 -1
- package/dist/cdn/{NYAGZJPI.js → G27RLQ73.js} +2 -2
- package/dist/cdn/{VSLXYJNQ.js → G2MFQY2I.js} +2 -2
- package/dist/cdn/{MFAQAHTE.js → G34G6TIZ.js} +1 -1
- package/dist/cdn/{LRFK22FS.js → G3PBPFWO.js} +2 -2
- package/dist/cdn/{PEQMTLYB.js → G5D25KB4.js} +2 -2
- package/dist/cdn/{L5SZCPBG.js → GDSDHDUW.js} +2 -2
- package/dist/cdn/{FTBS4UPP.js → GEKASHAI.js} +2 -2
- package/dist/cdn/{L2EZ64ZA.js → GFUALEHA.js} +2 -2
- package/dist/cdn/GJFL7VU5.js +4 -0
- package/dist/cdn/{KOOXI24P.js → GM6B5U7P.js} +1 -1
- package/dist/cdn/{NLRI3ZQW.js → GNRM32HC.js} +2 -2
- package/dist/cdn/{KKWB4GDE.js → GNTR7EXR.js} +2 -2
- package/dist/cdn/{L75OVRLU.js → GPB44MSI.js} +2 -2
- package/dist/cdn/{YYAAM23E.js → GPZYE77D.js} +2 -2
- package/dist/cdn/{AO4KGDKM.js → GWXJIXZK.js} +2 -2
- package/dist/cdn/{CD6GGYMB.js → H5AWEVBV.js} +2 -2
- package/dist/cdn/{NA53RIHE.js → HBEIE66Z.js} +2 -2
- package/dist/cdn/{6UUOXTQV.js → HBOQ63ZP.js} +2 -2
- package/dist/cdn/{SYZFYPJH.js → HCNCUGZS.js} +2 -2
- package/dist/cdn/{KGG3UA33.js → HEHSIXHI.js} +2 -2
- package/dist/cdn/{XBHLLRUV.js → HGNTIYQT.js} +1 -1
- package/dist/cdn/HLQQ6TR4.js +4 -0
- package/dist/cdn/HMWODJBR.js +18 -0
- package/dist/cdn/{ABVSMXHI.js → HMYGFTDB.js} +2 -2
- package/dist/cdn/{VTR3E2UC.js → HO32BNLM.js} +2 -2
- package/dist/cdn/{Y4LHDS45.js → I37HZ5SF.js} +2 -2
- package/dist/cdn/{B6RXHCY4.js → I4WH544G.js} +2 -2
- package/dist/cdn/{UN5Y7PQQ.js → I5A7IN5I.js} +2 -2
- package/dist/cdn/{UYVOQEJI.js → I6EXN7WV.js} +2 -2
- package/dist/cdn/{6WD3OWDK.js → IN6U55HN.js} +2 -2
- package/dist/cdn/{FKIN3DOH.js → IQUWACDD.js} +2 -2
- package/dist/cdn/{ECPP42MD.js → ITS5XU77.js} +2 -2
- package/dist/cdn/{I7WRGP52.js → IUEMG5YD.js} +2 -2
- package/dist/cdn/{IDEGADLH.js → IWBODHPW.js} +2 -2
- package/dist/cdn/{JBZJQGN5.js → IWW5ZJYG.js} +1 -1
- package/dist/cdn/{3455W2QX.js → IYTOH2LC.js} +2 -2
- package/dist/cdn/{YCGCGLZ3.js → IZ3E7B3U.js} +1 -1
- package/dist/cdn/{5QCGKNOG.js → J2M33U55.js} +2 -2
- package/dist/cdn/{QOKUFMLM.js → J47QX26L.js} +2 -2
- package/dist/cdn/{T2MSPE67.js → J6BTZ55D.js} +2 -2
- package/dist/cdn/{ESAW32DY.js → J6MD6K4M.js} +2 -2
- package/dist/cdn/{JN3PWHYP.js → JN54IUSM.js} +2 -2
- package/dist/cdn/{NKLAUEXS.js → JNSGECLI.js} +2 -2
- package/dist/cdn/{DEJIKEQ3.js → JUYYKVTE.js} +2 -2
- package/dist/cdn/{3HIOWR4W.js → JXWALA62.js} +2 -2
- package/dist/cdn/{KHTLIDM2.js → JY3NCY33.js} +2 -2
- package/dist/cdn/{TSF2OBF2.js → JZXCUVBD.js} +2 -2
- package/dist/cdn/{GGZGAFOG.js → K4CXKC7Z.js} +2 -2
- package/dist/cdn/{E6M46JNV.js → K6GQIHMH.js} +2 -2
- package/dist/cdn/{4QXGEP6K.js → KABQHXRV.js} +2 -2
- package/dist/cdn/{V3TL3QUY.js → KCYMVFRG.js} +1 -1
- package/dist/cdn/{SZOHW5LO.js → KDGLKJHT.js} +2 -2
- package/dist/cdn/{4D6MRPLS.js → KEFZ5YNV.js} +2 -2
- package/dist/cdn/{FARTJ5UY.js → KFZSBDTM.js} +1 -1
- package/dist/cdn/{NNQ4C4LH.js → KHFJW53Q.js} +1 -1
- package/dist/cdn/{C26CNB4R.js → KHHVMDSQ.js} +2 -2
- package/dist/cdn/{3DWNGAUA.js → KLZMOMHU.js} +2 -2
- package/dist/cdn/KM3EU4G7.js +4 -0
- package/dist/cdn/{TNPF3WCY.js → KPBMYOZ7.js} +2 -2
- package/dist/cdn/{IUEDXCGK.js → KQ6BMUH2.js} +2 -2
- package/dist/cdn/{DOBAZYV6.js → KVXSGN5R.js} +2 -2
- package/dist/cdn/{SPLJRNFQ.js → KXTNCTMP.js} +1 -1
- package/dist/cdn/{6E5E463Z.js → KZKIRXHE.js} +1 -1
- package/dist/cdn/{5NQRDUV4.js → KZZHJTPP.js} +2 -2
- package/dist/cdn/{Y3QMF7CP.js → L2LNLN2J.js} +2 -2
- package/dist/cdn/L3KHD2KE.js +18 -0
- package/dist/cdn/{S3AJ6U4N.js → L42OF72U.js} +2 -2
- package/dist/cdn/{2KH36L57.js → L6IAJ72L.js} +1 -1
- package/dist/cdn/{SEJ7ZXOW.js → LAS2MWM5.js} +2 -2
- package/dist/cdn/{UMOX4HW4.js → LGLWUNU4.js} +2 -2
- package/dist/cdn/{KLJTVCJM.js → LHZ6WPMD.js} +2 -2
- package/dist/cdn/{SMJ4DE43.js → LNLTESOF.js} +2 -2
- package/dist/cdn/{FXKKXEZA.js → LTJJAN4Y.js} +2 -2
- package/dist/cdn/{TSDOGYCT.js → LU3PYJCN.js} +2 -2
- package/dist/cdn/{WDMQTJTY.js → LVUNXO2O.js} +2 -2
- package/dist/cdn/{HEY2MHYL.js → LWMOWGIK.js} +1 -1
- package/dist/cdn/{NOYMF5C7.js → M23LVYVA.js} +1 -1
- package/dist/cdn/{7UOJGH3I.js → M6AVBUON.js} +2 -2
- package/dist/cdn/{RWAP35QK.js → M7PDEIFC.js} +1 -1
- package/dist/cdn/{5L2BDAW2.js → MADKV4CG.js} +2 -2
- package/dist/cdn/{MA4L4WTG.js → MFPSQMUN.js} +2 -2
- package/dist/cdn/{JWXSMME2.js → MH32IF4W.js} +2 -2
- package/dist/cdn/{APSFYF5B.js → MX6FACCZ.js} +1 -1
- package/dist/cdn/{D2L6IBMW.js → N4BEAJUM.js} +2 -2
- package/dist/cdn/{QGKOWXUX.js → N5TXBTFE.js} +2 -2
- package/dist/cdn/{V6DTMLJW.js → N7VU2XX4.js} +2 -2
- package/dist/cdn/{ATXCK2IU.js → NABAVD67.js} +2 -2
- package/dist/cdn/{NFGSRGU7.js → NDCEYZWS.js} +1 -1
- package/dist/cdn/{WNCKATER.js → NFBVFXNO.js} +2 -2
- package/dist/cdn/{BVCGYHJH.js → NM2FEB5M.js} +2 -2
- package/dist/cdn/{P2JANG5L.js → NNQ5VAQF.js} +1 -1
- package/dist/cdn/{VWY4XLFF.js → NPMQPRZI.js} +2 -2
- package/dist/cdn/{VVSI5HZH.js → NWWECZ3X.js} +2 -2
- package/dist/cdn/{WSKHIXP3.js → NZFFMH5C.js} +2 -2
- package/dist/cdn/{ND73E2C6.js → NZVQGLFO.js} +2 -2
- package/dist/cdn/{GBJ5QP2L.js → O2H7SA7K.js} +2 -2
- package/dist/cdn/{NXSJTCZE.js → O4VMCJVT.js} +2 -2
- package/dist/cdn/{MXDCUXB3.js → O56WT525.js} +2 -2
- package/dist/cdn/{WV7ZJY5J.js → OIC5TDYB.js} +2 -2
- package/dist/cdn/{CACUAY57.js → OJCMPRDV.js} +2 -2
- package/dist/cdn/{Y76ZAGYK.js → OM24RA5F.js} +2 -2
- package/dist/cdn/{VQ7NCLSQ.js → OTASRO63.js} +2 -2
- package/dist/cdn/{SKPQRR3X.js → OTMGXPHO.js} +2 -2
- package/dist/cdn/{2ODS32UA.js → OUIS7DTF.js} +1 -1
- package/dist/cdn/{2K6LMBH5.js → OVL7QMZH.js} +2 -2
- package/dist/cdn/{YHY2WF3L.js → P4QP3FN6.js} +2 -2
- package/dist/cdn/{XCAZFEWA.js → PAKHX3I6.js} +1 -1
- package/dist/cdn/{XR5DXKS5.js → PFYUGFSL.js} +2 -2
- package/dist/cdn/{CMJXYUC2.js → POPBLQGD.js} +1 -1
- package/dist/cdn/{AVVHEGQN.js → PPY4LTAA.js} +2 -2
- package/dist/cdn/{IZV72OZ5.js → PSGW263P.js} +2 -2
- package/dist/cdn/{Y2MUTBIW.js → PT5AV3WQ.js} +1 -1
- package/dist/cdn/{Q5AWTSD2.js → PTWIQDSC.js} +2 -2
- package/dist/cdn/{VQHDQ3FM.js → PWR2V4FP.js} +2 -2
- package/dist/cdn/{SJHJIEXC.js → PYO4MUPX.js} +2 -2
- package/dist/cdn/{7EHOML6L.js → PZJBWNEZ.js} +2 -2
- package/dist/cdn/PZWKB64K.js +4 -0
- package/dist/cdn/{4VLOXACY.js → Q4UWG3UN.js} +2 -2
- package/dist/cdn/{TQFYWFLX.js → Q5GAJOPN.js} +2 -2
- package/dist/cdn/{W7CXGF5O.js → Q7PQM4SB.js} +2 -2
- package/dist/cdn/{HJOCSO2Y.js → QEQTLIXM.js} +2 -2
- package/dist/cdn/{NYWEBPN2.js → QJ4VMFHY.js} +2 -2
- package/dist/cdn/{2GLAKDPI.js → QOQCIJ52.js} +2 -2
- package/dist/cdn/{3WY63H7O.js → QSAM3WTZ.js} +2 -2
- package/dist/cdn/{YME5B6IV.js → QTR2B74Q.js} +2 -2
- package/dist/cdn/{UY4AZSYY.js → QUA2MZPE.js} +2 -2
- package/dist/cdn/{GIH4VEIZ.js → R54KEIUU.js} +2 -2
- package/dist/cdn/{PI62K42J.js → R5P4ZBIZ.js} +2 -2
- package/dist/cdn/{KTD3VSAN.js → R5WVUHHQ.js} +2 -2
- package/dist/cdn/{QM3MV2WO.js → RAGAUFN5.js} +2 -2
- package/dist/cdn/{OOKJKNCP.js → RPQOJQTT.js} +2 -2
- package/dist/cdn/{3GZWZSFH.js → RQHMM2TV.js} +2 -2
- package/dist/cdn/{UMEJ5EB6.js → RRH7CX4W.js} +2 -2
- package/dist/cdn/{FYT77UVP.js → RTQDMFCR.js} +1 -1
- package/dist/cdn/{NH4CPF45.js → RYIFMIE7.js} +2 -2
- package/dist/cdn/{4PQKAXUB.js → S3REU44G.js} +2 -2
- package/dist/cdn/SA6PEP6X.js +4 -0
- package/dist/cdn/{6QPXTZT5.js → SBGU3NDZ.js} +2 -2
- package/dist/cdn/SFWX3UGH.js +4 -0
- package/dist/cdn/{53BT4JPD.js → SGKUZEBX.js} +2 -2
- package/dist/cdn/{N4TFD5EN.js → SJZ7QSP6.js} +2 -2
- package/dist/cdn/{NRTTJXYW.js → SMB3FN37.js} +2 -2
- package/dist/cdn/{WOX63RAP.js → SMTMWRRV.js} +1 -1
- package/dist/cdn/{IR7Q2YM5.js → STMQZU4D.js} +2 -2
- package/dist/cdn/{4DHND2RR.js → STXL6NIE.js} +2 -2
- package/dist/cdn/{3SAP7526.js → SYOBCQGB.js} +2 -2
- package/dist/cdn/{GA7CX47U.js → SYXNXG42.js} +2 -2
- package/dist/cdn/{Q22NWNX7.js → T2LTMFFQ.js} +2 -2
- package/dist/cdn/T7MHCIUS.js +18 -0
- package/dist/cdn/{CSMAKHYH.js → TECM5QWP.js} +2 -2
- package/dist/cdn/{XVNFTLSL.js → TL4JJSFM.js} +2 -2
- package/dist/cdn/{DNEIPLZU.js → TPNMSWQT.js} +2 -2
- package/dist/cdn/{ZMJJZVLF.js → TQ6ZXCIR.js} +2 -2
- package/dist/cdn/{ZFINVU5V.js → TQIQUUNR.js} +1 -1
- package/dist/cdn/{7CMSFVPI.js → TSJRADBL.js} +2 -2
- package/dist/cdn/{GQMQ6XAB.js → TV2CKUCU.js} +2 -2
- package/dist/cdn/{WMCGZEBA.js → TVUO3PT2.js} +2 -2
- package/dist/cdn/{KN4NXNU5.js → TWXPA723.js} +2 -2
- package/dist/cdn/{D3B6FDP2.js → TYLEZAG2.js} +2 -2
- package/dist/cdn/{N3YWMQCC.js → U3VSDXKL.js} +1 -1
- package/dist/cdn/{7I2UZMDM.js → UBSP4SH4.js} +2 -2
- package/dist/cdn/{QOFINT3H.js → UIUUSTJI.js} +2 -2
- package/dist/cdn/{ICXXZM6J.js → UJH4XQR3.js} +2 -2
- package/dist/cdn/{KTX3AH4M.js → UL5SFE3L.js} +2 -2
- package/dist/cdn/{7YLDQRFG.js → UMADWE7A.js} +2 -2
- package/dist/cdn/{24TYMSZR.js → UO3LLU6M.js} +2 -2
- package/dist/cdn/{U26AGIBO.js → UOQT6ENI.js} +2 -2
- package/dist/cdn/{HU5YYKVZ.js → UQVZXYNW.js} +2 -2
- package/dist/cdn/{Y6BNTK2R.js → USRMDL2X.js} +2 -2
- package/dist/cdn/{RFKORGVC.js → UWRBXQ2H.js} +2 -2
- package/dist/cdn/{KOZHPCSN.js → UXBAVP5Z.js} +1 -1
- package/dist/cdn/{X37EEUTC.js → UYYJV75W.js} +2 -2
- package/dist/cdn/{NH5DITEI.js → VAFHXQDA.js} +2 -2
- package/dist/cdn/{P76DWPRQ.js → VBYNMOYE.js} +2 -2
- package/dist/cdn/{BQJSY4MC.js → VIKAFJOW.js} +2 -2
- package/dist/cdn/{6AKYEPXM.js → VJVK7CEI.js} +1 -1
- package/dist/cdn/{A5WCPRUK.js → VLH6CM7M.js} +2 -2
- package/dist/cdn/{4HOR4TNE.js → VLOZ5FU3.js} +2 -2
- package/dist/cdn/{4J47N725.js → VPOYZ64Q.js} +2 -2
- package/dist/cdn/{EIM3QCMO.js → VRT6IWG7.js} +2 -2
- package/dist/cdn/{BOOXNCBB.js → VRZO33HJ.js} +2 -2
- package/dist/cdn/{JIK4Q746.js → VVKCAW2O.js} +1 -1
- package/dist/cdn/{EQSVXPKZ.js → W3Y7CW6D.js} +2 -2
- package/dist/cdn/{ZIFC2GSS.js → WCNIUU7L.js} +2 -2
- package/dist/cdn/{WZJ6BQ6R.js → WDUN66AL.js} +2 -2
- package/dist/cdn/{NFDYRDN4.js → WIBEUGB3.js} +2 -2
- package/dist/cdn/{VQZ7PKLG.js → WIFVASZC.js} +2 -2
- package/dist/cdn/{HOEKQZLD.js → WIKE26UP.js} +2 -2
- package/dist/cdn/{NDMX5IWZ.js → WLLF2K4A.js} +2 -2
- package/dist/cdn/{FI4OOHH6.js → WX6BU4WB.js} +2 -2
- package/dist/cdn/{VT2F564G.js → XDM3XQ2V.js} +2 -2
- package/dist/cdn/{B2TLWFDN.js → XIWV3EMG.js} +2 -2
- package/dist/cdn/{3CU6TN67.js → XLR4XEQX.js} +2 -2
- package/dist/cdn/{GX7OBSUT.js → XOCIK5BM.js} +2 -2
- package/dist/cdn/{Y32U4RZL.js → XOYOBJTE.js} +2 -2
- package/dist/cdn/{GESAM4SD.js → XRC6NCOB.js} +2 -2
- package/dist/cdn/{HMM4TRUV.js → XTFCV5HG.js} +2 -2
- package/dist/cdn/{GHKKR73R.js → XUG6L42S.js} +2 -2
- package/dist/cdn/{Z2CZSE55.js → XVBUVOHC.js} +2 -2
- package/dist/cdn/XWQ6H7GZ.js +4 -0
- package/dist/cdn/{EM2TZBMA.js → Y5LQVUYC.js} +4 -4
- package/dist/cdn/{7DRVPBOA.js → Y5WIF3RY.js} +2 -2
- package/dist/cdn/{EVYCFDWO.js → YBTELYNL.js} +2 -2
- package/dist/cdn/{KCBNQYFG.js → YK2QLYVS.js} +2 -2
- package/dist/cdn/{NHDUHLTC.js → YQCVFX4Z.js} +2 -2
- package/dist/cdn/{AKE65QMR.js → YWR5SHTJ.js} +1 -1
- package/dist/cdn/{2JD5UTGZ.js → YXVNPTAG.js} +2 -2
- package/dist/cdn/{F5V66G7E.js → Z7I2RSQY.js} +2 -2
- package/dist/cdn/ZD2NK7QI.js +18 -0
- package/dist/cdn/{CQTGDI4L.js → ZFY3PCIZ.js} +2 -2
- package/dist/cdn/{CKB3S5U4.js → ZHXAFBKY.js} +2 -2
- package/dist/cdn/{LC7SRBVD.js → ZMRMSTWH.js} +2 -2
- package/dist/cdn/{DYFUDA73.js → ZVEZP7FG.js} +2 -2
- package/dist/cdn/{SZW3WE6P.js → ZXRM4JEP.js} +2 -2
- package/dist/cdn/{IQ7NIKVL.js → ZYNT7ILM.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +8 -6
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +2 -2
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationContext.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +3 -3
- 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 +3 -2
- package/dist/components/map-card/customElement.js +8 -7
- 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 +8 -8
- 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.d.ts +0 -30
- package/dist/components/solutions-all-panel/customElement.js +74 -67
- package/dist/components/solutions-all-shell/customElement.d.ts +0 -2
- package/dist/components/solutions-all-shell/customElement.js +21 -21
- 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-deploy-app/customElement.d.ts +1 -26
- package/dist/components/solutions-deploy-app/customElement.js +59 -73
- package/dist/components/solutions-deploy-app/index.d.ts +3 -1
- package/dist/components/solutions-deploy-app/index.js +3 -1
- package/dist/components/solutions-deploy-app-nav/customElement.d.ts +15 -7
- package/dist/components/solutions-deploy-app-nav/customElement.js +61 -61
- package/dist/components/solutions-deploy-app-nav/index.d.ts +5 -0
- package/dist/components/solutions-deploy-app-nav/index.js +5 -0
- package/dist/components/solutions-deployed-filter-panel/customElement.d.ts +1 -1
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.d.ts +0 -36
- package/dist/components/solutions-deployed-panel/customElement.js +44 -32
- package/dist/components/solutions-deployed-shell/customElement.d.ts +0 -2
- package/dist/components/solutions-deployed-shell/customElement.js +10 -10
- package/dist/components/solutions-filter-panel/customElement.d.ts +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.d.ts +4 -12
- package/dist/components/solutions-searchsort-toolbar/customElement.js +87 -55
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +132 -587
- package/dist/docs/docs.json +104 -439
- package/dist/docs/vscode.html-custom-data.json +16 -109
- package/dist/docs/web-types.json +67 -263
- package/dist/index.d.ts +17 -2
- package/dist/index.js +1 -1
- package/dist/loader.js +8 -8
- package/dist/types/lumina.d.ts +10 -8
- package/dist/types/preact.d.ts +10 -8
- package/dist/types/preact10.d.ts +10 -8
- package/dist/types/react.d.ts +10 -8
- package/dist/types/stencil.d.ts +10 -8
- package/dist/utils/deployAppContexts.d.ts +4 -0
- package/dist/utils/interfaces.d.ts +25 -1
- package/package.json +2 -2
- package/dist/cdn/2QTLOHGS.js +0 -4
- package/dist/cdn/5KXF46D2.js +0 -18
- package/dist/cdn/6E6Z3Z6F.js +0 -4
- package/dist/cdn/6ZZKQXLW.js +0 -18
- package/dist/cdn/ANITJDCE.js +0 -18
- package/dist/cdn/C376DS3S.js +0 -4
- package/dist/cdn/DMBF2DS2.js +0 -4
- package/dist/cdn/DTOUOKY5.js +0 -18
- package/dist/cdn/EF2D5LOZ.js +0 -4
- package/dist/cdn/HMCXMRML.js +0 -4
- package/dist/cdn/JBKHCKZX.js +0 -18
- package/dist/cdn/LOYSGN2I.js +0 -4
- package/dist/cdn/O2KAV45F.js +0 -4
- package/dist/cdn/PHDSV2KO.js +0 -18
- package/dist/cdn/QV7EN475.js +0 -4
- package/dist/cdn/RQRCKQIE.js +0 -18
- package/dist/cdn/TFKBTW6N.js +0 -18
- package/dist/cdn/WHE2B2CP.js +0 -18
- package/dist/cdn/YWGL35ER.js +0 -4
- package/dist/cdn/ZPFNMSYO.js +0 -4
|
@@ -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
|
|
4
|
-
import b from"./VEDNEQ6L.js";import a from"./4DHND2RR.js";import{a as _}from"./55QDKERG.js";import{b as y}from"./7EHOML6L.js";import"./HNYCXG4D.js";import{D as $,E as T,G as l,I as g,h as C,i as r,o as x,r as L}from"./V3TL3QUY.js";import"./WOX63RAP.js";export default $arcgis.t(([,{a:d,b:v,c:u,d:m,e:I,f:i,h:E,i:D,k:U}])=>{var R=C`@layer{.instant-apps-language-translator-item{display:flex}.instant-apps-language-translator-item__section{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}.instant-apps-language-translator-item__section .instant-apps-language-translator-item__top-row{display:flex;align-items:center;justify-content:space-between}.instant-apps-language-translator-item__section .instant-apps-language-translator-item__label-container{display:flex;align-items:center}.instant-apps-language-translator-item__section .instant-apps-language-translator-item__label{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}.instant-apps-language-translator-item__section calcite-input{margin-top:10px;margin-left:55px}.instant-apps-language-translator-item__section--last-item{border-bottom:none}.instant-apps-language-translator-item__section--selected{background-color:#f1faff}.instant-apps-language-translator-item__section:first-child{margin-right:1%}.instant-apps-language-translator-item__ui-location-popover-content{display:inline-block;padding:10px;max-width:400px}.instant-apps-language-translator-item__ui-location-items{display:flex}.instant-apps-language-translator-item__ui-location-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}.instant-apps-language-translator-item__tip{display:inline-block;font-size:14px;line-height:22px}.instant-apps-language-translator-item__info-icon{color:var(--calcite-color-brand)}.instant-apps-language-translator-item__info-button{border:0;background-color:transparent;cursor:pointer}.instant-apps-language-translator-item__nested-input{margin-left:60px;margin-top:8px}.instant-apps-language-translator-item__nested-input calcite-input{margin-left:30px}.calcite-mode-dark .instant-apps-language-translator-item__section--selected{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}.calcite-mode-dark .instant-apps-language-translator-item__section--selected calcite-action{--calcite-icon-color: var(--calcite-color-text-inverse)}.calcite-mode-dark .instant-apps-language-translator-item__section--selected calcite-icon{color:var(--calcite-color-text-inverse)}.instant-apps-language-translator--last-item .instant-apps-language-translator-item__section{border-bottom:none}}`,p="instant-apps-language-translator-item",c={section:`${p}__section`,selected:`${p}__section--selected`,topRow:`${p}__top-row`,labelContainer:`${p}__label-container`,label:`${p}__label`,uiLocationPopoverContent:`${p}__ui-location-popover-content`,uiLocationItems:`${p}__ui-location-items`,uiLocationItem:`${p}__ui-location-item`,infoIcon:`${p}__info-icon`,infoButton:`${p}__info-button`,tip:`${p}__tip`,nestedInput:`${p}__nested-input`},b=class extends T{constructor(){super(...arguments),this.userInputs={},this.translatedInputs={},this.translatorItemDataUpdated=x()}static{this.properties={fieldName:1,translatedLanguageLabels:0,setting:0,userLocaleInputOnChangeCallback:0,translatedLocaleInputOnChangeCallback:0}}static{this.styles=R}static{this.shadowRootOptions=L}get isTextEditor(){return this.setting.type===v.TextEditor}get calciteMode(){return U()?m.Dark:m.Light}get hasNestedContent(){return!!this.setting?.content}get tipID(){return`${this.fieldName}goTo`}loaded(){this.isTextEditor&&i.onChange("uiData",()=>this.handleEditorCollapse())}handleInputRender(e,t,a){return this.getUIDataItem()?.expanded?this.hasNestedContent?this.renderNestedInputs(e):this.renderInput(e,t,a):null}getUIDataItem(){if(I.uiData)return I.uiData.get(this.fieldName)}updateT9nStore(e,t){let a=i.get("currentLanguage"),n={[e]:t},s=D(a,n);i.set("portalItemResourceT9n",s)}handleExpand(){let e=this.getUIDataItem();e.expanded=!e.expanded;let t=new Map(I.uiData);t.set(this.fieldName,e),i.set("uiData",t)}handleEditorCollapse(){if(!i.get("uiData")?.get(this.fieldName)?.expanded&&this.userEditorWrapper?.editorInstance&&this.translatedEditorWrapper?.editorInstance){let{userEditorWrapper:e,translatedEditorWrapper:t}=this,a=e.editorInstance.getData();e.value=a;let n=t.editorInstance.getData();t.value=n,e.editorInstance.destroy(),t.editorInstance.destroy()}}handleSelection(e){let t=new Map(I.uiData),a=E();a.forEach(n=>{let s=t?.get(n);s.selected=!1}),a.forEach(n=>{let s=e?.target?.getAttribute("data-field-name");if(n===s){let o=t?.get(n);o.selected=!0}}),i.set("uiData",t)}getUILocation(){let e=this.getUIDataItem(),{uiLocation:t,userLocaleData:a}=e,{section:n,subsection:s}=t,o=[n.label,s.label,a.label].filter(h=>!!h);return o.map((h,f)=>r`<span class=${l(c.uiLocationItem)}><span>${h}</span>${f!==o.length-1?r`<calcite-icon icon=chevron-right scale=s></calcite-icon>`:null}</span>`)}getTip(){let e=this.getUIDataItem(),{tip:t}=e;return t}copySelection(e,t){this.setting.type===v.TextEditor?this.copyTextEditorContent(e):this.copyCalciteInputContent(t,e)}copyTextEditorContent(e){let t=e===d.User?this.userEditorWrapper?.editorInstance:this.translatedEditorWrapper?.editorInstance,a=50;setTimeout(()=>{this.selectContent(t),setTimeout(()=>this.selectContent(t),a)},a),this.copyContent(t)}selectContent(e){e.editing.view.focus();let{model:t}=e,a=t.document.getRoot();if(a){let n=t.createRangeIn(a);t.change(s=>s.setSelection(n))}}copyContent(e){let t=e.getData(),a=document.createElement("div");a.contentEditable="true",a.innerHTML=t,document.body.appendChild(a);let n=document.createRange();n.selectNodeContents(a);let s=window.getSelection();s?.removeAllRanges(),s?.addRange(n),document.execCommand("copy"),document.body.removeChild(a)}copyCalciteInputContent(e,t){let a=t===d.User?this.userInputs[e]:this.translatedInputs[e];if(a){a.selectText();let n=a.value;navigator.clipboard.writeText(n)}}setEditor(e,t){t&&(e===d.User?this.userEditorWrapper=t:this.translatedEditorWrapper=t)}async handleUserInputChange(e){i.set("saving",!0);try{let t=e.target,a=t.id,n=t.value,s=this.getUIDataItem();s.userLocaleData.value=n,await this.userLocaleInputOnChangeCallback(a,n),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleUserTextEditorChange(e){i.set("saving",!0);try{let t=e.detail,a=e.target.id,n=this.getUIDataItem();n.userLocaleData.value=t,await this.userLocaleInputOnChangeCallback(a,t),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleTranslatedInputChange(e){i.set("saving",!0);try{let t=e.composedPath()[0],a=t.id;this.updateT9nStore(a,t.value);let{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),o=e.target.value;await this.translatedLocaleInputOnChangeCallback(a,o,n,s),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}async handleTranslatedTextEditorChange(e){i.set("saving",!0);try{let t=e.target.id;this.updateT9nStore(t,e.detail);let{locale:a,resource:n}=this.getTranslatedLocaleCallbackData(),s=e.detail;await this.translatedLocaleInputOnChangeCallback(t,s,a,n),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}handleTextEditorDataChange(e,t){e===d.User?this.handleUserTextEditorChange(t):this.handleTranslatedTextEditorChange(t)}getTranslatedLocaleCallbackData(){let e=i.get("currentLanguage"),t=i.get("portalItemResource");return{locale:e,resource:t}}getIcon(e){switch((e??this.setting).stringType){case"title":return u.Title;case"subtitle":return u.Subtitle;case"text":return u.Text;case"button":return u.Button;case"string":return u.String;default:return u.SettingIndicator}}render(){return"content"in this.setting&&this.setting.content?.every(e=>e?.content?.length===0)?(this.el.classList.remove(this.calciteMode),""):(this.el.classList.add(this.calciteMode),r`${this.renderBase()}${this.renderPopover()}`)}renderBase(){return r`<div class=${l(p)}>${this.renderUserLocaleSection()}${this.renderTranslatedLanguageSection()}</div>`}renderPopover(){let e=this.getTip();return r`<calcite-popover .referenceElement=${this.tipID} label auto-close placement=trailing closable><span class=${l(c.uiLocationPopoverContent)}><span class=${l(c.uiLocationItems)}>${this.getUILocation()}</span>${e?r`<span class=${l(c.tip)}>${e}</span>`:null}</span></calcite-popover>`}renderUserLocaleSection(){let e=this.getUIDataItem(),t=e?.userLocaleData,a=e?.selected?` ${c.selected}`:"",n=t?.label,s=t?.value,o=this.setting.id;return r`<div class=${`${c.section}${a}`}>${this.renderItemHeader(d.User,n,o)}${this.handleInputRender(d.User,s,o)}</div>`}renderTranslatedLanguageSection(){let e=this.getUIDataItem(),t=this.setting.id,a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=this.translatedLanguageLabels?.[this.fieldName],o=typeof n=="object"&&n!==null&&a in n&&typeof n!="number"&&!Array.isArray(n)?String(n[a]?.[t]??""):"",h=e?.selected?` ${c.selected}`:"";return r`<div class=${`${c.section}${h}`}>${this.renderItemHeader(d.Translation,s,t)}${this.handleInputRender(d.Translation,o,t)}</div>`}renderNestedInputs(e,t){let a=t??this.setting,{content:n}=a;return n?.map(s=>"content"in s?this.renderNestedInputs(e,s):this.renderNestedInput(e,s)).filter(s=>s!==void 0)}renderNestedInput(e,t){let a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=t?.id,o=n?.[a],h=typeof o=="object"&&o!==null?o[s]:void 0,{label:f,value:w,id:k}=t,S=e===d.Translation?this.translatedLanguageLabels?.[k]:f,N=e===d.User?w:h??"";return r`<div class=${l(c.nestedInput)}>${this.renderItemHeader(e,S,s,t)}${this.renderInput(e,String(N),s,t)}</div>`}renderItemHeader(e,t,a,n){let s=!this.hasNestedContent||!!n;return r`<div class=${l(c.topRow)}>${this.renderItemHeaderLabel(e,t,n)}${s?this.renderCopyButton(e,a):null}</div>`}renderItemHeaderLabel(e,t,a){let n=e===d.User&&!a;return r`<div class=${l(c.labelContainer)}>${a?null:this.renderExpandCollapseButton()}<calcite-icon .icon=${this.getIcon(a)} scale=s></calcite-icon><span class=${l(c.label)}>${t}</span>${n?this.renderInfoButton():null}</div>`}renderExpandCollapseButton(){let e=this.getUIDataItem()?.expanded?u.Expanded:u.Collapsed;return r`<calcite-action @click=${this.handleExpand} .icon=${e} scale=s appearance=transparent text></calcite-action>`}renderInfoButton(){return r`<button id=${this.tipID??g} class=${l(c.infoButton)}><calcite-icon class=${l(c.infoIcon)} .icon=${u.Popover} scale=s></calcite-icon></button>`}renderCopyButton(e,t){return r`<calcite-action class=${l(this.calciteMode)} @click=${this.copySelection.bind(this,e,t)} slot=action .icon=${u.Copy} appearance=transparent text></calcite-action>`}renderInput(e,t,a,n){let s=n??this.setting;return s.type==="string"||s.type==="textarea"?e===d.User?this.renderUserLocaleInput(t,a):this.renderTranslatedLanguageInput(t,a):this.renderTextEditor(t,e,a)}renderUserLocaleInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleUserInputChange} ${$(a=>{a&&(this.userInputs[t]=a)})}></calcite-input>`)}renderTranslatedLanguageInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleTranslatedInputChange} ${$(a=>{a&&(this.translatedInputs[t]=a)})}></calcite-input>`)}renderTextEditor(e,t,a){let n={toolbar:[]};return r`<instant-apps-ckeditor-wrapper id=${a??g} @dataChanged=${this.handleTextEditorDataChange.bind(this,t)} @isFocused=${this.handleSelection} .value=${e??""} data-field-name=${this.fieldName??g} .config=${n} ${$(this.setEditor.bind(this,t))}></instant-apps-ckeditor-wrapper>`}};y("instant-apps-language-translator-item",b);return b},a,b)
|
|
3
|
+
v1.1.0 */
|
|
4
|
+
import b from"./EUKEOESV.js";import a from"./STXL6NIE.js";import{a as _}from"./2LIVMQO2.js";import{b as y}from"./PZJBWNEZ.js";import"./A7SGX5YT.js";import{D as $,E as T,G as l,I as g,h as C,i as r,o as x,r as L}from"./KCYMVFRG.js";import"./SMTMWRRV.js";export default $arcgis.t(([,{a:d,b:v,c:u,d:m,e:I,f:i,h:E,i:D,k:U}])=>{var R=C`@layer{.instant-apps-language-translator-item{display:flex}.instant-apps-language-translator-item__section{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}.instant-apps-language-translator-item__section .instant-apps-language-translator-item__top-row{display:flex;align-items:center;justify-content:space-between}.instant-apps-language-translator-item__section .instant-apps-language-translator-item__label-container{display:flex;align-items:center}.instant-apps-language-translator-item__section .instant-apps-language-translator-item__label{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}.instant-apps-language-translator-item__section calcite-input{margin-top:10px;margin-left:55px}.instant-apps-language-translator-item__section--last-item{border-bottom:none}.instant-apps-language-translator-item__section--selected{background-color:#f1faff}.instant-apps-language-translator-item__section:first-child{margin-right:1%}.instant-apps-language-translator-item__ui-location-popover-content{display:inline-block;padding:10px;max-width:400px}.instant-apps-language-translator-item__ui-location-items{display:flex}.instant-apps-language-translator-item__ui-location-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}.instant-apps-language-translator-item__tip{display:inline-block;font-size:14px;line-height:22px}.instant-apps-language-translator-item__info-icon{color:var(--calcite-color-brand)}.instant-apps-language-translator-item__info-button{border:0;background-color:transparent;cursor:pointer}.instant-apps-language-translator-item__nested-input{margin-left:60px;margin-top:8px}.instant-apps-language-translator-item__nested-input calcite-input{margin-left:30px}.calcite-mode-dark .instant-apps-language-translator-item__section--selected{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}.calcite-mode-dark .instant-apps-language-translator-item__section--selected calcite-action{--calcite-icon-color: var(--calcite-color-text-inverse)}.calcite-mode-dark .instant-apps-language-translator-item__section--selected calcite-icon{color:var(--calcite-color-text-inverse)}.instant-apps-language-translator--last-item .instant-apps-language-translator-item__section{border-bottom:none}}`,p="instant-apps-language-translator-item",c={section:`${p}__section`,selected:`${p}__section--selected`,topRow:`${p}__top-row`,labelContainer:`${p}__label-container`,label:`${p}__label`,uiLocationPopoverContent:`${p}__ui-location-popover-content`,uiLocationItems:`${p}__ui-location-items`,uiLocationItem:`${p}__ui-location-item`,infoIcon:`${p}__info-icon`,infoButton:`${p}__info-button`,tip:`${p}__tip`,nestedInput:`${p}__nested-input`},b=class extends T{constructor(){super(...arguments),this.userInputs={},this.translatedInputs={},this.translatorItemDataUpdated=x()}static{this.properties={fieldName:1,translatedLanguageLabels:0,setting:0,userLocaleInputOnChangeCallback:0,translatedLocaleInputOnChangeCallback:0}}static{this.styles=R}static{this.shadowRootOptions=L}get isTextEditor(){return this.setting.type===v.TextEditor}get calciteMode(){return U()?m.Dark:m.Light}get hasNestedContent(){return!!this.setting?.content}get tipID(){return`${this.fieldName}goTo`}loaded(){this.isTextEditor&&i.onChange("uiData",()=>this.handleEditorCollapse())}handleInputRender(e,t,a){return this.getUIDataItem()?.expanded?this.hasNestedContent?this.renderNestedInputs(e):this.renderInput(e,t,a):null}getUIDataItem(){if(I.uiData)return I.uiData.get(this.fieldName)}updateT9nStore(e,t){let a=i.get("currentLanguage"),n={[e]:t},s=D(a,n);i.set("portalItemResourceT9n",s)}handleExpand(){let e=this.getUIDataItem();e.expanded=!e.expanded;let t=new Map(I.uiData);t.set(this.fieldName,e),i.set("uiData",t)}handleEditorCollapse(){if(!i.get("uiData")?.get(this.fieldName)?.expanded&&this.userEditorWrapper?.editorInstance&&this.translatedEditorWrapper?.editorInstance){let{userEditorWrapper:e,translatedEditorWrapper:t}=this,a=e.editorInstance.getData();e.value=a;let n=t.editorInstance.getData();t.value=n,e.editorInstance.destroy(),t.editorInstance.destroy()}}handleSelection(e){let t=new Map(I.uiData),a=E();a.forEach(n=>{let s=t?.get(n);s.selected=!1}),a.forEach(n=>{let s=e?.target?.getAttribute("data-field-name");if(n===s){let o=t?.get(n);o.selected=!0}}),i.set("uiData",t)}getUILocation(){let e=this.getUIDataItem(),{uiLocation:t,userLocaleData:a}=e,{section:n,subsection:s}=t,o=[n.label,s.label,a.label].filter(h=>!!h);return o.map((h,f)=>r`<span class=${l(c.uiLocationItem)}><span>${h}</span>${f!==o.length-1?r`<calcite-icon icon=chevron-right scale=s></calcite-icon>`:null}</span>`)}getTip(){let e=this.getUIDataItem(),{tip:t}=e;return t}copySelection(e,t){this.setting.type===v.TextEditor?this.copyTextEditorContent(e):this.copyCalciteInputContent(t,e)}copyTextEditorContent(e){let t=e===d.User?this.userEditorWrapper?.editorInstance:this.translatedEditorWrapper?.editorInstance,a=50;setTimeout(()=>{this.selectContent(t),setTimeout(()=>this.selectContent(t),a)},a),this.copyContent(t)}selectContent(e){e.editing.view.focus();let{model:t}=e,a=t.document.getRoot();if(a){let n=t.createRangeIn(a);t.change(s=>s.setSelection(n))}}copyContent(e){let t=e.getData(),a=document.createElement("div");a.contentEditable="true",a.innerHTML=t,document.body.appendChild(a);let n=document.createRange();n.selectNodeContents(a);let s=window.getSelection();s?.removeAllRanges(),s?.addRange(n),document.execCommand("copy"),document.body.removeChild(a)}copyCalciteInputContent(e,t){let a=t===d.User?this.userInputs[e]:this.translatedInputs[e];if(a){a.selectText();let n=a.value;navigator.clipboard.writeText(n)}}setEditor(e,t){t&&(e===d.User?this.userEditorWrapper=t:this.translatedEditorWrapper=t)}async handleUserInputChange(e){i.set("saving",!0);try{let t=e.target,a=t.id,n=t.value,s=this.getUIDataItem();s.userLocaleData.value=n,await this.userLocaleInputOnChangeCallback(a,n),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleUserTextEditorChange(e){i.set("saving",!0);try{let t=e.detail,a=e.target.id,n=this.getUIDataItem();n.userLocaleData.value=t,await this.userLocaleInputOnChangeCallback(a,t),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleTranslatedInputChange(e){i.set("saving",!0);try{let t=e.composedPath()[0],a=t.id;this.updateT9nStore(a,t.value);let{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),o=e.target.value;await this.translatedLocaleInputOnChangeCallback(a,o,n,s),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}async handleTranslatedTextEditorChange(e){i.set("saving",!0);try{let t=e.target.id;this.updateT9nStore(t,e.detail);let{locale:a,resource:n}=this.getTranslatedLocaleCallbackData(),s=e.detail;await this.translatedLocaleInputOnChangeCallback(t,s,a,n),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}handleTextEditorDataChange(e,t){e===d.User?this.handleUserTextEditorChange(t):this.handleTranslatedTextEditorChange(t)}getTranslatedLocaleCallbackData(){let e=i.get("currentLanguage"),t=i.get("portalItemResource");return{locale:e,resource:t}}getIcon(e){switch((e??this.setting).stringType){case"title":return u.Title;case"subtitle":return u.Subtitle;case"text":return u.Text;case"button":return u.Button;case"string":return u.String;default:return u.SettingIndicator}}render(){return"content"in this.setting&&this.setting.content?.every(e=>e?.content?.length===0)?(this.el.classList.remove(this.calciteMode),""):(this.el.classList.add(this.calciteMode),r`${this.renderBase()}${this.renderPopover()}`)}renderBase(){return r`<div class=${l(p)}>${this.renderUserLocaleSection()}${this.renderTranslatedLanguageSection()}</div>`}renderPopover(){let e=this.getTip();return r`<calcite-popover .referenceElement=${this.tipID} label auto-close placement=trailing closable><span class=${l(c.uiLocationPopoverContent)}><span class=${l(c.uiLocationItems)}>${this.getUILocation()}</span>${e?r`<span class=${l(c.tip)}>${e}</span>`:null}</span></calcite-popover>`}renderUserLocaleSection(){let e=this.getUIDataItem(),t=e?.userLocaleData,a=e?.selected?` ${c.selected}`:"",n=t?.label,s=t?.value,o=this.setting.id;return r`<div class=${`${c.section}${a}`}>${this.renderItemHeader(d.User,n,o)}${this.handleInputRender(d.User,s,o)}</div>`}renderTranslatedLanguageSection(){let e=this.getUIDataItem(),t=this.setting.id,a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=this.translatedLanguageLabels?.[this.fieldName],o=typeof n=="object"&&n!==null&&a in n&&typeof n!="number"&&!Array.isArray(n)?String(n[a]?.[t]??""):"",h=e?.selected?` ${c.selected}`:"";return r`<div class=${`${c.section}${h}`}>${this.renderItemHeader(d.Translation,s,t)}${this.handleInputRender(d.Translation,o,t)}</div>`}renderNestedInputs(e,t){let a=t??this.setting,{content:n}=a;return n?.map(s=>"content"in s?this.renderNestedInputs(e,s):this.renderNestedInput(e,s)).filter(s=>s!==void 0)}renderNestedInput(e,t){let a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=t?.id,o=n?.[a],h=typeof o=="object"&&o!==null?o[s]:void 0,{label:f,value:w,id:k}=t,S=e===d.Translation?this.translatedLanguageLabels?.[k]:f,N=e===d.User?w:h??"";return r`<div class=${l(c.nestedInput)}>${this.renderItemHeader(e,S,s,t)}${this.renderInput(e,String(N),s,t)}</div>`}renderItemHeader(e,t,a,n){let s=!this.hasNestedContent||!!n;return r`<div class=${l(c.topRow)}>${this.renderItemHeaderLabel(e,t,n)}${s?this.renderCopyButton(e,a):null}</div>`}renderItemHeaderLabel(e,t,a){let n=e===d.User&&!a;return r`<div class=${l(c.labelContainer)}>${a?null:this.renderExpandCollapseButton()}<calcite-icon .icon=${this.getIcon(a)} scale=s></calcite-icon><span class=${l(c.label)}>${t}</span>${n?this.renderInfoButton():null}</div>`}renderExpandCollapseButton(){let e=this.getUIDataItem()?.expanded?u.Expanded:u.Collapsed;return r`<calcite-action @click=${this.handleExpand} .icon=${e} scale=s appearance=transparent text></calcite-action>`}renderInfoButton(){return r`<button id=${this.tipID??g} class=${l(c.infoButton)}><calcite-icon class=${l(c.infoIcon)} .icon=${u.Popover} scale=s></calcite-icon></button>`}renderCopyButton(e,t){return r`<calcite-action class=${l(this.calciteMode)} @click=${this.copySelection.bind(this,e,t)} slot=action .icon=${u.Copy} appearance=transparent text></calcite-action>`}renderInput(e,t,a,n){let s=n??this.setting;return s.type==="string"||s.type==="textarea"?e===d.User?this.renderUserLocaleInput(t,a):this.renderTranslatedLanguageInput(t,a):this.renderTextEditor(t,e,a)}renderUserLocaleInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleUserInputChange} ${$(a=>{a&&(this.userInputs[t]=a)})}></calcite-input>`)}renderTranslatedLanguageInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleTranslatedInputChange} ${$(a=>{a&&(this.translatedInputs[t]=a)})}></calcite-input>`)}renderTextEditor(e,t,a){let n={toolbar:[]};return r`<instant-apps-ckeditor-wrapper id=${a??g} @dataChanged=${this.handleTextEditorDataChange.bind(this,t)} @isFocused=${this.handleSelection} .value=${e??""} data-field-name=${this.fieldName??g} .config=${n} ${$(this.setEditor.bind(this,t))}></instant-apps-ckeditor-wrapper>`}};y("instant-apps-language-translator-item",b);return b},a,b)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0
|
|
3
|
+
v1.1.0 */
|
|
4
4
|
function a(t){let e=t;return t.match(/(qaext|\.mapsqa)\.arcgis.com/)?e="https://qaext.arcgis.com":t.match(/(devext|\.mapsdevext)\.arcgis.com/)?e="https://devext.arcgis.com":t.match(/(www|\.maps)\.arcgis.com/)&&(e="https://www.arcgis.com"),e}export{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
|
|
4
|
-
import{a as e}from"./
|
|
3
|
+
v1.1.0 */
|
|
4
|
+
import{a as e}from"./2LIVMQO2.js";import{a as _}from"./GWXJIXZK.js";import{b as f}from"./PZJBWNEZ.js";import"./2XTYWT3B.js";import"./A7SGX5YT.js";import{C as d,D as v,E as h,G as o,I as a,h as l,i as t,r as m}from"./KCYMVFRG.js";import"./SMTMWRRV.js";var $=l`@layer{:host{display:block}.instant-apps-popover__content{display:flex;flex-direction:column;padding:0 5% 5%;max-width:35vw;font-family:var(--calcite-sans-family);font-size:.875rem}.instant-apps-popover__content .instant-apps-popover__action{align-self:flex-start;--calcite-color-foreground-2: transparent}.instant-apps-popover__content span{display:inline-block;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);margin:0 0 10px;font-family:var(--calcite-sans-family)}.instant-apps-popover__content p{line-height:19.12px;margin:0 0 10px;font-family:var(--calcite-sans-family)}.instant-apps-popover__content .instant-apps-popover__footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.instant-apps-popover__content .instant-apps-popover__footer span{margin-bottom:0;font-weight:400;font-size:.875rem;font-family:var(--calcite-sans-family)}.instant-apps-popover__content .instant-apps-popover__footer calcite-button:first-child{--calcite-color-foreground-3: transparent}.instant-apps-popover__content .instant-apps-popover__footer calcite-button:last-child{margin-left:5px}.instant-apps-popover__content .instant-apps-popover__img{width:100%;margin-bottom:10px}.instant-apps-popover__content.instant-apps-popover--action-disabled{padding:5%}.instant-apps-popover__content.instant-apps-popover--action-disabled #subtitle{margin:0 0 10px}}`,n={content:"instant-apps-popover__content",buttonContainer:"instant-apps-popover__button-container",action:"instant-apps-popover__action",actionDisabled:"instant-apps-popover--action-disabled",img:"instant-apps-popover__img",footer:"instant-apps-popover__footer"},p=class extends h{constructor(){super(...arguments),this._messages=_({name:"instant-apps-popover"}),this.popoverEl=d(),this.popoverTitle="",this.subtitle="",this.content="",this.placement="trailing-start",this.pagination=!1,this.disableAction=!1}static{this.properties={popoverTitle:3,subtitle:3,content:3,imgSrc:3,imgAlt:3,mediaSrc:3,index:11,referenceElement:3,parent:0,placement:1,refId:1,pagination:7,disableAction:7,popoverAction:0,messageOverrides:0}}static{this.styles=$}static{this.shadowRootOptions=m}updated(){!this.hasUpdated&&this.popoverEl.value&&(this.popoverEl.value.referenceElement=this.referenceElement)}render(){return t`<calcite-popover .heading=${this.popoverTitle} auto-close .placement=${this.placement} .messageOverrides=${{close:this._messages.close}} trigger-disabled ref-id=${this.refId??a} closable .referenceElement=${this.referenceElement} .label=${this.popoverTitle} ${v(this.popoverEl)}><div class=${`${n.content}${this.disableAction?` ${n.actionDisabled}`:""}`}>${this.disableAction?null:e("popover-action",t`<calcite-action class=${o(n.action)} @click=${this.popoverAction} .icon=${document.dir==="rtl"?"chevron-right":"chevron-left"} text-enabled .text=${this._messages.back??""}></calcite-action>`)}<section><span id=subtitle>${this.subtitle}</span><p>${this.content}</p>${this.imgSrc?e(`iac-popover-img-${this.refId}`,t`<img class=${o(n.img)} src=${this.imgSrc??a} alt=${(this.imgAlt?this.imgAlt:"")??a}>`):null}</section>${this.pagination?e(`iac-popover-footer-${this.index}`,t`<div class=${o(n.footer)}><span>${this.index+1} ${this._messages?.of} ${this.parent?.instantAppsPopovers?.size}</span>${this.renderPagination()}</div>`):null}</div></calcite-popover>`}renderPagination(){let{index:r,_messages:s,parent:i}=this;if(!i)return null;let g=i.instantAppsPopovers.size,u=r===0,c=r===g-1;return e("pagination-button-container",t`<div class=${o(n.buttonContainer)}>${u?null:e("prev",t`<calcite-button @click=${async()=>await i?.previous()} appearance=outline kind=neutral>${s.back}</calcite-button>`)}${e("next",t`<calcite-button @click=${async()=>{c?await i?.done():await i?.next()}}>${c?s.done:s.next}</calcite-button>`)}</div>`)}};f("instant-apps-popover",p);export{p as InstantAppsPopover};
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
4
|
-
import"./WOX63RAP.js";var{entries:_t,setPrototypeOf:ct,isFrozen:Yt,getPrototypeOf:Xt,getOwnPropertyDescriptor:jt}=Object,{freeze:S,seal:L,create:Pe}=Object,{apply:ve,construct:ke}=typeof Reflect<"u"&&Reflect;S||(S=function(o){return o});L||(L=function(o){return o});ve||(ve=function(o,l){for(var a=arguments.length,c=new Array(a>2?a-2:0),O=2;O<a;O++)c[O-2]=arguments[O];return o.apply(l,c)});ke||(ke=function(o){for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return new o(...a)});var ce=R(Array.prototype.forEach),Vt=R(Array.prototype.lastIndexOf),ft=R(Array.prototype.pop),q=R(Array.prototype.push),$t=R(Array.prototype.splice),ue=R(String.prototype.toLowerCase),Ne=R(String.prototype.toString),Ie=R(String.prototype.match),K=R(String.prototype.replace),qt=R(String.prototype.indexOf),Kt=R(String.prototype.trim),b=R(Object.prototype.hasOwnProperty),A=R(RegExp.prototype.test),Z=Zt(TypeError);function R(s){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return ve(s,o,a)}}function Zt(s){return function(){for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return ke(s,l)}}function r(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ue;ct&&ct(s,null);let a=o.length;for(;a--;){let c=o[a];if(typeof c=="string"){let O=l(c);O!==c&&(Yt(o)||(o[a]=O),c=O)}s[c]=!0}return s}function Jt(s){for(let o=0;o<s.length;o++)b(s,o)||(s[o]=null);return s}function M(s){let o=Pe(null);for(let[l,a]of _t(s))b(s,l)&&(Array.isArray(a)?o[l]=Jt(a):a&&typeof a=="object"&&a.constructor===Object?o[l]=M(a):o[l]=a);return o}function J(s,o){for(;s!==null;){let a=jt(s,o);if(a){if(a.get)return R(a.get);if(typeof a.value=="function")return R(a.value)}s=Xt(s)}function l(){return null}return l}var ut=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ce=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Me=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qt=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),we=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),en=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mt=S(["#text"]),pt=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xe=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),dt=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fe=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tn=L(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nn=L(/<%[\w\W]*|[\w\W]*%>/gm),on=L(/\$\{[\w\W]*/gm),an=L(/^data-[\-\w.\u00B7-\uFFFF]+$/),rn=L(/^aria-[\-\w]+$/),gt=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sn=L(/^(?:\w+script|data):/i),ln=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ht=L(/^html$/i),cn=L(/^[a-z][.\w]*(-[.\w]+)+$/i),Tt=Object.freeze({__proto__:null,ARIA_ATTR:rn,ATTR_WHITESPACE:ln,CUSTOM_ELEMENT:cn,DATA_ATTR:an,DOCTYPE_NAME:ht,ERB_EXPR:nn,IS_ALLOWED_URI:gt,IS_SCRIPT_OR_DATA:sn,MUSTACHE_EXPR:tn,TMPLIT_EXPR:on}),Q={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},fn=function(){return typeof window>"u"?null:window},un=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let a=null,c="data-tt-policy-suffix";l&&l.hasAttribute(c)&&(a=l.getAttribute(c));let O="dompurify"+(a?"#"+a:"");try{return o.createPolicy(O,{createHTML(P){return P},createScriptURL(P){return P}})}catch{return console.warn("TrustedTypes policy "+O+" could not be created."),null}},Et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function At(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn(),o=i=>At(i);if(o.version="3.3.0",o.removed=[],!s||!s.document||s.document.nodeType!==Q.document||!s.Element)return o.isSupported=!1,o;let{document:l}=s,a=l,c=a.currentScript,{DocumentFragment:O,HTMLTemplateElement:P,Node:me,Element:Ue,NodeFilter:B,NamedNodeMap:St=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:Rt,DOMParser:Ot,trustedTypes:ee}=s,Y=Ue.prototype,yt=J(Y,"cloneNode"),Lt=J(Y,"remove"),bt=J(Y,"nextSibling"),Dt=J(Y,"childNodes"),te=J(Y,"parentNode");if(typeof P=="function"){let i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let g,X="",{implementation:pe,createNodeIterator:Nt,createDocumentFragment:It,getElementsByTagName:Ct}=l,{importNode:Mt}=a,h=Et();o.isSupported=typeof _t=="function"&&typeof te=="function"&&pe&&pe.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:de,ERB_EXPR:Te,TMPLIT_EXPR:Ee,DATA_ATTR:wt,ARIA_ATTR:xt,IS_SCRIPT_OR_DATA:Pt,ATTR_WHITESPACE:Fe,CUSTOM_ELEMENT:vt}=Tt,{IS_ALLOWED_URI:He}=Tt,p=null,ze=r({},[...ut,...Ce,...Me,...we,...mt]),T=null,Ge=r({},[...pt,...xe,...dt,...fe]),u=Object.seal(Pe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,_e=null,v=Object.seal(Pe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),We=!0,ge=!0,Be=!1,Ye=!0,k=!1,ne=!0,w=!1,he=!1,Ae=!1,U=!1,oe=!1,ie=!1,Xe=!0,je=!1,kt="user-content-",Se=!0,V=!1,F={},H=null,Ve=r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,qe=r({},["audio","video","img","source","image","track"]),Re=null,Ke=r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ae="http://www.w3.org/1998/Math/MathML",re="http://www.w3.org/2000/svg",N="http://www.w3.org/1999/xhtml",z=N,Oe=!1,ye=null,Ut=r({},[ae,re,N],Ne),se=r({},["mi","mo","mn","ms","mtext"]),le=r({},["annotation-xml"]),Ft=r({},["title","style","font","a","script"]),$=null,Ht=["application/xhtml+xml","text/html"],zt="text/html",d=null,G=null,Gt=l.createElement("form"),Ze=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(G&&G===e)){if((!e||typeof e!="object")&&(e={}),e=M(e),$=Ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?zt:e.PARSER_MEDIA_TYPE,d=$==="application/xhtml+xml"?Ne:ue,p=b(e,"ALLOWED_TAGS")?r({},e.ALLOWED_TAGS,d):ze,T=b(e,"ALLOWED_ATTR")?r({},e.ALLOWED_ATTR,d):Ge,ye=b(e,"ALLOWED_NAMESPACES")?r({},e.ALLOWED_NAMESPACES,Ne):Ut,Re=b(e,"ADD_URI_SAFE_ATTR")?r(M(Ke),e.ADD_URI_SAFE_ATTR,d):Ke,$e=b(e,"ADD_DATA_URI_TAGS")?r(M(qe),e.ADD_DATA_URI_TAGS,d):qe,H=b(e,"FORBID_CONTENTS")?r({},e.FORBID_CONTENTS,d):Ve,j=b(e,"FORBID_TAGS")?r({},e.FORBID_TAGS,d):M({}),_e=b(e,"FORBID_ATTR")?r({},e.FORBID_ATTR,d):M({}),F=b(e,"USE_PROFILES")?e.USE_PROFILES:!1,We=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,Be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=e.SAFE_FOR_TEMPLATES||!1,ne=e.SAFE_FOR_XML!==!1,w=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,oe=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Xe=e.SANITIZE_DOM!==!1,je=e.SANITIZE_NAMED_PROPS||!1,Se=e.KEEP_CONTENT!==!1,V=e.IN_PLACE||!1,He=e.ALLOWED_URI_REGEXP||gt,z=e.NAMESPACE||N,se=e.MATHML_TEXT_INTEGRATION_POINTS||se,le=e.HTML_INTEGRATION_POINTS||le,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(ge=!1),oe&&(U=!0),F&&(p=r({},mt),T=[],F.html===!0&&(r(p,ut),r(T,pt)),F.svg===!0&&(r(p,Ce),r(T,xe),r(T,fe)),F.svgFilters===!0&&(r(p,Me),r(T,xe),r(T,fe)),F.mathMl===!0&&(r(p,we),r(T,dt),r(T,fe))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?v.tagCheck=e.ADD_TAGS:(p===ze&&(p=M(p)),r(p,e.ADD_TAGS,d))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?v.attributeCheck=e.ADD_ATTR:(T===Ge&&(T=M(T)),r(T,e.ADD_ATTR,d))),e.ADD_URI_SAFE_ATTR&&r(Re,e.ADD_URI_SAFE_ATTR,d),e.FORBID_CONTENTS&&(H===Ve&&(H=M(H)),r(H,e.FORBID_CONTENTS,d)),Se&&(p["#text"]=!0),w&&r(p,["html","head","body"]),p.table&&(r(p,["tbody"]),delete j.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,X=g.createHTML("")}else g===void 0&&(g=un(ee,c)),g!==null&&typeof X=="string"&&(X=g.createHTML(""));S&&S(e),G=e}},Je=r({},[...Ce,...Me,...Qt]),Qe=r({},[...we,...en]),Wt=function(e){let t=te(e);(!t||!t.tagName)&&(t={namespaceURI:z,tagName:"template"});let n=ue(e.tagName),f=ue(t.tagName);return ye[e.namespaceURI]?e.namespaceURI===re?t.namespaceURI===N?n==="svg":t.namespaceURI===ae?n==="svg"&&(f==="annotation-xml"||se[f]):!!Je[n]:e.namespaceURI===ae?t.namespaceURI===N?n==="math":t.namespaceURI===re?n==="math"&&le[f]:!!Qe[n]:e.namespaceURI===N?t.namespaceURI===re&&!le[f]||t.namespaceURI===ae&&!se[f]?!1:!Qe[n]&&(Ft[n]||!Je[n]):!!($==="application/xhtml+xml"&&ye[e.namespaceURI]):!1},D=function(e){q(o.removed,{element:e});try{te(e).removeChild(e)}catch{Lt(e)}},x=function(e,t){try{q(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{q(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(U||oe)try{D(t)}catch{}else try{t.setAttribute(e,"")}catch{}},et=function(e){let t=null,n=null;if(Ae)e="<remove></remove>"+e;else{let m=Ie(e,/^[\r\n\t ]+/);n=m&&m[0]}$==="application/xhtml+xml"&&z===N&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let f=g?g.createHTML(e):e;if(z===N)try{t=new Ot().parseFromString(f,$)}catch{}if(!t||!t.documentElement){t=pe.createDocument(z,"template",null);try{t.documentElement.innerHTML=Oe?X:f}catch{}}let _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),z===N?Ct.call(t,w?"html":"body")[0]:w?t.documentElement:_},tt=function(e){return Nt.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},be=function(e){return e instanceof Rt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof St)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},nt=function(e){return typeof me=="function"&&e instanceof me};function I(i,e,t){ce(i,n=>{n.call(o,e,t,G)})}let ot=function(e){let t=null;if(I(h.beforeSanitizeElements,e,null),be(e))return D(e),!0;let n=d(e.nodeName);if(I(h.uponSanitizeElement,e,{tagName:n,allowedTags:p}),ne&&e.hasChildNodes()&&!nt(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent)||e.nodeType===Q.progressingInstruction||ne&&e.nodeType===Q.comment&&A(/<[/\w]/g,e.data))return D(e),!0;if(!(v.tagCheck instanceof Function&&v.tagCheck(n))&&(!p[n]||j[n])){if(!j[n]&&at(n)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n)))return!1;if(Se&&!H[n]){let f=te(e)||e.parentNode,_=Dt(e)||e.childNodes;if(_&&f){let m=_.length;for(let y=m-1;y>=0;--y){let C=yt(_[y],!0);C.__removalCount=(e.__removalCount||0)+1,f.insertBefore(C,bt(e))}}}return D(e),!0}return e instanceof Ue&&!Wt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(D(e),!0):(k&&e.nodeType===Q.text&&(t=e.textContent,ce([de,Te,Ee],f=>{t=K(t,f," ")}),e.textContent!==t&&(q(o.removed,{element:e.cloneNode()}),e.textContent=t)),I(h.afterSanitizeElements,e,null),!1)},it=function(e,t,n){if(Xe&&(t==="id"||t==="name")&&(n in l||n in Gt))return!1;if(!(ge&&!_e[t]&&A(wt,t))){if(!(We&&A(xt,t))){if(!(v.attributeCheck instanceof Function&&v.attributeCheck(t,e))){if(!T[t]||_e[t]){if(!(at(e)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&A(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t,e))||t==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n))))return!1}else if(!Re[t]){if(!A(He,K(n,Fe,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&qt(n,"data:")===0&&$e[e])){if(!(Be&&!A(Pt,K(n,Fe,"")))){if(n)return!1}}}}}}}return!0},at=function(e){return e!=="annotation-xml"&&Ie(e,vt)},rt=function(e){I(h.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||be(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0},f=t.length;for(;f--;){let _=t[f],{name:m,namespaceURI:y,value:C}=_,W=d(m),De=C,E=m==="value"?De:Kt(De);if(n.attrName=W,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,I(h.uponSanitizeAttribute,e,n),E=n.attrValue,je&&(W==="id"||W==="name")&&(x(m,e),E=kt+E),ne&&A(/((--!?|])>)|<\/(style|title|textarea)/i,E)){x(m,e);continue}if(W==="attributename"&&Ie(E,"href")){x(m,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){x(m,e);continue}if(!Ye&&A(/\/>/i,E)){x(m,e);continue}k&&ce([de,Te,Ee],lt=>{E=K(E,lt," ")});let st=d(e.nodeName);if(!it(st,W,E)){x(m,e);continue}if(g&&typeof ee=="object"&&typeof ee.getAttributeType=="function"&&!y)switch(ee.getAttributeType(st,W)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==De)try{y?e.setAttributeNS(y,m,E):e.setAttribute(m,E),be(e)?D(e):ft(o.removed)}catch{x(m,e)}}I(h.afterSanitizeAttributes,e,null)},Bt=function i(e){let t=null,n=tt(e);for(I(h.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)I(h.uponSanitizeShadowNode,t,null),ot(t),rt(t),t.content instanceof O&&i(t.content);I(h.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,f=null,_=null;if(Oe=!i,Oe&&(i="<!-->"),typeof i!="string"&&!nt(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw Z("dirty is not a string, aborting")}else throw Z("toString is not a function");if(!o.isSupported)return i;if(he||Le(e),o.removed=[],typeof i=="string"&&(V=!1),V){if(i.nodeName){let C=d(i.nodeName);if(!p[C]||j[C])throw Z("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof me)t=et("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===Q.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!U&&!k&&!w&&i.indexOf("<")===-1)return g&&ie?g.createHTML(i):i;if(t=et(i),!t)return U?null:ie?X:""}t&&Ae&&D(t.firstChild);let m=tt(V?i:t);for(;f=m.nextNode();)ot(f),rt(f),f.content instanceof O&&Bt(f.content);if(V)return i;if(U){if(oe)for(_=It.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(T.shadowroot||T.shadowrootmode)&&(_=Mt.call(a,_,!0)),_}let y=w?t.outerHTML:t.innerHTML;return w&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(ht,t.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
3
|
+
v1.1.0 */
|
|
4
|
+
import"./SMTMWRRV.js";var{entries:_t,setPrototypeOf:ct,isFrozen:Yt,getPrototypeOf:Xt,getOwnPropertyDescriptor:jt}=Object,{freeze:S,seal:L,create:Pe}=Object,{apply:ve,construct:ke}=typeof Reflect<"u"&&Reflect;S||(S=function(o){return o});L||(L=function(o){return o});ve||(ve=function(o,l){for(var a=arguments.length,c=new Array(a>2?a-2:0),O=2;O<a;O++)c[O-2]=arguments[O];return o.apply(l,c)});ke||(ke=function(o){for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return new o(...a)});var ce=R(Array.prototype.forEach),Vt=R(Array.prototype.lastIndexOf),ft=R(Array.prototype.pop),q=R(Array.prototype.push),$t=R(Array.prototype.splice),ue=R(String.prototype.toLowerCase),Ne=R(String.prototype.toString),Ie=R(String.prototype.match),K=R(String.prototype.replace),qt=R(String.prototype.indexOf),Kt=R(String.prototype.trim),b=R(Object.prototype.hasOwnProperty),A=R(RegExp.prototype.test),Z=Zt(TypeError);function R(s){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return ve(s,o,a)}}function Zt(s){return function(){for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return ke(s,l)}}function r(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ue;ct&&ct(s,null);let a=o.length;for(;a--;){let c=o[a];if(typeof c=="string"){let O=l(c);O!==c&&(Yt(o)||(o[a]=O),c=O)}s[c]=!0}return s}function Jt(s){for(let o=0;o<s.length;o++)b(s,o)||(s[o]=null);return s}function M(s){let o=Pe(null);for(let[l,a]of _t(s))b(s,l)&&(Array.isArray(a)?o[l]=Jt(a):a&&typeof a=="object"&&a.constructor===Object?o[l]=M(a):o[l]=a);return o}function J(s,o){for(;s!==null;){let a=jt(s,o);if(a){if(a.get)return R(a.get);if(typeof a.value=="function")return R(a.value)}s=Xt(s)}function l(){return null}return l}var ut=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ce=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Me=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Qt=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),we=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),en=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mt=S(["#text"]),pt=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xe=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),dt=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fe=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tn=L(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nn=L(/<%[\w\W]*|[\w\W]*%>/gm),on=L(/\$\{[\w\W]*/gm),an=L(/^data-[\-\w.\u00B7-\uFFFF]+$/),rn=L(/^aria-[\-\w]+$/),gt=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sn=L(/^(?:\w+script|data):/i),ln=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ht=L(/^html$/i),cn=L(/^[a-z][.\w]*(-[.\w]+)+$/i),Tt=Object.freeze({__proto__:null,ARIA_ATTR:rn,ATTR_WHITESPACE:ln,CUSTOM_ELEMENT:cn,DATA_ATTR:an,DOCTYPE_NAME:ht,ERB_EXPR:nn,IS_ALLOWED_URI:gt,IS_SCRIPT_OR_DATA:sn,MUSTACHE_EXPR:tn,TMPLIT_EXPR:on}),Q={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},fn=function(){return typeof window>"u"?null:window},un=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let a=null,c="data-tt-policy-suffix";l&&l.hasAttribute(c)&&(a=l.getAttribute(c));let O="dompurify"+(a?"#"+a:"");try{return o.createPolicy(O,{createHTML(P){return P},createScriptURL(P){return P}})}catch{return console.warn("TrustedTypes policy "+O+" could not be created."),null}},Et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function At(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn(),o=i=>At(i);if(o.version="3.3.0",o.removed=[],!s||!s.document||s.document.nodeType!==Q.document||!s.Element)return o.isSupported=!1,o;let{document:l}=s,a=l,c=a.currentScript,{DocumentFragment:O,HTMLTemplateElement:P,Node:me,Element:Ue,NodeFilter:B,NamedNodeMap:St=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:Rt,DOMParser:Ot,trustedTypes:ee}=s,Y=Ue.prototype,yt=J(Y,"cloneNode"),Lt=J(Y,"remove"),bt=J(Y,"nextSibling"),Dt=J(Y,"childNodes"),te=J(Y,"parentNode");if(typeof P=="function"){let i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let g,X="",{implementation:pe,createNodeIterator:Nt,createDocumentFragment:It,getElementsByTagName:Ct}=l,{importNode:Mt}=a,h=Et();o.isSupported=typeof _t=="function"&&typeof te=="function"&&pe&&pe.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:de,ERB_EXPR:Te,TMPLIT_EXPR:Ee,DATA_ATTR:wt,ARIA_ATTR:xt,IS_SCRIPT_OR_DATA:Pt,ATTR_WHITESPACE:Fe,CUSTOM_ELEMENT:vt}=Tt,{IS_ALLOWED_URI:He}=Tt,p=null,ze=r({},[...ut,...Ce,...Me,...we,...mt]),T=null,Ge=r({},[...pt,...xe,...dt,...fe]),u=Object.seal(Pe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,_e=null,v=Object.seal(Pe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),We=!0,ge=!0,Be=!1,Ye=!0,k=!1,ne=!0,w=!1,he=!1,Ae=!1,U=!1,oe=!1,ie=!1,Xe=!0,je=!1,kt="user-content-",Se=!0,V=!1,F={},H=null,Ve=r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,qe=r({},["audio","video","img","source","image","track"]),Re=null,Ke=r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ae="http://www.w3.org/1998/Math/MathML",re="http://www.w3.org/2000/svg",N="http://www.w3.org/1999/xhtml",z=N,Oe=!1,ye=null,Ut=r({},[ae,re,N],Ne),se=r({},["mi","mo","mn","ms","mtext"]),le=r({},["annotation-xml"]),Ft=r({},["title","style","font","a","script"]),$=null,Ht=["application/xhtml+xml","text/html"],zt="text/html",d=null,G=null,Gt=l.createElement("form"),Ze=function(e){return e instanceof RegExp||e instanceof Function},Le=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(G&&G===e)){if((!e||typeof e!="object")&&(e={}),e=M(e),$=Ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?zt:e.PARSER_MEDIA_TYPE,d=$==="application/xhtml+xml"?Ne:ue,p=b(e,"ALLOWED_TAGS")?r({},e.ALLOWED_TAGS,d):ze,T=b(e,"ALLOWED_ATTR")?r({},e.ALLOWED_ATTR,d):Ge,ye=b(e,"ALLOWED_NAMESPACES")?r({},e.ALLOWED_NAMESPACES,Ne):Ut,Re=b(e,"ADD_URI_SAFE_ATTR")?r(M(Ke),e.ADD_URI_SAFE_ATTR,d):Ke,$e=b(e,"ADD_DATA_URI_TAGS")?r(M(qe),e.ADD_DATA_URI_TAGS,d):qe,H=b(e,"FORBID_CONTENTS")?r({},e.FORBID_CONTENTS,d):Ve,j=b(e,"FORBID_TAGS")?r({},e.FORBID_TAGS,d):M({}),_e=b(e,"FORBID_ATTR")?r({},e.FORBID_ATTR,d):M({}),F=b(e,"USE_PROFILES")?e.USE_PROFILES:!1,We=e.ALLOW_ARIA_ATTR!==!1,ge=e.ALLOW_DATA_ATTR!==!1,Be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=e.SAFE_FOR_TEMPLATES||!1,ne=e.SAFE_FOR_XML!==!1,w=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,oe=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Xe=e.SANITIZE_DOM!==!1,je=e.SANITIZE_NAMED_PROPS||!1,Se=e.KEEP_CONTENT!==!1,V=e.IN_PLACE||!1,He=e.ALLOWED_URI_REGEXP||gt,z=e.NAMESPACE||N,se=e.MATHML_TEXT_INTEGRATION_POINTS||se,le=e.HTML_INTEGRATION_POINTS||le,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ze(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(ge=!1),oe&&(U=!0),F&&(p=r({},mt),T=[],F.html===!0&&(r(p,ut),r(T,pt)),F.svg===!0&&(r(p,Ce),r(T,xe),r(T,fe)),F.svgFilters===!0&&(r(p,Me),r(T,xe),r(T,fe)),F.mathMl===!0&&(r(p,we),r(T,dt),r(T,fe))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?v.tagCheck=e.ADD_TAGS:(p===ze&&(p=M(p)),r(p,e.ADD_TAGS,d))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?v.attributeCheck=e.ADD_ATTR:(T===Ge&&(T=M(T)),r(T,e.ADD_ATTR,d))),e.ADD_URI_SAFE_ATTR&&r(Re,e.ADD_URI_SAFE_ATTR,d),e.FORBID_CONTENTS&&(H===Ve&&(H=M(H)),r(H,e.FORBID_CONTENTS,d)),Se&&(p["#text"]=!0),w&&r(p,["html","head","body"]),p.table&&(r(p,["tbody"]),delete j.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,X=g.createHTML("")}else g===void 0&&(g=un(ee,c)),g!==null&&typeof X=="string"&&(X=g.createHTML(""));S&&S(e),G=e}},Je=r({},[...Ce,...Me,...Qt]),Qe=r({},[...we,...en]),Wt=function(e){let t=te(e);(!t||!t.tagName)&&(t={namespaceURI:z,tagName:"template"});let n=ue(e.tagName),f=ue(t.tagName);return ye[e.namespaceURI]?e.namespaceURI===re?t.namespaceURI===N?n==="svg":t.namespaceURI===ae?n==="svg"&&(f==="annotation-xml"||se[f]):!!Je[n]:e.namespaceURI===ae?t.namespaceURI===N?n==="math":t.namespaceURI===re?n==="math"&&le[f]:!!Qe[n]:e.namespaceURI===N?t.namespaceURI===re&&!le[f]||t.namespaceURI===ae&&!se[f]?!1:!Qe[n]&&(Ft[n]||!Je[n]):!!($==="application/xhtml+xml"&&ye[e.namespaceURI]):!1},D=function(e){q(o.removed,{element:e});try{te(e).removeChild(e)}catch{Lt(e)}},x=function(e,t){try{q(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{q(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(U||oe)try{D(t)}catch{}else try{t.setAttribute(e,"")}catch{}},et=function(e){let t=null,n=null;if(Ae)e="<remove></remove>"+e;else{let m=Ie(e,/^[\r\n\t ]+/);n=m&&m[0]}$==="application/xhtml+xml"&&z===N&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let f=g?g.createHTML(e):e;if(z===N)try{t=new Ot().parseFromString(f,$)}catch{}if(!t||!t.documentElement){t=pe.createDocument(z,"template",null);try{t.documentElement.innerHTML=Oe?X:f}catch{}}let _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),z===N?Ct.call(t,w?"html":"body")[0]:w?t.documentElement:_},tt=function(e){return Nt.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},be=function(e){return e instanceof Rt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof St)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},nt=function(e){return typeof me=="function"&&e instanceof me};function I(i,e,t){ce(i,n=>{n.call(o,e,t,G)})}let ot=function(e){let t=null;if(I(h.beforeSanitizeElements,e,null),be(e))return D(e),!0;let n=d(e.nodeName);if(I(h.uponSanitizeElement,e,{tagName:n,allowedTags:p}),ne&&e.hasChildNodes()&&!nt(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent)||e.nodeType===Q.progressingInstruction||ne&&e.nodeType===Q.comment&&A(/<[/\w]/g,e.data))return D(e),!0;if(!(v.tagCheck instanceof Function&&v.tagCheck(n))&&(!p[n]||j[n])){if(!j[n]&&at(n)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n)))return!1;if(Se&&!H[n]){let f=te(e)||e.parentNode,_=Dt(e)||e.childNodes;if(_&&f){let m=_.length;for(let y=m-1;y>=0;--y){let C=yt(_[y],!0);C.__removalCount=(e.__removalCount||0)+1,f.insertBefore(C,bt(e))}}}return D(e),!0}return e instanceof Ue&&!Wt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(D(e),!0):(k&&e.nodeType===Q.text&&(t=e.textContent,ce([de,Te,Ee],f=>{t=K(t,f," ")}),e.textContent!==t&&(q(o.removed,{element:e.cloneNode()}),e.textContent=t)),I(h.afterSanitizeElements,e,null),!1)},it=function(e,t,n){if(Xe&&(t==="id"||t==="name")&&(n in l||n in Gt))return!1;if(!(ge&&!_e[t]&&A(wt,t))){if(!(We&&A(xt,t))){if(!(v.attributeCheck instanceof Function&&v.attributeCheck(t,e))){if(!T[t]||_e[t]){if(!(at(e)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&A(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t,e))||t==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n))))return!1}else if(!Re[t]){if(!A(He,K(n,Fe,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&qt(n,"data:")===0&&$e[e])){if(!(Be&&!A(Pt,K(n,Fe,"")))){if(n)return!1}}}}}}}return!0},at=function(e){return e!=="annotation-xml"&&Ie(e,vt)},rt=function(e){I(h.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||be(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0},f=t.length;for(;f--;){let _=t[f],{name:m,namespaceURI:y,value:C}=_,W=d(m),De=C,E=m==="value"?De:Kt(De);if(n.attrName=W,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,I(h.uponSanitizeAttribute,e,n),E=n.attrValue,je&&(W==="id"||W==="name")&&(x(m,e),E=kt+E),ne&&A(/((--!?|])>)|<\/(style|title|textarea)/i,E)){x(m,e);continue}if(W==="attributename"&&Ie(E,"href")){x(m,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){x(m,e);continue}if(!Ye&&A(/\/>/i,E)){x(m,e);continue}k&&ce([de,Te,Ee],lt=>{E=K(E,lt," ")});let st=d(e.nodeName);if(!it(st,W,E)){x(m,e);continue}if(g&&typeof ee=="object"&&typeof ee.getAttributeType=="function"&&!y)switch(ee.getAttributeType(st,W)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==De)try{y?e.setAttributeNS(y,m,E):e.setAttribute(m,E),be(e)?D(e):ft(o.removed)}catch{x(m,e)}}I(h.afterSanitizeAttributes,e,null)},Bt=function i(e){let t=null,n=tt(e);for(I(h.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)I(h.uponSanitizeShadowNode,t,null),ot(t),rt(t),t.content instanceof O&&i(t.content);I(h.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,f=null,_=null;if(Oe=!i,Oe&&(i="<!-->"),typeof i!="string"&&!nt(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw Z("dirty is not a string, aborting")}else throw Z("toString is not a function");if(!o.isSupported)return i;if(he||Le(e),o.removed=[],typeof i=="string"&&(V=!1),V){if(i.nodeName){let C=d(i.nodeName);if(!p[C]||j[C])throw Z("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof me)t=et("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===Q.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!U&&!k&&!w&&i.indexOf("<")===-1)return g&&ie?g.createHTML(i):i;if(t=et(i),!t)return U?null:ie?X:""}t&&Ae&&D(t.firstChild);let m=tt(V?i:t);for(;f=m.nextNode();)ot(f),rt(f),f.content instanceof O&&Bt(f.content);if(V)return i;if(U){if(oe)for(_=It.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(T.shadowroot||T.shadowrootmode)&&(_=Mt.call(a,_,!0)),_}let y=w?t.outerHTML:t.innerHTML;return w&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(ht,t.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
5
5
|
`+y),k&&ce([de,Te,Ee],C=>{y=K(y,C," ")}),g&&ie?g.createHTML(y):y},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Le(i),he=!0},o.clearConfig=function(){G=null,he=!1},o.isValidAttribute=function(i,e,t){G||Le({});let n=d(i),f=d(e);return it(n,f,t)},o.addHook=function(i,e){typeof e=="function"&&q(h[i],e)},o.removeHook=function(i,e){if(e!==void 0){let t=Vt(h[i],e);return t===-1?void 0:$t(h[i],t,1)[0]}return ft(h[i])},o.removeHooks=function(i){h[i]=[]},o.removeAllHooks=function(){h=Et()},o}var mn=At();export{mn as default};
|
|
@@ -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
|
|
4
|
-
import{ja as m,lb as l}from"./
|
|
3
|
+
v1.1.0 */
|
|
4
|
+
import{ja as m,lb as l}from"./RYIFMIE7.js";import{v as u}from"./IYTOH2LC.js";import{H as c}from"./IZ3E7B3U.js";export default $arcgis.t(([])=>{function C(t){let e="",a="?";return t.forEach(n=>{n.k&&n.v&&(e+=a+n.k+"="+n.v,a="&")}),e}async function d(t,e){let a=e,n=await a.getUsername(),s={q:new u().match(t).in("title").and().match(n).in("owner"),filter:"type:Solution",authentication:a},f=(await l(s)).results.map(r=>r.title),{folders:h}=await m(a),p=h.map(r=>r.title),i=[...f,...p].map(r=>r.trim().toLowerCase()),o=t.toLowerCase(),w=i.filter(r=>r===o),g=i.filter(r=>r.startsWith(o));return{conflictingNames:w,similiarNames:g}}async function E(t,e){return y(t)?{status:!1,type:"empty"}:v(t)?{status:!1,type:"exceed length"}:k(t)?{status:!1,type:"special character"}:(await d(t.trim(),e)).conflictingNames.length>0?{status:!1,type:"not unique"}:{status:!0,type:""}}function y(t){return t.length<=0}function v(t){return t.length>c}function k(t){return/[/<>]/u.test(t)}function I(t){if(t){let e=t.trim();return e?"<div>"+e+"</div>":""}else return""}function x(t){let e="",a="?";return t.forEach(n=>{n.k&&n.v&&(e+=a+n.k+"="+n.v,a="&")}),e}function S(t,e,a,n){let s="";return e?s=n+"/sharing/rest/content/items/"+t+"/info/"+e+x([{k:"w",v:"400"}]):s=a,s}function b(t){let e=t?t.replace("https://","").replace("www.",""):"";return e.endsWith("devext.arcgis.com")||e.endsWith("mapsqa.arcgis.com")||e.endsWith("qaext.arcgis.com")?t??"https://www.arcgis.com":"https://www.arcgis.com"}function A(t,e,a){return e.some(n=>n.wkid===t?(a=n.defaultExtent,!0):!1),a}function D(t,e="en"){return new Intl.DateTimeFormat(e,{year:"numeric",month:"long",day:"numeric"}).format(t)}function F(t,e){let a="";return t.some(n=>n.startsWith(e)?(a=n.substring(e.length),!0):!1),a}return{a:C,b:d,c:E,d:k,e:I,f:x,g:S,h:b,i:A,j:D,k:F}},"intl")
|
|
@@ -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
|
|
4
|
-
import{na as n,pa as a,ra as m}from"./
|
|
3
|
+
v1.1.0 */
|
|
4
|
+
import{na as n,pa as a,ra as m}from"./RYIFMIE7.js";async function u(o,i){let s=await m(o,i);if(!s)throw new Error(`Solution ${o} was not found`);let r=i?.portal.replace("/sharing/rest","")??"https://www.arcgis.com",p=[];if(s.templates[0].item)p=s.templates.map(t=>({id:t.itemId,title:t.item.title,type:t.item.type,typeKeywords:t.item.typeKeywords,dependencies:t.dependencies,snippet:t.item.snippet}));else{let t=s.templates.map(e=>e.type==="Group"?n(e.itemId,i):a(e.itemId,i));p=(await Promise.allSettled(t)).filter(e=>e.status==="fulfilled").map(e=>e.value).map((e,d)=>{let l=typeof e.type>"u"?"group":"item";return{id:e.id,title:e.title,type:e.type??"Group",typeKeywords:e.typeKeywords,dependencies:s.templates[d].dependencies,snippet:e.snippet,url:`${r}/home/${l}.html?id=${e.id}`}})}return p}export{u as a};
|
|
@@ -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
|
|
4
|
-
import{a as Pn}from"./WERUCJ7K.js";import"./LT7YPVZE.js";import"./HNYCXG4D.js";import{b as En}from"./HMCXMRML.js";import{E as jn,h as In,o as kn}from"./V3TL3QUY.js";import"./WOX63RAP.js";function Xi(e={}){let{disabled:t,portal:n}=e;return t||n?.eueiEnabled===!1?!0:!(!n||Bi(n)||Qi(n)||Yi(n))}function Bi(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function Qi(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Yi(e){return!e.user&&e.ipCntryCode==="US"}var Le={storage:{},memory:!0,get(e){let t;try{t=window.localStorage&&window.localStorage.getItem(e)||this.storage[e]}catch{t=this.storage[e]}if(t)try{return JSON.parse(t)}catch{return}else return},set(e,t){let n=JSON.stringify(t);try{window.localStorage.setItem(e,n)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[e]=t}},delete(e){try{window.localStorage.removeItem(e)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[e]}}},Fr="esri-telemetry";function Zi(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!to(e)||e.body)&&t()})}function eo(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${Fr}="${n}"]`)}function to(e){let{body:t,src:n,id:r,dataAttribute:i,section:o="body",type:a="text/javascript",async:s=!1,defer:u=!1,onload:c,onerror:d}=e;if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");if(eo(e)){console.log(`script (${r||i}) is already present, skipping`);return}let p=no({id:r,dataAttribute:i,type:a,async:s,defer:u,body:t,src:n,onload:c,onerror:d});return o==="body"?document.body.appendChild(p):document.head.appendChild(p)}var nt=class extends Error{};function no({id:e,dataAttribute:t,type:n,async:r,defer:i,body:o,src:a,onload:s,onerror:u}){let c=document.createElement("script");return e&&(c.id=e),t&&c.setAttribute(`data-${Fr}`,t),a&&(c.src=a),o&&(c.innerText=o),c.type=n,c.async=r,c.defer=i,s&&(c.onload=s),u&&(c.onerror=u),c}function ro(e){return e.map(t=>{let n=[];return["src","id","dataAttribute","type"].forEach(r=>{let i=r;r==="dataAttribute"&&(i="data-esri-telemetry"),t[r]&&n.push(`${i}="${t[r]}"`)}),["async","defer"].forEach(r=>{t[r]&&n.push(`${r}`)}),`<script ${n.join(" ")}>${t.body?t.body:""}<\/script>`}).join("")}var io=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],Ct=class{constructor(t){var n,r,i;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=Xi(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let o=((n=t.portal)===null||n===void 0?void 0:n.user)||t.user;o&&this.setUser(o,(i=(r=t.portal)===null||r===void 0?void 0:r.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map(t=>t.getScriptTags&&t.getScriptTags()).join("")}async init(){let t=this.trackers.map(n=>n.init());await Promise.all(t)}setUser(t={},n="Public"){t=typeof t=="string"?{username:t}:t,this.user=t,this.user.accountType=n;let r;if(t.email&&t.email.split){let i=t.email.split("@")[1];r=io.filter(o=>i===o).length>0}(r||["In House","Demo and Marketing"].indexOf(n)>-1)&&(this.user.internalUser=!0)}logPageView(t,n={},r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:s,hasError:u})=>!s&&!u);if(!i.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let o=this.preProcess(n,r);this.debug&&this.logger.info("Tracking page view",JSON.stringify(o));let a=i.map(s=>s.logPageView(t,o));return Promise.all(a).then(),!0}logEvent(t,n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let r=this.trackers.filter(({disabled:a,hasError:s})=>!a&&!s);if(!r.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(t,n);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let o=r.map(a=>a.logEvent(i));return Promise.all(o).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,n={}){let r={name:t,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(r);let i=Object.assign({name:t,step:"start"},n);return this.logWorkflow(i),r}stepWorkflow(t,n,r={}){let i=typeof r=="string"?r:r.details,o=Object.assign({name:t,step:n,details:i},r);this.logWorkflow(o)}endWorkflow(t,n={}){let r=Object.assign({name:t,step:"finish"},n);this.logWorkflow(r)}cancelWorkflow(t,n={}){let r=Object.assign({name:t,step:"cancel"},n);this.logWorkflow(r)}getWorkflow(t){let n=Le.get(`TELEMETRY-WORKFLOW:${t}`);if(n){let r=Date.now()-n.start,i=1800*1e3;if(r<i)return n;this.deleteWorkflow(n)}}saveWorkflow(t){Le.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){Le.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let n=this.getWorkflow(t.name);n||(this.startWorkflow(t.name),n=this.getWorkflow(t.name)),n.steps.push(t.step),n.duration=(Date.now()-n.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(n):this.saveWorkflow(n);let r=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:n.duration,workflowId:n.workflowId});this.logEvent(r)}preProcess(t={},n={}){let r={};return this.user&&(r={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),r)).reduce(oo(n.omitComplexData,this.logger),{})}disableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!0,(n=r.disable)===null||n===void 0||n.call(r))}enableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!1,(n=r.enable)===null||n===void 0||n.call(r))}};function oo(e,t){return function(n,[r,i]){return ao(i)?n[r]=i:e||(t.warn(`You are trying to log a non-primitive value, ${r}:${JSON.stringify(i)}. This will get logged as [object Object]`),n[r]=i),n}}function ao(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function ln(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Mt=class{constructor(t){var n;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},typeof window<"u"&&!(!((n=t?.measurementIds)===null||n===void 0)&&n.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return ro(this._getScripts())}async init(){if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Zi(t))),this.injectConfig()}logPageView(t,n={}){let r=this.buildCustomParams(n),i=Object.assign({page_title:t||window.location.pathname},r);return window.gtag("event","page_view",i),!0}logEvent(t){let{action:n}=t,r=ln(t,["action"]),i=n||"other",o=this.buildCustomParams(r);return window.gtag("event",i,o),!0}disable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(n=>{window.gtag("config",n,t)})}buildCustomParams(t){let n,{category:r,label:i}=t;return n=this.verifyCustomDimensionAndMetrics(t),r&&(n=Object.assign(Object.assign({},n),{event_category:r})),i&&(n=Object.assign(Object.assign({},n),{event_label:i})),n}verifyCustomDimensionAndMetrics(t){let n=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),r=Object.values(n);return Object.keys(t).filter(i=>r.includes(i)).reduce((i,o)=>Object.assign(i,{[o]:t[o]}),{})}createDimensionsAndMetricsCustomMap(t={},n={}){let r=this.createMetricCustomMap(n),i=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},r),i)}createMetricCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`metric${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}createDimensionCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`dimension${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}},Tn="TELEMETRY_COGNITO_CREDENTIALS";function so(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=Le.get(Tn);if(r&&Date.now()/1e3<r.Expiration)return Promise.resolve(r);let i={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:e})};return fetch(n,i).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(o=>{let{IdentityId:a}=o,s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:a})};return fetch(n,s)}).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(({Credentials:o})=>(Le.set(Tn,o),o))}function Gr({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:co(t,r),value:e[r]}:{key:r,value:uo(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function uo(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function co(e,t){return`dimension${e[t]}`}var lo=["size","duration","position","number","count"];function Jr(e,t={}){return Object.keys(e).filter(n=>t[n]||lo.includes(n)).map(n=>t[n]?{key:fo(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function fo(e,t){return`metric${e[t]}`}function po({event:e={},dimensionLookup:t={},metricLookup:n={}}){var r,i;let{pathname:o,eventType:a="other"}=e,s=Jr(e,n),u=Gr({telemetryData:Object.assign({eventType:a},e),dimensionLookup:t,excludeKeys:["workflow","pathname",...Object.keys(s),...Object.keys(n)]}),c=Object.assign(Object.assign({name:a},u),s);return typeof document<"u"&&document.referrer&&(c.referrer=document.referrer),typeof window<"u"&&!c.hostname&&(c.hostname=(r=window.location)===null||r===void 0?void 0:r.hostname),c.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:o,c}function go({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=Jr(n,i),a=Gr({telemetryData:n,dimensionLookup:r,excludeKeys:["workflow",...Object.keys(o),...Object.keys(i)]}),{referrer:s,title:u}=document||{},{hostname:c,pathname:d}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:s,hostname:c,path:e||d,pageUrl:e||d,pageName:u,previousPageUrl:t.pageUrl,previousPageName:t.pageName},a),o)}function Nn(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var ho="function",mo="string",ie="undefined",yo="boolean",Dt="object",vo="array",bo="number",wo="symbol",xo="null",Oo=function(){},_n="__",So="form",Ao="input",Io="button",ko="select",rt=typeof process!==ie?process:{};rt.env&&rt.env.NODE_ENV;var Ke=typeof document!==ie;rt.versions!=null&&rt.versions.node!=null;typeof Deno!==ie&&Deno.core;Ke&&window.name==="nodejs"||typeof navigator!==ie&&typeof navigator.userAgent!==ie&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Xr(e,t){return t.charAt(0)[e]()+t.slice(1)}var jo=Xr.bind(null,"toUpperCase"),Eo=Xr.bind(null,"toLowerCase");function Po(e){return Br(e)?jo(xo):typeof e===Dt?_o(e):Object.prototype.toString.call(e).slice(8,-1)}function it(e,t){t===void 0&&(t=!0);var n=Po(e);return t?Eo(n):n}function Fe(e,t){return typeof t===e}var Ut=Fe.bind(null,ho),Lt=Fe.bind(null,mo);Fe.bind(null,ie);Fe.bind(null,yo);Fe.bind(null,wo);function Br(e){return e===null}function To(e){return it(e)===bo&&!isNaN(e)}function No(e){return it(e)===vo}function _o(e){return Ut(e.constructor)?e.constructor.name:null}function Co(e){return e instanceof Error||Lt(e.message)&&e.constructor&&To(e.constructor.stackTraceLimit)}function Qr(e,t){if(typeof t!="object"||Br(t))return!1;if(t instanceof e)return!0;var n=it(new e(""));if(Co(t))for(;t;){if(it(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}Qr.bind(null,TypeError);Qr.bind(null,SyntaxError);function ct(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?Mo(e,t):n}function Mo(e,t){return t===void 0&&(t=""),e&&e.nodeName===t.toUpperCase()}function lt(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}lt(ct,So);lt(ct,Io);lt(ct,Ao);lt(ct,ko);function Do(e){return e?No(e)?e:[e]:[]}function Cn(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Uo(){if(Ke){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function Lo(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Ro(e){return(function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=Cn(n[1]),a=Cn(n[2]);if(o)if(o.substring(o.length-2)==="[]"){var s=r[o=o.substring(0,o.length-2)]||(r[o]=[]);r[o]=Array.isArray(s)?s:[],r[o].push(a)}else r[o]=a===""||a}for(var u in r){var c=u.split("[");c.length>1&&(zo(r,c.map(function(d){return d.replace(/[?[\]\\ ]/g,"")}),r[u]),delete r[u])}return r})((function(t){return Ke&&window.location.search.substring(1)})())}function zo(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if(o==="__proto__"||o==="constructor")break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function Ae(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+=r=="-"||r=="4"?r:(r=="x"?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var we="global",Te=_n+we+_n,Ne=typeof self===Dt&&self.self===self&&self||typeof global===Dt&&global[we]===global&&global||void 0;function de(e){return Ne[Te][e]}function le(e,t){return Ne[Te][e]=t}function Ie(e){delete Ne[Te][e]}function pe(e,t,n){var r;try{if(ft(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Ne[Te]||(Ne[Te]={});var Xe={};function ft(e){if(typeof Xe[e]!==ie)return Xe[e];try{var t=window[e];t.setItem(ie,ie),t.removeItem(ie)}catch{return Xe[e]=!1}return Xe[e]=!0}var Mn,Ve="__",Rt=typeof process<"u"?process:{};(Mn=Rt.env)!=null&&Mn.NODE_ENV;var fe=typeof window<"u";Rt.versions!=null&&Rt.versions.node!=null;typeof Deno<"u"&&Deno.core;fe&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function dt(e,t){return typeof t===e}var ae=dt.bind(null,"function"),et=dt.bind(null,"string");dt.bind(null,"undefined");var $o=dt.bind(null,"boolean");function Wo(e){return Object.prototype.toString.call(e)==="[object Array]"}function Vo(e){return e&&(typeof e=="object"||e!==null)}function ne(e){if(!Vo(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ho(e){if(Array.isArray(e))return zt(e)}function qo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yr(e,t){if(e){if(typeof e=="string")return zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zt(e,t)}}function Ko(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
+
v1.1.0 */
|
|
4
|
+
import{a as Pn}from"./6ELJSTOG.js";import"./2XTYWT3B.js";import"./A7SGX5YT.js";import{b as En}from"./PZWKB64K.js";import{E as jn,h as In,o as kn}from"./KCYMVFRG.js";import"./SMTMWRRV.js";function Xi(e={}){let{disabled:t,portal:n}=e;return t||n?.eueiEnabled===!1?!0:!(!n||Bi(n)||Qi(n)||Yi(n))}function Bi(e){return e.eueiEnabled&&e.user&&e.user.orgId===e.id}function Qi(e){return e.user&&!e.user.orgId&&e.ipCntryCode==="US"}function Yi(e){return!e.user&&e.ipCntryCode==="US"}var Le={storage:{},memory:!0,get(e){let t;try{t=window.localStorage&&window.localStorage.getItem(e)||this.storage[e]}catch{t=this.storage[e]}if(t)try{return JSON.parse(t)}catch{return}else return},set(e,t){let n=JSON.stringify(t);try{window.localStorage.setItem(e,n)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[e]=t}},delete(e){try{window.localStorage.removeItem(e)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[e]}}},Fr="esri-telemetry";function Zi(e){return new Promise((t,n)=>{e.onload=t,e.onerror=n,(!to(e)||e.body)&&t()})}function eo(e){let{id:t,dataAttribute:n}=e;return!!document.getElementById(t)||!!document.querySelector(`[data-${Fr}="${n}"]`)}function to(e){let{body:t,src:n,id:r,dataAttribute:i,section:o="body",type:a="text/javascript",async:s=!1,defer:u=!1,onload:c,onerror:d}=e;if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");if(eo(e)){console.log(`script (${r||i}) is already present, skipping`);return}let p=no({id:r,dataAttribute:i,type:a,async:s,defer:u,body:t,src:n,onload:c,onerror:d});return o==="body"?document.body.appendChild(p):document.head.appendChild(p)}var nt=class extends Error{};function no({id:e,dataAttribute:t,type:n,async:r,defer:i,body:o,src:a,onload:s,onerror:u}){let c=document.createElement("script");return e&&(c.id=e),t&&c.setAttribute(`data-${Fr}`,t),a&&(c.src=a),o&&(c.innerText=o),c.type=n,c.async=r,c.defer=i,s&&(c.onload=s),u&&(c.onerror=u),c}function ro(e){return e.map(t=>{let n=[];return["src","id","dataAttribute","type"].forEach(r=>{let i=r;r==="dataAttribute"&&(i="data-esri-telemetry"),t[r]&&n.push(`${i}="${t[r]}"`)}),["async","defer"].forEach(r=>{t[r]&&n.push(`${r}`)}),`<script ${n.join(" ")}>${t.body?t.body:""}<\/script>`}).join("")}var io=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],Ct=class{constructor(t){var n,r,i;this.trackers=[],this.options=t,this.debug=t.debug,this.suppressDisabledWarnings=t.suppressDisabledWarnings,this.disabled=Xi(t),this.logger=t.logger||console,this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let o=((n=t.portal)===null||n===void 0?void 0:n.user)||t.user;o&&this.setUser(o,(i=(r=t.portal)===null||r===void 0?void 0:r.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}initializeTrackers(){this.options.plugins&&this.trackers.push(...this.options.plugins),this.trackers.length||this.logger.error(new Error("No trackers configured"))}getScriptTags(){return this.trackers.map(t=>t.getScriptTags&&t.getScriptTags()).join("")}async init(){let t=this.trackers.map(n=>n.init());await Promise.all(t)}setUser(t={},n="Public"){t=typeof t=="string"?{username:t}:t,this.user=t,this.user.accountType=n;let r;if(t.email&&t.email.split){let i=t.email.split("@")[1];r=io.filter(o=>i===o).length>0}(r||["In House","Demo and Marketing"].indexOf(n)>-1)&&(this.user.internalUser=!0)}logPageView(t,n={},r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:s,hasError:u})=>!s&&!u);if(!i.length)return this.logger.warn("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let o=this.preProcess(n,r);this.debug&&this.logger.info("Tracking page view",JSON.stringify(o));let a=i.map(s=>s.logPageView(t,o));return Promise.all(a).then(),!0}logEvent(t,n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let r=this.trackers.filter(({disabled:a,hasError:s})=>!a&&!s);if(!r.length)return this.logger.warn("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(t,n);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let o=r.map(a=>a.logEvent(i));return Promise.all(o).then(),!0}logError(t={}){t=Object.assign({eventType:"error"},t),this.logEvent(t)}startWorkflow(t,n={}){let r={name:t,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(r);let i=Object.assign({name:t,step:"start"},n);return this.logWorkflow(i),r}stepWorkflow(t,n,r={}){let i=typeof r=="string"?r:r.details,o=Object.assign({name:t,step:n,details:i},r);this.logWorkflow(o)}endWorkflow(t,n={}){let r=Object.assign({name:t,step:"finish"},n);this.logWorkflow(r)}cancelWorkflow(t,n={}){let r=Object.assign({name:t,step:"cancel"},n);this.logWorkflow(r)}getWorkflow(t){let n=Le.get(`TELEMETRY-WORKFLOW:${t}`);if(n){let r=Date.now()-n.start,i=1800*1e3;if(r<i)return n;this.deleteWorkflow(n)}}saveWorkflow(t){Le.set(`TELEMETRY-WORKFLOW:${t.name}`,t)}deleteWorkflow(t){Le.delete(`TELEMETRY-WORKFLOW:${t.name}`)}logWorkflow(t={}){t=this.preProcess(t);let n=this.getWorkflow(t.name);n||(this.startWorkflow(t.name),n=this.getWorkflow(t.name)),n.steps.push(t.step),n.duration=(Date.now()-n.start)/1e3,["cancel","finish"].indexOf(t.step)>-1?this.deleteWorkflow(n):this.saveWorkflow(n);let r=Object.assign(t,{eventType:"workflow",category:t.name,action:t.step,label:t.details,duration:n.duration,workflowId:n.workflowId});this.logEvent(r)}preProcess(t={},n={}){let r={};return this.user&&(r={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},t),r)).reduce(oo(n.omitComplexData,this.logger),{})}disableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!0,(n=r.disable)===null||n===void 0||n.call(r))}enableTracker(t){var n;let r=this.trackers.find(({name:i})=>i===t);r&&!r.hasError&&(r.disabled=!1,(n=r.enable)===null||n===void 0||n.call(r))}};function oo(e,t){return function(n,[r,i]){return ao(i)?n[r]=i:e||(t.warn(`You are trying to log a non-primitive value, ${r}:${JSON.stringify(i)}. This will get logged as [object Object]`),n[r]=i),n}}function ao(e){return["string","number","boolean","undefined"].includes(typeof e)||e&&typeof e.valueOf()=="string"}function ln(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Mt=class{constructor(t){var n;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},typeof window<"u"&&!(!((n=t?.measurementIds)===null||n===void 0)&&n.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,t)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return ro(this._getScripts())}async init(){if(typeof window>"u")throw new nt("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(t=>Zi(t))),this.injectConfig()}logPageView(t,n={}){let r=this.buildCustomParams(n),i=Object.assign({page_title:t||window.location.pathname},r);return window.gtag("event","page_view",i),!0}logEvent(t){let{action:n}=t,r=ln(t,["action"]),i=n||"other",o=this.buildCustomParams(r);return window.gtag("event",i,o),!0}disable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(t=>{window[`ga-disable-${t}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let t={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(n=>{window.gtag("config",n,t)})}buildCustomParams(t){let n,{category:r,label:i}=t;return n=this.verifyCustomDimensionAndMetrics(t),r&&(n=Object.assign(Object.assign({},n),{event_category:r})),i&&(n=Object.assign(Object.assign({},n),{event_label:i})),n}verifyCustomDimensionAndMetrics(t){let n=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),r=Object.values(n);return Object.keys(t).filter(i=>r.includes(i)).reduce((i,o)=>Object.assign(i,{[o]:t[o]}),{})}createDimensionsAndMetricsCustomMap(t={},n={}){let r=this.createMetricCustomMap(n),i=this.createDimensionCustomMap(t);return Object.assign(Object.assign({},r),i)}createMetricCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`metric${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}createDimensionCustomMap(t={}){return Object.keys(t).map(function(n){return{key:`dimension${t[n]}`,value:n}}).filter(n=>n).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}},Tn="TELEMETRY_COGNITO_CREDENTIALS";function so(e,t={}){let n=`https://cognito-identity${t.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,r=Le.get(Tn);if(r&&Date.now()/1e3<r.Expiration)return Promise.resolve(r);let i={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:e})};return fetch(n,i).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(o=>{let{IdentityId:a}=o,s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:a})};return fetch(n,s)}).then(o=>{if(!o.ok)throw new Error(o.statusText);return o.json()}).then(({Credentials:o})=>(Le.set(Tn,o),o))}function Gr({telemetryData:e,dimensionLookup:t={},excludeKeys:n=[]}){return Object.keys(e).filter(r=>!n.includes(r)).map(r=>t[r]?{key:co(t,r),value:e[r]}:{key:r,value:uo(e,r)}).reduce((r,{key:i,value:o})=>(r[i]=o,r),{})}function uo(e,t){return t==="json"?e[t]?JSON.stringify(e[t]):"null":e[t]===void 0?"null":e[t].toString()}function co(e,t){return`dimension${e[t]}`}var lo=["size","duration","position","number","count"];function Jr(e,t={}){return Object.keys(e).filter(n=>t[n]||lo.includes(n)).map(n=>t[n]?{key:fo(t,n),value:e[n]}:{key:n,value:e[n]}).reduce((n,{key:r,value:i})=>(n[r]=i,n),{})}function fo(e,t){return`metric${e[t]}`}function po({event:e={},dimensionLookup:t={},metricLookup:n={}}){var r,i;let{pathname:o,eventType:a="other"}=e,s=Jr(e,n),u=Gr({telemetryData:Object.assign({eventType:a},e),dimensionLookup:t,excludeKeys:["workflow","pathname",...Object.keys(s),...Object.keys(n)]}),c=Object.assign(Object.assign({name:a},u),s);return typeof document<"u"&&document.referrer&&(c.referrer=document.referrer),typeof window<"u"&&!c.hostname&&(c.hostname=(r=window.location)===null||r===void 0?void 0:r.hostname),c.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:o,c}function go({page:e,previousPage:t={},options:n={},dimensionLookup:r={},metricLookup:i={}}){let o=Jr(n,i),a=Gr({telemetryData:n,dimensionLookup:r,excludeKeys:["workflow",...Object.keys(o),...Object.keys(i)]}),{referrer:s,title:u}=document||{},{hostname:c,pathname:d}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:s,hostname:c,path:e||d,pageUrl:e||d,pageName:u,previousPageUrl:t.pageUrl,previousPageName:t.pageName},a),o)}function Nn(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var ho="function",mo="string",ie="undefined",yo="boolean",Dt="object",vo="array",bo="number",wo="symbol",xo="null",Oo=function(){},_n="__",So="form",Ao="input",Io="button",ko="select",rt=typeof process!==ie?process:{};rt.env&&rt.env.NODE_ENV;var Ke=typeof document!==ie;rt.versions!=null&&rt.versions.node!=null;typeof Deno!==ie&&Deno.core;Ke&&window.name==="nodejs"||typeof navigator!==ie&&typeof navigator.userAgent!==ie&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function Xr(e,t){return t.charAt(0)[e]()+t.slice(1)}var jo=Xr.bind(null,"toUpperCase"),Eo=Xr.bind(null,"toLowerCase");function Po(e){return Br(e)?jo(xo):typeof e===Dt?_o(e):Object.prototype.toString.call(e).slice(8,-1)}function it(e,t){t===void 0&&(t=!0);var n=Po(e);return t?Eo(n):n}function Fe(e,t){return typeof t===e}var Ut=Fe.bind(null,ho),Lt=Fe.bind(null,mo);Fe.bind(null,ie);Fe.bind(null,yo);Fe.bind(null,wo);function Br(e){return e===null}function To(e){return it(e)===bo&&!isNaN(e)}function No(e){return it(e)===vo}function _o(e){return Ut(e.constructor)?e.constructor.name:null}function Co(e){return e instanceof Error||Lt(e.message)&&e.constructor&&To(e.constructor.stackTraceLimit)}function Qr(e,t){if(typeof t!="object"||Br(t))return!1;if(t instanceof e)return!0;var n=it(new e(""));if(Co(t))for(;t;){if(it(t)===n)return!0;t=Object.getPrototypeOf(t)}return!1}Qr.bind(null,TypeError);Qr.bind(null,SyntaxError);function ct(e,t){var n=e instanceof Element||e instanceof HTMLDocument;return n&&t?Mo(e,t):n}function Mo(e,t){return t===void 0&&(t=""),e&&e.nodeName===t.toUpperCase()}function lt(e){var t=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(t))}}lt(ct,So);lt(ct,Io);lt(ct,Ao);lt(ct,ko);function Do(e){return e?No(e)?e:[e]:[]}function Cn(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Uo(){if(Ke){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function Lo(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Ro(e){return(function(t){for(var n,r=Object.create(null),i=/([^&=]+)=?([^&]*)/g;n=i.exec(t);){var o=Cn(n[1]),a=Cn(n[2]);if(o)if(o.substring(o.length-2)==="[]"){var s=r[o=o.substring(0,o.length-2)]||(r[o]=[]);r[o]=Array.isArray(s)?s:[],r[o].push(a)}else r[o]=a===""||a}for(var u in r){var c=u.split("[");c.length>1&&(zo(r,c.map(function(d){return d.replace(/[?[\]\\ ]/g,"")}),r[u]),delete r[u])}return r})((function(t){return Ke&&window.location.search.substring(1)})())}function zo(e,t,n){for(var r=t.length-1,i=0;i<r;++i){var o=t[i];if(o==="__proto__"||o==="constructor")break;o in e||(e[o]={}),e=e[o]}e[t[r]]=n}function Ae(){for(var e="",t=0,n=4294967295*Math.random()|0;t++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],i=15&n;e+=r=="-"||r=="4"?r:(r=="x"?i:3&i|8).toString(16),n=t%8==0?4294967295*Math.random()|0:n>>4}return e}var we="global",Te=_n+we+_n,Ne=typeof self===Dt&&self.self===self&&self||typeof global===Dt&&global[we]===global&&global||void 0;function de(e){return Ne[Te][e]}function le(e,t){return Ne[Te][e]=t}function Ie(e){delete Ne[Te][e]}function pe(e,t,n){var r;try{if(ft(e)){var i=window[e];r=i[t].bind(i)}}catch{}return r||n}Ne[Te]||(Ne[Te]={});var Xe={};function ft(e){if(typeof Xe[e]!==ie)return Xe[e];try{var t=window[e];t.setItem(ie,ie),t.removeItem(ie)}catch{return Xe[e]=!1}return Xe[e]=!0}var Mn,Ve="__",Rt=typeof process<"u"?process:{};(Mn=Rt.env)!=null&&Mn.NODE_ENV;var fe=typeof window<"u";Rt.versions!=null&&Rt.versions.node!=null;typeof Deno<"u"&&Deno.core;fe&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function dt(e,t){return typeof t===e}var ae=dt.bind(null,"function"),et=dt.bind(null,"string");dt.bind(null,"undefined");var $o=dt.bind(null,"boolean");function Wo(e){return Object.prototype.toString.call(e)==="[object Array]"}function Vo(e){return e&&(typeof e=="object"||e!==null)}function ne(e){if(!Vo(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ho(e){if(Array.isArray(e))return zt(e)}function qo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yr(e,t){if(e){if(typeof e=="string")return zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zt(e,t)}}function Ko(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
5
5
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(e){return Ho(e)||qo(e)||Yr(e)||Ko()}function Q(e){"@babel/helpers - typeof";return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(e)}function Dn(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){n(c);return}s.done?t(u):Promise.resolve(u).then(r,i)}function se(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(u){Dn(o,r,i,a,s,"next",u)}function s(u){Dn(o,r,i,a,s,"throw",u)}a(void 0)})}}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Un(Object(n),!0).forEach(function(r){he(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Zr={exports:{}};(function(e){var t=(function(n){var r=Object.prototype,i=r.hasOwnProperty,o,a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(h,b,l){return Object.defineProperty(h,b,{value:l,enumerable:!0,configurable:!0,writable:!0}),h[b]}try{d({},"")}catch{d=function(h,b,l){return h[b]=l}}function p(h,b,l,m){var O=b&&b.prototype instanceof w?b:w,k=Object.create(O.prototype),M=new q(m||[]);return k._invoke=C(h,l,M),k}n.wrap=p;function g(h,b,l){try{return{type:"normal",arg:h.call(b,l)}}catch(m){return{type:"throw",arg:m}}}var x="suspendedStart",y="suspendedYield",A="executing",v="completed",f={};function w(){}function j(){}function S(){}var E={};d(E,s,function(){return this});var P=Object.getPrototypeOf,T=P&&P(P(G([])));T&&T!==r&&i.call(T,s)&&(E=T);var L=S.prototype=w.prototype=Object.create(E);j.prototype=S,d(L,"constructor",S),d(S,"constructor",j),j.displayName=d(S,c,"GeneratorFunction");function R(h){["next","throw","return"].forEach(function(b){d(h,b,function(l){return this._invoke(b,l)})})}n.isGeneratorFunction=function(h){var b=typeof h=="function"&&h.constructor;return b?b===j||(b.displayName||b.name)==="GeneratorFunction":!1},n.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,S):(h.__proto__=S,d(h,c,"GeneratorFunction")),h.prototype=Object.create(L),h},n.awrap=function(h){return{__await:h}};function _(h,b){function l(k,M,U,W){var K=g(h[k],h,M);if(K.type==="throw")W(K.arg);else{var H=K.arg,V=H.value;return V&&typeof V=="object"&&i.call(V,"__await")?b.resolve(V.__await).then(function(X){l("next",X,U,W)},function(X){l("throw",X,U,W)}):b.resolve(V).then(function(X){H.value=X,U(H)},function(X){return l("throw",X,U,W)})}}var m;function O(k,M){function U(){return new b(function(W,K){l(k,M,W,K)})}return m=m?m.then(U,U):U()}this._invoke=O}R(_.prototype),d(_.prototype,u,function(){return this}),n.AsyncIterator=_,n.async=function(h,b,l,m,O){O===void 0&&(O=Promise);var k=new _(p(h,b,l,m),O);return n.isGeneratorFunction(b)?k:k.next().then(function(M){return M.done?M.value:k.next()})};function C(h,b,l){var m=x;return function(O,k){if(m===A)throw new Error("Generator is already running");if(m===v){if(O==="throw")throw k;return z()}for(l.method=O,l.arg=k;;){var M=l.delegate;if(M){var U=F(M,l);if(U){if(U===f)continue;return U}}if(l.method==="next")l.sent=l._sent=l.arg;else if(l.method==="throw"){if(m===x)throw m=v,l.arg;l.dispatchException(l.arg)}else l.method==="return"&&l.abrupt("return",l.arg);m=A;var W=g(h,b,l);if(W.type==="normal"){if(m=l.done?v:y,W.arg===f)continue;return{value:W.arg,done:l.done}}else W.type==="throw"&&(m=v,l.method="throw",l.arg=W.arg)}}}function F(h,b){var l=h.iterator[b.method];if(l===o){if(b.delegate=null,b.method==="throw"){if(h.iterator.return&&(b.method="return",b.arg=o,F(h,b),b.method==="throw"))return f;b.method="throw",b.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var m=g(l,h.iterator,b.arg);if(m.type==="throw")return b.method="throw",b.arg=m.arg,b.delegate=null,f;var O=m.arg;if(!O)return b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,f;if(O.done)b[h.resultName]=O.value,b.next=h.nextLoc,b.method!=="return"&&(b.method="next",b.arg=o);else return O;return b.delegate=null,f}R(L),d(L,c,"Generator"),d(L,s,function(){return this}),d(L,"toString",function(){return"[object Generator]"});function $(h){var b={tryLoc:h[0]};1 in h&&(b.catchLoc=h[1]),2 in h&&(b.finallyLoc=h[2],b.afterLoc=h[3]),this.tryEntries.push(b)}function D(h){var b=h.completion||{};b.type="normal",delete b.arg,h.completion=b}function q(h){this.tryEntries=[{tryLoc:"root"}],h.forEach($,this),this.reset(!0)}n.keys=function(h){var b=[];for(var l in h)b.push(l);return b.reverse(),function m(){for(;b.length;){var O=b.pop();if(O in h)return m.value=O,m.done=!1,m}return m.done=!0,m}};function G(h){if(h){var b=h[s];if(b)return b.call(h);if(typeof h.next=="function")return h;if(!isNaN(h.length)){var l=-1,m=function O(){for(;++l<h.length;)if(i.call(h,l))return O.value=h[l],O.done=!1,O;return O.value=o,O.done=!0,O};return m.next=m}}return{next:z}}n.values=G;function z(){return{value:o,done:!0}}return q.prototype={constructor:q,reset:function(h){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(D),!h)for(var b in this)b.charAt(0)==="t"&&i.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=o)},stop:function(){this.done=!0;var h=this.tryEntries[0],b=h.completion;if(b.type==="throw")throw b.arg;return this.rval},dispatchException:function(h){if(this.done)throw h;var b=this;function l(W,K){return k.type="throw",k.arg=h,b.next=W,K&&(b.method="next",b.arg=o),!!K}for(var m=this.tryEntries.length-1;m>=0;--m){var O=this.tryEntries[m],k=O.completion;if(O.tryLoc==="root")return l("end");if(O.tryLoc<=this.prev){var M=i.call(O,"catchLoc"),U=i.call(O,"finallyLoc");if(M&&U){if(this.prev<O.catchLoc)return l(O.catchLoc,!0);if(this.prev<O.finallyLoc)return l(O.finallyLoc)}else if(M){if(this.prev<O.catchLoc)return l(O.catchLoc,!0)}else if(U){if(this.prev<O.finallyLoc)return l(O.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(h,b){for(var l=this.tryEntries.length-1;l>=0;--l){var m=this.tryEntries[l];if(m.tryLoc<=this.prev&&i.call(m,"finallyLoc")&&this.prev<m.finallyLoc){var O=m;break}}O&&(h==="break"||h==="continue")&&O.tryLoc<=b&&b<=O.finallyLoc&&(O=null);var k=O?O.completion:{};return k.type=h,k.arg=b,O?(this.method="next",this.next=O.finallyLoc,f):this.complete(k)},complete:function(h,b){if(h.type==="throw")throw h.arg;return h.type==="break"||h.type==="continue"?this.next=h.arg:h.type==="return"?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):h.type==="normal"&&b&&(this.next=b),f},finish:function(h){for(var b=this.tryEntries.length-1;b>=0;--b){var l=this.tryEntries[b];if(l.finallyLoc===h)return this.complete(l.completion,l.afterLoc),D(l),f}},catch:function(h){for(var b=this.tryEntries.length-1;b>=0;--b){var l=this.tryEntries[b];if(l.tryLoc===h){var m=l.completion;if(m.type==="throw"){var O=m.arg;D(l)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(h,b,l){return this.delegate={iterator:G(h),resultName:b,nextLoc:l},this.method==="next"&&(this.arg=o),f}},n})(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(Zr);var B=Zr.exports,me="function",ue="undefined",ze="reducer",ei="@@redux/",$t=ei+"INIT",Fo=ei+Math.random().toString(36),Ln=(function(){return(typeof Symbol>"u"?"undefined":Q(Symbol))===me&&Symbol.observable||"@@observable"})(),Be=" != "+me;function ti(e,t,n){if(Q(t)===me&&Q(n)===ue&&(n=t,t=void 0),Q(n)!==ue){if(Q(n)!==me)throw new Error("enhancer"+Be);return n(ti)(e,t)}if(Q(e)!==me)throw new Error(ze+Be);var r=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){return i}function d(y){if(Q(y)!==me)throw new Error("Listener"+Be);var A=!0;return u(),a.push(y),function(){if(A){A=!1,u();var v=a.indexOf(y);a.splice(v,1)}}}function p(y){if(!ne(y))throw new Error("Act != obj");if(Q(y.type)===ue)throw new Error("ActType "+ue);if(s)throw new Error("Dispatch in "+ze);try{s=!0,i=r(i,y)}finally{s=!1}for(var A=o=a,v=0;v<A.length;v++){var f=A[v];f()}return y}function g(y){if(Q(y)!==me)throw new Error("next "+ze+Be);r=y,p({type:$t})}function x(){var y=d;return he({subscribe:function(A){if(Q(A)!=="object")throw new TypeError("Observer != obj");function v(){A.next&&A.next(c())}v();var f=y(v);return{unsubscribe:f}}},Ln,function(){return this})}return p({type:$t}),he({dispatch:p,subscribe:d,getState:c,replaceReducer:g},Ln,x)}function Go(e,t){var n=t&&t.type,r=n&&n.toString()||"?";return"action "+r+ze+" "+e+" returns "+ue}function Jo(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:$t});if(Q(r)===ue||Q(n(void 0,{type:Fo}))===ue)throw new Error(ze+" "+t+" "+ue)})}function Xo(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];Q(e[i])===me&&(n[i]=e[i])}var o=Object.keys(n),a;try{Jo(n)}catch(s){a=s}return function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;if(a)throw a;for(var c=!1,d={},p=0;p<o.length;p++){var g=o[p],x=n[g],y=s[g],A=x(y,u);if(Q(A)===ue){var v=Go(g,u);throw new Error(v)}d[g]=A,c=c||A!==y}return c?d:s}}function _e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function Bo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(i,o,a){var s=r(i,o,a),u=s.dispatch,c=[],d={getState:s.getState,dispatch:function(p){return u(p)}};return c=t.map(function(p){return p(d)}),u=_e.apply(void 0,Re(c))(s.dispatch),I(I({},s),{},{dispatch:u})}}}var ye=Ve+"anon_id",xe=Ve+"user_id",Ee=Ve+"user_traits",Wt="analytics",ge="userId",ke="anonymousId",Qo="https://lytics.dev/errors/",ot=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],Vt=["name","EVENTS","config","loaded"],Yo={registerPluginType:function(e){return"registerPlugin:".concat(e)},pluginReadyType:function(e){return"ready:".concat(e)}},Zo=ot.reduce(function(e,t){return e[t]=t,e},Yo),N=Zo;function ea(e){return ot.includes(e)}var Rn=/^utm_/,zn=/^an_prop_/,$n=/^an_trait_/;function ta(e){var t=e.storage.setItem;return function(n){return function(r){return function(i){if(i.type===N.bootstrap){var o=i.params,a=i.user,s=i.persistedUser,u=i.initialUser,c=s.userId===a.userId;s.anonymousId!==a.anonymousId&&t(ye,a.anonymousId),c||t(xe,a.userId),u.traits&&t(Ee,I(I({},c&&s.traits?s.traits:{}),u.traits));var d=Object.keys(i.params);if(d.length){var p=o.an_uid,g=o.an_event,x=d.reduce(function(y,A){if(A.match(Rn)||A.match(/^(d|g)clid/)){var v=A.replace(Rn,""),f=v==="campaign"?"name":v;y.campaign[f]=o[A]}return A.match(zn)&&(y.props[A.replace(zn,"")]=o[A]),A.match($n)&&(y.traits[A.replace($n,"")]=o[A]),y},{campaign:{},props:{},traits:{}});n.dispatch(I(I({type:N.params,raw:o},x),p?{userId:p}:{})),p&&setTimeout(function(){return e.identify(p,x.traits)},0),g&&setTimeout(function(){return e.track(g,x.props)},0),Object.keys(x.campaign).length&&n.dispatch({type:N.campaign,campaign:x.campaign})}}return r(i)}}}}function na(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n.type===N.setItemEnd){if(n.key===ye)return I(I({},t),{anonymousId:n.value});if(n.key===xe)return I(I({},t),{userId:n.value})}switch(n.type){case N.identify:return Object.assign({},t,{userId:n.userId,traits:I(I({},t.traits),n.traits)});case N.reset:return[xe,ye,Ee].forEach(function(r){e.removeItem(r)}),Object.assign({},t,{userId:null,anonymousId:null,traits:{}});default:return t}}}function ni(e){return{userId:e.getItem(xe),anonymousId:e.getItem(ye),traits:e.getItem(Ee)}}var fn=function(e){return Ve+"TEMP"+Ve+e};function ra(e){return function(t,n,r){var i=n.getState("user")[t];if(i)return i;if(r&&ne(r)&&r[t])return r[t];var o=ni(e)[t];return o||de(fn(t))||null}}function ia(e){var t=e.storage,n=t.setItem,r=t.removeItem,i=t.getItem;return function(o){return function(a){return function(s){var u=s.userId,c=s.traits,d=s.options;if(s.type===N.reset&&([xe,Ee,ye].forEach(function(x){r(x)}),[ge,ke,"traits"].forEach(function(x){Ie(fn(x))})),s.type===N.identify){i(ye)||n(ye,Ae());var p=i(xe),g=i(Ee)||{};p&&p!==u&&o.dispatch({type:N.userIdChanged,old:{userId:p,traits:g},new:{userId:u,traits:c},options:d}),u&&n(xe,u),c&&n(Ee,I(I({},g),c))}return a(s)}}}}var Ue={};function ri(e,t){Ue[e]&&ae(Ue[e])&&(Ue[e](t),delete Ue[e])}function ii(e,t,n){return new Promise(function(r,i){return t()?r(e):n<1?i(I(I({},e),{},{queue:!0})):oa(10).then(function(o){return ii(e,t,n-10).then(r,i)})})}function oa(e){return new Promise(function(t){return setTimeout(t,e)})}function oi(e,t,n){var r=t(),i=e.getState(),o=i.plugins,a=i.context,s=i.queue,u=i.user,c=!a.offline;if(c&&s&&s.actions&&s.actions.length){var d=s.actions.reduce(function(g,x,y){var A=o[x.plugin].loaded;return A?(g.process.push(x),g.processIndex.push(y)):(g.requeue.push(x),g.requeueIndex.push(y)),g},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(d.processIndex&&d.processIndex.length){d.processIndex.forEach(function(g){var x=s.actions[g],y=x.plugin,A=x.payload.type,v=r[y][A];if(v&&ae(v)){var f=sa(x.payload,u);v({payload:f,config:o[y].config,instance:n});var w="".concat(A,":").concat(y);e.dispatch(I(I({},f),{},{type:w,_:{called:w,from:"queueDrain"}}))}});var p=s.actions.filter(function(g,x){return!~d.processIndex.indexOf(x)});s.actions=p}}}function aa(e,t,n){return setInterval(function(){return oi(e,t,n)},3e3)}function sa(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return[ge,ke].reduce(function(n,r){return e.hasOwnProperty(r)&&t[r]&&t[r]!==e[r]&&(n[r]=t[r]),n},e)}function ua(e){if(Array.isArray(e))return e}function ca(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function la(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
6
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fa(e,t){return ua(e)||ca(e,t)||Yr(e,t)||la()}function da(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(e).filter(function(r){var i=n.plugins||{};return $o(i[r])?i[r]:!(i.all===!1||t[r]&&t[r].enabled===!1)}).map(function(r){return e[r]})}var Ce=/Start$/,Wn=/^bootstrap/,Vn=/^ready/;function pa(e,t,n,r,i){return Ht.apply(this,arguments)}function Ht(){return Ht=se(B.mark(function e(t,n,r,i,o){var a,s,u,c,d,p,g,x,y,A,v;return B.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(a=ae(n)?n():n,s=t.type,u=s.replace(Ce,""),!(t._&&t._.called)){f.next=5;break}return f.abrupt("return",t);case 5:return c=r.getState(),d=da(a,c.plugins,t.options),s===N.initializeStart&&t.fromEnable&&(d=Object.keys(c.plugins).filter(function(w){var j=c.plugins[w];return t.plugins.includes(w)&&!j.initialized}).map(function(w){return a[w]})),p=d.map(function(w){return w.name}),g=ha(s,d),f.next=12,xt({action:t,data:{exact:g.before,namespaced:g.beforeNS},state:c,allPlugins:a,allMatches:g,instance:r,store:i,EVENTS:o});case 12:if(x=f.sent,!ai(x,p.length)){f.next=15;break}return f.abrupt("return",x);case 15:if(s!==u){f.next=19;break}y=x,f.next=22;break;case 19:return f.next=21,xt({action:I(I({},x),{},{type:u}),data:{exact:g.during,namespaced:g.duringNS},state:c,allPlugins:a,allMatches:g,instance:r,store:i,EVENTS:o});case 21:y=f.sent;case 22:if(!s.match(Ce)){f.next=28;break}return A="".concat(u,"End"),f.next=26,xt({action:I(I({},y),{},{type:A}),data:{exact:g.after,namespaced:g.afterNS},state:c,allPlugins:a,allMatches:g,instance:r,store:i,EVENTS:o});case 26:v=f.sent,v.meta&&v.meta.hasCallback&&ri(v.meta.rid,{payload:v});case 28:return f.abrupt("return",x);case 29:case"end":return f.stop()}},e)})),Ht.apply(this,arguments)}function xt(e){return qt.apply(this,arguments)}function qt(){return qt=se(B.mark(function e(t){var n,r,i,o,a,s,u,c,d,p,g,x,y,A,v,f,w,j;return B.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return n=t.data,r=t.action,i=t.instance,o=t.state,a=t.allPlugins,s=t.allMatches,u=t.store,c=t.EVENTS,d=o.plugins,p=o.context,g=r.type,x=g.match(Ce),y=n.exact.map(function(E){return E.pluginName}),x&&(y=s.during.map(function(E){return E.pluginName})),A=ma(i,y),v=n.exact.reduce(function(E,P){var T=P.pluginName,L=P.methodName,R=!1;return!L.match(/^initialize/)&&!L.match(/^reset/)&&(R=!d[T].loaded),p.offline&&L.match(/^(page|track|identify)/)&&(R=!0),E["".concat(T)]=R,E},{}),S.next=10,n.exact.reduce((function(){var E=se(B.mark(function P(T,L,R){var _,C,F;return B.wrap(function($){for(;;)switch($.prev=$.next){case 0:return _=L.pluginName,$.next=3,T;case 3:if(C=$.sent,!(n.namespaced&&n.namespaced[_])){$.next=11;break}return $.next=7,n.namespaced[_].reduce((function(){var D=se(B.mark(function q(G,z,h){var b,l,m,O;return B.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return l=function(M,U,W){return function(K,H){var V=W||U;return I(I({},M),{},{abort:{reason:K,plugins:H||[U],caller:g,from:V}})}},k.next=3,G;case 3:if(b=k.sent,!(!z.method||!ae(z.method))){k.next=6;break}return k.abrupt("return",b);case 6:return ba(z.methodName,z.pluginName),k.next=9,z.method({payload:b,instance:i,abort:l(b,_,z.pluginName),config:Hn(z.pluginName,d,a),plugins:d});case 9:return m=k.sent,O=ne(m)?m:{},k.abrupt("return",Promise.resolve(I(I({},b),O)));case 12:case"end":return k.stop()}},q)}));return function(q,G,z){return D.apply(this,arguments)}})(),Promise.resolve(r));case 7:F=$.sent,C[_]=F,$.next=12;break;case 11:C[_]=r;case 12:return $.abrupt("return",Promise.resolve(C));case 13:case"end":return $.stop()}},P)}));return function(P,T,L){return E.apply(this,arguments)}})(),Promise.resolve({}));case 10:return f=S.sent,S.next=13,n.exact.reduce((function(){var E=se(B.mark(function P(T,L,R){var _,C,F,$,D,q,G,z,h,b,l,m,O;return B.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return _=n.exact.length===R+1,C=L.pluginName,F=a[C],k.next=5,T;case 5:if($=k.sent,D=f[C]?f[C]:{},x&&(D=$),!St(D,C)){k.next=11;break}return Ot({data:D,method:g,instance:i,pluginName:C,store:u}),k.abrupt("return",Promise.resolve($));case 11:if(!St($,C)){k.next=14;break}return _&&Ot({data:$,method:g,instance:i,store:u}),k.abrupt("return",Promise.resolve($));case 14:if(!(v.hasOwnProperty(C)&&v[C]===!0)){k.next=17;break}return u.dispatch({type:"queue",plugin:C,payload:D,_:{called:"queue",from:"queueMechanism"}}),k.abrupt("return",Promise.resolve($));case 17:return q=A(f[C],a[C]),k.next=20,F[g]({abort:q.abort,payload:D,instance:i,config:Hn(C,d,a),plugins:d});case 20:return G=k.sent,z=ne(G)?G:{},h=I(I({},$),z),b=f[C],St(b,C)?Ot({data:b,method:g,instance:i,pluginName:C,store:u}):(l="".concat(g,":").concat(C),m=(l.match(/:/g)||[]).length,m<2&&!g.match(Wn)&&!g.match(Vn)&&(O=x?h:D,i.dispatch(I(I({},O),{},{type:l,_:{called:l,from:"submethod"}})))),k.abrupt("return",Promise.resolve(h));case 26:case"end":return k.stop()}},P)}));return function(P,T,L){return E.apply(this,arguments)}})(),Promise.resolve(r));case 13:if(w=S.sent,!(!g.match(Ce)&&!g.match(/^registerPlugin/)&&!g.match(Vn)&&!g.match(Wn)&&!g.match(/^params/)&&!g.match(/^userIdChanged/))){S.next=21;break}if(c.plugins.includes(g),!(w._&&w._.originalAction===g)){S.next=18;break}return S.abrupt("return",w);case 18:j=I(I({},w),{_:{originalAction:w.type,called:w.type,from:"engineEnd"}}),ai(w,n.exact.length)&&!g.match(/End$/)&&(j=I(I({},j),{type:w.type+"Aborted"})),u.dispatch(j);case 21:return S.abrupt("return",w);case 22:case"end":return S.stop()}},e)})),qt.apply(this,arguments)}function Ot(e){var t=e.data,n=e.method;e.instance;var r=e.pluginName,i=e.store,o=r?":"+r:"",a=n+"Aborted"+o;i.dispatch(I(I({},t),{},{type:a,_:{called:a,from:"abort"}}))}function Hn(e,t,n){var r=t[e]||n[e];return r&&r.config?r.config:{}}function qn(e,t){return t.reduce(function(n,r){return r[e]?n.concat({methodName:e,pluginName:r.name,method:r[e]}):n},[])}function ga(e){return e.replace(Ce,"")}function Kn(e,t){var n=ga(e),r=t?":".concat(t):"",i="".concat(e).concat(r),o="".concat(n).concat(r),a="".concat(n,"End").concat(r);return[i,o,a]}function ha(e,t,n){var r=Kn(e),i=r.map(function(o){return qn(o,t)});return t.reduce(function(o,a){var s=a.name,u=Kn(e,s),c=u.map(function(y){return qn(y,t)}),d=fa(c,3),p=d[0],g=d[1],x=d[2];return p.length&&(o.beforeNS[s]=p),g.length&&(o.duringNS[s]=g),x.length&&(o.afterNS[s]=x),o},{before:i[0],beforeNS:{},during:i[1],duringNS:{},after:i[2],afterNS:{}})}function St(e,t){var n=e.abort;return n?n===!0?!0:Fn(n,t)||n&&Fn(n.plugins,t):!1}function ai(e,t){var n=e.abort;if(!n)return!1;if(n===!0||et(n))return!0;var r=n.plugins;return He(n)&&n.length===t||He(r)&&r.length===t}function He(e){return Array.isArray(e)}function Fn(e,t){return!e||!He(e)?!1:e.includes(t)}function ma(e,t){return function(n,r,i){var o=r.config,a=r.name,s="".concat(a,".").concat(n.type);i&&(s=i.event);var u=n.type.match(Ce)?ya(a,s,t,i,n):va(n,s);return{payload:wa(n),instance:e,config:o||{},abort:u}}}function ya(e,t,n,r,i){return function(o,a){var s=r?r.name:e,u=a&&He(a)?a:n;if(r&&(u=a&&He(a)?a:[e],!u.includes(e)||u.length!==1))throw new Error("Method ".concat(t," can only abort ").concat(e," plugin. ").concat(JSON.stringify(u)," input valid"));return I(I({},i),{},{abort:{reason:o,plugins:u,caller:t,_:s}})}}function va(e,t){return function(){throw new Error(e.type+" action not cancellable. Remove abort in "+t)}}function ba(e,t){var n=Gn(e),r=n&&n.name===t;if(r){var i=Gn(n.method),o=i?"or "+i.method:"";throw new Error([t+" plugin is calling method "+e,"Plugins cant call self","Use ".concat(n.method," ").concat(o," in ").concat(t," plugin insteadof ").concat(e)].join(`
|
|
7
7
|
`))}}function Gn(e){var t=e.match(/(.*):(.*)/);return t?{method:t[1],name:t[2]}:!1}function wa(e){return Object.keys(e).reduce(function(t,n){return n==="type"||(ne(e[n])?t[n]=Object.assign({},e[n]):t[n]=e[n]),t},{})}function xa(e,t,n){var r={};return function(i){return function(o){return(function(){var a=se(B.mark(function s(u){var c,d,p,g,x,y,A,v,f,w,j,S;return B.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(c=u.type,d=u.abort,p=u.plugins,g=u,!d){E.next=4;break}return E.abrupt("return",o(u));case 4:if(c===N.enablePlugin&&i.dispatch({type:N.initializeStart,plugins:p,disabled:[],fromEnable:!0,meta:u.meta}),c===N.disablePlugin&&setTimeout(function(){return ri(u.meta.rid,{payload:u})},0),c===N.initializeEnd&&(x=t(),y=Object.keys(x),A=y.filter(function(P){return p.includes(P)}).map(function(P){return x[P]}),v=[],f=[],w=u.disabled,j=A.map(function(P){var T=P.loaded,L=P.name;return ii(P,T,1e4).then(function(R){return r[L]||(i.dispatch({type:N.pluginReadyType(L),name:L,events:Object.keys(P).filter(function(_){return!Vt.includes(_)})}),r[L]=!0),v=v.concat(L),P}).catch(function(R){if(R instanceof Error)throw new Error(R);return f=f.concat(R.name),R})}),Promise.all(j).then(function(P){var T={plugins:v,failed:f,disabled:w};setTimeout(function(){y.length===j.length+w.length&&i.dispatch(I(I({},{type:N.ready}),T))},0)})),c===N.bootstrap){E.next=13;break}return/^ready:([^:]*)$/.test(c)&&setTimeout(function(){return oi(i,t,e)},0),E.next=11,pa(u,t,e,i,n);case 11:return S=E.sent,E.abrupt("return",o(S));case 13:return E.abrupt("return",o(g));case 14:case"end":return E.stop()}},s)}));return function(s){return a.apply(this,arguments)}})()}}}function Oa(e){return function(t){return function(n){return function(r){var i=r.type,o=r.key,a=r.value,s=r.options;if(i===N.setItem||i===N.removeItem){if(r.abort)return n(r);i===N.setItem?e.setItem(o,a,s):e.removeItem(o,s)}return n(r)}}}}function Sa(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Aa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ia=Sa(function e(){var t=this;Aa(this,e),he(this,"before",[]),he(this,"after",[]),he(this,"addMiddleware",function(n,r){t[r]=t[r].concat(n)}),he(this,"removeMiddleware",function(n,r){var i=t[r].findIndex(function(o){return o===n});i!==-1&&(t[r]=[].concat(Re(t[r].slice(0,i)),Re(t[r].slice(i+1))))}),he(this,"dynamicMiddlewares",function(n){return function(r){return function(i){return function(o){var a={getState:r.getState,dispatch:function(u){return r.dispatch(u)}},s=t[n].map(function(u){return u(a)});return _e.apply(void 0,Re(s))(i)(o)}}}})});function ka(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r={};if(n.type==="initialize:aborted")return t;if(/^registerPlugin:([^:]*)$/.test(n.type)){var i=Jn(n.type,"registerPlugin"),o=e()[i];if(!o||!i)return t;var a=n.enabled;return r[i]={enabled:a,initialized:a?!o.initialize:!1,loaded:a?!!o.loaded():!1,config:o.config||{}},I(I({},t),r)}if(/^initialize:([^:]*)$/.test(n.type)){var s=Jn(n.type,N.initialize),u=e()[s];return!u||!s?t:(r[s]=I(I({},t[s]),{initialized:!0,loaded:!!u.loaded()}),I(I({},t),r))}if(/^ready:([^:]*)$/.test(n.type))return r[n.name]=I(I({},t[n.name]),{loaded:!0}),I(I({},t),r);switch(n.type){case N.disablePlugin:return I(I({},t),Xn(n.plugins,!1,t));case N.enablePlugin:return I(I({},t),Xn(n.plugins,!0,t));default:return t}}}function Jn(e,t){return e.substring(t.length+1,e.length)}function Xn(e,t,n){return e.reduce(function(r,i){return r[i]=I(I({},n[i]),{enabled:t}),r},n)}function si(e){try{return JSON.parse(JSON.stringify(e))}catch{}return e}var ja={last:{},history:[]};function Ea(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ja,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.event,i=t.properties,o=t.options,a=t.meta;switch(n){case N.track:var s=si(I(I({event:r,properties:i},Object.keys(o).length&&{options:o}),{},{meta:a}));return I(I({},e),{last:s,history:e.history.concat(s)});default:return e}}var Pa={actions:[]};function Ta(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pa,t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.payload;switch(n){case"queue":var i;return r&&r.type&&r.type===N.identify?i=[t].concat(e.actions):i=e.actions.concat(t),I(I({},e),{},{actions:i});case"dequeue":return[];default:return e}}var ui=/#.*$/;function Na(){if(fe){for(var e=document.getElementsByTagName("link"),t=0,n;n=e[t];t++)if(n.getAttribute("rel")==="canonical")return n.getAttribute("href")}}function _a(e){var t=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g,n=t.exec(e),r=n&&n[3]?n[3].split("?")[0].replace(ui,""):"";return"/"+r}function Ca(e){var t=Na();return t?t.match(/\?/)?t:t+e:window.location.href.replace(ui,"")}var Ma=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!fe)return e;var t=document,n=t.title,r=t.referrer,i=window,o=i.location,a=i.innerWidth,s=i.innerHeight,u=o.hash,c=o.search,d=Ca(c),p={title:n,url:d,path:_a(d),hash:u,search:c,width:a,height:s};return r&&r!==""&&(p.referrer=r),I(I({},p),e)},Da={last:{},history:[]};function Ua(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Da,t=arguments.length>1?arguments[1]:void 0,n=t.properties,r=t.options,i=t.meta;switch(t.type){case N.page:var o=si(I({properties:n,meta:i},Object.keys(r).length&&{options:r}));return I(I({},e),{last:o,history:e.history.concat(o)});default:return e}}function La(){if(!fe)return!1;var e=navigator.appVersion;return~e.indexOf("Win")?"Windows":~e.indexOf("Mac")?"MacOS":~e.indexOf("X11")?"UNIX":~e.indexOf("Linux")?"Linux":"Unknown OS"}var ci,li,fi,di;ci=La(),li=fe?document.referrer:null,fi=Uo(),di=Lo();var Bn={initialized:!1,sessionId:Ae(),app:null,version:null,debug:!1,offline:fe?!navigator.onLine:!1,os:{name:ci},userAgent:fe?navigator.userAgent:"node",library:{name:Wt,version:"0.10.22"},timezone:di,locale:fi,campaign:{},referrer:li};function Ra(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bn,t=arguments.length>1?arguments[1]:void 0,n=e.initialized,r=t.type,i=t.campaign;switch(r){case N.campaign:return I(I({},e),{campaign:i});case N.offline:return I(I({},e),{offline:!0});case N.online:return I(I({},e),{offline:!1});default:return n?e:I(I(I({},Bn),e),{initialized:!0})}}var za=["plugins","reducers","storage"];function $a(e){return Object.keys(e).reduce(function(t,n){return za.includes(n)||(t[n]=e[n]),t},{})}function Wa(e,t,n){if(fe){var r=window[(n?"add":"remove")+"EventListener"];e.split(" ").forEach(function(i){r(i,t)})}}function Va(){return Promise.resolve(!navigator.onLine)}function Ha(e){var t=function(r){return Va().then(e)},n=Wa.bind(null,"online offline",t);return n(!0),function(r){return n(!1)}}function pi(){return le(Wt,[]),function(e){return function(t,n,r){var i=e(t,n,r),o=i.dispatch,a=function(s){var u=s.action||s;return Ne[Te][Wt].push(u),o(s)};return Object.assign(i,{dispatch:a})}}}function Qn(e){return function(){return _e(_e.apply(null,arguments),pi())}}function At(e){return e?Wo(e)?e:[e]:[]}function qa(e){for(var t=e||Array.prototype.slice.call(arguments),n,r=0;r<t.length;r++)if(ae(t[r])){n=t[r];break}return n}function Ka(){return new Date().getTime()}function Fa(e,t){return function(n){t&&t(n),e(n)}}function Yn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=Ae();return t&&(Ue[r]=Fa(t,qa(n))),I(I({},e),{},{rid:r,ts:Ka()},t?{hasCallback:!0}:{})}function Ga(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.reducers||{},n=e.initialUser||{},r=(e.plugins||[]).reduce(function(l,m){if(ae(m))return l.middlewares=l.middlewares.concat(m),l;if(m.NAMESPACE&&(m.name=m.NAMESPACE),!m.name)throw new Error(Qo+"1");var O=m.EVENTS?Object.keys(m.EVENTS).map(function(H){return m.EVENTS[H]}):[],k=m.enabled!==!1,M=!(m.config&&m.config.enabled===!1);l.pluginEnabled[m.name]=k&&M,delete m.enabled,m.methods&&(l.methods[m.name]=Object.keys(m.methods).reduce(function(H,V){return H[V]=b(m.methods[V]),H},{}),delete m.methods);var U=Object.keys(m),W=U.concat(O),K=new Set(l.events.concat(W));if(l.events=Array.from(K),l.pluginsArray=l.pluginsArray.concat(m),l.plugins[m.name])throw new Error(m.name+"AlreadyLoaded");return l.plugins[m.name]=m,l.plugins[m.name].loaded||(l.plugins[m.name].loaded=function(){return!0}),l},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),i=e.storage?e.storage:{getItem:de,setItem:le,removeItem:Ie},o=ra(i),a=r.plugins,s=r.events.filter(function(l){return!Vt.includes(l)}).sort(),u=new Set(s.concat(ot).filter(function(l){return!Vt.includes(l)})),c=Array.from(u).sort(),d=function(){return a},p=new Ia,g=p.addMiddleware,x=p.removeMiddleware,y=p.dynamicMiddlewares,A=function(){throw new Error("Abort disabled inListener")},v=Ro(),f=ni(i),w=I(I(I(I({},f),n),v.an_uid?{userId:v.an_uid}:{}),v.an_aid?{anonymousId:v.an_aid}:{});w.anonymousId||(w.anonymousId=Ae());var j=I({enable:function(l,m){return new Promise(function(O){D.dispatch({type:N.enablePlugin,plugins:At(l),_:{originalAction:N.enablePlugin}},O,[m])})},disable:function(l,m){return new Promise(function(O){D.dispatch({type:N.disablePlugin,plugins:At(l),_:{originalAction:N.disablePlugin}},O,[m])})}},r.methods),S={identify:(function(){var l=se(B.mark(function O(k,M,U,W){var K,H,V,X,Ge;return B.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return K=et(k)?k:null,H=ne(k)?k:M,V=U||{},X=S.user(),le(fn(ge),K),Ge=K||H.userId||o(ge,S,H),Je.abrupt("return",new Promise(function(Ji){D.dispatch(I({type:N.identifyStart,userId:Ge,traits:H||{},options:V,anonymousId:X.anonymousId},X.id&&X.id!==K&&{previousId:X.id}),Ji,[M,U,W])}));case 7:case"end":return Je.stop()}},O)}));function m(O,k,M,U){return l.apply(this,arguments)}return m})(),track:(function(){var l=se(B.mark(function O(k,M,U,W){var K,H,V;return B.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(K=ne(k)?k.event:k,!(!K||!et(K))){X.next=3;break}throw new Error("EventMissing");case 3:return H=ne(k)?k:M||{},V=ne(U)?U:{},X.abrupt("return",new Promise(function(Ge){D.dispatch({type:N.trackStart,event:K,properties:H,options:V,userId:o(ge,S,M),anonymousId:o(ke,S,M)},Ge,[M,U,W])}));case 6:case"end":return X.stop()}},O)}));function m(O,k,M,U){return l.apply(this,arguments)}return m})(),page:(function(){var l=se(B.mark(function O(k,M,U){var W,K;return B.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return W=ne(k)?k:{},K=ne(M)?M:{},H.abrupt("return",new Promise(function(V){D.dispatch({type:N.pageStart,properties:Ma(W),options:K,userId:o(ge,S,W),anonymousId:o(ke,S,W)},V,[k,M,U])}));case 3:case"end":return H.stop()}},O)}));function m(O,k,M){return l.apply(this,arguments)}return m})(),user:function(l){if(l===ge||l==="id")return o(ge,S);if(l===ke||l==="anonId")return o(ke,S);var m=S.getState("user");return l?Nn(m,l):m},reset:function(l){return new Promise(function(m){D.dispatch({type:N.resetStart},m,l)})},ready:function(l){return S.on(N.ready,l)},on:function(l,m){if(!l||!ae(m))return!1;if(l===N.bootstrap)throw new Error(".on disabled for "+l);var O=/Start$|Start:/;if(l==="*"){var k=function(K){return function(H){return function(V){return V.type.match(O)&&m({payload:V,instance:S,plugins:a}),H(V)}}},M=function(K){return function(H){return function(V){return V.type.match(O)||m({payload:V,instance:S,plugins:a}),H(V)}}};return g(k,Qe),g(M,Ye),function(){x(k,Qe),x(M,Ye)}}var U=l.match(O)?Qe:Ye,W=function(K){return function(H){return function(V){return V.type===l&&m({payload:V,instance:S,plugins:a,abort:A}),H(V)}}};return g(W,U),function(){return x(W,U)}},once:function(l,m){if(!l||!ae(m))return!1;if(l===N.bootstrap)throw new Error(".once disabled for "+l);var O=S.on(l,function(k){var M=k.payload;m({payload:M,instance:S,plugins:a,abort:A}),O()});return O},getState:function(l){var m=D.getState();return l?Nn(m,l):Object.assign({},m)},dispatch:function(l){var m=et(l)?{type:l}:l;if(ea(m.type))throw new Error("reserved action "+m.type);var O=l._||{},k=I(I({},m),{},{_:I({originalAction:m.type},O)});D.dispatch(k)},enablePlugin:j.enable,disablePlugin:j.disable,plugins:j,storage:{getItem:i.getItem,setItem:function(l,m,O){D.dispatch({type:N.setItemStart,key:l,value:m,options:O})},removeItem:function(l,m){D.dispatch({type:N.removeItemStart,key:l,options:m})}},setAnonymousId:function(l,m){S.storage.setItem(ye,l,m)},events:{all:c,core:ot,plugins:s}},E=function(l){return function(m){return function(O){return O.meta||(O.meta=Yn()),m(O)}}},P=r.middlewares.concat([E,y(Qe),xa(S,d,{all:c,plugins:s}),Oa(i),ta(S),ia(S),y(Ye)]),T={context:Ra,user:na(i),page:Ua,track:Ea,plugins:ka(d),queue:Ta},L=_e,R=_e;if(fe&&e.debug){var _=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;_&&(L=_({trace:!0,traceLimit:25})),R=function(){return arguments.length===0?pi():ne(Q(arguments[0]))?Qn():Qn().apply(null,arguments)}}var C=$a(e),F=r.pluginsArray.reduce(function(l,m){var O=m.name,k=m.config,M=m.loaded,U=r.pluginEnabled[O];return l[O]={enabled:U,initialized:U?!m.initialize:!1,loaded:!!M(),config:k||{}},l},{}),$={context:C,user:w,plugins:F},D=ti(Xo(I(I({},T),t)),$,R(L(Bo.apply(void 0,Re(P)))));function q(l){return function(m,O,k){var M=Yn(m.meta,O,At(k)),U=I(I({},m),{meta:M});return l.apply(null,[U])}}D.dispatch=q(D.dispatch);var G=Object.keys(a);D.dispatch({type:N.bootstrap,plugins:G,config:C,params:v,user:w,initialUser:n,persistedUser:f});var z=G.filter(function(l){return r.pluginEnabled[l]}),h=G.filter(function(l){return!r.pluginEnabled[l]});D.dispatch({type:N.registerPlugins,plugins:G,enabled:r.pluginEnabled}),r.pluginsArray.map(function(l,m){var O=l.bootstrap,k=l.config,M=l.name;O&&ae(O)&&O({instance:S,config:k,payload:l}),D.dispatch({type:N.registerPluginType(M),name:M,enabled:r.pluginEnabled[M],plugin:l}),r.pluginsArray.length===m+1&&D.dispatch({type:N.initializeStart,plugins:z,disabled:h})}),Ha(function(l){D.dispatch({type:l?N.offline:N.online})}),aa(D,d,S);function b(l){return function(){for(var m=Array.prototype.slice.call(arguments),O=new Array(l.length),k=0;k<m.length;k++)O[k]=m[k];return O[O.length]=S,l.apply({instance:S},O)}}return S}var Qe="before",Ye="after",Oe="cookie",be=mi(),dn=pt,gi=pt;function hi(e){return be?pt(e,"",-1):Ie(e)}function mi(){if(be!==void 0)return be;var e=Oe+Oe;try{pt(e,e),be=document.cookie.indexOf(e)!==-1,hi(e)}catch{be=!1}return be}function pt(e,t,n,r,i,o){if(typeof window<"u"){var a=arguments.length>1;return be===!1&&(a?le(e,t):de(e)),a?document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(i?"; domain="+i:"")+(o?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var ce="localStorage",Ja=ft.bind(null,ce),pn=pe(ce,"getItem",de),Xa=pe(ce,"setItem",le),yi=pe(ce,"removeItem",Ie),$e="sessionStorage",Ba=ft.bind(null,"sessionStorage");pe("sessionStorage","getItem",de);pe("sessionStorage","setItem",le);pe("sessionStorage","removeItem",Ie);var Zn,vi="any",bi="*",Kt=typeof process<"u"?process:{};(Zn=Kt.env)!=null&&Zn.NODE_ENV;var Qa=typeof window<"u";Kt.versions!=null&&Kt.versions.node!=null;typeof Deno<"u"&&Deno.core;Qa&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function gt(e,t){return typeof t===e}gt.bind(null,"function");var Ya=gt.bind(null,"string"),je=gt.bind(null,"undefined");gt.bind(null,"boolean");function Za(e){return e&&(typeof e=="object"||e!==null)}function es(e){if(!Za(e))return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Pe(e){var t=e;try{if((t=JSON.parse(e))==="true")return!0;if(t==="false")return!1;if(es(t))return t;parseFloat(t)===t&&(t=parseFloat(t))}catch{}if(t!==null&&t!=="")return t}var ts=Ja(),ns=Ba(),rs=mi();function wi(e,t){if(e){var n=gn(t),r=!vn(n),i=hn(n)?Pe(localStorage.getItem(e)):void 0;if(r&&!je(i))return i;var o=mn(n)?Pe(dn(e)):void 0;if(r&&o)return o;var a=yn(n)?Pe(sessionStorage.getItem(e)):void 0;if(r&&a)return a;var s=de(e);return r?s:{localStorage:i,sessionStorage:a,cookie:o,global:s}}}function is(e,t,n){if(e&&!je(t)){var r={},i=gn(n),o=JSON.stringify(t),a=!vn(i);return hn(i)&&(r[ce]=Ze(ce,t,Pe(localStorage.getItem(e))),localStorage.setItem(e,o),a)?r[ce]:mn(i)&&(r[Oe]=Ze(Oe,t,Pe(dn(e))),gi(e,o),a)?r[Oe]:yn(i)&&(r[$e]=Ze($e,t,Pe(sessionStorage.getItem(e))),sessionStorage.setItem(e,o),a)?r[$e]:(r[we]=Ze(we,t,de(e)),le(e,t),a?r[we]:r)}}function os(e,t){if(e){var n=gn(t),r=wi(e,bi),i={};return!je(r.localStorage)&&hn(n)&&(localStorage.removeItem(e),i[ce]=r.localStorage),!je(r.cookie)&&mn(n)&&(hi(e),i[Oe]=r.cookie),!je(r.sessionStorage)&&yn(n)&&(sessionStorage.removeItem(e),i[$e]=r.sessionStorage),!je(r.global)&&ht(n,we)&&(Ie(e),i[we]=r.global),i}}function gn(e){return e?Ya(e)?e:e.storage:vi}function hn(e){return ts&&ht(e,ce)}function mn(e){return rs&&ht(e,Oe)}function yn(e){return ns&&ht(e,$e)}function vn(e){return e===bi||e==="all"}function ht(e,t){return e===vi||e===t||vn(e)}function Ze(e,t,n){return{location:e,current:t,previous:n}}var as={setItem:is,getItem:wi,removeItem:os};function ss(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?er(Object(n),!0).forEach(function(r){ss(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function us(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={storage:as};return Ga(tr(tr({},t),e))}function re(e){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(e)}function cs(e,t){if(re(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(re(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ls(e){var t=cs(e,"string");return re(t)=="symbol"?t:t+""}function bn(e,t,n){return(t=ls(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nr(Object(n),!0).forEach(function(r){bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rr={exports:{}},ir={exports:{}},or;function Oi(){return or||(or=1,(function(e){function t(n,r){this.v=n,this.k=r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ir)),ir.exports}var ar={exports:{}},sr={exports:{}},ur;function Si(){return ur||(ur=1,(function(e){function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}e.exports=t=function(s,u,c,d){function p(g,x){t(s,g,function(y){return this._invoke(g,x,y)})}u?a?a(s,u,{value:c,enumerable:!d,configurable:!d,writable:!d}):s[u]=c:(p("next",0),p("throw",1),p("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sr)),sr.exports}var cr;function Ai(){return cr||(cr=1,(function(e){var t=Si();function n(){var r,i,o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function u(v,f,w,j){var S=f&&f.prototype instanceof d?f:d,E=Object.create(S.prototype);return t(E,"_invoke",(function(P,T,L){var R,_,C,F=0,$=L||[],D=!1,q={p:0,n:0,v:r,a:G,f:G.bind(r,4),d:function(z,h){return R=z,_=0,C=r,q.n=h,c}};function G(z,h){for(_=z,C=h,i=0;!D&&F&&!b&&i<$.length;i++){var b,l=$[i],m=q.p,O=l[2];z>3?(b=O===h)&&(C=l[(_=l[4])?5:(_=3,3)],l[4]=l[5]=r):l[0]<=m&&((b=z<2&&m<l[1])?(_=0,q.v=h,q.n=l[1]):m<O&&(b=z<3||l[0]>h||h>O)&&(l[4]=z,l[5]=h,q.n=O,_=0))}if(b||z>1)return c;throw D=!0,h}return function(z,h,b){if(F>1)throw TypeError("Generator is already running");for(D&&h===1&&G(h,b),_=h,C=b;(i=_<2?r:C)||!D;){R||(_?_<3?(_>1&&(q.n=-1),G(_,C)):q.n=C:q.v=C);try{if(F=2,R){if(_||(z="next"),i=R[z]){if(!(i=i.call(R,C)))throw TypeError("iterator result is not an object");if(!i.done)return i;C=i.value,_<2&&(_=0)}else _===1&&(i=R.return)&&i.call(R),_<2&&(C=TypeError("The iterator does not provide a '"+z+"' method"),_=1);R=r}else if((i=(D=q.n<0)?C:P.call(T,q))!==c)break}catch(l){R=r,_=1,C=l}finally{F=1}}return{value:i,done:D}}})(v,w,j),!0),E}var c={};function d(){}function p(){}function g(){}i=Object.getPrototypeOf;var x=[][a]?i(i([][a]())):(t(i={},a,function(){return this}),i),y=g.prototype=d.prototype=Object.create(x);function A(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,g):(v.__proto__=g,t(v,s,"GeneratorFunction")),v.prototype=Object.create(y),v}return p.prototype=g,t(y,"constructor",g),t(g,"constructor",p),p.displayName="GeneratorFunction",t(g,s,"GeneratorFunction"),t(y),t(y,s,"Generator"),t(y,a,function(){return this}),t(y,"toString",function(){return"[object Generator]"}),(e.exports=n=function(){return{w:u,m:A}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(ar)),ar.exports}var lr={exports:{}},fr={exports:{}},dr={exports:{}},pr;function Ii(){return pr||(pr=1,(function(e){var t=Oi(),n=Si();function r(i,o){function a(u,c,d,p){try{var g=i[u](c),x=g.value;return x instanceof t?o.resolve(x.v).then(function(y){a("next",y,d,p)},function(y){a("throw",y,d,p)}):o.resolve(x).then(function(y){g.value=y,d(g)},function(y){return a("throw",y,d,p)})}catch(y){p(y)}}var s;this.next||(n(r.prototype),n(r.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),n(this,"_invoke",function(u,c,d){function p(){return new o(function(g,x){a(u,d,g,x)})}return s=s?s.then(p,p):p()},!0)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(dr)),dr.exports}var gr;function ki(){return gr||(gr=1,(function(e){var t=Ai(),n=Ii();function r(i,o,a,s,u){return new n(t().w(i,o,a,s),u||Promise)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(fr)),fr.exports}var hr;function fs(){return hr||(hr=1,(function(e){var t=ki();function n(r,i,o,a,s){var u=t(r,i,o,a,s);return u.next().then(function(c){return c.done?c.value:u.next()})}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(lr)),lr.exports}var mr={exports:{}},yr;function ds(){return yr||(yr=1,(function(e){function t(n){var r=Object(n),i=[];for(var o in r)i.unshift(o);return function a(){for(;i.length;)if((o=i.pop())in r)return a.value=o,a.done=!1,a;return a.done=!0,a}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mr)),mr.exports}var vr={exports:{}},br={exports:{}},wr;function ps(){return wr||(wr=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(br)),br.exports}var xr;function gs(){return xr||(xr=1,(function(e){var t=ps().default;function n(r){if(r!=null){var i=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],o=0;if(i)return i.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}}}throw new TypeError(t(r)+" is not iterable")}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(vr)),vr.exports}var Or;function hs(){return Or||(Or=1,(function(e){var t=Oi(),n=Ai(),r=fs(),i=ki(),o=Ii(),a=ds(),s=gs();function u(){var c=n(),d=c.m(u),p=(Object.getPrototypeOf?Object.getPrototypeOf(d):d.__proto__).constructor;function g(A){var v=typeof A=="function"&&A.constructor;return!!v&&(v===p||(v.displayName||v.name)==="GeneratorFunction")}var x={throw:1,return:2,break:3,continue:3};function y(A){var v,f;return function(w){v||(v={stop:function(){return f(w.a,2)},catch:function(){return w.v},abrupt:function(j,S){return f(w.a,x[j],S)},delegateYield:function(j,S,E){return v.resultName=S,f(w.d,s(j),E)},finish:function(j){return f(w.f,j)}},f=function(j,S,E){w.p=v.prev,w.n=v.next;try{return j(S,E)}finally{v.next=w.n}}),v.resultName&&(v[v.resultName]=w.v,v.resultName=void 0),v.sent=w.v,v.next=w.n;try{return A.call(this,v)}finally{w.p=v.prev,w.n=v.next}}}return(e.exports=u=function(){return{wrap:function(A,v,f,w){return c.w(y(A),v,f,w&&w.reverse())},isGeneratorFunction:g,mark:c.m,awrap:function(A,v){return new t(A,v)},AsyncIterator:o,async:function(A,v,f,w,j){return(g(v)?i:r)(y(A),v,f,w,j)},keys:a,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports})(rr)),rr.exports}var It,Sr;function ms(){if(Sr)return It;Sr=1;var e=hs()();It=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return It}var ys=ms(),J=xi(ys);function Ar(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function oe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(u){Ar(o,r,i,a,s,"next",u)}function s(u){Ar(o,r,i,a,s,"throw",u)}a(void 0)})}}var Ir=function(){};function vs(e,t){var n,r,i,o=(t=t||{}).initial||[],a=t.max||1/0,s=t.interval||1e4,u=t.onEmpty||Ir,c=t.onPause||Ir;function d(g){clearInterval(n);var x=o.splice(0,a);return x.length&&e(x,o),o.length?g?d():p():(i=!1,u(o))}function p(){i=!0,n=setInterval(d,s)}return o.length&&p(),{flush:function(g){d(g)},resume:d,push:function(g){return(r=o.push(g))>=a&&!t.throttle&&d(),i||p(),r},size:function(){return o.length},pause:function(g){g&&d(),clearInterval(n),i=!1,c(o)}}}var mt="sessionStorage";ft.bind(null,mt);var bs=pe(mt,"getItem",de),ws=pe(mt,"setItem",le);pe(mt,"removeItem",Ie);var tt="__",yt="session",ji=tt+yt,Ei="page",kr=["id","createdAt","created"];function Ft(e){var t=e?new Date(e):new Date;return[t.toISOString(),t.getTime()]}function Pi(){var e=Ft(),t=e[0],n=e[1];return{id:Ae(),created:n,createdAt:t}}var xs={session:[bs,ws],page:[de,le]};function vt(e,t){for(var n=xs[e],r=n[0],i=n[1],o=Pi(),a=!1,s={},u=0;u<kr.length;u++){var c=kr[u],d=tt+e+tt+yt+tt+c,p=r(d);a=t||!p,(t||!t&&!p)&&i(d,o[c]);var g=p&&!t?p:o[c],x=c!=="created"?g:Number(g);s[c]=x}return wn(s,a)}function wn(e,t){var n=Date.now();return e.elapsed=n-e.created,e.expires&&(e.remaining=Math.max(e.expires-n,0),e.isExpired=e.remaining===0),e.isNew=t,e}function qe(e,t){e===void 0&&(e=30);var n=dn(ji),r=n?JSON.parse(n):at(e);return t?r:wn(r,!n)}function at(e,t,n){e===void 0&&(e=30);var r=n?qe(e,!0):Pi(),i=60*e,o=r.created;if(n){var a=Ft(),s=a[0],u=a[1];r.modified=u,r.modifiedAt=s,o=u}var c=Ft(o+1e3*i),d=c[0];return r.expires=c[1],r.expiresAt=d,r.duration=1e3*i,t&&(r=Object.assign(r,t)),gi(ji,JSON.stringify(r),i),wn(r,!n)}var Os=function(e,t){return at(e,t,!0)},Ti=vt.bind(null,yt),Ss=vt.bind(null,yt,!0),xn=vt.bind(null,Ei),jr=vt.bind(null,Ei,!0),Se=typeof window<"u";function As(e){return typeof e=="string"}function Er(e){return typeof e=="boolean"}var kt,Pr;function Is(){if(Pr)return kt;Pr=1;var e=function(f){return t(f)&&!n(f)};function t(f){return!!f&&typeof f=="object"}function n(f){var w=Object.prototype.toString.call(f);return w==="[object RegExp]"||w==="[object Date]"||o(f)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(f){return f.$$typeof===i}function a(f){return Array.isArray(f)?[]:{}}function s(f,w){return w.clone!==!1&&w.isMergeableObject(f)?A(a(f),f,w):f}function u(f,w,j){return f.concat(w).map(function(S){return s(S,j)})}function c(f,w){if(!w.customMerge)return A;var j=w.customMerge(f);return typeof j=="function"?j:A}function d(f){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(f).filter(function(w){return Object.propertyIsEnumerable.call(f,w)}):[]}function p(f){return Object.keys(f).concat(d(f))}function g(f,w){try{return w in f}catch{return!1}}function x(f,w){return g(f,w)&&!(Object.hasOwnProperty.call(f,w)&&Object.propertyIsEnumerable.call(f,w))}function y(f,w,j){var S={};return j.isMergeableObject(f)&&p(f).forEach(function(E){S[E]=s(f[E],j)}),p(w).forEach(function(E){x(f,E)||(g(f,E)&&j.isMergeableObject(w[E])?S[E]=c(E,j)(f[E],w[E],j):S[E]=s(w[E],j))}),S}function A(f,w,j){j=j||{},j.arrayMerge=j.arrayMerge||u,j.isMergeableObject=j.isMergeableObject||e,j.cloneUnlessOtherwiseSpecified=s;var S=Array.isArray(w),E=Array.isArray(f),P=S===E;return P?S?j.arrayMerge(f,w,j):y(f,w,j):s(w,j)}A.all=function(f,w){if(!Array.isArray(f))throw new Error("first argument should be an array");return f.reduce(function(j,S){return A(j,S,w)},{})};var v=A;return kt=v,kt}var ks=Is(),js=xi(ks);var Gt=new TextEncoder,Es={appstream2:"appstream",cloudhsmv2:"cloudhsm",email:"ses",marketplace:"aws-marketplace",mobile:"AWSMobileHubService",pinpoint:"mobiletargeting",queue:"sqs","git-codecommit":"codecommit","mturk-requester-sandbox":"mturk-requester","personalize-runtime":"personalize"},Ps=new Set(["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id","range","connection"]),Jt=class{constructor({accessKeyId:t,secretAccessKey:n,sessionToken:r,service:i,region:o,cache:a,retries:s,initRetryMs:u}){if(t==null)throw new TypeError("accessKeyId is a required option");if(n==null)throw new TypeError("secretAccessKey is a required option");this.accessKeyId=t,this.secretAccessKey=n,this.sessionToken=r,this.service=i,this.region=o,this.cache=a||new Map,this.retries=s??10,this.initRetryMs=u||50}async sign(t,n){if(t instanceof Request){let{method:o,url:a,headers:s,body:u}=t;n=Object.assign({method:o,url:a,headers:s},n),n.body==null&&s.has("Content-Type")&&(n.body=u!=null&&s.has("X-Amz-Content-Sha256")?u:await t.clone().arrayBuffer()),t=a}let r=new Xt(Object.assign({url:t.toString()},n,this,n&&n.aws)),i=Object.assign({},n,await r.sign());delete i.aws;try{return new Request(i.url.toString(),i)}catch(o){if(o instanceof TypeError)return new Request(i.url.toString(),Object.assign({duplex:"half"},i));throw o}}async fetch(t,n){for(let r=0;r<=this.retries;r++){let i=fetch(await this.sign(t,n));if(r===this.retries)return i;let o=await i;if(o.status<500&&o.status!==429)return o;await new Promise(a=>setTimeout(a,Math.random()*this.initRetryMs*Math.pow(2,r)))}throw new Error("An unknown error occurred, ensure retries is not negative")}},Xt=class{constructor({method:t,url:n,headers:r,body:i,accessKeyId:o,secretAccessKey:a,sessionToken:s,service:u,region:c,cache:d,datetime:p,signQuery:g,appendSessionToken:x,allHeaders:y,singleEncode:A}){if(n==null)throw new TypeError("url is a required option");if(o==null)throw new TypeError("accessKeyId is a required option");if(a==null)throw new TypeError("secretAccessKey is a required option");this.method=t||(i?"POST":"GET"),this.url=new URL(n),this.headers=new Headers(r||{}),this.body=i,this.accessKeyId=o,this.secretAccessKey=a,this.sessionToken=s;let v,f;(!u||!c)&&([v,f]=Ts(this.url,this.headers)),this.service=u||v||"",this.region=c||f||"us-east-1",this.cache=d||new Map,this.datetime=p||new Date().toISOString().replace(/[:-]|\.\d{3}/g,""),this.signQuery=g,this.appendSessionToken=x||this.service==="iotdevicegateway",this.headers.delete("Host"),this.service==="s3"&&!this.signQuery&&!this.headers.has("X-Amz-Content-Sha256")&&this.headers.set("X-Amz-Content-Sha256","UNSIGNED-PAYLOAD");let w=this.signQuery?this.url.searchParams:this.headers;if(w.set("X-Amz-Date",this.datetime),this.sessionToken&&!this.appendSessionToken&&w.set("X-Amz-Security-Token",this.sessionToken),this.signableHeaders=["host",...this.headers.keys()].filter(S=>y||!Ps.has(S)).sort(),this.signedHeaders=this.signableHeaders.join(";"),this.canonicalHeaders=this.signableHeaders.map(S=>S+":"+(S==="host"?this.url.host:(this.headers.get(S)||"").replace(/\s+/g," "))).join(`
|
|
@@ -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
|
|
4
|
-
import b from"./
|
|
3
|
+
v1.1.0 */
|
|
4
|
+
import b from"./EUKEOESV.js";import a from"./STXL6NIE.js";import{a as $}from"./2LIVMQO2.js";import{a as L}from"./GWXJIXZK.js";import{b as I}from"./PZJBWNEZ.js";import"./2XTYWT3B.js";import"./A7SGX5YT.js";import{E as d,G as h,i as n,r as u}from"./KCYMVFRG.js";import"./SMTMWRRV.js";export default $arcgis.t(([,{e:i,f:f,h:C,j:k,m:c}])=>{var y="instant-apps-language-translator",O={lastItem:`${y}--last-item`},g=class extends d{constructor(){super(...arguments),this._messages=L({name:"instant-apps-language-translator",blocking:!0})}static{this.shadowRootOptions=u}render(){return k(this.el?.parentElement?.locales)?.length>0?this.renderUIData():this.renderNotice()}renderUIData(){if(!i?.uiData)return;let a=C();return n`<div>${a?.map((e,s)=>this.renderUIDataItem(e,s,a.length))}</div>`}renderUIDataItem(a,e,s){let r=this.el.parentElement,m=r.appSettings,b=m?.translatedLanguageLabels?.[i.currentLanguage],v=e===s-1?O.lastItem:"",D=m.content.find(t=>t.id===a);return $(`${a}-${e}`,n`<instant-apps-language-translator-item class=${h(v)} .fieldName=${a} .translatedLanguageLabels=${b} .setting=${D} .userLocaleInputOnChangeCallback=${async(t,l)=>{try{await r.userLocaleInputOnChangeCallback(t,l);let o=f.get("portalItemResource");c(o)}catch{}}} .translatedLocaleInputOnChangeCallback=${async(t,l,o,p)=>{try{await r.translatedLocaleInputOnChangeCallback(t,l,o,p),c(p)}catch{}}}></instant-apps-language-translator-item>`)}renderNotice(){let a=this._messages.noLanguage;return n`<calcite-notice open icon=exclamation-mark-triangle kind=warning><div slot=title>${a?.title}</div><div slot=message>${a?.message}</div></calcite-notice>`}};I("instant-apps-language-translator-content",g);return g},a,b)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0
|
|
4
|
-
import{a as n}from"./
|
|
3
|
+
v1.1.0 */
|
|
4
|
+
import{a as n}from"./PAKHX3I6.js";import{a as s}from"./VLH6CM7M.js";import"./P4QP3FN6.js";import"./L6IAJ72L.js";import"./G34G6TIZ.js";import"./IWW5ZJYG.js";import{a as r,b as a}from"./6CYD25YN.js";import"./JN54IUSM.js";import"./GFUALEHA.js";import"./NZFFMH5C.js";import{a as o}from"./NZVQGLFO.js";import{a as i}from"./3PD2HBG5.js";import"./IYTOH2LC.js";import"./M23LVYVA.js";import"./EAKI67WF.js";import"./WLLF2K4A.js";import"./POPBLQGD.js";import"./EIX5TZGC.js";import"./D6XWLOBU.js";import"./O2H7SA7K.js";import"./VJVK7CEI.js";import"./7T2EBM7A.js";import"./DFS7UUPH.js";import"./NDCEYZWS.js";import"./A5WNDAV3.js";import"./RTQDMFCR.js";import"./G5D25KB4.js";import"./OM24RA5F.js";import"./KQ6BMUH2.js";import"./J6MD6K4M.js";import"./46SKFEV5.js";import"./2J6BGZWE.js";import"./KEFZ5YNV.js";import"./XLR4XEQX.js";import"./3JHRLX63.js";import"./IWBODHPW.js";import"./L2LNLN2J.js";import"./HGNTIYQT.js";import"./M7PDEIFC.js";import"./TQIQUUNR.js";import"./SMTMWRRV.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,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
|
|
3
|
+
v1.1.0 */
|
|
4
4
|
var e="WNufTOT96eMYwAik",a="https://www.arcgis.com",o="8f741b82179543fe884bed012dd5f049",s="1d3a7ed66deb47269beea05ff9afd4c1",d="solutions-deployment-first-use",r={name:"solution-deployment-app",version:"1.0",dev:{amazon:{userPoolID:"us-east-1:7345bcf2-bffa-4849-a379-a83178f63eef",app:{id:"7e2fd97553644e5f99b1129fbcee3c2e"}}},qa:{amazon:{userPoolID:"us-east-1:7345bcf2-bffa-4849-a379-a83178f63eef",app:{id:"a3beba911bd14847ada5c9ffed2a2111"}}},prod:{amazon:{userPoolID:"us-east-1:8c41b2dc-7563-403d-ba64-673b103debce",app:{id:"35a920e0e7f84680be076e57dd5cb728"}}}},t={appId:e,portalURL:a,primarySolutionsGroupId:o,agoBasedEnterpriseSolutionsGroupId:s,consoleMessageLevel:1,cookiesFirstUseVar:d,isRTL:!1,locale:"en",forceTrackingEnv:"dev",trackingEnabled:!0,telemetry:r},n=Object.freeze(Object.defineProperty({__proto__:null,agoBasedEnterpriseSolutionsGroupId:s,appId:e,consoleMessageLevel:1,cookiesFirstUseVar:d,default:t,forceTrackingEnv:"dev",isRTL:!1,locale:"en",portalURL:a,primarySolutionsGroupId:o,telemetry:r,trackingEnabled:!0},Symbol.toStringTag,{value:"Module"}));export{e as a,n as b};
|