@aceshooting/lyra-cdn 0.0.0-stage → 33.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +39 -2
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/dist/accent-roles.css +1 -0
- package/dist/accents.css +1 -0
- package/dist/chunks/accordion-item.class-QQJTJCAL.js +14 -0
- package/dist/chunks/accordion.class-3TJIWGBU.js +3 -0
- package/dist/chunks/activity-feed.class-W3DIETK6.js +22 -0
- package/dist/chunks/agent-eval-dashboard.class-JUD75XYR.js +9 -0
- package/dist/chunks/agent-question.class-YWALCPRR.js +9 -0
- package/dist/chunks/agent-run.class-2KHBYA57.js +50 -0
- package/dist/chunks/agent-trace.class-UMHLHHVU.js +13 -0
- package/dist/chunks/agent-workspace.class-JDF2UZJ2.js +54 -0
- package/dist/chunks/alert.class-ZRNOQAPC.js +12 -0
- package/dist/chunks/animated-image.class-JVMX4IQU.js +17 -0
- package/dist/chunks/animation.class-SJ2SXRWA.js +1 -0
- package/dist/chunks/announcer-DVOE2WFB.js +1 -0
- package/dist/chunks/app-rail-group.class-IOUHPGUA.js +18 -0
- package/dist/chunks/app-rail-item.class-AZJEOHWP.js +1 -0
- package/dist/chunks/app-rail.class-XVOQNLUV.js +24 -0
- package/dist/chunks/approval-queue.class-TRNO7UBU.js +12 -0
- package/dist/chunks/archive-viewer.class-TJON7JRM.js +1 -0
- package/dist/chunks/artifact-panel.class-RPGPE4LI.js +45 -0
- package/dist/chunks/attachment-chip.class-PAU22ELR.js +1 -0
- package/dist/chunks/attachment-trigger.class-6Z7SFEEP.js +40 -0
- package/dist/chunks/audio-visualizer.class-LN7ET6N3.js +1 -0
- package/dist/chunks/av-player.class-4MPXTIIC.js +34 -0
- package/dist/chunks/avatar-group.class-Q4MDXABG.js +9 -0
- package/dist/chunks/avatar.class-UC2NECS6.js +9 -0
- package/dist/chunks/background-runs.class-YDEYAQK7.js +21 -0
- package/dist/chunks/badge.class-IZRA37EC.js +1 -0
- package/dist/chunks/bar-chart.class-2JHDDVOA.js +1 -0
- package/dist/chunks/bar-list.class-TFZQZJST.js +9 -0
- package/dist/chunks/box-plot.class-FDWQAZU6.js +66 -0
- package/dist/chunks/branch-picker.class-I77LCCWM.js +12 -0
- package/dist/chunks/breadcrumb-item.class-NNVN7WJR.js +1 -0
- package/dist/chunks/breadcrumb.class-OLTO4SVO.js +1 -0
- package/dist/chunks/browser-frame.class-LX4PPIC6.js +27 -0
- package/dist/chunks/bubble-chart.class-NP4KGNH2.js +1 -0
- package/dist/chunks/budget-meter.class-75UDTRG5.js +13 -0
- package/dist/chunks/button-group.class-TLY2ZBQP.js +1 -0
- package/dist/chunks/button.class-4MN2A64P.js +1 -0
- package/dist/chunks/calendar-viewer.class-KE4MOEPN.js +1 -0
- package/dist/chunks/calendar.class-NTLY2HUJ.js +2 -0
- package/dist/chunks/callout.class-KOBF76DF.js +13 -0
- package/dist/chunks/card.class-BOYDF22F.js +1 -0
- package/dist/chunks/carousel-item.class-L6TPZ25O.js +1 -0
- package/dist/chunks/carousel.class-CVURHQLE.js +26 -0
- package/dist/chunks/category-bar.class-A4L2QNLD.js +14 -0
- package/dist/chunks/change-review.class-5HIW3BF3.js +15 -0
- package/dist/chunks/chart-3d.class-YDT6MOMJ.js +39 -0
- package/dist/chunks/chart-spatial-data-NBSAQJPD.js +2 -0
- package/dist/chunks/chart-sync-CYSER4UT.js +1 -0
- package/dist/chunks/chart.class-DDAMNWHN.js +1 -0
- package/dist/chunks/chat-composer.class-RLA3ZACN.js +28 -0
- package/dist/chunks/chat-message.class-GYRUWTDS.js +36 -0
- package/dist/chunks/chat-viewport.class-72QQV6IV.js +13 -0
- package/dist/chunks/checkbox-group.class-ICM5UOJP.js +1 -0
- package/dist/chunks/checkbox.class-Q3K7IWU4.js +1 -0
- package/dist/chunks/checkpoint.class-UEUPFBAQ.js +28 -0
- package/dist/chunks/chip-group.class-L75VGSPI.js +1 -0
- package/dist/chunks/chip.class-DDMES33F.js +1 -0
- package/dist/chunks/chord.class-XNITFJXI.js +5 -0
- package/dist/chunks/choropleth.class-H6DRSFZJ.js +1 -0
- package/dist/chunks/chunk-22XNCUCW.js +1 -0
- package/dist/chunks/chunk-26MS46PV.js +1 -0
- package/dist/chunks/chunk-2BBI7M75.js +1 -0
- package/dist/chunks/chunk-2CH7YZRL.js +4 -0
- package/dist/chunks/chunk-2GWBSIY7.js +1 -0
- package/dist/chunks/chunk-2HHGGW2U.js +1 -0
- package/dist/chunks/chunk-2JMEKYWD.js +1 -0
- package/dist/chunks/chunk-2KSQKG5V.js +1 -0
- package/dist/chunks/chunk-2MJHMCYK.js +1 -0
- package/dist/chunks/chunk-2N62LETQ.js +1 -0
- package/dist/chunks/chunk-2OELKZ6S.js +82 -0
- package/dist/chunks/chunk-2POOYUWS.js +5 -0
- package/dist/chunks/chunk-2RJSNPGI.js +4 -0
- package/dist/chunks/chunk-2U2DKKAJ.js +1 -0
- package/dist/chunks/chunk-2V6V3ZQV.js +1 -0
- package/dist/chunks/chunk-2WVGFBNL.js +1 -0
- package/dist/chunks/chunk-2WXXKPUW.js +1 -0
- package/dist/chunks/chunk-2XUGZVLQ.js +1 -0
- package/dist/chunks/chunk-32IK33EM.js +1 -0
- package/dist/chunks/chunk-32UCFJLK.js +1 -0
- package/dist/chunks/chunk-33UOO5JQ.js +1 -0
- package/dist/chunks/chunk-34M5HC53.js +1 -0
- package/dist/chunks/chunk-3AZXZUWI.js +1 -0
- package/dist/chunks/chunk-3B5CNRFC.js +1 -0
- package/dist/chunks/chunk-3CEWOZEG.js +3 -0
- package/dist/chunks/chunk-3CLMBMQL.js +1 -0
- package/dist/chunks/chunk-3EGAV5VK.js +1 -0
- package/dist/chunks/chunk-3GVZW6O4.js +1 -0
- package/dist/chunks/chunk-3HGKUVDX.js +1 -0
- package/dist/chunks/chunk-3HP7ZF3Z.js +1 -0
- package/dist/chunks/chunk-3KFGHQIW.js +25 -0
- package/dist/chunks/chunk-3LZ3G4LQ.js +1 -0
- package/dist/chunks/chunk-3NDOB5KI.js +11 -0
- package/dist/chunks/chunk-3O6SR5DE.js +8 -0
- package/dist/chunks/chunk-3VGB4YSQ.js +1 -0
- package/dist/chunks/chunk-3WSZLXI3.js +21 -0
- package/dist/chunks/chunk-3Z4JTDQE.js +74 -0
- package/dist/chunks/chunk-43JJVC4Y.js +1 -0
- package/dist/chunks/chunk-447JFZVE.js +1 -0
- package/dist/chunks/chunk-44UP75KF.js +1 -0
- package/dist/chunks/chunk-47NA355M.js +1 -0
- package/dist/chunks/chunk-47UCUOZA.js +1 -0
- package/dist/chunks/chunk-4BU3QW2I.js +1 -0
- package/dist/chunks/chunk-4DGNOLGC.js +1 -0
- package/dist/chunks/chunk-4FLREGZM.js +1 -0
- package/dist/chunks/chunk-4HBBNYPU.js +1 -0
- package/dist/chunks/chunk-4HLN2JNM.js +1 -0
- package/dist/chunks/chunk-4I73X3XX.js +1 -0
- package/dist/chunks/chunk-4IZLDM76.js +1 -0
- package/dist/chunks/chunk-4LTUIJ3G.js +1 -0
- package/dist/chunks/chunk-4MKUE3GN.js +1 -0
- package/dist/chunks/chunk-4O7AAJWV.js +26 -0
- package/dist/chunks/chunk-4QBXZ5BM.js +1 -0
- package/dist/chunks/chunk-4QG5Y44P.js +1 -0
- package/dist/chunks/chunk-4RMGRTHH.js +1 -0
- package/dist/chunks/chunk-4VZYY6B7.js +0 -0
- package/dist/chunks/chunk-52KZYK6Q.js +1 -0
- package/dist/chunks/chunk-5427UHWC.js +12 -0
- package/dist/chunks/chunk-55GU3MXG.js +14 -0
- package/dist/chunks/chunk-572XGZZ5.js +1 -0
- package/dist/chunks/chunk-5ABX2WSA.js +14 -0
- package/dist/chunks/chunk-5AFUYAAF.js +1 -0
- package/dist/chunks/chunk-5ES6C332.js +1 -0
- package/dist/chunks/chunk-5GGJSTOJ.js +1 -0
- package/dist/chunks/chunk-5GZCQCDN.js +1 -0
- package/dist/chunks/chunk-5JKTCQAF.js +1 -0
- package/dist/chunks/chunk-5LD7TNKP.js +1 -0
- package/dist/chunks/chunk-5NRIHGYU.js +1 -0
- package/dist/chunks/chunk-5PNMEGOF.js +1 -0
- package/dist/chunks/chunk-5T6W5AEE.js +1 -0
- package/dist/chunks/chunk-5TFWWAYA.js +1 -0
- package/dist/chunks/chunk-63566KPS.js +1 -0
- package/dist/chunks/chunk-63D3NJTI.js +1 -0
- package/dist/chunks/chunk-64LHUFN2.js +1 -0
- package/dist/chunks/chunk-64UM73EQ.js +1 -0
- package/dist/chunks/chunk-663KPBUU.js +21 -0
- package/dist/chunks/chunk-6C34RIPL.js +1 -0
- package/dist/chunks/chunk-6MPQ3X33.js +36 -0
- package/dist/chunks/chunk-6QJPXVQQ.js +1 -0
- package/dist/chunks/chunk-6V63RBPQ.js +1 -0
- package/dist/chunks/chunk-6VD2DS33.js +37 -0
- package/dist/chunks/chunk-6YZJHDDG.js +0 -0
- package/dist/chunks/chunk-6Z42KKFI.js +1 -0
- package/dist/chunks/chunk-73OCJEUD.js +18 -0
- package/dist/chunks/chunk-74IRLMMQ.js +1 -0
- package/dist/chunks/chunk-75NZLHXG.js +1 -0
- package/dist/chunks/chunk-7AMXIXSH.js +1 -0
- package/dist/chunks/chunk-7IARSJTT.js +27 -0
- package/dist/chunks/chunk-7JP4RLLR.js +1 -0
- package/dist/chunks/chunk-7N7J53ZD.js +1 -0
- package/dist/chunks/chunk-7VF3P6ID.js +1 -0
- package/dist/chunks/chunk-7YIBMRDK.js +1 -0
- package/dist/chunks/chunk-7YMQGPNL.js +1 -0
- package/dist/chunks/chunk-7ZEV5FWS.js +17 -0
- package/dist/chunks/chunk-A6LP23R4.js +1 -0
- package/dist/chunks/chunk-A6ZORMLN.js +1 -0
- package/dist/chunks/chunk-ACA4VONN.js +1 -0
- package/dist/chunks/chunk-AGGZ3MBQ.js +1 -0
- package/dist/chunks/chunk-AJHSEOC3.js +1 -0
- package/dist/chunks/chunk-ALOKFZ76.js +57 -0
- package/dist/chunks/chunk-AM5V5QEX.js +1 -0
- package/dist/chunks/chunk-ANBF274Q.js +1 -0
- package/dist/chunks/chunk-AOHLWLQM.js +1 -0
- package/dist/chunks/chunk-AT4JHXF6.js +47 -0
- package/dist/chunks/chunk-AVZPWRZU.js +1 -0
- package/dist/chunks/chunk-AY55RGQK.js +6 -0
- package/dist/chunks/chunk-AYDPHUAX.js +1 -0
- package/dist/chunks/chunk-AYJGGEBA.js +1 -0
- package/dist/chunks/chunk-B6GAZN5X.js +1 -0
- package/dist/chunks/chunk-BDETGDBF.js +1 -0
- package/dist/chunks/chunk-BFMOZL5O.js +1 -0
- package/dist/chunks/chunk-BFT2W23T.js +1 -0
- package/dist/chunks/chunk-BJSAEYK3.js +1 -0
- package/dist/chunks/chunk-BL2Z2MJN.js +83 -0
- package/dist/chunks/chunk-BL7EC2AS.js +1 -0
- package/dist/chunks/chunk-BQTPD2AJ.js +1 -0
- package/dist/chunks/chunk-BUTCVOEQ.js +1 -0
- package/dist/chunks/chunk-BY636SMQ.js +1 -0
- package/dist/chunks/chunk-BY7GVILL.js +1 -0
- package/dist/chunks/chunk-BYJSQYRN.js +1 -0
- package/dist/chunks/chunk-C337CGQG.js +1 -0
- package/dist/chunks/chunk-C6BTEIPF.js +64 -0
- package/dist/chunks/chunk-CBTNPB3Y.js +36 -0
- package/dist/chunks/chunk-CGUPP4BQ.js +1 -0
- package/dist/chunks/chunk-CHE5UV3U.js +26 -0
- package/dist/chunks/chunk-CMUORJBL.js +1 -0
- package/dist/chunks/chunk-CN2FTU25.js +3 -0
- package/dist/chunks/chunk-COHDKIWJ.js +1 -0
- package/dist/chunks/chunk-CORI3FSS.js +1 -0
- package/dist/chunks/chunk-CP7N27S7.js +1 -0
- package/dist/chunks/chunk-CPRTONZ3.js +1 -0
- package/dist/chunks/chunk-CR23WLJQ.js +1 -0
- package/dist/chunks/chunk-CSV23ONU.js +1 -0
- package/dist/chunks/chunk-CT2EQPYB.js +1 -0
- package/dist/chunks/chunk-CVAEW7JJ.js +1 -0
- package/dist/chunks/chunk-CYNW7F6K.js +1 -0
- package/dist/chunks/chunk-CZM5BBN2.js +1 -0
- package/dist/chunks/chunk-CZO6UKTU.js +1 -0
- package/dist/chunks/chunk-D2PJK46W.js +1 -0
- package/dist/chunks/chunk-D2SJJB5I.js +1 -0
- package/dist/chunks/chunk-D3C3UDTS.js +1 -0
- package/dist/chunks/chunk-D5U3K2E7.js +1 -0
- package/dist/chunks/chunk-D7CW4PXK.js +32 -0
- package/dist/chunks/chunk-DA3VX2RO.js +1 -0
- package/dist/chunks/chunk-DA4DTS26.js +1 -0
- package/dist/chunks/chunk-DCLACGZW.js +1 -0
- package/dist/chunks/chunk-DEFBHDIB.js +1 -0
- package/dist/chunks/chunk-DEHO557B.js +1 -0
- package/dist/chunks/chunk-DMTQAWEJ.js +1 -0
- package/dist/chunks/chunk-DXHC3OY6.js +13 -0
- package/dist/chunks/chunk-E3D5VGRJ.js +1 -0
- package/dist/chunks/chunk-E4ZZLWV4.js +1 -0
- package/dist/chunks/chunk-E7SGLHEE.js +1 -0
- package/dist/chunks/chunk-EAADOA33.js +15 -0
- package/dist/chunks/chunk-EBAKIACC.js +1 -0
- package/dist/chunks/chunk-EDV6BLBD.js +1 -0
- package/dist/chunks/chunk-EGJATIB6.js +1 -0
- package/dist/chunks/chunk-EHOJ7YCN.js +1 -0
- package/dist/chunks/chunk-EHYV2MX6.js +14 -0
- package/dist/chunks/chunk-EJSMR7JS.js +1 -0
- package/dist/chunks/chunk-EKG7ZNTK.js +1 -0
- package/dist/chunks/chunk-EN3HJQOP.js +1 -0
- package/dist/chunks/chunk-ENQS5KAZ.js +1 -0
- package/dist/chunks/chunk-EPCZZM2T.js +1 -0
- package/dist/chunks/chunk-EQQWQHBM.js +1 -0
- package/dist/chunks/chunk-EY5CISAR.js +6 -0
- package/dist/chunks/chunk-F335SOCY.js +1 -0
- package/dist/chunks/chunk-F33HF7D2.js +1 -0
- package/dist/chunks/chunk-FBPNOOMY.js +1 -0
- package/dist/chunks/chunk-FDQP4QQZ.js +1 -0
- package/dist/chunks/chunk-FECUUR3M.js +1 -0
- package/dist/chunks/chunk-FGVF2QID.js +14 -0
- package/dist/chunks/chunk-FH3ZM5XY.js +5 -0
- package/dist/chunks/chunk-FHC6MDBQ.js +1 -0
- package/dist/chunks/chunk-FHCXQD42.js +25 -0
- package/dist/chunks/chunk-FHEXSVUO.js +1 -0
- package/dist/chunks/chunk-FHITMZSI.js +1 -0
- package/dist/chunks/chunk-FKBNZDD7.js +44 -0
- package/dist/chunks/chunk-FMJBEREI.js +12 -0
- package/dist/chunks/chunk-FMKKFAOH.js +1 -0
- package/dist/chunks/chunk-FOABE6ZB.js +1 -0
- package/dist/chunks/chunk-FSEC3GHJ.js +1 -0
- package/dist/chunks/chunk-FSNXLFDJ.js +1 -0
- package/dist/chunks/chunk-FSVHLHIT.js +1 -0
- package/dist/chunks/chunk-FWTBOJRS.js +1 -0
- package/dist/chunks/chunk-FY3YWTCF.js +1 -0
- package/dist/chunks/chunk-FZNZYJRG.js +1 -0
- package/dist/chunks/chunk-FZTW7LID.js +1 -0
- package/dist/chunks/chunk-G6XBJVZN.js +1 -0
- package/dist/chunks/chunk-GBF4AHIG.js +1 -0
- package/dist/chunks/chunk-GBPPMZXX.js +12 -0
- package/dist/chunks/chunk-GG6D77XO.js +20 -0
- package/dist/chunks/chunk-GGSUOPBU.js +1 -0
- package/dist/chunks/chunk-GMPUTEBU.js +1 -0
- package/dist/chunks/chunk-GO5FDNGZ.js +29 -0
- package/dist/chunks/chunk-GQQLHK37.js +1 -0
- package/dist/chunks/chunk-GS3SNJSH.js +1 -0
- package/dist/chunks/chunk-GT6NF7FZ.js +1 -0
- package/dist/chunks/chunk-GUP74TZL.js +1 -0
- package/dist/chunks/chunk-GW3IPDNG.js +1 -0
- package/dist/chunks/chunk-GWK6YXNE.js +1 -0
- package/dist/chunks/chunk-H2ZMVF42.js +1 -0
- package/dist/chunks/chunk-H62CTJMK.js +1 -0
- package/dist/chunks/chunk-H7QRF3VI.js +13 -0
- package/dist/chunks/chunk-HBLKVMMS.js +1 -0
- package/dist/chunks/chunk-HCFVFABH.js +1 -0
- package/dist/chunks/chunk-HEIK7X4U.js +1 -0
- package/dist/chunks/chunk-HELIEOVI.js +1 -0
- package/dist/chunks/chunk-HIDIAJTO.js +11 -0
- package/dist/chunks/chunk-HJM3VV3X.js +1 -0
- package/dist/chunks/chunk-HNILYHZT.js +1 -0
- package/dist/chunks/chunk-HOE7GLKQ.js +1 -0
- package/dist/chunks/chunk-HQ2AX6XY.js +1 -0
- package/dist/chunks/chunk-HRRMXG52.js +1 -0
- package/dist/chunks/chunk-I43LXZUP.js +20 -0
- package/dist/chunks/chunk-I4GPOH6E.js +1 -0
- package/dist/chunks/chunk-IE6AFNI6.js +1 -0
- package/dist/chunks/chunk-IERX6SOK.js +1 -0
- package/dist/chunks/chunk-IFDV4HWR.js +1 -0
- package/dist/chunks/chunk-IHHKAXNV.js +1 -0
- package/dist/chunks/chunk-IIQRBUEC.js +32 -0
- package/dist/chunks/chunk-IJ2AN2PR.js +1 -0
- package/dist/chunks/chunk-IQT3IIXF.js +30 -0
- package/dist/chunks/chunk-IRH2OYBM.js +1 -0
- package/dist/chunks/chunk-ITEKCROO.js +17 -0
- package/dist/chunks/chunk-IYCYTW25.js +1 -0
- package/dist/chunks/chunk-IYJATAHI.js +1 -0
- package/dist/chunks/chunk-J24TYMEI.js +1 -0
- package/dist/chunks/chunk-J2SUHUFZ.js +1 -0
- package/dist/chunks/chunk-J2TS4IBA.js +1 -0
- package/dist/chunks/chunk-J5OZZS24.js +1 -0
- package/dist/chunks/chunk-JCQRYWQN.js +2 -0
- package/dist/chunks/chunk-JCR7AUGN.js +1 -0
- package/dist/chunks/chunk-JFDY4CIA.js +1 -0
- package/dist/chunks/chunk-JI2LOU2Q.js +37 -0
- package/dist/chunks/chunk-JJXEQFM4.js +1 -0
- package/dist/chunks/chunk-JKL737HR.js +1 -0
- package/dist/chunks/chunk-JNB4S2FJ.js +1 -0
- package/dist/chunks/chunk-JO2S7Y7Z.js +1 -0
- package/dist/chunks/chunk-JQPRVZA3.js +1 -0
- package/dist/chunks/chunk-JQY5SX5R.js +1 -0
- package/dist/chunks/chunk-JTGCA7JE.js +10 -0
- package/dist/chunks/chunk-JU6UYDBK.js +1 -0
- package/dist/chunks/chunk-JVOILMDD.js +1 -0
- package/dist/chunks/chunk-JVOVG6SR.js +1 -0
- package/dist/chunks/chunk-JVZ26WRM.js +1 -0
- package/dist/chunks/chunk-JWGMK54E.js +0 -0
- package/dist/chunks/chunk-JZRWF7SV.js +1 -0
- package/dist/chunks/chunk-K3TGAVRE.js +1 -0
- package/dist/chunks/chunk-KKP6NH4M.js +1 -0
- package/dist/chunks/chunk-KLAMX2AK.js +1 -0
- package/dist/chunks/chunk-KMEVGBVM.js +1 -0
- package/dist/chunks/chunk-KN7PQ2NG.js +14 -0
- package/dist/chunks/chunk-KPB62ASL.js +1 -0
- package/dist/chunks/chunk-KSGONSTQ.js +1 -0
- package/dist/chunks/chunk-KUTB5XAE.js +1 -0
- package/dist/chunks/chunk-KV5EA3VA.js +31 -0
- package/dist/chunks/chunk-LBD36U6I.js +10 -0
- package/dist/chunks/chunk-LEDCMWT7.js +1 -0
- package/dist/chunks/chunk-LF23D7NZ.js +1 -0
- package/dist/chunks/chunk-LG433UEO.js +1 -0
- package/dist/chunks/chunk-LGLYOAAH.js +1 -0
- package/dist/chunks/chunk-LH4NPB7C.js +17 -0
- package/dist/chunks/chunk-LIK3XPAA.js +1 -0
- package/dist/chunks/chunk-LKFMXDRF.js +9 -0
- package/dist/chunks/chunk-LKJSF4EL.js +1 -0
- package/dist/chunks/chunk-LNTNQCGT.js +22 -0
- package/dist/chunks/chunk-LP5CZC5A.js +154 -0
- package/dist/chunks/chunk-LQRWTBCJ.js +1 -0
- package/dist/chunks/chunk-LTQOZLV3.js +1 -0
- package/dist/chunks/chunk-LWRRZGB2.js +1 -0
- package/dist/chunks/chunk-LYRJMDVM.js +38 -0
- package/dist/chunks/chunk-M3K6BXUV.js +1 -0
- package/dist/chunks/chunk-M4D3KFCO.js +1 -0
- package/dist/chunks/chunk-M6GTMDIY.js +19 -0
- package/dist/chunks/chunk-MDVVFS4A.js +1 -0
- package/dist/chunks/chunk-MGE5GHJU.js +1 -0
- package/dist/chunks/chunk-MHTTI7OW.js +1 -0
- package/dist/chunks/chunk-MISTOUAC.js +82 -0
- package/dist/chunks/chunk-MM35T5DF.js +28 -0
- package/dist/chunks/chunk-MM5JS5OO.js +1 -0
- package/dist/chunks/chunk-MNABI7LU.js +59 -0
- package/dist/chunks/chunk-MNJDXYAM.js +14 -0
- package/dist/chunks/chunk-MNK2M6M4.js +19 -0
- package/dist/chunks/chunk-MQD7W2IC.js +1 -0
- package/dist/chunks/chunk-MRVJ5TYC.js +1 -0
- package/dist/chunks/chunk-MXGFXKQC.js +1 -0
- package/dist/chunks/chunk-MYVZYT72.js +1 -0
- package/dist/chunks/chunk-MZCLIVAU.js +42 -0
- package/dist/chunks/chunk-N3SLYE7N.js +5 -0
- package/dist/chunks/chunk-N4SM4L4G.js +25 -0
- package/dist/chunks/chunk-NE47UFEJ.js +1 -0
- package/dist/chunks/chunk-NE65SWWE.js +1 -0
- package/dist/chunks/chunk-NF6FYAQW.js +1 -0
- package/dist/chunks/chunk-NHLOYHBZ.js +1 -0
- package/dist/chunks/chunk-NIUZMMMP.js +1 -0
- package/dist/chunks/chunk-NPDEYEMQ.js +1 -0
- package/dist/chunks/chunk-NUFRM6SI.js +0 -0
- package/dist/chunks/chunk-NUSYJATF.js +1 -0
- package/dist/chunks/chunk-NWVMNFLB.js +31 -0
- package/dist/chunks/chunk-NYPKLHXJ.js +13 -0
- package/dist/chunks/chunk-NZ4AFJOB.js +1 -0
- package/dist/chunks/chunk-O2MKCPYI.js +1 -0
- package/dist/chunks/chunk-O2T7X3BV.js +27 -0
- package/dist/chunks/chunk-O3PZG44H.js +1 -0
- package/dist/chunks/chunk-O4JTT6QN.js +1 -0
- package/dist/chunks/chunk-O4NFRBN5.js +1 -0
- package/dist/chunks/chunk-O7SAQOPI.js +1 -0
- package/dist/chunks/chunk-OHAD3FCV.js +1 -0
- package/dist/chunks/chunk-OJG4CY56.js +15 -0
- package/dist/chunks/chunk-OJP46YHH.js +4 -0
- package/dist/chunks/chunk-OLFDREFE.js +1 -0
- package/dist/chunks/chunk-ONTV26D7.js +1 -0
- package/dist/chunks/chunk-OP7ARFKR.js +1 -0
- package/dist/chunks/chunk-OQNEE7LX.js +1 -0
- package/dist/chunks/chunk-OUV7KSOP.js +1 -0
- package/dist/chunks/chunk-OWYWVR2O.js +1 -0
- package/dist/chunks/chunk-P5SHYWUS.js +1 -0
- package/dist/chunks/chunk-PASGSUGZ.js +1 -0
- package/dist/chunks/chunk-PGL4UQXK.js +1 -0
- package/dist/chunks/chunk-PHMSXPLK.js +4 -0
- package/dist/chunks/chunk-PJ72NB2H.js +1 -0
- package/dist/chunks/chunk-PO7I65U7.js +1 -0
- package/dist/chunks/chunk-POFTB33M.js +21 -0
- package/dist/chunks/chunk-PQJCLAD7.js +1 -0
- package/dist/chunks/chunk-PROPAUSV.js +1 -0
- package/dist/chunks/chunk-PU5VTCB3.js +1 -0
- package/dist/chunks/chunk-PU6CXUNJ.js +2 -0
- package/dist/chunks/chunk-PVYXJDUG.js +1 -0
- package/dist/chunks/chunk-PYZTDC3A.js +8 -0
- package/dist/chunks/chunk-PZ2KUPDO.js +1 -0
- package/dist/chunks/chunk-Q4FMITV7.js +1 -0
- package/dist/chunks/chunk-Q6TJSRDF.js +1 -0
- package/dist/chunks/chunk-QCM7NVLU.js +1 -0
- package/dist/chunks/chunk-QDIC72BY.js +6 -0
- package/dist/chunks/chunk-QE3SIMKA.js +15 -0
- package/dist/chunks/chunk-QE4FNDWW.js +17 -0
- package/dist/chunks/chunk-QIYCMK2Q.js +1 -0
- package/dist/chunks/chunk-QOOQMUEJ.js +2 -0
- package/dist/chunks/chunk-QRTG3F4F.js +1 -0
- package/dist/chunks/chunk-QSRMNZNK.js +1 -0
- package/dist/chunks/chunk-QWEVB7QR.js +1 -0
- package/dist/chunks/chunk-QZ7AVTED.js +1 -0
- package/dist/chunks/chunk-R3ZA2YUH.js +1 -0
- package/dist/chunks/chunk-R4PKLCQP.js +1 -0
- package/dist/chunks/chunk-R54QPLJ7.js +1 -0
- package/dist/chunks/chunk-R6ZW7GHW.js +1 -0
- package/dist/chunks/chunk-RDSMOXJD.js +1 -0
- package/dist/chunks/chunk-RDTKEL46.js +1 -0
- package/dist/chunks/chunk-REFNQCPK.js +12 -0
- package/dist/chunks/chunk-REOFE46N.js +1 -0
- package/dist/chunks/chunk-RNCRO7PW.js +1 -0
- package/dist/chunks/chunk-RRBNRXZW.js +1 -0
- package/dist/chunks/chunk-RTWAT4DT.js +2 -0
- package/dist/chunks/chunk-RTZ7B2EH.js +1 -0
- package/dist/chunks/chunk-RVITBUU6.js +1 -0
- package/dist/chunks/chunk-RXMSI3Y6.js +1 -0
- package/dist/chunks/chunk-RXPLYD4P.js +67 -0
- package/dist/chunks/chunk-RXVKNUZ5.js +1 -0
- package/dist/chunks/chunk-S56LOJ4B.js +1 -0
- package/dist/chunks/chunk-S5RHQP2W.js +1 -0
- package/dist/chunks/chunk-SB42JUUY.js +10 -0
- package/dist/chunks/chunk-SEFJRNGR.js +3 -0
- package/dist/chunks/chunk-SIU7CGB3.js +1 -0
- package/dist/chunks/chunk-SMBJ5WYS.js +1 -0
- package/dist/chunks/chunk-SNET54ZU.js +0 -0
- package/dist/chunks/chunk-SSLH76L7.js +1 -0
- package/dist/chunks/chunk-SWG4IM7R.js +1 -0
- package/dist/chunks/chunk-SYG6XMW4.js +1 -0
- package/dist/chunks/chunk-SYS7C4PF.js +9 -0
- package/dist/chunks/chunk-T2RUXH53.js +1 -0
- package/dist/chunks/chunk-T2ZLMA43.js +1 -0
- package/dist/chunks/chunk-TDLXFMNH.js +0 -0
- package/dist/chunks/chunk-TH54GLBQ.js +1 -0
- package/dist/chunks/chunk-TO3Y7UQS.js +1 -0
- package/dist/chunks/chunk-TQHRNXS4.js +2 -0
- package/dist/chunks/chunk-TQSJCN5E.js +1 -0
- package/dist/chunks/chunk-TRCULNM3.js +28 -0
- package/dist/chunks/chunk-TWSBTYTU.js +1 -0
- package/dist/chunks/chunk-U6HFL7A7.js +1 -0
- package/dist/chunks/chunk-UDPPJDWT.js +9 -0
- package/dist/chunks/chunk-UDRXM6B3.js +1 -0
- package/dist/chunks/chunk-UK7QW5GE.js +1 -0
- package/dist/chunks/chunk-UKOOP7SS.js +1 -0
- package/dist/chunks/chunk-UL2EEJOU.js +1 -0
- package/dist/chunks/chunk-UL6W2E4T.js +1 -0
- package/dist/chunks/chunk-ULKZXAM5.js +1 -0
- package/dist/chunks/chunk-UNLIU4L5.js +1 -0
- package/dist/chunks/chunk-URHGY3TD.js +1 -0
- package/dist/chunks/chunk-UTM46NXE.js +1 -0
- package/dist/chunks/chunk-UZKWY3JE.js +1 -0
- package/dist/chunks/chunk-V2B4ISQF.js +1 -0
- package/dist/chunks/chunk-V5JVMTQF.js +3 -0
- package/dist/chunks/chunk-V7ZVCKZR.js +1 -0
- package/dist/chunks/chunk-VFS3C4WO.js +1 -0
- package/dist/chunks/chunk-VQAZGI6X.js +1 -0
- package/dist/chunks/chunk-VRBQVFBZ.js +1 -0
- package/dist/chunks/chunk-VSNJ77YA.js +1 -0
- package/dist/chunks/chunk-VT7TGEIV.js +1 -0
- package/dist/chunks/chunk-VVOMS3RS.js +1 -0
- package/dist/chunks/chunk-W27FHN37.js +1 -0
- package/dist/chunks/chunk-W2Q5B22N.js +1 -0
- package/dist/chunks/chunk-WAKJDOXV.js +1 -0
- package/dist/chunks/chunk-WBECN74C.js +1 -0
- package/dist/chunks/chunk-WC4AUVAR.js +1 -0
- package/dist/chunks/chunk-WFFW3XU3.js +31 -0
- package/dist/chunks/chunk-WK4ZGZU2.js +1 -0
- package/dist/chunks/chunk-WMZZHNCY.js +1 -0
- package/dist/chunks/chunk-WQBLUFYN.js +1 -0
- package/dist/chunks/chunk-WSSAZ5G7.js +1 -0
- package/dist/chunks/chunk-WT4V2XEM.js +1 -0
- package/dist/chunks/chunk-WU4N5UHB.js +9 -0
- package/dist/chunks/chunk-WV7EKGZO.js +1 -0
- package/dist/chunks/chunk-WVZNJZMH.js +11 -0
- package/dist/chunks/chunk-X4QWXLSG.js +4 -0
- package/dist/chunks/chunk-X5E3FMMR.js +1 -0
- package/dist/chunks/chunk-X6RC667W.js +2 -0
- package/dist/chunks/chunk-X7SFGVWR.js +1 -0
- package/dist/chunks/chunk-XAEFRBXF.js +8 -0
- package/dist/chunks/chunk-XCSEMP5I.js +1 -0
- package/dist/chunks/chunk-XHOHYCRV.js +1 -0
- package/dist/chunks/chunk-XIWT65ZD.js +1 -0
- package/dist/chunks/chunk-XMNCWOKP.js +1 -0
- package/dist/chunks/chunk-XT7BZEWG.js +1 -0
- package/dist/chunks/chunk-XVJJ33GD.js +1 -0
- package/dist/chunks/chunk-XVZ4KBFX.js +1 -0
- package/dist/chunks/chunk-XWB2NT26.js +1 -0
- package/dist/chunks/chunk-XYHOA2VI.js +1 -0
- package/dist/chunks/chunk-Y4H2IIZS.js +1 -0
- package/dist/chunks/chunk-Y5NLVFCT.js +1 -0
- package/dist/chunks/chunk-YAEJ6MML.js +41 -0
- package/dist/chunks/chunk-YAEPLSC2.js +9 -0
- package/dist/chunks/chunk-YAGWZALW.js +1 -0
- package/dist/chunks/chunk-YBLCWFPT.js +1 -0
- package/dist/chunks/chunk-YBUWSTZE.js +1 -0
- package/dist/chunks/chunk-YGK7SVB4.js +1 -0
- package/dist/chunks/chunk-YJ3LLVT3.js +1 -0
- package/dist/chunks/chunk-YKIFFZ3J.js +1 -0
- package/dist/chunks/chunk-YN5IXUXK.js +1 -0
- package/dist/chunks/chunk-YNMFL6SJ.js +1 -0
- package/dist/chunks/chunk-YOF6G5B6.js +1 -0
- package/dist/chunks/chunk-YOHC7PXJ.js +1 -0
- package/dist/chunks/chunk-YPVGWQK7.js +29 -0
- package/dist/chunks/chunk-YQOGPXWW.js +1 -0
- package/dist/chunks/chunk-YRWS5F6Q.js +15 -0
- package/dist/chunks/chunk-YVOGDIOW.js +1 -0
- package/dist/chunks/chunk-YVV6QKXB.js +19 -0
- package/dist/chunks/chunk-YWD6QGZX.js +1 -0
- package/dist/chunks/chunk-YWYMHJ5S.js +1 -0
- package/dist/chunks/chunk-Z3KK2QDW.js +17 -0
- package/dist/chunks/chunk-Z3NZDZAK.js +1 -0
- package/dist/chunks/chunk-Z632AFNZ.js +1 -0
- package/dist/chunks/chunk-Z7WGANHK.js +1 -0
- package/dist/chunks/chunk-ZBL7UKWW.js +1 -0
- package/dist/chunks/chunk-ZCBLW3RZ.js +15 -0
- package/dist/chunks/chunk-ZD6IWVN5.js +1 -0
- package/dist/chunks/chunk-ZDG44NX2.js +1 -0
- package/dist/chunks/chunk-ZFXCA2EW.js +1 -0
- package/dist/chunks/chunk-ZK7AY7SZ.js +1 -0
- package/dist/chunks/chunk-ZKFTYDJE.js +11 -0
- package/dist/chunks/chunk-ZKXMVPXH.js +1 -0
- package/dist/chunks/chunk-ZMRZS6LX.js +1 -0
- package/dist/chunks/chunk-ZMURF4M6.js +1 -0
- package/dist/chunks/chunk-ZOZBMAAN.js +11 -0
- package/dist/chunks/chunk-ZPKMCOQD.js +1 -0
- package/dist/chunks/chunk-ZPTUI2BV.js +1 -0
- package/dist/chunks/chunk-ZS6YWVVJ.js +15 -0
- package/dist/chunks/chunk-ZV2BM64C.js +37 -0
- package/dist/chunks/chunk-ZVB4ZXSV.js +1 -0
- package/dist/chunks/chunk-ZVJAZT3K.js +1 -0
- package/dist/chunks/chunk-ZWAEXQZN.js +1 -0
- package/dist/chunks/chunk-ZWFD2OT5.js +52 -0
- package/dist/chunks/chunk-ZY4EI27T.js +1 -0
- package/dist/chunks/chunk-inspector.class-7HP4VGKC.js +1 -0
- package/dist/chunks/citation-badge.class-Q67ZSHRU.js +1 -0
- package/dist/chunks/claim-evidence.class-JU5BVM5J.js +1 -0
- package/dist/chunks/code-block-core.class-SKAIMQS6.js +1 -0
- package/dist/chunks/code-block.class-FYJZXUH5.js +1 -0
- package/dist/chunks/code-editor.class-WX7D6YMQ.js +23 -0
- package/dist/chunks/color-picker.class-ILOTXUX6.js +49 -0
- package/dist/chunks/combobox-catalog-HUTQD75K.js +1 -0
- package/dist/chunks/combobox.class-KSGXRRIP.js +1 -0
- package/dist/chunks/command-palette.class-OQOSPFQT.js +29 -0
- package/dist/chunks/commit-card.class-YOZWNFRK.js +40 -0
- package/dist/chunks/community-card.class-HARLY2US.js +1 -0
- package/dist/chunks/compare-panel.class-GZPQTNLL.js +26 -0
- package/dist/chunks/condition-builder.class-4ZYWB6FB.js +53 -0
- package/dist/chunks/confirm-bar.class-MGVONPL5.js +1 -0
- package/dist/chunks/connector-manager.class-6A264VFQ.js +22 -0
- package/dist/chunks/contact-viewer.class-HHIW7OCU.js +9 -0
- package/dist/chunks/context-inspector.class-JXBDPTVT.js +33 -0
- package/dist/chunks/context-menu.class-AEQLHBCB.js +6 -0
- package/dist/chunks/context-meter.class-5S5XPCIN.js +41 -0
- package/dist/chunks/control-group.class-4A2WLN52.js +1 -0
- package/dist/chunks/conversation-item.class-O5LDWQG3.js +31 -0
- package/dist/chunks/copy-button.class-FSKUVHQU.js +1 -0
- package/dist/chunks/counter.class-V5CTCNRZ.js +1 -0
- package/dist/chunks/country-picker.class-IXWHM5BV.js +1 -0
- package/dist/chunks/csv-viewer.class-FRC7SKXV.js +8 -0
- package/dist/chunks/currency-picker.class-A4R2NLNI.js +1 -0
- package/dist/chunks/dashboard-grid.class-LVMY46KX.js +11 -0
- package/dist/chunks/data-grid.class-AVSTVDDO.js +214 -0
- package/dist/chunks/dataset-viewer.class-VFUQ2IFV.js +13 -0
- package/dist/chunks/date-input.class-SDLPDCOX.js +46 -0
- package/dist/chunks/date-picker.class-NTNJ75OL.js +1 -0
- package/dist/chunks/details.class-OIDNOI3Q.js +1 -0
- package/dist/chunks/dialog.class-6G3PRXJ7.js +1 -0
- package/dist/chunks/diff-view.class-EFNJJ7DJ.js +23 -0
- package/dist/chunks/divider.class-R52ZO7DT.js +5 -0
- package/dist/chunks/dock-panel.class-IITPJF2E.js +13 -0
- package/dist/chunks/document-compare.class-OOCSLVYY.js +20 -0
- package/dist/chunks/document-library.class-D4XEHUOU.js +30 -0
- package/dist/chunks/document-preview.class-C5NKPPOU.js +1 -0
- package/dist/chunks/document-token-css.generated-ENJYCTTF.js +10 -0
- package/dist/chunks/document-viewer.class-ICSHDBZO.js +11 -0
- package/dist/chunks/docx-viewer.class-YEZW2AZZ.js +16 -0
- package/dist/chunks/doughnut-chart.class-6AFYZSJP.js +1 -0
- package/dist/chunks/drawer.class-CBERDAFN.js +1 -0
- package/dist/chunks/drilldown-panel.class-XRP4X5TP.js +45 -0
- package/dist/chunks/drop-zone.class-JC64NEMI.js +17 -0
- package/dist/chunks/dropdown-item.class-LV474IQX.js +1 -0
- package/dist/chunks/dropdown.class-KIKEAKRJ.js +1 -0
- package/dist/chunks/ebook-viewer.class-IHREUVAF.js +11 -0
- package/dist/chunks/email-viewer.class-R6CUOOEP.js +25 -0
- package/dist/chunks/embedding-explorer.class-TVI7KPT6.js +47 -0
- package/dist/chunks/emoji-picker.class-DYTJULND.js +42 -0
- package/dist/chunks/empty.class-SYWXOLEU.js +1 -0
- package/dist/chunks/entity-card.class-RQ6VFVFJ.js +1 -0
- package/dist/chunks/entity-chip.class-2UONKEZE.js +1 -0
- package/dist/chunks/entity-dossier.class-GIPTUMPI.js +27 -0
- package/dist/chunks/env-list.class-PPLCQYHR.js +26 -0
- package/dist/chunks/eval-dataset.class-YEGV2AIB.js +34 -0
- package/dist/chunks/eval-result.class-VAXGWMCF.js +14 -0
- package/dist/chunks/evaluation-run.class-U3NRQDLQ.js +47 -0
- package/dist/chunks/export-button.class-RZ5MH4DQ.js +13 -0
- package/dist/chunks/external-label-association-EK3BK25O.js +1 -0
- package/dist/chunks/file-icon.class-KYBT6IQ4.js +1 -0
- package/dist/chunks/file-input.class-CQUO5JZO.js +39 -0
- package/dist/chunks/file-tree.class-MG6WM64Y.js +6 -0
- package/dist/chunks/filter-bar.class-R3ETKFVN.js +46 -0
- package/dist/chunks/flag.class-Z25RDXP2.js +1 -0
- package/dist/chunks/flow-canvas.class-FWGJXIJJ.js +75 -0
- package/dist/chunks/flow-controls.class-KJHBTMRD.js +7 -0
- package/dist/chunks/flow-minimap.class-HC6TH2B6.js +18 -0
- package/dist/chunks/flow-node.class-BUZCHSLQ.js +23 -0
- package/dist/chunks/flow-run-status.class-TX56ZDDL.js +8 -0
- package/dist/chunks/format-bytes.class-XCKLEQSU.js +1 -0
- package/dist/chunks/format-date.class-ZZ7EWIRK.js +1 -0
- package/dist/chunks/format-number.class-37MB2H64.js +1 -0
- package/dist/chunks/funnel.class-3ICEYBNP.js +19 -0
- package/dist/chunks/gauge.class-3UION2VP.js +21 -0
- package/dist/chunks/generation-metrics.class-3C7ZB4E6.js +14 -0
- package/dist/chunks/geojson-viewer.class-4IQAT3CW.js +18 -0
- package/dist/chunks/graph-legend.class-RHGTTIQL.js +1 -0
- package/dist/chunks/graph-query-builder.class-BTNSMAVX.js +65 -0
- package/dist/chunks/graph-spatial-controller-IKW2OMUW.js +27 -0
- package/dist/chunks/graph.class-XM4JSDQW.js +1 -0
- package/dist/chunks/greycat-language-KJHNG54J.js +1 -0
- package/dist/chunks/grounding-summary.class-VFWZWBAL.js +1 -0
- package/dist/chunks/handoff-divider.class-R3M7IOHV.js +12 -0
- package/dist/chunks/heatmap.class-DOGRCIEE.js +64 -0
- package/dist/chunks/help.class-VKGHRXRP.js +3 -0
- package/dist/chunks/hierarchy-source-controller-4X7OULM5.js +1 -0
- package/dist/chunks/hierarchy-source-view-KSPAJYZ3.js +1 -0
- package/dist/chunks/hierarchy-summary-source-B2C6IAAC.js +1 -0
- package/dist/chunks/highlight-layer.class-OVLTMDUJ.js +19 -0
- package/dist/chunks/histogram.class-BLNBUEC7.js +1 -0
- package/dist/chunks/html-viewer.class-DOHCS2P2.js +1 -0
- package/dist/chunks/icon-button.class-YFLBOPCD.js +1 -0
- package/dist/chunks/icon.class-D2PSXP74.js +4 -0
- package/dist/chunks/image-comparer.class-AG7U2NWT.js +12 -0
- package/dist/chunks/image-viewer.class-SG7S4WVN.js +34 -0
- package/dist/chunks/include.class-WKRUOEMO.js +1 -0
- package/dist/chunks/ingestion-queue.class-GWKTTUFD.js +44 -0
- package/dist/chunks/input.class-DTVEIMWX.js +1 -0
- package/dist/chunks/intersection-observer.class-HKGDRZZH.js +1 -0
- package/dist/chunks/json-viewer.class-K7BYCJNG.js +1 -0
- package/dist/chunks/kbd.class-TNFKKAEI.js +9 -0
- package/dist/chunks/knowledge-base-admin.class-7SUQ7JGE.js +19 -0
- package/dist/chunks/knowledge-base.class-LFVU45CO.js +68 -0
- package/dist/chunks/knowledge-graph-explorer.class-5OUV5L6G.js +55 -0
- package/dist/chunks/known-date.class-RTGHUBGP.js +27 -0
- package/dist/chunks/layered-layout-OESYHVZG.js +1 -0
- package/dist/chunks/lightbox-item.class-7IZWQWVO.js +9 -0
- package/dist/chunks/lightbox.class-SJZWUXF4.js +39 -0
- package/dist/chunks/line-chart.class-XVDMRPVA.js +1 -0
- package/dist/chunks/lite-chart.class-WL3RR5AO.js +1 -0
- package/dist/chunks/live-region.class-5QSNVPGP.js +1 -0
- package/dist/chunks/locale-picker.class-OYP36LHA.js +35 -0
- package/dist/chunks/lr-attachment-chip-WZSKK7OT.js +1 -0
- package/dist/chunks/lr-button-FOWJMQBE.js +1 -0
- package/dist/chunks/lr-checkbox-UCQ46QYB.js +1 -0
- package/dist/chunks/lr-checkbox-group-66XB6GXG.js +1 -0
- package/dist/chunks/lr-chip-RMKTQJMH.js +1 -0
- package/dist/chunks/lr-citation-badge-A5NBC44F.js +1 -0
- package/dist/chunks/lr-code-block-F6PZS5RO.js +1 -0
- package/dist/chunks/lr-details-Z6B5IAP3.js +1 -0
- package/dist/chunks/lr-document-preview-PSXY6CER.js +1 -0
- package/dist/chunks/lr-dropdown-4FVM2VZA.js +1 -0
- package/dist/chunks/lr-dropdown-item-BJVD3V7C.js +1 -0
- package/dist/chunks/lr-empty-RRDLJFIR.js +1 -0
- package/dist/chunks/lr-entity-card-H4U2XPVV.js +1 -0
- package/dist/chunks/lr-flag-6ZEB2C6F.js +1 -0
- package/dist/chunks/lr-grounding-summary-47T7HVD4.js +1 -0
- package/dist/chunks/lr-json-viewer-V7WXHKWB.js +1 -0
- package/dist/chunks/lr-markdown-BL6ZKV2L.js +1 -0
- package/dist/chunks/lr-neighbor-list-42A7TWPV.js +1 -0
- package/dist/chunks/lr-option-O5YKQGYD.js +1 -0
- package/dist/chunks/lr-pagination-TEVWTWZR.js +1 -0
- package/dist/chunks/lr-path-strip-CVM37IJK.js +1 -0
- package/dist/chunks/lr-select-54E6JWXG.js +1 -0
- package/dist/chunks/lr-source-card-3GDTLINC.js +1 -0
- package/dist/chunks/lr-thinking-panel-ZBVEHINV.js +1 -0
- package/dist/chunks/lr-toast-QOENFRV5.js +1 -0
- package/dist/chunks/lr-tool-approval-dialog-CFLKYA5W.js +1 -0
- package/dist/chunks/lr-tool-call-block-766HXOJC.js +1 -0
- package/dist/chunks/lr-tool-call-chip-4YEACPS5.js +1 -0
- package/dist/chunks/lr-tool-param-form-IBU4P2BH.js +1 -0
- package/dist/chunks/lr-tool-result-view-35FSFJX2.js +1 -0
- package/dist/chunks/lr-tool-timeline-XXBTVALU.js +1 -0
- package/dist/chunks/lr-virtual-list-KLXF67KT.js +1 -0
- package/dist/chunks/lr-widget-renderer-E7H56NWQ.js +1 -0
- package/dist/chunks/map-anchor-controller-FZUGR6E2.js +1 -0
- package/dist/chunks/map-anchor.class-T34NQADS.js +1 -0
- package/dist/chunks/map-controls-lifecycle-SRF5BBIB.js +1 -0
- package/dist/chunks/map-data-layer-runtime-YE3JHYGD.js +1 -0
- package/dist/chunks/map-drawing-controller-WCQGUQFM.js +1 -0
- package/dist/chunks/map-feature-state-routes-PK32TXQJ.js +1 -0
- package/dist/chunks/map-hash-owner-IKTTU6J7.js +1 -0
- package/dist/chunks/map-image-export-controller-RUSEHX7D.js +5 -0
- package/dist/chunks/map-images-YCFC6YNN.js +1 -0
- package/dist/chunks/map-owned-features-YH3B3HM2.js +1 -0
- package/dist/chunks/map-scene-controls-7MOIIX4X.js +1 -0
- package/dist/chunks/map-scene-elevated-lines-5LJFZBCQ.js +36 -0
- package/dist/chunks/map-scene-render-controller-22M5JR2L.js +1 -0
- package/dist/chunks/map-style-overrides-QPN774ZE.js +1 -0
- package/dist/chunks/map.class-6GLEG3EW.js +87 -0
- package/dist/chunks/markdown-core.class-XGQKXDR7.js +1 -0
- package/dist/chunks/markdown.class-GXUI6C3W.js +1 -0
- package/dist/chunks/mcp-app.class-SMBZKVIE.js +49 -0
- package/dist/chunks/media-card.class-HH42MEPL.js +1 -0
- package/dist/chunks/memory-panel.class-A2T7V4OS.js +59 -0
- package/dist/chunks/mention-popover.class-PR2XWTH4.js +18 -0
- package/dist/chunks/menu-item.class-MWBBEDEO.js +1 -0
- package/dist/chunks/menu-label.class-OS4OXDQ3.js +1 -0
- package/dist/chunks/menu.class-YIJ6JJZG.js +1 -0
- package/dist/chunks/menubar-item.class-THRQ2YDD.js +1 -0
- package/dist/chunks/menubar.class-BX7ZAG76.js +1 -0
- package/dist/chunks/message-actions.class-O2RLFQWJ.js +10 -0
- package/dist/chunks/message-feedback.class-MGX6GNUL.js +1 -0
- package/dist/chunks/message-parts.class-IJVBDYNL.js +11 -0
- package/dist/chunks/mind-map.class-5WNMK3DN.js +36 -0
- package/dist/chunks/model-select.class-NRD5BP6S.js +1 -0
- package/dist/chunks/model-settings-panel.class-WFKPFGIV.js +13 -0
- package/dist/chunks/model-viewer.class-CBG2CVNO.js +9 -0
- package/dist/chunks/multi-split.class-4TYA4SO4.js +9 -0
- package/dist/chunks/mutation-observer.class-O6GSBFYQ.js +1 -0
- package/dist/chunks/native-time-input.class-E6IHEFEF.js +1 -0
- package/dist/chunks/navigation-menu-item.class-APWZ2TUY.js +7 -0
- package/dist/chunks/navigation-menu.class-DFOLBKU3.js +8 -0
- package/dist/chunks/neighbor-list.class-BQDHYAE4.js +1 -0
- package/dist/chunks/node-palette.class-3Z6TSZS6.js +25 -0
- package/dist/chunks/notebook-viewer.class-QXA4U7SU.js +16 -0
- package/dist/chunks/number-input.class-XWSNL57L.js +1 -0
- package/dist/chunks/number-ticker.class-3M2DW55V.js +1 -0
- package/dist/chunks/option.class-WYSAIWE3.js +1 -0
- package/dist/chunks/otp-input.class-AO7MTPCY.js +12 -0
- package/dist/chunks/page-rail.class-4REURRKR.js +16 -0
- package/dist/chunks/page.class-6DBYH7CG.js +52 -0
- package/dist/chunks/pagination.class-HERBBEOL.js +1 -0
- package/dist/chunks/pan-zoom.class-5AHG6YRE.js +1 -0
- package/dist/chunks/passive-markup-54LSKNVB.js +1 -0
- package/dist/chunks/path-strip.class-4NBX3SOP.js +1 -0
- package/dist/chunks/pdf-viewer.class-YLSXSR2B.js +14 -0
- package/dist/chunks/permission-grant.class-RN4VZBKN.js +16 -0
- package/dist/chunks/permission-rules.class-3YV3FYA4.js +18 -0
- package/dist/chunks/phone-input.class-YHNLM55W.js +29 -0
- package/dist/chunks/pie-chart.class-VODVZCSP.js +1 -0
- package/dist/chunks/polar-area-chart.class-IMKORO3H.js +1 -0
- package/dist/chunks/policy-summary.class-VRKIJRYA.js +23 -0
- package/dist/chunks/poll-status.class-CSLFDKRA.js +15 -0
- package/dist/chunks/popover.class-NTMQAVHE.js +1 -0
- package/dist/chunks/popup.class-A5TLOULM.js +8 -0
- package/dist/chunks/positioner-V5P6XVZW.js +1 -0
- package/dist/chunks/pptx-viewer.class-PLTIFVBD.js +14 -0
- package/dist/chunks/progress-bar.class-OD75C4K3.js +4 -0
- package/dist/chunks/progress-ring.class-MRGTWKTL.js +7 -0
- package/dist/chunks/prompt-input.class-D6A5PWDZ.js +28 -0
- package/dist/chunks/prompt-queue.class-B4EEH3AO.js +28 -0
- package/dist/chunks/prompt-studio.class-SZ2OMY3T.js +67 -0
- package/dist/chunks/provenance-panel.class-6PSWC5G7.js +1 -0
- package/dist/chunks/push-to-talk.class-CN2BMG2V.js +1 -0
- package/dist/chunks/qr-code.class-GSYIWBKK.js +4 -0
- package/dist/chunks/radar-chart.class-OLQIGFYR.js +1 -0
- package/dist/chunks/radial-bar.class-RFXEA26T.js +10 -0
- package/dist/chunks/radio-button.class-TX3TZQML.js +1 -0
- package/dist/chunks/radio-group.class-BORI2LTS.js +12 -0
- package/dist/chunks/radio.class-E3CXUAYU.js +1 -0
- package/dist/chunks/rag-answer.class-GHA7OOAL.js +27 -0
- package/dist/chunks/rag-eval-dashboard.class-S6VGUBXL.js +54 -0
- package/dist/chunks/random-content.class-ZKB5HTPT.js +11 -0
- package/dist/chunks/rating.class-DNNOLSJX.js +8 -0
- package/dist/chunks/realtime-session.class-37KSLLRL.js +28 -0
- package/dist/chunks/relative-time.class-WLVVINPZ.js +1 -0
- package/dist/chunks/reorder-item.class-EUGO5GHM.js +16 -0
- package/dist/chunks/reorder-list.class-PW6RNOW3.js +6 -0
- package/dist/chunks/research-progress.class-E5YWFJ4F.js +21 -0
- package/dist/chunks/resize-observer.class-PPUDNUN4.js +1 -0
- package/dist/chunks/responsive-panel.class-YUYAF2E5.js +17 -0
- package/dist/chunks/result-card.class-4ORWV5KQ.js +1 -0
- package/dist/chunks/result-field.class-ZY54DBG5.js +1 -0
- package/dist/chunks/retrieval-compare.class-BROHJ3ID.js +44 -0
- package/dist/chunks/retrieval-results.class-FXBUJDUC.js +37 -0
- package/dist/chunks/retrieval-search.class-AH67OJ4K.js +22 -0
- package/dist/chunks/retrieval-trace.class-FD2WLDUI.js +25 -0
- package/dist/chunks/rubric-form.class-2BCNON3Q.js +49 -0
- package/dist/chunks/sankey.class-EMHA3ZVD.js +2 -0
- package/dist/chunks/scatter-chart.class-CTYLVUDJ.js +1 -0
- package/dist/chunks/schema-viewer.class-X47LWEX7.js +32 -0
- package/dist/chunks/scroller.class-VNVZUQY3.js +1 -0
- package/dist/chunks/segmented.class-RHULKE77.js +1 -0
- package/dist/chunks/select.class-ACREPFVX.js +1 -0
- package/dist/chunks/selection-toolbar.class-ZFPYHJKD.js +5 -0
- package/dist/chunks/sequence-playback.class-UZSTO4L6.js +9 -0
- package/dist/chunks/sequence-strip-source-controller-TBFABYT4.js +1 -0
- package/dist/chunks/sequence-strip.class-U5D6HJUJ.js +45 -0
- package/dist/chunks/signature-pad.class-AN6MALUI.js +17 -0
- package/dist/chunks/skeleton.class-NRGJLESX.js +1 -0
- package/dist/chunks/slider.class-J5TA65CX.js +1 -0
- package/dist/chunks/source-card.class-QYFB5JVD.js +1 -0
- package/dist/chunks/source-list.class-GWRURXGD.js +11 -0
- package/dist/chunks/source-picker.class-VXI4FOQS.js +27 -0
- package/dist/chunks/span-waterfall.class-GUW3NHYL.js +1 -0
- package/dist/chunks/sparkline.class-HVMZ2X6P.js +12 -0
- package/dist/chunks/spinner.class-AGCPM2TZ.js +1 -0
- package/dist/chunks/split-panel.class-BPVZTWZY.js +13 -0
- package/dist/chunks/spreadsheet-viewer.class-IRJXDMYD.js +9 -0
- package/dist/chunks/stack-trace.class-PSEUMRXV.js +27 -0
- package/dist/chunks/stat.class-MK4L5S7Y.js +1 -0
- package/dist/chunks/step.class-DKYFFMTD.js +18 -0
- package/dist/chunks/stepper.class-3VTA4Q4Y.js +22 -0
- package/dist/chunks/stream-status.class-BF4Y5K4N.js +14 -0
- package/dist/chunks/streaming-text-core.class-JXCHGQT6.js +1 -0
- package/dist/chunks/streaming-text.class-466AYDYR.js +1 -0
- package/dist/chunks/style-panel.class-4WDVCE52.js +9 -0
- package/dist/chunks/subagent-panel.class-5PTX2TH5.js +22 -0
- package/dist/chunks/suggestion-chips.class-5M54LJQN.js +13 -0
- package/dist/chunks/svg-viewer.class-62LEPJYV.js +6 -0
- package/dist/chunks/swatch-picker.class-7E4FE5CT.js +15 -0
- package/dist/chunks/switch.class-XWZ6HOAU.js +1 -0
- package/dist/chunks/tab-group.class-VVM4NKXQ.js +1 -0
- package/dist/chunks/tab-panel.class-2WOWRVDB.js +1 -0
- package/dist/chunks/tab.class-QUE23SXQ.js +1 -0
- package/dist/chunks/table.class-QYW5ORNY.js +85 -0
- package/dist/chunks/tag.class-H3JEVLPR.js +3 -0
- package/dist/chunks/task-list.class-EGBWNTAD.js +40 -0
- package/dist/chunks/terminal.class-7VVFQ57Z.js +28 -0
- package/dist/chunks/test-results.class-VNEWN2OU.js +55 -0
- package/dist/chunks/text-quote-index-43G6MA3W.js +1 -0
- package/dist/chunks/textarea.class-XDQKJ432.js +1 -0
- package/dist/chunks/thinking-panel.class-MD2E3YKO.js +1 -0
- package/dist/chunks/thread-list.class-CTXIHTQQ.js +66 -0
- package/dist/chunks/time-input.class-FCIYWGO4.js +38 -0
- package/dist/chunks/time-range.class-XXMSXARI.js +13 -0
- package/dist/chunks/time-zone-picker.class-6ZEH7A2C.js +1 -0
- package/dist/chunks/timeline-item.class-4OZLSCAH.js +36 -0
- package/dist/chunks/timeline.class-S4AHAP3V.js +13 -0
- package/dist/chunks/toast-item.class-F2SY7DYP.js +1 -0
- package/dist/chunks/toast.class-DLXDLSFL.js +1 -0
- package/dist/chunks/toggle-group.class-VGOPG7AZ.js +3 -0
- package/dist/chunks/toggle.class-SU2EYDBN.js +3 -0
- package/dist/chunks/token-input.class-D2IFZHJ4.js +27 -0
- package/dist/chunks/tool-approval-dialog.class-4KA4A5JY.js +1 -0
- package/dist/chunks/tool-call-block.class-6LCDKUHT.js +1 -0
- package/dist/chunks/tool-call-chip.class-XTSFF5DD.js +1 -0
- package/dist/chunks/tool-param-form.class-KC3FCGXE.js +1 -0
- package/dist/chunks/tool-result-dialog.class-HW7VBXQ7.js +35 -0
- package/dist/chunks/tool-result-view.class-AD3YEU4X.js +1 -0
- package/dist/chunks/tool-select-dialog.class-VJDI5JVJ.js +58 -0
- package/dist/chunks/tool-timeline.class-7XBH2YDU.js +1 -0
- package/dist/chunks/tooltip.class-MXUQ6PAU.js +1 -0
- package/dist/chunks/tour.class-IB74A2TU.js +44 -0
- package/dist/chunks/trace-tree.class-L2A3FIPW.js +38 -0
- package/dist/chunks/transcript-feed.class-OZWTJKLL.js +1 -0
- package/dist/chunks/tree-item.class-TVSMLGZ7.js +1 -0
- package/dist/chunks/tree.class-XQUKO24E.js +11 -0
- package/dist/chunks/treemap.class-7NAGNNWK.js +4 -0
- package/dist/chunks/typing-indicator.class-IVFR24ZI.js +4 -0
- package/dist/chunks/unit-picker.class-O4D4ZGMT.js +1 -0
- package/dist/chunks/usage-badge-overlay-runtime-E3FACAVI.js +1 -0
- package/dist/chunks/usage-badge.class-6CHSV6U7.js +24 -0
- package/dist/chunks/video-playlist.class-R5A5H6TT.js +28 -0
- package/dist/chunks/video-thumbnails-DN3N5ZJR.js +5 -0
- package/dist/chunks/video.class-NBJLOC5D.js +101 -0
- package/dist/chunks/virtual-list.class-F4VBJK33.js +1 -0
- package/dist/chunks/visually-hidden.class-WIRQAOHJ.js +1 -0
- package/dist/chunks/voice-picker.class-ZP57HP5Q.js +47 -0
- package/dist/chunks/widget-renderer.class-2W475PVB.js +1 -0
- package/dist/chunks/widget.class-IC32HE5J.js +41 -0
- package/dist/chunks/word-cloud.class-J6DW54DZ.js +26 -0
- package/dist/chunks/xml-viewer.class-HDNKLHFI.js +39 -0
- package/dist/chunks/zoomable-frame.class-4J22EEKD.js +4 -0
- package/dist/density.css +1 -0
- package/dist/design-tokens.css +1 -0
- package/dist/lyra-ui.loader.js +1 -0
- package/dist/native.css +1 -0
- package/dist/theme-core.css +1 -0
- package/dist/theme.css +1 -0
- package/dist/utilities.css +1 -0
- package/package.json +60 -3
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import{a as Tt,b as bo,c as vo,d as yo,e as wo}from"./chunk-PO7I65U7.js";import{b as Ri}from"./chunk-GS3SNJSH.js";import{a as _e}from"./chunk-CT2EQPYB.js";import{a as $t}from"./chunk-T2RUXH53.js";import{a as Gt}from"./chunk-KMEVGBVM.js";import{a as _o}from"./chunk-W2Q5B22N.js";import{c as So}from"./chunk-2HHGGW2U.js";import{a as Lo,b as ut,c as fe,d as he,e as ko,f as Ao,g as xo,h as zo,k as ns}from"./chunk-Y5NLVFCT.js";import{b as Co,d as Pi}from"./chunk-GWK6YXNE.js";import{a as Oi}from"./chunk-V7ZVCKZR.js";import{a as U,b as Qe,c as Ei}from"./chunk-EGJATIB6.js";import{a as Ai,b as Dt,c as jt,d as xi,e as Ft}from"./chunk-LWRRZGB2.js";import"./chunk-E3D5VGRJ.js";import{b as go,c as zi,d as Mi,e as fo}from"./chunk-EPCZZM2T.js";import{a as Xe}from"./chunk-WV7EKGZO.js";import{a as It}from"./chunk-BJSAEYK3.js";import{a as mo}from"./chunk-R54QPLJ7.js";import{b as uo}from"./chunk-PZ2KUPDO.js";import"./chunk-YVOGDIOW.js";import{g as lo}from"./chunk-OUV7KSOP.js";import{a as Ne}from"./chunk-O4NFRBN5.js";import{b as co}from"./chunk-4QBXZ5BM.js";import{a as Li,b as ki,c as po,d as ho}from"./chunk-XYHOA2VI.js";import{$a as Pn,Aa as an,Ab as ao,Ba as sn,Ca as ln,Da as cn,Ea as pn,Fa as dn,Ga as hn,Ha as un,Ia as mn,Ja as gn,Ka as fn,La as bn,Ma as vn,Na as yn,Oa as wn,Pa as Sn,Qa as Cn,Ra as _n,Sa as Ln,Ta as kn,Ua as An,Va as xn,Wa as zn,Xa as Mn,Ya as On,Za as Rn,_a as En,ab as In,bb as Dn,cb as jn,db as Fn,eb as Tn,fb as Gn,gb as $n,hb as Nn,ib as Un,jb as Bn,kb as qn,lb as Hn,mb as Wn,nb as Vn,ob as Zn,pb as Yn,qb as Kn,rb as Jn,sa as Jr,sb as Xn,ta as Xr,tb as Qn,ua as Qr,ub as eo,va as en,vb as to,wa as tn,wb as io,xa as rn,xb as ro,ya as nn,yb as no,za as on,zb as oo}from"./chunk-BFMOZL5O.js";import{a as so}from"./chunk-J24TYMEI.js";import{a as Kr}from"./chunk-KPB62ASL.js";import"./chunk-2MJHMCYK.js";import"./chunk-4QG5Y44P.js";import{b as _i,c as Yr}from"./chunk-GGSUOPBU.js";import{c as $e}from"./chunk-O3PZG44H.js";import"./chunk-H62CTJMK.js";import{a as ht}from"./chunk-GT6NF7FZ.js";import{a as Wr,b as Vr}from"./chunk-JFDY4CIA.js";import{a as Ke,b as Je}from"./chunk-43JJVC4Y.js";import{a as Ye}from"./chunk-FOABE6ZB.js";import{a as Ci}from"./chunk-ONTV26D7.js";import{a as Zr}from"./chunk-IHHKAXNV.js";import"./chunk-SWG4IM7R.js";import{a as fr,c as br,d as vr}from"./chunk-CSV23ONU.js";import{e as $r}from"./chunk-WK4ZGZU2.js";import{c as Si}from"./chunk-GUP74TZL.js";import{b as Nr}from"./chunk-C6BTEIPF.js";import"./chunk-EHOJ7YCN.js";import"./chunk-FY3YWTCF.js";import{e as xr,f as zr}from"./chunk-QCM7NVLU.js";import"./chunk-PJ72NB2H.js";import{a as kr}from"./chunk-2WXXKPUW.js";import"./chunk-34M5HC53.js";import{Da as Rr,Ea as Er,Ga as Pr,Ha as Ir,Pa as Dr,Rb as Fr,Sb as Tr,Xa as jr,t as Mr,za as Or}from"./chunk-IFDV4HWR.js";import{a as Gr}from"./chunk-VQAZGI6X.js";import"./chunk-G6XBJVZN.js";import"./chunk-IRH2OYBM.js";import{a as Ae,f as Ze,g as Br}from"./chunk-3HGKUVDX.js";import{c as Ur}from"./chunk-JNB4S2FJ.js";import{b as Rt,e as wr}from"./chunk-BDETGDBF.js";import{D as wi,E as Ge,a as xe,b as Fe,f as Ar,h as dt,u as Te,v as Ce}from"./chunk-2CH7YZRL.js";import{d as _r,g as Lr}from"./chunk-32IK33EM.js";import{a as _,b as R,c as ae,d as Et,g as Cr,z as yi}from"./chunk-JTGCA7JE.js";import"./chunk-4VZYY6B7.js";import{b as ke}from"./chunk-CR23WLJQ.js";import{d as Ee,g as ne,h as ye,j as ct,k as q,l as oe,n as Ot,p as yr,r as V,s as we}from"./chunk-RDTKEL46.js";import{b as pt}from"./chunk-5NRIHGYU.js";import{b as lt,e as P,i as H}from"./chunk-CN2FTU25.js";import{a as qr,b as Hr}from"./chunk-ZVB4ZXSV.js";import"./chunk-MM5JS5OO.js";import"./chunk-RNCRO7PW.js";import"./chunk-UDRXM6B3.js";import"./chunk-KLAMX2AK.js";import"./chunk-ZD6IWVN5.js";import{a as bi,b as Z,i as Sr,j as Pt,k as vi}from"./chunk-AVZPWRZU.js";import"./chunk-GMPUTEBU.js";import{c as fi}from"./chunk-3CLMBMQL.js";import{a as Mt}from"./chunk-OP7ARFKR.js";import{e as zt}from"./chunk-5PNMEGOF.js";import{c as st}from"./chunk-Z7WGANHK.js";var Nt=.5;function os(a,e,t,i){if(![a.left,a.top,a.width,a.height,e.left,e.top,e.width,e.height,t,i].every(Number.isFinite)||Math.min(a.width,a.height,e.width,e.height,t,i)<=0||a.left<e.left-Nt||a.top<e.top-Nt||a.left+a.width>e.left+e.width+Nt||a.top+a.height>e.top+e.height+Nt)return;let r=t/a.width,n=i/a.height,o=(e.left-a.left)*r,s=(e.top-a.top)*n,c=e.width*r,l=e.height*n,p={left:Math.max(0,-o),top:Math.max(0,-s),right:Math.max(0,c+o-t),bottom:Math.max(0,l+s-i)};if([o,s,c,l,...Object.values(p)].every(Number.isFinite))return{left:o,top:s,width:c,height:l,padding:p}}function as(a,e){let t=a.ownerDocument.defaultView;if(!t)return!1;let i=a,r=e==="viewport";for(let n=0;i&&n<128;n++,i=st(i)){i===e&&i!==a&&(r=!0);let o=t.getComputedStyle(i);if(o.perspective!=="none"||o.rotate!=="none"&&o.rotate!=="0deg"||o.scale!=="none"&&o.scale.split(/\s+/).some(s=>!Number.isFinite(parseFloat(s))||parseFloat(s)<=0))return!1;if(o.transform!=="none"){let s=new t.DOMMatrixReadOnly(o.transform);if(!s.is2D||s.a<=0||s.d<=0||s.b!==0||s.c!==0)return!1}}return i===null&&r}function ss(a,e,t){let i=t.getComputedStyle(a),r=v=>parseFloat(v),n=r(i.borderLeftWidth),o=r(i.borderRightWidth),s=r(i.borderTopWidth),c=r(i.borderBottomWidth),l=r(i.paddingLeft)+r(i.paddingRight),p=r(i.paddingTop)+r(i.paddingBottom),d=r(i.width)+(i.boxSizing==="border-box"?0:l+n+o),h=r(i.height)+(i.boxSizing==="border-box"?0:p+s+c),u=d-n-o,m=h-s-c;if(![d,h,u,m,n,o,s,c].every(Number.isFinite)||Math.min(d,h,u,m,e.width,e.height)<=0)return;let f=e.width/d,b=e.height/h;return{width:u,height:m,rect:{left:e.left+n*f,top:e.top+s*b,width:u*f,height:m*b}}}var Mo=["left","top","width","height","inset-top","inset-right","inset-bottom","inset-left"],Ut=class{constructor(e){this.host=e,this.key="",this.updating=!1,this.stopped=!1,this.visible=!0,this.observer=new br(e.element,t=>{let i=this.watched&&vr(t,this.watched);i===void 0||i===this.visible||(this.visible=i,this.refresh())})}watch(e){e!==this.watched&&(this.observer.clear(),this.watched=e,this.visible=!0,e&&this.observer.observe(e))}refresh(){if(!(this.stopped||this.updating)){this.updating=!0;try{let e=this.host.element,t=this.host.base(),i=this.host.target(),r,n=e.ownerDocument.defaultView;if(e.isConnected&&t&&i!==void 0&&n)try{let c=i,l=i==="viewport"||c!==null&&typeof c=="object"&&c!==e&&c.namespaceURI==="http://www.w3.org/1999/xhtml"&&c.ownerDocument===e.ownerDocument&&c.isConnected;if(this.watch(l?i==="viewport"?e:c:void 0),l&&as(t,i)){let p=t.getBoundingClientRect(),d=n.visualViewport,h=i==="viewport"?{left:d?.offsetLeft??0,top:d?.offsetTop??0,width:d?.width??e.ownerDocument.documentElement.clientWidth,height:d?.height??e.ownerDocument.documentElement.clientHeight}:i.ownerDocument===e.ownerDocument&&i.isConnected?i.getBoundingClientRect():void 0,u=ss(t,p,n);h&&u&&(r=os(u.rect,h,u.width,u.height))}}catch{}else this.watch();let o=r?[r.left,r.top,r.width,r.height,r.padding.top,r.padding.right,r.padding.bottom,r.padding.left]:[],s=o.map(c=>Math.round(c*1e3)/1e3).join(",");if((t!==this.base||s!==this.key)&&(this.base&&this.base!==t&&this.clear(this.base),this.base=t,this.key=s,t&&Mo.forEach((c,l)=>{r?t.style.setProperty(`--_lr-map-canvas-${c}`,`${o[l]}px`):t.style.removeProperty(`--_lr-map-canvas-${c}`)}),this.host.changed(r)),this.stopped)return;this.visible&&e.isConnected&&this.host.target()!==void 0&&n&&e.ownerDocument.defaultView===n?this.schedule(n):this.cancel()}finally{this.updating=!1}}}schedule(e){if(this.frame?.view===e)return;this.cancel();let t=e.requestAnimationFrame(()=>{this.frame?.id!==t||this.frame.view!==e||(this.frame=void 0,this.refresh())});this.frame={view:e,id:t}}cancel(){this.frame&&this.frame.view.cancelAnimationFrame(this.frame.id),this.frame=void 0}clear(e){for(let t of Mo)e.style.removeProperty(`--_lr-map-canvas-${t}`)}dispose(){this.stopped=!0,this.cancel(),this.watch(),this.base&&this.clear(this.base),this.base=void 0}};function et(){throw new DOMException("Map paint work was cancelled.","AbortError")}var Bt=class{constructor(){this.values=new Map}run(e,t,i,r){if(this.active){(this.active.peer!==e||!this.active.current()||!i())&&et(),r();return}i()||et(),(e!==this.peer||!Object.is(this.style,t))&&(this.values.clear(),this.peer=e,this.style=t);let n={peer:e,current:i,dirty:!1};this.active=n;try{r(),i()||et(),n.dirty&&typeof e.triggerRepaint=="function"&&(e.triggerRepaint(),i()||et())}catch(o){throw this.values.clear(),o}finally{this.active===n&&(this.active=void 0)}}invalidate(e){for(let[t,i]of this.values)i.id===e&&this.values.delete(t)}write(e,t,i){let r=this.active;(!r||!r.current())&&et();let n=JSON.stringify([e,t]),o=JSON.stringify(i),s=this.values.get(n);s&&s.value===o||(r.peer.setPaintProperty(e,t,i),r.current()||et(),this.values.set(n,{id:e,value:o}),r.dirty=!0)}};function se(){throw new Error("Invalid map font source.")}function Ii(a,e){return Ot(a,e,se)}function ls(a){if(typeof a!="string")return!1;let e=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i.exec(a);if(!e)return!1;if(e[3]!==void 0)return e[3].length<=6;let t=Number.parseInt(e[1],16),i=Number.parseInt(e[2]??e[1],16);return t<=i&&i<=1114111}function cs(a){if(!V(a))return se();let e=Reflect.ownKeys(a);if(e.length===0||e.length>64)return se();let t=5e4,i=()=>{--t<0&&se()},r=(o,s)=>{if(!Array.isArray(o))return se();let c=we(o);if(c===void 0||c>s)return se();let l=[];for(let p=0;p<c;p++){i();let d=q(o,String(p));if(d===ne||d===ye)return se();l.push(d.value)}return l},n=Object.create(null);for(let o of e){if(typeof o!="string")continue;i();let s=q(a,o);if(s===ne||s===ye)return se();if(!s.enumerable)continue;if(!o.trim())return se();if(typeof s.value=="string"){if(!s.value.trim())return se();n[o]=s.value;continue}let c=r(s.value,256);if(c.length===0)return se();n[o]=Object.freeze(c.map(l=>{if(!V(l))return se();let p=Reflect.ownKeys(l);if(p.length>2||p.some(m=>m!=="url"&&m!=="unicode-range"))return se();i();let d=Ii(l,"url");if(typeof d!="string"||!d.trim())return se();let h=q(l,"unicode-range");if(h===ye)return se();if(h===ne)return Object.freeze({url:d});let u=r(h.value,64);return u.every(ls)?Object.freeze({url:d,"unicode-range":Object.freeze(u)}):se()}))}return Object.keys(n).length>0?Object.freeze({...n}):se()}function Oo(a,e){if(!V(a))return Rt(a,e);let t=Object.freeze({});try{let r=Ii(a,"glyphs"),n=Ii(a,"font-faces"),o=typeof r=="string"&&r.trim().length>0,s;if(n!==void 0)try{s=cs(n)}catch{if(!o)throw new Error("Invalid map font source.")}t=Object.freeze({...o?{glyphs:r}:{},...s?{"font-faces":s}:{}})}catch{}let i=Rt(a,e,{recordKey:(r,n,o)=>o===0&&(r==="glyphs"||r==="font-faces")?"omit":"copy"});return V(i)?Rt({...i,...t},e):i}function ps(a,e){if(!V(a))throw new TypeError("Invalid camera data record");for(let t of Reflect.ownKeys(a)){if(typeof t!="string"||!e.includes(t))throw new TypeError("Unknown camera data field");Pe(a,t)}return a}function Pe(a,e){return Ot(a,e,()=>{throw new TypeError("Invalid camera data descriptor")})}function Di(a){if(typeof a!="number"||!Number.isFinite(a))throw new TypeError("Expected finite camera value");return a}function qt(a,e,t){let i=Di(a);if(i<e||i>t)throw new RangeError("Camera value outside supported range");return i}function ds(a){let e=a%360,t=e>=180?e-360:e<-180?e+360:e;return t===0?0:t}function hs(a,e,t){if(!Array.isArray(a))throw new TypeError("Expected camera data array");let i=qt(Pe(a,"length"),e,t);if(!Number.isInteger(i))throw new TypeError("Invalid camera data array length");let r=Reflect.ownKeys(a);if(r.length!==i+1||r.some(n=>typeof n!="string"||n!=="length"&&(!/^(0|[1-9]\d*)$/.test(n)||Number(n)>=i)))throw new TypeError("Invalid camera data array fields");return{value:a,length:i}}function ji(a){let e=ps(a,["center","zoom","bearing","pitch"]),t=hs(Pe(e,"center"),2,2).value;return Object.freeze({center:Object.freeze([qt(Pe(t,"0"),-180,180),qt(Pe(t,"1"),-90,90)]),zoom:Di(Pe(e,"zoom")),bearing:ds(Di(Pe(e,"bearing"))),pitch:qt(Pe(e,"pitch"),0,85)})}var Fi=new WeakMap;function Ro(a,e){return Fi.set(a,e),()=>{Fi.get(a)===e&&Fi.delete(a)}}function us(a){if(a.status==="absent")return Object.freeze({kind:"absent"});if(a.status==="unsupported-kind")return Object.freeze({kind:"unsupported",objectKind:a.kind});let{target:e}=a;return Object.freeze({kind:"eligible",objectKind:e.kind,positionRevision:e.acceptedPositionRevision,center:Object.freeze([e.position.lngLat[0],e.position.lngLat[1]]),altitude:e.position.altitude,altitudeReference:e.position.altitudeReference})}function Eo(a,e){let t=-1,i,r=n=>{let o=a.capture();return n!==e?o.targets.find(s=>s.id===n):(o.registryRevision!==t&&(t=o.registryRevision,i=o.targets.find(s=>s.id===n)),i)};return{target(n){let o=r(n);return o?"position"in o?us({status:"accepted",target:o}):{kind:"unsupported",objectKind:o.kind}:{kind:"absent"}},subscribeTargets(n){let o=r(e),s=a.capture().viewport?.allocationRevision;return a.subscribe(()=>{let c=a.capture(),l=r(e);o!==l&&!(o&&l&&!("position"in o)&&o.kind===l.kind)&&(o=l,n({kind:"target",objectId:e})),!(c!==a.capture()||!c.viewport||c.viewport.allocationRevision===s)&&(s=c.viewport.allocationRevision,n({kind:"viewport",revision:s}))})}}}var Ti=new WeakMap;function Po(a,e,t){let i={attachment:e,ground:t};return Ti.set(a,i),()=>{Ti.get(a)===i&&Ti.delete(a)}}var Gi=new WeakMap;function Io(a,e){return Gi.set(a,e),()=>{Gi.get(a)===e&&Gi.delete(a)}}var Do=new WeakMap;function ze(a){let e=new TypeError(a==="limit"?"Map scene input limit exceeded":"Invalid map scene descriptor");return Do.set(e,a),Object.freeze(e)}function tt(a){return a!==null&&(typeof a=="object"||typeof a=="function")?Do.get(a):void 0}var ms=["gltf","glb","stl","obj","ply","xyz","pcd"],gs=32,jo=1048576,fs=4194304,Fo=new WeakSet;function B(){throw ze("invalid")}function gt(){throw ze("limit")}function Ht(a){if(tt(a)!==void 0)throw a;return B()}function bs(){let a=new TypeError("Stale map scene source");throw Fo.add(a),a}function ft(a){return Wt(a)&&Fo.has(a)}function Wt(a){return a!==null&&(typeof a=="object"||typeof a=="function")}function Ie(a,e){let t=q(a,e);return t===ne||t===ye?B():t.value}function it(a){if(!V(a))return B();let e=Reflect.ownKeys(a);if(e.length!==2||!e.includes("format"))return B();let t=Ie(a,"format");if(typeof t!="string"||!ms.includes(t))return B();if(e.includes("bytes")){let i=Ie(a,"bytes");return Wt(i)?{record:a,kind:"bytes",format:t,bytes:i}:B()}if(e.includes("src")){let i=Ie(a,"src");return typeof i!="string"?B():i.length>jo?gt():i.trim().length===0?B():{record:a,kind:"url",format:t,src:i}}return B()}function To(a){try{return it(a).record}catch(e){return Ht(e)}}function Go(a){try{return Object.freeze(it(a))}catch(e){return Ht(e)}}function mt(a,e){return a.record===e.record&&a.format===e.format&&(a.kind==="bytes"&&e.kind==="bytes"?a.bytes===e.bytes:a.kind==="url"&&e.kind==="url"&&a.src===e.src)}function rt(a,e){let t=Object.getOwnPropertyDescriptor(a,e)?.get;return t?i=>Reflect.apply(t,i,[]):void 0}var vs=rt(ArrayBuffer.prototype,"byteLength"),ys=rt(ArrayBuffer.prototype,"resizable"),Vt=Object.getPrototypeOf(Uint8Array.prototype),ws=rt(Vt,Symbol.toStringTag),Ss=rt(Vt,"buffer"),Cs=rt(Vt,"byteOffset"),_s=rt(Vt,"byteLength");function Ls(a){let e=a,t=0,i;if(ArrayBuffer.isView(a)){if(ws(a)!=="Uint8Array")return B();e=Ss(a),t=Cs(a),i=_s(a)}let r=vs(e);return ys?.(e)===!0||(i===void 0&&(i=r),typeof i!="number"||!Number.isSafeInteger(i)||i<0||!Number.isSafeInteger(t)||t<0)?B():(new Uint8Array(e,t,i),{buffer:e,byteOffset:t,byteLength:i})}function ks(a,e){if(!V(a))return B();let t=Ie(a,"connection"),i=Ie(a,"revision");return t!==e||typeof i!="number"||!Number.isSafeInteger(i)||i<1?B():Object.freeze({connection:e,revision:i})}function As(a){if(!V(a))return B();let e=Ie(a,"url"),t=Ie(a,"owner");return typeof e!="string"||e.length===0||!Wt(t)?B():e.length>jo?gt():Object.freeze({url:e,owner:t})}function xs(a){return a.candidate+a.accepted+a.installed}function $o(a){let{connection:e,isCurrent:t,reserveBytes:i,resolveUrl:r,maxEncodedBytes:n}=a;if(!Wt(e)||typeof t!="function"||typeof i!="function"||typeof r!="function"||!Number.isSafeInteger(n)||n<0)return B();let o=new Set,s=new WeakMap,c=new WeakMap,l=new WeakMap,p=new Set,d=!1,h=0,u=0,m=1,f=0;function b(k,A){if(d||h!==A||k.revision<u||!t(k)||d||h!==A||k.revision<u)return bs()}function v(k){if(xs(k)!==0||k.snapshot===void 0)return;let A=k.metadata,S=k.retire;k.sealed=!0,k.snapshot=void 0,k.metadata=void 0,k.retire=void 0,o.delete(k),A&&c.get(A.record)===k&&c.delete(A.record),f-=k.byteLength;try{S?.()}catch{}}function g(k,A){k[A]--,v(k)}function w(k,A){let S=!1;return Object.freeze({receipt:k.receipt,release(){S||(S=!0,g(k,A))}})}function O(k){if(k.status==="staged"){k.status="disposed",p.delete(k);for(let A of k.entries)g(A,"candidate")}}function z(k,A,S,M){if(!Number.isSafeInteger(m))return B();let y=Object.freeze({sourceId:m++,format:k.format}),L={metadata:k,receipt:y,byteLength:S,retire:M,snapshot:A,candidate:1,accepted:0,installed:0,published:!1,sealed:!1};return o.add(L),s.set(y,L),L}function I(k,A,S){if(k.kind==="url"){let x=r(k.src);b(A,S);let E=Object.freeze({kind:"url",format:k.format,request:As(x)});return mt(k,it(k.record))?(b(A,S),z(k,E,0)):B()}let M=Ls(k.bytes);if(M.byteLength>n-f)return gt();f+=M.byteLength;let y,L=!1;try{if(y=i(M.byteLength),b(A,S),!mt(k,it(k.record)))return B();let x=new Uint8Array(M.byteLength);x.set(new Uint8Array(M.buffer,M.byteOffset,M.byteLength)),b(A,S);let E=y,j=z(k,Object.freeze({kind:"bytes",format:k.format,bytes:x}),M.byteLength,()=>E.release());return L=!0,j}finally{if(!L){f-=M.byteLength;try{y?.release()}catch{}}}}function D(k,A,S){let M=[];try{let y=ks(A,e);b(y,h),y.revision>u&&(u=y.revision,h++);let L=h;if(!Array.isArray(k))return B();let x=we(k);if(x===void 0)return B();if(x>gs)return gt();if(Reflect.ownKeys(k).length!==x+1||S!==void 0&&S.length!==x)return B();let E=[],j=new Set;for(let Q=0;Q<x;Q++){let le=it(Ie(k,String(Q))),ge=S?.[Q]??le;if(!mt(ge,le))return B();j.has(ge.record)||(j.add(ge.record),E.push(ge))}let $=0;for(let Q of E){b(y,L);let le=c.get(Q.record);if(le){if(le.sealed||le.snapshot===void 0||!le.metadata||!mt(le.metadata,Q))return B();le.candidate++,M.push(le)}else M.push(I(Q,y,L));let ge=M[M.length-1].snapshot;if(ge?.kind==="url"&&($+=ge.request.url.length),$>fs)return gt()}for(let Q of E)if(!mt(Q,it(Q.record)))return B();b(y,L);let pe={request:y,entries:M,status:"staged"},me=Object.freeze({receipts:Object.freeze(M.map(Q=>Q.receipt)),dispose(){O(pe)}});return l.set(me,pe),p.add(pe),me}catch(y){for(let L of M)g(L,"candidate");return Ht(y)}}function Y(k){let A=l.get(k);if(!A||A.status!=="staged")return B();try{let S=h;if(b(A.request,S),A.status!=="staged")return B();for(let y of A.entries){if(!y.metadata)return B();let L=c.get(y.metadata.record);if(y.sealed||y.snapshot===void 0||L!==void 0&&L!==y)return B()}let M=Object.freeze(A.entries.map(y=>w(y,"accepted")));h++,A.status="published",p.delete(A);for(let y of A.entries)y.accepted++,y.candidate--,y.published=!0,c.set(y.metadata.record,y);return M}catch(S){if(ft(S))throw S;return Ht(S)}}function W(){h++;for(let k of o)k.sealed=!0,k.metadata&&c.delete(k.metadata.record)}return Object.freeze({stage:D,publish:Y,retain(k,A){let S=s.get(k);return d||!S||S.sealed||!S.published||S.snapshot===void 0||A!=="candidate"&&A!=="installed"?B():(S[A]++,w(S,A))},snapshot(k){let A=s.get(k);return!A||A.snapshot===void 0?B():A.snapshot},sealCurrent:W,dispose(){if(!d){d=!0,W();for(let k of[...p])O(k)}}})}var Ho=new WeakMap,zs=["id","label","kind","color","opacity","interactive","showLabel"],No=85.0511287798066,Uo=Math.PI/180;function G(){throw ze("invalid")}function vt(){throw ze("limit")}function T(a,e){let t=q(a,e);return t===ye&&G(),t===ne?void 0:t.value}function Yt(a,e){V(a)||G();let t={};for(let i of Reflect.ownKeys(a))(typeof i!="string"||!e.includes(i))&&G(),t[i]=T(a,i);return t}function Wo(a,e,t,i=!1){Array.isArray(a)||G();let r=we(a);return(r===void 0||r<e)&&G(),r>t?i?vt():G():r}function yt(a,e,t,i=!1){let r=Wo(a,e,t,i);Array.isArray(a)||G(),Reflect.ownKeys(a).length!==r+1&&G();let n=[];for(let o=0;o<r;o++){let s=q(a,String(o));(s===ne||s===ye)&&G(),n.push(s.value)}return n}function Ue(a,e=-1/0,t=1/0){return(typeof a!="number"||!Number.isFinite(a)||a<e||a>t)&&G(),a===0?0:a}function Zt(a,e){let t=Ue(a===void 0?e:a,0);return t===0&&G(),t}function Bo(a,e){return a===void 0?e:(typeof a!="boolean"&&G(),a)}function Ms(a){let e=Ue(a);if(e>=-180&&e<180)return e;let t=(e%360+540)%360-180;return t===0?0:t}function bt(a){let e=Yt(a,["lngLat","altitude","altitudeReference"]),t=yt(T(e,"lngLat"),2,2),i=Object.freeze([Ms(t[0]),Ue(t[1],-No,No)]),r=T(e,"altitude"),n=T(e,"altitudeReference"),o=n===void 0?"sea-level":n;return o!=="sea-level"&&o!=="terrain"&&G(),Object.freeze({lngLat:i,altitude:Ue(r===void 0?0:r,-12e3,1e8),altitudeReference:o})}function Os(a){let e=a===void 0?[0,0,0,1]:yt(a,4,4).map(o=>Ue(o)),t=Math.max(...e.map(Math.abs));t===0&&G();let i=e.map(o=>o/t),r=Math.hypot(...i),n=i.map(o=>o===0?0:o/r);return Object.freeze([n[0],n[1],n[2],n[3]])}function qo(a,e){a.altitudeReference!==e.altitudeReference&&G();let t=o=>{let s=o.lngLat[0]*Uo,c=o.lngLat[1]*Uo;return[Math.cos(c)*Math.cos(s),Math.cos(c)*Math.sin(s),Math.sin(c)]},i=t(a),r=t(e),n=Math.hypot(i[1]*r[2]-i[2]*r[1],i[2]*r[0]-i[0]*r[2],i[0]*r[1]-i[1]*r[0]);return i[0]*r[0]+i[1]*r[1]+i[2]*r[2]<0&&n<1e-8&&G(),a.lngLat[0]!==e.lngLat[0]||a.lngLat[1]!==e.lngLat[1]}function Rs(a){V(a)||G();let e=T(a,"kind"),t;switch(e){case"marker":t=["position","radius"];break;case"path":t=["positions","interpolation","width"];break;case"arc":t=["start","end","height","width"];break;case"model":t=["position","source","metersPerUnit","orientation"];break;default:return G()}let i=Yt(a,[...zs,...t]);return T(i,"kind")!==e&&G(),i}function Es(a,e){let t=a.map(Rs),i=new Map,r=0,n=0,o=0;for(let s of t){let c=T(s,"kind");if(c==="path"){let l=Wo(T(s,"positions"),2,4096,!0);i.set(s,l),r+=l}else r+=c==="arc"?2:1;r>65536&&vt();for(let[l,p]of[["id",1024],["label",16384],["color",1024]]){let d=T(s,l);d===void 0&&l==="color"||(typeof d!="string"&&G(),d.length>p&&vt(),n+=d.length)}if(c==="model"){++o>32&&vt();let l=Go(T(s,"source")),p=e.get(l.record);p&&(p.kind!==l.kind||p.format!==l.format||(p.kind==="url"&&l.kind==="url"?p.src!==l.src:p.kind==="bytes"&&l.kind==="bytes"&&p.bytes!==l.bytes))&&G(),e.set(l.record,l),l.kind==="url"&&(n+=l.src.length)}n>4194304&&vt()}for(let[s,c]of i){let l=yt(T(s,"positions"),2,4096,!0);l.length!==c&&G(),s.positions=Object.freeze(l)}return t}function Ps(a){let e=T(a,"kind"),t=T(a,"id"),i=T(a,"label");(typeof t!="string"||t.length===0||t.length>1024||t.trim().length===0||typeof i!="string"||i.trim().length===0)&&G();let r=T(a,"color"),n=r===void 0?void 0:ht(r);r!==void 0&&n===void 0&&G();let o=T(a,"opacity"),s={id:t,label:i,...n===void 0?{}:{color:n},opacity:Ue(o===void 0?1:o,0,1),interactive:Bo(T(a,"interactive"),!0),showLabel:Bo(T(a,"showLabel"),!1)};switch(e){case"marker":return Object.freeze({...s,kind:e,position:bt(T(a,"position")),radius:Zt(T(a,"radius"),6)});case"path":{let c=Object.freeze(yt(T(a,"positions"),2,4096).map(bt)),l=T(a,"interpolation"),p=l===void 0?"great-circle":l;p!=="linear"&&p!=="great-circle"&&G();let d=!1;for(let h=1;h<c.length;h++)d=qo(c[h-1],c[h])||d;return d||G(),Object.freeze({...s,kind:e,positions:c,interpolation:p,width:Zt(T(a,"width"),2)})}case"arc":{let c=bt(T(a,"start")),l=bt(T(a,"end"));return qo(c,l)||G(),Object.freeze({...s,kind:e,start:c,end:l,height:Ue(T(a,"height"),0),width:Zt(T(a,"width"),2)})}case"model":return Object.freeze({...s,kind:e,position:bt(T(a,"position")),source:To(T(a,"source")),metersPerUnit:Zt(T(a,"metersPerUnit"),1),orientation:Os(T(a,"orientation"))});default:return G()}}function $i(a){try{let e=Yt(a,["connection","revision"]),t=T(e,"connection"),i=T(e,"revision");return(t===null||typeof t!="object"||typeof i!="number"||!Number.isSafeInteger(i)||i<1)&&G(),Object.freeze({connection:t,revision:i})}catch{return G()}}function Vo(a,e){let t;try{let i=$i(e.request),r=Yt(a,["objects"]),n=new Map,o=Es(yt(T(r,"objects"),0,2e3,!0),n).map(Ps),s=new Set,c=[],l=new Map;for(let m of o)s.has(m.id)&&G(),s.add(m.id),m.kind==="model"&&(l.has(m.source)||(l.set(m.source,c.length),c.push(m.source)));t=e.sources.stage(c,i,c.map(m=>n.get(m)));let p=t,d=Object.freeze(o.map(m=>{if(m.kind!=="model")return m;let f=p.receipts[l.get(m.source)];return f||G(),Object.freeze({...m,source:f})})),h={sources:e.sources,consumed:!1},u=Object.freeze({request:i,objects:d,sourceStage:p,dispose(){h.consumed=!0,p.dispose()}});return Ho.set(u,h),u}catch(i){if(t?.dispose(),tt(i)!==void 0)throw i;return G()}}function Zo(a,e,t){let i=Ho.get(a);(!i||i.consumed||i.sources!==e||a.request.connection!==t)&&G(),i.consumed=!0}var Is=Object.freeze({status:"absent"});function Kt(a,e,t){let i=[];for(let[r,n]of a)n.status==="accepted"?i.push(n.target):n.status==="unsupported-kind"&&i.push(Object.freeze({id:r,kind:n.kind}));return Object.freeze({acceptedSceneRevision:e,registryRevision:t,targets:Object.freeze(i)})}function Ds(a,e){return a.lngLat[0]===e.lngLat[0]&&a.lngLat[1]===e.lngLat[1]&&a.altitude===e.altitude&&a.altitudeReference===e.altitudeReference}function js(a,e){return!a||a.status==="absent"?!1:e.kind==="path"||e.kind==="arc"?a.status==="unsupported-kind"&&a.kind===e.kind:a.status==="accepted"&&a.target.kind===e.kind&&Ds(a.target.position,e.position)}function Jt(a){for(let e of a)try{e.release()}catch{}}function Yo(a){let{connection:e,sources:t,isCurrent:i}=a,r=!1,n=0,o=0,s=0,c=0,l=0,p=new Map,d=Kt(p,o,s),h=[],u=new Set;function m(v,g){return r||v.connection!==e||v.revision<=l?!1:i(v)&&!r&&g===n&&v.revision>l}function f(v,g){if(v.length===0||r||n!==g)return;let w=Object.freeze({acceptedSceneRevision:o,registryRevision:s,changedIds:Object.freeze([...v])});for(let O of[...u]){if(r||n!==g)return;if(u.has(O))try{O(w)}catch{}}}function b(v){if(!Number.isSafeInteger(v+1))throw new TypeError("Map scene revision exhausted");return v+1}return Object.freeze({get acceptedSceneRevision(){return o},target(v){return p.get(v)??Is},capture(){return d},commit(v){Zo(v,t,e);let g=n;try{if(!m(v.request,g))return v.dispose(),!1;let w=new Map,O=[],z=c;for(let S of v.objects){let M=p.get(S.id);if(js(M,S)){w.set(S.id,M);continue}O.push(S.id),z=b(z),S.kind==="path"||S.kind==="arc"?w.set(S.id,Object.freeze({status:"unsupported-kind",kind:S.kind})):w.set(S.id,Object.freeze({status:"accepted",target:Object.freeze({id:S.id,kind:S.kind,position:S.position,acceptedPositionRevision:z})}))}for(let S of p.keys())w.has(S)||(O.push(S),z=b(z));let I=b(o),D=O.length>0?b(s):s,Y=Kt(w,I,D),W=t.publish(v.sourceStage);if(r||n!==g)return Jt(W),v.dispose(),!1;let k=h;h=W,p=w,d=Y,o=I,s=D,c=z,l=v.request.revision;let A=++n;return Jt(k),f(O,A),!0}catch(w){if(v.dispose(),r||n!==g||ft(w))return!1;throw new TypeError("Invalid map scene commit")}},clear(v){let g=$i(v);if(!m(g,n))return!1;let w=[...p.keys()],O=b(o),z=w.length>0?b(s):s,I=c;for(let A=0;A<w.length;A++)I=b(I);let D=new Map,Y=Kt(D,O,z);t.sealCurrent();let W=h;h=[],p=D,d=Y,o=O,s=z,c=I,l=g.revision;let k=++n;return Jt(W),f(w,k),!0},subscribe(v){if(typeof v!="function")throw new TypeError("Invalid map scene listener");return r?()=>{}:(u.add(v),()=>{u.delete(v)})},dispose(){if(r)return;let v=new Map,g=Kt(v,o,s);r=!0,n++,p=v,d=g,u.clear(),t.sealCurrent();let w=h;h=[],Jt(w)}})}var Ni=2e3,Fs=Object.freeze([]);function Me(a){return Number.isSafeInteger(a)&&a>=0&&a<Number.MAX_SAFE_INTEGER?a+1:void 0}function be(a,e,t=1/0){return typeof a=="number"&&Number.isFinite(a)&&a>=e&&a<=t}function Ui(a){try{if(!V(a))return;let e=oe(a,"markers"),t=oe(a,"reducedMotion");if(!Array.isArray(e)||typeof t!="boolean")return;let i=we(e);if(i===void 0||i>Ni)return;let r=[],n=new Set;for(let o=0;o<i;o++){let s=oe(e,String(o));if(!V(s))return;let c=oe(s,"id"),l=oe(s,"rgba");if(typeof c!="string"||c.length===0||c.length>1024||c.trim().length===0||n.has(c)||!Array.isArray(l)||we(l)!==4)return;let p=oe(l,"0"),d=oe(l,"1"),h=oe(l,"2"),u=oe(l,"3");if(!be(p,0,1)||!be(d,0,1)||!be(h,0,1)||!be(u,0,1))return;n.add(c),r.push(Object.freeze({id:c,rgba:Object.freeze([p,d,h,u])}))}return Object.freeze({markers:Object.freeze(r),reducedMotion:t})}catch{return}}function Bi(a){try{if(!V(a))return;let e=oe(a,"width"),t=oe(a,"height"),i=oe(a,"pixelRatio"),r=oe(a,"padding");if(!be(e,0)||e===0||!be(t,0)||t===0||!be(i,0)||i===0||!V(r))return;let n=Math.round(e*i),o=Math.round(t*i);if(!Number.isSafeInteger(n)||n<=0||!Number.isSafeInteger(o)||o<=0)return;let s=oe(r,"top"),c=oe(r,"right"),l=oe(r,"bottom"),p=oe(r,"left");return!be(s,0)||!be(c,0)||!be(l,0)||!be(p,0)?void 0:Object.freeze({width:e,height:t,pixelRatio:i,padding:Object.freeze({top:s,right:c,bottom:l,left:p})})}catch{return}}function Ko(a){return a===void 0?void 0:Object.freeze({revision:a.allocationRevision,width:a.width,height:a.height,pixelRatio:a.pixelRatio,padding:Object.freeze({top:a.padding.top,right:a.padding.right,bottom:a.padding.bottom,left:a.padding.left})})}function De(a,e,t){return Object.freeze({acceptedSceneRevision:a,presentationRevision:e,allocation:Ko(t),reducedMotion:!0,markers:Fs})}function qi(a){try{let{accepted:e,state:t,phase:i,presentationRevision:r}=a;if(!Number.isSafeInteger(e.acceptedSceneRevision)||e.acceptedSceneRevision<0||e.acceptedSceneRevision!==t.acceptedSceneRevision||!Number.isSafeInteger(r)||r<=0||e.objects.length>Ni||t.targets.length>Ni||i!=="pending"&&i!=="resolved"&&i!=="unavailable")return;let n;if(t.viewport!==void 0){let u=Bi(t.viewport),m=t.viewport.allocationRevision;if(!u||!Number.isSafeInteger(m)||m<=0)return;n=Object.freeze({...u,allocationRevision:m})}if(i!=="resolved")return De(e.acceptedSceneRevision,r,n);let o=e.objects.filter(u=>u.kind==="marker");if(o.length===0&&a.presentation===void 0)return De(e.acceptedSceneRevision,r,n);let s=Ui(a.presentation);if(!s||s.markers.length!==o.length)return;let c=new Map(s.markers.map(u=>[u.id,u.rgba])),l=new Map,p=new Set;for(let u of t.targets){if(p.has(u.id))return;p.add(u.id),(u.kind==="marker"||u.kind==="model")&&l.set(u.id,u)}let d=[],h=new Set;for(let u of o){let m=l.get(u.id),f=c.get(u.id);if(h.has(u.id)||!m||m.kind!=="marker"||!f||!Number.isSafeInteger(m.acceptedPositionRevision)||m.acceptedPositionRevision<=0||m.position.lngLat[0]!==u.position.lngLat[0]||m.position.lngLat[1]!==u.position.lngLat[1]||m.position.altitude!==u.position.altitude||m.position.altitudeReference!==u.position.altitudeReference||!be(u.radius,0)||u.radius===0||!be(u.opacity,0,1))return;h.add(u.id),d.push(Object.freeze({id:u.id,position:Object.freeze({lngLat:Object.freeze([u.position.lngLat[0],u.position.lngLat[1]]),altitude:u.position.altitude,altitudeReference:u.position.altitudeReference}),acceptedPositionRevision:m.acceptedPositionRevision,radiusCss:u.radius,rgba:Object.freeze([f[0],f[1],f[2],f[3]*u.opacity])}))}return Object.freeze({acceptedSceneRevision:e.acceptedSceneRevision,presentationRevision:r,allocation:Ko(n),reducedMotion:s.reducedMotion,markers:Object.freeze(d)})}catch{return}}var Jo=64*1024*1024,Ts=6144,Gs=new Set(["loading","ready","partial","unavailable"]),$s=new Set(["limit","model","resource","engine","projection","terrain","context-lost","altitude"]);function Ns(a){return Number.isSafeInteger(a)&&a>=0&&a<Number.MAX_SAFE_INTEGER?a+1:void 0}function Xo(a){let{element:e,connection:t}=a,i=!1,r=!1,n=0,o=0,s=Object.freeze({acceptedSceneRevision:0,objects:Object.freeze([])}),c=Object.freeze({active:!1,accepted:s,status:void 0}),l=c,p=new Set,d=new Set,h=new Set;function u(y){return i||y.connection!==t||y.revision!==n?!1:a.isCurrentConnection()&&!i&&y.connection===t&&y.revision===n&&Me(w.input.presentationRevision)!==void 0}let m,f=Object.freeze({acceptedSceneRevision:0,registryRevision:0,targets:Object.freeze([]),viewport:void 0}),b=0,v=0,g,w=Object.freeze({accepted:s,state:f,phase:"resolved",input:De(0,1,void 0)});function O(){let y=$o({connection:t,maxEncodedBytes:Jo,isCurrent:u,reserveBytes(x){if(!Number.isSafeInteger(x)||x<0)throw ze("invalid");if(x>Jo-o)throw ze("limit");o+=x;let E=!1;return Object.freeze({release(){E||(E=!0,o-=x)}})},resolveUrl(x){let E=lo(e,x);return E?Object.freeze({url:E.url,owner:E.view}):null}}),L=Yo({connection:t,sources:y,isCurrent:u});return{sources:y,registry:L}}function z(y,L,x){if(typeof L!="function")throw new TypeError("Invalid map scene listener");if(i)return()=>{};let E={listener:L,baseline:x};return y.add(E),()=>{y.delete(E)}}let I=Object.freeze({connection:t,capture:()=>f,subscribe:y=>z(d,y,f)});function D(y){try{y()}catch{}}function Y(){if(!(i||r)){r=!0;try{for(let y=0;y<Ts&&!i;y++){let L=!1;for(let x of[...d]){if(i)return;!d.has(x)||x.baseline===f||(x.baseline=f,L=!0,D(x.listener))}for(let x of[...p]){if(i)return;!p.has(x)||x.baseline===s||(x.baseline=s,L=!0,D(x.listener))}for(let x of[...h]){if(i)return;!h.has(x)||x.baseline===w||(x.baseline=w,L=!0,D(x.listener))}if(i||(l!==c&&(l=c,L=!0,D(a.changed)),!L))return}}finally{r=!1}}}function W(y,L){c=Object.freeze({active:y,accepted:s,status:L}),Y()}function k(y){if(i||w!==y)return!1;try{return a.isCurrentConnection()&&!i&&w===y}catch{return!1}}function A(y,L,x,E){return k(y)?(f=L.state,w=L,g=x,b=E,Y(),!0):!1}function S(y,L){let x=m.registry.capture(),E=Object.freeze({acceptedSceneRevision:x.acceptedSceneRevision,objects:y}),j=Object.freeze({...x,viewport:f.viewport}),$=Me(w.input.presentationRevision),pe=Object.freeze({accepted:E,state:j,phase:y.some(me=>me.kind==="marker")?"pending":"resolved",input:De(E.acceptedSceneRevision,$,j.viewport)});s=E,f=j,w=pe,g=void 0,W(L,y.length===0?Object.freeze({revision:s.acceptedSceneRevision,state:"empty"}):Object.freeze({revision:s.acceptedSceneRevision,state:"loading"}))}function M(y,L){return y===void 0?L===void 0:L!==void 0&&y.width===L.width&&y.height===L.height&&y.pixelRatio===L.pixelRatio&&y.padding.top===L.padding.top&&y.padding.right===L.padding.right&&y.padding.bottom===L.padding.bottom&&y.padding.left===L.padding.left}return Object.freeze({state:I,captureAccepted:()=>s,captureView:()=>c,subscribeAccepted:y=>z(p,y,s),captureRenderPublication:()=>w,claimPaintFrameSerial(y){if(y!==w||y.phase!=="resolved"||!k(y))return;let L=Ns(v);return L!==void 0&&(v=L),L},subscribeRenderPublication:y=>z(h,y,w),invalidatePresentation(){let y=w;if(i||!s.objects.some(E=>E.kind==="marker"))return!1;let L=Me(y.input.presentationRevision);if(L===void 0)return!1;let x=Object.freeze({...y,phase:"pending",input:De(s.acceptedSceneRevision,L,y.state.viewport)});return A(y,x,void 0,b)},commitPresentation(y,L){if(i||w!==y||y.phase!=="pending")return!1;let x=Ui(L);if(!x)return!1;let E=Me(y.input.presentationRevision);if(E===void 0)return!1;let j=qi({accepted:y.accepted,state:y.state,phase:"resolved",presentationRevision:E,presentation:x});if(!j)return!1;let $=Object.freeze({...y,phase:"resolved",input:j});return A(y,$,x,b)},failPresentation(y){if(i||w!==y||y.phase!=="pending")return!1;let L=Me(y.input.presentationRevision);if(L===void 0)return!1;let x=Object.freeze({...y,phase:"unavailable",input:De(s.acceptedSceneRevision,L,y.state.viewport)});return A(y,x,void 0,b)},setViewport(y){let L=w;if(i)return!1;let x=y===void 0?void 0:Bi(y);if(y!==void 0&&!x||M(L.state.viewport,x))return!1;let E=Me(L.input.presentationRevision),j=x===void 0?b:Me(b);if(E===void 0||j===void 0)return!1;let $=x===void 0?void 0:Object.freeze({...x,allocationRevision:j}),pe=Object.freeze({...L.state,viewport:$}),me=L.phase==="resolved"&&g!==void 0?qi({accepted:L.accepted,state:pe,phase:"resolved",presentationRevision:E,presentation:g}):De(L.accepted.acceptedSceneRevision,E,$);if(!me)return!1;let Q=Object.freeze({...L,state:pe,input:me});return A(L,Q,g,j)},reportRenderStatus(y,L){if(i||!c.active||s.objects.length===0||y!==s.acceptedSceneRevision||L===null||typeof L!="object")return!1;let{state:x,code:E}=L;if(!Gs.has(x)||E!==void 0&&!$s.has(E))return!1;let j=c.status;return j?.state==="error"||j?.revision===y&&j.state===x&&j.code===E?!1:(W(!0,Object.freeze({revision:y,state:x,...E===void 0?{}:{code:E}})),!0)},assign(y){if(i)return;let L=n;if(!a.isCurrentConnection()||i||L!==n||y===void 0&&!c.active&&s.acceptedSceneRevision===0||Me(w.input.presentationRevision)===void 0||!Number.isSafeInteger(n+1))return;let x=Object.freeze({connection:t,revision:++n}),E;try{let{sources:j,registry:$}=m??=O();if(y===void 0){if(!$.clear(x))return;S(Object.freeze([]),!1);return}if(E=Vo(y,{request:x,sources:j}),!$.commit(E))return;S(E.objects,!0)}catch(j){if(E?.dispose(),!u(x)||ft(j))return;W(!0,Object.freeze({revision:s.acceptedSceneRevision,state:"error",code:tt(j)??"invalid"}))}},close(){i||(i=!0,p.clear(),d.clear(),h.clear(),g=void 0,m?.registry.dispose(),m?.sources.dispose(),m=void 0)}})}var Us=["context-lost","engine","limit","model","altitude"];function Qo(a){let e=0,t=0,i=0;for(let r of a)r.kind==="marker"?e++:r.kind==="path"||r.kind==="arc"?t++:r.kind==="model"&&i++;return{markers:e,lines:t,models:i}}function ea(a,e,t){let i=[];if(a.markers>0&&i.push(e),a.lines>0&&i.push(t),i.some(s=>s.state==="pending"))return Object.freeze({state:"loading"});let r=new Set(a.models>0?["model"]:[]),n=0;for(let s of i)s.state==="drawn"?(n++,s.approximate&&r.add("altitude")):r.add(s.state==="failed"?s.code:"engine");let o=Us.find(s=>r.has(s));return Object.freeze(n===0?{state:"unavailable",code:o??"engine"}:o===void 0?{state:"ready"}:{state:"partial",code:o})}var ta=lt` :host{display:block;position:relative;inline-size:100%;block-size:var(--lr-map-height,var(--lr-size-24rem))}[part=scene-panel]{${Tt} position:absolute;grid-row:2;justify-self:start;inline-size:fit-content;max-inline-size:calc(100% - var(--lr-space-s) - var(--lr-space-s));inset-inline-start:var(--lr-space-s);inset-block-end:var(--lr-space-s);z-index:var(--lr-layer-content);max-block-size:60%;min-inline-size:0;overflow:auto;padding:var(--lr-space-s)}[part=scene-list]{list-style:none;margin:var(--lr-space-s) 0;padding:0;min-inline-size:0}[part=scene-list]>li{min-inline-size:0;margin-block:var(--lr-space-xs)}[part=scene-item]{display:block;inline-size:100%;text-align:start}.scene-kind{display:block;color:var(--lr-color-text-quiet);font-size:var(--lr-font-size-sm)}[part=scene-status]{margin-block-start:var(--lr-space-xs)}[part=scene-pagination]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--lr-space-xs)}[part=scene-toggle],button[part=scene-item],[part=scene-pagination] button{${xe} position:relative;max-inline-size:100%;padding:var(--lr-space-xs) var(--lr-space-s);border:var(--lr-border-width-thin) solid var(--lr-color-border);border-radius:var(--lr-radius-button);background:var(--lr-color-surface);color:var(--lr-color-text);font:inherit;text-align:start;white-space:normal;overflow-wrap:anywhere;cursor:pointer}[part=scene-toggle]:where(:not(:disabled):hover),button[part=scene-item]:where(:not(:disabled):hover),[part=scene-pagination] button:where(:not(:disabled):hover){--_lr-map-action-fill:var(--lr-map-action-hover-bg, var(--lr-color-surface-raised))}[part=scene-toggle]:where(:not(:disabled):active),button[part=scene-item]:where(:not(:disabled):active),[part=scene-pagination] button:where(:not(:disabled):active){--_lr-map-action-fill:var(--lr-map-action-active-bg, ${Ce("var(--lr-color-surface-raised)")})}[part=scene-toggle]:focus-visible,button[part=scene-item]:focus-visible,[part=scene-pagination] button:focus-visible{${Fe}}:is([part=scene-toggle],button[part=scene-item],[part=scene-pagination] button):where(:disabled){${Ge}}[part=initialization-placeholder]{position:absolute;inset:0;pointer-events:none;background:var(--lr-map-initialization-placeholder-bg,transparent)}.initialization-skeleton{display:var(--lr-map-initialization-skeleton-display,inline-block);inline-size:100%;block-size:100%}.initialization-controls{position:absolute;inset:0;box-sizing:border-box;display:grid;grid-template-rows:auto 1fr auto;pointer-events:none}.initialization-controls,.maplibregl-control-container{padding-block:calc(var(--_lr-map-controls-inset-block-start,var(--lr-map-controls-inset-block-start,0px))) calc(var(--_lr-map-controls-inset-block-end,var(--lr-map-controls-inset-block-end,0px)));padding-inline:calc(var(--_lr-map-controls-inset-inline-start,var(--lr-map-controls-inset-inline-start,0px))) calc(var(--_lr-map-controls-inset-inline-end,var(--lr-map-controls-inset-inline-end,0px)))}.initialization-row{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,max-content);justify-content:space-between;min-inline-size:0}.initialization-row-top{grid-row:1}.initialization-row-bottom{grid-row:3}.initialization-corner{display:flex;flex-direction:column;min-inline-size:0;gap:0}.initialization-row-bottom .initialization-corner{justify-content:flex-end}.initialization-corner-left{grid-column:1;align-items:flex-start}.initialization-corner-right{grid-column:2;align-items:flex-end}[part=initialization-activate]{${xe} position:absolute;inset:0;z-index:1;pointer-events:auto;display:grid;place-items:center;padding:var(--lr-space-m);border:0;background:transparent;color:var(--lr-color-text);font:inherit;cursor:pointer;overflow-wrap:anywhere;${wi}}[part=initialization-activate]::after{content:'';position:absolute;inset:0;pointer-events:none;background: ${Te("transparent")};opacity:0}[part=initialization-activate]:where(:hover)::after{opacity:1}[part=initialization-activate]:where(:active)::after{opacity:1;background: ${Ce("transparent")}}[part=initialization-activate]:focus-visible{${Ar}}.activate-label{display:var(--lr-map-initialization-activate-label-display,inline);position:relative;padding:var(--lr-space-xs) var(--lr-space-s);border:var(--lr-border-width-thin) solid var(--lr-color-border);border-radius:var(--lr-radius-button);background:var(--lr-color-surface)}[part~=initialization-control]{position:relative;flex-shrink:0;margin:var(--lr-map-control-gap,var(--lr-space-xs));inline-size:var(--lr-map-control-size,var(--lr-icon-button-size));block-size:var(--lr-map-control-size,var(--lr-icon-button-size));border:var(--lr-map-control-border,var(--lr-border-width-thin) solid var(--lr-color-border));border-radius:var(--lr-map-control-radius,var(--lr-radius-button));box-shadow:var(--lr-map-control-shadow,none);color:var(--lr-map-control-color,var(--lr-color-text))}[part=pick-controls],[part=drawing-controls]{position:relative;grid-area:3 / 1;margin-inline:var(--lr-space-s);z-index:calc(var(--lr-layer-content) + 1);display:flex;flex-wrap:wrap;gap:var(--lr-space-xs);pointer-events:none}[part=pick-center],[part=pick-cancel],[part=drawing-add],[part=drawing-undo],[part=drawing-complete],[part=drawing-cancel],[part=anchor-close]{${xe} pointer-events:auto;max-inline-size:100%;white-space:normal;overflow-wrap:anywhere;padding:var(--lr-space-xs) var(--lr-space-s);border:var(--lr-border-width-thin) solid var(--lr-color-border);border-radius:var(--lr-radius-button);background:var(--lr-color-surface);color:var(--lr-color-text);font:inherit;cursor:pointer}[part=pick-controls] button,[part=drawing-controls] button,[part=anchor-close]{position:relative}:is([part=pick-center],[part=pick-cancel],[part=drawing-add],[part=drawing-undo],[part=drawing-complete],[part=drawing-cancel],[part=anchor-close]):where(:not(:disabled):hover){--_lr-map-action-fill:var(--lr-map-action-hover-bg, var(--lr-color-surface-raised))}:is([part=pick-center],[part=pick-cancel],[part=drawing-add],[part=drawing-undo],[part=drawing-complete],[part=drawing-cancel],[part=anchor-close]):where(:not(:disabled):active){--_lr-map-action-fill:var(--lr-map-action-active-bg, ${Ce("var(--lr-color-surface-raised)")})}:is([part=pick-center],[part=pick-cancel],[part=drawing-add],[part=drawing-undo],[part=drawing-complete],[part=drawing-cancel],[part=anchor-close]):focus-visible{${Fe}}:is([part=pick-center],[part=pick-cancel],[part=drawing-add],[part=drawing-undo],[part=drawing-complete],[part=drawing-cancel],[part=anchor-close]):where(:disabled){${Ge}}[part=drawing-handles]{position:absolute;inset:0;pointer-events:none;overflow:hidden}[part=drawing-vertex]{${xe} position:absolute;transform:translate(-50%,-50%);pointer-events:auto;display:grid;place-items:center;touch-action:none;padding:0;border:0;background:transparent;color:var(--lr-color-text);cursor:grab}[part=drawing-vertex]>span{inline-size:var(--lr-space-s);block-size:var(--lr-space-s);border-radius:var(--lr-radius-pill);background:var(--lr-map-drawing-color,var(--lr-color-brand));border:var(--lr-border-width-thin) solid var(--lr-color-surface)}[part=drawing-vertex]:where(:not(:disabled):hover)>span{background:var(--lr-map-drawing-vertex-hover-bg,${Te("var(--lr-map-drawing-color, var(--lr-color-brand))")})}[part=drawing-vertex]:where(:not(:disabled):active){cursor:grabbing}[part=drawing-vertex]:where(:not(:disabled):active)>span{background:var(--lr-map-drawing-vertex-active-bg,${Ce("var(--lr-map-drawing-color, var(--lr-color-brand))")})}[part=drawing-measurements]{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1}[part=drawing-measurement]{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;unicode-bidi:plaintext;padding:0 var(--lr-space-2xs);border-radius:var(--lr-radius-xs);background:var(--lr-color-surface);color:var(--lr-color-text);font-size:var(--lr-font-size-sm);box-shadow:var(--lr-shadow-s)}[part=drawing-measurement][data-kind=length]{transform:translate(-50%,calc(var(--lr-space-s) + 50%))}[part=drawing-measurement][data-kind=area]{font-weight:var(--lr-font-weight-semibold)}[part=drawing-summary]{position:relative;align-self:center;unicode-bidi:plaintext;padding:var(--lr-space-xs) var(--lr-space-s);border-radius:var(--lr-radius-button);background:var(--lr-color-surface);color:var(--lr-color-text)}[part=drawing-vertex]:focus-visible{${Fe}}[part=drawing-vertex]:where(:disabled){${Ge}}[part=drawing-status]{position:relative;border-radius:var(--lr-radius-button);color:var(--lr-color-text);background:var(--lr-color-surface);padding:var(--lr-space-xs);overflow-wrap:anywhere}[part=base]{position:relative;inline-size:100%;block-size:100%}[part=base]:has(>:is([part=pick-controls],[part=drawing-controls],[part=scene-panel])){box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) fit-content(60%) auto;row-gap:var(--lr-space-xs);padding-block:calc(var(--lr-space-s) + var(--_lr-map-controls-top,0px) + var(--_lr-map-controls-inset-block-start,var(--lr-map-controls-inset-block-start,0px))) calc(var(--lr-space-s) + var(--_lr-map-controls-bottom,0px) + var(--_lr-map-controls-inset-block-end,var(--lr-map-controls-inset-block-end,0px)));padding-inline:calc(var(--_lr-map-controls-inset-inline-start,var(--lr-map-controls-inset-inline-start,0px))) calc(var(--_lr-map-controls-inset-inline-end,var(--lr-map-controls-inset-inline-end,0px)))}[part=base]:has(>:is([part=pick-controls],[part=drawing-controls],[part=scene-panel]))>:is([part=legend],[part=scene-panel]){position:relative;inset:auto;grid-column:1;align-self:end;margin-inline:var(--lr-space-s);min-block-size:0;max-block-size:100%}[part=base]:has(>:is([part=pick-controls],[part=drawing-controls],[part=scene-panel]))>[part=legend]:where([data-placement^=top]){align-self:start}[part=base]:has(>:is([part=pick-controls],[part=drawing-controls],[part=scene-panel]))>[part=legend]:where([data-placement=start],[data-placement=end]){align-self:center}[part=base]:has(>:is([part=pick-controls],[part=drawing-controls],[part=scene-panel]))>[part=legend]:where([data-placement$=-end],[data-placement=end]){justify-self:end}[part=base]:has(>:is([part=pick-controls],[part=drawing-controls],[part=scene-panel]))>[part=legend]:where([data-placement=top],[data-placement=bottom]){justify-self:center}lr-skeleton{--lr-skeleton-w:100%;--lr-skeleton-h:100%}[part=container]{position:absolute;left:var(--_lr-map-canvas-left,0);top:var(--_lr-map-canvas-top,0);width:var(--_lr-map-canvas-width,100%);height:var(--_lr-map-canvas-height,100%);overflow:hidden;container-type:size}.maplibregl-canvas-container{inline-size:100%;block-size:100%}.maplibregl-canvas{position:absolute;inset-block-start:0;inset-inline-start:0}.maplibregl-canvas-container.maplibregl-interactive{cursor:grab;user-select:none}.maplibregl-canvas-container.maplibregl-interactive:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-marker{color:var(--lr-color-brand);position:absolute;top:0;left:0;inline-size:max-content;min-inline-size:var(--lr-size-1-5rem);min-block-size:var(--lr-size-1-5rem);box-sizing:border-box;will-change:transform}.maplibregl-marker[role=button]{cursor:pointer}.maplibregl-marker[role=button]:hover{filter:drop-shadow(0 0 var(--lr-size-2px) var(--lr-map-marker-hover-halo-color,var(--lr-color-brand)))}.maplibregl-marker[role=button]:active{filter:drop-shadow(0 0 calc(2 * var(--lr-size-2px)) var(--lr-map-marker-hover-halo-color,var(--lr-color-brand)))}.maplibregl-marker[role=button]:focus-visible{${dt}}.maplibregl-popup{position:absolute;top:0;left:0;z-index:var(--lr-layer-content);display:flex;will-change:transform;pointer-events:none;color:var(--lr-color-text);font-family:var(--lr-font);font-size:var(--lr-font-size-sm);line-height:var(--lr-line-height-normal)}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}:host(:dir(rtl)) :is(.maplibregl-popup-anchor-left,.maplibregl-popup-anchor-right)>.maplibregl-popup-tip{order:1}.maplibregl-popup-tip{direction:ltr;inline-size:0;block-size:0;border:var(--lr-size-0-625rem) solid transparent;z-index:var(--lr-layer-content)}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-block-start:none;border-block-end-color:var(--lr-color-surface-overlay)}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:self-start;border-block-start:none;border-inline-start:none;border-block-end-color:var(--lr-color-surface-overlay)}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:self-end;border-block-start:none;border-inline-end:none;border-block-end-color:var(--lr-color-surface-overlay)}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-block-end:none;border-block-start-color:var(--lr-color-surface-overlay)}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:self-start;border-block-end:none;border-inline-start:none;border-block-start-color:var(--lr-color-surface-overlay)}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:self-end;border-block-end:none;border-inline-end:none;border-block-start-color:var(--lr-color-surface-overlay)}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-inline-start:none;border-inline-end-color:var(--lr-color-surface-overlay)}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-inline-end:none;border-inline-start-color:var(--lr-color-surface-overlay)}.maplibregl-popup-content{${Tt} position:relative;inline-size:auto;max-inline-size:100%;max-block-size:calc(100cqb - var(--lr-space-s) - var(--lr-space-s));overflow:auto;min-inline-size:var(--lr-icon-button-size);padding:var(--lr-space-m);padding-inline-end:calc(var(--lr-icon-button-size) + var(--lr-space-xs));pointer-events:auto}.maplibregl-popup-close-button{position:absolute;inset-block-start:0;inset-inline-end:0;display:inline-flex;align-items:center;justify-content:center;${xe} ${vo} transition:background-color var(--lr-transition-fast),color var(--lr-transition-fast)}.maplibregl-popup-close-button:where(:hover){${yo}}.maplibregl-popup-close-button:where(:active){${wo}}.maplibregl-popup-close-button:where(:focus-visible){${dt}}[part=error],[part=configuration-error]{margin:0;padding:var(--lr-space-l);color:var(--lr-color-danger);font-size:var(--lr-font-size-md-sm);text-align:center}.configuration-errors{position:absolute;inset-inline:var(--lr-space-s);inset-block-start:var(--lr-space-s);z-index:calc(var(--lr-layer-content) + 1);display:flex;flex-direction:column;gap:var(--lr-space-xs);pointer-events:none}.configuration-errors>[part=configuration-error]{padding:var(--lr-space-s) var(--lr-space-m);border:var(--lr-border-width-thin) solid var(--lr-color-border-subtle);border-radius:var(--lr-radius);background:var(--lr-color-surface-overlay);overflow-wrap:anywhere;pointer-events:auto}.anchor-boundary{position:absolute;inset:0;pointer-events:none}[part=anchor-close]{display:block;flex:none;margin-inline-start:auto;margin-block-start:var(--lr-space-xs)}[part=anchor]{${bo} ${Tt} display:flex;flex-direction:column;overflow:hidden;padding:var(--lr-space-m)}[part=anchor-body]{flex:1 1 auto;min-block-size:0;min-inline-size:0;overflow:auto;overscroll-behavior:contain;padding-inline-end:var(--lr-map-anchor-close-reservation,0)}:host([anchor-fill]) [part=anchor-body]{display:flex;flex-direction:column;overflow:clip;padding-inline-end:0}:host([anchor-fill]) [part=anchor-body] ::slotted(*){flex:1 1 auto;min-block-size:0}[part=anchor]:where([hidden]){display:none!important}[part=legend]{--_lr-map-legend-block-start:calc(var(--lr-map-legend-inset-block, var(--lr-space-s)) + var(--_lr-map-legend-controls-top, var(--_lr-map-controls-top, 0px)) + var(--_lr-map-controls-inset-block-start, var(--lr-map-controls-inset-block-start, 0px)));--_lr-map-legend-block-end:calc(var(--lr-map-legend-inset-block, var(--lr-space-s)) + var(--_lr-map-legend-controls-bottom, var(--_lr-map-controls-bottom, 0px)) + var(--_lr-map-controls-inset-block-end, var(--lr-map-controls-inset-block-end, 0px)));--_lr-map-legend-inline-start:calc(var(--lr-map-legend-inset-inline, var(--lr-space-s)) + var(--_lr-map-controls-inset-inline-start, var(--lr-map-controls-inset-inline-start, 0px)));--_lr-map-legend-inline-end:calc(var(--lr-map-legend-inset-inline, var(--lr-space-s)) + var(--_lr-map-controls-inset-inline-end, var(--lr-map-controls-inset-inline-end, 0px)));position:absolute;grid-row:1;justify-self:start;inset-block-end:var(--_lr-map-legend-block-end);inset-inline-start:var(--_lr-map-legend-inline-start);z-index:var(--lr-layer-content);display:flex;flex-direction:column;min-inline-size:0;max-inline-size:var(--lr-map-legend-max-inline-size,calc(100% - var(--_lr-map-legend-inline-start) - var(--_lr-map-legend-inline-end)));max-block-size:var(--lr-map-legend-max-block-size,calc(100% - var(--_lr-map-legend-block-start) - var(--_lr-map-legend-block-end)));overflow:auto;scrollbar-gutter:stable;box-sizing:border-box;gap:var(--lr-map-legend-gap,var(--lr-space-xs));padding:var(--lr-map-legend-padding,var(--lr-space-xs) var(--lr-space-s));background:var(--lr-map-legend-bg,var(--lr-color-surface));color:var(--lr-map-legend-color,var(--lr-color-text));border:var(--lr-map-legend-border,var(--lr-border-width-thin) solid var(--lr-color-border-subtle));border-radius:var(--lr-map-legend-radius,var(--lr-radius));box-shadow:var(--lr-map-legend-shadow,var(--lr-shadow-m));font-size:var(--lr-map-legend-font-size,var(--lr-font-size-xs))}[part=legend]:where([data-clearance=corner]):where([data-placement$=start]){--_lr-map-legend-controls-top:calc(var(--_lr-map-controls-top-left, 0px) + var(--lr-map-controls-top-left-inset-block, 0px));--_lr-map-legend-controls-bottom:calc(var(--_lr-map-controls-bottom-left, 0px) + var(--lr-map-controls-bottom-left-inset-block, 0px))}[part=legend]:where([data-clearance=corner]):where([data-placement$=end]){--_lr-map-legend-controls-top:calc(var(--_lr-map-controls-top-right, 0px) + var(--lr-map-controls-top-right-inset-block, 0px));--_lr-map-legend-controls-bottom:calc(var(--_lr-map-controls-bottom-right, 0px) + var(--lr-map-controls-bottom-right-inset-block, 0px))}[part=legend]:where([data-clearance=none]){--_lr-map-legend-block-start:var(--lr-map-legend-inset-block, var(--lr-space-s));--_lr-map-legend-block-end:var(--lr-map-legend-inset-block, var(--lr-space-s));--_lr-map-legend-inline-start:var(--lr-map-legend-inset-inline, var(--lr-space-s));--_lr-map-legend-inline-end:var(--lr-map-legend-inset-inline, var(--lr-space-s))}[part=legend]:where([data-placement^=top]){inset-block-start:var(--_lr-map-legend-block-start);inset-block-end:auto}[part=legend]:where([data-placement$=-end],[data-placement=end]){inset-inline-start:auto;inset-inline-end:var(--_lr-map-legend-inline-end)}[part=legend]:where([data-placement=top],[data-placement=bottom]){inset-inline:var(--_lr-map-legend-inline-start) var(--_lr-map-legend-inline-end);margin-inline:auto;inline-size:fit-content}[part=legend]:where([data-placement=start],[data-placement=end]){inset-block:var(--_lr-map-legend-block-start) var(--_lr-map-legend-block-end);margin-block:auto;block-size:fit-content}[part=legend] ::slotted(*){min-inline-size:0;max-inline-size:100%}.legend-list{display:grid;grid-template-columns:repeat(var(--lr-map-legend-columns,1),minmax(0,1fr));gap:var(--lr-map-legend-row-gap,var(--lr-map-legend-gap,var(--lr-space-xs))) var(--lr-map-legend-gap,var(--lr-space-xs));min-inline-size:0}[part=legend] [hidden]{display:none}button[part=legend-disclosure]{display:flex;align-items:center;align-self:flex-start;gap:var(--lr-space-xs);box-sizing:border-box;${xe} min-block-size:max(var(--lr-size-24px),var(--lr-map-legend-disclosure-min-height,var(--lr-icon-button-size)));max-inline-size:100%;border:none;border-radius:var(--lr-radius-xs);padding:var(--lr-map-legend-disclosure-padding,var(--lr-size-2px) var(--lr-space-xs));background:transparent;color:inherit;font:inherit;font-weight:var(--lr-map-legend-disclosure-font-weight,var(--lr-font-weight-semibold));text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:var(--lr-transition-interactive)}button[part=legend-disclosure]>span:last-child{min-inline-size:0;overflow-wrap:anywhere}button[part=legend-disclosure]:where(:not(:disabled):hover){background: ${Te("transparent")}}button[part=legend-disclosure]:where(:not(:disabled):active){background: ${Ce("transparent")}}button[part=legend-disclosure]:where(:focus-visible){${Fe}}button[part=legend-disclosure]:where(:disabled){${Ge}}[part=legend-disclosure-icon]{display:inline-flex;flex:0 0 auto;transition:transform var(--lr-transition-fast)}:host(:dir(rtl)) [part=legend-disclosure-icon]{transform:rotate(180deg)}button[part=legend-disclosure][aria-expanded=true] [part=legend-disclosure-icon],:host(:dir(rtl)) button[part=legend-disclosure][aria-expanded=true] [part=legend-disclosure-icon]{transform:rotate(90deg)}.legend-gradient{display:flex;align-items:center;gap:var(--lr-space-xs);min-inline-size:0}.legend-gradient .gradient-bar{flex:1 1 var(--lr-size-6rem);inline-size:var(--lr-size-6rem);min-inline-size:0;block-size:var(--lr-size-0-5rem);border-radius:var(--lr-size-2px)}[part=legend-lo],[part=legend-hi]{flex:0 1 auto;min-inline-size:0;max-inline-size:35%;white-space:normal;overflow-wrap:anywhere}.legend-gradient .gradient-track{display:flex;flex:1 1 var(--lr-size-6rem);inline-size:var(--lr-size-6rem);flex-direction:column;gap:var(--lr-size-2px);min-inline-size:0}.gradient-track .gradient-bar{flex:none;inline-size:100%}.gradient-ticks{position:relative;block-size:calc(var(--lr-space-m) + var(--lr-space-xs));min-inline-size:0}[part=legend-tick]{position:absolute;inset-block-start:0;inset-inline-start:var(--_lr-map-tick-position,0%);display:flex;flex-direction:column;align-items:center;translate:-50% 0;color:var(--lr-color-text-quiet);white-space:nowrap}:host(:dir(rtl)) [part=legend-tick]{translate:50% 0}[part=legend-tick]::before{content:'';inline-size:var(--lr-size-1px);block-size:calc(var(--lr-size-2px) * 2);background:currentColor}:host(:dir(rtl)) .legend-gradient .gradient-bar{transform:scaleX(-1)}.legend-group,.legend-section-list{display:flex;flex-direction:column;gap:var(--lr-map-legend-gap,var(--lr-space-xs));min-inline-size:0}.legend-section-list{display:grid;grid-template-columns:repeat(var(--lr-map-legend-group-columns,1),minmax(0,1fr));gap:var(--lr-map-legend-row-gap,var(--lr-map-legend-gap,var(--lr-space-xs))) var(--lr-map-legend-gap,var(--lr-space-xs))}[part=legend-group-heading]{min-inline-size:0;padding:var(--lr-map-legend-group-heading-padding,0);color:var(--lr-map-legend-group-heading-color,var(--lr-color-text-quiet));font-weight:var(--lr-font-weight-semibold);overflow-wrap:anywhere}.legend-row{display:flex;align-items:center;gap:var(--lr-space-xs);min-inline-size:0}.legend-row>span:last-child{min-inline-size:0;overflow-wrap:anywhere}:host([legend-flow=column]) .legend-list:not([hidden]){display:block;columns:var(--lr-map-legend-columns,1);column-gap:var(--lr-map-legend-gap,var(--lr-space-xs))}:host([legend-flow=column]) :is(.legend-group,.legend-section-list){display:block}:host([legend-flow=column]) .legend-row{break-inside:avoid;margin-block-end:var(--lr-map-legend-row-gap,var(--lr-map-legend-gap,var(--lr-space-xs)))}:host([legend-flow=column]) [part=legend-group-heading]{column-span:all;margin-block-end:var(--lr-map-legend-gap,var(--lr-space-xs))}button[part~=legend-toggle]{display:flex;align-items:center;gap:var(--lr-space-xs);box-sizing:border-box;${xe} min-block-size:max(var(--lr-size-24px),var(--lr-map-legend-toggle-min-height,var(--lr-icon-button-size)));max-inline-size:100%;border:none;border-radius:var(--lr-radius-xs);padding:var(--lr-map-legend-toggle-padding,var(--lr-size-2px) var(--lr-space-xs));background:transparent;color:inherit;font:inherit;font-weight:var(--lr-map-legend-toggle-font-weight,inherit);text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:var(--lr-transition-interactive)}button[part~=legend-toggle]>span:last-child{min-inline-size:0;overflow-wrap:anywhere}button[part~=legend-toggle]:where(:not(:disabled):hover){background: ${Te("transparent")}}button[part~=legend-toggle]:where(:not(:disabled):active){background: ${Ce("transparent")}}button[part~=legend-toggle]:where(:focus-visible){${Fe}}button[part~=legend-toggle]:where(:disabled){${Ge}}button[part~=legend-toggle-hidden] [part=legend-swatch]{opacity:var(--lr-map-legend-hidden-swatch-opacity,0.5)}button[part~=legend-toggle-hidden]>span:last-child{color:var(--lr-color-text-quiet)}[part=legend-swatch]{position:relative;overflow:hidden;inline-size:var(--lr-map-legend-swatch-size,var(--lr-size-0-75rem));block-size:var(--lr-map-legend-swatch-size,var(--lr-size-0-75rem));box-sizing:border-box;border:var(--lr-border-width-thin) solid currentColor;border-radius:var(--lr-size-2px);flex:0 0 auto}[part=legend-swatch][data-pattern=diagonal]{border-style:dashed}[part=legend-swatch][data-pattern=dots]{border-style:dotted;border-radius:50%}[part=legend-swatch][data-pattern=crosshatch]{border-style:double;border-radius:0}[part=legend-swatch][data-pattern=diagonal]::before,[part=legend-swatch][data-pattern=crosshatch]::before,[part=legend-swatch][data-pattern=crosshatch]::after,[part=legend-swatch][data-pattern=dots]::before{content:'';position:absolute;inset-block-start:50%;inset-inline-start:50%;inline-size:150%;block-size:var(--lr-border-width-thin);background:currentColor;transform:translate(-50%,-50%) rotate(-45deg)}[part=legend-swatch][data-pattern=crosshatch]::after{transform:translate(-50%,-50%) rotate(45deg)}[part=legend-swatch][data-pattern=dots]::before{inline-size:var(--lr-size-2px);block-size:var(--lr-size-2px);border-radius:50%;transform:translate(-50%,-50%)}[part=legend-swatch][data-pattern][data-icon=true]{inline-size:var(--lr-size-1rem);block-size:var(--lr-size-1rem);border:none;border-radius:0;background:none}[part=legend-swatch][data-icon=true]::before,[part=legend-swatch][data-icon=true]::after{content:none}.legend-icon{display:block;inline-size:100%;block-size:100%}[part=legend-limit]{min-inline-size:0;padding-block-start:var(--lr-space-xs);border-block-start:var(--lr-border-width-thin) solid var(--lr-color-border-subtle);color:var(--lr-color-text-quiet);overflow-wrap:anywhere}.maplibregl-control-container{position:absolute;inset:var(--_lr-map-canvas-inset-top,0) var(--_lr-map-canvas-inset-right,0) var(--_lr-map-canvas-inset-bottom,0) var(--_lr-map-canvas-inset-left,0);display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;pointer-events:none}.map-control-row{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,max-content);justify-content:space-between;min-inline-size:0;pointer-events:none}.map-control-row-top{grid-row:1}.map-control-row-bottom{grid-row:3}.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right,.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right{position:relative;min-inline-size:0;display:flex;flex-direction:column;align-items:flex-start;max-inline-size:100%;z-index:var(--lr-layer-content);pointer-events:none}.maplibregl-ctrl-top-right,.maplibregl-ctrl-bottom-right{align-items:flex-end}:is(.maplibregl-ctrl-top-left,.initialization-row-top .initialization-corner-left){padding-block-start:calc(var(--lr-map-controls-top-left-inset-block,0px));padding-inline-start:calc(var(--lr-map-controls-top-left-inset-inline,0px))}:is(.maplibregl-ctrl-top-right,.initialization-row-top .initialization-corner-right){padding-block-start:calc(var(--lr-map-controls-top-right-inset-block,0px));padding-inline-end:calc(var(--lr-map-controls-top-right-inset-inline,0px))}:is(.maplibregl-ctrl-bottom-left,.initialization-row-bottom .initialization-corner-left){padding-block-end:calc(var(--lr-map-controls-bottom-left-inset-block,0px));padding-inline-start:calc(var(--lr-map-controls-bottom-left-inset-inline,0px))}:is(.maplibregl-ctrl-bottom-right,.initialization-row-bottom .initialization-corner-right){padding-block-end:calc(var(--lr-map-controls-bottom-right-inset-block,0px));padding-inline-end:calc(var(--lr-map-controls-bottom-right-inset-inline,0px))}.maplibregl-ctrl-top-left{grid-column:1}.maplibregl-ctrl-top-right{grid-column:2}.maplibregl-ctrl-bottom-left{grid-column:1;justify-content:flex-end}.maplibregl-ctrl-bottom-right{grid-column:2;justify-content:flex-end}.maplibregl-ctrl{box-sizing:border-box;min-inline-size:min-content;max-inline-size:calc(100% - 2 * var(--lr-map-control-gap,var(--lr-space-xs)));flex-shrink:0;margin:var(--lr-map-control-gap,var(--lr-space-xs));pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-attrib{position:relative;padding:var(--lr-map-attribution-padding,0 var(--lr-space-xs));border:var(--lr-map-attribution-border,none);border-radius:var(--lr-map-attribution-radius,var(--lr-radius));background:var(--lr-color-surface);color:var(--lr-color-text-quiet);font-family:var(--lr-map-attribution-font-family,inherit);font-size:var(--lr-map-attribution-font-size,var(--lr-font-size-xs));line-height:var(--lr-map-attribution-line-height,inherit)}.maplibregl-ctrl.maplibregl-ctrl-attrib{margin:var(--lr-map-attribution-margin,var(--lr-map-control-gap,var(--lr-space-xs)));max-inline-size:min(var(--lr-map-attribution-max-inline-size,100%),calc(100% - 2 * var(--lr-map-control-gap,var(--lr-space-xs))))}.maplibregl-ctrl-group{position:relative;display:flex;flex-direction:column;inline-size:fit-content;border:var(--lr-map-control-group-border,var(--lr-map-control-border,var(--lr-border-width-thin) solid var(--lr-color-border)));border-radius:var(--lr-map-control-group-radius,var(--lr-map-control-radius,var(--lr-radius)));box-shadow:var(--lr-map-control-shadow,var(--lr-shadow));color:var(--lr-map-control-color,var(--lr-color-text))}.maplibregl-ctrl-group button{display:grid;place-items:center;${xe} inline-size:var(--lr-map-control-size,auto);block-size:var(--lr-map-control-size,auto);padding:var(--lr-space-xs);border:0;border-radius:var(--lr-map-control-button-radius,inherit);background:transparent;color:inherit;font:inherit;cursor:pointer;transition:background-color var(--lr-transition-fast),color var(--lr-transition-fast)}.maplibregl-ctrl-group button:where(:first-child){border-start-start-radius:inherit;border-start-end-radius:inherit}.maplibregl-ctrl-group button:where(:last-child){border-end-start-radius:inherit;border-end-end-radius:inherit}.maplibregl-ctrl-group button:where(:not(:first-child)){border-block-start:var(--lr-map-control-divider,var(--lr-border-width-thin) solid var(--lr-color-border))}.maplibregl-ctrl-group button:hover:where(:not(:disabled)){background:var(--lr-map-control-hover-bg,var(--lr-color-brand-quiet));color:var(--lr-color-brand)}.maplibregl-ctrl-group button:active:where(:not(:disabled)){background:var(--lr-map-control-active-bg,${Ce("var(--lr-map-control-hover-bg, var(--lr-color-brand-quiet))")})}.maplibregl-ctrl-group button:focus-visible{${dt}}.maplibregl-ctrl-group button:disabled{${Ge}}.map-scene-control-icon{display:block;inline-size:var(--lr-size-1em);block-size:var(--lr-size-1em);margin-inline:auto;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.maplibregl-ctrl-group button:where([aria-pressed=true],[aria-pressed=mixed]){--_map-scene-control-fill:var(--lr-map-control-pressed-bg, var(--lr-color-brand-quiet));background:var(--_map-scene-control-fill);color:var(--lr-map-control-pressed-color,var(--lr-color-brand))}.maplibregl-ctrl-group button:where([aria-pressed=true],[aria-pressed=mixed]):hover:where(:not(:disabled)){background:var(--lr-map-control-hover-bg,${Te("var(--_map-scene-control-fill)")})}.maplibregl-ctrl-group button:where([aria-pressed=true],[aria-pressed=mixed]):active:where(:not(:disabled)){background:var(--lr-map-control-active-bg,${Ce("var(--_map-scene-control-fill)")})}.maplibregl-ctrl-icon{position:relative;display:block;inline-size:var(--lr-size-1em);block-size:var(--lr-size-1em);font-size:var(--lr-font-size-lg)}.maplibregl-ctrl-icon::before,.maplibregl-ctrl-compass .maplibregl-ctrl-icon::after{content:'';position:absolute;inset:0;background:currentColor;mask-position:center;mask-size:contain;mask-repeat:no-repeat}.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon::before{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 5v14M5 12h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E')}.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon::before{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M5 12h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E')}.maplibregl-ctrl-compass .maplibregl-ctrl-icon::before{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 2 18 12H6Z"/%3E%3C/svg%3E')}.maplibregl-ctrl-compass .maplibregl-ctrl-icon::after{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="m12 22 6-10H6Z"/%3E%3C/svg%3E');opacity:var(--lr-opacity-disabled)}.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon::before{mask-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Ccircle cx="12" cy="12" r="6" fill="none" stroke="currentColor" stroke-width="2"/%3E%3Ccircle cx="12" cy="12" r="2"/%3E%3Cpath d="M12 2v4m0 12v4M2 12h4m12 0h4" stroke="currentColor" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E')}.maplibregl-ctrl-scale{position:relative;box-sizing:border-box;min-inline-size:max-content;padding-block:var(--lr-map-scale-padding-block,var(--lr-space-2xs));padding-inline:var(--lr-map-scale-padding-inline,var(--lr-space-xs));padding-block-end:calc(var(--lr-map-scale-padding-block,var(--lr-space-2xs)) + var(--lr-space-xs));border:var(--lr-map-scale-border,none);border-radius:var(--lr-map-scale-radius,0);background:var(--lr-color-surface);color:var(--lr-map-scale-color,var(--lr-color-text));font-family:var(--lr-font);font-size:var(--lr-map-scale-font-size,var(--lr-font-size-xs));text-align:center;white-space:nowrap}.maplibregl-ctrl-scale::after{content:'';display:var(--lr-map-scale-bar-display,block);position:absolute;inset-inline-start:0;inset-block-end:0;box-sizing:border-box;inline-size:var(--_lr-map-scale-width,100%);block-size:var(--lr-space-xs);border:var(--lr-border-width-medium) solid currentColor;border-block-start:0;pointer-events:none}.maplibregl-ctrl-attrib a{display:inline-flex;align-items:center;min-inline-size:var(--lr-size-24px);min-block-size:var(--lr-size-24px);padding:var(--lr-map-attribution-link-padding,0);color:var(--lr-color-text-quiet);text-decoration:none}.maplibregl-ctrl-attrib a:hover{text-decoration:underline}.maplibregl-ctrl-attrib a:focus-visible{${Fe}}.maplibregl-ctrl-attrib-inner{overflow-wrap:anywhere}.maplibregl-ctrl-attrib-button{display:none;position:absolute;inset-block-start:0;inset-inline-end:0;inline-size:var(--lr-map-attribution-toggle-size,var(--lr-map-control-size,var(--lr-icon-button-size)));block-size:var(--lr-map-attribution-toggle-size,var(--lr-map-control-size,var(--lr-icon-button-size)));padding:0;border:0;border-radius:var(--lr-map-attribution-toggle-radius,var(--lr-map-control-radius,var(--lr-radius-pill)));background:transparent;color:var(--lr-map-control-color,var(--lr-color-text));cursor:pointer;place-items:center;${wi}}.maplibregl-ctrl-attrib-button::before{content:'';display:block;inline-size:var(--lr-map-attribution-toggle-icon-size,var(--lr-size-1rem));block-size:var(--lr-map-attribution-toggle-icon-size,var(--lr-size-1rem));background:currentColor;mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Ccircle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="2"/%3E%3Cpath d="M12 10v7m0-10v.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E') center / contain no-repeat}.maplibregl-ctrl-attrib.maplibregl-compact{position:relative;min-block-size:var(--lr-map-attribution-toggle-size,var(--lr-map-control-size,var(--lr-icon-button-size)));padding-inline-end:var(--lr-map-attribution-toggle-size,var(--lr-map-control-size,var(--lr-icon-button-size)))}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button{display:grid}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib:where([open]) .maplibregl-ctrl-attrib-button{--_map-attrib-fill:var(--lr-map-control-pressed-bg, var(--lr-color-brand-quiet));--_map-attrib-hover-fill: ${Te("var(--_map-attrib-fill)")};background:var(--_map-attrib-fill)}.maplibregl-ctrl-attrib-button:hover{background:var(--lr-map-control-hover-bg,var(--_map-attrib-hover-fill,var(--lr-color-brand-quiet)))}.maplibregl-ctrl-attrib-button:active{background:var(--lr-map-control-active-bg,${Ce("var(--_map-attrib-fill, var(--lr-color-brand-quiet))")})}.maplibregl-ctrl-attrib-button:focus-visible{${dt}}.maplibregl-ctrl-attrib summary{list-style:none;appearance:none;-webkit-appearance:none}.maplibregl-ctrl-attrib summary::-webkit-details-marker{display:none}.maplibregl-ctrl-attrib summary::marker{content:''}${Ci('.maplibregl-ctrl-group, .maplibregl-ctrl-scale, .maplibregl-ctrl-attrib, [part~="initialization-control"], [part="drawing-summary"], [part="drawing-status"], [part="drawing-measurement"], [part="pick-center"], [part="pick-cancel"], [part="drawing-add"], [part="drawing-undo"], [part="drawing-complete"], [part="drawing-cancel"], [part="anchor-close"], [part="scene-toggle"], button[part="scene-item"], [part="scene-pagination"] button',lt`var(--_lr-map-action-fill, var(--_lr-map-control-fill, var(--lr-color-surface)))`)} .maplibregl-ctrl-group,.maplibregl-ctrl-scale,.maplibregl-ctrl-attrib,[part~=initialization-control]{--_lr-map-control-fill:var(--lr-map-control-bg, var(--lr-color-surface))}.maplibregl-ctrl-scale{--_lr-map-control-fill:var(--lr-map-scale-bg, var(--lr-map-control-bg, var(--lr-color-surface)))}[part=anchor-close]:where(:hover){--_lr-map-action-fill:var(--lr-map-popup-close-button-hover-bg, var(--lr-map-action-hover-bg, var(--lr-color-brand-quiet)));color:var(--lr-map-popup-close-button-hover-color,var(--lr-color-brand))}[part=anchor-close]:where(:active){--_lr-map-action-fill:var(--lr-map-popup-close-button-active-bg, var(--lr-map-action-active-bg, ${Ce("var(--lr-color-brand-quiet)")}));color:var(--lr-map-popup-close-button-active-color,var(--lr-color-brand))}${Vr} [part=legend]>.glass-scroll-layer{margin-block-end:calc(-1 * var(--lr-map-legend-gap,var(--lr-space-xs)))}${Ci('[part="legend"]',lt`var(--lr-map-legend-bg, var(--lr-color-surface))`,lt`var(--lr-map-legend-bg, var(--lr-color-surface))`,!0)} @media (forced-colors:active){.maplibregl-ctrl-attrib-button{color:ButtonText}.maplibregl-ctrl-attrib-button::before{forced-color-adjust:none}[part=legend-swatch]{background:Canvas!important;border-color:CanvasText;color:CanvasText}[part=legend-swatch][data-pattern=solid]{background:CanvasText!important}[part=legend-swatch][data-pattern][data-icon=true]{background:Canvas!important}button[part~=legend-toggle-hidden]{text-decoration-line:line-through;text-decoration-thickness:var(--lr-border-width-medium)}.maplibregl-ctrl-group button:hover:not(:disabled),.maplibregl-ctrl-attrib-button:hover{outline:var(--lr-border-width-thin) solid Highlight;outline-offset:calc(-1 * var(--lr-border-width-thin))}}${Ur(".maplibregl-ctrl-group button:is([aria-pressed='true'], [aria-pressed='mixed']), .maplibregl-ctrl-attrib[open] .maplibregl-ctrl-attrib-button")} `;var Bs=4096,qs=1e4,Vi=1024,ue=Symbol("omitted-data");function Oe(a){return a!==null&&typeof a=="object"}function ee(a,e){if(!Oe(a))return ue;try{let t=Object.getOwnPropertyDescriptor(a,e);return t&&Object.hasOwn(t,"value")?t.value:ue}catch{return ue}}function ia(a){try{return Reflect.ownKeys(a)}catch{return}}function Xt(a){return typeof a=="string"&&a.length<=Vi&&a.trim().length>0}function nt(a,e){try{if(!Array.isArray(a))return}catch{return}let t=ee(a,"length");return typeof t=="number"&&Number.isSafeInteger(t)&&t>=0&&t<=e?t:void 0}function Qt(a){return Object.freeze({status:"invalid",reason:a})}function ce(a){return Object.freeze({status:a})}function Hs(a){let e=()=>Object.freeze({status:"invalid",reason:"rules"}),t=nt(a,Bs);if(t===void 0)return e();let i=[],r=new Set;for(let n=0;n<t;n++){let o=ee(a,String(n));if(!Oe(o)||!V(o))return e();let s=ia(o);if(!s||s.length>4||s.some(m=>typeof m!="string"||!["layerId","owner","interactive","priority"].includes(m)))return e();let c=ee(o,"layerId"),l=ee(o,"owner"),p=ee(o,"interactive"),d=ee(o,"priority"),h=!0,u=0;if(s.includes("interactive")&&(h=p),s.includes("priority")&&(u=d),!Xt(c)||r.has(c)||l!=="overlay"&&l!=="basemap"||typeof h!="boolean"||typeof u!="number"||!Number.isFinite(u)||Math.abs(u)>1e6)return e();r.add(c),i.push(Object.freeze({layerId:c,owner:l,interactive:h,priority:u}))}return Object.freeze({status:"ready",rules:Object.freeze(i)})}function Wi(a,e,t){if(t.entries>=1024)return ue;if(t.entries++,a===null||typeof a=="boolean")return a;if(typeof a=="number")return Number.isFinite(a)?a:ue;if(typeof a=="string")return a.length>4096||t.chars+a.length>65536?ue:(t.chars+=a.length,a);if(!Oe(a)||e>=4||t.stack.has(a))return ue;t.stack.add(a);try{let i=!1;try{i=Array.isArray(a)}catch{return ue}if(i){let o=nt(a,128);if(o===void 0)return ue;let s=[];for(let c=0;c<o;c++){let l=Wi(ee(a,String(c)),e+1,t);s.push(l===ue?null:l)}return Object.freeze(s)}let r=ia(a);if(!r||r.length>128)return ue;let n=Object.create(null);for(let o of r){if(typeof o!="string"||o.length>Vi||["__proto__","prototype","constructor"].includes(o)||t.chars+o.length>65536||t.entries>=1024)continue;t.chars+=o.length;let s=Wi(ee(a,o),e+1,t);s!==ue&&(n[o]=s)}return Object.freeze(n)}finally{t.stack.delete(a)}}var Ws=Object.freeze(Object.create(null));function Vs(a,e){let t=ee(a,"source"),i=ee(a,"sourceLayer"),r=ee(a,"id"),n=ee(a,"properties"),o=Oe(n)&&nt(n,128)===void 0?Wi(n,0,{entries:0,chars:0,stack:new Set}):ue;return Object.freeze({layerId:e.layerId,owner:e.owner,...Xt(t)?{source:t}:{},...Xt(i)?{sourceLayer:i}:{},...typeof r=="number"&&Number.isFinite(r)||typeof r=="string"&&r.length<=Vi?{id:r}:{},properties:o!==ue&&Oe(o)&&!Array.isArray(o)?o:Ws})}function Zs(a,e,t,i=!1){let r=nt(a,qs);if(r===void 0)return Qt("features");let n=new Set(t),o=new Map(e.filter(p=>p.interactive&&n.has(p.layerId)).map(p=>[p.layerId,p])),s,c,l=-1;for(let p=0;p<r;p++){let d=ee(a,String(p)),h=ee(d,"layer"),u=ee(h,"id");if(!Oe(d)||!Oe(h)||!Xt(u)||i&&!o.has(u))return Qt("features");let m=typeof u=="string"?o.get(u):void 0;!m||c&&m.priority<=c.priority||(s=d,c=m,l=p)}return c?Object.freeze({status:"hit",hit:Vs(s,c),featureIndex:l}):ce("none")}var Hi=new WeakSet;function ra(a,e,t,i={}){if(!Oe(a))return ce("query-error");if(Hi.has(a))return ce("stale");Hi.add(a);try{return Ys(a,e,t,i)}finally{Hi.delete(a)}}function Ys(a,e,t,i){let r=()=>{try{return!i.signal?.aborted&&(i.current?.()??!0)}catch{return!1}};if(!r())return ce("stale");let n=Hs(t);if(!r())return ce("stale");if(n.status!=="ready")return Qt("rules");let o=ee(e,"x"),s=ee(e,"y");if(!r())return ce("stale");if(typeof o!="number"||typeof s!="number"||!Number.isFinite(o)||!Number.isFinite(s))return Qt("point");let c=[];try{let l=ct(a,"getLayer"),p=ct(a,"queryRenderedFeatures");if(!r())return ce("stale");if(!l||!Object.hasOwn(l,"value")||typeof l.value!="function"||!p||!Object.hasOwn(p,"value")||typeof p.value!="function")return ce("query-error");for(let u of n.rules){if(!u.interactive)continue;if(!r())return ce("stale");let m=l.value.call(a,u.layerId);if(!r())return ce("stale");Oe(m)&&c.push(u.layerId)}if(!r())return ce("stale");if(!c.length)return ce("none");let d=p.value.call(a,Object.freeze({x:o,y:s}),{layers:Object.freeze(c)});if(!r())return ce("stale");let h=Zs(d,n.rules,c,!0);return r()?h:ce("stale")}catch{return r()?ce("query-error"):ce("stale")}}function Ks(a,e){if(typeof a=="number")return Number.isFinite(a)?a:void 0;let t=nt(a,512);if(t===void 0||t<3)return;let i=c=>ee(a,String(c)),r=i(1),n=i(0),o=c=>nt(c,1)===1&&ee(c,"0")==="zoom";if(n==="step"){if(!o(r))return;let c=i(2);for(let l=3;l+1<t;l+=2){let p=i(l);if(typeof p!="number")return;if(e<p)break;c=i(l+1)}return typeof c=="number"&&Number.isFinite(c)?c:void 0}if(n!=="interpolate"||!o(i(2))||t<5)return;let s=[];for(let c=3;c+1<t;c+=2){let l=i(c),p=i(c+1);if(typeof l!="number"||typeof p!="number"||!Number.isFinite(l)||!Number.isFinite(p))return;s.push([l,p])}if(s.length){if(e<=s[0][0])return s[0][1];for(let c=1;c<s.length;c++){let[l,p]=s[c],[d,h]=s[c-1];if(e<=l)return l===d?p:h+(p-h)*(e-d)/(l-d)}return s.at(-1)[1]}}var Js=Object.freeze({fill:["fill-opacity"],line:["line-opacity"],circle:["circle-opacity"],symbol:["icon-opacity","text-opacity"],"fill-extrusion":["fill-extrusion-opacity"],raster:["raster-opacity"],heatmap:["heatmap-opacity"]});function na(a,e,t,i,r=!0){if(!Number.isFinite(i))return!0;try{let n=ee(t,"minzoom"),o=ee(t,"maxzoom");if(typeof n=="number"&&i<n||typeof o=="number"&&i>=o||typeof a.getLayoutProperty=="function"&&a.getLayoutProperty(e,"visibility")==="none")return!1;let s=ee(t,"type"),c=typeof s=="string"?Js[s]:void 0;return!r||!c||typeof a.getPaintProperty!="function"?!0:!c.every(l=>{let p=Ks(a.getPaintProperty(e,l),i);return p!==void 0&&p<=0})}catch{return!0}}var Xs=new Set(["auto","block-start","block-end","inline-start","inline-end"]);function Qs(a,e){switch(a){case"block-end":return"top";case"block-start":return"bottom";case"inline-start":return e?"left":"right";case"inline-end":return e?"right":"left";default:return}}function el(a,e,t="auto",i=!1){let r=Math.max(a.top,e.top),n=Math.min(a.bottom,e.bottom),o=Math.max(a.left,e.left),s=Math.min(a.right,e.right);if(!(n>r&&s>o))return;let c=[["top",n-a.top],["bottom",a.bottom-r],["left",s-a.left],["right",a.right-o]],l=Qs(t,i),p=c[0];if(l)p=c.find(d=>d[0]===l);else for(let d of c)d[1]<p[1]&&(p=d);return{top:0,right:0,bottom:0,left:0,[p[0]]:p[1]}}function tl(a){if(a===null||typeof a!="object")return;let{element:e,side:t}=a;if(e instanceof Element)return{element:e,side:typeof t=="string"&&Xs.has(t)?t:"auto"}}function il(a,e){let t=new Map;if(Array.isArray(a))for(let i of a)i instanceof Element&&t.set(i,"auto");if(Array.isArray(e))for(let i of e){let r=tl(i);r&&t.set(r.element,r.side)}return[...t].map(([i,r])=>({element:i,side:r}))}function rl(a){if(!a.isConnected)return!1;let e=a.ownerDocument.defaultView;return!e||e.getComputedStyle(a).visibility==="visible"}function oa(a,e){if(!e||a===void 0)return a??e;if(a===null||typeof a!="object")return a;let t={};for(let i of["blockStart","inlineEnd","blockEnd","inlineStart"]){let r=Object.getOwnPropertyDescriptor(a,i),n=r?.value??0;if(r&&!Object.hasOwn(r,"value")||typeof n!="number"||!Number.isFinite(n)||n<0)return a;t[i]=Math.max(n,e[i]??0)}return Object.freeze(t)}var wt=class{constructor(e){this.host=e,this.elements=[],this.schedule=()=>{let t=this.view;if(!t||this.frame)return;let i={view:t,handle:0};this.frame=i,i.handle=t.requestAnimationFrame(()=>{this.frame===i&&(this.frame=void 0,this.measure())})}}get area(){return this.current}observe(e,t){this.disconnect();let i=il(e,t),r=this.host.element.ownerDocument.defaultView;if(!i.length||!r){this.publish(void 0);return}this.elements=i,this.view=r,this.observer=new r.ResizeObserver(this.schedule),this.mutations=new r.MutationObserver(this.schedule),this.observer.observe(this.host.element);for(let{element:n}of i)this.observer.observe(n),this.mutations.observe(n,{attributes:!0,attributeFilter:["style","class","hidden"]});r.addEventListener("scroll",this.schedule,{capture:!0,passive:!0}),r.addEventListener("resize",this.schedule,{passive:!0}),r.visualViewport?.addEventListener("resize",this.schedule,{passive:!0}),r.visualViewport?.addEventListener("scroll",this.schedule,{passive:!0}),this.measure()}refresh(){this.schedule()}disconnect(){let e=this.view;this.observer?.disconnect(),this.observer=void 0,this.mutations?.disconnect(),this.mutations=void 0,this.frame&&(this.frame.view.cancelAnimationFrame(this.frame.handle),this.frame=void 0),e&&(e.removeEventListener("scroll",this.schedule,{capture:!0}),e.removeEventListener("resize",this.schedule),e.visualViewport?.removeEventListener("resize",this.schedule),e.visualViewport?.removeEventListener("scroll",this.schedule)),this.view=void 0,this.elements=[]}measure(){let e=this.host.element.getBoundingClientRect(),t=this.host.direction()==="rtl",i={top:0,right:0,bottom:0,left:0};for(let{element:s,side:c}of this.elements){if(!rl(s))continue;let l=el(e,s.getBoundingClientRect(),c,t);if(l)for(let p of["top","right","bottom","left"])i[p]=Math.max(i[p],l[p])}let r=this.host.gap?.()??0,n=Number.isFinite(r)&&r>0?r:0;if(n)for(let s of["top","right","bottom","left"])i[s]>0&&(i[s]+=n);let o=i.top||i.right||i.bottom||i.left?Object.freeze({blockStart:i.top,blockEnd:i.bottom,inlineStart:t?i.right:i.left,inlineEnd:t?i.left:i.right}):void 0;this.publish(o)}publish(e){let t=this.current;t===e||t&&e&&["blockStart","blockEnd","inlineStart","inlineEnd"].every(i=>t[i]===e[i])||(this.current=e,this.host.changed())}};var ei=class{constructor(){this.baseline="",this.baselinePriority=""}set(e,t){if(this.canvas!==e&&(this.clear(),this.canvas=e),!e)return;let i=e.style.getPropertyValue("cursor");if((this.written===void 0||i!==this.written||e.style.getPropertyPriority("cursor")!=="")&&(this.baseline=i,this.baselinePriority=e.style.getPropertyPriority("cursor")),!t){this.clear();return}this.written=t==="hover"?"pointer":"crosshair",e.style.setProperty("cursor",this.written)}clear(){let e=this.canvas,t=this.written;this.canvas=void 0,this.written=void 0,e&&t!==void 0&&e.style.getPropertyValue("cursor")===t&&e.style.getPropertyPriority("cursor")===""&&(this.baseline?e.style.setProperty("cursor",this.baseline,this.baselinePriority):e.style.removeProperty("cursor"))}};var ti=class{constructor(){this.peers=new WeakMap}rotate(e){let t=this.peers.get(e);if(t)for(let[i,r]of[...t]){if(this.peers.get(e)!==t||t.get(i)!==r)continue;let n=r.receive,o=s=>{for(let c of[...r.listeners]){if(r.receive!==o)return;r.listeners.has(c)&&c(s)}};r.receive=o;try{typeof e.off=="function"&&Reflect.apply(e.off,e,[i,n])}catch{}this.peers.get(e)!==t||t.get(i)!==r||r.receive!==o||Reflect.apply(e.on,e,[i,o])}}clear(e){let t=this.peers.get(e);if(this.peers.delete(e),!!t){for(let[i,r]of t){r.listeners.clear();try{typeof e.off=="function"&&Reflect.apply(e.off,e,[i,r.receive])}catch{}}t.clear()}}subscribe(e,t,i){let r=this.peers.get(e);r||(r=new Map,this.peers.set(e,r));let n=c=>{i(c)},o=r.get(t);if(o)o.listeners.add(n);else{let c=new Set,l=p=>{for(let d of[...c]){if(o?.receive!==l)return;c.has(d)&&d(p)}};o={listeners:c,receive:l},r.set(t,o),c.add(n);try{Reflect.apply(e.on,e,[t,l])}catch(p){throw c.clear(),r.delete(t),p}}let s=!0;return()=>{s&&(s=!1,o.listeners.delete(n),!o.listeners.size&&r.get(t)===o&&(r.delete(t),typeof e.off=="function"&&Reflect.apply(e.off,e,[t,o.receive])))}}};function aa(){let a,e,t=new Promise((i,r)=>{a=i,e=r});return t.catch(()=>{}),{promise:t,resolve:a,reject:e}}function Zi(){return new DOMException("Map style readiness was cancelled.","AbortError")}var ii=class{constructor(){this.intent=0}begin(e){let t=++this.intent;if(this.cancelCurrent(),t!==this.intent)return;let i={options:e,abort:new AbortController,ready:aa(),idle:aa(),listeners:new Set,started:!1,restored:!1,publishingReady:!1,publishingIdle:!1,idleObserved:!1,finished:!1};this.generation=i;try{if(this.listen(i,"error",r=>{this.reject(i,r??new Error("Map style failed."))}),this.listen(i,"idle",()=>{i.restored&&this.finishIdle(i)}),this.listen(i,"style-ready",()=>{this.restore(i)}),!this.current(i))return;e.mutate?.(),this.current(i)&&e.isStyleReady?.()&&this.restore(i)}catch(r){this.reject(i,r)}}whenStyleReady(){return this.generation?.ready.promise??Promise.reject(Zi())}whenIdle(){return this.generation?.idle.promise??Promise.reject(Zi())}fail(e){this.generation&&this.reject(this.generation,e)}cancel(){this.intent+=1,this.cancelCurrent()}cancelCurrent(){let e=this.generation;this.generation=void 0,e&&(e.abort.abort(),this.reject(e,Zi()))}current(e){return this.generation===e&&!e.finished&&!e.abort.signal.aborted}listen(e,t,i){if(!this.current(e))return;let r=e.options.subscribe(t,n=>{this.current(e)&&i(n)});this.current(e)?e.listeners.add(r):r()}cleanup(e){for(let t of e.listeners)try{t()}catch{}e.listeners.clear()}reject(e,t){e.finished||(e.finished=!0,e.abort.abort(),this.cleanup(e),e.ready.reject(t),e.idle.reject(t))}restore(e){!this.current(e)||e.started||(e.started=!0,Promise.resolve().then(async()=>{this.current(e)&&(await e.options.restore(e.abort.signal),this.current(e)&&(e.restored=!0,e.publishingReady=!0,e.options.onStyleReady?.(),e.publishingReady=!1,this.current(e)&&(e.ready.resolve(),(e.idleObserved||e.options.isIdle?.())&&this.finishIdle(e))))}).catch(t=>{this.current(e)&&this.reject(e,t)}))}finishIdle(e){if(!(!this.current(e)||!e.restored||e.publishingIdle)){if(e.publishingReady){e.idleObserved=!0;return}e.publishingIdle=!0;try{if(e.options.onIdle?.(),!this.current(e))return;e.finished=!0,this.cleanup(e),e.idle.resolve()}catch(t){this.reject(e,t)}}}};function sa(){let a,e,t=new Promise((i,r)=>{a=i,e=r});return t.catch(()=>{}),{promise:t,resolve:a,reject:e}}function ri(){return new DOMException("Map readiness was cancelled.","AbortError")}function nl(){let a=new Error("Map readiness failed.");return a.name="MapReadinessError",a}var ni=class{constructor(){this.style=new ii,this.intent=0}reset(){let e=++this.intent;this.close(ri()),this.intent===e&&(this.generation={id:e,ready:sa(),idle:new Set,disposers:new Set,restorationComplete:!1,restored:!1,epoch:0,observedEpoch:-1,publishedEpoch:-1,queued:!1})}bind(e){let t=this.generation;if(!(!t||t.error||t.options)){t.options=e;try{if(this.listen(t,"error",()=>{this.fail()}),this.listen(t,"busy",()=>{this.invalidate()}),this.listen(t,"idle",()=>{t.restorationComplete&&!e.ownerPending()&&(t.observedEpoch=t.epoch),this.check()}),!this.current(t))return;this.style.begin({...e,subscribe:(i,r)=>e.subscribe(i,()=>{this.current(t)&&r()}),isIdle:()=>e.isIdle?.()===!0,onStyleReady:()=>{this.current(t)&&(t.restorationComplete=!0,this.check())},onIdle:()=>{this.check()}}),this.style.whenStyleReady().catch(()=>{this.current(t)&&this.fail()})}catch{this.current(t)&&this.fail()}}}whenStyleReady(){return this.generation?.ready.promise??Promise.reject(ri())}whenIdle(){let e=this.generation;if(!e)return Promise.reject(ri());if(e.error)return Promise.reject(e.error);let t=sa();return e.idle.add(t),this.check(),t.promise}invalidate(){let e=this.generation;!e||e.error||(e.epoch+=1,e.observedEpoch=-1)}check(){let e=this.generation;if(!e||!this.current(e)||e.queued||!e.restorationComplete)return;let t=e.options;t&&(e.queued=!0,queueMicrotask(()=>{if(e.queued=!1,!!this.current(e))try{if(t.ownerPending())return;if(!e.restored){if(e.restored=!0,t.onStyleReady(e.id),!this.current(e))return;e.ready.resolve()}let i=e.epoch,r=()=>{if(t.ownerPending())return!1;let n=t.isIdle?.();return n===void 0?e.observedEpoch===i:n};if(!r()||!this.current(e)||e.epoch!==i||(e.publishedEpoch!==i&&(e.publishedEpoch=i,t.onIdle(e.id)),!this.current(e)||e.epoch!==i||!r()))return;for(let n of e.idle)n.resolve();e.idle.clear()}catch{this.current(e)&&this.fail()}}))}fail(){let e=this.generation;if(!(!e||e.error)){e.error=nl(),this.style.fail(e.error),this.cleanup(e),e.ready.reject(e.error);for(let t of e.idle)t.reject(e.error);e.idle.clear(),this.generation===e&&e.options?.onError?.(e.restored)}}cancel(){this.intent+=1,this.close(ri())}current(e){return e===this.generation&&!e.error}listen(e,t,i){if(!this.current(e))return;let r=e.options.subscribe(t,()=>{this.current(e)&&i()});this.current(e)?e.disposers.add(r):r()}cleanup(e){for(let t of e.disposers)try{t()}catch{}e.disposers.clear()}close(e){let t=this.generation;if(this.generation=void 0,this.style.cancel(),!!t){this.cleanup(t),t.ready.reject(e);for(let i of t.idle)i.reject(e);t.idle.clear()}}};var oi=class{constructor(e){this.options=e,this.projectionOwned=!1,this.terrainOwned=!1,this.revision=0,this.pending=!1,this.work=Promise.resolve()}cancel(){this.revision++,this.abort?.abort(),this.abort=void 0,this.pending=!1,this.peer=void 0,this.generation=void 0,this.baseline=void 0,this.applied=void 0,this.projectionOwned=!1,this.terrainOwned=!1}sync(e,t,i,r,n){if((e!==this.peer||t!==this.generation)&&(this.cancel(),this.peer=e,this.generation=t),!this.baseline&&r===void 0&&n===void 0)return;this.abort?.abort();let o=new AbortController;this.abort=o;let s=++this.revision,c=()=>!o.signal.aborted&&this.revision===s&&this.peer===e&&i();try{if(!c())return;let l=Dt(n);for(let I of["getStyle","getProjection","getTerrain"])if(typeof e[I]!="function")throw new TypeError("Map scene reader unavailable");let p=e.getStyle();if(!c())return;if(p===null||typeof p!="object"||Array.isArray(p))throw new TypeError("Map style unavailable");let d=e.getProjection();if(!c())return;let h=e.getTerrain();if(!c())return;let u=jt(d,h);if(!c())return;if(!this.baseline){for(let Y of["projection","terrain"]){let W=Object.getOwnPropertyDescriptor(p,Y);if(W&&!("value"in W))throw new TypeError("Invalid map scene descriptor");if(!c())return}let I=u,D=jt(Object.getOwnPropertyDescriptor(p,"projection")?.value,Object.getOwnPropertyDescriptor(p,"terrain")?.value);if(!Ft(I,D))throw new TypeError("Inconsistent map scene readers");if(!c())return;this.baseline=I,this.applied=I}let m={projection:r===void 0?this.projectionOwned?this.baseline.projection:u.projection:Object.freeze({type:r}),terrain:l===void 0?this.terrainOwned?this.baseline.terrain:u.terrain:l},f=r!==void 0,b=l!==void 0,v=f||this.projectionOwned,g=b||this.terrainOwned,w=v&&!Ft(m.projection,u.projection),O=g&&!Ft(m.terrain,u.terrain);if(v&&typeof e.setProjection!="function"||g&&typeof e.setTerrain!="function")throw new TypeError("Map scene writer unavailable");let z=xi(v?m.projection:void 0,g?m.terrain:void 0,p);if(!c())return;if(!w&&!O){this.projectionOwned=f,this.terrainOwned=b,this.pending=!1,this.work=Promise.resolve(),this.options.changed();return}if(typeof e.on!="function"||typeof e.off!="function")throw new TypeError("Map error subscription unavailable");this.pending=!0,this.options.changed(),this.work=this.apply(e,z,m,w,O,v,g,o.signal,c).then(()=>{c()&&(this.projectionOwned=f,this.terrainOwned=b)}).catch(()=>{c()&&this.options.failed()}).finally(()=>{this.revision===s&&(this.pending=!1,this.options.changed())})}catch{c()&&(this.pending=!1,this.options.failed()),this.work=Promise.resolve()}}async apply(e,t,i,r,n,o,s,c,l){let p=()=>{},d=new Promise(h=>{let u=()=>h();c.addEventListener("abort",u,{once:!0}),p=()=>{c.removeEventListener("abort",u)}});try{if(await Promise.race([e.prepareFeatures?.(t,{signal:c})??Promise.resolve(),d]),!l())return;let h=e.getProjection();if(!l())return;let u=e.getTerrain();if(!l())return;let m=jt(h,u);if(!l())return;let f=e.getStyle();if(!l()||(xi(o?i.projection:void 0,s?i.terrain:void 0,f),!l()))return;this.applied=m;let b=!1,v=()=>{b=!0};e.on("error",v);try{if(!l())return;if(r&&(this.applied={projection:i.projection,terrain:this.applied.terrain},this.projectionOwned=!0,e.setProjection(i.projection)),b)throw new Error("Map projection application failed");if(!l())return;if(n&&(this.applied={projection:this.applied.projection,terrain:i.terrain},this.terrainOwned=!0,e.setTerrain(i.terrain)),b)throw new Error("Map terrain application failed")}finally{e.off("error",v)}}finally{p()}}};function la(){return new DOMException("Map controls readiness was cancelled.","AbortError")}var ai=class{reset(){this.cancel();let e,t,i=new Promise((r,n)=>{e=r,t=n});i.catch(()=>{}),this.generation={promise:i,resolve:e,reject:t,run:0}}whenReady(){let e=this.generation;return e?.error?Promise.reject(e.error):e?.promise??Promise.reject(la())}begin(){let e=this.generation;e?.stop?.();let t=new Promise(n=>{e?e.stop=n:n()}),i=e?++e.run:0,r=()=>e!==void 0&&this.generation===e&&e.run===i;return{isCurrent:r,cancelled:t,resolve:()=>{r()&&!e.error&&e.resolve()},fail:()=>{r()&&this.fail()}}}fail(){let e=this.generation;if(!e||e.error)return;let t=new Error("Map controls readiness failed.");t.name="MapReadinessError",e.error=t,e.reject(t)}cancel(){let e=this.generation;this.generation=void 0,e?.stop?.(),e?.reject(la())}};var Yi=_e(()=>import("./map-anchor-controller-FZUGR6E2.js")),Ki=_e(()=>import("./map-controls-lifecycle-SRF5BBIB.js")),si=_e(()=>import("./map-drawing-controller-WCQGUQFM.js")),Ji=_e(()=>import("./map-image-export-controller-RUSEHX7D.js")),Xi=_e(()=>import("./map-hash-owner-IKTTU6J7.js")),Qi=_e(()=>import("./map-feature-state-routes-PK32TXQJ.js")),ot=_e(()=>import("./map-data-layer-runtime-YE3JHYGD.js")),ve=_e(()=>import("./map-owned-features-YH3B3HM2.js")),er=_e(()=>import("./map-scene-render-controller-22M5JR2L.js"));function ol(a){let e=uo(a,t=>typeof t=="object"&&t!==null&&"createSceneBridge"in t&&typeof t.createSceneBridge=="function");if(!e)throw new TypeError("Map scene renderer unavailable");return e}var ca=_e(()=>(async()=>{try{return await import("@aceshooting/lyra-map/scene")}catch(a){throw a}})().then(ol));var pa=["pointerdown","touchstart","wheel","keydown","click"],tr=class{constructor(e,t){this.port=e,this.construct=t,this.active=!1,this.ready=!1,this.admitted=!1,this.consumed=!1,this.generation=0,this.checkingConnection=!1}connect(e="visible",t){let i=this.generation+1;this.disconnect(),i===this.generation&&(this.active=!0,this.ready=!1,this.consumed=!1,this.reconfigure(e,t))}disconnect(){this.active=!1,this.generation+=1;let e=this.cancel;this.cancel=void 0,e?.()}get constructed(){return this.consumed}reconfigure(e,t){let i=++this.generation,r=this.cancel;if(this.cancel=void 0,r?.(),i!==this.generation||!this.active||(this.admitted=!1,!this.active||this.consumed||!this.port))return;let n=()=>{if(!this.active||i!==this.generation||this.consumed)return;this.admitted=!0;let o=this.cancel;this.cancel=void 0,o?.(),i===this.generation&&this.flush()};if(e==="eager")n();else{let o=e==="idle"?this.port.idle(n):e==="interaction"&&this.port.interaction?this.port.interaction(n,t):this.port.visible(n);i!==this.generation||this.admitted||!this.active?o():this.cancel=o}}setReady(e){this.ready=e,this.flush()}flush(e=!0){if(!this.active||!this.ready||!this.admitted||this.consumed||!this.port||this.checkingConnection)return;let t=this.generation,i;this.checkingConnection=!0;try{i=this.port.connected()}finally{this.checkingConnection=!1}if(t!==this.generation){e&&this.flush(!1);return}!i||!this.active||!this.ready||!this.admitted||this.consumed||(this.consumed=!0,this.construct())}};function da(a,e){let t=a.ownerDocument.defaultView;return new tr(t?{connected:()=>a.isConnected,visible(i){let r=t.IntersectionObserver;if(!r)return i(),()=>{};let n=new r(o=>{o.some(s=>s.target===a&&s.isIntersecting)&&i()});return n.observe(a),()=>n.disconnect()},interaction(i,r){let n={capture:!0,passive:!0};for(let s of pa)a.addEventListener(s,i,n);let o=r===void 0?void 0:t.setTimeout(i,r);return()=>{for(let s of pa)a.removeEventListener(s,i,n);o!==void 0&&t.clearTimeout(o)}},idle(i){if(typeof t.requestIdleCallback=="function"&&typeof t.cancelIdleCallback=="function"){let n=t.requestIdleCallback(i,{timeout:1e3});return()=>t.cancelIdleCallback(n)}let r=t.setTimeout(i,0);return()=>t.clearTimeout(r)}}:null,e)}var al=6e4;function je(a){return typeof a=="number"&&Number.isFinite(a)}function ha(a,e=[0,22]){if(typeof a!="object"||a===null)return;let t=a,i={},r=t.center;Array.isArray(r)&&r.length===2&&je(r[0])&&je(r[1])&&(i.center=[Z(r[0],0,-180,180),Z(r[1],0,-90,90)]),je(t.zoom)&&(i.zoom=Z(t.zoom,e[0],e[0],e[1]));let n=t.bearing;if(je(n)&&(i.bearing=Math.abs(n)>Number.MAX_SAFE_INTEGER-360?n%360:n),je(t.pitch)&&(i.pitch=Z(t.pitch,0,0,85)),!(i.center===void 0&&i.zoom===void 0&&i.bearing===void 0&&i.pitch===void 0))return je(t.duration)&&t.duration>=0&&(i.duration=Z(t.duration,0,0,al)),Object.freeze(i)}function ua(){return{west:1/0,south:1/0,east:-1/0,north:-1/0,count:0}}function ir(a,e,t){if(!je(e)||!je(t))return;let i=Z(e,0,-180,180),r=Z(t,0,-90,90);i<a.west&&(a.west=i),i>a.east&&(a.east=i),r<a.south&&(a.south=r),r>a.north&&(a.north=r),a.count+=1}var sl=5e6;function rr(a,e){let t=[e],i=sl;for(;t.length>0&&i>0;){let r=t.pop();if(typeof r!="object"||r===null)continue;let n=r;switch(n.type){case"FeatureCollection":{let o=n.features;if(Array.isArray(o))for(let s=o.length-1;s>=0;s-=1)t.push(o[s]);break}case"Feature":t.push(n.geometry);break;case"GeometryCollection":{let o=n.geometries;if(Array.isArray(o))for(let s=o.length-1;s>=0;s-=1)t.push(o[s]);break}case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"Polygon":case"MultiPolygon":i-=ll(a,n.coordinates,i);break;default:break}}}function ll(a,e,t){let i=0,r=[e];for(;r.length>0&&i<t;){let n=r.pop();if(!(!Array.isArray(n)||n.length===0))if(typeof n[0]=="number")ir(a,n[0],n[1]),i+=1;else for(let o=n.length-1;o>=0;o-=1)r.push(n[o])}return i}function ma(a){if(a.count!==0)return Object.freeze([Object.freeze([a.west,a.south]),Object.freeze([a.east,a.north])])}var cl=Object.freeze({version:8,sources:Object.freeze({}),layers:Object.freeze([])});function St(a,e){let t=["step",a,e[0][1]];for(let[i,r]of e)t.push(i,r);return t}function ga(a,e,t){return a&&e.length?["match",["get",a],...e.flatMap(([i,r])=>[i,r]),t]:t}function fa(a,e,t){return!a||e.length<2?t:["case",["==",["typeof",["get",a]],"number"],["interpolate",["linear"],["number",["get",a]],...e.flatMap(([i,r])=>[i,r])],t]}function ba(a,e){return a.length?St(["get","point_count"],a):typeof e=="function"?e():e}function va(a,e,t){return["match",["get",a],...e.flatMap(i=>[i,t]),1]}function ya(a){if(typeof a=="number")return a;let e=["number",["get",a.field],0],t=e,i=a.stops;if(a.interpolation==="linear"&&!Number.isFinite(i.at(-1)[0]-i[0][0])){if(i=i.map(([n,o])=>[n/2,o]),i.some(([n],o)=>o>0&&n<=i[o-1][0]))return a.fallback;t=["/",e,2]}let r=i.length===1?i[0][1]:a.interpolation==="linear"?["interpolate",["linear"],t,...i.flat()]:St(e,i);return["case",["all",["==",["typeof",["get",a.field]],"number"],[">=",e,-Number.MAX_VALUE],["<=",e,Number.MAX_VALUE]],r,a.fallback]}function nr(a){let e=a?.weightField??"";if(!e)return;let t=a?.weightRange?.[0]??Number.NaN,i=a?.weightRange?.[1]??Number.NaN;return!Number.isFinite(t)||!Number.isFinite(i)||t>=i?["get",e]:["interpolate",["linear"],["get",e],t,0,i,1]}function Ct(a,e,t,i){if(typeof a=="number"||a===void 0)return Z(typeof a=="number"?a:Number.NaN,e,t,i);let r=a.map(([o,s])=>[o,Z(s,e,t,i)]);if(r.length===0)return e;if(r.length===1)return r[0][1];let n=["interpolate",["linear"],["zoom"]];for(let[o,s]of r)n.push(o,s);return n}function wa(a,e){let t=o=>o.length&&o[0][0]>0?[[0,"rgba(0, 0, 0, 0)"],...o]:o,i=t(a),r=i.length>=2?i:t(typeof e=="function"?e():e),n=["interpolate",["linear"],["heatmap-density"]];for(let[o,s]of r)n.push(o,s);return n}var pl=Ae(["none","line","polygon"],"none"),Ua=Ae(["clear","edit"],"clear"),Ba=Ae(["clear","keep"],"clear"),dl=Ae(["named","unnamed"],"named"),hl=Promise.resolve(),_t=()=>ot.loaded;function or(a){try{return Array.isArray(a)&&(we(a)??0)>0}catch{return!0}}var ul=Object.freeze({overlays:Object.freeze({sources:Object.freeze([]),layers:Object.freeze([])}),images:Object.freeze([]),styleOverrides:Object.freeze([])});function Sa(a,e,t){try{let i=r=>Array.isArray(r)&&Object.getPrototypeOf(r)===Array.prototype&&we(r)===0;return!(V(a)&&Object.getPrototypeOf(a)===Object.prototype&&Reflect.ownKeys(a).length===0&&i(e)&&i(t))}catch{return!0}}var ml=Object.freeze({});function Ca(a){try{let e=a.ownerDocument.createElement("canvas").getContext("webgl2");if(!e)return!1;try{e.getExtension("WEBGL_lose_context")?.loseContext()}catch{}return!0}catch{return!1}}var gl=Ae(["modular","maplibre"],"modular");function Be(a){return typeof a=="string"?a.trim().length>0:a!==void 0}var qa=Ae(["row","corner","none"],"row"),Ha=Ae(["row","column"],"row"),Wa=Ae(["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end"],"bottom-start"),Va=Ae(["button","checkbox"],"button"),_a=16,at=Object.freeze([]);function Za(a){try{let e=ut(a,_a*4);if(e===void 0)return at;let t=new Map;for(let i=0;i<e&&t.size<_a;i+=1){let r=q(a,String(i));if(r===ne||fe(r))continue;let n=r.value,o=n,s;Ee(n)&&(o=he(q(n,"value")),s=he(q(n,"label"))),!(typeof o!="number"||!Number.isFinite(o)||t.has(o))&&t.set(o,Object.freeze(typeof s=="string"&&s.trim().length>0?{value:o,label:It(s.trim(),64)}:{value:o}))}return t.size===0?at:Object.freeze([...t.values()].sort((i,r)=>i.value-r.value))}catch{return at}}var Ya=100,Ka=1e3,La=256,fl=8192,bl=256,Ja=256,vl=new Set(["solid","diagonal","dots","crosshatch"]),Xa=Object.freeze([]),yl=Object.freeze({inputCount:0,renderedCount:0,omittedCount:0,truncatedLabelCount:0,truncated:!1});function wl(a){let e;try{e=Array.isArray(a)?a:[]}catch{e=[]}let t=0;try{t=Math.max(0,Math.min(Number.MAX_SAFE_INTEGER,e.length))}catch{t=0}let i=[],r=0,n=0,o=Math.min(t,Ka);for(let p=0;p<o&&i.length<Ya;p++)try{let d=e[p];if(!d||typeof d!="object")continue;let h=d.color,u=d.label,m=d.pattern;if(typeof h!="string"||typeof u!="string"||typeof m!="string"||!vl.has(m))continue;let f=fl-r;if(f<=0)break;let b=Math.min(La,f),v=It(u,b);if(!v.trim())continue;u.length>b&&n++,r+=v.length;let g=d.value,w=typeof g=="string"?g.trim():"",O=w?w.slice(0,Ja):void 0,z=d.group,I=typeof z=="string"?z.trim():"",D=I?It(I,La):void 0,Y=d.icon,W=Ee(Y)?zo(Y):void 0;i.push(Object.freeze({color:h.slice(0,bl),label:v,pattern:m,...O?{value:O}:{},...D?{group:D}:{},...W?{icon:W}:{}}))}catch{}let s=i.length?Object.freeze(i):Xa,c=Math.max(0,t-s.length),l=Object.freeze({inputCount:t,renderedCount:s.length,omittedCount:c,truncatedLabelCount:n,truncated:c>0||n>0});return{entries:s,projection:l,grouped:s.some(p=>p.group!==void 0)}}var gi=Object.freeze([]);function Sl(a){let e,t=0;try{e=Array.isArray(a)?a:[],t=Math.max(0,Math.min(Ka,e.length))}catch{return gi}let i=[];for(let r=0;r<t&&i.length<Ya;r++)try{let n=e[r];if(typeof n!="string")continue;let o=n.trim().slice(0,Ja);if(!o||i.includes(o))continue;i.push(o)}catch{}return i.length?Object.freeze(i):gi}function Cl(a){let[e,t,i,r]=a.viewBox??Ao,n=a.mode??"fill";return P`<svg class="legend-icon" viewBox=${`${e} ${t} ${i} ${r}`} focusable="false" ><path d=${a.path} fill=${n==="stroke"?"none":"currentColor"} stroke=${n==="fill"?"none":"currentColor"} stroke-width=${a.strokeWidth??xo} stroke-linecap=${a.lineCap??"round"} stroke-linejoin=${a.lineJoin??"round"} ></path></svg>`}var Qa=[[".maplibregl-marker","marker"],[".maplibregl-popup","popup"],[".maplibregl-popup-content","popup-content"],[".maplibregl-popup-close-button","popup-close-button"],[".maplibregl-control-container","controls"],[".map-control-row-top","controls-top"],[".map-control-row-bottom","controls-bottom"],[".maplibregl-ctrl-top-left","controls-top-left"],[".maplibregl-ctrl-top-right","controls-top-right"],[".maplibregl-ctrl-bottom-left","controls-bottom-left"],[".maplibregl-ctrl-bottom-right","controls-bottom-right"],[".maplibregl-ctrl-attrib","attribution"],[".maplibregl-ctrl-attrib a","attribution-link"],[".maplibregl-ctrl-attrib-button","attribution-toggle"],[".maplibregl-ctrl-attrib-inner","attribution-content"],[".maplibregl-ctrl-group:has(.maplibregl-ctrl-zoom-in, .maplibregl-ctrl-compass)","navigation"],[".maplibregl-ctrl-zoom-in","zoom-in"],[".maplibregl-ctrl-zoom-out","zoom-out"],[".maplibregl-ctrl-compass","compass"],[".maplibregl-ctrl-scale","scale"],[".maplibregl-ctrl:has(.maplibregl-ctrl-geolocate)","geolocate-control"],[".maplibregl-ctrl-geolocate","geolocate"],[".maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon","zoom-in-icon"],[".maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon","zoom-out-icon"],[".maplibregl-ctrl-compass .maplibregl-ctrl-icon","compass-icon"],[".maplibregl-ctrl-geolocate .maplibregl-ctrl-icon","geolocate-icon"],[".map-scene-globe-control","globe-control"],[".map-scene-globe-control button","globe-button"],[".map-scene-globe-control .map-scene-control-icon","globe-icon"],[".map-scene-terrain-control","terrain-control"],[".map-scene-terrain-control button","terrain-button"],[".map-scene-terrain-control .map-scene-control-icon","terrain-icon"]],_l=Qa.map(([a])=>a).join(", ");function qe(a,e){let t=new Set((a.getAttribute("part")??"").split(/\s+/).filter(Boolean));t.add(e),a.setAttribute("part",[...t].join(" "))}function ar(a){let e=!a.classList.contains("maplibregl-compact")||a.classList.contains("maplibregl-compact-show");return a.localName==="details"?e&&a.hasAttribute("open"):e}var mr=.25,sr=8;function Ll(a,e,t){let i=t-e;if(i===0)return 0;let r=a-e;return(Math.pow(mr,r)-1)/(Math.pow(mr,i)-1)}function He(a){return String(Math.round(Math.min(100,Math.max(0,a))*1e4)/1e4)}function kl(a,e){let t=a[0],i=a[a.length-1],r=i[0]>t[0],n=(s,c)=>(r?Pt(s,t[0],i[0]):c/(a.length-1))*100;if(e!=="logarithmic"||!r)return`linear-gradient(to right, ${a.map(([s,c],l)=>`${c} ${He(n(s,l))}%`).join(", ")})`;let o=[`${t[1]} 0%`];for(let s=1;s<a.length;s+=1){let c=a[s-1],l=a[s];if(l[0]<=c[0]){o.push(`${l[1]} ${He(n(l[0],s))}%`);continue}for(let p=1;p<=sr;p+=1){let d=p/sr,h=vi(c[0],l[0],d),u=Pt(h,t[0],i[0])*100;if(p===sr){o.push(`${l[1]} ${He(u)}%`);continue}let m=Math.min(1,Math.max(0,Ll(h,c[0],l[0]))),f=He((1-m)*100),b=He(m*100);o.push(`color-mix(in srgb, ${c[1]} ${f}%, ${l[1]} ${b}%) ${He(u)}%`)}}return`linear-gradient(to right, ${o.join(", ")})`}var es=2e3;function Al(a,e){let t=a.ownerDocument.createElement("template");t.innerHTML=e;for(let i of t.content.querySelectorAll('script, style, template, [hidden], [aria-hidden="true"]'))i.remove();return(t.content.textContent??"").replace(/\s+/gu," ").trim()}function ka(a,e){return typeof e=="string"&&e?Al(a,e):""}var Lt=Object.freeze([]),kt=["-fill","-line","-circle","-point-icon","-cluster","-cluster-count","-heatmap","-label"],xl=["-fill","-line","-circle","-cluster","-point-icon","-label"],Aa=30,xa=1,We=64;function za(a,e,t){try{let i=a.ownerDocument.createElement("canvas");i.width=i.height=We;let r=i.getContext("2d",{willReadFrequently:!0}),n=a.ownerDocument.defaultView?.Path2D;if(!r||!n)return;let[o,s,c,l]=e.viewBox,p=We/Math.max(c,l);r.translate((We-c*p)/2,(We-l*p)/2),r.scale(p,p),r.translate(-o,-s);let d=new n(e.path);return e.mode!=="stroke"&&(r.fillStyle=t,r.fill(d)),e.mode!=="fill"&&e.strokeWidth>0&&(r.strokeStyle=t,r.lineWidth=e.strokeWidth,r.lineCap=e.lineCap,r.lineJoin=e.lineJoin,r.stroke(d)),r.getImageData(0,0,We,We)}catch{return}}function lr(a){if(a.kind==="heatmap")return"heatmap";let e=a.cluster;return e?`cluster:${e.radius}:${e.maxZoom}:${e.countFont?.join(",")??""}`:"auto"}function Ma(a){return["==",["typeof",["get",a]],"number"]}var ts=Object.freeze([]),li=Symbol("unprojected-map-value");function zl(a){try{let e=ut(a,2);if(e===void 0||e<2)return;let t=q(a,"0"),i=q(a,"1");return t===ne||i===ne||fe(t)||fe(i)||typeof t.value!="number"||typeof i.value!="number"||!Number.isFinite(t.value)||!Number.isFinite(i.value)||i.value<-90||i.value>90?void 0:Object.freeze([t.value,i.value])}catch{return}}function Ml(a){try{if(!Ee(a))return;let e=q(a,"id"),t=q(a,"lngLat"),i=q(a,"color"),r=q(a,"label"),n=q(a,"unsafeHtml");if(t===ne||fe(e)||fe(t)||fe(i)||fe(r)||fe(n))return;let o=zl(t.value),s=he(e),c=he(r);if(!o||s!==void 0&&typeof s!="string"||typeof s=="string"&&s.trim().length===0||c!==void 0&&typeof c!="string")return;let l=he(i);return Object.freeze({id:typeof s=="string"?s.trim():void 0,lngLat:o,color:typeof l=="string"?l:void 0,label:typeof c=="string"?c:void 0,unsafeHtml:he(n)})}catch{return}}function Ol(a){let e=new Set;return yr(a,t=>{let i=Ml(t);if(i?.id!==void 0){if(e.has(i.id))return;e.add(i.id)}return i},es,ts)}function cr(a,e){let t=a.options,i=t?.focusAfterOpen;return t&&(t.focusAfterOpen=!1),e.unsafeHtml?a.setHTML(e.unsafeHtml):a.setText(e.label),t&&(t.focusAfterOpen=i),a}var Oa="lyraMapFit",Ra="lyraMapCommand",pr="lyraMapCameraSession";function Se(a){return Object.assign(new Error(a),{code:a})}var dr=Object.freeze({top:0,right:0,bottom:0,left:0}),Rl=16,El=Object.freeze([0,22]);function hr(a){return Array.isArray(a)?[a[0],a[1]]:a}function ci(a,e){return Array.isArray(a)&&Array.isArray(e)?Object.is(a[0],e[0])&&Object.is(a[1],e[1]):Object.is(a,e)}function J(a){return typeof a=="number"&&Number.isFinite(a)}function Pl(a){if(!Array.isArray(a)||a.length!==2)return;let[e,t]=a;if(!Array.isArray(e)||!Array.isArray(t)||e.length!==2||t.length!==2)return;let[i,r]=e,[n,o]=t;if(!(!J(i)||!J(r)||!J(n)||!J(o))&&!(i<-180||i>180||n<-180||n>i+360)&&!(r<-90||o>90||r>o))return Object.freeze([Object.freeze([i,r]),Object.freeze([i>n?n+360:n,o])])}function Ea(a){let e=i=>Z(typeof i=="number"?i:0,0,0);if(typeof a=="number"){let i=e(a);return Object.freeze({top:i,right:i,bottom:i,left:i})}let t=typeof a=="object"&&a!==null?a:{};return Object.freeze({top:e(t.top),right:e(t.right),bottom:e(t.bottom),left:e(t.left)})}function mi(a){if(a>=-180&&a<=180)return a;let e=((a+180)%360+360)%360-180;return e===-180?180:e}function Re(a){let e,t,i;try{({lng:e,lat:t}=a.getCenter()),i=a.getZoom()}catch{return}if(!(!J(e)||!J(t)||!J(i)))return{center:[mi(e),Z(t,0,-90,90)],zoom:i}}function At(a){return a.ownerDocument?.defaultView??null}var Pa=.75,Ia=.15,Da={"fill-opacity":"--lr-map-drawing-fill-opacity","line-width":"--lr-map-drawing-stroke-width","circle-radius":"--lr-map-drawing-vertex-radius","line-dasharray":"--lr-map-drawing-preview-dash"},gr={accent:"--lr-color-brand",success:"--lr-color-success",warning:"--lr-color-warning",danger:"--lr-color-danger",neutral:"--lr-color-text-quiet"},pi={accent:"--lr-color-on-brand",success:"--lr-color-on-success",warning:"--lr-color-on-warning",danger:"--lr-color-on-danger",neutral:"--lr-color-on-neutral"},Il=Object.freeze([[.25,"--lr-color-brand"],[.5,"--lr-color-success"],[.75,"--lr-color-warning"],[1,"--lr-color-danger"]]);function is(a,e){let t=gr[e??"accent"];return(At(a)?.getComputedStyle(a).getPropertyValue(t).trim()??"")||Li}var Dl=new Set(["aqua","black","blue","fuchsia","gray","green","lime","maroon","navy","olive","purple","red","silver","teal","white","yellow","transparent"]),jl=/^\s*(?:var\(|currentcolor\s*$|(?:color-mix|color|oklch|oklab|lch|lab|hwb|light-dark)\()/iu,ja="--lr-map-drawing-color",di=Object.freeze([]),hi=Object.freeze([]),xt=new WeakMap;function Ve(a,e,t){let i=xt.get(a);i||xt.set(a,i=new Map);let r=`${t}:${e??""}`;if(i.has(r))return i.get(r);let n=Fl(a,e,t);return i.size>=512&&i.clear(),i.set(r,n),n}function Fl(a,e,t){let i=typeof e=="string"?e.trim():"";if(!i)return;if(t){let n=/^var\(\s*(--[\w-]+)\s*\)$/.exec(i),o=n?At(a)?.getComputedStyle(a).getPropertyValue(n[1]).trim()??"":i,s=Dl.has(o.toLowerCase());if(/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i.test(o)||(/^rgba?\([\d\s.,/]+\)$/i.test(o)||s)&&typeof CSS<"u"&&CSS.supports("color",o))return o}let r=ki(a,i,"");if(r){if(/^rgba?\(/i.test(r))return r;try{let n=po(a.ownerDocument,r);return n&&ho(n)}catch{return}}}function K(a,e,t){return Ve(a,e,!0)??Ve(a,is(a,t),!0)??Li}function ui(a,e){return Ve(a,e,!1)}function Fa(a,e,t){return Ve(a,e,!0)??K(a,t.strokeColor??t.color,t.tone)}function Ta(a,e){if(!(!!1||!void 0))for(let t of a.diagnostics)for(let[i,r]of t.properties){if(typeof r!="number"||!Number.isFinite(r)||Math.abs(r)<=Number.MAX_SAFE_INTEGER)continue;let n=t.id??`index ${t.index}`;!1}}var Ga=Object.freeze({rows:Object.freeze([]),gradient:Object.freeze([]),interpolation:"linear",ticks:at}),Tl="var(--lr-color-text-quiet)",Gl="\u2066",$l="\u2069";function ur(a,e,t){return Object.freeze({color:a,label:e,pattern:t})}function Nl(a,e,t){let i=[],r=Object.freeze([]),n=at,o=a.stops,s=c=>`${Gl}${c}${$l}`;if(a.interpolation==="step"){let c=a.stepBaseColor;c&&o.length>0&&i.push(ur(c,s(`< ${e(o[0][0])}`),"solid")),(c||o.length>1)&&o.forEach(([l,p],d)=>{let h=o[d+1],u=h===void 0?`\u2265 ${e(l)}`:!c&&d===0?`< ${e(h[0])}`:`${e(l)} \u2013 ${e(h[0])}`;i.push(ur(p,s(u),"solid"))})}else o.length>=2&&(r=o,n=Za(o.slice(1,-1).map(([c])=>c)));return a.noData&&i.push(ur(a.noData.color??Tl,a.noData.label??t,"diagonal")),Object.freeze({rows:Object.freeze(i),gradient:r,interpolation:a.interpolation,ticks:n})}var Ul=1e5,Bl=new Set(["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"]);function ql(a){let e=Ul,t=(r,n)=>{if(!Array.isArray(r))throw new TypeError("geometry");if(n===0){if(r.length<2||r.length>4||(e-=r.length)<0)throw new TypeError("geometry");return Object.freeze(r.map(o=>{if(typeof o!="number"||!Number.isFinite(o))throw new TypeError("geometry");return o}))}return Object.freeze(r.map(o=>t(o,n-1)))},i=(r,n)=>{let o=U(r,"type")??r?.type;if(o==="GeometryCollection"&&!n){let c=r.geometries;if(!Array.isArray(c))throw new TypeError("geometry");return Object.freeze({type:o,geometries:Object.freeze(c.map(l=>i(l,!0)))})}if(typeof o!="string"||!Bl.has(o))throw new TypeError("geometry");let s=o==="Point"?0:o==="MultiPoint"||o==="LineString"?1:o==="MultiPolygon"?3:2;return Object.freeze({type:o,coordinates:t(r.coordinates,s)})};try{return i(a,!1)}catch{return null}}function Hl(a,e){let t;try{t=a?.geometry}catch{t=void 0}return Object.freeze({type:"Feature",...e.id===void 0?{}:{id:e.id},properties:e.properties,geometry:ql(t)})}function $a(a,e){let t=a.data;if(typeof t!="object"||t===null)return[JSON.stringify(a),JSON.stringify(e)];let{data:i,...r}=a;return[t,JSON.stringify([r,e])]}function Na(a){try{return["setFeatureState","removeFeatureState"].every(e=>{let t=ct(a,e);return t&&Object.hasOwn(t,"value")&&typeof t.value=="function"})}catch{return!1}}var C=class extends yi{static{this.defaultStrings={...super.defaultStrings,close:Mr,items:Or,legendTypeHidden:Rr,legendTypeShown:Er,loading:Pr,map:Ir,mapActivate:Jr,mapCancelDrawing:Xr,mapCancelPick:Qr,mapCloseWithLabel:en,mapCompleteDrawing:tn,mapControlUnavailable:rn,mapDrawAtCenter:nn,mapDrawingArea:on,mapDrawingControls:an,mapDrawingDuplicateVertex:sn,mapDrawingEditInstructions:ln,mapDrawingInvalidCoordinate:cn,mapDrawingInvalidGeometry:pn,mapDrawingLength:dn,mapDrawingTooFewVertices:hn,mapDrawingUnavailable:un,mapDrawingVertex:mn,mapDrawingVertexLimit:gn,mapDrawingVertices:fn,mapExportUnavailable:bn,mapFeatureStateUnavailable:vn,mapFeedback:yn,mapGeolocateError:wn,mapGeolocateFindLocation:Sn,mapGeolocateOutOfBounds:Cn,mapGeolocatePermissionDenied:_n,mapGeolocatePositionUnavailable:Ln,mapGeolocateTimeout:kn,mapGeolocateUnavailable:An,mapGlobe:xn,mapHashConflict:zn,mapHashInvalid:Mn,mapInitializationFailed:On,mapLegend:Rn,mapMarker:En,mapMissingLibrary:Pn,mapPickAtCenter:In,mapResetNorth:Dn,mapScaleFeet:jn,mapScaleKilometers:Fn,mapScaleMeters:Tn,mapScaleMiles:Gn,mapScaleNauticalMiles:$n,mapScene:Nn,mapSceneArc:Un,mapSceneEmpty:Bn,mapSceneInvalid:qn,mapSceneLimit:Hn,mapSceneMarker:Wn,mapSceneModel:Vn,mapSceneNext:Zn,mapScenePage:Yn,mapScenePartial:Kn,mapScenePath:Jn,mapScenePrevious:Xn,mapSceneUnavailable:Qn,mapSquareKilometers:eo,mapSquareMeters:to,mapStyleRequired:io,mapTerrain:ro,mapToggleAttribution:no,mapUndoDrawing:oo,mapWebglUnavailable:ao,noData:Dr,paginationSummary:jr,zoomIn:Fr,zoomOut:Tr}}static{this.collectionSupport=wr}static{this.immutableEventDetails=Object.freeze(["lr-map-scene-state","lr-map-scene-activate","lr-map-camera-interrupt","lr-map-click","lr-map-feature-enter","lr-map-feature-leave","lr-map-pointer-move","lr-map-contextmenu","lr-map-pick","lr-map-anchor-close","lr-map-draw-start","lr-map-draw-change","lr-map-draw-complete","lr-map-draw-cancel","lr-map-draw-vertex-end","lr-map-legend-panel-toggle-request","lr-map-legend-toggle-request","lr-map-marker-activate","lr-map-move","lr-map-export-error","lr-map-geolocate","lr-map-style-load","lr-map-idle","lr-map-view-change"])}get scene(){return this.geographicSceneValue}set scene(e){let t=this.geographicSceneValue;Object.is(t,e)||(this.geographicSceneValue=e,this.requestUpdate("scene",t),this.geographicSceneOwner?this.geographicSceneOwner.assign(e):this.geographicSceneConnection&&this.startGeographicScene())}connectGeographicScene(){this.closeGeographicScene();let e=Object.freeze({});this.geographicSceneDocument=this.ownerDocument,this.geographicSceneConnection=e,this.unregisterGeographicScene=Po(this,t=>{if(!this.geographicSceneFacade){let i=t({connection:e});if(this.geographicSceneFacade=i,this.geographicSceneOwner&&!i.bindState(this.geographicSceneOwner.state)){this.closeGeographicScene();return}}return this.geographicSceneFacade.attachment},t=>(this.geographicSceneOwner||this.startGeographicScene(),this.geographicSceneOwner&&Eo(this.geographicSceneOwner.state,t))),this.geographicSceneValue!==void 0&&this.startGeographicScene()}startGeographicScene(){let e=this.ownerDocument,t=this._connectGeneration,i=Xo({element:this,connection:this.geographicSceneConnection,isCurrentConnection:()=>this.isConnected&&this.ownerDocument===e&&this._connectGeneration===t&&this.geographicSceneOwner===i,changed:()=>this.geographicSceneChanged(i)});if(this.geographicSceneOwner=i,this.geographicSceneFacade&&!this.geographicSceneFacade.bindState(i.state)){this.closeGeographicScene();return}this.geographicSceneValue!==void 0&&i.assign(this.geographicSceneValue)}closeGeographicScene(){this.stopGeographicSceneRender();let e=this.geographicSceneOwner,t=this.geographicSceneFacade,i=this.unregisterGeographicScene;this.geographicSceneOwner=void 0,this.geographicSceneFacade=void 0,this.geographicSceneConnection=void 0,this.geographicSceneDocument=void 0,this.unregisterGeographicScene=void 0,this.geographicScenePublished=void 0,this.sceneRepairFocus=!1,this.scenePanelOpen=!1,this.scenePage=0,t?.close(),i?.(),e?.close()}geographicSceneChanged(e){if(!this.isConnected||this.geographicSceneOwner!==e)return;let t=e.captureView();if(this.syncGeographicSceneRender(),this.geographicSceneOwner!==e||e.captureView()!==t)return;let i=Mt(this.shadowRoot)?.getAttribute("data-scene-id");this.scenePage=Math.min(this.scenePage,Math.max(0,Math.ceil(t.accepted.objects.length/100)-1)),i&&!t.accepted.objects.slice(this.scenePage*100,(this.scenePage+1)*100).some(r=>r.id===i&&r.interactive)&&(this.sceneRepairFocus=!0),this.scheduleAfterUpdate(()=>{let r=this.geographicSceneOwner;if(!this.isConnected||!r)return;let n=r.captureView(),o=n.status;!o||this.geographicScenePublished===o||(this.geographicScenePublished=o,this.requestUpdate(),this.emit("lr-map-scene-state",o),!(!this.isConnected||this.geographicSceneOwner!==r||r.captureView()!==n)&&(!n.active||o.state==="loading"||o.state==="ready"||(o.state==="partial"?this.announcements.announcePolite(this.sceneStatusMessage(o)):this.announcements.announceAssertive(this.sceneStatusMessage(o)))))},"map-geographic-scene-status")}stopGeographicSceneRender(){let e=this.geographicSceneRender,t=this.geographicSceneOwner;this.geographicSceneRender=void 0,this.geographicSceneRenderAttempt=void 0,this.geographicSceneRenderFailure=void 0,t?.setViewport(void 0),e?.dispose()}syncGeographicSceneStatus(){let e=this.geographicSceneOwner;if(!e||!this.isConnected)return;let t=e.captureAccepted();if(t.objects.length===0)return;let i=Qo(t.objects),r=this.geographicSceneRender,n;if(r)n=r.captureOutcomes();else{let o=this.failure!==void 0||this.geographicSceneRenderFailure===t.acceptedSceneRevision,s=i.markers+i.lines===0?{state:"none"}:o?{state:"failed",code:"engine"}:{state:"pending"};n={markers:s,lines:s}}e.reportRenderStatus(t.acceptedSceneRevision,ea(i,n.markers,n.lines))}syncGeographicSceneRender(){this.syncGeographicSceneRenderer(),this.syncGeographicSceneStatus()}syncGeographicSceneRenderer(){let e=this.geographicSceneOwner,t=this._map,i=this.containerEl;if(!e||!t||!i||!this.isConnected||!e.captureAccepted().objects.some(l=>l.kind==="marker"||l.kind==="path"||l.kind==="arc")){this.stopGeographicSceneRender();return}if(this.geographicSceneRender){this.geographicSceneRender.sync();return}if(this.geographicSceneRenderAttempt||this.geographicSceneRenderFailure===e.captureAccepted().acceptedSceneRevision)return;let r=Object.freeze({}),n=this.ownerDocument;this.geographicSceneRenderAttempt=r;let o=()=>this.isConnected&&this.ownerDocument===n&&this._map===t&&this.containerEl===i&&this.geographicSceneOwner===e&&this.geographicSceneRenderAttempt===r,s=l=>{if(!o())return;let p;try{if(p=l.createMapSceneRenderController({element:this,map:t,container:i,owner:e,accentToken:gr.accent,loadBridge:ca,isCurrent:o,styleLoaded:()=>this._styleLoaded,onStatusChange:()=>{o()&&this.syncGeographicSceneStatus()}}),!o()){p.dispose();return}this.geographicSceneRender=p}catch{p?.dispose(),o()&&(this.geographicSceneRenderFailure=e.captureAccepted().acceptedSceneRevision,this.geographicSceneRenderAttempt=void 0)}this.geographicSceneOwner===e&&this.syncGeographicSceneStatus()},c=er.loaded;c?s(c):er().then(s,()=>{o()&&(this.geographicSceneRenderFailure=e.captureAccepted().acceptedSceneRevision,this.geographicSceneRenderAttempt=void 0,this.syncGeographicSceneStatus())})}notifyCustomLayers(e){for(let t of[...this.customLayerCallbacks])try{e(t)}catch{}}acquireCustomLayer(e){let t=this._connectGeneration;this.customLayerCallbacks.add(e);let i=()=>this.isConnected&&t===this._connectGeneration&&this.customLayerCallbacks.has(e);return{nativeMap:()=>i()&&this._styleLoaded?this._map:void 0,reducedMotion:()=>$e(this),activate:(r,n)=>{if(!i()||this.mapInteractionBlocked()||this.customLayerActivations.has(n))return;this.customLayerActivations.add(n);let o=Object.freeze({id:r.id,kind:"custom",layerId:r.layerId,source:"pointer",...r.position?{position:r.position}:{}});this.emit("lr-map-scene-activate",o)},release:()=>{this.customLayerCallbacks.delete(e)}}}sceneStatusMessage(e){return e.state==="empty"?this.localize("mapSceneEmpty"):e.state==="loading"?this.localize("loading"):e.state==="partial"?this.localize("mapScenePartial"):e.code==="limit"?this.localize("mapSceneLimit"):e.code==="invalid"?this.localize("mapSceneInvalid"):this.localize("mapSceneUnavailable")}sceneInteractionAllowed(e){return this.isConnected&&this.geographicSceneOwner===e&&!this.mapInteractionBlocked()}activateSceneObject(e,t,i,r){if(!this.sceneInteractionAllowed(e)||!i.interactive)return;let n=e.captureAccepted();if(n.acceptedSceneRevision!==t||!n.objects.includes(i))return;let o=Object.freeze({id:i.id,kind:i.kind,source:r.detail===0?"keyboard":"pointer",...i.kind==="marker"||i.kind==="model"?{position:i.position}:{}});this.emit("lr-map-scene-activate",o)}renderGeographicScene(){let e=this.geographicSceneOwner,t=e?.captureView();if(!e||!t?.active)return H;let{objects:i,acceptedSceneRevision:r}=t.accepted,n=this.interactionBlocked,o=Math.max(1,Math.ceil(i.length/100)),s=Math.min(this.scenePage,o-1),c=l=>{switch(l){case"marker":return this.localize("mapSceneMarker");case"path":return this.localize("mapScenePath");case"arc":return this.localize("mapSceneArc");case"model":return this.localize("mapSceneModel")}};return P`<section part="scene-panel" aria-label=${this.localize("mapScene")}>
|
|
2
|
+
<button type="button" part="scene-toggle" aria-expanded=${String(this.scenePanelOpen)} aria-controls="scene-objects-list" ?disabled=${n} @click=${()=>{this.sceneInteractionAllowed(e)&&(this.scenePanelOpen=!this.scenePanelOpen)}}>${this.localize("mapScene")}</button>
|
|
3
|
+
${t.status&&t.status.state!=="ready"?P`<div part="scene-status">${this.sceneStatusMessage(t.status)}</div>`:H}
|
|
4
|
+
<div id="scene-objects-list" ?hidden=${!this.scenePanelOpen}>
|
|
5
|
+
<ul part="scene-list">${Gr(i.slice(s*100,(s+1)*100),l=>l.id,l=>P`<li>
|
|
6
|
+
${l.interactive?P`<button type="button" part="scene-item" data-scene-id=${l.id} ?disabled=${n} @click=${p=>this.activateSceneObject(e,r,l,p)}><span>${l.label}</span><span class="scene-kind">${c(l.kind)}</span></button>`:P`<div part="scene-item"><span>${l.label}</span><span class="scene-kind">${c(l.kind)}</span></div>`}
|
|
7
|
+
</li>`)}</ul>
|
|
8
|
+
${o>1?P`<div part="scene-pagination">
|
|
9
|
+
<button type="button" ?disabled=${n||s===0} @click=${()=>{this.sceneInteractionAllowed(e)&&(this.scenePage=Math.max(0,s-1))}}>${this.localize("mapScenePrevious")}</button>
|
|
10
|
+
<span>${this.localize("mapScenePage",void 0,{page:this.formatLocaleNumber(s+1),pages:this.formatLocaleNumber(o)})}</span>
|
|
11
|
+
<button type="button" ?disabled=${n||s+1===o} @click=${()=>{this.sceneInteractionAllowed(e)&&(this.scenePage=Math.min(o-1,s+1))}}>${this.localize("mapSceneNext")}</button>
|
|
12
|
+
</div>`:H}
|
|
13
|
+
</div>
|
|
14
|
+
</section>`}static{this.identityEventDetailProperties=Object.freeze({"lr-map-click":Object.freeze(["feature"]),"lr-map-feature-enter":Object.freeze(["feature"]),"lr-map-feature-leave":Object.freeze(["feature"]),"lr-map-contextmenu":Object.freeze(["feature"]),"lr-map-pick":Object.freeze(["feature"]),"lr-map-marker-activate":Object.freeze(["marker"])})}static{this.ownedCollectionProperties=Object.freeze(["center","mapStyle","overlays","choropleth","markers","dataLayers","images","styleOverrides","interactiveBasemapLayers"])}static{this.identityCollectionProperties=Object.freeze(["markers","dataLayers","images","styleOverrides"])}static{this.identityCollectionObjectProperties=Object.freeze(["mapStyle","choropleth","overlays"])}static{this.styles=[yi.styles,ta,Lr]}static preload(e="modular"){return(e==="maplibre"?zi():Mi()).then(t=>t!==null)}constructor(){super(),this.sceneRepairFocus=!1,this.scenePanelOpen=!1,this.scenePage=0,this.hostDescription=new $r(this,()=>{try{return this._map?.getCanvas?.()??null}catch{return null}}),this.projectionGuard=new Ke,this.terrainGuard=new Ke,this.terrainInvalid=!1,this.sceneRequest=0,this.sceneControlsRequestPending=!1,this.hasAssignedCenter=!1,this._center=Object.freeze([0,0]),this.zoom=2,this.canvasPaddingUsable=!0,this.appliedPadding=dr,this.commandToken=Object.freeze({}),this.reflectingCamera=!1,this.zoomLimitRevision=0,this.cameraUpdatePending=!1,this.deferredCameraWork=[],this.moveFrame=new Si(this),this.fitToken=Object.freeze({}),this.semanticsStale=!0,this.markerSemanticsStale=!0,this.geoJsonRefreshRequested=!1,this.refreshingGeoJson=!1,this.boxZoomSettling=!1,this.writingCamera=!1,this.maxBounds=null,this.hash=!1,this.hashFormat="named",this.hashRuntimePending=!1,this.hashRuntimeFailed=!1,this.applyingHash=!1,this.sceneControlIssue=!1,this.pendingSceneControlIssue=!1,this.controlOutlines=[],this.pendingControlOutlines=[],this.featureLoads=0,this.anchorAvoidGap=0,this.anchorClosable=!1,this.anchorFill=!1,this.initialization="visible",this._mapStyleRevision=0,this._legend=Xa,this._legendRevision=0,this._legendProjection=yl,this._legendGrouped=!1,this.hasLegendSlot=!1,this.hasLegendStartSlot=!1,this._legendGradient=Object.freeze([]),this._legendGradientRevision=0,this.legendIsLine=!1,this.legendGradientLoLabel=null,this.legendGradientHiLabel=null,this._legendGradientTicks=at,this._legendGradientTicksRevision=0,this._legendGradientTicksAssigned=!1,this.choroplethLegend=!1,this.derivedLegend=Ga,this.legendInteractive=!1,this._legendControlRole="button",this.legendCollapsible=!1,this._legendPlacement="bottom-start",this._legendClearance="row",this._legendFlow="row",this._legendOpen=!0,this.legendOpenGuard=new Ke,this.categoriesGuard=new Ke,this._hiddenCategories=gi,this._hiddenCategoriesRevision=0,this.markers=[],this.dataLayers=[],this.overlays={},this.images=[],this.styleOverrides=[],this.overlayGroups=new Map,this.overlayGroupSequence=0,this.overlayGroupRevision=0,this._canonicalChoroplethSource=li,this._canonicalDataLayersSource=li,this._canonicalDataLayersBase="",this._canonicalDataLayersOrigin="",this._canonicalExternalLayers=[],this.invalidDataLayerModel=!1,this.dataLayerIssue=!1,this.pendingDataLayerIssue=!1,this.dataLayerRuntimeFailed=!1,this.committedDataLayers=Lt,this.committedExternalLayers=[],this.groupOrderActive=!1,this.plannedDataLayerIds=new Map,this._canonicalDataLayers=Lt,this._canonicalMarkersSource=li,this._canonicalMarkers=ts,this.engine="modular",this.loading=!0,this.announcements=new Hr(this,{eager:["assertive"]}),this.loadLibrary=e=>e==="maplibre"?zi():Mi(),this.visible=!1,this.constructionMode="visible",this._styleLoaded=!1,this._appliedDataLayerIds=new Map,this._appliedDataLayerShapes=new Map,this._appliedGeoJson=new Map,this._nextDataLayerId=0,this.nextPointIconId=0,this.appliedPointPaint=new Set,this.appliedPointMuting=new Set,this.appliedPointIcons=new Map,this.cameraSessionConfigurationRevision=0,this.cameraSessionConfigurationApplied=0,this.cameraSessionConfigurationApplying=0,this.customLayerCallbacks=new Set,this.customLayerActivations=new WeakSet,this._webglReady=!1,this._markerInstances=new Map,this._markerLabels=new Map,this._markerPopupIds=new Map,this.markerActivationDetails=new WeakMap,this._configuredPopups=new WeakSet,this._nextPopupId=0,this._markerColors=new Map,this._markerSources=new Map,this._connectGeneration=0,this._styleGeneration=0,this.readiness=new ni,this.controlsReadiness=new ai,this.externalFeatureWorkStarted=!1,this.externalIdStyle=-1,this.externalIdCounter=0,this.externalSourceIds=new Map,this.appliedGeoLabels=new Map,this.peerEvents=new ti,this.optionalFeatureWorkStarted=!1,this.interactiveBasemapLayers=[],this._pickMode=!1,this.pickGuard=new Ke,this.keyboardActivation=!1,this.drawMode="none",this.drawingMeasurements=!1,this._drawingCompleteBehavior="clear",this._drawingFinishBehavior="clear",this.drawingSticky=!1,this.drawingRevision=0,this.drawingProgressAnnouncers=[0,1].map(()=>new qr({onFlush:e=>{this.announcements.announcePolite(e)}})),this.drawingProgressState=[void 0,void 0],this.suppressDrawingClick=!1,this.drawingResetting=!1,this.drawingEpoch=0,this.featureStateIssue=!1,this.interactionBlocked=!1,this.stateRouter=new So,this.stateRequested=!1,this.stateRoutingAvailable=!0,this.stateRoutes=[],this.sourceIdentities=new Map,this.interactions=[],this.interactionGeneration=0,this.interactionQuery=0,this.queryingMap=!1,this.mapCursor=new ei,this.featureWork=Promise.resolve(),this.featureGeneration=0,this.preparingFeatures=!1,this.retainedOverlayInteractions=!1,this.pendingMapLoad=!1,this.mapLoadEmitted=!1,this.rebuildGeneratedLayers=!1,this.scaleLabels=new Map,this.anchorSyncRequested=!1,this.childAnchorSet=new Set,this.openChildAnchors=new Set,this.anchorSlotPresence=new Zr(this,{observeLightDom:!0}),this.exportIssue=!1,this.pendingExportIssue=!1,this.onAnchorFocus=e=>{this.anchorController?.focusIn(e)},this.onAnchorSlotChange=()=>{this.scheduleAnchorSync()},this.onAnchorsSlotChange=e=>{let t=i=>{i[Oi]?.("refresh")};this.childAnchorSet.forEach(t);for(let i of e.target.assignedElements({flatten:!0}))i.localName===fi("map-anchor")&&!customElements.get(i.localName)&&!1&&ke("lyra-map-anchor-undefined",`<${this.localName}>: import @aceshooting/lyra-ui/components/${i.localName}.js to place <${i.localName}> children.`),t(i),i.querySelectorAll(fi("map-anchor")).forEach(t)},this.clusterZoomToken=0,this.detached=new so(()=>this.releaseConnection()),this.mapUpdateActive=!1,this.actionBarFocusRepair=null,this.writingBusy=!1,this.authoredBusy=!1,this.fillOpacity=Pa,this.hiddenOpacity=Ia,this.drawingPaint={},this.paintThemeTokens=[],this.mapPaintBatch=new Bt,this.mapPaintBatchActive=!1,this.pendingDrawingTheme=!1,this._styleLayers=di,this._styleSources=hi,this.drawingConfigRevision=0,this.drawingConfigApplying=0,this.drawingConfigApplied=0,this.pointerFrame=new Si(this),this.pointerInside=!1,this.drawMapCenter=()=>{this.drawingController?.addCenter()},this.cancelMapPick=()=>{if(!this.pickMode||this.mapInteractionBlocked())return;let e=this._map,t=this._connectGeneration,i=Object.freeze({source:"control"});Ye({guard:this.pickGuard,requestDetail:i,emitRequest:(r,n)=>this.emit("lr-map-pick-cancel-request",r,n),commit:()=>{!this.isConnected||this._connectGeneration!==t||this._map!==e||this.mapInteractionBlocked()||(this.pickMode=!1,this.clearMapHover(),this.emit("lr-map-pick-cancel",i))}})},this.pickMapCenter=()=>{let e=this._map,t=this.interactionGeneration;if(!(!e||!this.pickMode||!this.mapInteractionAllowed()))try{let i=Qe(e.getCenter());if(!i||this._map!==e||t!==this.interactionGeneration||!this.mapInteractionAllowed())return;let[r,n]=this.project(i)??[];this.emit("lr-map-pick",Object.freeze({lngLat:i,...this.interactionPosition({x:r,y:n}),trigger:"keyboard"}))}catch{}},this.appliedLayerPaintKeys=new Map,this.appliedRowRanges=new Map,this.configuredMarkerElements=new WeakSet,this.onLegendSlotChange=e=>{let t=e.target,i=t.assignedNodes({flatten:!0}).some(r=>r.nodeType===Node.ELEMENT_NODE||(r.textContent??"").trim().length>0);t.name==="legend-start"?this.hasLegendStartSlot=i:this.hasLegendSlot=i},new co(this,()=>{if(this.geographicSceneRender?.refreshPresentation(),!this.syncPaintTheme())return;let e=this.refreshThemePaint();this.legendIsLine=this.legendDescribesLine(),e||this.drawingController?.repaint()}),new Wr(this,'[part="legend"]'),mo(this)}get projection(){return this._projection}set projection(e){Je(this.projectionGuard);let t=this._projection;this._projection=Ai(e),this.requestUpdate("projection",t)}get terrain(){return this._terrain}set terrain(e){Je(this.terrainGuard);let t=this._terrain;try{this._terrain=Dt(e),this.terrainInvalid=!1}catch{this._terrain=void 0,this.terrainInvalid=!0}this.requestUpdate("terrain",t)}syncSceneConfiguration(){let e=this._map;if(!e||!this._styleLoaded||this.failure||!this.sceneConfiguration&&this.projection===void 0&&this.terrain===void 0&&!this.terrainInvalid)return;this.sceneConfiguration??=new oi({changed:()=>{this.readiness.check(),this.flushMapLoad(),this.controlLifecycle?.refreshSceneControls()},failed:()=>{this.failInitialization("initialization-failed")}});let t=this._styleGeneration,i=this._connectGeneration,r=this.mapStyle,n=this.sceneRequest;this.sceneConfiguration.sync(e,t,()=>this.isConnected&&this._map===e&&this._styleGeneration===t&&this._connectGeneration===i&&this.mapStyle===r&&this.sceneRequest===n,this.projection,this.terrainInvalid?{}:this.terrain)}get center(){return this._center}set center(e){this.hasAssignedCenter&&ci(e,this.assignedCenter)||(this.hasAssignedCenter=!0,this.assignedCenter=hr(e),this._center=e)}get zoomLimitsRequested(){return[this.minZoom,this.maxZoom].some(e=>typeof e=="number"&&Number.isFinite(e))}get zoomLimits(){let e=n=>typeof n=="number"&&Number.isFinite(n)?Z(n,0,0,24):void 0,t=e(this.minZoom),i=e(this.maxZoom);if(t!==void 0&&i!==void 0&&t>i)return!1,El;let r=t??0;return[r,i??Math.max(22,r)]}syncCanvasAllocation(){this.isConnected&&(!this.canvasAllocationController&&this.canvasTarget===void 0||(this.canvasAllocationController??=new Ut({element:this,base:()=>this.shadowRoot?.querySelector('[part="base"]')??void 0,target:()=>this.canvasTarget,changed:e=>{this.canvasAllocation=e;let t=this._map,i=this._connectGeneration,r=this.ownerDocument,n=()=>this.isConnected&&this._map===t&&this._connectGeneration===i&&this.ownerDocument===r;if(t&&n()){if(this.writeCamera(()=>{try{t.resize()}catch{}}),!n()||(this.applyCameraPadding(),!n()))return;this.drawingController?.scheduleHandles(),this.geographicSceneRender?.refreshAllocation(),this.scheduleAnchorSync()}}}),this.canvasAllocationController.refresh()))}releaseCanvasAllocation(){this.canvasAllocationController?.dispose(),this.canvasAllocationController=void 0,this.canvasAllocation=void 0,this.canvasPaddingUsable=!0}get hashOption(){return this.hashFormat!=="unnamed"||!this.hashRequested()?this.hash:this.hash===!0?_o:""}setSceneControlIssue(e){this.pendingSceneControlIssue!==e&&(this.pendingSceneControlIssue=e,this.mapUpdateActive?this.scheduleAfterUpdate(()=>{this.sceneControlIssue=this.pendingSceneControlIssue},"map-scene-control-feedback"):this.sceneControlIssue=e)}setControlOutlines(e){e.length===0&&this.pendingControlOutlines.length===0||(this.pendingControlOutlines=e,this.mapUpdateActive?this.scheduleAfterUpdate(()=>{this.controlOutlines=this.pendingControlOutlines},"map-control-outlines"):this.controlOutlines=e)}configurationMessage(e){switch(e){case"mapHashConflict":return this.localize("mapHashConflict");case"mapHashInvalid":return this.localize("mapHashInvalid");case"mapControlUnavailable":return this.localize("mapControlUnavailable");case"mapGeolocatePermissionDenied":return this.localize("mapGeolocatePermissionDenied");case"mapGeolocatePositionUnavailable":return this.localize("mapGeolocatePositionUnavailable");case"mapGeolocateTimeout":return this.localize("mapGeolocateTimeout");case"mapGeolocateError":return this.localize("mapGeolocateError");case"mapGeolocateOutOfBounds":return this.localize("mapGeolocateOutOfBounds")}}setControlIssue(e){this.pendingControlIssue=e,this.mapUpdateActive?this.scheduleAfterUpdate(()=>{this.controlIssue=this.pendingControlIssue},"map-control-feedback"):this.controlIssue=e}hashRequested(){return this.hash!==!1&&this.hash!==void 0&&this.hash!==null}hashRuntime(){if(this.hashOwner||!this.hashRequested()||this.hashRuntimeFailed)return this.hashOwner;let e=Xi.loaded;if(e)return this.hashOwner=new e.MapHashOwner;this.hashRuntimePending||(this.hashRuntimePending=!0,this.trackFeatureLoad(Xi().then(()=>{},()=>{this.hashRuntimeFailed=!0}).then(()=>{this.hashRuntimePending=!1,this.isConnected&&(this.syncHash(),this.applyHash(),this.tryConstructMap())})))}trackFeatureLoad(e){this.featureLoads+=1,this.readiness.invalidate(),e.finally(()=>{this.featureLoads-=1,this.readiness.check()})}syncHash(){if(!this.isConnected)return;let e=this.hashRuntime(),t=e?e.configure(this.ownerDocument.defaultView,this.hashOption,()=>this.applyHash()):void 0,i=t==="conflict"?"mapHashConflict":t==="invalid"?"mapHashInvalid":!e&&this.hashRuntimeFailed&&this.hashRequested()?"mapControlUnavailable":void 0;this.pendingHashIssue=i,this.scheduleAfterUpdate(()=>{let r=this.pendingHashIssue;r!==this.hashIssue&&(this.hashIssue=r,r&&this.announcements.announceAssertive(this.configurationMessage(r)))},"map-hash-feedback")}applyHash(){if(this.mapUpdateActive){this.scheduleAfterUpdate(()=>this.applyHash(),"map-apply-hash");return}let e=this._map,t=this._connectGeneration,i=this.hashOption,r=()=>this.isConnected&&this._map===e&&this._connectGeneration===t&&this.hashOption===i,n=this.hashOwner;if(!n)return;let o=n.read();if(!e||!r()||this.applyingHash)return;if(o.status==="none"){this.writeHash(e);return}if(o.status!=="camera")return;let s=o.camera;try{let c=Re(e);if(!r())return;let l=e.getBearing?.()??0;if(!r())return;let p=e.getPitch?.()??0;if(!r()||c&&c.zoom===s.zoom&&c.center[0]===s.center[0]&&c.center[1]===s.center[1]&&l===s.bearing&&p===s.pitch)return;this.applyingHash=!0;try{this.applyCameraCommand(e,"jumpTo",{...s,center:[...s.center]},!1)}finally{this.applyingHash=!1}}catch{}}writeHash(e){let t=this._connectGeneration,i=this.hashOption,r=()=>this.isConnected&&this._map===e&&this._connectGeneration===t&&this.hashOption===i;if(!(!r()||this.applyingHash))try{let n=Re(e);if(!n||!r())return;let o=e.getBearing?.()??0;if(!r())return;let s=e.getPitch?.()??0;if(!r())return;this.hashOwner?.write({...n,bearing:o,pitch:s})}catch{}}syncControlsAvoidance(){!this.controlsAvoid?.length&&!this.controlsAvoidance||(this.controlsAvoidance??=new wt({element:this,direction:()=>this.effectiveDirection,changed:()=>{this.applyControlsAvoid()}}),this.controlsAvoidance.observe(this.isConnected?this.controlsAvoid:void 0),this.applyControlsAvoid())}effectiveAnchorSafeArea(){let e=this.anchorSafeArea,t=this.anchorAvoidance?.area,i=this.mergedSafeArea;if(i&&i.authored===e&&i.avoid===t)return i.value;let r=oa(e,t);return this.mergedSafeArea={authored:e,avoid:t,value:r},r}syncAnchorAvoidance(){!this.anchorAvoid?.length&&!this.anchorAvoidSides?.length&&!this.anchorAvoidance||(this.anchorAvoidance??=new wt({element:this,direction:()=>this.effectiveDirection,changed:()=>{this.scheduleAnchorSync()},gap:()=>Math.max(0,bi(this.anchorAvoidGap,0))}),this.isConnected?this.anchorAvoidance.observe(this.anchorAvoid,this.anchorAvoidSides):this.anchorAvoidance.observe(void 0))}get safeInitializationDelay(){let e=this.initializationDelay;return typeof e=="number"&&Number.isFinite(e)&&e>=0?Sr(e,0):void 0}get initializationMode(){let e=this.initialization;return e==="idle"||e==="eager"||e==="interaction"?e:"visible"}get awaitingActivation(){return this.initializationMode==="interaction"&&!this._map&&!this.failure&&!this.loading&&this.constructionScheduler?.constructed!==!0}get mapStyle(){return this._mapStyle}set mapStyle(e){if(e===this._mapStyleSource)return;let t=++this._mapStyleRevision;if(this._mapStyleSource=e,e===this._mapStyle)return;let i=this._mapStyle,r=Oo(e,this.ownerDocument.defaultView);t===this._mapStyleRevision&&(this._mapStyle=r,this.requestUpdate("mapStyle",i))}get legend(){return this._legend}set legend(e){if(e===this._legendSource)return;let t=++this._legendRevision;if(this._legendSource=e,e===this._legend)return;let i=this._legend,r=wl(e);t===this._legendRevision&&(this._legend=r.entries,this._legendProjection=r.projection,this._legendGrouped=r.grouped,this.requestUpdate("legend",i))}probeLegendSlot(e){for(let t of Array.from(this.children))if(t.getAttribute("slot")===e)return!0;return!1}get legendGradient(){return this._legendGradient}set legendGradient(e){if(e===this._legendGradientSource)return;let t=++this._legendGradientRevision;if(this._legendGradientSource=e,e===this._legendGradient)return;let i=this._legendGradient,r=ko(e);t===this._legendGradientRevision&&(this._legendGradient=r,this.requestUpdate("legendGradient",i))}warnOnLegendChoroplethMismatch(){if(!!1||!void 0||this.legendIsLine)return;let e=this.canonicalChoropleth,t=this.legendGradient;!e||t.length===0||e.stops.length===0||t.length===e.stops.length&&t.every(([i,r],n)=>{let o=e.stops[n];return o!==void 0&&o[0]===i&&K(this,o[1],void 0)===K(this,r,void 0)})||!1}legendDescribesLine(){let e=this.legendGradient;return e.length<2?!1:this.canonicalDataLayers.some(t=>t.kind==="auto"&&!t.cluster&&t.line?.field&&t.line.stops.length===e.length&&t.line.stops.every(([i,r],n)=>i===e[n][0]&&K(this,r,t.tone)===K(this,e[n][1],t.tone)))}get legendGradientTicks(){return this._legendGradientTicks}set legendGradientTicks(e){if(e===this._legendGradientTicksSource)return;let t=++this._legendGradientTicksRevision;this._legendGradientTicksSource=e;let i=this._legendGradientTicks,r=Za(e);t===this._legendGradientTicksRevision&&(this._legendGradientTicks=r,this._legendGradientTicksAssigned=Lo(e),this.requestUpdate("legendGradientTicks",i))}get legendProjection(){return this._legendProjection}set legendProjection(e){}get legendControlRole(){return this._legendControlRole}set legendControlRole(e){let t=Va.normalizeReflected(this,"legend-control-role",e),i=this._legendControlRole;i!==t&&(this._legendControlRole=t,this.requestUpdate("legendControlRole",i))}get legendPlacement(){return this._legendPlacement}set legendPlacement(e){let t=Wa.normalizeReflected(this,"legend-placement",e),i=this._legendPlacement;i!==t&&(this._legendPlacement=t,this.requestUpdate("legendPlacement",i))}get legendClearance(){return this._legendClearance}set legendClearance(e){let t=qa.normalizeReflected(this,"legend-clearance",e),i=this._legendClearance;i!==t&&(this._legendClearance=t,this.requestUpdate("legendClearance",i))}get legendFlow(){return this._legendFlow}set legendFlow(e){let t=Ha.normalizeReflected(this,"legend-flow",e),i=this._legendFlow;i!==t&&(this._legendFlow=t,this.requestUpdate("legendFlow",i))}get legendOpen(){return this._legendOpen}set legendOpen(e){Je(this.legendOpenGuard);let t=this._legendOpen;this._legendOpen=e,this.requestUpdate("legendOpen",t)}get legendCollapsed(){return this.legendCollapsible&&!this.legendOpen}toggleLegendPanel(){if(!this.legendCollapsible||this.mapInteractionBlocked())return;let e=!this.legendOpen,t=this._connectGeneration;Ye({guard:this.legendOpenGuard,requestDetail:{open:e},emitRequest:(i,r)=>this.emit("lr-map-legend-panel-toggle-request",i,r),commit:()=>{this.isConnected&&this._connectGeneration===t&&this.legendCollapsible&&!this.mapInteractionBlocked()&&(this.legendOpen=e)}})}renderLegendDisclosure(){return this.legendCollapsible?P`<button part="legend-disclosure" type="button" aria-expanded=${this.legendOpen?"true":"false"} aria-controls="map-legend-list" ?disabled=${this.interactionBlocked} @click=${()=>this.toggleLegendPanel()} ><span part="legend-disclosure-icon" class="legend-disclosure-icon" aria-hidden="true" >${Nr()}</span
|
|
15
|
+
><span>${this.localize("mapLegend")}</span></button>`:H}get hiddenCategories(){return this._hiddenCategories}set hiddenCategories(e){if(Je(this.categoriesGuard),e===this._hiddenCategoriesSource)return;let t=++this._hiddenCategoriesRevision;if(this._hiddenCategoriesSource=e,e===this._hiddenCategories)return;let i=this._hiddenCategories,r=Sl(e);t===this._hiddenCategoriesRevision&&(this._hiddenCategories=r,this.requestUpdate("hiddenCategories",i))}get markersTruncated(){let e=q(this.markers,"length");return typeof e!="symbol"&&typeof e.value=="number"&&e.value>es}set markersTruncated(e){}setOverlayGroup(e,t,i={}){if(typeof e!="string"||!e||t===null||typeof t!="object")return!1;let r=Number.isFinite(i.order)?i.order:0,n=this.overlayGroups.get(e);return n?.group===t&&n.order===r||(this.overlayGroups.set(e,{order:r,sequence:n?.sequence??this.overlayGroupSequence++,group:t}),this.overlayGroupsChanged()),!0}removeOverlayGroup(e){return this.overlayGroups.delete(e)?(this.overlayGroupsChanged(),!0):!1}sameOwnedOverlayInput(e,t,i){let r=this.ownedOverlayInput();return r.overlays===e&&r.images===t&&r.styleOverrides===i}ownedFeatureInputRequested(){let{overlays:e,images:t,styleOverrides:i}=this.ownedOverlayInput();return Sa(e,t,i)}overlayGroupsChanged(){this.overlayGroupRevision+=1,this.requestUpdate("overlays",ml)}ownedOverlayInput(){let{overlays:e,images:t,styleOverrides:i}=this;if(!this.overlayGroups.size)return{overlays:e,images:t,styleOverrides:i};let r=[e,t,i,this.overlayGroupRevision],n=this.ownedInputCache;if(n&&n.key.every((l,p)=>l===r[p]))return n.value;let o=[...this.overlayGroups.values()].sort((l,p)=>l.order-p.order||l.sequence-p.sequence).map(l=>l.group),s=(l,p)=>Object.freeze([...Array.isArray(l)?l:[],...o.flatMap(d=>{let h=p(d);return Array.isArray(h)?h:[]})]),c=Object.freeze({overlays:Object.freeze({sources:s(e.sources,l=>l.sources),layers:s(e.layers,l=>l.layers)}),images:s(t,l=>l.images),styleOverrides:s(i,l=>l.styleOverrides)});return this.ownedInputCache={key:r,value:c},c}setDataLayerIssue(e){this.pendingDataLayerIssue=e,this.scheduleAfterUpdate(()=>{let t=this.pendingDataLayerIssue;t!==this.dataLayerIssue&&(this.dataLayerIssue=t,t&&this.isConnected&&this.announcements.announceAssertive(this.localize("mapInitializationFailed")))},"map-data-layer-feedback")}requestDataLayerRuntime(){if(this.dataLayerRuntimeLoad||this.dataLayerRuntimeFailed)return;let e=this.dataLayerRuntimeLoad=ot().then(()=>{},()=>{this.dataLayerRuntimeFailed=!0,this.setDataLayerIssue(!0)}).then(()=>{this.dataLayerRuntimeLoad===e&&(this.dataLayerRuntimeLoad=void 0),or(this.dataLayers)&&this.requestUpdate("dataLayers",Lt),Ee(this.choropleth)&&this.requestUpdate("choropleth",null),this.isConnected&&this.tryConstructMap()});this.trackFeatureLoad(e)}dataLayerRuntimeUnavailable(){return this.dataLayerRuntimeFailed&&!ot.loaded&&(or(this.dataLayers)||Ee(this.choropleth))}dataLayerRuntimePending(){return this.canonicalDataLayers,this.canonicalChoropleth,this.dataLayerRuntimeLoad!==void 0}async getUpdateComplete(){let e=await super.getUpdateComplete();for(;this.dataLayerRuntimeLoad;)await this.dataLayerRuntimeLoad,e=await super.getUpdateComplete();return e}get canonicalChoropleth(){let e=this.choropleth;if(Object.is(e,this._canonicalChoroplethSource))return this._canonicalChoropleth;let t=ot.loaded;if(!t&&Ee(e)){this.requestDataLayerRuntime();return}return this._canonicalChoroplethSource=e,this._canonicalChoropleth=t?.projectMapChoropleth(e),this._canonicalChoropleth}get canonicalDataLayers(){let e=this.dataLayers,t=this.ownerDocument.baseURI,i=this.ownerDocument.defaultView?.origin??"null";if(Object.is(e,this._canonicalDataLayersSource)&&t===this._canonicalDataLayersBase&&i===this._canonicalDataLayersOrigin)return this._canonicalDataLayers;let r=ot.loaded;if(!r&&or(e))return this.requestDataLayerRuntime(),Lt;this._canonicalDataLayersSource=e,this._canonicalDataLayersBase=t,this._canonicalDataLayersOrigin=i;let n=r?.projectMapDataLayers(e,t,i)??{ok:!0,geojson:Lt,external:[]};return this.invalidDataLayerModel=!n.ok,n.ok&&(this._canonicalDataLayers=n.geojson,this._canonicalExternalLayers=n.external),this._canonicalDataLayers}get canonicalMarkers(){let e=this.markers;return Object.is(e,this._canonicalMarkersSource)?this._canonicalMarkers:(this._canonicalMarkersSource=e,this._canonicalMarkers=Ol(e),this._canonicalMarkers)}get pickMode(){return this._pickMode}set pickMode(e){Je(this.pickGuard);let t=this._pickMode;this._pickMode=e,this.requestUpdate("pickMode",t)}get drawingCompleteBehavior(){return this._drawingCompleteBehavior}set drawingCompleteBehavior(e){let t=Ua.normalizeReflected(this,"drawing-complete-behavior",e),i=this._drawingCompleteBehavior;i!==t&&(this._drawingCompleteBehavior=t,this.requestUpdate("drawingCompleteBehavior",i))}get drawingFinishBehavior(){return this._drawingFinishBehavior}set drawingFinishBehavior(e){let t=Ba.normalizeReflected(this,"drawing-finish-behavior",e),i=this._drawingFinishBehavior;i!==t&&(this._drawingFinishBehavior=t,this.requestUpdate("drawingFinishBehavior",i))}get drawingPending(){return this.drawingController?.pending===!0}get drawingWork(){return this.drawingController?.work??hl}get map(){return this._map}set map(e){}whenStyleReady(){return this.readiness.whenStyleReady()}whenControlsReady(){return this.controlsReadiness.whenReady()}whenIdle(){return this.readiness.whenIdle()}pushGeoJson(e,t,i,r){let n=this._appliedGeoJson.get(t);if(n===r)return;let o=typeof e.updateData=="function"&&n!==void 0?_t().buildProjectedGeoJsonPropertyDiff(n,r):null;o===null||typeof e.updateData!="function"?e.setData(i):(o.update.length>0||o.add?.length||o.remove?.length)&&e.updateData(o),this._appliedGeoJson.set(t,r)}updateSourceData(e,t){if(!this._map||!this._styleLoaded||!this.isConnected||typeof e!="string")return!1;let i=e.trim(),r=this._appliedDataLayerIds.get(i)??(this.canonicalChoropleth?.sourceId===i?this._appliedChoroplethSourceId:void 0)??(this.ownedFeatures?.ownsGeoJsonSource(i)?i:void 0);if(!r)return!1;let n=this._map.getSource(r);return typeof n?.updateData!="function"?!1:(this._appliedGeoJson.delete(r),this.readiness.invalidate(),n.updateData(t),this.readiness.check(),!0)}get safeMaxBounds(){let e=this.maxBounds;if(!Array.isArray(e)||e.length!==2)return null;let[t,i]=e;if(!Array.isArray(t)||!Array.isArray(i))return null;let[r,n]=t,[o,s]=i,c=[r,n,o,s].map(Number);if(!c.every(u=>Number.isFinite(u)))return null;let[l,p,d,h]=c;return l>=d||p>=h||l<-180||d>180||p<-90||h>90?null:[[l,p],[d,h]]}applyMaxBounds(){let e=this._map;if(!e||typeof e.setMaxBounds!="function")return;let t=this.safeMaxBounds,i,r;try{if(i=e.getZoom(),r=e.getCenter(),this.constrainTo(e,t)||t!==null&&typeof i=="number"&&Number.isFinite(i)&&i<1&&this.constrainFromWholeZoom(e,t,i,r))return}catch{}try{e.setMaxBounds(null)}catch{}typeof i=="number"&&Number.isFinite(i)&&e.setZoom(i),r&&e.setCenter([r.lng,r.lat]),!1}constrainTo(e,t){try{return e.setMaxBounds?.(t),t===null||Number.isFinite(e.getZoom())}catch{return!1}}applyZoomLimits(){let e=this._map;if(!e||typeof e.setMinZoom!="function"||typeof e.setMaxZoom!="function")return;let t=++this.zoomLimitRevision,i=this.zoom,r=this.minZoom,n=this.maxZoom,o=this._connectGeneration,s=this._styleGeneration,c=this.mapStyle,[l,p]=this.zoomLimits,d=()=>this.isConnected&&this._map===e&&this.zoomLimitRevision===t&&this._connectGeneration===o&&this._styleGeneration===s&&this.mapStyle===c&&Object.is(this.zoom,i)&&Object.is(this.minZoom,r)&&Object.is(this.maxZoom,n);this.writeCamera(()=>{try{let h=e.getMaxZoom?.();typeof h=="number"&&l>h?(e.setMaxZoom(p),e.setMinZoom(l)):(e.setMinZoom(l),e.setMaxZoom(p))}catch{}}),!(!d()||this.zoom>=l&&this.zoom<=p)&&this.scheduleAfterUpdate(()=>{if(!d())return;let h=Re(e);if(!(!d()||!h||this.zoom===h.zoom)){this.reflectedCamera={center:h.center,zoom:h.zoom},this.reflectingCamera=!0;try{this.zoom=h.zoom}finally{this.reflectingCamera=!1}}},`map-zoom-limits-${t}`)}syncImageProvider(){let e=this._map,t=this.imageProvider;if(!e)return;let i=n=>{this._map!==e||!this.isConnected||this.imageProvider!==t||typeof t!="function"&&!this.ownedFeatures||(this.ownedFeatures??=new n.MapOwnedFeatures).configureImageProvider(e,t,this)},r=ve.loaded;if(r){i(r);return}if(typeof t!="function"){this.ownedFeatures?.configureImageProvider(e,void 0,this);return}this.trackFeatureLoad(ve().then(i,()=>{!1}))}constrainFromWholeZoom(e,t,i,r){try{return e.setMaxBounds?.(null),e.setZoom(1),this.constrainTo(e,t)?(e.setZoom(i),e.setCenter([r.lng,r.lat]),Number.isFinite(e.getZoom())):!1}catch{return!1}}get safeZoom(){let[e,t]=this.zoomLimits;return Z(this.zoom,2,e,t)}get safeCenter(){let e=Array.isArray(this.center)?this.center:[];return[Z(Number(e[0]),0,-180,180),Z(Number(e[1]),0,-90,90)]}fitBounds(e,t={}){let i=Pl(e);if(!i)return!1,!1;let r=typeof t=="object"&&t!==null?t:{},n=r.maxZoom,o=Object.freeze({bounds:i,padding:Ea(r.padding),maxZoom:J(n)?Z(n,24,0,24):void 0,animate:r.animate!==!1});return this.interruptCameraSession("external",!0)?(this.clusterZoomToken+=1,this.deferUntilCameraSettled(()=>this.executeFit(o))?!0:this.executeFit(o)):!1}executeFit(e){let t=this._map;return t?(this.pendingFit=void 0,this.pendingCommand=void 0,this.applyFit(t,e,e.animate&&!$e(this))):(this.pendingCommand=void 0,this.pendingFit=Object.freeze({fit:e,center:hr(this.center),zoom:this.zoom}),!0)}deferUntilCameraSettled(e){return this.cameraUpdatePending?(this.deferredCameraWork.push(e),this.deferredCameraWork.length===1&&this.updateComplete.then(()=>{let t=this.deferredCameraWork;this.deferredCameraWork=[];for(let i of t)i()}),!0):!1}flyTo(e){return this.runCameraCommand("flyTo",e)}easeTo(e){return this.runCameraCommand("easeTo",e)}jumpTo(e){return this.runCameraCommand("jumpTo",e)}acquireCameraSession(e){if(this.cameraSession)throw Se("already-bound");let t=this._map;if(!t||!this.cameraSessionReady()||typeof t.getBearing!="function"||typeof t.getPitch!="function")throw Se("unavailable");let i={map:t,callbacks:e,connection:this._connectGeneration,revision:0,released:!1,interrupted:!1,markers:new WeakSet,stopMotion:()=>{},stopContext:()=>{}},r=()=>this.cameraSession===i&&!i.released&&this.isConnected&&this._map===t&&this._connectGeneration===i.connection,n=new WeakMap,o=()=>{if(!r()||typeof t.getBearing!="function"||typeof t.getPitch!="function")throw Se("unavailable");try{let l=Re(t);if(!l)throw Se("unavailable");let p=ji({...l,bearing:t.getBearing(),pitch:t.getPitch()});if(!r())throw Se("unavailable");return p}catch{throw Se("unavailable")}},s=(l,p)=>{if(!r())return;i.pendingAction===l&&(i.pendingAction=void 0,i.interrupted=!0);let d=i.active;if(d?.action===l&&(i.active=void 0,p&&d.animated&&typeof t.stop=="function")){i.stopping=d.marker;try{t.stop()}finally{i.stopping===d.marker&&(i.stopping=void 0)}}},c={current:r,capture:o,reducedMotion:()=>$e(this),start:l=>!r()||!this.cameraSessionReady()||i.contextLost||i.active||i.pendingAction!==void 0&&i.pendingAction!==l?!1:(i.pendingAction=l,i.interrupted=!1,!0),prepare:(l,p,d)=>{if(!r()||!this.cameraSessionReady()||i.contextLost)throw Se("unavailable");let h=i.revision,u=this._styleGeneration,m=i.pendingAction,f=()=>r()&&this.cameraSessionReady()&&!i.contextLost&&i.revision===h&&this._styleGeneration===u&&i.pendingAction===m,b=ji(p),v=$e(this),g=v?"jump":d.kind,w=g==="jump"?"jumpTo":g==="ease"?"easeTo":"flyTo",O=t.isMoving;if(typeof O!="function"||!f())throw Se("unavailable");let z=O.call(t);if(typeof z!="boolean"||!f()||typeof t[w]!="function"||!f()||(z||g!=="jump")&&(typeof t.stop!="function"||!f()))throw Se("unavailable");let I=Object.freeze({action:l,view:Object.freeze({...b,zoom:Z(b.zoom,2,...this.zoomLimits)}),kind:g,...d.duration===void 0?{}:{duration:d.duration}});return n.set(I,{revision:i.revision,style:this._styleGeneration,reduced:v}),I},commit:l=>{let p=n.get(l);if(!p)return!1;let d=i.pendingAction;if(d!==void 0&&d!==l.action)return!1;let h=()=>r()&&this.cameraSessionReady()&&!i.contextLost&&p.revision===i.revision&&p.style===this._styleGeneration&&p.reduced===$e(this)&&i.pendingAction===d;if(!h())return!1;n.delete(l);let u=l.kind==="jump"?"jumpTo":l.kind==="ease"?"easeTo":"flyTo",m;try{let v=t.isMoving;if(typeof v!="function"||!h())return!1;let g=v.call(t);if(typeof g!="boolean"||!h())return!1;if(g||l.kind!=="jump"){let w=t.stop;if(typeof w!="function"||!h()||g&&(w.call(t),!h()||(v=t.isMoving,typeof v!="function"||!h())||v.call(t)!==!1||!h()))return!1}if(m=t[u],typeof m!="function"||!h())return!1}catch{return!1}i.pendingAction=void 0,i.revision+=1,i.interrupted=!1;let f={};i.markers.add(f);let b={action:l.action,marker:f,animated:l.kind!=="jump",invoking:!0,completionPending:!1};i.active=b,this.pendingCommand=void 0,this.pendingFit=void 0,this.clusterZoomToken+=1,this.readiness.invalidate();try{m.call(t,{...l.view,center:[...l.view.center],...l.kind!=="jump"&&l.duration!==void 0?{duration:l.duration}:{}},{[pr]:f})}catch{return i.active===b&&(i.active=void 0),!1}finally{b.invoking=!1}return r()&&i.active===b&&b.completionPending&&(i.active=void 0,e.complete(b.action)),!0},retire:s,release:()=>{if(!r())return;i.pendingAction=void 0;let l=i.active;l&&s(l.action,!0),r()&&(i.released=!0,i.stopMotion(),i.stopContext(),this.cameraSession=void 0)}};i.lease=c,this.cameraSession=i;try{o()}catch(l){throw c.release(),l}try{i.stopMotion=Kr(this,h=>{r()&&e.motion(h)});let l=t.getCanvas();if(!r()||!l||typeof l.addEventListener!="function"||typeof l.removeEventListener!="function")throw Se("unavailable");let p=()=>{i.contextLost=!0,r()&&this.interruptCameraSession("engine",!1)},d=()=>{i.contextLost=!1};if(i.stopContext=()=>{l.removeEventListener("webglcontextlost",p),l.removeEventListener("webglcontextrestored",d)},l.addEventListener("webglcontextlost",p),!r()||(l.addEventListener("webglcontextrestored",d),!r()))throw Se("unavailable");return c}catch{throw i.stopMotion(),i.stopContext(),i.released=!0,this.cameraSession===i&&(this.cameraSession=void 0),Se("unavailable")}}cameraSessionReady(){return this.isConnected&&!!this._map&&this._styleLoaded&&!this.failure&&!this.preparingFeatures&&!this.mapUpdateActive&&!this.cameraUpdatePending&&this.deferredCameraWork.length===0&&this.cameraSessionConfigurationRevision===this.cameraSessionConfigurationApplied&&!this.sceneControlsRequestPending&&this.sceneConfiguration?.pending!==!0}interruptCameraSession(e,t){let i=this.cameraSession;if(!i||i.released)return!0;let r=++i.revision;if(i.pendingAction=void 0,i.interrupted&&e!=="disconnect"&&e!=="engine")return!0;i.interrupted=!0;let n=i.active;i.active=void 0;let o=i.callbacks.interrupt(e)===!0;if(this.cameraSession===i&&!i.released&&i.revision===r&&!i.active&&i.pendingAction===void 0&&t&&n?.animated&&typeof i.map.stop=="function"){i.stopping=n.marker;try{i.map.stop()}finally{i.stopping===n.marker&&(i.stopping=void 0)}}return o&&e!=="disconnect"&&this.isConnected&&this.emit("lr-map-camera-interrupt",Object.freeze({reason:e})),this.isConnected&&(!this.cameraSession||this.cameraSession===i&&i.revision===r&&i.pendingAction===void 0)}cameraSessionMovement(e){let t=this.cameraSession;if(!t||this.writingCamera)return;let i=e?.[pr];typeof i=="object"&&i!==null&&t.markers.has(i)||this.interruptCameraSession(e?.originalEvent?"user":"external",!1)}runCameraCommand(e,t){let i=ha(t,this.zoomLimits);return i?this.interruptCameraSession("external",!0)?(this.clusterZoomToken+=1,this.deferUntilCameraSettled(()=>this.executeCameraCommand(e,i))?!0:this.executeCameraCommand(e,i)):!1:(!1,!1)}executeCameraCommand(e,t){let i=this._map;return this.pendingFit=void 0,this.pendingCommand=void 0,i?this.applyCameraCommand(i,e,t,e!=="jumpTo"&&!$e(this)):(this.pendingCommand=Object.freeze({kind:e,target:t,center:hr(this.center),zoom:this.zoom}),!0)}applyCameraCommand(e,t,i,r){let n=e[r?t:"jumpTo"];if(typeof n!="function")return!1;let{duration:o,...s}=i;this.readiness.invalidate();try{n.call(e,{...s,...r&&o!==void 0?{duration:o}:{}},{[Ra]:this.commandToken})}catch{return!1}return!0}applyPendingCommand(){let e=this._map,t=this.pendingCommand;!e||!t||(this.pendingCommand=void 0,!(!ci(this.center,t.center)||!Object.is(this.zoom,t.zoom))&&this.applyCameraCommand(e,t.kind,t.target,!1))}fitToData(e={}){let t=ua();for(let o of this.canonicalMarkers)ir(t,o.lngLat[0],o.lngLat[1]);for(let o of this.canonicalDataLayers)rr(t,o.geojson);let i=this.canonicalChoropleth;i&&rr(t,i.geojson);let r=ma(t);if(!r)return!1;let n=typeof e=="object"&&e!==null?e:{};return this.fitBounds(r,{maxZoom:Rl,...n})}project(e){let t=this.isConnected?this._map:void 0;if(!(!t||typeof t.project!="function")&&!(!Array.isArray(e)||!J(e[0])||!J(e[1])))try{let{x:i,y:r}=t.project([e[0],e[1]]);return J(i)&&J(r)?Object.freeze([i,r]):void 0}catch{return}}unproject(e){let t=this.isConnected?this._map:void 0;if(!(!t||typeof t.unproject!="function")&&!(!Array.isArray(e)||!J(e[0])||!J(e[1])))try{let{lng:i,lat:r}=t.unproject([e[0],e[1]]);return J(i)&&J(r)?Object.freeze([mi(i),Z(r,0,-90,90)]):void 0}catch{return}}scaleUnits(){return{ft:this.localize("mapScaleFeet"),m:this.localize("mapScaleMeters"),km:this.localize("mapScaleKilometers"),mi:this.localize("mapScaleMiles"),nm:this.localize("mapScaleNauticalMiles")}}controlLocale(){let e=this.scaleUnits();for(let t of["ft","m","km","mi","nm"])this.scaleLabels.set(t,t),this.scaleLabels.set(e[t],t);return{"GeolocateControl.FindMyLocation":this.localize("mapGeolocateFindLocation"),"GeolocateControl.LocationNotAvailable":this.localize("mapGeolocateUnavailable"),"ScaleControl.Feet":Xe(e.ft),"ScaleControl.Meters":Xe(e.m),"ScaleControl.Kilometers":Xe(e.km),"ScaleControl.Miles":Xe(e.mi),"ScaleControl.NauticalMiles":Xe(e.nm)}}syncControls(){let e=this._map;if(!e)return;let t=this.controlsReadiness.begin(),i=this.controls,r=this._connectGeneration,n=Gt(i);this.setSceneControlIssue(!1);let o=new Map(n.controls),s=Ee(i)?q(i,"attribution"):ne,c=s===ne||s!==ye&&s.value===void 0;(c||n.diagnostics.some(f=>f.kind==="attribution"))&&o.set("attribution",Gt({attribution:!0}).controls.get("attribution")),this.setControlIssue(n.diagnostics.length?"mapControlUnavailable":void 0);let l=()=>t.isCurrent()&&this.isConnected&&this._map===e&&this.controls===i&&this._connectGeneration===r,p=[...n.controls.values()].sort((f,b)=>f.order-b.order);if(this.setControlOutlines(this.controlLifecycle?[]:p),n.diagnostics.length&&t.fail(),typeof e.addControl!="function"||typeof e.removeControl!="function"){this.setControlOutlines([]),o.size===0?t.resolve():t.fail();return}this.controlPeer?.map!==e&&(this.controlPeer={map:e,adapter:{addControl:(f,b)=>e.addControl(f,b),removeControl:f=>e.removeControl(f),controlContainer:f=>this.containerEl?.querySelector(`.maplibregl-ctrl-${f}`)??void 0}});let d=this.controlPeer.adapter,h=({MapControlsLifecycle:f})=>{if(!l())return Promise.resolve();let b=this.controlLifecycle??=new f(g=>fo(g,this.engine,this._maplibreModule)),v=b.sync(d,o,{isCurrent:l,scene:{isCurrent:l,state:g=>({ready:this._styleLoaded&&!this.failure,busy:!this._styleLoaded||this.sceneControlsRequestPending||this.sceneConfiguration?.pending===!0,label:this.localize(g==="globe"?"mapGlobe":"mapTerrain")}),unavailable:(g,w)=>{l()&&g==="terrain"&&this.setSceneControlIssue(w)}},onEvent:g=>{if(!l())return;if(g.kind==="scene-action"){if(g.action.kind==="globe"){let O=g.action.pressed===!0?"mercator":"globe",z=Object.freeze({projection:O,source:"control"});Ye({guard:this.projectionGuard,requestDetail:z,emitRequest:(I,D)=>this.emit("lr-map-projection-change-request",I,D),commit:()=>{!l()||this.mapInteractionBlocked()||(this.projection=O,this.emit("lr-map-projection-change",z))}})}else{let O=g.action.pressed===!0?null:g.action.terrain;if(O===void 0)return;let z=Object.freeze({terrain:O,source:"control"});Ye({guard:this.terrainGuard,requestDetail:z,emitRequest:(I,D)=>this.emit("lr-map-terrain-change-request",I,D),commit:()=>{!l()||this.mapInteractionBlocked()||(this.terrain=O,this.emit("lr-map-terrain-change",z))}})}return}if(g.kind==="geolocate-success"){this.pendingControlIssue!=="mapControlUnavailable"&&this.setControlIssue(void 0),g.lngLat&&g.accuracy!==void 0&&this.emit("lr-map-geolocate",{lngLat:g.lngLat,accuracy:g.accuracy});return}let w=g.kind==="geolocate-out-of-bounds"?"mapGeolocateOutOfBounds":g.code==="permission-denied"?"mapGeolocatePermissionDenied":g.code==="position-unavailable"?"mapGeolocatePositionUnavailable":g.code==="timeout"?"mapGeolocateTimeout":"mapGeolocateError";this.setControlIssue(w),this.announcements.announceAssertive(this.configurationMessage(w)),g.kind==="geolocate-out-of-bounds"?this.emit("lr-map-geolocate-out-of-bounds",{code:g.code}):this.emit("lr-map-geolocate-error",{code:g.code})},onFailure:g=>{l()&&(t.fail(),this.setControlOutlines(this.pendingControlOutlines.filter(w=>w.kind!==g.kind)),!(c&&g.kind==="attribution")&&(this.setControlIssue("mapControlUnavailable"),this.announcements.announceAssertive(this.localize("mapControlUnavailable"))))}});if(l()){let g=b.pendingKinds();this.setControlOutlines(p.filter(w=>g.has(w.kind)))}return v},u=Ki.loaded,m=!this.controlLifecycle&&o.size===0?Promise.resolve():u?h(u):Ki().then(h,()=>{l()&&(t.fail(),[...o.keys()].some(f=>!c||f!=="attribution")&&(this.setControlIssue("mapControlUnavailable"),this.announcements.announceAssertive(this.localize("mapControlUnavailable"))))});this.trackFeatureLoad(Promise.race([t.cancelled,m.then(()=>{l()&&(this.syncPeerChromeParts(),l()&&(this.setControlOutlines([]),this.syncAttributionState(),this.controlLifecycle?.refreshSceneControls(),l()&&t.resolve()))}).catch(()=>{l()&&(this.setControlOutlines([]),t.fail())})]))}publishExportIssue(e){this.pendingExportIssue=e,this.scheduleAfterUpdate(()=>{this.exportIssue=this.pendingExportIssue},"map-export-feedback")}reportExportFailure(e){e!=="cancelled"&&e!=="busy"&&(this.publishExportIssue(!0),this.announcements.announceAssertive(this.localize("mapExportUnavailable"))),this.emit("lr-map-export-error",Object.freeze({code:e}))}cancelImageExport(){this.exportController?.cancel()}exportImage(e){let t=this._map,i=this._styleGeneration,r=this._connectGeneration;if(!t||!this.isConnected)return this.isConnected&&this.reportExportFailure("not-ready"),Promise.reject(new $t("not-ready"));let n,o=!1;if(e!==void 0)try{if(!V(e))throw new TypeError("Invalid export options.");let p=Reflect.ownKeys(e);if(p.length>2||p.some(h=>h!=="type"&&h!=="attribution"))throw new TypeError("Invalid export options.");let d={};for(let h of p){let u=q(e,h);if(u===ne||u===ye)throw new TypeError("Invalid export options.");d[String(h)]=u.value}n=Object.freeze(d)}catch{o=!0}let s={map:t,style:i,connection:r,options:n,invalid:o},c=p=>(this.exportController??=new p.MapImageExportController(this.imageExportHost())).export(s),l=Ji.loaded;return l?c(l):Ji().then(c,()=>{let p=this.isConnected&&this._map===t&&this._styleGeneration===i&&this._connectGeneration===r;throw p&&this.reportExportFailure("capture-failed"),new $t(p?"capture-failed":"cancelled")})}imageExportHost(){return{element:this,current:(e,t,i)=>this.isConnected&&this._map===e&&this._styleGeneration===t&&this._connectGeneration===i,generations:()=>[this.featureGeneration,this.drawingEpoch],pending:()=>this.isUpdatePending||this.preparingFeatures||this.drawingPending,onRender:(e,t)=>this.peerEvents.subscribe(e,"render",t),clearFeedback:()=>{this.publishExportIssue(!1)},fail:e=>{this.reportExportFailure(e)}}}closeAnchor(){return this.anchorController?.close("api")??!1}focusAnchor(){return this.anchorController?.focus()??!1}anchorRuntime(){if(this.anchorController)return this.anchorController;if(this.anchorLngLat===null||this.anchorLngLat===void 0)return;let e=this.anchorPlacementRuntime();return e&&(this.anchorController=new e.MapAnchorController(this.anchorHost()))}anchorPlacementRuntime(){let e=Yi.loaded;if(e||this.anchorLoad)return e;this.anchorLoad="loading",Yi().then(()=>{this.anchorLoad=void 0,this.isConnected&&this.scheduleAnchorSync()},()=>{this.anchorLoad="failed"})}anchorChildren(){if(this.childAnchors||this.openChildAnchors.size===0)return this.childAnchors;let e=this.anchorPlacementRuntime();return this.childAnchors=e&&new e.MapAnchorChildren({...this.anchorMapHost(),engineReady:()=>this._styleLoaded||this.mapLoadEmitted,canvas:()=>{try{return this._map?.getCanvas?.()??null}catch{return null}}},this.childAnchorSet)}[Oi](e,t,i){return t==="attach"&&this.childAnchorSet.add(e),t==="detach"&&this.childAnchorSet.delete(e),e.open&&this.childAnchorSet.has(e)?this.openChildAnchors.add(e):this.openChildAnchors.delete(e),t==="request"&&this.anchorLoad==="failed"&&(this.anchorLoad=void 0),this.anchorChildren()?.run(e,t,i)}syncAnchor(){this.anchorRuntime()?.sync(),this.anchorChildren()?.sync()}scheduleAnchorSync(){this.anchorRuntime()?.schedule(),this.anchorChildren()?.schedule()}anchorMapHost(){return{element:this,container:()=>this.containerEl,map:()=>this._map,generations:()=>[this._styleGeneration,this._connectGeneration],updateActive:()=>this.mapUpdateActive,afterUpdate:(e,t)=>{this.scheduleAfterUpdate(e,t)},interactionBlocked:()=>this.mapInteractionBlocked(),direction:()=>this.effectiveDirection,mapSafeArea:()=>this.effectiveAnchorSafeArea()}}anchorHost(){return{...this.anchorMapHost(),key:"map-anchor",overlayHost:this,wrapper:()=>this.anchorEl,fence:()=>this.anchorBoundaryEl,content:()=>this.shadowRoot?.querySelector('slot[name="anchor"]'),styleLoaded:()=>this._styleLoaded,request:()=>this.anchorLngLat,boundary:()=>this.anchorBoundary,safeArea:()=>this.effectiveAnchorSafeArea(),closable:()=>this.anchorClosable,pending:()=>this.isUpdatePending,requestClose:e=>!this.emit("lr-map-anchor-close-request",e,{cancelable:!0}).defaultPrevented,retire:()=>{this.anchorLngLat=null},emitClose:e=>{this.emit("lr-map-anchor-close",e)}}}zoomIntoCluster(e,t){let i=this._map,r=this.canonicalDataLayers.find(m=>m.sourceId===e);if(!i||!r?.cluster?.zoomOnClick)return;let n=t?.properties?.cluster_id,o=t?.geometry;if(typeof n!="number"||o?.type!=="Point")return;let[s,c]=o.coordinates,l=this._appliedDataLayerIds.get(e),p=l===void 0?void 0:i.getSource(l);if(!p||typeof p.getClusterExpansionZoom!="function")return;let d=++this.clusterZoomToken,h=!1,u=m=>{h||d!==this.clusterZoomToken||this._map!==i||!J(m)||this.canonicalDataLayers.find(f=>f.sourceId===e)!==r||this._appliedDataLayerIds.get(e)!==l||i.getSource(l)!==p||(h=!0,this.easeTo({center:[s,c],zoom:m}))};try{let m=p.getClusterExpansionZoom(n,(f,b)=>{f||u(b)});m&&typeof m.then=="function"&&m.then(u,()=>{})}catch{}}applyCameraPadding(){let e=this._map;if(!e||typeof e.setPadding!="function")return;let t=Ea(this.cameraPadding),i=this.canvasAllocation;this.canvasPaddingUsable=!i||t.left+t.right<i.width-i.padding.left-i.padding.right&&t.top+t.bottom<i.height-i.padding.top-i.padding.bottom;let r=this.canvasPaddingUsable?t:dr,n=i?{top:i.padding.top+r.top,right:i.padding.right+r.right,bottom:i.padding.bottom+r.bottom,left:i.padding.left+r.left}:t,o=this.appliedPadding;n.top===o.top&&n.right===o.right&&n.bottom===o.bottom&&n.left===o.left||(this.appliedPadding=n,this.writeCamera(()=>{try{e.setPadding?.({...n})}catch{}}))}getVisibleBounds(e){let t=this._map,i=!0;try{i=e?.padded!==!1}catch{}return t?this.readVisibleBounds(t,i)??null:null}readVisibleBounds(e,t=!0){let i=this._connectGeneration,r=this.ownerDocument,n=()=>this.isConnected&&this._map===e&&this._connectGeneration===i&&this.ownerDocument===r;if(this.syncCanvasAllocation(),!(!n()||t&&this.canvasAllocation&&!this.canvasPaddingUsable))try{let{top:o,right:s,bottom:c,left:l}=t?this.appliedPadding:{top:0,right:0,bottom:0,left:0},p=this.containerEl,d,h,u,m,f=p?.clientWidth??0,b=p?.clientHeight??0;if((o||s||c||l)&&typeof e.unproject=="function"&&f-s>l&&b-c>o){let g=[[l,o],[f-s,o],[f-s,b-c],[l,b-c]];d=h=1/0,u=m=-1/0;for(let[w,O]of g){let{lng:z,lat:I}=e.unproject([w,O]);if(!n())return;d=Math.min(d,z),u=Math.max(u,z),h=Math.min(h,I),m=Math.max(m,I)}}else{let g=e.getBounds?.();if(!g||!n()||(d=g.getWest(),!n())||(h=g.getSouth(),!n())||(u=g.getEast(),!n())||(m=g.getNorth(),!n()))return}if(![d,h,u,m].every(J))return;let v=u-d;return v>=360?(d=-180,u=180):(d=mi(d),u=d+v),Object.freeze([Object.freeze([d,Z(h,0,-90,90)]),Object.freeze([u,Z(m,0,-90,90)])])}catch{return}}scheduleMoveReport(e){if(this.moveFrame.pending)return;let t=At(this);if(!t||typeof t.requestAnimationFrame!="function"){this.reportMove(e);return}this.moveFrame.schedule(()=>{this.reportMove(e)})}flushMoveReport(e){this.moveFrame.pending&&(this.cancelMoveReport(),this.reportMove(e))}cancelMoveReport(){this.moveFrame.pending&&this.moveFrame.cancel()}reportMove(e){let t=this._connectGeneration,i=this.ownerDocument,r=()=>this.isConnected&&this._map===e&&this._connectGeneration===t&&this.ownerDocument===i;if(!r()||(this.syncAnchor(),!r()))return;let n=Re(e);if(!r()||!n)return;let o=this.readVisibleBounds(e);r()&&this.emit("lr-map-move",o?{...n,bounds:o}:{...n})}applyFit(e,t,i){let r=this._connectGeneration,n=this.ownerDocument;if(this.syncCanvasAllocation(),!this.isConnected||this._map!==e||this._connectGeneration!==r||this.ownerDocument!==n)return!1;let o=this.canvasAllocation,s=this.appliedPadding;if(o&&(!this.canvasPaddingUsable||s.left+s.right+t.padding.left+t.padding.right>=o.width||s.top+s.bottom+t.padding.top+t.padding.bottom>=o.height)||typeof e.fitBounds!="function")return!1;let[[c,l],[p,d]]=t.bounds,[h,u]=this.zoomLimits,m=t.maxZoom!==void 0?Z(t.maxZoom,u,h,u):this.zoomLimitsRequested?u:void 0;this.readiness.invalidate();try{e.fitBounds([[c,l],[p,d]],{padding:{...t.padding},...m===void 0?{}:{maxZoom:m},animate:i},{[Oa]:this.fitToken})}catch{return!1}return!0}applyPendingFit(){let e=this._map,t=this.pendingFit;!e||!t||(this.pendingFit=void 0,!(!ci(this.center,t.center)||!Object.is(this.zoom,t.zoom))&&this.applyFit(e,t.fit,!1))}reflectCamera(e,t){let i=this._connectGeneration,r=this.ownerDocument,n=()=>this.isConnected&&this._map===e&&this._connectGeneration===i&&this.ownerDocument===r;if(!n())return;let o=Re(e);if(!n()||!o)return;let s=Object.freeze(o.center),{zoom:c}=o;this.reflectedCamera={center:s,zoom:c};let l=this._center;this.reflectingCamera=!0;try{this._center=s,this.requestUpdate("center",l),this.zoom=c}finally{this.reflectingCamera=!1}if(!n())return;let p=this.readVisibleBounds(e);n()&&this.emit("lr-map-view-change",p?{center:s,zoom:c,source:t,bounds:p}:{center:s,zoom:c,source:t})}pushCamera(e){let t=this.reflectedCamera;this.reflectedCamera=void 0;let i=this._map;if(!i||!e.has("center")&&!e.has("zoom"))return;let r=this.safeCenter,n=this.safeZoom,o=Re(i),s=d=>d!==void 0&&r[0]===d.center[0]&&r[1]===d.center[1],c=e.has("center")&&!s(t)&&!s(o),l=e.has("zoom")&&n!==t?.zoom&&n!==o?.zoom;if(!c&&!l)return;let p=!1;try{p=i.isMoving?.()===!0}catch{}p&&(c=!s(o),l=n!==o?.zoom),this.writeCamera(()=>{c&&i.setCenter(r),l&&i.setZoom(n)})}writeCamera(e){let t=this.writingCamera;this.readiness.invalidate(),this.writingCamera=!0;try{e()}finally{this.writingCamera=t}}connectedCallback(){if(super.connectedCallback(),this.detached.cancel()){this.resumeAfterMove();return}let e=this.ownerDocument.defaultView;if(e)for(let r of this.drawingProgressAnnouncers)r.setTimerHost(e);let t=++this._connectGeneration;this.observeMapInteractionState(),this.syncAnchorAvoidance(),this.syncControlsAvoidance(),this.unregisterCameraSession?.(),this.unregisterCameraSession=Ro(this,{acquire:r=>this.acquireCameraSession(r)}),this.unregisterCustomLayers?.(),this.unregisterCustomLayers=Io(this,{acquire:r=>this.acquireCustomLayer(r)}),this.failure=void 0,this.loading=!0,this._webglReady=!1,this.connectGeographicScene(),this.readiness.reset(),this.controlsReadiness.reset(),this.hashRuntimeFailed=!1,this.dataLayerRuntimeFailed=!1,this.syncHash(),this.visible=!1,this.constructionScheduler?.disconnect();let i=da(this,()=>{if(!this.isConnected||this._connectGeneration!==t||this.constructionScheduler!==i)return;this.visible=!0;let r=Mt(this.shadowRoot)?.matches?.('[part="initialization-activate"]')===!0;if(this.tryConstructMap(),r&&this._map)try{this._map.getCanvas()?.focus?.({preventScroll:!0})}catch{}this.scheduleAfterUpdate(()=>{this.isConnected&&this._connectGeneration===t&&this.constructionScheduler===i&&this.requestUpdate()},`map-construction-${t}`)});this.constructionScheduler=i,this.constructionMode=this.initializationMode,this.constructionDelay=this.safeInitializationDelay,i.connect(this.constructionMode,this.constructionDelay),(async()=>{let r;try{r=await this.loadLibrary(this.engine)}catch{t===this._connectGeneration&&this.isConnected&&this.failInitialization("missing-peer");return}if(!(t!==this._connectGeneration||!this.isConnected)){if(this.loading=!1,!r){this.failInitialization("missing-peer");return}if(this._maplibreModule=r,!Be(this.mapStyle)){this.failInitialization("style-required");return}if(!Ca(this)){this.failInitialization("webgl-unavailable");return}this._webglReady=!0,await this.updateComplete,!(t!==this._connectGeneration||!this.containerEl||!this.isConnected)&&this.constructionScheduler?.setReady(!0)}})()}resumeAfterMove(){let e=this.interactionBlocked;this.observeMapInteractionState();let t=this.interactionObserver;this.interactionBlocked!==e&&this.applyMapInteractionState(()=>this.isConnected&&this.interactionObserver===t),this.canvasAllocationController&&(this.releaseCanvasAllocation(),this.syncCanvasAllocation())}disconnectedCallback(){super.disconnectedCallback(),this.detached.schedule()}releaseConnection(){this.anchorAvoidance?.disconnect(),this.controlsAvoidance?.disconnect();for(let t of this.drawingProgressAnnouncers)t.cancel();this.drawingProgressState=[void 0,void 0],this.releaseCanvasAllocation(),this.stopObservingMapInteractionState(),this.interruptCameraSession("disconnect",!1);let e=this.cameraSession;e&&(e.released=!0,e.active=void 0,e.stopMotion(),e.stopContext(),this.cameraSession=void 0),this.unregisterCameraSession?.(),this.unregisterCameraSession=void 0,this.unregisterCustomLayers?.(),this.unregisterCustomLayers=void 0,this.notifyCustomLayers(t=>t.released()),this.customLayerCallbacks.clear(),this.closeGeographicScene(),this.hashOwner?.dispose(),this.disposeMap(),this.constructionScheduler?.disconnect(),this.constructionScheduler=void 0;for(let t of this._markerInstances.values()){let i=t.getElement?.();i&&this.markerActivationDetails.delete(i),t.remove()}this._markerInstances.clear(),this._markerColors.clear(),this._markerLabels.clear(),this._markerPopupIds.clear(),this._markerSources.clear()}failureMessage(e=this.failure??"initialization-failed"){switch(e){case"missing-peer":return this.localize("mapMissingLibrary",void 0,{package:this.engine==="maplibre"?"maplibre-gl":"@aceshooting/lyra-map"});case"style-required":return this.localize("mapStyleRequired");case"webgl-unavailable":return this.localize("mapWebglUnavailable");case"initialization-failed":return this.localize("mapInitializationFailed")}}failInitialization(e,t){let i=this._connectGeneration,r=this._styleGeneration,n=this.mapStyle;this.readiness.fail(),this.controlsReadiness.fail();try{t&&this.peerEvents.clear(t),t?.remove()}catch{}this.disposeMap(!1);let o=()=>{!this.isConnected||this._connectGeneration!==i||this._styleGeneration!==r||this.mapStyle!==n||this._map||(this.loading=!1,this.failure=e,this.announcements.announceAssertive(this.failureMessage(e)))};this.mapUpdateActive?this.scheduleAfterUpdate(o,`map-initialization-failure-${i}-${r}`):o()}scheduleStyleRequiredFailure(){let e=this._connectGeneration,t=this._maplibreModule;this.scheduleAfterUpdate(()=>{!this.isConnected||e!==this._connectGeneration||t!==this._maplibreModule||Be(this.mapStyle)||this.failInitialization("style-required")},"map-style-required")}disposeMap(e=!0){this.stopGeographicSceneRender(),this.notifyCustomLayers(i=>i.mapRemoved()),this.interruptCameraSession("engine",!1);let t=this.cameraSession;t&&(t.released=!0,t.stopMotion(),t.stopContext(),this.cameraSession=void 0),this.sceneConfiguration?.cancel(),this.sceneControlsRequestPending=!1,this.setSceneControlIssue(!1),this.cancelImageExport(),this.pendingExportIssue=!1,this.isConnected?this.publishExportIssue(!1):this.exportIssue=!1,this.cancelMapDrawing("disconnect"),this.drawingController?.cancelResources(),e&&(this.readiness.cancel(),this.controlsReadiness.cancel()),this.cancelFeaturePreparation(),this.pointerCleanup?.(),this.pointerCleanup=void 0,this.committedInteractionInputs=void 0,this.mapCursor.clear(),this.hovered=void 0,this.endPointerReports(!1),this.featureStates?.dispose(),this.featureStates=void 0,this.stateRouter.configure([]),this.featureStateLoad==="failed"&&(this.featureStateLoad=void 0),this.stateRequested=!1,this.stateRoutes=[],this.interactions=[],this.sourceIdentities.clear(),this.featureStateIssue=!1,this.preparedFeatureSignature=void 0,this.pendingMapLoad=!1,this.mapLoadEmitted=!1,this.rebuildGeneratedLayers=!1,this.stopObservingMapAllocation(),this.stopObservingPeerChrome(),this.optionalFeatureWorkStarted=!1,this.controlLifecycle?.dispose(),this.controlPeer=void 0,this.attributionState=void 0,this.setControlOutlines([]),this._map&&this.peerEvents.clear(this._map);try{this._map?.remove()}catch{}this._map=void 0,this.drawingController?.disposeResources(),this.ownedFeatures?.dispose(),this.externalFeatures?.dispose(),this.externalSourceEffects?.dispose(),this.externalSourceEffects=void 0,this.externalFeatureWorkStarted=!1,this.externalSourceIds.clear(),this.plannedDataLayerIds.clear(),this.appliedRowRanges.clear(),this.dataLayerIssue=!1,this.pendingDataLayerIssue=!1,this.groupOrderActive=!1,this.basemapOrder?.reset(),this.pendingDrawingTheme=!1,this.setControlIssue(void 0),this.anchorController?.dispose(),this.childAnchors?.dispose(),this.cancelMoveReport(),this.appliedPadding=dr,this._styleLoaded=!1,this._styleLayers=di,this._styleSources=hi,this.boxZoomSettling=!1,this.reflectedCamera=void 0,this._appliedChoroplethSourceId=void 0,this._appliedFillLayerId=void 0,this.appliedChoroplethPaintKey=void 0,this._appliedDataLayerIds.clear(),this._appliedDataLayerShapes.clear(),this.appliedLayerPaintKeys.clear(),this.appliedPointIcons.clear(),this.appliedPointPaint.clear(),this.appliedGeoLabels.clear(),this.appliedPointMuting.clear(),this._appliedGeoJson.clear()}adoptedCallback(){if(this.detached.flush(),super.adoptedCallback(),this.releaseCanvasAllocation(),this.isConnected&&this.syncCanvasAllocation(),this.observeMapInteractionState(),this.geographicSceneDocument&&this.geographicSceneDocument!==this.ownerDocument){this.interruptCameraSession("disconnect",!1);let t=this.cameraSession;t&&(t.released=!0,t.active=void 0,t.stopMotion(),t.stopContext(),this.cameraSession=void 0),this.closeGeographicScene(),this.isConnected&&this.connectGeographicScene()}this.hostDescription.adopted(),this.stopObservingMapAllocation(),this.stopObservingPeerChrome(),this.announcements.adopted();let e=this.ownerDocument.defaultView;if(e)for(let t of this.drawingProgressAnnouncers)t.setTimerHost(e);this._map&&this.containerEl&&this.isConnected&&this.observeMapAllocation(this._map,this.containerEl)}tryConstructMap(){if(this.mapUpdateActive){let l=this._connectGeneration;this.scheduleAfterUpdate(()=>{this.isConnected&&this._connectGeneration===l&&this.tryConstructMap()},`map-construct-${l}`);return}if(this._map||!this._maplibreModule||!this._webglReady||!this.containerEl||!this.visible||!this.isConnected)return;if(!Be(this.mapStyle)){this.scheduleStyleRequiredFailure();return}this.syncCanvasAllocation();let e=this._maplibreModule,t=this.center,i=this.zoom,r=this.hashOption;if(this.syncHash(),!this.hashOwner&&this.hashRequested()&&!this.hashRuntimeFailed||this.dataLayerRuntimePending())return;let n=this.hashOwner?.read()??{status:"disabled"},o=n.status==="camera"?n.camera:void 0,s;try{s=new e.Map({container:this.containerEl,style:this.mapStyle,center:o?[...o.center]:this.safeCenter,zoom:o?Z(o.zoom,this.safeZoom,...this.zoomLimits):this.safeZoom,...this.zoomLimitsRequested?{minZoom:this.zoomLimits[0],maxZoom:this.zoomLimits[1]}:{},...o?{bearing:o.bearing,pitch:o.pitch}:{},attributionControl:!1,...typeof this.renderWorldCopies=="boolean"?{renderWorldCopies:this.renderWorldCopies}:{},locale:{"Map.Title":this.effectiveMapLabel,"Marker.Title":this.localize("mapMarker"),"Popup.Close":this.localize("close"),"AttributionControl.ToggleAttribution":this.localize("mapToggleAttribution"),"AttributionControl.MapFeedback":this.localize("mapFeedback"),"NavigationControl.ZoomIn":this.localize("zoomIn"),"NavigationControl.ZoomOut":this.localize("zoomOut"),"NavigationControl.ResetBearing":this.localize("mapResetNorth"),...this.controlLocale()}}),this.peerEvents.subscribe(s,"error",p=>{if(this._map===s){if(!this._styleLoaded){this.failInitialization("initialization-failed");return}console.error("lr-map:",p?.error??p)}}),this.peerEvents.subscribe(s,"load",()=>{this._map!==s||this.mapLoadEmitted||(this.pendingMapLoad=!0,this.flushMapLoad(s),this.readiness.whenStyleReady().then(()=>{this.flushMapLoad(s)},()=>{}))}),this.peerEvents.subscribe(s,"click",p=>{this._map===s&&this.handleMapInteraction("click",p)}),this.peerEvents.subscribe(s,"contextmenu",p=>{this._map===s&&this.handleMapInteraction("contextmenu",p)}),this.peerEvents.subscribe(s,"mousemove",p=>{this._map===s&&(this.schedulePointerReport(s,p),this.drawingController?.preview(Qe(U(p,"lngLat"))),this.handleMapInteraction("mousemove",p))}),this.peerEvents.subscribe(s,"mouseout",()=>{this._map===s&&(this.clearMapHover(),this.endPointerReports(),this.drawingController?.preview(void 0))}),this.peerEvents.subscribe(s,"movestart",p=>{this._map===s&&(p?.originalEvent&&(this.clusterZoomToken+=1),this.cameraSessionMovement(p))}),this.peerEvents.subscribe(s,"boxzoomstart",p=>{this._map===s&&(this.clusterZoomToken+=1,this.cameraSessionMovement(p))});for(let p of["dragstart","zoomstart","rotatestart","pitchstart"])this.peerEvents.subscribe(s,p,d=>{this._map===s&&this.cameraSessionMovement(d)});this.peerEvents.subscribe(s,"boxzoomend",()=>{this._map===s&&(this.boxZoomSettling=!0)}),this.peerEvents.subscribe(s,"move",()=>{this._map===s&&(this.anchorController?.invalidate(),this.childAnchors?.invalidate(),this.scheduleMoveReport(s),this.drawingController?.scheduleHandles())}),this.peerEvents.subscribe(s,"moveend",p=>{if(this._map!==s||(this.flushMoveReport(s),this.writeHash(s),this._map!==s))return;let d=p?.[Oa]===this.fitToken,h=this.cameraSession,u=p?.[pr],m=h?.active&&h.active.marker===u?h.active:void 0,f=u!==void 0&&h?.stopping===u,b=p?.[Ra]===this.commandToken||m!==void 0||f,v=!d&&!b&&this.boxZoomSettling;if(!d&&!b&&(this.boxZoomSettling=!1),this.writingCamera)return;let g=d?"fit":b?"command":p?.originalEvent||v?"user":void 0;g&&this.reflectCamera(s,g),h&&m&&this.cameraSession===h&&h.active===m&&!h.released&&(m.invoking?m.completionPending=!0:(h.active=void 0,h.callbacks.complete(m.action)))});let l=s.getCanvas?.();if(l&&go(this,l),this._map=s,l&&this.observeMapInteractions(l),this.beginStyleReadiness(s,!0),!this.isConnected||this._map!==s||(this.syncMapSemantics(),this.observeMapAllocation(s,this.containerEl),this.syncGeographicSceneRender(),!this.isConnected||this._map!==s))return;this.observePeerChrome(),this.failure=void 0}catch{this.failInitialization("initialization-failed",s);return}if(this.applyMaxBounds(),!this.isConnected||this._map!==s)return;if(o){this.pendingFit=void 0;let l=this._connectGeneration,p=Re(this._map);if(!this.isConnected||this._map!==s||this._connectGeneration!==l)return;p&&this.hashOption===r&&this.center===t&&this.zoom===i&&(this.reflectedCamera={center:p.center,zoom:p.zoom},this.scheduleAfterUpdate(()=>{if(!(!this.isConnected||this._map!==s||this._connectGeneration!==l||this.hashOption!==r||this.center!==t||this.zoom!==i)){this.reflectingCamera=!0;try{this.center=p.center,this.zoom=p.zoom}finally{this.reflectingCamera=!1}}},`map-initial-hash-${l}`))}this.applyCameraPadding(),this.syncControls(),this.syncAnchor(),this.syncImageProvider();let c=this._map;this.pendingFit?this.scheduleAfterUpdate(()=>{this._map===c&&(this.applyPendingFit(),c&&this.writeHash(c))},"map-pending-fit"):this.pendingCommand?this.scheduleAfterUpdate(()=>{this._map===c&&(this.applyPendingCommand(),c&&this.writeHash(c))},"map-pending-command"):c&&this.writeHash(c)}flushMapLoad(e=this._map){!e||this._map!==e||!this.isConnected||!this.pendingMapLoad||!this._styleLoaded||this.preparingFeatures||this.sceneConfiguration?.pending||this.isUpdatePending||(this.pendingMapLoad=!1,this.mapLoadEmitted=!0,this.emit("lr-map-load"))}beginStyleReadiness(e,t,i,r=!1){let n=this._connectGeneration,o=this._styleGeneration,s=this.mapStyle,c=()=>this.isConnected&&this._map===e&&n===this._connectGeneration&&o===this._styleGeneration&&s===this.mapStyle,l=!1,p=()=>{l||!c()||(l=!0,this._styleLoaded=!0,this.captureStyleCatalog(e),this.geographicSceneRender?.styleReady(),c()&&(this.notifyCustomLayers(d=>d.styleReady(e)),c()&&(this.syncSceneConfiguration(),this.controlLifecycle?.refreshSceneControls(),c()&&(this._appliedChoroplethSourceId=void 0,this._appliedFillLayerId=void 0,this.appliedChoroplethPaintKey=void 0,this._appliedDataLayerIds.clear(),this.plannedDataLayerIds.clear(),this.appliedRowRanges.clear(),this._appliedDataLayerShapes.clear(),this.appliedLayerPaintKeys.clear(),this.appliedPointPaint.clear(),this.appliedGeoLabels.clear(),this.appliedPointMuting.clear(),this._appliedGeoJson.clear(),this.rebuildGeneratedLayers=!0,t&&this.applyMarkers(),this.reconcileGeneratedLayers(),this.anchorLngLat?this.scheduleAnchorSync():this.childAnchors?.schedule()))))};this.readiness.bind({subscribe:(d,h)=>{let u=d==="style-ready"?["load","style.load"]:d==="busy"?["movestart","move","dataloading"]:[d],m=!0,f=[],b=()=>{m=!1;for(let v of f)try{v()}catch{}};try{for(let v of u)f.push(this.peerEvents.subscribe(e,v,()=>{if(!(!m||!c()))try{d==="style-ready"&&p(),m&&c()&&h()}catch{c()&&this.readiness.fail()}}))}catch(v){throw b(),v}return b},mutate:t?i:()=>{this.peerEvents.rotate(e),c()&&i?.()},isStyleReady:()=>{if(r)return!1;let d=typeof e.isStyleLoaded=="function"?e.isStyleLoaded()===!0:typeof e.loaded=="function"&&e.loaded()===!0;return d&&p(),d},isIdle:()=>typeof e.isMoving=="function"&&e.isMoving()?!1:typeof e.loaded=="function"?e.loaded()===!0:void 0,ownerPending:()=>this.isUpdatePending||this.preparingFeatures||this.drawingPending||this.sceneConfiguration?.pending===!0||this.featureLoads>0||!c(),restore:async d=>{if(!c()||d.aborted)return;p();let h=this.featureWork,u=this.drawingWork,m=this.sceneConfiguration?.work;for(;;){if(await Promise.all([h,u,m]),!c()||d.aborted||this.isUpdatePending&&(await this.updateComplete,!c()||d.aborted)||h===this.featureWork&&u===this.drawingWork&&m===this.sceneConfiguration?.work)return;h=this.featureWork,u=this.drawingWork,m=this.sceneConfiguration?.work}},onStyleReady:d=>{this.emit("lr-map-style-load",{generation:d})},onIdle:d=>{this.emit("lr-map-idle",{generation:d})},onError:d=>{d||this._styleLoaded&&!this.preparingFeatures&&this.mapLoadEmitted||this.scheduleAfterUpdate(()=>{c()&&this.failInitialization("initialization-failed")},`map-readiness-failure-${o}`)}})}requestUpdate(...e){e[0]===void 0&&(this.geoJsonRefreshRequested=!0),e[0]==="zoom"&&!this.reflectingCamera&&(this.zoomLimitRevision=(this.zoomLimitRevision??0)+1),super.requestUpdate(...e);let t=e[0]===void 0||!Object.is(e[1],Reflect.get(this,e[0]));if(this.isConnected&&t&&["mapStyle","projection","terrain","minZoom","maxZoom","maxBounds","cameraPadding"].includes(String(e[0]))&&(this.cameraSessionConfigurationRevision+=1),this.cameraSession&&t&&!this.reflectingCamera){let n=e[0];if(n==="mapStyle"||n==="projection"||n==="terrain")this.interruptCameraSession("style",!0);else if(n==="minZoom"||n==="maxZoom"||n==="maxBounds"||n==="cameraPadding")this.interruptCameraSession("external",!0);else if(n==="center"||n==="zoom"){let o=this._map&&Re(this._map);(n==="center"?o&&ci(this.safeCenter,o.center):o?.zoom===this.safeZoom)||(this.cameraUpdatePending=!0,this.interruptCameraSession("external",!0))}}(e[0]==="projection"||e[0]==="terrain")&&this.isUpdatePending&&(this.sceneRequest=(this.sceneRequest??0)+1,this.sceneControlsRequestPending=!0,this.controlLifecycle?.refreshSceneControls()),t&&e[0]==="mapStyle"&&this.isUpdatePending&&(this.sceneControlsRequestPending=!0,this.controlLifecycle?.refreshSceneControls()),t&&(e[0]===void 0||["mapStyle","dataLayers","choropleth","overlays","images","styleOverrides","interactiveBasemapLayers"].includes(String(e[0])))&&(this.drawingConfigRevision=(this.drawingConfigRevision??0)+1);let i=e[0]===Cr;if(t&&(e[0]===void 0||i||["anchorLngLat","anchorBoundary","anchorSafeArea","anchorClosable","mapStyle","dir"].includes(String(e[0])))){this.anchorSyncRequested=!0,e[0]==="anchorLngLat"&&this.anchorLoad==="failed"&&(this.anchorLoad=void 0);let n=this.anchorController;n&&!n.closing&&(e[0]==="mapStyle"||e[0]==="anchorLngLat"&&!this.anchorLngLat)?n.hide(!0,!0):n?.stop()}let r=this.drawingController?.active===!0;t&&!this.drawingResetting&&e[0]==="drawMode"&&(r||e[1]==="line"||e[1]==="polygon")&&this.cancelMapDrawing("mode-change",!0,e[1]==="polygon"?"polygon":"line"),t&&e[0]==="drawMode"&&this.drawingLoad==="failed"&&(this.drawingLoad=void 0),t&&e[0]==="pickMode"&&this.pickMode&&(r||this.drawMode==="line"||this.drawMode==="polygon")&&this.cancelMapDrawing("pick-mode"),t&&this.isUpdatePending&&(e[0]===void 0||["mapStyle","dataLayers","choropleth","overlays","images","styleOverrides","interactiveBasemapLayers"].includes(String(e[0])))&&(this.interactionGeneration=(this.interactionGeneration??0)+1,this.featureStates?.cancel()),t&&e[0]==="controls"&&this.controlsReadiness&&this.isConnected&&this.isUpdatePending&&(this.controlsReadiness.reset(),this.failure&&this.controlsReadiness.fail()),t&&this.readiness&&this.isConnected&&this.isUpdatePending&&(e[0]==="mapStyle"&&!Object.is(e[1],this.mapStyle)?(this.sceneConfiguration?.cancel(),this.readiness.reset()):(e[0]===void 0||["projection","terrain","center","zoom","minZoom","maxZoom","cameraPadding","maxBounds","dataLayers","choropleth","markers","hiddenCategories","overlays","images","styleOverrides","interactiveBasemapLayers"].includes(String(e[0])))&&this.readiness.invalidate()),(e[0]==="center"||e[0]==="zoom")&&this.isUpdatePending&&!this.reflectingCamera&&(this.clusterZoomToken+=1,this.cameraUpdatePending=!0),this.isUpdatePending&&(e[0]===void 0||i||["label","lang","locale","strings","markers","legend","legendGradient","hasLegendSlot","hasLegendStartSlot","choropleth","choroplethLegend"].includes(String(e[0])))&&(this.semanticsStale=!0),this.isUpdatePending&&(e[0]===void 0||i||["label","lang","locale","strings","markers"].includes(String(e[0])))&&(this.markerSemanticsStale=!0)}performUpdate(){this.mapUpdateActive=!0;try{super.performUpdate()}finally{this.mapUpdateActive=!1}}captureActionBarFocus(){let e=Mt(this.shadowRoot)?.closest('[part="pick-controls"], [part="drawing-controls"]');this.actionBarFocusRepair=e?xr(e,e):null}repairActionBarFocus(){let e=this.actionBarFocusRepair;if(this.actionBarFocusRepair=null,!e||e.activeElement.isConnected&&!e.activeElement.matches(":disabled"))return;let t=this.renderRoot.querySelectorAll('[part="pick-controls"] button, [part="drawing-controls"] button'),i=this._map?.getCanvas?.(),r=this.renderRoot.querySelector('[part="initialization-activate"]');zr(e,[...t,i,r,this.containerEl])}announceDrawingProgress(){let e=this.drawingController,t=(this.drawMode==="line"||this.drawMode==="polygon"||e?.editing===!0)&&!this.pickMode&&!this.failure&&!this.loading,i=e?.snapshot?.vertices??[],r=t?[String(i.length),JSON.stringify(i)]:[void 0,void 0],[n,o]=this.drawingProgressState;if(this.drawingProgressState=r,!t)return;n!==void 0&&n!==r[0]&&this.drawingProgressAnnouncers[0].announce(this.localize("mapDrawingVertices",void 0,{count:this.formatLocaleNumber(i.length)}));let s=this.drawingMeasurements?this.drawingSummary(e?.snapshot):void 0;s&&o!==void 0&&o!==r[1]&&this.drawingProgressAnnouncers[1].announce(s)}updated(e){super.updated(e),this.repairActionBarFocus(),this.announceDrawingProgress(),e.has("failure")&&this.syncGeographicSceneStatus(),this.sceneRepairFocus&&(this.sceneRepairFocus=!1,this.shadowRoot?.querySelector('[part="scene-toggle"]')?.focus({preventScroll:!0})),this.cameraUpdatePending=!1;let t=String(this.loading||!this._map&&!this.failure&&!this.awaitingActivation);if(!this.authoredBusy&&this.getAttribute("aria-busy")!==t){this.writingBusy=!0;try{this.setAttribute("aria-busy",t)}finally{this.writingBusy=!1}}if(this.legendCollapsed&&(e.has("legendOpen")||e.has("legendCollapsible"))){let o=this.shadowRoot?.querySelector('[part="legend"]');o&&(o.scrollTop=0)}if((e.has("choropleth")||e.has("legendGradient"))&&this.warnOnLegendChoroplethMismatch(),e.has("mapStyle")&&(this.cancelImageExport(),this.drawingController?.styleChanging(),this.drawingController?.cancelResources(!0),this._styleGeneration+=1,this.basemapOrder?.reset(),this.cancelFeaturePreparation(),this.preparedFeatureSignature=void 0,this.featureStateLoad==="failed"&&(this.featureStateLoad=void 0)),!e.has("mapStyle")&&(e.has("projection")||e.has("terrain"))&&this.syncSceneConfiguration(),e.has("imageProvider")&&this._map&&this.syncImageProvider(),e.has("mapStyle")&&!Be(this.mapStyle)&&this._maplibreModule)this.scheduleStyleRequiredFailure();else if(e.has("mapStyle")&&!this._map&&this._maplibreModule&&Be(this.mapStyle))this.tryConstructMap();else if(e.has("mapStyle")&&this._map){let o=typeof this._map.prepareFeatures=="function"||typeof this.mapStyle=="string"||!this._styleLoaded;this._styleLoaded=!1,this._styleLayers=di,this._styleSources=hi;let s=this._map;this.beginStyleReadiness(s,!1,()=>{for(let c of this.appliedPointIcons.keys())this.removePointIcons(c);this.geographicSceneRender?.invalidateStyle(),this.notifyCustomLayers(c=>c.styleInvalidated()),!(!this.isConnected||this._map!==s)&&s.setStyle(this.mapStyle,o?{diff:!1}:void 0)},o)}else this._styleLoaded&&(this.refreshingGeoJson||e.has("dataLayers")||e.has("choropleth")||e.has("overlays")||e.has("images")||e.has("styleOverrides")||e.has("interactiveBasemapLayers")||e.has("imageProvider")&&this.preparingFeatures)&&this.reconcileGeneratedLayers();this.sceneControlsRequestPending=!1,this.controlLifecycle?.refreshSceneControls();let i=this.initializationMode,r=this.safeInitializationDelay;(e.has("initialization")||e.has("initializationDelay"))&&(i!==this.constructionMode||i==="interaction"&&r!==this.constructionDelay)&&(this.constructionMode=i,this.constructionDelay=r,this.constructionScheduler?.reconfigure(i,r)),this.constructionScheduler?.setReady(!!this.containerEl&&this._webglReady&&!!this._maplibreModule&&Be(this.mapStyle)),e.has("hiddenCategories")&&this._map&&this._styleLoaded&&this.refreshThemePaint(),this.syncCanvasAllocation(),e.has("cameraPadding")&&this._map&&(this.applyCameraPadding(),this.geographicSceneRender?.refreshAllocation()),this.pushCamera(e),e.has("maxBounds")&&this._map&&this.writeCamera(()=>this.applyMaxBounds()),(e.has("minZoom")||e.has("maxZoom"))&&this._map&&this.applyZoomLimits(),e.has("controls")&&this._map&&this.syncControls(),e.has("drawingMeasurements")&&this.drawingController?.scheduleHandles(),(e.has("pickMode")||e.has("interactionBlocked"))&&(this.clearMapHover(),this.syncMapCursor()),(e.has("hash")||e.has("hashFormat"))&&(this.syncHash(),this.applyHash()),this._map&&(this.anchorSyncRequested||["anchorLngLat","anchorBoundary","anchorSafeArea","anchorClosable","dir","strings","lang","locale"].some(o=>e.has(o)))&&(this.anchorSyncRequested=!1,this.syncAnchor()),e.has("markers")&&this._map&&this.applyMarkers(),e.has("anchorAvoid")||e.has("anchorAvoidSides")?this.syncAnchorAvoidance():(e.has("dir")||e.has("anchorAvoidGap"))&&this.anchorAvoidance&&this.anchorAvoidance.refresh(),e.has("controlsAvoid")?this.syncControlsAvoidance():e.has("dir")&&this.controlsAvoidance&&this.controlsAvoidance.refresh(),this.semanticsStale&&(this.semanticsStale=!1,this.syncMapSemantics(this.markerSemanticsStale),this.markerSemanticsStale=!1),this.drawingConfigApplied=this.drawingConfigApplying,this.cameraSessionConfigurationApplied=this.cameraSessionConfigurationApplying,this.syncDrawing(),this.readiness.check();let n=this._map;this.pendingMapLoad&&queueMicrotask(()=>{this.flushMapLoad(n)})}static get observedAttributes(){return[...super.observedAttributes,"aria-busy"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e==="aria-busy"&&!this.writingBusy&&(this.authoredBusy=i!==null,i===null&&super.requestUpdate())}willUpdate(e){if(this.drawingConfigApplying=this.drawingConfigRevision,this.cameraSessionConfigurationApplying=this.cameraSessionConfigurationRevision,super.willUpdate(e),(this.anchorLngLat!=null||this.openChildAnchors.size>0)&&this.effectiveDirection,this.refreshingGeoJson=this.geoJsonRefreshRequested,this.geoJsonRefreshRequested=!1,this.captureActionBarFocus(),this.refreshingGeoJson){let n=this.canonicalChoropleth;n&&(this._canonicalChoropleth={...n,geojsonProjection:_t().projectAdmittedGeoJson(n.geojson,!0)}),this._canonicalDataLayers=this.canonicalDataLayers.map(o=>({...o,geojsonProjection:_t().projectAdmittedGeoJson(o.geojson,!0)}))}(e.has("legendGradient")||e.has("dataLayers"))&&(this.legendIsLine=this.legendDescribesLine());let t=this.choroplethLegend?this.canonicalChoropleth:void 0,i=this.effectiveLocale,r=t?this.localize("noData"):"";(t!==this.legendSource||i!==this.legendLocale||r!==this.legendNoData)&&(this.legendSource=t,this.legendLocale=i,this.legendNoData=r,this.derivedLegend=t?Nl(t,n=>this.formatLocaleNumber(n),r):Ga),e.has("mapStyle")&&!this._map&&this._maplibreModule&&Be(this.mapStyle)&&(this._webglReady||(this._webglReady=Ca(this)),this.failure=this._webglReady?void 0:"webgl-unavailable",this._webglReady||(this.loading=!1,this.announcements.announceAssertive(this.failureMessage("webgl-unavailable"))))}syncPaintTheme(){let e=this.ownedOverlayInput(),t=[this.dataLayers,this.choropleth,e.styleOverrides,e.overlays,ve.loaded];if(!this.paintThemeSources||t.some((l,p)=>l!==this.paintThemeSources[p])){this.paintThemeSources=t;let l=new Set([...Object.values(gr),...Object.values(pi),"--lr-map-choropleth-fill-opacity","--lr-map-hidden-category-opacity",ja,...Object.values(Da)]),p=JSON.stringify([this.canonicalDataLayers.map(({geojson:h,geojsonProjection:u,...m})=>m),[this.canonicalChoropleth?.stops,this.canonicalChoropleth?.stepBaseColor,this.canonicalChoropleth?.noData],ve.loaded?.projectMapStyleOverrides(e.styleOverrides),this._canonicalExternalLayers.map(({source:h,...u})=>u)]),d=ve.loaded?.overlayPaintText(e.overlays)??"";for(let h of d.matchAll(/var\(\s*(--[\w-]+)/g))l.add(h[1]);for(let h of p.matchAll(/var\(\s*(--[\w-]+)/g))l.add(h[1]);this.paintThemeTokens=[...l]}let i=At(this)?.getComputedStyle(this);if(!i)return!1;let r=new Set(this.paintThemeTokens),n=[i.color,i.colorScheme],o=new Map;for(let l of r){let p=i.getPropertyValue(l).trim();if(n.push(l,p),o.set(l,p),r.size<512)for(let d of p.matchAll(/var\(\s*(--[\w-]+)/g))r.add(d[1])}let s=JSON.stringify(n);if(this.paintThemeKey===s)return!1;this.paintThemeKey=s,this.fillOpacity=bi(Number.parseFloat(o.get("--lr-map-choropleth-fill-opacity")),Pa),this.hiddenOpacity=Z(Number.parseFloat(o.get("--lr-map-hidden-category-opacity")),Ia,0,1);let c={};for(let[l,p]of Object.entries(Da)){let d=o.get(p);if(d)if(l==="line-dasharray"){let h=d.split(/\s+/u).map(Number);h.length===2&&h.every(u=>Number.isFinite(u)&&u>0)&&(c[l]=h)}else{let h=Number(d);Number.isFinite(h)&&h>=0&&(c[l]=l==="fill-opacity"?Math.min(1,h):h)}}return this.drawingPaint=c,xt.delete(this),this.appliedLayerPaintKeys.clear(),this.appliedChoroplethPaintKey=void 0,!0}withMapPaintBatch(e){let t=this._map;if(!t||!this._styleLoaded||!this.isConnected)return!1;let i=this._styleGeneration,r=this._connectGeneration,n=this.featureGeneration,o=this.mapStyle,s=this.dataLayers,c=this.choropleth,l=this.hiddenCategories,p=()=>this.isConnected&&this._map===t&&this._styleLoaded&&this._styleGeneration===i&&this._connectGeneration===r&&this.featureGeneration===n&&this.mapStyle===o&&this.dataLayers===s&&this.choropleth===c&&this.hiddenCategories===l,d=this.mapPaintBatchActive;this.mapPaintBatchActive=!0;try{return this.mapPaintBatch.run(t,i,p,e),!0}catch(h){return this.appliedLayerPaintKeys.clear(),this.appliedChoroplethPaintKey=void 0,h instanceof DOMException&&h.name==="AbortError"?this.scheduleAfterUpdate(()=>{this.isConnected&&this._map&&this._styleLoaded&&this.reconcileGeneratedLayers()},"map-paint-reconcile"):p()&&this.failInitialization("initialization-failed"),!1}finally{this.mapPaintBatchActive=d}}removeMapLayer(e){this.mapPaintBatch.invalidate(e),this._map?.removeLayer(e)}setMapPaint(e,t,i){this.mapPaintBatchActive?this.mapPaintBatch.write(e,t,i):this.withMapPaintBatch(()=>{this.mapPaintBatch.write(e,t,i)})}refreshThemePaint(){return this._canonicalExternalLayers.length||this.externalFeatureWorkStarted||this.optionalFeatureWorkStarted||this.ownedFeatureInputRequested()?(xt.delete(this),this.appliedLayerPaintKeys.clear(),this.appliedChoroplethPaintKey=void 0,this.pendingDrawingTheme=!0,this.reconcileGeneratedLayers(),!0):(this.withMapPaintBatch(()=>this.refreshThemePaintBatch()),!1)}refreshThemePaintBatch(){if(xt.delete(this),!this._map||!this._styleLoaded)return;if(this.preparingFeatures){(this._canonicalExternalLayers.length||this.externalFeatureWorkStarted)&&this.appliedLayerPaintKeys.clear();return}this.readiness.invalidate();let e=this.fillOpacity;if(this._appliedFillLayerId){let i=this.canonicalChoropleth;i&&i.stops.length>0&&this.setMapPaint(this._appliedFillLayerId,"fill-color",this.choroplethColorExpression(i)),this.setMapPaint(this._appliedFillLayerId,"fill-opacity",e)}let t=new Map(this.canonicalDataLayers.map(i=>[i.sourceId,i]));for(let[i,r]of this._appliedDataLayerIds){let n=t.get(i);if(!n)continue;this.paintDataLayer(r,n);let{geojson:o,geojsonProjection:s,...c}=n;this.appliedLayerPaintKeys.set(r,JSON.stringify(c))}}setFeatureState(e,t){if(!this.canWriteFeatureState())return!1;let i=this.featureStateRuntime();if(!i)return!1;let r=i.set(e,t).accepted;return r&&(this.stateRequested=!0,this.flushFeatureState()),r}getFeatureState(e){return this.featureStates?.get(e)}removeFeatureState(e,t){if(!this.canWriteFeatureState())return!1;let i=this.featureStateRuntime();if(!i)return!1;let r=i.remove(e,t).accepted;return r&&(this.stateRequested=!0,this.flushFeatureState()),r}featureStateRuntime(){if(this.featureStates)return this.featureStates;let e=Qi.loaded;if(e){let t=new e.MapFeatureStateRoutes;return t.configure(this.stateRoutes),this.featureStates=t}this.featureStateLoad||(this.featureStateLoad="loading",this.trackFeatureLoad(Qi().then(()=>{this.featureStateLoad=void 0},()=>{this.featureStateLoad="failed",this.isConnected&&(this.featureStateIssue=!0)})))}canWriteFeatureState(){let e=this._map,t=this.interactionGeneration;return!!(e&&this.isConnected&&this._styleLoaded&&!this.preparingFeatures&&!this.isUpdatePending&&Na(e)&&this._map===e&&t===this.interactionGeneration&&!this.isUpdatePending)}flushFeatureState(){let e=this._map,t=this.interactionGeneration;e&&(this.readiness.invalidate(),this.replayFeatureStates(e,()=>this.isConnected&&this._map===e&&t===this.interactionGeneration&&!this.isUpdatePending),this.readiness.check())}replayFeatureStates(e,t,i){if(!this.stateRequested||!t())return;if(!this.stateRoutingAvailable){this.featureStateIssue=!0,this.readiness.fail();return}let r=this.featureStates,n=r&&Na(e)?r.replay(e,this._styleGeneration,i,t):void 0;if(t()){if(!n?.accepted||n.diagnostics.length){this.featureStateIssue=!0,this.readiness.fail();return}if(this.featureStateIssue=!1,n.applied)try{e.triggerRepaint?.()}catch{t()&&(this.featureStateIssue=!0,this.readiness.fail())}}}sourceToken(e,t,i,r){let n=JSON.stringify([e,t]),o=this.sourceIdentities.get(n);if(o&&Object.is(o.data,i)&&o.shape===r)return o.token;let s=Object.freeze({});return this.sourceIdentities.set(n,{data:i,shape:r,token:s}),s}basemapInteractionTargets(){let e=Pi(this.interactiveBasemapLayers);if(e)return Co(e,this._styleLayers,t=>t).map(({layerId:t,entry:i})=>({layerId:t,interactive:i.interactive,priority:i.priority}))}get styleLayers(){return this._styleLayers}set styleLayers(e){}get styleSources(){return this._styleSources}set styleSources(e){}captureStyleCatalog(e){let t=[],i=[];try{let r=e.getStyle?.(),n=U(r,"layers"),o=U(r,"sources");if(Array.isArray(n))for(let s of n.slice(0,4096)){let c=U(s,"id"),l=U(s,"type"),p=U(s,"source"),d=U(s,"source-layer");typeof c!="string"||typeof l!="string"||t.push(Object.freeze({id:c,type:l,...typeof p=="string"?{source:p}:{},...typeof d=="string"?{sourceLayer:d}:{}}))}if(V(o))for(let s of Object.keys(o).slice(0,1024)){let c=U(U(o,s),"type");typeof c=="string"&&i.push(Object.freeze({id:s,type:c}))}}catch{t=[],i=[]}this._styleLayers=t.length?Object.freeze(t):di,this._styleSources=i.length?Object.freeze(i):hi}mapStateDefinitions(e){let t=[],i=this._map;this.stateRoutingAvailable=!0;let r=0;if(!i)return t;let n=this.interactionGeneration,o=()=>this._map===i&&n===this.interactionGeneration&&this.isConnected,s=(p,d,h,u,m,f)=>{if(r+=typeof u=="string"?u.length:0,t.length>=256||r>1048576){this.stateRoutingAvailable=!1;return}t.push({origin:p,source:d,nativeSource:h,identity:this.sourceToken(p,d,u,m),...f?{sourceLayers:f}:{}})},c=this.canonicalChoropleth;c&&s("choropleth",c.sourceId,this._appliedChoroplethSourceId??"",c.geojson,"geojson");for(let p of this.canonicalDataLayers)s("data-layer",p.sourceId,this._appliedDataLayerIds.get(p.sourceId)??"",p.geojson,lr(p));for(let p of this._canonicalExternalLayers)p.sourceLayer&&s("data-layer",p.sourceId,this.externalSourceIds.get(p.sourceId)??"",JSON.stringify(p.source),p.sourceLayer,[p.sourceLayer]);for(let p of e.sources){if(!this.stateRoutingAvailable)break;let d=p.source.type,h=[...new Set(e.layers.filter(u=>u.layer.source===p.id).map(u=>u.layer["source-layer"]).filter(u=>typeof u=="string"))].sort();(d==="geojson"||d==="vector"&&h.length)&&s("overlay",p.id,p.id,...$a(p.source,h),d==="vector"?h:void 0)}let l=this.basemapInteractionTargets();if(l?.length&&this.stateRoutingAvailable){let p=new Set([...t.map(m=>m.nativeSource),...e.sources.map(m=>m.id),...this.externalSourceIds.values(),...[...this.externalSourceIds.values()].map(m=>`${m}-hit-source`),...this.drawingController?.sourceId?[this.drawingController.sourceId]:[]]),d=i.getStyle?.()??this.mapStyle;if(!o())return[];let h=U(d,"sources"),u=new Map;for(let m of l){let f=i.getLayer(m.layerId);if(!o())return[];let b=U(f,"source"),v=U(f,"source-layer");if(!m.interactive||typeof b!="string"||p.has(b))continue;let g=u.get(b);g||u.set(b,g=new Set),typeof v=="string"&&g.add(v)}for(let[m,f]of u){if(!this.stateRoutingAvailable)break;let b=U(h,m),v,g=ve.loaded?.snapshotMapOwnedFeatureInput;if(!g)continue;try{v=g({overlays:{sources:[{id:m,source:b}],layers:[]},images:[],styleOverrides:[]})}catch{if(o())continue;return[]}if(!o())return[];let w=v.overlays.sources[0]?.source,O=w?.type,z=[...f].sort();w&&(O==="geojson"||O==="vector"&&z.length)&&s("basemap",m,m,...$a(w,z),O==="vector"?z:void 0)}}return this.stateRoutingAvailable?t:[]}prepareStateRetirement(e){let t=this.interactionGeneration,i=this._map,r=this.mapStateDefinitions(e);if(t!==this.interactionGeneration||i!==this._map)return;for(let o of this.stateRoutes){let s=r.find(c=>c.origin===o.origin&&c.source===o.source);(!s||s.identity!==o.identity)&&this.featureStates?.invalidateNative(o.origin,o.nativeSource)}let n=new Set(r.map(o=>JSON.stringify([o.origin,o.source])));for(let o of this.sourceIdentities.keys())n.has(o)||this.sourceIdentities.delete(o)}configureMapInteractions(e,t){let i=this.interactionGeneration,r=this._map,n=()=>i===this.interactionGeneration&&r===this._map&&this.isConnected,o=this.mapStateDefinitions(e);if(!n())return;let s=this.featureStates;(s?s.configure(o).accepted&&this.stateRouter.configure(o):this.stateRouter.configure(o))?this.stateRoutes=o:(s?.configure([]),this.stateRouter.configure([]),this.stateRoutes=[],this.stateRequested&&(this.featureStateIssue=!0,this.readiness.fail()));let c=[],l=(h,u,m,f,b,v=!1)=>{c.push({layerId:h,owner:u==="basemap"?"basemap":"overlay",origin:u,source:m,interactive:f.interactive??!0,priority:f.priority??0,...b?{sourceLayer:b}:{},...v?{cluster:v}:{}})},p=this.canonicalChoropleth;p&&this._appliedFillLayerId&&l(this._appliedFillLayerId,"choropleth",p.sourceId,p);for(let h of this.canonicalDataLayers){let u=this._appliedDataLayerIds.get(h.sourceId);if(u)for(let m of xl)l(`${u}${m}`,"data-layer",h.sourceId,h,void 0,m==="-cluster")}for(let[h,u]of t.hits){let m=this._canonicalExternalLayers.find(f=>f.sourceId===u.sourceId);m&&l(h,"data-layer",m.sourceId,{...m,interactive:m.interactive&&!(m.category&&this.hiddenCategories.includes(m.category))},u.sourceLayer)}for(let h of e.layers){let u=h.layer.source,m=h.layer["source-layer"];typeof u=="string"&&l(h.layer.id,"overlay",u,h,typeof m=="string"?m:void 0)}let d=this.basemapInteractionTargets();if(d)for(let h of d){if(this.drawingController?.ownsLayer(h.layerId)===!0||c.some(b=>b.layerId===h.layerId))continue;let u=r?.getLayer(h.layerId);if(!n())return;let m=U(u,"source"),f=U(u,"source-layer");typeof m=="string"&&!o.some(b=>b.origin!=="basemap"&&b.nativeSource===m)&&l(h.layerId,"basemap",m,h,typeof f=="string"?f:void 0)}n()&&(this.interactions=Object.freeze(c))}drawingActionAllowed(){return this.isConnected&&!!this._map&&this._styleLoaded&&!this.preparingFeatures&&this.drawingConfigRevision===this.drawingConfigApplied&&!this.mapInteractionBlocked()}mapInteractionAllowed(){return!this.isConnected||!this._map||!this._styleLoaded||this.preparingFeatures&&!this.retainedOverlayInteractions||this.isUpdatePending?!1:!this.mapInteractionBlocked()}mapInteractionBlocked(){for(let e=this;e;e=st(e))if(e.hasAttribute("inert")||e===this&&e.hasAttribute("disabled"))return!0;return!1}syncMapCursor(){let e=this._map,t=this.interactionGeneration;if(!e||!this.mapInteractionAllowed()){this.mapCursor.clear();return}try{let i=e.getCanvas();if(this._map!==e||t!==this.interactionGeneration||!this.mapInteractionAllowed())return;this.mapCursor.set(i,this.pickMode?"pick":this.drawingController?.active?"drawing":this.hovered?"hover":void 0)}catch{this._map===e&&t===this.interactionGeneration&&this.mapCursor.clear()}}stopObservingMapInteractionState(){let e=this.interactionObserver;this.interactionObserver=void 0,e?.disconnect()}applyMapInteractionState(e){let t=this.mapInteractionBlocked(),i=this._map;this.interactionBlocked=t;let r=()=>e()&&this._map===i&&this.mapInteractionBlocked()===t;if(t){if(this.cancelMapDrawing("disabled"),!r()||(this.clearMapHover(),!r())||(this.anchorController?.hide(),!r()))return;this.childAnchors?.hide()}else this.syncMapCursor(),r()&&this.scheduleAnchorSync()}observeMapInteractionState(){if(this.stopObservingMapInteractionState(),!this.isConnected)return;this.interactionBlocked=this.mapInteractionBlocked();let e=()=>this.isConnected&&this.interactionObserver===t,t=new fr(this,()=>this.applyMapInteractionState(e));this.interactionObserver=t;for(let i=this;i;i=st(i))t.observe(i,{attributes:!0,attributeFilter:["inert","disabled"]})}observeMapInteractions(e){let t=this._map,i=()=>this._map===t&&this.isConnected,r=()=>{i()&&(this.cancelMapDrawing("pointercancel"),this.drawingController?.active||(this.clearMapHover(),this.mapCursor.clear()))},n=()=>{this.suppressDrawingClick=!1},o=c=>{this.suppressDrawingClick&&(this.suppressDrawingClick=!1,c.preventDefault(),c.stopImmediatePropagation())},s=c=>{!i()||!this.keyboardActivation||c.key!=="Enter"&&c.key!==" "||c.repeat||c.isComposing||c.keyCode===229||c.defaultPrevented||c.altKey||c.ctrlKey||c.metaKey||c.shiftKey||this.pickMode||this.drawMode!=="none"||this.drawingController?.active||!this.mapInteractionAllowed()||(c.preventDefault(),this.activateMapCenter())};e.addEventListener("pointercancel",r,!0),e.addEventListener("pointerdown",n,!0),e.addEventListener("click",o,!0),e.addEventListener("keydown",s),this.pointerCleanup=()=>{e.removeEventListener("pointercancel",r,!0),e.removeEventListener("pointerdown",n,!0),e.removeEventListener("click",o,!0),e.removeEventListener("keydown",s)}}schedulePointerReport(e,t){let i=Qe(U(t,"lngLat")),r=U(t,"point"),n=U(r,"x"),o=U(r,"y");if(!i||!J(n)||!J(o)||(this.pendingPointer=Object.freeze({lngLat:Object.freeze([mi(i[0]),i[1]]),point:Object.freeze([n,o])}),this.pointerFrame.pending))return;let s=()=>{let l=this.pendingPointer;this.pendingPointer=void 0,!(!l||this._map!==e||!this.isConnected||this.mapInteractionBlocked())&&(this.pointerInside=!0,this.emit("lr-map-pointer-move",l))},c=At(this);if(!c||typeof c.requestAnimationFrame!="function"){s();return}this.pointerFrame.schedule(s)}endPointerReports(e=!0){this.pointerFrame.cancel(),this.pendingPointer=void 0;let t=this.pointerInside;this.pointerInside=!1,t&&e&&this.isConnected&&this.emit("lr-map-pointer-leave")}clearMapHover(){let e=this.hovered;this.hovered=void 0,this.mapCursor.clear(),e&&this.isConnected&&this.emit("lr-map-feature-leave",e.detail)}editDrawing(e){return this.isConnected?(this.drawingLoad==="failed"&&(this.drawingLoad=void 0),this.drawingRuntime()?.edit(e)??!1):!1}undoDrawing(){return this.drawingController?.undo()??!1}completeDrawing(){return this.drawingController?.complete()??!1}cancelDrawing(){return this.cancelMapDrawing("cancel")}cancelMapDrawing(e,t=!1,i=this.drawMode){let r=this.drawingController;return r?r.cancel(e,t,i):i!=="line"&&i!=="polygon"?!1:(this.drawingIssue=void 0,!t&&!(e==="cancel"&&this.drawingSticky)&&this.resetDrawingMode(),this.drawingEpoch++,this.syncMapCursor(),this.emit("lr-map-draw-cancel",Object.freeze({mode:i,phase:"cancelled",vertices:Object.freeze([]),reason:e})),!0)}resetDrawingMode(){this.drawingResetting=!0;try{this.drawMode="none"}finally{this.drawingResetting=!1}}syncDrawing(){if(this.mapUpdateActive){this.scheduleAfterUpdate(()=>this.syncDrawing(),"map-sync-drawing");return}let e=this.drawingController;if(e){e.sync();return}if(this.pickMode){this.cancelMapDrawing("pick-mode");return}if(this.mapInteractionBlocked()){this.cancelMapDrawing("disabled");return}(this.drawMode==="line"||this.drawMode==="polygon")&&this.drawingRuntime()?.sync()}drawingRuntime(){if(this.drawingController)return this.drawingController;let e=si.loaded;if(e)return this.drawingController=new e.MapDrawingController(this.drawingHost());this.drawingLoad||(this.drawingLoad="loading",this.trackFeatureLoad(si().then(()=>{this.drawingLoad=void 0,this.isConnected&&this.syncDrawing()},()=>{this.drawingLoad="failed",this.isConnected&&this.showDrawingError()})))}drawingHost(){return{element:this,map:()=>this._map,styleLoaded:()=>this._styleLoaded,generations:()=>[this._styleGeneration,this._connectGeneration],usable:()=>!this.loading&&!this.failure,epoch:()=>this.drawingEpoch,advanceEpoch:()=>{this.drawingEpoch++},actionAllowed:()=>this.drawingActionAllowed(),interactionAllowed:()=>this.mapInteractionAllowed(),interactionBlocked:()=>this.mapInteractionBlocked(),updateActive:()=>this.mapUpdateActive,afterUpdate:(e,t)=>{this.scheduleAfterUpdate(e,t)},emit:(e,t)=>{this.emit(e,t)},emitCancel:e=>{this.emit("lr-map-draw-cancel",e)},emitVertexEnd:e=>{this.emit("lr-map-draw-vertex-end",e)},showError:e=>{this.showDrawingError(e)},clearError:()=>{this.drawingIssue=void 0},resetMode:()=>{this.resetDrawingMode()},overlays:()=>this.ownedOverlayInput().overlays,rearm:e=>{this.drawingResetting=!0;try{this.drawMode=e}finally{this.drawingResetting=!1}},suppressClick:()=>{this.suppressDrawingClick=!0},syncCursor:()=>{this.syncMapCursor()},changed:()=>{this.drawingRevision+=1},invalidate:()=>{this.readiness.invalidate()},check:()=>{this.readiness.check()},fail:()=>{this.readiness.fail()},accentColor:()=>K(this,`var(${ja})`,"accent"),resolve:(e,t)=>this.drawingPaint[t]??this.resolveStyleOverride(e,t)}}showDrawingError(e){this.drawingIssue=e??"inactive",this.announcements.announceAssertive(this.drawingErrorMessage())}drawingErrorMessage(){switch(this.drawingIssue){case"invalid-coordinate":return this.localize("mapDrawingInvalidCoordinate");case"duplicate-vertex":return this.localize("mapDrawingDuplicateVertex");case"vertex-limit":return this.localize("mapDrawingVertexLimit",void 0,{count:this.formatLocaleNumber(512)});case"empty":case"too-few-vertices":return this.localize("mapDrawingTooFewVertices",void 0,{count:this.formatLocaleNumber(this.drawMode==="polygon"?3:2)});case"inactive":return this.localize("mapDrawingUnavailable");default:return this.localize("mapDrawingInvalidGeometry")}}activateMapCenter(){let e=this._map;if(e)try{let t=Qe(e.getCenter());if(!t||this._map!==e)return;let i=e.project?.([t[0],t[1]]),r=i?.x,n=i?.y;if(!J(r)||!J(n)||this._map!==e)return;this.handleMapInteraction("click",{point:{x:r,y:n},lngLat:{lng:t[0],lat:t[1]}},"keyboard")}catch{}}interactionPosition(e){let t=this.containerEl,i=t.getBoundingClientRect(),r=U(e,"x"),n=U(e,"y");(!J(r)||!J(n))&&(r=t.clientWidth/2,n=t.clientHeight/2);let o=r,s=n;return{point:Object.freeze([o,s]),clientX:i.left+t.clientLeft+o,clientY:i.top+t.clientTop+s}}handleMapInteraction(e,t,i="pointer"){let r=this.drawingController;if(e==="click"&&i==="pointer"&&(this.suppressDrawingClick||r?.consumeClick())){this.suppressDrawingClick=!1;return}if(r?.dispatching)return;if(this.queryingMap){this.interactionQuery++;return}if(!this.mapInteractionAllowed()){this.clearMapHover();return}let n=this._map,o=this.interactionGeneration,s=++this.interactionQuery,c=this.mapStyle,l=()=>this._map===n&&o===this.interactionGeneration&&s===this.interactionQuery&&c===this.mapStyle&&this.mapInteractionAllowed(),p,d,h,u;this.queryingMap=!0;try{if(p=Qe(U(t,"lngLat")),!p||!l())return;if(e==="click"&&r?.active&&!this.pickMode){r.editing||r.add(p);return}let w,O=this.interactions,z=Number.NaN;try{z=n.getZoom()}catch{}let I=ra({getLayer:D=>{let Y=n.getLayer(D),W=O.find(A=>A.layerId===D),k=W?.origin;if(k==="data-layer"&&Number.isFinite(z)){let A=this.committedDataLayers.find(S=>S.sourceId===W?.source)??this.committedExternalLayers.find(S=>S.sourceId===W?.source);if(A&&(z<A.minZoom||z>=A.maxZoom))return}return Y&&na(n,D,Y,z,k==="overlay"||k==="basemap")?Y:void 0},queryRenderedFeatures:(D,Y)=>(w=n.queryRenderedFeatures([D.x,D.y],{layers:[...Y.layers]}),w)},U(t,"point"),O.map(({layerId:D,owner:Y,interactive:W,priority:k})=>({layerId:D,owner:Y,interactive:W,priority:k})),{current:l});if(!l()||I.status!=="hit"&&I.status!=="none")return;if(I.status==="hit"){if(h=O.find(W=>W.layerId===I.hit.layerId),!h)return;let D=I.hit,Y=D.id===void 0?void 0:this.stateRouter.resolve({origin:h.origin,source:h.source,id:D.id,...h.sourceLayer?{sourceLayer:h.sourceLayer}:{}});d=Object.freeze({layerId:D.layerId,origin:h.origin,source:h.source,properties:D.properties,...D.id===void 0?{}:{id:D.id},...h.sourceLayer?{sourceLayer:h.sourceLayer}:{},...Y?{target:Y}:{}}),u=U(w,String(I.featureIndex))}if(!l())return}finally{this.queryingMap=!1}if(!p)return;let m=()=>Object.freeze({lngLat:p,...this.interactionPosition(U(t,"point")),...d?{hit:d,feature:Hl(u,d)}:{}});if(e==="mousemove"){let w=d?JSON.stringify([d.origin,d.source,d.sourceLayer??null,d.layerId,d.id===void 0?["anonymous",s]:["id",d.id]]):void 0;if(w!==this.hovered?.key){if(this.clearMapHover(),!l())return;if(d&&w){let O=m();this.hovered={key:w,detail:O},this.emit("lr-map-feature-enter",O)}}l()&&this.syncMapCursor();return}if(e==="contextmenu"){this.emit("lr-map-contextmenu",m());return}if(this.pickMode){this.emit("lr-map-pick",Object.freeze({...m(),trigger:"pointer"}));return}let f=++this.clusterZoomToken,b=h?.cluster?"cluster":h?.origin,v=this.canonicalChoropleth,g=b==="choropleth"&&v?.noData!==void 0&&typeof d?.properties[v.field]!="number";this.emit("lr-map-click",{lngLat:p,...this.interactionPosition(U(t,"point")),feature:u,origin:b,sourceId:b==="choropleth"?void 0:h?.source,...h?.sourceLayer?{sourceLayer:h.sourceLayer}:{},...d?{hit:d,...d.target?{target:d.target}:{}}:{},...g?{noData:!0}:{},...i==="keyboard"?{trigger:i}:{}}),b==="cluster"&&h&&f===this.clusterZoomToken&&l()&&this.zoomIntoCluster(h.source,u)}cancelFeaturePreparation(){this.retainedOverlayInteractions=!1,this.interactionGeneration++,this.featureStates?.cancel(),this.clearMapHover(),this.ownedFeatures?.cancel(),this.externalFeatures?.cancel(),this.finishFeatureWork?.(),this.finishFeatureWork=void 0,this.featureGeneration+=1,this.featureAbort?.abort(),this.featureAbort=void 0,this.preparingFeatures=!1}generatedFeatureRequirements(){let e={},t=[],i=(n,o)=>{for(let[s,c]of o.entries())t.push({id:`${n}-${c}-${s}`,type:c,source:n})},r=this.canonicalChoropleth;r&&(e.choropleth={type:"geojson",data:r.geojson},r.stops.length&&i("choropleth",["fill"]));for(let[n,o]of this.canonicalDataLayers.entries()){let s=`data-${n}`,c=o.cluster;e[s]={type:"geojson",data:o.geojson,...c?{cluster:!0,clusterRadius:c.radius,clusterMaxZoom:c.maxZoom}:{}},o.kind==="heatmap"?i(s,["heatmap"]):(i(s,c?["circle"]:["fill","line","circle"]),(o.label||c&&this.styleProvidesGlyphs()||o.point?.iconField&&o.point.icons.length)&&i(s,["symbol"]))}return{sources:e,layers:t}}externalLayerInput(e,t,i){if(i.externalStyle!==this._styleGeneration&&(i.externalStyle=this._styleGeneration,i.external.clear()),!e)return{sources:[],layers:[],hits:new Map};let r=new Set([...t.sources.map(o=>o.id),...t.layers.map(o=>o.layer.id)]),n=(o,s)=>!r.has(o)&&!r.has(`${o}-render`)&&!r.has(`${o}-label`)&&!r.has(`${o}-hit`)&&!r.has(`${o}-hit-source`)&&(!this._map?.getSource(`${o}-hit-source`)&&!this._map?.getLayer(`${o}-hit`)||this.externalFeatures?.ownsLayer(`${o}-hit`)===!0)&&(s||!this._map?.getSource(o)&&!this._map?.getLayer(`${o}-render`)&&!this._map?.getLayer(`${o}-label`));return e(this._canonicalExternalLayers,{nativeId:o=>{let s=i.external.get(o.sourceId);if(s&&n(s,this.externalFeatures?.ownsLayer(`${s}-render`)===!0))return s;for(let c=0;c<512;c++){let l=`lr-external-layer-${i.nextExternal++}`;if(n(l,!1))return i.external.set(o.sourceId,l),l}throw new Error("Map source identity is unavailable.")},color:o=>K(this,o,"accent"),styleColor:o=>{let s=Ve(this,o,!0);if(!s)throw new Error("Map color could not be resolved.");return s},hidden:new Set(this.hiddenCategories),glyphs:this.styleProvidesGlyphs(),mutedOpacity:this.hiddenOpacity})}dataLayerOrderGroups(e,t,i){let r=[];for(let n of this.canonicalDataLayers){let o=this.resolveDataLayerSourceId(n,i),s=n.kind==="heatmap"?["-heatmap"]:n.cluster?["-cluster",...this.styleProvidesGlyphs()?["-cluster-count"]:[],"-circle"]:["-fill","-line","-circle"];n.kind!=="heatmap"&&n.point?.iconField&&n.point.icons.length&&s.push("-point-icon"),n.label&&s.push("-label"),r.push({id:n.sourceId,layerIds:s.map(c=>`${o}${c}`),...n.before?{before:n.before}:{}})}for(let n of this._canonicalExternalLayers){let o=i.external.get(n.sourceId),s=t.layers.filter(c=>c.layer.source===o||c.layer.source===`${o}-hit-source`).map(c=>c.layer.id);r.push({id:n.sourceId,layerIds:s,...n.before?{before:n.before}:{}})}for(let n of e.layers)r.push({id:n.layer.id,layerIds:[n.layer.id],...n.before?{before:n.before}:{}});return r}nativeLayerOrder(e){let t=U(e.getStyle?.(),"layers");return Array.isArray(t)?t.map(i=>U(i,"id")).filter(i=>typeof i=="string"):[]}applyDataLayerOrder(e,t,i){let r=this._map;if(!r||!t())return;let n=this.nativeLayerOrder(r);if(!t())return;let o=new Set(n),s=e.map(u=>({...u,layerIds:u.layerIds.filter(m=>o.has(m))})).filter(u=>u.layerIds.length),c=ve.loaded;if(!c)throw new Error("Map layer order is unavailable.");let l=i?i.plan(n,s):c.planMapLayerOrder(n,s);if(!l.valid||l.operations.some(u=>u.kind!=="move")||l.operations.length&&!r.moveLayer)throw new Error("Map layer order is unavailable.");if(!i){try{for(let u of l.operations)if(!t()||(r.moveLayer(u.id,u.before),!t()))return}catch(u){let m=new Set(s.flatMap(f=>f.layerIds));for(let f=n.length-1;f>=0&&t();f--){let b=n[f];if(m.has(b))try{r.moveLayer(b,n[f+1])}catch{break}}throw u}return}let p=(u,m)=>u.length===m.length&&u.every((f,b)=>f===m[b]),d=(u,m)=>{u.splice(u.indexOf(m.id),1),u.splice(m.before===void 0?u.length:u.indexOf(m.before),0,m.id)},h=0;try{for(let m of l.operations)if(!t()||(h+=1,r.moveLayer(m.id,m.before),!t()))return;let u=this.nativeLayerOrder(r);if(!t())return;if(!p(u,l.order))throw new Error("Map layer order was not applied.");i.commit(l.order)}catch(u){if(!t())throw u;let m=this.nativeLayerOrder(r);if(!t())throw u;let f=[...n],b=p(m,f);for(let g of l.operations.slice(0,h))d(f,g),b||=p(m,f);let v=new Set(l.operations.slice(0,h).map(g=>g.id));for(let g=n.length-1;b&&g>=0&&t();g--){let w=n[g];if(!v.has(w))continue;let O=this.nativeLayerOrder(r);if(!t()||!O.includes(w))break;let z=n.slice(g+1).find(D=>O.includes(D)),I=O.filter(D=>D!==w);I.splice(z===void 0?I.length:I.indexOf(z),0,w);try{r.moveLayer(w,z)}catch{break}if(!t()||!p(this.nativeLayerOrder(r),I))break}throw u}}reconcileGeneratedLayers(){let e=this._map;if(!e||!this._styleLoaded||this.dataLayerRuntimePending()||((this.dataLayerIssue||this.pendingDataLayerIssue)&&(this._canonicalDataLayersSource=li),this.cancelFeaturePreparation(),this._map!==e||!this.isConnected))return Promise.resolve();this.readiness.invalidate();let t,i=new Promise(E=>{t=E});this.featureWork=i,this.finishFeatureWork=t;let r=this.featureGeneration,n=this._connectGeneration,o=this._styleGeneration,s=this.mapStyle,c=this.dataLayers,l=this.choropleth,{overlays:p,images:d,styleOverrides:h}=this.ownedOverlayInput(),u=this.imageProvider,m=this.hiddenCategories,f=this.interactiveBasemapLayers,b=[e,n,o,s,c,l,d,u,h,f,m],v,g,w,O,z=!1,I=!1,D=!1,Y,W,k,A={geojson:new Map(this.plannedDataLayerIds),external:new Map(this.externalSourceIds),nextGeojson:this._nextDataLayerId,nextExternal:this.externalIdCounter,externalStyle:this.externalIdStyle},S=new AbortController;this.featureAbort=S,this.preparingFeatures=!0;let M=()=>this.isConnected&&this._map===e&&r===this.featureGeneration&&n===this._connectGeneration&&o===this._styleGeneration&&s===this.mapStyle&&c===this.dataLayers&&l===this.choropleth&&this.sameOwnedOverlayInput(p,d,h)&&u===this.imageProvider&&f===this.interactiveBasemapLayers&&(!g?.sources.length&&!this.externalFeatureWorkStarted||m===this.hiddenCategories),y=()=>{if(!M()||S.signal.aborted)return;I=!0,this.plannedDataLayerIds.clear();for(let[te,X]of A.geojson)this.plannedDataLayerIds.set(te,X);this.externalSourceIds.clear();for(let[te,X]of A.external)this.externalSourceIds.set(te,X);if(this._nextDataLayerId=A.nextGeojson,this.externalIdCounter=A.nextExternal,this.externalIdStyle=A.externalStyle,this.prepareStateRetirement(v.overlays),!M()||S.signal.aborted)return;let E=this.canonicalChoropleth,j=E?this.resolveChoroplethSourceId(E.sourceId):void 0;if(this._appliedChoroplethSourceId&&this._appliedChoroplethSourceId!==j&&this.removeChoropleth(),!this.withMapPaintBatch(()=>{this.rebuildGeneratedLayers?(this.applyChoropleth(),this.applyDataLayers(M),this.rebuildGeneratedLayers=!1):(this.applyDataLayers(M),this.applyChoropleth())}))return;let $=()=>{if(!(!M()||S.signal.aborted)){if(w){if(this.applyDataLayerOrder(w,M,O),!M())return;this.groupOrderActive=z}M()&&(this.committedDataLayers=this._canonicalDataLayers,this.committedExternalLayers=this._canonicalExternalLayers,this.setDataLayerIssue(!1),this.configureMapInteractions(v.overlays,g),!(!M()||S.signal.aborted)&&(this.replayFeatureStates(e,M,S.signal),!(!M()||S.signal.aborted)&&(this.featureAbort=void 0,this.preparingFeatures=!1,this.retainedOverlayInteractions=!1,this.committedInteractionInputs=b,this.syncDrawing(),this.syncMapCursor(),this.pendingDrawingTheme&&M()&&(this.pendingDrawingTheme=!1,this.drawingController?.repaint()),M()&&(this.flushMapLoad(e),t(),this.readiness.check()))))}};Y=$;let pe=()=>{D?W?.():$()},me=v.overlays;if(!this.optionalFeatureWorkStarted&&!this.externalFeatureWorkStarted&&g.sources.length===0&&me.sources.length===0&&me.layers.length===0&&v.images.length===0&&v.styleOverrides.length===0){try{$()}catch{L()}return}this.optionalFeatureWorkStarted=!0;let Q=()=>{D?k?.():M()&&!S.signal.aborted&&L()},le=this.externalFeatureWorkStarted||g.sources.length>0;le&&(this.externalFeatureWorkStarted=!0);let ge=({MapOwnedFeatures:te})=>{if(!M()||S.signal.aborted)return;let X=this.ownedFeatures??=new te,ie=()=>X.reconcile(e,o,v,{owner:this,signal:S.signal,isCurrent:M,beforeSourceChange:F=>{this.featureStates?.refreshNative("overlay",F.id)},isGeneratedLayer:F=>this.externalFeatures?.ownsLayer(F)===!0||F===this._appliedFillLayerId||[...this._appliedDataLayerIds.values()].some(re=>kt.some(de=>F===`${re}${de}`)),resolve:(F,re)=>this.resolveStyleOverride(F,re),styleLayers:()=>this._styleLayers});if(le){let F=()=>(this.externalFeatures??=new te).reconcile(e,o,{overlays:{sources:g.sources,layers:g.layers},images:[],styleOverrides:[]},{owner:this,signal:S.signal,isCurrent:M,isGeneratedLayer:()=>!1,beforeSourceChange:re=>{this.featureStates?.refreshNative("data-layer",re.id)},resolve:re=>re});(this._canonicalExternalLayers.some(re=>!!re.style?.iconIds.length)?ie().then(()=>M()&&!S.signal.aborted?F():void 0):F().then(()=>M()&&!S.signal.aborted?ie():void 0)).then(pe).catch(Q)}else ie().then(pe).catch(Q)},N=ve.loaded;N?ge(N):ve().then(ge).catch(Q)},L=()=>{if(M()){if(this.preparingFeatures=!1,this.retainedOverlayInteractions=!1,t(),!I&&this.mapLoadEmitted&&!this.pendingMapLoad){this._canonicalDataLayers=this.committedDataLayers,this._canonicalExternalLayers=this.committedExternalLayers,this.setDataLayerIssue(!0),this.readiness.check();return}if(this.readiness.fail(),!this.mapLoadEmitted||this.pendingMapLoad){this.failInitialization("initialization-failed");return}this.scheduleAfterUpdate(()=>{M()&&this.failInitialization("initialization-failed")},`map-feature-failure-${r}`)}},x=E=>{if(this.syncPaintTheme(),!M()||S.signal.aborted){t();return}let j=ve.loaded,$=j?j.resolveMapOwnedOverlayPaint(E.overlays,(N,te)=>this.resolveStyleOverride(N,te)):E.overlays;v={...E,overlays:$};let pe=new Set([...$.sources.map(N=>N.id),...$.layers.map(N=>N.layer.id)]);for(let N of this.canonicalDataLayers){let te=this.resolveDataLayerSourceId(N,A);if(pe.has(te)||kt.some(X=>pe.has(`${te}${X}`)))throw new Error("Map resource identity conflicts.")}if(g=this.externalLayerInput(j?.buildMapExternalLayers,$,A),!M()||S.signal.aborted){t();return}let me=v.styleOverrides.some(N=>N.before!==void 0);if(z=me||this.canonicalDataLayers.some(N=>N.before!==void 0)||this._canonicalExternalLayers.some(N=>N.before!==void 0)||$.layers.some(N=>N.before!==void 0),this.groupOrderActive||z){if(!j||typeof e.getStyle!="function"||typeof e.moveLayer!="function")throw new Error("Map layer order is unavailable.");if(w=this.dataLayerOrderGroups($,g,A),me||this.basemapOrder?.active){let F=this.basemapOrder??=new j.MapBasemapOrder,re=new Set(w.flatMap(de=>de.layerIds));O=F.stage(this.nativeLayerOrder(e),v.styleOverrides,this._styleLayers,de=>re.has(de)||de===this._appliedFillLayerId||this.ownedFeatures?.ownsLayer(de)===!0||this.externalFeatures?.ownsLayer(de)===!0||this.drawingController?.ownsLayer(de)===!0)}let N=O?O.plan(this.nativeLayerOrder(e),w):j.planMapLayerOrder(this.nativeLayerOrder(e),w);if(!N.valid)throw new Error("Map layer order is invalid.");if(!1,!M()){t();return}let te=[...w,...O?.groups??[]],X=new Map(te.map(F=>[F.id,F.layerIds[0]]));for(let F of te)for(let re of F.layerIds)X.has(re)||X.set(re,F.layerIds[0]);let ie=F=>F.before&&X.has(F.before)?{...F,before:X.get(F.before)}:F;v={...v,overlays:{sources:$.sources,layers:$.layers.map(ie)}},g={...g,layers:g.layers.map(ie)}}let Q=()=>{let N=v.overlays;if(g.sources.length||N.sources.length||N.layers.length){if(!j)throw new Error("Map resources are unavailable.");j.snapshotMapOwnedFeatureInput({overlays:{sources:[...N.sources,...g.sources],layers:[...N.layers,...g.layers]},images:v.images,styleOverrides:v.styleOverrides})}if(this.canonicalDataLayers.some(X=>X.placementRequested)&&typeof e.setLayerZoomRange!="function")throw new Error("Map layer bounds are unavailable.");let te=this.committedInteractionInputs?.every((X,ie)=>X===b[ie])===!0&&this.ownedFeatures?.canRetainInteractions(e,o,v.overlays)===!0;!M()||S.signal.aborted||(this.retainedOverlayInteractions=te)},le=()=>{if(!M()||S.signal.aborted||typeof e.prepareFeatures!="function")return;let N=this.generatedFeatureRequirements(),te=JSON.stringify([Object.values(N.sources??{}).map(X=>X.type),(N.layers??[]).map(X=>X.type)]);if(te!==this.preparedFeatureSignature)return e.prepareFeatures(N,{signal:S.signal}).then(()=>{M()&&!S.signal.aborted&&(this.preparedFeatureSignature=te)})};if(g.sources.length||this.externalFeatureWorkStarted){if(!j)throw new Error("Map resources are unavailable.");let N=this.externalSourceEffects??=new j.MapExternalSourceEffects,te=new Map(this._canonicalExternalLayers.filter(ie=>ie.kind==="canvas").map(ie=>[A.external.get(ie.sourceId),ie.redrawRevision??0])),X=()=>this.isConnected&&this._map===e&&this._styleGeneration===o&&this._connectGeneration===n&&this.mapStyle===s;N.reconcile(e,o,g.sources,te,{owner:this,signal:S.signal,isCurrent:M,isLive:X,canPauseCanvas:ie=>(this.canonicalDataLayers,!this.invalidDataLayerModel&&this._canonicalExternalLayers.some(F=>F.kind==="canvas"&&this.externalSourceIds.get(F.sourceId)===ie&&F.source.animate===!1)),retire:()=>{X()&&this.failInitialization("initialization-failed")}},()=>new Promise((ie,F)=>{let re=()=>{F(new Error("Map resource application was superseded."))},de=()=>{S.signal.removeEventListener("abort",re)};if(D=!0,W=()=>{de(),ie()},k=()=>{de(),F(new Error("Map resources could not be applied."))},S.signal.addEventListener("abort",re,{once:!0}),S.signal.aborted){de(),re();return}try{y()}catch(rs){de(),F(rs)}}),async ie=>{g={...g,sources:ie},Q(),await le()}).then(()=>{M()&&!S.signal.aborted&&Y?.()}).catch(()=>{M()&&!S.signal.aborted&&L()});return}if(Q(),!M()||S.signal.aborted){t();return}let ge=le();ge?ge.then(y).catch(()=>{M()&&!S.signal.aborted&&L()}):y()};try{let E=this.canonicalDataLayers;if(this.invalidDataLayerModel||this.dataLayerRuntimeUnavailable()||E.some($=>$.invalidLabel)||E.some($=>$.label!==void 0)&&!this.styleProvidesGlyphs())throw new Error("Map labels or sources are unavailable.");let j=ve.loaded;j?x(j.snapshotMapOwnedFeatureInput({overlays:p,images:d,styleOverrides:h})):!this._canonicalExternalLayers.length&&!this.groupOrderActive&&!E.some($=>$.before!==void 0)&&!Sa(p,d,h)&&!Pi(f)?.length?x(ul):ve().then($=>{M()&&!S.signal.aborted&&x($.snapshotMapOwnedFeatureInput({overlays:p,images:d,styleOverrides:h}))}).catch(L)}catch{L()}return i}resolveStyleOverride(e,t){if(!/(?:-color|-gradient)$/u.test(t))return e;let i=r=>{if(typeof r=="string"&&jl.test(r)){let n=Ve(this,r,!0);if(!n)throw new Error("Map color could not be resolved.");return n}return Array.isArray(r)?r[0]==="literal"?r:r.map(i):r!==null&&typeof r=="object"?Object.fromEntries(Object.entries(r).map(([n,o])=>[n,i(o)])):r};return i(e)}applyChoropleth(){if(!this._map)return;this.syncPaintTheme();let e=this.canonicalChoropleth;if(!e){this.removeChoropleth();return}let{geojson:t,geojsonProjection:i,stops:r}=e,n=this.resolveChoroplethSourceId(e.sourceId),o=`${n}-fill`;this._appliedChoroplethSourceId&&this._appliedChoroplethSourceId!==n&&this.removeChoropleth(),Ta(i,"choropleth");let s=this._map.getSource(n);if(s?this.pushGeoJson(s,n,t,i):(this._map.addSource(n,{type:"geojson",data:t}),this._appliedGeoJson.set(n,i)),this._appliedChoroplethSourceId=n,r.length===0)return;let{geojson:c,geojsonProjection:l,...p}=e,d=JSON.stringify(p);if(this.appliedChoroplethPaintKey===d&&this._map.getLayer(o))return;let h=this.choroplethColorExpression(e),u=this.choroplethOutlineExpression(e,h);this._map.getLayer(o)?(this.setMapPaint(o,"fill-color",h),this.setMapPaint(o,"fill-opacity",this.fillOpacity),this.setMapPaint(o,"fill-outline-color",u??null)):this._map.addLayer({id:o,type:"fill",source:n,paint:{"fill-color":h,"fill-opacity":this.fillOpacity,...u?{"fill-outline-color":u}:{}}}),this.appliedChoroplethPaintKey=d,this._appliedFillLayerId=o}choroplethColorExpression(e){let{field:t,stops:i}=e,r=i.map(([s,c])=>[s,K(this,c,void 0)]),n;if(e.interpolation==="step"){let s=e.stepBaseColor?K(this,e.stepBaseColor,void 0):r[0][1];n=["step",["get",t],s];for(let[c,l]of r)n.push(c,l)}else{n=["interpolate",e.interpolation==="logarithmic"?["exponential",mr]:["linear"],["get",t]];for(let[s,c]of r)n.push(s,c)}let o=e.noData;return o?["case",Ma(t),n,this.choroplethNoDataColor(o)]:n}choroplethNoDataColor(e){return K(this,e.color,"neutral")}choroplethOutlineExpression(e,t){let i=e.noData?.strokeColor;if(!i)return;let r=Ve(this,i,!0);if(r)return["case",Ma(e.field),t,r]}resolveChoroplethSourceId(e){let t=new Set(this.canonicalDataLayers.map(r=>r.sourceId)),i=e;for(let r=0;r<512;r+=1){let n=i!==this._appliedChoroplethSourceId&&!!this._map?.getSource(i),o=`${i}-fill`,s=o!==this._appliedFillLayerId&&!!this._map?.getLayer(o);if(!t.has(i)&&!n&&!s)return i;i=`lr-choropleth-${i}`}throw new Error("Map source namespace is unavailable.")}removeChoropleth(){!this._map||!this._appliedChoroplethSourceId||(this.featureStates?.refreshNative("choropleth",this._appliedChoroplethSourceId),this._appliedFillLayerId&&this._map.getLayer(this._appliedFillLayerId)&&this.removeMapLayer(this._appliedFillLayerId),this._map.getSource(this._appliedChoroplethSourceId)&&this._map.removeSource(this._appliedChoroplethSourceId),this._appliedGeoJson.delete(this._appliedChoroplethSourceId),this._appliedChoroplethSourceId=void 0,this._appliedFillLayerId=void 0,this.appliedChoroplethPaintKey=void 0)}applyDataLayers(e){if(!this._map)return;let t=this._map,i=this.dataLayers,r=this.mapStyle,n=this.featureGeneration,o=e??(()=>this.isConnected&&this._map===t&&i===this.dataLayers&&r===this.mapStyle&&n===this.featureGeneration),s=()=>{if(!o())throw new DOMException("Map update superseded.","AbortError")};s(),this.syncPaintTheme();let c=this.canonicalDataLayers,l=new Set(c.map(p=>p.sourceId));for(let p of this._appliedDataLayerIds.keys())l.has(p)||this.removeDataLayer(p);for(let p of c){s();let{sourceId:d,geojson:h,geojsonProjection:u}=p,m=lr(p),f=this._appliedDataLayerShapes.get(d),b=this.resolveDataLayerSourceId(p);f!==void 0&&f!==m&&this.removeDataLayer(d),Ta(u,d);let v=p.cluster,g=this._map.getSource(b);s(),g?this.pushGeoJson(g,b,h,u):(this._map.addSource(b,{type:"geojson",data:h,...v?{cluster:!0,clusterRadius:v.radius,clusterMaxZoom:v.maxZoom}:{}}),s(),this._appliedGeoJson.set(b,u)),s();let{geojson:w,geojsonProjection:O,...z}=p,I=JSON.stringify(z);(!g||this.appliedLayerPaintKeys.get(b)!==I)&&(this.applyDataLayerRendering(b,p,o),s(),this.applyDataLayerRange(b,p,o),s(),this.appliedLayerPaintKeys.set(b,I)),this._appliedDataLayerIds.set(d,b),this._appliedDataLayerShapes.set(d,m)}}applyDataLayerRange(e,t,i){let r=this._map;if(!r||!t.placementRequested&&!this.appliedRowRanges.has(e))return;let n=[];for(let s of kt){let c=`${e}${s}`,l=r.getLayer(c);if(!i())throw new DOMException("Map update superseded.","AbortError");if(!l)continue;let p=Math.max(t.minZoom,s==="-label"?t.label?.minZoom??0:0),d=t.maxZoom,h=U(l,"minzoom"),u=U(l,"maxzoom"),m=typeof h=="number"?h:0,f=typeof u=="number"?u:24;(p!==m||d!==f)&&n.push({id:c,min:p,max:d,oldMin:m,oldMax:f})}if(n.length&&typeof r.setLayerZoomRange!="function")throw new Error("Map layer bounds are unavailable.");let o=[];try{for(let s of n){if(!i())throw new DOMException("Map update superseded.","AbortError");if(o.push(s),r.setLayerZoomRange(s.id,s.min,s.max),!i())throw new DOMException("Map update superseded.","AbortError")}this.appliedRowRanges.set(e,`${t.minZoom}:${t.maxZoom}`)}catch(s){for(let c of o.reverse()){if(!i())break;try{r.setLayerZoomRange(c.id,c.oldMin,c.oldMax)}catch{break}}throw s}}applyDataLayerRendering(e,t,i){if(t.kind==="heatmap"){this.applyHeatmapLayer(e,t);return}let r=t.cluster;if(r?this.applyClusterLayers(e,t,r):this.applyGeometryLayers(e,t),!i())throw new DOMException("Map update superseded.","AbortError");if(this.applyPointIcons(e,t),!i())throw new DOMException("Map update superseded.","AbortError");this.applyGeoLabel(e,t,i)}paintDataLayer(e,t){if(t.kind==="heatmap"){this.paintHeatmapLayer(e,t);return}let i=t.cluster;if(i?this.paintClusterLayers(e,t,i):this.paintGeometryLayers(e,t),this.paintPointIcons(e,t),t.label&&this.appliedGeoLabels.has(e)){let r=_t().buildMapLabelLayer(`${e}-label`,e,t.label,n=>K(this,n,t.tone));for(let[n,o]of Object.entries(r.paint))this.setMapPaint(r.id,n,o)}}applyGeoLabel(e,t,i){let r=this._map;if(!r)return;let n=()=>{if(!i())throw new DOMException("Map update superseded.","AbortError")};n();let o=`${e}-label`,s=r.getLayer(o);if(n(),!t.label){this.appliedGeoLabels.delete(e),s&&(r.removeLayer(o),n());return}let c=_t().buildMapLabelLayer(o,e,t.label,h=>K(this,h,t.tone)),l=t.cluster?{...c,filter:["all",["!",["has","point_count"]],["==",["geometry-type"],"Point"]]}:c,p=JSON.stringify(l);if(this.appliedGeoLabels.get(e)===p)return;let d=this.appliedGeoLabels.get(e);if(s&&d&&typeof r.setLayoutProperty=="function"&&typeof r.setFilter=="function"&&typeof r.setLayerZoomRange=="function"){let h=JSON.parse(d),u=[],m=(f,b)=>{if(!i())throw new DOMException("Map update superseded.","AbortError");if(this.appliedGeoLabels.delete(e),u.push(b),f(),!i())throw new DOMException("Map update superseded.","AbortError")};try{for(let f of["layout","paint"]){let b=h[f]??{},v=l[f]??{};for(let g of new Set([...Object.keys(b),...Object.keys(v)])){if(JSON.stringify(b[g])===JSON.stringify(v[g]))continue;let w=f==="layout"?r.setLayoutProperty:r.setPaintProperty;m(()=>{w.call(r,o,g,v[g]??null)},()=>{w.call(r,o,g,b[g]??null)})}}if(JSON.stringify(h.filter)!==JSON.stringify(l.filter)&&m(()=>{r.setFilter(o,l.filter??null)},()=>{r.setFilter(o,h.filter??null)}),h.minzoom!==l.minzoom&&m(()=>{r.setLayerZoomRange(o,Math.max(t.minZoom,t.label.minZoom),t.maxZoom)},()=>{r.setLayerZoomRange(o,typeof h.minzoom=="number"?h.minzoom:0,t.maxZoom)}),!i())throw new DOMException("Map update superseded.","AbortError")}catch(f){for(let b of u.reverse()){if(!i())break;try{b()}catch{break}}throw f}}else s&&(r.removeLayer(o),n()),r.addLayer(l),n();this.appliedGeoLabels.set(e,p)}applyGeometryLayers(e,t){if(!this._map)return;let i=t.tone,r=K(this,t.color,i),n=K(this,t.strokeColor??t.color,i),o=`${e}-fill`,s=`${e}-line`,c=`${e}-circle`;this._map.getLayer(o)||this._map.addLayer({id:o,type:"fill",source:e,filter:["==",["geometry-type"],"Polygon"],paint:{"fill-color":r,"fill-opacity":this.fillOpacity}}),this._map.getLayer(s)||this._map.addLayer({id:s,type:"line",source:e,filter:["in",["geometry-type"],["literal",["LineString","Polygon"]]],paint:{"line-color":this.lineColor(t),"line-width":t.line?.width??2,...t.line?{"line-opacity":t.line.opacity}:{}}}),this._map.getLayer(c)||this._map.addLayer({id:c,type:"circle",source:e,filter:["==",["geometry-type"],"Point"],paint:{"circle-color":n,"circle-radius":5}}),this.setMapPaint(s,"line-width",t.line?.width??2),this.setMapPaint(s,"line-opacity",t.line?.opacity??1),this.paintGeometryLayers(e,t)}paintGeometryLayers(e,t){if(!this._map)return;let i=t.tone,r=K(this,t.color,i);this.setMapPaint(`${e}-fill`,"fill-color",r),this.setMapPaint(`${e}-fill`,"fill-opacity",this.fillOpacity),this.setMapPaint(`${e}-line`,"line-color",this.lineColor(t)),this.paintPoints(e,t)}lineColor(e){let t=K(this,e.strokeColor??e.color,e.tone),i=e.line;return!i?.field||i.stops.length<2?t:fa(i.field,i.stops.map(([r,n])=>[r,K(this,n,e.tone)]),t)}mutedPointOpacity(e,t){let i=t?this.hiddenCategories:gi;if(!i.length)return this.appliedPointMuting.delete(e)?1:void 0;this.appliedPointMuting.add(e);let r=this.hiddenOpacity;return va(t,i,r)}paintPoints(e,t){if(!this._map)return;let i=t.point,r=K(this,t.strokeColor??t.color,t.tone),n=ga(i?.field,i?.field&&i.colors.length?i.colors.map(([c,l])=>[c,K(this,l,t.tone)]):[],r),o=`${e}-circle`;this.setMapPaint(o,"circle-color",n);let s=this.mutedPointOpacity(o,i?.field);s!==void 0&&(this.setMapPaint(o,"circle-opacity",s),this.setMapPaint(o,"circle-stroke-opacity",s)),!(!i&&!this.appliedPointPaint.has(e))&&(this.setMapPaint(o,"circle-radius",ya(i?.radius??5)),this.setMapPaint(o,"circle-stroke-width",i?.strokeWidth??0),this.setMapPaint(o,"circle-stroke-color",i?.strokeColor?K(this,i.strokeColor,t.tone):r),i?this.appliedPointPaint.add(e):this.appliedPointPaint.delete(e))}pointIconColor(e){let t=K(this,e.point?.iconColor??`var(${pi[e.tone??"accent"]})`,e.tone);return ki(this,t,is(this,e.tone))}removePointIcons(e){let t=this.appliedPointIcons.get(e);if(!t||!this._map)return;let i=`${e}-point-icon`;this._map.getLayer(i)&&this.removeMapLayer(i);for(let{id:r}of t.icons)this._map.hasImage?.(r)&&this._map.removeImage?.(r);this.appliedPointIcons.delete(e),this.appliedPointMuting.delete(i)}applyPointIcons(e,t){let i=this._map,r=t.point,n=JSON.stringify([r?.iconField,r?.iconSize,r?.icons]);if(this.appliedPointIcons.get(e)?.signature===n){this.paintPointIcons(e,t);return}if(this.removePointIcons(e),!r?.iconField||!r.icons.length||!i||typeof i.addImage!="function"||typeof i.hasImage!="function"||typeof i.updateImage!="function"||typeof i.removeImage!="function")return;let o=this.pointIconColor(t),s=[],c={signature:"",color:o,icons:s};this.appliedPointIcons.set(e,c);for(let l of r.icons){let p=za(this,l,o);if(!p)continue;let d;do d=`lr-point-icon-${this.nextPointIconId++}`;while(i.hasImage(d));s.push({id:d,icon:l}),i.addImage(d,p,{pixelRatio:2})}s.length&&(i.addLayer({id:`${e}-point-icon`,type:"symbol",source:e,filter:t.cluster?["all",["==",["geometry-type"],"Point"],["!",["has","point_count"]]]:["==",["geometry-type"],"Point"],layout:{"icon-image":["match",["get",r.iconField],...s.flatMap(({id:l,icon:p})=>[p.value,l]),""],"icon-size":r.iconSize/(We/2),"icon-allow-overlap":!0,"icon-ignore-placement":!0}}),s.length===r.icons.length&&(c.signature=n))}paintPointIcons(e,t){let i=this.appliedPointIcons.get(e);if(!i)return;let r=`${e}-point-icon`,n=this.mutedPointOpacity(r,t.point?.iconField);n!==void 0&&this.setMapPaint(r,"icon-opacity",n);let o=this.pointIconColor(t);if(o===i.color)return;let s=[];for(let{id:c,icon:l}of i.icons){let p=za(this,l,o);if(!p)return;s.push({id:c,raster:p})}for(let{id:c,raster:l}of s)this._map?.updateImage?.(c,l);i.color=o}clusterColorExpression(e,t){let i=e.tone;return ba(t.colorSteps.map(([r,n])=>[r,K(this,n,i)]),()=>K(this,e.color,i))}applyClusterLayers(e,t,i){if(!this._map)return;let r=t.tone,n=Fa(this,i.strokeColor,t),o=`${e}-cluster`,s=`${e}-cluster-count`,c=`${e}-circle`,l=this.clusterColorExpression(t,i),p=St(["get","point_count"],i.radiusSteps),d=ui(this,i.countColor)??K(this,`var(${pi[r??"accent"]})`,r),h=ui(this,i.countHaloColor);this._map.getLayer(o)||this._map.addLayer({id:o,type:"circle",source:e,filter:["has","point_count"],paint:{"circle-color":l,"circle-radius":p,"circle-stroke-width":1,"circle-stroke-color":n}}),this.styleProvidesGlyphs()&&!this._map.getLayer(s)&&this._map.addLayer({id:s,type:"symbol",source:e,filter:["has","point_count"],layout:{"text-field":["get","point_count_abbreviated"],"text-size":12,...i.countFont?{"text-font":[...i.countFont]}:{}},paint:{"text-color":d,...h?{"text-halo-color":h,"text-halo-width":i.countHaloWidth}:{}}}),this._map.getLayer(c)||this._map.addLayer({id:c,type:"circle",source:e,filter:["all",["==",["geometry-type"],"Point"],["!",["has","point_count"]]],paint:{"circle-color":n,"circle-radius":5}}),this.paintClusterLayers(e,t,i)}paintClusterLayers(e,t,i){if(!this._map)return;let r=t.tone,n=Fa(this,i.strokeColor,t),o=`${e}-cluster`;if(this.setMapPaint(o,"circle-color",this.clusterColorExpression(t,i)),this.setMapPaint(o,"circle-radius",St(["get","point_count"],i.radiusSteps)),this.setMapPaint(o,"circle-stroke-color",n),this.styleProvidesGlyphs()){this.setMapPaint(`${e}-cluster-count`,"text-color",ui(this,i.countColor)??K(this,`var(${pi[r??"accent"]})`,r));let s=ui(this,i.countHaloColor);this.setMapPaint(`${e}-cluster-count`,"text-halo-color",s??null),this.setMapPaint(`${e}-cluster-count`,"text-halo-width",s?i.countHaloWidth:null)}this.paintPoints(e,t)}applyHeatmapLayer(e,t){if(!this._map)return;let i=`${e}-heatmap`,r=t.heatmap,n=nr(r),o=this.heatmapColorExpression(t),s=Ct(r?.radius,Aa,1,200),c=Ct(r?.intensity,xa,0,100),l=Z(r?.opacity??Number.NaN,1,0,1);if(!this._map.getLayer(i)){this._map.addLayer({id:i,type:"heatmap",source:e,paint:{...n?{"heatmap-weight":n}:{},"heatmap-intensity":c,"heatmap-color":o,"heatmap-radius":s,...r?.opacity===void 0?{}:{"heatmap-opacity":l}}});return}this.paintHeatmapLayer(e,t)}paintHeatmapLayer(e,t){if(!this._map)return;let i=`${e}-heatmap`;this.setMapPaint(i,"heatmap-weight",nr(t.heatmap)??1),this.setMapPaint(i,"heatmap-intensity",Ct(t.heatmap?.intensity,xa,0,100)),this.setMapPaint(i,"heatmap-color",this.heatmapColorExpression(t)),this.setMapPaint(i,"heatmap-radius",Ct(t.heatmap?.radius,Aa,1,200)),this.setMapPaint(i,"heatmap-opacity",Z(t.heatmap?.opacity??Number.NaN,1,0,1))}heatmapColorExpression(e){let t=e.tone,i=(e.heatmap?.stops??[]).map(([r,n])=>[r,K(this,n,t)]);return wa(i,()=>Il.map(([r,n])=>[r,K(this,`var(${n})`,t)]))}styleHasTextFonts(e){try{if(!V(e))return!1;let t=q(e,"glyphs");if(fe(t))return!1;let i=he(t);if(typeof i=="string"&&i.trim().length>0)return!0;let r=q(e,"font-faces");if(fe(r))return!1;let n=he(r);if(!V(n))return!1;let o=Reflect.ownKeys(n);if(o.length===0||o.length>64)return!1;let s=0;for(let c of o){if(typeof c!="string"||!Object.getOwnPropertyDescriptor(n,c)?.enumerable)continue;if(!c.trim())return!1;s++;let l=q(n,c);if(fe(l))return!1;let p=he(l);if(typeof p=="string"){if(!p.trim())return!1;continue}let d=ut(p,257);if(d===void 0||d===0||d>256)return!1;for(let h=0;h<d;h++){let u=he(q(p,String(h)));if(!V(u))return!1;let m=Reflect.ownKeys(u);if(m.length>2||m.some(w=>w!=="url"&&w!=="unicode-range"))return!1;let f=he(q(u,"url"));if(typeof f!="string"||!f.trim())return!1;let b=q(u,"unicode-range");if(fe(b))return!1;if(b===ne)continue;let v=he(b),g=ut(v,65);if(g===void 0||g>64)return!1;for(let w=0;w<g;w++){let O=he(q(v,String(w)));if(typeof O!="string")return!1;let z=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i.exec(O);if(!z)return!1;if(z[3]!==void 0){if(z[3].length>6)return!1}else{let I=Number.parseInt(z[1],16),D=Number.parseInt(z[2]??z[1],16);if(I>D||D>1114111)return!1}}}}return s>0}catch{return!1}}styleProvidesGlyphs(){try{let e=this._map?.getStyle?.();if(this.styleHasTextFonts(e))return!0}catch{}return this.styleHasTextFonts(this.mapStyle)}resolveDataLayerSourceId(e,t){let i=e.sourceId,r=t?.geojson??this.plannedDataLayerIds,n=this._appliedDataLayerIds.get(i),o=r.get(i),s=this._appliedDataLayerShapes.get(i),c=s!==void 0&&s!==lr(e)?o!==n?o:void 0:n??o;if(c)return c;let l;do l=`lr-data-layer-${t?t.nextGeojson++:this._nextDataLayerId++}`;while(this._map?.getSource(l)||kt.some(p=>this._map?.getLayer(`${l}${p}`)));return r.set(i,l),l}removeDataLayer(e){if(!this._map)return;let t=this._appliedDataLayerIds.get(e);if(t){this.featureStates?.refreshNative("data-layer",t),this.removePointIcons(t),this.appliedPointPaint.delete(t),this.appliedGeoLabels.delete(t),this.appliedRowRanges.delete(t);for(let i of kt){let r=`${t}${i}`;this.appliedPointMuting.delete(r),this._map.getLayer(r)&&this.removeMapLayer(r)}this._map.getSource(t)&&this._map.removeSource(t),this._appliedDataLayerIds.delete(e),this.plannedDataLayerIds.get(e)===t&&this.plannedDataLayerIds.delete(e),this._appliedDataLayerShapes.delete(e),this._appliedGeoJson.delete(t),this.appliedLayerPaintKeys.delete(t)}}applyMarkers(){let e=this._map,t=this._maplibreModule;if(!e||!t)return;let i=new Set,r=new Map,n=new Set;for(let o of this.canonicalMarkers){let s=o.lngLat,c=[s[0],s[1]],l,p;if(o.id!==void 0){if(p=o.id,n.has(p))continue;n.add(p),l=`id:${p}`}else{let g=`${s[0]},${s[1]}`,w=r.get(g)??0;r.set(g,w+1),l=`coordinate:${g}#${w}`}i.add(l);let d=this._markerInstances.get(l),h=ht(o.color)??(o.color===void 0?"currentColor":void 0),u=this._markerSources.get(l);this._markerSources.set(l,o);let m=this._markerColors.get(l)===h,f=u!==void 0&&u.label===o.label&&Object.is(u.unsafeHtml,o.unsafeHtml);if(d&&m&&f&&u.lngLat[0]===s[0]&&u.lngLat[1]===s[1])continue;if(d&&!m){let g=d.getElement?.();g&&this.markerActivationDetails.delete(g),d.remove(),this._markerInstances.delete(l),this._markerColors.delete(l),d=void 0}if(d){d.setLngLat(c);let g=d.getPopup();if(!o.unsafeHtml&&!o.label)g&&d.setPopup(void 0);else if(g)f||cr(g,o);else{let w=cr(new t.Popup({offset:12}),o);d.setPopup(w),this.configurePopupSemantics(l,d,w)}}else{let g=new t.Marker(h?{color:h}:void 0).setLngLat(c);if(o.unsafeHtml||o.label){let w=cr(new t.Popup({offset:12}),o);g.setPopup(w),this.configurePopupSemantics(l,g,w)}g.addTo(e),this._markerInstances.set(l,g),this._markerColors.set(l,h)}let b=o.label?.trim()||ka(this,o.unsafeHtml);this._markerLabels.set(l,b||void 0);let v=this._markerInstances.get(l)?.getElement?.();if(v){qe(v,"marker");let g=this._markerInstances.get(l);this.configureMarkerInteraction(v,{id:p,lngLat:s,marker:o},b);let w=g?.getPopup();w&&g?(this.configurePopupSemantics(l,g,w),this.syncPopupSemantics(l,g,w)):(v.removeAttribute("aria-controls"),v.removeAttribute("aria-expanded"),v.removeAttribute("aria-haspopup"))}}for(let[o,s]of this._markerInstances)if(!i.has(o)){let c=s.getElement?.();c&&this.markerActivationDetails.delete(c),s.remove(),this._markerInstances.delete(o),this._markerColors.delete(o),this._markerLabels.delete(o),this._markerPopupIds.delete(o),this._markerSources.delete(o)}}configureMarkerInteraction(e,t,i=t.marker.label?.trim()||ka(this,t.marker.unsafeHtml)){this.markerActivationDetails.set(e,t),e.setAttribute("role","button"),e.tabIndex=0,e.setAttribute("aria-label",i||this.localize("mapMarker")),e.setAttribute("lang",this.effectiveLocale),!this.configuredMarkerElements.has(e)&&(this.configuredMarkerElements.add(e),e.addEventListener("click",r=>{r.defaultPrevented||this.emitMarkerActivation(e,"pointer")}),e.addEventListener("keydown",r=>{r.key!==" "&&r.key!=="Enter"||r.repeat||r.isComposing||r.keyCode===229||r.defaultPrevented||r.altKey||r.ctrlKey||r.metaKey||r.shiftKey||(r.key===" "&&r.preventDefault(),this.emitMarkerActivation(e,"keyboard"))},{capture:!0}))}emitMarkerActivation(e,t){if(!this.isConnected||this.mapInteractionBlocked())return;let i=this.markerActivationDetails.get(e);i&&this.emit("lr-map-marker-activate",{...i,source:t})}get effectiveMapLabel(){return _r(this)??kr(this.label)??(this.label===""?"":this.localize("map"))}popupId(e){let t=this._markerPopupIds.get(e);return t||(t=`map-popup-${this._connectGeneration}-${++this._nextPopupId}`,this._markerPopupIds.set(e,t)),t}configurePopupSemantics(e,t,i){!i||typeof i!="object"||this._configuredPopups.has(i)||(this._configuredPopups.add(i),i.on?.("open",()=>this.syncPopupSemantics(e,t,i)),i.on?.("close",()=>{t.getElement?.()?.setAttribute("aria-expanded","false")}))}stopObservingMapAllocation(){this.mapResizeObserver?.disconnect(),this.mapResizeObserver=void 0,this.observedMapContainer=void 0}observeMapAllocation(e,t){this.stopObservingMapAllocation();let i=t.ownerDocument.defaultView?.ResizeObserver;if(!i)return;let r,n=Ei(t);r=new i(()=>{if(this.mapResizeObserver!==r||this.observedMapContainer!==t||this.containerEl!==t||this._map!==e||!this.isConnected)return;try{this.cameraSession?this.writeCamera(()=>e.resize()):e.resize(),this.drawingController?.scheduleHandles()}catch{}this.geographicSceneRender?.refreshAllocation();let o=Ei(t);o!==n&&(n=o,this.scheduleAnchorSync())}),this.mapResizeObserver=r,this.observedMapContainer=t;try{r.observe(t)}catch{this.stopObservingMapAllocation()}}stopObservingPeerChrome(){let e=this.peerControlsResizeFrame;this.peerControlsResizeFrame=void 0,e&&e.view.cancelAnimationFrame(e.handle),this.peerControlsResizeObserver?.disconnect(),this.peerControlsResizeObserver=void 0,this.peerChromeObserver?.disconnect(),this.peerChromeObserver=void 0,this.observedPeerContainer=void 0}schedulePeerControlInsets(e,t){if(this.peerControlsResizeObserver!==e||this.observedPeerContainer!==t||this.containerEl!==t||!this.isConnected||this.peerControlsResizeFrame)return;let i=t.ownerDocument.defaultView;if(!i)return;let r={view:i,handle:0};this.peerControlsResizeFrame=r,r.handle=i.requestAnimationFrame(()=>{this.peerControlsResizeFrame===r&&(this.peerControlsResizeFrame=void 0,!(this.peerControlsResizeObserver!==e||this.observedPeerContainer!==t||this.containerEl!==t||t.ownerDocument.defaultView!==i||!this.isConnected)&&this.measurePeerControlInsets(t))})}measurePeerControlInsets(e){if(!(!this.isConnected||this.containerEl!==e)){for(let t of e.querySelectorAll(".maplibregl-ctrl-scale")){let i=t.style.width;i&&t.style.getPropertyValue("--_lr-map-scale-width")!==i&&t.style.setProperty("--_lr-map-scale-width",i)}for(let t of["top","bottom"]){let i=Math.max(0,...[...e.querySelectorAll(`.maplibregl-ctrl-${t}-left, .maplibregl-ctrl-${t}-right`)].map(s=>s.offsetHeight)),r=e.parentElement,n=`--_lr-map-controls-${t}`,o=`${i}px`;r&&r.style.getPropertyValue(n)!==o&&r.style.setProperty(n,o);for(let s of["left","right"]){let c=e.querySelector(`.maplibregl-ctrl-${t}-${s}`),l=`--_lr-map-controls-${t}-${s}`,p=`${c?this.cornerContentHeight(c):0}px`;r&&r.style.getPropertyValue(l)!==p&&r.style.setProperty(l,p)}}}}cornerContentHeight(e){let t=e.ownerDocument.defaultView,i=1/0,r=-1/0;for(let n of e.children){let o=n;if(!t||o.offsetParent!==e)continue;let s=t.getComputedStyle(o);i=Math.min(i,o.offsetTop-(Number.parseFloat(s.marginTop)||0)),r=Math.max(r,o.offsetTop+o.offsetHeight+(Number.parseFloat(s.marginBottom)||0))}return r>i?Math.round(r-i):0}syncPeerChromeParts(e=this.containerEl??this.renderRoot){let t=e.childElementCount?[...e.querySelectorAll(_l)]:[];zt(e)&&t.unshift(e);for(let i of t)for(let[r,n]of Qa){if(!i.matches(r))continue;if(qe(i,n),n.endsWith("-icon")&&i.setAttribute("aria-hidden","true"),n==="geolocate")for(let[s,c]of[["waiting","geolocate-waiting"],["active","geolocate-active"],["background","geolocate-background"],["error","geolocate-error"]]){let l=s==="error"?i.classList.contains("maplibregl-ctrl-geolocate-active-error")||i.classList.contains("maplibregl-ctrl-geolocate-background-error"):i.classList.contains(`maplibregl-ctrl-geolocate-${s}`);i.part.toggle(c,l)}if(n==="attribution"||n==="attribution-toggle"||n==="attribution-content"){let s=i.closest(".maplibregl-ctrl-attrib");i.part.toggle("attribution-expanded",!!s&&ar(s))}if(n==="scale"){let s=i.textContent??"",c=[...this.scaleLabels.keys()].sort((l,p)=>p.length-l.length).find(l=>s.endsWith(` ${l}`)||s.endsWith(`\xA0${l}`));if(c){let l=this.scaleLabels.get(c),p=this.scaleUnits()[l];this.scaleLabels.set(p,l);let d=s.slice(0,-c.length)+p;d!==s&&(i.textContent=d)}}let o=n==="attribution-toggle"?this.localize("mapToggleAttribution"):n==="zoom-in"?this.localize("zoomIn"):n==="zoom-out"?this.localize("zoomOut"):n==="compass"?this.localize("mapResetNorth"):n==="geolocate"?this.localize(i.disabled?"mapGeolocateUnavailable":"mapGeolocateFindLocation"):void 0;o!==void 0&&(i.getAttribute("aria-label")!==o&&i.setAttribute("aria-label",o),i.getAttribute("title")!==o&&i.setAttribute("title",o))}}syncAttributionState(){let e=this.controlLifecycle?.ownedRoot("attribution"),t=this.containerEl;if(!e||!t||!this.isConnected||!t.contains(e)){this.attributionState=void 0;return}let i=ar(e),r=this.attributionState;if(r?.root!==e){this.attributionState={root:e,expanded:i};return}r.expanded!==i&&(r.expanded=i,this.emit("lr-map-attribution-toggle",{expanded:i}))}syncPeerAttributionExpansion(e){for(let t of e.querySelectorAll(".maplibregl-control-container")){let i=[...t.querySelectorAll(".maplibregl-ctrl-attrib")].some(ar);for(let r of[t,...t.querySelectorAll(".map-control-row, .maplibregl-ctrl-top-left, .maplibregl-ctrl-top-right, .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right")])r.part.toggle("controls-attribution-expanded",i)}}observePeerChrome(){let e=this.containerEl;if(!e||(Ri(e,()=>this.isConnected&&this.containerEl===e),!this.isConnected||this.containerEl!==e)||(this.syncPeerChromeParts(e),this.syncPeerAttributionExpansion(e),this.observedPeerContainer===e&&this.peerChromeObserver))return;this.stopObservingPeerChrome();let t=e.ownerDocument.defaultView?.MutationObserver;if(!t)return;this.observedPeerContainer=e;let i=e.ownerDocument.defaultView?.ResizeObserver;if(i){let n=new i(()=>this.schedulePeerControlInsets(n,e));this.peerControlsResizeObserver=n;for(let o of e.querySelectorAll(".maplibregl-ctrl-top-left, .maplibregl-ctrl-top-right, .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right"))this.peerControlsResizeObserver.observe(o,{box:"border-box"})}this.measurePeerControlInsets(e);let r=new t(n=>{if(!this.isConnected||this.containerEl!==e||this.peerChromeObserver!==r)return;let o=new Set,s=!1,c=!1;for(let l of n)if(e.contains(l.target)){if(l.type==="attributes"&&zt(l.target)){if(l.attributeName==="class"&&!l.target.matches(".maplibregl-ctrl-geolocate, .maplibregl-ctrl-attrib"))continue;o.add(l.target),l.target.matches(".maplibregl-ctrl-attrib")&&(c=!0)}l.type==="characterData"&&o.add(l.target.parentElement),l.type==="childList"&&zt(l.target)&&l.target.matches(".maplibregl-ctrl-scale")&&o.add(l.target);for(let p of l.removedNodes)p.nodeType===1&&(s=!0);for(let p of l.addedNodes){if(p.nodeType!==1||!e.contains(p))continue;s=!0;let d=p;d.matches('.maplibregl-marker[part~="marker"]')||o.add(d)}}for(let l of o)this.syncPeerChromeParts(l);s&&Ri(e,()=>this.isConnected&&this.containerEl===e&&this.peerChromeObserver===r),!(!this.isConnected||this.containerEl!==e||this.peerChromeObserver!==r)&&((s||c)&&(this.syncPeerAttributionExpansion(e),this.syncAttributionState()),s&&this.schedulePeerControlInsets(this.peerControlsResizeObserver,e))});this.peerChromeObserver=r,r.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["disabled","class","open"]})}syncPopupSemantics(e,t,i){let r=t?.getElement?.();if(!r)return;let n=this.popupId(e);r.setAttribute("aria-controls",n),r.setAttribute("aria-haspopup","dialog"),r.setAttribute("aria-expanded",i?.isOpen?.()?"true":"false");let o=i?.getElement?.();if(!o)return;qe(r,"marker"),qe(o,"popup"),o.id=n,o.setAttribute("role","dialog"),o.setAttribute("lang",this.effectiveLocale),o.setAttribute("aria-label",this._markerLabels.get(e)||this.effectiveMapLabel);let s=o.querySelector(".maplibregl-popup-content");s&&qe(s,"popup-content");let c=o.querySelector(".maplibregl-popup-close-button");c&&qe(c,"popup-close-button");let l=this._markerLabels.get(e);c?.setAttribute("aria-label",l?this.localize("mapCloseWithLabel",void 0,{label:l}):this.localize("close"))}syncMapSemantics(e=!0){let t=this._map?.getCanvas?.();if(t&&(t.setAttribute("aria-label",this.effectiveMapLabel),t.setAttribute("lang",this.effectiveLocale),this.legend.length||this.legendGradient.length>=2||this.hasLegendSlot||this.hasLegendStartSlot||this.legendProjection.truncated||this.hasDerivedLegend()?t.setAttribute("aria-describedby","map-legend"):t.removeAttribute("aria-describedby")),this.hostDescription.refresh(),this.syncPeerChromeParts(),!!e)for(let[i,r]of this._markerInstances){let n=r.getElement?.();if(!n)continue;qe(n,"marker"),n.setAttribute("role","button"),n.tabIndex=0,n.setAttribute("aria-label",this._markerLabels.get(i)||this.localize("mapMarker")),n.setAttribute("lang",this.effectiveLocale);let o=r.getPopup?.();o?this.syncPopupSemantics(i,r,o):(n.removeAttribute("aria-controls"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-haspopup"))}}formatDistance(e){return e<1e3?pt(this.effectiveLocale,{style:"unit",unit:"meter",unitDisplay:"short",maximumFractionDigits:_i(e,0,2)}).format(e):pt(this.effectiveLocale,{style:"unit",unit:"kilometer",unitDisplay:"short",maximumFractionDigits:e<1e4?2:1}).format(e/1e3)}formatArea(e){return e<1e6?this.localize("mapSquareMeters",void 0,{value:pt(this.effectiveLocale,{maximumFractionDigits:_i(e,0,2)}).format(e)}):this.localize("mapSquareKilometers",void 0,{value:pt(this.effectiveLocale,{maximumFractionDigits:2}).format(e/1e6)})}drawingSummary(e){if(!e||e.vertices.length<2)return;let t=si.loaded?.measureDrawing(e.mode,e.vertices);if(t)return e.mode==="line"?this.localize("mapDrawingLength",void 0,{value:this.formatDistance(t.length)}):t.area===void 0?void 0:this.localize("mapDrawingArea",void 0,{value:this.formatArea(t.area)})}drawingLabelText(e,t){return e==="area"?this.localize("mapDrawingArea",void 0,{value:this.formatArea(t)}):e==="length"?this.localize("mapDrawingLength",void 0,{value:this.formatDistance(t)}):this.formatDistance(t)}legendLimitText(){return this.localize("paginationSummary",void 0,{start:this.formatLocaleNumber(this.legend.length===0?0:1),end:this.formatLocaleNumber(this.legend.length),total:this.formatLocaleNumber(this.legendProjection.inputCount),itemLabel:this.localize("items")})}renderLegendRowContent(e){let t=ht(e.color);return P`${e.icon?P`<span part="legend-swatch" data-pattern=${e.pattern} data-icon="true" aria-hidden="true" inert style=${Ne(t?{color:t}:{})} >${Cl(e.icon)}</span
|
|
16
|
+
>`:P`<span part="legend-swatch" data-pattern=${e.pattern} aria-hidden="true" inert style=${Ne(t?{backgroundColor:t}:{})} ></span>`}
|
|
17
|
+
<span>${e.label}</span>`}toggleLegendCategory(e,t){let i=e.value,r=this._connectGeneration,n=()=>this.isConnected&&this._connectGeneration===r&&this.legendInteractive&&this.legend[t]===e&&!this.mapInteractionBlocked();if(i===void 0||!n())return;let o=this.hiddenCategories,s=o.includes(i),c=s?o.filter(l=>l!==i):[...o,i];Ye({guard:this.categoriesGuard,requestDetail:{value:i,visible:s,hiddenCategories:[...c]},emitRequest:(l,p)=>this.emit("lr-map-legend-toggle-request",l,p),commit:()=>{n()&&(this.hiddenCategories=c,this.announceLegendVisibility(e,s))}})}announceLegendVisibility(e,t){this.announcements.announcePolite(this.localize(t?"legendTypeShown":"legendTypeHidden",void 0,{label:e.label}))}renderLegendRow(e,t){let i=e.value,r=this.legendInteractive&&i!==void 0,n=i===void 0||!this.hiddenCategories.includes(i),o=this.legendControlRole==="checkbox";return P`<div class="legend-row" role="listitem" aria-posinset=${String(t+1)} aria-setsize=${String(this.legendProjection.inputCount)} >
|
|
18
|
+
${r?P`<button part=${n?"legend-toggle":"legend-toggle legend-toggle-hidden"} type="button" role=${o?"checkbox":H} aria-pressed=${o?H:n?"true":"false"} aria-checked=${o?n?"true":"false":H} ?disabled=${this.interactionBlocked} @click=${()=>this.toggleLegendCategory(e,t)} >${this.renderLegendRowContent(e)}</button>`:this.renderLegendRowContent(e)}
|
|
19
|
+
</div>`}renderLegendRows(){if(!this._legendGrouped)return this.legend.map((t,i)=>this.renderLegendRow(t,i));let e=[];return this.legend.forEach((t,i)=>{let r=this.renderLegendRow(t,i),n=e[e.length-1];n&&n.group===t.group?n.rows.push(r):e.push({group:t.group,rows:[r]})}),e.map((t,i)=>{let r=P`<div class="legend-section-list" role="list">${t.rows}</div>`;if(t.group===void 0)return r;let n=`map-legend-group-${i}`;return P`<div class="legend-group" part="legend-group" role="group" aria-labelledby=${n} >
|
|
20
|
+
<div class="legend-group-heading" part="legend-group-heading" id=${n} >${t.group}</div>
|
|
21
|
+
${r}
|
|
22
|
+
</div>`})}hasDerivedLegend(){let e=this.derivedLegend;return e.rows.length>0||e.gradient.length>=2}renderLegendGradient(){let e=this.legendGradient,t=this.derivedLegend,i=e.length>=2?e:t.gradient;if(i.length<2)return H;let r=e.length>=2?this.legendIsLine?"linear":this.canonicalChoropleth?.interpolation:t.interpolation,n=i[0],o=i[i.length-1];(this.gradientImage?.stops!==i||this.gradientImage.interpolation!==r)&&(this.gradientImage={stops:i,interpolation:r,image:kl(i,r)});let s=this.gradientImage.image,c=this._legendGradientTicksAssigned||e.length>=2?this.legendGradientTicks:t.ticks,l=o[0]>n[0]?c.filter(u=>u.value>=n[0]&&u.value<=o[0]):[],p=this.effectiveLocale,d=u=>Yr(u,p),h=P`<span part="legend-gradient" class="gradient-bar" aria-hidden="true" inert style=${Ne({backgroundImage:s})} ></span>`;return P`<div class="legend-gradient" ?hidden=${this.legendCollapsed}>
|
|
23
|
+
<span part="legend-lo">${this.legendGradientLoLabel??d(n[0])}</span>
|
|
24
|
+
${l.length===0?h:P`<span class="gradient-track">${h}<span class="gradient-ticks" part="legend-ticks">${l.map(u=>P`<span part="legend-tick" style=${Ne({"--_lr-map-tick-position":`${He(Pt(u.value,n[0],o[0])*100)}%`})} >${u.label??d(u.value)}</span
|
|
25
|
+
>`)}</span></span>`}
|
|
26
|
+
<span part="legend-hi">${this.legendGradientHiLabel??d(o[0])}</span>
|
|
27
|
+
</div>`}renderDerivedLegendRows(){let e=this.derivedLegend.rows;return e.length===0?H:P`<div class="legend-list" part="legend-derived" role="list" ?hidden=${this.legendCollapsed}>
|
|
28
|
+
${e.map((t,i)=>P`<div class="legend-row" role="listitem" aria-posinset=${String(i+1)} aria-setsize=${String(e.length)} >${this.renderLegendRowContent(t)}</div>`)}
|
|
29
|
+
</div>`}applyControlsAvoid(){let e=this.shadowRoot?.querySelector('[part="base"]');if(!e)return;let t=this.controlsAvoidance?.area;for(let[i,r]of[["blockStart","block-start"],["blockEnd","block-end"],["inlineStart","inline-start"],["inlineEnd","inline-end"]]){let n=`--_lr-map-controls-inset-${r}`,o=t?.[i];o?e.style.setProperty(n,`calc(var(--lr-map-controls-inset-${r}, 0px) + ${o}px)`):e.style.removeProperty(n)}}render(){let e=this.drawingController,t=!this.failure&&!this.loading&&!this._map,i=t?[...Gt(this.controls).controls.values()].sort((n,o)=>n.order-o.order):!this.failure&&!this.loading&&this._map?this.controlOutlines:[],r=P`<div class="initialization-controls" part="initialization-controls controls" aria-hidden="true" inert>
|
|
30
|
+
${["top","bottom"].map(n=>P`<div class="initialization-row initialization-row-${n}" part=${n==="top"?"controls-top":"controls-bottom"}>
|
|
31
|
+
${["left","right"].map(o=>P`<div class="initialization-corner initialization-corner-${o}" part=${{"top-left":"initialization-corner controls-top-left","top-right":"initialization-corner controls-top-right","bottom-left":"initialization-corner controls-bottom-left","bottom-right":"initialization-corner controls-bottom-right"}[`${n}-${o}`]}>
|
|
32
|
+
${i.filter(s=>s.position===`${n}-${o}`).map(s=>P`<span part=${{navigation:"initialization-control initialization-navigation",scale:"initialization-control initialization-scale",geolocate:"initialization-control initialization-geolocate",attribution:"initialization-control initialization-attribution",globe:"initialization-control initialization-globe",terrain:"initialization-control initialization-terrain"}[s.kind]} data-control=${s.kind}></span>`)}
|
|
33
|
+
</div>`)}
|
|
34
|
+
</div>`)}
|
|
35
|
+
</div>`;return P`
|
|
36
|
+
<div part="base" aria-busy=${String(this.loading||!this._map&&!this.failure&&!this.awaitingActivation)} >
|
|
37
|
+
${this.failure?P`<div part="error">${this.failureMessage()}</div>`:this.loading?P`
|
|
38
|
+
<span class="sr-only">${this.localize("loading")}</span>
|
|
39
|
+
<lr-skeleton shape="rect" .announce=${!1}></lr-skeleton>
|
|
40
|
+
`:P`<div part="container" id="map-container" tabindex="-1" lang=${this.effectiveLocale}></div>`}
|
|
41
|
+
${t?P`<div part="initialization-placeholder">
|
|
42
|
+
${this.awaitingActivation?P`<button type="button" part="initialization-activate" aria-label=${this.localize("mapActivate")}><span class="activate-label" part="initialization-activate-label">${this.localize("mapActivate")}</span></button>`:P`<span class="sr-only">${this.localize("loading")}</span>`}
|
|
43
|
+
<lr-skeleton class="initialization-skeleton" part="initialization-skeleton" shape="rect" .announce=${!1}></lr-skeleton>
|
|
44
|
+
${r}
|
|
45
|
+
</div>`:i.length?r:H}
|
|
46
|
+
${this.renderGeographicScene()}
|
|
47
|
+
${this.hashIssue||this.controlIssue||this.sceneControlIssue||this.exportIssue||this.dataLayerIssue||this.featureStateIssue||this.drawingIssue?P`<div class="configuration-errors">
|
|
48
|
+
${this.hashIssue||this.controlIssue||this.sceneControlIssue?P`<div part="configuration-error">${this.configurationMessage(this.hashIssue??this.controlIssue??"mapControlUnavailable")}</div>`:H}
|
|
49
|
+
${this.exportIssue?P`<div part="configuration-error">${this.localize("mapExportUnavailable")}</div>`:H}
|
|
50
|
+
${this.dataLayerIssue?P`<div part="configuration-error">${this.localize("mapInitializationFailed")}</div>`:H}
|
|
51
|
+
${this.featureStateIssue?P`<div part="configuration-error">${this.localize("mapFeatureStateUnavailable")}</div>`:H}
|
|
52
|
+
${this.drawingIssue?P`<div part="configuration-error">${this.drawingErrorMessage()}</div>`:H}
|
|
53
|
+
</div>`:H}
|
|
54
|
+
${this.pickMode&&!this.failure&&!this.loading?P`<div part="pick-controls">
|
|
55
|
+
<button type="button" part="pick-center" ?disabled=${this.interactionBlocked} @click=${this.pickMapCenter}>${this.localize("mapPickAtCenter")}</button>
|
|
56
|
+
<button type="button" part="pick-cancel" ?disabled=${this.interactionBlocked} @click=${this.cancelMapPick}>${this.localize("mapCancelPick")}</button>
|
|
57
|
+
</div>`:H}
|
|
58
|
+
${(this.drawMode==="line"||this.drawMode==="polygon"||e?.editing)&&!this.pickMode&&!this.failure&&!this.loading?P`<div part="drawing-controls" role="group" aria-label=${this.localize("mapDrawingControls")}>
|
|
59
|
+
<button type="button" part="drawing-add" ?disabled=${this.interactionBlocked||!e?.active||e.editing} @click=${this.drawMapCenter}>${this.localize("mapDrawAtCenter")}</button>
|
|
60
|
+
<button type="button" part="drawing-undo" ?disabled=${this.interactionBlocked||!e?.snapshot?.vertices.length||e.editing} @click=${()=>this.undoDrawing()}>${this.localize("mapUndoDrawing")}</button>
|
|
61
|
+
<button type="button" part="drawing-complete" ?disabled=${this.interactionBlocked||!e?.active} @click=${()=>this.completeDrawing()}>${this.localize("mapCompleteDrawing")}</button>
|
|
62
|
+
<button type="button" part="drawing-cancel" ?disabled=${this.interactionBlocked} @click=${()=>this.cancelDrawing()}>${this.localize("mapCancelDrawing")}</button>
|
|
63
|
+
<span part="drawing-status">${this.localize("mapDrawingVertices",void 0,{count:this.formatLocaleNumber(e?.snapshot?.vertices.length??0)})}</span>
|
|
64
|
+
${this.drawingMeasurements&&this.drawingSummary(e?.snapshot)?P`<span part="drawing-summary">${this.drawingSummary(e?.snapshot)}</span>`:H}
|
|
65
|
+
</div>`:H}
|
|
66
|
+
${this.drawingMeasurements&&e?.labels.length?P`<div part="drawing-measurements" aria-hidden="true">${e.labels.map(n=>P`<span part="drawing-measurement" data-kind=${n.kind} style=${Ne({left:`${n.x}px`,top:`${n.y}px`})} >${this.drawingLabelText(n.kind,n.value)}</span>`)}</div>`:H}
|
|
67
|
+
${e?.handles.length?P`<span id="drawing-edit-instructions" class="sr-only">${this.localize("mapDrawingEditInstructions")}</span>
|
|
68
|
+
<div part="drawing-handles">${e.handles.map(n=>P`<button type="button" part="drawing-vertex" style=${Ne({left:`${n.x}px`,top:`${n.y}px`})} tabindex=${n.index===e.selected?"0":"-1"} aria-label=${this.localize("mapDrawingVertex",void 0,{index:this.formatLocaleNumber(n.index+1)})} aria-describedby="drawing-edit-instructions" ?disabled=${this.interactionBlocked} @focus=${()=>{e.select(n.index)}} @pointerdown=${o=>{this.suppressDrawingClick=!1,e.begin(o,n.index)}} @keydown=${o=>e.vertexKey(o,n.index)} @click=${o=>{o.preventDefault(),o.stopPropagation()}}><span aria-hidden="true"></span></button>`)}</div>`:H}
|
|
69
|
+
<div class="anchor-boundary" aria-hidden="true"></div>
|
|
70
|
+
<div part="anchor" hidden @focusin=${this.onAnchorFocus}><div part="anchor-body"><slot name="anchor" @slotchange=${this.onAnchorSlotChange}></slot></div>${this.anchorClosable?P`<button type="button" part="anchor-close" @click=${()=>{this.anchorController?.close("close-button")}}>${this.localize("close")}</button>`:H}</div>
|
|
71
|
+
${this.anchorSlotPresence.has("anchors")?P`<slot name="anchors" @slotchange=${this.onAnchorsSlotChange}></slot>`:H}
|
|
72
|
+
${this.legend.length||this.legendProjection.truncated||this.legendGradient.length||this.hasDerivedLegend()||this.hasLegendSlot||this.hasLegendStartSlot||this.probeLegendSlot("legend")||this.probeLegendSlot("legend-start")?P`<div part="legend" id="map-legend" role="group" aria-label=${this.localize("mapLegend")} aria-controls=${this.failure||this.loading?H:"map-container"} data-truncated=${String(this.legendProjection.truncated)} data-placement=${this.legendPlacement} data-clearance=${this.legendClearance} >
|
|
73
|
+
<slot name="legend-start" @slotchange=${this.onLegendSlotChange}></slot>
|
|
74
|
+
<div class="glass-scroll-layer" aria-hidden="true"></div>
|
|
75
|
+
${this.renderLegendDisclosure()}
|
|
76
|
+
${this.renderLegendGradient()}
|
|
77
|
+
<div class="legend-list" role=${this._legendGrouped?H:"list"} id=${this.legendCollapsible?"map-legend-list":H} ?hidden=${this.legendCollapsed} >
|
|
78
|
+
${this.renderLegendRows()}
|
|
79
|
+
</div>
|
|
80
|
+
${this.renderDerivedLegendRows()}
|
|
81
|
+
${this.legendProjection.truncated?P`<div id="map-legend-limit" part="legend-limit" ?hidden=${this.legendCollapsed}>
|
|
82
|
+
${this.legendLimitText()}
|
|
83
|
+
</div>`:H}
|
|
84
|
+
<slot name="legend" ?hidden=${this.legendCollapsed} @slotchange=${this.onLegendSlotChange}></slot>
|
|
85
|
+
</div>`:H}
|
|
86
|
+
</div>
|
|
87
|
+
`}};_([ae()],C.prototype,"scenePanelOpen",void 0),_([ae()],C.prototype,"scenePage",void 0),_([R({attribute:!1})],C.prototype,"scene",null),_([R({reflect:!0,hasChanged:()=>!0,converter:{fromAttribute:a=>Ai(a),toAttribute:a=>a??null}})],C.prototype,"projection",null),_([R({attribute:!1,hasChanged:()=>!0})],C.prototype,"terrain",null),_([R({type:Array})],C.prototype,"center",null),_([R({converter:Ze(2)})],C.prototype,"zoom",void 0),_([R({converter:Ze(void 0),attribute:"min-zoom"})],C.prototype,"minZoom",void 0),_([R({converter:Ze(void 0),attribute:"max-zoom"})],C.prototype,"maxZoom",void 0),_([R({attribute:!1})],C.prototype,"cameraPadding",void 0),_([R({attribute:!1})],C.prototype,"canvasTarget",void 0),_([R({attribute:!1})],C.prototype,"renderWorldCopies",void 0),_([R({attribute:!1})],C.prototype,"maxBounds",void 0),_([R({attribute:!1})],C.prototype,"controls",void 0),_([R({attribute:!1})],C.prototype,"hash",void 0),_([R({attribute:"hash-format",converter:dl})],C.prototype,"hashFormat",void 0),_([ae()],C.prototype,"hashIssue",void 0),_([ae()],C.prototype,"controlIssue",void 0),_([ae()],C.prototype,"sceneControlIssue",void 0),_([ae()],C.prototype,"controlOutlines",void 0),_([R({attribute:!1})],C.prototype,"anchorLngLat",void 0),_([R({attribute:!1})],C.prototype,"anchorBoundary",void 0),_([R({attribute:!1})],C.prototype,"anchorSafeArea",void 0),_([R({attribute:!1})],C.prototype,"anchorAvoid",void 0),_([R({attribute:!1})],C.prototype,"anchorAvoidSides",void 0),_([R({converter:Ze(0),attribute:"anchor-avoid-gap"})],C.prototype,"anchorAvoidGap",void 0),_([R({attribute:!1})],C.prototype,"controlsAvoid",void 0),_([R({type:Boolean,attribute:"anchor-closable"})],C.prototype,"anchorClosable",void 0),_([R({type:Boolean,attribute:"anchor-fill",reflect:!0})],C.prototype,"anchorFill",void 0),_([R()],C.prototype,"initialization",void 0),_([R({converter:Ze(void 0),attribute:"initialization-delay"})],C.prototype,"initializationDelay",void 0),_([R({attribute:!1})],C.prototype,"mapStyle",null),_([R({attribute:!1})],C.prototype,"legend",null),_([ae()],C.prototype,"hasLegendSlot",void 0),_([ae()],C.prototype,"hasLegendStartSlot",void 0),_([R({attribute:!1})],C.prototype,"legendGradient",null),_([R({attribute:"legend-gradient-lo-label"})],C.prototype,"legendGradientLoLabel",void 0),_([R({attribute:"legend-gradient-hi-label"})],C.prototype,"legendGradientHiLabel",void 0),_([R({attribute:!1})],C.prototype,"legendGradientTicks",null),_([ae()],C.prototype,"_legendGradientTicksAssigned",void 0),_([R({type:Boolean,attribute:"choropleth-legend",reflect:!0})],C.prototype,"choroplethLegend",void 0),_([R({type:Boolean,attribute:"legend-interactive",reflect:!0})],C.prototype,"legendInteractive",void 0),_([R({converter:Va,attribute:"legend-control-role",reflect:!0})],C.prototype,"legendControlRole",null),_([R({type:Boolean,attribute:"legend-collapsible",reflect:!0})],C.prototype,"legendCollapsible",void 0),_([R({converter:Wa,attribute:"legend-placement",reflect:!0})],C.prototype,"legendPlacement",null),_([R({converter:qa,attribute:"legend-clearance",reflect:!0})],C.prototype,"legendClearance",null),_([R({converter:Ha,attribute:"legend-flow",reflect:!0})],C.prototype,"legendFlow",null),_([R({attribute:"legend-open",reflect:!0,converter:Br})],C.prototype,"legendOpen",null),_([R({attribute:!1})],C.prototype,"hiddenCategories",null),_([R({attribute:!1})],C.prototype,"choropleth",void 0),_([R({attribute:!1})],C.prototype,"markers",void 0),_([R({attribute:!1})],C.prototype,"dataLayers",void 0),_([R({attribute:!1})],C.prototype,"overlays",void 0),_([R({attribute:!1})],C.prototype,"images",void 0),_([R({attribute:!1})],C.prototype,"imageProvider",void 0),_([R({attribute:!1})],C.prototype,"styleOverrides",void 0),_([ae()],C.prototype,"dataLayerIssue",void 0),_([R()],C.prototype,"label",void 0),_([R({converter:gl})],C.prototype,"engine",void 0),_([ae()],C.prototype,"loading",void 0),_([ae()],C.prototype,"failure",void 0),_([Et('[part="container"]')],C.prototype,"containerEl",void 0),_([Et('[part="anchor"]')],C.prototype,"anchorEl",void 0),_([Et(".anchor-boundary")],C.prototype,"anchorBoundaryEl",void 0),_([R({attribute:!1})],C.prototype,"interactiveBasemapLayers",void 0),_([R({type:Boolean,attribute:"pick-mode"})],C.prototype,"pickMode",null),_([R({type:Boolean,attribute:"keyboard-activation"})],C.prototype,"keyboardActivation",void 0),_([R({attribute:"draw-mode",converter:pl})],C.prototype,"drawMode",void 0),_([R({type:Boolean,attribute:"drawing-measurements",reflect:!0})],C.prototype,"drawingMeasurements",void 0),_([R({attribute:"drawing-complete-behavior",converter:Ua,reflect:!0})],C.prototype,"drawingCompleteBehavior",null),_([R({attribute:"drawing-finish-behavior",converter:Ba,reflect:!0})],C.prototype,"drawingFinishBehavior",null),_([R({type:Boolean,attribute:"drawing-sticky",reflect:!0})],C.prototype,"drawingSticky",void 0),_([ae()],C.prototype,"drawingIssue",void 0),_([ae()],C.prototype,"drawingRevision",void 0),_([ae()],C.prototype,"featureStateIssue",void 0),_([ae()],C.prototype,"interactionBlocked",void 0),_([ae()],C.prototype,"exportIssue",void 0);export{cl as LYRA_MAP_EMPTY_STYLE,C as LyraMap,$t as LyraMapImageExportError,ns as buildGeoJsonPropertyDiff};
|