@esri/solutions-components 1.0.0-next.20250528.2 → 1.0.0-next.20250528.3
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/{WX4ZUMZN.js → 257RHCO3.js} +2 -2
- package/dist/cdn/{Y4M5KS3M.js → 25INXMQ7.js} +1 -1
- package/dist/cdn/{4QWQA7SP.js → 2ZFWVIHB.js} +2 -2
- package/dist/cdn/{YZCPJ5JI.js → 37ZOOYA6.js} +2 -2
- package/dist/cdn/{RTTXS2RX.js → 3DBNRKRY.js} +2 -2
- package/dist/cdn/{4KGZBVTB.js → 3IKHEFIM.js} +2 -2
- package/dist/cdn/{HYTRDNUE.js → 3P5H2MBX.js} +2 -2
- package/dist/cdn/3QEJ6I3X.js +4 -0
- package/dist/cdn/{GUP4UK2N.js → 3SEFRTZS.js} +2 -2
- package/dist/cdn/{6GVJGNRK.js → 3SXC6AOX.js} +2 -2
- package/dist/cdn/{BKQVXWB7.js → 3Z5EZESP.js} +2 -2
- package/dist/cdn/{HM7JZP3A.js → 46JQWJOE.js} +1 -1
- package/dist/cdn/{ARYFWYUR.js → 4BKW6WVP.js} +1 -1
- package/dist/cdn/{IIPLB2RS.js → 4BPV7HBX.js} +2 -2
- package/dist/cdn/{WO7YGQFB.js → 4CX3U6PC.js} +2 -2
- package/dist/cdn/{73NJ4RPV.js → 4E5A4WPJ.js} +1 -1
- package/dist/cdn/{27LQAQ6Y.js → 4G5AFL4H.js} +2 -2
- package/dist/cdn/{YOSMKTOJ.js → 4GNPLNA5.js} +2 -2
- package/dist/cdn/{HOYVNZRK.js → 4KMMWHZB.js} +2 -2
- package/dist/cdn/{HTYN6WXU.js → 4TQV7BER.js} +2 -2
- package/dist/cdn/{N324UTZ5.js → 4VPENS73.js} +2 -2
- package/dist/cdn/{XHZTR3BJ.js → 53SSMHID.js} +2 -2
- package/dist/cdn/{JBG5SAVM.js → 57ANO2DW.js} +1 -1
- package/dist/cdn/{FPWLAJBO.js → 5IVJBGE4.js} +1 -1
- package/dist/cdn/{GLCP6BKS.js → 5KXQH2TS.js} +2 -2
- package/dist/cdn/{4S2I2R2Q.js → 5NBJWXNC.js} +1 -1
- package/dist/cdn/{BANL5YR3.js → 5NMQ55IB.js} +2 -2
- package/dist/cdn/{IBEMOISL.js → 5VQKGIOK.js} +2 -2
- package/dist/cdn/{CQMNR2XZ.js → 5Y2BA7TP.js} +1 -1
- package/dist/cdn/{XFZL2VCD.js → 6GIWU3Q5.js} +2 -2
- package/dist/cdn/{SFJHXT65.js → 6J3VKLVD.js} +1 -1
- package/dist/cdn/{YQHRK3AQ.js → 6KIF7L5Z.js} +2 -2
- package/dist/cdn/{SMLBVO43.js → 6LYEORFR.js} +2 -2
- package/dist/cdn/{XOHNTOVE.js → 6QGYSL5T.js} +2 -2
- package/dist/cdn/{TWGLV5JH.js → 6TZ6MO2O.js} +2 -2
- package/dist/cdn/{YAK6SM64.js → 6VQV2GNN.js} +2 -2
- package/dist/cdn/{2IDGPQJR.js → 6XBPF2IB.js} +2 -2
- package/dist/cdn/{FEWEA7AN.js → 6Z4UGB7L.js} +2 -2
- package/dist/cdn/{ZZAKVFN7.js → 6ZRKBOXK.js} +2 -2
- package/dist/cdn/{JHFAVQVG.js → 72DBGADN.js} +2 -2
- package/dist/cdn/{66IB2PZE.js → 73FJRU3Y.js} +2 -2
- package/dist/cdn/{IE24UY4O.js → 7JZFXQTO.js} +2 -2
- package/dist/cdn/{Z6TJZJH7.js → 7LLQQFEB.js} +2 -2
- package/dist/cdn/{X6GE3EIS.js → 7XDT73TY.js} +2 -2
- package/dist/cdn/{LYQL4O5M.js → 7XJJ6UNT.js} +2 -2
- package/dist/cdn/{LYWU4RZH.js → 7YOYRP5L.js} +2 -2
- package/dist/cdn/{ABYMP2JA.js → A4PGD7XA.js} +2 -2
- package/dist/cdn/{V5UFRWYB.js → A64GN7NT.js} +2 -2
- package/dist/cdn/{DUOJYQGU.js → AAGHN52S.js} +2 -2
- package/dist/cdn/{U2EADFOW.js → ABWO2Y2R.js} +2 -2
- package/dist/cdn/{FTCXP7FD.js → AEDFL2E5.js} +2 -2
- package/dist/cdn/{TWFIXUDH.js → AGULCZFG.js} +2 -2
- package/dist/cdn/{VGPMZBNK.js → AKLAIQPQ.js} +2 -2
- package/dist/cdn/{JBZH2KKN.js → ALV3PJ2R.js} +2 -2
- package/dist/cdn/{XQNKJT3W.js → ASWV5O2Y.js} +2 -2
- package/dist/cdn/{IIX655ZM.js → AWWZW7JA.js} +1 -1
- package/dist/cdn/{TKILZGVC.js → AXBWHDMC.js} +2 -2
- package/dist/cdn/{UOL6LQRJ.js → AYWX3KW6.js} +2 -2
- package/dist/cdn/{IBDFSTWX.js → B3IN3DJY.js} +2 -2
- package/dist/cdn/{ELBSRAMH.js → BEZWSSYS.js} +2 -2
- package/dist/cdn/{M3OFPTT3.js → BPD6VDN3.js} +2 -2
- package/dist/cdn/{N2MZJBHS.js → BR5BGBOX.js} +2 -2
- package/dist/cdn/{XA34OFHO.js → BXTCLUSK.js} +2 -2
- package/dist/cdn/{ZOPBEUAZ.js → BYAPO6P2.js} +2 -2
- package/dist/cdn/{N5UBRYXZ.js → C24L4MSW.js} +2 -2
- package/dist/cdn/{YTSZZUYS.js → C2JRXUXY.js} +2 -2
- package/dist/cdn/{54NDBS5W.js → C55OWKWP.js} +2 -2
- package/dist/cdn/{NZCTTZQJ.js → C7Y7S4NU.js} +2 -2
- package/dist/cdn/{K6SJCTAS.js → CFHWPF7I.js} +1 -1
- package/dist/cdn/{FNHXNPPV.js → CRCPW7XU.js} +2 -2
- package/dist/cdn/{3S4FG2ZZ.js → CRFHO7BW.js} +2 -2
- package/dist/cdn/{J5LWWUIP.js → CSFSBFDF.js} +2 -2
- package/dist/cdn/{ZEIIGNWR.js → CYIFUTLZ.js} +2 -2
- package/dist/cdn/{6CPKRUI3.js → D3BZ4JKK.js} +1 -1
- package/dist/cdn/{QO56HLQG.js → D7SHA6YV.js} +2 -2
- package/dist/cdn/{T2DUZEDU.js → DAHQXZ7C.js} +1 -1
- package/dist/cdn/{A4JM6VWA.js → DHA6CKJ5.js} +2 -2
- package/dist/cdn/{C3A3SGFC.js → DIWZ4EZC.js} +2 -2
- package/dist/cdn/{A3JKO4I4.js → DLLA4WWL.js} +1 -1
- package/dist/cdn/{FCHOLYNH.js → DOSVUJOV.js} +2 -2
- package/dist/cdn/{3SGIDV3I.js → DP7ML6HU.js} +2 -2
- package/dist/cdn/DRFK3L56.js +4 -0
- package/dist/cdn/{Z3T7XWKC.js → DTIQ7MYW.js} +2 -2
- package/dist/cdn/{5APFWJZZ.js → DTX4EEAG.js} +2 -2
- package/dist/cdn/{YUOGYP2W.js → DU5TL74Q.js} +2 -2
- package/dist/cdn/{YVBTB4PY.js → E2CFMMUE.js} +2 -2
- package/dist/cdn/{2HAFNSIE.js → EB4DFEHA.js} +2 -2
- package/dist/cdn/{2MMQZII3.js → EOEBZDQ7.js} +2 -2
- package/dist/cdn/ET752DLS.js +4 -0
- package/dist/cdn/{455HDVF4.js → EWDSC7JU.js} +2 -2
- package/dist/cdn/{NNQAPUKF.js → EZV7ZQF6.js} +1 -1
- package/dist/cdn/{VUHZ6YXM.js → FB2N4NQN.js} +2 -2
- package/dist/cdn/{QZVIZAH5.js → FBZBMUAD.js} +2 -2
- package/dist/cdn/{AT3MTRQS.js → FMJ3IGTU.js} +1 -1
- package/dist/cdn/{6WQKENE2.js → FP2KIDFS.js} +4 -4
- package/dist/cdn/{O4UWY4LV.js → FQYP65V5.js} +2 -2
- package/dist/cdn/{IVXXAKCK.js → G2TXHXIQ.js} +2 -2
- package/dist/cdn/{3LMFSQQR.js → G475MWQ2.js} +2 -2
- package/dist/cdn/{ZA4R3KFB.js → GA725JQR.js} +2 -2
- package/dist/cdn/{DZXTVGRQ.js → GND4GHDV.js} +2 -2
- package/dist/cdn/{RVOILI7H.js → GP52ZICE.js} +2 -2
- package/dist/cdn/{XCO35G7O.js → GTLMVRBQ.js} +2 -2
- package/dist/cdn/{5USKOL72.js → GXBIS6H4.js} +2 -2
- package/dist/cdn/{J62YOWFC.js → GXI3KDOE.js} +2 -2
- package/dist/cdn/{RFYBQIXD.js → GYCPXIJ5.js} +2 -2
- package/dist/cdn/{SDKQPMU5.js → GZNBACBO.js} +2 -2
- package/dist/cdn/{VYMYL6JP.js → HBE3N77B.js} +2 -2
- package/dist/cdn/{SGX5RQ3B.js → HDW5T7V3.js} +2 -2
- package/dist/cdn/{Y3MVHWDO.js → HFXUVSOV.js} +2 -2
- package/dist/cdn/{OW7E6OZU.js → HG6ROEFU.js} +2 -2
- package/dist/cdn/{SFS5GEDR.js → HHFI6AJ6.js} +2 -2
- package/dist/cdn/{QPNL4XAH.js → HHWQZE3T.js} +1 -1
- package/dist/cdn/{DCP6AHDZ.js → HIXLWRCS.js} +2 -2
- package/dist/cdn/{JY7KFFEJ.js → HKP7U3P5.js} +2 -2
- package/dist/cdn/{JSDNVCX7.js → HMJICBL6.js} +2 -2
- package/dist/cdn/{7GY7BTPK.js → HREL2VNY.js} +2 -2
- package/dist/cdn/{6APCAUUT.js → HUL5SQEE.js} +2 -2
- package/dist/cdn/{ETSCX6UD.js → HVU5S3SS.js} +1 -1
- package/dist/cdn/{UZVRS2XU.js → HXKTFHQR.js} +1 -1
- package/dist/cdn/{U4N25UBP.js → HZWWZ5OV.js} +2 -2
- package/dist/cdn/{PZFNMBVW.js → I645STAC.js} +2 -2
- package/dist/cdn/{ARQHAHK5.js → I72S2GNB.js} +2 -2
- package/dist/cdn/{KSMEO6R5.js → IFSKR5NC.js} +2 -2
- package/dist/cdn/{2XZSJ6JD.js → IIQAYHWH.js} +2 -2
- package/dist/cdn/{DT2GGHBN.js → IJ67TGJO.js} +2 -2
- package/dist/cdn/{GPKFZD7B.js → IRTJHTIG.js} +2 -2
- package/dist/cdn/{UOWOGIE5.js → IRZVL4KH.js} +2 -2
- package/dist/cdn/{RVNPJNAS.js → IT4M2IPN.js} +2 -2
- package/dist/cdn/{CR3NXOPF.js → IYMUBGXL.js} +2 -2
- package/dist/cdn/{I4KZ2A5P.js → J44ASWJ4.js} +2 -2
- package/dist/cdn/{RS6TXCOP.js → JGCUTWDH.js} +2 -2
- package/dist/cdn/{BACSZ2Z7.js → JHPW6QLA.js} +1 -1
- package/dist/cdn/{5NIDGVLZ.js → JJ32NDZX.js} +2 -2
- package/dist/cdn/{JKB6LYON.js → JLEFBKIL.js} +2 -2
- package/dist/cdn/{UBUVKOMA.js → JML5Z4SW.js} +2 -2
- package/dist/cdn/{6PWODZF3.js → JQW32XBP.js} +2 -2
- package/dist/cdn/{5PENO4BC.js → JTNM4TFC.js} +2 -2
- package/dist/cdn/{3XJKMZHA.js → JYDPZBDX.js} +1 -1
- package/dist/cdn/{2BECX5WX.js → K24RDTH6.js} +2 -2
- package/dist/cdn/{JATAGG24.js → K6SZWAR3.js} +2 -2
- package/dist/cdn/{QOPQPJ6E.js → KEPRQ3ES.js} +1 -1
- package/dist/cdn/{5P6SZW5B.js → KGR5GOOM.js} +2 -2
- package/dist/cdn/{XN5WML6J.js → KHJP4IY5.js} +2 -2
- package/dist/cdn/{INDADVJP.js → KSE7HHSL.js} +2 -2
- package/dist/cdn/{XEO56VFL.js → KWE6JXSH.js} +2 -2
- package/dist/cdn/{XIJFQNOB.js → L4O6BNWC.js} +2 -2
- package/dist/cdn/{C7TWT6K2.js → LDMCSIBE.js} +2 -2
- package/dist/cdn/{6QWS7JEN.js → LHCD675Z.js} +2 -2
- package/dist/cdn/{UQBMV5BY.js → LHIJT2HG.js} +2 -2
- package/dist/cdn/{PGFLUWJN.js → LKDIV5SU.js} +2 -2
- package/dist/cdn/{72HLVTY7.js → LLCXPW73.js} +2 -2
- package/dist/cdn/{ROR6SI6U.js → LNEC3E7R.js} +2 -2
- package/dist/cdn/{5BKTEPSJ.js → LUGKZDYN.js} +2 -2
- package/dist/cdn/{DJI7J3C3.js → LVEXDYI4.js} +2 -2
- package/dist/cdn/{N4OHCK66.js → LZVWAYZB.js} +2 -2
- package/dist/cdn/{D6KVYJKN.js → M7CNRM6A.js} +2 -2
- package/dist/cdn/{WVVZ4CLC.js → MA5REVSP.js} +2 -2
- package/dist/cdn/{6RHP2Y7C.js → MANSOOOS.js} +1 -1
- package/dist/cdn/{YFG6Q4W4.js → MBMIPTOA.js} +2 -2
- package/dist/cdn/{Z2MJRFIE.js → MEX4YKRX.js} +2 -2
- package/dist/cdn/{3WC22OVN.js → MJFIELVD.js} +2 -2
- package/dist/cdn/{Y5QDB3GF.js → MNEEEIPJ.js} +2 -2
- package/dist/cdn/{KOQOMT46.js → MYVEMTBD.js} +2 -2
- package/dist/cdn/{KFFWCZKY.js → N2YRZNJW.js} +2 -2
- package/dist/cdn/{6XYU4BZS.js → N5QWENGQ.js} +2 -2
- package/dist/cdn/{X4W4ZZ7O.js → NARGNUFD.js} +2 -2
- package/dist/cdn/{IJBFY7JW.js → NBQSWHCM.js} +2 -2
- package/dist/cdn/{BZFFNFXK.js → NDKH42VU.js} +2 -2
- package/dist/cdn/{GLL5XNBZ.js → NLMEJ6OR.js} +2 -2
- package/dist/cdn/{ZEZCVFYU.js → NN72RJBE.js} +2 -2
- package/dist/cdn/{S56UY63G.js → NNFIBE7G.js} +2 -2
- package/dist/cdn/{R53BLRMX.js → NOADX75H.js} +2 -2
- package/dist/cdn/{QIVTK7HW.js → NOARAMKV.js} +2 -2
- package/dist/cdn/{PLAM4ZSV.js → NPTRZOUL.js} +2 -2
- package/dist/cdn/{QDMUSM3I.js → NS5J2QEB.js} +2 -2
- package/dist/cdn/{2TF5G4JI.js → NWMAPEZO.js} +1 -1
- package/dist/cdn/{MHSBM4WB.js → O2V3QWTR.js} +2 -2
- package/dist/cdn/{OPD73MSN.js → O5DQGL2K.js} +2 -2
- package/dist/cdn/{2OOMOXGH.js → OMSNNRI7.js} +2 -2
- package/dist/cdn/{LWBDG7UH.js → OVEB2NLB.js} +2 -2
- package/dist/cdn/{64XCUKMX.js → OXKYDDEZ.js} +2 -2
- package/dist/cdn/{HM7CZ2CI.js → P2IKZYCY.js} +2 -2
- package/dist/cdn/{JBDNXDLS.js → P6VZV53I.js} +2 -2
- package/dist/cdn/{KETC3CAC.js → P7PCKJWP.js} +2 -2
- package/dist/cdn/{SLKM4GXK.js → PAD56U7M.js} +2 -2
- package/dist/cdn/{OC334CIK.js → PAF4B5CR.js} +2 -2
- package/dist/cdn/{ZHXAH2ZO.js → PGKRFU3R.js} +2 -2
- package/dist/cdn/{ZUGYY22V.js → PJYYGD44.js} +2 -2
- package/dist/cdn/{GOHA6HJP.js → PTAN4GLB.js} +2 -2
- package/dist/cdn/{OC44744D.js → PUAEVLQU.js} +2 -2
- package/dist/cdn/{OI3SHZPE.js → PXZK3CBW.js} +2 -2
- package/dist/cdn/{XQKIPHIH.js → PYKJG7SD.js} +2 -2
- package/dist/cdn/{ZJKJXFXC.js → PYRAMUCP.js} +2 -2
- package/dist/cdn/{WYRW7PJT.js → PZONGH5R.js} +2 -2
- package/dist/cdn/{4ME5QMIF.js → Q3WXELPH.js} +2 -2
- package/dist/cdn/{CQ6SIDRV.js → QKPUNN2K.js} +2 -2
- package/dist/cdn/{COLHBQ5X.js → QKUPYWE6.js} +2 -2
- package/dist/cdn/RCTTGANS.js +4 -0
- package/dist/cdn/{GR5ID3PD.js → REY2ZQR6.js} +1 -1
- package/dist/cdn/{C2XKMOX2.js → RFKLI2UC.js} +2 -2
- package/dist/cdn/{DMRVOPBM.js → RLDDKQ2A.js} +2 -2
- package/dist/cdn/{B4HONVWZ.js → RLI3W2QT.js} +1 -1
- package/dist/cdn/{TQ24PIOH.js → RP3ZDJY3.js} +1 -1
- package/dist/cdn/{SGXJZQ4L.js → RPUUF7I5.js} +2 -2
- package/dist/cdn/{JDSGIOVR.js → RSXDYYA2.js} +2 -2
- package/dist/cdn/{Q5HH7VHO.js → RV3CKUUX.js} +2 -2
- package/dist/cdn/{AH5AIEIN.js → RY2PW6Q6.js} +1 -1
- package/dist/cdn/{LBJE5BZD.js → RYIFJU2L.js} +1 -1
- package/dist/cdn/{QPRN44LY.js → S2PDOHOK.js} +2 -2
- package/dist/cdn/{HOYA4JWQ.js → S46J7E35.js} +2 -2
- package/dist/cdn/{UKDRKFWF.js → S4RIRRI3.js} +2 -2
- package/dist/cdn/{FF7R4YTO.js → S6HJ3I7H.js} +2 -2
- package/dist/cdn/{7OZTZCPH.js → SDENIK4H.js} +2 -2
- package/dist/cdn/{3PIEW24G.js → SHU43YTZ.js} +2 -2
- package/dist/cdn/SPI3VQIT.js +4 -0
- package/dist/cdn/SVS5LLYX.js +4 -0
- package/dist/cdn/SX6I6JSI.js +4 -0
- package/dist/cdn/{EU3TXNP2.js → SXAXFCDU.js} +2 -2
- package/dist/cdn/{PRB7DA6V.js → T35NKXTU.js} +2 -2
- package/dist/cdn/{POG7OHTN.js → TI2OAXLC.js} +2 -2
- package/dist/cdn/{KZWHC2ST.js → TLEVVT7A.js} +2 -2
- package/dist/cdn/{XSNJZI7M.js → TNIKKEFN.js} +2 -2
- package/dist/cdn/{UHBAUGQ4.js → TSVG63JR.js} +1 -1
- package/dist/cdn/{ZJXXAWMH.js → TUFSJ5ED.js} +1 -1
- package/dist/cdn/{NGO6CV3G.js → TXOCFG5N.js} +2 -2
- package/dist/cdn/{TCRWJTPW.js → U2Z3YXS7.js} +2 -2
- package/dist/cdn/{PP63JUSI.js → U3NXYF4O.js} +2 -2
- package/dist/cdn/{5ZAVVIAH.js → UFMHHX7B.js} +2 -2
- package/dist/cdn/{IPIQ52KV.js → UGQ4RM5I.js} +2 -2
- package/dist/cdn/{DWBMQBAB.js → UNVA5BAJ.js} +2 -2
- package/dist/cdn/{CLZ42RFU.js → UQ2LJHER.js} +1 -1
- package/dist/cdn/{RJJHXXVX.js → UUZYQKN4.js} +2 -2
- package/dist/cdn/{YXUMTVRG.js → UYTZEYBK.js} +1 -1
- package/dist/cdn/{ZGO54R7R.js → V3PW6EX3.js} +2 -2
- package/dist/cdn/{CPB7DXI3.js → V5YSOVGP.js} +2 -2
- package/dist/cdn/{VXCG5LEV.js → VC7B7NH7.js} +2 -2
- package/dist/cdn/{AHEWCN4W.js → VDQJCQFK.js} +2 -2
- package/dist/cdn/{BGVU5VPJ.js → VFQJ6YON.js} +2 -2
- package/dist/cdn/VHTVJV3F.js +18 -0
- package/dist/cdn/{BB7RJW6E.js → VOBVDUMB.js} +2 -2
- package/dist/cdn/{JFVYQIUH.js → VS43HQSJ.js} +2 -2
- package/dist/cdn/{XFDA7NEB.js → VUTNTYC5.js} +2 -2
- package/dist/cdn/{TMXXOYO3.js → VYVSHVZB.js} +2 -2
- package/dist/cdn/{IP6ATOM6.js → WAUFDV6T.js} +2 -2
- package/dist/cdn/{RIQZUFV2.js → WBO3TCWN.js} +2 -2
- package/dist/cdn/{A2WX4D7A.js → WDWDMQVM.js} +1 -1
- package/dist/cdn/{AJUGJQUJ.js → WF5UX25P.js} +1 -1
- package/dist/cdn/{6WXHOI6Z.js → WN76KRXW.js} +2 -2
- package/dist/cdn/{GVI4R5J2.js → WQSNANI3.js} +2 -2
- package/dist/cdn/{GA7L2IWK.js → WUBGSVNP.js} +2 -2
- package/dist/cdn/{AGRD4ULC.js → X24ZBRHP.js} +2 -2
- package/dist/cdn/{35BOYRXZ.js → X6GWKDIO.js} +2 -2
- package/dist/cdn/{EXWX56R4.js → XFIYMAZN.js} +2 -2
- package/dist/cdn/{KPKDVL2J.js → XJEPTFMD.js} +2 -2
- package/dist/cdn/{CRYN5SYR.js → XKO4R2YH.js} +2 -2
- package/dist/cdn/{IUBGSA3I.js → XPHFZJND.js} +1 -1
- package/dist/cdn/{TSB43IHY.js → XPJTXSVJ.js} +2 -2
- package/dist/cdn/{AF3RJAL5.js → XQIKYMOT.js} +1 -1
- package/dist/cdn/{FATTGIYI.js → XRZVDWVR.js} +2 -2
- package/dist/cdn/{ZLNLCCC6.js → XS7KQI2S.js} +1 -1
- package/dist/cdn/{CXW7Q33E.js → XX5ZE6Q4.js} +2 -2
- package/dist/cdn/XXPXRGUL.js +4 -0
- package/dist/cdn/{QDFSCCOX.js → XYJXY6OR.js} +2 -2
- package/dist/cdn/{XL4TPC5B.js → YCFUCRRU.js} +2 -2
- package/dist/cdn/{RR3GDG64.js → YGL7EHMU.js} +1 -1
- package/dist/cdn/{INY65VHN.js → YGVTWTVP.js} +2 -2
- package/dist/cdn/{UFQAANOF.js → YIMCEBHV.js} +2 -2
- package/dist/cdn/{MRUWYVHI.js → YJ7ODQWE.js} +2 -2
- package/dist/cdn/{L3IX5SCS.js → YNFTQLNB.js} +2 -2
- package/dist/cdn/{MVN27KOI.js → YWMWF52K.js} +2 -2
- package/dist/cdn/{MRMD4H7O.js → Z2O5FTC6.js} +2 -2
- package/dist/cdn/{5IZBEDEU.js → Z4G45C2O.js} +1 -1
- package/dist/cdn/{L32HIJPV.js → ZHF7YFFZ.js} +2 -2
- package/dist/cdn/{HJJD6V2O.js → ZKPAIAU6.js} +2 -2
- package/dist/cdn/{TCDUH4QD.js → ZL6A3Q67.js} +2 -2
- package/dist/cdn/{ZWGDNNV7.js → ZXKUSH35.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-panel/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-deploy-panel/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.d.ts +8 -0
- package/dist/components/solution-item-accordion/customElement.js +7 -6
- package/dist/components/solution-item-details/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-items-diagram/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-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +40 -1
- package/dist/docs/docs.json +28 -1
- package/dist/docs/vscode.html-custom-data.json +12 -0
- package/dist/docs/web-types.json +17 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cdn/CSTT6IAN.js +0 -4
- package/dist/cdn/F7YKY2OF.js +0 -4
- package/dist/cdn/FY5WSCFM.js +0 -4
- package/dist/cdn/K72NRGFR.js +0 -4
- package/dist/cdn/O4YIZH4Y.js +0 -4
- package/dist/cdn/PTLSWZZ2.js +0 -4
- package/dist/cdn/QBYJ6PX6.js +0 -18
- package/dist/cdn/XY544Q64.js +0 -4
- package/dist/cdn/Y236OPC4.js +0 -4
@@ -1,6 +1,6 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{c as bt}from"./
|
3
|
+
v1.0.0-next.20250528.3 */
|
4
|
+
import{c as bt}from"./KHJP4IY5.js";import{a as Xe,b as gt,c as xt,d as yt,i as wt,j as Ae,k as vt,l as Qe,m as Ye}from"./LUGKZDYN.js";import{b as mt}from"./HXKTFHQR.js";import{a as Oe,c as yr,d as De}from"./RLI3W2QT.js";var Fe=yr((Et,tt)=>{(function(e){typeof Et=="object"&&typeof tt<"u"?tt.exports=e():typeof define=="function"&&define.amd?define([],e):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=e()})(function(){return function e(o,t,r){function s(p,m){if(!t[p]){if(!o[p]){var g=typeof Oe=="function"&&Oe;if(!m&&g)return g(p,!0);if(i)return i(p,!0);var v=new Error("Cannot find module '"+p+"'");throw v.code="MODULE_NOT_FOUND",v}var c=t[p]={exports:{}};o[p][0].call(c.exports,function(x){var u=o[p][1][x];return s(u||x)},c,c.exports,e,o,t,r)}return t[p].exports}for(var i=typeof Oe=="function"&&Oe,l=0;l<r.length;l++)s(r[l]);return s}({1:[function(e,o,t){"use strict";var r=e("./utils"),s=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(l){for(var p,m,g,v,c,x,u,h=[],f=0,w=l.length,_=w,S=r.getTypeOf(l)!=="string";f<l.length;)_=w-f,g=S?(p=l[f++],m=f<w?l[f++]:0,f<w?l[f++]:0):(p=l.charCodeAt(f++),m=f<w?l.charCodeAt(f++):0,f<w?l.charCodeAt(f++):0),v=p>>2,c=(3&p)<<4|m>>4,x=1<_?(15&m)<<2|g>>6:64,u=2<_?63&g:64,h.push(i.charAt(v)+i.charAt(c)+i.charAt(x)+i.charAt(u));return h.join("")},t.decode=function(l){var p,m,g,v,c,x,u=0,h=0,f="data:";if(l.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var w,_=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===i.charAt(64)&&_--,l.charAt(l.length-2)===i.charAt(64)&&_--,_%1!=0)throw new Error("Invalid base64 input, bad content length.");for(w=s.uint8array?new Uint8Array(0|_):new Array(0|_);u<l.length;)p=i.indexOf(l.charAt(u++))<<2|(v=i.indexOf(l.charAt(u++)))>>4,m=(15&v)<<4|(c=i.indexOf(l.charAt(u++)))>>2,g=(3&c)<<6|(x=i.indexOf(l.charAt(u++))),w[h++]=p,c!==64&&(w[h++]=m),x!==64&&(w[h++]=g);return w}},{"./support":30,"./utils":32}],2:[function(e,o,t){"use strict";var r=e("./external"),s=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),l=e("./stream/DataLengthProbe");function p(m,g,v,c,x){this.compressedSize=m,this.uncompressedSize=g,this.crc32=v,this.compression=c,this.compressedContent=x}p.prototype={getContentWorker:function(){var m=new s(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),g=this;return m.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),m},getCompressedWorker:function(){return new s(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(m,g,v){return m.pipe(new i).pipe(new l("uncompressedSize")).pipe(g.compressWorker(v)).pipe(new l("compressedSize")).withStreamInfo("compression",g)},o.exports=p},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,o,t){"use strict";var r=e("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},t.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,o,t){"use strict";var r=e("./utils"),s=function(){for(var i,l=[],p=0;p<256;p++){i=p;for(var m=0;m<8;m++)i=1&i?3988292384^i>>>1:i>>>1;l[p]=i}return l}();o.exports=function(i,l){return i!==void 0&&i.length?r.getTypeOf(i)!=="string"?function(p,m,g,v){var c=s,x=v+g;p^=-1;for(var u=v;u<x;u++)p=p>>>8^c[255&(p^m[u])];return-1^p}(0|l,i,i.length,0):function(p,m,g,v){var c=s,x=v+g;p^=-1;for(var u=v;u<x;u++)p=p>>>8^c[255&(p^m.charCodeAt(u))];return-1^p}(0|l,i,i.length,0):0}},{"./utils":32}],5:[function(e,o,t){"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},{}],6:[function(e,o,t){"use strict";var r=null;r=typeof Promise<"u"?Promise:e("lie"),o.exports={Promise:r}},{lie:37}],7:[function(e,o,t){"use strict";var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=e("pako"),i=e("./utils"),l=e("./stream/GenericWorker"),p=r?"uint8array":"array";function m(g,v){l.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=v,this.meta={}}t.magic="\b\0",i.inherits(m,l),m.prototype.processChunk=function(g){this.meta=g.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(p,g.data),!1)},m.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},m.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},m.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(v){g.push({data:v,meta:g.meta})}},t.compressWorker=function(g){return new m("Deflate",g)},t.uncompressWorker=function(){return new m("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,o,t){"use strict";function r(c,x){var u,h="";for(u=0;u<x;u++)h+=String.fromCharCode(255&c),c>>>=8;return h}function s(c,x,u,h,f,w){var _,S,I=c.file,R=c.compression,T=w!==p.utf8encode,N=i.transformTo("string",w(I.name)),F=i.transformTo("string",p.utf8encode(I.name)),G=I.comment,q=i.transformTo("string",w(G)),b=i.transformTo("string",p.utf8encode(G)),C=F.length!==I.name.length,a=b.length!==G.length,L="",X="",B="",Q=I.dir,W=I.date,J={crc32:0,compressedSize:0,uncompressedSize:0};x&&!u||(J.crc32=c.crc32,J.compressedSize=c.compressedSize,J.uncompressedSize=c.uncompressedSize);var A=0;x&&(A|=8),T||!C&&!a||(A|=2048);var O=0,K=0;Q&&(O|=16),f==="UNIX"?(K=798,O|=function(j,ie){var ce=j;return j||(ce=ie?16893:33204),(65535&ce)<<16}(I.unixPermissions,Q)):(K=20,O|=function(j){return 63&(j||0)}(I.dosPermissions)),_=W.getUTCHours(),_<<=6,_|=W.getUTCMinutes(),_<<=5,_|=W.getUTCSeconds()/2,S=W.getUTCFullYear()-1980,S<<=4,S|=W.getUTCMonth()+1,S<<=5,S|=W.getUTCDate(),C&&(X=r(1,1)+r(m(N),4)+F,L+="up"+r(X.length,2)+X),a&&(B=r(1,1)+r(m(q),4)+b,L+="uc"+r(B.length,2)+B);var $="";return $+=`
|
5
5
|
\0`,$+=r(A,2),$+=R.magic,$+=r(_,2),$+=r(S,2),$+=r(J.crc32,4),$+=r(J.compressedSize,4),$+=r(J.uncompressedSize,4),$+=r(N.length,2),$+=r(L.length,2),{fileRecord:g.LOCAL_FILE_HEADER+$+N+L,dirRecord:g.CENTRAL_FILE_HEADER+r(K,2)+$+r(q.length,2)+"\0\0\0\0"+r(O,4)+r(h,4)+N+L+q}}var i=e("../utils"),l=e("../stream/GenericWorker"),p=e("../utf8"),m=e("../crc32"),g=e("../signature");function v(c,x,u,h){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=x,this.zipPlatform=u,this.encodeFileName=h,this.streamFiles=c,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(v,l),v.prototype.push=function(c){var x=c.meta.percent||0,u=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(c):(this.bytesWritten+=c.data.length,l.prototype.push.call(this,{data:c.data,meta:{currentFile:this.currentFile,percent:u?(x+100*(u-h-1))/u:100}}))},v.prototype.openedSource=function(c){this.currentSourceOffset=this.bytesWritten,this.currentFile=c.file.name;var x=this.streamFiles&&!c.file.dir;if(x){var u=s(c,x,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},v.prototype.closedSource=function(c){this.accumulate=!1;var x=this.streamFiles&&!c.file.dir,u=s(c,x,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),x)this.push({data:function(h){return g.DATA_DESCRIPTOR+r(h.crc32,4)+r(h.compressedSize,4)+r(h.uncompressedSize,4)}(c),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},v.prototype.flush=function(){for(var c=this.bytesWritten,x=0;x<this.dirRecords.length;x++)this.push({data:this.dirRecords[x],meta:{percent:100}});var u=this.bytesWritten-c,h=function(f,w,_,S,I){var R=i.transformTo("string",I(S));return g.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(f,2)+r(f,2)+r(w,4)+r(_,4)+r(R.length,2)+R}(this.dirRecords.length,u,c,this.zipComment,this.encodeFileName);this.push({data:h,meta:{percent:100}})},v.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},v.prototype.registerPrevious=function(c){this._sources.push(c);var x=this;return c.on("data",function(u){x.processChunk(u)}),c.on("end",function(){x.closedSource(x.previous.streamInfo),x._sources.length?x.prepareNextSource():x.end()}),c.on("error",function(u){x.error(u)}),this},v.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},v.prototype.error=function(c){var x=this._sources;if(!l.prototype.error.call(this,c))return!1;for(var u=0;u<x.length;u++)try{x[u].error(c)}catch{}return!0},v.prototype.lock=function(){l.prototype.lock.call(this);for(var c=this._sources,x=0;x<c.length;x++)c[x].lock()},o.exports=v},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,o,t){"use strict";var r=e("../compressions"),s=e("./ZipFileWorker");t.generateWorker=function(i,l,p){var m=new s(l.streamFiles,p,l.platform,l.encodeFileName),g=0;try{i.forEach(function(v,c){g++;var x=function(w,_){var S=w||_,I=r[S];if(!I)throw new Error(S+" is not a valid compression method !");return I}(c.options.compression,l.compression),u=c.options.compressionOptions||l.compressionOptions||{},h=c.dir,f=c.date;c._compressWorker(x,u).withStreamInfo("file",{name:v,dir:h,date:f,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(m)}),m.entriesCount=g}catch(v){m.error(v)}return m}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,o,t){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new r;for(var i in this)typeof this[i]!="function"&&(s[i]=this[i]);return s}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(s,i){return new r().loadAsync(s,i)},r.external=e("./external"),o.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,o,t){"use strict";var r=e("./utils"),s=e("./external"),i=e("./utf8"),l=e("./zipEntries"),p=e("./stream/Crc32Probe"),m=e("./nodejsUtils");function g(v){return new s.Promise(function(c,x){var u=v.decompressed.getContentWorker().pipe(new p);u.on("error",function(h){x(h)}).on("end",function(){u.streamInfo.crc32!==v.decompressed.crc32?x(new Error("Corrupted zip : CRC32 mismatch")):c()}).resume()})}o.exports=function(v,c){var x=this;return c=r.extend(c||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),m.isNode&&m.isStream(v)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",v,!0,c.optimizedBinaryString,c.base64).then(function(u){var h=new l(c);return h.load(u),h}).then(function(u){var h=[s.Promise.resolve(u)],f=u.files;if(c.checkCRC32)for(var w=0;w<f.length;w++)h.push(g(f[w]));return s.Promise.all(h)}).then(function(u){for(var h=u.shift(),f=h.files,w=0;w<f.length;w++){var _=f[w],S=_.fileNameStr,I=r.resolve(_.fileNameStr);x.file(I,_.decompressed,{binary:!0,optimizedBinaryString:!0,date:_.date,dir:_.dir,comment:_.fileCommentStr.length?_.fileCommentStr:null,unixPermissions:_.unixPermissions,dosPermissions:_.dosPermissions,createFolders:c.createFolders}),_.dir||(x.file(I).unsafeOriginalName=S)}return h.zipComment.length&&(x.comment=h.zipComment),x})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,o,t){"use strict";var r=e("../utils"),s=e("../stream/GenericWorker");function i(l,p){s.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(p)}r.inherits(i,s),i.prototype._bindStream=function(l){var p=this;(this._stream=l).pause(),l.on("data",function(m){p.push({data:m,meta:{percent:0}})}).on("error",function(m){p.isPaused?this.generatedError=m:p.error(m)}).on("end",function(){p.isPaused?p._upstreamEnded=!0:p.end()})},i.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},o.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,o,t){"use strict";var r=e("readable-stream").Readable;function s(i,l,p){r.call(this,l),this._helper=i;var m=this;i.on("data",function(g,v){m.push(g)||m._helper.pause(),p&&p(v)}).on("error",function(g){m.emit("error",g)}).on("end",function(){m.push(null)})}e("../utils").inherits(s,r),s.prototype._read=function(){this._helper.resume()},o.exports=s},{"../utils":32,"readable-stream":16}],14:[function(e,o,t){"use strict";o.exports={isNode:typeof Buffer<"u",newBufferFrom:function(r,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(r,s);if(typeof r=="number")throw new Error('The "data" argument must not be a number');return new Buffer(r,s)},allocBuffer:function(r){if(Buffer.alloc)return Buffer.alloc(r);var s=new Buffer(r);return s.fill(0),s},isBuffer:function(r){return Buffer.isBuffer(r)},isStream:function(r){return r&&typeof r.on=="function"&&typeof r.pause=="function"&&typeof r.resume=="function"}}},{}],15:[function(e,o,t){"use strict";function r(I,R,T){var N,F=i.getTypeOf(R),G=i.extend(T||{},m);G.date=G.date||new Date,G.compression!==null&&(G.compression=G.compression.toUpperCase()),typeof G.unixPermissions=="string"&&(G.unixPermissions=parseInt(G.unixPermissions,8)),G.unixPermissions&&16384&G.unixPermissions&&(G.dir=!0),G.dosPermissions&&16&G.dosPermissions&&(G.dir=!0),G.dir&&(I=f(I)),G.createFolders&&(N=h(I))&&w.call(this,N,!0);var q=F==="string"&&G.binary===!1&&G.base64===!1;T&&T.binary!==void 0||(G.binary=!q),(R instanceof g&&R.uncompressedSize===0||G.dir||!R||R.length===0)&&(G.base64=!1,G.binary=!0,R="",G.compression="STORE",F="string");var b=null;b=R instanceof g||R instanceof l?R:x.isNode&&x.isStream(R)?new u(I,R):i.prepareContent(I,R,G.binary,G.optimizedBinaryString,G.base64);var C=new v(I,b,G);this.files[I]=C}var s=e("./utf8"),i=e("./utils"),l=e("./stream/GenericWorker"),p=e("./stream/StreamHelper"),m=e("./defaults"),g=e("./compressedObject"),v=e("./zipObject"),c=e("./generate"),x=e("./nodejsUtils"),u=e("./nodejs/NodejsStreamInputAdapter"),h=function(I){I.slice(-1)==="/"&&(I=I.substring(0,I.length-1));var R=I.lastIndexOf("/");return 0<R?I.substring(0,R):""},f=function(I){return I.slice(-1)!=="/"&&(I+="/"),I},w=function(I,R){return R=R!==void 0?R:m.createFolders,I=f(I),this.files[I]||r.call(this,I,null,{dir:!0,createFolders:R}),this.files[I]};function _(I){return Object.prototype.toString.call(I)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(I){var R,T,N;for(R in this.files)N=this.files[R],(T=R.slice(this.root.length,R.length))&&R.slice(0,this.root.length)===this.root&&I(T,N)},filter:function(I){var R=[];return this.forEach(function(T,N){I(T,N)&&R.push(N)}),R},file:function(I,R,T){if(arguments.length!==1)return I=this.root+I,r.call(this,I,R,T),this;if(_(I)){var N=I;return this.filter(function(G,q){return!q.dir&&N.test(G)})}var F=this.files[this.root+I];return F&&!F.dir?F:null},folder:function(I){if(!I)return this;if(_(I))return this.filter(function(F,G){return G.dir&&I.test(F)});var R=this.root+I,T=w.call(this,R),N=this.clone();return N.root=T.name,N},remove:function(I){I=this.root+I;var R=this.files[I];if(R||(I.slice(-1)!=="/"&&(I+="/"),R=this.files[I]),R&&!R.dir)delete this.files[I];else for(var T=this.filter(function(F,G){return G.name.slice(0,I.length)===I}),N=0;N<T.length;N++)delete this.files[T[N].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(I){var R,T={};try{if((T=i.extend(I||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=T.type.toLowerCase(),T.compression=T.compression.toUpperCase(),T.type==="binarystring"&&(T.type="string"),!T.type)throw new Error("No output type specified.");i.checkSupport(T.type),T.platform!=="darwin"&&T.platform!=="freebsd"&&T.platform!=="linux"&&T.platform!=="sunos"||(T.platform="UNIX"),T.platform==="win32"&&(T.platform="DOS");var N=T.comment||this.comment||"";R=c.generateWorker(this,T,N)}catch(F){(R=new l("error")).error(F)}return new p(R,T.type||"string",T.mimeType)},generateAsync:function(I,R){return this.generateInternalStream(I).accumulate(R)},generateNodeStream:function(I,R){return(I=I||{}).type||(I.type="nodebuffer"),this.generateInternalStream(I).toNodejsStream(R)}};o.exports=S},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,o,t){"use strict";o.exports=e("stream")},{stream:void 0}],17:[function(e,o,t){"use strict";var r=e("./DataReader");function s(i){r.call(this,i);for(var l=0;l<this.data.length;l++)i[l]=255&i[l]}e("../utils").inherits(s,r),s.prototype.byteAt=function(i){return this.data[this.zero+i]},s.prototype.lastIndexOfSignature=function(i){for(var l=i.charCodeAt(0),p=i.charCodeAt(1),m=i.charCodeAt(2),g=i.charCodeAt(3),v=this.length-4;0<=v;--v)if(this.data[v]===l&&this.data[v+1]===p&&this.data[v+2]===m&&this.data[v+3]===g)return v-this.zero;return-1},s.prototype.readAndCheckSignature=function(i){var l=i.charCodeAt(0),p=i.charCodeAt(1),m=i.charCodeAt(2),g=i.charCodeAt(3),v=this.readData(4);return l===v[0]&&p===v[1]&&m===v[2]&&g===v[3]},s.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},o.exports=s},{"../utils":32,"./DataReader":18}],18:[function(e,o,t){"use strict";var r=e("../utils");function s(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(i){this.checkIndex(this.index+i)},checkIndex:function(i){if(this.length<this.zero+i||i<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+i+"). Corrupted zip ?")},setIndex:function(i){this.checkIndex(i),this.index=i},skip:function(i){this.setIndex(this.index+i)},byteAt:function(){},readInt:function(i){var l,p=0;for(this.checkOffset(i),l=this.index+i-1;l>=this.index;l--)p=(p<<8)+this.byteAt(l);return this.index+=i,p},readString:function(i){return r.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},o.exports=s},{"../utils":32}],19:[function(e,o,t){"use strict";var r=e("./Uint8ArrayReader");function s(i){r.call(this,i)}e("../utils").inherits(s,r),s.prototype.readData=function(i){this.checkOffset(i);var l=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},o.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,o,t){"use strict";var r=e("./DataReader");function s(i){r.call(this,i)}e("../utils").inherits(s,r),s.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},s.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},s.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},s.prototype.readData=function(i){this.checkOffset(i);var l=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},o.exports=s},{"../utils":32,"./DataReader":18}],21:[function(e,o,t){"use strict";var r=e("./ArrayReader");function s(i){r.call(this,i)}e("../utils").inherits(s,r),s.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,l},o.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(e,o,t){"use strict";var r=e("../utils"),s=e("../support"),i=e("./ArrayReader"),l=e("./StringReader"),p=e("./NodeBufferReader"),m=e("./Uint8ArrayReader");o.exports=function(g){var v=r.getTypeOf(g);return r.checkSupport(v),v!=="string"||s.uint8array?v==="nodebuffer"?new p(g):s.uint8array?new m(r.transformTo("uint8array",g)):new i(r.transformTo("array",g)):new l(g)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,o,t){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,o,t){"use strict";var r=e("./GenericWorker"),s=e("../utils");function i(l){r.call(this,"ConvertWorker to "+l),this.destType=l}s.inherits(i,r),i.prototype.processChunk=function(l){this.push({data:s.transformTo(this.destType,l.data),meta:l.meta})},o.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,o,t){"use strict";var r=e("./GenericWorker"),s=e("../crc32");function i(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,r),i.prototype.processChunk=function(l){this.streamInfo.crc32=s(l.data,this.streamInfo.crc32||0),this.push(l)},o.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,o,t){"use strict";var r=e("../utils"),s=e("./GenericWorker");function i(l){s.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}r.inherits(i,s),i.prototype.processChunk=function(l){if(l){var p=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=p+l.data.length}s.prototype.processChunk.call(this,l)},o.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,o,t){"use strict";var r=e("../utils"),s=e("./GenericWorker");function i(l){s.call(this,"DataWorker");var p=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(m){p.dataIsReady=!0,p.data=m,p.max=m&&m.length||0,p.type=r.getTypeOf(m),p.isPaused||p._tickAndRepeat()},function(m){p.error(m)})}r.inherits(i,s),i.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,p=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,p);break;case"uint8array":l=this.data.subarray(this.index,p);break;case"array":case"nodebuffer":l=this.data.slice(this.index,p)}return this.index=p,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},o.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,o,t){"use strict";function r(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,i){return this._listeners[s].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,i){if(this._listeners[s])for(var l=0;l<this._listeners[s].length;l++)this._listeners[s][l].call(this,i)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var i=this;return s.on("data",function(l){i.processChunk(l)}),s.on("end",function(){i.end()}),s.on("error",function(l){i.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,i){return this.extraStreamInfo[s]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},o.exports=r},{}],29:[function(e,o,t){"use strict";var r=e("../utils"),s=e("./ConvertWorker"),i=e("./GenericWorker"),l=e("../base64"),p=e("../support"),m=e("../external"),g=null;if(p.nodestream)try{g=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function v(x,u){return new m.Promise(function(h,f){var w=[],_=x._internalType,S=x._outputType,I=x._mimeType;x.on("data",function(R,T){w.push(R),u&&u(T)}).on("error",function(R){w=[],f(R)}).on("end",function(){try{var R=function(T,N,F){switch(T){case"blob":return r.newBlob(r.transformTo("arraybuffer",N),F);case"base64":return l.encode(N);default:return r.transformTo(T,N)}}(S,function(T,N){var F,G=0,q=null,b=0;for(F=0;F<N.length;F++)b+=N[F].length;switch(T){case"string":return N.join("");case"array":return Array.prototype.concat.apply([],N);case"uint8array":for(q=new Uint8Array(b),F=0;F<N.length;F++)q.set(N[F],G),G+=N[F].length;return q;case"nodebuffer":return Buffer.concat(N);default:throw new Error("concat : unsupported type '"+T+"'")}}(_,w),I);h(R)}catch(T){f(T)}w=[]}).resume()})}function c(x,u,h){var f=u;switch(u){case"blob":case"arraybuffer":f="uint8array";break;case"base64":f="string"}try{this._internalType=f,this._outputType=u,this._mimeType=h,r.checkSupport(f),this._worker=x.pipe(new s(f)),x.lock()}catch(w){this._worker=new i("error"),this._worker.error(w)}}c.prototype={accumulate:function(x){return v(this,x)},on:function(x,u){var h=this;return x==="data"?this._worker.on(x,function(f){u.call(h,f.data,f.meta)}):this._worker.on(x,function(){r.delay(u,arguments,h)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(x){if(r.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new g(this,{objectMode:this._outputType!=="nodebuffer"},x)}},o.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,o,t){"use strict";if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",t.nodebuffer=typeof Buffer<"u",t.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")t.blob=!1;else{var r=new ArrayBuffer(0);try{t.blob=new Blob([r],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(r),t.blob=s.getBlob("application/zip").size===0}catch{t.blob=!1}}}try{t.nodestream=!!e("readable-stream").Readable}catch{t.nodestream=!1}},{"readable-stream":16}],31:[function(e,o,t){"use strict";for(var r=e("./utils"),s=e("./support"),i=e("./nodejsUtils"),l=e("./stream/GenericWorker"),p=new Array(256),m=0;m<256;m++)p[m]=252<=m?6:248<=m?5:240<=m?4:224<=m?3:192<=m?2:1;p[254]=p[254]=1;function g(){l.call(this,"utf-8 decode"),this.leftOver=null}function v(){l.call(this,"utf-8 encode")}t.utf8encode=function(c){return s.nodebuffer?i.newBufferFrom(c,"utf-8"):function(x){var u,h,f,w,_,S=x.length,I=0;for(w=0;w<S;w++)(64512&(h=x.charCodeAt(w)))==55296&&w+1<S&&(64512&(f=x.charCodeAt(w+1)))==56320&&(h=65536+(h-55296<<10)+(f-56320),w++),I+=h<128?1:h<2048?2:h<65536?3:4;for(u=s.uint8array?new Uint8Array(I):new Array(I),w=_=0;_<I;w++)(64512&(h=x.charCodeAt(w)))==55296&&w+1<S&&(64512&(f=x.charCodeAt(w+1)))==56320&&(h=65536+(h-55296<<10)+(f-56320),w++),h<128?u[_++]=h:(h<2048?u[_++]=192|h>>>6:(h<65536?u[_++]=224|h>>>12:(u[_++]=240|h>>>18,u[_++]=128|h>>>12&63),u[_++]=128|h>>>6&63),u[_++]=128|63&h);return u}(c)},t.utf8decode=function(c){return s.nodebuffer?r.transformTo("nodebuffer",c).toString("utf-8"):function(x){var u,h,f,w,_=x.length,S=new Array(2*_);for(u=h=0;u<_;)if((f=x[u++])<128)S[h++]=f;else if(4<(w=p[f]))S[h++]=65533,u+=w-1;else{for(f&=w===2?31:w===3?15:7;1<w&&u<_;)f=f<<6|63&x[u++],w--;1<w?S[h++]=65533:f<65536?S[h++]=f:(f-=65536,S[h++]=55296|f>>10&1023,S[h++]=56320|1023&f)}return S.length!==h&&(S.subarray?S=S.subarray(0,h):S.length=h),r.applyFromCharCode(S)}(c=r.transformTo(s.uint8array?"uint8array":"array",c))},r.inherits(g,l),g.prototype.processChunk=function(c){var x=r.transformTo(s.uint8array?"uint8array":"array",c.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var u=x;(x=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),x.set(u,this.leftOver.length)}else x=this.leftOver.concat(x);this.leftOver=null}var h=function(w,_){var S;for((_=_||w.length)>w.length&&(_=w.length),S=_-1;0<=S&&(192&w[S])==128;)S--;return S<0||S===0?_:S+p[w[S]]>_?S:_}(x),f=x;h!==x.length&&(s.uint8array?(f=x.subarray(0,h),this.leftOver=x.subarray(h,x.length)):(f=x.slice(0,h),this.leftOver=x.slice(h,x.length))),this.push({data:t.utf8decode(f),meta:c.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=g,r.inherits(v,l),v.prototype.processChunk=function(c){this.push({data:t.utf8encode(c.data),meta:c.meta})},t.Utf8EncodeWorker=v},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,o,t){"use strict";var r=e("./support"),s=e("./base64"),i=e("./nodejsUtils"),l=e("./external");function p(u){return u}function m(u,h){for(var f=0;f<u.length;++f)h[f]=255&u.charCodeAt(f);return h}e("setimmediate"),t.newBlob=function(u,h){t.checkSupport("blob");try{return new Blob([u],{type:h})}catch{try{var f=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return f.append(u),f.getBlob(h)}catch{throw new Error("Bug : can't construct the Blob.")}}};var g={stringifyByChunk:function(u,h,f){var w=[],_=0,S=u.length;if(S<=f)return String.fromCharCode.apply(null,u);for(;_<S;)h==="array"||h==="nodebuffer"?w.push(String.fromCharCode.apply(null,u.slice(_,Math.min(_+f,S)))):w.push(String.fromCharCode.apply(null,u.subarray(_,Math.min(_+f,S)))),_+=f;return w.join("")},stringifyByChar:function(u){for(var h="",f=0;f<u.length;f++)h+=String.fromCharCode(u[f]);return h},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch{return!1}}()}};function v(u){var h=65536,f=t.getTypeOf(u),w=!0;if(f==="uint8array"?w=g.applyCanBeUsed.uint8array:f==="nodebuffer"&&(w=g.applyCanBeUsed.nodebuffer),w)for(;1<h;)try{return g.stringifyByChunk(u,f,h)}catch{h=Math.floor(h/2)}return g.stringifyByChar(u)}function c(u,h){for(var f=0;f<u.length;f++)h[f]=u[f];return h}t.applyFromCharCode=v;var x={};x.string={string:p,array:function(u){return m(u,new Array(u.length))},arraybuffer:function(u){return x.string.uint8array(u).buffer},uint8array:function(u){return m(u,new Uint8Array(u.length))},nodebuffer:function(u){return m(u,i.allocBuffer(u.length))}},x.array={string:v,array:p,arraybuffer:function(u){return new Uint8Array(u).buffer},uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return i.newBufferFrom(u)}},x.arraybuffer={string:function(u){return v(new Uint8Array(u))},array:function(u){return c(new Uint8Array(u),new Array(u.byteLength))},arraybuffer:p,uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return i.newBufferFrom(new Uint8Array(u))}},x.uint8array={string:v,array:function(u){return c(u,new Array(u.length))},arraybuffer:function(u){return u.buffer},uint8array:p,nodebuffer:function(u){return i.newBufferFrom(u)}},x.nodebuffer={string:v,array:function(u){return c(u,new Array(u.length))},arraybuffer:function(u){return x.nodebuffer.uint8array(u).buffer},uint8array:function(u){return c(u,new Uint8Array(u.length))},nodebuffer:p},t.transformTo=function(u,h){if(h=h||"",!u)return h;t.checkSupport(u);var f=t.getTypeOf(h);return x[f][u](h)},t.resolve=function(u){for(var h=u.split("/"),f=[],w=0;w<h.length;w++){var _=h[w];_==="."||_===""&&w!==0&&w!==h.length-1||(_===".."?f.pop():f.push(_))}return f.join("/")},t.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":r.nodebuffer&&i.isBuffer(u)?"nodebuffer":r.uint8array&&u instanceof Uint8Array?"uint8array":r.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(u){if(!r[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(u){var h,f,w="";for(f=0;f<(u||"").length;f++)w+="\\x"+((h=u.charCodeAt(f))<16?"0":"")+h.toString(16).toUpperCase();return w},t.delay=function(u,h,f){setImmediate(function(){u.apply(f||null,h||[])})},t.inherits=function(u,h){function f(){}f.prototype=h.prototype,u.prototype=new f},t.extend=function(){var u,h,f={};for(u=0;u<arguments.length;u++)for(h in arguments[u])Object.prototype.hasOwnProperty.call(arguments[u],h)&&f[h]===void 0&&(f[h]=arguments[u][h]);return f},t.prepareContent=function(u,h,f,w,_){return l.Promise.resolve(h).then(function(S){return r.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new l.Promise(function(I,R){var T=new FileReader;T.onload=function(N){I(N.target.result)},T.onerror=function(N){R(N.target.error)},T.readAsArrayBuffer(S)}):S}).then(function(S){var I=t.getTypeOf(S);return I?(I==="arraybuffer"?S=t.transformTo("uint8array",S):I==="string"&&(_?S=s.decode(S):f&&w!==!0&&(S=function(R){return m(R,r.uint8array?new Uint8Array(R.length):new Array(R.length))}(S))),S):l.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,o,t){"use strict";var r=e("./reader/readerFor"),s=e("./utils"),i=e("./signature"),l=e("./zipEntry"),p=e("./support");function m(g){this.files=[],this.loadOptions=g}m.prototype={checkSignature:function(g){if(!this.reader.readAndCheckSignature(g)){this.reader.index-=4;var v=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(v)+", expected "+s.pretty(g)+")")}},isSignature:function(g,v){var c=this.reader.index;this.reader.setIndex(g);var x=this.reader.readString(4)===v;return this.reader.setIndex(c),x},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var g=this.reader.readData(this.zipCommentLength),v=p.uint8array?"uint8array":"array",c=s.transformTo(v,g);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var g,v,c,x=this.zip64EndOfCentralSize-44;0<x;)g=this.reader.readInt(2),v=this.reader.readInt(4),c=this.reader.readData(v),this.zip64ExtensibleData[g]={id:g,length:v,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var g,v;for(g=0;g<this.files.length;g++)v=this.files[g],this.reader.setIndex(v.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),v.readLocalPart(this.reader),v.handleUTF8(),v.processAttributes()},readCentralDir:function(){var g;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(g=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(g);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var g=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(g<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(g);var v=g;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(g=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(g),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var x=v-c;if(0<x)this.isSignature(v,i.CENTRAL_FILE_HEADER)||(this.reader.zero=x);else if(x<0)throw new Error("Corrupted zip: missing "+Math.abs(x)+" bytes.")},prepareReader:function(g){this.reader=r(g)},load:function(g){this.prepareReader(g),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},o.exports=m},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,o,t){"use strict";var r=e("./reader/readerFor"),s=e("./utils"),i=e("./compressedObject"),l=e("./crc32"),p=e("./utf8"),m=e("./compressions"),g=e("./support");function v(c,x){this.options=c,this.loadOptions=x}v.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var x,u;if(c.skip(22),this.fileNameLength=c.readInt(2),u=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(u),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((x=function(h){for(var f in m)if(Object.prototype.hasOwnProperty.call(m,f)&&m[f].magic===h)return m[f];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,x,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var x=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(x),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=r(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var x,u,h,f=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<f;)x=c.readInt(2),u=c.readInt(2),h=c.readData(u),this.extraFields[x]={id:x,length:u,value:h};c.setIndex(f)},handleUTF8:function(){var c=g.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=p.utf8decode(this.fileName),this.fileCommentStr=p.utf8decode(this.fileComment);else{var x=this.findExtraFieldUnicodePath();if(x!==null)this.fileNameStr=x;else{var u=s.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var h=this.findExtraFieldUnicodeComment();if(h!==null)this.fileCommentStr=h;else{var f=s.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var x=r(c.value);return x.readInt(1)!==1||l(this.fileName)!==x.readInt(4)?null:p.utf8decode(x.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var x=r(c.value);return x.readInt(1)!==1||l(this.fileComment)!==x.readInt(4)?null:p.utf8decode(x.readData(c.length-5))}return null}},o.exports=v},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,o,t){"use strict";function r(x,u,h){this.name=x,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=u,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var s=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),l=e("./utf8"),p=e("./compressedObject"),m=e("./stream/GenericWorker");r.prototype={internalStream:function(x){var u=null,h="string";try{if(!x)throw new Error("No output type specified.");var f=(h=x.toLowerCase())==="string"||h==="text";h!=="binarystring"&&h!=="text"||(h="string"),u=this._decompressWorker();var w=!this._dataBinary;w&&!f&&(u=u.pipe(new l.Utf8EncodeWorker)),!w&&f&&(u=u.pipe(new l.Utf8DecodeWorker))}catch(_){(u=new m("error")).error(_)}return new s(u,h,"")},async:function(x,u){return this.internalStream(x).accumulate(u)},nodeStream:function(x,u){return this.internalStream(x||"nodebuffer").toNodejsStream(u)},_compressWorker:function(x,u){if(this._data instanceof p&&this._data.compression.magic===x.magic)return this._data.getCompressedWorker();var h=this._decompressWorker();return this._dataBinary||(h=h.pipe(new l.Utf8EncodeWorker)),p.createWorkerFrom(h,x,u)},_decompressWorker:function(){return this._data instanceof p?this._data.getContentWorker():this._data instanceof m?this._data:new i(this._data)}};for(var g=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],v=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<g.length;c++)r.prototype[g[c]]=v;o.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,o,t){(function(r){"use strict";var s,i,l=r.MutationObserver||r.WebKitMutationObserver;if(l){var p=0,m=new l(x),g=r.document.createTextNode("");m.observe(g,{characterData:!0}),s=function(){g.data=p=++p%2}}else if(r.setImmediate||r.MessageChannel===void 0)s="document"in r&&"onreadystatechange"in r.document.createElement("script")?function(){var u=r.document.createElement("script");u.onreadystatechange=function(){x(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},r.document.documentElement.appendChild(u)}:function(){setTimeout(x,0)};else{var v=new r.MessageChannel;v.port1.onmessage=x,s=function(){v.port2.postMessage(0)}}var c=[];function x(){var u,h;i=!0;for(var f=c.length;f;){for(h=c,c=[],u=-1;++u<f;)h[u]();f=c.length}i=!1}o.exports=function(u){c.push(u)!==1||i||s()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(e,o,t){"use strict";var r=e("immediate");function s(){}var i={},l=["REJECTED"],p=["FULFILLED"],m=["PENDING"];function g(f){if(typeof f!="function")throw new TypeError("resolver must be a function");this.state=m,this.queue=[],this.outcome=void 0,f!==s&&u(this,f)}function v(f,w,_){this.promise=f,typeof w=="function"&&(this.onFulfilled=w,this.callFulfilled=this.otherCallFulfilled),typeof _=="function"&&(this.onRejected=_,this.callRejected=this.otherCallRejected)}function c(f,w,_){r(function(){var S;try{S=w(_)}catch(I){return i.reject(f,I)}S===f?i.reject(f,new TypeError("Cannot resolve promise with itself")):i.resolve(f,S)})}function x(f){var w=f&&f.then;if(f&&(typeof f=="object"||typeof f=="function")&&typeof w=="function")return function(){w.apply(f,arguments)}}function u(f,w){var _=!1;function S(T){_||(_=!0,i.reject(f,T))}function I(T){_||(_=!0,i.resolve(f,T))}var R=h(function(){w(I,S)});R.status==="error"&&S(R.value)}function h(f,w){var _={};try{_.value=f(w),_.status="success"}catch(S){_.status="error",_.value=S}return _}(o.exports=g).prototype.finally=function(f){if(typeof f!="function")return this;var w=this.constructor;return this.then(function(_){return w.resolve(f()).then(function(){return _})},function(_){return w.resolve(f()).then(function(){throw _})})},g.prototype.catch=function(f){return this.then(null,f)},g.prototype.then=function(f,w){if(typeof f!="function"&&this.state===p||typeof w!="function"&&this.state===l)return this;var _=new this.constructor(s);return this.state!==m?c(_,this.state===p?f:w,this.outcome):this.queue.push(new v(_,f,w)),_},v.prototype.callFulfilled=function(f){i.resolve(this.promise,f)},v.prototype.otherCallFulfilled=function(f){c(this.promise,this.onFulfilled,f)},v.prototype.callRejected=function(f){i.reject(this.promise,f)},v.prototype.otherCallRejected=function(f){c(this.promise,this.onRejected,f)},i.resolve=function(f,w){var _=h(x,w);if(_.status==="error")return i.reject(f,_.value);var S=_.value;if(S)u(f,S);else{f.state=p,f.outcome=w;for(var I=-1,R=f.queue.length;++I<R;)f.queue[I].callFulfilled(w)}return f},i.reject=function(f,w){f.state=l,f.outcome=w;for(var _=-1,S=f.queue.length;++_<S;)f.queue[_].callRejected(w);return f},g.resolve=function(f){return f instanceof this?f:i.resolve(new this(s),f)},g.reject=function(f){var w=new this(s);return i.reject(w,f)},g.all=function(f){var w=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=f.length,S=!1;if(!_)return this.resolve([]);for(var I=new Array(_),R=0,T=-1,N=new this(s);++T<_;)F(f[T],T);return N;function F(G,q){w.resolve(G).then(function(b){I[q]=b,++R!==_||S||(S=!0,i.resolve(N,I))},function(b){S||(S=!0,i.reject(N,b))})}},g.race=function(f){var w=this;if(Object.prototype.toString.call(f)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=f.length,S=!1;if(!_)return this.resolve([]);for(var I=-1,R=new this(s);++I<_;)T=f[I],w.resolve(T).then(function(N){S||(S=!0,i.resolve(R,N))},function(N){S||(S=!0,i.reject(R,N))});var T;return R}},{immediate:36}],38:[function(e,o,t){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),o.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,o,t){"use strict";var r=e("./zlib/deflate"),s=e("./utils/common"),i=e("./utils/strings"),l=e("./zlib/messages"),p=e("./zlib/zstream"),m=Object.prototype.toString,g=0,v=-1,c=0,x=8;function u(f){if(!(this instanceof u))return new u(f);this.options=s.assign({level:v,method:x,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},f||{});var w=this.options;w.raw&&0<w.windowBits?w.windowBits=-w.windowBits:w.gzip&&0<w.windowBits&&w.windowBits<16&&(w.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var _=r.deflateInit2(this.strm,w.level,w.method,w.windowBits,w.memLevel,w.strategy);if(_!==g)throw new Error(l[_]);if(w.header&&r.deflateSetHeader(this.strm,w.header),w.dictionary){var S;if(S=typeof w.dictionary=="string"?i.string2buf(w.dictionary):m.call(w.dictionary)==="[object ArrayBuffer]"?new Uint8Array(w.dictionary):w.dictionary,(_=r.deflateSetDictionary(this.strm,S))!==g)throw new Error(l[_]);this._dict_set=!0}}function h(f,w){var _=new u(w);if(_.push(f,!0),_.err)throw _.msg||l[_.err];return _.result}u.prototype.push=function(f,w){var _,S,I=this.strm,R=this.options.chunkSize;if(this.ended)return!1;S=w===~~w?w:w===!0?4:0,typeof f=="string"?I.input=i.string2buf(f):m.call(f)==="[object ArrayBuffer]"?I.input=new Uint8Array(f):I.input=f,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new s.Buf8(R),I.next_out=0,I.avail_out=R),(_=r.deflate(I,S))!==1&&_!==g)return this.onEnd(_),!(this.ended=!0);I.avail_out!==0&&(I.avail_in!==0||S!==4&&S!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(s.shrinkBuf(I.output,I.next_out))):this.onData(s.shrinkBuf(I.output,I.next_out)))}while((0<I.avail_in||I.avail_out===0)&&_!==1);return S===4?(_=r.deflateEnd(this.strm),this.onEnd(_),this.ended=!0,_===g):S!==2||(this.onEnd(g),!(I.avail_out=0))},u.prototype.onData=function(f){this.chunks.push(f)},u.prototype.onEnd=function(f){f===g&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},t.Deflate=u,t.deflate=h,t.deflateRaw=function(f,w){return(w=w||{}).raw=!0,h(f,w)},t.gzip=function(f,w){return(w=w||{}).gzip=!0,h(f,w)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,o,t){"use strict";var r=e("./zlib/inflate"),s=e("./utils/common"),i=e("./utils/strings"),l=e("./zlib/constants"),p=e("./zlib/messages"),m=e("./zlib/zstream"),g=e("./zlib/gzheader"),v=Object.prototype.toString;function c(u){if(!(this instanceof c))return new c(u);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},u||{});var h=this.options;h.raw&&0<=h.windowBits&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),!(0<=h.windowBits&&h.windowBits<16)||u&&u.windowBits||(h.windowBits+=32),15<h.windowBits&&h.windowBits<48&&(15&h.windowBits)==0&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var f=r.inflateInit2(this.strm,h.windowBits);if(f!==l.Z_OK)throw new Error(p[f]);this.header=new g,r.inflateGetHeader(this.strm,this.header)}function x(u,h){var f=new c(h);if(f.push(u,!0),f.err)throw f.msg||p[f.err];return f.result}c.prototype.push=function(u,h){var f,w,_,S,I,R,T=this.strm,N=this.options.chunkSize,F=this.options.dictionary,G=!1;if(this.ended)return!1;w=h===~~h?h:h===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof u=="string"?T.input=i.binstring2buf(u):v.call(u)==="[object ArrayBuffer]"?T.input=new Uint8Array(u):T.input=u,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new s.Buf8(N),T.next_out=0,T.avail_out=N),(f=r.inflate(T,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&F&&(R=typeof F=="string"?i.string2buf(F):v.call(F)==="[object ArrayBuffer]"?new Uint8Array(F):F,f=r.inflateSetDictionary(this.strm,R)),f===l.Z_BUF_ERROR&&G===!0&&(f=l.Z_OK,G=!1),f!==l.Z_STREAM_END&&f!==l.Z_OK)return this.onEnd(f),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&f!==l.Z_STREAM_END&&(T.avail_in!==0||w!==l.Z_FINISH&&w!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(_=i.utf8border(T.output,T.next_out),S=T.next_out-_,I=i.buf2string(T.output,_),T.next_out=S,T.avail_out=N-S,S&&s.arraySet(T.output,T.output,_,S,0),this.onData(I)):this.onData(s.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(G=!0)}while((0<T.avail_in||T.avail_out===0)&&f!==l.Z_STREAM_END);return f===l.Z_STREAM_END&&(w=l.Z_FINISH),w===l.Z_FINISH?(f=r.inflateEnd(this.strm),this.onEnd(f),this.ended=!0,f===l.Z_OK):w!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(T.avail_out=0))},c.prototype.onData=function(u){this.chunks.push(u)},c.prototype.onEnd=function(u){u===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},t.Inflate=c,t.inflate=x,t.inflateRaw=function(u,h){return(h=h||{}).raw=!0,x(u,h)},t.ungzip=x},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,o,t){"use strict";var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";t.assign=function(l){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var m=p.shift();if(m){if(typeof m!="object")throw new TypeError(m+"must be non-object");for(var g in m)m.hasOwnProperty(g)&&(l[g]=m[g])}}return l},t.shrinkBuf=function(l,p){return l.length===p?l:l.subarray?l.subarray(0,p):(l.length=p,l)};var s={arraySet:function(l,p,m,g,v){if(p.subarray&&l.subarray)l.set(p.subarray(m,m+g),v);else for(var c=0;c<g;c++)l[v+c]=p[m+c]},flattenChunks:function(l){var p,m,g,v,c,x;for(p=g=0,m=l.length;p<m;p++)g+=l[p].length;for(x=new Uint8Array(g),p=v=0,m=l.length;p<m;p++)c=l[p],x.set(c,v),v+=c.length;return x}},i={arraySet:function(l,p,m,g,v){for(var c=0;c<g;c++)l[v+c]=p[m+c]},flattenChunks:function(l){return[].concat.apply([],l)}};t.setTyped=function(l){l?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,s)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(r)},{}],42:[function(e,o,t){"use strict";var r=e("./common"),s=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{i=!1}for(var l=new r.Buf8(256),p=0;p<256;p++)l[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function m(g,v){if(v<65537&&(g.subarray&&i||!g.subarray&&s))return String.fromCharCode.apply(null,r.shrinkBuf(g,v));for(var c="",x=0;x<v;x++)c+=String.fromCharCode(g[x]);return c}l[254]=l[254]=1,t.string2buf=function(g){var v,c,x,u,h,f=g.length,w=0;for(u=0;u<f;u++)(64512&(c=g.charCodeAt(u)))==55296&&u+1<f&&(64512&(x=g.charCodeAt(u+1)))==56320&&(c=65536+(c-55296<<10)+(x-56320),u++),w+=c<128?1:c<2048?2:c<65536?3:4;for(v=new r.Buf8(w),u=h=0;h<w;u++)(64512&(c=g.charCodeAt(u)))==55296&&u+1<f&&(64512&(x=g.charCodeAt(u+1)))==56320&&(c=65536+(c-55296<<10)+(x-56320),u++),c<128?v[h++]=c:(c<2048?v[h++]=192|c>>>6:(c<65536?v[h++]=224|c>>>12:(v[h++]=240|c>>>18,v[h++]=128|c>>>12&63),v[h++]=128|c>>>6&63),v[h++]=128|63&c);return v},t.buf2binstring=function(g){return m(g,g.length)},t.binstring2buf=function(g){for(var v=new r.Buf8(g.length),c=0,x=v.length;c<x;c++)v[c]=g.charCodeAt(c);return v},t.buf2string=function(g,v){var c,x,u,h,f=v||g.length,w=new Array(2*f);for(c=x=0;c<f;)if((u=g[c++])<128)w[x++]=u;else if(4<(h=l[u]))w[x++]=65533,c+=h-1;else{for(u&=h===2?31:h===3?15:7;1<h&&c<f;)u=u<<6|63&g[c++],h--;1<h?w[x++]=65533:u<65536?w[x++]=u:(u-=65536,w[x++]=55296|u>>10&1023,w[x++]=56320|1023&u)}return m(w,x)},t.utf8border=function(g,v){var c;for((v=v||g.length)>g.length&&(v=g.length),c=v-1;0<=c&&(192&g[c])==128;)c--;return c<0||c===0?v:c+l[g[c]]>v?c:v}},{"./common":41}],43:[function(e,o,t){"use strict";o.exports=function(r,s,i,l){for(var p=65535&r|0,m=r>>>16&65535|0,g=0;i!==0;){for(i-=g=2e3<i?2e3:i;m=m+(p=p+s[l++]|0)|0,--g;);p%=65521,m%=65521}return p|m<<16|0}},{}],44:[function(e,o,t){"use strict";o.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,o,t){"use strict";var r=function(){for(var s,i=[],l=0;l<256;l++){s=l;for(var p=0;p<8;p++)s=1&s?3988292384^s>>>1:s>>>1;i[l]=s}return i}();o.exports=function(s,i,l,p){var m=r,g=p+l;s^=-1;for(var v=p;v<g;v++)s=s>>>8^m[255&(s^i[v])];return-1^s}},{}],46:[function(e,o,t){"use strict";var r,s=e("../utils/common"),i=e("./trees"),l=e("./adler32"),p=e("./crc32"),m=e("./messages"),g=0,v=4,c=0,x=-2,u=-1,h=4,f=2,w=8,_=9,S=286,I=30,R=19,T=2*S+1,N=15,F=3,G=258,q=G+F+1,b=42,C=113,a=1,L=2,X=3,B=4;function Q(n,z){return n.msg=m[z],z}function W(n){return(n<<1)-(4<n?9:0)}function J(n){for(var z=n.length;0<=--z;)n[z]=0}function A(n){var z=n.state,P=z.pending;P>n.avail_out&&(P=n.avail_out),P!==0&&(s.arraySet(n.output,z.pending_buf,z.pending_out,P,n.next_out),n.next_out+=P,z.pending_out+=P,n.total_out+=P,n.avail_out-=P,z.pending-=P,z.pending===0&&(z.pending_out=0))}function O(n,z){i._tr_flush_block(n,0<=n.block_start?n.block_start:-1,n.strstart-n.block_start,z),n.block_start=n.strstart,A(n.strm)}function K(n,z){n.pending_buf[n.pending++]=z}function $(n,z){n.pending_buf[n.pending++]=z>>>8&255,n.pending_buf[n.pending++]=255&z}function j(n,z){var P,y,d=n.max_chain_length,k=n.strstart,D=n.prev_length,U=n.nice_match,E=n.strstart>n.w_size-q?n.strstart-(n.w_size-q):0,V=n.window,Z=n.w_mask,M=n.prev,H=n.strstart+G,re=V[k+D-1],ee=V[k+D];n.prev_length>=n.good_match&&(d>>=2),U>n.lookahead&&(U=n.lookahead);do if(V[(P=z)+D]===ee&&V[P+D-1]===re&&V[P]===V[k]&&V[++P]===V[k+1]){k+=2,P++;do;while(V[++k]===V[++P]&&V[++k]===V[++P]&&V[++k]===V[++P]&&V[++k]===V[++P]&&V[++k]===V[++P]&&V[++k]===V[++P]&&V[++k]===V[++P]&&V[++k]===V[++P]&&k<H);if(y=G-(H-k),k=H-G,D<y){if(n.match_start=z,U<=(D=y))break;re=V[k+D-1],ee=V[k+D]}}while((z=M[z&Z])>E&&--d!=0);return D<=n.lookahead?D:n.lookahead}function ie(n){var z,P,y,d,k,D,U,E,V,Z,M=n.w_size;do{if(d=n.window_size-n.lookahead-n.strstart,n.strstart>=M+(M-q)){for(s.arraySet(n.window,n.window,M,M,0),n.match_start-=M,n.strstart-=M,n.block_start-=M,z=P=n.hash_size;y=n.head[--z],n.head[z]=M<=y?y-M:0,--P;);for(z=P=M;y=n.prev[--z],n.prev[z]=M<=y?y-M:0,--P;);d+=M}if(n.strm.avail_in===0)break;if(D=n.strm,U=n.window,E=n.strstart+n.lookahead,V=d,Z=void 0,Z=D.avail_in,V<Z&&(Z=V),P=Z===0?0:(D.avail_in-=Z,s.arraySet(U,D.input,D.next_in,Z,E),D.state.wrap===1?D.adler=l(D.adler,U,Z,E):D.state.wrap===2&&(D.adler=p(D.adler,U,Z,E)),D.next_in+=Z,D.total_in+=Z,Z),n.lookahead+=P,n.lookahead+n.insert>=F)for(k=n.strstart-n.insert,n.ins_h=n.window[k],n.ins_h=(n.ins_h<<n.hash_shift^n.window[k+1])&n.hash_mask;n.insert&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[k+F-1])&n.hash_mask,n.prev[k&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=k,k++,n.insert--,!(n.lookahead+n.insert<F)););}while(n.lookahead<q&&n.strm.avail_in!==0)}function ce(n,z){for(var P,y;;){if(n.lookahead<q){if(ie(n),n.lookahead<q&&z===g)return a;if(n.lookahead===0)break}if(P=0,n.lookahead>=F&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+F-1])&n.hash_mask,P=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),P!==0&&n.strstart-P<=n.w_size-q&&(n.match_length=j(n,P)),n.match_length>=F)if(y=i._tr_tally(n,n.strstart-n.match_start,n.match_length-F),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=F){for(n.match_length--;n.strstart++,n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+F-1])&n.hash_mask,P=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart,--n.match_length!=0;);n.strstart++}else n.strstart+=n.match_length,n.match_length=0,n.ins_h=n.window[n.strstart],n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+1])&n.hash_mask;else y=i._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++;if(y&&(O(n,!1),n.strm.avail_out===0))return a}return n.insert=n.strstart<F-1?n.strstart:F-1,z===v?(O(n,!0),n.strm.avail_out===0?X:B):n.last_lit&&(O(n,!1),n.strm.avail_out===0)?a:L}function Y(n,z){for(var P,y,d;;){if(n.lookahead<q){if(ie(n),n.lookahead<q&&z===g)return a;if(n.lookahead===0)break}if(P=0,n.lookahead>=F&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+F-1])&n.hash_mask,P=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),n.prev_length=n.match_length,n.prev_match=n.match_start,n.match_length=F-1,P!==0&&n.prev_length<n.max_lazy_match&&n.strstart-P<=n.w_size-q&&(n.match_length=j(n,P),n.match_length<=5&&(n.strategy===1||n.match_length===F&&4096<n.strstart-n.match_start)&&(n.match_length=F-1)),n.prev_length>=F&&n.match_length<=n.prev_length){for(d=n.strstart+n.lookahead-F,y=i._tr_tally(n,n.strstart-1-n.prev_match,n.prev_length-F),n.lookahead-=n.prev_length-1,n.prev_length-=2;++n.strstart<=d&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+F-1])&n.hash_mask,P=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),--n.prev_length!=0;);if(n.match_available=0,n.match_length=F-1,n.strstart++,y&&(O(n,!1),n.strm.avail_out===0))return a}else if(n.match_available){if((y=i._tr_tally(n,0,n.window[n.strstart-1]))&&O(n,!1),n.strstart++,n.lookahead--,n.strm.avail_out===0)return a}else n.match_available=1,n.strstart++,n.lookahead--}return n.match_available&&(y=i._tr_tally(n,0,n.window[n.strstart-1]),n.match_available=0),n.insert=n.strstart<F-1?n.strstart:F-1,z===v?(O(n,!0),n.strm.avail_out===0?X:B):n.last_lit&&(O(n,!1),n.strm.avail_out===0)?a:L}function te(n,z,P,y,d){this.good_length=n,this.max_lazy=z,this.nice_length=P,this.max_chain=y,this.func=d}function ae(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=w,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*T),this.dyn_dtree=new s.Buf16(2*(2*I+1)),this.bl_tree=new s.Buf16(2*(2*R+1)),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(N+1),this.heap=new s.Buf16(2*S+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*S+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function se(n){var z;return n&&n.state?(n.total_in=n.total_out=0,n.data_type=f,(z=n.state).pending=0,z.pending_out=0,z.wrap<0&&(z.wrap=-z.wrap),z.status=z.wrap?b:C,n.adler=z.wrap===2?0:1,z.last_flush=g,i._tr_init(z),c):Q(n,x)}function me(n){var z=se(n);return z===c&&function(P){P.window_size=2*P.w_size,J(P.head),P.max_lazy_match=r[P.level].max_lazy,P.good_match=r[P.level].good_length,P.nice_match=r[P.level].nice_length,P.max_chain_length=r[P.level].max_chain,P.strstart=0,P.block_start=0,P.lookahead=0,P.insert=0,P.match_length=P.prev_length=F-1,P.match_available=0,P.ins_h=0}(n.state),z}function fe(n,z,P,y,d,k){if(!n)return x;var D=1;if(z===u&&(z=6),y<0?(D=0,y=-y):15<y&&(D=2,y-=16),d<1||_<d||P!==w||y<8||15<y||z<0||9<z||k<0||h<k)return Q(n,x);y===8&&(y=9);var U=new ae;return(n.state=U).strm=n,U.wrap=D,U.gzhead=null,U.w_bits=y,U.w_size=1<<U.w_bits,U.w_mask=U.w_size-1,U.hash_bits=d+7,U.hash_size=1<<U.hash_bits,U.hash_mask=U.hash_size-1,U.hash_shift=~~((U.hash_bits+F-1)/F),U.window=new s.Buf8(2*U.w_size),U.head=new s.Buf16(U.hash_size),U.prev=new s.Buf16(U.w_size),U.lit_bufsize=1<<d+6,U.pending_buf_size=4*U.lit_bufsize,U.pending_buf=new s.Buf8(U.pending_buf_size),U.d_buf=1*U.lit_bufsize,U.l_buf=3*U.lit_bufsize,U.level=z,U.strategy=k,U.method=P,me(n)}r=[new te(0,0,0,0,function(n,z){var P=65535;for(P>n.pending_buf_size-5&&(P=n.pending_buf_size-5);;){if(n.lookahead<=1){if(ie(n),n.lookahead===0&&z===g)return a;if(n.lookahead===0)break}n.strstart+=n.lookahead,n.lookahead=0;var y=n.block_start+P;if((n.strstart===0||n.strstart>=y)&&(n.lookahead=n.strstart-y,n.strstart=y,O(n,!1),n.strm.avail_out===0)||n.strstart-n.block_start>=n.w_size-q&&(O(n,!1),n.strm.avail_out===0))return a}return n.insert=0,z===v?(O(n,!0),n.strm.avail_out===0?X:B):(n.strstart>n.block_start&&(O(n,!1),n.strm.avail_out),a)}),new te(4,4,8,4,ce),new te(4,5,16,8,ce),new te(4,6,32,32,ce),new te(4,4,16,16,Y),new te(8,16,32,32,Y),new te(8,16,128,128,Y),new te(8,32,128,256,Y),new te(32,128,258,1024,Y),new te(32,258,258,4096,Y)],t.deflateInit=function(n,z){return fe(n,z,w,15,8,0)},t.deflateInit2=fe,t.deflateReset=me,t.deflateResetKeep=se,t.deflateSetHeader=function(n,z){return n&&n.state?n.state.wrap!==2?x:(n.state.gzhead=z,c):x},t.deflate=function(n,z){var P,y,d,k;if(!n||!n.state||5<z||z<0)return n?Q(n,x):x;if(y=n.state,!n.output||!n.input&&n.avail_in!==0||y.status===666&&z!==v)return Q(n,n.avail_out===0?-5:x);if(y.strm=n,P=y.last_flush,y.last_flush=z,y.status===b)if(y.wrap===2)n.adler=0,K(y,31),K(y,139),K(y,8),y.gzhead?(K(y,(y.gzhead.text?1:0)+(y.gzhead.hcrc?2:0)+(y.gzhead.extra?4:0)+(y.gzhead.name?8:0)+(y.gzhead.comment?16:0)),K(y,255&y.gzhead.time),K(y,y.gzhead.time>>8&255),K(y,y.gzhead.time>>16&255),K(y,y.gzhead.time>>24&255),K(y,y.level===9?2:2<=y.strategy||y.level<2?4:0),K(y,255&y.gzhead.os),y.gzhead.extra&&y.gzhead.extra.length&&(K(y,255&y.gzhead.extra.length),K(y,y.gzhead.extra.length>>8&255)),y.gzhead.hcrc&&(n.adler=p(n.adler,y.pending_buf,y.pending,0)),y.gzindex=0,y.status=69):(K(y,0),K(y,0),K(y,0),K(y,0),K(y,0),K(y,y.level===9?2:2<=y.strategy||y.level<2?4:0),K(y,3),y.status=C);else{var D=w+(y.w_bits-8<<4)<<8;D|=(2<=y.strategy||y.level<2?0:y.level<6?1:y.level===6?2:3)<<6,y.strstart!==0&&(D|=32),D+=31-D%31,y.status=C,$(y,D),y.strstart!==0&&($(y,n.adler>>>16),$(y,65535&n.adler)),n.adler=1}if(y.status===69)if(y.gzhead.extra){for(d=y.pending;y.gzindex<(65535&y.gzhead.extra.length)&&(y.pending!==y.pending_buf_size||(y.gzhead.hcrc&&y.pending>d&&(n.adler=p(n.adler,y.pending_buf,y.pending-d,d)),A(n),d=y.pending,y.pending!==y.pending_buf_size));)K(y,255&y.gzhead.extra[y.gzindex]),y.gzindex++;y.gzhead.hcrc&&y.pending>d&&(n.adler=p(n.adler,y.pending_buf,y.pending-d,d)),y.gzindex===y.gzhead.extra.length&&(y.gzindex=0,y.status=73)}else y.status=73;if(y.status===73)if(y.gzhead.name){d=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>d&&(n.adler=p(n.adler,y.pending_buf,y.pending-d,d)),A(n),d=y.pending,y.pending===y.pending_buf_size)){k=1;break}k=y.gzindex<y.gzhead.name.length?255&y.gzhead.name.charCodeAt(y.gzindex++):0,K(y,k)}while(k!==0);y.gzhead.hcrc&&y.pending>d&&(n.adler=p(n.adler,y.pending_buf,y.pending-d,d)),k===0&&(y.gzindex=0,y.status=91)}else y.status=91;if(y.status===91)if(y.gzhead.comment){d=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>d&&(n.adler=p(n.adler,y.pending_buf,y.pending-d,d)),A(n),d=y.pending,y.pending===y.pending_buf_size)){k=1;break}k=y.gzindex<y.gzhead.comment.length?255&y.gzhead.comment.charCodeAt(y.gzindex++):0,K(y,k)}while(k!==0);y.gzhead.hcrc&&y.pending>d&&(n.adler=p(n.adler,y.pending_buf,y.pending-d,d)),k===0&&(y.status=103)}else y.status=103;if(y.status===103&&(y.gzhead.hcrc?(y.pending+2>y.pending_buf_size&&A(n),y.pending+2<=y.pending_buf_size&&(K(y,255&n.adler),K(y,n.adler>>8&255),n.adler=0,y.status=C)):y.status=C),y.pending!==0){if(A(n),n.avail_out===0)return y.last_flush=-1,c}else if(n.avail_in===0&&W(z)<=W(P)&&z!==v)return Q(n,-5);if(y.status===666&&n.avail_in!==0)return Q(n,-5);if(n.avail_in!==0||y.lookahead!==0||z!==g&&y.status!==666){var U=y.strategy===2?function(E,V){for(var Z;;){if(E.lookahead===0&&(ie(E),E.lookahead===0)){if(V===g)return a;break}if(E.match_length=0,Z=i._tr_tally(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++,Z&&(O(E,!1),E.strm.avail_out===0))return a}return E.insert=0,V===v?(O(E,!0),E.strm.avail_out===0?X:B):E.last_lit&&(O(E,!1),E.strm.avail_out===0)?a:L}(y,z):y.strategy===3?function(E,V){for(var Z,M,H,re,ee=E.window;;){if(E.lookahead<=G){if(ie(E),E.lookahead<=G&&V===g)return a;if(E.lookahead===0)break}if(E.match_length=0,E.lookahead>=F&&0<E.strstart&&(M=ee[H=E.strstart-1])===ee[++H]&&M===ee[++H]&&M===ee[++H]){re=E.strstart+G;do;while(M===ee[++H]&&M===ee[++H]&&M===ee[++H]&&M===ee[++H]&&M===ee[++H]&&M===ee[++H]&&M===ee[++H]&&M===ee[++H]&&H<re);E.match_length=G-(re-H),E.match_length>E.lookahead&&(E.match_length=E.lookahead)}if(E.match_length>=F?(Z=i._tr_tally(E,1,E.match_length-F),E.lookahead-=E.match_length,E.strstart+=E.match_length,E.match_length=0):(Z=i._tr_tally(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++),Z&&(O(E,!1),E.strm.avail_out===0))return a}return E.insert=0,V===v?(O(E,!0),E.strm.avail_out===0?X:B):E.last_lit&&(O(E,!1),E.strm.avail_out===0)?a:L}(y,z):r[y.level].func(y,z);if(U!==X&&U!==B||(y.status=666),U===a||U===X)return n.avail_out===0&&(y.last_flush=-1),c;if(U===L&&(z===1?i._tr_align(y):z!==5&&(i._tr_stored_block(y,0,0,!1),z===3&&(J(y.head),y.lookahead===0&&(y.strstart=0,y.block_start=0,y.insert=0))),A(n),n.avail_out===0))return y.last_flush=-1,c}return z!==v?c:y.wrap<=0?1:(y.wrap===2?(K(y,255&n.adler),K(y,n.adler>>8&255),K(y,n.adler>>16&255),K(y,n.adler>>24&255),K(y,255&n.total_in),K(y,n.total_in>>8&255),K(y,n.total_in>>16&255),K(y,n.total_in>>24&255)):($(y,n.adler>>>16),$(y,65535&n.adler)),A(n),0<y.wrap&&(y.wrap=-y.wrap),y.pending!==0?c:1)},t.deflateEnd=function(n){var z;return n&&n.state?(z=n.state.status)!==b&&z!==69&&z!==73&&z!==91&&z!==103&&z!==C&&z!==666?Q(n,x):(n.state=null,z===C?Q(n,-3):c):x},t.deflateSetDictionary=function(n,z){var P,y,d,k,D,U,E,V,Z=z.length;if(!n||!n.state||(k=(P=n.state).wrap)===2||k===1&&P.status!==b||P.lookahead)return x;for(k===1&&(n.adler=l(n.adler,z,Z,0)),P.wrap=0,Z>=P.w_size&&(k===0&&(J(P.head),P.strstart=0,P.block_start=0,P.insert=0),V=new s.Buf8(P.w_size),s.arraySet(V,z,Z-P.w_size,P.w_size,0),z=V,Z=P.w_size),D=n.avail_in,U=n.next_in,E=n.input,n.avail_in=Z,n.next_in=0,n.input=z,ie(P);P.lookahead>=F;){for(y=P.strstart,d=P.lookahead-(F-1);P.ins_h=(P.ins_h<<P.hash_shift^P.window[y+F-1])&P.hash_mask,P.prev[y&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=y,y++,--d;);P.strstart=y,P.lookahead=F-1,ie(P)}return P.strstart+=P.lookahead,P.block_start=P.strstart,P.insert=P.lookahead,P.lookahead=0,P.match_length=P.prev_length=F-1,P.match_available=0,n.next_in=U,n.input=E,n.avail_in=D,P.wrap=k,c},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,o,t){"use strict";o.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,o,t){"use strict";o.exports=function(r,s){var i,l,p,m,g,v,c,x,u,h,f,w,_,S,I,R,T,N,F,G,q,b,C,a,L;i=r.state,l=r.next_in,a=r.input,p=l+(r.avail_in-5),m=r.next_out,L=r.output,g=m-(s-r.avail_out),v=m+(r.avail_out-257),c=i.dmax,x=i.wsize,u=i.whave,h=i.wnext,f=i.window,w=i.hold,_=i.bits,S=i.lencode,I=i.distcode,R=(1<<i.lenbits)-1,T=(1<<i.distbits)-1;e:do{_<15&&(w+=a[l++]<<_,_+=8,w+=a[l++]<<_,_+=8),N=S[w&R];t:for(;;){if(w>>>=F=N>>>24,_-=F,(F=N>>>16&255)===0)L[m++]=65535&N;else{if(!(16&F)){if((64&F)==0){N=S[(65535&N)+(w&(1<<F)-1)];continue t}if(32&F){i.mode=12;break e}r.msg="invalid literal/length code",i.mode=30;break e}G=65535&N,(F&=15)&&(_<F&&(w+=a[l++]<<_,_+=8),G+=w&(1<<F)-1,w>>>=F,_-=F),_<15&&(w+=a[l++]<<_,_+=8,w+=a[l++]<<_,_+=8),N=I[w&T];r:for(;;){if(w>>>=F=N>>>24,_-=F,!(16&(F=N>>>16&255))){if((64&F)==0){N=I[(65535&N)+(w&(1<<F)-1)];continue r}r.msg="invalid distance code",i.mode=30;break e}if(q=65535&N,_<(F&=15)&&(w+=a[l++]<<_,(_+=8)<F&&(w+=a[l++]<<_,_+=8)),c<(q+=w&(1<<F)-1)){r.msg="invalid distance too far back",i.mode=30;break e}if(w>>>=F,_-=F,(F=m-g)<q){if(u<(F=q-F)&&i.sane){r.msg="invalid distance too far back",i.mode=30;break e}if(C=f,(b=0)===h){if(b+=x-F,F<G){for(G-=F;L[m++]=f[b++],--F;);b=m-q,C=L}}else if(h<F){if(b+=x+h-F,(F-=h)<G){for(G-=F;L[m++]=f[b++],--F;);if(b=0,h<G){for(G-=F=h;L[m++]=f[b++],--F;);b=m-q,C=L}}}else if(b+=h-F,F<G){for(G-=F;L[m++]=f[b++],--F;);b=m-q,C=L}for(;2<G;)L[m++]=C[b++],L[m++]=C[b++],L[m++]=C[b++],G-=3;G&&(L[m++]=C[b++],1<G&&(L[m++]=C[b++]))}else{for(b=m-q;L[m++]=L[b++],L[m++]=L[b++],L[m++]=L[b++],2<(G-=3););G&&(L[m++]=L[b++],1<G&&(L[m++]=L[b++]))}break}}break}}while(l<p&&m<v);l-=G=_>>3,w&=(1<<(_-=G<<3))-1,r.next_in=l,r.next_out=m,r.avail_in=l<p?p-l+5:5-(l-p),r.avail_out=m<v?v-m+257:257-(m-v),i.hold=w,i.bits=_}},{}],49:[function(e,o,t){"use strict";var r=e("../utils/common"),s=e("./adler32"),i=e("./crc32"),l=e("./inffast"),p=e("./inftrees"),m=1,g=2,v=0,c=-2,x=1,u=852,h=592;function f(b){return(b>>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function w(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(b){var C;return b&&b.state?(C=b.state,b.total_in=b.total_out=C.total=0,b.msg="",C.wrap&&(b.adler=1&C.wrap),C.mode=x,C.last=0,C.havedict=0,C.dmax=32768,C.head=null,C.hold=0,C.bits=0,C.lencode=C.lendyn=new r.Buf32(u),C.distcode=C.distdyn=new r.Buf32(h),C.sane=1,C.back=-1,v):c}function S(b){var C;return b&&b.state?((C=b.state).wsize=0,C.whave=0,C.wnext=0,_(b)):c}function I(b,C){var a,L;return b&&b.state?(L=b.state,C<0?(a=0,C=-C):(a=1+(C>>4),C<48&&(C&=15)),C&&(C<8||15<C)?c:(L.window!==null&&L.wbits!==C&&(L.window=null),L.wrap=a,L.wbits=C,S(b))):c}function R(b,C){var a,L;return b?(L=new w,(b.state=L).window=null,(a=I(b,C))!==v&&(b.state=null),a):c}var T,N,F=!0;function G(b){if(F){var C;for(T=new r.Buf32(512),N=new r.Buf32(32),C=0;C<144;)b.lens[C++]=8;for(;C<256;)b.lens[C++]=9;for(;C<280;)b.lens[C++]=7;for(;C<288;)b.lens[C++]=8;for(p(m,b.lens,0,288,T,0,b.work,{bits:9}),C=0;C<32;)b.lens[C++]=5;p(g,b.lens,0,32,N,0,b.work,{bits:5}),F=!1}b.lencode=T,b.lenbits=9,b.distcode=N,b.distbits=5}function q(b,C,a,L){var X,B=b.state;return B.window===null&&(B.wsize=1<<B.wbits,B.wnext=0,B.whave=0,B.window=new r.Buf8(B.wsize)),L>=B.wsize?(r.arraySet(B.window,C,a-B.wsize,B.wsize,0),B.wnext=0,B.whave=B.wsize):(L<(X=B.wsize-B.wnext)&&(X=L),r.arraySet(B.window,C,a-L,X,B.wnext),(L-=X)?(r.arraySet(B.window,C,a-L,L,0),B.wnext=L,B.whave=B.wsize):(B.wnext+=X,B.wnext===B.wsize&&(B.wnext=0),B.whave<B.wsize&&(B.whave+=X))),0}t.inflateReset=S,t.inflateReset2=I,t.inflateResetKeep=_,t.inflateInit=function(b){return R(b,15)},t.inflateInit2=R,t.inflate=function(b,C){var a,L,X,B,Q,W,J,A,O,K,$,j,ie,ce,Y,te,ae,se,me,fe,n,z,P,y,d=0,k=new r.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!b||!b.state||!b.output||!b.input&&b.avail_in!==0)return c;(a=b.state).mode===12&&(a.mode=13),Q=b.next_out,X=b.output,J=b.avail_out,B=b.next_in,L=b.input,W=b.avail_in,A=a.hold,O=a.bits,K=W,$=J,z=v;e:for(;;)switch(a.mode){case x:if(a.wrap===0){a.mode=13;break}for(;O<16;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}if(2&a.wrap&&A===35615){k[a.check=0]=255&A,k[1]=A>>>8&255,a.check=i(a.check,k,2,0),O=A=0,a.mode=2;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&A)<<8)+(A>>8))%31){b.msg="incorrect header check",a.mode=30;break}if((15&A)!=8){b.msg="unknown compression method",a.mode=30;break}if(O-=4,n=8+(15&(A>>>=4)),a.wbits===0)a.wbits=n;else if(n>a.wbits){b.msg="invalid window size",a.mode=30;break}a.dmax=1<<n,b.adler=a.check=1,a.mode=512&A?10:12,O=A=0;break;case 2:for(;O<16;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}if(a.flags=A,(255&a.flags)!=8){b.msg="unknown compression method",a.mode=30;break}if(57344&a.flags){b.msg="unknown header flags set",a.mode=30;break}a.head&&(a.head.text=A>>8&1),512&a.flags&&(k[0]=255&A,k[1]=A>>>8&255,a.check=i(a.check,k,2,0)),O=A=0,a.mode=3;case 3:for(;O<32;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}a.head&&(a.head.time=A),512&a.flags&&(k[0]=255&A,k[1]=A>>>8&255,k[2]=A>>>16&255,k[3]=A>>>24&255,a.check=i(a.check,k,4,0)),O=A=0,a.mode=4;case 4:for(;O<16;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}a.head&&(a.head.xflags=255&A,a.head.os=A>>8),512&a.flags&&(k[0]=255&A,k[1]=A>>>8&255,a.check=i(a.check,k,2,0)),O=A=0,a.mode=5;case 5:if(1024&a.flags){for(;O<16;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}a.length=A,a.head&&(a.head.extra_len=A),512&a.flags&&(k[0]=255&A,k[1]=A>>>8&255,a.check=i(a.check,k,2,0)),O=A=0}else a.head&&(a.head.extra=null);a.mode=6;case 6:if(1024&a.flags&&(W<(j=a.length)&&(j=W),j&&(a.head&&(n=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),r.arraySet(a.head.extra,L,B,j,n)),512&a.flags&&(a.check=i(a.check,L,j,B)),W-=j,B+=j,a.length-=j),a.length))break e;a.length=0,a.mode=7;case 7:if(2048&a.flags){if(W===0)break e;for(j=0;n=L[B+j++],a.head&&n&&a.length<65536&&(a.head.name+=String.fromCharCode(n)),n&&j<W;);if(512&a.flags&&(a.check=i(a.check,L,j,B)),W-=j,B+=j,n)break e}else a.head&&(a.head.name=null);a.length=0,a.mode=8;case 8:if(4096&a.flags){if(W===0)break e;for(j=0;n=L[B+j++],a.head&&n&&a.length<65536&&(a.head.comment+=String.fromCharCode(n)),n&&j<W;);if(512&a.flags&&(a.check=i(a.check,L,j,B)),W-=j,B+=j,n)break e}else a.head&&(a.head.comment=null);a.mode=9;case 9:if(512&a.flags){for(;O<16;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}if(A!==(65535&a.check)){b.msg="header crc mismatch",a.mode=30;break}O=A=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),b.adler=a.check=0,a.mode=12;break;case 10:for(;O<32;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}b.adler=a.check=f(A),O=A=0,a.mode=11;case 11:if(a.havedict===0)return b.next_out=Q,b.avail_out=J,b.next_in=B,b.avail_in=W,a.hold=A,a.bits=O,2;b.adler=a.check=1,a.mode=12;case 12:if(C===5||C===6)break e;case 13:if(a.last){A>>>=7&O,O-=7&O,a.mode=27;break}for(;O<3;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}switch(a.last=1&A,O-=1,3&(A>>>=1)){case 0:a.mode=14;break;case 1:if(G(a),a.mode=20,C!==6)break;A>>>=2,O-=2;break e;case 2:a.mode=17;break;case 3:b.msg="invalid block type",a.mode=30}A>>>=2,O-=2;break;case 14:for(A>>>=7&O,O-=7&O;O<32;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}if((65535&A)!=(A>>>16^65535)){b.msg="invalid stored block lengths",a.mode=30;break}if(a.length=65535&A,O=A=0,a.mode=15,C===6)break e;case 15:a.mode=16;case 16:if(j=a.length){if(W<j&&(j=W),J<j&&(j=J),j===0)break e;r.arraySet(X,L,B,j,Q),W-=j,B+=j,J-=j,Q+=j,a.length-=j;break}a.mode=12;break;case 17:for(;O<14;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}if(a.nlen=257+(31&A),A>>>=5,O-=5,a.ndist=1+(31&A),A>>>=5,O-=5,a.ncode=4+(15&A),A>>>=4,O-=4,286<a.nlen||30<a.ndist){b.msg="too many length or distance symbols",a.mode=30;break}a.have=0,a.mode=18;case 18:for(;a.have<a.ncode;){for(;O<3;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}a.lens[D[a.have++]]=7&A,A>>>=3,O-=3}for(;a.have<19;)a.lens[D[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,P={bits:a.lenbits},z=p(0,a.lens,0,19,a.lencode,0,a.work,P),a.lenbits=P.bits,z){b.msg="invalid code lengths set",a.mode=30;break}a.have=0,a.mode=19;case 19:for(;a.have<a.nlen+a.ndist;){for(;te=(d=a.lencode[A&(1<<a.lenbits)-1])>>>16&255,ae=65535&d,!((Y=d>>>24)<=O);){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}if(ae<16)A>>>=Y,O-=Y,a.lens[a.have++]=ae;else{if(ae===16){for(y=Y+2;O<y;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}if(A>>>=Y,O-=Y,a.have===0){b.msg="invalid bit length repeat",a.mode=30;break}n=a.lens[a.have-1],j=3+(3&A),A>>>=2,O-=2}else if(ae===17){for(y=Y+3;O<y;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}O-=Y,n=0,j=3+(7&(A>>>=Y)),A>>>=3,O-=3}else{for(y=Y+7;O<y;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}O-=Y,n=0,j=11+(127&(A>>>=Y)),A>>>=7,O-=7}if(a.have+j>a.nlen+a.ndist){b.msg="invalid bit length repeat",a.mode=30;break}for(;j--;)a.lens[a.have++]=n}}if(a.mode===30)break;if(a.lens[256]===0){b.msg="invalid code -- missing end-of-block",a.mode=30;break}if(a.lenbits=9,P={bits:a.lenbits},z=p(m,a.lens,0,a.nlen,a.lencode,0,a.work,P),a.lenbits=P.bits,z){b.msg="invalid literal/lengths set",a.mode=30;break}if(a.distbits=6,a.distcode=a.distdyn,P={bits:a.distbits},z=p(g,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,P),a.distbits=P.bits,z){b.msg="invalid distances set",a.mode=30;break}if(a.mode=20,C===6)break e;case 20:a.mode=21;case 21:if(6<=W&&258<=J){b.next_out=Q,b.avail_out=J,b.next_in=B,b.avail_in=W,a.hold=A,a.bits=O,l(b,$),Q=b.next_out,X=b.output,J=b.avail_out,B=b.next_in,L=b.input,W=b.avail_in,A=a.hold,O=a.bits,a.mode===12&&(a.back=-1);break}for(a.back=0;te=(d=a.lencode[A&(1<<a.lenbits)-1])>>>16&255,ae=65535&d,!((Y=d>>>24)<=O);){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}if(te&&(240&te)==0){for(se=Y,me=te,fe=ae;te=(d=a.lencode[fe+((A&(1<<se+me)-1)>>se)])>>>16&255,ae=65535&d,!(se+(Y=d>>>24)<=O);){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}A>>>=se,O-=se,a.back+=se}if(A>>>=Y,O-=Y,a.back+=Y,a.length=ae,te===0){a.mode=26;break}if(32&te){a.back=-1,a.mode=12;break}if(64&te){b.msg="invalid literal/length code",a.mode=30;break}a.extra=15&te,a.mode=22;case 22:if(a.extra){for(y=a.extra;O<y;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}a.length+=A&(1<<a.extra)-1,A>>>=a.extra,O-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=23;case 23:for(;te=(d=a.distcode[A&(1<<a.distbits)-1])>>>16&255,ae=65535&d,!((Y=d>>>24)<=O);){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}if((240&te)==0){for(se=Y,me=te,fe=ae;te=(d=a.distcode[fe+((A&(1<<se+me)-1)>>se)])>>>16&255,ae=65535&d,!(se+(Y=d>>>24)<=O);){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}A>>>=se,O-=se,a.back+=se}if(A>>>=Y,O-=Y,a.back+=Y,64&te){b.msg="invalid distance code",a.mode=30;break}a.offset=ae,a.extra=15&te,a.mode=24;case 24:if(a.extra){for(y=a.extra;O<y;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}a.offset+=A&(1<<a.extra)-1,A>>>=a.extra,O-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){b.msg="invalid distance too far back",a.mode=30;break}a.mode=25;case 25:if(J===0)break e;if(j=$-J,a.offset>j){if((j=a.offset-j)>a.whave&&a.sane){b.msg="invalid distance too far back",a.mode=30;break}ie=j>a.wnext?(j-=a.wnext,a.wsize-j):a.wnext-j,j>a.length&&(j=a.length),ce=a.window}else ce=X,ie=Q-a.offset,j=a.length;for(J<j&&(j=J),J-=j,a.length-=j;X[Q++]=ce[ie++],--j;);a.length===0&&(a.mode=21);break;case 26:if(J===0)break e;X[Q++]=a.length,J--,a.mode=21;break;case 27:if(a.wrap){for(;O<32;){if(W===0)break e;W--,A|=L[B++]<<O,O+=8}if($-=J,b.total_out+=$,a.total+=$,$&&(b.adler=a.check=a.flags?i(a.check,X,$,Q-$):s(a.check,X,$,Q-$)),$=J,(a.flags?A:f(A))!==a.check){b.msg="incorrect data check",a.mode=30;break}O=A=0}a.mode=28;case 28:if(a.wrap&&a.flags){for(;O<32;){if(W===0)break e;W--,A+=L[B++]<<O,O+=8}if(A!==(4294967295&a.total)){b.msg="incorrect length check",a.mode=30;break}O=A=0}a.mode=29;case 29:z=1;break e;case 30:z=-3;break e;case 31:return-4;case 32:default:return c}return b.next_out=Q,b.avail_out=J,b.next_in=B,b.avail_in=W,a.hold=A,a.bits=O,(a.wsize||$!==b.avail_out&&a.mode<30&&(a.mode<27||C!==4))&&q(b,b.output,b.next_out,$-b.avail_out)?(a.mode=31,-4):(K-=b.avail_in,$-=b.avail_out,b.total_in+=K,b.total_out+=$,a.total+=$,a.wrap&&$&&(b.adler=a.check=a.flags?i(a.check,X,$,b.next_out-$):s(a.check,X,$,b.next_out-$)),b.data_type=a.bits+(a.last?64:0)+(a.mode===12?128:0)+(a.mode===20||a.mode===15?256:0),(K==0&&$===0||C===4)&&z===v&&(z=-5),z)},t.inflateEnd=function(b){if(!b||!b.state)return c;var C=b.state;return C.window&&(C.window=null),b.state=null,v},t.inflateGetHeader=function(b,C){var a;return b&&b.state?(2&(a=b.state).wrap)==0?c:((a.head=C).done=!1,v):c},t.inflateSetDictionary=function(b,C){var a,L=C.length;return b&&b.state?(a=b.state).wrap!==0&&a.mode!==11?c:a.mode===11&&s(1,C,L,0)!==a.check?-3:q(b,C,L,L)?(a.mode=31,-4):(a.havedict=1,v):c},t.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,o,t){"use strict";var r=e("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];o.exports=function(m,g,v,c,x,u,h,f){var w,_,S,I,R,T,N,F,G,q=f.bits,b=0,C=0,a=0,L=0,X=0,B=0,Q=0,W=0,J=0,A=0,O=null,K=0,$=new r.Buf16(16),j=new r.Buf16(16),ie=null,ce=0;for(b=0;b<=15;b++)$[b]=0;for(C=0;C<c;C++)$[g[v+C]]++;for(X=q,L=15;1<=L&&$[L]===0;L--);if(L<X&&(X=L),L===0)return x[u++]=20971520,x[u++]=20971520,f.bits=1,0;for(a=1;a<L&&$[a]===0;a++);for(X<a&&(X=a),b=W=1;b<=15;b++)if(W<<=1,(W-=$[b])<0)return-1;if(0<W&&(m===0||L!==1))return-1;for(j[1]=0,b=1;b<15;b++)j[b+1]=j[b]+$[b];for(C=0;C<c;C++)g[v+C]!==0&&(h[j[g[v+C]]++]=C);if(T=m===0?(O=ie=h,19):m===1?(O=s,K-=257,ie=i,ce-=257,256):(O=l,ie=p,-1),b=a,R=u,Q=C=A=0,S=-1,I=(J=1<<(B=X))-1,m===1&&852<J||m===2&&592<J)return 1;for(;;){for(N=b-Q,G=h[C]<T?(F=0,h[C]):h[C]>T?(F=ie[ce+h[C]],O[K+h[C]]):(F=96,0),w=1<<b-Q,a=_=1<<B;x[R+(A>>Q)+(_-=w)]=N<<24|F<<16|G|0,_!==0;);for(w=1<<b-1;A&w;)w>>=1;if(w!==0?(A&=w-1,A+=w):A=0,C++,--$[b]==0){if(b===L)break;b=g[v+h[C]]}if(X<b&&(A&I)!==S){for(Q===0&&(Q=X),R+=a,W=1<<(B=b-Q);B+Q<L&&!((W-=$[B+Q])<=0);)B++,W<<=1;if(J+=1<<B,m===1&&852<J||m===2&&592<J)return 1;x[S=A&I]=X<<24|B<<16|R-u|0}}return A!==0&&(x[R+A]=b-Q<<24|64<<16|0),f.bits=X,0}},{"../utils/common":41}],51:[function(e,o,t){"use strict";o.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,o,t){"use strict";var r=e("../utils/common"),s=0,i=1;function l(d){for(var k=d.length;0<=--k;)d[k]=0}var p=0,m=29,g=256,v=g+1+m,c=30,x=19,u=2*v+1,h=15,f=16,w=7,_=256,S=16,I=17,R=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],N=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],q=new Array(2*(v+2));l(q);var b=new Array(2*c);l(b);var C=new Array(512);l(C);var a=new Array(256);l(a);var L=new Array(m);l(L);var X,B,Q,W=new Array(c);function J(d,k,D,U,E){this.static_tree=d,this.extra_bits=k,this.extra_base=D,this.elems=U,this.max_length=E,this.has_stree=d&&d.length}function A(d,k){this.dyn_tree=d,this.max_code=0,this.stat_desc=k}function O(d){return d<256?C[d]:C[256+(d>>>7)]}function K(d,k){d.pending_buf[d.pending++]=255&k,d.pending_buf[d.pending++]=k>>>8&255}function $(d,k,D){d.bi_valid>f-D?(d.bi_buf|=k<<d.bi_valid&65535,K(d,d.bi_buf),d.bi_buf=k>>f-d.bi_valid,d.bi_valid+=D-f):(d.bi_buf|=k<<d.bi_valid&65535,d.bi_valid+=D)}function j(d,k,D){$(d,D[2*k],D[2*k+1])}function ie(d,k){for(var D=0;D|=1&d,d>>>=1,D<<=1,0<--k;);return D>>>1}function ce(d,k,D){var U,E,V=new Array(h+1),Z=0;for(U=1;U<=h;U++)V[U]=Z=Z+D[U-1]<<1;for(E=0;E<=k;E++){var M=d[2*E+1];M!==0&&(d[2*E]=ie(V[M]++,M))}}function Y(d){var k;for(k=0;k<v;k++)d.dyn_ltree[2*k]=0;for(k=0;k<c;k++)d.dyn_dtree[2*k]=0;for(k=0;k<x;k++)d.bl_tree[2*k]=0;d.dyn_ltree[2*_]=1,d.opt_len=d.static_len=0,d.last_lit=d.matches=0}function te(d){8<d.bi_valid?K(d,d.bi_buf):0<d.bi_valid&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0}function ae(d,k,D,U){var E=2*k,V=2*D;return d[E]<d[V]||d[E]===d[V]&&U[k]<=U[D]}function se(d,k,D){for(var U=d.heap[D],E=D<<1;E<=d.heap_len&&(E<d.heap_len&&ae(k,d.heap[E+1],d.heap[E],d.depth)&&E++,!ae(k,U,d.heap[E],d.depth));)d.heap[D]=d.heap[E],D=E,E<<=1;d.heap[D]=U}function me(d,k,D){var U,E,V,Z,M=0;if(d.last_lit!==0)for(;U=d.pending_buf[d.d_buf+2*M]<<8|d.pending_buf[d.d_buf+2*M+1],E=d.pending_buf[d.l_buf+M],M++,U===0?j(d,E,k):(j(d,(V=a[E])+g+1,k),(Z=T[V])!==0&&$(d,E-=L[V],Z),j(d,V=O(--U),D),(Z=N[V])!==0&&$(d,U-=W[V],Z)),M<d.last_lit;);j(d,_,k)}function fe(d,k){var D,U,E,V=k.dyn_tree,Z=k.stat_desc.static_tree,M=k.stat_desc.has_stree,H=k.stat_desc.elems,re=-1;for(d.heap_len=0,d.heap_max=u,D=0;D<H;D++)V[2*D]!==0?(d.heap[++d.heap_len]=re=D,d.depth[D]=0):V[2*D+1]=0;for(;d.heap_len<2;)V[2*(E=d.heap[++d.heap_len]=re<2?++re:0)]=1,d.depth[E]=0,d.opt_len--,M&&(d.static_len-=Z[2*E+1]);for(k.max_code=re,D=d.heap_len>>1;1<=D;D--)se(d,V,D);for(E=H;D=d.heap[1],d.heap[1]=d.heap[d.heap_len--],se(d,V,1),U=d.heap[1],d.heap[--d.heap_max]=D,d.heap[--d.heap_max]=U,V[2*E]=V[2*D]+V[2*U],d.depth[E]=(d.depth[D]>=d.depth[U]?d.depth[D]:d.depth[U])+1,V[2*D+1]=V[2*U+1]=E,d.heap[1]=E++,se(d,V,1),2<=d.heap_len;);d.heap[--d.heap_max]=d.heap[1],function(ee,ue){var Ie,ge,Se,oe,Re,Je,xe=ue.dyn_tree,dt=ue.max_code,mr=ue.stat_desc.static_tree,gr=ue.stat_desc.has_stree,xr=ue.stat_desc.extra_bits,ht=ue.stat_desc.extra_base,Ee=ue.stat_desc.max_length,Le=0;for(oe=0;oe<=h;oe++)ee.bl_count[oe]=0;for(xe[2*ee.heap[ee.heap_max]+1]=0,Ie=ee.heap_max+1;Ie<u;Ie++)Ee<(oe=xe[2*xe[2*(ge=ee.heap[Ie])+1]+1]+1)&&(oe=Ee,Le++),xe[2*ge+1]=oe,dt<ge||(ee.bl_count[oe]++,Re=0,ht<=ge&&(Re=xr[ge-ht]),Je=xe[2*ge],ee.opt_len+=Je*(oe+Re),gr&&(ee.static_len+=Je*(mr[2*ge+1]+Re)));if(Le!==0){do{for(oe=Ee-1;ee.bl_count[oe]===0;)oe--;ee.bl_count[oe]--,ee.bl_count[oe+1]+=2,ee.bl_count[Ee]--,Le-=2}while(0<Le);for(oe=Ee;oe!==0;oe--)for(ge=ee.bl_count[oe];ge!==0;)dt<(Se=ee.heap[--Ie])||(xe[2*Se+1]!==oe&&(ee.opt_len+=(oe-xe[2*Se+1])*xe[2*Se],xe[2*Se+1]=oe),ge--)}}(d,k),ce(V,re,d.bl_count)}function n(d,k,D){var U,E,V=-1,Z=k[1],M=0,H=7,re=4;for(Z===0&&(H=138,re=3),k[2*(D+1)+1]=65535,U=0;U<=D;U++)E=Z,Z=k[2*(U+1)+1],++M<H&&E===Z||(M<re?d.bl_tree[2*E]+=M:E!==0?(E!==V&&d.bl_tree[2*E]++,d.bl_tree[2*S]++):M<=10?d.bl_tree[2*I]++:d.bl_tree[2*R]++,V=E,re=(M=0)===Z?(H=138,3):E===Z?(H=6,3):(H=7,4))}function z(d,k,D){var U,E,V=-1,Z=k[1],M=0,H=7,re=4;for(Z===0&&(H=138,re=3),U=0;U<=D;U++)if(E=Z,Z=k[2*(U+1)+1],!(++M<H&&E===Z)){if(M<re)for(;j(d,E,d.bl_tree),--M!=0;);else E!==0?(E!==V&&(j(d,E,d.bl_tree),M--),j(d,S,d.bl_tree),$(d,M-3,2)):M<=10?(j(d,I,d.bl_tree),$(d,M-3,3)):(j(d,R,d.bl_tree),$(d,M-11,7));V=E,re=(M=0)===Z?(H=138,3):E===Z?(H=6,3):(H=7,4)}}l(W);var P=!1;function y(d,k,D,U){$(d,(p<<1)+(U?1:0),3),function(E,V,Z,M){te(E),M&&(K(E,Z),K(E,~Z)),r.arraySet(E.pending_buf,E.window,V,Z,E.pending),E.pending+=Z}(d,k,D,!0)}t._tr_init=function(d){P||(function(){var k,D,U,E,V,Z=new Array(h+1);for(E=U=0;E<m-1;E++)for(L[E]=U,k=0;k<1<<T[E];k++)a[U++]=E;for(a[U-1]=E,E=V=0;E<16;E++)for(W[E]=V,k=0;k<1<<N[E];k++)C[V++]=E;for(V>>=7;E<c;E++)for(W[E]=V<<7,k=0;k<1<<N[E]-7;k++)C[256+V++]=E;for(D=0;D<=h;D++)Z[D]=0;for(k=0;k<=143;)q[2*k+1]=8,k++,Z[8]++;for(;k<=255;)q[2*k+1]=9,k++,Z[9]++;for(;k<=279;)q[2*k+1]=7,k++,Z[7]++;for(;k<=287;)q[2*k+1]=8,k++,Z[8]++;for(ce(q,v+1,Z),k=0;k<c;k++)b[2*k+1]=5,b[2*k]=ie(k,5);X=new J(q,T,g+1,v,h),B=new J(b,N,0,c,h),Q=new J(new Array(0),F,0,x,w)}(),P=!0),d.l_desc=new A(d.dyn_ltree,X),d.d_desc=new A(d.dyn_dtree,B),d.bl_desc=new A(d.bl_tree,Q),d.bi_buf=0,d.bi_valid=0,Y(d)},t._tr_stored_block=y,t._tr_flush_block=function(d,k,D,U){var E,V,Z=0;0<d.level?(d.strm.data_type===2&&(d.strm.data_type=function(M){var H,re=4093624447;for(H=0;H<=31;H++,re>>>=1)if(1&re&&M.dyn_ltree[2*H]!==0)return s;if(M.dyn_ltree[18]!==0||M.dyn_ltree[20]!==0||M.dyn_ltree[26]!==0)return i;for(H=32;H<g;H++)if(M.dyn_ltree[2*H]!==0)return i;return s}(d)),fe(d,d.l_desc),fe(d,d.d_desc),Z=function(M){var H;for(n(M,M.dyn_ltree,M.l_desc.max_code),n(M,M.dyn_dtree,M.d_desc.max_code),fe(M,M.bl_desc),H=x-1;3<=H&&M.bl_tree[2*G[H]+1]===0;H--);return M.opt_len+=3*(H+1)+5+5+4,H}(d),E=d.opt_len+3+7>>>3,(V=d.static_len+3+7>>>3)<=E&&(E=V)):E=V=D+5,D+4<=E&&k!==-1?y(d,k,D,U):d.strategy===4||V===E?($(d,2+(U?1:0),3),me(d,q,b)):($(d,4+(U?1:0),3),function(M,H,re,ee){var ue;for($(M,H-257,5),$(M,re-1,5),$(M,ee-4,4),ue=0;ue<ee;ue++)$(M,M.bl_tree[2*G[ue]+1],3);z(M,M.dyn_ltree,H-1),z(M,M.dyn_dtree,re-1)}(d,d.l_desc.max_code+1,d.d_desc.max_code+1,Z+1),me(d,d.dyn_ltree,d.dyn_dtree)),Y(d),U&&te(d)},t._tr_tally=function(d,k,D){return d.pending_buf[d.d_buf+2*d.last_lit]=k>>>8&255,d.pending_buf[d.d_buf+2*d.last_lit+1]=255&k,d.pending_buf[d.l_buf+d.last_lit]=255&D,d.last_lit++,k===0?d.dyn_ltree[2*D]++:(d.matches++,k--,d.dyn_ltree[2*(a[D]+g+1)]++,d.dyn_dtree[2*O(k)]++),d.last_lit===d.lit_bufsize-1},t._tr_align=function(d){$(d,2,3),j(d,_,q),function(k){k.bi_valid===16?(K(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):8<=k.bi_valid&&(k.pending_buf[k.pending++]=255&k.bi_buf,k.bi_buf>>=8,k.bi_valid-=8)}(d)}},{"../utils/common":41}],53:[function(e,o,t){"use strict";o.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,o,t){(function(r){(function(s,i){"use strict";if(!s.setImmediate){var l,p,m,g,v=1,c={},x=!1,u=s.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(s);h=h&&h.setTimeout?h:s,l={}.toString.call(s.process)==="[object process]"?function(S){process.nextTick(function(){w(S)})}:function(){if(s.postMessage&&!s.importScripts){var S=!0,I=s.onmessage;return s.onmessage=function(){S=!1},s.postMessage("","*"),s.onmessage=I,S}}()?(g="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",_,!1):s.attachEvent("onmessage",_),function(S){s.postMessage(g+S,"*")}):s.MessageChannel?((m=new MessageChannel).port1.onmessage=function(S){w(S.data)},function(S){m.port2.postMessage(S)}):u&&"onreadystatechange"in u.createElement("script")?(p=u.documentElement,function(S){var I=u.createElement("script");I.onreadystatechange=function(){w(S),I.onreadystatechange=null,p.removeChild(I),I=null},p.appendChild(I)}):function(S){setTimeout(w,0,S)},h.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var I=new Array(arguments.length-1),R=0;R<I.length;R++)I[R]=arguments[R+1];var T={callback:S,args:I};return c[v]=T,l(v),v++},h.clearImmediate=f}function f(S){delete c[S]}function w(S){if(x)setTimeout(w,0,S);else{var I=c[S];if(I){x=!0;try{(function(R){var T=R.callback,N=R.args;switch(N.length){case 0:T();break;case 1:T(N[0]);break;case 2:T(N[0],N[1]);break;case 3:T(N[0],N[1],N[2]);break;default:T.apply(i,N)}})(I)}finally{f(S),x=!1}}}}function _(S){S.source===s&&typeof S.data=="string"&&S.data.indexOf(g)===0&&w(+S.data.slice(g.length))}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});function Ue(e){return yt(e)}function Dr(e){return bt(e)}function It(e){return wt(e)}function pe(e,o){return mt(e,o)}function Ne(e){return vt(e)}function Be(e){return gt(e)}function et(e){return xt(e)}var de;(function(e){e[e.Data=0]="Data",e[e.Info=1]="Info",e[e.Metadata=2]="Metadata",e[e.Resource=3]="Resource",e[e.Thumbnail=4]="Thumbnail"})(de||(de={}));var St;(function(e){e[e.Data=0]="Data",e[e.Info=1]="Info",e[e.Metadata=2]="Metadata",e[e.Resource=3]="Resource",e[e.Thumbnail=4]="Thumbnail"})(St||(St={}));var Pe;(function(e){e[e.Started=0]="Started",e[e.Created=1]="Created",e[e.Cancelled=2]="Cancelled",e[e.Finished=3]="Finished",e[e.Ignored=4]="Ignored",e[e.Failed=5]="Failed",e[e.Unknown=6]="Unknown"})(Pe||(Pe={}));var Pn=De(Fe());var je=function(){return je=Object.assign||function(o){for(var t,r=1,s=arguments.length;r<s;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(o[i]=t[i])}return o},je.apply(this,arguments)},rt={exports:{}},ne={},nt={exports:{}},ve={};function Tt(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function Ur(e,o,t){}function Nr(e,o,t){}var Br=/javascript\s*\:/img;function Gr(e,o){return Br.test(o)?"":o}ve.whiteList=Tt();ve.getDefaultWhiteList=Tt;ve.onAttr=Ur;ve.onIgnoreAttr=Nr;ve.safeAttrValue=Gr;var Wr={indexOf:function(e,o){var t,r;if(Array.prototype.indexOf)return e.indexOf(o);for(t=0,r=e.length;t<r;t++)if(e[t]===o)return t;return-1},forEach:function(e,o,t){var r,s;if(Array.prototype.forEach)return e.forEach(o,t);for(r=0,s=e.length;r<s;r++)o.call(t,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Te=Wr;function Vr(e,o){e=Te.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,r=!1,s=0,i=0,l="";function p(){if(!r){var v=Te.trim(e.slice(s,i)),c=v.indexOf(":");if(c!==-1){var x=Te.trim(v.slice(0,c)),u=Te.trim(v.slice(c+1));if(x){var h=o(s,l.length,x,u,v);h&&(l+=h+"; ")}}}s=i+1}for(;i<t;i++){var m=e[i];if(m==="/"&&e[i+1]==="*"){var g=e.indexOf("*/",i+2);if(g===-1)break;i=g+1,s=i+1,r=!1}else m==="("?r=!0:m===")"?r=!1:m===";"?r||p():m===`
|
6
6
|
`&&p()}return Te.trim(l)}var Mr=Vr,Ge=ve,jr=Mr;function Ot(e){return e==null}function $r(e){var o={};for(var t in e)o[t]=e[t];return o}function Ct(e){e=$r(e||{}),e.whiteList=e.whiteList||Ge.whiteList,e.onAttr=e.onAttr||Ge.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Ge.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Ge.safeAttrValue,this.options=e}Ct.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var o=this,t=o.options,r=t.whiteList,s=t.onAttr,i=t.onIgnoreAttr,l=t.safeAttrValue,p=jr(e,function(m,g,v,c,x){var u=r[v],h=!1;if(u===!0?h=u:typeof u=="function"?h=u(c):u instanceof RegExp&&(h=u.test(c)),h!==!0&&(h=!1),c=l(v,c),!!c){var f={position:g,sourcePosition:m,source:x,isWhite:h};if(h){var w=s(v,c,f);return Ot(w)?v+":"+c:w}else{var w=i(v,c,f);if(!Ot(w))return w}}});return p};var Zr=Ct;(function(e,o){var t=ve,r=Zr;function s(l,p){var m=new r(p);return m.process(l)}o=e.exports=s,o.FilterCSS=r;for(var i in t)o[i]=t[i]})(nt,nt.exports);var it=nt.exports,st={indexOf:function(e,o){var t,r;if(Array.prototype.indexOf)return e.indexOf(o);for(t=0,r=e.length;t<r;t++)if(e[t]===o)return t;return-1},forEach:function(e,o,t){var r,s;if(Array.prototype.forEach)return e.forEach(o,t);for(r=0,s=e.length;r<s;r++)o.call(t,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var o=/\s|\n|\t/,t=o.exec(e);return t?t.index:-1}},qr=it.FilterCSS,Hr=it.getDefaultWhiteList,$e=st;function zt(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Rt=new qr;function Kr(e,o,t){}function Jr(e,o,t){}function Xr(e,o,t){}function Qr(e,o,t){}function Lt(e){return e.replace(en,"<").replace(tn,">")}function Yr(e,o,t,r){if(t=Wt(t),o==="href"||o==="src"){if(t=$e.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(o==="background"){if(We.lastIndex=0,We.test(t))return""}else if(o==="style"){if(At.lastIndex=0,At.test(t)||(Pt.lastIndex=0,Pt.test(t)&&(We.lastIndex=0,We.test(t))))return"";r!==!1&&(r=r||Rt,t=r.process(t))}return t=Vt(t),t}var en=/</g,tn=/>/g,rn=/"/g,nn=/"/g,sn=/&#([a-zA-Z0-9]*);?/gim,on=/:?/gim,an=/&newline;?/gim,We=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,At=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Pt=/u\s*r\s*l\s*\(.*/gi;function Dt(e){return e.replace(rn,""")}function Ut(e){return e.replace(nn,'"')}function Nt(e){return e.replace(sn,function(t,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function Bt(e){return e.replace(on,":").replace(an," ")}function Gt(e){for(var o="",t=0,r=e.length;t<r;t++)o+=e.charCodeAt(t)<32?" ":e.charAt(t);return $e.trim(o)}function Wt(e){return e=Ut(e),e=Nt(e),e=Bt(e),e=Gt(e),e}function Vt(e){return e=Dt(e),e=Lt(e),e}function ln(){return""}function cn(e,o){typeof o!="function"&&(o=function(){});var t=!Array.isArray(e);function r(l){return t?!0:$e.indexOf(e,l)!==-1}var s=[],i=!1;return{onIgnoreTag:function(l,p,m){if(r(l))if(m.isClosing){var g="[/removed]",v=m.position+g.length;return s.push([i!==!1?i:m.position,v]),i=!1,g}else return i||(i=m.position),"[removed]";else return o(l,p,m)},remove:function(l){var p="",m=0;return $e.forEach(s,function(g){p+=l.slice(m,g[0]),m=g[1]}),p+=l.slice(m),p}}}function un(e){for(var o="",t=0;t<e.length;){var r=e.indexOf("<!--",t);if(r===-1){o+=e.slice(t);break}o+=e.slice(t,r);var s=e.indexOf("-->",r);if(s===-1)break;t=s+3}return o}function fn(e){var o=e.split("");return o=o.filter(function(t){var r=t.charCodeAt(0);return r===127?!1:r<=31?r===10||r===13:!0}),o.join("")}ne.whiteList=zt();ne.getDefaultWhiteList=zt;ne.onTag=Kr;ne.onIgnoreTag=Jr;ne.onTagAttr=Xr;ne.onIgnoreTagAttr=Qr;ne.safeAttrValue=Yr;ne.escapeHtml=Lt;ne.escapeQuote=Dt;ne.unescapeQuote=Ut;ne.escapeHtmlEntities=Nt;ne.escapeDangerHtml5Entities=Bt;ne.clearNonPrintableCharacter=Gt;ne.friendlyAttrValue=Wt;ne.escapeAttrValue=Vt;ne.onIgnoreTagStripAll=ln;ne.StripTagBody=cn;ne.stripCommentTag=un;ne.stripBlankChar=fn;ne.cssFilter=Rt;ne.getDefaultCSSWhiteList=Hr;var Ze={},we=st;function pn(e){var o=we.spaceIndex(e),t;return o===-1?t=e.slice(1,-1):t=e.slice(1,o+1),t=we.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function dn(e){return e.slice(0,2)==="</"}function hn(e,o,t){var r="",s=0,i=!1,l=!1,p=0,m=e.length,g="",v="";e:for(p=0;p<m;p++){var c=e.charAt(p);if(i===!1){if(c==="<"){i=p;continue}}else if(l===!1){if(c==="<"){r+=t(e.slice(s,p)),i=p,s=p;continue}if(c===">"){r+=t(e.slice(s,i)),v=e.slice(i,p+1),g=pn(v),r+=o(i,r.length,g,v,dn(v)),s=p+1,i=!1;continue}if(c==='"'||c==="'")for(var x=1,u=e.charAt(p-x);u.trim()===""||u==="=";){if(u==="="){l=c;continue e}u=e.charAt(p-++x)}}else if(c===l){l=!1;continue}}return s<e.length&&(r+=t(e.substr(s))),r}var mn=/[^a-zA-Z0-9\\_:.-]/gim;function gn(e,o){var t=0,r=0,s=[],i=!1,l=e.length;function p(x,u){if(x=we.trim(x),x=x.replace(mn,"").toLowerCase(),!(x.length<1)){var h=o(x,u||"");h&&s.push(h)}}for(var m=0;m<l;m++){var g=e.charAt(m),v,c;if(i===!1&&g==="="){i=e.slice(t,m),t=m+1,r=e.charAt(t)==='"'||e.charAt(t)==="'"?t:yn(e,m+1);continue}if(i!==!1&&m===r){if(c=e.indexOf(g,m+1),c===-1)break;v=we.trim(e.slice(r+1,c)),p(i,v),i=!1,m=c,t=m+1;continue}if(/\s|\n|\t/.test(g))if(e=e.replace(/\s|\n|\t/g," "),i===!1)if(c=xn(e,m),c===-1){v=we.trim(e.slice(t,m)),p(v),i=!1,t=m+1;continue}else{m=c-1;continue}else if(c=wn(e,m-1),c===-1){v=we.trim(e.slice(t,m)),v=Ft(v),p(i,v),i=!1,t=m+1;continue}else continue}return t<e.length&&(i===!1?p(e.slice(t)):p(i,Ft(we.trim(e.slice(t))))),we.trim(s.join(" "))}function xn(e,o){for(;o<e.length;o++){var t=e[o];if(t!==" ")return t==="="?o:-1}}function yn(e,o){for(;o<e.length;o++){var t=e[o];if(t!==" ")return t==="'"||t==='"'?o:-1}}function wn(e,o){for(;o>0;o--){var t=e[o];if(t!==" ")return t==="="?o:-1}}function vn(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Ft(e){return vn(e)?e.substr(1,e.length-2):e}Ze.parseTag=hn;Ze.parseAttr=gn;var bn=it.FilterCSS,he=ne,Mt=Ze,_n=Mt.parseTag,kn=Mt.parseAttr,Me=st;function Ve(e){return e==null}function In(e){var o=Me.spaceIndex(e);if(o===-1)return{html:"",closing:e[e.length-2]==="/"};e=Me.trim(e.slice(o+1,-1));var t=e[e.length-1]==="/";return t&&(e=Me.trim(e.slice(0,-1))),{html:e,closing:t}}function Sn(e){var o={};for(var t in e)o[t]=e[t];return o}function En(e){var o={};for(var t in e)Array.isArray(e[t])?o[t.toLowerCase()]=e[t].map(function(r){return r.toLowerCase()}):o[t.toLowerCase()]=e[t];return o}function jt(e){e=Sn(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=he.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=En(e.whiteList||e.allowList):e.whiteList=he.whiteList,e.onTag=e.onTag||he.onTag,e.onTagAttr=e.onTagAttr||he.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||he.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||he.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||he.safeAttrValue,e.escapeHtml=e.escapeHtml||he.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new bn(e.css))}jt.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var o=this,t=o.options,r=t.whiteList,s=t.onTag,i=t.onIgnoreTag,l=t.onTagAttr,p=t.onIgnoreTagAttr,m=t.safeAttrValue,g=t.escapeHtml,v=o.cssFilter;t.stripBlankChar&&(e=he.stripBlankChar(e)),t.allowCommentTag||(e=he.stripCommentTag(e));var c=!1;t.stripIgnoreTagBody&&(c=he.StripTagBody(t.stripIgnoreTagBody,i),i=c.onIgnoreTag);var x=_n(e,function(u,h,f,w,_){var S={sourcePosition:u,position:h,isClosing:_,isWhite:Object.prototype.hasOwnProperty.call(r,f)},I=s(f,w,S);if(!Ve(I))return I;if(S.isWhite){if(S.isClosing)return"</"+f+">";var R=In(w),T=r[f],N=kn(R.html,function(F,G){var q=Me.indexOf(T,F)!==-1,b=l(f,F,G,q);return Ve(b)?q?(G=m(f,F,G,v),G?F+'="'+G+'"':F):(b=p(f,F,G,q),Ve(b)?void 0:b):b});return w="<"+f,N&&(w+=" "+N),R.closing&&(w+=" /"),w+=">",w}else return I=i(f,w,S),Ve(I)?g(w):I},g);return c&&(x=c.remove(x)),x};var On=jt;(function(e,o){var t=ne,r=Ze,s=On;function i(p,m){var g=new s(m);return g.process(p)}o=e.exports=i,o.filterXSS=i,o.FilterXSS=s,function(){for(var p in t)o[p]=t[p];for(var m in r)o[m]=r[m]}();function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=e.exports)})(rt,rt.exports);var be=rt.exports,An=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;for(;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(e)===o},ot=function(){function e(o,t){var r=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],details:["style"],div:["align","style","aria-label","aria-hidden"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=je(je({},be.getDefaultCSSWhiteList()),{flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,"line-height":!0,"justify-content":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(i,l,p,m){return i==="a"&&l==="href"||(i==="img"||i==="source")&&l==="src"?r.sanitizeUrl(p):be.safeAttrValue(i,l,p,m)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var s;o&&!t?s=o:o&&t?(s=Object.create(this.arcgisFilterOptions),s.css={whiteList:this.arcgisCSSWhiteList},Object.keys(o).forEach(function(i){if(i==="whiteList")s.whiteList=r._extendObjectOfArrays([r.arcgisWhiteList,o.whiteList||{}]);else if(i==="css"){var l=o.css.whiteList;l!=null&&o.css instanceof Object&&Object.keys(l).forEach(function(p){return s.css.whiteList[p]=l[p]})}else s[i]=o[i]})):(s=Object.create(this.arcgisFilterOptions),s.whiteList=this.arcgisWhiteList,s.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=s,this._xssFilter=new be.FilterXSS(s)}return e.prototype.sanitize=function(o,t){switch(t===void 0&&(t={}),typeof o){case"number":return isNaN(o)||!isFinite(o)?null:o;case"boolean":return o;case"string":return this._xssFilter.process(o);case"object":return this._iterateOverObject(o,t);default:return t.allowUndefined&&typeof o>"u"?void 0:null}},e.prototype.sanitizeUrl=function(o,t){var r=(t??{}).isProtocolRequired,s=r===void 0?!0:r,i=this._trim(o.substring(0,o.indexOf(":"))),l=o==="/",p=/^#/.test(o),m=i&&this.allowedProtocols.indexOf(i.toLowerCase())>-1;return l||p||m?be.escapeAttrValue(o):!i&&!s?be.escapeAttrValue("https://".concat(o)):""},e.prototype.sanitizeHTMLAttribute=function(o,t,r,s){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(o,t,r,s):be.safeAttrValue(o,t,r,s)},e.prototype.validate=function(o,t){t===void 0&&(t={});var r=this.sanitize(o,t);return{isValid:o===r,sanitized:r}},e.prototype.encodeHTML=function(o){var t=this;return String(o).replace(/[&<>"'\/]/g,function(r){return t._entityMap[r]})},e.prototype.encodeAttrValue=function(o){var t=/^[a-zA-Z0-9]$/;return String(o).replace(/[\x00-\xFF]/g,function(r,s){return t.test(r)?r:"&#x".concat(Number(o.charCodeAt(s)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(o){var t={};return o.forEach(function(r){Object.keys(r).forEach(function(s){Array.isArray(r[s])&&Array.isArray(t[s])?t[s]=t[s].concat(r[s]):t[s]=r[s]})}),t},e.prototype._iterateOverObject=function(o,t){var r=this;t===void 0&&(t={});try{var s=!1,i=void 0;if(Array.isArray(o))i=o.reduce(function(p,m){var g=r.validate(m,t);return g.isValid?p.concat([m]):(s=!0,p.concat([g.sanitized]))},[]);else if(An(o)){var l=Object.keys(o);i=l.reduce(function(p,m){var g=o[m],v=r.validate(g,t);return v.isValid?p[m]=g:(s=!0,p[m]=v.sanitized),p},{})}else return t.allowUndefined&&typeof o>"u"?void 0:null;return s?i:o}catch{return null}},e.prototype._trim=function(o){return String.prototype.trim?o.trim():o.replace(/(^\s*)|(\s*$)/g,"")},e}();function Fn(e,o){return o||(o=new ot),o.sanitize(e)}function _e(e){return new Promise(o=>{qe(e).then(t=>{try{o(JSON.parse(t))}catch{o(null)}},()=>o(null))})}function Ce(e,o,t){return new File([e],o||"",{type:t??e.type})}function qe(e){return new Promise(o=>{let t=new FileReader;t.onload=function(r){let s=r.target.result;o(s||"")},t.readAsText(e)})}function ze(e){return e&&(e.endsWith("/")?e:e+"/")}function le(e,o){return o.split(".").reduce(function(t,r){return t?t[r]:void 0},e)}function Ki(e,o,t){let r=o.split(".").reduce(function(s,i){return s?s[i]:void 0},e);return typeof r>"u"?t:r}function at(e,o,t){let r=o.split(".");r.reduce((s,i,l)=>l===r.length-1?(s[i]=t,t):(s[i]||(s[i]={}),s[i]),e)}function lt(e,o,t){if(le(e,o)){let r=o.split(".");r.reduce((s,i,l)=>l===r.length-1?(s[i]=t,t):s[i],e)}}function ke(e,o,t={}){if(!e)return Promise.reject("Url must be provided");let r={authentication:o,rawResponse:!0,...t};return pe(e,r).then(s=>s.blob())}function Gn(e){let o={q:"",start:1,num:100};return typeof e=="string"?o.q=e:e instanceof Ae?o.q=e.toParam():o={...o,...e},o.sortField==="relevance"&&delete o.sortField,o}function Wn(e){return Ne(e)}function Vn(e,o){let t=Gn(e),r=o||{query:t.q,start:1,num:100,nextStart:-1,total:0,results:[]};return new Promise((s,i)=>{Wn(e).then(l=>{r.results=r.results.concat(l.results),r.num=r.total=r.results.length,l.nextStart>0?(t.start=l.nextStart,s(Vn(t,r))):s(r)},l=>i(l))})}function Mn(e,o,t,r,s,i){r=r||{};let l=i||{query:o,start:1,num:100,nextStart:-1,total:0,results:[]};return r.sortField==="relevance"&&delete r.sortField,new Promise((p,m)=>{Ht(e,o,t,r,s).then(g=>{l.results=l.results.concat(g.results),l.num=l.total=l.results.length,g.nextStart>0?(r.start=g.nextStart,p(Mn(e,o,t,r,s,l))):p(l)},g=>m(g))})}function Ht(e,o,t,r,s){let i={groupId:e,q:o,params:Object.assign({num:100},r),authentication:t,portal:s};return Array.isArray(i.params.categories)&&(i.params.categories=i.params.categories.map(l=>l.split(","))),Qe(i)}function Kt(e,o,t,r){return new Promise((s,i)=>{let l={item:e,folderId:t,authentication:o,params:{...r??{}}};e?.data instanceof File?l.params.file=e.data:l.params.text=e.data,Be(l).then(p=>p.success?s(p):i(p),p=>i(p))})}var qn="PK";function Jt(e,o){return Ye(e,{authentication:o})}function Xt(e){return e.getUser()}function He(e,o,t,r=[],s){return new Promise((i,l)=>{Qt(e,t,r).then(p=>i(p?Ce(p,o,s):null),l)})}function Qt(e,o,t=[]){return new Promise((r,s)=>{ke(e,o).then(i=>{ft(i).then(l=>{l.type==="application/json"?_e(l).then(p=>{if(p?.error){let m=p.error.code;m!==void 0&&t.indexOf(m)>=0?r(null):s(p)}else r(l)}):r(l)},s)},s)})}async function Yt(e,o){let t=`${e}/portals/self/servers`;return(await pe(t,{authentication:o,httpMethod:"GET",params:{f:"json"}})).servers}function ut(e,o){return new Promise(t=>{Hn(e,o).then(r=>t(_e(r)),()=>t(null))})}function Hn(e,o){return new Promise(t=>{let r=Kn(e,o);Qt(r,o,[400,500]).then(s=>t(ft(s)),()=>t(null))})}function Kn(e,o){return`${Jn(o)}/content/items/${e}/data`}function ro(e,o){return ke(e,o,{httpMethod:"GET"}).then(r=>ft(r)).then(r=>r.type==="application/json"?_e(r):Promise.resolve(null))}function Jn(e){return le(e,"portal")||"https://www.arcgis.com/sharing/rest"}function er(e,o,t){return new Promise(r=>{He(e,o,t,[500]).then(r,()=>r(null))})}function ft(e){return new Promise((o,t)=>{e&&e.size>0&&(e.type.startsWith("text/plain")||e.type.startsWith("application/json"))?qe(e).then(r=>{try{JSON.parse(r),o(new Blob([e],{type:"application/json"}))}catch{r.length>4&&r.substr(0,4)===qn?o(new Blob([e],{type:"application/zip"})):r.startsWith("<")?o(new Blob([e],{type:"text/xml"})):o(e)}},t):e?o(e):t()})}var Qn=De(Fe());function ye(e,o,t){return{...e,fetchedFromSource:o,copiedToDestination:t}}var Yn=De(Fe());async function vo(e,o){try{let t=`${e}/checkStatus`,i=(await pe(t,{authentication:o,httpMethod:"GET",params:{f:"json"}}))?.hasAdvancedLicense||!1;return Promise.resolve(i)}catch{return Promise.resolve(!1)}}async function rr(e,o,t){let r;if(!o){let l=await Xt(e);t=t??l.orgId,o=await Jt("",e)}let s=`https://${o.portalHostname}`,i=`${s}/sharing/rest`;return o.isPortal?r=await ei(i,e):r=o.helperServices?.workflowManager?.url??s,Promise.resolve(t?`${r}/${t}`:`${r}/workflow`)}async function ei(e,o){let r=(await Yt(e,o)).find(s=>s.serverFunction==="WorkflowManager");return r?r.url:""}var ir;(function(e){e[e.NotYetVisited=0]="NotYetVisited",e[e.InProgress=1]="InProgress",e[e.Finished=2]="Finished"})(ir||(ir={}));function or(e){let o=`${Xe(e)}/portals/self/subscriptioninfo`,t={httpMethod:"GET",...e};return pe(o,t)}var pt;(function(e){e[e.thumbnail=0]="thumbnail",e[e.metadata=1]="metadata",e[e.resource=2]="resource",e[e.data=3]="data",e[e.fakezip=4]="fakezip",e[e.info=5]="info"})(pt||(pt={}));function lr(e,o=0){let t=e.split("/"),r=t.pop(),s="",i=t.shift(),l=de.Resource;if(i)if(i.endsWith("_info_thumbnail"))l=de.Thumbnail;else if(i.endsWith("_info_metadata"))l=de.Metadata,r="metadata.xml";else if(i.endsWith("_info_data"))l=de.Data;else if(i.endsWith("_info_dataz"))r=r.replace(/\.zip$/,""),l=de.Data;else if(o<1){let p=i.indexOf("_");p>0&&(s=i.substr(p+1))}else s=t.join("/");return{type:l,folder:s,filename:r}}function cr(e,o){return e.folder?o.zip.folder(e.folder).file(e.filename,e.file,{binary:!0}):o.zip.file(e.filename,e.file,{binary:!0}),o.filelist.push(e),ye(e,!0)}function ur(e,o,t){return new Promise(r=>{e.zip.generateAsync({type:"blob"}).then(s=>Ce(s,e.filename,"application/zip")).then(s=>Ue({id:o,resource:s,authentication:t,params:{archive:!0}})).then(()=>r(ye(e,!0,!0)),()=>r(ye(e,!0,!1)))})}var pr=De(Fe());function dr(e,o,t,r=40){return new Promise(s=>{let i=[],l=[];if(e.length>0){let m=0,g=fr(m);l.push(g);let v=0;e.forEach(c=>{(g.filelist.length>=r||v+c.file.size>=49999e3)&&(m++,g=fr(m),l.push(g),v=0),i.push(cr(c,g)),v+=c.file.size})}i.length>0?Promise.all(i).then(p=>{p=p.filter(m=>!(m.fetchedFromSource&&typeof m.copiedToDestination>"u")),di(l,o,t).then(m=>{s(p.concat(m))})}):s([])})}function di(e,o,t){return new Promise(r=>{let s=[],i=e.filter(l=>Object.keys(l.zip.files).length>0);i.length>0?hr(i,o,t).then(l=>{r(l)}):r(s)})}function fr(e){return{filename:`resources${e}.zip`,zip:new pr.default,filelist:[]}}function hr(e,o,t){return new Promise(r=>{let s=[],i=e.pop(),l=Promise.resolve([]);e.length>0&&(l=hr(e,o,t)),l.then(p=>(s=p,new Promise(m=>{setTimeout(()=>m(),1e3)}))).then(()=>ur(i,o,t)).then(p=>{p.filelist.forEach(m=>{s.push(ye(m,!0,p.copiedToDestination))}),r(s)})})}function sc(e,o,t){return new Promise(r=>{dr(e,o,t).then(s=>{r(s.filter(i=>i.fetchedFromSource&&i.copiedToDestination).map(i=>i.folder+"/"+i.filename))})})}function hi(e,o,t){return ze(e)+"content/items/"+o+"/resources/"+t}function oc(e,o,t=[],r=0){return t.map(s=>({url:hi(e,o,s),...lr(s,r)}))}function ac(e){let o=e.match(/\.([a-z]+)$/i);return!!o&&"|.json|.xml|.txt|.png|.pbf|.zip|.jpeg|.jpg|.gif|.bmp|.gz|.svg|.svgz|.geodatabase|".indexOf("|"+o[0]+"|")>=0}function lc(e,o){let t,r;return o.forEach(s=>{s.type===de.Thumbnail&&(t=s.url,r=s.filename)}),t?er(t,r,e):Promise.resolve(null)}function cc(e,o,t){return It({id:e,resource:o,authentication:t})}function uc(e,o,t,r){let s=o.split("/"),i=s.length>1?s.slice(0,s.length-1).join("/"):void 0,l=s[s.length-1];return et({id:e,prefix:i,name:l,resource:t,authentication:r})}function $c(e,o){return o.hasOwnProperty("velocityUrl")?Promise.resolve(o.velocityUrl):mi(e).then(t=>(o.velocityUrl=t.velocityUrl,Promise.resolve(t.velocityUrl)))}function mi(e){return or({authentication:e}).then(o=>{let t="",r=!1,s=le(o,"orgCapabilities");return Array.isArray(s)&&s.some(i=>(r=i.id==="velocity"?!0:r,r&&i.status==="active"&&i.velocityUrl&&(t=i.velocityUrl),t)),Promise.resolve({velocityUrl:t,hasVelocity:r})})}export{Dr as a,pe as b,de as c,Fn as d,le as e,Ki as f,at as g,lt as h,ut as i,ro as j,Vn as k,Mn as l,Kt as m,vo as n,rr as o,ei as p,sc as q,oc as r,ac as s,lc as t,cc as u,uc as v,$c as w};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as n}from"./
|
3
|
+
v1.0.0-next.20250528.3 */
|
4
|
+
import{a as n}from"./46JQWJOE.js";import{a as p}from"./S2PDOHOK.js";import"./Z4G45C2O.js";import{a}from"./YIMCEBHV.js";import"./7XJJ6UNT.js";import"./4E5A4WPJ.js";import{a as r,b as i}from"./O2V3QWTR.js";import"./VDQJCQFK.js";import"./J44ASWJ4.js";import"./HXKTFHQR.js";import"./HHWQZE3T.js";import"./JYDPZBDX.js";import{a as t}from"./QKUPYWE6.js";import"./TUFSJ5ED.js";import"./KWE6JXSH.js";import"./TSVG63JR.js";import"./VOBVDUMB.js";import"./Q3WXELPH.js";import"./NOADX75H.js";import"./VUTNTYC5.js";import"./RSXDYYA2.js";import"./N5QWENGQ.js";import"./WAUFDV6T.js";import"./WBO3TCWN.js";import"./6J3VKLVD.js";import"./GP52ZICE.js";import"./RY2PW6Q6.js";import"./3SEFRTZS.js";import"./7XDT73TY.js";import"./MEX4YKRX.js";import"./DAHQXZ7C.js";import"./4VPENS73.js";import"./YWMWF52K.js";import"./25INXMQ7.js";import"./DLLA4WWL.js";import"./RLI3W2QT.js";var h=async(e,s,o)=>{var l;return{type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,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.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.hero.label`,scope:"/properties/view/properties/hero",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:`${e}.fields.hero.helperText`},labels:[`{{${e}.fields.hero.map.label:translate}}`,`{{${e}.fields.hero.image.label:translate}}`],descriptions:[`{{${e}.fields.hero.map.description:translate}}`,`{{${e}.fields.hero.image.description:translate}}`],icons:["map-pin","image"]}}]}]},{type:"Section",labelKey:`${e}.sections.hero.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{type:"Section",labelKey:`${e}.sections.location.label`,rule:{effect:t.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"image"}}},options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(s.location,o.hubRequestOptions),options:await i(s.id,s.type,s.location,o.portal.name,o.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.fields.featuredImage.label`,options:{helperText:{labelKey:`${e}.fields.featuredImage.helperText`}},rule:{effect:t.HIDE,condition:{scope:"/properties/view/properties/hero",schema:{const:"map"}}},elements:[{scope:"/properties/view/properties/featuredImage",type:"Control",options:{control:"hub-field-input-image-picker",imgSrc:a((l=s.view)===null||l===void 0?void 0:l.featuredImageUrl,o.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,sizeDescription:{labelKey:`${e}.fields.featuredImage.sizeDescription`}}},{labelKey:`${e}.fields.featuredImage.altText.label`,scope:"/properties/view/properties/featuredImageAltText",type:"Control",options:{helperText:{labelKey:`${e}.fields.featuredImage.altText.helperText`}}}]}]},{type:"Section",labelKey:`${e}.sections.sharing.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{scope:"/properties/access",type:"Control",options:{control:"arcgis-hub-access-level-controls",orgName:o.portal.name,itemType:`{{${e}.fields.access.itemType:translate}}`}},{labelKey:`${e}.fields.groups.label`,scope:"/properties/_groups",type:"Control",options:{control:"hub-field-input-combobox",items:n(o.currentUser.groups),disabled:!p("platform:portal:user:shareToGroup",o),allowCustomValues:!1,selectionMode:"multiple"}}]}]}]}};export{h 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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{e as P}from"./6QWS7JEN.js";import{A as C,C as R,D as L,d as k,e as y}from"./CLZ42RFU.js";import"./6CPKRUI3.js";import{a as S,c as e,d as E,e as $}from"./KZWHC2ST.js";import"./B4HONVWZ.js";var F=":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#ffffff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}",K=F,o="instant-apps-social-share",I=".calcite-mode-dark",i={base:o,dialog:`${o}__dialog`,dialogEmbed:`${o}__dialog-embed`,dialogContent:`${o}__dialog-content`,options:`${o}__options`,tipContainer:`${o}__tip`,tipHeader:`${o}__tip-header`,tipContent:`${o}__tip-content`,icon:`${o}__icon`,iconContainer:`${o}__icon-container`,optionText:`${o}__option-text`,popoverButton:`${o}__popover-button`,layout:{vertical:`${o}__layout--vertical`,horizontal:`${o}__layout--horizontal`},xLogo:{light:`${o}__x-logo--light`,dark:`${o}__x-logo--dark`},success:{container:`${o}__success`,header:`${o}__success-header`,message:`${o}__success-message`,icon:`${o}__success-icon`},embed:{container:`${o}__embed`,header:`${o}__embed-header`,embedCode:{container:`${o}__embed-code`,textArea:`${o}__embed-code-text-area`,copyButton:`${o}__embed-code-copy-button`},textAreaText:`${o}__embed-text-area-text`,dimensions:{container:`${o}__embed-dimensions`,input:`${o}__embed-dimensions-input`}},rtl:{optionText:`${o}__option-text--rtl`,textArea:`${o}__text-area--rtl`}},W={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},j="https://arcg.is/prod/shorten",T="1",V=class{constructor(t){S(this,t),this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.view=void 0,this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1,this.messages=void 0,this.opened=!1,this.copied=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600}componentDidLoad(){this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice(),P(this),this.setupAutoCloseListeners(),this.mode==="popover"&&!this.isNativeShareEnabled&&(this.opened&&(this.popoverRef.open=!0),this.popoverRef.addEventListener("calcitePopoverOpen",()=>{if(!this.shareListRef)return;this.shareListRef.children[0].focus()}),this.popoverRef.addEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))),this.embed&&!this.isNativeShareEnabled&&(this.embedWidthRef?.addEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.addEventListener("change",this.updateDimensions.bind(this,"height")))}disconnectedCallback(){document.documentElement.removeEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?this.popoverRef!=null&&(this.popoverRef.removeEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef.removeEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this)),this.popoverRef.removeEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))):(this.embedWidthRef?.removeEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.removeEventListener("change",this.updateDimensions.bind(this,"height")),this.dialogContentRef?.removeEventListener("click",this.stopPropagationCallback.bind(this)))}setupAutoCloseListeners(){document.documentElement.addEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?(this.popoverRef?.addEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef?.addEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this))):this.dialogContentRef?.addEventListener("click",this.stopPropagationCallback.bind(this))}handlePopoverRefKeyDown(t){if(!this.isNativeShareEnabled)if(t.code==="Tab"){if(!this.shareListRef)return;let a=t.target,s=this.shareListRef.children[0],n=this.shareListRef.children[this.shareListRef.children.length-1];t.shiftKey&&a===s?(t.preventDefault(),n.focus()):!t.shiftKey&&a===n&&(t.preventDefault(),s.focus())}else t.code==="Escape"&&(this.closePopover(),this.popoverButtonRef?.setFocus())}autoCloseCallback(){this.mode==="popover"?(this.opened=!1,this.popoverRef.open=this.opened):(this.copyLinkPopoverRef&&(this.copyLinkPopoverRef.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef&&(this.copyEmbedPopoverRef.open=!1),this.inlineCopyEmbedOpened=!1)}stopPropagationCallback(t){t.stopPropagation()}resetPopoverCopyState(){this.popoverButtonRef?.setFocus(),setTimeout(()=>{this.copied=!1},200)}updateDimensions(t){if(t==="width"){let a=this.embedWidthRef?.value??"0";this.embedWidth=Number.parseInt(a)}else{let a=this.embedHeightRef?.value??"0";this.embedHeight=Number.parseInt(a)}}render(){let t=this.copied&&this.mode==="popover"?this.renderSuccess():e("div",{class:i.dialogContent},this.renderOptions(),this.displayTipText?this.renderTip():null,this.embed?this.renderEmbed():null),a=this.shareIconsLayout==="vertical"?` ${i.layout.vertical}`:` ${i.layout.horizontal}`,s=` calcite-mode-${this.el.closest(I)?"dark":"light"}`,n=e("div",{key:"8a69bc57ea2c4905375782cf190655e39b2fadb3",ref:r=>this.dialogContentRef=r,class:`${i.dialog}${a}${s}`},t),c=this.removePopoverOffset?0:6;return e(E,{key:"70eacb6923a4184e19f9f3ba06965efda14641b8"},this.isNativeShareEnabled?this.renderButton():this.mode==="popover"?[e("calcite-popover",{ref:r=>{r&&(this.popoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"shareButton",placement:"bottom-start",scale:this.scale,"overlay-positioning":this.popoverPositioning,"offset-distance":c,"pointer-disabled":this.removePopoverOffset},n),this.renderButton()]:[n,e("calcite-popover",{ref:r=>{r&&(this.copyLinkPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderSuccess()),e("calcite-popover",{ref:r=>{r&&(this.copyEmbedPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyEmbedToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderEmbedSuccess())])}renderButton(){let t={onClick:s=>{this.isNativeShareEnabled?(s.stopPropagation(),this.handleShareItem("native-share")):this.togglePopover(s)},id:"shareButton",class:i.popoverButton,label:this.messages?.share?.label,title:this.messages?.share?.label,scale:this.shareButtonScale??this.scale},a=e("div",{class:i.iconContainer},e("calcite-icon",{icon:"share",scale:this.popoverButtonIconScale}));return this.shareButtonType==="button"?e("calcite-button",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,kind:this.shareButtonColor,appearance:"transparent"},a):e("calcite-action",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,appearance:"transparent",text:"",alignment:"center"},a)}renderSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},this.successMessage||t?.url))}renderEmbedSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},t?.embed))}renderOptions(){let t=this.messages?.options,a=document.dir==="rtl"?` ${i.rtl.optionText}`:"";return e("ul",{ref:s=>this.shareListRef=s,class:i.options,role:"menu"},e("li",{id:"copyToClipboard",onClick:this.handleShareItem.bind(this,"link"),onKeyDown:this.handleOptionKeyDown("link"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},e("calcite-icon",{icon:"link",scale:this.scale})),e("span",{class:`${i.optionText}${a}`},t?.link?.label)),this.socialMedia?[e("li",{onClick:this.handleShareItem.bind(this,"facebook"),onKeyDown:this.handleOptionKeyDown("facebook"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderFacebookIcon()),e("span",{class:`${i.optionText}${a}`},t?.facebook?.label)),e("li",{onClick:this.handleShareItem.bind(this,"x"),onKeyDown:this.handleOptionKeyDown("x"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderXIcon()),e("span",{class:`${i.optionText}${a}`},"X")),e("li",{onClick:this.handleShareItem.bind(this,"linkedIn"),onKeyDown:this.handleOptionKeyDown("linkedIn"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderLinkedInIcon()),e("span",{class:`${i.optionText}${a}`},t?.linkedIn?.label)),e("li",{onClick:this.handleShareItem.bind(this,"bluesky"),onKeyDown:this.handleOptionKeyDown("bluesky"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderBlueSkyIcon()),e("span",{class:`${i.optionText}${a}`},t?.blueSky?.label))]:null)}handleOptionKeyDown(t){return a=>{let s=a.code;(s==="Space"||s==="Enter")&&this.handleShareItem(t)}}renderFacebookIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",null,e("path",{d:"M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z",style:{fill:"#1877f2",fillRule:"nonzero"}}),e("path",{d:"M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z",style:{fill:"#fff",fillRule:"nonzero"}})))}renderXIcon(){let t=!!this.el.closest(I);return e("svg",{height:"100%",class:t?i.xLogo.dark:i.xLogo.light,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("rect",{height:"400",style:{fill:"none"},width:"400",x:"56",y:"56"}),e("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:t?"white":"black"}))}renderBlueSkyIcon(){return e("svg",{height:"100%",fill:"#0f85fe",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"}))}renderLinkedInIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"g5891"},e("path",{d:"M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z",id:"background",style:{fill:"#2867b2"}}),e("g",{id:"shapes"},e("rect",{height:"257.962",id:"rect11",style:{fill:"#fff"},width:"85.76",x:"61.053",y:"178.667"}),e("path",{d:"M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z",id:"path13-0",style:{fill:"#fff",fillRule:"nonzero"}}),e("path",{d:"M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z",id:"path15",style:{fill:"#fff",fillRule:"nonzero"}}))))}renderTip(){let t=this.messages?.info;return e("div",{class:i.tipContainer},e("span",{class:i.tipHeader},e("calcite-icon",{icon:"lightbulb",scale:this.scale}),e("span",null,t?.label)),e("p",{class:i.tipContent},t?.tooltip))}renderEmbed(){let t=this.messages?.embed,a=document.dir==="rtl"?` ${i.rtl.textArea}`:"";return e("div",{class:i.embed.container},e("span",{class:i.embed.header},e("calcite-icon",{icon:"code",scale:this.scale}),e("span",null,this.messages?.embed?.label)),e("div",{class:i.embed.embedCode.container},e("div",{class:i.embed.embedCode.textArea},e("textarea",{ref:s=>this.embedCodeRef=s,cols:30,rows:5,readonly:!0,class:a,value:this.getEmbedCode()}),e("button",{id:"copyEmbedToClipboard",onClick:this.copyEmbedCode.bind(this),class:i.embed.embedCode.copyButton},e("calcite-icon",{icon:"copy",scale:this.scale}),e("span",null,t?.copy))),e("span",{class:i.embed.textAreaText},e("slot",{name:"text-area-text"})),e("div",{class:i.embed.dimensions.container},e("label",{class:i.embed.dimensions.input},e("span",null,t?.width),e("input",{ref:s=>this.embedWidthRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("width"),value:this.embedWidth,min:"1"})),e("label",{class:i.embed.dimensions.input},e("span",null,t?.height),e("input",{ref:s=>this.embedHeightRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("height"),value:this.embedHeight,min:"1"})))))}handleNumberInputOnChange(t){let a=t==="width"?this.embedWidthRef:this.embedHeightRef,s=t==="width"?"embedWidth":"embedHeight";return()=>{a&&Number.parseFloat(a.value)<=0&&(this[s]=Number.parseInt(T),a.value=T)}}togglePopover(t){t.stopPropagation(),this.opened=!this.opened,this.popoverRef.open=this.opened}closePopover(){this.opened=!1,this.popoverRef.open=this.opened}async handleShareItem(t){this.shareUrl=await this.generateShareUrl();let a=null,s=navigator?.userAgent?.includes("Chrome")??!1,n=(navigator?.userAgent?.includes("Safari")??!1)&&!s;!n&&this.shortenShareUrl&&(a=await this.shortenUrl(this.shareUrl));let h=a||this.shareUrl;switch(t){case"link":navigator.clipboard.writeText(h),this.embed&&(this.copyEmbedPopoverRef.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&(this.copyLinkPopoverRef.open=!0,setTimeout(()=>this.copyLinkPopoverRef.open=!1,3e3)),this.inlineCopyLinkOpened=!0,this.copied=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let r;n&&(r=window.open("","_blank"),this.shortenShareUrl&&(h=await this.shortenUrl(this.shareUrl)||h));let f={url:encodeURI(h)},b=t==="x"?{...f,text:this.shareText}:f,u=(await R()).substitute(W[t],b);this.mode==="popover"&&this.closePopover(),n&&r?(r.location=u,r.focus()):window.open(encodeURI(u),"_blank")}break;case"native-share":let c={title:this.messages?.share?.label||"Share",text:this.shareText,url:encodeURI(h)};navigator?.canShare(c)?navigator.share(c).catch(r=>{console.error("Error using native share:",r)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(t){let n=(await(await L())(j,{query:{longUrl:t,f:"json"}}))?.data?.data?.url;if(n)return n.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}copyEmbedCode(){navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.open=!1,this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.open=!0,setTimeout(()=>this.copyEmbedPopoverRef.open=!1,3e3),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:t,y:a}=this.view.center,{spatialReference:s}=this.view,n=await y({...s.toJSON()}),h=await k({x:t,y:a,spatialReference:n}),c=await this.processPoint(h),{isWGS84:r,isWebMercator:f}=c.spatialReference,b=r||f;return this.generateShareUrlParams(c,b)}async processPoint(t){let{isWGS84:a,isWebMercator:s}=t.spatialReference;if(a||s)return t;let n=await C(),h=await y({wkid:4326});try{await n.load();let c=n.project(t,h);return Promise.resolve(c)}catch(c){return console.error("Failed to project point",c),await Promise.reject(new Error("Failed to project point"))}}generateShareUrlParams(t,a){let{longitude:s,latitude:n,x:h,y:c}=t;if(s===void 0||n===void 0)return this.shareUrl;let r=this.roundValue(a?s:h),f=this.roundValue(a?n:c),{zoom:b}=this.view,w=this.roundValue(b),u=this.view?.popup?.selectedFeature,z=this.view?.popup?.visible,g,_,v;if(u&&z&&u?.layer?.type==="feature"){let d=u?.layer;g=d?.id,_=u.attributes[d.objectIdField]}v=this.view.map?.allLayers.filter(d=>!d.visible).toArray().map(d=>d.id).toString().replaceAll(",",";");let{type:U}=this.view,{defaultUrlParams:m}=this,l=new URL(this.shareUrl),{searchParams:p}=l;if(p.get("center")&&p.delete("center"),p.get("level")&&p.delete("level"),p.get("selectedFeature")&&p.delete("selectedFeature"),p.get("hiddenLayers")&&p.delete("hiddenLayers"),p.get("viewpoint")&&p.delete("viewpoint"),U==="3d"){let{camera:d}=this.view,{heading:D,position:O,tilt:B}=d,{longitude:A,latitude:H,z:M}=O,x={longitude:this.roundValue(A,8),latitude:this.roundValue(H,8),z:this.roundValue(M,3),heading:this.roundValue(D,3),tilt:this.roundValue(B,3)},N=`cam:${x.longitude},${x.latitude},${x.z};${x.heading},${x.tilt}`;return m?.viewpoint!==!1&&l.searchParams.set("viewpoint",N),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}return m?.center!==!1&&l.searchParams.set("center",`${r};${f}`),m?.level!==!1&&l.searchParams.set("level",`${w}`),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}roundValue(t,a=4){return Number.parseFloat(t.toFixed(a))}isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}get el(){return $(this)}};V.style=K;export{V as instant_apps_social_share};
|
3
|
+
v1.0.0-next.20250528.3 */
|
4
|
+
import{e as P}from"./LHCD675Z.js";import{A as C,C as R,D as L,d as k,e as y}from"./UQ2LJHER.js";import"./D3BZ4JKK.js";import{a as S,c as e,d as E,e as $}from"./TLEVVT7A.js";import"./RLI3W2QT.js";var F=":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#ffffff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}",K=F,o="instant-apps-social-share",I=".calcite-mode-dark",i={base:o,dialog:`${o}__dialog`,dialogEmbed:`${o}__dialog-embed`,dialogContent:`${o}__dialog-content`,options:`${o}__options`,tipContainer:`${o}__tip`,tipHeader:`${o}__tip-header`,tipContent:`${o}__tip-content`,icon:`${o}__icon`,iconContainer:`${o}__icon-container`,optionText:`${o}__option-text`,popoverButton:`${o}__popover-button`,layout:{vertical:`${o}__layout--vertical`,horizontal:`${o}__layout--horizontal`},xLogo:{light:`${o}__x-logo--light`,dark:`${o}__x-logo--dark`},success:{container:`${o}__success`,header:`${o}__success-header`,message:`${o}__success-message`,icon:`${o}__success-icon`},embed:{container:`${o}__embed`,header:`${o}__embed-header`,embedCode:{container:`${o}__embed-code`,textArea:`${o}__embed-code-text-area`,copyButton:`${o}__embed-code-copy-button`},textAreaText:`${o}__embed-text-area-text`,dimensions:{container:`${o}__embed-dimensions`,input:`${o}__embed-dimensions-input`}},rtl:{optionText:`${o}__option-text--rtl`,textArea:`${o}__text-area--rtl`}},W={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},j="https://arcg.is/prod/shorten",T="1",V=class{constructor(t){S(this,t),this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.view=void 0,this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1,this.messages=void 0,this.opened=!1,this.copied=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600}componentDidLoad(){this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice(),P(this),this.setupAutoCloseListeners(),this.mode==="popover"&&!this.isNativeShareEnabled&&(this.opened&&(this.popoverRef.open=!0),this.popoverRef.addEventListener("calcitePopoverOpen",()=>{if(!this.shareListRef)return;this.shareListRef.children[0].focus()}),this.popoverRef.addEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))),this.embed&&!this.isNativeShareEnabled&&(this.embedWidthRef?.addEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.addEventListener("change",this.updateDimensions.bind(this,"height")))}disconnectedCallback(){document.documentElement.removeEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?this.popoverRef!=null&&(this.popoverRef.removeEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef.removeEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this)),this.popoverRef.removeEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))):(this.embedWidthRef?.removeEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.removeEventListener("change",this.updateDimensions.bind(this,"height")),this.dialogContentRef?.removeEventListener("click",this.stopPropagationCallback.bind(this)))}setupAutoCloseListeners(){document.documentElement.addEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?(this.popoverRef?.addEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef?.addEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this))):this.dialogContentRef?.addEventListener("click",this.stopPropagationCallback.bind(this))}handlePopoverRefKeyDown(t){if(!this.isNativeShareEnabled)if(t.code==="Tab"){if(!this.shareListRef)return;let a=t.target,s=this.shareListRef.children[0],n=this.shareListRef.children[this.shareListRef.children.length-1];t.shiftKey&&a===s?(t.preventDefault(),n.focus()):!t.shiftKey&&a===n&&(t.preventDefault(),s.focus())}else t.code==="Escape"&&(this.closePopover(),this.popoverButtonRef?.setFocus())}autoCloseCallback(){this.mode==="popover"?(this.opened=!1,this.popoverRef.open=this.opened):(this.copyLinkPopoverRef&&(this.copyLinkPopoverRef.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef&&(this.copyEmbedPopoverRef.open=!1),this.inlineCopyEmbedOpened=!1)}stopPropagationCallback(t){t.stopPropagation()}resetPopoverCopyState(){this.popoverButtonRef?.setFocus(),setTimeout(()=>{this.copied=!1},200)}updateDimensions(t){if(t==="width"){let a=this.embedWidthRef?.value??"0";this.embedWidth=Number.parseInt(a)}else{let a=this.embedHeightRef?.value??"0";this.embedHeight=Number.parseInt(a)}}render(){let t=this.copied&&this.mode==="popover"?this.renderSuccess():e("div",{class:i.dialogContent},this.renderOptions(),this.displayTipText?this.renderTip():null,this.embed?this.renderEmbed():null),a=this.shareIconsLayout==="vertical"?` ${i.layout.vertical}`:` ${i.layout.horizontal}`,s=` calcite-mode-${this.el.closest(I)?"dark":"light"}`,n=e("div",{key:"8a69bc57ea2c4905375782cf190655e39b2fadb3",ref:r=>this.dialogContentRef=r,class:`${i.dialog}${a}${s}`},t),c=this.removePopoverOffset?0:6;return e(E,{key:"70eacb6923a4184e19f9f3ba06965efda14641b8"},this.isNativeShareEnabled?this.renderButton():this.mode==="popover"?[e("calcite-popover",{ref:r=>{r&&(this.popoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"shareButton",placement:"bottom-start",scale:this.scale,"overlay-positioning":this.popoverPositioning,"offset-distance":c,"pointer-disabled":this.removePopoverOffset},n),this.renderButton()]:[n,e("calcite-popover",{ref:r=>{r&&(this.copyLinkPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderSuccess()),e("calcite-popover",{ref:r=>{r&&(this.copyEmbedPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyEmbedToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderEmbedSuccess())])}renderButton(){let t={onClick:s=>{this.isNativeShareEnabled?(s.stopPropagation(),this.handleShareItem("native-share")):this.togglePopover(s)},id:"shareButton",class:i.popoverButton,label:this.messages?.share?.label,title:this.messages?.share?.label,scale:this.shareButtonScale??this.scale},a=e("div",{class:i.iconContainer},e("calcite-icon",{icon:"share",scale:this.popoverButtonIconScale}));return this.shareButtonType==="button"?e("calcite-button",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,kind:this.shareButtonColor,appearance:"transparent"},a):e("calcite-action",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,appearance:"transparent",text:"",alignment:"center"},a)}renderSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},this.successMessage||t?.url))}renderEmbedSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},t?.embed))}renderOptions(){let t=this.messages?.options,a=document.dir==="rtl"?` ${i.rtl.optionText}`:"";return e("ul",{ref:s=>this.shareListRef=s,class:i.options,role:"menu"},e("li",{id:"copyToClipboard",onClick:this.handleShareItem.bind(this,"link"),onKeyDown:this.handleOptionKeyDown("link"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},e("calcite-icon",{icon:"link",scale:this.scale})),e("span",{class:`${i.optionText}${a}`},t?.link?.label)),this.socialMedia?[e("li",{onClick:this.handleShareItem.bind(this,"facebook"),onKeyDown:this.handleOptionKeyDown("facebook"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderFacebookIcon()),e("span",{class:`${i.optionText}${a}`},t?.facebook?.label)),e("li",{onClick:this.handleShareItem.bind(this,"x"),onKeyDown:this.handleOptionKeyDown("x"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderXIcon()),e("span",{class:`${i.optionText}${a}`},"X")),e("li",{onClick:this.handleShareItem.bind(this,"linkedIn"),onKeyDown:this.handleOptionKeyDown("linkedIn"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderLinkedInIcon()),e("span",{class:`${i.optionText}${a}`},t?.linkedIn?.label)),e("li",{onClick:this.handleShareItem.bind(this,"bluesky"),onKeyDown:this.handleOptionKeyDown("bluesky"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderBlueSkyIcon()),e("span",{class:`${i.optionText}${a}`},t?.blueSky?.label))]:null)}handleOptionKeyDown(t){return a=>{let s=a.code;(s==="Space"||s==="Enter")&&this.handleShareItem(t)}}renderFacebookIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",null,e("path",{d:"M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z",style:{fill:"#1877f2",fillRule:"nonzero"}}),e("path",{d:"M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z",style:{fill:"#fff",fillRule:"nonzero"}})))}renderXIcon(){let t=!!this.el.closest(I);return e("svg",{height:"100%",class:t?i.xLogo.dark:i.xLogo.light,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("rect",{height:"400",style:{fill:"none"},width:"400",x:"56",y:"56"}),e("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:t?"white":"black"}))}renderBlueSkyIcon(){return e("svg",{height:"100%",fill:"#0f85fe",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"}))}renderLinkedInIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"g5891"},e("path",{d:"M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z",id:"background",style:{fill:"#2867b2"}}),e("g",{id:"shapes"},e("rect",{height:"257.962",id:"rect11",style:{fill:"#fff"},width:"85.76",x:"61.053",y:"178.667"}),e("path",{d:"M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z",id:"path13-0",style:{fill:"#fff",fillRule:"nonzero"}}),e("path",{d:"M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z",id:"path15",style:{fill:"#fff",fillRule:"nonzero"}}))))}renderTip(){let t=this.messages?.info;return e("div",{class:i.tipContainer},e("span",{class:i.tipHeader},e("calcite-icon",{icon:"lightbulb",scale:this.scale}),e("span",null,t?.label)),e("p",{class:i.tipContent},t?.tooltip))}renderEmbed(){let t=this.messages?.embed,a=document.dir==="rtl"?` ${i.rtl.textArea}`:"";return e("div",{class:i.embed.container},e("span",{class:i.embed.header},e("calcite-icon",{icon:"code",scale:this.scale}),e("span",null,this.messages?.embed?.label)),e("div",{class:i.embed.embedCode.container},e("div",{class:i.embed.embedCode.textArea},e("textarea",{ref:s=>this.embedCodeRef=s,cols:30,rows:5,readonly:!0,class:a,value:this.getEmbedCode()}),e("button",{id:"copyEmbedToClipboard",onClick:this.copyEmbedCode.bind(this),class:i.embed.embedCode.copyButton},e("calcite-icon",{icon:"copy",scale:this.scale}),e("span",null,t?.copy))),e("span",{class:i.embed.textAreaText},e("slot",{name:"text-area-text"})),e("div",{class:i.embed.dimensions.container},e("label",{class:i.embed.dimensions.input},e("span",null,t?.width),e("input",{ref:s=>this.embedWidthRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("width"),value:this.embedWidth,min:"1"})),e("label",{class:i.embed.dimensions.input},e("span",null,t?.height),e("input",{ref:s=>this.embedHeightRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("height"),value:this.embedHeight,min:"1"})))))}handleNumberInputOnChange(t){let a=t==="width"?this.embedWidthRef:this.embedHeightRef,s=t==="width"?"embedWidth":"embedHeight";return()=>{a&&Number.parseFloat(a.value)<=0&&(this[s]=Number.parseInt(T),a.value=T)}}togglePopover(t){t.stopPropagation(),this.opened=!this.opened,this.popoverRef.open=this.opened}closePopover(){this.opened=!1,this.popoverRef.open=this.opened}async handleShareItem(t){this.shareUrl=await this.generateShareUrl();let a=null,s=navigator?.userAgent?.includes("Chrome")??!1,n=(navigator?.userAgent?.includes("Safari")??!1)&&!s;!n&&this.shortenShareUrl&&(a=await this.shortenUrl(this.shareUrl));let h=a||this.shareUrl;switch(t){case"link":navigator.clipboard.writeText(h),this.embed&&(this.copyEmbedPopoverRef.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&(this.copyLinkPopoverRef.open=!0,setTimeout(()=>this.copyLinkPopoverRef.open=!1,3e3)),this.inlineCopyLinkOpened=!0,this.copied=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let r;n&&(r=window.open("","_blank"),this.shortenShareUrl&&(h=await this.shortenUrl(this.shareUrl)||h));let f={url:encodeURI(h)},b=t==="x"?{...f,text:this.shareText}:f,u=(await R()).substitute(W[t],b);this.mode==="popover"&&this.closePopover(),n&&r?(r.location=u,r.focus()):window.open(encodeURI(u),"_blank")}break;case"native-share":let c={title:this.messages?.share?.label||"Share",text:this.shareText,url:encodeURI(h)};navigator?.canShare(c)?navigator.share(c).catch(r=>{console.error("Error using native share:",r)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(t){let n=(await(await L())(j,{query:{longUrl:t,f:"json"}}))?.data?.data?.url;if(n)return n.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}copyEmbedCode(){navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.open=!1,this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.open=!0,setTimeout(()=>this.copyEmbedPopoverRef.open=!1,3e3),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:t,y:a}=this.view.center,{spatialReference:s}=this.view,n=await y({...s.toJSON()}),h=await k({x:t,y:a,spatialReference:n}),c=await this.processPoint(h),{isWGS84:r,isWebMercator:f}=c.spatialReference,b=r||f;return this.generateShareUrlParams(c,b)}async processPoint(t){let{isWGS84:a,isWebMercator:s}=t.spatialReference;if(a||s)return t;let n=await C(),h=await y({wkid:4326});try{await n.load();let c=n.project(t,h);return Promise.resolve(c)}catch(c){return console.error("Failed to project point",c),await Promise.reject(new Error("Failed to project point"))}}generateShareUrlParams(t,a){let{longitude:s,latitude:n,x:h,y:c}=t;if(s===void 0||n===void 0)return this.shareUrl;let r=this.roundValue(a?s:h),f=this.roundValue(a?n:c),{zoom:b}=this.view,w=this.roundValue(b),u=this.view?.popup?.selectedFeature,z=this.view?.popup?.visible,g,_,v;if(u&&z&&u?.layer?.type==="feature"){let d=u?.layer;g=d?.id,_=u.attributes[d.objectIdField]}v=this.view.map?.allLayers.filter(d=>!d.visible).toArray().map(d=>d.id).toString().replaceAll(",",";");let{type:U}=this.view,{defaultUrlParams:m}=this,l=new URL(this.shareUrl),{searchParams:p}=l;if(p.get("center")&&p.delete("center"),p.get("level")&&p.delete("level"),p.get("selectedFeature")&&p.delete("selectedFeature"),p.get("hiddenLayers")&&p.delete("hiddenLayers"),p.get("viewpoint")&&p.delete("viewpoint"),U==="3d"){let{camera:d}=this.view,{heading:D,position:O,tilt:B}=d,{longitude:A,latitude:H,z:M}=O,x={longitude:this.roundValue(A,8),latitude:this.roundValue(H,8),z:this.roundValue(M,3),heading:this.roundValue(D,3),tilt:this.roundValue(B,3)},N=`cam:${x.longitude},${x.latitude},${x.z};${x.heading},${x.tilt}`;return m?.viewpoint!==!1&&l.searchParams.set("viewpoint",N),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}return m?.center!==!1&&l.searchParams.set("center",`${r};${f}`),m?.level!==!1&&l.searchParams.set("level",`${w}`),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}roundValue(t,a=4){return Number.parseFloat(t.toFixed(a))}isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}get el(){return $(this)}};V.style=K;export{V as instant_apps_social_share};
|