CINXE.COM
Hotels nearby me , search Hotels nearby me
<!DOCTYPE html><html lang="en"><head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Hotels nearby me , search Hotels nearby me</title> <meta name="description" content="hotels nearby me"> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0,maximum-scale=1.0, user-scalable=no" /> <meta name="keywords" content="Map for hotels nearby me"> <meta name="author" content=""> <meta name="theme-color" content="#007BBE" /> <meta property="og:image" itemprop="image" content="https://www.mappls.com/still_image?size=300x200.png" /> <meta property="og:image:width" content="140" /> <meta property="og:image:height" content="140" /> <meta property="og:title" content="Hotels nearby me , search Hotels nearby me"> <meta property="og:description" content="Find and navigate with step by step voice-guided directions to the doorsteps destination with live traffic updates, ETA along your route easily using Mappls Ap"> <meta property="og:keywords" content="Find and navigate with step by step voice-guided directions to the doorsteps destination with live traffic updates, ETA along your route easily using Mappls Ap"> <meta name="twitter:card" content="summary" /> <meta name="twitter:site" content="mappls" /> <meta property="twitter:title" content="Hotels nearby me , search Hotels nearby me"> <meta property="twitter:description" content="Find and navigate with step by step voice-guided directions to the doorsteps destination with live traffic updates, ETA along your route easily using Mappls Ap"> <meta name="twitter:image" content="https://www.mappls.com/still_image?size=300x180.png" /> <script type="application/ld+json">{"@context" : "http://schema.org","@type" : "WebSite","name" : "MapmyIndia Mappls","url" : "https://www.mappls.com/"}</script> <link rel="icon" href="images/favicon.ico" type="image/x-icon"> <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"> <base href="https://www.mappls.com/"> <meta name="google-site-verification" content="4JosCy3QiI-ODoAM1Zma__O9tZI2pWMnHXSIBPj7jpg" /> <link rel="stylesheet" href="css_7.4/?314.css" media="all"> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-KXF8H62');</script> </head><body> <div id="viewP"> <div id="error"></div> <div class="loaderDiv1" id="loader"> <div class="spinner bottomSpinner"> <span> <svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" focusable="false"> <circle cx="14" cy="14" r="12" fill="none" stroke="#000" stroke-width="2" opacity=".15"/> <circle pathLength="1" cx="14" cy="14" r="12" fill="none" stroke="#339E82" stroke-width="3" stroke-dasharray="27 57" stroke-linecap="round" stroke-linejoin="round" /> </svg> </span> </div> </div> <!--div id="loader"></div--> <div id="z-popup"></div> <div style="display: none;" id="top_modal"></div> <div style="display: none;" id="error_modal" class="show_modal"></div> <div style="display: none;" id="modal_new"></div> <div class="success-message-alert"></div> <div class="eloc-message-alert"></div> <div id="show_pano"></div> <div id="ondc_nearby_cats" class="mappls-mall-int-top-sec home-shortcut-sec"> <ul class="home-shortcut-list"> <li id="shopping_stores"> <a onclick="home(1);mappls_ONDC();"> <img src="../images/ic_shopping.svg"/> Shopping </a> </li> <li id="hotels_b"> <a onclick="maps.near_search('hotels', '', '', '', '', 'hotels', '');"> <img src="../images/ic_hotel.svg"/> Hotels </a> </li> <li id="cngStations_b"> <a onclick="maps.near_search('cng station', '', '', '', '', 'cng station', '');"> <img src="../images/ic_gas_stn.svg"/> CNG Station </a> </li> <li id="petrolStations_b"> <a onclick="maps.near_search('petrol pump', '', '', '', '', 'petrol pump', '');"> <img src="../images/ic_petrol_stn.svg"/> Petrol Station </a> </li> </ul> </div> <div id="ondc_nearby_cats_for_zoom" class="mappls-mall-int-top-sec home-shortcut-sec home-shortcut-sec-sm"> <ul id="home-shortcut-trig" class="m-m-i-list owl-carousel owl-theme home-shortcut-list"> <li id="shopping_stores"> <a onclick="home(1);mappls_ONDC();"> <img src="../images/ic_shopping.svg"/> Shopping </a> </li> <li id="hotels_b"> <a onclick="maps.near_search('hotels', '', '', '', '', 'hotels', '');"> <img src="../images/ic_hotel.svg"/> Hotels </a> </li> <li id="cngStations_b"> <a onclick="maps.near_search('cng station', '', '', '', '', 'cng station', '');"> <img src="../images/ic_gas_stn.svg"/> CNG Station </a> </li> <li id="petrolStations_b"> <a onclick="maps.near_search('petrol pump', '', '', '', '', 'petrol pump', '');"> <img src="../images/ic_petrol_stn.svg"/> Petrol Station </a> </li> </ul> </div> </div> <div id="near_trigger" class="near-search"> <i class="material-icons">search</i> <span class="near-search--text">Search this area</span> </div> <div id="tap_dv" onclick="tap_action()"> <img src="https://cdn.mapmyindia.com/mappls_web/images/poi_brand.png" style="width:30px"> <span>Move map to adjust & Click here</span> </div> <div class="whatsnewWidgetSec" style="display:none;"> <div class="whatsnewOverlay"></div> <div class="whatsnewMainWidget"> <div class="whatsnewMainWidgetHeader clearfix"> <h2>What's New</h2> <a href="javascript:void(0)" onclick="$('.whatsnewWidgetSec').hide();" class="widgerClose"> <i class="material-icons lhid">close</i> </a> </div> <div class="whatsnewMainWidgetBody"> <div class="whatsnewListSec"> <ul class="whatsnewList"> </ul> </div> </div> </div> </div> <div id="mapLayerTest"></div> <div class="canvas" style=""> <div class="top-header"> <!-- profile-section --> <div class="profile" id='login_dv' > </div> <div class="download-app-trigger" > <div class="dropdown"> <button class="btn btn-profile dropdown-toggle" type="button" data-toggle="dropdown" title="Mappls" alt="Mappls"> <div class="get-app-icon"> <img id="get-app-link" src="https://cdn.mapmyindia.com/mappls_web/images/ic_move_logo.png?314" alt="" /> </div> <div class="get-app-text" alt="Get the app" id="get-app-link" > <span class="profile-name">Get the app</span> <span class="down-arrow"><i class="ti-angle-down lhid" alt="Map app"></i></span> </div> </button> <ul class="dropdown-menu"> <li><a href="https://play.google.com/store/apps/details?id=com.mmi.maps&hl=en" target="_blank" rel="nofollow" id="android-app"><i class="fa fa-android"></i> Android</a></li> <li><a href="https://itunes.apple.com/in/app/map-directions-local-searches-travel-guide/id723492531?mt=8" target="_blank" rel="nofollow" id="ios-app"><i class="fa fa-apple"></i> iOS</a></li> <li><a id="share_locations" class="share-poi share-eloc" onclick="share('https://www.mappls.com/getApp','share_link')" alt="Share Location" class="share_btn control-slide share-poi-new"><i class="material-icons">share</i> <span>Share App</span></a></li> </ul> </div> </div> <div class="scale-sec whats-new-trig lhid"> <div class="map-c-item clearfix"> <a title="What's new" onclick="whatsNewPopup()" id="whats-new"> <div class="red-dot red-mark" style="display: none;"></div> <img src="https://cdn.mapmyindia.com/mappls_web/images/ic_gift.png?314" style="width: 18px;padding-top: 9px;"></a> </div> </div> <div class="scale-sec lhid"> <div class="map-c-item clearfix"> <a nofollow="" title="Measure Distance Click to Start/Remove Double click to stop on map" id="scale_dv1"><i class="material-icons lhid">straighten</i></a> </div> </div> <style>.download-app-trigger.mapNot .btn-profile { width: 36px; height: 36px; border-radius: 50%; overflow: visible;}.download-app-trigger.mapNot .btn-profile i { font-size: 24px;}.download-app-trigger.mapNot .btn-profile .badge { position: absolute; right: -8px; background-color: red;}.download-app-trigger.mapNot .dropdown-menu { min-width: 300px;}.mainMapNotSec h2 { color: #212121; padding: 5px 10px;}.mapNotList { margin: 0 -10px; max-height: 350px; overflow-y: auto;}.mapNotList li { border-bottom: 1px solid #ddd;}.mapNotList li:last-child { border-bottom: 1px solid transparent;}.mapNotList li a { position: relative; display: block; padding: 8px 10px;}.mapNotList li a:hover { background: #f3f3f3;}.mapNotListImg { width: 36px; height: 36px; border-radius: 50%; text-align: center; padding-top: 3px; position: absolute;}.mapNotListImg i { font-size: 21px; color: #007BBE;}.mapNotListText { padding-left: 46px; position: relative; padding-right: 20px;}.mapNotListText h3 { color: #212121; font-weight: 400; font-size: 12px; line-height: 16px; margin-bottom: 5px;}.mapNotListText h3 span { color: #212121; font-weight: 700;}.mapNotListText p { font-size: 10px; color: #757575;}.mapNotListText .mapNoteAct { width: 8px; height: 8px; background: red; border-radius: 50%; position: absolute; right: 0; top: 50%; margin-top: -5px;}.mapNotListImg .notAni { display: none;}/*.mapNotList li a:hover .mapNotListImg .notAni { display: block;}*//*.mapNotList li a:hover .mapNotListImg .notSta { display: none;}*/.mainMapNotSec .NotLdr { display: none; width: 32px; height: 32px; left: 50%; margin-left: -10px; position: absolute; z-index: 1;}.mainMapNotSec .NotLdr.NotLdrTop { top: 50px;}.mainMapNotSec .NotLdr.NotLdrBtm { bottom: 20px;}</style> <div class="download-app-trigger mapNot" id="notication_id" style="display:none;" > <div class="dropdown"> <button class="btn btn-profile dropdown-toggle" type="button" data-toggle="dropdown"> <i class="material-icons">notifications</i> <span class="badge" id="not_cnt" style="display:none;">0</span> </button> <div class="dropdown-menu mainMapNotSec"> <h2>Notifications <div id="ldr" class="NotLdr">Loading..</div></h2> <ul class="mapNotList" id="notif_data"> </ul> </div> </div> </div> <div class="download-app-trigger election-trigger realviewMain" id="realv_trig"> <div class="dropdown" > <button id="realv_trig" class="btn btn-profile lhid" type="button" data-toggle="dropdown" title="View - 360 Realview" alt="View - 360 Realview" style="width:130px;"> <div class="get-app-icon"> <img class="mhn_image" id="realview-img" src="https://cdn.mapmyindia.com/mappls_web/images/360_Real_View.png" style="height: 32px;margin-top: 4px;margin-left: 13px;"> </div> <div class="get-app-text" style="margin-left: 10px;padding-left: 5px;border-left: 1px solid #efefef;"> <span class="profile-name"><a id="multi_dv" style="color: #212121;">Real View</a></span> </div> </button> </div> </div> </div> <!-- notification-section --> <!----New Changes----> <div class="map-control-sec"> <div id="kogo_div" class="map-c-item" > <span id="mall_home_control" class="get-app-icon" style="width: 36px;height: 36px;display: block;background: transparent;"> <a class="current-loc" id="mall_home" title="ONDC Shopping" href="home_ads/?u=https://www.mappls.com/mall/ondc" nofollow=""> <img src="home_ads/img/mall_home.png" style="width:24px;padding-top: 6px;" alt=""> </a> </span> </div> <div id="kogo_div" class="map-c-item" > <span id="book_car_control" class="get-app-icon" style="width: 36px;height: 36px;display: block;background: transparent;"> <a class="current-loc" title="Book car" href="home_ads/?u=https://travel.mappls.com/zoomcar" nofollow=""> <img src="home_ads/img/zoomcar-logo.png" style="width:20px;padding-top: 8px;"> </a> </span> </div> <div class="map-c-item"> <a class="map-zoom-in" title=" Map Zoom In" nofollow> <i class="material-icons lhid">add</i> </a> <a class="map-zoom-out" title=" Map Zoom Out" nofollow> <i class="material-icons lhid">remove</i> </a> </div> <div class="map-c-item"> <input type='checkbox' value='1' id='traffic_show' style='display:none' > <a id="layer-control" style="height: 36px;line-height: 32px;" id="map_layers" title=" Map Layers" nofollow bmclk="mapLayr|)"> <i class="material-icons lhid">layers</i> </a> </div> <div class="map-c-item"> <a id="geo_location" class="current-loc" title="GPS Locations" nofollow> <i class="material-icons lhid">my_location</i> </a> </div> <div class="map-c-item" > <span id="threeD" onclick="setPitch('1')" style="width: 36px;height: 36px; display: block;"> <a class="current-loc" title="Mode" nofollow=""> <b style="font-weight: bold;position: relative;top: 2px;text-shadow:0 2px 0 #ccc, 0 3px 0 #ccc, 0 4px 0 #ccc, 0 5px 0 #ccc;">3D</b> </a> </span> <span id="twoD" onclick="setPitch('0')" style="display: none; width: 36px; height: 36px;"> <a class="current-loc" title="Mode" nofollow=""> <b style="font-weight: bold;position: relative;top: 2px;">2D</b> </a> </span> <span id="compass" style="display: none; cursor: pointer;" onclick="setBearing()"> <span class="mcompass" id="mcompass0" style="transform: rotate(360deg);"></span> </span> </div> <div class="map-c-item"> <span id="get-pin" style="width: 36px;height: 36px; display: block;"> <a class="current-loc" title="Get-Pin" nofollow=""> <img src="images/ic_mappls_pin.svg" style="width: 24px;padding-top: 7px;"> </a> </span> </div> </div> </div> <div id="calculation-box" class="calculation-box"> <a class="area_dv_cls"> <i class="material-icons">close</i> </a> <h2>Measure Distance</h2> <p>Click on the map to start measure</p> <div id="area_dv" class="area_dv"> Total area: <span id="area" ></span> <span> m²</span> ( <span id="yrd"></span><span> sq yard</span> )</div> <div id="distance_dv" class="area_dv"> Total distance: <span id="distance"></span> </div> </div> <div id="tool-tip" class="tool_tip"></div> <div id="tool-tip-sugg" class="tool_tip"> Select starting point </div> <div id="tool-tip-area"><span id="area-mtr"></span><br>( <span id="area-yrd"></span> )</div> <div class="container mmi-maps"> <div class="row main-page" id="main_page" > <div class="search-new-sec with-nav-tabs panel-primary"> <div class="search-box clearfix" id="tab1primary" style="display: none;"> <div class="search-box-main"> <div class="hamburger-trigger-sec"> <a id="side-menu" class="hamburger-trigger" style="display: block"> <div class="red-dot red-mark" id="red_dt" style="display: none;"></div> <div class="hamburger-trigger-item side-menu"> <i class="material-icons side-menu lhid" >menu</i> </div> </a> <a id="side-back" class="hamburger-trigger" onclick="close_eloc('dr')" style="display: none"> <div class="hamburger-trigger-item side-menu"> <i class="material-icons">keyboard_backspace</i> </div> </a> </div> <div class="search-input-sec clearfix"> <div class="search-icon"> <i class="material-icons lhid">search</i> </div> <div class="search-text"> <form><input type="text" id="auto" name="auto" class="form-control" placeholder="Place name, address, Mappls Pin" required spellcheck="false" autocomplete="false"></form> </div> </div> <div id="auto_load"> <div class="directions-trigger-sec" > <a id="dir_tab" class="directions-trigger" title="Get Direction" > <div class="directions-trigger-item"> <i class="material-icons lhid">directions</i> </div> </a> </div> </div> </div> <div class="directions-trigger-sec nearby-trigger-sec" bmclk="if('object'==typeof maps) maps!showNrdv|2)"> <a title="Nearby Search" class="directions-trigger"> <div class="directions-trigger-item"> <img src="https://cdn.mapmyindia.com/mappls_web/images/ic_nearby_trig.svg" alt="" /> </div> </a> </div> <div class="current-loc-box" id="cur_loc_d" title='Current Location'></div> </div> <div class="directions-box clearfix" id="tab2primary" > <div class="search-box directions-box-item clearfix"> <div class="hamburger-trigger-sec"> <a id="side-menu" class="hamburger-trigger"> <div class="hamburger-trigger-item side-menu"> <i class="material-icons side-menu lhid">menu</i> </div> </a> </div> <div class="search-input-sec clearfix"> <h2>Find Nearby</h2> </div> <div class="directions-trigger-sec"> <a class="directions-trigger" bmclk="auto_load|'dr')"> <div class="directions-trigger-item loadr lhid" > <i class="material-icons" id="near_x">close</i> </div> </a> </div> </div> <div class="directions-box-main clearfix"> <div class="new-direction-sec "> <ul class="new-direction-list"> <li class="direction_dir1 clearfix " > <div class="n-d-icon n-d-StaticIcon lhid"> <img src="https://cdn.mapmyindia.com/mappls_web/images/ic_nr_loc.svg" alt="" /> </div> <div class="n-d-textField lhid"> <input type="text" id="auto_nearby" class="form-control lhie" placeholder="Where are you looking for?" required=""> <span class="close-btn " id="clear_nearby"><a title="Cancel"><i class="ti-close" alt="Driving directions"></i></a></span> </div> </li> <li class="direction_dir1 clearfix " > <div class="n-d-icon n-d-StaticIcon lhid"> <img src="https://cdn.mapmyindia.com/mappls_web/images/ic_nr_search.svg" alt="" /> </div> <div class="n-d-textField lhid"> <input type="text" id="auto_what" class="form-control" placeholder="Place name, address, Mappls Pin" required=""> <span class="close-btn " id="clear_what"><a title="Cancel"><i class="ti-close" alt="Map to"></i></a></span> </div> </li> </ul> </div> </div> </div> <div class="directions-box clearfix" id="tab3primary" style="display: none;"> <div class="search-box directions-box-item clearfix"> <div class="hamburger-trigger-sec"> <a id="side-menu"class="hamburger-trigger"> <div class="hamburger-trigger-item side-menu"> <i class="material-icons side-menu lhid">menu</i> </div> </a> </div> <div class="search-input-sec clearfix"> <!--<h2>Directions</h2> --> <div class="transit-main-sec"> <ul class="nav nav-pills" > <li class="driving active" title="Driving" id="driving"> <a data-toggle="pill"> <i class="material-icons">directions_car</i> </a> </li> <li class="biking" title="Biking" id="biking"> <a data-toggle="pill"> <i class="material-icons">motorcycle</i> </a> </li> <li class="trucking" title="Trucking" id="trucking"> <a data-toggle="pill" > <i class="material-icons">local_shipping</i> </a> </li> <li class="walking" title="Walking" id="walking"> <a data-toggle="pill"> <i class="material-icons">directions_walk</i><span class="walkStar">*</span> </a> </li> </ul> </div> </div> <div class="directions-trigger-sec" id="x_home"> <a class="directions-trigger lhid"> <div class="directions-trigger-item"> <i class="material-icons">close</i> </div> </a> </div> </div> <div class="directions-box-main clearfix"> <div class="new-direction-sec new-direction-sec-move"> <ul class="new-direction-list"> <li class="direction_dir clearfix" id="auto_start-start_dirs" ondragstart="newdr.drag(event);"> <div class="n-d-icon n-d-StaticIcon div-suffle"> <img src="https://cdn.mapmyindia.com/mappls_web/images/directions/ic_start_loc_dark.png" alt="" /> </div> <div class="n-d-textField"> <input type="text" id="auto_start" class="form-control" placeholder="Enter start location" required=""> <input type="hidden" value="" tabindex="-1" id="start_dirs" name="start_dirs" > <input type="hidden" value="" tabindex="-1" id="start_dirs_walk" name="start_dirs_walk" > <span class="close-btn" id="clear_start"><a title="Cancel"><i class="ti-close" alt="Driving directions"></i></a></span> </div> <div class="n-d-icon n-d-clickIcon"> <a title="Swap" onclick="newdr.exchange('')" id="dir_exchange"> <img src="https://cdn.mapmyindia.com/mappls_web/images/directions/ic_reverse_route_dark.png" alt="" /> </a> </div> <div class="n-d-icon n-d-clickIconMove"> <a href="javascript:void(0)"> <img src="https://cdn.mapmyindia.com/mappls_web/images/directions/ic_drag_handle_dark.png" alt=""> </a> </div> </li> <li class="dest_dir direction_dir clearfix" id="auto_end-end_dirs" ondragstart="newdr.drag(event);"> <div class="n-d-icon n-d-StaticIcon div-suffle"> <img src="https://cdn.mapmyindia.com/mappls_web/images/directions/ic_end_loc_dark.png" alt="" /> </div> <div class="n-d-textField"> <input type="text" id="auto_end" class="form-control" placeholder="Enter end location" required=""> <input type="hidden" value="" id="end_dirs" name="end_dirs" tabindex="-1"> <input type="hidden" value="" id="end_dirs_walk" name="end_dirs_walk" tabindex="-1"> <span class="close-btn" id="clear_end"><a title="Cancel"><i class="ti-close" alt="Map to"></i></a></span> </div> <div class="n-d-icon n-d-clickIcon"> <a onclick="newdr.add_destination('')" id="add_dest" class="new-stop"> <img src="https://cdn.mapmyindia.com/mappls_web/images/directions/ic_add_waypoint_dark.png" alt="" /> </a> </div> <div class="n-d-icon n-d-clickIconMove"> <a href="javascript:void(0)"> <img src="https://cdn.mapmyindia.com/mappls_web/images/directions/ic_drag_handle_dark.png" alt=""> </a> </div> </li> <li class="clearfix" id="way-points" style="display:none"> <div class="n-d-icon n-d-StaticIcon"> <img src="https://cdn.mapmyindia.com/mappls_web/images/directions/ic_add_waypoint_dark.png" alt="" /> </div> <div class="n-d-textField" style="margin-top: 8px;" onclick="newdr.add_destination('')"> <a type="button" value="Add Waypoint" style="color: #2a445b;">Add Waypoint</a> </div> </li> </ul> </div> </div> <div class="walkStarDesc"><span>*</span>Walk Carefully</div> <style>.walkStar { color: #ff0100; position: relative; right: 7px; top: -6px; font-size: 14px; } .walkStarDesc { color: #757575; margin-top: -14px; margin-left: 10px; font-size: 10px; font-style: italic; display:none; } .walkStarDesc span { font-size: 14px; color: #ff0100; margin-right: 4px; } </style> </div> <div class="new-category-sec" id="cat_tab" > <div class="new-category-sec-head clearfix"> <h1 style="font-weight:bold">Find nearby facilities</h1> <button class="btn btn-default" id="new-category-sec-close" onclick="x_cat=1;close_cat()"><i class="material-icons lhid">close</i></button> </div> <div class="mob-cat-theme lhid" id="cat_more"> <div class="shown-category"> <ul class="mob-cat-list clearfix"> <li id="ct_coffee"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Coffee1,5x.png?314" alt="Find Coffee" title="Search Nearby Coffee" id="Coffee" /></div> <div class="cat-name"><a href="./coffee-near-me" id="Coffee">Coffee</a></div> </li> <li id="ct_restaurants"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_restaurant.png?314" alt="Find Restaurants" title="Search Nearby Restaurants" id="Restaurants" /></div> <div class="cat-name"><a href="./restaurants-near-me" id="Restaurants">Restaurants</a></div> </li> <li id="ct_pubs & bars"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Pubs & Bar1,5x.png?314" alt="Find Pubs & Bars" title="Search Nearby Pubs & Bars" id="Pubs-&-Bars" /></div> <div class="cat-name"><a href="./pubs & bars-near-me" id="Pubs-&-Bars">Pubs & Bars</a></div> </li> <li id="cat-more-btn"> <div class="cat-icon"> <img id="cat-viewAll" src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_more_ldpi.png" alt="" /> </div> <div class="cat-name"><a>More</a></div> </li> <li id="ct_atms"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_atm.png?314" alt="Find ATMs" title="Search Nearby ATMs" id="ATMs" /></div> <div class="cat-name"><a href="./atms-near-me" id="ATMs">ATMs</a></div> </li> </ul> </div> <div class="rest-category"> <ul class="mob-cat-list clearfix"> <li id="ct_pharmacy"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_pharmacy.png?314" alt="Find Pharmacy" title="Search Nearby Pharmacy" id="Pharmacy" /></div> <div class="cat-name"><a href="./pharmacy-near-me" id="Pharmacy">Pharmacy</a></div> </li> <li id="ct_parking"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Parking1,5x.png?314" alt="Find Parking" title="Search Nearby Parking" id="Parking" /></div> <div class="cat-name"><a href="./parking-near-me" id="Parking">Parking</a></div> </li> <li id="ct_ev charging"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_ev_cat.png?314" alt="Find EV Charging" title="Search Nearby EV Charging" id="EV-Charging" /></div> <div class="cat-name"><a href="./ev charging-near-me" id="EV-Charging">EV Charging</a></div> </li> <li id="ct_petrol pump"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Petrol_Pump1,5x.png?314" alt="Find Petrol Pump" title="Search Nearby Petrol Pump" id="Petrol-Pump" /></div> <div class="cat-name"><a href="./petrol pump-near-me" id="Petrol-Pump">Petrol Pump</a></div> </li> <li id="ct_transports"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Bus Stop1,5x.png?314" alt="Find Transports" title="Search Nearby Transports" id="Transports" /></div> <div class="cat-name"><a href="./transports-near-me" id="Transports">Transports</a></div> </li> <li id="ct_entertainment"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_entertain.png?314" alt="Find Entertainment" title="Search Nearby Entertainment" id="Entertainment" /></div> <div class="cat-name"><a href="./entertainment-near-me" id="Entertainment">Entertainment</a></div> </li> <li id="ct_hotels"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Hotels1,5x.png?314" alt="Find Hotels" title="Search Nearby Hotels" id="Hotels" /></div> <div class="cat-name"><a href="./hotels-near-me" id="Hotels">Hotels</a></div> </li> <li id="ct_shopping"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_shopping.png?314" alt="Find Shopping" title="Search Nearby Shopping" id="Shopping" /></div> <div class="cat-name"><a href="./shopping-near-me" id="Shopping">Shopping</a></div> </li> <li id="ct_groceries"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_gorceries.png?314" alt="Find Groceries" title="Search Nearby Groceries" id="Groceries" /></div> <div class="cat-name"><a href="./groceries-near-me" id="Groceries">Groceries</a></div> </li> <li id="ct_hospitals"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_hospital.png?314" alt="Find Hospitals" title="Search Nearby Hospitals" id="Hospitals" /></div> <div class="cat-name"><a href="./hospitals-near-me" id="Hospitals">Hospitals</a></div> </li> <li id="ct_police stations"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Police1,5x.png?314" alt="Find Police stations" title="Search Nearby Police stations" id="Police-stations" /></div> <div class="cat-name"><a href="./police stations-near-me" id="Police-stations">Police stations</a></div> </li> <li id="ct_post office"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Post Office1,5x.png?314" alt="Find Post Office" title="Search Nearby Post Office" id="Post-Office" /></div> <div class="cat-name"><a href="./post office-near-me" id="Post-Office">Post Office</a></div> </li> <li id="ct_banks"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_bank.png?314" alt="Find Banks" title="Search Nearby Banks" id="Banks" /></div> <div class="cat-name"><a href="./banks-near-me" id="Banks">Banks</a></div> </li> <li id="ct_spas"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Spa1,5x.png?314" alt="Find Spas" title="Search Nearby Spas" id="Spas" /></div> <div class="cat-name"><a href="./spas-near-me" id="Spas">Spas</a></div> </li> <li id="ct_toilets"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_public_service1,5x.png?314" alt="Find Toilets" title="Search Nearby Toilets" id="Toilets" /></div> <div class="cat-name"><a href="./toilets-near-me" id="Toilets">Toilets</a></div> </li> <li id="ct_cng station"> <div class="cat-icon" ""><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/CNG Station1,5x.png?314" alt="Find CNG Station" title="Search Nearby CNG Station" id="CNG-Station" /></div> <div class="cat-name"><a href="./cng station-near-me" id="CNG-Station">CNG Station</a></div> </li> <li id="cat-less-btn"> <div class="cat-icon"> <img id="cat-hide" src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_less_ldpi.png" alt="Live map of India" /> </div> <div class="cat-name"><a>Less</a></div> </li> </ul> </div> </div> </div> <div id="auto_cat" style="display: none"><div class="new-category-sec his-new-category" style="display:block;"><div class="mob-cat-theme" ><div class="search-his-cat"><ul class="mob-cat-list clearfix"><li id="ct_coffee"><div class="cat-icon"><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Coffee1,5x.png" /></div><div class="cat-name"><a>Coffee</a></div></li><li id="ct_pubs & bars"><div class="cat-icon"><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/Pubs & Bar1,5x.png" /></div><div class="cat-name"><a>Pubs & Bars</a></div></li><li id="ct_atms"><div class="cat-icon"><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_atm.png" /></div><div class="cat-name"><a>ATMs</a></div></li><li id="ct_pharmacy"><div class="cat-icon"><img src="https://cdn.mapmyindia.com/mappls_web/images/cat/blue_cat/ic_pharmacy.png" /></div><div class="cat-name"><a>Pharmacy</a></div></li></ul></div></div></div></div> <div id="get_eloc_dv" style="display: none;"></div> <div id="taketour_dv"></div> </div> <style> .home_cards_item { width: 384px; height: calc(100vh - 86px); padding: 0; -webkit-box-shadow: 0 2px 4px rgb(0 0 0 / 20%); -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.2); box-shadow: 0 2px 4px rgb(0 0 0 / 20%); margin-top: 10px; background-color: #fff; border-radius: 4px; position: relative; z-index: 1; top: 20px; left: 20px; scroll-behavior: smooth; overflow-y: auto; font-family: "Montserrat Light", "Helvetica Neue", Helvetica, Arial, sans-serif }.mapplsHomeBannerClose { position: absolute; right: 15px; top: 12px; height: 24px; color: rgb(0 0 0 / 40%) !important; z-index: 1;}.mapplsHomeBannerClose i { font-size: 24px; color: #212121;}.mapplsHomeBannerHeader { position: relative; width: 100%; height: 42px;}.home_cards_logo { display: none;}.mapplsHomeBannerTrig { width: 36px; height: 36px; float: left; border-radius: 50%; background-color: #fff; padding-top: 5px; box-shadow: 0 5px 10px rgb(0 0 0 / 20%); display: block; text-align: center; position: fixed; z-index: 1; top: 90px; left: 20px; display:none }.mapplsHomeBannerTrig img { max-width: 75%;}::-webkit-scrollbar{width:6px;background:transparent}::-webkit-scrollbar-thumb{background:#797979;border-radius:6px}.mapplsHomeBannerHeader .poi-top-arrow{display: none;}.shareApp{position: absolute; top: 12px; padding-left: 10px; font-size: 14px;}.shareApp a{color: #f18f4a;display: inline-block;margin-top: -1px;}.shareApp a span{line-height: 22px;position: relative;top: -6px;padding-left: 2px;}.kogo_sec { padding: 10px 16px 0px 16px; /* border-top: 1px solid #ddd; */ border-radius: 4px;}.kogo_item_main { margin-bottom: 24px;}.kogo_item_main:last-child { margin-bottom: 7px;}.kogo_item_header { border-bottom: 1px solid #EBEDEF; padding-bottom: 10px; margin-bottom: 5px; position: relative; display: flex; justify-content: space-between;}.kogo_item_header h2 { color: #212121; font-size: 16px; position: relative; display: inline-block;}.kogo_item_header h2:after { width: 100%; content: ''; position: absolute; bottom: -10px; left: 0px; background-color: #339E82; height: 2px;}.kogo_item_header h2 .new_beta_tag { background-color: #f12f2f; right: -40px; top: -2px;}.mappls_super_share_trigs { display: flex; gap: 10px;}.mappls_super_share { color: #212121;}.mappls_super_share i { font-size: 24px;}.backApp { font-size: 14px; padding: 10px 16px; position: relative; z-index: 1; display: flex; justify-content: space-between; border-bottom: 1px solid #EBEDEF;}.kogo_home_list, .about_home_list { display: flex; gap: 10px; flex-wrap: wrap;}.kogo_home_list li { flex: 0 0 calc(50% - 6px)}.about_home_list li { flex: 0 0 100%;}.about_home_list li a > img { border-radius: 8px;}.k_h_l_item { padding: 16px 12px; border: 1px solid transparent; border-radius: 8px; height: 240px; color: #212121; position: relative;}.k_h_l_item .ondc_img { width: 60px; position: absolute; margin-top: -10px;}.new_beta_tag { padding: 1px 6px; color: #fff; font-size: 10px; border-radius: 4px; position: absolute; right: 5px; top: 5px;}.k_h_l_item h3 { font-size: 16px; font-weight: 700;}.k_h_l_item p { font-size: 13px; margin-bottom: 20px;}.k_h_l_item p span { font-weight: 700; font-size: 15px; position: relative;}.k_h_l_item p span label { margin-top: 0; font-size: 28px; position: absolute; right: -17px; top: -13px;}.k_h_l_item img { max-width: 90%;}.k_m_item { padding-right: 0;}.k_m_item h3 img { height: 14px; width: auto !important;}.k_h_l_item.mappls_super_sec img, .k_h_l_item.share_location img { max-width: none; height: 110px;}.mappls_super_sec .k_m_item p { font-size: 13px; color: #212121; margin-bottom: 10px;}.mappls_super_sec .k_m_item p span { font-size: 15px; font-weight: 700;}.mappls_super_sec { color: #212121; display: flex; justify-content: space-between; height: auto; padding: 20px 12px;}.share_location { background-color: #F1F4FB; border-color: #E4E7ED; color: #212121; display: flex; justify-content: space-between; height: auto; padding-bottom: 0;}.k_h_l_item.share_location .k_m_item p { font-size: 13px; color: #212121; font-weight: 400; text-transform: inherit; margin-bottom: 0;}.backApp { font-size: 14px; padding: 10px 16px;}.backApp a { color: #212121; margin-top: -1px; display: flex; gap: 5px; align-items: center;}.backApp a i { font-size: 20px;}.slick-dots li button:before { font-size: 10px; color: #339e82 !important; opacity: .3 !important;}.slick-dots li.slick-active button:before { opacity: 1 !important; color: #339e82 !important;}.slick-dots li button:hover:before, .slick-dots li button:focus:before { opacity: 1;}.kogo_sec .slick-dotted.slick-slider { margin-bottom: 24px;}.kogo_sec .slick-dots { bottom: 0; background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0), rgba(0, 0, 0, 1));}.kogo_sec .slick-dots li { margin: 0;}@media (max-width:768px){ .shareApp{ top: 11px;} .shareApp{top:10px;} .mapplsHomeBannerClose{top: 30px; right:14px;color: #757575 !important;} .mapplsHomeBannerHeader{ position: relative; width: 100%; padding: 22px 0 0 9px; top: -18px;} ::-webkit-scrollbar{width:0px;} .mmi-maps .home_cards_sec { height: 100vh; overflow-y: auto; max-height: none; width: 100%;} .covid-trigger-img { width: 36px; height: 36px; position: fixed; right: 20px; top: 130px; cursor: pointer; z-index: 1; box-shadow: 0px 0px 4px rgb(0 0 0 / 23%); border-radius: 50%; display: block !important } .mapplsHomeBannerHeader .poi-top-arrow{ margin-top: 18px; opacity: 0.6; display: block; background: #000!important;}/* .covidTrigMain{height:120px}*/ .home_cards_item{left: 0; /* overflow-y: auto; */ margin-top:0px; top: calc(100% - 200px); width: 100%; padding-bottom: 0px;height: auto;overflow: hidden; }.home_cards_item embed{ height: 1300px!important;background: #fff}.mapplsHomeBannerTrig { left: 10px; top: 85%;}.k_m_item { padding-right: 0;}}.mob-embed { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 2; display:none; background: #fff}.mob-embed #homeW { position: fixed; width: 100%; height: calc(100vh - 100px); top: 40px; left: 0;}.mob-embed .mapplsHomeBannerHeader { padding: 0; top: 0;}.web-embed { height: calc(100vh - 140px); display:none;}.web-embed #homeW { width: 100%; height: 100%;}.mob-quick-access { width: 100%; height: 50px; position: fixed; left: 0; bottom: 0; background-color: #fff; color: #212121; display: flex; align-items: center; padding-left: 10px; gap: 10px; font-size: 16px; font-weight: 700; top: auto; text-align: left; padding-top: 13px; border-radius: 8px 8px 0 0; box-shadow: 0px 0px 4px 2px rgba(0,0,0,0.23); display: none;}.mob-quick-access i { font-size: 24px; position: absolute; right: 16px;}#collapse{ background: #fff; color: #aaa; font-size: 14px; position: absolute; top: 22px; padding: 7px 4px 4px 4px; border: 1px solid #ddd; cursor: pointer; left: 404px; height: 44px; z-index: 2; width: 20px; line-height: 28px; border-radius: 0 4px 4px 0;}.home_cards_sec { position: relative;}.mappls_super_btns { display: flex;}.mappls_super_btns .btn { border: 1px solid #339E82; width: 82px; font-size: 12px; padding: 5px 0;}.mappls_super_btns .btn-mappls-pri { color: #fff; background-color: #339E82; margin-right: 5px;}.mappls_super_btns .btn-mappls-sec { color: #339E82; background-color: #fff; width: auto; padding: 5px;}.mappls_learn_more_sec { overflow: hidden;}.mappls_learn_more_sec .k_m_item { width: 100%; padding-right: 100px;}.k_h_l_item.mappls_learn_more_sec .mappls_learn_more_img { bottom: 0; right: 0; position: absolute; height: 140px;}.bold{font-weight: bold;}.mappls_list{ position: relative;overflow: hidden; margin-bottom:0;}.mappls_list .slick-prev{left: 15px; z-index: 1;}.mappls_list .slick-next{right: 15px;z-index: 1;}.mappls_list .slick-prev:before, .mappls_list .slick-next:before{font-size: 26px;}.slick-slide img { width: 100%;}.slick-slide { height: auto !important}</style> <div class="home_cards_sec" id="home_adsCard" style="display:none"> <div id="collapse" onclick="collapse(1,'')" alt="map view" >⟪</div> <div class="home_cards_item "><img class="home_cards_logo" src="https://cdn.mapmyindia.com/mappls_web/images/mmilogo.png"> <div class="kogo_sec" id="home_allads"> <div class="kogo_item_main" style="display:block"> <div class="kogo_item_header" style="display:flex"> <h2>Welcome to Mappls!</h2> <div class="mappls_super_share_trigs" style="display:block"> <a onclick="share('https://www.mappls.com/','share_link')" class="mappls_super_share"> <i class="material-icons lhid" style="display: inline;font-size: 19px;">share</i> </a> </div> </div> <ul class="kogo_home_list"> <li style="flex: 0 0 100%;" > <a href="https://about.mappls.com/app/" class="embed_src" id="app_learnmore_home"> <div class="k_h_l_item mappls_super_sec" style="background-color: #f2fffb; border-color: #e1ebe8;"> <div class="k_m_item"> <p><span data-key="mapplsIndiasOwn">Mappls is India's own</span> <label data-key="mapsNavigationTravelCommerce2">Maps, Navigation, Road Safety, Travel, and Commerce App & Portal!<label></p> <div class="mappls_super_btns"> <button href="https://about.mappls.com/app/" class="btn btn-mappls-pri " data-key="learnMore">Learn More</button> </div> </div> <img src="home_ads/img/gr_about.png"> </div> </a> </li> </ul> </div> <div class="height_fixed"> <div class="mappls_list"> <div class="mappls_slick_home"> <div class="lhid"> <a id="book_car" class="embed_src" href="https://travel.mappls.com/zoomcar" target="_blank" style="cursor:pointer" class="m-auto"> <img id="ZoomCar_img" src="https://cdn.mapmyindia.com/mappls_web/images/img/zoomcar_1x.jpg" alt="zoomcar"> </a> </div > <!-- <div class="lhid"> <a id="book_hotel" class="embed_src" href="https://travel.mappls.com/hotels" target="_blank" style="cursor:pointer" class="m-auto"> <img id="ZoomCar_img" src="https://cdn.mapmyindia.com/mappls_web/images/img/mappls_Travel1.jpg" alt="zoomcar"> </a> </div> --> <div class="lhid"> <a id="ondc_offer_home" class="embed_src" href="https://www.mappls.com/mall/ondc/" target="_blank" style="cursor:pointer" class="m-auto"> <img id="ondc_offer_home" src="home_ads/img/offer_banner.svg" alt="zoomcar"> </a> </div > </div> </div> </div> <div class="kogo_item_main" style="display:block"> <div class="kogo_item_header"> <h2><span data-key="introducingMapplsTravel2">Introducing Mappls Travel & Mall</span> <div class="new_beta_tag" style="background-color: #f12f2f;">New</div> </h2> </div> <ul class="kogo_home_list"> <li style="flex: 0 0 100%;" > <div class="k_h_l_item mappls_super_sec" style="background-color: #dfe4ff; border-color: #d6daf4;"> <div class="k_m_item"> <p data-key="onlineShoppingDestination2">Get great, low prices on your travel and daily shopping needs!<!-- Your <span>online shopping</span> Destination.Explore stores, Menu, and Item prices near you. --></p> <div class="mappls_super_btns"> <a href="https://travel.mappls.com/zoomcar/" target="blank" class="btn btn-mappls-pri " data-key="visitStore2" style="margin-right: 6px;">Travel</a> <a href="https://www.mappls.com/mall/ondc/" target="blank" class="btn btn-mappls-pri " data-key="visitStore3">ONDC Mall</a> </div> </div> <img src="home_ads/img/gr_aboutMall.png" style="margin-top: -20px;"> </div> </li> <li> <a class="embed_src" href="https://travel.mappls.com/zoomcar" id="mappls_Zoomcar"> <div class="k_h_l_item" style="background-color: #eef0f8; border-color: #e1e3eb;"> <div class="new_beta_tag" style="background-color: #f12f2f;">New</div> <p><span data-key="rentCarsZoomcar">Rent cars at lowest prices with Zoomcar</span></p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/ic_zoom_car.png"> </div> </div> </a> </li> <li> <a class="" href="https://mall.mappls.com/ondc/?categoryPage=F%26B&Food"id="food_home" target="blank"> <div class="k_h_l_item" style="background-color: #fff0f0; border-color: #f5d7d7;"> <h3 data-key="ar-view-food-delivery">Food Delivery</h3> <p data-key="foodFindRestaurants2">Order in from your favourite Restaurants at Superb prices!</p> <img src="home_ads/img/gr_ondc.png" class="ondc_img"> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_food.png"> </div> </div> </a> </li> <li> <a class="" href="https://mall.mappls.com/ondc/?categoryPage=Grocery&Grocery" id="grocery_home" target="blank"> <div class="k_h_l_item" style="background-color: #f2ffff; border-color: #ceeded;"> <h3 data-key="ar-view-grocery-delivery">Grocery Delivery</h3> <p data-key="groceryLocateStores2">Get fresh groceries from nearby stores, right at your doorstep.</p> <img src="home_ads/img/gr_ondc.png" class="ondc_img" style="right: 12px;margin-top: -18px;background: #f2ffff;"> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_grocery.png"> </div> </div> </a> </li> <li> <a class="embed_src" href="https://travel.mappls.com/" id="kogoTravel_home"> <div class="k_h_l_item" style="background-color: #eaf3fc; border-color: #dfe7f0;"> <p><span data-key="bookHotelsGreatPrices2">Book hotels at rock-bottom prices!</span></p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_kogo_book_rent.png"> </div> </div> </a> </li> <li style="flex: 0 0 100%;" id="ondc_offer"> <a id="ondc_offer" href="https://www.mappls.com/mall/ondc/" class=" " > <img src="home_ads/img/offer_banner_s.gif" id="ondc_offer" style="border-radius: 8px;"> </a> </li> <li style="flex: 0 0 100%;" > <a href="https://about.mappls.com/app/mappls-travel/" class="embed_src"> <div class="k_h_l_item mappls_super_sec" style="background-color: #fff3eb; border-color: #f2e7df;"> <div class="k_m_item"> <p><span data-key="aiPoweredCompanion">Your AI-powered companion.</span> <label data-key="bookHotelsZoomcars">Book hotels and Zoomcars at rock-bottom prices, plan trips, and more!</label></p> <div class="mappls_super_btns"> <button href="https://about.mappls.com/app/mappls-travel/" class="btn btn-mappls-pri " data-key="learnMore">Learn More</button> </div> </div> <div style="display: flex;align-items: center;"><img src="home_ads/img/travelImg.png" style="height: 90px;"></div> </div> </a> </li> <!-- <li> <a class="embed_src" href="https://travel.mappls.com/zoomcar" id="mappls_Zoomcar"> <div class="k_h_l_item" style="background-color: #eef0f8; border-color: #e1e3eb;"> <div class="new_beta_tag" style="background-color: #f12f2f;">New</div> <p><span data-key="rentCarsZoomcar">Rent cars at lowest prices with Zoomcar</span></p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/ic_zoom_car.png"> </div> </div> </a> </li> <li> <a class="embed_src" href="https://travel.mappls.com/" id="kogoTravel_home"> <div class="k_h_l_item" style="background-color: #eaf3fc; border-color: #dfe7f0;"> <p><span data-key="bookHotelsGreatPrices">Book Hotels at great prices!</span></p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_kogo_book_rent.png"> </div> </div> </a> </li> --> <li> <a class="embed_src" href="https://travel.mappls.com/kogonaut" id="kogoAi_home"> <div class="k_h_l_item" style="background-color: #dfe4ff; border-color: #d6daf4;"> <div class="new_beta_tag" style="background-color: #339E82;">Beta</div> <h3 data-key="aiAssistant">AI Assistant</h3> <p data-key="discoverNewPlaces">Discover new places, go on new adventures!</p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_kogo-ai.png"> </div> </div> </a> </li> <li> <a class="" href="https://mapplsgadgets.com/" id="mapplsgps_home" target="blank"> <div class="k_h_l_item" style="background-color: #f9e9ff; border-color: #ebddf0;"> <h3 data-key="ar-view-gps-gadgets">GPS Gadgets</h3> <p data-key="gpsGadgets">Keep your vehicle safe with our range of products</p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_gps_gadgets.png"> </div> </div> </a> </li> <li> <a class="" href="https://sanskriti.mappls.com/" id="art_home" target="blank"> <div class="k_h_l_item" style="background-color: #efffdf; border-color: #daf3c1;"> <h3 data-key="ar-view-map-art-gallery">Map Art Gallery</h3> <p data-key="mapArtGallery">Beautiful map-based art to enrich your surroundings</p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_map_art.png"> </div> </div> </a> </li> <li> <a class="embed_src" href="https://travel.mappls.com/plan" id="kogoTip_home"> <div class="k_h_l_item" style="background-color: #fff3eb; border-color: #f2e7df;"> <div class="new_beta_tag" style="background-color: #339E82;">Beta</div> <h3 data-key="planATrip">Plan A Trip</h3> <p data-key="findVacationOptions">Find the best options for your next vacation</p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_kogo-plan.png"> </div> </div> </a> </li> <li style="flex: 0 0 100%;" > <a href="https://about.mappls.com/app/mappls-travel/" class="embed_src"> <div class="k_h_l_item mappls_super_sec" style="background-color: #e3ffe7; border-color: #d9eedc;"> <div class="k_m_item"> <p><span data-key="mapplsOneMembership">Get Mappls One Membership to save ₹50,000 on travel</p> <div class="mappls_super_btns"> <button href="https://about.mappls.com/app/mappls-travel/" class="btn btn-mappls-pri " data-key="learnMore">Learn More</button> </div> </div> <div style="display: flex;align-items: center;"><img src="home_ads/img/gr_kogo-membership.png" style="height: 90px;"></div> </div> </a> </li> <!-- <li style="flex: 0 0 100%;" > <a class="embed_src" href="https://travel.mappls.com/plan" id="kogoTip_home"> <div class="k_h_l_item mappls_super_sec" style="background-color: #fff3eb; border-color: #f2e7df;"> <div class="new_beta_tag" style="background-color: #339E82;">Beta</div> <div class="k_m_item"> <p><span style="display: block;">Plan A Trip</span> Choose from a wide range of options to create the best vacation experience for yourself</p> </div> <a style="display: flex;align-items: center;"><img src="home_ads/img/gr_kogo-plan.png" style="position: relative;top: 8px;height: 100px;"></a> </div> </a> </li> --> </ul> </div> <div class="kogo_item_main" style="display:block"> <div class="kogo_item_header"> <h2 data-key="mapplsAppQuickLinks">Mappls App Quick Links</h2> </div> <ul class="kogo_home_list"> <li> <a bmclk="if('object'==typeof maps) maps!showNrdv|2)" id="nearby_home"> <div class="k_h_l_item" style="background-color: #fff8dd; border-color: #f0e9cf;"> <h3 data-key="findNearby">Find Nearby</h3> <p data-key="ar-view-instant-results">Instant results on the map for anything you need</p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_find_nearby.png"> </div> </div> </a> </li> <li> <a bmclk="createPost('','','','postOnMap');"id="post_home"> <div class="k_h_l_item" style="background-color: #ffeeee; border-color: #f8e3e3;"> <h3 data-key="common-post-on-map-text">Post On Map</h3> <p data-key="ar-view-post-road-conditions">Post about anything road conditions and review places</p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_post_on_map.png"> </div> </div> </a> </li> <li> <a onclick="maps.add_place('business');" id="addbuz_home"> <div class="k_h_l_item" style="background-color: #e5eeff; border-color: #dbe4f6;"> <h3 data-key="home-add-a-business">Add a Business</h3> <p data-key="ar-view-add-your-business">Add your business on Mappls for easy access!</p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_add_business.png"> </div> </div> </a> </li> <li> <a onclick="get_Pin()" id="getpin_home"> <div class="k_h_l_item" style="background-color: #e3ffe7; border-color: #d9eedc;"> <h3 data-key="quick-access-get-mappls-pin-title">Get Mappls Pin</h3> <p data-key="uniqueDigitalAddress">Your unique 6-character digital address!</p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_mappls_pin.png"> </div> </div> </a> </li> <li> <a onclick="maps.add_place();" id="fixMap_home"> <div class="k_h_l_item" style="background-color: #f2efff; border-color: #e5e1f2;"> <h3 data-key="addAPlace">Add a Place</h3> <p data-key="mapMissingPlace">Is our map missing a place? Let us know here!</p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_add_place.png"> </div> </div> </a> </li> <li> <a onclick="createPost('','','','fixMap');" id="fixMap_home"> <div class="k_h_l_item" style="background-color: #ffe9fb; border-color: #f1dcee;"> <h3 data-key="quick-access-fix-map-title">Fix Map</h3> <p data-key="fixMapErrors">Point out map errors or missing information</p> <div class="k_h_l_i_img text-center"> <img src="home_ads/img/gr_fix_map.png"> </div> </div> </a> </li> </ul> </div> <div class="kogo_item_main" style="display:block"> <div class="kogo_item_header"> <h2 data-key="aboutMapplsMapmyIndia">About Mappls MapmyIndia</h2> </div> <ul class="kogo_home_list"> <li style="flex: 0 0 100%;" > <a id="kogoX_home" href="https://about.mappls.com/"> <div class="k_h_l_item mappls_super_sec mappls_learn_more_sec" style="background-color: #f2fffb; border-color: #e1ebe8;"> <div class="k_m_item"> <p data-key="learnMoreMapplsSolutions">Learn more about all of Mappls MapmyIndia Solutions & Company<!-- Learn more about all of <span>Mappls MapmyIndia Solutions & Company</span> --></p> <div class="mappls_super_btns"> <button href="https://about.mappls.com/" class="btn btn-mappls-pri " data-key="learnMore">Learn More</button> </div> </div> <img src="home_ads/img/gr_about_map.png" class="mappls_learn_more_img"> </div> </a> </li> </ul> </div> </div> <div id="Membed" class="web-embed"></div> <script> function change_background_colour(colorCode) { $('#home_allads_phone').css('background',colorCode); } function get_Pin(){ if (!('function' == typeof addGetEloc)) { home(0); comman('getEloc', 'get_eloc', { "evt": "getEloc", "url": maps.uri() }); } else addGetEloc(); } addEventListener("DOMContentLoaded", function() { var clientHeight = document.getElementById('home_adsCard').scrollHeight; }); function embedSrc(s,openin='',id) { try { } catch (error) { } if(typeof uname=='string' && uname && !''){window.location.reload();return false;} $('#home_adsback').show(); if(openin=='iframe'){ $('#Membed').html('<div class="mapplsHomeBannerHeader"><div class="backApp" id="home_adsback"><a id="share_locations" onclick="mob_back()"><i class="material-icons">home</i><span>Back to Home</span></a><a id="send_feedback" onclick="review()"> <i class="material-icons-outlined">rate_review</i><span>Review Us</span></a></div></div><iframe id="homeW" allow="microphone" src="'+s+'?u="></iframe>').show(); return false; } window.location.href=s; if('block' !== 'none')home(); $('#home_adsCard').show(); } function mob_back() { $('.mob-embed').hide(); $('#refer_frnd,#home_allads').show();$('#home_adsback,#Membed').hide(); } function review() { $('#modal_new').load('./widgets/feedback_form/').show(); } document.addEventListener("DOMContentLoaded", function() { $('.embed_src').on('click',function (e) { e.preventDefault(); var id = '' , sre = e.srcElement; if (sre) { if (sre.id) id = sre.id; else if (sre.offsetParent && sre.offsetParent.id) id = sre.offsetParent.id; else if (sre.parentElement) {if (sre.parentElement.id) id = sre.parentElement.id; else if (sre.parentElement.parentElement && sre.parentElement.parentElement.id) id = sre.parentElement.parentElement.id; } } else if(e.currentTarget && e.currentTarget.id) id=e.currentTarget.id; embedSrc(this.getAttribute('href'),'',id);return false; }); var script = document.createElement('script'); script.src = "https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"; document.head.appendChild(script); var link = document.createElement('link'); link.rel = 'stylesheet'; link.href = 'https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css'; document.head.appendChild(link); var link1 = document.createElement('link'); link1.rel = 'stylesheet'; link1.href = 'https://kenwheeler.github.io/slick/slick/slick-theme.css'; document.head.appendChild(link1); script.onload = function() { $(".mappls_slick_home").slick({ dots: true, infinite: true, autoplay: true, arrows: false, }); }; }); window.addEventListener('message', function(event) { if(event && typeof(event.data) == 'string' && event.data=='home') {mob_back();return false;} else if(event && typeof(event.data) == 'string' && event.data=='review') {review();return false} else if(event && typeof(event.data) == 'string' && event.data.indexOf('Bearer ')!==false){auto_login(event.data);return false;} console.log("Message received from the child: " + event.data); }); </script> </div></div> <!--<div class="search-list-click-wrap light-blue-top-bdr set_height"></div>--> <div id="eloc_tap"></div> <div id="res_info" ></div> <div class="custom-bg-overlay"></div> <nav class="custom-drawer-nav" id="login_dv_menu" > <div class="side-bar-scroll mCustomScrollbar _mCS_1 mCS-autoHide mCS_no_scrollbar" data-mcs-theme="minimal-dark" style="position: relative; overflow: visible;"> <div onclick="window.location.reload()" style="text-align:center;cursor:pointer"><h2><br><br>Loading...</h2></div> </div> </nav> </div> <div class="row map map-page"> <div class="map" id="map"></div> </div><script type="text/javascript"> var uname="",home_work=[],uemail="",uid="",cachdt="314"; var js_path="js",css_path="css_7.4",map_key="f1271754e8d347df485845099f7845e5",drag="",intouch_url="https://intouch.mapmyindia.com/mapApp/api/"; var evnt_url="EventApi",userpath="https://maps.mapmyindia.com/explore/images/user_photos/final/thumb/thumb_",map_lat="23.1",map_lng="80.9",map_zm="3",deviceNAme= "",ref="", maplayerD; if('0'==1) var map_zm="2"; try { try{var local_st=localStorage.getItem("local"),countryName=localStorage.getItem("countryName");}catch(e){} if(countryName){ var c_arr=countryName.split('@'); if(c_arr && c_arr[3]){map_lat=c_arr[2];map_lng=c_arr[3];map_zm=5;} } } catch (exception) { var local_st=""; } var url_n = window.location.toString().split('/'),curl = url_n.slice(-1)[0]; var sess_lat=""; if(sess_lat && sess_lat!=',') { sess_lat=sess_lat.split(","); if(sess_lat!==23.10){ map_lat=sess_lat[0]; map_lng=sess_lat[1]; map_zm=11;} } if(curl.indexOf('appzdata')!=-1 && !local_st) {try{localStorage.setItem("deepVal",1);}catch(e){}} if(curl.indexOf('zdata')!=-1) { var zdt=curl.split('zdata='),dcd_arr=''; try{var dcd=atob(zdt[1].replace(/ed|![0-4][0-4]/g,''));dcd_arr=dcd.split('+')}catch(e){var dcd='';} if(zdt[0].indexOf('place-')===0 && dcd) { if(dcd_arr){map_lat=dcd_arr[0];map_lng=dcd_arr[1];map_zm=dcd_arr[2];} } if(zdt[0].indexOf('-near-')!=-1 && dcd && curl.indexOf('direction-')==-1) { dcd_arr=dcd.split(','); if(dcd.indexOf('+el')>1) { var nt=dcd_arr[0].split('+'); map_lat=nt[0].substr(0,9);map_lng=nt[1].substr(0,9);map_zm=nt[2]; } else{ map_lat=dcd_arr[1].substr(0,9); map_lng=dcd_arr[0].substr(0,9); map_zm=16; } } } else if(local_st) { var new_data=JSON.parse(local_st); if(new_data && new_data[0]){ var map_ltn=new_data[0].address.replace('ed','').split('data='); var map_cord=atob(map_ltn[1].replace('ed','')).split('+'); if(map_cord[0]) map_lat=map_cord[0]; if(map_cord[1]) map_lng=map_cord[1]; map_zm=map_cord[2];} } /*mapload*/ /*sdk:1732711312www.mappls.com*//*MMIWebSDK@3.0*/var _0x6826=["\x73\x74\x79\x6C\x65","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74"],_MMIe=document[_0x6826[1]](_0x6826[0]);_MMIe.innerHTML = '.mapboxgl-map { font: 12px/20px \'Helvetica Neue\', Arial, Helvetica, sans-serif; overflow: hidden; position: relative; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.mapboxgl-canvas > a,button:focus,a:focus-visible { outline: none !important;}.mapboxgl-map:-webkit-full-screen { width: 100%; height: 100%;}.mapboxgl-map:-webkit-full-screen { width: 100%; height: 100%;}.pin{width: 30px;height: 30px;border-radius: 50% 50% 50% 0;background: linear-gradient(to bottom, #33ccff 0%, #ff99cc 100%);position: absolute;transform: rotate(-45deg);left: 50%;top: 50%;position:absolute;margin: -20px 0 0 -20px;}.mapboxgl-canary { background-color: salmon;}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group > button.mapboxgl-ctrl-compass { cursor: -webkit-grab; cursor: -moz-grab; cursor: grab; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none;}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group > button.mapboxgl-ctrl-compass:active { cursor: -webkit-grabbing; cursor: -moz-grabbing; cursor: grabbing;}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas { touch-action: pan-x pan-y;}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas { touch-action: pinch-zoom;}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas { touch-action: none;}.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right,.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right { position: absolute; pointer-events: auto; z-index: 1; }.mapboxgl-ctrl-top-left { top: 0; left: 0; }.mapboxgl-ctrl-top-right { top: 0; right: 0; }.mapboxgl-ctrl-bottom-left { bottom: 0; left: 0; }.mapboxgl-ctrl-bottom-right { right: 0; bottom: 0; }.mapboxgl-ctrl { clear: both; pointer-events: auto; /* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */ transform: translate(0, 0);}.mapboxgl-ctrl-top-left .mapboxgl-ctrl { margin: 10px 0 0 10px; float: left; }.mapboxgl-ctrl-top-right .mapboxgl-ctrl { margin: 10px 10px 0 0; float: right; }.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl { margin: 0 0 25px 10px; float: left; }.mapboxgl-ctrl-group > button { width: 36px; height: 36px; display: block; padding: 0; outline: none; border: 0; box-sizing: border-box; background-color: transparent; cursor: pointer; background: #fff; padding: 4px; -moz-box-shadow: 0 0 2px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.1); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);}.mapboxgl-ctrl-group > button + button { border-top: 1px solid #ddd;}.mapboxgl-ctrl > button::-moz-focus-inner { border: 0; padding: 0;}.mapboxgl-ctrl > button:hover { background-color: rgba(0, 0, 0, 0.05);}.mapboxgl-ctrl-icon,.mapboxgl-ctrl-icon > .mapboxgl-ctrl-compass-arrow { speak: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}.mapboxgl-ctrl-icon { padding: 5px;}.mapboxgl-ctrl-icon.mapboxgl-ctrl-icon-disabled { opacity: 0.25; border-color: #373737;}.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-out { background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\'%3E %3Cpath style=\'fill:%23333333;\' d=\'m 7,9 c -0.554,0 -1,0.446 -1,1 0,0.554 0.446,1 1,1 l 6,0 c 0.554,0 1,-0.446 1,-1 0,-0.554 -0.446,-1 -1,-1 z\'/%3E %3C/svg%3E\");}.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-in { background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\'%3E %3Cpath style=\'fill:%23333333;\' d=\'M 10 6 C 9.446 6 9 6.4459904 9 7 L 9 9 L 7 9 C 6.446 9 6 9.446 6 10 C 6 10.554 6.446 11 7 11 L 9 11 L 9 13 C 9 13.55401 9.446 14 10 14 C 10.554 14 11 13.55401 11 13 L 11 11 L 13 11 C 13.554 11 14 10.554 14 10 C 14 9.446 13.554 9 13 9 L 11 9 L 11 7 C 11 6.4459904 10.554 6 10 6 z\'/%3E %3C/svg%3E\");}.mapboxgl-ctrl-group > button{ background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23333\'%3E %3Cpath d=\'M10 4C9 4 9 5 9 5L9 5.1A5 5 0 0 0 5.1 9L5 9C5 9 4 9 4 10 4 11 5 11 5 11L5.1 11A5 5 0 0 0 9 14.9L9 15C9 15 9 16 10 16 11 16 11 15 11 15L11 14.9A5 5 0 0 0 14.9 11L15 11C15 11 16 11 16 10 16 9 15 9 15 9L14.9 9A5 5 0 0 0 11 5.1L11 5C11 5 11 4 10 4zM10 6.5A3.5 3.5 0 0 1 13.5 10 3.5 3.5 0 0 1 10 13.5 3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zM10 8.3A1.8 1.8 0 0 0 8.3 10 1.8 1.8 0 0 0 10 11.8 1.8 1.8 0 0 0 11.8 10 1.8 1.8 0 0 0 10 8.3z\'/%3E %3C/svg%3E\"); border-radius: 50%;}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate:disabled { background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23aaa\'%3E %3Cpath d=\'M10 4C9 4 9 5 9 5L9 5.1A5 5 0 0 0 5.1 9L5 9C5 9 4 9 4 10 4 11 5 11 5 11L5.1 11A5 5 0 0 0 9 14.9L9 15C9 15 9 16 10 16 11 16 11 15 11 15L11 14.9A5 5 0 0 0 14.9 11L15 11C15 11 16 11 16 10 16 9 15 9 15 9L14.9 9A5 5 0 0 0 11 5.1L11 5C11 5 11 4 10 4zM10 6.5A3.5 3.5 0 0 1 13.5 10 3.5 3.5 0 0 1 10 13.5 3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zM10 8.3A1.8 1.8 0 0 0 8.3 10 1.8 1.8 0 0 0 10 11.8 1.8 1.8 0 0 0 11.8 10 1.8 1.8 0 0 0 10 8.3z\'/%3E %3C/svg%3E\");}.mapboxgl-ctrl-group > button.mapboxgl-ctrl-geolocate-active { background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\' fill=\'%2333b5e5\'%3E %3Cpath d=\'M10 4C9 4 9 5 9 5L9 5.1A5 5 0 0 0 5.1 9L5 9C5 9 4 9 4 10 4 11 5 11 5 11L5.1 11A5 5 0 0 0 9 14.9L9 15C9 15 9 16 10 16 11 16 11 15 11 15L11 14.9A5 5 0 0 0 14.9 11L15 11C15 11 16 11 16 10 16 9 15 9 15 9L14.9 9A5 5 0 0 0 11 5.1L11 5C11 5 11 4 10 4zM10 6.5A3.5 3.5 0 0 1 13.5 10 3.5 3.5 0 0 1 10 13.5 3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zM10 8.3A1.8 1.8 0 0 0 8.3 10 1.8 1.8 0 0 0 10 11.8 1.8 1.8 0 0 0 11.8 10 1.8 1.8 0 0 0 10 8.3z\'/%3E %3C/svg%3E\");}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error { background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23e58978\'%3E %3Cpath d=\'M10 4C9 4 9 5 9 5L9 5.1A5 5 0 0 0 5.1 9L5 9C5 9 4 9 4 10 4 11 5 11 5 11L5.1 11A5 5 0 0 0 9 14.9L9 15C9 15 9 16 10 16 11 16 11 15 11 15L11 14.9A5 5 0 0 0 14.9 11L15 11C15 11 16 11 16 10 16 9 15 9 15 9L14.9 9A5 5 0 0 0 11 5.1L11 5C11 5 11 4 10 4zM10 6.5A3.5 3.5 0 0 1 13.5 10 3.5 3.5 0 0 1 10 13.5 3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zM10 8.3A1.8 1.8 0 0 0 8.3 10 1.8 1.8 0 0 0 10 11.8 1.8 1.8 0 0 0 11.8 10 1.8 1.8 0 0 0 10 8.3z\'/%3E %3C/svg%3E\");}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background { background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\' fill=\'%2333b5e5\'%3E %3Cpath d=\'M 10,4 C 9,4 9,5 9,5 L 9,5.1 C 7.0357113,5.5006048 5.5006048,7.0357113 5.1,9 L 5,9 c 0,0 -1,0 -1,1 0,1 1,1 1,1 l 0.1,0 c 0.4006048,1.964289 1.9357113,3.499395 3.9,3.9 L 9,15 c 0,0 0,1 1,1 1,0 1,-1 1,-1 l 0,-0.1 c 1.964289,-0.400605 3.499395,-1.935711 3.9,-3.9 l 0.1,0 c 0,0 1,0 1,-1 C 16,9 15,9 15,9 L 14.9,9 C 14.499395,7.0357113 12.964289,5.5006048 11,5.1 L 11,5 c 0,0 0,-1 -1,-1 z m 0,2.5 c 1.932997,0 3.5,1.5670034 3.5,3.5 0,1.932997 -1.567003,3.5 -3.5,3.5 C 8.0670034,13.5 6.5,11.932997 6.5,10 6.5,8.0670034 8.0670034,6.5 10,6.5 Z\'/%3E %3C/svg%3E\");}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error { background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23e54e33\'%3E %3Cpath d=\'M 10,4 C 9,4 9,5 9,5 L 9,5.1 C 7.0357113,5.5006048 5.5006048,7.0357113 5.1,9 L 5,9 c 0,0 -1,0 -1,1 0,1 1,1 1,1 l 0.1,0 c 0.4006048,1.964289 1.9357113,3.499395 3.9,3.9 L 9,15 c 0,0 0,1 1,1 1,0 1,-1 1,-1 l 0,-0.1 c 1.964289,-0.400605 3.499395,-1.935711 3.9,-3.9 l 0.1,0 c 0,0 1,0 1,-1 C 16,9 15,9 15,9 L 14.9,9 C 14.499395,7.0357113 12.964289,5.5006048 11,5.1 L 11,5 c 0,0 0,-1 -1,-1 z m 0,2.5 c 1.932997,0 3.5,1.5670034 3.5,3.5 0,1.932997 -1.567003,3.5 -3.5,3.5 C 8.0670034,13.5 6.5,11.932997 6.5,10 6.5,8.0670034 8.0670034,6.5 10,6.5 Z\'/%3E %3C/svg%3E\");}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting { -webkit-animation: mapboxgl-spin 2s infinite linear; -moz-animation: mapboxgl-spin 2s infinite linear; -o-animation: mapboxgl-spin 2s infinite linear; -ms-animation: mapboxgl-spin 2s infinite linear; animation: mapboxgl-spin 2s infinite linear;}/*.maplibregl-ctrl-geolocate,.mapboxgl-ctrl-attrib>summary{display: none !important}*/@-webkit-keyframes mapboxgl-spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); }}@-moz-keyframes mapboxgl-spin { 0% { -moz-transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); }}@-o-keyframes mapboxgl-spin { 0% { -o-transform: rotate(0deg); } 100% { -o-transform: rotate(360deg); }}@-ms-keyframes mapboxgl-spin { 0% { -ms-transform: rotate(0deg); } 100% { -ms-transform: rotate(360deg); }}@keyframes mapboxgl-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }}button.mapboxgl-ctrl-fullscreen { background-size: 25px 25px; background-repeat: no-repeat; border-radius: 4px; background-position: center; background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDM3RkYwODk0OUZFMTFFOThFQTVFRkM0MjZEQUIwNkUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDM3RkYwODg0OUZFMTFFOThFQTVFRkM0MjZEQUIwNkUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QkMzQjNCM0U0MEJBMTFFOTkzQkFCMzFGQUQyQzZGNDMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QkMzQjNCM0Y0MEJBMTFFOTkzQkFCMzFGQUQyQzZGNDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6RDpHdAAADjklEQVR42uycv2sUQRTH9zYpTDRRG3O2V+Ui6IHYChsQ1EIb448unaJNLCxstNHeUhuxM4qFIEgKudN/QBE1F5trRE0qTaJJGjnfI29hWfbX7LyZm1vegy9sYPbtzGffzOy8m0mt3+97YunmCwIBJIAEkAASQAKoqjaaV6DRaFQeQq/X046gG6C/oL6G1kEXmdo0B/qlWR9sz/W8B9XyvqQpgrZAYwwNWwE1Gfx0QdMMfjZBkxwRNMb05j865mdCewzKMAy9B6C1guVXQc+YGjYPWgJNFSyP5Rawx7AP0lndE3QaFChA4rId0BMFOO0ycMpO8/8i1016+JTnpoVwZlLqbwTQPRokQ5txFBLWpxODg5PEfdOAsDvNOg4phNOMwQloLDT+Jb3qMKQkON0ycHSXGi5CSoMzWwYOx1rMJUjscLgWqy5AMgKHczU/SEh1U3C40x2DgFQn/ywDso18kE1IWXDYvuxNJMyyIB0aJjimAEUhrcQgdRggWYOjAmg9lkMpCilghpQEZ1kRTrT+G1yArlJDF0EvFCMpCdIb0F5FOPsSZqtlilSVyMH6Pwd9BV3LTVkUzChyTcXRLOA50CsFH+dBLzXhJBpHRpFjTIpGEnbZD4o+3oN+0/VnLjh5NurZM4R0AnTS202Zfle8/xvoCKgFeuvt5sm9KgFC+wN6rXH/D5I1kx8OBZAAEkACSAAJIAEkgMQE0DAAwpQFbng4XPJ+vO8saNxWhW2uxTBJ1qYFJ67Kj9ICtKhhyuQL6KDH+KuFKxGEcDoEB+0A6LiijxbBQWuSv7orgC7RW3sK2qP4jLRdFm1FP+9AnyJ/T5eEhPXHjCIm3K5wAXpEFboMuqAIp50AB7vHhmLDtkGnqGE6kLD+cxSFD7kA7Y9cTzDA+Vky4sOtNzqQovWfHNQYZAIOJ6SBDtJpcAIGONYh+RbhcE/JViD5QwrHGiSfEU58Ku8ahmMFks8Ix8j+HEVI3Rikti4kvwJwopCCGKSmLiS/InCMQfIrBMcIJJ8RTuAAHHZIRXd3RAvhWYeRBDhrnnuW9DLj9a9x7+4YFjhpkTSi4kD3vBie2ZovWD48L7bD0PBxWpEX7S5LNO1bPy92U/GeM5Qy0bXHlKMybkW72DbT844x+Wkx+dnkAnTL09+whHnou0wNu+OpJ9yS4NzmmsUqbVmzWE3+wZK9dIcAEkBiAkgACSC79l+AAQC8IDsQnBO6IwAAAABJRU5ErkJggg==\");}button.mapboxgl-ctrl-shrink { background-size: 25px 25px; background-repeat: no-repeat; background-position: center; background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzBERTkyMEQ0QTAxMTFFOTgxQ0ZCODZDNzI3QkRFN0MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzBERTkyMEM0QTAxMTFFOTgxQ0ZCODZDNzI3QkRFN0MiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QkMzQjNCM0U0MEJBMTFFOTkzQkFCMzFGQUQyQzZGNDMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QkMzQjNCM0Y0MEJBMTFFOTkzQkFCMzFGQUQyQzZGNDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5lvE/NAAADgUlEQVR42uycv2sUQRTH9waRJDYmd/4DZ/xZmBgVwS4xKQQRxF+V1opiYaNYGbCQWKmFWGul1lrcFYq/EAl4MaeI4SBgoXcWCv5KLNY35gWGYZPMzrzZmz3fF74wd9nZ2f3kzc7Om0kKcRxHrKUlGAEDYkAMiAExIAbUqVq13A/L5fJ/A6LRaDhF0GnwN3AVXMo5i7Xgh+Cv4HMrHVxY7k1aiaDv4DVYroFHwV9yCqcC3omf58Dd4Ng1gl4q5QGHSDoCvgbeYHmDst5V8FFLOFUFjtSkhGP9DFJ0DMkPapDSRNJu8F0s7wNvtLjJB+B+LH8EP08JZ4fy3TvwIapRTEIYA792iKT1WiTYqF8pbzOs07sEnGHwJ8phngISpQqGcCoanLcI57OP96DQIKWNHAlnxBSO7YtiHiD14fUM2UaO65t0yJD6sFupcOoIp5nlVCNESEmRU8du1bQ5oetcLCRIRWx3O0XkUE5WQ4BUxG6VBKcVwmy+nZCS4ExTwKFOd7QDUlK3eoPPnBZFA9T5oCwhlfC8gxqcvVRw0szmbS6+ol38b3BXyjdhXerFzoNXK5+ncG5oBcd1Nk8RSV3Ebahwai5wKGbz+qx8wPDYe+Ct2s1Qax7bOWh4/HvwY1+ADuPFhCQJ/3LKOifAt308pPcQ3dSvjOvp2uVrFLuFuRQXyfTtRcu6F8A/HdufAd9s9yiWO2U9inWMGBADYkAMiAExIAbEgBgQiwExoAAAbcLZfOzgH+Azltd7NlpIebi0/wG8xRegk+DNjr+UHvCEZd0rkXvqVm6hOeUL0CRR5HZnXE/XK9MD06Zc74BnU4SoXCsfj/znpGUbpjvdvOakpZ6gTeBUPcOJ8Pxy7+NY5GFjqa9RbBGOuuI5R9zGH6Us19/kOlwpD4CS4MgVz/PE7ciVjJpvSCIjOKTLwagWdiuvkERO4WQGSXiEM+0ZTiaQBBGcpP05IxnA0SFNUUMSRHCG2ghHhTRKDUl0CBxvkEQHwfECSRDBqQcChxySIIIzHBAcUkgix3BiR0hFSkC9BHBmlfKMJZSG9sxziaSqCSRTQPcJIucZ+Dj4BviAJaD94Ot4nqcE3W3F3XKm+4NkmrRHeyA3o/xpHUbO4h/jyZ23/5JwrvuDxvFkL3IMR42kR9FCou0SVQR1vHiHmaUK/B+osssHMSAGxGJADIhYfwUYAPV4M1e9zWvJAAAAAElFTkSuQmCC\");}.mapboxgl-ctrl-icon.mapboxgl-ctrl-compass > .mapboxgl-ctrl-compass-arrow { width: 20px; height: 20px; margin: 5px; background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\'%3E %3Cpolygon fill=\'%23333333\' points=\'6,9 10,1 14,9\'/%3E %3Cpolygon fill=\'%23CCCCCC\' points=\'6,11 10,19 14,11 \'/%3E %3C/svg%3E\"); background-repeat: no-repeat; display: inline-block;}a.mapboxgl-ctrl-logo { width: 85px; height: 21px; margin: 0 0 -3px -3px; display: block; background-repeat: no-repeat; cursor: pointer; background-image: url(\"data:image/svg+xml;charset=utf-8,%3C?xml version=\'1.0\' encoding=\'utf-8\'?%3E%3Csvg version=\'1.1\' id=\'Layer_1\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' x=\'0px\' y=\'0px\' viewBox=\'0 0 84.49 21\' style=\'enable-background:new 0 0 84.49 21;\' xml:space=\'preserve\'%3E%3Cg%3E %3Cpath class=\'st0\' style=\'opacity:0.9; fill: %23FFFFFF; enable-background: new;\' d=\'M83.25,14.26c0,0.12-0.09,0.21-0.21,0.21h-1.61c-0.13,0-0.24-0.06-0.3-0.17l-1.44-2.39l-1.44,2.39 c-0.06,0.11-0.18,0.17-0.3,0.17h-1.61c-0.04,0-0.08-0.01-0.12-0.03c-0.09-0.06-0.13-0.19-0.06-0.28l0,0l2.43-3.68L76.2,6.84 c-0.02-0.03-0.03-0.07-0.03-0.12c0-0.12,0.09-0.21,0.21-0.21h1.61c0.13,0,0.24,0.06,0.3,0.17l1.41,2.36l1.4-2.35 c0.06-0.11,0.18-0.17,0.3-0.17H83c0.04,0,0.08,0.01,0.12,0.03c0.09,0.06,0.13,0.19,0.06,0.28l0,0l-2.37,3.63l2.43,3.67 C83.24,14.18,83.25,14.22,83.25,14.26z\'/%3E %3Cpath class=\'st0\' style=\'opacity:0.9; fill: %23FFFFFF; enable-background: new;\' d=\'M66.24,9.59c-0.39-1.88-1.96-3.28-3.84-3.28c-1.03,0-2.03,0.42-2.73,1.18V3.51c0-0.13-0.1-0.23-0.23-0.23h-1.4 c-0.13,0-0.23,0.11-0.23,0.23v10.72c0,0.13,0.1,0.23,0.23,0.23h1.4c0.13,0,0.23-0.11,0.23-0.23V13.5c0.71,0.75,1.7,1.18,2.73,1.18 c1.88,0,3.45-1.41,3.84-3.29C66.37,10.79,66.37,10.18,66.24,9.59L66.24,9.59z M62.08,13c-1.32,0-2.39-1.11-2.41-2.48v-0.06 c0.02-1.38,1.09-2.48,2.41-2.48s2.42,1.12,2.42,2.51S63.41,13,62.08,13z\'/%3E %3Cpath class=\'st0\' style=\'opacity:0.9; fill: %23FFFFFF; enable-background: new;\' d=\'M71.67,6.32c-1.98-0.01-3.72,1.35-4.16,3.29c-0.13,0.59-0.13,1.19,0,1.77c0.44,1.94,2.17,3.32,4.17,3.3 c2.35,0,4.26-1.87,4.26-4.19S74.04,6.32,71.67,6.32z M71.65,13.01c-1.33,0-2.42-1.12-2.42-2.51s1.08-2.52,2.42-2.52 c1.33,0,2.42,1.12,2.42,2.51S72.99,13,71.65,13.01L71.65,13.01z\'/%3E %3Cpath class=\'st1\' style=\'opacity:0.35; enable-background:new;\' d=\'M62.08,7.98c-1.32,0-2.39,1.11-2.41,2.48v0.06C59.68,11.9,60.75,13,62.08,13s2.42-1.12,2.42-2.51 S63.41,7.98,62.08,7.98z M62.08,11.76c-0.63,0-1.14-0.56-1.17-1.25v-0.04c0.01-0.69,0.54-1.25,1.17-1.25 c0.63,0,1.17,0.57,1.17,1.27C63.24,11.2,62.73,11.76,62.08,11.76z\'/%3E %3Cpath class=\'st1\' style=\'opacity:0.35; enable-background:new;\' d=\'M71.65,7.98c-1.33,0-2.42,1.12-2.42,2.51S70.32,13,71.65,13s2.42-1.12,2.42-2.51S72.99,7.98,71.65,7.98z M71.65,11.76c-0.64,0-1.17-0.57-1.17-1.27c0-0.7,0.53-1.26,1.17-1.26s1.17,0.57,1.17,1.27C72.82,11.21,72.29,11.76,71.65,11.76z\'/%3E %3Cpath class=\'st0\' style=\'opacity:0.9; fill: %23FFFFFF; enable-background: new;\' d=\'M45.74,6.53h-1.4c-0.13,0-0.23,0.11-0.23,0.23v0.73c-0.71-0.75-1.7-1.18-2.73-1.18 c-2.17,0-3.94,1.87-3.94,4.19s1.77,4.19,3.94,4.19c1.04,0,2.03-0.43,2.73-1.19v0.73c0,0.13,0.1,0.23,0.23,0.23h1.4 c0.13,0,0.23-0.11,0.23-0.23V6.74c0-0.12-0.09-0.22-0.22-0.22C45.75,6.53,45.75,6.53,45.74,6.53z M44.12,10.53 C44.11,11.9,43.03,13,41.71,13s-2.42-1.12-2.42-2.51s1.08-2.52,2.4-2.52c1.33,0,2.39,1.11,2.41,2.48L44.12,10.53z\'/%3E %3Cpath class=\'st1\' style=\'opacity:0.35; enable-background:new;\' d=\'M41.71,7.98c-1.33,0-2.42,1.12-2.42,2.51S40.37,13,41.71,13s2.39-1.11,2.41-2.48v-0.06 C44.1,9.09,43.03,7.98,41.71,7.98z M40.55,10.49c0-0.7,0.52-1.27,1.17-1.27c0.64,0,1.14,0.56,1.17,1.25v0.04 c-0.01,0.68-0.53,1.24-1.17,1.24C41.08,11.75,40.55,11.19,40.55,10.49z\'/%3E %3Cpath class=\'st0\' style=\'opacity:0.9; fill: %23FFFFFF; enable-background: new;\' d=\'M52.41,6.32c-1.03,0-2.03,0.42-2.73,1.18V6.75c0-0.13-0.1-0.23-0.23-0.23h-1.4c-0.13,0-0.23,0.11-0.23,0.23 v10.72c0,0.13,0.1,0.23,0.23,0.23h1.4c0.13,0,0.23-0.1,0.23-0.23V13.5c0.71,0.75,1.7,1.18,2.74,1.18c2.17,0,3.94-1.87,3.94-4.19 S54.58,6.32,52.41,6.32z M52.08,13.01c-1.32,0-2.39-1.11-2.42-2.48v-0.07c0.02-1.38,1.09-2.49,2.4-2.49c1.32,0,2.41,1.12,2.41,2.51 S53.4,13,52.08,13.01L52.08,13.01z\'/%3E %3Cpath class=\'st1\' style=\'opacity:0.35; enable-background:new;\' d=\'M52.08,7.98c-1.32,0-2.39,1.11-2.42,2.48v0.06c0.03,1.38,1.1,2.48,2.42,2.48s2.41-1.12,2.41-2.51 S53.4,7.98,52.08,7.98z M52.08,11.76c-0.63,0-1.14-0.56-1.17-1.25v-0.04c0.01-0.69,0.54-1.25,1.17-1.25c0.63,0,1.17,0.58,1.17,1.27 S52.72,11.76,52.08,11.76z\'/%3E %3Cpath class=\'st0\' style=\'opacity:0.9; fill: %23FFFFFF; enable-background: new;\' d=\'M36.08,14.24c0,0.13-0.1,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68c0-0.98-0.74-1.71-1.62-1.71 c-0.8,0-1.46,0.7-1.59,1.62l0.01,4.66c0,0.13-0.11,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68 c0-0.98-0.74-1.71-1.62-1.71c-0.85,0-1.54,0.79-1.6,1.8v4.48c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V6.74 c0.01-0.13,0.1-0.22,0.23-0.22h1.4c0.13,0,0.22,0.11,0.23,0.22V7.4c0.5-0.68,1.3-1.09,2.16-1.1h0.03c1.09,0,2.09,0.6,2.6,1.55 c0.45-0.95,1.4-1.55,2.44-1.56c1.62,0,2.93,1.25,2.9,2.78L36.08,14.24z\'/%3E %3Cpath class=\'st1\' style=\'opacity:0.35; enable-background:new;\' d=\'M84.34,13.59l-0.07-0.13l-1.96-2.99l1.94-2.95c0.44-0.67,0.26-1.56-0.41-2.02c-0.02,0-0.03,0-0.04-0.01 c-0.23-0.15-0.5-0.22-0.78-0.22h-1.61c-0.56,0-1.08,0.29-1.37,0.78L79.72,6.6l-0.34-0.56C79.09,5.56,78.57,5.27,78,5.27h-1.6 c-0.6,0-1.13,0.37-1.35,0.92c-2.19-1.66-5.28-1.47-7.26,0.45c-0.35,0.34-0.65,0.72-0.89,1.14c-0.9-1.62-2.58-2.72-4.5-2.72 c-0.5,0-1.01,0.07-1.48,0.23V3.51c0-0.82-0.66-1.48-1.47-1.48h-1.4c-0.81,0-1.47,0.66-1.47,1.47v3.75 c-0.95-1.36-2.5-2.18-4.17-2.19c-0.74,0-1.46,0.16-2.12,0.47c-0.24-0.17-0.54-0.26-0.84-0.26h-1.4c-0.45,0-0.87,0.21-1.15,0.56 c-0.02-0.03-0.04-0.05-0.07-0.08c-0.28-0.3-0.68-0.47-1.09-0.47h-1.39c-0.3,0-0.6,0.09-0.84,0.26c-0.67-0.3-1.39-0.46-2.12-0.46 c-1.83,0-3.43,1-4.37,2.5c-0.2-0.46-0.48-0.89-0.83-1.25c-0.8-0.81-1.89-1.25-3.02-1.25h-0.01c-0.89,0.01-1.75,0.33-2.46,0.88 c-0.74-0.57-1.64-0.88-2.57-0.88H28.1c-0.29,0-0.58,0.03-0.86,0.11c-0.28,0.06-0.56,0.16-0.82,0.28c-0.21-0.12-0.45-0.18-0.7-0.18 h-1.4c-0.82,0-1.47,0.66-1.47,1.47v7.5c0,0.82,0.66,1.47,1.47,1.47h1.4c0.82,0,1.48-0.66,1.48-1.48l0,0V9.79 c0.03-0.36,0.23-0.59,0.36-0.59c0.18,0,0.38,0.18,0.38,0.47v4.57c0,0.82,0.66,1.47,1.47,1.47h1.41c0.82,0,1.47-0.66,1.47-1.47 l-0.01-4.57c0.06-0.32,0.25-0.47,0.35-0.47c0.18,0,0.38,0.18,0.38,0.47v4.57c0,0.82,0.66,1.47,1.47,1.47h1.41 c0.82,0,1.47-0.66,1.47-1.47v-0.38c0.96,1.29,2.46,2.06,4.06,2.06c0.74,0,1.46-0.16,2.12-0.47c0.24,0.17,0.54,0.26,0.84,0.26h1.39 c0.3,0,0.6-0.09,0.84-0.26v2.01c0,0.82,0.66,1.47,1.47,1.47h1.4c0.82,0,1.47-0.66,1.47-1.47v-1.77c0.48,0.15,0.99,0.23,1.49,0.22 c1.7,0,3.22-0.87,4.17-2.2v0.52c0,0.82,0.66,1.47,1.47,1.47h1.4c0.3,0,0.6-0.09,0.84-0.26c0.66,0.31,1.39,0.47,2.12,0.47 c1.92,0,3.6-1.1,4.49-2.73c1.54,2.65,4.95,3.53,7.58,1.98c0.18-0.11,0.36-0.22,0.53-0.36c0.22,0.55,0.76,0.91,1.35,0.9H78 c0.56,0,1.08-0.29,1.37-0.78l0.37-0.61l0.37,0.61c0.29,0.48,0.81,0.78,1.38,0.78h1.6c0.81,0,1.46-0.66,1.45-1.46 C84.49,14.02,84.44,13.8,84.34,13.59L84.34,13.59z M35.86,14.47h-1.41c-0.13,0-0.23-0.11-0.23-0.23V9.68 c0-0.98-0.74-1.71-1.62-1.71c-0.8,0-1.46,0.7-1.59,1.62l0.01,4.66c0,0.13-0.1,0.23-0.23,0.23h-1.41c-0.13,0-0.23-0.11-0.23-0.23 V9.68c0-0.98-0.74-1.71-1.62-1.71c-0.85,0-1.54,0.79-1.6,1.8v4.48c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23 V6.74c0.01-0.13,0.11-0.22,0.23-0.22h1.4c0.13,0,0.22,0.11,0.23,0.22V7.4c0.5-0.68,1.3-1.09,2.16-1.1h0.03 c1.09,0,2.09,0.6,2.6,1.55c0.45-0.95,1.4-1.55,2.44-1.56c1.62,0,2.93,1.25,2.9,2.78l0.01,5.16C36.09,14.36,35.98,14.46,35.86,14.47 L35.86,14.47z M45.97,14.24c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V13.5c-0.7,0.76-1.69,1.18-2.72,1.18 c-2.17,0-3.94-1.87-3.94-4.19s1.77-4.19,3.94-4.19c1.03,0,2.02,0.43,2.73,1.18V6.74c0-0.13,0.1-0.23,0.23-0.23h1.4 c0.12-0.01,0.22,0.08,0.23,0.21c0,0.01,0,0.01,0,0.02v7.51h-0.01V14.24z M52.41,14.67c-1.03,0-2.02-0.43-2.73-1.18v3.97 c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.1-0.23-0.23V6.75c0-0.13,0.1-0.22,0.23-0.22h1.4c0.13,0,0.23,0.11,0.23,0.23v0.73 c0.71-0.76,1.7-1.18,2.73-1.18c2.17,0,3.94,1.86,3.94,4.18S54.58,14.67,52.41,14.67z M66.24,11.39c-0.39,1.87-1.96,3.29-3.84,3.29 c-1.03,0-2.02-0.43-2.73-1.18v0.73c0,0.13-0.1,0.23-0.23,0.23h-1.4c-0.13,0-0.23-0.11-0.23-0.23V3.51c0-0.13,0.1-0.23,0.23-0.23 h1.4c0.13,0,0.23,0.11,0.23,0.23v3.97c0.71-0.75,1.7-1.18,2.73-1.17c1.88,0,3.45,1.4,3.84,3.28C66.37,10.19,66.37,10.8,66.24,11.39 L66.24,11.39L66.24,11.39z M71.67,14.68c-2,0.01-3.73-1.35-4.17-3.3c-0.13-0.59-0.13-1.19,0-1.77c0.44-1.94,2.17-3.31,4.17-3.3 c2.36,0,4.26,1.87,4.26,4.19S74.03,14.68,71.67,14.68L71.67,14.68z M83.04,14.47h-1.61c-0.13,0-0.24-0.06-0.3-0.17l-1.44-2.39 l-1.44,2.39c-0.06,0.11-0.18,0.17-0.3,0.17h-1.61c-0.04,0-0.08-0.01-0.12-0.03c-0.09-0.06-0.13-0.19-0.06-0.28l0,0l2.43-3.68 L76.2,6.84c-0.02-0.03-0.03-0.07-0.03-0.12c0-0.12,0.09-0.21,0.21-0.21h1.61c0.13,0,0.24,0.06,0.3,0.17l1.41,2.36l1.41-2.36 c0.06-0.11,0.18-0.17,0.3-0.17h1.61c0.04,0,0.08,0.01,0.12,0.03c0.09,0.06,0.13,0.19,0.06,0.28l0,0l-2.38,3.64l2.43,3.67 c0.02,0.03,0.03,0.07,0.03,0.12C83.25,14.38,83.16,14.47,83.04,14.47L83.04,14.47L83.04,14.47z\'/%3E %3Cpath class=\'st0\' style=\'opacity:0.9; fill: %23FFFFFF; enable-background: new;\' d=\'M10.5,1.24c-5.11,0-9.25,4.15-9.25,9.25s4.15,9.25,9.25,9.25s9.25-4.15,9.25-9.25 C19.75,5.38,15.61,1.24,10.5,1.24z M14.89,12.77c-1.93,1.93-4.78,2.31-6.7,2.31c-0.7,0-1.41-0.05-2.1-0.16c0,0-1.02-5.64,2.14-8.81 c0.83-0.83,1.95-1.28,3.13-1.28c1.27,0,2.49,0.51,3.39,1.42C16.59,8.09,16.64,11,14.89,12.77z\'/%3E %3Cpath class=\'st1\' style=\'opacity:0.35; enable-background:new;\' d=\'M10.5-0.01C4.7-0.01,0,4.7,0,10.49s4.7,10.5,10.5,10.5S21,16.29,21,10.49C20.99,4.7,16.3-0.01,10.5-0.01z M10.5,19.74c-5.11,0-9.25-4.15-9.25-9.25s4.14-9.26,9.25-9.26s9.25,4.15,9.25,9.25C19.75,15.61,15.61,19.74,10.5,19.74z\'/%3E %3Cpath class=\'st1\' style=\'opacity:0.35; enable-background:new;\' d=\'M14.74,6.25C12.9,4.41,9.98,4.35,8.23,6.1c-3.16,3.17-2.14,8.81-2.14,8.81s5.64,1.02,8.81-2.14 C16.64,11,16.59,8.09,14.74,6.25z M12.47,10.34l-0.91,1.87l-0.9-1.87L8.8,9.43l1.86-0.9l0.9-1.87l0.91,1.87l1.86,0.9L12.47,10.34z\'/%3E %3Cpolygon class=\'st0\' style=\'opacity:0.9; fill: %23FFFFFF; enable-background: new;\' points=\'14.33,9.43 12.47,10.34 11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 \'/%3E%3C/g%3E%3C/svg%3E\");}a.mapboxgl-ctrl-logo.mapboxgl-compact { width: 21px; height: 21px; background-image: url(\"data:image/svg+xml;charset=utf-8,%3C?xml version=\'1.0\' encoding=\'utf-8\'?%3E %3Csvg version=\'1.1\' id=\'Layer_1\' xmlns=\'http://www.w3.org/2000/svg\' xmlns:xlink=\'http://www.w3.org/1999/xlink\' x=\'0px\' y=\'0px\' viewBox=\'0 0 21 21\' style=\'enable-background:new 0 0 21 21;\' xml:space=\'preserve\'%3E%3Cg transform=\'translate(0,0.01)\'%3E%3Cpath d=\'m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z\' style=\'opacity:0.9;fill:%23ffffff;enable-background:new\' class=\'st0\'/%3E%3Cpath d=\'M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z\' style=\'opacity:0.35;enable-background:new\' class=\'st1\'/%3E%3Cpath d=\'M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z\' style=\'opacity:0.35;enable-background:new\' class=\'st1\'/%3E%3Cpolygon points=\'11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 \' style=\'opacity:0.9;fill:%23ffffff;enable-background:new\' class=\'st0\'/%3E%3C/g%3E%3C/svg%3E\");}.mapboxgl-ctrl.mapboxgl-ctrl-attrib { padding: 0 1px; margin: 0; right:0;bottom:0;}@media screen { .mapboxgl-ctrl-attrib.mapboxgl-compact { min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px; } .mapboxgl-ctrl-attrib.mapboxgl-compact:hover { padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px; } .mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:hover, .mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:hover { padding: 2px 4px 2px 24px; border-radius: 12px 3px 3px 12px; } .mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner { display: none; } .mapboxgl-ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner { display: block; } .mapboxgl-ctrl-attrib.mapboxgl-compact::after { content: \'\'; cursor: pointer; position: absolute; background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\'%3E %3Cpath fill=\'%23333333\' fill-rule=\'evenodd\' d=\'M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0\'/%3E %3C/svg%3E\"); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px; } .mapboxgl-ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after { bottom: 0; right: 0; } .mapboxgl-ctrl-top-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after { top: 0; right: 0; } .mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after { top: 0; left: 0; } .mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after { bottom: 0; left: 0; }}.mapboxgl-ctrl-attrib a { color: rgba(0, 0, 0, 0.75); text-decoration: none;}.mapboxgl-ctrl-attrib a:hover { color: inherit; text-decoration: underline;}/* stylelint-disable-next-line selector-class-pattern */.mapboxgl-ctrl-attrib .mapbox-improve-map { font-weight: bold; margin-left: 2px;}.mapboxgl-attrib-empty { display: none;}.mapboxgl-ctrl-scale { font-size: 10px; border-width: medium 1px 1px; border-style: none solid solid; border-color: #b3aaaa; box-sizing: border-box; line-height: 10px; margin: -35px 5px 0 0;}.mapboxgl-popup { display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right { -webkit-flex-direction: column; flex-direction: column;}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right { -webkit-flex-direction: column-reverse; flex-direction: column-reverse;}.mapboxgl-popup-anchor-left { -webkit-flex-direction: row; flex-direction: row;}.mapboxgl-popup-anchor-right { -webkit-flex-direction: row-reverse; flex-direction: row-reverse;}.mapboxgl-popup-tip { width: 0; height: 0; border: 10px solid transparent; z-index: 1;}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip { -webkit-align-self: center; align-self: center; border-top: none; border-bottom-color: #fff;}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip { -webkit-align-self: flex-start; align-self: flex-start; border-top: none; border-left: none; border-bottom-color: #fff;}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip { -webkit-align-self: flex-end; align-self: flex-end; border-top: none; border-right: none; border-bottom-color: #fff;}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip { -webkit-align-self: center; align-self: center; border-bottom: none; border-top-color: #fff;}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip { -webkit-align-self: flex-start; align-self: flex-start; border-bottom: none; border-left: none; border-top-color: #fff;}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip { -webkit-align-self: flex-end; align-self: flex-end; border-bottom: none; border-right: none; border-top-color: #fff;}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip { -webkit-align-self: center; align-self: center; border-left: none; border-right-color: #fff;}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip { -webkit-align-self: center; align-self: center; border-right: none; border-left-color: #fff;}.mapboxgl-popup-close-button { position: absolute; right: -2px; top: -3px; font-size: 20px; border: 0; border-radius: 0 3px 0 0; cursor: pointer; background-color: transparent;}.mapboxgl-popup-close-button:hover { background-color: rgba(0, 0, 0, 0.05);}.mapboxgl-popup-content { position: relative; background: #fff; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); padding: 10px 10px 15px; pointer-events: auto;}.mapboxgl-popup-content img { width: 100%;}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content { border-top-left-radius: 0;}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content { border-top-right-radius: 0;}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content { border-bottom-left-radius: 0;}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content { border-bottom-right-radius: 0;}.round_marker{ margin:3px 0 0 0;background:#fff;border:1px solid #adaada;width:9px;height:9px;border-radius:50%}.mapboxgl-marker { position: absolute; top: 0; left: 0; will-change: transform;}.mapboxgl-user-location-dot { background-color: #1da1f2; width: 15px; height: 15px; border-radius: 50%; box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);}.mapboxgl-user-location-dot::before { background-color: #1da1f2; content: \'\'; width: 15px; height: 15px; border-radius: 50%; position: absolute; -webkit-animation: mapboxgl-user-location-dot-pulse 2s infinite; -moz-animation: mapboxgl-user-location-dot-pulse 2s infinite; -ms-animation: mapboxgl-user-location-dot-pulse 2s infinite; animation: mapboxgl-user-location-dot-pulse 2s infinite;}.mapboxgl-user-location-dot::after { border-radius: 50%; border: 2px solid #fff; content: \'\'; height: 19px; left: -2px; position: absolute; top: -2px; width: 19px; box-sizing: border-box;}@-webkit-keyframes mapboxgl-user-location-dot-pulse { 0% { -webkit-transform: scale(1); opacity: 1; } 70% { -webkit-transform: scale(3); opacity: 0; } 100% { -webkit-transform: scale(1); opacity: 0; }}@-ms-keyframes mapboxgl-user-location-dot-pulse { 0% { -ms-transform: scale(1); opacity: 1; } 70% { -ms-transform: scale(3); opacity: 0; } 100% { -ms-transform: scale(1); opacity: 0; }}@keyframes mapboxgl-user-location-dot-pulse { 0% { transform: scale(1); opacity: 1; } 70% { transform: scale(3); opacity: 0; } 100% { transform: scale(1); opacity: 0; }}.mapboxgl-user-location-dot-stale { background-color: #aaa;}.mapboxgl-user-location-dot-stale::after { display: none;}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active { cursor: crosshair;}.mapboxgl-boxzoom { position: absolute; top: 0; left: 0; width: 0; height: 0; background: #fff; border: 2px dotted #202020; opacity: 0.5;}@media print { /* stylelint-disable-next-line selector-class-pattern */ .mapbox-improve-map { display: none; }}.map-control{ position:absolute; box-sizing:border-box; top:50%;right: 5px; transform: translateY(-50%); z-index:999;display:block;}.map-control .expand-map-control { margin: 0; padding: 0; display: block; list-style:none;}.map-control .expand-map-control > li{ position:relative; padding:0; margin: 0px 4px;}.map-control .expand-map-control > li:hover{ text-decoration: none;}.map-control .expand-map-control > li > a{ background: #fff; font-size: 28px; width: 36px; height: 37px; color: #333; text-align: center; display: block; text-decoration: none; line-height: 38px; cursor:pointer; -webkit-user-select: none; /* Chrome/Safari */ -moz-user-select: none; /* Firefox */-ms-user-select: none;-o-user-select: none;user-select: none;box-shadow: 0 0 0 2px rgb(0 0 0 / 10%)}.map-control .expand-map-control > li > a > img { height: 20px; position: absolute; left: 9px; top: 8px;}.map-control .expand-map-control > li:last-child{ border-bottom:none;}.map-control a.collapse-map-control{ background:#50798d; font-size:18px; width:30px; height:30px; color:#fff; text-align:center; display:block; top: 92px; position: relative; z-index:1; line-height: 31px;}.map-control a.collapse-map-control:hover{ background:#d26d00;}.map-control a.collapse-map-control.active{ border-top-left-radius: 5px; border-bottom-left-radius: 5px;}.map-control a.collapse-map-control.active .ti-shift-right-alt:before{ content: \"\\e6da\";}.expand-map-control > li .ft-layer-link{ position: absolute; right: -10px; top: -125px; display:none;list-style:none; border: 1px solid #ddd; padding: 0;}.expand-map-control > li .ft-layer-link > li{ float: right; border-bottom: 1px solid #ddd; padding:0; height: 59px}.expand-map-control > li .ft-layer-link > li:last-child{ border-bottom: 0;}.expand-map-control > li .ft-layer-link > li > a{ font-size: 14px !important; width: 170px !important; color: #888; text-align: left !important; display: block; line-height: 49px; padding: 5px 5px 5px 2px; background: #fff !important; border-bottom:1px solid #f1eaea; font-weight: bold }.expand-map-control > li .ft-layer-link > li > a:hover{ background: #dfdfdf !important;}.expand-map-control > li > .ft-layer-link > li > a .layer-item-img{ width:55px; height:55px; float:left; margin-right:10px; padding: 0 5px;} .map-control .expand-map-control > li:hover > a{background:#ddd;}.expand-map-control.map-control .expand-map-control > li.layer-item-wrap:hover > .ft-layer-link{display:block;}.expand-map-control > :first-child a{ border-radius:6px 6px 0 0}.mapboxgl-ctrl-zoom-in,.mapboxgl-ctrl-zoom-out,.mapboxgl-ctrl-compass{display: none !important/* control hide*/}#mmi_attrib{text-align: right;line-height: 12px ;padding-bottom: 2px;font-family: roboto,arial}#mmi_attrib span{background: #fff;font-size: 11px;padding: 0 2px}.mcompass{height:22px;display: block;background-size: 25px 25px;background-position: center;background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox=\'0 0 20 20\' xmlns=\'http://www.w3.org/2000/svg\'%3E %3Cpolygon fill=\'%23333333\' points=\'6,9 10,1 14,9\'/%3E %3Cpolygon fill=\'%23CCCCCC\' points=\'6,11 10,19 14,11 \'/%3E %3C/svg%3E\");background-repeat: no-repeat}.expand-map-control .D3{ font-weight: 800;line-height:10px; color: #555;text-shadow:0 1px 0 hsl(174,5%,80%),0 2px 0 hsl(174,5%,75%),0 3px 0 hsl(174,5%,70%),0 4px 0 hsl(174,5%,66%);}.flr{min-width: 20px;box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);clear: both;width:25%;font-size: 15px;text-align: center;background: #fff;border-bottom: 1px solid #f8f8f8; padding: 2px 4px;cursor:pointer;margin-left: 0;margin-left:34%}.indoor_nme {cursor:pointer;font-size: 11px;color:#77a0e8;line-height: 20px; overflow: hidden;border-radius:15px;padding-left:6px;max-width: 104px;text-overflow: ellipsis;white-space: nowrap;width: 100%;position: relative; top: -2px;background: #eee;border:1px solid #bba1a1}.flrclk{background: #e8e8e8;color:#3A78E7;font-weight: bold;}.bl_flr_dv{display:none}.flr_opndv{display: grid;}.flr_opndv+tr>td>div{background: #fff;color:#3A78E7;cursor:auto}#fsl0 div.flr:first-child { border-radius: 15px 15px 0 0;padding-top: 5px;}#fsl0 div.flr:last-child { border-radius: 0 0 15px 15px;padding-bottom: 5px;}/*search*/.mmi_load {display:inline-block;border: 3px solid #ddd; border-radius: 50%; border-top: 3px solid #333; width: 6px; height: 6px; -webkit-animation: mmi_spin 2s linear infinite; /* Safari */ animation: mmi_spin 2s linear infinite;}/* Safari */@-webkit-keyframes mmi_spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); }}@keyframes mmi_spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); }}#inputright{font-size:10px;width:18px;height:18px;border: 1px solid #ddd; border-radius: 50%; text-align: center; line-height: 14px; padding: 2px;color:#bbb;z-index: 111 !important;position: absolute;z-index:12;cursor:pointer;background: #fff;}.mmi_search_dv{text-align: left;border:1px solid #efecec;background: #fff;border-radius: 5px;font-family: arial;position: absolute;z-index:1111; height: auto; max-height: 350px; overflow: hidden; padding-bottom: 20px;line-height: 14px;}.mmi_search_dv span{font-size: 14px;text-align: left}.mmi_s_ul { height: calc(100% - 2px);max-height: 340px; overflow-y: auto; list-style: none; padding: 0; margin-top:2px;margin-bottom: 0px;background: #fff;}#pwrd{font-size: 10px; text-align: right; float: right; width: 100%; border-top: 1px solid #c0b2b2; font-stretch: condensed; font-weight: 800; color: #777777;}.mmi_s_ul li{ padding: 5px 10px 05px 2px; border-bottom: 1px solid #fbf2f2; }.mmi_s_ul li:hover,.mmi_s_ul li.active { background-color: #e0e2e6; cursor: pointer;}.mmi_s_ul li.active>div>div.result_img{background: #fff}.mmi_s_ul li p { margin: 5px 0 3px 0;color:#757575;font-size: 12px; text-align: left;padding:2px 0px; }.mmi_s_ul::-webkit-scrollbar { width: 5px; background: #fff; }.mmi_s_ul::-webkit-scrollbar-thumb { background: #eee; }.result_img { width: 30px; height: 30px; text-align: center; background-color: #efefef; border-radius: 50%; float: left;}.result_img img { width: 12px; height: 12px; margin-top: 9px; display: inline-block;}.result_cont{width:calc(100% - 46px);display: inline-block;margin-left: 10px;padding-top: 5px}.polygon_txt{width:auto !important;height:auto !important}.mpplAtt{position: absolute;width: 100%;bottom: 0;left: 0}';var _0xmmi=["\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x68\x65\x61\x64"];document[_0xmmi[1]][_0xmmi[0]](_MMIe);try{var _0xMMIst='{"version":8,"name":"102024_daymode_worldmap","metadata":{"mapbox:autocomposite":true,"mapbox:type":"template","mapbox:trackposition":false,"mapbox:groups":[]},"center":[28.645160053507936,77.86994068103041],"minzoom":4,"bearing":0,"pitch":0,"sources":{"maplayout":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/v1/v_mmi/base/vector_tile/{z}/{x}/{y}.pbf?v=102024"],"type":"vector","minzoom":1,"maxzoom":16},"maplabel":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/v1/v_mmi/label/vector_tile/{z}/{x}/{y}.pbf?v=102024"],"type":"vector","minzoom":1,"maxzoom":16},"saudipoc":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/v1/v_mmi/base/vector_tile/{z}/{x}/{y}.pbf?v=saudi"],"type":"vector","minzoom":12,"maxzoom":16,"bounds":[46.591825849562355,24.71673,46.702385,24.8108012]},"asia":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/api/v_mmi/vector_world/vector_tile/{z}/{x}/{y}.pbf?region=asia&v=2024"],"type":"vector","minzoom":4,"maxzoom":14},"world_ocean":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/api/v_mmi/vector_world/vector_tile/{z}/{x}/{y}.pbf?region=world_ocean&v=2023"],"type":"vector","minzoom":4,"maxzoom":14},"australia":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/api/v_mmi/vector_world/vector_tile/{z}/{x}/{y}.pbf?region=australia&v=2024"],"type":"vector","minzoom":4,"maxzoom":14,"bounds":[102.12890625,-52.16045455,181.845703125,9.015302333]},"africa":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/api/v_mmi/vector_world/vector_tile/{z}/{x}/{y}.pbf?region=africa&v=2023"],"type":"vector","minzoom":4,"maxzoom":14,"bounds":[-23.90625,-37.996162,63.28125,37.71859]},"kec":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/api/v_mmi/vector_world/vector_tile/{z}/{x}/{y}.pbf?region=kec&v=2023"],"type":"vector","minzoom":3,"maxzoom":15,"bounds":[-83.252266687167,-22.16391573,63.009117040133134,48.984838082]},"sea":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/api/v_mmi/vector_world/vector_tile/{z}/{x}/{y}.pbf?region=sea&v=2024"],"type":"vector","minzoom":3,"maxzoom":15},"central_america":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/api/v_mmi/vector_world/vector_tile/{z}/{x}/{y}.pbf?region=central_america&v=2022"],"type":"vector","minzoom":4,"maxzoom":14,"bounds":[-109.6875,4.39022892,-50.625,26.1159859]},"south_america":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/api/v_mmi/vector_world/vector_tile/{z}/{x}/{y}.pbf?region=south_america&v=2023"],"type":"vector","minzoom":4,"maxzoom":14,"bounds":[-98.0859375,-55.9737982,-31.9921875,18.64624514]},"north_america":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/api/v_mmi/vector_world/vector_tile/{z}/{x}/{y}.pbf?region=north_america&v=2022"],"type":"vector","minzoom":4,"maxzoom":14,"bounds":[-180.96875,14.264383,-4.5703125,84.1249731]},"europe":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/api/v_mmi/vector_world/vector_tile/{z}/{x}/{y}.pbf?region=europe&v=2022"],"type":"vector","minzoom":4,"maxzoom":14,"bounds":[-74.53125,34.3071438,46.40625,84.267172]},"Indoor":{"tiles":["mmi_h.mapmyindia.com/advancedmaps/v1/v_mmi/base/vector_tile/{z}/{x}/{y}.pbf?v=indoor_2300"],"type":"vector","bounds":[67.7856,5.6597,101.5796,37.1957],"minzoom":15,"maxzoom":16},"dem":{"type":"raster","tiles":["https://apis.mapmyindia.com/advancedmaps/v1/v_mmi/dem_tile/{z}/{x}/{y}.pbf?platform=1&v=2111"],"tileSize":256,"minzoom":1,"maxzoom":8},"trafficMMI":{"type":"vector","tiles":["https://traffic.mapmyindia.com/advancedmaps/v2/traffic_flow/vector_tile/{z}/{x}/{y}.pbf"],"minzoom":8,"maxzoom":22}},"sprite":"https://apis.mapmyindia.com/vector_map/sprites/icon_5.0.9.4_6_6_2300_vhcl","glyphs":"https://apis.mapmyindia.com/vector_map/glyphs/{fontstack}/{range}.pbf","light":{"anchor":"map","color":"#fcfcfc","intensity":0.1,"position":[1.5,70,45]},"layers":[{"id":"background","paint":{"background-color":"#e4ecd2"},"type":"background"},{"id":"background_z6","type":"background","minzoom":6,"paint":{"background-color":"#eaeaea"}},{"id":"dem","type":"raster","source":"dem","minzoom":1,"maxzoom":6,"layout":{"visibility":"visible"},"paint":{"raster-opacity":1}},{"id":"landcover-wood_asia","type":"fill","source":"asia","source-layer":"landcover","minzoom":5,"filter":["all",["==","class","wood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#c4e2ae","fill-antialias":true,"fill-opacity":1}},{"id":"boundary-admin2_asia","type":"line","source":"asia","source-layer":"boundary","minzoom":1,"filter":["all",["==","admin_level",2],["==","disputed",0],["!=","boundary","india"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map"}},{"id":"boundary-admin4_asia","type":"line","source":"asia","source-layer":"boundary","minzoom":5,"filter":["all",["in","admin_level",4,91],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#8d8d8d","line-opacity":{"base":1,"stops":[[3,1]]},"line-width":0.5,"line-dasharray":{"base":1,"stops":[[3,[2,2,2,2]],[21,[2,2,4,2]]]}}},{"id":"landcover-wood_australia","type":"fill","source":"australia","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#c4e2ae","fill-antialias":true,"fill-opacity":1}},{"id":"boundary-admin2_australia","type":"line","source":"australia","source-layer":"boundary","minzoom":1,"filter":["all",["==","admin_level",2],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map"}},{"id":"boundary-admin4_australia","type":"line","source":"australia","source-layer":"boundary","minzoom":5,"filter":["all",["in","admin_level",4,91],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#8d8d8d","line-opacity":{"base":1,"stops":[[3,1]]},"line-width":0.5,"line-dasharray":{"base":1,"stops":[[3,[2,2,2,2]],[21,[2,2,4,2]]]}}},{"id":"landcover-wood_africa","type":"fill","source":"africa","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#c4e2ae","fill-antialias":true,"fill-opacity":1}},{"id":"boundary-admin2_africa","type":"line","source":"africa","source-layer":"boundary","minzoom":1,"filter":["all",["==","admin_level",2],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map"}},{"id":"boundary-admin4_africa","type":"line","source":"africa","source-layer":"boundary","minzoom":5,"filter":["all",["in","admin_level",4,91],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#8d8d8d","line-opacity":{"base":1,"stops":[[3,1]]},"line-width":0.5,"line-dasharray":{"base":1,"stops":[[3,[2,2,2,2]],[21,[2,2,4,2]]]}}},{"id":"landcover-wood_south_america","type":"fill","source":"south_america","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#c4e2ae","fill-antialias":true,"fill-opacity":1}},{"id":"boundary-admin2_south_america","type":"line","source":"south_america","source-layer":"boundary","minzoom":1,"filter":["all",["==","admin_level",2],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map"}},{"id":"boundary-admin4_south_america","type":"line","source":"south_america","source-layer":"boundary","minzoom":5,"filter":["all",["in","admin_level",4,91],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#8d8d8d","line-opacity":{"base":1,"stops":[[3,1]]},"line-width":0.5,"line-dasharray":{"base":1,"stops":[[3,[2,2,2,2]],[21,[2,2,4,2]]]}}},{"id":"landcover-wood_central_america","type":"fill","source":"central_america","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#c4e2ae","fill-antialias":true,"fill-opacity":1}},{"id":"boundary-admin2_central_america","type":"line","source":"central_america","source-layer":"boundary","minzoom":1,"filter":["all",["==","admin_level",2],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map"}},{"id":"boundary-admin4_central_america","type":"line","source":"central_america","source-layer":"boundary","minzoom":5,"filter":["all",["in","admin_level",4,91],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#8d8d8d","line-opacity":{"base":1,"stops":[[3,1]]},"line-width":0.5,"line-dasharray":{"base":1,"stops":[[3,[2,2,2,2]],[21,[2,2,4,2]]]}}},{"id":"landcover-wood_north_america","type":"fill","source":"north_america","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#c4e2ae","fill-antialias":true,"fill-opacity":1}},{"id":"boundary-admin2_north_america","type":"line","source":"north_america","source-layer":"boundary","minzoom":1,"filter":["all",["==","admin_level",2],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map"}},{"id":"boundary-admin4_north_america","type":"line","source":"north_america","source-layer":"boundary","minzoom":5,"filter":["all",["in","admin_level",4,91],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#8d8d8d","line-opacity":{"base":1,"stops":[[3,1]]},"line-width":0.5,"line-dasharray":{"base":1,"stops":[[3,[2,2,2,2]],[21,[2,2,4,2]]]}}},{"id":"landcover-wood_europe","type":"fill","source":"europe","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wood"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#c4e2ae","fill-antialias":true,"fill-opacity":1}},{"id":"boundary-admin2_europe","type":"line","source":"europe","source-layer":"boundary","minzoom":1,"filter":["all",["==","admin_level",2],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map"}},{"id":"boundary-admin4_europe","type":"line","source":"europe","source-layer":"boundary","minzoom":5,"filter":["all",["in","admin_level",4,91],["==","disputed",0]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#8d8d8d","line-opacity":{"base":1,"stops":[[3,1]]},"line-width":0.5,"line-dasharray":{"base":1,"stops":[[3,[2,2,2,2]],[21,[2,2,4,2]]]}}},{"id":"landuse_all_asia","type":"fill","source":"asia","source-layer":"landuse","minzoom":11,"layout":{"visibility":"visible"},"paint":{"fill-color":"#dfdfdf","fill-opacity":1}},{"id":"park_asia","type":"fill","source":"asia","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"ocean_fill","type":"fill","source":"world_ocean","source-layer":"worldocean","minzoom":4,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-opacity":1}},{"id":"waterway_line","type":"line","source":"world_ocean","source-layer":"waterway","minzoom":5,"maxzoom":10,"layout":{"visibility":"visible"},"paint":{"line-color":"#99cdfe"}},{"id":"landcover-grass_asia","type":"fill","source":"asia","source-layer":"landcover","minzoom":5,"filter":["all",["in","class","grass","farmland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-wetland_asia","type":"fill","source":"asia","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wetland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":true,"fill-opacity":1}},{"id":"landcover-glacier_asia","type":"fill","source":"asia","source-layer":"landcover","minzoom":5,"filter":["all",["==","class","ice"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-antialias":true,"fill-opacity":0.3}},{"id":"landcover-desert_asia","type":"fill","source":"asia","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","sand","rock"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#faf2c7","fill-antialias":false,"fill-opacity":0.7}},{"id":"waterway_added_asia","type":"line","source":"asia","source-layer":"waterway","minzoom":11,"layout":{"visibility":"visible"},"paint":{"line-color":"#99cdfe","line-width":2}},{"id":"water_fill_asia","type":"fill","source":"asia","source-layer":"water","minzoom":1,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"aeroway_poly_asia","type":"fill","source":"asia","source-layer":"aeroway_poly","minzoom":9,"layout":{"visibility":"visible"},"paint":{"fill-color":"#999","fill-antialias":false,"fill-opacity":0.2}},{"id":"building_asia","type":"fill","source":"asia","source-layer":"building","minzoom":14,"layout":{"visibility":"visible"},"paint":{"fill-color":"#b1b1b1","fill-opacity":0.2}},{"id":"transportation-rail_casing_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":0.5,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"transportation-rail_fill_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.5,"line-dasharray":[3,3],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,1],[13,1.3],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"transportation-secondary_case_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"transportation-secondary_fill_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1.5],[14,3],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"transportation-primary_case_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"transportation-primary_fill_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"transportation-minor_fill_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","minor","service"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[13,1],[14,1]]}}},{"id":"pedestrain_fill_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":13,"filter":["all",["in","class","track","path"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"transportation-trunk_case_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"transportation-trunk_fill_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"transportation-motorway_case_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,0],[6,0],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"transportation-motorway_fill_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,4],[14,4.4],[15,4.8],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"transportation-rail_transit_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[12,1],[13,1.5],[16,2],[17,2.5],[18,3],[19,3.5]]}}},{"id":"transportation-rail_transit_dash_asia","type":"line","source":"asia","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"line-join":"round"},"paint":{"line-color":"#795548","line-width":{"base":1.5,"stops":[[12,3],[15,4],[17,6]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"aeroway_line_asia","type":"line","source":"asia","source-layer":"aeroway_line","minzoom":10,"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,5]]}}},{"id":"landuse_all_australia","type":"fill","source":"australia","source-layer":"landuse","minzoom":11,"layout":{"visibility":"visible"},"paint":{"fill-color":"#dfdfdf","fill-opacity":1}},{"id":"park_australia","type":"fill","source":"australia","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-grass_australia","type":"fill","source":"australia","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","grass","farmland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-wetland_australia","type":"fill","source":"australia","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wetland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":true,"fill-opacity":1}},{"id":"landcover-glacier_australia","type":"fill","source":"australia","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","ice"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-antialias":true,"fill-opacity":0.3}},{"id":"landcover-desert_australia","type":"fill","source":"australia","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","sand","rock"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#faf2c7","fill-antialias":false,"fill-opacity":0.7}},{"id":"waterway_added_australia","type":"line","source":"australia","source-layer":"waterway","minzoom":11,"layout":{"visibility":"visible"},"paint":{"line-color":"#99cdfe","line-width":2}},{"id":"water_fill_australia","type":"fill","source":"australia","source-layer":"water","minzoom":1,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"aeroway_poly_australia","type":"fill","source":"australia","source-layer":"aeroway_poly","minzoom":9,"layout":{"visibility":"visible"},"paint":{"fill-color":"#999","fill-antialias":false,"fill-opacity":0.2}},{"id":"building_australia","type":"fill","source":"australia","source-layer":"building","minzoom":14,"layout":{"visibility":"visible"},"paint":{"fill-color":"#d5d5d5","fill-opacity":1}},{"id":"transportation-rail_casing_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":0.5,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"transportation-rail_fill_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.5,"line-dasharray":[3,3],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,1],[13,1.3],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"transportation-secondary_case_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"transportation-secondary_fill_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1.5],[14,3],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"transportation-primary_case_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"transportation-primary_fill_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"transportation-minor_fill_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","minor","service"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[13,1],[14,1]]}}},{"id":"pedestrain_fill_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":13,"filter":["all",["in","class","track","path"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"transportation-trunk_case_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"transportation-trunk_fill_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"transportation-motorway_case_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,0],[6,0],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"transportation-motorway_fill_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,4],[14,4.4],[15,4.8],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"transportation-rail_transit_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[12,1],[13,1.5],[16,2],[17,2.5],[18,3],[19,3.5]]}}},{"id":"transportation-rail_transit_dash_australia","type":"line","source":"australia","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"line-join":"round"},"paint":{"line-color":"#795548","line-width":{"base":1.5,"stops":[[12,3],[15,4],[17,6]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"aeroway_line_australia","type":"line","source":"australia","source-layer":"aeroway_line","minzoom":10,"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,5]]}}},{"id":"landuse_all_africa","type":"fill","source":"africa","source-layer":"landuse","minzoom":11,"layout":{"visibility":"visible"},"paint":{"fill-color":"#dfdfdf","fill-opacity":1}},{"id":"park_africa","type":"fill","source":"africa","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-grass_africa","type":"fill","source":"africa","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","grass","farmland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-wetland_africa","type":"fill","source":"africa","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wetland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":true,"fill-opacity":1}},{"id":"landcover-glacier_africa","type":"fill","source":"africa","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","ice"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-antialias":true,"fill-opacity":0.3}},{"id":"landcover-desert_africa","type":"fill","source":"africa","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","sand","rock"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#faf2c7","fill-antialias":false,"fill-opacity":0.7}},{"id":"waterway_added_africa","type":"line","source":"africa","source-layer":"waterway","minzoom":11,"layout":{"visibility":"visible"},"paint":{"line-color":"#99cdfe","line-width":2}},{"id":"water_fill_africa","type":"fill","source":"africa","source-layer":"water","minzoom":1,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"aeroway_poly_africa","type":"fill","source":"africa","source-layer":"aeroway_poly","minzoom":9,"layout":{"visibility":"visible"},"paint":{"fill-color":"#999","fill-antialias":false,"fill-opacity":0.2}},{"id":"building_africa","type":"fill","source":"africa","source-layer":"building","minzoom":14,"layout":{"visibility":"visible"},"paint":{"fill-color":"#d5d5d5","fill-opacity":1}},{"id":"transportation-rail_casing_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":0.5,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"transportation-rail_fill_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.5,"line-dasharray":[3,3],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,1],[13,1.3],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"transportation-secondary_case_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"transportation-secondary_fill_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1.5],[14,3],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"transportation-primary_case_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"transportation-primary_fill_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"transportation-minor_fill_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","minor","service"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[13,1],[14,1]]}}},{"id":"pedestrain_fill_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":13,"filter":["all",["in","class","track","path"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"transportation-trunk_case_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"transportation-trunk_fill_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"transportation-motorway_case_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,0],[6,0],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"transportation-motorway_fill_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,4],[14,4.4],[15,4.8],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"transportation-rail_transit_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[12,1],[13,1.5],[16,2],[17,2.5],[18,3],[19,3.5]]}}},{"id":"transportation-rail_transit_dash_africa","type":"line","source":"africa","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"line-join":"round"},"paint":{"line-color":"#795548","line-width":{"base":1.5,"stops":[[12,3],[15,4],[17,6]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"aeroway_line_africa","type":"line","source":"africa","source-layer":"aeroway_line","minzoom":10,"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,5]]}}},{"id":"landuse_all_south_america","type":"fill","source":"south_america","source-layer":"landuse","minzoom":11,"layout":{"visibility":"visible"},"paint":{"fill-color":"#dfdfdf","fill-opacity":1}},{"id":"park_south_america","type":"fill","source":"south_america","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-grass_south_america","type":"fill","source":"south_america","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","grass","farmland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-wetland_south_america","type":"fill","source":"south_america","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wetland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":true,"fill-opacity":1}},{"id":"landcover-glacier_south_america","type":"fill","source":"south_america","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","ice"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-antialias":true,"fill-opacity":0.3}},{"id":"landcover-desert_south_america","type":"fill","source":"south_america","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","sand","rock"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#faf2c7","fill-antialias":false,"fill-opacity":0.7}},{"id":"waterway_added_south_america","type":"line","source":"south_america","source-layer":"waterway","minzoom":11,"layout":{"visibility":"visible"},"paint":{"line-color":"#99cdfe","line-width":2}},{"id":"water_fill_south_america","type":"fill","source":"south_america","source-layer":"water","minzoom":1,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"aeroway_poly_south_america","type":"fill","source":"south_america","source-layer":"aeroway_poly","minzoom":9,"layout":{"visibility":"visible"},"paint":{"fill-color":"#999","fill-antialias":false,"fill-opacity":0.2}},{"id":"building_south_america","type":"fill","source":"south_america","source-layer":"building","minzoom":14,"layout":{"visibility":"visible"},"paint":{"fill-color":"#d5d5d5","fill-opacity":1}},{"id":"transportation-rail_casing_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":0.5,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"transportation-rail_fill_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.5,"line-dasharray":[3,3],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,1],[13,1.3],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"transportation-secondary_case_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"transportation-secondary_fill_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1.5],[14,3],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"transportation-primary_case_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"transportation-primary_fill_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"transportation-minor_fill_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","minor","service"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[13,1],[14,1]]}}},{"id":"pedestrain_fill_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":13,"filter":["all",["in","class","track","path"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"transportation-trunk_case_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"transportation-trunk_fill_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"transportation-motorway_case_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,0],[6,0],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"transportation-motorway_fill_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,4],[14,4.4],[15,4.8],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"transportation-rail_transit_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[12,1],[13,1.5],[16,2],[17,2.5],[18,3],[19,3.5]]}}},{"id":"transportation-rail_transit_dash_south_america","type":"line","source":"south_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"line-join":"round"},"paint":{"line-color":"#795548","line-width":{"base":1.5,"stops":[[12,3],[15,4],[17,6]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"aeroway_line_south_america","type":"line","source":"south_america","source-layer":"aeroway_line","minzoom":10,"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,5]]}}},{"id":"landuse_all_central_america","type":"fill","source":"central_america","source-layer":"landuse","minzoom":11,"layout":{"visibility":"visible"},"paint":{"fill-color":"#dfdfdf","fill-opacity":1}},{"id":"park_central_america","type":"fill","source":"central_america","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-grass_central_america","type":"fill","source":"central_america","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","grass","farmland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-wetland_central_america","type":"fill","source":"central_america","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wetland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":true,"fill-opacity":1}},{"id":"landcover-glacier_central_america","type":"fill","source":"central_america","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","ice"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-antialias":true,"fill-opacity":0.3}},{"id":"landcover-desert_central_america","type":"fill","source":"central_america","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","sand","rock"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#faf2c7","fill-antialias":false,"fill-opacity":0.7}},{"id":"waterway_added_central_america","type":"line","source":"central_america","source-layer":"waterway","minzoom":11,"layout":{"visibility":"visible"},"paint":{"line-color":"#99cdfe","line-width":2}},{"id":"water_fill_central_america","type":"fill","source":"central_america","source-layer":"water","minzoom":1,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"aeroway_poly_central_america","type":"fill","source":"central_america","source-layer":"aeroway_poly","minzoom":9,"layout":{"visibility":"visible"},"paint":{"fill-color":"#999","fill-antialias":false,"fill-opacity":0.2}},{"id":"building_central_america","type":"fill","source":"central_america","source-layer":"building","minzoom":14,"layout":{"visibility":"visible"},"paint":{"fill-color":"#d5d5d5","fill-opacity":1}},{"id":"transportation-rail_casing_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":0.5,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"transportation-rail_fill_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.5,"line-dasharray":[3,3],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,1],[13,1.3],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"transportation-secondary_case_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"transportation-secondary_fill_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1.5],[14,3],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"transportation-primary_case_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"transportation-primary_fill_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"transportation-minor_fill_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","minor","service"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[13,1],[14,1]]}}},{"id":"pedestrain_fill_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":13,"filter":["all",["in","class","track","path"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"transportation-trunk_case_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"transportation-trunk_fill_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"transportation-motorway_case_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,0],[6,0],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"transportation-motorway_fill_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,4],[14,4.4],[15,4.8],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"transportation-rail_transit_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[12,1],[13,1.5],[16,2],[17,2.5],[18,3],[19,3.5]]}}},{"id":"transportation-rail_transit_dash_central_america","type":"line","source":"central_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"line-join":"round"},"paint":{"line-color":"#795548","line-width":{"base":1.5,"stops":[[12,3],[15,4],[17,6]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"aeroway_line_central_america","type":"line","source":"central_america","source-layer":"aeroway_line","minzoom":10,"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,5]]}}},{"id":"nature_reserves_names_central_america","type":"symbol","source":"central_america","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"text-size":{"base":1,"stops":[[10,12],[11,13],[12,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-padding":50,"text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#347352","text-opacity":1,"text-halo-color":"#fff","text-halo-width":0.8}},{"id":"river_names_central_america","type":"symbol","source":"central_america","source-layer":"waterway","minzoom":11,"filter":["all",["==","class","river"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"water_names_central_america","type":"symbol","source":"central_america","source-layer":"water","minzoom":9,"filter":["all",["in","class","water","reservoir"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"transportation_name_central_america","type":"symbol","source":"central_america","source-layer":"transportation_name","minzoom":7,"filter":["all",["in","ref_length",3,4,5]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20],[16,10]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-image":{"property":"ref_length","type":"categorical","stops":[[3,"motorway_3"],[4,"motorway_4"],[5,"motorway_5"]]},"icon-padding":60,"icon-size":0.5,"text-rotation-alignment":"viewport","text-field":"{ref}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"aerodrome_label_central_america","type":"symbol","source":"central_america","source-layer":"aerodrome_label","minzoom":9,"filter":["all",["in","class","international","public","regional","other","private"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"icon-image":"airport-22","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#055a88","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"major_road_name_central_america","type":"symbol","source":"central_america","source-layer":"transportation_name","minzoom":9,"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"place_State_central_america","type":"symbol","source":"central_america","source-layer":"place","minzoom":1,"filter":["all",["==","class","state"]],"layout":{"text-size":{"base":1,"stops":[[4,10],[5,12],[6,12]]},"text-allow-overlap":false,"text-letter-spacing":0.1,"icon-allow-overlap":true,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-offset":[0.5,0],"text-field":"{name_en}","icon-size":0.5,"text-transform":"uppercase","text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.7],[5,0.7],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"place_locality_central_america","type":"symbol","source":"central_america","source-layer":"place","minzoom":1,"filter":["all",["in","class","locality","suburb","hamlet","square","quarter","island","neighbourhood"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[15,13],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"peaks_central_america","type":"symbol","source":"central_america","source-layer":"mountain_peak","minzoom":7,"layout":{"text-size":10,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"triangle_outer","icon-allow-overlap":false,"text-line-height":1,"icon-size":0.8,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"House_No_central_america","type":"symbol","source":"central_america","source-layer":"house_address","minzoom":17,"layout":{"text-field":"{addr_housenumber}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":10},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"poi_all_central_america","type":"symbol","source":"central_america","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["!in","class","railway","stadium","park"],["in","subclass","artwork","arts_centre","gallery","water_park","bank","bar","casino","nightclub","pub","bicycle_parking","bicycle_rental","bus_stop","bus_station","cafe","camp_site","taxi","car_rental","driving_school","taxi","castle","cinema","university","college","dentist","nursing_home","doctors","clinic","dog_park","drinking_water","embassy","food_court","fast_food","ferry_terminal","fire_station","fuel","miniature_golf","golf_course","helipad","hospital","ice_cream","information","public_bookcase","library","motel","hostel","hotel","guest_house","water_park","fort","monument","peak","memorial","museum","pharmacy","picnic_site-site","place_of_worship","playground","police","post_office","prison","restaurant","school","theatre","toilets","townhall-hall","veterinary","volcano","zoo","atm","cave_entrance","bureau_de_change","bicycle_repair_station","car_wash","shelter","bowling_alley","sports_centre","archaeological_site","apartment","saddle","chalet","caravan_site","bbq","alpine_hut","wilderness_hut","sauna","recycling","hunting_stand","social_facility","boat_rental","shower","community_centre","courthouse","picnic_table","fishing","city_gate","public_bath","slipway","childcare","motorcycle_parking","bunker","biergarten","beach_resort","wayside_shrine","outdoor_seating","firepit","wayside_cross","vehicle_inspection","fountain","charging_station","viewpoint","parking","spring","traffic_signals","information","elevator","toll_booth","telephone","waterfall","marketplace","fitness_station","fitness_centre","internet_amenity_cafe"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":{"property":"subclass","type":"categorical","stops":[["artwork","art_22x22-01"],["arts_centre","art_22x22-01"],["gallery","art_22x22-01"],["water_park","amusement_22x22-01"],["bank","bank-22"],["bar","bar_22x22-01"],["casino","bar_22x22-01"],["nightclub","bar_22x22-01"],["pub","bar_22x22-01"],["bicycle_parking","parking_18x18-01"],["bicycle_rental","common2_brown"],["bus_stop","bus_18x18-01"],["bus_station","bus_18x18-01"],["cafe","coffee_22x22-01"],["camp_site","camera_22x22-01"],["taxi","common2_brown"],["car_rental","common2_brown"],["driving_school","common2_brown"],["castle","common2_brown"],["cinema","cinema_22x22-01"],["university","college_22x22-01"],["college","college_22x22-01"],["dentist","dentist-22"],["nursing_home","hospital_22x22-01"],["doctors","hospital_22x22-01"],["clinic","hospital_22x22-01"],["dog_park","common2_brown"],["drinking_water","common2_brown"],["embassy","embassy-22"],["food_court","fastfood_22x22-01"],["fast_food","fastfood_22x22-01"],["ferry_terminal","ferry_22x22-01"],["fire_station","fire-22"],["fuel","petrol_22x22-01"],["miniature_golf","golf_22x22-01"],["golf_course","golf_22x22-01"],["helipad","helipad_22x22-01"],["hospital","hospital_22x22-01"],["ice_cream","common2_brown"],["information","india_tourism"],["public_bookcase","library-22"],["library","library-22"],["motel","hotel_22x22-01"],["hostel","hotel_22x22-01"],["hotel","hotel_22x22-01"],["guest_house","hotel_22x22-01"],["fort","forts_22x22-01"],["monument","forts_22x22-01"],["peak","forts_22x22-01"],["memorial","museums_22x22-01"],["museum","museums_22x22-01"],["pharmacy","medical-22"],["picnic_site-site","camera_22x22-01"],["place_of_worship","common2_blue"],["playground","park_22x22-01"],["police","police-22"],["post_office","post-22"],["prison","police-22"],["restaurant","restaurant_22x22-01"],["school","school-22"],["theatre","theatre_22x22-01"],["toilets","public_utility"],["townhall-hall","common2_brown"],["veterinary","common2_brown"],["volcano","common2_brown"],["zoo","zoo_22x22-01"],["atm","atm"],["cave_entrance","common2_brown"],["bureau_de_change","common2_brown"],["bicycle_repair_station","common2_brown"],["car_wash","common2_brown"],["shelter","common2_brown"],["bowling_alley","common2_brown"],["sports_centre","common2_brown"],["archaeological_site","common2_brown"],["apartment","common2_brown"],["saddle","common2_brown"],["chalet","common2_brown"],["caravan_site","common2_brown"],["bbq","common2_brown"],["alpine_hut","common2_brown"],["wilderness_hut","common2_brown"],["sauna","common2_brown"],["recycling","common2_brown"],["hunting_stand","common2_brown"],["social_facility","common2_brown"],["boat_rental","common2_brown"],["shower","common2_brown"],["community_centre","common2_brown"],["courthouse","common2_brown"],["picnic_table","common2_brown"],["fishing","common2_brown"],["city_gate","common2_brown"],["public_bath","common2_brown"],["slipway","common2_brown"],["childcare","common2_brown"],["motorcycle_parking","parking_18x18-01"],["bunker","common2_brown"],["biergarten","common2_brown"],["beach_resort","common2_brown"],["wayside_shrine","common2_brown"],["outdoor_seating","common2_brown"],["firepit","common2_brown"],["wayside_cross","common2_brown"],["vehicle_inspection","common2_brown"],["fountain","common2_brown"],["charging_station","common2_brown"],["viewpoint","common2_brown"],["parking","parking_18x18-01"],["spring","common2_brown"],["traffic_signals","common2_brown"],["elevator","common2_brown"],["toll_booth","common2_brown"],["telephone","common2_brown"],["waterfall","common2_brown"],["marketplace","common2_brown"],["fitness_station","common2_brown"],["fitness_centre","common2_brown"],["internet_amenity_cafe","common2_brown"]]},"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"poi_stations_central_america","type":"symbol","source":"central_america","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["in","class","railway","stadium","park"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"class","type":"categorical","stops":[["railway","railwaystn_new_22x22-01"],["park","park_22x22-01"],["stadium","sport_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_city_central_america","type":"symbol","source":"central_america","source-layer":"place","minzoom":1,"filter":["all",["in","class","city","town"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,13],[8,14],[10,15]]},"symbol-avoid-edges":true,"text-letter-spacing":{"base":1,"stops":[[10,0],[14,0.1],[20,0.1]]},"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"place_village_central_america","type":"symbol","source":"central_america","source-layer":"place","minzoom":1,"filter":["all",["in","class","village"]],"layout":{"text-size":{"base":1,"stops":[[6,10],[8,14],[9,14],[10,15],[12,15],[16,15],[20,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-line-height":0.9},"paint":{"text-color":"#5a616d","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_statecapital_4_central_america","type":"symbol","source":"central_america","source-layer":"place","minzoom":1,"filter":["all",["==","capital",4]],"layout":{"text-size":{"base":1,"stops":[[3,10],[4,12],[5,14],[6,14],[8,15]]},"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-padding":0,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"place_Ccapital_2_central_america","type":"symbol","source":"central_america","source-layer":"place","minzoom":1,"filter":["all",["==","capital",2]],"layout":{"text-size":{"base":1,"stops":[[4,11],[5,12]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_fill","icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-offset":[0,0.6]},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"place_country_central_america","type":"symbol","source":"central_america","source-layer":"place","minzoom":1,"filter":["all",["==","class","country"]],"layout":{"text-size":{"base":1,"stops":[[2,8],[3,10],[4,12],[5,13],[8,16],[20,20]]},"text-allow-overlap":false,"text-transform":"uppercase","symbol-avoid-edges":false,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-letter-spacing":0.1,"text-anchor":"center","visibility":"visible","text-field":"{name_en}","text-max-width":12},"paint":{"text-color":"#000","text-opacity":{"base":1,"stops":[[2,1],[3,0.9],[4,0.8],[6,0.8],[10,0]]},"text-halo-color":"#FFF","text-halo-width":1}},{"id":"ocean_fill_sea","type":"fill","source":"sea","source-layer":"a","layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"ocean_fill_kec","type":"fill","source":"kec","source-layer":"a","layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"Admin1_fill_kec","type":"fill","source":"kec","source-layer":"b","minzoom":6,"filter":["in","a","a","b"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#eaeaea"}},{"id":"landuse_green_base green_kec","type":"fill","source":"kec","source-layer":"c","minzoom":3,"filter":["all",["!=","a","a"],["==","b","a"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":1}},{"id":"city_area_kec","type":"fill","source":"kec","source-layer":"d","minzoom":8,"layout":{"visibility":"visible"},"paint":{"fill-color":"#dfdfdf","fill-opacity":1}},{"id":"landuse_green_other_kec","type":"fill","source":"kec","source-layer":"c","minzoom":3,"filter":["all",["in","c","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn"],["!=","a","a"],["!=","b","a"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"property":"c","type":"categorical","stops":[["a","#bde2a1"],["n","#bde2a1"],["b","#bde2a1"],["c","#f1e9d7"],["d","#bde2a1"],["e","#bde2a1"],["f","#bde2a1"],["g","#bde2a1"],["h","#bde2a1"],["i","#bde2a1"],["j","#bde2a1"],["k","#bde2a1"],["l","#bde2a1"],["m","#aae08f"],["o","#bde2a1"],["p","#bde2a1"],["q","#b2e39a"],["r","#bde2a1"],["s","#bde2a1"],["t","#bde2a1"],["u","#c3fc98"],["v","#faf2c7"],["w","#faf2c7"],["x","#af9cb0"],["y","#DEC0DE"],["z","#DEC0DE"],["ba","#DEC0DE"],["bb","#DEC0DE"],["bc","#DEC0DE"],["bd","#b09f9f"],["be","#EC8080"],["bf","#FFE5B4"],["bg","#FFE5B4"],["bh","#FFE5B4"],["bi","#FFE5B4"],["bj","#FFE5B4"],["bk","#FFE5B4"],["bl","#e5ab60"],["bm","#fff"],["bn","#899795"]]},"fill-antialias":false,"fill-opacity":{"property":"c","type":"categorical","stops":[["t",0.2],["n",1],["u",0.2],["v",0.7],["c",0.5],["j",1],["w",0.7],["m",1],["x",0.3],["y",0.3],["z",0.3],["ba",0.3],["bb",0.3],["bc",0.3],["bd",0.3],["be",0.2],["bf",0.7],["bg",0.7],["bh",0.7],["bi",0.7],["bj",0.7],["bk",0.7],["bl",0.3],["bm",0.3],["bn",0.2]]}}},{"id":"landuse_Protected_Area_kec","type":"fill","source":"kec","source-layer":"c","minzoom":3,"filter":["all",["==","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#aae08f","fill-antialias":false,"fill-opacity":1}},{"id":"waterway_fill_kec","type":"fill","source":"kec","source-layer":"e","minzoom":3,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"Airway fill_kec","type":"fill","source":"kec","source-layer":"f","minzoom":7,"filter":["all",["in","a","a","b","c"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"property":"a","type":"categorical","stops":[["a","#999"],["b","#999"],["c","#777"]]},"fill-antialias":false,"fill-opacity":0.2}},{"id":"water_region_fill_kec","type":"fill","source":"kec","source-layer":"g","minzoom":3,"filter":["all",["!in","a","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"Landuse_salt_region_kec","type":"fill","source":"kec","source-layer":"g","minzoom":7,"filter":["all",["in","a","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"property":"a","type":"categorical","stops":[["a","#D4D7DB"],["b","#b29d81"]]},"fill-antialias":false,"fill-opacity":{"property":"a","type":"categorical","stops":[["a",1],["b",0.5]]}}},{"id":"undgrd_pedestrain_fill_kec","type":"line","source":"kec","source-layer":"h","minzoom":15,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"undgrd_primary_casing_kec","type":"line","source":"kec","source-layer":"h","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"undgrd_primary_fill_kec","type":"line","source":"kec","source-layer":"h","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1],[14,2],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"undgrd_arterial_casing_kec","type":"line","source":"kec","source-layer":"h","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"undgrd_arterial_fill_kec","type":"line","source":"kec","source-layer":"h","minzoom":8,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"undgrd_motorway_casing_DHY_kec","type":"line","source":"kec","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,2],[8,2],[9,2],[10,2.5],[11,3],[12,4.5],[13,4.5],[14,5.5],[15,7],[16,9],[17,10],[18,11],[19,12]]}}},{"id":"undgrd_motorway_fill_DHY_kec","type":"line","source":"kec","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#fff7d7"],[10,"#fff7d7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,1],[8,1],[9,1],[10,1],[11,2],[12,2.5],[13,3],[14,3.5],[15,4],[16,7],[17,8],[18,9],[19,10]]}}},{"id":"undgrd_motorway_casing_kec","type":"line","source":"kec","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"undgrd_motorway_fill_kec","type":"line","source":"kec","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"undgrd_limited_casing_kec","type":"line","source":"kec","source-layer":"h","minzoom":14,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],["==","PUBVSPVT",1],["!in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":"butt"},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,0.7],[15,1],[16,1.2],[17,1.8],[18,2.5],[19,3]]}}},{"id":"undgrd_highway_casing_kec","type":"line","source":"kec","source-layer":"h","minzoom":7,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"undgrd_highway_fill_kec","type":"line","source":"kec","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"tunnel_fill_kec","type":"line","source":"kec","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["==","c","c"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#d4ac6a","line-opacity":1,"line-width":{"base":1,"stops":[[11,2],[12,2],[13,3],[14,3],[15,4],[16,7],[17,8],[18,10],[19,12]]}}},{"id":"undgrd_UC_offset1_kec","type":"line","source":"kec","source-layer":"h","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"undgrd_UC_offset2_kec","type":"line","source":"kec","source-layer":"h","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"railroad_service_casing_kec","type":"line","source":"kec","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["in","a","a","b"],["==","b","a"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":1,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"railroad_service_fill_kec","type":"line","source":"kec","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["in","a","a","b"],["==","b","a"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#e5e5e5","line-opacity":1,"line-width":{"base":1,"stops":[[10,1.5],[11,1],[12,1],[13,1.2],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"railroad_casing_kec","type":"line","source":"kec","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["!in","a","a","c"],["!in","b","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":1,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"railroad_fill_kec","type":"line","source":"kec","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["!in","a","a","c"],["!in","b","a","b"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":1,"line-dasharray":[3,3],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,1],[13,1.3],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"secondary_pedestrain_fill_kec","type":"line","source":"kec","source-layer":"j","minzoom":14,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"secondary_casing_kec","type":"line","source":"kec","source-layer":"j","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b","c"],["==","d","a"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,0],[14,1],[15,3],[16,3.5],[17,7],[18,8],[19,9]]}}},{"id":"secondary_fill_kec","type":"line","source":"kec","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b","c"],["==","d","a"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,1],[15,2],[16,3],[17,6],[18,7],[19,8]]}}},{"id":"Bicycle_track_kec","type":"line","source":"kec","source-layer":"j","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-opacity":0.7,"line-width":2}},{"id":"secondary_UC_offset1_kec","type":"line","source":"kec","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"secondary_UC_offset2_kec","type":"line","source":"kec","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"pedestrain_fill_kec","type":"line","source":"kec","source-layer":"j","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"ferry_route1_kec","type":"line","source":"kec","source-layer":"j","minzoom":1,"filter":["all",["==","$type","LineString"],["in","b","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#53adc1","line-dasharray":[4,4],"line-opacity":1,"line-width":1}},{"id":"primary_casing_kec","type":"line","source":"kec","source-layer":"j","minzoom":13,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b","c"],["in","d","f","a","g"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"primary_fill_kec","type":"line","source":"kec","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b","c"],["in","d","f","a","g"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1],[14,2],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"arterial_casing_kec","type":"line","source":"kec","source-layer":"j","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","d","e"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"limited_roads_casing_kec","type":"line","source":"kec","source-layer":"j","minzoom":14,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["in","d","b","c","d","e","f","a","g"],["==","PUBVSPVT",1],["!in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,0.7],[15,1],[16,1.2],[17,1.8],[18,2.5],[19,3]]}}},{"id":"arterial_fill_kec","type":"line","source":"kec","source-layer":"j","minzoom":8,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","d","e"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"motorway_casing_DHY_kec","type":"line","source":"kec","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","f","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,2],[8,2],[9,2],[10,2.5],[11,3],[12,4.5],[13,4.5],[14,5.5],[15,7],[16,9],[17,10],[18,11],[19,12]]}}},{"id":"motorway_fill_DHY_kec","type":"line","source":"kec","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","f","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#fff7d7"],[10,"#fff7d7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,1],[8,1],[9,1],[10,1],[11,2],[12,2.5],[13,3],[14,3.5],[15,4],[16,7],[17,8],[18,9],[19,10]]}}},{"id":"motorway_casing_kec","type":"line","source":"kec","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","b","c"],["!=","g","a"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"motorway_fill_kec","type":"line","source":"kec","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","b","c"],["!=","g","a"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"highway_casing_kec","type":"line","source":"kec","source-layer":"j","minzoom":7,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","g","a"],["in","d","b","c"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"highway_fill_kec","type":"line","source":"kec","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","g","a"],["in","d","b","c"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,4],[14,4.4],[15,4.8],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"tunnel_fill_0_kec","type":"line","source":"kec","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["==","c","d"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#d4ac6a","line-opacity":1,"line-width":{"base":1,"stops":[[11,2],[12,2],[13,3],[14,3],[15,4],[16,7],[17,8],[18,10],[19,12]]}}},{"id":"UC_offset1_kec","type":"line","source":"kec","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"UC_offset2_kec","type":"line","source":"kec","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"elevated_Bicycle_track_kec","type":"line","source":"kec","source-layer":"k","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-opacity":0.7,"line-width":2}},{"id":"elevated_primary_casing_kec","type":"line","source":"kec","source-layer":"k","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c","a"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"elevated_primary_fill_kec","type":"line","source":"kec","source-layer":"k","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c","a"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1],[14,2],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"elevated_arterial_casing_kec","type":"line","source":"kec","source-layer":"k","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"elevated_arterial_fill_kec","type":"line","source":"kec","source-layer":"k","minzoom":8,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"elevated_motorway_casing_DHY_kec","type":"line","source":"kec","source-layer":"k","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,2],[8,2],[9,2],[10,2.5],[11,3],[12,4.5],[13,4.5],[14,5.5],[15,7],[16,9],[17,10],[18,11],[19,12]]}}},{"id":"elevated_motorway_fill_DHY_kec","type":"line","source":"kec","source-layer":"k","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#fff7d7"],[10,"#fff7d7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,1],[8,1],[9,1],[10,1],[11,2],[12,2.5],[13,3],[14,3.5],[15,4],[16,7],[17,8],[18,9],[19,10]]}}},{"id":"elevated_motorway_casing_kec","type":"line","source":"kec","source-layer":"k","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"elevated_motorway_fill_kec","type":"line","source":"kec","source-layer":"k","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"elevated_limited_roads_fill_kec","type":"line","source":"kec","source-layer":"k","minzoom":14,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],["==","PUBVSPVT",1],["!in","c","b","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":"butt"},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.3],[14,0.5],[15,0.8],[16,1],[17,1.5],[18,2],[19,2.5]]}}},{"id":"elevated_highway_casing_kec","type":"line","source":"kec","source-layer":"k","minzoom":7,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"elevated_highway_fill_kec","type":"line","source":"kec","source-layer":"k","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"elevated_UC_offset1_kec","type":"line","source":"kec","source-layer":"k","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"elevated_UC_offset2_kec","type":"line","source":"kec","source-layer":"k","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"fob_casing_kec","type":"line","source":"kec","source-layer":"k","minzoom":16,"filter":["all",["==","$type","LineString"],["==","c","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#c1ada7","line-opacity":1,"line-width":{"base":4,"stops":[[15,5],[17,9],[19,10]]}}},{"id":"fob_fill_kec","type":"line","source":"kec","source-layer":"k","minzoom":16,"filter":["all",["==","$type","LineString"],["==","c","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":"butt"},"paint":{"line-opacity":1,"line-color":"#f3f3f3","line-dasharray":{"base":1,"stops":[[16,[0.3,0.3]]]},"line-width":{"base":4,"stops":[[16,4],[17,8],[19,9]]}}},{"id":"intercity_rail_undcons_kec","type":"line","source":"kec","source-layer":"i","minzoom":13,"filter":["all",["==","$type","LineString"],["in","c","a","b","c","d","e","f","g","h","i","j","k","l"],["in","b","b"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":{"property":"c","type":"categorical","stops":[["a","#0099cc"],["b","#ff6666"],["c","#339900"],["d","#cd76ed"],["e","#f29e0b"],["f","#cd76ed"],["g","#ff00ff"],["h","#ed6106"],["i","#ff94b4"],["j","#00ffff"],["k","#795548"],["l","Grey"]]},"line-opacity":0.5,"line-dasharray":[2,2],"line-width":{"base":1,"stops":[[10,1.5],[13,2],[16,2.5],[17,3],[18,4],[19,4]]}}},{"id":"intercity_rail_tram_kec","type":"line","source":"kec","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["in","d","a"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[10,1.5],[13,2],[16,2],[17,2],[18,2],[19,2]]}}},{"id":"intercity_rail_generic_kec","type":"line","source":"kec","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["==","a","a"],["!in","b","b","a"],["!in","c","d","h","a","b","c","g","e","f","i","j","d","l"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[10,1.5],[13,2],[16,2],[17,2],[18,2],[19,2]]}}},{"id":"intercity_rail_dash_kec","type":"line","source":"kec","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["==","a","a"],["!in","b","b","a"],["!in","c","d","h","a","b","c","g","e","f","i","j","d","l"]],"layout":{"line-join":"round"},"paint":{"line-color":"#795548","line-width":{"base":1.5,"stops":[[10,4],[15,6],[17,8]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"intercity_rail_colored_kec","type":"line","source":"kec","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["in","c","a","b","c","d","e","f","g","h","i","j","k","l"],["!in","b","b","a"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":{"property":"c","type":"categorical","stops":[["a","#0099cc"],["b","#ff6666"],["c","#339900"],["d","#cd76ed"],["e","#f29e0b"],["f","#cd76ed"],["g","#ff00ff"],["h","#ed6106"],["i","#ff94b4"],["j","#00ffff"],["k","#795548"],["l","Grey"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[10,1.5],[13,2],[16,2],[17,2],[18,2],[19,2]]}}},{"id":"intercity_rail_colored_dash_kec","type":"line","source":"kec","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["in","c","a","b","c","d","e","f","g","h","i","j","k","l"],["!in","b","b","a"]],"layout":{"line-join":"round"},"paint":{"line-color":{"property":"c","type":"categorical","stops":[["a","#0099cc"],["b","#ff6666"],["c","#339900"],["d","#cd76ed"],["e","#f29e0b"],["f","#cd76ed"],["g","#ff00ff"],["h","#ed6106"],["i","#ff94b4"],["j","#00ffff"],["k","#795548"],["l","Grey"]]},"line-width":{"base":1.5,"stops":[[10,5],[15,6],[17,8]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"footprints_int_3d_kec","type":"fill-extrusion","source":"kec","minzoom":15,"source-layer":"l","filter":["all",["in","b","a","b","c"]],"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":{"property":"b","type":"categorical","stops":[["b","#f1e7d9"],["a","#e9e9e9"],["c","#d1d1d1"]]},"fill-extrusion-height":{"property":"c","type":"identity"},"fill-extrusion-opacity":1}},{"id":"footprints_int_3d_2_kec","type":"fill-extrusion","source":"kec","minzoom":15,"source-layer":"l","filter":["all",["in","b","d","e"]],"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":"#e9e9e9","fill-extrusion-height":{"property":"c","type":"identity"},"fill-extrusion-opacity":0.5}},{"id":"Admin2_Boundary_kec","type":"line","source":"kec","source-layer":"m","minzoom":3,"filter":["==","a","a"],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#8d8d8d","line-opacity":{"base":1,"stops":[[3,1]]},"line-width":1,"line-dasharray":{"base":1,"stops":[[3,[2,2,2,2]],[21,[2,2,4,2]]]}}},{"id":"Admin1_Boundary_kec","type":"line","source":"kec","source-layer":"m","minzoom":1,"filter":["in","a","b"],"layout":{"visibility":"visible"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map","line-width":1.5}},{"id":"Coastal_Boundary_kec","type":"line","source":"kec","source-layer":"m","minzoom":1,"filter":["in","a","d","c"],"layout":{"visibility":"visible"},"paint":{"line-color":"#6bbceb","line-opacity":1,"line-translate-anchor":"map","line-width":0.5}},{"id":"Int_Admin_Bound_kec","type":"line","source":"kec","source-layer":"n","minzoom":1,"filter":["all",["==","a","a"]],"layout":{"visibility":"none"},"paint":{"line-color":"#a3ad9e","line-opacity":0.8,"line-translate-anchor":"map","line-width":1}},{"id":"waterway_lbl_highzoom_kec","type":"symbol","source":"kec","source-layer":"e","minzoom":11,"layout":{"visibility":"visible","text-field":"{a}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"Int_Admin_Label3_Boundary_kec","type":"symbol","source":"kec","minzoom":3,"source-layer":"o","filter":["all",["!=","a","a"],["==","b","a"]],"layout":{"visibility":"none","text-field":"{c}","text-font":["Open Sans Medium"],"text-size":11,"text-letter-spacing":0.1,"text-allow-overlap":false,"text-anchor":"center","symbol-avoid-edges":true},"paint":{"text-color":"#000","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"Admin_Label2_Boundary_kec","type":"symbol","source":"kec","minzoom":3,"source-layer":"o","filter":["all",["!=","a","a"],["==","b","b"]],"layout":{"visibility":"none","text-field":"{c}","text-font":["Open Sans Medium"],"text-size":12,"text-letter-spacing":0.1,"text-allow-overlap":false,"text-anchor":"center","symbol-avoid-edges":true},"paint":{"text-color":"#000","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"water_ocean_label_kec","type":"symbol","source":"kec","minzoom":1,"source-layer":"o","filter":["all",["==","a","a"]],"layout":{"visibility":"none","text-field":"{c}","text-font":["Open Sans Italic"],"text-size":12,"text-letter-spacing":0.1,"text-allow-overlap":false,"text-max-width":5,"text-anchor":"center","symbol-avoid-edges":true},"paint":{"text-color":"#11354d","text-halo-color":"#11354d","text-halo-width":0.1,"text-opacity":0.6}},{"id":"Housenumber_label_kec","type":"symbol","source":"kec","source-layer":"p","minzoom":16,"layout":{"text-field":"{b}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","text-padding":{"base":1,"stops":[[16,20],[17,30],[18,40],[19,50],[20,50]]},"symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":11},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"street_lbl_shield_kec","type":"symbol","source":"kec","source-layer":"q","minzoom":9,"filter":["all",[">=","a",""],["in","b","a","b","c"]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-size":0.5,"icon-image":"motorway_3","icon-padding":1,"text-rotation-alignment":"viewport","text-field":"{a}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"state_border_label_kec","type":"symbol","source":"kec","source-layer":"b","minzoom":13,"layout":{"text-size":{"base":1,"stops":[[12,9],[13,10],[14,10],[15,10],[16,11]]},"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":0,"text-offset":[1,1],"text-field":"{b}"},"paint":{"text-color":"#b55cb5","text-opacity":1}},{"id":"bicycle_track_label_kec","type":"symbol","source":"kec","source-layer":"j","minzoom":15,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","c"]],"layout":{"text-size":12,"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":100,"text-offset":[1,1],"text-field":"Bicycle Track"},"paint":{"text-color":"#222","text-opacity":1}},{"id":"metro_label_undcons_kec","type":"symbol","source":"kec","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["==","a","a"],["==","b","b"],["!in","c","","m"]],"layout":{"text-size":10,"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":100,"text-offset":[1,1],"text-field":"Track Under Construction"},"paint":{"text-color":"#222","text-opacity":1}},{"id":"metro_label_kec","type":"symbol","source":"kec","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["==","a","a"],["!in","b","b","a"]],"layout":{"text-size":10,"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":100,"text-offset":[1,1],"text-field":"{e}"},"paint":{"text-color":"#222","text-opacity":1}},{"id":"Health & Wellness7_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":17,"filter":["all",["==","$type","Point"],["in","b","a"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"clinic-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#e9e9e9","text-halo-width":0.1}},{"id":"General3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":16,"filter":["all",["==","$type","Point"],["==","b","b"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"public_utility","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Shopping6_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":17,"filter":["all",["==","$type","Point"],["in","d","a"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-image":"puncture_shop","text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Shopping5_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":15,"filter":["all",["==","$type","Point"],["in","b","c","d","e","f"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Automotive3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","d","b","c","d","e"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-max-width":7,"text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Automotive2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":17,"filter":["all",["==","$type","Point"],["in","d","b","c","e","f"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"d","type":"categorical","stops":[["b","automobile"],["c","repairing"],["e","repairing"],["f","automobile"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"General2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","e","a"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-size":1,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"icon-image":"telephone_booth","symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#fff","text-halo-width":1}},{"id":"Shopping4_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":14,"filter":["all",["==","$type","Point"],["in","e","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-max-width":7,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Shopping3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":14,"filter":["all",["==","$type","Point"],["in","e","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn","bo","bp","bq","br"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":{"property":"e","type":"categorical","stops":[["b","clothing_store"],["c","clothing_store"],["d","stationary"],["e","cosmetic"],["f","cosmetic"],["g","hardware"],["h","hardware"],["i","hardware"],["j","florist"],["k","florist"],["l","furniture_store"],["m","furniture_store"],["n","furniture_store"],["o","furniture_store"],["p","footwear"],["q","footwear"],["r","jewellary_shop"],["s","jewellary_shop"],["t","opticals"],["u","salon_01"],["v","salon_01"],["w","wine_shop"],["x","wine_shop"],["y","gift_shop"],["z","computer_shop"],["ba","computer_shop"],["bb","salon"],["bc","salon_01"],["bd","scrap_store"],["be","cigarette_shops"],["bf","butchers"],["bg","builder"],["bh","dj"],["bi","laundry"],["bj","property_dealers"],["bk","pet_shop"],["bl","tailors"],["bm","pawn_broker"],["bn","baby"],["bo","common2_blue"],["bp","common2_blue"],["bq","agricultural_automotive"],["br","agricultural_automotive_repair"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-max-width":7,"text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Commercial & Industrial2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","g","h","i","j","k","l","m"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#3c2e35","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Financial_Services3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","n","o"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-max-width":6,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services12_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","p","q","r"],["!=","e","bs"]],"layout":{"icon-optional":true,"icon-image":{"property":"b","type":"categorical","stops":[["p","parking_18x18-01"],["q","parking_18x18-01"],["r","bus_18x18-01"]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-rotation-alignment":"viewport","symbol-placement":"point"},"paint":{"text-opacity":1}},{"id":"Financial_Services1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","s"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-image":"bank-22","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Financial_Services2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","t"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":6,"icon-image":"atm","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Health & Wellness6_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","u"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"dentist-22","text-max-width":7,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#1a6080","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Transportation10_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","v","w","x","y","z"],["!=","f","a"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Transportation9_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ba"]],"layout":{"text-size":14,"text-optional":true,"text-allow-overlap":false,"icon-optional":true,"icon-allow-overlap":false,"icon-image":"bridge1","icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-ignore-placement":false,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"street_upper_FOW_FOB_kec","type":"symbol","source":"kec","source-layer":"s","minzoom":16,"filter":["all",["==","a","a"]],"layout":{"text-size":{"base":4,"stops":[[15,10],[20,13]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"line","text-letter-spacing":0.01,"visibility":"visible","text-rotation-alignment":"map","text-pitch-alignment":"auto","text-keep-upright":true,"text-max-width":10,"text-field":"Foot Over Bridge"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#FFF","text-halo-width":1.25,"text-halo-blur":1}},{"id":"arrows_kec","type":"symbol","source":"kec","source-layer":"q","minzoom":16,"filter":["all",["==","$type","LineString"],["==","e","a"]],"layout":{"symbol-placement":"line","icon-padding":{"base":1,"stops":[[16,30],[17,40],[18,50],[19,60]]},"visibility":"visible","text-rotation-alignment":"map","icon-image":"arrows1","icon-size":{"base":1,"stops":[[16,0.7],[17,0.8],[18,0.9],[19,1]]}},"paint":{"icon-opacity":0.4}},{"id":"Transportation7_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":7,"filter":["all",["==","$type","Point"],["in","b","bb","bc"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":false,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["bb","ferry_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":1}},{"id":"Health & Wellness5_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","d","g","h"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"d","type":"categorical","stops":[["g","gym"],["h","opticals"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Health & Wellness4_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bd"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"medical-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#e9e9e9","text-halo-width":0.1}},{"id":"Community_Services11_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","be","bf","bg","bh","bi","bj"]],"layout":{"text-size":14,"text-optional":false,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services10_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bk"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"post-22","icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Health & Wellness3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","bl","bm","bn","bo","bp","bq","br"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Restaurant&Dining3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":17,"filter":["all",["==","$type","Point"],["in","b","bs","bt","bu"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#9f5004","text-halo-color":"#fff","text-halo-width":0.2}},{"id":"Community_Services9_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bv"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"library-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services8_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bw"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"fire-22","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#ff3333","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment10_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bx"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"swimming-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#15495d","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Community_Services7_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","by","bz","ca"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"police-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#ff3333","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment9_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cb"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"farm","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#1b5e20","text-halo-color":"#5bba76","text-halo-width":0}},{"id":"Recreation&Entertainment8_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cc"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"camping_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#085a30","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment7_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cd"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"art_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#663e20","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services6_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ce"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"embassy-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Automotive1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cf","cg","ch","ci","cj"]],"layout":{"text-size":14,"text-allow-overlap":false,"text-optional":false,"text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Community_Services5_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ck"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"kindergarten-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining4_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cl"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Restaurant&Dining2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cm","cn","co"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"restaurant_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#9f5004","text-halo-color":"#fff","text-halo-width":0.2}},{"id":"Recreation&Entertainment6_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cp","cq","cr","cs","ct","cu"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Recreation&Entertainment5_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cv"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"skiing-22","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#085a30","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment4_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cw","cx","cy","cz","da"]],"layout":{"text-size":13,"text-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,1],"text-field":"{c}"},"paint":{"text-color":"#663e20","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Transportation6_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","db"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"gasfuel_22x22-01","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Shopping2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dc","dd"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"shopcart","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#525BCD","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"General1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":16,"filter":["all",["==","$type","Point"],["in","b","de","df","dg"]],"layout":{"text-size":12,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":true,"text-ignore-placement":false,"text-padding":{"base":1,"stops":[[16,50],[17,80],[18,30],[19,30]]},"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"secondary_road_names_kec","type":"symbol","source":"kec","source-layer":"q","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","c",""],["!in","d","a","b"]],"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{c}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"street_lbl_major_kec","type":"symbol","source":"kec","source-layer":"q","minzoom":5,"filter":["all",["in","d","a","b"],["!=","c",""]],"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{c}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1.5}},{"id":"admin_label7_kec","type":"symbol","source":"kec","source-layer":"t","minzoom":10,"filter":["all",["==","c","a"]],"layout":{"text-size":{"base":1,"stops":[[10,13],[14,14],[15,14],[16,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Bold"],"text-field":"{name_en}","text-max-width":7},"paint":{"text-color":"#8d8d8d","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"toll_road_kec","type":"symbol","source":"kec","source-layer":"u","minzoom":10,"layout":{"text-size":{"base":1,"stops":[[10,5],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":20,"text-field":"Toll Road"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"Transportation5_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","dh"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"petrol_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Health & Wellness2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","di","dj","dk","dl"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hospital_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#fff","text-halo-width":1}},{"id":"Commercial & Industrial1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":15,"filter":["all",["==","$type","Point"],["in","b","dm","dn","do"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","icon-image":{"property":"b","type":"categorical","stops":[["dm","builing01"],["dn","tower02"],["do","hub01"]]},"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#7a7971","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Residential2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dp","dq","dr","ds"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","icon-image":{"property":"b","type":"categorical","stops":[["dp","apartment02"],["dq","apartment02"],["dr","apartment02"],["ds","tower02"]]},"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#7a7971","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Community_Services4_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dt"],["!=","f","b"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-image":{"property":"b","type":"categorical","stops":[["dt","school-22"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","du"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"goernment_office","text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"admin4_label_kec","type":"symbol","source":"kec","source-layer":"t","minzoom":12,"filter":["all",["==","c","b"]],"layout":{"text-size":{"base":1,"stops":[[6,10],[8,14],[9,14],[10,15],[12,15],[16,15],[20,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-line-height":0.9,"icon-allow-overlap":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","icon-size":0.5},"paint":{"text-color":"#5a616d","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"Restaurant&Dining1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dv","dw","dx"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["dv","coffee_22x22-01"],["dw","fastfood_22x22-01"],["dx","bar_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#9f5004","text-halo-color":"#fff","text-halo-width":0.2}},{"id":"Recreation&Entertainment3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","dy"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"cinema_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#663e20","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Nature4_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dz","ea","eb"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ec"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"law_22x22-01","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Recreation&Entertainment2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ed","ee","ef","eg","eh","ei","ej","ek"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":10,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["ed","sport_22x22-01"],["ee","adventure_22x22-01"],["ef","golf_22x22-01"],["eg","sport_22x22-01"],["eh","sport_22x22-01"],["ei","theatre_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":{"property":"b","type":"categorical","stops":[["ee","#085a30"],["ef","#1d4401"],["ed","#1d4401"],["eg","#1d4401"],["eh","#1d4401"],["ei","#663e20"],["ej","#67535d"],["ek","#1b5e20"]]},"text-halo-color":{"property":"b","type":"categorical","stops":[["ee","#fff"],["ef","#e9e9e9"],["eg","#e9e9e9"],["eh","#fff"],["ei","#fff"],["ed","#fff"],["ej","#fff"],["ek","#fff"]]},"text-halo-width":{"property":"b","type":"categorical","stops":[["ee",1],["ef",0.8],["eg",0.8],["eh",0.8],["ed",0.8],["ei",1],["ej",1],["ek",1]]}}},{"id":"admin5_label_kec","type":"symbol","source":"kec","source-layer":"t","minzoom":8,"filter":["all",["==","c","c"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[15,13],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"PilgrimPlaces1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","el","em","en","eo","ep","eq"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["el","buddhist_22x22-01"],["em","gurudwara_22x22-01"],["en","hindu_22x22-01"],["eo","islamic_22x22-01"],["ep","jain_22x22-01"],["eq","church_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#3F1B0F","text-halo-color":"#fff","text-halo-width":1}},{"id":"Residential1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ds"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#7a7971","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Health & Wellness1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","er"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hospital_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","es","et"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Admin5_label_kec","type":"symbol","source":"kec","source-layer":"t","minzoom":10,"filter":["all",["==","c","d"]],"layout":{"text-size":{"base":1,"stops":[[10,13],[14,14],[15,14],[16,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Bold"],"text-field":"{name_en}","text-max-width":7},"paint":{"text-color":"#8d8d8d","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"Nature3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","eu","ev"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-image":"park_22x22-01","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#1b5e20","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ew"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ex","ey"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Shopping1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ez","fa"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"market","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#525BCD","text-halo-color":"#fff","text-halo-width":1}},{"id":"Historical Places1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":7,"filter":["all",["==","$type","Point"],["in","b","fb","fc","fd","fe"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["fb","forts_22x22-01"],["fc","forts_22x22-01"],["fe","forts_22x22-01"],["fd","museums_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Transportation4_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ff"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"helipad_22x22-01","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","fg","fh","fi","fj"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["fg","amusement_22x22-01"],["fi","camera_22x22-01"],["fj","zoo_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":{"property":"b","type":"categorical","stops":[["fg","#663e20"],["fi","#085a30"],["fj","#1b5e20"],["fh","#1b5e20"]]},"text-halo-color":{"property":"b","type":"categorical","stops":[["fg","#e9e9e9"],["fi","#fff"],["fj","#fff"],["fh","#fff"]]},"text-halo-width":{"property":"b","type":"categorical","stops":[["fg",0.8],["fi",1],["fj",1],["fh",1]]}}},{"id":"Nature2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":7,"filter":["all",["==","$type","Point"],["in","b","fk","fl","fm","fn","fo","fp","fq","fr"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":8,"icon-image":{"property":"b","type":"categorical","stops":[["fq","beach4"]]},"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":{"property":"b","type":"categorical","stops":[["fp","#01579b"],["fl","#01579b"],["fr","#01579b"],["fo","#67535d"],["fn","#1b5e20"],["fk","#67535d"],["fm","#67535d"],["fq","#525BCD"]]},"text-halo-color":{"property":"b","type":"categorical","stops":[["fp","#fff"],["fl","#e9e9e9"],["fr","#e9e9e9"],["fo","#fff"],["fn","#e9e9e9"],["fk","#fff"],["fq","#fff"],["fm","#fff"]]},"text-halo-width":{"property":"b","type":"categorical","stops":[["fp",1],["fl",0.8],["fr",0.8],["fo",1],["fn",0.8],["fk",1],["fq",0.8],["fm",1]]}}},{"id":"Community_Services1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":7,"filter":["all",["==","$type","Point"],["==","b","fs"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":"college_22x22-01","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Nature1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":6,"filter":["all",["==","$type","Point"],["==","b","ft"]],"layout":{"text-size":{"base":1,"stops":[[6,12],[8,13],[12,14]]},"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"wildlife_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}","text-max-width":7},"paint":{"text-color":"#085a30","text-halo-color":"#085a30","text-halo-width":0.1}},{"id":"Transportation8_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":14,"filter":["all",["==","$type","Point"],["in","b","fu"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"bus_18x18-01","icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"poi_TRNMET_kec","type":"symbol","source":"kec","source-layer":"v","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","a"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-line-height":1,"icon-size":0.8,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"b","type":"categorical","stops":[["a","metro_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"Transportation3_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","fv"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"icon-image":"toll_22x22-01","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Transportation2_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","fw","fx","fy"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"railwaystn_new_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Admin2_label_kec","type":"symbol","source":"kec","source-layer":"t","minzoom":5,"filter":["all",["==","c","e"]],"layout":{"text-size":10,"text-allow-overlap":false,"text-letter-spacing":0.1,"icon-allow-overlap":true,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-offset":[0,3],"text-field":"{name_en}","icon-size":0.5,"text-transform":"uppercase","text-anchor":"center","text-max-width":5},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.7],[5,0.7],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"admin4_other_label2_kec","type":"symbol","source":"kec","source-layer":"t","minzoom":3,"filter":["all",["in","c","f"]],"layout":{"text-size":12,"symbol-avoid-edges":true,"text-letter-spacing":0,"text-font":["Open Sans Regular"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"admin4_major_label2_kec","type":"symbol","source":"kec","source-layer":"t","minzoom":3,"filter":["all",["in","c","g","h"]],"layout":{"text-size":{"base":1,"stops":[[5,10],[7,11],[8,12],[10,13]]},"symbol-avoid-edges":true,"text-letter-spacing":0,"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"Transportation1_kec","type":"symbol","source":"kec","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","fz","ga"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"icon-image":"airport-22","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"Admin3_label_kec","type":"symbol","source":"kec","source-layer":"t","minzoom":3,"filter":["all",["==","c","i"]],"layout":{"text-size":{"base":1,"stops":[[5,11],[8,12],[10,12]]},"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-padding":0,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.5,"text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"city_centre_cc_kec","type":"symbol","source":"kec","source-layer":"t","minzoom":3,"maxzoom":11,"filter":["all",["==","c","j"]],"layout":{"text-size":{"base":1,"stops":[[3,12],[4,12],[5,14],[6,15]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"target_thick","icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.5,"text-anchor":"right","text-offset":[0,0.7]},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[11,1],[14,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"country_lbl_kec","type":"symbol","source":"kec","minzoom":1,"source-layer":"o","filter":["all",["!=","a","a"],["==","b","c"]],"layout":{"visibility":"none","text-field":"{c}","text-font":["Open Sans Medium"],"text-size":{"base":1,"stops":[[3,11],[4,12],[5,12],[10,15]]},"text-letter-spacing":0.1,"text-allow-overlap":false,"text-anchor":"center","text-transform":"uppercase","symbol-avoid-edges":false},"paint":{"text-color":"#000","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"landuse_all_north_america","type":"fill","source":"north_america","source-layer":"landuse","minzoom":11,"layout":{"visibility":"visible"},"paint":{"fill-color":"#dfdfdf","fill-opacity":1}},{"id":"park_north_america","type":"fill","source":"north_america","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-grass_north_america","type":"fill","source":"north_america","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","grass","farmland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-wetland_north_america","type":"fill","source":"north_america","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wetland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":true,"fill-opacity":1}},{"id":"landcover-glacier_north_america","type":"fill","source":"north_america","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","ice"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-antialias":true,"fill-opacity":0.3}},{"id":"landcover-desert_north_america","type":"fill","source":"north_america","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","sand","rock"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#faf2c7","fill-antialias":false,"fill-opacity":0.7}},{"id":"waterway_added_north_america","type":"line","source":"north_america","source-layer":"waterway","minzoom":11,"layout":{"visibility":"visible"},"paint":{"line-color":"#99cdfe","line-width":2}},{"id":"water_fill_north_america","type":"fill","source":"north_america","source-layer":"water","minzoom":1,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"aeroway_poly_north_america","type":"fill","source":"north_america","source-layer":"aeroway_poly","minzoom":9,"layout":{"visibility":"visible"},"paint":{"fill-color":"#999","fill-antialias":false,"fill-opacity":0.2}},{"id":"building_north_america","type":"fill","source":"north_america","source-layer":"building","minzoom":14,"layout":{"visibility":"visible"},"paint":{"fill-color":"#d5d5d5","fill-opacity":1}},{"id":"transportation-rail_casing_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":0.5,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"transportation-rail_fill_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.5,"line-dasharray":[3,3],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,1],[13,1.3],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"transportation-secondary_case_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"transportation-secondary_fill_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1.5],[14,3],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"transportation-primary_case_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"transportation-primary_fill_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"transportation-minor_fill_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","minor","service"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[13,1],[14,1]]}}},{"id":"pedestrain_fill_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":13,"filter":["all",["in","class","track","path"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"transportation-trunk_case_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"transportation-trunk_fill_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"transportation-motorway_case_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,0],[6,0],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"transportation-motorway_fill_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,4],[14,4.4],[15,4.8],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"transportation-rail_transit_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[12,1],[13,1.5],[16,2],[17,2.5],[18,3],[19,3.5]]}}},{"id":"transportation-rail_transit_dash_north_america","type":"line","source":"north_america","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"line-join":"round"},"paint":{"line-color":"#795548","line-width":{"base":1.5,"stops":[[12,3],[15,4],[17,6]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"aeroway_line_north_america","type":"line","source":"north_america","source-layer":"aeroway_line","minzoom":10,"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,5]]}}},{"id":"landuse_all_europe","type":"fill","source":"europe","source-layer":"landuse","minzoom":11,"layout":{"visibility":"visible"},"paint":{"fill-color":"#dfdfdf","fill-opacity":1}},{"id":"park_europe","type":"fill","source":"europe","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-grass_europe","type":"fill","source":"europe","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","grass","farmland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":0.8}},{"id":"landcover-wetland_europe","type":"fill","source":"europe","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","wetland"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":true,"fill-opacity":1}},{"id":"landcover-glacier_europe","type":"fill","source":"europe","source-layer":"landcover","minzoom":1,"filter":["all",["==","class","ice"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#fff","fill-antialias":true,"fill-opacity":0.3}},{"id":"landcover-desert_europe","type":"fill","source":"europe","source-layer":"landcover","minzoom":1,"filter":["all",["in","class","sand","rock"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#faf2c7","fill-antialias":false,"fill-opacity":0.7}},{"id":"waterway_added_europe","type":"line","source":"europe","source-layer":"waterway","minzoom":11,"layout":{"visibility":"visible"},"paint":{"line-color":"#99cdfe","line-width":2}},{"id":"water_fill_europe","type":"fill","source":"europe","source-layer":"water","minzoom":1,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"aeroway_poly_europe","type":"fill","source":"europe","source-layer":"aeroway_poly","minzoom":9,"layout":{"visibility":"visible"},"paint":{"fill-color":"#999","fill-antialias":false,"fill-opacity":0.2}},{"id":"building_europe","type":"fill","source":"europe","source-layer":"building","minzoom":14,"layout":{"visibility":"visible"},"paint":{"fill-color":"#d5d5d5","fill-opacity":1}},{"id":"transportation-rail_casing_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":0.5,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"transportation-rail_fill_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","rail"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":0.5,"line-dasharray":[3,3],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,1],[13,1.3],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"transportation-secondary_case_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"transportation-secondary_fill_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","secondary","tertiary"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1.5],[14,3],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"transportation-primary_case_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"transportation-primary_fill_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","primary"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"transportation-minor_fill_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","minor","service"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[13,1],[14,1]]}}},{"id":"pedestrain_fill_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":13,"filter":["all",["in","class","track","path"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#b2cc9f","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"transportation-trunk_case_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"transportation-trunk_fill_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":5,"filter":["all",["in","class","trunk"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"transportation-motorway_case_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,0],[6,0],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"transportation-motorway_fill_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":5,"filter":["all",["==","class","motorway"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,4],[14,4.4],[15,4.8],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"transportation-rail_transit_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[12,1],[13,1.5],[16,2],[17,2.5],[18,3],[19,3.5]]}}},{"id":"transportation-rail_transit_dash_europe","type":"line","source":"europe","source-layer":"transportation","minzoom":9,"filter":["all",["==","class","transit"]],"layout":{"line-join":"round"},"paint":{"line-color":"#795548","line-width":{"base":1.5,"stops":[[12,3],[15,4],[17,6]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"aeroway_line_europe","type":"line","source":"europe","source-layer":"aeroway_line","minzoom":10,"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,5]]}}},{"id":"coastline","type":"line","source":"world_ocean","source-layer":"coastline","minzoom":1,"maxzoom":3,"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#40c4ff","line-opacity":1,"line-translate-anchor":"map","line-width":0.2}},{"id":"nature_reserves_names_asia","type":"symbol","source":"asia","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"text-size":{"base":1,"stops":[[10,12],[11,13],[12,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-padding":50,"text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#347352","text-opacity":1,"text-halo-color":"#fff","text-halo-width":0.8}},{"id":"river_names_asia","type":"symbol","source":"asia","source-layer":"waterway","minzoom":11,"filter":["all",["==","class","river"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"water_names_asia","type":"symbol","source":"asia","source-layer":"water","minzoom":9,"filter":["all",["in","class","water","reservoir"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"transportation_name_asia","type":"symbol","source":"asia","source-layer":"transportation_name","minzoom":7,"filter":["all",["in","ref_length",3,4,5],["!=","ref","N-35"]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20],[16,10]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-image":{"property":"ref_length","type":"categorical","stops":[[3,"motorway_3"],[4,"motorway_4"],[5,"motorway_5"]]},"icon-padding":60,"icon-size":0.5,"text-rotation-alignment":"viewport","text-field":"{ref}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"aerodrome_label_asia","type":"symbol","source":"asia","source-layer":"aerodrome_label","minzoom":9,"filter":["all",["in","class","international","public","regional","other","private"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"icon-image":"airport-22","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#055a88","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"major_road_name_asia","type":"symbol","source":"asia","source-layer":"transportation_name","minzoom":9,"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"place_State_asia","type":"symbol","source":"asia","source-layer":"place","minzoom":1,"filter":["all",["==","class","state"]],"layout":{"text-size":{"base":1,"stops":[[4,10],[5,12],[6,12]]},"text-allow-overlap":false,"text-letter-spacing":0.1,"icon-allow-overlap":true,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-offset":[0.5,0],"text-field":"{name_en}","icon-size":0.5,"text-transform":"uppercase","text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.7],[5,0.7],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"place_locality_asia","type":"symbol","source":"asia","source-layer":"place","minzoom":1,"filter":["all",["in","class","locality","suburb","hamlet","square","quarter","island","neighbourhood"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[15,13],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"peaks_asia","type":"symbol","source":"asia","source-layer":"mountain_peak","minzoom":7,"layout":{"text-size":10,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"triangle_outer","icon-allow-overlap":false,"text-line-height":1,"icon-size":0.8,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"House_No_asia","type":"symbol","source":"asia","source-layer":"house_address","minzoom":17,"layout":{"text-field":"{addr_housenumber}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":10},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"poi_all_asia","type":"symbol","source":"asia","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["!in","class","railway","stadium","park"],["in","subclass","artwork","arts_centre","gallery","water_park","bank","bar","casino","nightclub","pub","bicycle_parking","bicycle_rental","bus_stop","bus_station","cafe","camp_site","taxi","car_rental","driving_school","taxi","castle","cinema","university","college","dentist","nursing_home","doctors","clinic","dog_park","drinking_water","embassy","food_court","fast_food","ferry_terminal","fire_station","fuel","miniature_golf","golf_course","helipad","hospital","ice_cream","information","public_bookcase","library","motel","hostel","hotel","guest_house","water_park","fort","monument","peak","memorial","museum","pharmacy","picnic_site-site","place_of_worship","playground","police","post_office","prison","restaurant","school","theatre","toilets","townhall-hall","veterinary","volcano","zoo","atm","cave_entrance","bureau_de_change","bicycle_repair_station","car_wash","shelter","bowling_alley","sports_centre","archaeological_site","apartment","saddle","chalet","caravan_site","bbq","alpine_hut","wilderness_hut","sauna","recycling","hunting_stand","social_facility","boat_rental","shower","community_centre","courthouse","picnic_table","fishing","city_gate","public_bath","slipway","childcare","motorcycle_parking","bunker","biergarten","beach_resort","wayside_shrine","outdoor_seating","firepit","wayside_cross","vehicle_inspection","fountain","charging_station","viewpoint","parking","spring","traffic_signals","information","elevator","toll_booth","telephone","waterfall","marketplace","fitness_station","fitness_centre","internet_amenity_cafe"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":{"property":"subclass","type":"categorical","stops":[["artwork","art_22x22-01"],["arts_centre","art_22x22-01"],["gallery","art_22x22-01"],["water_park","amusement_22x22-01"],["bank","bank-22"],["bar","bar_22x22-01"],["casino","bar_22x22-01"],["nightclub","bar_22x22-01"],["pub","bar_22x22-01"],["bicycle_parking","parking_18x18-01"],["bicycle_rental","common2_brown"],["bus_stop","bus_18x18-01"],["bus_station","bus_18x18-01"],["cafe","coffee_22x22-01"],["camp_site","camera_22x22-01"],["taxi","common2_brown"],["car_rental","common2_brown"],["driving_school","common2_brown"],["castle","common2_brown"],["cinema","cinema_22x22-01"],["university","college_22x22-01"],["college","college_22x22-01"],["dentist","dentist-22"],["nursing_home","hospital_22x22-01"],["doctors","hospital_22x22-01"],["clinic","hospital_22x22-01"],["dog_park","common2_brown"],["drinking_water","common2_brown"],["embassy","embassy-22"],["food_court","fastfood_22x22-01"],["fast_food","fastfood_22x22-01"],["ferry_terminal","ferry_22x22-01"],["fire_station","fire-22"],["fuel","petrol_22x22-01"],["miniature_golf","golf_22x22-01"],["golf_course","golf_22x22-01"],["helipad","helipad_22x22-01"],["hospital","hospital_22x22-01"],["ice_cream","common2_brown"],["information","india_tourism"],["public_bookcase","library-22"],["library","library-22"],["motel","hotel_22x22-01"],["hostel","hotel_22x22-01"],["hotel","hotel_22x22-01"],["guest_house","hotel_22x22-01"],["fort","forts_22x22-01"],["monument","forts_22x22-01"],["peak","forts_22x22-01"],["memorial","museums_22x22-01"],["museum","museums_22x22-01"],["pharmacy","medical-22"],["picnic_site-site","camera_22x22-01"],["place_of_worship","common2_blue"],["playground","park_22x22-01"],["police","police-22"],["post_office","post-22"],["prison","police-22"],["restaurant","restaurant_22x22-01"],["school","school-22"],["theatre","theatre_22x22-01"],["toilets","public_utility"],["townhall-hall","common2_brown"],["veterinary","common2_brown"],["volcano","common2_brown"],["zoo","zoo_22x22-01"],["atm","atm"],["cave_entrance","common2_brown"],["bureau_de_change","common2_brown"],["bicycle_repair_station","common2_brown"],["car_wash","common2_brown"],["shelter","common2_brown"],["bowling_alley","common2_brown"],["sports_centre","common2_brown"],["archaeological_site","common2_brown"],["apartment","common2_brown"],["saddle","common2_brown"],["chalet","common2_brown"],["caravan_site","common2_brown"],["bbq","common2_brown"],["alpine_hut","common2_brown"],["wilderness_hut","common2_brown"],["sauna","common2_brown"],["recycling","common2_brown"],["hunting_stand","common2_brown"],["social_facility","common2_brown"],["boat_rental","common2_brown"],["shower","common2_brown"],["community_centre","common2_brown"],["courthouse","common2_brown"],["picnic_table","common2_brown"],["fishing","common2_brown"],["city_gate","common2_brown"],["public_bath","common2_brown"],["slipway","common2_brown"],["childcare","common2_brown"],["motorcycle_parking","parking_18x18-01"],["bunker","common2_brown"],["biergarten","common2_brown"],["beach_resort","common2_brown"],["wayside_shrine","common2_brown"],["outdoor_seating","common2_brown"],["firepit","common2_brown"],["wayside_cross","common2_brown"],["vehicle_inspection","common2_brown"],["fountain","common2_brown"],["charging_station","common2_brown"],["viewpoint","common2_brown"],["parking","parking_18x18-01"],["spring","common2_brown"],["traffic_signals","common2_brown"],["elevator","common2_brown"],["toll_booth","common2_brown"],["telephone","common2_brown"],["waterfall","common2_brown"],["marketplace","common2_brown"],["fitness_station","common2_brown"],["fitness_centre","common2_brown"],["internet_amenity_cafe","common2_brown"]]},"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"poi_Religious_asia","type":"symbol","source":"asia","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["in","subclass","place_of_worship"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"common2_blue","icon-allow-overlap":false,"text-line-height":1,"icon-size":0.9,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,1],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"poi_stations_asia","type":"symbol","source":"asia","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["in","class","railway","stadium","park"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-line-height":1,"icon-size":0.9,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"class","type":"categorical","stops":[["railway","railwaystn_new_22x22-01"],["park","park_22x22-01"],["stadium","sport_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"Admin1_fill_sea","type":"fill","source":"sea","source-layer":"b","minzoom":6,"filter":["in","a","a","b"],"layout":{"visibility":"visible"},"paint":{"fill-color":"#eaeaea"}},{"id":"landuse_green_base green_sea","type":"fill","source":"sea","source-layer":"c","minzoom":3,"filter":["all",["!=","a","a"],["==","b","a"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":1}},{"id":"city_area_sea","type":"fill","source":"sea","source-layer":"d","minzoom":8,"layout":{"visibility":"visible"},"paint":{"fill-color":"#dfdfdf","fill-opacity":1}},{"id":"landuse_green_other_sea","type":"fill","source":"sea","source-layer":"c","minzoom":3,"filter":["all",["in","c","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn"],["!=","a","a"],["!=","b","a"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"property":"c","type":"categorical","stops":[["a","#bde2a1"],["n","#bde2a1"],["b","#bde2a1"],["c","#f1e9d7"],["d","#bde2a1"],["e","#bde2a1"],["f","#bde2a1"],["g","#bde2a1"],["h","#bde2a1"],["i","#bde2a1"],["j","#bde2a1"],["k","#bde2a1"],["l","#bde2a1"],["m","#aae08f"],["o","#bde2a1"],["p","#bde2a1"],["q","#b2e39a"],["r","#bde2a1"],["s","#bde2a1"],["t","#bde2a1"],["u","#c3fc98"],["v","#faf2c7"],["w","#faf2c7"],["x","#af9cb0"],["y","#DEC0DE"],["z","#DEC0DE"],["ba","#DEC0DE"],["bb","#DEC0DE"],["bc","#DEC0DE"],["bd","#b09f9f"],["be","#EC8080"],["bf","#FFE5B4"],["bg","#FFE5B4"],["bh","#FFE5B4"],["bi","#FFE5B4"],["bj","#FFE5B4"],["bk","#FFE5B4"],["bl","#e5ab60"],["bm","#fff"],["bn","#899795"]]},"fill-antialias":false,"fill-opacity":{"property":"c","type":"categorical","stops":[["t",0.2],["n",1],["u",0.2],["v",0.7],["c",0.5],["j",1],["w",0.7],["m",1],["x",0.3],["y",0.3],["z",0.3],["ba",0.3],["bb",0.3],["bc",0.3],["bd",0.3],["be",0.2],["bf",0.7],["bg",0.7],["bh",0.7],["bi",0.7],["bj",0.7],["bk",0.7],["bl",0.3],["bm",0.3],["bn",0.2]]}}},{"id":"landuse_Protected_Area_sea","type":"fill","source":"sea","source-layer":"c","minzoom":3,"filter":["all",["==","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#aae08f","fill-antialias":false,"fill-opacity":1}},{"id":"waterway_fill_sea","type":"fill","source":"sea","source-layer":"e","minzoom":3,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"Airway fill_sea","type":"fill","source":"sea","source-layer":"f","minzoom":7,"filter":["all",["in","a","a","b","c"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"property":"a","type":"categorical","stops":[["a","#999"],["b","#999"],["c","#777"]]},"fill-antialias":false,"fill-opacity":0.2}},{"id":"water_region_fill_sea","type":"fill","source":"sea","source-layer":"g","minzoom":3,"filter":["all",["!in","a","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"Landuse_salt_region_sea","type":"fill","source":"sea","source-layer":"g","minzoom":7,"filter":["all",["in","a","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"property":"a","type":"categorical","stops":[["a","#D4D7DB"],["b","#b29d81"]]},"fill-antialias":false,"fill-opacity":{"property":"a","type":"categorical","stops":[["a",1],["b",0.5]]}}},{"id":"undgrd_pedestrain_fill_sea","type":"line","source":"sea","source-layer":"h","minzoom":15,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"undgrd_primary_casing_sea","type":"line","source":"sea","source-layer":"h","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"undgrd_primary_fill_sea","type":"line","source":"sea","source-layer":"h","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1],[14,2],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"undgrd_arterial_casing_sea","type":"line","source":"sea","source-layer":"h","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"undgrd_arterial_fill_sea","type":"line","source":"sea","source-layer":"h","minzoom":8,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"undgrd_motorway_casing_DHY_sea","type":"line","source":"sea","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,2],[8,2],[9,2],[10,2.5],[11,3],[12,4.5],[13,4.5],[14,5.5],[15,7],[16,9],[17,10],[18,11],[19,12]]}}},{"id":"undgrd_motorway_fill_DHY_sea","type":"line","source":"sea","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#fff7d7"],[10,"#fff7d7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,1],[8,1],[9,1],[10,1],[11,2],[12,2.5],[13,3],[14,3.5],[15,4],[16,7],[17,8],[18,9],[19,10]]}}},{"id":"undgrd_motorway_casing_sea","type":"line","source":"sea","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"undgrd_motorway_fill_sea","type":"line","source":"sea","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"undgrd_limited_casing_sea","type":"line","source":"sea","source-layer":"h","minzoom":14,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],["==","PUBVSPVT",1],["!in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":"butt"},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,0.7],[15,1],[16,1.2],[17,1.8],[18,2.5],[19,3]]}}},{"id":"undgrd_highway_casing_sea","type":"line","source":"sea","source-layer":"h","minzoom":7,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"undgrd_highway_fill_sea","type":"line","source":"sea","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"tunnel_fill_sea","type":"line","source":"sea","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["==","c","c"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#d4ac6a","line-opacity":1,"line-width":{"base":1,"stops":[[11,2],[12,2],[13,3],[14,3],[15,4],[16,7],[17,8],[18,10],[19,12]]}}},{"id":"undgrd_UC_offset1_sea","type":"line","source":"sea","source-layer":"h","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"undgrd_UC_offset2_sea","type":"line","source":"sea","source-layer":"h","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"railroad_service_casing_sea","type":"line","source":"sea","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["in","a","a","b"],["==","b","a"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":1,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"railroad_service_fill_sea","type":"line","source":"sea","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["in","a","a","b"],["==","b","a"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#e5e5e5","line-opacity":1,"line-width":{"base":1,"stops":[[10,1.5],[11,1],[12,1],[13,1.2],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"railroad_casing_sea","type":"line","source":"sea","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["!in","a","a","c"],["!in","b","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":1,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"railroad_fill_sea","type":"line","source":"sea","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["!in","a","a","c"],["!in","b","a","b"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":1,"line-dasharray":[3,3],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,1],[13,1.3],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"secondary_pedestrain_fill_sea","type":"line","source":"sea","source-layer":"j","minzoom":14,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"secondary_casing_sea","type":"line","source":"sea","source-layer":"j","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b","c"],["==","d","a"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,0],[14,1],[15,3],[16,3.5],[17,7],[18,8],[19,9]]}}},{"id":"secondary_fill_sea","type":"line","source":"sea","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b","c"],["==","d","a"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,1],[15,2],[16,3],[17,6],[18,7],[19,8]]}}},{"id":"Bicycle_track_sea","type":"line","source":"sea","source-layer":"j","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-opacity":0.7,"line-width":2}},{"id":"secondary_UC_offset1_sea","type":"line","source":"sea","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"secondary_UC_offset2_sea","type":"line","source":"sea","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"pedestrain_fill_sea","type":"line","source":"sea","source-layer":"j","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"ferry_route1_sea","type":"line","source":"sea","source-layer":"j","minzoom":8,"filter":["all",["==","$type","LineString"],["in","b","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#53adc1","line-dasharray":[4,4],"line-opacity":1,"line-width":1}},{"id":"primary_casing_sea","type":"line","source":"sea","source-layer":"j","minzoom":13,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b","c"],["in","d","f","a","g"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"primary_fill_sea","type":"line","source":"sea","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b","c"],["in","d","f","a","g"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1],[14,2],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"arterial_casing_sea","type":"line","source":"sea","source-layer":"j","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","d","e"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"limited_roads_casing_sea","type":"line","source":"sea","source-layer":"j","minzoom":14,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["in","d","b","c","d","e","f","a","g"],["==","PUBVSPVT",1],["!in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,0.7],[15,1],[16,1.2],[17,1.8],[18,2.5],[19,3]]}}},{"id":"arterial_fill_sea","type":"line","source":"sea","source-layer":"j","minzoom":8,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","d","e"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"motorway_casing_DHY_sea","type":"line","source":"sea","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","f","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,2],[8,2],[9,2],[10,2.5],[11,3],[12,4.5],[13,4.5],[14,5.5],[15,7],[16,9],[17,10],[18,11],[19,12]]}}},{"id":"motorway_fill_DHY_sea","type":"line","source":"sea","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","f","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#fff7d7"],[10,"#fff7d7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,1],[8,1],[9,1],[10,1],[11,2],[12,2.5],[13,3],[14,3.5],[15,4],[16,7],[17,8],[18,9],[19,10]]}}},{"id":"motorway_casing_sea","type":"line","source":"sea","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","b","c"],["!=","g","a"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"motorway_fill_sea","type":"line","source":"sea","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","b","c"],["!=","g","a"],["!in","f","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"highway_casing_sea","type":"line","source":"sea","source-layer":"j","minzoom":7,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","g","a"],["in","d","b","c"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"highway_fill_sea","type":"line","source":"sea","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","g","a"],["in","d","b","c"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,4],[14,4.4],[15,4.8],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"tunnel_fill_0_sea","type":"line","source":"sea","source-layer":"j","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["==","c","d"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#d4ac6a","line-opacity":1,"line-width":{"base":1,"stops":[[11,2],[12,2],[13,3],[14,3],[15,4],[16,7],[17,8],[18,10],[19,12]]}}},{"id":"UC_offset1_sea","type":"line","source":"sea","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"UC_offset2_sea","type":"line","source":"sea","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"elevated_Bicycle_track_sea","type":"line","source":"sea","source-layer":"k","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-opacity":0.7,"line-width":2}},{"id":"elevated_primary_casing_sea","type":"line","source":"sea","source-layer":"k","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c","a"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"elevated_primary_fill_sea","type":"line","source":"sea","source-layer":"k","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c","a"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1],[14,2],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"elevated_arterial_casing_sea","type":"line","source":"sea","source-layer":"k","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"elevated_arterial_fill_sea","type":"line","source":"sea","source-layer":"k","minzoom":8,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"elevated_motorway_casing_DHY_sea","type":"line","source":"sea","source-layer":"k","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,2],[8,2],[9,2],[10,2.5],[11,3],[12,4.5],[13,4.5],[14,5.5],[15,7],[16,9],[17,10],[18,11],[19,12]]}}},{"id":"elevated_motorway_fill_DHY_sea","type":"line","source":"sea","source-layer":"k","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#fff7d7"],[10,"#fff7d7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,1],[8,1],[9,1],[10,1],[11,2],[12,2.5],[13,3],[14,3.5],[15,4],[16,7],[17,8],[18,9],[19,10]]}}},{"id":"elevated_motorway_casing_sea","type":"line","source":"sea","source-layer":"k","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"elevated_motorway_fill_sea","type":"line","source":"sea","source-layer":"k","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"elevated_limited_roads_fill_sea","type":"line","source":"sea","source-layer":"k","minzoom":14,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],["==","PUBVSPVT",1],["!in","c","b","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":"butt"},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.3],[14,0.5],[15,0.8],[16,1],[17,1.5],[18,2],[19,2.5]]}}},{"id":"elevated_highway_casing_sea","type":"line","source":"sea","source-layer":"k","minzoom":7,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"elevated_highway_fill_sea","type":"line","source":"sea","source-layer":"k","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"elevated_UC_offset1_sea","type":"line","source":"sea","source-layer":"k","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"elevated_UC_offset2_sea","type":"line","source":"sea","source-layer":"k","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"fob_casing_sea","type":"line","source":"sea","source-layer":"k","minzoom":16,"filter":["all",["==","$type","LineString"],["==","c","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#c1ada7","line-opacity":1,"line-width":{"base":4,"stops":[[15,5],[17,9],[19,10]]}}},{"id":"fob_fill_sea","type":"line","source":"sea","source-layer":"k","minzoom":16,"filter":["all",["==","$type","LineString"],["==","c","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":"butt"},"paint":{"line-opacity":1,"line-color":"#f3f3f3","line-dasharray":{"base":1,"stops":[[16,[0.3,0.3]]]},"line-width":{"base":4,"stops":[[16,4],[17,8],[19,9]]}}},{"id":"intercity_rail_undcons_sea","type":"line","source":"sea","source-layer":"i","minzoom":13,"filter":["all",["==","$type","LineString"],["in","c","a","b","c","d","e","f","g","h","i","j","k","l"],["in","b","b"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":{"property":"c","type":"categorical","stops":[["a","#0099cc"],["b","#ff6666"],["c","#339900"],["d","#cd76ed"],["e","#f29e0b"],["f","#cd76ed"],["g","#ff00ff"],["h","#ed6106"],["i","#ff94b4"],["j","#00ffff"],["k","#b58f82"],["l","Grey"]]},"line-opacity":0.5,"line-dasharray":[2,2],"line-width":{"base":1,"stops":[[10,1.5],[13,2],[16,2.5],[17,3],[18,4],[19,4]]}}},{"id":"intercity_rail_tram_sea","type":"line","source":"sea","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["in","d","a"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#b58f82","line-opacity":1,"line-width":1}},{"id":"intercity_rail_generic_sea","type":"line","source":"sea","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["==","a","a"],["!in","b","b","a"],["!in","c","d","h","a","b","c","g","e","f","i","j","d","l"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#b58f82","line-opacity":1,"line-width":1}},{"id":"intercity_rail_dash_sea","type":"line","source":"sea","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["==","a","a"],["!in","b","b","a"],["!in","c","d","h","a","b","c","g","e","f","i","j","d","l"]],"layout":{"line-join":"round"},"paint":{"line-color":"#b58f82","line-width":{"base":1.5,"stops":[[10,4],[15,6],[17,8]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"intercity_rail_colored_sea","type":"line","source":"sea","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["in","c","a","b","c","d","e","f","g","h","i","j","k","l"],["!in","b","b","a"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":{"property":"c","type":"categorical","stops":[["a","#0099cc"],["b","#ff6666"],["c","#339900"],["d","#cd76ed"],["e","#f29e0b"],["f","#cd76ed"],["g","#ff00ff"],["h","#ed6106"],["i","#ff94b4"],["j","#00ffff"],["k","#b58f82"],["l","Grey"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[10,1.5],[13,2],[16,2],[17,2],[18,2],[19,2]]}}},{"id":"intercity_rail_colored_dash_sea","type":"line","source":"sea","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["in","c","a","b","c","d","e","f","g","h","i","j","k","l"],["!in","b","b","a"]],"layout":{"line-join":"round"},"paint":{"line-color":{"property":"c","type":"categorical","stops":[["a","#0099cc"],["b","#ff6666"],["c","#339900"],["d","#cd76ed"],["e","#f29e0b"],["f","#cd76ed"],["g","#ff00ff"],["h","#ed6106"],["i","#ff94b4"],["j","#00ffff"],["k","#b58f82"],["l","Grey"]]},"line-width":{"base":1.5,"stops":[[10,5],[15,6],[17,8]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"footprints_int_3d_sea","type":"fill-extrusion","source":"sea","minzoom":15,"source-layer":"l","filter":["all",["in","b","a","b","c"]],"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":{"property":"b","type":"categorical","stops":[["b","#f1e7d9"],["a","#e9e9e9"],["c","#d1d1d1"]]},"fill-extrusion-height":{"property":"c","type":"identity"},"fill-extrusion-opacity":1}},{"id":"footprints_int_3d_2_sea","type":"fill-extrusion","source":"sea","minzoom":15,"source-layer":"l","filter":["all",["in","b","d","e"]],"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":"#e9e9e9","fill-extrusion-height":{"property":"c","type":"identity"},"fill-extrusion-opacity":0.5}},{"id":"Admin2_Boundary_sea","type":"line","source":"sea","source-layer":"m","minzoom":3,"filter":["==","a","a"],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#8d8d8d","line-opacity":{"base":1,"stops":[[3,1]]},"line-width":1,"line-dasharray":{"base":1,"stops":[[3,[2,2,2,2]],[21,[2,2,4,2]]]}}},{"id":"Admin1_Boundary_sea","type":"line","source":"sea","source-layer":"m","minzoom":1,"filter":["in","a","b"],"layout":{"visibility":"visible"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map","line-width":1}},{"id":"Coastal_Boundary_sea","type":"line","source":"sea","source-layer":"m","minzoom":1,"filter":["in","a","c","d"],"layout":{"visibility":"visible"},"paint":{"line-color":"#6bbceb","line-opacity":0.3,"line-translate-anchor":"map","line-width":0}},{"id":"Int_Admin_Bound_sea","type":"line","source":"sea","source-layer":"n","minzoom":1,"filter":["all",["==","a","a"]],"layout":{"visibility":"none"},"paint":{"line-color":"#a3ad9e","line-opacity":0.8,"line-translate-anchor":"map","line-width":1}},{"id":"waterway_lbl_highzoom_sea","type":"symbol","source":"sea","source-layer":"e","minzoom":11,"layout":{"visibility":"visible","text-field":"{a}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"Int_Admin_Label3_Boundary_sea","type":"symbol","source":"sea","minzoom":3,"source-layer":"o","filter":["all",["!=","a","a"],["==","b","a"]],"layout":{"visibility":"none","text-field":"{c}","text-font":["Open Sans Medium"],"text-size":11,"text-letter-spacing":0.1,"text-allow-overlap":false,"text-anchor":"center","symbol-avoid-edges":true},"paint":{"text-color":"#000","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"Admin_Label2_Boundary_sea","type":"symbol","source":"sea","minzoom":3,"source-layer":"o","filter":["all",["!=","a","a"],["==","b","b"]],"layout":{"visibility":"none","text-field":"{c}","text-font":["Open Sans Medium"],"text-size":12,"text-letter-spacing":0.1,"text-allow-overlap":false,"text-anchor":"center","symbol-avoid-edges":true},"paint":{"text-color":"#000","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"water_ocean_label_sea","type":"symbol","source":"sea","minzoom":1,"source-layer":"o","filter":["all",["==","a","a"]],"layout":{"visibility":"none","text-field":"{c}","text-font":["Open Sans Italic"],"text-size":12,"text-letter-spacing":0.1,"text-allow-overlap":false,"text-max-width":5,"text-anchor":"center","symbol-avoid-edges":true},"paint":{"text-color":"#11354d","text-halo-color":"#11354d","text-halo-width":0.1,"text-opacity":0.6}},{"id":"Housenumber_label_sea","type":"symbol","source":"sea","source-layer":"p","minzoom":16,"layout":{"text-field":"{b}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","text-padding":{"base":1,"stops":[[16,20],[17,30],[18,40],[19,50],[20,50]]},"symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":11},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"street_lbl_shield_sea","type":"symbol","source":"sea","source-layer":"q","minzoom":9,"filter":["all",[">=","a",""],["in","b","a","b","c"]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-size":0.5,"icon-image":"motorway_3","icon-padding":1,"text-rotation-alignment":"viewport","text-field":"{a}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"state_border_label_sea","type":"symbol","source":"sea","source-layer":"b","minzoom":13,"layout":{"text-size":{"base":1,"stops":[[12,9],[13,10],[14,10],[15,10],[16,11]]},"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":0,"text-offset":[1,1],"text-field":"{b}"},"paint":{"text-color":"#b55cb5","text-opacity":1}},{"id":"bicycle_track_label_sea","type":"symbol","source":"sea","source-layer":"j","minzoom":15,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","c"]],"layout":{"text-size":12,"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":100,"text-offset":[1,1],"text-field":"Bicycle Track"},"paint":{"text-color":"#222","text-opacity":1}},{"id":"metro_label_undcons_sea","type":"symbol","source":"sea","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["==","a","a"],["==","b","b"],["!in","c","","m"]],"layout":{"text-size":10,"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":100,"text-offset":[1,1],"text-field":"Track Under Construction"},"paint":{"text-color":"#222","text-opacity":1}},{"id":"metro_label_sea","type":"symbol","source":"sea","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["==","a","a"],["!in","b","b","a"]],"layout":{"text-size":10,"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":100,"text-offset":[1,1],"text-field":"{e}"},"paint":{"text-color":"#222","text-opacity":1}},{"id":"Health & Wellness7_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":17,"filter":["all",["==","$type","Point"],["in","b","a"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"clinic-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#e9e9e9","text-halo-width":0.1}},{"id":"General3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":16,"filter":["all",["==","$type","Point"],["==","b","b"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"public_utility","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Shopping6_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":17,"filter":["all",["==","$type","Point"],["in","d","a"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-image":"puncture_shop","text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Shopping5_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":15,"filter":["all",["==","$type","Point"],["in","b","c","d","e","f"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Automotive3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","d","b","c","d","e"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-max-width":7,"text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Automotive2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":17,"filter":["all",["==","$type","Point"],["in","d","b","c","e","f"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"d","type":"categorical","stops":[["b","automobile"],["c","repairing"],["e","repairing"],["f","automobile"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"General2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","e","a"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-size":1,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"icon-image":"telephone_booth","symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#fff","text-halo-width":1}},{"id":"Shopping4_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":14,"filter":["all",["==","$type","Point"],["in","e","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-max-width":7,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Shopping3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":14,"filter":["all",["==","$type","Point"],["in","e","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn","bo","bp","bq","br"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":{"property":"e","type":"categorical","stops":[["b","clothing_store"],["c","clothing_store"],["d","stationary"],["e","cosmetic"],["f","cosmetic"],["g","hardware"],["h","hardware"],["i","hardware"],["j","florist"],["k","florist"],["l","furniture_store"],["m","furniture_store"],["n","furniture_store"],["o","furniture_store"],["p","footwear"],["q","footwear"],["r","jewellary_shop"],["s","jewellary_shop"],["t","opticals"],["u","salon_01"],["v","salon_01"],["w","wine_shop"],["x","wine_shop"],["y","gift_shop"],["z","computer_shop"],["ba","computer_shop"],["bb","salon"],["bc","salon_01"],["bd","scrap_store"],["be","cigarette_shops"],["bf","butchers"],["bg","builder"],["bh","dj"],["bi","laundry"],["bj","property_dealers"],["bk","pet_shop"],["bl","tailors"],["bm","pawn_broker"],["bn","baby"],["bo","common2_blue"],["bp","common2_blue"],["bq","agricultural_automotive"],["br","agricultural_automotive_repair"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-max-width":7,"text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Commercial & Industrial2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","g","h","i","j","k","l","m"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#3c2e35","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Financial_Services3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","n","o"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-max-width":6,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services12_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","p","q","r"],["!=","e","bs"]],"layout":{"icon-optional":true,"icon-image":{"property":"b","type":"categorical","stops":[["p","parking_18x18-01"],["q","parking_18x18-01"],["r","bus_18x18-01"]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-rotation-alignment":"viewport","symbol-placement":"point"},"paint":{"text-opacity":1}},{"id":"Financial_Services1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","s"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-image":"bank-22","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Financial_Services2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","t"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":6,"icon-image":"atm","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Health & Wellness6_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","u"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"dentist-22","text-max-width":7,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#1a6080","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Transportation10_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","v","w","x","y","z"],["!=","f","a"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Transportation9_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ba"]],"layout":{"text-size":14,"text-optional":true,"text-allow-overlap":false,"icon-optional":true,"icon-allow-overlap":false,"icon-image":"bridge1","icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-ignore-placement":false,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"street_upper_FOW_FOB_sea","type":"symbol","source":"sea","source-layer":"s","minzoom":16,"filter":["all",["==","a","a"]],"layout":{"text-size":{"base":4,"stops":[[15,10],[20,13]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"line","text-letter-spacing":0.01,"visibility":"visible","text-rotation-alignment":"map","text-pitch-alignment":"auto","text-keep-upright":true,"text-max-width":10,"text-field":"Foot Over Bridge"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#FFF","text-halo-width":1.25,"text-halo-blur":1}},{"id":"arrows_sea","type":"symbol","source":"sea","source-layer":"q","minzoom":16,"filter":["all",["==","$type","LineString"],["==","c","a"]],"layout":{"symbol-placement":"line","icon-padding":{"base":1,"stops":[[16,30],[17,40],[18,50],[19,60]]},"visibility":"visible","text-rotation-alignment":"map","icon-image":"arrows1","icon-size":{"base":1,"stops":[[16,0.7],[17,0.8],[18,0.9],[19,1]]}},"paint":{"icon-opacity":0.4}},{"id":"Transportation7_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":7,"filter":["all",["==","$type","Point"],["in","b","bb","bc"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":false,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["bb","ferry_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":1}},{"id":"Health & Wellness5_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","d","g","h"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"d","type":"categorical","stops":[["g","gym"],["h","opticals"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Health & Wellness4_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bd"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"medical-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#e9e9e9","text-halo-width":0.1}},{"id":"Community_Services11_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","be","bf","bg","bh","bi","bj"]],"layout":{"text-size":14,"text-optional":false,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services10_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bk"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"post-22","icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Health & Wellness3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","bl","bm","bn","bo","bp","bq","br"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Restaurant&Dining3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":17,"filter":["all",["==","$type","Point"],["in","b","bs","bt","bu"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#9f5004","text-halo-color":"#fff","text-halo-width":0.2}},{"id":"Community_Services9_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bv"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"library-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services8_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bw"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"fire-22","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#ff3333","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment10_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bx"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"swimming-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#15495d","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Community_Services7_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","by","bz","ca"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"police-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#ff3333","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment9_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cb"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"farm","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#1b5e20","text-halo-color":"#5bba76","text-halo-width":0}},{"id":"Recreation&Entertainment8_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cc"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"camping_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#085a30","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment7_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cd"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"art_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#663e20","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services6_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ce"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"embassy-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Automotive1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cf","cg","ch","ci","cj"]],"layout":{"text-size":14,"text-allow-overlap":false,"text-optional":false,"text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Community_Services5_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ck"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"kindergarten-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining4_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cl"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Restaurant&Dining2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cm","cn","co"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"restaurant_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#9f5004","text-halo-color":"#fff","text-halo-width":0.2}},{"id":"Recreation&Entertainment6_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cp","cq","cr","cs","ct","cu"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Recreation&Entertainment5_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cv"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"skiing-22","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#085a30","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment4_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cw","cx","cy","cz","da"]],"layout":{"text-size":13,"text-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,1],"text-field":"{c}"},"paint":{"text-color":"#663e20","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Transportation6_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","db"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"gasfuel_22x22-01","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Shopping2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dc","dd"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"shopcart","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#525BCD","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"General1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":16,"filter":["all",["==","$type","Point"],["in","b","de","df","dg"]],"layout":{"text-size":12,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":true,"text-ignore-placement":false,"text-padding":{"base":1,"stops":[[16,50],[17,80],[18,30],[19,30]]},"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"secondary_road_names_sea","type":"symbol","source":"sea","source-layer":"q","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","d",""],["!in","e","a","b"]],"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{d}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"street_lbl_major_sea","type":"symbol","source":"sea","source-layer":"q","minzoom":5,"filter":["all",["in","e","a","b"],["!=","d",""]],"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{d}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1.5}},{"id":"admin_label7_sea","type":"symbol","source":"sea","source-layer":"t","minzoom":10,"filter":["all",["==","c","a"]],"layout":{"text-size":{"base":1,"stops":[[10,13],[14,14],[15,14],[16,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Bold"],"text-field":"{name_en}","text-max-width":7},"paint":{"text-color":"#8d8d8d","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"toll_road_sea","type":"symbol","source":"sea","source-layer":"u","minzoom":10,"layout":{"text-size":{"base":1,"stops":[[10,5],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":20,"text-field":"Toll Road"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"Transportation5_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","dh"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"petrol_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Health & Wellness2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","di","dj","dk","dl"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hospital_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#fff","text-halo-width":1}},{"id":"Commercial & Industrial1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":15,"filter":["all",["==","$type","Point"],["in","b","dm","dn","do"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","icon-image":{"property":"b","type":"categorical","stops":[["dm","builing01"],["dn","tower02"],["do","hub01"]]},"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#7a7971","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Residential2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dp","dq","dr","ds"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","icon-image":{"property":"b","type":"categorical","stops":[["dp","apartment02"],["dq","apartment02"],["dr","apartment02"],["ds","tower02"]]},"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#7a7971","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Community_Services4_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dt"],["!=","f","b"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-image":{"property":"b","type":"categorical","stops":[["dt","school-22"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","du"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"goernment_office","text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Restaurant&Dining1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dv","dw","dx"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["dv","coffee_22x22-01"],["dw","fastfood_22x22-01"],["dx","bar_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#9f5004","text-halo-color":"#fff","text-halo-width":0.2}},{"id":"Recreation&Entertainment3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","dy"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"cinema_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#663e20","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Nature4_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dz","ea","eb"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ec"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"law_22x22-01","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Recreation&Entertainment2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ed","ee","ef","eg","eh","ei","ej","ek"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":10,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["ed","sport_22x22-01"],["ee","adventure_22x22-01"],["ef","golf_22x22-01"],["eg","sport_22x22-01"],["eh","sport_22x22-01"],["ei","theatre_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":{"property":"b","type":"categorical","stops":[["ee","#085a30"],["ef","#1d4401"],["ed","#1d4401"],["eg","#1d4401"],["eh","#1d4401"],["ei","#663e20"],["ej","#67535d"],["ek","#1b5e20"]]},"text-halo-color":{"property":"b","type":"categorical","stops":[["ee","#fff"],["ef","#e9e9e9"],["eg","#e9e9e9"],["eh","#fff"],["ei","#fff"],["ed","#fff"],["ej","#fff"],["ek","#fff"]]},"text-halo-width":{"property":"b","type":"categorical","stops":[["ee",1],["ef",0.8],["eg",0.8],["eh",0.8],["ed",0.8],["ei",1],["ej",1],["ek",1]]}}},{"id":"admin5_label_sea","type":"symbol","source":"sea","source-layer":"t","minzoom":8,"filter":["all",["==","c","b"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[15,13],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"PilgrimPlaces1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","el","em","en","eo","ep","eq"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["el","buddhist_22x22-01"],["em","gurudwara_22x22-01"],["en","hindu_22x22-01"],["eo","islamic_22x22-01"],["ep","jain_22x22-01"],["eq","church_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#3F1B0F","text-halo-color":"#fff","text-halo-width":1}},{"id":"Residential1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ds"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#7a7971","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Health & Wellness1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","er"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hospital_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","es","et"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Admin5_label_sea","type":"symbol","source":"sea","source-layer":"t","minzoom":10,"filter":["all",["==","c","c"]],"layout":{"text-size":{"base":1,"stops":[[10,13],[14,14],[15,14],[16,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Bold"],"text-field":"{name_en}","text-max-width":7},"paint":{"text-color":"#8d8d8d","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"Nature3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","eu","ev"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-image":"park_22x22-01","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#1b5e20","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ew"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ex","ey"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Shopping1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ez","fa"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"market","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#525BCD","text-halo-color":"#fff","text-halo-width":1}},{"id":"Historical Places1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":7,"filter":["all",["==","$type","Point"],["in","b","fb","fc","fd","fe"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["fb","forts_22x22-01"],["fc","forts_22x22-01"],["fe","forts_22x22-01"],["fd","museums_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Transportation4_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ff"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"helipad_22x22-01","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","fg","fh","fi","fj"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["fg","amusement_22x22-01"],["fi","camera_22x22-01"],["fj","zoo_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":{"property":"b","type":"categorical","stops":[["fg","#663e20"],["fi","#085a30"],["fj","#1b5e20"],["fh","#1b5e20"]]},"text-halo-color":{"property":"b","type":"categorical","stops":[["fg","#e9e9e9"],["fi","#fff"],["fj","#fff"],["fh","#fff"]]},"text-halo-width":{"property":"b","type":"categorical","stops":[["fg",0.8],["fi",1],["fj",1],["fh",1]]}}},{"id":"Nature2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":14,"filter":["all",["==","$type","Point"],["in","b","fk","fl","fm","fn","fo","fp","fq","fr"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":8,"icon-image":{"property":"b","type":"categorical","stops":[["fq","beach4"]]},"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":{"property":"b","type":"categorical","stops":[["fp","#01579b"],["fl","#01579b"],["fr","#01579b"],["fo","#67535d"],["fn","#1b5e20"],["fk","#67535d"],["fm","#67535d"],["fq","#525BCD"]]},"text-halo-color":{"property":"b","type":"categorical","stops":[["fp","#fff"],["fl","#e9e9e9"],["fr","#e9e9e9"],["fo","#fff"],["fn","#e9e9e9"],["fk","#fff"],["fq","#fff"],["fm","#fff"]]},"text-halo-width":{"property":"b","type":"categorical","stops":[["fp",1],["fl",0.8],["fr",0.8],["fo",1],["fn",0.8],["fk",1],["fq",0.8],["fm",1]]}}},{"id":"Community_Services1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":7,"filter":["all",["==","$type","Point"],["==","b","fs"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":"college_22x22-01","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Nature1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":6,"filter":["all",["==","$type","Point"],["==","b","ft"]],"layout":{"text-size":{"base":1,"stops":[[6,12],[8,13],[12,14]]},"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"wildlife_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}","text-max-width":7},"paint":{"text-color":"#085a30","text-halo-color":"#085a30","text-halo-width":0.1}},{"id":"Transportation8_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":14,"filter":["all",["==","$type","Point"],["in","b","fu"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"bus_18x18-01","icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"poi_TRNMET_sea","type":"symbol","source":"sea","source-layer":"v","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","a"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-line-height":1,"icon-size":0.8,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"b","type":"categorical","stops":[["a","metro_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"Transportation3_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","fv"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"icon-image":"toll_22x22-01","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Transportation2_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","fw","fx","fy"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"railwaystn_new_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"wildlife_sea","type":"symbol","source":"sea","source-layer":"w","minzoom":6,"maxzoom":9,"filter":["all",["==","$type","Point"],["==","a","a"],["!=","b","a"]],"layout":{"text-size":{"base":1,"stops":[[6,12],[8,13],[12,14]]},"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"wildlife_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}","text-max-width":7},"paint":{"text-color":"#085a30","text-halo-color":"#085a30","text-halo-width":0.1}},{"id":"Admin2_label_sea","type":"symbol","source":"sea","source-layer":"t","minzoom":3,"filter":["all",["==","c","d"]],"layout":{"text-size":10,"text-allow-overlap":false,"text-letter-spacing":0.1,"icon-allow-overlap":true,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.5,"text-transform":"uppercase","text-anchor":"center","text-max-width":5},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.7],[5,0.7],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"admin4_label_sea","type":"symbol","source":"sea","source-layer":"t","minzoom":8,"filter":["all",["in","c","e","f"]],"layout":{"text-size":{"base":1,"stops":[[6,12],[8,14],[9,14],[10,15],[12,15],[16,15],[20,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-padding":50,"text-line-height":0.9},"paint":{"text-color":"#5a616d","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"admin4_other_label2_sea","type":"symbol","source":"sea","source-layer":"t","minzoom":3,"filter":["all",["in","c","g","h"]],"layout":{"text-size":13,"symbol-avoid-edges":true,"text-letter-spacing":0,"text-font":["Open Sans Regular"],"text-field":"{name_en}","text-padding":50,"text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"admin4_major_label2_sea","type":"symbol","source":"sea","source-layer":"t","minzoom":3,"filter":["all",["in","c","i","j"]],"layout":{"text-size":13,"symbol-avoid-edges":true,"text-letter-spacing":0,"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"Transportation1_sea","type":"symbol","source":"sea","source-layer":"r","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","fz","ga"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"icon-image":"airport-22","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"Admin3_label_sea","type":"symbol","source":"sea","source-layer":"t","minzoom":4,"filter":["all",["==","c","k"]],"layout":{"text-size":12,"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-padding":0,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.5,"text-anchor":"center","text-max-width":10},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"city_centre_cc_sea","type":"symbol","source":"sea","source-layer":"t","minzoom":4,"maxzoom":11,"filter":["all",["==","c","l"]],"layout":{"text-size":12,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"target_thick","icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.5,"text-anchor":"center","text-offset":[0,0.7]},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[11,1],[14,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"country_lbl_sea","type":"symbol","source":"sea","minzoom":1,"source-layer":"o","filter":["all",["!=","a","a"],["==","b","c"]],"layout":{"visibility":"none","text-field":"{c}","text-font":["Open Sans Medium"],"text-size":{"base":1,"stops":[[3,11],[4,12],[5,12],[10,15]]},"text-letter-spacing":0.1,"text-allow-overlap":false,"text-anchor":"center","text-transform":"uppercase","symbol-avoid-edges":false},"paint":{"text-color":"#000","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_city_asia","type":"symbol","source":"asia","source-layer":"place","minzoom":1,"filter":["all",["in","class","city","town"],["!=","name_en","Muzaffarabad"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,13],[8,14],[10,15]]},"symbol-avoid-edges":true,"text-letter-spacing":{"base":1,"stops":[[10,0],[14,0.1],[20,0.1]]},"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"place_village_asia","type":"symbol","source":"asia","source-layer":"place","minzoom":1,"filter":["all",["in","class","village"]],"layout":{"text-size":{"base":1,"stops":[[6,10],[8,14],[9,14],[10,15],[12,15],[16,15],[20,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-line-height":0.9},"paint":{"text-color":"#5a616d","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_statecapital_4_asia","type":"symbol","source":"asia","source-layer":"place","minzoom":1,"filter":["all",["==","capital",4],["!=","name_en","Muzaffarabad"]],"layout":{"text-size":{"base":1,"stops":[[3,10],[4,12],[5,14],[6,14],[8,15]]},"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-padding":0,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"place_Ccapital_2_asia","type":"symbol","source":"asia","source-layer":"place","minzoom":1,"filter":["all",["==","capital",2]],"layout":{"text-size":{"base":1,"stops":[[4,11],[5,12]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_fill","icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-offset":[0,0.6]},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"place_country_asia","type":"symbol","source":"asia","source-layer":"place","minzoom":1,"filter":["all",["==","class","country"]],"layout":{"text-size":{"base":1,"stops":[[2,8],[3,10],[4,12],[5,13],[8,16],[20,20]]},"text-allow-overlap":false,"text-transform":"uppercase","symbol-avoid-edges":false,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-letter-spacing":0.1,"text-anchor":"center","visibility":"visible","text-field":"{name_en}","text-max-width":12},"paint":{"text-color":"#000","text-opacity":{"base":1,"stops":[[2,1],[3,0.9],[4,0.8],[6,0.8],[10,0]]},"text-halo-color":"#FFF","text-halo-width":1}},{"id":"nature_reserves_names_australia","type":"symbol","source":"australia","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"text-size":{"base":1,"stops":[[10,12],[11,13],[12,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-padding":50,"text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#347352","text-opacity":1,"text-halo-color":"#fff","text-halo-width":0.8}},{"id":"river_names_australia","type":"symbol","source":"australia","source-layer":"waterway","minzoom":11,"filter":["all",["==","class","river"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"water_names_australia","type":"symbol","source":"australia","source-layer":"water","minzoom":9,"filter":["all",["in","class","water","reservoir"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"transportation_name_australia","type":"symbol","source":"australia","source-layer":"transportation_name","minzoom":7,"filter":["all",["in","ref_length",3,4,5]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20],[16,10]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-image":{"property":"ref_length","type":"categorical","stops":[[3,"motorway_3"],[4,"motorway_4"],[5,"motorway_5"]]},"icon-padding":60,"icon-size":0.5,"text-rotation-alignment":"viewport","text-field":"{ref}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"aerodrome_label_australia","type":"symbol","source":"australia","source-layer":"aerodrome_label","minzoom":9,"filter":["all",["in","class","international","public","regional","other","private"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"icon-image":"airport-22","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#055a88","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"major_road_name_australia","type":"symbol","source":"australia","source-layer":"transportation_name","minzoom":9,"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"place_State_australia","type":"symbol","source":"australia","source-layer":"place","minzoom":1,"filter":["all",["==","class","state"]],"layout":{"text-size":{"base":1,"stops":[[4,10],[5,12],[6,12]]},"text-allow-overlap":false,"text-letter-spacing":0.1,"icon-allow-overlap":true,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-offset":[0.5,0],"text-field":"{name_en}","icon-size":0.5,"text-transform":"uppercase","text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.7],[5,0.7],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"place_locality_australia","type":"symbol","source":"australia","source-layer":"place","minzoom":1,"filter":["all",["in","class","locality","suburb","hamlet","square","quarter","island","neighbourhood"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[15,13],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"peaks_australia","type":"symbol","source":"australia","source-layer":"mountain_peak","minzoom":7,"layout":{"text-size":10,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"triangle_outer","icon-allow-overlap":false,"text-line-height":1,"icon-size":0.8,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"House_No_australia","type":"symbol","source":"australia","source-layer":"house_address","minzoom":17,"layout":{"text-field":"{addr_housenumber}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":10},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"poi_all_australia","type":"symbol","source":"australia","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["!in","class","railway","stadium","park"],["in","subclass","artwork","arts_centre","gallery","water_park","bank","bar","casino","nightclub","pub","bicycle_parking","bicycle_rental","bus_stop","bus_station","cafe","camp_site","taxi","car_rental","driving_school","taxi","castle","cinema","university","college","dentist","nursing_home","doctors","clinic","dog_park","drinking_water","embassy","food_court","fast_food","ferry_terminal","fire_station","fuel","miniature_golf","golf_course","helipad","hospital","ice_cream","information","public_bookcase","library","motel","hostel","hotel","guest_house","water_park","fort","monument","peak","memorial","museum","pharmacy","picnic_site-site","place_of_worship","playground","police","post_office","prison","restaurant","school","theatre","toilets","townhall-hall","veterinary","volcano","zoo","atm","cave_entrance","bureau_de_change","bicycle_repair_station","car_wash","shelter","bowling_alley","sports_centre","archaeological_site","apartment","saddle","chalet","caravan_site","bbq","alpine_hut","wilderness_hut","sauna","recycling","hunting_stand","social_facility","boat_rental","shower","community_centre","courthouse","picnic_table","fishing","city_gate","public_bath","slipway","childcare","motorcycle_parking","bunker","biergarten","beach_resort","wayside_shrine","outdoor_seating","firepit","wayside_cross","vehicle_inspection","fountain","charging_station","viewpoint","parking","spring","traffic_signals","information","elevator","toll_booth","telephone","waterfall","marketplace","fitness_station","fitness_centre","internet_amenity_cafe"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":{"property":"subclass","type":"categorical","stops":[["artwork","art_22x22-01"],["arts_centre","art_22x22-01"],["gallery","art_22x22-01"],["water_park","amusement_22x22-01"],["bank","bank-22"],["bar","bar_22x22-01"],["casino","bar_22x22-01"],["nightclub","bar_22x22-01"],["pub","bar_22x22-01"],["bicycle_parking","parking_18x18-01"],["bicycle_rental","common2_brown"],["bus_stop","bus_18x18-01"],["bus_station","bus_18x18-01"],["cafe","coffee_22x22-01"],["camp_site","camera_22x22-01"],["taxi","common2_brown"],["car_rental","common2_brown"],["driving_school","common2_brown"],["castle","common2_brown"],["cinema","cinema_22x22-01"],["university","college_22x22-01"],["college","college_22x22-01"],["dentist","dentist-22"],["nursing_home","hospital_22x22-01"],["doctors","hospital_22x22-01"],["clinic","hospital_22x22-01"],["dog_park","common2_brown"],["drinking_water","common2_brown"],["embassy","embassy-22"],["food_court","fastfood_22x22-01"],["fast_food","fastfood_22x22-01"],["ferry_terminal","ferry_22x22-01"],["fire_station","fire-22"],["fuel","petrol_22x22-01"],["miniature_golf","golf_22x22-01"],["golf_course","golf_22x22-01"],["helipad","helipad_22x22-01"],["hospital","hospital_22x22-01"],["ice_cream","common2_brown"],["information","india_tourism"],["public_bookcase","library-22"],["library","library-22"],["motel","hotel_22x22-01"],["hostel","hotel_22x22-01"],["hotel","hotel_22x22-01"],["guest_house","hotel_22x22-01"],["fort","forts_22x22-01"],["monument","forts_22x22-01"],["peak","forts_22x22-01"],["memorial","museums_22x22-01"],["museum","museums_22x22-01"],["pharmacy","medical-22"],["picnic_site-site","camera_22x22-01"],["place_of_worship","common2_blue"],["playground","park_22x22-01"],["police","police-22"],["post_office","post-22"],["prison","police-22"],["restaurant","restaurant_22x22-01"],["school","school-22"],["theatre","theatre_22x22-01"],["toilets","public_utility"],["townhall-hall","common2_brown"],["veterinary","common2_brown"],["volcano","common2_brown"],["zoo","zoo_22x22-01"],["atm","atm"],["cave_entrance","common2_brown"],["bureau_de_change","common2_brown"],["bicycle_repair_station","common2_brown"],["car_wash","common2_brown"],["shelter","common2_brown"],["bowling_alley","common2_brown"],["sports_centre","common2_brown"],["archaeological_site","common2_brown"],["apartment","common2_brown"],["saddle","common2_brown"],["chalet","common2_brown"],["caravan_site","common2_brown"],["bbq","common2_brown"],["alpine_hut","common2_brown"],["wilderness_hut","common2_brown"],["sauna","common2_brown"],["recycling","common2_brown"],["hunting_stand","common2_brown"],["social_facility","common2_brown"],["boat_rental","common2_brown"],["shower","common2_brown"],["community_centre","common2_brown"],["courthouse","common2_brown"],["picnic_table","common2_brown"],["fishing","common2_brown"],["city_gate","common2_brown"],["public_bath","common2_brown"],["slipway","common2_brown"],["childcare","common2_brown"],["motorcycle_parking","parking_18x18-01"],["bunker","common2_brown"],["biergarten","common2_brown"],["beach_resort","common2_brown"],["wayside_shrine","common2_brown"],["outdoor_seating","common2_brown"],["firepit","common2_brown"],["wayside_cross","common2_brown"],["vehicle_inspection","common2_brown"],["fountain","common2_brown"],["charging_station","common2_brown"],["viewpoint","common2_brown"],["parking","parking_18x18-01"],["spring","common2_brown"],["traffic_signals","common2_brown"],["elevator","common2_brown"],["toll_booth","common2_brown"],["telephone","common2_brown"],["waterfall","common2_brown"],["marketplace","common2_brown"],["fitness_station","common2_brown"],["fitness_centre","common2_brown"],["internet_amenity_cafe","common2_brown"]]},"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"poi_stations_australia","type":"symbol","source":"australia","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["in","class","railway","stadium","park"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"class","type":"categorical","stops":[["railway","railwaystn_new_22x22-01"],["park","park_22x22-01"],["stadium","sport_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_city_australia","type":"symbol","source":"australia","source-layer":"place","minzoom":1,"filter":["all",["in","class","city","town"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,13],[8,14],[10,15]]},"symbol-avoid-edges":true,"text-letter-spacing":{"base":1,"stops":[[10,0],[14,0.1],[20,0.1]]},"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"place_village_australia","type":"symbol","source":"australia","source-layer":"place","minzoom":1,"filter":["all",["in","class","village"]],"layout":{"text-size":{"base":1,"stops":[[6,10],[8,14],[9,14],[10,15],[12,15],[16,15],[20,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-line-height":0.9},"paint":{"text-color":"#5a616d","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_statecapital_4_australia","type":"symbol","source":"australia","source-layer":"place","minzoom":1,"filter":["all",["==","capital",4]],"layout":{"text-size":{"base":1,"stops":[[3,10],[4,12],[5,14],[6,14],[8,15]]},"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-padding":0,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"place_Ccapital_2_australia","type":"symbol","source":"australia","source-layer":"place","minzoom":1,"filter":["all",["==","capital",2]],"layout":{"text-size":{"base":1,"stops":[[4,11],[5,12]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_fill","icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-offset":[0,0.6]},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"place_country_australia","type":"symbol","source":"australia","source-layer":"place","minzoom":1,"filter":["all",["==","class","country"]],"layout":{"text-size":{"base":1,"stops":[[2,8],[3,10],[4,12],[5,13],[8,16],[20,20]]},"text-allow-overlap":false,"text-transform":"uppercase","symbol-avoid-edges":false,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-letter-spacing":0.1,"text-anchor":"center","visibility":"visible","text-field":"{name_en}","text-max-width":12},"paint":{"text-color":"#000","text-opacity":{"base":1,"stops":[[2,1],[3,0.9],[4,0.8],[6,0.8],[10,0]]},"text-halo-color":"#FFF","text-halo-width":1}},{"id":"nature_reserves_names_africa","type":"symbol","source":"africa","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"text-size":{"base":1,"stops":[[10,12],[11,13],[12,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-padding":50,"text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#347352","text-opacity":1,"text-halo-color":"#fff","text-halo-width":0.8}},{"id":"river_names_africa","type":"symbol","source":"africa","source-layer":"waterway","minzoom":11,"filter":["all",["==","class","river"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"water_names_africa","type":"symbol","source":"africa","source-layer":"water","minzoom":9,"filter":["all",["in","class","water","reservoir"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"transportation_name_africa","type":"symbol","source":"africa","source-layer":"transportation_name","minzoom":7,"filter":["all",["in","ref_length",3,4,5]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20],[16,10]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-image":{"property":"ref_length","type":"categorical","stops":[[3,"motorway_3"],[4,"motorway_4"],[5,"motorway_5"]]},"icon-padding":60,"icon-size":0.5,"text-rotation-alignment":"viewport","text-field":"{ref}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"aerodrome_label_africa","type":"symbol","source":"africa","source-layer":"aerodrome_label","minzoom":9,"filter":["all",["in","class","international","public","regional","other","private"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"icon-image":"airport-22","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#055a88","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"major_road_name_africa","type":"symbol","source":"africa","source-layer":"transportation_name","minzoom":9,"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"place_State_africa","type":"symbol","source":"africa","source-layer":"place","minzoom":1,"filter":["all",["==","class","state"]],"layout":{"text-size":{"base":1,"stops":[[4,10],[5,12],[6,12]]},"text-allow-overlap":false,"text-letter-spacing":0.1,"icon-allow-overlap":true,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-offset":[0.5,0],"text-field":"{name_en}","icon-size":0.5,"text-transform":"uppercase","text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.7],[5,0.7],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"place_locality_africa","type":"symbol","source":"africa","source-layer":"place","minzoom":1,"filter":["all",["in","class","locality","suburb","hamlet","square","quarter","island","neighbourhood"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[15,13],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"peaks_africa","type":"symbol","source":"africa","source-layer":"mountain_peak","minzoom":7,"layout":{"text-size":10,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"triangle_outer","icon-allow-overlap":false,"text-line-height":1,"icon-size":0.8,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"House_No_africa","type":"symbol","source":"africa","source-layer":"house_address","minzoom":17,"layout":{"text-field":"{addr_housenumber}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":10},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"poi_all_africa","type":"symbol","source":"africa","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["!in","class","railway","stadium","park"],["in","subclass","artwork","arts_centre","gallery","water_park","bank","bar","casino","nightclub","pub","bicycle_parking","bicycle_rental","bus_stop","bus_station","cafe","camp_site","taxi","car_rental","driving_school","taxi","castle","cinema","university","college","dentist","nursing_home","doctors","clinic","dog_park","drinking_water","embassy","food_court","fast_food","ferry_terminal","fire_station","fuel","miniature_golf","golf_course","helipad","hospital","ice_cream","information","public_bookcase","library","motel","hostel","hotel","guest_house","water_park","fort","monument","peak","memorial","museum","pharmacy","picnic_site-site","place_of_worship","playground","police","post_office","prison","restaurant","school","theatre","toilets","townhall-hall","veterinary","volcano","zoo","atm","cave_entrance","bureau_de_change","bicycle_repair_station","car_wash","shelter","bowling_alley","sports_centre","archaeological_site","apartment","saddle","chalet","caravan_site","bbq","alpine_hut","wilderness_hut","sauna","recycling","hunting_stand","social_facility","boat_rental","shower","community_centre","courthouse","picnic_table","fishing","city_gate","public_bath","slipway","childcare","motorcycle_parking","bunker","biergarten","beach_resort","wayside_shrine","outdoor_seating","firepit","wayside_cross","vehicle_inspection","fountain","charging_station","viewpoint","parking","spring","traffic_signals","information","elevator","toll_booth","telephone","waterfall","marketplace","fitness_station","fitness_centre","internet_amenity_cafe"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":{"property":"subclass","type":"categorical","stops":[["artwork","art_22x22-01"],["arts_centre","art_22x22-01"],["gallery","art_22x22-01"],["water_park","amusement_22x22-01"],["bank","bank-22"],["bar","bar_22x22-01"],["casino","bar_22x22-01"],["nightclub","bar_22x22-01"],["pub","bar_22x22-01"],["bicycle_parking","parking_18x18-01"],["bicycle_rental","common2_brown"],["bus_stop","bus_18x18-01"],["bus_station","bus_18x18-01"],["cafe","coffee_22x22-01"],["camp_site","camera_22x22-01"],["taxi","common2_brown"],["car_rental","common2_brown"],["driving_school","common2_brown"],["castle","common2_brown"],["cinema","cinema_22x22-01"],["university","college_22x22-01"],["college","college_22x22-01"],["dentist","dentist-22"],["nursing_home","hospital_22x22-01"],["doctors","hospital_22x22-01"],["clinic","hospital_22x22-01"],["dog_park","common2_brown"],["drinking_water","common2_brown"],["embassy","embassy-22"],["food_court","fastfood_22x22-01"],["fast_food","fastfood_22x22-01"],["ferry_terminal","ferry_22x22-01"],["fire_station","fire-22"],["fuel","petrol_22x22-01"],["miniature_golf","golf_22x22-01"],["golf_course","golf_22x22-01"],["helipad","helipad_22x22-01"],["hospital","hospital_22x22-01"],["ice_cream","common2_brown"],["information","india_tourism"],["public_bookcase","library-22"],["library","library-22"],["motel","hotel_22x22-01"],["hostel","hotel_22x22-01"],["hotel","hotel_22x22-01"],["guest_house","hotel_22x22-01"],["fort","forts_22x22-01"],["monument","forts_22x22-01"],["peak","forts_22x22-01"],["memorial","museums_22x22-01"],["museum","museums_22x22-01"],["pharmacy","medical-22"],["picnic_site-site","camera_22x22-01"],["place_of_worship","common2_blue"],["playground","park_22x22-01"],["police","police-22"],["post_office","post-22"],["prison","police-22"],["restaurant","restaurant_22x22-01"],["school","school-22"],["theatre","theatre_22x22-01"],["toilets","public_utility"],["townhall-hall","common2_brown"],["veterinary","common2_brown"],["volcano","common2_brown"],["zoo","zoo_22x22-01"],["atm","atm"],["cave_entrance","common2_brown"],["bureau_de_change","common2_brown"],["bicycle_repair_station","common2_brown"],["car_wash","common2_brown"],["shelter","common2_brown"],["bowling_alley","common2_brown"],["sports_centre","common2_brown"],["archaeological_site","common2_brown"],["apartment","common2_brown"],["saddle","common2_brown"],["chalet","common2_brown"],["caravan_site","common2_brown"],["bbq","common2_brown"],["alpine_hut","common2_brown"],["wilderness_hut","common2_brown"],["sauna","common2_brown"],["recycling","common2_brown"],["hunting_stand","common2_brown"],["social_facility","common2_brown"],["boat_rental","common2_brown"],["shower","common2_brown"],["community_centre","common2_brown"],["courthouse","common2_brown"],["picnic_table","common2_brown"],["fishing","common2_brown"],["city_gate","common2_brown"],["public_bath","common2_brown"],["slipway","common2_brown"],["childcare","common2_brown"],["motorcycle_parking","parking_18x18-01"],["bunker","common2_brown"],["biergarten","common2_brown"],["beach_resort","common2_brown"],["wayside_shrine","common2_brown"],["outdoor_seating","common2_brown"],["firepit","common2_brown"],["wayside_cross","common2_brown"],["vehicle_inspection","common2_brown"],["fountain","common2_brown"],["charging_station","common2_brown"],["viewpoint","common2_brown"],["parking","parking_18x18-01"],["spring","common2_brown"],["traffic_signals","common2_brown"],["elevator","common2_brown"],["toll_booth","common2_brown"],["telephone","common2_brown"],["waterfall","common2_brown"],["marketplace","common2_brown"],["fitness_station","common2_brown"],["fitness_centre","common2_brown"],["internet_amenity_cafe","common2_brown"]]},"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"poi_stations_africa","type":"symbol","source":"africa","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["in","class","railway","stadium","park"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"class","type":"categorical","stops":[["railway","railwaystn_new_22x22-01"],["park","park_22x22-01"],["stadium","sport_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_city_africa","type":"symbol","source":"africa","source-layer":"place","minzoom":1,"filter":["all",["in","class","city","town"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,13],[8,14],[10,15]]},"symbol-avoid-edges":true,"text-letter-spacing":{"base":1,"stops":[[10,0],[14,0.1],[20,0.1]]},"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"place_village_africa","type":"symbol","source":"africa","source-layer":"place","minzoom":1,"filter":["all",["in","class","village"]],"layout":{"text-size":{"base":1,"stops":[[6,10],[8,14],[9,14],[10,15],[12,15],[16,15],[20,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-line-height":0.9},"paint":{"text-color":"#5a616d","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_statecapital_4_africa","type":"symbol","source":"africa","source-layer":"place","minzoom":1,"filter":["all",["==","capital",4]],"layout":{"text-size":{"base":1,"stops":[[3,10],[4,12],[5,14],[6,14],[8,15]]},"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-padding":0,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"place_Ccapital_2_africa","type":"symbol","source":"africa","source-layer":"place","minzoom":1,"filter":["all",["==","capital",2]],"layout":{"text-size":{"base":1,"stops":[[4,11],[5,12]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_fill","icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-offset":[0,0.6]},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"place_country_africa","type":"symbol","source":"africa","source-layer":"place","minzoom":1,"filter":["all",["==","class","country"]],"layout":{"text-size":{"base":1,"stops":[[2,8],[3,10],[4,12],[5,13],[8,16],[20,20]]},"text-allow-overlap":false,"text-transform":"uppercase","symbol-avoid-edges":false,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-letter-spacing":0.1,"text-anchor":"center","visibility":"visible","text-field":"{name_en}","text-max-width":12},"paint":{"text-color":"#000","text-opacity":{"base":1,"stops":[[2,1],[3,0.9],[4,0.8],[6,0.8],[10,0]]},"text-halo-color":"#FFF","text-halo-width":1}},{"id":"nature_reserves_names_south_america","type":"symbol","source":"south_america","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"text-size":{"base":1,"stops":[[10,12],[11,13],[12,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-padding":50,"text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#347352","text-opacity":1,"text-halo-color":"#fff","text-halo-width":0.8}},{"id":"river_names_south_america","type":"symbol","source":"south_america","source-layer":"waterway","minzoom":11,"filter":["all",["==","class","river"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"water_names_south_america","type":"symbol","source":"south_america","source-layer":"water","minzoom":9,"filter":["all",["in","class","water","reservoir"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"transportation_name_south_america","type":"symbol","source":"south_america","source-layer":"transportation_name","minzoom":7,"filter":["all",["in","ref_length",3,4,5]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20],[16,10]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-image":{"property":"ref_length","type":"categorical","stops":[[3,"motorway_3"],[4,"motorway_4"],[5,"motorway_5"]]},"icon-padding":60,"icon-size":0.5,"text-rotation-alignment":"viewport","text-field":"{ref}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"aerodrome_label_south_america","type":"symbol","source":"south_america","source-layer":"aerodrome_label","minzoom":9,"filter":["all",["in","class","international","public","regional","other","private"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"icon-image":"airport-22","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#055a88","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"major_road_name_south_america","type":"symbol","source":"south_america","source-layer":"transportation_name","minzoom":9,"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"place_State_south_america","type":"symbol","source":"south_america","source-layer":"place","minzoom":1,"filter":["all",["==","class","state"]],"layout":{"text-size":{"base":1,"stops":[[4,10],[5,12],[6,12]]},"text-allow-overlap":false,"text-letter-spacing":0.1,"icon-allow-overlap":true,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-offset":[0.5,0],"text-field":"{name_en}","icon-size":0.5,"text-transform":"uppercase","text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.7],[5,0.7],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"place_locality_south_america","type":"symbol","source":"south_america","source-layer":"place","minzoom":1,"filter":["all",["in","class","locality","suburb","hamlet","square","quarter","island","neighbourhood"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[15,13],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"peaks_south_america","type":"symbol","source":"south_america","source-layer":"mountain_peak","minzoom":7,"layout":{"text-size":10,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"triangle_outer","icon-allow-overlap":false,"text-line-height":1,"icon-size":0.8,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"House_No_south_america","type":"symbol","source":"south_america","source-layer":"house_address","minzoom":17,"layout":{"text-field":"{addr_housenumber}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":10},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"poi_all_south_america","type":"symbol","source":"south_america","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["!in","class","railway","stadium","park"],["in","subclass","artwork","arts_centre","gallery","water_park","bank","bar","casino","nightclub","pub","bicycle_parking","bicycle_rental","bus_stop","bus_station","cafe","camp_site","taxi","car_rental","driving_school","taxi","castle","cinema","university","college","dentist","nursing_home","doctors","clinic","dog_park","drinking_water","embassy","food_court","fast_food","ferry_terminal","fire_station","fuel","miniature_golf","golf_course","helipad","hospital","ice_cream","information","public_bookcase","library","motel","hostel","hotel","guest_house","water_park","fort","monument","peak","memorial","museum","pharmacy","picnic_site-site","place_of_worship","playground","police","post_office","prison","restaurant","school","theatre","toilets","townhall-hall","veterinary","volcano","zoo","atm","cave_entrance","bureau_de_change","bicycle_repair_station","car_wash","shelter","bowling_alley","sports_centre","archaeological_site","apartment","saddle","chalet","caravan_site","bbq","alpine_hut","wilderness_hut","sauna","recycling","hunting_stand","social_facility","boat_rental","shower","community_centre","courthouse","picnic_table","fishing","city_gate","public_bath","slipway","childcare","motorcycle_parking","bunker","biergarten","beach_resort","wayside_shrine","outdoor_seating","firepit","wayside_cross","vehicle_inspection","fountain","charging_station","viewpoint","parking","spring","traffic_signals","information","elevator","toll_booth","telephone","waterfall","marketplace","fitness_station","fitness_centre","internet_amenity_cafe"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":{"property":"subclass","type":"categorical","stops":[["artwork","art_22x22-01"],["arts_centre","art_22x22-01"],["gallery","art_22x22-01"],["water_park","amusement_22x22-01"],["bank","bank-22"],["bar","bar_22x22-01"],["casino","bar_22x22-01"],["nightclub","bar_22x22-01"],["pub","bar_22x22-01"],["bicycle_parking","parking_18x18-01"],["bicycle_rental","common2_brown"],["bus_stop","bus_18x18-01"],["bus_station","bus_18x18-01"],["cafe","coffee_22x22-01"],["camp_site","camera_22x22-01"],["taxi","common2_brown"],["car_rental","common2_brown"],["driving_school","common2_brown"],["castle","common2_brown"],["cinema","cinema_22x22-01"],["university","college_22x22-01"],["college","college_22x22-01"],["dentist","dentist-22"],["nursing_home","hospital_22x22-01"],["doctors","hospital_22x22-01"],["clinic","hospital_22x22-01"],["dog_park","common2_brown"],["drinking_water","common2_brown"],["embassy","embassy-22"],["food_court","fastfood_22x22-01"],["fast_food","fastfood_22x22-01"],["ferry_terminal","ferry_22x22-01"],["fire_station","fire-22"],["fuel","petrol_22x22-01"],["miniature_golf","golf_22x22-01"],["golf_course","golf_22x22-01"],["helipad","helipad_22x22-01"],["hospital","hospital_22x22-01"],["ice_cream","common2_brown"],["information","india_tourism"],["public_bookcase","library-22"],["library","library-22"],["motel","hotel_22x22-01"],["hostel","hotel_22x22-01"],["hotel","hotel_22x22-01"],["guest_house","hotel_22x22-01"],["fort","forts_22x22-01"],["monument","forts_22x22-01"],["peak","forts_22x22-01"],["memorial","museums_22x22-01"],["museum","museums_22x22-01"],["pharmacy","medical-22"],["picnic_site-site","camera_22x22-01"],["place_of_worship","common2_blue"],["playground","park_22x22-01"],["police","police-22"],["post_office","post-22"],["prison","police-22"],["restaurant","restaurant_22x22-01"],["school","school-22"],["theatre","theatre_22x22-01"],["toilets","public_utility"],["townhall-hall","common2_brown"],["veterinary","common2_brown"],["volcano","common2_brown"],["zoo","zoo_22x22-01"],["atm","atm"],["cave_entrance","common2_brown"],["bureau_de_change","common2_brown"],["bicycle_repair_station","common2_brown"],["car_wash","common2_brown"],["shelter","common2_brown"],["bowling_alley","common2_brown"],["sports_centre","common2_brown"],["archaeological_site","common2_brown"],["apartment","common2_brown"],["saddle","common2_brown"],["chalet","common2_brown"],["caravan_site","common2_brown"],["bbq","common2_brown"],["alpine_hut","common2_brown"],["wilderness_hut","common2_brown"],["sauna","common2_brown"],["recycling","common2_brown"],["hunting_stand","common2_brown"],["social_facility","common2_brown"],["boat_rental","common2_brown"],["shower","common2_brown"],["community_centre","common2_brown"],["courthouse","common2_brown"],["picnic_table","common2_brown"],["fishing","common2_brown"],["city_gate","common2_brown"],["public_bath","common2_brown"],["slipway","common2_brown"],["childcare","common2_brown"],["motorcycle_parking","parking_18x18-01"],["bunker","common2_brown"],["biergarten","common2_brown"],["beach_resort","common2_brown"],["wayside_shrine","common2_brown"],["outdoor_seating","common2_brown"],["firepit","common2_brown"],["wayside_cross","common2_brown"],["vehicle_inspection","common2_brown"],["fountain","common2_brown"],["charging_station","common2_brown"],["viewpoint","common2_brown"],["parking","parking_18x18-01"],["spring","common2_brown"],["traffic_signals","common2_brown"],["elevator","common2_brown"],["toll_booth","common2_brown"],["telephone","common2_brown"],["waterfall","common2_brown"],["marketplace","common2_brown"],["fitness_station","common2_brown"],["fitness_centre","common2_brown"],["internet_amenity_cafe","common2_brown"]]},"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"poi_stations_south_america","type":"symbol","source":"south_america","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["in","class","railway","stadium","park"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"class","type":"categorical","stops":[["railway","railwaystn_new_22x22-01"],["park","park_22x22-01"],["stadium","sport_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_city_south_america","type":"symbol","source":"south_america","source-layer":"place","minzoom":1,"filter":["all",["in","class","city","town"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,13],[8,14],[10,15]]},"symbol-avoid-edges":true,"text-letter-spacing":{"base":1,"stops":[[10,0],[14,0.1],[20,0.1]]},"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"place_village_south_america","type":"symbol","source":"south_america","source-layer":"place","minzoom":1,"filter":["all",["in","class","village"]],"layout":{"text-size":{"base":1,"stops":[[6,10],[8,14],[9,14],[10,15],[12,15],[16,15],[20,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-line-height":0.9},"paint":{"text-color":"#5a616d","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_statecapital_4_south_america","type":"symbol","source":"south_america","source-layer":"place","minzoom":1,"filter":["all",["==","capital",4]],"layout":{"text-size":{"base":1,"stops":[[3,10],[4,12],[5,14],[6,14],[8,15]]},"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-padding":0,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"place_Ccapital_2_south_america","type":"symbol","source":"south_america","source-layer":"place","minzoom":1,"filter":["all",["==","capital",2]],"layout":{"text-size":{"base":1,"stops":[[4,11],[5,12]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_fill","icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-offset":[0,0.6]},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"place_country_south_america","type":"symbol","source":"south_america","source-layer":"place","minzoom":1,"filter":["all",["==","class","country"]],"layout":{"text-size":{"base":1,"stops":[[2,8],[3,10],[4,12],[5,13],[8,16],[20,20]]},"text-allow-overlap":false,"text-transform":"uppercase","symbol-avoid-edges":false,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-letter-spacing":0.1,"text-anchor":"center","visibility":"visible","text-field":"{name_en}","text-max-width":12},"paint":{"text-color":"#000","text-opacity":{"base":1,"stops":[[2,1],[3,0.9],[4,0.8],[6,0.8],[10,0]]},"text-halo-color":"#FFF","text-halo-width":1}},{"id":"nature_reserves_names_north_america","type":"symbol","source":"north_america","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"text-size":{"base":1,"stops":[[10,12],[11,13],[12,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-padding":50,"text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#347352","text-opacity":1,"text-halo-color":"#fff","text-halo-width":0.8}},{"id":"river_names_north_america","type":"symbol","source":"north_america","source-layer":"waterway","minzoom":11,"filter":["all",["==","class","river"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"water_names_north_america","type":"symbol","source":"north_america","source-layer":"water","minzoom":9,"filter":["all",["in","class","water","reservoir"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"transportation_name_north_america","type":"symbol","source":"north_america","source-layer":"transportation_name","minzoom":7,"filter":["all",["in","ref_length",3,4,5]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20],[16,10]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-image":{"property":"ref_length","type":"categorical","stops":[[3,"motorway_3"],[4,"motorway_4"],[5,"motorway_5"]]},"icon-padding":60,"icon-size":0.5,"text-rotation-alignment":"viewport","text-field":"{ref}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"aerodrome_label_north_america","type":"symbol","source":"north_america","source-layer":"aerodrome_label","minzoom":9,"filter":["all",["in","class","international","public","regional","other","private"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"icon-image":"airport-22","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#055a88","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"major_road_name_north_america","type":"symbol","source":"north_america","source-layer":"transportation_name","minzoom":9,"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"place_State_north_america","type":"symbol","source":"north_america","source-layer":"place","minzoom":1,"filter":["all",["==","class","state"]],"layout":{"text-size":{"base":1,"stops":[[4,10],[5,12],[6,12]]},"text-allow-overlap":false,"text-letter-spacing":0.1,"icon-allow-overlap":true,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-offset":[0.5,0],"text-field":"{name_en}","icon-size":0.5,"text-transform":"uppercase","text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.7],[5,0.7],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"place_locality_north_america","type":"symbol","source":"north_america","source-layer":"place","minzoom":1,"filter":["all",["in","class","locality","suburb","hamlet","square","quarter","island","neighbourhood"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[15,13],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"peaks_north_america","type":"symbol","source":"north_america","source-layer":"mountain_peak","minzoom":7,"layout":{"text-size":10,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"triangle_outer","icon-allow-overlap":false,"text-line-height":1,"icon-size":0.8,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"House_No_north_america","type":"symbol","source":"north_america","source-layer":"house_address","minzoom":17,"layout":{"text-field":"{addr_housenumber}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":10},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"poi_all_north_america","type":"symbol","source":"north_america","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["!in","class","railway","stadium","park"],["in","subclass","artwork","arts_centre","gallery","water_park","bank","bar","casino","nightclub","pub","bicycle_parking","bicycle_rental","bus_stop","bus_station","cafe","camp_site","taxi","car_rental","driving_school","taxi","castle","cinema","university","college","dentist","nursing_home","doctors","clinic","dog_park","drinking_water","embassy","food_court","fast_food","ferry_terminal","fire_station","fuel","miniature_golf","golf_course","helipad","hospital","ice_cream","information","public_bookcase","library","motel","hostel","hotel","guest_house","water_park","fort","monument","peak","memorial","museum","pharmacy","picnic_site-site","place_of_worship","playground","police","post_office","prison","restaurant","school","theatre","toilets","townhall-hall","veterinary","volcano","zoo","atm","cave_entrance","bureau_de_change","bicycle_repair_station","car_wash","shelter","bowling_alley","sports_centre","archaeological_site","apartment","saddle","chalet","caravan_site","bbq","alpine_hut","wilderness_hut","sauna","recycling","hunting_stand","social_facility","boat_rental","shower","community_centre","courthouse","picnic_table","fishing","city_gate","public_bath","slipway","childcare","motorcycle_parking","bunker","biergarten","beach_resort","wayside_shrine","outdoor_seating","firepit","wayside_cross","vehicle_inspection","fountain","charging_station","viewpoint","parking","spring","traffic_signals","information","elevator","toll_booth","telephone","waterfall","marketplace","fitness_station","fitness_centre","internet_amenity_cafe"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":{"property":"subclass","type":"categorical","stops":[["artwork","art_22x22-01"],["arts_centre","art_22x22-01"],["gallery","art_22x22-01"],["water_park","amusement_22x22-01"],["bank","bank-22"],["bar","bar_22x22-01"],["casino","bar_22x22-01"],["nightclub","bar_22x22-01"],["pub","bar_22x22-01"],["bicycle_parking","parking_18x18-01"],["bicycle_rental","common2_brown"],["bus_stop","bus_18x18-01"],["bus_station","bus_18x18-01"],["cafe","coffee_22x22-01"],["camp_site","camera_22x22-01"],["taxi","common2_brown"],["car_rental","common2_brown"],["driving_school","common2_brown"],["castle","common2_brown"],["cinema","cinema_22x22-01"],["university","college_22x22-01"],["college","college_22x22-01"],["dentist","dentist-22"],["nursing_home","hospital_22x22-01"],["doctors","hospital_22x22-01"],["clinic","hospital_22x22-01"],["dog_park","common2_brown"],["drinking_water","common2_brown"],["embassy","embassy-22"],["food_court","fastfood_22x22-01"],["fast_food","fastfood_22x22-01"],["ferry_terminal","ferry_22x22-01"],["fire_station","fire-22"],["fuel","petrol_22x22-01"],["miniature_golf","golf_22x22-01"],["golf_course","golf_22x22-01"],["helipad","helipad_22x22-01"],["hospital","hospital_22x22-01"],["ice_cream","common2_brown"],["information","india_tourism"],["public_bookcase","library-22"],["library","library-22"],["motel","hotel_22x22-01"],["hostel","hotel_22x22-01"],["hotel","hotel_22x22-01"],["guest_house","hotel_22x22-01"],["fort","forts_22x22-01"],["monument","forts_22x22-01"],["peak","forts_22x22-01"],["memorial","museums_22x22-01"],["museum","museums_22x22-01"],["pharmacy","medical-22"],["picnic_site-site","camera_22x22-01"],["place_of_worship","common2_blue"],["playground","park_22x22-01"],["police","police-22"],["post_office","post-22"],["prison","police-22"],["restaurant","restaurant_22x22-01"],["school","school-22"],["theatre","theatre_22x22-01"],["toilets","public_utility"],["townhall-hall","common2_brown"],["veterinary","common2_brown"],["volcano","common2_brown"],["zoo","zoo_22x22-01"],["atm","atm"],["cave_entrance","common2_brown"],["bureau_de_change","common2_brown"],["bicycle_repair_station","common2_brown"],["car_wash","common2_brown"],["shelter","common2_brown"],["bowling_alley","common2_brown"],["sports_centre","common2_brown"],["archaeological_site","common2_brown"],["apartment","common2_brown"],["saddle","common2_brown"],["chalet","common2_brown"],["caravan_site","common2_brown"],["bbq","common2_brown"],["alpine_hut","common2_brown"],["wilderness_hut","common2_brown"],["sauna","common2_brown"],["recycling","common2_brown"],["hunting_stand","common2_brown"],["social_facility","common2_brown"],["boat_rental","common2_brown"],["shower","common2_brown"],["community_centre","common2_brown"],["courthouse","common2_brown"],["picnic_table","common2_brown"],["fishing","common2_brown"],["city_gate","common2_brown"],["public_bath","common2_brown"],["slipway","common2_brown"],["childcare","common2_brown"],["motorcycle_parking","parking_18x18-01"],["bunker","common2_brown"],["biergarten","common2_brown"],["beach_resort","common2_brown"],["wayside_shrine","common2_brown"],["outdoor_seating","common2_brown"],["firepit","common2_brown"],["wayside_cross","common2_brown"],["vehicle_inspection","common2_brown"],["fountain","common2_brown"],["charging_station","common2_brown"],["viewpoint","common2_brown"],["parking","parking_18x18-01"],["spring","common2_brown"],["traffic_signals","common2_brown"],["elevator","common2_brown"],["toll_booth","common2_brown"],["telephone","common2_brown"],["waterfall","common2_brown"],["marketplace","common2_brown"],["fitness_station","common2_brown"],["fitness_centre","common2_brown"],["internet_amenity_cafe","common2_brown"]]},"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"poi_stations_north_america","type":"symbol","source":"north_america","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["in","class","railway","stadium","park"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"class","type":"categorical","stops":[["railway","railwaystn_new_22x22-01"],["park","park_22x22-01"],["stadium","sport_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_city_north_america","type":"symbol","source":"north_america","source-layer":"place","minzoom":1,"filter":["all",["in","class","city","town"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,13],[8,14],[10,15]]},"symbol-avoid-edges":true,"text-letter-spacing":{"base":1,"stops":[[10,0],[14,0.1],[20,0.1]]},"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"place_village_north_america","type":"symbol","source":"north_america","source-layer":"place","minzoom":1,"filter":["all",["in","class","village"]],"layout":{"text-size":{"base":1,"stops":[[6,10],[8,14],[9,14],[10,15],[12,15],[16,15],[20,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-line-height":0.9},"paint":{"text-color":"#5a616d","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_statecapital_4_north_america","type":"symbol","source":"north_america","source-layer":"place","minzoom":1,"filter":["all",["==","capital",4]],"layout":{"text-size":{"base":1,"stops":[[3,10],[4,12],[5,14],[6,14],[8,15]]},"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-padding":0,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-max-width":10},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"place_Ccapital_2_north_america","type":"symbol","source":"north_america","source-layer":"place","minzoom":1,"filter":["all",["==","capital",2]],"layout":{"text-size":{"base":1,"stops":[[4,11],[5,12]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_fill","icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-offset":[0,0.6]},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"place_country_north_america","type":"symbol","source":"north_america","source-layer":"place","minzoom":1,"filter":["all",["==","class","country"]],"layout":{"text-size":{"base":1,"stops":[[2,8],[3,10],[4,12],[5,13],[8,16],[20,20]]},"text-allow-overlap":false,"text-transform":"uppercase","symbol-avoid-edges":false,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-letter-spacing":0.1,"text-anchor":"center","visibility":"visible","text-field":"{name_en}","text-max-width":12},"paint":{"text-color":"#000","text-opacity":{"base":1,"stops":[[2,1],[3,0.9],[4,0.8],[6,0.8],[10,0]]},"text-halo-color":"#FFF","text-halo-width":1}},{"id":"nature_reserves_names_europe","type":"symbol","source":"europe","source-layer":"park","minzoom":1,"filter":["all",["!=","boundary","protected_area"]],"layout":{"text-size":{"base":1,"stops":[[10,12],[11,13],[12,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-padding":50,"text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#347352","text-opacity":1,"text-halo-color":"#fff","text-halo-width":0.8}},{"id":"river_names_europe","type":"symbol","source":"europe","source-layer":"waterway","minzoom":11,"filter":["all",["==","class","river"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"water_names_europe","type":"symbol","source":"europe","source-layer":"water","minzoom":9,"filter":["all",["in","class","water","reservoir"]],"layout":{"visibility":"visible","text-field":"{name_en}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"transportation_name_europe","type":"symbol","source":"europe","source-layer":"transportation_name","minzoom":7,"filter":["all",["in","ref_length",3,4,5]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20],[16,10]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-image":{"property":"ref_length","type":"categorical","stops":[[3,"motorway_3"],[4,"motorway_4"],[5,"motorway_5"]]},"icon-padding":60,"icon-size":0.5,"text-rotation-alignment":"viewport","text-field":"{ref}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"aerodrome_label_europe","type":"symbol","source":"europe","source-layer":"aerodrome_label","minzoom":9,"filter":["all",["in","class","international","public","regional","other","private"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"icon-image":"airport-22","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#055a88","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"major_road_name_europe","type":"symbol","source":"europe","source-layer":"transportation_name","minzoom":9,"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{name_en}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"place_State_europe","type":"symbol","source":"europe","source-layer":"place","minzoom":1,"filter":["all",["==","class","state"]],"layout":{"text-size":{"base":1,"stops":[[4,10],[5,12],[6,12]]},"text-allow-overlap":false,"text-letter-spacing":0.1,"icon-allow-overlap":true,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-offset":[0.5,0],"text-field":"{name_en}","icon-size":0.5,"text-transform":"uppercase","text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.7],[5,0.7],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"place_locality_europe","type":"symbol","source":"europe","source-layer":"place","minzoom":1,"filter":["all",["in","class","locality","suburb","hamlet","square","quarter","island","neighbourhood"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[15,13],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"peaks_europe","type":"symbol","source":"europe","source-layer":"mountain_peak","minzoom":7,"layout":{"text-size":10,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"triangle_outer","icon-allow-overlap":false,"text-line-height":1,"icon-size":0.8,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"House_No_europe","type":"symbol","source":"europe","source-layer":"house_address","minzoom":17,"layout":{"text-field":"{addr_housenumber}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":10},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"poi_all_europe","type":"symbol","source":"europe","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["!in","class","railway","stadium","park"],["in","subclass","artwork","arts_centre","gallery","water_park","bank","bar","casino","nightclub","pub","bicycle_parking","bicycle_rental","bus_stop","bus_station","cafe","camp_site","taxi","car_rental","driving_school","taxi","castle","cinema","university","college","dentist","nursing_home","doctors","clinic","dog_park","drinking_water","embassy","food_court","fast_food","ferry_terminal","fire_station","fuel","miniature_golf","golf_course","helipad","hospital","ice_cream","information","public_bookcase","library","motel","hostel","hotel","guest_house","water_park","fort","monument","peak","memorial","museum","pharmacy","picnic_site-site","place_of_worship","playground","police","post_office","prison","restaurant","school","theatre","toilets","townhall-hall","veterinary","volcano","zoo","atm","cave_entrance","bureau_de_change","bicycle_repair_station","car_wash","shelter","bowling_alley","sports_centre","archaeological_site","apartment","saddle","chalet","caravan_site","bbq","alpine_hut","wilderness_hut","sauna","recycling","hunting_stand","social_facility","boat_rental","shower","community_centre","courthouse","picnic_table","fishing","city_gate","public_bath","slipway","childcare","motorcycle_parking","bunker","biergarten","beach_resort","wayside_shrine","outdoor_seating","firepit","wayside_cross","vehicle_inspection","fountain","charging_station","viewpoint","parking","spring","traffic_signals","information","elevator","toll_booth","telephone","waterfall","marketplace","fitness_station","fitness_centre","internet_amenity_cafe"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":{"property":"subclass","type":"categorical","stops":[["artwork","art_22x22-01"],["arts_centre","art_22x22-01"],["gallery","art_22x22-01"],["water_park","amusement_22x22-01"],["bank","bank-22"],["bar","bar_22x22-01"],["casino","bar_22x22-01"],["nightclub","bar_22x22-01"],["pub","bar_22x22-01"],["bicycle_parking","parking_18x18-01"],["bicycle_rental","common2_brown"],["bus_stop","bus_18x18-01"],["bus_station","bus_18x18-01"],["cafe","coffee_22x22-01"],["camp_site","camera_22x22-01"],["taxi","common2_brown"],["car_rental","common2_brown"],["driving_school","common2_brown"],["castle","common2_brown"],["cinema","cinema_22x22-01"],["university","college_22x22-01"],["college","college_22x22-01"],["dentist","dentist-22"],["nursing_home","hospital_22x22-01"],["doctors","hospital_22x22-01"],["clinic","hospital_22x22-01"],["dog_park","common2_brown"],["drinking_water","common2_brown"],["embassy","embassy-22"],["food_court","fastfood_22x22-01"],["fast_food","fastfood_22x22-01"],["ferry_terminal","ferry_22x22-01"],["fire_station","fire-22"],["fuel","petrol_22x22-01"],["miniature_golf","golf_22x22-01"],["golf_course","golf_22x22-01"],["helipad","helipad_22x22-01"],["hospital","hospital_22x22-01"],["ice_cream","common2_brown"],["information","india_tourism"],["public_bookcase","library-22"],["library","library-22"],["motel","hotel_22x22-01"],["hostel","hotel_22x22-01"],["hotel","hotel_22x22-01"],["guest_house","hotel_22x22-01"],["fort","forts_22x22-01"],["monument","forts_22x22-01"],["peak","forts_22x22-01"],["memorial","museums_22x22-01"],["museum","museums_22x22-01"],["pharmacy","medical-22"],["picnic_site-site","camera_22x22-01"],["place_of_worship","common2_blue"],["playground","park_22x22-01"],["police","police-22"],["post_office","post-22"],["prison","police-22"],["restaurant","restaurant_22x22-01"],["school","school-22"],["theatre","theatre_22x22-01"],["toilets","public_utility"],["townhall-hall","common2_brown"],["veterinary","common2_brown"],["volcano","common2_brown"],["zoo","zoo_22x22-01"],["atm","atm"],["cave_entrance","common2_brown"],["bureau_de_change","common2_brown"],["bicycle_repair_station","common2_brown"],["car_wash","common2_brown"],["shelter","common2_brown"],["bowling_alley","common2_brown"],["sports_centre","common2_brown"],["archaeological_site","common2_brown"],["apartment","common2_brown"],["saddle","common2_brown"],["chalet","common2_brown"],["caravan_site","common2_brown"],["bbq","common2_brown"],["alpine_hut","common2_brown"],["wilderness_hut","common2_brown"],["sauna","common2_brown"],["recycling","common2_brown"],["hunting_stand","common2_brown"],["social_facility","common2_brown"],["boat_rental","common2_brown"],["shower","common2_brown"],["community_centre","common2_brown"],["courthouse","common2_brown"],["picnic_table","common2_brown"],["fishing","common2_brown"],["city_gate","common2_brown"],["public_bath","common2_brown"],["slipway","common2_brown"],["childcare","common2_brown"],["motorcycle_parking","parking_18x18-01"],["bunker","common2_brown"],["biergarten","common2_brown"],["beach_resort","common2_brown"],["wayside_shrine","common2_brown"],["outdoor_seating","common2_brown"],["firepit","common2_brown"],["wayside_cross","common2_brown"],["vehicle_inspection","common2_brown"],["fountain","common2_brown"],["charging_station","common2_brown"],["viewpoint","common2_brown"],["parking","parking_18x18-01"],["spring","common2_brown"],["traffic_signals","common2_brown"],["elevator","common2_brown"],["toll_booth","common2_brown"],["telephone","common2_brown"],["waterfall","common2_brown"],["marketplace","common2_brown"],["fitness_station","common2_brown"],["fitness_centre","common2_brown"],["internet_amenity_cafe","common2_brown"]]},"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"poi_stations_europe","type":"symbol","source":"europe","source-layer":"poi","minzoom":9,"filter":["all",["==","$type","Point"],["in","class","railway","stadium","park"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-line-height":1,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"class","type":"categorical","stops":[["railway","railwaystn_new_22x22-01"],["park","park_22x22-01"],["stadium","sport_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{name_en}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_city_europe","type":"symbol","source":"europe","source-layer":"place","minzoom":1,"filter":["all",["in","class","city","town"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,13],[8,14],[10,15]]},"symbol-avoid-edges":true,"text-letter-spacing":{"base":1,"stops":[[10,0],[14,0.1],[20,0.1]]},"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"place_village_europe","type":"symbol","source":"europe","source-layer":"place","minzoom":1,"filter":["all",["in","class","village"]],"layout":{"text-size":{"base":1,"stops":[[6,10],[8,14],[9,14],[10,15],[12,15],[16,15],[20,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-line-height":0.9},"paint":{"text-color":"#5a616d","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"place_statecapital_4_europe","type":"symbol","source":"europe","source-layer":"place","minzoom":1,"filter":["all",["==","capital",4]],"layout":{"text-size":{"base":1,"stops":[[3,10],[4,12],[5,14],[6,14],[8,15]]},"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-padding":0,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"place_Ccapital_2_europe","type":"symbol","source":"europe","source-layer":"place","minzoom":1,"filter":["all",["==","capital",2]],"layout":{"text-size":{"base":1,"stops":[[4,11],[5,12]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_fill","icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.6,"text-anchor":"center","text-offset":[0,0.6]},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"place_country_europe","type":"symbol","source":"europe","source-layer":"place","minzoom":1,"filter":["all",["==","class","country"]],"layout":{"text-size":{"base":1,"stops":[[2,8],[3,10],[4,12],[5,13],[8,16],[20,20]]},"text-allow-overlap":false,"text-transform":"uppercase","symbol-avoid-edges":false,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-letter-spacing":0.1,"text-anchor":"center","visibility":"visible","text-field":"{name_en}","text-max-width":12},"paint":{"text-color":"#000","text-opacity":{"base":1,"stops":[[2,1],[3,0.9],[4,0.8],[6,0.8],[10,0]]},"text-halo-color":"#FFF","text-halo-width":1}},{"id":"ocean_fill_original","type":"fill","source":"maplayout","source-layer":"a","minzoom":1,"maxzoom":4,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"landuse_green_base green","type":"fill","source":"maplayout","source-layer":"c","minzoom":3,"filter":["all",["!=","a","a"],["==","b","a"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#bde2a1","fill-antialias":false,"fill-opacity":1}},{"id":"city_area","type":"fill","source":"maplayout","source-layer":"d","minzoom":8,"layout":{"visibility":"visible"},"paint":{"fill-color":"#dfdfdf","fill-opacity":1}},{"id":"landuse_green_other","type":"fill","source":"maplayout","source-layer":"c","minzoom":3,"filter":["all",["in","c","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn","bo"],["!=","a","a"],["!=","b","a"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"property":"c","type":"categorical","stops":[["a","#bde2a1"],["n","#bde2a1"],["b","#bde2a1"],["c","#f1e9d7"],["d","#bde2a1"],["e","#bde2a1"],["f","#bde2a1"],["g","#bde2a1"],["h","#bde2a1"],["i","#bde2a1"],["j","#bde2a1"],["k","#bde2a1"],["l","#DEC0DE"],["m","#aae08f"],["o","#bde2a1"],["p","#bde2a1"],["q","#b2e39a"],["r","#bde2a1"],["s","#bde2a1"],["t","#bde2a1"],["u","#c3fc98"],["v","#faf2c7"],["w","#faf2c7"],["x","#af9cb0"],["y","#DEC0DE"],["z","#DEC0DE"],["ba","#DEC0DE"],["bb","#DEC0DE"],["bc","#DEC0DE"],["bd","#b09f9f"],["be","#EC8080"],["bf","#FFE5B4"],["bg","#FFE5B4"],["bh","#FFE5B4"],["bi","#FFE5B4"],["bj","#FFE5B4"],["bk","#FFE5B4"],["bl","#e5ab60"],["bm","#fff"],["bn","#899795"],["bo","#EC8080"]]},"fill-antialias":false,"fill-opacity":{"property":"c","type":"categorical","stops":[["t",0.2],["n",1],["u",0.2],["v",0.7],["c",0.5],["j",1],["w",0.7],["m",1],["x",0.3],["y",0.3],["z",0.3],["ba",0.3],["bb",0.3],["bc",0.3],["bd",0.3],["be",0.2],["bf",0.7],["bg",0.7],["bh",0.7],["bi",0.7],["bj",0.7],["bk",0.7],["l",0.7],["bl",0.3],["bm",0.3],["bn",0.2],["bo",0.1]]}}},{"id":"landuse_Protected_Area","type":"fill","source":"maplayout","source-layer":"c","minzoom":3,"filter":["all",["==","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#aae08f","fill-antialias":false,"fill-opacity":1}},{"id":"waterway_fill","type":"fill","source":"maplayout","source-layer":"e","minzoom":3,"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"Airway fill","type":"fill","source":"maplayout","source-layer":"f","minzoom":7,"filter":["all",["in","a","a","b","c"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"property":"a","type":"categorical","stops":[["a","#999"],["b","#999"],["c","#777"]]},"fill-antialias":false,"fill-opacity":0.2}},{"id":"water_region_fill","type":"fill","source":"maplayout","source-layer":"g","minzoom":3,"filter":["all",["!in","a","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#99cdfe","fill-antialias":true,"fill-opacity":1}},{"id":"Landuse_salt_region","type":"fill","source":"maplayout","source-layer":"g","minzoom":7,"filter":["all",["==","a","a"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#D4D7DB","fill-antialias":false,"fill-opacity":1}},{"id":"Landuse_mud_region","type":"fill","source":"maplayout","source-layer":"g","minzoom":7,"filter":["all",["==","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-color":"#b29d81","fill-antialias":false,"fill-opacity":0.5}},{"id":"undgrd_pedestrain_fill","type":"line","source":"maplayout","source-layer":"h","minzoom":15,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":1}},{"id":"undgrd_primary_casing","type":"line","source":"maplayout","source-layer":"h","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"undgrd_primary_fill","type":"line","source":"maplayout","source-layer":"h","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,1],[15,2],[16,4],[17,5],[18,6],[19,7]]}}},{"id":"undgrd_arterial_casing","type":"line","source":"maplayout","source-layer":"h","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"undgrd_arterial_fill","type":"line","source":"maplayout","source-layer":"h","minzoom":8,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"undgrd_motorway_casing_DHY","type":"line","source":"maplayout","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,2],[8,2],[9,2],[10,2.5],[11,3],[12,4.5],[13,4.5],[14,5.5],[15,7],[16,9],[17,10],[18,11],[19,12]]}}},{"id":"undgrd_motorway_fill_DHY","type":"line","source":"maplayout","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#fff7d7"],[10,"#fff7d7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,1],[8,1],[9,1],[10,1],[11,2],[12,2.5],[13,3],[14,3.5],[15,4],[16,7],[17,8],[18,9],[19,10]]}}},{"id":"undgrd_motorway_casing","type":"line","source":"maplayout","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"undgrd_motorway_fill","type":"line","source":"maplayout","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"undgrd_limited_casing","type":"line","source":"maplayout","source-layer":"h","minzoom":14,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],["==","PUBVSPVT",1],["!in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":"butt"},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,0.7],[15,1],[16,1.2],[17,1.8],[18,2.5],[19,3]]}}},{"id":"undgrd_highway_casing","type":"line","source":"maplayout","source-layer":"h","minzoom":7,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"undgrd_highway_fill","type":"line","source":"maplayout","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"tunnel_fill","type":"line","source":"maplayout","source-layer":"h","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["==","c","c"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#d4ac6a","line-opacity":1,"line-width":{"base":1,"stops":[[11,2],[12,2],[13,3],[14,3],[15,4],[16,7],[17,8],[18,10],[19,12]]}}},{"id":"undgrd_UC_offset1","type":"line","source":"maplayout","source-layer":"h","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"undgrd_UC_offset2","type":"line","source":"maplayout","source-layer":"h","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"railroad_service_casing","type":"line","source":"maplayout","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["in","a","a","b"],["==","b","a"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":1,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"railroad_service_fill","type":"line","source":"maplayout","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["in","a","a","b"],["==","b","a"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#e5e5e5","line-opacity":1,"line-width":{"base":1,"stops":[[10,1.5],[11,1],[12,1],[13,1.2],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"railroad_casing","type":"line","source":"maplayout","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","a","a"],["!in","b","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#c4c4c4","line-opacity":1,"line-width":{"base":1,"stops":[[10,2],[11,2],[12,2.5],[13,3],[14,4],[15,5],[16,5.5],[17,5.5],[18,5.5],[19,5.5]]}}},{"id":"railroad_fill","type":"line","source":"maplayout","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","a","a"],["!in","b","a","b"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#999","line-opacity":1,"line-dasharray":[3,3],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,1],[13,1.3],[14,1.5],[15,1.7],[16,2],[17,3],[18,4],[19,4]]}}},{"id":"tertiary_pedestrain_fill","type":"line","source":"maplayout","source-layer":"j","minzoom":14,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[1,2,1,2],"line-opacity":1,"line-width":1.2}},{"id":"tertiary_casing","type":"line","source":"maplayout","source-layer":"j","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,0],[14,3],[15,3],[16,3.5],[17,7],[18,8],[19,9]]}}},{"id":"tertiary_fill","type":"line","source":"maplayout","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["in","d","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,2],[15,2],[16,3],[17,6],[18,7],[19,8]]}}},{"id":"tertiary_limited_casing","type":"line","source":"maplayout","source-layer":"j","minzoom":14,"filter":["all",["==","$type","LineString"],["in","d","c","d","e","f","g","a","b"],["==","PUBVSPVT",1],["!in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,0.7],[15,1],[16,1.2],[17,1.8],[18,2.5],[19,3]]}}},{"id":"tertiary_UC_offset1","type":"line","source":"maplayout","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","c","d","e","f","g","a","b"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"tertiary_UC_offset2","type":"line","source":"maplayout","source-layer":"j","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","c","d","e","f","g","a","b"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"secondary_pedestrain_fill","type":"line","source":"maplayout","source-layer":"k","minzoom":14,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[1,2,1,2],"line-opacity":1,"line-width":1.2}},{"id":"ferry_route2","type":"line","source":"maplayout","source-layer":"k","minzoom":1,"filter":["all",["==","$type","LineString"],["==","b","a"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#53adc1","line-dasharray":[4,4],"line-opacity":1,"line-width":1}},{"id":"secondary_casing","type":"line","source":"maplayout","source-layer":"k","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b","c"],["==","d","a"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,0],[14,1],[15,3],[16,3.5],[17,7],[18,8],[19,9]]}}},{"id":"secondary_fill","type":"line","source":"maplayout","source-layer":"k","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b","c"],["==","d","a"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,1],[15,2],[16,3],[17,6],[18,7],[19,8]]}}},{"id":"secondary_limited_casing","type":"line","source":"maplayout","source-layer":"k","minzoom":14,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],["==","PUBVSPVT",1],["!in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,0.7],[15,1],[16,1.2],[17,1.8],[18,2.5],[19,3]]}}},{"id":"Bicycle_track","type":"line","source":"maplayout","source-layer":"k","minzoom":10,"interactive":true,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-opacity":0.7,"line-width":2}},{"id":"secondary_UC_offset1","type":"line","source":"maplayout","source-layer":"k","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"secondary_UC_offset2","type":"line","source":"maplayout","source-layer":"k","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","b","c","d","e","f","a"],[">=","e",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"pedestrain_fill","type":"line","source":"maplayout","source-layer":"l","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-dasharray":[2,2],"line-opacity":1,"line-width":2}},{"id":"ferry_route1","type":"line","source":"maplayout","source-layer":"l","minzoom":1,"filter":["all",["==","$type","LineString"],["in","b","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#53adc1","line-dasharray":[4,4],"line-opacity":1,"line-width":1}},{"id":"primary_casing","type":"line","source":"maplayout","source-layer":"l","minzoom":13,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b"],["in","d","a","b"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"primary_fill","type":"line","source":"maplayout","source-layer":"l","minzoom":12,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b"],["in","d","a","b"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[13,1.5],[14,3],[15,4],[16,5],[17,6],[18,7],[19,8]]}}},{"id":"arterial_casing","type":"line","source":"maplayout","source-layer":"l","minzoom":10,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b"],["in","d","c","d"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"arterial_fill","type":"line","source":"maplayout","source-layer":"l","minzoom":8,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b"],["in","d","c","d"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"motorway_casing_DHY","type":"line","source":"maplayout","source-layer":"l","minzoom":5,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,2],[8,2],[9,2],[10,2.5],[11,3],[12,4.5],[13,4.5],[14,5.5],[15,7],[16,9],[17,10],[18,11],[19,12]]}}},{"id":"motorway_fill_DHY","type":"line","source":"maplayout","source-layer":"l","minzoom":5,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#fff7d7"],[10,"#fff7d7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,1],[8,1],[9,1],[10,1],[11,2],[12,2.5],[13,3],[14,3.5],[15,4],[16,7],[17,8],[18,9],[19,10]]}}},{"id":"motorway_casing","type":"line","source":"maplayout","source-layer":"l","minzoom":5,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b"],["in","d","e","f"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#d0c2b7"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"motorway_fill","type":"line","source":"maplayout","source-layer":"l","minzoom":5,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["!in","c","a","b"],["in","d","e","f"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"limited_roads_casing","type":"line","source":"maplayout","source-layer":"l","minzoom":14,"filter":["all",["==","$type","LineString"],["!in","b","a","b"],["in","d","e","f","c","d","a","b"],["==","PUBVSPVT",1],["!in","c","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,0.7],[15,1],[16,1.2],[17,1.8],[18,2.5],[19,3]]}}},{"id":"highway_casing","type":"line","source":"maplayout","source-layer":"l","minzoom":7,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","f","a"],["in","d","e","f"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"highway_fill","type":"line","source":"maplayout","source-layer":"l","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","a","b"],["==","f","a"],["in","d","e","f"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,4],[14,4.4],[15,4.8],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"tunnel_fill_0","type":"line","source":"maplayout","source-layer":"l","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["==","c","c"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#d4ac6a","line-opacity":1,"line-width":{"base":1,"stops":[[11,2],[12,2],[13,3],[14,3],[15,4],[16,7],[17,8],[18,10],[19,12]]}}},{"id":"UC_offset1","type":"line","source":"maplayout","source-layer":"l","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","e","f","c","d","a","b"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"UC_offset2","type":"line","source":"maplayout","source-layer":"l","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","e","f","c","d","a","b"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"elevated_Bicycle_track","type":"line","source":"maplayout","source-layer":"m","minzoom":10,"interactive":true,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","a"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#8aad71","line-opacity":0.7,"line-width":2}},{"id":"elevated_primary_casing","type":"line","source":"maplayout","source-layer":"m","minzoom":13,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c","a"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":"#d0c2b7","line-opacity":1,"line-width":{"base":1,"stops":[[13,2],[14,4],[15,4.5],[16,6],[17,7],[18,8],[19,9]]}}},{"id":"elevated_primary_fill","type":"line","source":"maplayout","source-layer":"m","minzoom":12,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c","a"],["in","d","a","b","c"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#fff","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,1],[15,2],[16,4],[17,5],[18,6],[19,7]]}}},{"id":"elevated_arterial_casing","type":"line","source":"maplayout","source-layer":"m","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"miter","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#e4dcd6"],[8,"#d0c2b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,0.5],[9,0.5],[10,2],[11,2],[12,3],[13,4.5],[14,5],[15,7],[16,9],[17,11],[18,12],[19,13]]}}},{"id":"elevated_arterial_fill","type":"line","source":"maplayout","source-layer":"m","minzoom":8,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","d","e"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[8,"#fff1b7"],[10,"#fff"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1.5],[11,1.5],[12,2],[13,3],[14,4],[15,6],[16,8],[17,9],[18,10],[19,11]]}}},{"id":"elevated_motorway_casing_DHY","type":"line","source":"maplayout","source-layer":"m","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,2],[8,2],[9,2],[10,2.5],[11,3],[12,4.5],[13,4.5],[14,5.5],[15,7],[16,9],[17,10],[18,11],[19,12]]}}},{"id":"elevated_motorway_fill_DHY","type":"line","source":"maplayout","source-layer":"m","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","e","a","c","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#fff7d7"],[10,"#fff7d7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,1],[8,1],[9,1],[10,1],[11,2],[12,2.5],[13,3],[14,3.5],[15,4],[16,7],[17,8],[18,9],[19,10]]}}},{"id":"elevated_motorway_casing","type":"line","source":"maplayout","source-layer":"m","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":{"base":1,"stops":[[6,"#fad888"],[10,"#fad888"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,2],[7,3],[8,3],[9,4],[10,4.5],[11,5.5],[12,6],[13,7.5],[14,8.5],[15,8],[16,9],[17,12],[18,14.5],[19,17.5]]}}},{"id":"elevated_motorway_fill","type":"line","source":"maplayout","source-layer":"m","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["in","d","f","g"],["!=","f","a"],["!in","e","a","b"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[6,"#f9d786"],[10,"#fff1b7"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,0.5],[6,1],[7,2],[8,2.3],[9,2.6],[10,2.9],[11,3.2],[12,3.6],[13,5],[14,6],[15,4.8],[16,6],[17,10],[18,12],[19,15]]}}},{"id":"elevated_limited_roads_casing","type":"line","source":"maplayout","source-layer":"m","minzoom":14,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b"],["==","PUBVSPVT",1],["!in","c","b","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":"butt"},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.5],[14,0.7],[15,1],[16,1.2],[17,1.8],[18,2.5],[19,3]]}}},{"id":"elevated_limited_roads_fill","type":"line","source":"maplayout","source-layer":"m","minzoom":14,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],["==","PUBVSPVT",1],["!in","c","b","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":"butt"},"paint":{"line-color":"#eee","line-opacity":1,"line-width":{"base":1,"stops":[[12,0.3],[14,0.5],[15,0.8],[16,1],[17,1.5],[18,2],[19,2.5]]}}},{"id":"elevated_highway_casing","type":"line","source":"maplayout","source-layer":"m","minzoom":7,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":"butt"},"paint":{"line-color":"#e49400","line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,8],[17,10],[18,12],[19,14]]}}},{"id":"elevated_highway_fill","type":"line","source":"maplayout","source-layer":"m","minzoom":5,"filter":["all",["==","$type","LineString"],["!=","b","a"],["!in","c","b","c"],["==","f","a"],["in","d","f","g"]],"layout":{"visibility":"visible","line-join":"bevel","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":{"base":1,"stops":[[7,"#feb733"],[8,"#feb733"],[9,"#fedb34"],[20,"#fedb34"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[5,1],[6,1.2],[7,2.5],[8,2.8],[9,3],[10,3.2],[11,3.6],[12,4],[13,4.5],[14,5.2],[15,5.2],[16,6],[17,8],[18,10],[19,12]]}}},{"id":"elevated_UC_offset1","type":"line","source":"maplayout","source-layer":"m","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[2,2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"elevated_UC_offset2","type":"line","source":"maplayout","source-layer":"m","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","f","g","d","e","a","b","c"],[">=","g",1]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#a4a3a3","line-opacity":1,"line-offset":{"stops":[[-2,-2]]},"line-dasharray":{"base":1,"stops":[[9,[3,3]],[12,[4,4]],[13,[5,5]],[14,[6,6]],[15,[7,7]],[16,[8,8]],[17,[9,9]],[18,[10,10]]]},"line-width":{"base":1,"stops":[[8,1],[9,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1]]}}},{"id":"fob_casing","type":"line","source":"maplayout","source-layer":"m","minzoom":16,"filter":["all",["==","$type","LineString"],["==","c","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":{"base":1,"stops":[[4,"butt"],[10,"butt"],[11,"round"]]}},"paint":{"line-color":"#c1ada7","line-opacity":1,"line-width":{"base":4,"stops":[[15,5],[17,9],[19,10]]}}},{"id":"fob_fill","type":"line","source":"maplayout","source-layer":"m","minzoom":16,"filter":["all",["==","$type","LineString"],["==","c","c"]],"layout":{"visibility":"visible","line-join":"round","line-cap":"butt"},"paint":{"line-opacity":1,"line-color":"#f3f3f3","line-dasharray":{"base":1,"stops":[[16,[0.3,0.3]]]},"line-width":{"base":4,"stops":[[16,4],[17,8],[19,9]]}}},{"id":"intercity_rail_undcons","type":"line","source":"maplayout","source-layer":"i","minzoom":13,"filter":["all",["==","$type","LineString"],["in","c","a","b","c","d","e","f","g","h","i","j","k","l"],["in","b","b"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":{"property":"c","type":"categorical","stops":[["a","#0099cc"],["b","#ff6666"],["c","#339900"],["d","#cd76ed"],["e","#f29e0b"],["f","#cd76ed"],["g","#ff00ff"],["h","#ed6106"],["i","#ff94b4"],["j","#00ffff"],["k","#795548"],["l","Grey"]]},"line-opacity":0.5,"line-dasharray":[2,2],"line-width":{"base":1,"stops":[[10,1.5],[13,2],[16,2.5],[17,3],[18,4],[19,4]]}}},{"id":"intercity_rail_tram","type":"line","source":"maplayout","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["in","d","a"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[10,1.5],[13,2],[16,2.5],[17,3],[18,4],[19,4]]}}},{"id":"intercity_rail_generic","type":"line","source":"maplayout","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["==","a","a"],["!in","b","b","a"],["!in","c","d","h","a","b","c","g","e","f","i","j","d","l"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#795548","line-opacity":1,"line-width":{"base":1,"stops":[[10,1.5],[13,2],[16,2.5],[17,3],[18,4],[19,4]]}}},{"id":"intercity_rail_dash","type":"line","source":"maplayout","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["==","a","a"],["!in","b","b","a"],["!in","c","d","h","a","b","c","g","e","f","i","j","d","l"]],"layout":{"line-join":"round"},"paint":{"line-color":"#795548","line-width":{"base":1.5,"stops":[[10,4],[15,6],[17,8]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"intercity_rail_colored","type":"line","source":"maplayout","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["in","c","a","b","c","d","e","f","g","h","i","j","k","l"],["!in","b","b","a"]],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":{"property":"c","type":"categorical","stops":[["a","#0099cc"],["b","#ff6666"],["c","#339900"],["d","#cd76ed"],["e","#f29e0b"],["f","#cd76ed"],["g","#ff00ff"],["h","#ed6106"],["i","#ff94b4"],["j","#00ffff"],["k","#795548"],["l","Grey"]]},"line-opacity":1,"line-width":{"base":1,"stops":[[10,1.5],[13,2],[16,2.5],[17,3],[18,4],[19,4]]}}},{"id":"intercity_rail_colored_dash","type":"line","source":"maplayout","source-layer":"i","minzoom":10,"filter":["all",["==","$type","LineString"],["in","c","a","b","c","d","e","f","g","h","i","j","k","l"],["!in","b","b","a"]],"layout":{"line-join":"round"},"paint":{"line-color":{"property":"c","type":"categorical","stops":[["a","#0099cc"],["b","#ff6666"],["c","#339900"],["d","#cd76ed"],["e","#f29e0b"],["f","#cd76ed"],["g","#ff00ff"],["h","#ed6106"],["i","#ff94b4"],["j","#00ffff"],["k","#795548"],["l","Grey"]]},"line-width":{"base":1.5,"stops":[[10,5],[15,6],[17,8]]},"line-dasharray":{"base":1,"stops":[[10,[0.2,10]],[15,[0.3,15]],[21,[0.4,15]]]},"line-opacity":{"base":1,"stops":[[10,1],[14,1]]}}},{"id":"footprints_int_3d","type":"fill-extrusion","source":"maplayout","minzoom":16,"source-layer":"n","layout":{"visibility":"visible"},"paint":{"fill-extrusion-height":{"property":"b","type":"identity"},"fill-extrusion-opacity":0.4,"fill-extrusion-color":"#e9e9e9"}},{"id":"footprints_ind1_3d_2","type":"fill-extrusion","source":"maplayout","minzoom":16,"source-layer":"o","filter":["all",["in","b","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":"#e9e9e9","fill-extrusion-height":{"property":"c","type":"identity"},"fill-extrusion-opacity":0.5}},{"id":"footprints_ind2_3d_2","type":"fill-extrusion","source":"maplayout","minzoom":16,"source-layer":"p","filter":["all",["in","b","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":"#e9e9e9","fill-extrusion-height":{"property":"c","type":"identity"},"fill-extrusion-opacity":0.5}},{"id":"footprints_ind3_3d_2","type":"fill-extrusion","source":"maplayout","minzoom":16,"source-layer":"q","filter":["all",["in","b","a","b"]],"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":"#e9e9e9","fill-extrusion-height":{"property":"c","type":"identity"},"fill-extrusion-opacity":0.5}},{"id":"footprints_ind1_3d","type":"fill-extrusion","source":"maplayout","minzoom":16,"source-layer":"o","filter":["all",["in","b","c","d","e"]],"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":{"property":"b","type":"categorical","stops":[["d","#f1e7d9"],["c","#e9e9e9"],["e","#d1d1d1"]]},"fill-extrusion-height":{"property":"c","type":"identity"},"fill-extrusion-opacity":1}},{"id":"footprints_ind2_3d","type":"fill-extrusion","source":"maplayout","minzoom":16,"source-layer":"p","filter":["all",["in","b","c","d","e"]],"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":{"property":"b","type":"categorical","stops":[["d","#f1e7d9"],["c","#e9e9e9"],["e","#d1d1d1"]]},"fill-extrusion-height":{"property":"c","type":"identity"},"fill-extrusion-opacity":1}},{"id":"footprints_ind3_3d","type":"fill-extrusion","source":"maplayout","minzoom":16,"source-layer":"q","filter":["all",["in","b","c","d","e"]],"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":{"property":"b","type":"categorical","stops":[["d","#f1e7d9"],["c","#e9e9e9"],["e","#d1d1d1"]]},"fill-extrusion-height":{"property":"c","type":"identity"},"fill-extrusion-opacity":1}},{"id":"footprints_Ranked","type":"fill","source":"maplayout","minzoom":14,"maxzoom":16,"source-layer":"r","layout":{"visibility":"visible"},"paint":{"fill-color":"#f1e7d9","fill-opacity":1}},{"id":"Admin2_Boundary","type":"line","source":"maplayout","source-layer":"s","minzoom":3,"filter":["!=","a","a"],"layout":{"visibility":"visible","line-join":"round"},"paint":{"line-color":"#8d8d8d","line-opacity":{"base":1,"stops":[[3,1]]},"line-width":1,"line-dasharray":{"base":1,"stops":[[3,[2,2,2,2]],[21,[2,2,4,2]]]}}},{"id":"Admin1_Boundary","type":"line","source":"maplayout","source-layer":"t","minzoom":1,"filter":["all",["==","a","a"]],"layout":{"visibility":"visible"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map","line-width":1}},{"id":"Coastal_Boundary","type":"line","source":"maplayout","source-layer":"t","minzoom":9,"filter":["all",["==","a","b"]],"layout":{"visibility":"visible"},"paint":{"line-color":"#11354d","line-opacity":0.3,"line-translate-anchor":"map","line-width":0}},{"id":"isnbbm_Boundary","type":"line","source":"maplayout","minzoom":4,"source-layer":"worldlinecover","layout":{"visibility":"visible"},"paint":{"line-color":"#999","line-opacity":0.8,"line-translate-anchor":"map","line-width":1.5}},{"id":"Int_Admin_Bound","type":"line","source":"maplayout","source-layer":"t","minzoom":1,"maxzoom":4,"filter":["all",["==","a","c"]],"layout":{"visibility":"visible"},"paint":{"line-color":"#a3ad9e","line-opacity":0.8,"line-translate-anchor":"map","line-width":1}},{"id":"waterway_lbl_lowzoom","type":"symbol","source":"maplabel","source-layer":"u","minzoom":6,"filter":["!=","a","a"],"layout":{"visibility":"visible","text-field":"{b}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":{"base":1,"stops":[[6,10],[7,1],[8,1],[9,1],[10,10],[11,10],[12,10],[14,20],[16,70]]},"text-padding":{"base":1,"stops":[[7,1],[8,1],[9,5],[10,10],[11,5],[12,20],[14,60],[16,70]]},"text-font":["Open Sans Italic"],"text-size":{"base":1,"stops":[[8,12],[9,12],[10,13],[11,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":true,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"waterway_lbl_highzoom","type":"symbol","source":"maplabel","source-layer":"e","minzoom":11,"filter":["all",["==","a","a"],["!in","b","a","b"]],"layout":{"visibility":"visible","text-field":"{c}","symbol-placement":"line","text-rotation-alignment":"map","symbol-spacing":400,"text-font":["Open Sans Regular"],"text-size":{"base":1,"stops":[[7,10],[12,10],[13,12],[14,14],[16,15],[17,16]]},"symbol-avoid-edges":false,"text-allow-overlap":false,"text-max-angle":30,"text-offset":[0,0]},"paint":{"text-color":"#01579b","text-halo-color":"#01579b","text-halo-width":0.1}},{"id":"Int_Admin_Label3_Boundary","type":"symbol","source":"maplabel","minzoom":3,"source-layer":"v","filter":["all",["!=","a","a"],["==","b","a"]],"layout":{"visibility":"visible","text-field":"{c}","text-font":["Open Sans Medium"],"text-size":11,"text-letter-spacing":0.1,"text-allow-overlap":false,"text-anchor":"center","symbol-avoid-edges":true},"paint":{"text-color":"#000","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"Admin_Label2_Boundary","type":"symbol","source":"maplabel","minzoom":3,"source-layer":"v","filter":["all",["!=","a","a"],["==","b","b"]],"layout":{"visibility":"visible","text-field":"{c}","text-font":["Open Sans Medium"],"text-size":12,"text-letter-spacing":0.1,"text-allow-overlap":false,"text-anchor":"center","symbol-avoid-edges":true},"paint":{"text-color":"#000","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"water_ocean_label","type":"symbol","source":"maplabel","minzoom":1,"source-layer":"v","filter":["all",["==","a","a"],["!=","c","Palk Strait And Palk Bay"]],"layout":{"visibility":"visible","text-field":"{c}","text-font":["Open Sans Italic"],"text-size":12,"text-letter-spacing":0.1,"text-allow-overlap":false,"text-max-width":5,"text-anchor":"center","symbol-avoid-edges":true},"paint":{"text-color":"#11354d","text-halo-color":"#11354d","text-halo-width":0.1,"text-opacity":0.6}},{"id":"traf_light","type":"symbol","source":"maplabel","source-layer":"w","minzoom":16,"layout":{"symbol-avoid-edges":true,"visibility":"visible","symbol-placement":"point","icon-allow-overlap":false,"icon-image":"traffic_light3d","icon-rotation-alignment":"viewport"}},{"id":"Housenumber_label","type":"symbol","source":"maplabel","source-layer":"x","minzoom":16,"layout":{"text-field":"{b}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","text-padding":{"base":1,"stops":[[16,20],[17,30],[18,40],[19,50],[20,50]]},"symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":11},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"House_Name","type":"symbol","source":"maplabel","source-layer":"y","minzoom":16,"layout":{"text-field":"{b}","text-allow-overlap":false,"symbol-avoid-edges":true,"visibility":"visible","text-padding":{"base":1,"stops":[[16,30],[18,40],[19,50],[20,60]]},"symbol-placement":"point","text-font":["Open Sans Regular"],"text-size":12},"paint":{"text-color":"#111","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"Traffic_nonfreeflow","type":"line","source":"trafficMMI","source-layer":"TrafficLayer","minzoom":8,"filter":["all",["==","$type","LineString"],["in","CF","3","4","5","6","7","8","9","10"]],"layout":{"visibility":"none","line-join":"round","line-cap":"round"},"paint":{"line-color":{"property":"CF","type":"categorical","stops":[["3","#f07d02"],["4","#f07d02"],["5","#f07d02"],["6","#f07d02"],["7","#e60000"],["8","#e60000"],["9","#e60000"],["10","#9e1333"]]},"line-opacity":1,"line-offset":{"base":1,"stops":[[10,-3],[11,-3],[12,-3],[13,-3],[14,-3],[15,-3],[16,-3],[17,-3],[18,-3],[19,-3],[20,-3],[21,-3],[22,-3]]},"line-width":{"base":1,"stops":[[10,0.5],[11,0.5],[12,1],[13,1],[14,2],[15,2],[16,3],[17,4],[18,5],[19,5],[20,5],[21,5],[22,5]]}}},{"id":"Traffic_freeflow","type":"line","source":"trafficMMI","source-layer":"TrafficLayer","minzoom":8,"filter":["all",["==","$type","LineString"],["in","CF","0","1","2"]],"layout":{"visibility":"none","line-join":"round","line-cap":"round"},"paint":{"line-color":{"property":"CF","type":"categorical","stops":[["0","#4fcf7d"],["1","#4fcf7d"],["2","#4fcf7d"]]},"line-opacity":1,"line-offset":{"base":1,"stops":[[10,-3],[11,-3],[12,-3],[13,-3],[14,-3],[15,-3],[16,-3],[17,-3],[18,-3],[19,-3],[20,-3],[21,-3],[22,-3]]},"line-width":{"base":1,"stops":[[10,0.5],[11,0.5],[12,1],[13,1],[14,2],[15,2],[16,3],[17,4],[18,5],[19,5],[20,5],[21,5],[22,5]]}}},{"id":"Traffic_closure","type":"line","source":"trafficMMI","source-layer":"TrafficLayer","minzoom":8,"filter":["all",["==","$type","LineString"],["==","CF","-1"]],"layout":{"visibility":"none","line-join":"round","line-cap":"butt"},"paint":{"line-color":"red","line-opacity":1,"line-offset":{"base":1,"stops":[[10,-3],[11,-3],[12,-3],[13,-3],[14,-3],[15,-3],[16,-3],[17,-3],[18,-3],[19,-3],[20,-3],[21,-3],[22,-3]]},"line-dasharray":[2,2],"line-width":{"base":1,"stops":[[10,1],[11,1],[12,2],[13,2],[14,2],[15,2],[16,3]]}}},{"id":"Traffic_stopicon","type":"symbol","source":"trafficMMI","source-layer":"TrafficLayer","minzoom":10,"interactive":true,"filter":["all",["==","CF","-1"]],"layout":{"visibility":"none","icon-optional":true,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","icon-image":"road_stopped","icon-padding":10,"symbol-placement":"point"}},{"id":"Highway_ShieldNumber","type":"symbol","source":"maplabel","source-layer":"ba","minzoom":6,"maxzoom":11,"filter":["all",["<","a",50]],"layout":{"symbol-placement":"point","symbol-spacing":{"base":1,"stops":[[6,10],[7,10],[8,10],[9,20],[10,30],[11,30]]},"symbol-avoid-edges":true,"icon-allow-overlap":true,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-size":0.9,"icon-image":"NH_32x32_bdr_text-01","icon-padding":1,"text-rotation-alignment":"viewport","text-field":"{b}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":20,"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"Highway_ShieldNumber_int","type":"symbol","source":"maplabel","source-layer":"ba","minzoom":6,"maxzoom":11,"filter":["all",[">","a",50]],"layout":{"symbol-placement":"point","symbol-spacing":{"base":1,"stops":[[6,50],[7,50],[8,50],[9,50],[10,50],[11,50]]},"symbol-avoid-edges":true,"icon-allow-overlap":true,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-size":0.9,"icon-image":"NH_32x32_bdr_text-01","icon-padding":1,"text-rotation-alignment":"viewport","text-field":"{b}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":50,"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"street_lbl_SHY_shield_st","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":11,"filter":["all",[">=","a",""],["==","b","a"]],"layout":{"symbol-placement":"point","symbol-avoid-edges":true,"text-rotation-alignment":"viewport","icon-rotation-alignment":"viewport","icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-size":0.9,"visibility":"visible","text-font":["Open Sans Medium"],"text-size":8,"icon-image":"SH_32x32_bdr_text-01","text-field":"{a}","icon-text-fit":"both","icon-text-fit-padding":[14,14,10,14],"text-padding":{"base":1,"stops":[[8,40],[9,30],[10,40]]}},"paint":{"text-color":"#221","icon-opacity":0.8,"text-opacity":1}},{"id":"street_lbl_shield_NHY_st","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":11,"filter":["all",[">=","a",""],["in","b","b","c","d","e"]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20],[16,10]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-size":0.9,"icon-image":"NH_32x32_bdr_text-01","icon-padding":1,"text-rotation-alignment":"viewport","text-field":"{a}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"street_lbl_shield_NEY","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":11,"filter":["all",[">=","a",""],["in","b","f"]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20],[16,10]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-size":1,"icon-image":"NH_24x24_bdr-01","icon-padding":1,"text-rotation-alignment":"viewport","text-field":"{a}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0],"text-font":["Open Sans Regular"],"text-size":8,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"street_lbl_shield_MDR","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":11,"filter":["all",[">=","a",""],["in","b","g"]],"layout":{"symbol-spacing":{"base":1.2,"stops":[[12,25],[13,20],[14,25],[15,20],[16,10]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-ignore-placement":false,"icon-optional":false,"icon-rotation-alignment":"viewport","icon-size":0.9,"icon-image":"MD_white_bdr-02-text","icon-padding":80,"text-rotation-alignment":"viewport","text-field":"{a}","icon-text-fit":"both","icon-text-fit-padding":[13,15,10,13],"text-offset":[0,0.7],"text-font":["Open Sans Regular"],"text-size":7,"text-padding":{"base":0.5,"stops":[[12,25],[13,30],[14,20],[15,20],[16,20]]},"text-allow-overlap":false,"text-ignore-placement":false,"text-optional":false,"visibility":"visible"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#000","text-halo-width":0}},{"id":"state_border_label","type":"symbol","source":"maplayout","source-layer":"bc","minzoom":13,"layout":{"text-size":{"base":1,"stops":[[12,9],[13,10],[14,10],[15,10],[16,11]]},"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":0,"text-offset":[1,1],"text-field":"{a}"},"paint":{"text-color":"#b55cb5","text-opacity":1}},{"id":"bicycle_track_label","type":"symbol","source":"maplayout","source-layer":"k","minzoom":15,"filter":["all",["==","$type","LineString"],["!=","b","a"],["in","c","c"]],"layout":{"text-size":12,"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":100,"text-offset":[1,1],"text-field":"Bicycle Track"},"paint":{"text-color":"#222","text-opacity":1}},{"id":"metro_label_undcons","type":"symbol","source":"maplayout","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["==","a","a"],["==","b","b"],["!in","c","","m"]],"layout":{"text-size":10,"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":100,"text-offset":[1,1],"text-field":"Track Under Construction"},"paint":{"text-color":"#222","text-opacity":1}},{"id":"metro_label","type":"symbol","source":"maplayout","source-layer":"i","minzoom":16,"filter":["all",["==","$type","LineString"],["==","a","a"],["!in","b","b","a"]],"layout":{"text-size":10,"text-allow-overlap":false,"text-optional":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":100,"text-offset":[1,1],"text-field":"{e}"},"paint":{"text-color":"#222","text-opacity":1}},{"id":"Health & Wellness7","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":17,"filter":["all",["==","$type","Point"],["in","b","a"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"clinic-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#e9e9e9","text-halo-width":0.1}},{"id":"General3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":16,"filter":["all",["==","$type","Point"],["==","b","b"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"public_utility","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Shopping6","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":17,"filter":["all",["==","$type","Point"],["in","d","a"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-image":"puncture_shop","text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Shopping5","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":15,"filter":["all",["==","$type","Point"],["in","b","c","d","e","f"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Automotive3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","d","b","c","d","e"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-max-width":7,"text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Automotive2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":17,"filter":["all",["==","$type","Point"],["in","d","b","c","e","f"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"d","type":"categorical","stops":[["b","automobile"],["c","repairing"],["e","repairing"],["f","automobile"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"General2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","e","a"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-size":1,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"icon-image":"telephone_booth","symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#fff","text-halo-width":1}},{"id":"Shopping4","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":14,"filter":["all",["==","$type","Point"],["in","e","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-max-width":7,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Shopping3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":14,"filter":["all",["==","$type","Point"],["in","e","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn","bo","bp","bq","br"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":{"property":"e","type":"categorical","stops":[["b","clothing_store"],["c","clothing_store"],["d","stationary"],["e","cosmetic"],["f","cosmetic"],["g","hardware"],["h","hardware"],["i","hardware"],["j","florist"],["k","florist"],["l","furniture_store"],["m","furniture_store"],["n","furniture_store"],["o","furniture_store"],["p","footwear"],["q","footwear"],["r","jewellary_shop"],["s","jewellary_shop"],["t","opticals"],["u","salon_01"],["v","salon_01"],["w","wine_shop"],["x","wine_shop"],["y","gift_shop"],["z","computer_shop"],["ba","computer_shop"],["bb","salon"],["bc","salon_01"],["bd","scrap_store"],["be","cigarette_shops"],["bf","butchers"],["bg","builder"],["bh","dj"],["bi","laundry"],["bj","property_dealers"],["bk","pet_shop"],["bl","tailors"],["bm","pawn_broker"],["bn","baby"],["bo","common2_blue"],["bp","common2_blue"],["bq","agricultural_automotive"],["br","agricultural_automotive_repair"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-max-width":7,"text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Commercial & Industrial2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","g","h","i","j","k","l","m"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#3c2e35","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Financial_Services3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","n","o"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-max-width":6,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services12","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","p","q","r"],["!=","e","bs"]],"layout":{"icon-optional":true,"icon-image":{"property":"b","type":"categorical","stops":[["p","parking_18x18-01"],["q","parking_18x18-01"],["r","bus_18x18-01"]]},"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-rotation-alignment":"viewport","symbol-placement":"point"},"paint":{"text-opacity":1}},{"id":"Financial_Services1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","s"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-image":"bank-22","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Financial_Services2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","t"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":6,"icon-image":"atm","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#fff","text-halo-width":1}},{"id":"Health & Wellness6","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","u"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"dentist-22","text-max-width":7,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#1a6080","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Transportation10","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","v","w","x","y","z"],["!=","f","a"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Transportation9","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ba"]],"layout":{"text-size":14,"text-optional":true,"text-allow-overlap":false,"icon-optional":true,"icon-allow-overlap":false,"icon-image":"bridge1","icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-ignore-placement":false,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"street_upper_FOW_FOB","type":"symbol","source":"maplabel","source-layer":"be","minzoom":16,"filter":["all",["==","$type","LineString"],["==","a","a"]],"layout":{"text-size":{"base":4,"stops":[[15,10],[20,13]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"line","text-letter-spacing":0.01,"visibility":"visible","text-rotation-alignment":"map","text-pitch-alignment":"auto","text-keep-upright":true,"text-max-width":10,"text-field":"Foot Over Bridge"},"paint":{"text-color":"#000","text-opacity":1,"text-halo-color":"#FFF","text-halo-width":1.25,"text-halo-blur":1}},{"id":"Transportation7","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":7,"filter":["all",["==","$type","Point"],["in","b","bb","bc"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":false,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["bb","ferry_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":1}},{"id":"Health & Wellness5","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","d","g","h"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"d","type":"categorical","stops":[["g","gym"],["h","opticals"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Health & Wellness4","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bd"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"medical-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#e9e9e9","text-halo-width":0.1}},{"id":"Community_Services11","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","be","bf","bg","bh","bi","bj"]],"layout":{"text-size":14,"text-optional":false,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services10","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bk"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"post-22","icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Health & Wellness3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","bl","bm","bn","bo","bp","bq","br"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Restaurant&Dining3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":17,"filter":["all",["==","$type","Point"],["in","b","bs","bt","bu"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#9f5004","text-halo-color":"#fff","text-halo-width":0.2}},{"id":"Community_Services9","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bv"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"library-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services8","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bw"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"fire-22","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#ff3333","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment10","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","bx"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"swimming-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#15495d","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Community_Services7","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","by","bz","ca"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"police-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#ff3333","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment9","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cb"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"farm","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#1b5e20","text-halo-color":"#5bba76","text-halo-width":0}},{"id":"Recreation&Entertainment8","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cc"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"camping_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#085a30","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment7","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cd"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"art_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#663e20","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services6","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ce"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"embassy-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Automotive1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cf","cg","ch","ci","cj"]],"layout":{"text-size":14,"text-allow-overlap":false,"text-optional":false,"text-ignore-placement":false,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"Community_Services5","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ck"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"kindergarten-22","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining4","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cl"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Restaurant&Dining2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cm","cn","co"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"restaurant_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#9f5004","text-halo-color":"#fff","text-halo-width":0.2}},{"id":"Recreation&Entertainment6","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cp","cq","cr","cs","ct","cu"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Recreation&Entertainment5","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","cv"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"skiing-22","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#085a30","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment4","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","cw","cx","cy","cz","da"]],"layout":{"text-size":13,"text-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,1],"text-field":"{c}"},"paint":{"text-color":"#663e20","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Transportation6","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","db"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"gasfuel_22x22-01","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Shopping2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dc","dd"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"shopcart","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#525BCD","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"General1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":16,"filter":["all",["==","$type","Point"],["in","b","de","df","dg"]],"layout":{"text-size":12,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":true,"text-ignore-placement":false,"text-padding":{"base":1,"stops":[[16,50],[17,80],[18,30],[19,30]]},"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"secondary_road_names","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":15,"filter":["all",["==","$type","LineString"],["!=","c",""],["in","d","a","b","c"]],"layout":{"text-size":{"base":1,"stops":[[15,12],[16,12],[17,13]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"visibility":"visible","text-rotation-alignment":"map","text-pitch-alignment":"viewport","text-keep-upright":true,"text-field":"{c}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"arrows","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":16,"filter":["all",["==","$type","LineString"],["==","e","a"]],"layout":{"symbol-placement":"line","icon-padding":{"base":1,"stops":[[16,30],[17,40],[18,50],[19,60]]},"visibility":"visible","text-rotation-alignment":"map","icon-image":"arrows1","icon-size":{"base":1,"stops":[[16,0.7],[17,0.8],[18,0.9],[19,1]]}},"paint":{"icon-opacity":0.4}},{"id":"arterial_road_names","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":10,"filter":["all",["==","$type","LineString"],["!=","b","h"],["==","f",""]],"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,11],[13,11],[14,13]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"visibility":"visible","text-rotation-alignment":"map","text-pitch-alignment":"viewport","text-keep-upright":true,"text-field":"{c}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"street_lbl_UC_label_case","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":12,"filter":["all",["==","$type","LineString"],["in","d","d","e","f"],["!=","c",""]],"layout":{"text-size":{"base":1,"stops":[[10,5],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":50,"text-field":"{c}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1.5}},{"id":"admin_label7","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":10,"filter":["all",["==","e","a"]],"layout":{"text-size":{"base":1,"stops":[[10,13],[14,14],[15,14],[16,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Bold"],"text-field":"{name_en}","text-max-width":7},"paint":{"text-color":"#8d8d8d","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"toll_road","type":"symbol","source":"maplabel","source-layer":"bg","minzoom":10,"layout":{"text-size":{"base":1,"stops":[[10,5],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":20,"text-field":"Toll Road"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"highway_name","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":10,"filter":["all",["==","$type","LineString"],["==","g","a"]],"layout":{"text-size":{"base":1,"stops":[[10,9],[11,11],[12,12],[13,13],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-padding":50,"text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{c}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1.5}},{"id":"Transportation5","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","dh"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"petrol_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#01579b","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Health & Wellness2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","di","dj","dk","dl"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hospital_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#fff","text-halo-width":1}},{"id":"Commercial & Industrial1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":15,"filter":["all",["==","$type","Point"],["in","b","dm","dn","do"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#7a7971","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Residential2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dp","dq","dr","ds"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#7a7971","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Community_Services4","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dt"],["!=","f","b"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-image":{"property":"b","type":"categorical","stops":[["dt","school-22"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","du"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"goernment_office","text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"major_road_name","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":10,"filter":["all",["==","$type","LineString"],["==","b","i"]],"layout":{"text-size":{"base":1,"stops":[[10,11],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"text-optional":true,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-field":"{c}"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1}},{"id":"Restaurant&Dining1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dv","dw","dx"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["dv","coffee_22x22-01"],["dw","fastfood_22x22-01"],["dx","bar_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#9f5004","text-halo-color":"#fff","text-halo-width":0.2}},{"id":"Recreation&Entertainment3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","dy"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"cinema_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#663e20","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Nature4","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","dz","ea","eb"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":1}},{"id":"Community_Services3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ec"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"law_22x22-01","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Recreation&Entertainment2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ed","ee","ef","eg","eh","ei","ej","ek"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":10,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["ed","sport_22x22-01"],["ee","adventure_22x22-01"],["ef","golf_22x22-01"],["eg","sport_22x22-01"],["eh","sport_22x22-01"],["ei","theatre_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":{"property":"b","type":"categorical","stops":[["ee","#085a30"],["ef","#1d4401"],["ed","#1d4401"],["eg","#1d4401"],["eh","#1d4401"],["ei","#663e20"],["ej","#67535d"],["ek","#1b5e20"]]},"text-halo-color":{"property":"b","type":"categorical","stops":[["ee","#fff"],["ef","#e9e9e9"],["eg","#e9e9e9"],["eh","#fff"],["ei","#fff"],["ed","#fff"],["ej","#fff"],["ek","#fff"]]},"text-halo-width":{"property":"b","type":"categorical","stops":[["ee",1],["ef",0.8],["eg",0.8],["eh",0.8],["ed",0.8],["ei",1],["ej",1],["ek",1]]}}},{"id":"admin5_label","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":8,"filter":["all",["==","e","b"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[15,13],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"PilgrimPlaces1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","el","em","en","eo","ep","eq"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["el","buddhist_22x22-01"],["em","gurudwara_22x22-01"],["en","diya05"],["eo","islamic_22x22-01"],["ep","jain_22x22-01"],["eq","church_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#3F1B0F","text-halo-color":"#fff","text-halo-width":1}},{"id":"Residential1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ds"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#7a7971","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"Health & Wellness1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","er"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hospital_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#700808","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","es","et"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Admin5_label","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":10,"filter":["all",["==","e","c"]],"layout":{"text-size":{"base":1,"stops":[[10,13],[14,14],[15,14],[16,15]]},"symbol-avoid-edges":true,"text-font":["Open Sans Bold"],"text-field":"{name_en}","text-max-width":7},"paint":{"text-color":"#8d8d8d","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"Nature3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","eu","ev"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-image":"park_22x22-01","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#1b5e20","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ew"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Hotels&Dining1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ex","ey"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"hotel_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#0573d9","text-halo-color":"#fff","text-halo-width":1}},{"id":"Shopping1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","ez","fa"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"market","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#525BCD","text-halo-color":"#fff","text-halo-width":1}},{"id":"Historical Places1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":7,"filter":["all",["==","$type","Point"],["in","b","fb","fc","fd","fe"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["fb","forts_22x22-01"],["fc","forts_22x22-01"],["fe","forts_22x22-01"],["fd","museums_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Transportation4","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","ff"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-image":"helipad_22x22-01","icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Recreation&Entertainment1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","fg","fh","fi","fj"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":{"property":"b","type":"categorical","stops":[["fg","amusement_22x22-01"],["fi","camera_22x22-01"],["fj","zoo_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":{"property":"b","type":"categorical","stops":[["fg","#663e20"],["fi","#085a30"],["fj","#1b5e20"],["fh","#1b5e20"]]},"text-halo-color":{"property":"b","type":"categorical","stops":[["fg","#e9e9e9"],["fi","#fff"],["fj","#fff"],["fh","#fff"]]},"text-halo-width":{"property":"b","type":"categorical","stops":[["fg",0.8],["fi",1],["fj",1],["fh",1]]}}},{"id":"admin4_major_label","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":8,"filter":["all",["==","e","d"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[14,15],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"admin4_Imp_Loc_label","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":8,"filter":["all",["==","e","e"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[14,15],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":8},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"neighbour_cc","type":"symbol","source":"maplabel","source-layer":"bh","minzoom":7,"filter":["all",["==","c","a"]],"layout":{"text-size":{"base":1,"stops":[[8,10],[9,11],[11,12],[13,13],[14,15],[16,15]]},"symbol-avoid-edges":true,"text-font":["OpenSansExtraBold"],"text-field":"{name_en}","text-transform":"uppercase","text-letter-spacing":0.01,"text-max-width":6},"paint":{"text-color":"#a5a5a5","text-halo-color":"#fff","text-halo-width":1}},{"id":"Nature2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":7,"filter":["all",["==","$type","Point"],["in","b","fk","fl","fm","fn","fo","fp","fq","fr"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":8,"icon-image":{"property":"b","type":"categorical","stops":[["fq","beach4"]]},"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":{"property":"b","type":"categorical","stops":[["fp","#01579b"],["fl","#01579b"],["fr","#01579b"],["fo","#67535d"],["fn","#1b5e20"],["fk","#67535d"],["fm","#67535d"],["fq","#525BCD"]]},"text-halo-color":{"property":"b","type":"categorical","stops":[["fp","#fff"],["fl","#e9e9e9"],["fr","#e9e9e9"],["fo","#fff"],["fn","#e9e9e9"],["fk","#fff"],["fq","#fff"],["fm","#fff"]]},"text-halo-width":{"property":"b","type":"categorical","stops":[["fp",1],["fl",0.8],["fr",0.8],["fo",1],["fn",0.8],["fk",1],["fq",0.8],["fm",1]]}}},{"id":"Community_Services1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":7,"filter":["all",["==","$type","Point"],["==","b","fs"]],"layout":{"text-size":14,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"text-max-width":7,"text-ignore-placement":false,"icon-image":"college_22x22-01","icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Nature1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":6,"filter":["all",["==","$type","Point"],["==","b","ft"]],"layout":{"text-size":{"base":1,"stops":[[6,12],[8,13],[12,14]]},"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"wildlife_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}","text-max-width":7},"paint":{"text-color":"#085a30","text-halo-color":"#085a30","text-halo-width":0.1}},{"id":"highway_name2","type":"symbol","source":"maplabel","source-layer":"bb","minzoom":10,"filter":["all",["==","$type","LineString"],["==","g","a"],[">=","c",""],[">=","h",""]],"layout":{"text-size":{"base":1,"stops":[[10,5],[11,11],[12,12],[13,12],[14,13]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"text-font":["Open Sans Regular"],"symbol-placement":"line","text-letter-spacing":0,"text-pitch-alignment":"viewport","visibility":"visible","text-rotation-alignment":"map","text-keep-upright":true,"text-padding":50,"text-field":"{c} (Old {h})"},"paint":{"text-color":"#030202","text-opacity":1,"text-halo-color":"#fff","text-halo-width":1.5}},{"id":"Transportation8","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":14,"filter":["all",["==","$type","Point"],["in","b","fu"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"bus_18x18-01","icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"poi_TRNMON","type":"symbol","source":"maplabel","source-layer":"bi","minzoom":14,"filter":["all",["==","$type","Point"],["in","b","a","b"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-size":1,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"icon-image":{"property":"b","type":"categorical","stops":[["a","metro_22x22-01"],["b","ferry_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":1}},{"id":"poi_TRNMET","type":"symbol","source":"maplabel","source-layer":"bi","minzoom":9,"filter":["all",["==","$type","Point"],["in","d","a","b","c","d","e","f","g","h","i","j"]],"layout":{"text-size":13,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-line-height":1,"icon-size":0.8,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"d","type":"categorical","stops":[["a","metro_22x22-01"],["b","bangalore_metro_22x22-01"],["c","kolkata_metro_22x22-01"],["d","chennai_metro_22x22-01"],["e","lucknow_metro_22x22-01"],["f","jaipur_metro_22x22-01"],["g","hyderabad_metro_22x22-01"],["h","delhi_metro_22x22-01"],["i","nmrc_metro1"],["j","rapid_metro_22x22-01"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"Transportation3","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","b","fv"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"icon-image":"toll_22x22-01","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#e9e9e9","text-halo-width":0.8}},{"id":"Transportation2","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","fw","fx","fy"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"railwaystn_new_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#044568","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"wildlife","type":"symbol","source":"maplabel","source-layer":"bj","minzoom":6,"maxzoom":9,"filter":["all",["==","$type","Point"],["==","a","a"]],"layout":{"text-size":{"base":1,"stops":[[6,12],[8,13],[12,14]]},"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"icon-image":"wildlife_22x22-01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Italic"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{b}","text-max-width":7},"paint":{"text-color":"#085a30","text-halo-color":"#085a30","text-halo-width":0.1}},{"id":"admin6_label2","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":12,"filter":["all",["==","e","f"],["==","f",24000]],"layout":{"text-size":15,"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7},"paint":{"text-color":"#2b2b2b","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"admin6_label","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":6,"filter":["all",["==","e","f"],["!=","f",24000]],"layout":{"text-size":{"base":1,"stops":[[6,10],[8,15],[10,15],[12,16],[16,16]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-line-height":0.9},"paint":{"text-color":"#2b2b2b","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"admin6_label_P","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":6,"filter":["all",["==","e","g"]],"layout":{"text-size":{"base":1,"stops":[[6,10],[8,15],[10,15],[12,18],[16,18]]},"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{name_en}","text-max-width":7,"text-line-height":0.9},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0}},{"id":"admin4_minor_label","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":3,"filter":["all",["in","e","h","i","j"],[">","f",1000]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,13],[8,14],[10,15],[15,18]]},"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.1}},{"id":"admin4_major_label2","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":3,"filter":["all",["in","e","h","i","j"],["<=","f",1000]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,14],[8,14],[10,18],[15,22]]},"symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.2,"text-opacity":1}},{"id":"admin4_imp_city_label","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":3,"filter":["all",["==","e","k"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,14],[8,14],[10,18],[15,22]]},"symbol-avoid-edges":true,"text-letter-spacing":{"base":1,"stops":[[10,0],[14,0.1],[20,0.1]]},"text-font":["Open Sans Bold"],"text-field":"{name_en}","text-max-width":8},"paint":{"text-color":"#212121","text-halo-color":"#fff","text-halo-width":0.1}},{"id":"Transportation1","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","b","fz","ga"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"icon-image":"airport-22","symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#055a88","text-halo-color":"#fff","text-halo-width":0.7}},{"id":"admin9_major_label","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":3,"filter":["all",["in","e","l"]],"layout":{"text-size":{"base":1,"stops":[[4,12],[5,14],[6,14]]},"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-font":["Open Sans Medium"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.5,"text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.9],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"Admin3_label","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":3,"filter":["all",["==","e","m"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,14],[8,14],[10,18],[15,22]]},"text-allow-overlap":false,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"circle_outer","icon-rotation-alignment":"viewport","symbol-avoid-edges":true,"text-padding":10,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.7,"text-anchor":"top","text-justify":"auto","text-max-width":7},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"Admin2__label","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":3,"filter":["all",["==","e","n"]],"layout":{"text-size":{"base":1,"stops":[[4,12],[5,14],[6,14]]},"text-allow-overlap":false,"text-letter-spacing":0.1,"icon-allow-overlap":true,"symbol-avoid-edges":true,"text-ignore-placement":false,"text-padding":0,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-offset":[0.5,0],"text-field":"{name_en}","icon-size":0.5,"text-transform":"uppercase","text-anchor":"center","text-max-width":5},"paint":{"text-color":"#333333","text-opacity":{"base":1,"stops":[[4,0.7],[5,0.7],[6,0.7],[7,0.5],[10,0.5],[11,0.2],[12,0.2],[13,0.2],[14,0.2]]},"text-halo-color":"#fff","text-halo-width":0,"text-halo-blur":0}},{"id":"city_centre_cc","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":3,"maxzoom":11,"filter":["all",["==","e","o"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,14],[8,14],[10,18],[15,22]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-image":"target_thick","icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.5,"text-anchor":"top","text-justify":"auto"},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"city_centre_delhinoicon","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":9,"maxzoom":11,"filter":["all",["==","g","a"]],"layout":{"text-size":{"base":1,"stops":[[3,12],[4,12],[5,14],[6,15]]},"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.5,"text-anchor":"right","text-offset":[-1,1]},"paint":{"text-color":"#262626","text-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]},"text-halo-color":"#fff","text-halo-width":0,"icon-opacity":{"base":1,"stops":[[4,1],[11,1],[15,0],[21,0]]}}},{"id":"city_centre_sc_hyderabad","type":"symbol","source":"maplabel","source-layer":"bf","minzoom":3,"maxzoom":8,"filter":["all",["in","name_en","Hyderabad","Kolkata"]],"layout":{"text-size":{"base":1,"stops":[[5,12],[7,14],[8,14],[10,18],[15,22]]},"text-allow-overlap":true,"icon-allow-overlap":true,"text-ignore-placement":false,"icon-image":"circle_outer","text-offset":[0,0.7],"icon-rotation-alignment":"viewport","symbol-avoid-edges":false,"text-padding":0,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-field":"{name_en}","icon-size":0.5,"text-anchor":"center","text-max-width":7},"paint":{"text-color":"#333333","text-halo-width":0.3}},{"id":"country_lbl","type":"symbol","source":"maplabel","minzoom":1,"maxzoom":6,"source-layer":"v","filter":["all",["!=","a","a"],["==","b","c"],["!=","c","India"]],"layout":{"visibility":"visible","text-field":"{c}","text-font":["Open Sans Medium"],"text-size":{"base":1,"stops":[[3,11],[4,12],[5,12],[10,15]]},"text-letter-spacing":0.1,"text-allow-overlap":false,"text-anchor":"center","text-transform":"uppercase","symbol-avoid-edges":false},"paint":{"text-color":"#000","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"label_mapmyindia","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":14,"filter":["all",["==","$type","Point"],["in","f","c","d"]],"layout":{"text-size":14,"text-optional":true,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"text-max-width":7,"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#67535d","text-halo-color":"#fff","text-halo-width":0.8}},{"id":"India Gate","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":13,"filter":["all",["==","$type","Point"],["in","f","e"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":true,"symbol-avoid-edges":false,"icon-allow-overlap":true,"text-max-width":7,"icon-image":"india_gate1","text-ignore-placement":false,"icon-size":{"base":1,"stops":[[9,0.6],[10,0.7],[11,0.9],[12,1]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[-0.4,2.5],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"statue_boss","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","ELOC","34T411"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":true,"symbol-avoid-edges":false,"icon-allow-overlap":true,"text-max-width":7,"icon-image":"statue_boss","text-ignore-placement":false,"icon-size":{"base":1,"stops":[[9,0.6],[10,0.7],[11,0.9],[12,1]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,2],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"national_war_memorial","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["==","ELOC","TVQ4QZ"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":true,"symbol-avoid-edges":false,"icon-allow-overlap":true,"text-max-width":7,"icon-image":"war_memorial","text-ignore-placement":false,"icon-size":{"base":1,"stops":[[9,0.6],[10,0.7],[11,0.9],[12,1]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,2],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"red_fort","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","f","f"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"red_fort1","icon-size":{"base":1,"stops":[[10,0.7],[11,0.9],[12,1]]},"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Qutub_Minar","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","f","g"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"qutub_minar1","icon-size":{"base":1,"stops":[[10,0.7],[11,0.9],[12,1]]},"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":{"base":1,"stops":[[9,[0,1.2]],[11,[0,1.7]],[14,[0,1.9]]]},"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Gateway_of_India","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","f","h"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"gate_of_india2","icon-size":{"base":1,"stops":[[10,0.6],[11,0.6],[12,1]]},"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.3],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Lotus_Temple","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","f","i"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"lotus","icon-size":{"base":1,"stops":[[10,0.7],[11,0.9],[12,1]]},"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.2],"text-field":"{c}"},"paint":{"text-color":"#085a30","text-halo-color":"#fff","text-halo-width":1}},{"id":"Akshardham","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","f","j"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":"akshardham1","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","icon-size":{"base":1,"stops":[[10,0.7],[11,0.9],[12,1]]},"text-justify":"center","text-anchor":"top","text-offset":[0,0.2],"text-field":"{c}"},"paint":{"text-color":"#3F1B0F","text-halo-color":"#fff","text-halo-width":1}},{"id":"Taj_Mahal","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","f","k"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":true,"symbol-avoid-edges":false,"icon-allow-overlap":true,"text-max-width":7,"icon-image":"taj_mahal4","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","icon-size":{"base":1,"stops":[[10,0.7],[11,0.9],[12,1]]},"text-justify":"center","text-anchor":"top","text-offset":[0,0.2],"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"Buddha_statue","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":11,"filter":["all",["==","$type","Point"],["in","f","l"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":true,"symbol-avoid-edges":false,"icon-allow-overlap":true,"text-max-width":7,"icon-image":"statue_hussain_sagar","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","icon-size":{"base":1,"stops":[[10,0.7],[11,0.9],[12,1]]},"text-justify":"center","text-anchor":"top","text-offset":{"base":1,"stops":[[10,[0,-0.4]],[11,[0,-0.4]],[12,[0,-0.4]],[13,[0,0.3]],[14,[0,0.4]]]},"icon-offset":{"base":1,"stops":[[10,[1,-30]],[11,[1,-30]],[12,[1,-30]],[13,[5,-20]],[14,[7,-20]]]},"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"statue_of_unity","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","f","m"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":true,"symbol-avoid-edges":false,"icon-allow-overlap":true,"text-max-width":7,"icon-image":"statue_unity","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","icon-size":{"base":1,"stops":[[10,0.8],[11,1],[14,1.2]]},"text-justify":"center","text-anchor":"top","text-offset":{"base":1,"stops":[[10,[0,-0.5]],[11,[0,-0.5]],[12,[0,-0.6]],[13,[0,-0.6]],[14,[0,0.1]],[15,[0,0.1]]]},"icon-offset":{"base":1,"stops":[[10,[1,-30]],[11,[1,-30]],[12,[1,-30]],[13,[1,-30]],[14,[1,-20]]]},"text-field":"{c}"},"paint":{"text-color":"#005c53","text-halo-color":"#fff","text-halo-width":1}},{"id":"ram_mandir","type":"symbol","source":"maplabel","source-layer":"bd","minzoom":9,"filter":["all",["==","$type","Point"],["in","ELOC","1FTTEB"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":false,"text-allow-overlap":true,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":12,"icon-image":"ram-mandir01","text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Bold"],"symbol-placement":"point","icon-size":1,"text-justify":"center","text-anchor":"top","text-offset":[0,1.7],"text-field":"{c}"},"paint":{"text-color":"#3F1B0F","text-halo-color":"#fff","text-halo-width":1}},{"id":"indoor_floor_count","type":"line","source":"Indoor","source-layer":"building_poly","minzoom":16,"interactive":true,"filter":["all",["!=","FLOOR",""],["==","INT_FLOOR",""]],"layout":{"visibility":"visible"}},{"id":"indoor_building_outline","type":"line","source":"Indoor","source-layer":"building_poly","minzoom":16,"interactive":true,"layout":{"visibility":"visible"},"paint":{"line-color":"#f4b79a","line-opacity":1,"line-width":2}},{"id":"indoor_units","type":"fill","source":"Indoor","source-layer":"units","minzoom":16,"interactive":true,"filter":["all",["==","LEVEL_ID","L001"],["in","FTR_CRY","RTSSHP","SERSTR","BLDOTB","BLDWLK","NONPUB","SERELV","SEREST","SERRTM","SERRTF","SERRTU"]],"layout":{"visibility":"visible"},"paint":{"fill-color":{"property":"FTR_CRY","type":"categorical","stops":[["RTSSHP","#fefbf6"],["SERSTR","#f4e49a"],["BLDWLK","#f6f8fe"],["BLDOTB","#f9e4c8"],["NONPUB","#e1dffc"],["SERELV","#f4d59a"],["SEREST","#f4d59a"],["SERRTM","#f9ccc8"],["SERRTF","#f9ccc8"],["SERRTU","#f9ccc8"]]},"fill-opacity":1,"fill-outline-color":"#9D9E9C"}},{"id":"footprints_indoor_3d_1_floor","type":"fill-extrusion","source":"Indoor","minzoom":16,"source-layer":"building_poly","interactive":true,"layout":{"visibility":"visible"},"paint":{"fill-extrusion-color":"#f1e7d9","fill-extrusion-height":{"property":"HEIGHT","type":"identity"},"fill-extrusion-opacity":{"base":1,"stops":[[16.5,0.7],[17,0.5],[17.5,0.2]]}}},{"id":"indoor_levelsname","type":"symbol","source":"Indoor","source-layer":"levels","minzoom":16,"interactive":true,"filter":["all",["==","ID","L001"],["!in","BLDG_ID","4301343","15836724","15772792","4304675","15836717","4304993","4299157","4300116","4299764","4353484"]],"layout":{"visibility":"visible","symbol-placement":"point","text-font":["Open Sans Italic"],"text-max-width":4,"text-justify":"center","text-anchor":"center","text-rotation-alignment":"viewport","text-size":9,"text-field":"{NAME}"},"paint":{"text-color":"#8d8d8d"}},{"id":"Indoor_othpoi","type":"symbol","source":"Indoor","minzoom":16.5,"source-layer":"indoor_othpoi","interactive":true,"filter":["all",["==","LEVEL_ID","L001"],["in","FTR_CRY","SERSTR","SEREST","SERELV","SERRTU","SERRTF","SERRTM"]],"layout":{"text-size":8,"text-optional":true,"icon-optional":true,"icon-size":0.8,"visibility":"visible","text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"icon-image":{"property":"FTR_CRY","type":"categorical","stops":[["SERSTR","stairs"],["SEREST","escalator01"],["SERELV","elevator"],["SERRTU","public_utility"],["SERRTF","toilet_female"],["SERRTM","toilet_male"]]},"symbol-placement":"point","text-justify":"center","text-anchor":"top"}},{"id":"indoor_entry_exit","type":"symbol","source":"Indoor","minzoom":16.5,"source-layer":"indoor_othpoi","filter":["all",["in","FTR_CRY","ENTEXT","BLDWLK","PUBARA","SERAUD","RTSSHP"],["==","LEVEL_ID","L001"]],"interactive":true,"layout":{"text-size":9,"symbol-avoid-edges":true,"text-font":["Open Sans Italic"],"text-field":"{NAME}","text-max-width":7},"paint":{"text-color":"#b55cb5","text-halo-color":"#fff","text-halo-width":0.5}},{"id":"indoor_poi_withouticon","type":"symbol","source":"Indoor","source-layer":"indoor_poi","minzoom":16,"interactive":true,"filter":["all",["==","$type","Point"],["==","LEVEL_ID","L001"],["!in","NW_SUBCAT","RTCAPR","RTSCLT","RTCBKS","RTCCSM","RTSCSM","RTCELC","RTSELC","RTSHRD","RTCFLR","RTSFLR","RTCFRN","RTSFRN","RTCHFS","RTSHFS","RTCFTW","RTSFTW","RTCJWL","RTSJWL","RTCOPT","RTCSLN","RTSSLN","RTCWIN","RTSWIN","RTCGFT","RTCCMP","RTSCMP","RTSBRB","RTSHDR","RTSSRP","RTSPAN","RTSBUT","RTSBLM","RTSEVT","RTSDRY","AGNPRP","RTSPET","RTSTLR","RTSPWN","RTCKID","AUTTWL","REPTWL","AUTAGR","REPAGR","GATENT","GATEXT","RTCBAG","RTCDGN","RTCHLT","RTCMBL","RTCWTC","RTSOTH","STRPRT","AUTOTH","FINOTH","RCNBWL","TRNTRO"]],"layout":{"text-size":13,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-max-width":7,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","icon-size":0.8,"icon-image":"common2_blue","text-offset":[0,0.7],"text-field":"{LBL_NME}"},"paint":{"text-color":"#015399","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"indoor_poi2","type":"symbol","source":"Indoor","source-layer":"indoor_poi","minzoom":16,"interactive":true,"filter":["all",["==","$type","Point"],["==","LEVEL_ID","L001"],["in","NW_SUBCAT","FINBNK","RCNSCO","RTCAPR","RTSCLT","RTCBKS","RTCCSM","RTSCSM","RTCELC","RTSELC","RTSHRD","RTCFLR","RTSFLR","RTCFRN","RTSFRN","RTCHFS","RTSHFS","RTCFTW","RTSFTW","RTCJWL","RTSJWL","RTCOPT","RTCSLN","RTSSLN","RTCWIN","RTSWIN","RTCGFT","RTCCMP","RTSCMP","RTSBRB","RTSHDR","RTSSRP","RTSPAN","RTSBUT","RTSBLM","RTSEVT","RTSDRY","AGNPRP","RTSPET","RTSTLR","RTSPWN","RTCKID","AUTTWL","REPTWL","AUTAGR","REPAGR","AUT2WL","FINATM","FODBAK","FODCOF","FODCON","FODFFD","FODIND","FODOTH","FODOTL","FODPLZ","FODPUB","GATENT","GATEXT","PRKUNG","PRKMLT","PRKRDS","PRKWPM","RCNCIN","RCNKID","TRNHPD","TRNMET","NTCLAK","SHPCOM","VSTREG","RTCBAG","RTCDGN","RTCHLT","RTCMBL","RTCWTC","RTSOTH","STRPRT","AUTOTH","PRKSRF"]],"layout":{"text-size":13,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"icon-optional":true,"icon-allow-overlap":false,"icon-size":0.8,"text-ignore-placement":false,"icon-image":{"property":"NW_SUBCAT","type":"categorical","stops":[["FINBNK","bank-22"],["RCNSCO","sport_22x22-01"],["FINATM","atm"],["PRKSRF","parking_18x18-01"],["SHPCOM","common2_blue"],["RTCBAG","common2_blue"],["RTCDGN","common2_blue"],["RTCHLT","common2_blue"],["RTCMBL","common2_blue"],["RTCWTC","common2_blue"],["RTSOTH","common2_blue"],["STRPRT","common2_blue"],["AUTOTH","common2_blue"],["RCNKID","kindergarten-22"],["RCNCIN","cinema_22x22-01"],["PRKUNG","parking_18x18-01"],["PRKMLT","parking_18x18-01"],["PRKRDS","parking_18x18-01"],["PRKWPM","parking_18x18-01"],["FODPUB","bar_22x22-01"],["FODPLZ","restaurant_22x22-01"],["FODOTL","restaurant_22x22-01"],["FODOTH","restaurant_22x22-01"],["FODBAK","restaurant_22x22-01"],["FODCON","restaurant_22x22-01"],["FODIND","restaurant_22x22-01"],["FODFFD","fastfood_22x22-01"],["FODCOF","coffee_22x22-01"],["RTCAPR","clothing_store"],["RTSCLT","clothing_store"],["RTCBKS","stationary"],["RTCCSM","cosmetic"],["RTSCSM","cosmetic"],["RTCELC","hardware"],["RTSELC","hardware"],["RTSHRD","hardware"],["RTCFLR","florist"],["RTSFLR","florist"],["RTCFRN","furniture_store"],["RTSFRN","furniture_store"],["RTCHFS","furniture_store"],["RTSHFS","furniture_store"],["RTCFTW","footwear"],["RTSFTW","footwear"],["RTCJWL","jewellary_shop"],["RTSJWL","jewellary_shop"],["RTCOPT","opticals"],["RTCSLN","salon_01"],["RTSSLN","salon_01"],["RTCWIN","wine_shop"],["RTSWIN","wine_shop"],["RTCGFT","gift_shop"],["RTCCMP","computer_shop"],["RTSCMP","computer_shop"],["RTSBRB","salon"],["RTSHDR","salon_01"],["RTSSRP","scrap_store"],["RTSPAN","cigarette_shops"],["RTSBUT","butchers"],["RTSBLM","builder"],["RTSEVT","dj"],["RTSDRY","laundry"],["AGNPRP","property_dealers"],["RTSPET","pet_shop"],["RTSTLR","tailors"],["RTSPWN","pawn_broker"],["RTCKID","baby"],["AUT2WL","common2_blue"],["AUTTWL","common2_blue"],["REPTWL","common2_blue"],["AUTAGR","agricultural_automotive"],["REPAGR","agricultural_automotive_repair"],["VSTREG","common2_red"],["TRNHPD","helipad_22x22-01"],["TRNMET","metro_22x22-01"]]},"icon-rotation-alignment":"viewport","text-font":["Open Sans Regular"],"symbol-placement":"point","text-max-width":7,"text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{LBL_NME}"},"paint":{"text-color":{"property":"NW_SUBCAT","type":"categorical","stops":[["FINATM","#01579b"],["FINBNK","#01579b"],["PRKSRF","#01579b"],["SHPCOM","#015399"],["RTCBAG","#015399"],["RTCDGN","#015399"],["RTCHLT","#015399"],["RTCMBL","#015399"],["RTCWTC","#015399"],["RTSOTH","#015399"],["STRPRT","#015399"],["AUTOTH","#015399"],["RCNKID","#005c53"],["RCNCIN","#663e20"],["PRKUNG","#223d47"],["PRKMLT","#223d47"],["PRKRDS","#223d47"],["PRKWPM","#223d47"],["FODPUB","#9f5004"],["FODPLZ","#9f5004"],["GATENT","#a45e25"],["GATEXT","#a45e25"],["FODOTL","#9f5004"],["FODOTH","#9f5004"],["FODBAK","#9f5004"],["FODCON","#9f5004"],["FODIND","#9f5004"],["FODFFD","#9f5004"],["FODCOF","#9f5004"],["RTCAPR","#a45e25"],["RTSCLT","#a45e25"],["RTCBKS","#a45e25"],["RTCCSM","#a45e25"],["RTSCSM","#a45e25"],["RTCELC","#a45e25"],["RTSELC","#a45e25"],["RTSHRD","#a45e25"],["RTCFLR","#a45e25"],["RTSFLR","#a45e25"],["RTCFRN","#a45e25"],["RTSFRN","#a45e25"],["RTCHFS","#a45e25"],["RTSHFS","#a45e25"],["RTCFTW","#a45e25"],["RTSFTW","#a45e25"],["RTCJWL","#a45e25"],["RTSJWL","#a45e25"],["RTCOPT","#a45e25"],["RTCSLN","#a45e25"],["RTSSLN","#a45e25"],["RTCWIN","#a45e25"],["RTSWIN","#a45e25"],["RTCGFT","#a45e25"],["RTCCMP","#a45e25"],["RTSCMP","#a45e25"],["RTSBRB","#a45e25"],["RTSHDR","#a45e25"],["RTSSRP","#a45e25"],["RTSPAN","#a45e25"],["RTSBUT","#a45e25"],["RTSBLM","#a45e25"],["RTSEVT","#a45e25"],["RTSDRY","#a45e25"],["AGNPRP","#a45e25"],["RTSPET","#a45e25"],["RTSTLR","#a45e25"],["RTSPWN","#a45e25"],["RTCKID","#a45e25"],["AUT2WL","#a45e25"],["AUTTWL","#a45e25"],["REPTWL","#a45e25"],["AUTAGR","#a45e25"],["REPAGR","#a45e25"],["VSTREG","#005c53"],["TRNHPD","#055a88"],["TRNMET","#055a88"],["NTCLAK","#01579b"],["RCNSCO","#1d4401"]]},"text-halo-color":"#fff","text-halo-width":0.3}},{"id":"indoor_poi_lnull","type":"symbol","source":"Indoor","source-layer":"indoor_poi","minzoom":16,"interactive":true,"filter":["all",["==","$type","Point"],["in","LEVEL_ID","","G001"]],"layout":{"text-size":13,"text-allow-overlap":false,"symbol-avoid-edges":true,"text-optional":false,"text-ignore-placement":false,"text-max-width":7,"text-font":["Open Sans Regular"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{LBL_NME}"},"paint":{"text-color":"#a45e25","text-halo-color":"#fff","text-halo-width":0.6}},{"id":"indoor_SHPMAL","type":"symbol","source":"Indoor","source-layer":"indoor_poi","interactive":true,"filter":["all",["==","$type","Point"],["in","CAT_CODE","HOTPRE","COMEXB","RCN","SHPMAL"]],"layout":{"text-size":14,"text-optional":false,"icon-optional":true,"text-allow-overlap":false,"symbol-avoid-edges":true,"icon-allow-overlap":false,"text-max-width":7,"icon-image":{"property":"CAT_CODE","type":"categorical","stops":[["SHPMAL","market"],["HOTPRE","hotel_22x22-01"],["RCN","common_grey"],["COMEXB","common"]]},"text-ignore-placement":false,"icon-rotation-alignment":"viewport","text-font":["Open Sans Medium"],"symbol-placement":"point","text-justify":"center","text-anchor":"top","text-offset":[0,0.7],"text-field":"{LBL_NME}"},"paint":{"text-color":{"property":"CAT_CODE","type":"categorical","stops":[["SHPMAL","#525BCD"],["HOTPRE","#0573d9"],["COMEXB","#005c53"],["RCN","#663e20"]]},"text-halo-color":"#fff","text-halo-width":1}},{"id":"worlddata_ind","type":"symbol","source":"maplabel","source-layer":"v","minzoom":1,"filter":["all",["==","c","India"]],"layout":{"text-size":{"base":1,"stops":[[2,9],[3,15],[4,12],[5,14],[8,20],[20,20]]},"text-allow-overlap":false,"text-offset":[0,1.5],"text-transform":"uppercase","symbol-avoid-edges":false,"text-font":["Open Sans Bold"],"symbol-placement":"point","text-letter-spacing":0.8,"text-anchor":"center","visibility":"visible","text-field":"{c}","text-max-width":10},"paint":{"text-color":"#000","text-opacity":{"base":1,"stops":[[2,1],[3,0.9],[4,0.8],[6,0.8],[10,0]]},"text-halo-color":"#FFF","text-halo-width":1.2}}],"created":"2020-09","modified":"2020-09"}',_1msat='{}';}catch(e){console.warn(e);}/*Copyright(c)2020,MapLibre*//* @v2.1.9*/(function (global, factory) {typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :typeof define === 'function' && define.amd ? define(factory) :(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.mapplsgl = factory());})(this, (function () { 'use strict';/* eslint-disable */var shared, worker, maplibregl;function define(_, chunk) { if (!shared) { shared = chunk; } else if (!worker) { worker = chunk; } else { var workerBundleString = 'var sharedChunk = {}; (' + shared + ')(sharedChunk); (' + worker + ')(sharedChunk);'; var sharedChunk = {}; shared(sharedChunk); maplibregl = chunk(sharedChunk); if (typeof window !== 'undefined') { maplibregl.workerUrl = window.URL.createObjectURL(new Blob([workerBundleString], { type: 'text/javascript' })); } }}define(["exports"],(function(t){"use strict";var e=r;function r(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=e,this.p2x=r,this.p2y=n;}function n(t,r,n,i){const s=new e(t,r,n,i);return function(t){return s.solve(t)}}r.prototype={sampleCurveX:function(t){return ((this.ax*t+this.bx)*t+this.cx)*t},sampleCurveY:function(t){return ((this.ay*t+this.by)*t+this.cy)*t},sampleCurveDerivativeX:function(t){return (3*this.ax*t+2*this.bx)*t+this.cx},solveCurveX:function(t,e){if(void 0===e&&(e=1e-6),t<0)return 0;if(t>1)return 1;for(var r=t,n=0;n<8;n++){var i=this.sampleCurveX(r)-t;if(Math.abs(i)<e)return r;var s=this.sampleCurveDerivativeX(r);if(Math.abs(s)<1e-6)break;r-=i/s;}var a=0,o=1;for(r=t,n=0;n<20&&(i=this.sampleCurveX(r),!(Math.abs(i-t)<e));n++)t>i?a=r:o=r,r=.5*(o-a)+a;return r},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};const i=n(.25,.1,.25,1);function s(t,e,r){return Math.min(r,Math.max(e,t))}function a(t,e,r){const n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function o(t,...e){for(const r of e)for(const e in r)t[e]=r[e];return t}let l=1;function u(t,e){t.forEach((t=>{e[t]&&(e[t]=e[t].bind(e));}));}function c(t,e,r){const n={};for(const i in t)n[i]=e.call(r||this,t[i],i,t);return n}function h(t,e,r){const n={};for(const i in t)e.call(r||this,t[i],i,t)&&(n[i]=t[i]);return n}function p(t){return Array.isArray(t)?t.map(p):"object"==typeof t&&t?c(t,p):t}const f={};function d(t){f[t]||("undefined"!=typeof console&&console.warn(t),f[t]=!0);}function y(t,e,r){return (r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function m(t){let e=0;for(let r,n,i=0,s=t.length,a=s-1;i<s;a=i++)r=t[i],n=t[a],e+=(n.x-r.x)*(r.y+n.y);return e}function g(){return "undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function x(t){const e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((t,r,n,i)=>{const s=n||i;return e[r]=!s||s.toLowerCase(),""})),e["max-age"]){const t=parseInt(e["max-age"],10);isNaN(t)?delete e["max-age"]:e["max-age"]=t;}return e}let v,b,w=null;function _(t){if(null==w){const e=t.navigator?t.navigator.userAgent:null;w=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")));}return w}function A(t){return "undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap}const k={now:"undefined"!=typeof performance&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frame(t){const e=requestAnimationFrame(t);return {cancel:()=>cancelAnimationFrame(e)}},getImageData(t,e=0){const r=window.document.createElement("canvas"),n=r.getContext("2d");if(!n)throw new Error("failed to create canvas 2d context");return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:t=>(v||(v=document.createElement("a")),v.href=t,v.href),hardwareConcurrency:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return !!matchMedia&&(null==b&&(b=matchMedia("(prefers-reduced-motion: reduce)")),b.matches)}};var S=z;function z(t,e){this.x=t,this.y=e;}z.prototype={clone:function(){return new z(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-n*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},z.convert=function(t){return t instanceof z?t:Array.isArray(t)?new z(t[0],t[1]):t};const I={MAX_PARALLEL_IMAGE_REQUESTS:16,REGISTERED_PROTOCOLS:{}},M="mapbox-tiles";let B,C,P=500,V=50;function E(){"undefined"==typeof caches||B||(B=caches.open(M));}let F=1/0;const T={supported:!1,testSupport:function(t){!$&&D&&(R?U(t):L=t);}};let L,D,$=!1,R=!1;function U(t){const e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,D),t.isContextLost())return;T.supported=!0;}catch(t){}t.deleteTexture(e),$=!0;}"undefined"!=typeof document&&(D=document.createElement("img"),D.onload=function(){L&&U(L),L=null,R=!0;},D.onerror=function(){$=!0,L=null;},D.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const O={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(O);class q extends Error{constructor(t,e,r,n){super(`AJAXError: ${e} (${t}): ${r}`),this.status=t,this.statusText=e,this.url=r,this.body=n;}}const j=g()?()=>self.worker&&self.worker.referrer:()=>("blob:"===window.location.protocol?window.parent:window).location.href;function N(t,e){const r=new AbortController,n=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:j(),signal:r.signal});let i=!1,s=!1;"json"===t.type&&n.headers.set("Accept","application/json");return ((r,a,o)=>{if(s)return;const l=Date.now();fetch(n).then((r=>r.ok?((r,a,o)=>{("arrayBuffer"===t.type?r.arrayBuffer():"json"===t.type?r.json():r.text()).then((t=>{s||(a&&o&&function(t,e,r){if(E(),!B)return;const n={status:e.status,statusText:e.statusText,headers:new Headers};e.headers.forEach(((t,e)=>n.headers.set(e,t)));const i=x(e.headers.get("Cache-Control")||"");i["no-store"]||(i["max-age"]&&n.headers.set("Expires",new Date(r+1e3*i["max-age"]).toUTCString()),new Date(n.headers.get("Expires")).getTime()-r<42e4||function(t,e){if(void 0===C)try{new Response(new ReadableStream),C=!0;}catch(t){C=!1;}C?e(t.body):t.blob().then(e);}(e,(e=>{const r=new Response(e,n);E(),B&&B.then((e=>e.put(function(t){const e=t.indexOf("?");return e<0?t:t.slice(0,e)}(t.url),r))).catch((t=>d(t.message)));})));}(n,a,o),i=!0,e(null,t,r.headers.get("Cache-Control"),r.headers.get("Expires")));})).catch((t=>{s||e(new Error(t.message));}));})(r,null,l):r.blob().then((n=>e(new q(r.status,r.statusText,t.url,n)))))).catch((t=>{20!==t.code&&e(new Error(t.message));}));})(),{cancel:()=>{s=!0,i||r.abort();}}}const K=function(t,e){if(/:\/\//.test(t.url)&&!/^https?:|^file:/.test(t.url)){if(g()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e);if(!g()){const r=t.url.substring(0,t.url.indexOf("://"));return (I.REGISTERED_PROTOCOLS[r]||N)(t,e)}}if(!(/^file:/.test(r=t.url)||/^file:/.test(j())&&!/^\w+:/.test(r))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return N(t,e);if(g()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var r;return function(t,e){const r=new XMLHttpRequest;r.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(r.responseType="arraybuffer");for(const e in t.headers)r.setRequestHeader(e,t.headers[e]);return "json"===t.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===t.credentials,r.onerror=()=>{e(new Error(r.statusText));},r.onload=()=>{if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){let n=r.response;if("json"===t.type)try{n=JSON.parse(r.response);}catch(t){return e(t)}e(null,n,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"));}else {const n=new Blob([r.response],{type:r.getResponseHeader("Content-Type")});e(new q(r.status,r.statusText,t.url,n));}},r.send(t.body),{cancel:()=>r.abort()}}(t,e)},Z=function(t,e){return K(o(t,{type:"arrayBuffer"}),e)};function G(t){const e=window.document.createElement("a");return e.href=t,e.protocol===window.document.location.protocol&&e.host===window.document.location.host}const J="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let X,Y;X=[],Y=0;const H=function(t,e){if(T.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),Y>=I.MAX_PARALLEL_IMAGE_REQUESTS){const r={requestParameters:t,callback:e,cancelled:!1,cancel(){this.cancelled=!0;}};return X.push(r),r}Y++;let r=!1;const n=()=>{if(!r)for(r=!0,Y--;X.length&&Y<I.MAX_PARALLEL_IMAGE_REQUESTS;){const t=X.shift(),{requestParameters:e,callback:r,cancelled:n}=t;n||(t.cancel=H(e,r).cancel);}},i=Z(t,((t,r,i,s)=>{n(),t?e(t):r&&function(t,e){"function"==typeof createImageBitmap?function(t,e){const r=new Blob([new Uint8Array(t)],{type:"image/png"});createImageBitmap(r).then((t=>{e(null,t);})).catch((t=>{e(new Error(`Could not load image because of ${t.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`));}));}(t,e):function(t,e){const r=new Image;r.onload=()=>{e(null,r),URL.revokeObjectURL(r.src),r.onload=null,window.requestAnimationFrame((()=>{r.src=J;}));},r.onerror=()=>e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const n=new Blob([new Uint8Array(t)],{type:"image/png"});r.src=t.byteLength?URL.createObjectURL(n):J;}(t,e);}(r,((t,r)=>{null!=t?e(t):null!=r&&e(null,r,{cacheControl:i,expires:s});}));}));return {cancel:()=>{i.cancel(),n();}}};function W(t,e,r){r[t]&&-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e));}function Q(t,e,r){if(r&&r[t]){const n=r[t].indexOf(e);-1!==n&&r[t].splice(n,1);}}class tt{constructor(t,e={}){o(this,e),this.type=t;}}class et extends tt{constructor(t,e={}){super("error",o({error:t},e));}}class rt{on(t,e){return this._listeners=this._listeners||{},W(t,e,this._listeners),this}off(t,e){return Q(t,e,this._listeners),Q(t,e,this._oneTimeListeners),this}once(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},W(t,e,this._oneTimeListeners),this}fire(t,e){"string"==typeof t&&(t=new tt(t,e||{}));const r=t.type;if(this.listens(r)){t.target=this;const e=this._listeners&&this._listeners[r]?this._listeners[r].slice():[];for(const r of e)r.call(this,t);const n=this._oneTimeListeners&&this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];for(const e of n)Q(r,e,this._oneTimeListeners),e.call(this,t);const i=this._eventedParent;i&&(o(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),i.fire(t));}else t instanceof et&&console.error(t.error);return this}listens(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}}var nt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};class it{constructor(t,e,r,n){this.message=(t?`${t}: `:"")+r,n&&(this.identifier=n),null!=e&&e.__line__&&(this.line=e.__line__);}}function st(t){const e=t.value;return e?[new it(t.key,e,"constants have been deprecated as of v8")]:[]}function at(t,...e){for(const r of e)for(const e in r)t[e]=r[e];return t}function ot(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function lt(t){if(Array.isArray(t))return t.map(lt);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){const e={};for(const r in t)e[r]=lt(t[r]);return e}return ot(t)}class ut extends Error{constructor(t,e){super(e),this.message=e,this.key=t;}}class ct{constructor(t,e=[]){this.parent=t,this.bindings={};for(const[t,r]of e)this.bindings[t]=r;}concat(t){return new ct(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(`${t} not found in scope.`)}has(t){return !!this.bindings[t]||!!this.parent&&this.parent.has(t)}}const ht={kind:"null"},pt={kind:"number"},ft={kind:"string"},dt={kind:"boolean"},yt={kind:"color"},mt={kind:"object"},gt={kind:"value"},xt={kind:"collator"},vt={kind:"formatted"},bt={kind:"resolvedImage"};function wt(t,e){return {kind:"array",itemType:t,N:e}}function _t(t){if("array"===t.kind){const e=_t(t.itemType);return "number"==typeof t.N?`array<${e}, ${t.N}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}const At=[ht,pt,ft,dt,yt,vt,mt,wt(gt),bt];function kt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!kt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else {if(t.kind===e.kind)return null;if("value"===t.kind)for(const t of At)if(!kt(t,e))return null}return `Expected ${_t(t)} but found ${_t(e)} instead.`}function St(t,e){return e.some((e=>e.kind===t.kind))}function zt(t,e){return e.some((e=>"null"===e?null===t:"array"===e?Array.isArray(t):"object"===e?t&&!Array.isArray(t)&&"object"==typeof t:e===typeof t))}var It,Mt={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Bt(t){return (t=Math.round(t))<0?0:t>255?255:t}function Ct(t){return Bt("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function Pt(t){return (e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e;}function Vt(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{It={}.parseCSSColor=function(t){var e,r=t.replace(/ /g,"").toLowerCase();if(r in Mt)return Mt[r].slice();if("#"===r[0])return 4===r.length?(e=parseInt(r.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===r.length&&(e=parseInt(r.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var n=r.indexOf("("),i=r.indexOf(")");if(-1!==n&&i+1===r.length){var s=r.substr(0,n),a=r.substr(n+1,i-(n+1)).split(","),o=1;switch(s){case"rgba":if(4!==a.length)return null;o=Pt(a.pop());case"rgb":return 3!==a.length?null:[Ct(a[0]),Ct(a[1]),Ct(a[2]),o];case"hsla":if(4!==a.length)return null;o=Pt(a.pop());case"hsl":if(3!==a.length)return null;var l=(parseFloat(a[0])%360+360)%360/360,u=Pt(a[1]),c=Pt(a[2]),h=c<=.5?c*(u+1):c+u-c*u,p=2*c-h;return [Bt(255*Vt(p,h,l+1/3)),Bt(255*Vt(p,h,l)),Bt(255*Vt(p,h,l-1/3)),o];default:return null}}return null};}catch(t){}class Et{constructor(t,e,r,n=1){this.r=t,this.g=e,this.b=r,this.a=n;}static parse(t){if(!t)return;if(t instanceof Et)return t;if("string"!=typeof t)return;const e=It(t);return e?new Et(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3]):void 0}toString(){const[t,e,r,n]=this.toArray();return `rgba(${Math.round(t)},${Math.round(e)},${Math.round(r)},${n})`}toArray(){const{r:t,g:e,b:r,a:n}=this;return 0===n?[0,0,0,0]:[255*t/n,255*e/n,255*r/n,n]}}Et.black=new Et(0,0,0,1),Et.white=new Et(1,1,1,1),Et.transparent=new Et(0,0,0,0),Et.red=new Et(1,0,0,1);class Ft{constructor(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"});}compare(t,e){return this.collator.compare(t,e)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Tt{constructor(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i;}}class Lt{constructor(t){this.sections=t;}static fromString(t){return new Lt([new Tt(t,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((t=>0!==t.text.length||t.image&&0!==t.image.name.length))}static factory(t){return t instanceof Lt?t:Lt.fromString(t)}toString(){return 0===this.sections.length?"":this.sections.map((t=>t.text)).join("")}serialize(){const t=["format"];for(const e of this.sections){if(e.image){t.push(["image",e.image.name]);continue}t.push(e.text);const r={};e.fontStack&&(r["text-font"]=["literal",e.fontStack.split(",")]),e.scale&&(r["font-scale"]=e.scale),e.textColor&&(r["text-color"]=["rgba"].concat(e.textColor.toArray())),t.push(r);}return t}}class Dt{constructor(t){this.name=t.name,this.available=t.available;}toString(){return this.name}static fromString(t){return t?new Dt({name:t,available:!1}):null}serialize(){return ["image",this.name]}}function $t(t,e,r,n){return "number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:`Invalid rgba value [${[t,e,r,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof n?[t,e,r,n]:[t,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Rt(t){if(null===t)return !0;if("string"==typeof t)return !0;if("boolean"==typeof t)return !0;if("number"==typeof t)return !0;if(t instanceof Et)return !0;if(t instanceof Ft)return !0;if(t instanceof Lt)return !0;if(t instanceof Dt)return !0;if(Array.isArray(t)){for(const e of t)if(!Rt(e))return !1;return !0}if("object"==typeof t){for(const e in t)if(!Rt(t[e]))return !1;return !0}return !1}function Ut(t){if(null===t)return ht;if("string"==typeof t)return ft;if("boolean"==typeof t)return dt;if("number"==typeof t)return pt;if(t instanceof Et)return yt;if(t instanceof Ft)return xt;if(t instanceof Lt)return vt;if(t instanceof Dt)return bt;if(Array.isArray(t)){const e=t.length;let r;for(const e of t){const t=Ut(e);if(r){if(r===t)continue;r=gt;break}r=t;}return wt(r||gt,e)}return mt}function Ot(t){const e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Et||t instanceof Lt||t instanceof Dt?t.toString():JSON.stringify(t)}class qt{constructor(t,e){this.type=t,this.value=e;}static parse(t,e){if(2!==t.length)return e.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!Rt(t[1]))return e.error("invalid value");const r=t[1];let n=Ut(r);const i=e.expectedType;return "array"!==n.kind||0!==n.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(n=i),new qt(n,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return !0}serialize(){return "array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Et?["rgba"].concat(this.value.toArray()):this.value instanceof Lt?this.value.serialize():this.value}}class jt{constructor(t){this.name="ExpressionEvaluationError",this.message=t;}toJSON(){return this.message}}const Nt={string:ft,number:pt,boolean:dt,object:mt};class Kt{constructor(t,e){this.type=t,this.args=e;}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");let r,n=1;const i=t[0];if("array"===i){let i,s;if(t.length>2){const r=t[1];if("string"!=typeof r||!(r in Nt)||"object"===r)return e.error('The item type argument of "array" must be one of string, number, boolean',1);i=Nt[r],n++;}else i=gt;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);s=t[2],n++;}r=wt(i,s);}else r=Nt[i];const s=[];for(;n<t.length;n++){const r=e.parse(t[n],n,gt);if(!r)return null;s.push(r);}return new Kt(r,s)}evaluate(t){for(let e=0;e<this.args.length;e++){const r=this.args[e].evaluate(t);if(!kt(this.type,Ut(r)))return r;if(e===this.args.length-1)throw new jt(`Expected value to be of type ${_t(this.type)}, but found ${_t(Ut(r))} instead.`)}return null}eachChild(t){this.args.forEach(t);}outputDefined(){return this.args.every((t=>t.outputDefined()))}serialize(){const t=this.type,e=[t.kind];if("array"===t.kind){const r=t.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){e.push(r.kind);const n=t.N;("number"==typeof n||this.args.length>1)&&e.push(n);}}return e.concat(this.args.map((t=>t.serialize())))}}class Zt{constructor(t){this.type=vt,this.sections=t;}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");const r=t[1];if(!Array.isArray(r)&&"object"==typeof r)return e.error("First argument must be an image or text section.");const n=[];let i=!1;for(let r=1;r<=t.length-1;++r){const s=t[r];if(i&&"object"==typeof s&&!Array.isArray(s)){i=!1;let t=null;if(s["font-scale"]&&(t=e.parse(s["font-scale"],1,pt),!t))return null;let r=null;if(s["text-font"]&&(r=e.parse(s["text-font"],1,wt(ft)),!r))return null;let a=null;if(s["text-color"]&&(a=e.parse(s["text-color"],1,yt),!a))return null;const o=n[n.length-1];o.scale=t,o.font=r,o.textColor=a;}else {const s=e.parse(t[r],1,gt);if(!s)return null;const a=s.type.kind;if("string"!==a&&"value"!==a&&"null"!==a&&"resolvedImage"!==a)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:s,scale:null,font:null,textColor:null});}}return new Zt(n)}evaluate(t){return new Lt(this.sections.map((e=>{const r=e.content.evaluate(t);return Ut(r)===bt?new Tt("",r,null,null,null):new Tt(Ot(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))}eachChild(t){for(const e of this.sections)t(e.content),e.scale&&t(e.scale),e.font&&t(e.font),e.textColor&&t(e.textColor);}outputDefined(){return !1}serialize(){const t=["format"];for(const e of this.sections){t.push(e.content.serialize());const r={};e.scale&&(r["font-scale"]=e.scale.serialize()),e.font&&(r["text-font"]=e.font.serialize()),e.textColor&&(r["text-color"]=e.textColor.serialize()),t.push(r);}return t}}class Gt{constructor(t){this.type=bt,this.input=t;}static parse(t,e){if(2!==t.length)return e.error("Expected two arguments.");const r=e.parse(t[1],1,ft);return r?new Gt(r):e.error("No image name provided.")}evaluate(t){const e=this.input.evaluate(t),r=Dt.fromString(e);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(e)>-1),r}eachChild(t){t(this.input);}outputDefined(){return !1}serialize(){return ["image",this.input.serialize()]}}const Jt={"to-boolean":dt,"to-color":yt,"to-number":pt,"to-string":ft};class Xt{constructor(t,e){this.type=t,this.args=e;}static parse(t,e){if(t.length<2)return e.error("Expected at least one argument.");const r=t[0];if(("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");const n=Jt[r],i=[];for(let r=1;r<t.length;r++){const n=e.parse(t[r],r,gt);if(!n)return null;i.push(n);}return new Xt(n,i)}evaluate(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){let e,r;for(const n of this.args){if(e=n.evaluate(t),r=null,e instanceof Et)return e;if("string"==typeof e){const r=t.parseColor(e);if(r)return r}else if(Array.isArray(e)&&(r=e.length<3||e.length>4?`Invalid rbga value ${JSON.stringify(e)}: expected an array containing either three or four numeric values.`:$t(e[0],e[1],e[2],e[3]),!r))return new Et(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new jt(r||`Could not parse color from value '${"string"==typeof e?e:String(JSON.stringify(e))}'`)}if("number"===this.type.kind){let e=null;for(const r of this.args){if(e=r.evaluate(t),null===e)return 0;const n=Number(e);if(!isNaN(n))return n}throw new jt(`Could not convert ${JSON.stringify(e)} to number.`)}return "formatted"===this.type.kind?Lt.fromString(Ot(this.args[0].evaluate(t))):"resolvedImage"===this.type.kind?Dt.fromString(Ot(this.args[0].evaluate(t))):Ot(this.args[0].evaluate(t))}eachChild(t){this.args.forEach(t);}outputDefined(){return this.args.every((t=>t.outputDefined()))}serialize(){if("formatted"===this.type.kind)return new Zt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Gt(this.args[0]).serialize();const t=[`to-${this.type.kind}`];return this.eachChild((e=>{t.push(e.serialize());})),t}}const Yt=["Unknown","Point","LineString","Polygon"];class Ht{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null;}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Yt[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Et.parse(t)),e}}class Wt{constructor(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n;}evaluate(t){return this._evaluate(t,this.args)}eachChild(t){this.args.forEach(t);}outputDefined(){return !1}serialize(){return [this.name].concat(this.args.map((t=>t.serialize())))}static parse(t,e){const r=t[0],n=Wt.definitions[r];if(!n)return e.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);const i=Array.isArray(n)?n[0]:n.type,s=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,a=s.filter((([e])=>!Array.isArray(e)||e.length===t.length-1));let o=null;for(const[n,s]of a){o=new we(e.registry,e.path,null,e.scope);const a=[];let l=!1;for(let e=1;e<t.length;e++){const r=t[e],i=Array.isArray(n)?n[e-1]:n.type,s=o.parse(r,1+a.length,i);if(!s){l=!0;break}a.push(s);}if(!l)if(Array.isArray(n)&&n.length!==a.length)o.error(`Expected ${n.length} arguments, but found ${a.length} instead.`);else {for(let t=0;t<a.length;t++){const e=Array.isArray(n)?n[t]:n.type,r=a[t];o.concat(t+1).checkSubtype(e,r.type);}if(0===o.errors.length)return new Wt(r,i,s,a)}}if(1===a.length)e.errors.push(...o.errors);else {const r=(a.length?a:s).map((([t])=>{return e=t,Array.isArray(e)?`(${e.map(_t).join(", ")})`:`(${_t(e.type)}...)`;var e;})).join(" | "),n=[];for(let r=1;r<t.length;r++){const i=e.parse(t[r],1+n.length);if(!i)return null;n.push(_t(i.type));}e.error(`Expected arguments of type ${r}, but found (${n.join(", ")}) instead.`);}return null}static register(t,e){Wt.definitions=e;for(const r in e)t[r]=Wt;}}class Qt{constructor(t,e,r){this.type=xt,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e;}static parse(t,e){if(2!==t.length)return e.error("Expected one argument.");const r=t[1];if("object"!=typeof r||Array.isArray(r))return e.error("Collator options argument must be an object.");const n=e.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,dt);if(!n)return null;const i=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,dt);if(!i)return null;let s=null;return r.locale&&(s=e.parse(r.locale,1,ft),!s)?null:new Qt(n,i,s)}evaluate(t){return new Ft(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale);}outputDefined(){return !1}serialize(){const t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]}}const te=8192;function ee(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1]);}function re(t,e){return !(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function ne(t,e){const r=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return [Math.round(r*i*te),Math.round(n*i*te)]}function ie(t,e,r){const n=t[0]-e[0],i=t[1]-e[1],s=t[0]-r[0],a=t[1]-r[1];return n*a-s*i==0&&n*s<=0&&i*a<=0}function se(t,e){let r=!1;for(let a=0,o=e.length;a<o;a++){const o=e[a];for(let e=0,a=o.length;e<a-1;e++){if(ie(t,o[e],o[e+1]))return !1;(i=o[e])[1]>(n=t)[1]!=(s=o[e+1])[1]>n[1]&&n[0]<(s[0]-i[0])*(n[1]-i[1])/(s[1]-i[1])+i[0]&&(r=!r);}}var n,i,s;return r}function ae(t,e){for(let r=0;r<e.length;r++)if(se(t,e[r]))return !0;return !1}function oe(t,e,r,n){const i=n[0]-r[0],s=n[1]-r[1],a=(t[0]-r[0])*s-i*(t[1]-r[1]),o=(e[0]-r[0])*s-i*(e[1]-r[1]);return a>0&&o<0||a<0&&o>0}function le(t,e,r){for(const u of r)for(let r=0;r<u.length-1;++r)if(0!=(o=[(a=u[r+1])[0]-(s=u[r])[0],a[1]-s[1]])[0]*(l=[(i=e)[0]-(n=t)[0],i[1]-n[1]])[1]-o[1]*l[0]&&oe(n,i,s,a)&&oe(s,a,n,i))return !0;var n,i,s,a,o,l;return !1}function ue(t,e){for(let r=0;r<t.length;++r)if(!se(t[r],e))return !1;for(let r=0;r<t.length-1;++r)if(le(t[r],t[r+1],e))return !1;return !0}function ce(t,e){for(let r=0;r<e.length;r++)if(ue(t,e[r]))return !0;return !1}function he(t,e,r){const n=[];for(let i=0;i<t.length;i++){const s=[];for(let n=0;n<t[i].length;n++){const a=ne(t[i][n],r);ee(e,a),s.push(a);}n.push(s);}return n}function pe(t,e,r){const n=[];for(let i=0;i<t.length;i++){const s=he(t[i],e,r);n.push(s);}return n}function fe(t,e,r,n){if(t[0]<r[0]||t[0]>r[2]){const e=.5*n;let i=t[0]-r[0]>e?-n:r[0]-t[0]>e?n:0;0===i&&(i=t[0]-r[2]>e?-n:r[2]-t[0]>e?n:0),t[0]+=i;}ee(e,t);}function de(t,e,r,n){const i=Math.pow(2,n.z)*te,s=[n.x*te,n.y*te],a=[];for(const n of t)for(const t of n){const n=[t.x+s[0],t.y+s[1]];fe(n,e,r,i),a.push(n);}return a}function ye(t,e,r,n){const i=Math.pow(2,n.z)*te,s=[n.x*te,n.y*te],a=[];for(const r of t){const t=[];for(const n of r){const r=[n.x+s[0],n.y+s[1]];ee(e,r),t.push(r);}a.push(t);}if(e[2]-e[0]<=i/2){(o=e)[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(const t of a)for(const n of t)fe(n,e,r,i);}var o;return a}class me{constructor(t,e){this.type=dt,this.geojson=t,this.geometries=e;}static parse(t,e){if(2!==t.length)return e.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(Rt(t[1])){const e=t[1];if("FeatureCollection"===e.type)for(let t=0;t<e.features.length;++t){const r=e.features[t].geometry.type;if("Polygon"===r||"MultiPolygon"===r)return new me(e,e.features[t].geometry)}else if("Feature"===e.type){const t=e.geometry.type;if("Polygon"===t||"MultiPolygon"===t)return new me(e,e.geometry)}else if("Polygon"===e.type||"MultiPolygon"===e.type)return new me(e,e)}return e.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,e){const r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if("Polygon"===e.type){const s=he(e.coordinates,n,i),a=de(t.geometry(),r,n,i);if(!re(r,n))return !1;for(const t of a)if(!se(t,s))return !1}if("MultiPolygon"===e.type){const s=pe(e.coordinates,n,i),a=de(t.geometry(),r,n,i);if(!re(r,n))return !1;for(const t of a)if(!ae(t,s))return !1}return !0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,e){const r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if("Polygon"===e.type){const s=he(e.coordinates,n,i),a=ye(t.geometry(),r,n,i);if(!re(r,n))return !1;for(const t of a)if(!ue(t,s))return !1}if("MultiPolygon"===e.type){const s=pe(e.coordinates,n,i),a=ye(t.geometry(),r,n,i);if(!re(r,n))return !1;for(const t of a)if(!ce(t,s))return !1}return !0}(t,this.geometries)}return !1}eachChild(){}outputDefined(){return !0}serialize(){return ["within",this.geojson]}}function ge(t){if(t instanceof Wt){if("get"===t.name&&1===t.args.length)return !1;if("feature-state"===t.name)return !1;if("has"===t.name&&1===t.args.length)return !1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return !1;if(/^filter-/.test(t.name))return !1}if(t instanceof me)return !1;let e=!0;return t.eachChild((t=>{e&&!ge(t)&&(e=!1);})),e}function xe(t){if(t instanceof Wt&&"feature-state"===t.name)return !1;let e=!0;return t.eachChild((t=>{e&&!xe(t)&&(e=!1);})),e}function ve(t,e){if(t instanceof Wt&&e.indexOf(t.name)>=0)return !1;let r=!0;return t.eachChild((t=>{r&&!ve(t,e)&&(r=!1);})),r}class be{constructor(t,e){this.type=e.type,this.name=t,this.boundExpression=e;}static parse(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");const r=t[1];return e.scope.has(r)?new be(r,e.scope.get(r)):e.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return !1}serialize(){return ["var",this.name]}}class we{constructor(t,e=[],r,n=new ct,i=[]){this.registry=t,this.path=e,this.key=e.map((t=>`[${t}]`)).join(""),this.scope=n,this.errors=i,this.expectedType=r;}parse(t,e,r,n,i={}){return e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)}_parse(t,e){function r(t,e,r){return "assert"===r?new Kt(e,[t]):"coerce"===r?new Xt(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const n=t[0];if("string"!=typeof n)return this.error(`Expression name must be a string, but found ${typeof n} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const i=this.registry[n];if(i){let n=i.parse(t,this);if(!n)return null;if(this.expectedType){const t=this.expectedType,i=n.type;if("string"!==t.kind&&"number"!==t.kind&&"boolean"!==t.kind&&"object"!==t.kind&&"array"!==t.kind||"value"!==i.kind)if("color"!==t.kind&&"formatted"!==t.kind&&"resolvedImage"!==t.kind||"value"!==i.kind&&"string"!==i.kind){if(this.checkSubtype(t,i))return null}else n=r(n,t,e.typeAnnotation||"coerce");else n=r(n,t,e.typeAnnotation||"assert");}if(!(n instanceof qt)&&"resolvedImage"!==n.type.kind&&_e(n)){const t=new Ht;try{n=new qt(n.type,n.evaluate(t));}catch(t){return this.error(t.message),null}}return n}return this.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof t} instead.`)}concat(t,e,r){const n="number"==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new we(this.registry,n,e||null,i,this.errors)}error(t,...e){const r=`${this.key}${e.map((t=>`[${t}]`)).join("")}`;this.errors.push(new ut(r,t));}checkSubtype(t,e){const r=kt(t,e);return r&&this.error(r),r}}function _e(t){if(t instanceof be)return _e(t.boundExpression);if(t instanceof Wt&&"error"===t.name)return !1;if(t instanceof Qt)return !1;if(t instanceof me)return !1;const e=t instanceof Xt||t instanceof Kt;let r=!0;return t.eachChild((t=>{r=e?r&&_e(t):r&&t instanceof qt;})),!!r&&ge(t)&&ve(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Ae(t,e){const r=t.length-1;let n,i,s=0,a=r,o=0;for(;s<=a;)if(o=Math.floor((s+a)/2),n=t[o],i=t[o+1],n<=e){if(o===r||e<i)return o;s=o+1;}else {if(!(n>e))throw new jt("Input is not a number.");a=o-1;}return 0}class ke{constructor(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(const[t,e]of r)this.labels.push(t),this.outputs.push(e);}static parse(t,e){if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");const r=e.parse(t[1],1,pt);if(!r)return null;const n=[];let i=null;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(let r=1;r<t.length;r+=2){const s=1===r?-1/0:t[r],a=t[r+1],o=r,l=r+1;if("number"!=typeof s)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',o);if(n.length&&n[n.length-1][0]>=s)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',o);const u=e.parse(a,l,i);if(!u)return null;i=i||u.type,n.push([s,u]);}return new ke(i,r,n)}evaluate(t){const e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);const n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);const i=e.length;return n>=e[i-1]?r[i-1].evaluate(t):r[Ae(e,n)].evaluate(t)}eachChild(t){t(this.input);for(const e of this.outputs)t(e);}outputDefined(){return this.outputs.every((t=>t.outputDefined()))}serialize(){const t=["step",this.input.serialize()];for(let e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t}}function Se(t,e,r){return t*(1-r)+e*r}var ze=Object.freeze({__proto__:null,number:Se,color:function(t,e,r){return new Et(Se(t.r,e.r,r),Se(t.g,e.g,r),Se(t.b,e.b,r),Se(t.a,e.a,r))},array:function(t,e,r){return t.map(((t,n)=>Se(t,e[n],r)))}});const Ie=.95047,Me=1.08883,Be=4/29,Ce=6/29,Pe=3*Ce*Ce,Ve=Math.PI/180,Ee=180/Math.PI;function Fe(t){return t>.008856451679035631?Math.pow(t,1/3):t/Pe+Be}function Te(t){return t>Ce?t*t*t:Pe*(t-Be)}function Le(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function De(t){return (t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $e(t){const e=De(t.r),r=De(t.g),n=De(t.b),i=Fe((.4124564*e+.3575761*r+.1804375*n)/Ie),s=Fe((.2126729*e+.7151522*r+.072175*n)/1);return {l:116*s-16,a:500*(i-s),b:200*(s-Fe((.0193339*e+.119192*r+.9503041*n)/Me)),alpha:t.a}}function Re(t){let e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*Te(e),r=Ie*Te(r),n=Me*Te(n),new Et(Le(3.2404542*r-1.5371385*e-.4985314*n),Le(-.969266*r+1.8760108*e+.041556*n),Le(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function Ue(t,e,r){const n=e-t;return t+r*(n>180||n<-180?n-360*Math.round(n/360):n)}const Oe={forward:$e,reverse:Re,interpolate:function(t,e,r){return {l:Se(t.l,e.l,r),a:Se(t.a,e.a,r),b:Se(t.b,e.b,r),alpha:Se(t.alpha,e.alpha,r)}}},qe={forward:function(t){const{l:e,a:r,b:n}=$e(t),i=Math.atan2(n,r)*Ee;return {h:i<0?i+360:i,c:Math.sqrt(r*r+n*n),l:e,alpha:t.a}},reverse:function(t){const e=t.h*Ve,r=t.c;return Re({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return {h:Ue(t.h,e.h,r),c:Se(t.c,e.c,r),l:Se(t.l,e.l,r),alpha:Se(t.alpha,e.alpha,r)}}};var je=Object.freeze({__proto__:null,lab:Oe,hcl:qe});class Ne{constructor(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(const[t,e]of i)this.labels.push(t),this.outputs.push(e);}static interpolationFactor(t,r,n,i){let s=0;if("exponential"===t.name)s=Ke(r,t.base,n,i);else if("linear"===t.name)s=Ke(r,1,n,i);else if("cubic-bezier"===t.name){const a=t.controlPoints;s=new e(a[0],a[1],a[2],a[3]).solve(Ke(r,1,n,i));}return s}static parse(t,e){let[r,n,i,...s]=t;if(!Array.isArray(n)||0===n.length)return e.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){const t=n[1];if("number"!=typeof t)return e.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:t};}else {if("cubic-bezier"!==n[0])return e.error(`Unknown interpolation type ${String(n[0])}`,1,0);{const t=n.slice(1);if(4!==t.length||t.some((t=>"number"!=typeof t||t<0||t>1)))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:t};}}if(t.length-1<4)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(i=e.parse(i,2,pt),!i)return null;const a=[];let o=null;"interpolate-hcl"===r||"interpolate-lab"===r?o=yt:e.expectedType&&"value"!==e.expectedType.kind&&(o=e.expectedType);for(let t=0;t<s.length;t+=2){const r=s[t],n=s[t+1],i=t+3,l=t+4;if("number"!=typeof r)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',i);if(a.length&&a[a.length-1][0]>=r)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);const u=e.parse(n,l,o);if(!u)return null;o=o||u.type,a.push([r,u]);}return "number"===o.kind||"color"===o.kind||"array"===o.kind&&"number"===o.itemType.kind&&"number"==typeof o.N?new Ne(o,r,n,i,a):e.error(`Type ${_t(o)} is not interpolatable.`)}evaluate(t){const e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);const n=this.input.evaluate(t);if(n<=e[0])return r[0].evaluate(t);const i=e.length;if(n>=e[i-1])return r[i-1].evaluate(t);const s=Ae(e,n),a=Ne.interpolationFactor(this.interpolation,n,e[s],e[s+1]),o=r[s].evaluate(t),l=r[s+1].evaluate(t);return "interpolate"===this.operator?ze[this.type.kind.toLowerCase()](o,l,a):"interpolate-hcl"===this.operator?qe.reverse(qe.interpolate(qe.forward(o),qe.forward(l),a)):Oe.reverse(Oe.interpolate(Oe.forward(o),Oe.forward(l),a))}eachChild(t){t(this.input);for(const e of this.outputs)t(e);}outputDefined(){return this.outputs.every((t=>t.outputDefined()))}serialize(){let t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const e=[this.operator,t,this.input.serialize()];for(let t=0;t<this.labels.length;t++)e.push(this.labels[t],this.outputs[t].serialize());return e}}function Ke(t,e,r,n){const i=n-r,s=t-r;return 0===i?0:1===e?s/i:(Math.pow(e,s)-1)/(Math.pow(e,i)-1)}class Ze{constructor(t,e){this.type=t,this.args=e;}static parse(t,e){if(t.length<2)return e.error("Expectected at least one argument.");let r=null;const n=e.expectedType;n&&"value"!==n.kind&&(r=n);const i=[];for(const n of t.slice(1)){const t=e.parse(n,1+i.length,r,void 0,{typeAnnotation:"omit"});if(!t)return null;r=r||t.type,i.push(t);}const s=n&&i.some((t=>kt(n,t.type)));return new Ze(s?gt:r,i)}evaluate(t){let e,r=null,n=0;for(const i of this.args)if(n++,r=i.evaluate(t),r&&r instanceof Dt&&!r.available&&(e||(e=r.name),r=null,n===this.args.length&&(r=e)),null!==r)break;return r}eachChild(t){this.args.forEach(t);}outputDefined(){return this.args.every((t=>t.outputDefined()))}serialize(){const t=["coalesce"];return this.eachChild((e=>{t.push(e.serialize());})),t}}class Ge{constructor(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e;}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(const e of this.bindings)t(e[1]);t(this.result);}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);const r=[];for(let n=1;n<t.length-1;n+=2){const i=t[n];if("string"!=typeof i)return e.error(`Expected string, but found ${typeof i} instead.`,n);if(/[^a-zA-Z0-9_]/.test(i))return e.error("Variable names must contain only alphanumeric characters or '_'.",n);const s=e.parse(t[n+1],n+1);if(!s)return null;r.push([i,s]);}const n=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return n?new Ge(r,n):null}outputDefined(){return this.result.outputDefined()}serialize(){const t=["let"];for(const[e,r]of this.bindings)t.push(e,r.serialize());return t.push(this.result.serialize()),t}}class Je{constructor(t,e,r){this.type=t,this.index=e,this.input=r;}static parse(t,e){if(3!==t.length)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const r=e.parse(t[1],1,pt),n=e.parse(t[2],2,wt(e.expectedType||gt));return r&&n?new Je(n.type.itemType,r,n):null}evaluate(t){const e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new jt(`Array index out of bounds: ${e} < 0.`);if(e>=r.length)throw new jt(`Array index out of bounds: ${e} > ${r.length-1}.`);if(e!==Math.floor(e))throw new jt(`Array index must be an integer, but found ${e} instead.`);return r[e]}eachChild(t){t(this.index),t(this.input);}outputDefined(){return !1}serialize(){return ["at",this.index.serialize(),this.input.serialize()]}}class Xe{constructor(t,e){this.type=dt,this.needle=t,this.haystack=e;}static parse(t,e){if(3!==t.length)return e.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const r=e.parse(t[1],1,gt),n=e.parse(t[2],2,gt);return r&&n?St(r.type,[dt,ft,pt,ht,gt])?new Xe(r,n):e.error(`Expected first argument to be of type boolean, string, number or null, but found ${_t(r.type)} instead`):null}evaluate(t){const e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return !1;if(!zt(e,["boolean","string","number","null"]))throw new jt(`Expected first argument to be of type boolean, string, number or null, but found ${_t(Ut(e))} instead.`);if(!zt(r,["string","array"]))throw new jt(`Expected second argument to be of type array or string, but found ${_t(Ut(r))} instead.`);return r.indexOf(e)>=0}eachChild(t){t(this.needle),t(this.haystack);}outputDefined(){return !0}serialize(){return ["in",this.needle.serialize(),this.haystack.serialize()]}}class Ye{constructor(t,e,r){this.type=pt,this.needle=t,this.haystack=e,this.fromIndex=r;}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const r=e.parse(t[1],1,gt),n=e.parse(t[2],2,gt);if(!r||!n)return null;if(!St(r.type,[dt,ft,pt,ht,gt]))return e.error(`Expected first argument to be of type boolean, string, number or null, but found ${_t(r.type)} instead`);if(4===t.length){const i=e.parse(t[3],3,pt);return i?new Ye(r,n,i):null}return new Ye(r,n)}evaluate(t){const e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!zt(e,["boolean","string","number","null"]))throw new jt(`Expected first argument to be of type boolean, string, number or null, but found ${_t(Ut(e))} instead.`);if(!zt(r,["string","array"]))throw new jt(`Expected second argument to be of type array or string, but found ${_t(Ut(r))} instead.`);if(this.fromIndex){const n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex);}outputDefined(){return !1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const t=this.fromIndex.serialize();return ["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return ["index-of",this.needle.serialize(),this.haystack.serialize()]}}class He{constructor(t,e,r,n,i,s){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=s;}static parse(t,e){if(t.length<5)return e.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return e.error("Expected an even number of arguments.");let r,n;e.expectedType&&"value"!==e.expectedType.kind&&(n=e.expectedType);const i={},s=[];for(let a=2;a<t.length-1;a+=2){let o=t[a];const l=t[a+1];Array.isArray(o)||(o=[o]);const u=e.concat(a);if(0===o.length)return u.error("Expected at least one branch label.");for(const t of o){if("number"!=typeof t&&"string"!=typeof t)return u.error("Branch labels must be numbers or strings.");if("number"==typeof t&&Math.abs(t)>Number.MAX_SAFE_INTEGER)return u.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof t&&Math.floor(t)!==t)return u.error("Numeric branch labels must be integer values.");if(r){if(u.checkSubtype(r,Ut(t)))return null}else r=Ut(t);if(void 0!==i[String(t)])return u.error("Branch labels must be unique.");i[String(t)]=s.length;}const c=e.parse(l,a,n);if(!c)return null;n=n||c.type,s.push(c);}const a=e.parse(t[1],1,gt);if(!a)return null;const o=e.parse(t[t.length-1],t.length-1,n);return o?"value"!==a.type.kind&&e.concat(1).checkSubtype(r,a.type)?null:new He(r,n,a,i,s,o):null}evaluate(t){const e=this.input.evaluate(t);return (Ut(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise);}outputDefined(){return this.outputs.every((t=>t.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const t=["match",this.input.serialize()],e=Object.keys(this.cases).sort(),r=[],n={};for(const t of e){const e=n[this.cases[t]];void 0===e?(n[this.cases[t]]=r.length,r.push([this.cases[t],[t]])):r[e][1].push(t);}const i=t=>"number"===this.inputType.kind?Number(t):t;for(const[e,n]of r)t.push(1===n.length?i(n[0]):n.map(i)),t.push(this.outputs[e].serialize());return t.push(this.otherwise.serialize()),t}}class We{constructor(t,e,r){this.type=t,this.branches=e,this.otherwise=r;}static parse(t,e){if(t.length<4)return e.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return e.error("Expected an odd number of arguments.");let r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);const n=[];for(let i=1;i<t.length-1;i+=2){const s=e.parse(t[i],i,dt);if(!s)return null;const a=e.parse(t[i+1],i+1,r);if(!a)return null;n.push([s,a]),r=r||a.type;}const i=e.parse(t[t.length-1],t.length-1,r);return i?new We(r,n,i):null}evaluate(t){for(const[e,r]of this.branches)if(e.evaluate(t))return r.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(const[e,r]of this.branches)t(e),t(r);t(this.otherwise);}outputDefined(){return this.branches.every((([t,e])=>e.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const t=["case"];return this.eachChild((e=>{t.push(e.serialize());})),t}}class Qe{constructor(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n;}static parse(t,e){if(t.length<=2||t.length>=5)return e.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`);const r=e.parse(t[1],1,gt),n=e.parse(t[2],2,pt);if(!r||!n)return null;if(!St(r.type,[wt(gt),ft,gt]))return e.error(`Expected first argument to be of type array or string, but found ${_t(r.type)} instead`);if(4===t.length){const i=e.parse(t[3],3,pt);return i?new Qe(r.type,r,n,i):null}return new Qe(r.type,r,n)}evaluate(t){const e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!zt(e,["string","array"]))throw new jt(`Expected first argument to be of type array or string, but found ${_t(Ut(e))} instead.`);if(this.endIndex){const n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex);}outputDefined(){return !1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const t=this.endIndex.serialize();return ["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return ["slice",this.input.serialize(),this.beginIndex.serialize()]}}function tr(t,e){return "=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function er(t,e,r,n){return 0===n.compare(e,r)}function rr(t,e,r){const n="=="!==t&&"!="!==t;return class i{constructor(t,e,r){this.type=dt,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind;}static parse(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");const r=t[0];let s=e.parse(t[1],1,gt);if(!s)return null;if(!tr(r,s.type))return e.concat(1).error(`"${r}" comparisons are not supported for type '${_t(s.type)}'.`);let a=e.parse(t[2],2,gt);if(!a)return null;if(!tr(r,a.type))return e.concat(2).error(`"${r}" comparisons are not supported for type '${_t(a.type)}'.`);if(s.type.kind!==a.type.kind&&"value"!==s.type.kind&&"value"!==a.type.kind)return e.error(`Cannot compare types '${_t(s.type)}' and '${_t(a.type)}'.`);n&&("value"===s.type.kind&&"value"!==a.type.kind?s=new Kt(a.type,[s]):"value"!==s.type.kind&&"value"===a.type.kind&&(a=new Kt(s.type,[a])));let o=null;if(4===t.length){if("string"!==s.type.kind&&"string"!==a.type.kind&&"value"!==s.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(o=e.parse(t[3],3,xt),!o)return null}return new i(s,a,o)}evaluate(i){const s=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){const e=Ut(s),r=Ut(a);if(e.kind!==r.kind||"string"!==e.kind&&"number"!==e.kind)throw new jt(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${e.kind}, ${r.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const t=Ut(s),r=Ut(a);if("string"!==t.kind||"string"!==r.kind)return e(i,s,a)}return this.collator?r(i,s,a,this.collator.evaluate(i)):e(i,s,a)}eachChild(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator);}outputDefined(){return !0}serialize(){const e=[t];return this.eachChild((t=>{e.push(t.serialize());})),e}}}const nr=rr("==",(function(t,e,r){return e===r}),er),ir=rr("!=",(function(t,e,r){return e!==r}),(function(t,e,r,n){return !er(0,e,r,n)})),sr=rr("<",(function(t,e,r){return e<r}),(function(t,e,r,n){return n.compare(e,r)<0})),ar=rr(">",(function(t,e,r){return e>r}),(function(t,e,r,n){return n.compare(e,r)>0})),or=rr("<=",(function(t,e,r){return e<=r}),(function(t,e,r,n){return n.compare(e,r)<=0})),lr=rr(">=",(function(t,e,r){return e>=r}),(function(t,e,r,n){return n.compare(e,r)>=0}));class ur{constructor(t,e,r,n,i){this.type=ft,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i;}static parse(t,e){if(3!==t.length)return e.error("Expected two arguments.");const r=e.parse(t[1],1,pt);if(!r)return null;const n=t[2];if("object"!=typeof n||Array.isArray(n))return e.error("NumberFormat options argument must be an object.");let i=null;if(n.locale&&(i=e.parse(n.locale,1,ft),!i))return null;let s=null;if(n.currency&&(s=e.parse(n.currency,1,ft),!s))return null;let a=null;if(n["min-fraction-digits"]&&(a=e.parse(n["min-fraction-digits"],1,pt),!a))return null;let o=null;return n["max-fraction-digits"]&&(o=e.parse(n["max-fraction-digits"],1,pt),!o)?null:new ur(r,i,s,a,o)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits);}outputDefined(){return !1}serialize(){const t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]}}class cr{constructor(t){this.type=pt,this.input=t;}static parse(t,e){if(2!==t.length)return e.error(`Expected 1 argument, but found ${t.length-1} instead.`);const r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error(`Expected argument of type string or array, but found ${_t(r.type)} instead.`):new cr(r):null}evaluate(t){const e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new jt(`Expected value to be of type string or array, but found ${_t(Ut(e))} instead.`)}eachChild(t){t(this.input);}outputDefined(){return !1}serialize(){const t=["length"];return this.eachChild((e=>{t.push(e.serialize());})),t}}const hr={"==":nr,"!=":ir,">":ar,"<":sr,">=":lr,"<=":or,array:Kt,at:Je,boolean:Kt,case:We,coalesce:Ze,collator:Qt,format:Zt,image:Gt,in:Xe,"index-of":Ye,interpolate:Ne,"interpolate-hcl":Ne,"interpolate-lab":Ne,length:cr,let:Ge,literal:qt,match:He,number:Kt,"number-format":ur,object:Kt,slice:Qe,step:ke,string:Kt,"to-boolean":Xt,"to-color":Xt,"to-number":Xt,"to-string":Xt,var:be,within:me};function pr(t,[e,r,n,i]){e=e.evaluate(t),r=r.evaluate(t),n=n.evaluate(t);const s=i?i.evaluate(t):1,a=$t(e,r,n,s);if(a)throw new jt(a);return new Et(e/255*s,r/255*s,n/255*s,s)}function fr(t,e){return t in e}function dr(t,e){const r=e[t];return void 0===r?null:r}function yr(t){return {type:t}}function mr(t){return {result:"success",value:t}}function gr(t){return {result:"error",value:t}}function xr(t){return "data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function vr(t){return !!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function br(t){return !!t.expression&&t.expression.interpolated}function wr(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function _r(t){return "object"==typeof t&&null!==t&&!Array.isArray(t)}function Ar(t){return t}function kr(t,e){const r="color"===e.type,n=t.stops&&"object"==typeof t.stops[0][0],i=n||!(n||void 0!==t.property),s=t.type||(br(e)?"exponential":"interval");if(r&&((t=at({},t)).stops&&(t.stops=t.stops.map((t=>[t[0],Et.parse(t[1])]))),t.default=Et.parse(t.default?t.default:e.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!je[t.colorSpace])throw new Error(`Unknown color space: ${t.colorSpace}`);let a,o,l;if("exponential"===s)a=Mr;else if("interval"===s)a=Ir;else if("categorical"===s){a=zr,o=Object.create(null);for(const e of t.stops)o[e[0]]=e[1];l=typeof t.stops[0][0];}else {if("identity"!==s)throw new Error(`Unknown function type "${s}"`);a=Br;}if(n){const r={},n=[];for(let e=0;e<t.stops.length;e++){const i=t.stops[e],s=i[0].zoom;void 0===r[s]&&(r[s]={zoom:s,type:t.type,property:t.property,default:t.default,stops:[]},n.push(s)),r[s].stops.push([i[0].value,i[1]]);}const i=[];for(const t of n)i.push([r[t].zoom,kr(r[t],e)]);const s={name:"linear"};return {kind:"composite",interpolationType:s,interpolationFactor:Ne.interpolationFactor.bind(void 0,s),zoomStops:i.map((t=>t[0])),evaluate:({zoom:r},n)=>Mr({stops:i,base:t.base},e,r).evaluate(r,n)}}if(i){const r="exponential"===s?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return {kind:"camera",interpolationType:r,interpolationFactor:Ne.interpolationFactor.bind(void 0,r),zoomStops:t.stops.map((t=>t[0])),evaluate:({zoom:r})=>a(t,e,r,o,l)}}return {kind:"source",evaluate(r,n){const i=n&&n.properties?n.properties[t.property]:void 0;return void 0===i?Sr(t.default,e.default):a(t,e,i,o,l)}}}function Sr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function zr(t,e,r,n,i){return Sr(typeof r===i?n[r]:void 0,t.default,e.default)}function Ir(t,e,r){if("number"!==wr(r))return Sr(t.default,e.default);const n=t.stops.length;if(1===n)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];const i=Ae(t.stops.map((t=>t[0])),r);return t.stops[i][1]}function Mr(t,e,r){const n=void 0!==t.base?t.base:1;if("number"!==wr(r))return Sr(t.default,e.default);const i=t.stops.length;if(1===i)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];const s=Ae(t.stops.map((t=>t[0])),r),a=function(t,e,r,n){const i=n-r,s=t-r;return 0===i?0:1===e?s/i:(Math.pow(e,s)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[s][0],t.stops[s+1][0]),o=t.stops[s][1],l=t.stops[s+1][1];let u=ze[e.type]||Ar;if(t.colorSpace&&"rgb"!==t.colorSpace){const e=je[t.colorSpace];u=(t,r)=>e.reverse(e.interpolate(e.forward(t),e.forward(r),a));}return "function"==typeof o.evaluate?{evaluate(...t){const e=o.evaluate.apply(void 0,t),r=l.evaluate.apply(void 0,t);if(void 0!==e&&void 0!==r)return u(e,r,a)}}:u(o,l,a)}function Br(t,e,r){return "color"===e.type?r=Et.parse(r):"formatted"===e.type?r=Lt.fromString(r.toString()):"resolvedImage"===e.type?r=Dt.fromString(r.toString()):wr(r)===e.type||"enum"===e.type&&e.values[r]||(r=void 0),Sr(r,t.default,e.default)}Wt.register(hr,{error:[{kind:"error"},[ft],(t,[e])=>{throw new jt(e.evaluate(t))}],typeof:[ft,[gt],(t,[e])=>_t(Ut(e.evaluate(t)))],"to-rgba":[wt(pt,4),[yt],(t,[e])=>e.evaluate(t).toArray()],rgb:[yt,[pt,pt,pt],pr],rgba:[yt,[pt,pt,pt,pt],pr],has:{type:dt,overloads:[[[ft],(t,[e])=>fr(e.evaluate(t),t.properties())],[[ft,mt],(t,[e,r])=>fr(e.evaluate(t),r.evaluate(t))]]},get:{type:gt,overloads:[[[ft],(t,[e])=>dr(e.evaluate(t),t.properties())],[[ft,mt],(t,[e,r])=>dr(e.evaluate(t),r.evaluate(t))]]},"feature-state":[gt,[ft],(t,[e])=>dr(e.evaluate(t),t.featureState||{})],properties:[mt,[],t=>t.properties()],"geometry-type":[ft,[],t=>t.geometryType()],id:[gt,[],t=>t.id()],zoom:[pt,[],t=>t.globals.zoom],"heatmap-density":[pt,[],t=>t.globals.heatmapDensity||0],"line-progress":[pt,[],t=>t.globals.lineProgress||0],accumulated:[gt,[],t=>void 0===t.globals.accumulated?null:t.globals.accumulated],"+":[pt,yr(pt),(t,e)=>{let r=0;for(const n of e)r+=n.evaluate(t);return r}],"*":[pt,yr(pt),(t,e)=>{let r=1;for(const n of e)r*=n.evaluate(t);return r}],"-":{type:pt,overloads:[[[pt,pt],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[pt],(t,[e])=>-e.evaluate(t)]]},"/":[pt,[pt,pt],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[pt,[pt,pt],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[pt,[],()=>Math.LN2],pi:[pt,[],()=>Math.PI],e:[pt,[],()=>Math.E],"^":[pt,[pt,pt],(t,[e,r])=>Math.pow(e.evaluate(t),r.evaluate(t))],sqrt:[pt,[pt],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[pt,[pt],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[pt,[pt],(t,[e])=>Math.log(e.evaluate(t))],log2:[pt,[pt],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[pt,[pt],(t,[e])=>Math.sin(e.evaluate(t))],cos:[pt,[pt],(t,[e])=>Math.cos(e.evaluate(t))],tan:[pt,[pt],(t,[e])=>Math.tan(e.evaluate(t))],asin:[pt,[pt],(t,[e])=>Math.asin(e.evaluate(t))],acos:[pt,[pt],(t,[e])=>Math.acos(e.evaluate(t))],atan:[pt,[pt],(t,[e])=>Math.atan(e.evaluate(t))],min:[pt,yr(pt),(t,e)=>Math.min(...e.map((e=>e.evaluate(t))))],max:[pt,yr(pt),(t,e)=>Math.max(...e.map((e=>e.evaluate(t))))],abs:[pt,[pt],(t,[e])=>Math.abs(e.evaluate(t))],round:[pt,[pt],(t,[e])=>{const r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[pt,[pt],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[pt,[pt],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[dt,[ft,gt],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[dt,[gt],(t,[e])=>t.id()===e.value],"filter-type-==":[dt,[ft],(t,[e])=>t.geometryType()===e.value],"filter-<":[dt,[ft,gt],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n<i}],"filter-id-<":[dt,[gt],(t,[e])=>{const r=t.id(),n=e.value;return typeof r==typeof n&&r<n}],"filter->":[dt,[ft,gt],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n>i}],"filter-id->":[dt,[gt],(t,[e])=>{const r=t.id(),n=e.value;return typeof r==typeof n&&r>n}],"filter-<=":[dt,[ft,gt],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n<=i}],"filter-id-<=":[dt,[gt],(t,[e])=>{const r=t.id(),n=e.value;return typeof r==typeof n&&r<=n}],"filter->=":[dt,[ft,gt],(t,[e,r])=>{const n=t.properties()[e.value],i=r.value;return typeof n==typeof i&&n>=i}],"filter-id->=":[dt,[gt],(t,[e])=>{const r=t.id(),n=e.value;return typeof r==typeof n&&r>=n}],"filter-has":[dt,[gt],(t,[e])=>e.value in t.properties()],"filter-has-id":[dt,[],t=>null!==t.id()&&void 0!==t.id()],"filter-type-in":[dt,[wt(ft)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[dt,[wt(gt)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[dt,[ft,wt(gt)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[dt,[ft,wt(gt)],(t,[e,r])=>function(t,e,r,n){for(;r<=n;){const i=r+n>>1;if(e[i]===t)return !0;e[i]>t?n=i-1:r=i+1;}return !1}(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:dt,overloads:[[[dt,dt],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[yr(dt),(t,e)=>{for(const r of e)if(!r.evaluate(t))return !1;return !0}]]},any:{type:dt,overloads:[[[dt,dt],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[yr(dt),(t,e)=>{for(const r of e)if(r.evaluate(t))return !0;return !1}]]},"!":[dt,[dt],(t,[e])=>!e.evaluate(t)],"is-supported-script":[dt,[ft],(t,[e])=>{const r=t.globals&&t.globals.isSupportedScript;return !r||r(e.evaluate(t))}],upcase:[ft,[ft],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[ft,[ft],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[ft,yr(gt),(t,e)=>e.map((e=>Ot(e.evaluate(t)))).join("")],"resolved-locale":[ft,[xt],(t,[e])=>e.evaluate(t).resolvedLocale()]});class Cr{constructor(t,e){this.expression=t,this._warningHistory={},this._evaluator=new Ht,this._defaultValue=e?function(t){return "color"===t.type&&_r(t.default)?new Et(0,0,0,0):"color"===t.type?Et.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&&"enum"===e.type?e.values:null;}evaluateWithoutErrorHandling(t,e,r,n,i,s){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=s,this.expression.evaluate(this._evaluator)}evaluate(t,e,r,n,i,s){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=s||null;try{const t=this.expression.evaluate(this._evaluator);if(null==t||"number"==typeof t&&t!=t)return this._defaultValue;if(this._enumValues&&!(t in this._enumValues))throw new jt(`Expected value to be one of ${Object.keys(this._enumValues).map((t=>JSON.stringify(t))).join(", ")}, but found ${JSON.stringify(t)} instead.`);return t}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}}}function Pr(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in hr}function Vr(t,e){const r=new we(hr,[],e?function(t){const e={color:yt,string:ft,number:pt,enum:ft,boolean:dt,formatted:vt,resolvedImage:bt};return "array"===t.type?wt(e[t.value]||gt,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return n?mr(new Cr(n,e)):gr(r.errors)}class Er{constructor(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!xe(e.expression);}evaluateWithoutErrorHandling(t,e,r,n,i,s){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,s)}evaluate(t,e,r,n,i,s){return this._styleExpression.evaluate(t,e,r,n,i,s)}}class Fr{constructor(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent="camera"!==t&&!xe(e.expression),this.interpolationType=n;}evaluateWithoutErrorHandling(t,e,r,n,i,s){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,s)}evaluate(t,e,r,n,i,s){return this._styleExpression.evaluate(t,e,r,n,i,s)}interpolationFactor(t,e,r){return this.interpolationType?Ne.interpolationFactor(this.interpolationType,t,e,r):0}}function Tr(t,e){const r=Vr(t,e);if("error"===r.result)return r;const n=r.value.expression,i=ge(n);if(!i&&!xr(e))return gr([new ut("","data expressions not supported")]);const s=ve(n,["zoom"]);if(!s&&!vr(e))return gr([new ut("","zoom expressions not supported")]);const a=Dr(n);return a||s?a instanceof ut?gr([a]):a instanceof Ne&&!br(e)?gr([new ut("",'"interpolate" expressions cannot be used with this property')]):mr(a?new Fr(i?"camera":"composite",r.value,a.labels,a instanceof Ne?a.interpolation:void 0):new Er(i?"constant":"source",r.value)):gr([new ut("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Lr{constructor(t,e){this._parameters=t,this._specification=e,at(this,kr(this._parameters,this._specification));}static deserialize(t){return new Lr(t._parameters,t._specification)}static serialize(t){return {_parameters:t._parameters,_specification:t._specification}}}function Dr(t){let e=null;if(t instanceof Ge)e=Dr(t.result);else if(t instanceof Ze){for(const r of t.args)if(e=Dr(r),e)break}else (t instanceof ke||t instanceof Ne)&&t.input instanceof Wt&&"zoom"===t.input.name&&(e=t);return e instanceof ut||t.eachChild((t=>{const r=Dr(t);r instanceof ut?e=r:!e&&r?e=new ut("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&r&&e!==r&&(e=new ut("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));})),e}function $r(t){const e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},s=t.style,a=t.styleSpec;let o=[];const l=wr(r);if("object"!==l)return [new it(e,r,`object expected, ${l} found`)];for(const t in r){const l=t.split(".")[0],u=n[l]||n["*"];let c;if(i[l])c=i[l];else if(n[l])c=pn;else if(i["*"])c=i["*"];else {if(!n["*"]){o.push(new it(e,r[t],`unknown property "${t}"`));continue}c=pn;}o=o.concat(c({key:(e?`${e}.`:e)+t,value:r[t],valueSpec:u,style:s,styleSpec:a,object:r,objectKey:t},r));}for(const t in n)i[t]||n[t].required&&void 0===n[t].default&&void 0===r[t]&&o.push(new it(e,r,`missing required property "${t}"`));return o}function Rr(t){const e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,s=t.key,a=t.arrayElementValidator||pn;if("array"!==wr(e))return [new it(s,e,`array expected, ${wr(e)} found`)];if(r.length&&e.length!==r.length)return [new it(s,e,`array length ${r.length} expected, length ${e.length} found`)];if(r["min-length"]&&e.length<r["min-length"])return [new it(s,e,`array length at least ${r["min-length"]} expected, length ${e.length} found`)];let o={type:r.value,values:r.values};i.$version<7&&(o.function=r.function),"object"===wr(r.value)&&(o=r.value);let l=[];for(let t=0;t<e.length;t++)l=l.concat(a({array:e,arrayIndex:t,value:e[t],valueSpec:o,style:n,styleSpec:i,key:`${s}[${t}]`}));return l}function Ur(t){const e=t.key,r=t.value,n=t.valueSpec;let i=wr(r);return "number"===i&&r!=r&&(i="NaN"),"number"!==i?[new it(e,r,`number expected, ${i} found`)]:"minimum"in n&&r<n.minimum?[new it(e,r,`${r} is less than the minimum value ${n.minimum}`)]:"maximum"in n&&r>n.maximum?[new it(e,r,`${r} is greater than the maximum value ${n.maximum}`)]:[]}function Or(t){const e=t.valueSpec,r=ot(t.value.type);let n,i,s,a={};const o="categorical"!==r&&void 0===t.value.property,l=!o,u="array"===wr(t.value.stops)&&"array"===wr(t.value.stops[0])&&"object"===wr(t.value.stops[0][0]),c=$r({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===r)return [new it(t.key,t.value,'identity function may not have a "stops" property')];let e=[];const n=t.value;return e=e.concat(Rr({key:t.key,value:n,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===wr(n)&&0===n.length&&e.push(new it(t.key,n,"array must have at least one stop")),e},default:function(t){return pn({key:t.key,value:t.value,valueSpec:e,style:t.style,styleSpec:t.styleSpec})}}});return "identity"===r&&o&&c.push(new it(t.key,t.value,'missing required property "property"')),"identity"===r||t.value.stops||c.push(new it(t.key,t.value,'missing required property "stops"')),"exponential"===r&&t.valueSpec.expression&&!br(t.valueSpec)&&c.push(new it(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!xr(t.valueSpec)?c.push(new it(t.key,t.value,"property functions not supported")):o&&!vr(t.valueSpec)&&c.push(new it(t.key,t.value,"zoom functions not supported"))),"categorical"!==r&&!u||void 0!==t.value.property||c.push(new it(t.key,t.value,'"property" property is required')),c;function h(t){let r=[];const n=t.value,o=t.key;if("array"!==wr(n))return [new it(o,n,`array expected, ${wr(n)} found`)];if(2!==n.length)return [new it(o,n,`array length 2 expected, length ${n.length} found`)];if(u){if("object"!==wr(n[0]))return [new it(o,n,`object expected, ${wr(n[0])} found`)];if(void 0===n[0].zoom)return [new it(o,n,"object stop key must have zoom")];if(void 0===n[0].value)return [new it(o,n,"object stop key must have value")];if(s&&s>ot(n[0].zoom))return [new it(o,n[0].zoom,"stop zoom values must appear in ascending order")];ot(n[0].zoom)!==s&&(s=ot(n[0].zoom),i=void 0,a={}),r=r.concat($r({key:`${o}[0]`,value:n[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Ur,value:p}}));}else r=r.concat(p({key:`${o}[0]`,value:n[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},n));return Pr(lt(n[1]))?r.concat([new it(`${o}[1]`,n[1],"expressions are not allowed in function stops.")]):r.concat(pn({key:`${o}[1]`,value:n[1],valueSpec:e,style:t.style,styleSpec:t.styleSpec}))}function p(t,s){const o=wr(t.value),l=ot(t.value),u=null!==t.value?t.value:s;if(n){if(o!==n)return [new it(t.key,u,`${o} stop domain type must match previous stop domain type ${n}`)]}else n=o;if("number"!==o&&"string"!==o&&"boolean"!==o)return [new it(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==o&&"categorical"!==r){let n=`number expected, ${o} found`;return xr(e)&&void 0===r&&(n+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new it(t.key,u,n)]}return "categorical"!==r||"number"!==o||isFinite(l)&&Math.floor(l)===l?"categorical"!==r&&"number"===o&&void 0!==i&&l<i?[new it(t.key,u,"stop domain values must appear in ascending order")]:(i=l,"categorical"===r&&l in a?[new it(t.key,u,"stop domain values must be unique")]:(a[l]=!0,[])):[new it(t.key,u,`integer expected, found ${l}`)]}}function qr(t){const e=("property"===t.expressionContext?Tr:Vr)(lt(t.value),t.valueSpec);if("error"===e.result)return e.value.map((e=>new it(`${t.key}${e.key}`,t.value,e.message)));const r=e.value.expression||e.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!r.outputDefined())return [new it(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===t.expressionContext&&"layout"===t.propertyType&&!xe(r))return [new it(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&&!xe(r))return [new it(t.key,t.value,'"feature-state" data expressions are not supported with filters.')];if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!ve(r,["zoom","feature-state"]))return [new it(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!ge(r))return [new it(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return []}function jr(t){const e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(ot(r))&&i.push(new it(e,r,`expected one of [${n.values.join(", ")}], ${JSON.stringify(r)} found`)):-1===Object.keys(n.values).indexOf(ot(r))&&i.push(new it(e,r,`expected one of [${Object.keys(n.values).join(", ")}], ${JSON.stringify(r)} found`)),i}function Nr(t){if(!0===t||!1===t)return !0;if(!Array.isArray(t)||0===t.length)return !1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return !1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(const e of t.slice(1))if(!Nr(e)&&"boolean"!=typeof e)return !1;return !0;default:return !0}}const Kr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Zr(t){if(null==t)return {filter:()=>!0,needGeometry:!1};Nr(t)||(t=Xr(t));const e=Vr(t,Kr);if("error"===e.result)throw new Error(e.value.map((t=>`${t.key}: ${t.message}`)).join(", "));return {filter:(t,r,n)=>e.value.evaluate(t,r,{},n),needGeometry:Jr(t)}}function Gr(t,e){return t<e?-1:t>e?1:0}function Jr(t){if(!Array.isArray(t))return !1;if("within"===t[0])return !0;for(let e=1;e<t.length;e++)if(Jr(t[e]))return !0;return !1}function Xr(t){if(!t)return !0;const e=t[0];return t.length<=1?"any"!==e:"=="===e?Yr(t[1],t[2],"=="):"!="===e?Qr(Yr(t[1],t[2],"==")):"<"===e||">"===e||"<="===e||">="===e?Yr(t[1],t[2],e):"any"===e?(r=t.slice(1),["any"].concat(r.map(Xr))):"all"===e?["all"].concat(t.slice(1).map(Xr)):"none"===e?["all"].concat(t.slice(1).map(Xr).map(Qr)):"in"===e?Hr(t[1],t.slice(2)):"!in"===e?Qr(Hr(t[1],t.slice(2))):"has"===e?Wr(t[1]):"!has"===e?Qr(Wr(t[1])):"within"!==e||t;var r;}function Yr(t,e,r){switch(t){case"$type":return [`filter-type-${r}`,e];case"$id":return [`filter-id-${r}`,e];default:return [`filter-${r}`,t,e]}}function Hr(t,e){if(0===e.length)return !1;switch(t){case"$type":return ["filter-type-in",["literal",e]];case"$id":return ["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((t=>typeof t!=typeof e[0]))?["filter-in-large",t,["literal",e.sort(Gr)]]:["filter-in-small",t,["literal",e]]}}function Wr(t){switch(t){case"$type":return !0;case"$id":return ["filter-has-id"];default:return ["filter-has",t]}}function Qr(t){return ["!",t]}function tn(t){return Nr(lt(t.value))?qr(at({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):en(t)}function en(t){const e=t.value,r=t.key;if("array"!==wr(e))return [new it(r,e,`array expected, ${wr(e)} found`)];const n=t.styleSpec;let i,s=[];if(e.length<1)return [new it(r,e,"filter array must have at least 1 element")];switch(s=s.concat(jr({key:`${r}[0]`,value:e[0],valueSpec:n.filter_operator,style:t.style,styleSpec:t.styleSpec})),ot(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===ot(e[1])&&s.push(new it(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":3!==e.length&&s.push(new it(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(i=wr(e[1]),"string"!==i&&s.push(new it(`${r}[1]`,e[1],`string expected, ${i} found`)));for(let a=2;a<e.length;a++)i=wr(e[a]),"$type"===ot(e[1])?s=s.concat(jr({key:`${r}[${a}]`,value:e[a],valueSpec:n.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==i&&"number"!==i&&"boolean"!==i&&s.push(new it(`${r}[${a}]`,e[a],`string, number, or boolean expected, ${i} found`));break;case"any":case"all":case"none":for(let n=1;n<e.length;n++)s=s.concat(en({key:`${r}[${n}]`,value:e[n],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":i=wr(e[1]),2!==e.length?s.push(new it(r,e,`filter array for "${e[0]}" operator must have 2 elements`)):"string"!==i&&s.push(new it(`${r}[1]`,e[1],`string expected, ${i} found`));break;case"within":i=wr(e[1]),2!==e.length?s.push(new it(r,e,`filter array for "${e[0]}" operator must have 2 elements`)):"object"!==i&&s.push(new it(`${r}[1]`,e[1],`object expected, ${i} found`));}return s}function rn(t,e){const r=t.key,n=t.style,i=t.styleSpec,s=t.value,a=t.objectKey,o=i[`${e}_${t.layerType}`];if(!o)return [];const l=a.match(/^(.*)-transition$/);if("paint"===e&&l&&o[l[1]]&&o[l[1]].transition)return pn({key:r,value:s,valueSpec:i.transition,style:n,styleSpec:i});const u=t.valueSpec||o[a];if(!u)return [new it(r,s,`unknown property "${a}"`)];let c;if("string"===wr(s)&&xr(u)&&!u.tokens&&(c=/^{([^}]+)}$/.exec(s)))return [new it(r,s,`"${a}" does not support interpolation syntax\nUse an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(c[1])} }\`.`)];const h=[];return "symbol"===t.layerType&&("text-field"===a&&n&&!n.glyphs&&h.push(new it(r,s,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&_r(lt(s))&&"identity"===ot(s.type)&&h.push(new it(r,s,'"text-font" does not support identity functions'))),h.concat(pn({key:t.key,value:s,valueSpec:u,style:n,styleSpec:i,expressionContext:"property",propertyType:e,propertyKey:a}))}function nn(t){return rn(t,"paint")}function sn(t){return rn(t,"layout")}function an(t){let e=[];const r=t.value,n=t.key,i=t.style,s=t.styleSpec;r.type||r.ref||e.push(new it(n,r,'either "type" or "ref" is required'));let a=ot(r.type);const o=ot(r.ref);if(r.id){const s=ot(r.id);for(let a=0;a<t.arrayIndex;a++){const t=i.layers[a];ot(t.id)===s&&e.push(new it(n,r.id,`duplicate layer id "${r.id}", previously used at line ${t.id.__line__}`));}}if("ref"in r){let t;["type","source","source-layer","filter","layout"].forEach((t=>{t in r&&e.push(new it(n,r[t],`"${t}" is prohibited for ref layers`));})),i.layers.forEach((e=>{ot(e.id)===o&&(t=e);})),t?t.ref?e.push(new it(n,r.ref,"ref cannot reference another ref layer")):a=ot(t.type):e.push(new it(n,r.ref,`ref layer "${o}" not found`));}else if("background"!==a)if(r.source){const t=i.sources&&i.sources[r.source],s=t&&ot(t.type);t?"vector"===s&&"raster"===a?e.push(new it(n,r.source,`layer "${r.id}" requires a raster source`)):"raster"===s&&"raster"!==a?e.push(new it(n,r.source,`layer "${r.id}" requires a vector source`)):"vector"!==s||r["source-layer"]?"raster-dem"===s&&"hillshade"!==a?e.push(new it(n,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==a||!r.paint||!r.paint["line-gradient"]||"geojson"===s&&t.lineMetrics||e.push(new it(n,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new it(n,r,`layer "${r.id}" must specify a "source-layer"`)):e.push(new it(n,r.source,`source "${r.source}" not found`));}else e.push(new it(n,r,'missing required property "source"'));return e=e.concat($r({key:n,value:r,valueSpec:s.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":()=>[],type:()=>pn({key:`${n}.type`,value:r.type,valueSpec:s.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:"type"}),filter:tn,layout:t=>$r({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>sn(at({layerType:a},t))}}),paint:t=>$r({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>nn(at({layerType:a},t))}})}})),e}function on(t){const e=t.value,r=t.key,n=wr(e);return "string"!==n?[new it(r,e,`string expected, ${n} found`)]:[]}const ln={promoteId:function({key:t,value:e}){if("string"===wr(e))return on({key:t,value:e});{const r=[];for(const n in e)r.push(...on({key:`${t}.${n}`,value:e[n]}));return r}}};function un(t){const e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return [new it(r,e,'"type" is required')];const s=ot(e.type);let a;switch(s){case"vector":case"raster":case"raster-dem":return a=$r({key:r,value:e,valueSpec:n[`source_${s.replace("-","_")}`],style:t.style,styleSpec:n,objectElementValidators:ln}),a;case"geojson":if(a=$r({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:ln}),e.cluster)for(const t in e.clusterProperties){const[n,i]=e.clusterProperties[t],s="string"==typeof n?[n,["accumulated"],["get",t]]:n;a.push(...qr({key:`${r}.${t}.map`,value:i,expressionContext:"cluster-map"})),a.push(...qr({key:`${r}.${t}.reduce`,value:s,expressionContext:"cluster-reduce"}));}return a;case"video":return $r({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case"image":return $r({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case"canvas":return [new it(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return jr({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,styleSpec:n})}}function cn(t){const e=t.value,r=t.styleSpec,n=r.light,i=t.style;let s=[];const a=wr(e);if(void 0===e)return s;if("object"!==a)return s=s.concat([new it("light",e,`object expected, ${a} found`)]),s;for(const t in e){const a=t.match(/^(.*)-transition$/);s=s.concat(a&&n[a[1]]&&n[a[1]].transition?pn({key:t,value:e[t],valueSpec:r.transition,style:i,styleSpec:r}):n[t]?pn({key:t,value:e[t],valueSpec:n[t],style:i,styleSpec:r}):[new it(t,e[t],`unknown property "${t}"`)]);}return s}const hn={"*":()=>[],array:Rr,boolean:function(t){const e=t.value,r=t.key,n=wr(e);return "boolean"!==n?[new it(r,e,`boolean expected, ${n} found`)]:[]},number:Ur,color:function(t){const e=t.key,r=t.value,n=wr(r);return "string"!==n?[new it(e,r,`color expected, ${n} found`)]:null===It(r)?[new it(e,r,`color expected, "${r}" found`)]:[]},constants:st,enum:jr,filter:tn,function:Or,layer:an,object:$r,source:un,light:cn,string:on,formatted:function(t){return 0===on(t).length?[]:qr(t)},resolvedImage:function(t){return 0===on(t).length?[]:qr(t)}};function pn(t){const e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&&_r(ot(e))?Or(t):r.expression&&Pr(lt(e))?qr(t):r.type&&hn[r.type]?hn[r.type](t):$r(at({},t,{valueSpec:r.type?n[r.type]:r}))}function fn(t){const e=t.value,r=t.key,n=on(t);return n.length||(-1===e.indexOf("{fontstack}")&&n.push(new it(r,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&n.push(new it(r,e,'"glyphs" url must include a "{range}" token'))),n}function dn(t,e=nt){let r=[];return r=r.concat(pn({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:fn,"*":()=>[]}})),t.constants&&(r=r.concat(st({key:"constants",value:t.constants,style:t,styleSpec:e}))),yn(r)}function yn(t){return [].concat(t).sort(((t,e)=>t.line-e.line))}function mn(t){return function(...e){return yn(t.apply(this,e))}}dn.source=mn(un),dn.light=mn(cn),dn.layer=mn(an),dn.filter=mn(tn),dn.paintProperty=mn(nn),dn.layoutProperty=mn(sn);const gn=dn,xn=gn.light,vn=gn.paintProperty,bn=gn.layoutProperty;function wn(t,e){let r=!1;if(e&&e.length)for(const n of e)t.fire(new et(new Error(n.message))),r=!0;return r}class _n{constructor(t,e,r){const n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;const i=new Int32Array(this.arrayBuffer);t=i[0],this.d=(e=i[1])+2*(r=i[2]);for(let t=0;t<this.d*this.d;t++){const e=i[3+t],r=i[3+t+1];n.push(e===r?null:i.subarray(e,r));}const s=i[3+n.length+1];this.keys=i.subarray(i[3+n.length],s),this.bboxes=i.subarray(s),this.insert=this._insertReadonly;}else {this.d=e+2*r;for(let t=0;t<this.d*this.d;t++)n.push([]);this.keys=[],this.bboxes=[];}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;const i=r/e*t;this.min=-i,this.max=t+i;}insert(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++,void 0,void 0),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i);}_insertReadonly(){throw new Error("Cannot insert into a GridIndex created from an ArrayBuffer.")}_insertCell(t,e,r,n,i,s){this.cells[i].push(s);}query(t,e,r,n,i){const s=this.min,a=this.max;if(t<=s&&e<=s&&a<=r&&a<=n&&!i)return Array.prototype.slice.call(this.keys);{const s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},i),s}}_queryCell(t,e,r,n,i,s,a,o){const l=this.cells[i];if(null!==l){const i=this.keys,u=this.bboxes;for(let c=0;c<l.length;c++){const h=l[c];if(void 0===a[h]){const l=4*h;(o?o(u[l+0],u[l+1],u[l+2],u[l+3]):t<=u[l+2]&&e<=u[l+3]&&r>=u[l+0]&&n>=u[l+1])?(a[h]=!0,s.push(i[h])):a[h]=!1;}}}}_forEachCell(t,e,r,n,i,s,a,o){const l=this._convertToCellCoord(t),u=this._convertToCellCoord(e),c=this._convertToCellCoord(r),h=this._convertToCellCoord(n);for(let p=l;p<=c;p++)for(let l=u;l<=h;l++){const u=this.d*l+p;if((!o||o(this._convertFromCellCoord(p),this._convertFromCellCoord(l),this._convertFromCellCoord(p+1),this._convertFromCellCoord(l+1)))&&i.call(this,t,e,r,n,u,s,a,o))return}}_convertFromCellCoord(t){return (t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const t=this.cells,e=3+this.cells.length+1+1;let r=0;for(let t=0;t<this.cells.length;t++)r+=this.cells[t].length;const n=new Int32Array(e+r+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let i=e;for(let e=0;e<t.length;e++){const r=t[e];n[3+e]=i,n.set(r,i),i+=r.length;}return n[3+t.length]=i,n.set(this.keys,i),i+=this.keys.length,n[3+t.length+1]=i,n.set(this.bboxes,i),i+=this.bboxes.length,n.buffer}static serialize(t,e){const r=t.toArrayBuffer();return e&&e.push(r),{buffer:r}}static deserialize(t){return new _n(t.buffer)}}const An={};function kn(t,e,r={}){Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),An[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]};}kn("Object",Object),kn("TransferableGridIndex",_n),kn("Color",Et),kn("Error",Error),kn("AJAXError",q),kn("ResolvedImage",Dt),kn("StylePropertyFunction",Lr),kn("StyleExpression",Cr,{omit:["_evaluator"]}),kn("ZoomDependentExpression",Fr),kn("ZoomConstantExpression",Er),kn("CompoundExpression",Wt,{omit:["_evaluate"]});for(const t in hr)hr[t]._classRegistryKey||kn(`Expression_${t}`,hr[t]);function Sn(t){return t&&"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function zn(t,e){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||t instanceof Blob)return t;if(Sn(t))return e&&e.push(t),t;if(A(t))return e&&e.push(t),t;if(ArrayBuffer.isView(t)){const r=t;return e&&e.push(r.buffer),r}if(t instanceof ImageData)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){const r=[];for(const n of t)r.push(zn(n,e));return r}if("object"==typeof t){const r=t.constructor,n=r._classRegistryKey;if(!n)throw new Error("can't serialize object of unregistered class");const i=r.serialize?r.serialize(t,e):{};if(!r.serialize){for(const r in t){if(!t.hasOwnProperty(r))continue;if(An[n].omit.indexOf(r)>=0)continue;const s=t[r];i[r]=An[n].shallow.indexOf(r)>=0?s:zn(s,e);}t instanceof Error&&(i.message=t.message);}if(i.$name)throw new Error("$name property is reserved for worker serialization logic.");return "Object"!==n&&(i.$name=n),i}throw new Error("can't serialize object of type "+typeof t)}function In(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||t instanceof Blob||Sn(t)||A(t)||ArrayBuffer.isView(t)||t instanceof ImageData)return t;if(Array.isArray(t))return t.map(In);if("object"==typeof t){const e=t.$name||"Object";if(!An[e])throw new Error(`can't deserialize unregistered class ${e}`);const{klass:r}=An[e];if(!r)throw new Error(`can't deserialize unregistered class ${e}`);if(r.deserialize)return r.deserialize(t);const n=Object.create(r.prototype);for(const r of Object.keys(t)){if("$name"===r)continue;const i=t[r];n[r]=An[e].shallow.indexOf(r)>=0?i:In(i);}return n}throw new Error("can't deserialize object of type "+typeof t)}class Mn{constructor(){this.first=!0;}update(t,e){const r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<r&&(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=r,!0))}}const Bn={"Latin-1 Supplement":t=>t>=128&&t<=255,Arabic:t=>t>=1536&&t<=1791,"Arabic Supplement":t=>t>=1872&&t<=1919,"Arabic Extended-A":t=>t>=2208&&t<=2303,"Hangul Jamo":t=>t>=4352&&t<=4607,"Unified Canadian Aboriginal Syllabics":t=>t>=5120&&t<=5759,Khmer:t=>t>=6016&&t<=6143,"Unified Canadian Aboriginal Syllabics Extended":t=>t>=6320&&t<=6399,"General Punctuation":t=>t>=8192&&t<=8303,"Letterlike Symbols":t=>t>=8448&&t<=8527,"Number Forms":t=>t>=8528&&t<=8591,"Miscellaneous Technical":t=>t>=8960&&t<=9215,"Control Pictures":t=>t>=9216&&t<=9279,"Optical Character Recognition":t=>t>=9280&&t<=9311,"Enclosed Alphanumerics":t=>t>=9312&&t<=9471,"Geometric Shapes":t=>t>=9632&&t<=9727,"Miscellaneous Symbols":t=>t>=9728&&t<=9983,"Miscellaneous Symbols and Arrows":t=>t>=11008&&t<=11263,"CJK Radicals Supplement":t=>t>=11904&&t<=12031,"Kangxi Radicals":t=>t>=12032&&t<=12255,"Ideographic Description Characters":t=>t>=12272&&t<=12287,"CJK Symbols and Punctuation":t=>t>=12288&&t<=12351,Hiragana:t=>t>=12352&&t<=12447,Katakana:t=>t>=12448&&t<=12543,Bopomofo:t=>t>=12544&&t<=12591,"Hangul Compatibility Jamo":t=>t>=12592&&t<=12687,Kanbun:t=>t>=12688&&t<=12703,"Bopomofo Extended":t=>t>=12704&&t<=12735,"CJK Strokes":t=>t>=12736&&t<=12783,"Katakana Phonetic Extensions":t=>t>=12784&&t<=12799,"Enclosed CJK Letters and Months":t=>t>=12800&&t<=13055,"CJK Compatibility":t=>t>=13056&&t<=13311,"CJK Unified Ideographs Extension A":t=>t>=13312&&t<=19903,"Yijing Hexagram Symbols":t=>t>=19904&&t<=19967,"CJK Unified Ideographs":t=>t>=19968&&t<=40959,"Yi Syllables":t=>t>=40960&&t<=42127,"Yi Radicals":t=>t>=42128&&t<=42191,"Hangul Jamo Extended-A":t=>t>=43360&&t<=43391,"Hangul Syllables":t=>t>=44032&&t<=55215,"Hangul Jamo Extended-B":t=>t>=55216&&t<=55295,"Private Use Area":t=>t>=57344&&t<=63743,"CJK Compatibility Ideographs":t=>t>=63744&&t<=64255,"Arabic Presentation Forms-A":t=>t>=64336&&t<=65023,"Vertical Forms":t=>t>=65040&&t<=65055,"CJK Compatibility Forms":t=>t>=65072&&t<=65103,"Small Form Variants":t=>t>=65104&&t<=65135,"Arabic Presentation Forms-B":t=>t>=65136&&t<=65279,"Halfwidth and Fullwidth Forms":t=>t>=65280&&t<=65519};function Cn(t){for(const e of t)if(En(e.charCodeAt(0)))return !0;return !1}function Pn(t){for(const e of t)if(!Vn(e.charCodeAt(0)))return !1;return !0}function Vn(t){return !(Bn.Arabic(t)||Bn["Arabic Supplement"](t)||Bn["Arabic Extended-A"](t)||Bn["Arabic Presentation Forms-A"](t)||Bn["Arabic Presentation Forms-B"](t))}function En(t){return !(746!==t&&747!==t&&(t<4352||!(Bn["Bopomofo Extended"](t)||Bn.Bopomofo(t)||Bn["CJK Compatibility Forms"](t)&&!(t>=65097&&t<=65103)||Bn["CJK Compatibility Ideographs"](t)||Bn["CJK Compatibility"](t)||Bn["CJK Radicals Supplement"](t)||Bn["CJK Strokes"](t)||!(!Bn["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||Bn["CJK Unified Ideographs Extension A"](t)||Bn["CJK Unified Ideographs"](t)||Bn["Enclosed CJK Letters and Months"](t)||Bn["Hangul Compatibility Jamo"](t)||Bn["Hangul Jamo Extended-A"](t)||Bn["Hangul Jamo Extended-B"](t)||Bn["Hangul Jamo"](t)||Bn["Hangul Syllables"](t)||Bn.Hiragana(t)||Bn["Ideographic Description Characters"](t)||Bn.Kanbun(t)||Bn["Kangxi Radicals"](t)||Bn["Katakana Phonetic Extensions"](t)||Bn.Katakana(t)&&12540!==t||!(!Bn["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!Bn["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||Bn["Unified Canadian Aboriginal Syllabics"](t)||Bn["Unified Canadian Aboriginal Syllabics Extended"](t)||Bn["Vertical Forms"](t)||Bn["Yijing Hexagram Symbols"](t)||Bn["Yi Syllables"](t)||Bn["Yi Radicals"](t))))}function Fn(t){return !(En(t)||function(t){return !!(Bn["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Bn["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Bn["Letterlike Symbols"](t)||Bn["Number Forms"](t)||Bn["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||Bn["Control Pictures"](t)&&9251!==t||Bn["Optical Character Recognition"](t)||Bn["Enclosed Alphanumerics"](t)||Bn["Geometric Shapes"](t)||Bn["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||Bn["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||Bn["CJK Symbols and Punctuation"](t)||Bn.Katakana(t)||Bn["Private Use Area"](t)||Bn["CJK Compatibility Forms"](t)||Bn["Small Form Variants"](t)||Bn["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function Tn(t){return t>=1424&&t<=2303||Bn["Arabic Presentation Forms-A"](t)||Bn["Arabic Presentation Forms-B"](t)}function Ln(t,e){return !(!e&&Tn(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||Bn.Khmer(t))}function Dn(t){for(const e of t)if(Tn(e.charCodeAt(0)))return !0;return !1}const $n="deferred",Rn="loading",Un="loaded";let On=null,qn="unavailable",jn=null;const Nn=function(t){t&&"string"==typeof t&&t.indexOf("NetworkError")>-1&&(qn="error"),On&&On(t);};function Kn(){Zn.fire(new tt("pluginStateChange",{pluginStatus:qn,pluginURL:jn}));}const Zn=new rt,Gn=function(){return qn},Jn=function(){if(qn!==$n||!jn)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");qn=Rn,Kn(),jn&&Z({url:jn},(t=>{t?Nn(t):(qn=Un,Kn());}));},Xn={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>qn===Un||null!=Xn.applyArabicShaping,isLoading:()=>qn===Rn,setState(t){qn=t.pluginStatus,jn=t.pluginURL;},isParsed:()=>null!=Xn.applyArabicShaping&&null!=Xn.processBidirectionalText&&null!=Xn.processStyledBidirectionalText,getPluginURL:()=>jn};class Yn{constructor(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Mn,this.transition={});}isSupportedScript(t){return function(t,e){for(const r of t)if(!Ln(r.charCodeAt(0),e))return !1;return !0}(t,Xn.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}}}class Hn{constructor(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(_r(t))return new Lr(t,e);if(Pr(t)){const r=Tr(t,e);if("error"===r.result)throw new Error(r.value.map((t=>`${t.key}: ${t.message}`)).join(", "));return r.value}{let r=t;return "string"==typeof t&&"color"===e.type&&(r=Et.parse(t)),{kind:"constant",evaluate:()=>r}}}(void 0===e?t.specification.default:e,t.specification);}isDataDriven(){return "source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)}}class Wn{constructor(t){this.property=t,this.value=new Hn(t,void 0);}transitioned(t,e){return new ti(this.property,this.value,e,o({},t.transition,this.transition),t.now)}untransitioned(){return new ti(this.property,this.value,null,{},0)}}class Qn{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues);}getValue(t){return p(this._values[t].value.value)}setValue(t,e){Object.prototype.hasOwnProperty.call(this._values,t)||(this._values[t]=new Wn(this._values[t].property)),this._values[t].value=new Hn(this._values[t].property,null===e?void 0:p(e));}getTransition(t){return p(this._values[t].transition)}setTransition(t,e){Object.prototype.hasOwnProperty.call(this._values,t)||(this._values[t]=new Wn(this._values[t].property)),this._values[t].transition=p(e)||void 0;}serialize(){const t={};for(const e of Object.keys(this._values)){const r=this.getValue(e);void 0!==r&&(t[e]=r);const n=this.getTransition(e);void 0!==n&&(t[`${e}-transition`]=n);}return t}transitioned(t,e){const r=new ei(this._properties);for(const n of Object.keys(this._values))r._values[n]=this._values[n].transitioned(t,e._values[n]);return r}untransitioned(){const t=new ei(this._properties);for(const e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}}class ti{constructor(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&&(n.delay||n.duration)&&(this.prior=r);}possiblyEvaluate(t,e,r){const n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),s=this.prior;if(s){if(n>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n<this.begin)return s.possiblyEvaluate(t,e,r);{const a=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(s.possiblyEvaluate(t,e,r),i,function(t){if(t<=0)return 0;if(t>=1)return 1;const e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}(a))}}return i}}class ei{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues);}possiblyEvaluate(t,e,r){const n=new ii(this._properties);for(const i of Object.keys(this._values))n._values[i]=this._values[i].possiblyEvaluate(t,e,r);return n}hasTransition(){for(const t of Object.keys(this._values))if(this._values[t].prior)return !0;return !1}}class ri{constructor(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues);}getValue(t){return p(this._values[t].value)}setValue(t,e){this._values[t]=new Hn(this._values[t].property,null===e?void 0:p(e));}serialize(){const t={};for(const e of Object.keys(this._values)){const r=this.getValue(e);void 0!==r&&(t[e]=r);}return t}possiblyEvaluate(t,e,r){const n=new ii(this._properties);for(const i of Object.keys(this._values))n._values[i]=this._values[i].possiblyEvaluate(t,e,r);return n}}class ni{constructor(t,e,r){this.property=t,this.value=e,this.parameters=r;}isConstant(){return "constant"===this.value.kind}constantOr(t){return "constant"===this.value.kind?this.value.value:t}evaluate(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)}}class ii{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues);}get(t){return this._values[t]}}class si{constructor(t){this.specification=t;}possiblyEvaluate(t,e){return t.expression.evaluate(e)}interpolate(t,e,r){const n=ze[this.specification.type];return n?n(t,e,r):t}}class ai{constructor(t,e){this.specification=t,this.overrides=e;}possiblyEvaluate(t,e,r,n){return new ni(this,"constant"===t.expression.kind||"camera"===t.expression.kind?{kind:"constant",value:t.expression.evaluate(e,null,{},r,n)}:t.expression,e)}interpolate(t,e,r){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new ni(this,{kind:"constant",value:void 0},t.parameters);const n=ze[this.specification.type];return n?new ni(this,{kind:"constant",value:n(t.value.value,e.value.value,r)},t.parameters):t}evaluate(t,e,r,n,i,s){return "constant"===t.kind?t.value:t.evaluate(e,r,n,i,s)}}class oi extends ai{possiblyEvaluate(t,e,r,n){if(void 0===t.value)return new ni(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){const i=t.expression.evaluate(e,null,{},r,n),s="resolvedImage"===t.property.specification.type&&"string"!=typeof i?i.name:i,a=this._calculate(s,s,s,e);return new ni(this,{kind:"constant",value:a},e)}if("camera"===t.expression.kind){const r=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new ni(this,{kind:"constant",value:r},e)}return new ni(this,t.expression,e)}evaluate(t,e,r,n,i,s){if("source"===t.kind){const a=t.evaluate(e,r,n,i,s);return this._calculate(a,a,a,e)}return "composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value}_calculate(t,e,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}}class li{constructor(t){this.specification=t;}possiblyEvaluate(t,e,r,n){if(void 0!==t.value){if("constant"===t.expression.kind){const i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new Yn(Math.floor(e.zoom-1),e)),t.expression.evaluate(new Yn(Math.floor(e.zoom),e)),t.expression.evaluate(new Yn(Math.floor(e.zoom+1),e)),e)}}_calculate(t,e,r,n){return n.zoom>n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}}class ui{constructor(t){this.specification=t;}possiblyEvaluate(t,e,r,n){return !!t.expression.evaluate(e,null,{},r,n)}interpolate(){return !1}}class ci{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const e in t){const r=t[e];r.specification.overridable&&this.overridableProperties.push(e);const n=this.defaultPropertyValues[e]=new Hn(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new Wn(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({});}}}kn("DataDrivenProperty",ai),kn("DataConstantProperty",si),kn("CrossFadedDataDrivenProperty",oi),kn("CrossFadedProperty",li),kn("ColorRampProperty",ui);const hi="-transition";class pi extends rt{constructor(t,e){if(super(),this.id=t.id,this.type=t.type,this._featureFilter={filter:()=>!0,needGeometry:!1},"custom"!==t.type&&(this.metadata=(t=t).metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),e.layout&&(this._unevaluatedLayout=new ri(e.layout)),e.paint)){this._transitionablePaint=new Qn(e.paint);for(const e in t.paint)this.setPaintProperty(e,t.paint[e],{validate:!1});for(const e in t.layout)this.setLayoutProperty(e,t.layout[e],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new ii(e.paint);}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){return "visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)}setLayoutProperty(t,e,r={}){null!=e&&this._validate(bn,`layers.${this.id}.layout.${t}`,t,e,r)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e);}getPaintProperty(t){return t.endsWith(hi)?this._transitionablePaint.getTransition(t.slice(0,-hi.length)):this._transitionablePaint.getValue(t)}setPaintProperty(t,e,r={}){if(null!=e&&this._validate(vn,`layers.${this.id}.paint.${t}`,t,e,r))return !1;if(t.endsWith(hi))return this._transitionablePaint.setTransition(t.slice(0,-hi.length),e||void 0),!1;{const r=this._transitionablePaint._values[t],n="cross-faded-data-driven"===r.property.specification["property-type"],i=r.value.isDataDriven(),s=r.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);const a=this._transitionablePaint._values[t].value;return a.isDataDriven()||i||n||this._handleOverridablePaintPropertyUpdate(t,s,a)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,e,r){return !1}isHidden(t){return !!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint);}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e);}serialize(){const t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),h(t,((t,e)=>!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)))}_validate(t,e,r,n,i={}){return (!i||!1!==i.validate)&&wn(this,t.call(gn,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:nt,style:{glyphs:!0,sprite:!0}}))}is3D(){return !1}isTileClipped(){return !1}hasOffscreenPass(){return !1}resize(){}isStateDependent(){for(const t in this.paint._values){const e=this.paint.get(t);if(e instanceof ni&&xr(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return !0}return !1}}const fi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class di{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8;}}class yi{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0);}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){const e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews());}clear(){this.length=0;}resize(t){this.reserve(t),this.length=t;}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const e=this.uint8;this._refreshViews(),e&&this.uint8.set(e);}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function mi(t,e=1){let r=0,n=0;return {members:t.map((t=>{const i=fi[t.type].BYTES_PER_ELEMENT,s=r=gi(r,Math.max(e,i)),a=t.components||1;return n=Math.max(n,i),r+=i*a,{name:t.name,type:t.type,components:a,offset:s}})),size:gi(r,Math.max(n,e)),alignment:e}}function gi(t,e){return Math.ceil(t/e)*e}class xi extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer);}emplaceBack(t,e){const r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){const n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t}}xi.prototype.bytesPerElement=4,kn("StructArrayLayout2i4",xi);class vi extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer);}emplaceBack(t,e,r,n){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)}emplace(t,e,r,n,i){const s=4*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,t}}vi.prototype.bytesPerElement=8,kn("StructArrayLayout4i8",vi);class bi extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer);}emplaceBack(t,e,r,n,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i,s)}emplace(t,e,r,n,i,s,a){const o=6*t;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=n,this.int16[o+3]=i,this.int16[o+4]=s,this.int16[o+5]=a,t}}bi.prototype.bytesPerElement=12,kn("StructArrayLayout2i4i12",bi);class wi extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer);}emplaceBack(t,e,r,n,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i,s)}emplace(t,e,r,n,i,s,a){const o=4*t,l=8*t;return this.int16[o+0]=e,this.int16[o+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=s,this.uint8[l+7]=a,t}}wi.prototype.bytesPerElement=8,kn("StructArrayLayout2i4ub8",wi);class _i extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer);}emplaceBack(t,e){const r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){const n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t}}_i.prototype.bytesPerElement=8,kn("StructArrayLayout2f8",_i);class Ai extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer);}emplaceBack(t,e,r,n,i,s,a,o,l,u){const c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,s,a,o,l,u)}emplace(t,e,r,n,i,s,a,o,l,u,c){const h=10*t;return this.uint16[h+0]=e,this.uint16[h+1]=r,this.uint16[h+2]=n,this.uint16[h+3]=i,this.uint16[h+4]=s,this.uint16[h+5]=a,this.uint16[h+6]=o,this.uint16[h+7]=l,this.uint16[h+8]=u,this.uint16[h+9]=c,t}}Ai.prototype.bytesPerElement=20,kn("StructArrayLayout10ui20",Ai);class ki extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer);}emplaceBack(t,e,r,n,i,s,a,o,l,u,c,h){const p=this.length;return this.resize(p+1),this.emplace(p,t,e,r,n,i,s,a,o,l,u,c,h)}emplace(t,e,r,n,i,s,a,o,l,u,c,h,p){const f=12*t;return this.int16[f+0]=e,this.int16[f+1]=r,this.int16[f+2]=n,this.int16[f+3]=i,this.uint16[f+4]=s,this.uint16[f+5]=a,this.uint16[f+6]=o,this.uint16[f+7]=l,this.int16[f+8]=u,this.int16[f+9]=c,this.int16[f+10]=h,this.int16[f+11]=p,t}}ki.prototype.bytesPerElement=24,kn("StructArrayLayout4i4ui4i24",ki);class Si extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer);}emplaceBack(t,e,r){const n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)}emplace(t,e,r,n){const i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t}}Si.prototype.bytesPerElement=12,kn("StructArrayLayout3f12",Si);class zi extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer);}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.uint32[1*t+0]=e,t}}zi.prototype.bytesPerElement=4,kn("StructArrayLayout1ul4",zi);class Ii extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer);}emplaceBack(t,e,r,n,i,s,a,o,l){const u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,s,a,o,l)}emplace(t,e,r,n,i,s,a,o,l,u){const c=10*t,h=5*t;return this.int16[c+0]=e,this.int16[c+1]=r,this.int16[c+2]=n,this.int16[c+3]=i,this.int16[c+4]=s,this.int16[c+5]=a,this.uint32[h+3]=o,this.uint16[c+8]=l,this.uint16[c+9]=u,t}}Ii.prototype.bytesPerElement=20,kn("StructArrayLayout6i1ul2ui20",Ii);class Mi extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer);}emplaceBack(t,e,r,n,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i,s)}emplace(t,e,r,n,i,s,a){const o=6*t;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=n,this.int16[o+3]=i,this.int16[o+4]=s,this.int16[o+5]=a,t}}Mi.prototype.bytesPerElement=12,kn("StructArrayLayout2i2i2i12",Mi);class Bi extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer);}emplaceBack(t,e,r,n,i){const s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,n,i)}emplace(t,e,r,n,i,s){const a=4*t,o=8*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.int16[o+6]=i,this.int16[o+7]=s,t}}Bi.prototype.bytesPerElement=16,kn("StructArrayLayout2f1f2i16",Bi);class Ci extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer);}emplaceBack(t,e,r,n){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)}emplace(t,e,r,n,i){const s=12*t,a=3*t;return this.uint8[s+0]=e,this.uint8[s+1]=r,this.float32[a+1]=n,this.float32[a+2]=i,t}}Ci.prototype.bytesPerElement=12,kn("StructArrayLayout2ub2f12",Ci);class Pi extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer);}emplaceBack(t,e,r){const n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)}emplace(t,e,r,n){const i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t}}Pi.prototype.bytesPerElement=6,kn("StructArrayLayout3ui6",Pi);class Vi extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer);}emplaceBack(t,e,r,n,i,s,a,o,l,u,c,h,p,f,d,y,m){const g=this.length;return this.resize(g+1),this.emplace(g,t,e,r,n,i,s,a,o,l,u,c,h,p,f,d,y,m)}emplace(t,e,r,n,i,s,a,o,l,u,c,h,p,f,d,y,m,g){const x=24*t,v=12*t,b=48*t;return this.int16[x+0]=e,this.int16[x+1]=r,this.uint16[x+2]=n,this.uint16[x+3]=i,this.uint32[v+2]=s,this.uint32[v+3]=a,this.uint32[v+4]=o,this.uint16[x+10]=l,this.uint16[x+11]=u,this.uint16[x+12]=c,this.float32[v+7]=h,this.float32[v+8]=p,this.uint8[b+36]=f,this.uint8[b+37]=d,this.uint8[b+38]=y,this.uint32[v+10]=m,this.int16[x+22]=g,t}}Vi.prototype.bytesPerElement=48,kn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Vi);class Ei extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer);}emplaceBack(t,e,r,n,i,s,a,o,l,u,c,h,p,f,d,y,m,g,x,v,b,w,_,A,k,S,z,I){const M=this.length;return this.resize(M+1),this.emplace(M,t,e,r,n,i,s,a,o,l,u,c,h,p,f,d,y,m,g,x,v,b,w,_,A,k,S,z,I)}emplace(t,e,r,n,i,s,a,o,l,u,c,h,p,f,d,y,m,g,x,v,b,w,_,A,k,S,z,I,M){const B=34*t,C=17*t;return this.int16[B+0]=e,this.int16[B+1]=r,this.int16[B+2]=n,this.int16[B+3]=i,this.int16[B+4]=s,this.int16[B+5]=a,this.int16[B+6]=o,this.int16[B+7]=l,this.uint16[B+8]=u,this.uint16[B+9]=c,this.uint16[B+10]=h,this.uint16[B+11]=p,this.uint16[B+12]=f,this.uint16[B+13]=d,this.uint16[B+14]=y,this.uint16[B+15]=m,this.uint16[B+16]=g,this.uint16[B+17]=x,this.uint16[B+18]=v,this.uint16[B+19]=b,this.uint16[B+20]=w,this.uint16[B+21]=_,this.uint16[B+22]=A,this.uint32[C+12]=k,this.float32[C+13]=S,this.float32[C+14]=z,this.float32[C+15]=I,this.float32[C+16]=M,t}}Ei.prototype.bytesPerElement=68,kn("StructArrayLayout8i15ui1ul4f68",Ei);class Fi extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer);}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.float32[1*t+0]=e,t}}Fi.prototype.bytesPerElement=4,kn("StructArrayLayout1f4",Fi);class Ti extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer);}emplaceBack(t,e,r){const n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)}emplace(t,e,r,n){const i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t}}Ti.prototype.bytesPerElement=6,kn("StructArrayLayout3i6",Ti);class Li extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer);}emplaceBack(t,e,r){const n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)}emplace(t,e,r,n){const i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=r,this.uint16[i+3]=n,t}}Li.prototype.bytesPerElement=8,kn("StructArrayLayout1ul2ui8",Li);class Di extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer);}emplaceBack(t,e){const r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){const n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t}}Di.prototype.bytesPerElement=4,kn("StructArrayLayout2ui4",Di);class $i extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer);}emplaceBack(t){const e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){return this.uint16[1*t+0]=e,t}}$i.prototype.bytesPerElement=2,kn("StructArrayLayout1ui2",$i);class Ri extends yi{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer);}emplaceBack(t,e,r,n){const i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)}emplace(t,e,r,n,i){const s=4*t;return this.float32[s+0]=e,this.float32[s+1]=r,this.float32[s+2]=n,this.float32[s+3]=i,t}}Ri.prototype.bytesPerElement=16,kn("StructArrayLayout4f16",Ri);class Ui extends di{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new S(this.anchorPointX,this.anchorPointY)}}Ui.prototype.size=20;class Oi extends Ii{get(t){return new Ui(this,t)}}kn("CollisionBoxArray",Oi);class qi extends di{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t;}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t;}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t;}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}qi.prototype.size=48;class ji extends Vi{get(t){return new qi(this,t)}}kn("PlacedSymbolArray",ji);class Ni extends di{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t;}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get textOffset0(){return this._structArray.float32[this._pos4+14]}get textOffset1(){return this._structArray.float32[this._pos4+15]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+16]}}Ni.prototype.size=68;class Ki extends Ei{get(t){return new Ni(this,t)}}kn("SymbolInstanceArray",Ki);class Zi extends Fi{getoffsetX(t){return this.float32[1*t+0]}}kn("GlyphOffsetArray",Zi);class Gi extends Ti{getx(t){return this.int16[3*t+0]}gety(t){return this.int16[3*t+1]}gettileUnitDistanceFromAnchor(t){return this.int16[3*t+2]}}kn("SymbolLineVertexArray",Gi);class Ji extends di{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}Ji.prototype.size=8;class Xi extends Li{get(t){return new Ji(this,t)}}kn("FeatureIndexArray",Xi);class Yi extends xi{}class Hi extends xi{}class Wi extends bi{}class Qi extends wi{}class ts extends _i{}class es extends Ai{}class rs extends ki{}class ns extends Si{}class is extends zi{}class ss extends Mi{}class as extends Ci{}class os extends Pi{}class ls extends Di{}const us=mi([{name:"a_pos",components:2,type:"Int16"}],4),{members:cs}=us;class hs{constructor(t=[]){this.segments=t;}prepareSegment(t,e,r,n){let i=this.segments[this.segments.length-1];return t>hs.MAX_VERTEX_ARRAY_LENGTH&&d(`Max vertices per segment is ${hs.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}`),(!i||i.vertexLength+t>hs.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&&(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&&(i.sortKey=n),this.segments.push(i)),i}get(){return this.segments}destroy(){for(const t of this.segments)for(const e in t.vaos)t.vaos[e].destroy();}static simpleSegment(t,e,r,n){return new hs([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])}}function ps(t,e){return 256*(t=s(Math.floor(t),0,255))+s(Math.floor(e),0,255)}hs.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,kn("SegmentVector",hs);const fs=mi([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var ds={exports:{}},ys={exports:{}};ys.exports=function(t,e){var r,n,i,s,a,o,l,u;for(n=t.length-(r=3&t.length),i=e,a=3432918353,o=461845907,u=0;u<n;)l=255&t.charCodeAt(u)|(255&t.charCodeAt(++u))<<8|(255&t.charCodeAt(++u))<<16|(255&t.charCodeAt(++u))<<24,++u,i=27492+(65535&(s=5*(65535&(i=(i^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*o+(((l>>>16)*o&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(s>>>16)&65535)<<16);switch(l=0,r){case 3:l^=(255&t.charCodeAt(u+2))<<16;case 2:l^=(255&t.charCodeAt(u+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*o+(((l>>>16)*o&65535)<<16)&4294967295;}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0};var ms={exports:{}};ms.exports=function(t,e){for(var r,n=t.length,i=e^n,s=0;n>=4;)r=1540483477*(65535&(r=255&t.charCodeAt(s)|(255&t.charCodeAt(++s))<<8|(255&t.charCodeAt(++s))<<16|(255&t.charCodeAt(++s))<<24))+((1540483477*(r>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),n-=4,++s;switch(n){case 3:i^=(255&t.charCodeAt(s+2))<<16;case 2:i^=(255&t.charCodeAt(s+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(s)))+((1540483477*(i>>>16)&65535)<<16);}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0};var gs=ys.exports,xs=ms.exports;ds.exports=gs,ds.exports.murmur3=gs,ds.exports.murmur2=xs;var vs=ds.exports;class bs{constructor(){this.ids=[],this.positions=[],this.indexed=!1;}add(t,e,r,n){this.ids.push(ws(t)),this.positions.push(e,r,n);}getPositions(t){const e=ws(t);let r=0,n=this.ids.length-1;for(;r<n;){const t=r+n>>1;this.ids[t]>=e?n=t:r=t+1;}const i=[];for(;this.ids[r]===e;)i.push({index:this.positions[3*r],start:this.positions[3*r+1],end:this.positions[3*r+2]}),r++;return i}static serialize(t,e){const r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return _s(r,n,0,r.length-1),e&&e.push(r.buffer,n.buffer),{ids:r,positions:n}}static deserialize(t){const e=new bs;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e}}function ws(t){const e=+t;return !isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e:vs(String(t))}function _s(t,e,r,n){for(;r<n;){const i=t[r+n>>1];let s=r-1,a=n+1;for(;;){do{s++;}while(t[s]<i);do{a--;}while(t[a]>i);if(s>=a)break;As(t,s,a),As(e,3*s,3*a),As(e,3*s+1,3*a+1),As(e,3*s+2,3*a+2);}a-r<n-a?(_s(t,e,r,a),r=a+1):(_s(t,e,a+1,n),n=a);}}function As(t,e,r){const n=t[e];t[e]=t[r],t[r]=n;}kn("FeaturePositionMap",bs);class ks{constructor(t,e){this.gl=t.gl,this.location=e;}}class Ss extends ks{constructor(t,e){super(t,e),this.current=0;}set(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t));}}class zs extends ks{constructor(t,e){super(t,e),this.current=[0,0,0,0];}set(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]&&t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]));}}class Is extends ks{constructor(t,e){super(t,e),this.current=Et.transparent;}set(t){t.r===this.current.r&&t.g===this.current.g&&t.b===this.current.b&&t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a));}}const Ms=new Float32Array(16);function Bs(t){return [ps(255*t.r,255*t.g),ps(255*t.b,255*t.a)]}class Cs{constructor(t,e,r){this.value=t,this.uniformNames=e.map((t=>`u_${t}`)),this.type=r;}setUniform(t,e,r){t.set(r.constantOr(this.value));}getBinding(t,e,r){return "color"===this.type?new Is(t,e):new Ss(t,e)}}class Ps{constructor(t,e){this.uniformNames=e.map((t=>`u_${t}`)),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1;}setConstantPatternPositions(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr;}setUniform(t,e,r,n){const i="u_pattern_to"===n?this.patternTo:"u_pattern_from"===n?this.patternFrom:"u_pixel_ratio_to"===n?this.pixelRatioTo:"u_pixel_ratio_from"===n?this.pixelRatioFrom:null;i&&t.set(i);}getBinding(t,e,r){return "u_pattern"===r.substr(0,9)?new zs(t,e):new Ss(t,e)}}class Vs{constructor(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((t=>({name:`a_${t}`,type:"Float32",components:"color"===r?2:1,offset:0}))),this.paintVertexArray=new n;}populatePaintArray(t,e,r,n,i){const s=this.paintVertexArray.length,a=this.expression.evaluate(new Yn(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(s,t,a);}updatePaintArray(t,e,r,n){const i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i);}_setPaintValue(t,e,r){if("color"===this.type){const n=Bs(r);for(let r=t;r<e;r++)this.paintVertexArray.emplace(r,n[0],n[1]);}else {for(let n=t;n<e;n++)this.paintVertexArray.emplace(n,r);this.maxValue=Math.max(this.maxValue,Math.abs(r));}}upload(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent));}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy();}}class Es{constructor(t,e,r,n,i,s){this.expression=t,this.uniformNames=e.map((t=>`u_${t}_t`)),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((t=>({name:`a_${t}`,type:"Float32",components:"color"===r?4:2,offset:0}))),this.paintVertexArray=new s;}populatePaintArray(t,e,r,n,i){const s=this.expression.evaluate(new Yn(this.zoom),e,{},n,[],i),a=this.expression.evaluate(new Yn(this.zoom+1),e,{},n,[],i),o=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(o,t,s,a);}updatePaintArray(t,e,r,n){const i=this.expression.evaluate({zoom:this.zoom},r,n),s=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,s);}_setPaintValue(t,e,r,n){if("color"===this.type){const i=Bs(r),s=Bs(n);for(let r=t;r<e;r++)this.paintVertexArray.emplace(r,i[0],i[1],s[0],s[1]);}else {for(let i=t;i<e;i++)this.paintVertexArray.emplace(i,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n));}}upload(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent));}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy();}setUniform(t,e){const r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=s(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n);}getBinding(t,e,r){return new Ss(t,e)}}class Fs{constructor(t,e,r,n,i,s){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=s,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i;}populatePaintArray(t,e,r){const n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&&e.patterns[this.layerId],r);}updatePaintArray(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&&r.patterns[this.layerId],i);}_setPaintValues(t,e,r,n){if(!n||!r)return;const{min:i,mid:s,max:a}=r,o=n[i],l=n[s],u=n[a];if(o&&l&&u)for(let r=t;r<e;r++)this.zoomInPaintVertexArray.emplace(r,l.tl[0],l.tl[1],l.br[0],l.br[1],o.tl[0],o.tl[1],o.br[0],o.br[1],l.pixelRatio,o.pixelRatio),this.zoomOutPaintVertexArray.emplace(r,l.tl[0],l.tl[1],l.br[0],l.br[1],u.tl[0],u.tl[1],u.br[0],u.br[1],l.pixelRatio,u.pixelRatio);}upload(t){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,fs.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,fs.members,this.expression.isStateDependent));}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy();}}class Ts{constructor(t,e,r){this.binders={},this._buffers=[];const n=[];for(const i in t.paint._values){if(!r(i))continue;const s=t.paint.get(i);if(!(s instanceof ni&&xr(s.property.specification)))continue;const a=Ds(i,t.type),o=s.value,l=s.property.specification.type,u=s.property.useIntegerZoom,c=s.property.specification["property-type"],h="cross-faded"===c||"cross-faded-data-driven"===c;if("constant"===o.kind)this.binders[i]=h?new Ps(o.value,a):new Cs(o.value,a,l),n.push(`/u_${i}`);else if("source"===o.kind||h){const r=$s(i,l,"source");this.binders[i]=h?new Fs(o,l,u,e,r,t.id):new Vs(o,a,l,r),n.push(`/a_${i}`);}else {const t=$s(i,l,"composite");this.binders[i]=new Es(o,a,l,u,e,t),n.push(`/z_${i}`);}}this.cacheKey=n.sort().join("");}getMaxValue(t){const e=this.binders[t];return e instanceof Vs||e instanceof Es?e.maxValue:0}populatePaintArrays(t,e,r,n,i){for(const s in this.binders){const a=this.binders[s];(a instanceof Vs||a instanceof Es||a instanceof Fs)&&a.populatePaintArray(t,e,r,n,i);}}setConstantPatternPositions(t,e){for(const r in this.binders){const n=this.binders[r];n instanceof Ps&&n.setConstantPatternPositions(t,e);}}updatePaintArrays(t,e,r,n,i){let s=!1;for(const a in t){const o=e.getPositions(a);for(const e of o){const o=r.feature(e.index);for(const r in this.binders){const l=this.binders[r];if((l instanceof Vs||l instanceof Es||l instanceof Fs)&&!0===l.expression.isStateDependent){const u=n.paint.get(r);l.expression=u.value,l.updatePaintArray(e.start,e.end,o,t[a],i),s=!0;}}}}return s}defines(){const t=[];for(const e in this.binders){const r=this.binders[e];(r instanceof Cs||r instanceof Ps)&&t.push(...r.uniformNames.map((t=>`#define HAS_UNIFORM_${t}`)));}return t}getBinderAttributes(){const t=[];for(const e in this.binders){const r=this.binders[e];if(r instanceof Vs||r instanceof Es)for(let e=0;e<r.paintVertexAttributes.length;e++)t.push(r.paintVertexAttributes[e].name);else if(r instanceof Fs)for(let e=0;e<fs.members.length;e++)t.push(fs.members[e].name);}return t}getBinderUniforms(){const t=[];for(const e in this.binders){const r=this.binders[e];if(r instanceof Cs||r instanceof Ps||r instanceof Es)for(const e of r.uniformNames)t.push(e);}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,e){const r=[];for(const n in this.binders){const i=this.binders[n];if(i instanceof Cs||i instanceof Ps||i instanceof Es)for(const s of i.uniformNames)if(e[s]){const a=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:a});}}return r}setUniforms(t,e,r,n){for(const{name:t,property:i,binding:s}of e)this.binders[i].setUniform(s,n,r.get(i),t);}updatePaintBuffers(t){this._buffers=[];for(const e in this.binders){const r=this.binders[e];if(t&&r instanceof Fs){const e=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;e&&this._buffers.push(e);}else (r instanceof Vs||r instanceof Es)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer);}}upload(t){for(const e in this.binders){const r=this.binders[e];(r instanceof Vs||r instanceof Es||r instanceof Fs)&&r.upload(t);}this.updatePaintBuffers();}destroy(){for(const t in this.binders){const e=this.binders[t];(e instanceof Vs||e instanceof Es||e instanceof Fs)&&e.destroy();}}}class Ls{constructor(t,e,r=(()=>!0)){this.programConfigurations={};for(const n of t)this.programConfigurations[n.id]=new Ts(n,e,r);this.needsUpload=!1,this._featureMap=new bs,this._bufferOffset=0;}populatePaintArrays(t,e,r,n,i,s){for(const r in this.programConfigurations)this.programConfigurations[r].populatePaintArrays(t,e,n,i,s);void 0!==e.id&&this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0;}updatePaintArrays(t,e,r,n){for(const i of r)this.needsUpload=this.programConfigurations[i.id].updatePaintArrays(t,this._featureMap,e,i,n)||this.needsUpload;}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(const e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1;}}destroy(){for(const t in this.programConfigurations)this.programConfigurations[t].destroy();}}function Ds(t,e){return {"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(`${e}-`,"").replace(/-/g,"_")]}function $s(t,e,r){const n={color:{source:_i,composite:Ri},number:{source:Fi,composite:_i}},i=function(t){return {"line-pattern":{source:es,composite:es},"fill-pattern":{source:es,composite:es},"fill-extrusion-pattern":{source:es,composite:es}}[t]}(t);return i&&i[r]||n[e][r]}kn("ConstantBinder",Cs),kn("CrossFadedConstantBinder",Ps),kn("SourceExpressionBinder",Vs),kn("CrossFadedCompositeBinder",Fs),kn("CompositeExpressionBinder",Es),kn("ProgramConfiguration",Ts,{omit:["_buffers"]}),kn("ProgramConfigurationSet",Ls);var Rs=8192;const Us=Math.pow(2,14)-1,Os=-Us-1;function qs(t){const e=Rs/t.extent,r=t.loadGeometry();for(let t=0;t<r.length;t++){const n=r[t];for(let t=0;t<n.length;t++){const r=n[t],i=Math.round(r.x*e),a=Math.round(r.y*e);r.x=s(i,Os,Us),r.y=s(a,Os,Us),(i<r.x||i>r.x+1||a<r.y||a>r.y+1)&&d("Geometry exceeds allowed extent, reduce your vector tile buffer size");}}return r}function js(t,e){return {type:t.type,id:t.id,properties:t.properties,geometry:e?qs(t):[]}}function Ns(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2);}class Ks{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((t=>t.id)),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Yi,this.indexArray=new os,this.segments=new hs,this.programConfigurations=new Ls(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((t=>t.isStateDependent())).map((t=>t.id));}populate(t,e,r){const n=this.layers[0],i=[];let s=null,a=!1;"circle"===n.type&&(s=n.layout.get("circle-sort-key"),a=!s.isConstant());for(const{feature:e,id:n,index:o,sourceLayerIndex:l}of t){const t=this.layers[0]._featureFilter.needGeometry,u=js(e,t);if(!this.layers[0]._featureFilter.filter(new Yn(this.zoom),u,r))continue;const c=a?s.evaluate(u,{},r):void 0,h={id:n,properties:e.properties,type:e.type,sourceLayerIndex:l,index:o,geometry:t?u.geometry:qs(e),patterns:{},sortKey:c};i.push(h);}a&&i.sort(((t,e)=>t.sortKey-e.sortKey));for(const n of i){const{geometry:i,index:s,sourceLayerIndex:a}=n,o=t[s].feature;this.addFeature(n,i,s,r),e.featureIndex.insert(o,i,s,a,this.index);}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r);}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return !this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,cs),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0;}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy());}addFeature(t,e,r,n){for(const r of e)for(const e of r){const r=e.x,n=e.y;if(r<0||r>=Rs||n<0||n>=Rs)continue;const i=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),s=i.vertexLength;Ns(this.layoutVertexArray,r,n,-1,-1),Ns(this.layoutVertexArray,r,n,1,-1),Ns(this.layoutVertexArray,r,n,1,1),Ns(this.layoutVertexArray,r,n,-1,1),this.indexArray.emplaceBack(s,s+1,s+2),this.indexArray.emplaceBack(s,s+3,s+2),i.vertexLength+=4,i.primitiveLength+=2;}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n);}}function Zs(t,e){for(let r=0;r<t.length;r++)if(ea(e,t[r]))return !0;for(let r=0;r<e.length;r++)if(ea(t,e[r]))return !0;return !!Ys(t,e)}function Gs(t,e,r){return !!ea(t,e)||!!Ws(e,t,r)}function Js(t,e){if(1===t.length)return ta(e,t[0]);for(let r=0;r<e.length;r++){const n=e[r];for(let e=0;e<n.length;e++)if(ea(t,n[e]))return !0}for(let r=0;r<t.length;r++)if(ta(e,t[r]))return !0;for(let r=0;r<e.length;r++)if(Ys(t,e[r]))return !0;return !1}function Xs(t,e,r){if(t.length>1){if(Ys(t,e))return !0;for(let n=0;n<e.length;n++)if(Ws(e[n],t,r))return !0}for(let n=0;n<t.length;n++)if(Ws(t[n],e,r))return !0;return !1}function Ys(t,e){if(0===t.length||0===e.length)return !1;for(let r=0;r<t.length-1;r++){const n=t[r],i=t[r+1];for(let t=0;t<e.length-1;t++)if(Hs(n,i,e[t],e[t+1]))return !0}return !1}function Hs(t,e,r,n){return y(t,r,n)!==y(e,r,n)&&y(t,e,r)!==y(t,e,n)}function Ws(t,e,r){const n=r*r;if(1===e.length)return t.distSqr(e[0])<n;for(let r=1;r<e.length;r++)if(Qs(t,e[r-1],e[r])<n)return !0;return !1}function Qs(t,e,r){const n=e.distSqr(r);if(0===n)return t.distSqr(e);const i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return t.distSqr(i<0?e:i>1?r:r.sub(e)._mult(i)._add(e))}function ta(t,e){let r,n,i,s=!1;for(let a=0;a<t.length;a++){r=t[a];for(let t=0,a=r.length-1;t<r.length;a=t++)n=r[t],i=r[a],n.y>e.y!=i.y>e.y&&e.x<(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&&(s=!s);}return s}function ea(t,e){let r=!1;for(let n=0,i=t.length-1;n<t.length;i=n++){const s=t[n],a=t[i];s.y>e.y!=a.y>e.y&&e.x<(a.x-s.x)*(e.y-s.y)/(a.y-s.y)+s.x&&(r=!r);}return r}function ra(t,e,r){const n=r[0],i=r[2];if(t.x<n.x&&e.x<n.x||t.x>i.x&&e.x>i.x||t.y<n.y&&e.y<n.y||t.y>i.y&&e.y>i.y)return !1;const s=y(t,e,r[0]);return s!==y(t,e,r[1])||s!==y(t,e,r[2])||s!==y(t,e,r[3])}function na(t,e,r){const n=e.paint.get(t).value;return "constant"===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function ia(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function sa(t,e,r,n,i){if(!e[0]&&!e[1])return t;const s=S.convert(e)._mult(i);"viewport"===r&&s._rotate(-n);const a=[];for(let e=0;e<t.length;e++)a.push(t[e].sub(s));return a}kn("CircleBucket",Ks,{omit:["layers"]});const aa=new ci({"circle-sort-key":new ai(nt.layout_circle["circle-sort-key"])});var oa={paint:new ci({"circle-radius":new ai(nt.paint_circle["circle-radius"]),"circle-color":new ai(nt.paint_circle["circle-color"]),"circle-blur":new ai(nt.paint_circle["circle-blur"]),"circle-opacity":new ai(nt.paint_circle["circle-opacity"]),"circle-translate":new si(nt.paint_circle["circle-translate"]),"circle-translate-anchor":new si(nt.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new si(nt.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new si(nt.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new ai(nt.paint_circle["circle-stroke-width"]),"circle-stroke-color":new ai(nt.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new ai(nt.paint_circle["circle-stroke-opacity"])}),layout:aa},la="undefined"!=typeof Float32Array?Float32Array:Array;function ua(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ca(t,e,r){var n=e[0],i=e[1],s=e[2],a=e[3],o=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=e[9],f=e[10],d=e[11],y=e[12],m=e[13],g=e[14],x=e[15],v=r[0],b=r[1],w=r[2],_=r[3];return t[0]=v*n+b*o+w*h+_*y,t[1]=v*i+b*l+w*p+_*m,t[2]=v*s+b*u+w*f+_*g,t[3]=v*a+b*c+w*d+_*x,t[4]=(v=r[4])*n+(b=r[5])*o+(w=r[6])*h+(_=r[7])*y,t[5]=v*i+b*l+w*p+_*m,t[6]=v*s+b*u+w*f+_*g,t[7]=v*a+b*c+w*d+_*x,t[8]=(v=r[8])*n+(b=r[9])*o+(w=r[10])*h+(_=r[11])*y,t[9]=v*i+b*l+w*p+_*m,t[10]=v*s+b*u+w*f+_*g,t[11]=v*a+b*c+w*d+_*x,t[12]=(v=r[12])*n+(b=r[13])*o+(w=r[14])*h+(_=r[15])*y,t[13]=v*i+b*l+w*p+_*m,t[14]=v*s+b*u+w*f+_*g,t[15]=v*a+b*c+w*d+_*x,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var ha,pa=ca;function fa(t,e,r){var n=e[0],i=e[1],s=e[2],a=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*s+r[12]*a,t[1]=r[1]*n+r[5]*i+r[9]*s+r[13]*a,t[2]=r[2]*n+r[6]*i+r[10]*s+r[14]*a,t[3]=r[3]*n+r[7]*i+r[11]*s+r[15]*a,t}function da(t,e){const r=fa([],[t.x,t.y,0,1],e);return new S(r[0]/r[3],r[1]/r[3])}ha=new la(4),la!=Float32Array&&(ha[0]=0,ha[1]=0,ha[2]=0,ha[3]=0);class ya extends Ks{}kn("HeatmapBucket",ya,{omit:["layers"]});var ma={paint:new ci({"heatmap-radius":new ai(nt.paint_heatmap["heatmap-radius"]),"heatmap-weight":new ai(nt.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new si(nt.paint_heatmap["heatmap-intensity"]),"heatmap-color":new ui(nt.paint_heatmap["heatmap-color"]),"heatmap-opacity":new si(nt.paint_heatmap["heatmap-opacity"])})};function ga(t,{width:e,height:r},n,i){if(i){if(i instanceof Uint8ClampedArray)i=new Uint8Array(i.buffer);else if(i.length!==e*r*n)throw new RangeError(`mismatched image size. expected: ${i.length} but got: ${e*r*n}`)}else i=new Uint8Array(e*r*n);return t.width=e,t.height=r,t.data=i,t}function xa(t,{width:e,height:r},n){if(e===t.width&&r===t.height)return;const i=ga({},{width:e,height:r},n);va(t,i,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,e),height:Math.min(t.height,r)},n),t.width=e,t.height=r,t.data=i.data;}function va(t,e,r,n,i,s){if(0===i.width||0===i.height)return e;if(i.width>t.width||i.height>t.height||r.x>t.width-i.width||r.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||n.x>e.width-i.width||n.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");const a=t.data,o=e.data;for(let l=0;l<i.height;l++){const u=((r.y+l)*t.width+r.x)*s,c=((n.y+l)*e.width+n.x)*s;for(let t=0;t<i.width*s;t++)o[c+t]=a[u+t];}return e}class ba{constructor(t,e){ga(this,t,1,e);}resize(t){xa(this,t,1);}clone(){return new ba({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,e,r,n,i){va(t,e,r,n,i,1);}}class wa{constructor(t,e){ga(this,t,4,e);}resize(t){xa(this,t,4);}replace(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t;}clone(){return new wa({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,e,r,n,i){va(t,e,r,n,i,4);}}function _a(t){const e={},r=t.resolution||256,n=t.clips?t.clips.length:1,i=t.image||new wa({width:r,height:n}),s=(r,n,s)=>{e[t.evaluationKey]=s;const a=t.expression.evaluate(e);i.data[r+n+0]=Math.floor(255*a.r/a.a),i.data[r+n+1]=Math.floor(255*a.g/a.a),i.data[r+n+2]=Math.floor(255*a.b/a.a),i.data[r+n+3]=Math.floor(255*a.a);};if(t.clips)for(let e=0,i=0;e<n;++e,i+=4*r)for(let n=0,a=0;n<r;n++,a+=4){const o=n/(r-1),{start:l,end:u}=t.clips[e];s(i,a,l*(1-o)+u*o);}else for(let t=0,e=0;t<r;t++,e+=4)s(0,e,t/(r-1));return i}kn("AlphaImage",ba),kn("RGBAImage",wa);var Aa={paint:new ci({"hillshade-illumination-direction":new si(nt.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new si(nt.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new si(nt.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new si(nt.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new si(nt.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new si(nt.paint_hillshade["hillshade-accent-color"])})};const ka=mi([{name:"a_pos",components:2,type:"Int16"}],4),{members:Sa}=ka;var za={exports:{}};function Ia(t,e,r){r=r||2;var n,i,s,a,o,l,u,c=e&&e.length,h=c?e[0]*r:t.length,p=Ma(t,0,h,r,!0),f=[];if(!p||p.next===p.prev)return f;if(c&&(p=function(t,e,r,n){var i,s,a,o=[];for(i=0,s=e.length;i<s;i++)(a=Ma(t,e[i]*n,i<s-1?e[i+1]*n:t.length,n,!1))===a.next&&(a.steiner=!0),o.push(Ra(a));for(o.sort(Ta),i=0;i<o.length;i++)r=Ba(r=La(o[i],r),r.next);return r}(t,e,p,r)),t.length>80*r){n=s=t[0],i=a=t[1];for(var d=r;d<h;d+=r)(o=t[d])<n&&(n=o),(l=t[d+1])<i&&(i=l),o>s&&(s=o),l>a&&(a=l);u=0!==(u=Math.max(s-n,a-i))?1/u:0;}return Ca(p,f,r,n,i,u),f}function Ma(t,e,r,n,i){var s,a;if(i===Wa(t,e,r,n)>0)for(s=e;s<r;s+=n)a=Xa(s,t[s],t[s+1],a);else for(s=r-n;s>=e;s-=n)a=Xa(s,t[s],t[s+1],a);return a&&ja(a,a.next)&&(Ya(a),a=a.next),a}function Ba(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!ja(n,n.next)&&0!==qa(n.prev,n,n.next))n=n.next;else {if(Ya(n),(n=e=n.prev)===n.next)break;r=!0;}}while(r||n!==e);return e}function Ca(t,e,r,n,i,s,a){if(t){!a&&s&&function(t,e,r,n){var i=t;do{null===i.z&&(i.z=$a(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,s,a,o,l,u=1;do{for(r=t,t=null,s=null,a=0;r;){for(a++,n=r,o=0,e=0;e<u&&(o++,n=n.nextZ);e++);for(l=u;o>0||l>0&&n;)0!==o&&(0===l||!n||r.z<=n.z)?(i=r,r=r.nextZ,o--):(i=n,n=n.nextZ,l--),s?s.nextZ=i:t=i,i.prevZ=s,s=i;r=n;}s.nextZ=null,u*=2;}while(a>1)}(i);}(t,n,i,s);for(var o,l,u=t;t.prev!==t.next;)if(o=t.prev,l=t.next,s?Va(t,n,i,s):Pa(t))e.push(o.i/r),e.push(t.i/r),e.push(l.i/r),Ya(t),t=l.next,u=l.next;else if((t=l)===u){a?1===a?Ca(t=Ea(Ba(t),e,r),e,r,n,i,s,2):2===a&&Fa(t,e,r,n,i,s):Ca(Ba(t),e,r,n,i,s,1);break}}}function Pa(t){var e=t.prev,r=t,n=t.next;if(qa(e,r,n)>=0)return !1;for(var i=t.next.next;i!==t.prev;){if(Ua(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&qa(i.prev,i,i.next)>=0)return !1;i=i.next;}return !0}function Va(t,e,r,n){var i=t.prev,s=t,a=t.next;if(qa(i,s,a)>=0)return !1;for(var o=i.x>s.x?i.x>a.x?i.x:a.x:s.x>a.x?s.x:a.x,l=i.y>s.y?i.y>a.y?i.y:a.y:s.y>a.y?s.y:a.y,u=$a(i.x<s.x?i.x<a.x?i.x:a.x:s.x<a.x?s.x:a.x,i.y<s.y?i.y<a.y?i.y:a.y:s.y<a.y?s.y:a.y,e,r,n),c=$a(o,l,e,r,n),h=t.prevZ,p=t.nextZ;h&&h.z>=u&&p&&p.z<=c;){if(h!==t.prev&&h!==t.next&&Ua(i.x,i.y,s.x,s.y,a.x,a.y,h.x,h.y)&&qa(h.prev,h,h.next)>=0)return !1;if(h=h.prevZ,p!==t.prev&&p!==t.next&&Ua(i.x,i.y,s.x,s.y,a.x,a.y,p.x,p.y)&&qa(p.prev,p,p.next)>=0)return !1;p=p.nextZ;}for(;h&&h.z>=u;){if(h!==t.prev&&h!==t.next&&Ua(i.x,i.y,s.x,s.y,a.x,a.y,h.x,h.y)&&qa(h.prev,h,h.next)>=0)return !1;h=h.prevZ;}for(;p&&p.z<=c;){if(p!==t.prev&&p!==t.next&&Ua(i.x,i.y,s.x,s.y,a.x,a.y,p.x,p.y)&&qa(p.prev,p,p.next)>=0)return !1;p=p.nextZ;}return !0}function Ea(t,e,r){var n=t;do{var i=n.prev,s=n.next.next;!ja(i,s)&&Na(i,n,n.next,s)&&Ga(i,s)&&Ga(s,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(s.i/r),Ya(n),Ya(n.next),n=t=s),n=n.next;}while(n!==t);return Ba(n)}function Fa(t,e,r,n,i,s){var a=t;do{for(var o=a.next.next;o!==a.prev;){if(a.i!==o.i&&Oa(a,o)){var l=Ja(a,o);return a=Ba(a,a.next),l=Ba(l,l.next),Ca(a,e,r,n,i,s),void Ca(l,e,r,n,i,s)}o=o.next;}a=a.next;}while(a!==t)}function Ta(t,e){return t.x-e.x}function La(t,e){var r=function(t,e){var r,n=e,i=t.x,s=t.y,a=-1/0;do{if(s<=n.y&&s>=n.next.y&&n.next.y!==n.y){var o=n.x+(s-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(o<=i&&o>a){if(a=o,o===i){if(s===n.y)return n;if(s===n.next.y)return n.next}r=n.x<n.next.x?n:n.next;}}n=n.next;}while(n!==e);if(!r)return null;if(i===a)return r;var l,u=r,c=r.x,h=r.y,p=1/0;n=r;do{i>=n.x&&n.x>=c&&i!==n.x&&Ua(s<h?i:a,s,c,h,s<h?a:i,s,n.x,n.y)&&(l=Math.abs(s-n.y)/(i-n.x),Ga(n,t)&&(l<p||l===p&&(n.x>r.x||n.x===r.x&&Da(r,n)))&&(r=n,p=l)),n=n.next;}while(n!==u);return r}(t,e);if(!r)return e;var n=Ja(r,t),i=Ba(r,r.next);return Ba(n,n.next),e===r?i:e}function Da(t,e){return qa(t.prev,t,e.prev)<0&&qa(e.next,t,t.next)<0}function $a(t,e,r,n,i){return (t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Ra(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next;}while(e!==t);return r}function Ua(t,e,r,n,i,s,a,o){return (i-a)*(e-o)-(t-a)*(s-o)>=0&&(t-a)*(n-o)-(r-a)*(e-o)>=0&&(r-a)*(s-o)-(i-a)*(n-o)>=0}function Oa(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&Na(r,r.next,t,e))return !0;r=r.next;}while(r!==t);return !1}(t,e)&&(Ga(t,e)&&Ga(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,s=(t.y+e.y)/2;do{r.y>s!=r.next.y>s&&r.next.y!==r.y&&i<(r.next.x-r.x)*(s-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;}while(r!==t);return n}(t,e)&&(qa(t.prev,t,e.prev)||qa(t,e.prev,e))||ja(t,e)&&qa(t.prev,t,t.next)>0&&qa(e.prev,e,e.next)>0)}function qa(t,e,r){return (e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function ja(t,e){return t.x===e.x&&t.y===e.y}function Na(t,e,r,n){var i=Za(qa(t,e,r)),s=Za(qa(t,e,n)),a=Za(qa(r,n,t)),o=Za(qa(r,n,e));return i!==s&&a!==o||!(0!==i||!Ka(t,r,e))||!(0!==s||!Ka(t,n,e))||!(0!==a||!Ka(r,t,n))||!(0!==o||!Ka(r,e,n))}function Ka(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function Za(t){return t>0?1:t<0?-1:0}function Ga(t,e){return qa(t.prev,t,t.next)<0?qa(t,e,t.next)>=0&&qa(t,t.prev,e)>=0:qa(t,e,t.prev)<0||qa(t,t.next,e)<0}function Ja(t,e){var r=new Ha(t.i,t.x,t.y),n=new Ha(e.i,e.x,e.y),i=t.next,s=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,s.next=n,n.prev=s,n}function Xa(t,e,r,n){var i=new Ha(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ya(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ);}function Ha(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1;}function Wa(t,e,r,n){for(var i=0,s=e,a=r-n;s<r;s+=n)i+=(t[a]-t[s])*(t[s+1]+t[a+1]),a=s;return i}za.exports=Ia,za.exports.default=Ia,Ia.deviation=function(t,e,r,n){var i=e&&e.length,s=Math.abs(Wa(t,0,i?e[0]*r:t.length,r));if(i)for(var a=0,o=e.length;a<o;a++)s-=Math.abs(Wa(t,e[a]*r,a<o-1?e[a+1]*r:t.length,r));var l=0;for(a=0;a<n.length;a+=3){var u=n[a]*r,c=n[a+1]*r,h=n[a+2]*r;l+=Math.abs((t[u]-t[h])*(t[c+1]-t[u+1])-(t[u]-t[c])*(t[h+1]-t[u+1]));}return 0===s&&0===l?0:Math.abs((l-s)/s)},Ia.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var s=0;s<t[i].length;s++)for(var a=0;a<e;a++)r.vertices.push(t[i][s][a]);i>0&&r.holes.push(n+=t[i-1].length);}return r};var Qa=za.exports;function to(t,e,r,n,i){eo(t,e,r||0,n||t.length-1,i||no);}function eo(t,e,r,n,i){for(;n>r;){if(n-r>600){var s=n-r+1,a=e-r+1,o=Math.log(s),l=.5*Math.exp(2*o/3),u=.5*Math.sqrt(o*l*(s-l)/s)*(a-s/2<0?-1:1);eo(t,e,Math.max(r,Math.floor(e-a*l/s+u)),Math.min(n,Math.floor(e+(s-a)*l/s+u)),i);}var c=t[e],h=r,p=n;for(ro(t,r,e),i(t[n],c)>0&&ro(t,r,n);h<p;){for(ro(t,h,p),h++,p--;i(t[h],c)<0;)h++;for(;i(t[p],c)>0;)p--;}0===i(t[r],c)?ro(t,r,p):ro(t,++p,n),p<=e&&(r=p+1),e<=p&&(n=p-1);}}function ro(t,e,r){var n=t[e];t[e]=t[r],t[r]=n;}function no(t,e){return t<e?-1:t>e?1:0}function io(t,e){const r=t.length;if(r<=1)return [t];const n=[];let i,s;for(let e=0;e<r;e++){const r=m(t[e]);0!==r&&(t[e].area=Math.abs(r),void 0===s&&(s=r<0),s===r<0?(i&&n.push(i),i=[t[e]]):i.push(t[e]));}if(i&&n.push(i),e>1)for(let t=0;t<n.length;t++)n[t].length<=e||(to(n[t],e,1,n[t].length-1,so),n[t]=n[t].slice(0,e));return n}function so(t,e){return e.area-t.area}function ao(t,e,r){const n=r.patternDependencies;let i=!1;for(const r of e){const e=r.paint.get(`${t}-pattern`);e.isConstant()||(i=!0);const s=e.constantOr(null);s&&(i=!0,n[s.to]=!0,n[s.from]=!0);}return i}function oo(t,e,r,n,i){const s=i.patternDependencies;for(const a of e){const e=a.paint.get(`${t}-pattern`).value;if("constant"!==e.kind){let t=e.evaluate({zoom:n-1},r,{},i.availableImages),o=e.evaluate({zoom:n},r,{},i.availableImages),l=e.evaluate({zoom:n+1},r,{},i.availableImages);t=t&&t.name?t.name:t,o=o&&o.name?o.name:o,l=l&&l.name?l.name:l,s[t]=!0,s[o]=!0,s[l]=!0,r.patterns[a.id]={min:t,mid:o,max:l};}}return r}class lo{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((t=>t.id)),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Hi,this.indexArray=new os,this.indexArray2=new ls,this.programConfigurations=new Ls(t.layers,t.zoom),this.segments=new hs,this.segments2=new hs,this.stateDependentLayerIds=this.layers.filter((t=>t.isStateDependent())).map((t=>t.id));}populate(t,e,r){this.hasPattern=ao("fill",this.layers,e);const n=this.layers[0].layout.get("fill-sort-key"),i=!n.isConstant(),s=[];for(const{feature:a,id:o,index:l,sourceLayerIndex:u}of t){const t=this.layers[0]._featureFilter.needGeometry,c=js(a,t);if(!this.layers[0]._featureFilter.filter(new Yn(this.zoom),c,r))continue;const h=i?n.evaluate(c,{},r,e.availableImages):void 0,p={id:o,properties:a.properties,type:a.type,sourceLayerIndex:u,index:l,geometry:t?c.geometry:qs(a),patterns:{},sortKey:h};s.push(p);}i&&s.sort(((t,e)=>t.sortKey-e.sortKey));for(const n of s){const{geometry:i,index:s,sourceLayerIndex:a}=n;if(this.hasPattern){const t=oo("fill",this.layers,n,this.zoom,e);this.patternFeatures.push(t);}else this.addFeature(n,i,s,r,{});e.featureIndex.insert(t[s].feature,i,s,a,this.index);}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r);}addFeatures(t,e,r){for(const t of this.patternFeatures)this.addFeature(t,t.geometry,t.index,e,r);}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return !this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Sa),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0;}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy());}addFeature(t,e,r,n,i){for(const t of io(e,500)){let e=0;for(const r of t)e+=r.length;const r=this.segments.prepareSegment(e,this.layoutVertexArray,this.indexArray),n=r.vertexLength,i=[],s=[];for(const e of t){if(0===e.length)continue;e!==t[0]&&s.push(i.length/2);const r=this.segments2.prepareSegment(e.length,this.layoutVertexArray,this.indexArray2),n=r.vertexLength;this.layoutVertexArray.emplaceBack(e[0].x,e[0].y),this.indexArray2.emplaceBack(n+e.length-1,n),i.push(e[0].x),i.push(e[0].y);for(let t=1;t<e.length;t++)this.layoutVertexArray.emplaceBack(e[t].x,e[t].y),this.indexArray2.emplaceBack(n+t-1,n+t),i.push(e[t].x),i.push(e[t].y);r.vertexLength+=e.length,r.primitiveLength+=e.length;}const a=Qa(i,s);for(let t=0;t<a.length;t+=3)this.indexArray.emplaceBack(n+a[t],n+a[t+1],n+a[t+2]);r.vertexLength+=e,r.primitiveLength+=a.length/3;}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n);}}kn("FillBucket",lo,{omit:["layers","patternFeatures"]});const uo=new ci({"fill-sort-key":new ai(nt.layout_fill["fill-sort-key"])});var co={paint:new ci({"fill-antialias":new si(nt.paint_fill["fill-antialias"]),"fill-opacity":new ai(nt.paint_fill["fill-opacity"]),"fill-color":new ai(nt.paint_fill["fill-color"]),"fill-outline-color":new ai(nt.paint_fill["fill-outline-color"]),"fill-translate":new si(nt.paint_fill["fill-translate"]),"fill-translate-anchor":new si(nt.paint_fill["fill-translate-anchor"]),"fill-pattern":new oi(nt.paint_fill["fill-pattern"])}),layout:uo};const ho=mi([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),{members:po}=ho;var fo={},yo=S,mo=go;function go(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(xo,this,e);}function xo(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos<r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i;}}(r,e):3==t?e.type=r.readVarint():4==t&&(e._geometry=r.pos);}function vo(t){for(var e,r,n=0,i=0,s=t.length,a=s-1;i<s;a=i++)n+=((r=t[a]).x-(e=t[i]).x)*(e.y+r.y);return n}go.types=["Unknown","Point","LineString","Polygon"],go.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,i=0,s=0,a=0,o=[];t.pos<r;){if(i<=0){var l=t.readVarint();n=7&l,i=l>>3;}if(i--,1===n||2===n)s+=t.readSVarint(),a+=t.readSVarint(),1===n&&(e&&o.push(e),e=[]),e.push(new yo(s,a));else {if(7!==n)throw new Error("unknown command "+n);e&&e.push(e[0].clone());}}return e&&o.push(e),o},go.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,s=0,a=1/0,o=-1/0,l=1/0,u=-1/0;t.pos<e;){if(n<=0){var c=t.readVarint();r=7&c,n=c>>3;}if(n--,1===r||2===r)(i+=t.readSVarint())<a&&(a=i),i>o&&(o=i),(s+=t.readSVarint())<l&&(l=s),s>u&&(u=s);else if(7!==r)throw new Error("unknown command "+r)}return [a,l,o,u]},go.prototype.toGeoJSON=function(t,e,r){var n,i,s=this.extent*Math.pow(2,r),a=this.extent*t,o=this.extent*e,l=this.loadGeometry(),u=go.types[this.type];function c(t){for(var e=0;e<t.length;e++){var r=t[e];t[e]=[360*(r.x+a)/s-180,360/Math.PI*Math.atan(Math.exp((180-360*(r.y+o)/s)*Math.PI/180))-90];}}switch(this.type){case 1:var h=[];for(n=0;n<l.length;n++)h[n]=l[n][0];c(l=h);break;case 2:for(n=0;n<l.length;n++)c(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e<=1)return [t];for(var r,n,i=[],s=0;s<e;s++){var a=vo(t[s]);0!==a&&(void 0===n&&(n=a<0),n===a<0?(r&&i.push(r),r=[t[s]]):r.push(t[s]));}return r&&i.push(r),i}(l),n=0;n<l.length;n++)for(i=0;i<l[n].length;i++)c(l[n][i]);}1===l.length?l=l[0]:u="Multi"+u;var p={type:"Feature",geometry:{type:u,coordinates:l},properties:this.properties};return "id"in this&&(p.id=this.id),p};var bo=mo,wo=_o;function _o(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Ao,this,e),this.length=this._features.length;}function Ao(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&&e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos<r;){var n=t.readVarint()>>3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null;}return e}(r));}_o.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new bo(this._pbf,e,this.extent,this._keys,this._values)};var ko=wo;function So(t,e,r){if(3===t){var n=new ko(r,r.readVarint()+r.pos);n.length&&(e[n.name]=n);}}fo.VectorTile=function(t,e){this.layers=t.readFields(So,{},e);},fo.VectorTileFeature=mo,fo.VectorTileLayer=wo;const zo=fo.VectorTileFeature.types,Io=Math.pow(2,13);function Mo(t,e,r,n,i,s,a,o){t.emplaceBack(e,r,2*Math.floor(n*Io)+a,i*Io*2,s*Io*2,Math.round(o));}class Bo{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((t=>t.id)),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Wi,this.indexArray=new os,this.programConfigurations=new Ls(t.layers,t.zoom),this.segments=new hs,this.stateDependentLayerIds=this.layers.filter((t=>t.isStateDependent())).map((t=>t.id));}populate(t,e,r){this.features=[],this.hasPattern=ao("fill-extrusion",this.layers,e);for(const{feature:n,id:i,index:s,sourceLayerIndex:a}of t){const t=this.layers[0]._featureFilter.needGeometry,o=js(n,t);if(!this.layers[0]._featureFilter.filter(new Yn(this.zoom),o,r))continue;const l={id:i,sourceLayerIndex:a,index:s,geometry:t?o.geometry:qs(n),properties:n.properties,type:n.type,patterns:{}};this.hasPattern?this.features.push(oo("fill-extrusion",this.layers,l,this.zoom,e)):this.addFeature(l,l.geometry,s,r,{}),e.featureIndex.insert(n,l.geometry,s,a,this.index,!0);}}addFeatures(t,e,r){for(const t of this.features){const{geometry:n}=t;this.addFeature(t,n,t.index,e,r);}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r);}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return !this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,po),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0;}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy());}addFeature(t,e,r,n,i){for(const r of io(e,500)){let e=0;for(const t of r)e+=t.length;let n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const t of r){if(0===t.length)continue;if(Po(t))continue;let e=0;for(let r=0;r<t.length;r++){const i=t[r];if(r>=1){const s=t[r-1];if(!Co(i,s)){n.vertexLength+4>hs.MAX_VERTEX_ARRAY_LENGTH&&(n=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const t=i.sub(s)._perp()._unit(),r=s.dist(i);e+r>32768&&(e=0),Mo(this.layoutVertexArray,i.x,i.y,t.x,t.y,0,0,e),Mo(this.layoutVertexArray,i.x,i.y,t.x,t.y,0,1,e),e+=r,Mo(this.layoutVertexArray,s.x,s.y,t.x,t.y,0,0,e),Mo(this.layoutVertexArray,s.x,s.y,t.x,t.y,0,1,e);const a=n.vertexLength;this.indexArray.emplaceBack(a,a+2,a+1),this.indexArray.emplaceBack(a+1,a+2,a+3),n.vertexLength+=4,n.primitiveLength+=2;}}}}if(n.vertexLength+e>hs.MAX_VERTEX_ARRAY_LENGTH&&(n=this.segments.prepareSegment(e,this.layoutVertexArray,this.indexArray)),"Polygon"!==zo[t.type])continue;const i=[],s=[],a=n.vertexLength;for(const t of r)if(0!==t.length){t!==r[0]&&s.push(i.length/2);for(let e=0;e<t.length;e++){const r=t[e];Mo(this.layoutVertexArray,r.x,r.y,0,0,1,1,0),i.push(r.x),i.push(r.y);}}const o=Qa(i,s);for(let t=0;t<o.length;t+=3)this.indexArray.emplaceBack(a+o[t],a+o[t+2],a+o[t+1]);n.primitiveLength+=o.length/3,n.vertexLength+=e;}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n);}}function Co(t,e){return t.x===e.x&&(t.x<0||t.x>Rs)||t.y===e.y&&(t.y<0||t.y>Rs)}function Po(t){return t.every((t=>t.x<0))||t.every((t=>t.x>Rs))||t.every((t=>t.y<0))||t.every((t=>t.y>Rs))}kn("FillExtrusionBucket",Bo,{omit:["layers","features"]});var Vo={paint:new ci({"fill-extrusion-opacity":new si(nt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new ai(nt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new si(nt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new si(nt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new oi(nt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new ai(nt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new ai(nt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new si(nt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})};function Eo(t,e){return t.x*e.x+t.y*e.y}function Fo(t,e){if(1===t.length){let r=0;const n=e[r++];let i;for(;!i||n.equals(i);)if(i=e[r++],!i)return 1/0;for(;r<e.length;r++){const s=e[r],a=t[0],o=i.sub(n),l=s.sub(n),u=a.sub(n),c=Eo(o,o),h=Eo(o,l),p=Eo(l,l),f=Eo(u,o),d=Eo(u,l),y=c*p-h*h,m=(p*f-h*d)/y,g=(c*d-h*f)/y,x=n.z*(1-m-g)+i.z*m+s.z*g;if(isFinite(x))return x}return 1/0}{let t=1/0;for(const r of e)t=Math.min(t,r.z);return t}}const To=mi([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),{members:Lo}=To,Do=mi([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),{members:$o}=Do,Ro=fo.VectorTileFeature.types,Uo=Math.cos(Math.PI/180*37.5),Oo=Math.pow(2,14)/.5;class qo{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((t=>t.id)),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((t=>{this.gradients[t.id]={};})),this.layoutVertexArray=new Qi,this.layoutVertexArray2=new ts,this.indexArray=new os,this.programConfigurations=new Ls(t.layers,t.zoom),this.segments=new hs,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter((t=>t.isStateDependent())).map((t=>t.id));}populate(t,e,r){this.hasPattern=ao("line",this.layers,e);const n=this.layers[0].layout.get("line-sort-key"),i=!n.isConstant(),s=[];for(const{feature:e,id:a,index:o,sourceLayerIndex:l}of t){const t=this.layers[0]._featureFilter.needGeometry,u=js(e,t);if(!this.layers[0]._featureFilter.filter(new Yn(this.zoom),u,r))continue;const c=i?n.evaluate(u,{},r):void 0,h={id:a,properties:e.properties,type:e.type,sourceLayerIndex:l,index:o,geometry:t?u.geometry:qs(e),patterns:{},sortKey:c};s.push(h);}i&&s.sort(((t,e)=>t.sortKey-e.sortKey));for(const n of s){const{geometry:i,index:s,sourceLayerIndex:a}=n;if(this.hasPattern){const t=oo("line",this.layers,n,this.zoom,e);this.patternFeatures.push(t);}else this.addFeature(n,i,s,r,{});e.featureIndex.insert(t[s].feature,i,s,a,this.index);}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r);}addFeatures(t,e,r){for(const t of this.patternFeatures)this.addFeature(t,t.geometry,t.index,e,r);}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return !this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,$o)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Lo),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0;}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy());}lineFeatureClips(t){if(t.properties&&Object.prototype.hasOwnProperty.call(t.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(t.properties,"mapbox_clip_end"))return {start:+t.properties.mapbox_clip_start,end:+t.properties.mapbox_clip_end}}addFeature(t,e,r,n,i){const s=this.layers[0].layout,a=s.get("line-join").evaluate(t,{}),o=s.get("line-cap"),l=s.get("line-miter-limit"),u=s.get("line-round-limit");this.lineClips=this.lineFeatureClips(t);for(const r of e)this.addLine(r,t,a,o,l,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n);}addLine(t,e,r,n,i,s){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let e=0;e<t.length-1;e++)this.totalDistance+=t[e].dist(t[e+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance);}const a="Polygon"===Ro[e.type];let o=t.length;for(;o>=2&&t[o-1].equals(t[o-2]);)o--;let l=0;for(;l<o-1&&t[l].equals(t[l+1]);)l++;if(o<(a?3:2))return;"bevel"===r&&(i=1.05);const u=this.overscaling<=16?122880/(512*this.overscaling):0,c=this.segments.prepareSegment(10*o,this.layoutVertexArray,this.indexArray);let h,p,f,d,y;this.e1=this.e2=-1,a&&(h=t[o-2],y=t[l].sub(h)._unit()._perp());for(let e=l;e<o;e++){if(f=e===o-1?a?t[l+1]:void 0:t[e+1],f&&t[e].equals(f))continue;y&&(d=y),h&&(p=h),h=t[e],y=f?f.sub(h)._unit()._perp():d,d=d||y;let m=d.add(y);0===m.x&&0===m.y||m._unit();const g=d.x*y.x+d.y*y.y,x=m.x*y.x+m.y*y.y,v=0!==x?1/x:1/0,b=2*Math.sqrt(2-2*x),w=x<Uo&&p&&f,_=d.x*y.y-d.y*y.x>0;if(w&&e>l){const t=h.dist(p);if(t>2*u){const e=h.sub(h.sub(p)._mult(u/t)._round());this.updateDistance(p,e),this.addCurrentVertex(e,d,0,0,c),p=e;}}const A=p&&f;let k=A?r:a?"butt":n;if(A&&"round"===k&&(v<s?k="miter":v<=2&&(k="fakeround")),"miter"===k&&v>i&&(k="bevel"),"bevel"===k&&(v>2&&(k="flipbevel"),v<i&&(k="miter")),p&&this.updateDistance(p,h),"miter"===k)m._mult(v),this.addCurrentVertex(h,m,0,0,c);else if("flipbevel"===k){if(v>100)m=y.mult(-1);else {const t=v*d.add(y).mag()/d.sub(y).mag();m._perp()._mult(t*(_?-1:1));}this.addCurrentVertex(h,m,0,0,c),this.addCurrentVertex(h,m.mult(-1),0,0,c);}else if("bevel"===k||"fakeround"===k){const t=-Math.sqrt(v*v-1),e=_?t:0,r=_?0:t;if(p&&this.addCurrentVertex(h,d,e,r,c),"fakeround"===k){const t=Math.round(180*b/Math.PI/20);for(let e=1;e<t;e++){let r=e/t;if(.5!==r){const t=r-.5;r+=r*t*(r-1)*((1.0904+g*(g*(3.55645-1.43519*g)-3.2452))*t*t+(.848013+g*(.215638*g-1.06021)));}const n=y.sub(d)._mult(r)._add(d)._unit()._mult(_?-1:1);this.addHalfVertex(h,n.x,n.y,!1,_,0,c);}}f&&this.addCurrentVertex(h,y,-e,-r,c);}else if("butt"===k)this.addCurrentVertex(h,m,0,0,c);else if("square"===k){const t=p?1:-1;this.addCurrentVertex(h,m,t,t,c);}else "round"===k&&(p&&(this.addCurrentVertex(h,d,0,0,c),this.addCurrentVertex(h,d,1,1,c,!0)),f&&(this.addCurrentVertex(h,y,-1,-1,c,!0),this.addCurrentVertex(h,y,0,0,c)));if(w&&e<o-1){const t=h.dist(f);if(t>2*u){const e=h.add(f.sub(h)._mult(u/t)._round());this.updateDistance(h,e),this.addCurrentVertex(e,y,0,0,c),h=e;}}}}addCurrentVertex(t,e,r,n,i,s=!1){const a=e.y*n-e.x,o=-e.y-e.x*n;this.addHalfVertex(t,e.x+e.y*r,e.y-e.x*r,s,!1,r,i),this.addHalfVertex(t,a,o,s,!0,-n,i),this.distance>Oo/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,r,n,i,s));}addHalfVertex({x:t,y:e},r,n,i,s,a,o){const l=.5*(this.lineClips?this.scaledDistance*(Oo-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((t<<1)+(i?1:0),(e<<1)+(s?1:0),Math.round(63*r)+128,Math.round(63*n)+128,1+(0===a?0:a<0?-1:1)|(63&l)<<2,l>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),o.primitiveLength++),s?this.e2=u:this.e1=u;}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance;}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance();}}kn("LineBucket",qo,{omit:["layers","patternFeatures"]});const jo=new ci({"line-cap":new si(nt.layout_line["line-cap"]),"line-join":new ai(nt.layout_line["line-join"]),"line-miter-limit":new si(nt.layout_line["line-miter-limit"]),"line-round-limit":new si(nt.layout_line["line-round-limit"]),"line-sort-key":new ai(nt.layout_line["line-sort-key"])});var No={paint:new ci({"line-opacity":new ai(nt.paint_line["line-opacity"]),"line-color":new ai(nt.paint_line["line-color"]),"line-translate":new si(nt.paint_line["line-translate"]),"line-translate-anchor":new si(nt.paint_line["line-translate-anchor"]),"line-width":new ai(nt.paint_line["line-width"]),"line-gap-width":new ai(nt.paint_line["line-gap-width"]),"line-offset":new ai(nt.paint_line["line-offset"]),"line-blur":new ai(nt.paint_line["line-blur"]),"line-dasharray":new li(nt.paint_line["line-dasharray"]),"line-pattern":new oi(nt.paint_line["line-pattern"]),"line-gradient":new ui(nt.paint_line["line-gradient"])}),layout:jo};const Ko=new class extends ai{possiblyEvaluate(t,e){return e=new Yn(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,r,n){return e=o({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,r,n)}}(No.paint.properties["line-width"].specification);function Zo(t,e){return e>0?e+2*t:t}Ko.useIntegerZoom=!0;const Go=mi([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Jo=mi([{name:"a_projected_pos",components:3,type:"Float32"}],4);mi([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const Xo=mi([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]);mi([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const Yo=mi([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Ho=mi([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Wo(t,e,r){return t.sections.forEach((t=>{t.text=function(t,e,r){const n=e.layout.get("text-transform").evaluate(r,{});return "uppercase"===n?t=t.toLocaleUpperCase():"lowercase"===n&&(t=t.toLocaleLowerCase()),Xn.applyArabicShaping&&(t=Xn.applyArabicShaping(t)),t}(t.text,e,r);})),t}mi([{name:"triangle",components:3,type:"Uint16"}]),mi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),mi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),mi([{type:"Float32",name:"offsetX"}]),mi([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);const Qo={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var tl=24,el=il,rl=function(t,e,r,n,i){var s,a,o=8*i-n-1,l=(1<<o)-1,u=l>>1,c=-7,h=r?i-1:0,p=r?-1:1,f=t[e+h];for(h+=p,s=f&(1<<-c)-1,f>>=-c,c+=o;c>0;s=256*s+t[e+h],h+=p,c-=8);for(a=s&(1<<-c)-1,s>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=p,c-=8);if(0===s)s=1-u;else {if(s===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,n),s-=u;}return (f?-1:1)*a*Math.pow(2,s-n)},nl=function(t,e,r,n,i,s){var a,o,l,u=8*s-i-1,c=(1<<u)-1,h=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:s-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(o=0,a=c):a+h>=1?(o=(e*l-1)*Math.pow(2,i),a+=h):(o=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+f]=255&o,f+=d,o/=256,i-=8);for(a=a<<i|o,u+=i;u>0;t[r+f]=255&a,f+=d,a/=256,u-=8);t[r+f-d]|=128*y;};function il(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length;}il.Varint=0,il.Fixed64=1,il.Bytes=2,il.Fixed32=5;var sl,al=4294967296,ol=1/al,ll="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function ul(t){return t.type===il.Bytes?t.readVarint()+t.pos:t.pos+1}function cl(t,e,r){return r?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function hl(t,e,r){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=t;i--)r.buf[i+n]=r.buf[i];}function pl(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r]);}function fl(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r]);}function dl(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r]);}function yl(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r]);}function ml(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r]);}function gl(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r]);}function xl(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r]);}function vl(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r]);}function bl(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r]);}function wl(t,e){return (t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function _l(t,e,r){t[r]=e,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24;}function Al(t,e){return (t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function kl(t,e,r){1===t&&r.readMessage(Sl,e);}function Sl(t,e,r){if(3===t){const{id:t,bitmap:n,width:i,height:s,left:a,top:o,advance:l}=r.readMessage(zl,{});e.push({id:t,bitmap:new ba({width:i+6,height:s+6},n),metrics:{width:i,height:s,left:a,top:o,advance:l}});}}function zl(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&&(e.advance=r.readVarint());}function Il(t){let e=0,r=0;for(const n of t)e+=n.w*n.h,r=Math.max(r,n.w);t.sort(((t,e)=>e.h-t.h));const n=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}];let i=0,s=0;for(const e of t)for(let t=n.length-1;t>=0;t--){const r=n[t];if(!(e.w>r.w||e.h>r.h)){if(e.x=r.x,e.y=r.y,s=Math.max(s,e.y+e.h),i=Math.max(i,e.x+e.w),e.w===r.w&&e.h===r.h){const e=n.pop();t<n.length&&(n[t]=e);}else e.h===r.h?(r.x+=e.w,r.w-=e.w):e.w===r.w?(r.y+=e.h,r.h-=e.h):(n.push({x:r.x+e.w,y:r.y,w:r.w-e.w,h:e.h}),r.y+=e.h,r.h-=e.h);break}}return {w:i,h:s,fill:e/(i*s)||0}}il.prototype={destroy:function(){this.buf=null;},readFields:function(t,e,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),i=n>>3,s=this.pos;this.type=7&n,t(i,e,this),this.pos===s&&this.skip(n);}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=wl(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=Al(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=wl(this.buf,this.pos)+wl(this.buf,this.pos+4)*al;return this.pos+=8,t},readSFixed64:function(){var t=wl(this.buf,this.pos)+Al(this.buf,this.pos+4)*al;return this.pos+=8,t},readFloat:function(){var t=rl(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=rl(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&(r=n[this.pos++]),r<128?e:(e|=(127&(r=n[this.pos++]))<<7,r<128?e:(e|=(127&(r=n[this.pos++]))<<14,r<128?e:(e|=(127&(r=n[this.pos++]))<<21,r<128?e:function(t,e,r){var n,i,s=r.buf;if(n=(112&(i=s[r.pos++]))>>4,i<128)return cl(t,n,e);if(n|=(127&(i=s[r.pos++]))<<3,i<128)return cl(t,n,e);if(n|=(127&(i=s[r.pos++]))<<10,i<128)return cl(t,n,e);if(n|=(127&(i=s[r.pos++]))<<17,i<128)return cl(t,n,e);if(n|=(127&(i=s[r.pos++]))<<24,i<128)return cl(t,n,e);if(n|=(1&(i=s[r.pos++]))<<31,i<128)return cl(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(r=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&ll?function(t,e,r){return ll.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n="",i=e;i<r;){var s,a,o,l=t[i],u=null,c=l>239?4:l>223?3:l>191?2:1;if(i+c>r)break;1===c?l<128&&(u=l):2===c?128==(192&(s=t[i+1]))&&(u=(31&l)<<6|63&s)<=127&&(u=null):3===c?(a=t[i+2],128==(192&(s=t[i+1]))&&128==(192&a)&&((u=(15&l)<<12|(63&s)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(a=t[i+2],o=t[i+3],128==(192&(s=t[i+1]))&&128==(192&a)&&128==(192&o)&&((u=(15&l)<<18|(63&s)<<12|(63&a)<<6|63&o)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,n+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),n+=String.fromCharCode(u),i+=c;}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==il.Bytes)return t.push(this.readVarint(e));var r=ul(this);for(t=t||[];this.pos<r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==il.Bytes)return t.push(this.readSVarint());var e=ul(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==il.Bytes)return t.push(this.readBoolean());var e=ul(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==il.Bytes)return t.push(this.readFloat());var e=ul(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==il.Bytes)return t.push(this.readDouble());var e=ul(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==il.Bytes)return t.push(this.readFixed32());var e=ul(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==il.Bytes)return t.push(this.readSFixed32());var e=ul(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==il.Bytes)return t.push(this.readFixed64());var e=ul(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==il.Bytes)return t.push(this.readSFixed64());var e=ul(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===il.Varint)for(;this.buf[this.pos++]>127;);else if(e===il.Bytes)this.pos=this.readVarint()+this.pos;else if(e===il.Fixed32)this.pos+=4;else {if(e!==il.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8;}},writeTag:function(t,e){this.writeVarint(t<<3|e);},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e;}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),_l(this.buf,t,this.pos),this.pos+=4;},writeSFixed32:function(t){this.realloc(4),_l(this.buf,t,this.pos),this.pos+=4;},writeFixed64:function(t){this.realloc(8),_l(this.buf,-1&t,this.pos),_l(this.buf,Math.floor(t*ol),this.pos+4),this.pos+=8;},writeSFixed64:function(t){this.realloc(8),_l(this.buf,-1&t,this.pos),_l(this.buf,Math.floor(t*ol),this.pos+4),this.pos+=8;},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var r,n;if(t>=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,t>>>=7,r.buf[r.pos++]=127&t|128,r.buf[r.pos]=127&(t>>>=7);}(r,0,e),function(t,e){var r=(7&t)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))));}(n,e);}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))));},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t);},writeBoolean:function(t){this.writeVarint(Boolean(t));},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,s=0;s<e.length;s++){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){n>56319||s+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null;}else i&&(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=63&n|128);}return r}(this.buf,t,this.pos);var r=this.pos-e;r>=128&&hl(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r;},writeFloat:function(t){this.realloc(4),nl(this.buf,t,this.pos,!0,23,4),this.pos+=4;},writeDouble:function(t){this.realloc(8),nl(this.buf,t,this.pos,!0,52,8),this.pos+=8;},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r<e;r++)this.buf[this.pos++]=t[r];},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n>=128&&hl(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n;},writeMessage:function(t,e,r){this.writeTag(t,il.Bytes),this.writeRawMessage(e,r);},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,pl,e);},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,fl,e);},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,ml,e);},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,dl,e);},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,yl,e);},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,gl,e);},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,xl,e);},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,vl,e);},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,bl,e);},writeBytesField:function(t,e){this.writeTag(t,il.Bytes),this.writeBytes(e);},writeFixed32Field:function(t,e){this.writeTag(t,il.Fixed32),this.writeFixed32(e);},writeSFixed32Field:function(t,e){this.writeTag(t,il.Fixed32),this.writeSFixed32(e);},writeFixed64Field:function(t,e){this.writeTag(t,il.Fixed64),this.writeFixed64(e);},writeSFixed64Field:function(t,e){this.writeTag(t,il.Fixed64),this.writeSFixed64(e);},writeVarintField:function(t,e){this.writeTag(t,il.Varint),this.writeVarint(e);},writeSVarintField:function(t,e){this.writeTag(t,il.Varint),this.writeSVarint(e);},writeStringField:function(t,e){this.writeTag(t,il.Bytes),this.writeString(e);},writeFloatField:function(t,e){this.writeTag(t,il.Fixed32),this.writeFloat(e);},writeDoubleField:function(t,e){this.writeTag(t,il.Fixed64),this.writeDouble(e);},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e));}};class Ml{constructor(t,{pixelRatio:e,version:r,stretchX:n,stretchY:i,content:s}){this.paddedRect=t,this.pixelRatio=e,this.stretchX=n,this.stretchY=i,this.content=s,this.version=r;}get tl(){return [this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return [this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return [(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class Bl{constructor(t,e){const r={},n={};this.haveRenderCallbacks=[];const i=[];this.addImages(t,r,i),this.addImages(e,n,i);const{w:s,h:a}=Il(i),o=new wa({width:s||1,height:a||1});for(const e in t){const n=t[e],i=r[e].paddedRect;wa.copy(n.data,o,{x:0,y:0},{x:i.x+1,y:i.y+1},n.data);}for(const t in e){const r=e[t],i=n[t].paddedRect,s=i.x+1,a=i.y+1,l=r.data.width,u=r.data.height;wa.copy(r.data,o,{x:0,y:0},{x:s,y:a},r.data),wa.copy(r.data,o,{x:0,y:u-1},{x:s,y:a-1},{width:l,height:1}),wa.copy(r.data,o,{x:0,y:0},{x:s,y:a+u},{width:l,height:1}),wa.copy(r.data,o,{x:l-1,y:0},{x:s-1,y:a},{width:1,height:u}),wa.copy(r.data,o,{x:0,y:0},{x:s+l,y:a},{width:1,height:u});}this.image=o,this.iconPositions=r,this.patternPositions=n;}addImages(t,e,r){for(const n in t){const i=t[n],s={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(s),e[n]=new Ml(s,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(n);}}patchUpdatedImages(t,e){t.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const r in t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e);}patchUpdatedImage(t,e,r){if(!t||!e)return;if(t.version===e.version)return;t.version=e.version;const[n,i]=t.tl;r.update(e.data,void 0,{x:n,y:i});}}kn("ImagePosition",Ml),kn("ImageAtlas",Bl),t.WritingMode=void 0,(sl=t.WritingMode||(t.WritingMode={}))[sl.none=0]="none",sl[sl.horizontal=1]="horizontal",sl[sl.vertical=2]="vertical",sl[sl.horizontalOnly=3]="horizontalOnly";const Cl=-17;class Pl{constructor(){this.scale=1,this.fontStack="",this.imageName=null;}static forText(t,e){const r=new Pl;return r.scale=t||1,r.fontStack=e,r}static forImage(t){const e=new Pl;return e.imageName=t,e}}class Vl{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null;}static fromFeature(t,e){const r=new Vl;for(let n=0;n<t.sections.length;n++){const i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e);}return r}length(){return this.text.length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}getCharCode(t){return this.text.charCodeAt(t)}verticalizePunctuation(){this.text=function(t){let e="";for(let r=0;r<t.length;r++){const n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;e+=n&&Fn(n)&&!Qo[t[r+1]]||i&&Fn(i)&&!Qo[t[r-1]]||!Qo[t[r]]?t[r]:Qo[t[r]];}return e}(this.text);}trim(){let t=0;for(let e=0;e<this.text.length&&Fl[this.text.charCodeAt(e)];e++)t++;let e=this.text.length;for(let r=this.text.length-1;r>=0&&r>=t&&Fl[this.text.charCodeAt(r)];r--)e--;this.text=this.text.substring(t,e),this.sectionIndex=this.sectionIndex.slice(t,e);}substring(t,e){const r=new Vl;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((t,e)=>Math.max(t,this.sections[e].scale)),0)}addTextSection(t,e){this.text+=t.text,this.sections.push(Pl.forText(t.scale,t.fontStack||e));const r=this.sections.length-1;for(let e=0;e<t.text.length;++e)this.sectionIndex.push(r);}addImageSection(t){const e=t.image?t.image.name:"";if(0===e.length)return void d("Can't add FormattedSection with an empty image.");const r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(Pl.forImage(e)),this.sectionIndex.push(this.sections.length-1)):d("Reached maximum number of images 6401");}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function El(e,r,n,i,s,a,o,l,u,c,h,p,f,d,y,m){const g=Vl.fromFeature(e,s);let x;p===t.WritingMode.vertical&&g.verticalizePunctuation();const{processBidirectionalText:v,processStyledBidirectionalText:b}=Xn;if(v&&1===g.sections.length){x=[];const t=v(g.toString(),Ol(g,c,a,r,i,d,y));for(const e of t){const t=new Vl;t.text=e,t.sections=g.sections;for(let r=0;r<e.length;r++)t.sectionIndex.push(0);x.push(t);}}else if(b){x=[];const t=b(g.text,g.sectionIndex,Ol(g,c,a,r,i,d,y));for(const e of t){const t=new Vl;t.text=e[0],t.sectionIndex=e[1],t.sections=g.sections,x.push(t);}}else x=function(t,e){const r=[],n=t.text;let i=0;for(const n of e)r.push(t.substring(i,n)),i=n;return i<n.length&&r.push(t.substring(i,n.length)),r}(g,Ol(g,c,a,r,i,d,y));const w=[],_={positionedLines:w,text:g.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:p,iconsInText:!1,verticalizable:!1};return function(e,r,n,i,s,a,o,l,u,c,h,p){let f=0,d=Cl,y=0,m=0;const g="right"===l?1:"left"===l?0:.5;let x=0;for(const o of s){o.trim();const s=o.getMaxScale(),l=(s-1)*tl,b={positionedGlyphs:[],lineOffset:0};e.positionedLines[x]=b;const w=b.positionedGlyphs;let _=0;if(!o.length()){d+=a,++x;continue}for(let a=0;a<o.length();a++){const y=o.getSection(a),m=o.getSectionIndex(a),g=o.getCharCode(a);let x=0,b=null,A=null,k=null,S=tl;const z=!(u===t.WritingMode.horizontal||!h&&!En(g)||h&&(Fl[g]||(v=g,Bn.Arabic(v)||Bn["Arabic Supplement"](v)||Bn["Arabic Extended-A"](v)||Bn["Arabic Presentation Forms-A"](v)||Bn["Arabic Presentation Forms-B"](v))));if(y.imageName){const t=i[y.imageName];if(!t)continue;k=y.imageName,e.iconsInText=e.iconsInText||!0,A=t.paddedRect;const r=t.displaySize;y.scale=y.scale*tl/p,b={width:r[0],height:r[1],left:1,top:-3,advance:z?r[1]:r[0]},x=l+(tl-r[1]*y.scale),S=b.advance;const n=z?r[0]*y.scale-tl*s:r[1]*y.scale-tl*s;n>0&&n>_&&(_=n);}else {const t=n[y.fontStack],e=t&&t[g];if(e&&e.rect)A=e.rect,b=e.metrics;else {const t=r[y.fontStack],e=t&&t[g];if(!e)continue;b=e.metrics;}x=(s-y.scale)*tl;}z?(e.verticalizable=!0,w.push({glyph:g,imageName:k,x:f,y:d+x,vertical:z,scale:y.scale,fontStack:y.fontStack,sectionIndex:m,metrics:b,rect:A}),f+=S*y.scale+c):(w.push({glyph:g,imageName:k,x:f,y:d+x,vertical:z,scale:y.scale,fontStack:y.fontStack,sectionIndex:m,metrics:b,rect:A}),f+=b.advance*y.scale+c);}0!==w.length&&(y=Math.max(f-c,y),jl(w,0,w.length-1,g,_)),f=0;const A=a*s+_;b.lineOffset=Math.max(_,l),d+=A,m=Math.max(A,m),++x;}var v;const b=d-Cl,{horizontalAlign:w,verticalAlign:_}=ql(o);((function(t,e,r,n,i,s,a,o,l){const u=(e-r)*i;let c=0;c=s!==a?-o*n-Cl:(-n*l+.5)*a;for(const e of t)for(const t of e.positionedGlyphs)t.x+=u,t.y+=c;}))(e.positionedLines,g,w,_,y,m,a,b,s.length),e.top+=-_*b,e.bottom=e.top+b,e.left+=-w*y,e.right=e.left+y;}(_,r,n,i,x,o,l,u,p,c,f,m),!function(t){for(const e of t)if(0!==e.positionedGlyphs.length)return !1;return !0}(w)&&_}const Fl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Tl={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Ll(t,e,r,n,i,s){if(e.imageName){const t=n[e.imageName];return t?t.displaySize[0]*e.scale*tl/s+i:0}{const n=r[e.fontStack],s=n&&n[t];return s?s.metrics.advance*e.scale+i:0}}function Dl(t,e,r,n){const i=Math.pow(t-e,2);return n?t<e?i/2:2*i:i+Math.abs(r)*r}function $l(t,e,r){let n=0;return 10===t&&(n-=1e4),r&&(n+=150),40!==t&&65288!==t||(n+=50),41!==e&&65289!==e||(n+=50),n}function Rl(t,e,r,n,i,s){let a=null,o=Dl(e,r,i,s);for(const t of n){const n=Dl(e-t.x,r,i,s)+t.badness;n<=o&&(a=t,o=n);}return {index:t,x:e,priorBreak:a,badness:o}}function Ul(t){return t?Ul(t.priorBreak).concat(t.index):[]}function Ol(t,e,r,n,i,s,a){if("point"!==s)return [];if(!t)return [];const o=[],l=function(t,e,r,n,i,s){let a=0;for(let r=0;r<t.length();r++){const o=t.getSection(r);a+=Ll(t.getCharCode(r),o,n,i,e,s);}return a/Math.max(1,Math.ceil(a/r))}(t,e,r,n,i,a),u=t.text.indexOf("")>=0;let c=0;for(let r=0;r<t.length();r++){const s=t.getSection(r),p=t.getCharCode(r);if(Fl[p]||(c+=Ll(p,s,n,i,e,a)),r<t.length()-1){const e=!((h=p)<11904||!(Bn["Bopomofo Extended"](h)||Bn.Bopomofo(h)||Bn["CJK Compatibility Forms"](h)||Bn["CJK Compatibility Ideographs"](h)||Bn["CJK Compatibility"](h)||Bn["CJK Radicals Supplement"](h)||Bn["CJK Strokes"](h)||Bn["CJK Symbols and Punctuation"](h)||Bn["CJK Unified Ideographs Extension A"](h)||Bn["CJK Unified Ideographs"](h)||Bn["Enclosed CJK Letters and Months"](h)||Bn["Halfwidth and Fullwidth Forms"](h)||Bn.Hiragana(h)||Bn["Ideographic Description Characters"](h)||Bn["Kangxi Radicals"](h)||Bn["Katakana Phonetic Extensions"](h)||Bn.Katakana(h)||Bn["Vertical Forms"](h)||Bn["Yi Radicals"](h)||Bn["Yi Syllables"](h)));(Tl[p]||e||s.imageName)&&o.push(Rl(r+1,c,l,o,$l(p,t.getCharCode(r+1),e&&u),!1));}}var h;return Ul(Rl(t.length(),c,l,o,0,!0))}function ql(t){let e=.5,r=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0;}switch(t){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0;}return {horizontalAlign:e,verticalAlign:r}}function jl(t,e,r,n,i){if(!n&&!i)return;const s=t[r],a=(t[r].x+s.metrics.advance*s.scale)*n;for(let n=e;n<=r;n++)t[n].x-=a,t[n].y+=i;}function Nl(t,e,r){const{horizontalAlign:n,verticalAlign:i}=ql(r),s=e[0]-t.displaySize[0]*n,a=e[1]-t.displaySize[1]*i;return {image:t,top:a,bottom:a+t.displaySize[1],left:s,right:s+t.displaySize[0]}}function Kl(t,e,r,n,i,s){const a=t.image;let o;if(a.content){const t=a.content,e=a.pixelRatio||1;o=[t[0]/e,t[1]/e,a.displaySize[0]-t[2]/e,a.displaySize[1]-t[3]/e];}const l=e.left*s,u=e.right*s;let c,h,p,f;"width"===r||"both"===r?(f=i[0]+l-n[3],h=i[0]+u+n[1]):(f=i[0]+(l+u-a.displaySize[0])/2,h=f+a.displaySize[0]);const d=e.top*s,y=e.bottom*s;return "height"===r||"both"===r?(c=i[1]+d-n[0],p=i[1]+y+n[2]):(c=i[1]+(d+y-a.displaySize[1])/2,p=c+a.displaySize[1]),{image:a,top:c,right:h,bottom:p,left:f,collisionPadding:o}}const Zl=128;function Gl(t,e){const{expression:r}=e;if("constant"===r.kind)return {kind:"constant",layoutSize:r.evaluate(new Yn(t+1))};if("source"===r.kind)return {kind:"source"};{const{zoomStops:e,interpolationType:n}=r;let i=0;for(;i<e.length&&e[i]<=t;)i++;i=Math.max(0,i-1);let s=i;for(;s<e.length&&e[s]<t+1;)s++;s=Math.min(e.length-1,s);const a=e[i],o=e[s];return "composite"===r.kind?{kind:"composite",minZoom:a,maxZoom:o,interpolationType:n}:{kind:"camera",minZoom:a,maxZoom:o,minSize:r.evaluate(new Yn(a)),maxSize:r.evaluate(new Yn(o)),interpolationType:n}}}class Jl extends S{constructor(t,e,r,n){super(t,e),this.angle=r,void 0!==n&&(this.segment=n);}clone(){return new Jl(this.x,this.y,this.angle,this.segment)}}function Xl(t,e,r,n,i){if(void 0===e.segment)return !0;let s=e,a=e.segment+1,o=0;for(;o>-r/2;){if(a--,a<0)return !1;o-=t[a].dist(s),s=t[a];}o+=t[a].dist(t[a+1]),a++;const l=[];let u=0;for(;o<r/2;){const e=t[a],r=t[a+1];if(!r)return !1;let s=t[a-1].angleTo(e)-e.angleTo(r);for(s=Math.abs((s+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:o,angleDelta:s}),u+=s;o-l[0].distance>n;)u-=l.shift().angleDelta;if(u>i)return !1;a++,o+=e.dist(r);}return !0}function Yl(t){let e=0;for(let r=0;r<t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Hl(t,e,r){return t?.6*e*r:0}function Wl(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Ql(t,e,r,n,i,s){const a=Hl(r,i,s),o=Wl(r,n)*s;let l=0;const u=Yl(t)/2;for(let r=0;r<t.length-1;r++){const n=t[r],i=t[r+1],s=n.dist(i);if(l+s>u){const c=(u-l)/s,h=Se(n.x,i.x,c),p=Se(n.y,i.y,c),f=new Jl(h,p,i.angleTo(n),r);return f._round(),!a||Xl(t,f,o,a,e)?f:void 0}l+=s;}}function tu(t,e,r,n,i,s,a,o,l){const u=Hl(n,s,a),c=Wl(n,i),h=c*a,p=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-h<e/4&&(e=h+e/4),eu(t,p?e/2*o%e:(c/2+2*s)*a*o%e,e,u,r,h,p,!1,l)}function eu(t,e,r,n,i,s,a,o,l){const u=s/2,c=Yl(t);let h=0,p=e-r,f=[];for(let e=0;e<t.length-1;e++){const a=t[e],o=t[e+1],d=a.dist(o),y=o.angleTo(a);for(;p+r<h+d;){p+=r;const m=(p-h)/d,g=Se(a.x,o.x,m),x=Se(a.y,o.y,m);if(g>=0&&g<l&&x>=0&&x<l&&p-u>=0&&p+u<=c){const r=new Jl(g,x,y,e);r._round(),n&&!Xl(t,r,s,n,i)||f.push(r);}}h+=d;}return o||f.length||a||(f=eu(t,h/2,r,n,i,s,a,!0,l)),f}function ru(t,e,r,n,i){const s=[];for(let a=0;a<t.length;a++){const o=t[a];let l;for(let t=0;t<o.length-1;t++){let a=o[t],u=o[t+1];a.x<e&&u.x<e||(a.x<e?a=new S(e,a.y+(e-a.x)/(u.x-a.x)*(u.y-a.y))._round():u.x<e&&(u=new S(e,a.y+(e-a.x)/(u.x-a.x)*(u.y-a.y))._round()),a.y<r&&u.y<r||(a.y<r?a=new S(a.x+(r-a.y)/(u.y-a.y)*(u.x-a.x),r)._round():u.y<r&&(u=new S(a.x+(r-a.y)/(u.y-a.y)*(u.x-a.x),r)._round()),a.x>=n&&u.x>=n||(a.x>=n?a=new S(n,a.y+(n-a.x)/(u.x-a.x)*(u.y-a.y))._round():u.x>=n&&(u=new S(n,a.y+(n-a.x)/(u.x-a.x)*(u.y-a.y))._round()),a.y>=i&&u.y>=i||(a.y>=i?a=new S(a.x+(i-a.y)/(u.y-a.y)*(u.x-a.x),i)._round():u.y>=i&&(u=new S(a.x+(i-a.y)/(u.y-a.y)*(u.x-a.x),i)._round()),l&&a.equals(l[l.length-1])||(l=[a],s.push(l)),l.push(u)))));}}return s}function nu(t,e,r,n){const i=[],s=t.image,a=s.pixelRatio,o=s.paddedRect.w-2,l=s.paddedRect.h-2,u=t.right-t.left,c=t.bottom-t.top,h=s.stretchX||[[0,o]],p=s.stretchY||[[0,l]],f=(t,e)=>t+e[1]-e[0],d=h.reduce(f,0),y=p.reduce(f,0),m=o-d,g=l-y;let x=0,v=d,b=0,w=y,_=0,A=m,k=0,z=g;if(s.content&&n){const t=s.content;x=iu(h,0,t[0]),b=iu(p,0,t[1]),v=iu(h,t[0],t[2]),w=iu(p,t[1],t[3]),_=t[0]-x,k=t[1]-b,A=t[2]-t[0]-v,z=t[3]-t[1]-w;}const I=(n,i,o,l)=>{const h=au(n.stretch-x,v,u,t.left),p=ou(n.fixed-_,A,n.stretch,d),f=au(i.stretch-b,w,c,t.top),m=ou(i.fixed-k,z,i.stretch,y),g=au(o.stretch-x,v,u,t.left),I=ou(o.fixed-_,A,o.stretch,d),M=au(l.stretch-b,w,c,t.top),B=ou(l.fixed-k,z,l.stretch,y),C=new S(h,f),P=new S(g,f),V=new S(g,M),E=new S(h,M),F=new S(p/a,m/a),T=new S(I/a,B/a),L=e*Math.PI/180;if(L){const t=Math.sin(L),e=Math.cos(L),r=[e,-t,t,e];C._matMult(r),P._matMult(r),E._matMult(r),V._matMult(r);}const D=n.stretch+n.fixed,$=i.stretch+i.fixed;return {tl:C,tr:P,bl:E,br:V,tex:{x:s.paddedRect.x+1+D,y:s.paddedRect.y+1+$,w:o.stretch+o.fixed-D,h:l.stretch+l.fixed-$},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:F,pixelOffsetBR:T,minFontScaleX:A/a/u,minFontScaleY:z/a/c,isSDF:r}};if(n&&(s.stretchX||s.stretchY)){const t=su(h,m,d),e=su(p,g,y);for(let r=0;r<t.length-1;r++){const n=t[r],s=t[r+1];for(let t=0;t<e.length-1;t++)i.push(I(n,e[t],s,e[t+1]));}}else i.push(I({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:o+1},{fixed:0,stretch:l+1}));return i}function iu(t,e,r){let n=0;for(const i of t)n+=Math.max(e,Math.min(r,i[1]))-Math.max(e,Math.min(r,i[0]));return n}function su(t,e,r){const n=[{fixed:-1,stretch:0}];for(const[e,r]of t){const t=n[n.length-1];n.push({fixed:e-t.stretch,stretch:t.stretch}),n.push({fixed:e-t.stretch,stretch:t.stretch+(r-e)});}return n.push({fixed:e+1,stretch:r}),n}function au(t,e,r,n){return t/e*r+n}function ou(t,e,r,n){return t-e*r/n}kn("Anchor",Jl);class lu{constructor(t,e,r,n,i,s,a,o,l,u){if(this.boxStartIndex=t.length,l){let t=s.top,e=s.bottom;const r=s.collisionPadding;r&&(t-=r[1],e+=r[3]);let n=e-t;n>0&&(n=Math.max(10,n),this.circleDiameter=n);}else {let l=s.top*a-o,c=s.bottom*a+o,h=s.left*a-o,p=s.right*a+o;const f=s.collisionPadding;if(f&&(h-=f[0]*a,l-=f[1]*a,p+=f[2]*a,c+=f[3]*a),u){const t=new S(h,l),e=new S(p,l),r=new S(h,c),n=new S(p,c),i=u*Math.PI/180;t._rotate(i),e._rotate(i),r._rotate(i),n._rotate(i),h=Math.min(t.x,e.x,r.x,n.x),p=Math.max(t.x,e.x,r.x,n.x),l=Math.min(t.y,e.y,r.y,n.y),c=Math.max(t.y,e.y,r.y,n.y);}t.emplaceBack(e.x,e.y,h,l,p,c,r,n,i);}this.boxEndIndex=t.length;}}class uu{constructor(t=[],e=cu){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t);}push(t){this.data.push(t),this.length++,this._up(this.length-1);}pop(){if(0===this.length)return;const t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:e,compare:r}=this,n=e[t];for(;t>0;){const i=t-1>>1,s=e[i];if(r(n,s)>=0)break;e[t]=s,t=i;}e[t]=n;}_down(t){const{data:e,compare:r}=this,n=this.length>>1,i=e[t];for(;t<n;){let n=1+(t<<1),s=e[n];const a=n+1;if(a<this.length&&r(e[a],s)<0&&(n=a,s=e[a]),r(s,i)>=0)break;e[t]=s,t=n;}e[t]=i;}}function cu(t,e){return t<e?-1:t>e?1:0}function hu(t,e=1,r=!1){let n=1/0,i=1/0,s=-1/0,a=-1/0;const o=t[0];for(let t=0;t<o.length;t++){const e=o[t];(!t||e.x<n)&&(n=e.x),(!t||e.y<i)&&(i=e.y),(!t||e.x>s)&&(s=e.x),(!t||e.y>a)&&(a=e.y);}const l=Math.min(s-n,a-i);let u=l/2;const c=new uu([],pu);if(0===l)return new S(n,i);for(let e=n;e<s;e+=l)for(let r=i;r<a;r+=l)c.push(new fu(e+u,r+u,u,t));let h=function(t){let e=0,r=0,n=0;const i=t[0];for(let t=0,s=i.length,a=s-1;t<s;a=t++){const s=i[t],o=i[a],l=s.x*o.y-o.x*s.y;r+=(s.x+o.x)*l,n+=(s.y+o.y)*l,e+=3*l;}return new fu(r/e,n/e,0,t)}(t),p=c.length;for(;c.length;){const n=c.pop();(n.d>h.d||!h.d)&&(h=n,r&&console.log("found best %d after %d probes",Math.round(1e4*n.d)/1e4,p)),n.max-h.d<=e||(u=n.h/2,c.push(new fu(n.p.x-u,n.p.y-u,u,t)),c.push(new fu(n.p.x+u,n.p.y-u,u,t)),c.push(new fu(n.p.x-u,n.p.y+u,u,t)),c.push(new fu(n.p.x+u,n.p.y+u,u,t)),p+=4);}return r&&(console.log(`num probes: ${p}`),console.log(`best distance: ${h.d}`)),h.p}function pu(t,e){return e.max-t.max}function fu(t,e,r,n){this.p=new S(t,e),this.h=r,this.d=function(t,e){let r=!1,n=1/0;for(let i=0;i<e.length;i++){const s=e[i];for(let e=0,i=s.length,a=i-1;e<i;a=e++){const i=s[e],o=s[a];i.y>t.y!=o.y>t.y&&t.x<(o.x-i.x)*(t.y-i.y)/(o.y-i.y)+i.x&&(r=!r),n=Math.min(n,Qs(t,i,o));}}return (r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2;}const du=Number.POSITIVE_INFINITY;function yu(t,e){return e[1]!==du?function(t,e,r){let n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case"top-right":case"top-left":case"top":i=r-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-r;}switch(t){case"top-right":case"bottom-right":case"right":n=-e;break;case"top-left":case"bottom-left":case"left":n=e;}return [n,i]}(t,e[0],e[1]):function(t,e){let r=0,n=0;e<0&&(e=0);const i=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":n=i-7;break;case"bottom-right":case"bottom-left":n=7-i;break;case"bottom":n=7-e;break;case"top":n=e-7;}switch(t){case"top-right":case"bottom-right":r=-i;break;case"top-left":case"bottom-left":r=i;break;case"left":r=e;break;case"right":r=-e;}return [r,n]}(t,e[0])}function mu(t){switch(t){case"right":case"top-right":case"bottom-right":return "right";case"left":case"top-left":case"bottom-left":return "left"}return "center"}function gu(e,r,n,i,s,a,o,l,u,c,h){let p=a.textMaxSize.evaluate(r,{});void 0===p&&(p=o);const f=e.layers[0].layout,y=f.get("icon-offset").evaluate(r,{},h),m=bu(n.horizontal),g=o/24,x=e.tilePixelRatio*g,v=e.tilePixelRatio*p/24,b=e.tilePixelRatio*l,w=e.tilePixelRatio*f.get("symbol-spacing"),_=f.get("text-padding")*e.tilePixelRatio,A=f.get("icon-padding")*e.tilePixelRatio,k=f.get("text-max-angle")/180*Math.PI,S="viewport"!==f.get("text-rotation-alignment")&&"point"!==f.get("symbol-placement"),z="map"===f.get("icon-rotation-alignment")&&"point"!==f.get("symbol-placement"),I=f.get("symbol-placement"),M=w/2,B=f.get("icon-text-fit");let C;i&&"none"!==B&&(e.allowVerticalPlacement&&n.vertical&&(C=Kl(i,n.vertical,B,f.get("icon-text-fit-padding"),y,g)),m&&(i=Kl(i,m,B,f.get("icon-text-fit-padding"),y,g)));const P=(l,p)=>{p.x<0||p.x>=Rs||p.y<0||p.y>=Rs||function(e,r,n,i,s,a,o,l,u,c,h,p,f,y,m,g,x,v,b,w,_,A,k,S,z){const I=e.addToLineVertexArray(r,n);let M,B,C,P,V=0,E=0,F=0,T=0,L=-1,D=-1;const $={};let R=vs(""),U=0,O=0;if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")?[U,O]=l.layout.get("text-offset").evaluate(_,{},S).map((t=>t*tl)):(U=l.layout.get("text-radial-offset").evaluate(_,{},S)*tl,O=du),e.allowVerticalPlacement&&i.vertical){const t=l.layout.get("text-rotate").evaluate(_,{},S)+90;C=new lu(u,r,c,h,p,i.vertical,f,y,m,t),o&&(P=new lu(u,r,c,h,p,o,x,v,m,t));}if(s){const n=l.layout.get("icon-rotate").evaluate(_,{}),i="none"!==l.layout.get("icon-text-fit"),a=nu(s,n,k,i),f=o?nu(o,n,k,i):void 0;B=new lu(u,r,c,h,p,s,x,v,!1,n),V=4*a.length;const y=e.iconSizeData;let m=null;"source"===y.kind?(m=[Zl*l.layout.get("icon-size").evaluate(_,{})],m[0]>xu&&d(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):"composite"===y.kind&&(m=[Zl*A.compositeIconSizes[0].evaluate(_,{},S),Zl*A.compositeIconSizes[1].evaluate(_,{},S)],(m[0]>xu||m[1]>xu)&&d(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,a,m,w,b,_,t.WritingMode.none,r,I.lineStartIndex,I.lineLength,-1,S),L=e.icon.placedSymbolArray.length-1,f&&(E=4*f.length,e.addSymbols(e.icon,f,m,w,b,_,t.WritingMode.vertical,r,I.lineStartIndex,I.lineLength,-1,S),D=e.icon.placedSymbolArray.length-1);}const q=Object.keys(i.horizontal);for(const n of q){const s=i.horizontal[n];if(!M){R=vs(s.text);const t=l.layout.get("text-rotate").evaluate(_,{},S);M=new lu(u,r,c,h,p,s,f,y,m,t);}const o=1===s.positionedLines.length;if(F+=vu(e,r,s,a,l,m,_,g,I,i.vertical?t.WritingMode.horizontal:t.WritingMode.horizontalOnly,o?q:[n],$,L,A,S),o)break}i.vertical&&(T+=vu(e,r,i.vertical,a,l,m,_,g,I,t.WritingMode.vertical,["vertical"],$,D,A,S));const j=M?M.boxStartIndex:e.collisionBoxArray.length,N=M?M.boxEndIndex:e.collisionBoxArray.length,K=C?C.boxStartIndex:e.collisionBoxArray.length,Z=C?C.boxEndIndex:e.collisionBoxArray.length,G=B?B.boxStartIndex:e.collisionBoxArray.length,J=B?B.boxEndIndex:e.collisionBoxArray.length,X=P?P.boxStartIndex:e.collisionBoxArray.length,Y=P?P.boxEndIndex:e.collisionBoxArray.length;let H=-1;const W=(t,e)=>t&&t.circleDiameter?Math.max(t.circleDiameter,e):e;H=W(M,H),H=W(C,H),H=W(B,H),H=W(P,H);const Q=H>-1?1:0;Q&&(H*=z/tl),e.glyphOffsetArray.length>=Bu.MAX_GLYPHS&&d("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==_.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,_.sortKey),e.symbolInstances.emplaceBack(r.x,r.y,$.right>=0?$.right:-1,$.center>=0?$.center:-1,$.left>=0?$.left:-1,$.vertical||-1,L,D,R,j,N,K,Z,G,J,X,Y,c,F,T,V,E,Q,0,f,U,O,H);}(e,p,l,n,i,s,C,e.layers[0],e.collisionBoxArray,r.index,r.sourceLayerIndex,e.index,x,_,S,u,b,A,z,y,r,a,c,h,o);};if("line"===I)for(const t of ru(r.geometry,0,0,Rs,Rs)){const r=tu(t,w,k,n.vertical||m,i,24,v,e.overscaling,Rs);for(const n of r){const r=m;r&&wu(e,r.text,M,n)||P(t,n);}}else if("line-center"===I){for(const t of r.geometry)if(t.length>1){const e=Ql(t,k,n.vertical||m,i,24,v);e&&P(t,e);}}else if("Polygon"===r.type)for(const t of io(r.geometry,0)){const e=hu(t,16);P(t[0],new Jl(e.x,e.y,0));}else if("LineString"===r.type)for(const t of r.geometry)P(t,new Jl(t[0].x,t[0].y,0));else if("Point"===r.type)for(const t of r.geometry)for(const e of t)P([e],new Jl(e.x,e.y,0));}const xu=32640;function vu(t,e,r,n,i,s,a,o,l,u,c,h,p,f,y){const m=function(t,e,r,n,i,s,a,o){const l=n.layout.get("text-rotate").evaluate(s,{})*Math.PI/180,u=[];for(const t of e.positionedLines)for(const n of t.positionedGlyphs){if(!n.rect)continue;const s=n.rect||{};let c=4,h=!0,p=1,f=0;const d=(i||o)&&n.vertical,y=n.metrics.advance*n.scale/2;if(o&&e.verticalizable){const e=(n.scale-1)*tl,r=(tl-n.metrics.width*n.scale)/2;f=t.lineOffset/2-(n.imageName?-r:e);}if(n.imageName){const t=a[n.imageName];h=t.sdf,p=t.pixelRatio,c=1/p;}const m=i?[n.x+y,n.y]:[0,0];let g=i?[0,0]:[n.x+y+r[0],n.y+r[1]-f],x=[0,0];d&&(x=g,g=[0,0]);const v=(n.metrics.left-c)*n.scale-y+g[0],b=(-n.metrics.top-c)*n.scale+g[1],w=v+s.w*n.scale/p,_=b+s.h*n.scale/p,A=new S(v,b),k=new S(w,b),z=new S(v,_),I=new S(w,_);if(d){const t=new S(-y,y-Cl),e=-Math.PI/2,r=12-y,i=new S(22-r,-(n.imageName?r:0)),s=new S(...x);A._rotateAround(e,t)._add(i)._add(s),k._rotateAround(e,t)._add(i)._add(s),z._rotateAround(e,t)._add(i)._add(s),I._rotateAround(e,t)._add(i)._add(s);}if(l){const t=Math.sin(l),e=Math.cos(l),r=[e,-t,t,e];A._matMult(r),k._matMult(r),z._matMult(r),I._matMult(r);}const M=new S(0,0),B=new S(0,0);u.push({tl:A,tr:k,bl:z,br:I,tex:s,writingMode:e.writingMode,glyphOffset:m,sectionIndex:n.sectionIndex,isSDF:h,pixelOffsetTL:M,pixelOffsetBR:B,minFontScaleX:0,minFontScaleY:0});}return u}(0,r,o,i,s,a,n,t.allowVerticalPlacement),g=t.textSizeData;let x=null;"source"===g.kind?(x=[Zl*i.layout.get("text-size").evaluate(a,{})],x[0]>xu&&d(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):"composite"===g.kind&&(x=[Zl*f.compositeTextSizes[0].evaluate(a,{},y),Zl*f.compositeTextSizes[1].evaluate(a,{},y)],(x[0]>xu||x[1]>xu)&&d(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),t.addSymbols(t.text,m,x,o,s,a,u,e,l.lineStartIndex,l.lineLength,p,y);for(const e of c)h[e]=t.text.placedSymbolArray.length-1;return 4*m.length}function bu(t){for(const e in t)return t[e];return null}function wu(t,e,r,n){const i=t.compareText;if(e in i){const t=i[e];for(let e=t.length-1;e>=0;e--)if(n.dist(t[e])<r)return !0}else i[e]=[];return i[e].push(n),!1}const _u=fo.VectorTileFeature.types,Au=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function ku(t,e,r,n,i,s,a,o,l,u,c,h,p){const f=o?Math.min(xu,Math.round(o[0])):0,d=o?Math.min(xu,Math.round(o[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),s,a,(f<<1)+(l?1:0),d,16*u,16*c,256*h,256*p);}function Su(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r);}function zu(t){for(const e of t.sections)if(Dn(e.text))return !0;return !1}class Iu{constructor(t){this.layoutVertexArray=new rs,this.indexArray=new os,this.programConfigurations=t,this.segments=new hs,this.dynamicLayoutVertexArray=new ns,this.opacityVertexArray=new is,this.placedSymbolArray=new ji;}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(t,e,r,n){this.isEmpty()||(r&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Go.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Jo.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,Au,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&&this.programConfigurations.upload(t));}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy());}}kn("SymbolBuffers",Iu);class Mu{constructor(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new hs,this.collisionVertexArray=new as;}upload(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Xo.members,!0);}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy());}}kn("CollisionBuffers",Mu);class Bu{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((t=>t.id)),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=ua([]),this.placementViewportMatrix=ua([]);const r=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Gl(this.zoom,r["text-size"]),this.iconSizeData=Gl(this.zoom,r["icon-size"]);const n=this.layers[0].layout,i=n.get("symbol-sort-key"),s=n.get("symbol-z-order");this.canOverlap="never"!==Fu(n,"text-overlap","text-allow-overlap")||"never"!==Fu(n,"icon-overlap","icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==s&&!i.isConstant(),this.sortFeaturesByY=("viewport-y"===s||"auto"===s&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map((e=>t.WritingMode[e]))),this.stateDependentLayerIds=this.layers.filter((t=>t.isStateDependent())).map((t=>t.id)),this.sourceID=e.sourceID;}createArrays(){this.text=new Iu(new Ls(this.layers,this.zoom,(t=>/^text/.test(t)))),this.icon=new Iu(new Ls(this.layers,this.zoom,(t=>/^icon/.test(t)))),this.glyphOffsetArray=new Zi,this.lineVertexArray=new Gi,this.symbolInstances=new Ki;}calculateGlyphDependencies(t,e,r,n,i){for(let s=0;s<t.length;s++)if(e[t.charCodeAt(s)]=!0,(r||n)&&i){const r=Qo[t.charAt(s)];r&&(e[r.charCodeAt(0)]=!0);}}populate(e,r,n){const i=this.layers[0],s=i.layout,a=s.get("text-font"),o=s.get("text-field"),l=s.get("icon-image"),u=("constant"!==o.value.kind||o.value.value instanceof Lt&&!o.value.value.isEmpty()||o.value.value.toString().length>0)&&("constant"!==a.value.kind||a.value.value.length>0),c="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,h=s.get("symbol-sort-key");if(this.features=[],!u&&!c)return;const p=r.iconDependencies,f=r.glyphDependencies,d=r.availableImages,y=new Yn(this.zoom);for(const{feature:r,id:o,index:l,sourceLayerIndex:m}of e){const e=i._featureFilter.needGeometry,g=js(r,e);if(!i._featureFilter.filter(y,g,n))continue;let x,v;if(e||(g.geometry=qs(r)),u){const t=i.getValueAndResolveTokens("text-field",g,n,d),e=Lt.factory(t);zu(e)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Gn()||this.hasRTLText&&Xn.isParsed())&&(x=Wo(e,i,g));}if(c){const t=i.getValueAndResolveTokens("icon-image",g,n,d);v=t instanceof Dt?t:Dt.fromString(t);}if(!x&&!v)continue;const b=this.sortFeaturesByKey?h.evaluate(g,{},n):void 0;if(this.features.push({id:o,text:x,icon:v,index:l,sourceLayerIndex:m,geometry:g.geometry,properties:r.properties,type:_u[r.type],sortKey:b}),v&&(p[v.name]=!0),x){const e=a.evaluate(g,{},n).join(","),r="viewport"!==s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(t.WritingMode.vertical)>=0;for(const t of x.sections)if(t.image)p[t.image.name]=!0;else {const n=Cn(x.toString()),i=t.fontStack||e,s=f[i]=f[i]||{};this.calculateGlyphDependencies(t.text,s,r,this.allowVerticalPlacement,n);}}}"line"===s.get("symbol-placement")&&(this.features=function(t){const e={},r={},n=[];let i=0;function s(e){n.push(t[e]),i++;}function a(t,e,i){const s=r[t];return delete r[t],r[e]=s,n[s].geometry[0].pop(),n[s].geometry[0]=n[s].geometry[0].concat(i[0]),s}function o(t,r,i){const s=e[r];return delete e[r],e[t]=s,n[s].geometry[0].shift(),n[s].geometry[0]=i[0].concat(n[s].geometry[0]),s}function l(t,e,r){const n=r?e[0][e[0].length-1]:e[0][0];return `${t}:${n.x}:${n.y}`}for(let u=0;u<t.length;u++){const c=t[u],h=c.geometry,p=c.text?c.text.toString():null;if(!p){s(u);continue}const f=l(p,h),d=l(p,h,!0);if(f in r&&d in e&&r[f]!==e[d]){const t=o(f,d,h),i=a(f,d,n[t].geometry);delete e[f],delete r[d],r[l(p,n[i].geometry,!0)]=i,n[t].geometry=null;}else f in r?a(f,d,h):d in e?o(f,d,h):(s(u),e[f]=i-1,r[d]=i-1);}return n.filter((t=>t.geometry))}(this.features)),this.sortFeaturesByKey&&this.features.sort(((t,e)=>t.sortKey-e.sortKey));}update(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r));}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return !this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0;}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy();}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData();}addToLineVertexArray(t,e){const r=this.lineVertexArray.length;if(void 0!==t.segment){let r=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]);const i={};for(let n=t.segment+1;n<e.length;n++)i[n]={x:e[n].x,y:e[n].y,tileUnitDistanceFromAnchor:r},n<e.length-1&&(r+=e[n+1].dist(e[n]));for(let r=t.segment||0;r>=0;r--)i[r]={x:e[r].x,y:e[r].y,tileUnitDistanceFromAnchor:n},r>0&&(n+=e[r-1].dist(e[r]));for(let t=0;t<e.length;t++){const e=i[t];this.lineVertexArray.emplaceBack(e.x,e.y,e.tileUnitDistanceFromAnchor);}}return {lineStartIndex:r,lineLength:this.lineVertexArray.length-r}}addSymbols(e,r,n,i,s,a,o,l,u,c,h,p){const f=e.indexArray,d=e.layoutVertexArray,y=e.segments.prepareSegment(4*r.length,d,f,this.canOverlap?a.sortKey:void 0),m=this.glyphOffsetArray.length,g=y.vertexLength,x=this.allowVerticalPlacement&&o===t.WritingMode.vertical?Math.PI/2:0,v=a.text&&a.text.sections;for(let t=0;t<r.length;t++){const{tl:i,tr:s,bl:o,br:u,tex:c,pixelOffsetTL:h,pixelOffsetBR:m,minFontScaleX:g,minFontScaleY:b,glyphOffset:w,isSDF:_,sectionIndex:A}=r[t],k=y.vertexLength,S=w[1];ku(d,l.x,l.y,i.x,S+i.y,c.x,c.y,n,_,h.x,h.y,g,b),ku(d,l.x,l.y,s.x,S+s.y,c.x+c.w,c.y,n,_,m.x,h.y,g,b),ku(d,l.x,l.y,o.x,S+o.y,c.x,c.y+c.h,n,_,h.x,m.y,g,b),ku(d,l.x,l.y,u.x,S+u.y,c.x+c.w,c.y+c.h,n,_,m.x,m.y,g,b),Su(e.dynamicLayoutVertexArray,l,x),f.emplaceBack(k,k+1,k+2),f.emplaceBack(k+1,k+2,k+3),y.vertexLength+=4,y.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(w[0]),t!==r.length-1&&A===r[t+1].sectionIndex||e.programConfigurations.populatePaintArrays(d.length,a,a.index,{},p,v&&v[A]);}e.placedSymbolArray.emplaceBack(l.x,l.y,m,this.glyphOffsetArray.length-m,g,u,c,l.segment,n?n[0]:0,n?n[1]:0,i[0],i[1],o,0,!1,0,h);}_addCollisionDebugVertex(t,e,r,n,i,s){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(s.x),Math.round(s.y))}addCollisionDebugVertices(t,e,r,n,i,s,a){const o=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),l=o.vertexLength,u=i.layoutVertexArray,c=i.collisionVertexArray,h=a.anchorX,p=a.anchorY;this._addCollisionDebugVertex(u,c,s,h,p,new S(t,e)),this._addCollisionDebugVertex(u,c,s,h,p,new S(r,e)),this._addCollisionDebugVertex(u,c,s,h,p,new S(r,n)),this._addCollisionDebugVertex(u,c,s,h,p,new S(t,n)),o.vertexLength+=4;const f=i.indexArray;f.emplaceBack(l,l+1),f.emplaceBack(l+1,l+2),f.emplaceBack(l+2,l+3),f.emplaceBack(l+3,l),o.primitiveLength+=4;}addDebugCollisionBoxes(t,e,r,n){for(let i=t;i<e;i++){const t=this.collisionBoxArray.get(i);this.addCollisionDebugVertices(t.x1,t.y1,t.x2,t.y2,n?this.textCollisionBox:this.iconCollisionBox,t.anchorPoint,r);}}generateCollisionDebugBuffers(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Mu(ss,Yo.members,ls),this.iconCollisionBox=new Mu(ss,Yo.members,ls);for(let t=0;t<this.symbolInstances.length;t++){const e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1);}}_deserializeCollisionBoxesForSymbol(t,e,r,n,i,s,a,o,l){const u={};for(let n=e;n<r;n++){const e=t.get(n);u.textBox={x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,anchorPointX:e.anchorPointX,anchorPointY:e.anchorPointY},u.textFeatureIndex=e.featureIndex;break}for(let e=n;e<i;e++){const r=t.get(e);u.verticalTextBox={x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,anchorPointX:r.anchorPointX,anchorPointY:r.anchorPointY},u.verticalTextFeatureIndex=r.featureIndex;break}for(let e=s;e<a;e++){const r=t.get(e);u.iconBox={x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,anchorPointX:r.anchorPointX,anchorPointY:r.anchorPointY},u.iconFeatureIndex=r.featureIndex;break}for(let e=o;e<l;e++){const r=t.get(e);u.verticalIconBox={x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,anchorPointX:r.anchorPointX,anchorPointY:r.anchorPointY},u.verticalIconFeatureIndex=r.featureIndex;break}return u}deserializeCollisionBoxes(t){this.collisionArrays=[];for(let e=0;e<this.symbolInstances.length;e++){const r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex));}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){const r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs;for(let e=r.vertexStartIndex;e<n;e+=4)t.indexArray.emplaceBack(e,e+1,e+2),t.indexArray.emplaceBack(e+1,e+2,e+3);}getSortedSymbolIndexes(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const e=Math.sin(t),r=Math.cos(t),n=[],i=[],s=[];for(let t=0;t<this.symbolInstances.length;++t){s.push(t);const a=this.symbolInstances.get(t);n.push(0|Math.round(e*a.anchorX+r*a.anchorY)),i.push(a.featureIndex);}return s.sort(((t,e)=>n[t]-n[e]||i[e]-i[t])),s}addToSortKeyRanges(t,e){const r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&&r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1});}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const t of this.symbolInstanceIndexes){const e=this.symbolInstances.get(t);this.featureSortOrder.push(e.featureIndex),[e.rightJustifiedTextSymbolIndex,e.centerJustifiedTextSymbolIndex,e.leftJustifiedTextSymbolIndex].forEach(((t,e,r)=>{t>=0&&r.indexOf(t)===e&&this.addIndicesForPlacedSymbol(this.text,t);})),e.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,e.verticalPlacedTextSymbolIndex),e.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,e.placedIconSymbolIndex),e.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,e.verticalPlacedIconSymbolIndex);}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray);}}}kn("SymbolBucket",Bu,{omit:["layers","collisionBoxArray","features","compareText"]}),Bu.MAX_GLYPHS=65535,Bu.addDynamicAttributes=Su;const Cu=new ci({"symbol-placement":new si(nt.layout_symbol["symbol-placement"]),"symbol-spacing":new si(nt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new si(nt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new ai(nt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new si(nt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new si(nt.layout_symbol["icon-allow-overlap"]),"icon-overlap":new si(nt.layout_symbol["icon-overlap"]),"icon-ignore-placement":new si(nt.layout_symbol["icon-ignore-placement"]),"icon-optional":new si(nt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new si(nt.layout_symbol["icon-rotation-alignment"]),"icon-size":new ai(nt.layout_symbol["icon-size"]),"icon-text-fit":new si(nt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new si(nt.layout_symbol["icon-text-fit-padding"]),"icon-image":new ai(nt.layout_symbol["icon-image"]),"icon-rotate":new ai(nt.layout_symbol["icon-rotate"]),"icon-padding":new si(nt.layout_symbol["icon-padding"]),"icon-keep-upright":new si(nt.layout_symbol["icon-keep-upright"]),"icon-offset":new ai(nt.layout_symbol["icon-offset"]),"icon-anchor":new ai(nt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new si(nt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new si(nt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new si(nt.layout_symbol["text-rotation-alignment"]),"text-field":new ai(nt.layout_symbol["text-field"]),"text-font":new ai(nt.layout_symbol["text-font"]),"text-size":new ai(nt.layout_symbol["text-size"]),"text-max-width":new ai(nt.layout_symbol["text-max-width"]),"text-line-height":new si(nt.layout_symbol["text-line-height"]),"text-letter-spacing":new ai(nt.layout_symbol["text-letter-spacing"]),"text-justify":new ai(nt.layout_symbol["text-justify"]),"text-radial-offset":new ai(nt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new si(nt.layout_symbol["text-variable-anchor"]),"text-anchor":new ai(nt.layout_symbol["text-anchor"]),"text-max-angle":new si(nt.layout_symbol["text-max-angle"]),"text-writing-mode":new si(nt.layout_symbol["text-writing-mode"]),"text-rotate":new ai(nt.layout_symbol["text-rotate"]),"text-padding":new si(nt.layout_symbol["text-padding"]),"text-keep-upright":new si(nt.layout_symbol["text-keep-upright"]),"text-transform":new ai(nt.layout_symbol["text-transform"]),"text-offset":new ai(nt.layout_symbol["text-offset"]),"text-allow-overlap":new si(nt.layout_symbol["text-allow-overlap"]),"text-overlap":new si(nt.layout_symbol["text-overlap"]),"text-ignore-placement":new si(nt.layout_symbol["text-ignore-placement"]),"text-optional":new si(nt.layout_symbol["text-optional"])});var Pu={paint:new ci({"icon-opacity":new ai(nt.paint_symbol["icon-opacity"]),"icon-color":new ai(nt.paint_symbol["icon-color"]),"icon-halo-color":new ai(nt.paint_symbol["icon-halo-color"]),"icon-halo-width":new ai(nt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new ai(nt.paint_symbol["icon-halo-blur"]),"icon-translate":new si(nt.paint_symbol["icon-translate"]),"icon-translate-anchor":new si(nt.paint_symbol["icon-translate-anchor"]),"text-opacity":new ai(nt.paint_symbol["text-opacity"]),"text-color":new ai(nt.paint_symbol["text-color"],{runtimeType:yt,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new ai(nt.paint_symbol["text-halo-color"]),"text-halo-width":new ai(nt.paint_symbol["text-halo-width"]),"text-halo-blur":new ai(nt.paint_symbol["text-halo-blur"]),"text-translate":new si(nt.paint_symbol["text-translate"]),"text-translate-anchor":new si(nt.paint_symbol["text-translate-anchor"])}),layout:Cu};class Vu{constructor(t){this.type=t.property.overrides?t.property.overrides.runtimeType:ht,this.defaultValue=t;}evaluate(t){if(t.formattedSection){const e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression);}outputDefined(){return !1}serialize(){return null}}kn("FormatSectionOverride",Vu,{omit:["defaultValue"]});class Eu extends pi{constructor(t){super(t,Pu);}recalculate(t,e){if(super.recalculate(t,e),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){const t=this.layout.get("text-writing-mode");if(t){const e=[];for(const r of t)e.indexOf(r)<0&&e.push(r);this.layout._values["text-writing-mode"]=e;}else this.layout._values["text-writing-mode"]=["horizontal"];}this._setPaintOverrides();}getValueAndResolveTokens(t,e,r,n){const i=this.layout.get(t).evaluate(e,{},r,n),s=this._unevaluatedLayout._values[t];return s.isDataDriven()||Pr(s.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,((e,r)=>r in t?String(t[r]):""))}(e.properties,i)}createBucket(t){return new Bu(t)}queryRadius(){return 0}queryIntersectsFeature(){return !1}_setPaintOverrides(){for(const t of Pu.paint.overridableProperties){if(!Eu.hasPaintOverride(this.layout,t))continue;const e=this.paint.get(t),r=new Vu(e),n=new Cr(r,e.property.specification);let i=null;i="constant"===e.value.kind||"source"===e.value.kind?new Er("source",n):new Fr("composite",n,e.value.zoomStops,e.value._interpolationType),this.paint._values[t]=new ni(e.property,i,e.parameters);}}_handleOverridablePaintPropertyUpdate(t,e,r){return !(!this.layout||e.isDataDriven()||r.isDataDriven())&&Eu.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,e){const r=t.get("text-field"),n=Pu.paint.properties[e];let i=!1;const s=t=>{for(const e of t)if(n.overrides&&n.overrides.hasOverride(e))return void(i=!0)};if("constant"===r.value.kind&&r.value.value instanceof Lt)s(r.value.value.sections);else if("source"===r.value.kind){const t=e=>{i||(e instanceof qt&&Ut(e.value)===vt?s(e.value.sections):e instanceof Zt?s(e.sections):e.eachChild(t));},e=r.value;e._styleExpression&&t(e._styleExpression.expression);}return i}}function Fu(t,e,r){let n="never";const i=t.get(e);return i?n=i:t.get(r)&&(n="always"),n}var Tu={paint:new ci({"background-color":new si(nt.paint_background["background-color"]),"background-pattern":new li(nt.paint_background["background-pattern"]),"background-opacity":new si(nt.paint_background["background-opacity"])})},Lu={paint:new ci({"raster-opacity":new si(nt.paint_raster["raster-opacity"]),"raster-hue-rotate":new si(nt.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new si(nt.paint_raster["raster-brightness-min"]),"raster-brightness-max":new si(nt.paint_raster["raster-brightness-max"]),"raster-saturation":new si(nt.paint_raster["raster-saturation"]),"raster-contrast":new si(nt.paint_raster["raster-contrast"]),"raster-resampling":new si(nt.paint_raster["raster-resampling"]),"raster-fade-duration":new si(nt.paint_raster["raster-fade-duration"])})};class Du extends pi{constructor(t){super(t,{}),this.onAdd=t=>{this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl);},this.onRemove=t=>{this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl);},this.implementation=t;}is3D(){return "3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return !1}serialize(){}}const $u={circle:class extends pi{constructor(t){super(t,oa);}createBucket(t){return new Ks(t)}queryRadius(t){const e=t;return na("circle-radius",this,e)+na("circle-stroke-width",this,e)+ia(this.paint.get("circle-translate"))}queryIntersectsFeature(t,e,r,n,i,s,a,o){const l=sa(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),s.angle,a),u=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),c="map"===this.paint.get("circle-pitch-alignment"),h=c?l:function(t,e){return t.map((t=>da(t,e)))}(l,o),p=c?u*a:u;for(const t of n)for(const e of t){const t=c?e:da(e,o);let r=p;const n=fa([],[e.x,e.y,0,1],o);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?r*=n[3]/s.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(r*=s.cameraToCenterDistance/n[3]),Gs(h,t,r))return !0}return !1}},heatmap:class extends pi{constructor(t){super(t,ma),this._updateColorRamp();}createBucket(t){return new ya(t)}_handleSpecialPaintPropertyUpdate(t){"heatmap-color"===t&&this._updateColorRamp();}_updateColorRamp(){this.colorRamp=_a({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null;}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null);}queryRadius(){return 0}queryIntersectsFeature(){return !1}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}},hillshade:class extends pi{constructor(t){super(t,Aa);}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}},fill:class extends pi{constructor(t){super(t,co);}recalculate(t,e){super.recalculate(t,e);const r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&&void 0===r.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"]);}createBucket(t){return new lo(t)}queryRadius(){return ia(this.paint.get("fill-translate"))}queryIntersectsFeature(t,e,r,n,i,s,a){return Js(sa(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),s.angle,a),n)}isTileClipped(){return !0}},"fill-extrusion":class extends pi{constructor(t){super(t,Vo);}createBucket(t){return new Bo(t)}queryRadius(){return ia(this.paint.get("fill-extrusion-translate"))}is3D(){return !0}queryIntersectsFeature(t,e,r,n,i,s,a,o){const l=sa(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),s.angle,a),u=this.paint.get("fill-extrusion-height").evaluate(e,r),c=this.paint.get("fill-extrusion-base").evaluate(e,r),h=function(t,e,r,n){const i=[];for(const r of t){const t=[r.x,r.y,0,1];fa(t,t,e),i.push(new S(t[0]/t[3],t[1]/t[3]));}return i}(l,o),p=function(t,e,r,n){const i=[],s=[],a=n[8]*e,o=n[9]*e,l=n[10]*e,u=n[11]*e,c=n[8]*r,h=n[9]*r,p=n[10]*r,f=n[11]*r;for(const e of t){const t=[],r=[];for(const i of e){const e=i.x,s=i.y,d=n[0]*e+n[4]*s+n[12],y=n[1]*e+n[5]*s+n[13],m=n[2]*e+n[6]*s+n[14],g=n[3]*e+n[7]*s+n[15],x=m+l,v=g+u,b=d+c,w=y+h,_=m+p,A=g+f,k=new S((d+a)/v,(y+o)/v);k.z=x/v,t.push(k);const z=new S(b/A,w/A);z.z=_/A,r.push(z);}i.push(t),s.push(r);}return [i,s]}(n,c,u,o);return function(t,e,r){let n=1/0;Js(r,e)&&(n=Fo(r,e[0]));for(let i=0;i<e.length;i++){const s=e[i],a=t[i];for(let t=0;t<s.length-1;t++){const e=s[t],i=[e,s[t+1],a[t+1],a[t],e];Zs(r,i)&&(n=Math.min(n,Fo(r,i)));}}return n!==1/0&&n}(p[0],p[1],h)}},line:class extends pi{constructor(t){super(t,No),this.gradientVersion=0;}_handleSpecialPaintPropertyUpdate(t){"line-gradient"===t&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof ke,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER);}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=Ko.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t);}createBucket(t){return new qo(t)}queryRadius(t){const e=t,r=Zo(na("line-width",this,e),na("line-gap-width",this,e)),n=na("line-offset",this,e);return r/2+Math.abs(n)+ia(this.paint.get("line-translate"))}queryIntersectsFeature(t,e,r,n,i,s,a){const o=sa(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),s.angle,a),l=a/2*Zo(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),u=this.paint.get("line-offset").evaluate(e,r);return u&&(n=function(t,e){const r=[];for(let n=0;n<t.length;n++){const i=t[n],s=[];for(let t=0;t<i.length;t++){const r=i[t-1],n=i[t],a=i[t+1],o=0===t?new S(0,0):n.sub(r)._unit()._perp(),l=t===i.length-1?new S(0,0):a.sub(n)._unit()._perp(),u=o._add(l)._unit(),c=u.x*l.x+u.y*l.y;0!==c&&u._mult(1/c),s.push(u._mult(e)._add(n));}r.push(s);}return r}(n,u*a)),function(t,e,r){for(let n=0;n<e.length;n++){const i=e[n];if(t.length>=3)for(let e=0;e<i.length;e++)if(ea(t,i[e]))return !0;if(Xs(t,i,r))return !0}return !1}(o,n,l)}isTileClipped(){return !0}},symbol:Eu,background:class extends pi{constructor(t){super(t,Tu);}},raster:class extends pi{constructor(t){super(t,Lu);}}};class Ru{constructor(t){this._callback=t,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback();});}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._callback();}),0));}remove(){delete this._channel,this._callback=()=>{};}}const Uu=6371008.8;class Ou{constructor(t,e){if(isNaN(t)||isNaN(e))throw new Error(`Invalid LngLat object: (${t}, ${e})`);if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Ou(a(this.lng,-180,180),this.lat)}toArray(){return [this.lng,this.lat]}toString(){return `LngLat(${this.lng}, ${this.lat})`}distanceTo(t){const e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return Uu*Math.acos(Math.min(i,1))}toBounds(t=0){const e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new qu(new Ou(this.lng-r,this.lat-e),new Ou(this.lng+r,this.lat+e))}static convert(t){if(t instanceof Ou)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Ou(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Ou(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}class qu{constructor(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]));}setNorthEast(t){return this._ne=t instanceof Ou?new Ou(t.lng,t.lat):Ou.convert(t),this}setSouthWest(t){return this._sw=t instanceof Ou?new Ou(t.lng,t.lat):Ou.convert(t),this}extend(t){const e=this._sw,r=this._ne;let n,i;if(t instanceof Ou)n=t,i=t;else {if(!(t instanceof qu))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(qu.convert(t)):this.extend(Ou.convert(t)):this;if(n=t._sw,i=t._ne,!n||!i)return this}return e||r?(e.lng=Math.min(n.lng,e.lng),e.lat=Math.min(n.lat,e.lat),r.lng=Math.max(i.lng,r.lng),r.lat=Math.max(i.lat,r.lat)):(this._sw=new Ou(n.lng,n.lat),this._ne=new Ou(i.lng,i.lat)),this}getCenter(){return new Ou((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Ou(this.getWest(),this.getNorth())}getSouthEast(){return new Ou(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return [this._sw.toArray(),this._ne.toArray()]}toString(){return `LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return !(this._sw&&this._ne)}contains(t){const{lng:e,lat:r}=Ou.convert(t);let n=this._sw.lng<=e&&e<=this._ne.lng;return this._sw.lng>this._ne.lng&&(n=this._sw.lng>=e&&e>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&n}static convert(t){return t instanceof qu?t:t?new qu(t):t}}const ju=2*Math.PI*Uu;function Nu(t){return ju*Math.cos(t*Math.PI/180)}function Ku(t){return (180+t)/360}function Zu(t){return (180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Gu(t,e){return t/Nu(e)}function Ju(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}class Xu{constructor(t,e,r=0){this.x=+t,this.y=+e,this.z=+r;}static fromLngLat(t,e=0){const r=Ou.convert(t);return new Xu(Ku(r.lng),Zu(r.lat),Gu(e,r.lat))}toLngLat(){return new Ou(360*this.x-180,Ju(this.y))}toAltitude(){return this.z*Nu(Ju(this.y))}meterInMercatorCoordinateUnits(){return 1/ju*(t=Ju(this.y),1/Math.cos(t*Math.PI/180));var t;}}function Yu(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return [t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}class Hu{constructor(t,e,r){this.z=t,this.x=e,this.y=r,this.key=tc(0,t,t,e,r);}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e,r){const n=(s=this.y,a=this.z,o=Yu(256*(i=this.x),256*(s=Math.pow(2,a)-s-1),a),l=Yu(256*(i+1),256*(s+1),a),o[0]+","+o[1]+","+l[0]+","+l[1]);var i,s,a,o,l;const u=function(t,e,r){let n,i="";for(let s=t;s>0;s--)n=1<<s-1,i+=(e&n?1:0)+(r&n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===r?Math.pow(2,this.z)-this.y-1:this.y)).replace(/{ratio}/g,e>1?"@2x":"").replace(/{quadkey}/g,u).replace(/{bbox-epsg-3857}/g,n)}getTilePoint(t){const e=Math.pow(2,this.z);return new S((t.x*e-this.x)*Rs,(t.y*e-this.y)*Rs)}toString(){return `${this.z}/${this.x}/${this.y}`}}class Wu{constructor(t,e){this.wrap=t,this.canonical=e,this.key=tc(t,e.z,e.z,e.x,e.y);}}class Qu{constructor(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new Hu(r,+n,+i),this.key=tc(e,t,r,n,i);}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){const e=this.canonical.z-t;return t>this.canonical.z?new Qu(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Qu(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)}calculateScaledKey(t,e){const r=this.canonical.z-t;return t>this.canonical.z?tc(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):tc(this.wrap*+e,t,t,this.canonical.x>>r,this.canonical.y>>r)}isChildOf(t){if(t.wrap!==this.wrap)return !1;const e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ<this.overscaledZ&&t.canonical.x===this.canonical.x>>e&&t.canonical.y===this.canonical.y>>e}children(t){if(this.overscaledZ>=t)return [new Qu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return [new Qu(e,this.wrap,e,r,n),new Qu(e,this.wrap,e,r+1,n),new Qu(e,this.wrap,e,r,n+1),new Qu(e,this.wrap,e,r+1,n+1)]}isLessThan(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))}wrapped(){return new Qu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(t){return new Qu(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new Wu(this.wrap,this.canonical)}toString(){return `${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(t){return this.canonical.getTilePoint(new Xu(t.x-this.wrap,t.y))}}function tc(t,e,r,n,i){(t*=2)<0&&(t=-1*t-1);const s=1<<r;return (s*s*t+s*i+n).toString(36)+r.toString(36)+e.toString(36)}kn("CanonicalTileID",Hu),kn("OverscaledTileID",Qu,{omit:["posMatrix"]});class ec{constructor(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError("DEM tiles must be square");if(r&&"mapbox"!==r&&"terrarium"!==r)return void d(`"${r}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=e.height;const n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||"mapbox";for(let t=0;t<n;t++)this.data[this._idx(-1,t)]=this.data[this._idx(0,t)],this.data[this._idx(n,t)]=this.data[this._idx(n-1,t)],this.data[this._idx(t,-1)]=this.data[this._idx(t,0)],this.data[this._idx(t,n)]=this.data[this._idx(t,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)];}get(t,e){const r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return ("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])}getUnpackVector(){return "terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]}_idx(t,e){if(t<-1||t>=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return (e+1)*this.stride+(t+1)}_unpackMapbox(t,e,r){return (256*t*256+256*e+r)/10-1e4}_unpackTerrarium(t,e,r){return 256*t+e+r/256-32768}getPixels(){return new wa({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(t,e,r){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");let n=e*this.dim,i=e*this.dim+this.dim,s=r*this.dim,a=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1;}switch(r){case-1:s=a-1;break;case 1:a=s+1;}const o=-e*this.dim,l=-r*this.dim;for(let e=s;e<a;e++)for(let r=n;r<i;r++)this.data[this._idx(r,e)]=t.data[this._idx(r+o,e+l)];}}kn("DEMData",ec);class rc{constructor(t){this._stringToNumber={},this._numberToString=[];for(let e=0;e<t.length;e++){const r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r;}}encode(t){return this._stringToNumber[t]}decode(t){return this._numberToString[t]}}class nc{constructor(t,e,r,n,i){this.type="Feature",this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i;}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(t){this._geometry=t;}toJSON(){const t={geometry:this.geometry};for(const e in this)"_geometry"!==e&&"_vectorTileFeature"!==e&&(t[e]=this[e]);return t}}class ic{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new _n(Rs,16,0),this.grid3D=new _n(Rs,16,0),this.featureIndexArray=new Xi,this.promoteId=e;}insert(t,e,r,n,i,s){const a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);const o=s?this.grid3D:this.grid;for(let t=0;t<e.length;t++){const r=e[t],n=[1/0,1/0,-1/0,-1/0];for(let t=0;t<r.length;t++){const e=r[t];n[0]=Math.min(n[0],e.x),n[1]=Math.min(n[1],e.y),n[2]=Math.max(n[2],e.x),n[3]=Math.max(n[3],e.y);}n[0]<Rs&&n[1]<Rs&&n[2]>=0&&n[3]>=0&&o.insert(a,n[0],n[1],n[2],n[3]);}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new fo.VectorTile(new el(this.rawTileData)).layers,this.sourceLayerCoder=new rc(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(t,e,r,n){this.loadVTLayers();const i=t.params||{},s=Rs/t.tileSize/t.scale,a=Zr(i.filter),o=t.queryGeometry,l=t.queryPadding*s,u=ac(o),c=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),h=ac(t.cameraQueryGeometry),p=this.grid3D.query(h.minX-l,h.minY-l,h.maxX+l,h.maxY+l,((e,r,n,i)=>function(t,e,r,n,i){for(const s of t)if(e<=s.x&&r<=s.y&&n>=s.x&&i>=s.y)return !0;const s=[new S(e,r),new S(e,i),new S(n,i),new S(n,r)];if(t.length>2)for(const e of s)if(ea(t,e))return !0;for(let e=0;e<t.length-1;e++)if(ra(t[e],t[e+1],s))return !0;return !1}(t.cameraQueryGeometry,e-l,r-l,n+l,i+l)));for(const t of p)c.push(t);c.sort(oc);const f={};let d;for(let l=0;l<c.length;l++){const u=c[l];if(u===d)continue;d=u;const h=this.featureIndexArray.get(u);let p=null;this.loadMatchingFeature(f,h.bucketIndex,h.sourceLayerIndex,h.featureIndex,a,i.layers,i.availableImages,e,r,n,((e,r,n)=>(p||(p=qs(e)),r.queryIntersectsFeature(o,e,n,p,this.z,t.transform,s,t.pixelPosMatrix))));}return f}loadMatchingFeature(t,e,r,n,i,s,a,l,u,c,h){const p=this.bucketLayerIDs[e];if(s&&!function(t,e){for(let r=0;r<t.length;r++)if(e.indexOf(t[r])>=0)return !0;return !1}(s,p))return;const f=this.sourceLayerCoder.decode(r),d=this.vtLayers[f].feature(n);if(i.needGeometry){const t=js(d,!0);if(!i.filter(new Yn(this.tileID.overscaledZ),t,this.tileID.canonical))return}else if(!i.filter(new Yn(this.tileID.overscaledZ),d))return;const y=this.getId(d,f);for(let e=0;e<p.length;e++){const r=p[e];if(s&&s.indexOf(r)<0)continue;const i=l[r];if(!i)continue;let f={};y&&c&&(f=c.getState(i.sourceLayer||"_geojsonTileLayer",y));const m=o({},u[r]);m.paint=sc(m.paint,i.paint,d,f,a),m.layout=sc(m.layout,i.layout,d,f,a);const g=!h||h(d,i,f);if(!g)continue;const x=new nc(d,this.z,this.x,this.y,y);x.layer=m;let v=t[r];void 0===v&&(v=t[r]=[]),v.push({featureIndex:n,feature:x,intersectionZ:g});}}lookupSymbolFeatures(t,e,r,n,i,s,a,o){const l={};this.loadVTLayers();const u=Zr(i);for(const i of t)this.loadMatchingFeature(l,r,n,i,u,s,a,o,e);return l}hasLayer(t){for(const e of this.bucketLayerIDs)for(const r of e)if(t===r)return !0;return !1}getId(t,e){let r=t.id;return this.promoteId&&(r=t.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[e]],"boolean"==typeof r&&(r=Number(r))),r}}function sc(t,e,r,n,i){return c(t,((t,s)=>{const a=e instanceof ii?e.get(s):null;return a&&a.evaluate?a.evaluate(r,n,i):a}))}function ac(t){let e=1/0,r=1/0,n=-1/0,i=-1/0;for(const s of t)e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y);return {minX:e,minY:r,maxX:n,maxY:i}}function oc(t,e){return e-t}var lc;kn("FeatureIndex",ic,{omit:["rawTileData","sourceLayerCoder"]}),t.PerformanceMarkers=void 0,(lc=t.PerformanceMarkers||(t.PerformanceMarkers={})).create="create",lc.load="load",lc.fullLoad="fullLoad";let uc=null,cc=[];const hc=1e3/30,pc={mark(t){performance.mark(t);},frame(t){const e=t;null!=uc&&cc.push(e-uc),uc=e;},clearMetrics(){uc=null,cc=[],performance.clearMeasures("loadTime"),performance.clearMeasures("fullLoadTime");for(const e in t.PerformanceMarkers)performance.clearMarks(t.PerformanceMarkers[e]);},getPerformanceMetrics(){performance.measure("loadTime",t.PerformanceMarkers.create,t.PerformanceMarkers.load),performance.measure("fullLoadTime",t.PerformanceMarkers.create,t.PerformanceMarkers.fullLoad);const e=performance.getEntriesByName("loadTime")[0].duration,r=performance.getEntriesByName("fullLoadTime")[0].duration,n=cc.length,i=1/(cc.reduce(((t,e)=>t+e),0)/n/1e3),s=cc.filter((t=>t>hc)).reduce(((t,e)=>t+(e-hc)/hc),0);return {loadTime:e,fullLoadTime:r,fps:i,percentDroppedFrames:s/(n+s)*100}}};t.AJAXError=q,t.ARRAY_TYPE=la,t.Actor=class{constructor(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},u(["receive","process"],this),this.invoker=new Ru(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=g()?t:window;}send(t,e,r,n,i=!1){const s=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&&(this.callbacks[s]=r);const a=_(this.globalScope)?void 0:[];return this.target.postMessage({id:s,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:zn(e,a)},a),{cancel:()=>{r&&delete this.callbacks[s],this.target.postMessage({id:s,type:"<cancel>",targetMapId:n,sourceMapId:this.mapId});}}}receive(t){const e=t.data,r=e.id;if(r&&(!e.targetMapId||this.mapId===e.targetMapId))if("<cancel>"===e.type){delete this.tasks[r];const t=this.cancelCallbacks[r];delete this.cancelCallbacks[r],t&&t();}else g()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e);}process(){if(!this.taskQueue.length)return;const t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e);}processTask(t,e){if("<response>"===e.type){const r=this.callbacks[t];delete this.callbacks[t],r&&(e.error?r(In(e.error)):r(null,In(e.data)));}else {let r=!1;const n=_(this.globalScope)?void 0:[],i=e.hasCallback?(e,i)=>{r=!0,delete this.cancelCallbacks[t],this.target.postMessage({id:t,type:"<response>",sourceMapId:this.mapId,error:e?zn(e):null,data:zn(i,n)},n);}:t=>{r=!0;};let s=null;const a=In(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,a,i);else if(this.parent.getWorkerSource){const t=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,t[0],a.source)[t[1]](a,i);}else i(new Error(`Could not find function ${e.type}`));!r&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel);}}remove(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1);}},t.AlphaImage=ba,t.CanonicalTileID=Hu,t.CollisionBoxArray=Oi,t.CollisionCircleLayoutArray=class extends Bi{},t.Color=Et,t.DEMData=ec,t.DataConstantProperty=si,t.DictionaryCoder=rc,t.EXTENT=Rs,t.ErrorEvent=et,t.EvaluationParameters=Yn,t.Event=tt,t.Evented=rt,t.FeatureIndex=ic,t.FillBucket=lo,t.FillExtrusionBucket=Bo,t.GeoJSONFeature=nc,t.ImageAtlas=Bl,t.ImagePosition=Ml,t.LineBucket=qo,t.LineStripIndexArray=class extends $i{},t.LngLat=Ou,t.LngLatBounds=qu,t.MercatorCoordinate=Xu,t.ONE_EM=tl,t.OverscaledTileID=Qu,t.PerformanceUtils=pc,t.PosArray=class extends xi{},t.Properties=ci,t.QuadTriangleArray=class extends Pi{},t.RGBAImage=wa,t.RasterBoundsArray=class extends vi{},t.RequestPerformance=class{constructor(t){this._marks={start:[t.url,"start"].join("#"),end:[t.url,"end"].join("#"),measure:t.url.toString()},performance.mark(this._marks.start);}finish(){performance.mark(this._marks.end);let t=performance.getEntriesByName(this._marks.measure);return 0===t.length&&(performance.measure(this._marks.measure,this._marks.start,this._marks.end),t=performance.getEntriesByName(this._marks.measure),performance.clearMarks(this._marks.start),performance.clearMarks(this._marks.end),performance.clearMeasures(this._marks.measure)),t}},t.ResourceType=O,t.SegmentVector=hs,t.SymbolBucket=Bu,t.Transitionable=Qn,t.TriangleIndexArray=os,t.Uniform1f=Ss,t.Uniform1i=class extends ks{constructor(t,e){super(t,e),this.current=0;}set(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t));}},t.Uniform2f=class extends ks{constructor(t,e){super(t,e),this.current=[0,0];}set(t){t[0]===this.current[0]&&t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]));}},t.Uniform3f=class extends ks{constructor(t,e){super(t,e),this.current=[0,0,0];}set(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]));}},t.Uniform4f=zs,t.UniformColor=Is,t.UniformMatrix4f=class extends ks{constructor(t,e){super(t,e),this.current=Ms;}set(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(let e=1;e<16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}}},t.UnwrappedTileID=Wu,t.ValidationError=it,t.ZoomHistory=Mn,t.addDynamicAttributes=Su,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);let n=t.length;const i=new Array(t.length);let s=null;t.forEach(((t,a)=>{e(t,((t,e)=>{t&&(s=t),i[a]=e,0==--n&&r(s,i);}));}));},t.bezier=n,t.bindAll=u,t.cacheEntryPossiblyAdded=function(t){F++,F>V&&(t.getActor().send("enforceCacheSizeLimit",P),F=0);},t.clamp=s,t.clearTileCache=function(t){const e=caches.delete(M);t&&e.catch(t).then((()=>t()));},t.clipLine=ru,t.clone=function(t){var e=new la(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=p,t.collisionCircleLayout=Ho,t.config=I,t.create=function(){var t=new la(16);return la!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.createExpression=Vr,t.createFilter=Zr,t.createLayout=mi,t.createStyleLayer=function(t){return "custom"===t.type?new Du(t):new $u[t.type](t)},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=i,t.emitValidationErrors=wn,t.enforceCacheSizeLimit=function(t){E(),B&&B.then((e=>{e.keys().then((r=>{for(let n=0;n<r.length-t;n++)e.delete(r[n]);}));}));},t.evaluateSizeForFeature=function(t,{uSize:e,uSizeT:r},{lowerSize:n,upperSize:i}){return "source"===t.kind?n/Zl:"composite"===t.kind?Se(n/Zl,i/Zl,r):e},t.evaluateSizeForZoom=function(t,e){let r=0,n=0;if("constant"===t.kind)n=t.layoutSize;else if("source"!==t.kind){const{interpolationType:i,minZoom:a,maxZoom:o}=t,l=i?s(Ne.interpolationFactor(i,e,a,o),0,1):0;"camera"===t.kind?n=Se(t.minSize,t.maxSize,l):r=l;}return {uSizeT:r,uSize:n}},t.evaluateVariableOffset=yu,t.evented=Zn,t.exported=k,t.exported$1=T,t.extend=o,t.filterObject=h,t.getAnchorAlignment=ql,t.getAnchorJustification=mu,t.getArrayBuffer=Z,t.getImage=H,t.getJSON=function(t,e){return K(o(t,{type:"json"}),e)},t.getOverlapMode=Fu,t.getRTLTextPluginStatus=Gn,t.getReferrer=j,t.getVideo=function(t,e){const r=window.document.createElement("video");r.muted=!0,r.onloadstart=function(){e(null,r);};for(let e=0;e<t.length;e++){const n=window.document.createElement("source");G(t[e])||(r.crossOrigin="Anonymous"),n.src=t[e],r.appendChild(n);}return {cancel:()=>{}}},t.identity=ua,t.invert=function(t,e){var r=e[0],n=e[1],i=e[2],s=e[3],a=e[4],o=e[5],l=e[6],u=e[7],c=e[8],h=e[9],p=e[10],f=e[11],d=e[12],y=e[13],m=e[14],g=e[15],x=r*o-n*a,v=r*l-i*a,b=r*u-s*a,w=n*l-i*o,_=n*u-s*o,A=i*u-s*l,k=c*y-h*d,S=c*m-p*d,z=c*g-f*d,I=h*m-p*y,M=h*g-f*y,B=p*g-f*m,C=x*B-v*M+b*I+w*z-_*S+A*k;return C?(t[0]=(o*B-l*M+u*I)*(C=1/C),t[1]=(i*M-n*B-s*I)*C,t[2]=(y*A-m*_+g*w)*C,t[3]=(p*_-h*A-f*w)*C,t[4]=(l*z-a*B-u*S)*C,t[5]=(r*B-i*z+s*S)*C,t[6]=(m*b-d*A-g*v)*C,t[7]=(c*A-p*b+f*v)*C,t[8]=(a*M-o*z+u*k)*C,t[9]=(n*z-r*M-s*k)*C,t[10]=(d*_-y*b+g*x)*C,t[11]=(h*b-c*_-f*x)*C,t[12]=(o*S-a*I-l*k)*C,t[13]=(r*I-n*S+i*k)*C,t[14]=(y*v-d*w-m*x)*C,t[15]=(c*w-h*v+p*x)*C,t):null},t.isImageBitmap=A,t.isSafari=_,t.keysDifference=function(t,e){const r=[];for(const n in t)n in e||r.push(n);return r},t.lazyLoadRTLTextPlugin=function(){Xn.isLoading()||Xn.isLoaded()||"deferred"!==Gn()||Jn();},t.makeRequest=K,t.mapObject=c,t.mercatorXfromLng=Ku,t.mercatorYfromLat=Zu,t.mercatorZfromAltitude=Gu,t.mul=pa,t.multiply=ca,t.nextPowerOfTwo=function(t){return t<=1?1:Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},t.number=Se,t.ortho=function(t,e,r,n,i,s,a){var o=1/(e-r),l=1/(n-i),u=1/(s-a);return t[0]=-2*o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+r)*o,t[13]=(i+n)*l,t[14]=(a+s)*u,t[15]=1,t},t.parseCacheControl=x,t.parseGlyphPBF=function(t){return new el(t).readFields(kl,[])},t.pbf=el,t.performSymbolLayout=function(e,r,n,i,s,a,o){e.createArrays(),e.tilePixelRatio=Rs/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;const l=e.layers[0].layout,u=e.layers[0]._unevaluatedLayout._values,c={layoutIconSize:u["icon-size"].possiblyEvaluate(new Yn(e.zoom+1),o),layoutTextSize:u["text-size"].possiblyEvaluate(new Yn(e.zoom+1),o),textMaxSize:u["text-size"].possiblyEvaluate(new Yn(18))};if("composite"===e.textSizeData.kind){const{minZoom:t,maxZoom:r}=e.textSizeData;c.compositeTextSizes=[u["text-size"].possiblyEvaluate(new Yn(t),o),u["text-size"].possiblyEvaluate(new Yn(r),o)];}if("composite"===e.iconSizeData.kind){const{minZoom:t,maxZoom:r}=e.iconSizeData;c.compositeIconSizes=[u["icon-size"].possiblyEvaluate(new Yn(t),o),u["icon-size"].possiblyEvaluate(new Yn(r),o)];}const h=l.get("text-line-height")*tl,p="viewport"!==l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),f=l.get("text-keep-upright"),y=l.get("text-size");for(const a of e.features){const u=l.get("text-font").evaluate(a,{},o).join(","),m=y.evaluate(a,{},o),g=c.layoutTextSize.evaluate(a,{},o),x=c.layoutIconSize.evaluate(a,{},o),v={horizontal:{},vertical:void 0},b=a.text;let w,_=[0,0];if(b){const i=b.toString(),c=l.get("text-letter-spacing").evaluate(a,{},o)*tl,d=Pn(i)?c:0,y=l.get("text-anchor").evaluate(a,{},o),x=l.get("text-variable-anchor");if(!x){const t=l.get("text-radial-offset").evaluate(a,{},o);_=t?yu(y,[t*tl,du]):l.get("text-offset").evaluate(a,{},o).map((t=>t*tl));}let w=p?"center":l.get("text-justify").evaluate(a,{},o);const A=l.get("symbol-placement"),k="point"===A?l.get("text-max-width").evaluate(a,{},o)*tl:0,S=()=>{e.allowVerticalPlacement&&Cn(i)&&(v.vertical=El(b,r,n,s,u,k,h,y,"left",d,_,t.WritingMode.vertical,!0,A,g,m));};if(!p&&x){const e="auto"===w?x.map((t=>mu(t))):[w];let i=!1;for(let a=0;a<e.length;a++){const o=e[a];if(!v.horizontal[o])if(i)v.horizontal[o]=v.horizontal[0];else {const e=El(b,r,n,s,u,k,h,"center",o,d,_,t.WritingMode.horizontal,!1,A,g,m);e&&(v.horizontal[o]=e,i=1===e.positionedLines.length);}}S();}else {"auto"===w&&(w=mu(y));const e=El(b,r,n,s,u,k,h,y,w,d,_,t.WritingMode.horizontal,!1,A,g,m);e&&(v.horizontal[w]=e),S(),Cn(i)&&p&&f&&(v.vertical=El(b,r,n,s,u,k,h,y,w,d,_,t.WritingMode.vertical,!1,A,g,m));}}let A=!1;if(a.icon&&a.icon.name){const t=i[a.icon.name];t&&(w=Nl(s[a.icon.name],l.get("icon-offset").evaluate(a,{},o),l.get("icon-anchor").evaluate(a,{},o)),A=!!t.sdf,void 0===e.sdfIcons?e.sdfIcons=A:e.sdfIcons!==A&&d("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(t.pixelRatio!==e.pixelRatio||0!==l.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0));}const k=bu(v.horizontal)||v.vertical;e.iconsInText=!!k&&k.iconsInText,(k||w)&&gu(e,a,v,w,i,c,g,x,_,A,o);}a&&e.generateCollisionDebugBuffers();},t.perspective=function(t,e,r,n,i){var s,a=1/Math.tan(e/2);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(t[10]=(i+n)*(s=1/(n-i)),t[14]=2*i*n*s):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){const r={};for(let n=0;n<e.length;n++){const i=e[n];i in t&&(r[i]=t[i]);}return r},t.plugin=Xn,t.pointGeometry=S,t.polygonIntersectsPolygon=Zs,t.potpack=Il,t.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.register=kn,t.registerForPluginStateChange=function(t){return t({pluginStatus:qn,pluginURL:jn}),Zn.on("pluginStateChange",t),t},t.renderColorRamp=_a,t.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),s=e[4],a=e[5],o=e[6],l=e[7],u=e[8],c=e[9],h=e[10],p=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*i+u*n,t[5]=a*i+c*n,t[6]=o*i+h*n,t[7]=l*i+p*n,t[8]=u*i-s*n,t[9]=c*i-a*n,t[10]=h*i-o*n,t[11]=p*i-l*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),s=e[0],a=e[1],o=e[2],l=e[3],u=e[4],c=e[5],h=e[6],p=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*i+u*n,t[1]=a*i+c*n,t[2]=o*i+h*n,t[3]=l*i+p*n,t[4]=u*i-s*n,t[5]=c*i-a*n,t[6]=h*i-o*n,t[7]=p*i-l*n,t},t.scale=function(t,e,r){var n=r[0],i=r[1],s=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.setCacheLimits=function(t,e){P=t,V=e;},t.setRTLTextPlugin=function(t,e,r=!1){if(qn===$n||qn===Rn||qn===Un)throw new Error("setRTLTextPlugin cannot be called multiple times.");jn=k.resolveURL(t),qn=$n,On=e,Kn(),r||Jn();},t.spec=nt,t.sphericalToCartesian=function([t,e,r]){return e+=90,e*=Math.PI/180,r*=Math.PI/180,{x:t*Math.cos(e)*Math.sin(r),y:t*Math.sin(e)*Math.sin(r),z:t*Math.cos(r)}},t.toEvaluationFeature=js,t.transformMat4=fa,t.translate=function(t,e,r){var n,i,s,a,o,l,u,c,h,p,f,d,y=r[0],m=r[1],g=r[2];return e===t?(t[12]=e[0]*y+e[4]*m+e[8]*g+e[12],t[13]=e[1]*y+e[5]*m+e[9]*g+e[13],t[14]=e[2]*y+e[6]*m+e[10]*g+e[14],t[15]=e[3]*y+e[7]*m+e[11]*g+e[15]):(i=e[1],s=e[2],a=e[3],o=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=e[9],f=e[10],d=e[11],t[0]=n=e[0],t[1]=i,t[2]=s,t[3]=a,t[4]=o,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=p,t[10]=f,t[11]=d,t[12]=n*y+o*m+h*g+e[12],t[13]=i*y+l*m+p*g+e[13],t[14]=s*y+u*m+f*g+e[14],t[15]=a*y+c*m+d*g+e[15]),t},t.triggerPluginCompletionEvent=Nn,t.unicodeBlockLookup=Bn,t.uniqueId=function(){return l++},t.validateCustomStyleLayer=function(t){const e=[],r=t.id;return void 0===r&&e.push({message:`layers.${r}: missing required property "id"`}),void 0===t.render&&e.push({message:`layers.${r}: missing required method "render"`}),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&e.push({message:`layers.${r}: property "renderingMode" must be either "2d" or "3d"`}),e},t.validateLight=xn,t.validateStyle=gn,t.vectorTile=fo,t.warnOnce=d,t.wrap=a;}));define(["./shared"],(function(e){"use strict";function t(e){const o=typeof e;if("number"===o||"boolean"===o||"string"===o||null==e)return JSON.stringify(e);if(Array.isArray(e)){let o="[";for(const i of e)o+=`${t(i)},`;return `${o}]`}const i=Object.keys(e).sort();let r="{";for(let o=0;o<i.length;o++)r+=`${JSON.stringify(i[o])}:${t(e[i[o]])},`;return `${r}}`}function o(o){let i="";for(const r of e.refProperties)i+=`/${t(o[r])}`;return i}class i{constructor(e){this.keyCache={},e&&this.replace(e);}replace(e){this._layerConfigs={},this._layers={},this.update(e,[]);}update(t,i){for(const o of t){this._layerConfigs[o.id]=o;const t=this._layers[o.id]=e.createStyleLayer(o);t._featureFilter=e.createFilter(t.filter),this.keyCache[o.id]&&delete this.keyCache[o.id];}for(const e of i)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};const r=function(e,t){const i={};for(let r=0;r<e.length;r++){const n=t&&t[e[r].id]||o(e[r]);t&&(t[e[r].id]=n);let s=i[n];s||(s=i[n]=[]),s.push(e[r]);}const r=[];for(const e in i)r.push(i[e]);return r}(Object.values(this._layerConfigs),this.keyCache);for(const e of r){const t=e.map((e=>this._layers[e.id])),o=t[0];if("none"===o.visibility)continue;const i=o.source||"";let r=this.familiesBySource[i];r||(r=this.familiesBySource[i]={});const n=o.sourceLayer||"_geojsonTileLayer";let s=r[n];s||(s=r[n]=[]),s.push(t);}}}class r{constructor(t){const o={},i=[];for(const e in t){const r=t[e],n=o[e]={};for(const e in r){const t=r[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const o={x:0,y:0,w:t.bitmap.width+2,h:t.bitmap.height+2};i.push(o),n[e]={rect:o,metrics:t.metrics};}}const{w:r,h:n}=e.potpack(i),s=new e.AlphaImage({width:r||1,height:n||1});for(const i in t){const r=t[i];for(const t in r){const n=r[+t];if(!n||0===n.bitmap.width||0===n.bitmap.height)continue;const a=o[i][t].rect;e.AlphaImage.copy(n.bitmap,s,{x:0,y:0},{x:a.x+1,y:a.y+1},n.bitmap);}}this.image=s,this.positions=o;}}e.register("GlyphAtlas",r);class n{constructor(t){this.tileID=new e.OverscaledTileID(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId;}parse(t,o,i,n,a){this.status="parsing",this.data=t,this.collisionBoxArray=new e.CollisionBoxArray;const l=new e.DictionaryCoder(Object.keys(t.layers).sort()),c=new e.FeatureIndex(this.tileID,this.promoteId);c.bucketLayerIDs=[];const u={},h={featureIndex:c,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:i},p=o.familiesBySource[this.source];for(const o in p){const r=t.layers[o];if(!r)continue;1===r.version&&e.warnOnce(`Vector tile source "${this.source}" layer "${o}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const n=l.encode(o),a=[];for(let e=0;e<r.length;e++){const t=r.feature(e),i=c.getId(t,o);a.push({feature:t,id:i,index:e,sourceLayerIndex:n});}for(const e of p[o]){const t=e[0];t.minzoom&&this.zoom<Math.floor(t.minzoom)||t.maxzoom&&this.zoom>=t.maxzoom||"none"!==t.visibility&&(s(e,this.zoom,i),(u[t.id]=t.createBucket({index:c.bucketLayerIDs.length,layers:e,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:n,sourceID:this.source})).populate(a,h,this.tileID.canonical),c.bucketLayerIDs.push(e.map((e=>e.id))));}}let f,d,g,m;const y=e.mapObject(h.glyphDependencies,(e=>Object.keys(e).map(Number)));Object.keys(y).length?n.send("getGlyphs",{uid:this.uid,stacks:y},((e,t)=>{f||(f=e,d=t,w.call(this));})):d={};const v=Object.keys(h.iconDependencies);v.length?n.send("getImages",{icons:v,source:this.source,tileID:this.tileID,type:"icons"},((e,t)=>{f||(f=e,g=t,w.call(this));})):g={};const x=Object.keys(h.patternDependencies);function w(){if(f)return a(f);if(d&&g&&m){const t=new r(d),o=new e.ImageAtlas(g,m);for(const r in u){const n=u[r];n instanceof e.SymbolBucket?(s(n.layers,this.zoom,i),e.performSymbolLayout(n,d,t.positions,g,o.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):n.hasPattern&&(n instanceof e.LineBucket||n instanceof e.FillBucket||n instanceof e.FillExtrusionBucket)&&(s(n.layers,this.zoom,i),n.addFeatures(h,this.tileID.canonical,o.patternPositions));}this.status="done",a(null,{buckets:Object.values(u).filter((e=>!e.isEmpty())),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:o,glyphMap:this.returnDependencies?d:null,iconMap:this.returnDependencies?g:null,glyphPositions:this.returnDependencies?t.positions:null});}}x.length?n.send("getImages",{icons:x,source:this.source,tileID:this.tileID,type:"patterns"},((e,t)=>{f||(f=e,m=t,w.call(this));})):m={},w.call(this);}}function s(t,o,i){const r=new e.EvaluationParameters(o);for(const e of t)e.recalculate(r,i);}function a(t,o){const i=e.getArrayBuffer(t.request,((t,i,r,n)=>{t?o(t):i&&o(null,{vectorTile:new e.vectorTile.VectorTile(new e.pbf(i)),rawData:i,cacheControl:r,expires:n});}));return ()=>{i.cancel(),o();}}class l{constructor(e,t,o,i){this.actor=e,this.layerIndex=t,this.availableImages=o,this.loadVectorData=i||a,this.loading={},this.loaded={};}loadTile(t,o){const i=t.uid;this.loading||(this.loading={});const r=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.RequestPerformance(t.request),s=this.loading[i]=new n(t);s.abort=this.loadVectorData(t,((t,n)=>{if(delete this.loading[i],t||!n)return s.status="done",this.loaded[i]=s,o(t);const a=n.rawData,l={};n.expires&&(l.expires=n.expires),n.cacheControl&&(l.cacheControl=n.cacheControl);const c={};if(r){const e=r.finish();e&&(c.resourceTiming=JSON.parse(JSON.stringify(e)));}s.vectorTile=n.vectorTile,s.parse(n.vectorTile,this.layerIndex,this.availableImages,this.actor,((t,i)=>{if(t||!i)return o(t);o(null,e.extend({rawTileData:a.slice(0)},i,l,c));})),this.loaded=this.loaded||{},this.loaded[i]=s;}));}reloadTile(e,t){const o=this.loaded,i=e.uid,r=this;if(o&&o[i]){const n=o[i];n.showCollisionBoxes=e.showCollisionBoxes;const s=(e,o)=>{const i=n.reloadCallback;i&&(delete n.reloadCallback,n.parse(n.vectorTile,r.layerIndex,this.availableImages,r.actor,i)),t(e,o);};"parsing"===n.status?n.reloadCallback=s:"done"===n.status&&(n.vectorTile?n.parse(n.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s());}}abortTile(e,t){const o=this.loading,i=e.uid;o&&o[i]&&o[i].abort&&(o[i].abort(),delete o[i]),t();}removeTile(e,t){const o=this.loaded,i=e.uid;o&&o[i]&&delete o[i],t();}}class c{constructor(){this.loaded={};}loadTile(t,o){const{uid:i,encoding:r,rawImageData:n}=t,s=e.isImageBitmap(n)?this.getImageData(n):n,a=new e.DEMData(i,s,r);this.loaded=this.loaded||{},this.loaded[i]=a,o(null,a);}getImageData(t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);const o=this.offscreenCanvasContext.getImageData(-1,-1,t.width+2,t.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new e.RGBAImage({width:o.width,height:o.height},o.data)}removeTile(e){const t=this.loaded,o=e.uid;t&&t[o]&&delete t[o];}}var u=function e(t,o){var i,r=t&&t.type;if("FeatureCollection"===r)for(i=0;i<t.features.length;i++)e(t.features[i],o);else if("GeometryCollection"===r)for(i=0;i<t.geometries.length;i++)e(t.geometries[i],o);else if("Feature"===r)e(t.geometry,o);else if("Polygon"===r)h(t.coordinates,o);else if("MultiPolygon"===r)for(i=0;i<t.coordinates.length;i++)h(t.coordinates[i],o);return t};function h(e,t){if(0!==e.length){p(e[0],t);for(var o=1;o<e.length;o++)p(e[o],!t);}}function p(e,t){for(var o=0,i=0,r=0,n=e.length,s=n-1;r<n;s=r++){var a=(e[r][0]-e[s][0])*(e[s][1]+e[r][1]),l=o+a;i+=Math.abs(o)>=Math.abs(a)?o-l+a:a-l+o,o=l;}o+i>=0!=!!t&&e.reverse();}const f=e.vectorTile.VectorTileFeature.prototype.toGeoJSON;class d{constructor(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10));}loadGeometry(){if(1===this._feature.type){const t=[];for(const o of this._feature.geometry)t.push([new e.pointGeometry(o[0],o[1])]);return t}{const t=[];for(const o of this._feature.geometry){const i=[];for(const t of o)i.push(new e.pointGeometry(t[0],t[1]));t.push(i);}return t}}toGeoJSON(e,t,o){return f.call(this,e,t,o)}}class g{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t;}feature(e){return new d(this._features[e])}}var m={exports:{}},y=e.pointGeometry,v=e.vectorTile.VectorTileFeature,x=w;function w(e,t){this.options=t||{},this.features=e,this.length=e.length;}function S(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096;}w.prototype.feature=function(e){return new S(this.features[e],this.options.extent)},S.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var t=0;t<e.length;t++){for(var o=e[t],i=[],r=0;r<o.length;r++)i.push(new y(o[r][0],o[r][1]));this.geometry.push(i);}return this.geometry},S.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,o=-1/0,i=1/0,r=-1/0,n=0;n<e.length;n++)for(var s=e[n],a=0;a<s.length;a++){var l=s[a];t=Math.min(t,l.x),o=Math.max(o,l.x),i=Math.min(i,l.y),r=Math.max(r,l.y);}return [t,i,o,r]},S.prototype.toGeoJSON=v.prototype.toGeoJSON;var I=e.pbf,M=x;function b(e){var t=new I;return function(e,t){for(var o in e.layers)t.writeMessage(3,k,e.layers[o]);}(e,t),t.finish()}function k(e,t){var o;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var i={keys:[],values:[],keycache:{},valuecache:{}};for(o=0;o<e.length;o++)i.feature=e.feature(o),t.writeMessage(2,_,i);var r=i.keys;for(o=0;o<r.length;o++)t.writeStringField(3,r[o]);var n=i.values;for(o=0;o<n.length;o++)t.writeMessage(4,L,n[o]);}function _(e,t){var o=e.feature;void 0!==o.id&&t.writeVarintField(1,o.id),t.writeMessage(2,P,e),t.writeVarintField(3,o.type),t.writeMessage(4,D,o);}function P(e,t){var o=e.feature,i=e.keys,r=e.values,n=e.keycache,s=e.valuecache;for(var a in o.properties){var l=o.properties[a],c=n[a];if(null!==l){void 0===c&&(i.push(a),n[a]=c=i.length-1),t.writeVarint(c);var u=typeof l;"string"!==u&&"boolean"!==u&&"number"!==u&&(l=JSON.stringify(l));var h=u+":"+l,p=s[h];void 0===p&&(r.push(l),s[h]=p=r.length-1),t.writeVarint(p);}}}function T(e,t){return (t<<3)+(7&e)}function C(e){return e<<1^e>>31}function D(e,t){for(var o=e.loadGeometry(),i=e.type,r=0,n=0,s=o.length,a=0;a<s;a++){var l=o[a],c=1;1===i&&(c=l.length),t.writeVarint(T(1,c));for(var u=3===i?l.length-1:l.length,h=0;h<u;h++){1===h&&1!==i&&t.writeVarint(T(2,u-1));var p=l[h].x-r,f=l[h].y-n;t.writeVarint(C(p)),t.writeVarint(C(f)),r+=p,n+=f;}3===i&&t.writeVarint(T(7,1));}}function L(e,t){var o=typeof e;"string"===o?t.writeStringField(1,e):"boolean"===o?t.writeBooleanField(7,e):"number"===o&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e));}m.exports=b,m.exports.fromVectorTileJs=b,m.exports.fromGeojsonVt=function(e,t){t=t||{};var o={};for(var i in e)o[i]=new M(e[i].features,t),o[i].name=i,o[i].version=t.version,o[i].extent=t.extent;return b({layers:o})},m.exports.GeoJSONWrapper=M;var z=m.exports;function O(e,t,o,i,r,n){if(r-i<=o)return;const s=i+r>>1;E(e,t,s,i,r,n%2),O(e,t,o,i,s-1,n+1),O(e,t,o,s+1,r,n+1);}function E(e,t,o,i,r,n){for(;r>i;){if(r-i>600){const s=r-i+1,a=o-i+1,l=Math.log(s),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(s-c)/s)*(a-s/2<0?-1:1);E(e,t,o,Math.max(i,Math.floor(o-a*c/s+u)),Math.min(r,Math.floor(o+(s-a)*c/s+u)),n);}const s=t[2*o+n];let a=i,l=r;for(F(e,t,i,o),t[2*r+n]>s&&F(e,t,i,r);a<l;){for(F(e,t,a,l),a++,l--;t[2*a+n]<s;)a++;for(;t[2*l+n]>s;)l--;}t[2*i+n]===s?F(e,t,i,l):(l++,F(e,t,l,r)),l<=o&&(i=l+1),o<=l&&(r=l-1);}}function F(e,t,o,i){N(e,o,i),N(t,2*o,2*i),N(t,2*o+1,2*i+1);}function N(e,t,o){const i=e[t];e[t]=e[o],e[o]=i;}function A(e,t,o,i){const r=e-o,n=t-i;return r*r+n*n}const G=e=>e[0],J=e=>e[1];class Z{constructor(e,t=G,o=J,i=64,r=Float64Array){this.nodeSize=i,this.points=e;const n=e.length<65536?Uint16Array:Uint32Array,s=this.ids=new n(e.length),a=this.coords=new r(2*e.length);for(let i=0;i<e.length;i++)s[i]=i,a[2*i]=t(e[i]),a[2*i+1]=o(e[i]);O(s,a,i,0,s.length-1,0);}range(e,t,o,i){return function(e,t,o,i,r,n,s){const a=[0,e.length-1,0],l=[];let c,u;for(;a.length;){const h=a.pop(),p=a.pop(),f=a.pop();if(p-f<=s){for(let s=f;s<=p;s++)c=t[2*s],u=t[2*s+1],c>=o&&c<=r&&u>=i&&u<=n&&l.push(e[s]);continue}const d=Math.floor((f+p)/2);c=t[2*d],u=t[2*d+1],c>=o&&c<=r&&u>=i&&u<=n&&l.push(e[d]);const g=(h+1)%2;(0===h?o<=c:i<=u)&&(a.push(f),a.push(d-1),a.push(g)),(0===h?r>=c:n>=u)&&(a.push(d+1),a.push(p),a.push(g));}return l}(this.ids,this.coords,e,t,o,i,this.nodeSize)}within(e,t,o){return function(e,t,o,i,r,n){const s=[0,e.length-1,0],a=[],l=r*r;for(;s.length;){const c=s.pop(),u=s.pop(),h=s.pop();if(u-h<=n){for(let r=h;r<=u;r++)A(t[2*r],t[2*r+1],o,i)<=l&&a.push(e[r]);continue}const p=Math.floor((h+u)/2),f=t[2*p],d=t[2*p+1];A(f,d,o,i)<=l&&a.push(e[p]);const g=(c+1)%2;(0===c?o-r<=f:i-r<=d)&&(s.push(h),s.push(p-1),s.push(g)),(0===c?o+r>=f:i+r>=d)&&(s.push(p+1),s.push(u),s.push(g));}return a}(this.ids,this.coords,e,t,o,this.nodeSize)}}const B={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},j=Math.fround||(Y=new Float32Array(1),e=>(Y[0]=+e,Y[0]));var Y;class V{constructor(e){this.options=K(Object.create(B),e),this.trees=new Array(this.options.maxZoom+1);}load(e){const{log:t,minZoom:o,maxZoom:i,nodeSize:r}=this.options;t&&console.time("total time");const n=`prepare ${e.length} points`;t&&console.time(n),this.points=e;let s=[];for(let t=0;t<e.length;t++)e[t].geometry&&s.push(W(e[t],t));this.trees[i+1]=new Z(s,Q,ee,r,Float32Array),t&&console.timeEnd(n);for(let e=i;e>=o;e--){const o=+Date.now();s=this._cluster(s,e),this.trees[e]=new Z(s,Q,ee,r,Float32Array),t&&console.log("z%d: %d clusters in %dms",e,s.length,+Date.now()-o);}return t&&console.timeEnd("total time"),this}getClusters(e,t){let o=((e[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[1]));let r=180===e[2]?180:((e[2]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)o=-180,r=180;else if(o>r){const e=this.getClusters([o,i,180,n],t),s=this.getClusters([-180,i,r,n],t);return e.concat(s)}const s=this.trees[this._limitZoom(t)],a=s.range(q(o),U(n),q(r),U(i)),l=[];for(const e of a){const t=s.points[e];l.push(t.numPoints?R(t):this.points[t.index]);}return l}getChildren(e){const t=this._getOriginId(e),o=this._getOriginZoom(e),i="No cluster with the specified id.",r=this.trees[o];if(!r)throw new Error(i);const n=r.points[t];if(!n)throw new Error(i);const s=this.options.radius/(this.options.extent*Math.pow(2,o-1)),a=r.within(n.x,n.y,s),l=[];for(const t of a){const o=r.points[t];o.parentId===e&&l.push(o.numPoints?R(o):this.points[o.index]);}if(0===l.length)throw new Error(i);return l}getLeaves(e,t,o){const i=[];return this._appendLeaves(i,e,t=t||10,o=o||0,0),i}getTile(e,t,o){const i=this.trees[this._limitZoom(e)],r=Math.pow(2,e),{extent:n,radius:s}=this.options,a=s/n,l=(o-a)/r,c=(o+1+a)/r,u={features:[]};return this._addTileFeatures(i.range((t-a)/r,l,(t+1+a)/r,c),i.points,t,o,r,u),0===t&&this._addTileFeatures(i.range(1-a/r,l,1,c),i.points,r,o,r,u),t===r-1&&this._addTileFeatures(i.range(0,l,a/r,c),i.points,-1,o,r,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const o=this.getChildren(e);if(t++,1!==o.length)break;e=o[0].properties.cluster_id;}return t}_appendLeaves(e,t,o,i,r){const n=this.getChildren(t);for(const t of n){const n=t.properties;if(n&&n.cluster?r+n.point_count<=i?r+=n.point_count:r=this._appendLeaves(e,n.cluster_id,o,i,r):r<i?r++:e.push(t),e.length===o)break}return r}_addTileFeatures(e,t,o,i,r,n){for(const s of e){const e=t[s],a=e.numPoints;let l,c,u;if(a)l=$(e),c=e.x,u=e.y;else {const t=this.points[e.index];l=t.properties,c=q(t.geometry.coordinates[0]),u=U(t.geometry.coordinates[1]);}const h={type:1,geometry:[[Math.round(this.options.extent*(c*r-o)),Math.round(this.options.extent*(u*r-i))]],tags:l};let p;a?p=e.id:this.options.generateId?p=e.index:this.points[e.index].id&&(p=this.points[e.index].id),void 0!==p&&(h.id=p),n.features.push(h);}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(+e,this.options.maxZoom+1))}_cluster(e,t){const o=[],{radius:i,extent:r,reduce:n,minPoints:s}=this.options,a=i/(r*Math.pow(2,t));for(let i=0;i<e.length;i++){const r=e[i];if(r.zoom<=t)continue;r.zoom=t;const l=this.trees[t+1],c=l.within(r.x,r.y,a),u=r.numPoints||1;let h=u;for(const e of c){const o=l.points[e];o.zoom>t&&(h+=o.numPoints||1);}if(h>u&&h>=s){let e=r.x*u,s=r.y*u,a=n&&u>1?this._map(r,!0):null;const p=(i<<5)+(t+1)+this.points.length;for(const o of c){const i=l.points[o];if(i.zoom<=t)continue;i.zoom=t;const c=i.numPoints||1;e+=i.x*c,s+=i.y*c,i.parentId=p,n&&(a||(a=this._map(r,!0)),n(a,this._map(i)));}r.parentId=p,o.push(X(e/h,s/h,p,h,a));}else if(o.push(r),h>1)for(const e of c){const i=l.points[e];i.zoom<=t||(i.zoom=t,o.push(i));}}return o}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return (e-this.points.length)%32}_map(e,t){if(e.numPoints)return t?K({},e.properties):e.properties;const o=this.points[e.index].properties,i=this.options.map(o);return t&&i===o?K({},i):i}}function X(e,t,o,i,r){return {x:j(e),y:j(t),zoom:1/0,id:o,parentId:-1,numPoints:i,properties:r}}function W(e,t){const[o,i]=e.geometry.coordinates;return {x:j(q(o)),y:j(U(i)),zoom:1/0,index:t,parentId:-1}}function R(e){return {type:"Feature",id:e.id,properties:$(e),geometry:{type:"Point",coordinates:[(t=e.x,360*(t-.5)),H(e.y)]}};var t;}function $(e){const t=e.numPoints,o=t>=1e4?`${Math.round(t/1e3)}k`:t>=1e3?Math.round(t/100)/10+"k":t;return K(K({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:o})}function q(e){return e/360+.5}function U(e){const t=Math.sin(e*Math.PI/180),o=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return o<0?0:o>1?1:o}function H(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function K(e,t){for(const o in t)e[o]=t[o];return e}function Q(e){return e.x}function ee(e){return e.y}function te(e,t,o,i){for(var r,n=i,s=o-t>>1,a=o-t,l=e[t],c=e[t+1],u=e[o],h=e[o+1],p=t+3;p<o;p+=3){var f=oe(e[p],e[p+1],l,c,u,h);if(f>n)r=p,n=f;else if(f===n){var d=Math.abs(p-s);d<a&&(r=p,a=d);}}n>i&&(r-t>3&&te(e,t,r,i),e[r+2]=n,o-r>3&&te(e,r,o,i));}function oe(e,t,o,i,r,n){var s=r-o,a=n-i;if(0!==s||0!==a){var l=((e-o)*s+(t-i)*a)/(s*s+a*a);l>1?(o=r,i=n):l>0&&(o+=s*l,i+=a*l);}return (s=e-o)*s+(a=t-i)*a}function ie(e,t,o,i){var r={id:void 0===e?null:e,type:t,geometry:o,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,o=e.type;if("Point"===o||"MultiPoint"===o||"LineString"===o)re(e,t);else if("Polygon"===o||"MultiLineString"===o)for(var i=0;i<t.length;i++)re(e,t[i]);else if("MultiPolygon"===o)for(i=0;i<t.length;i++)for(var r=0;r<t[i].length;r++)re(e,t[i][r]);}(r),r}function re(e,t){for(var o=0;o<t.length;o+=3)e.minX=Math.min(e.minX,t[o]),e.minY=Math.min(e.minY,t[o+1]),e.maxX=Math.max(e.maxX,t[o]),e.maxY=Math.max(e.maxY,t[o+1]);}function ne(e,t,o,i){if(t.geometry){var r=t.geometry.coordinates,n=t.geometry.type,s=Math.pow(o.tolerance/((1<<o.maxZoom)*o.extent),2),a=[],l=t.id;if(o.promoteId?l=t.properties[o.promoteId]:o.generateId&&(l=i||0),"Point"===n)se(r,a);else if("MultiPoint"===n)for(var c=0;c<r.length;c++)se(r[c],a);else if("LineString"===n)ae(r,a,s,!1);else if("MultiLineString"===n){if(o.lineMetrics){for(c=0;c<r.length;c++)ae(r[c],a=[],s,!1),e.push(ie(l,"LineString",a,t.properties));return}le(r,a,s,!1);}else if("Polygon"===n)le(r,a,s,!0);else {if("MultiPolygon"!==n){if("GeometryCollection"===n){for(c=0;c<t.geometry.geometries.length;c++)ne(e,{id:l,geometry:t.geometry.geometries[c],properties:t.properties},o,i);return}throw new Error("Input data is not a valid GeoJSON object.")}for(c=0;c<r.length;c++){var u=[];le(r[c],u,s,!0),a.push(u);}}e.push(ie(l,n,a,t.properties));}}function se(e,t){t.push(ce(e[0])),t.push(ue(e[1])),t.push(0);}function ae(e,t,o,i){for(var r,n,s=0,a=0;a<e.length;a++){var l=ce(e[a][0]),c=ue(e[a][1]);t.push(l),t.push(c),t.push(0),a>0&&(s+=i?(r*c-l*n)/2:Math.sqrt(Math.pow(l-r,2)+Math.pow(c-n,2))),r=l,n=c;}var u=t.length-3;t[2]=1,te(t,0,u,o),t[u+2]=1,t.size=Math.abs(s),t.start=0,t.end=t.size;}function le(e,t,o,i){for(var r=0;r<e.length;r++){var n=[];ae(e[r],n,o,i),t.push(n);}}function ce(e){return e/360+.5}function ue(e){var t=Math.sin(e*Math.PI/180),o=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return o<0?0:o>1?1:o}function he(e,t,o,i,r,n,s,a){if(i/=t,n>=(o/=t)&&s<i)return e;if(s<o||n>=i)return null;for(var l=[],c=0;c<e.length;c++){var u=e[c],h=u.geometry,p=u.type,f=0===r?u.minX:u.minY,d=0===r?u.maxX:u.maxY;if(f>=o&&d<i)l.push(u);else if(!(d<o||f>=i)){var g=[];if("Point"===p||"MultiPoint"===p)pe(h,g,o,i,r);else if("LineString"===p)fe(h,g,o,i,r,!1,a.lineMetrics);else if("MultiLineString"===p)ge(h,g,o,i,r,!1);else if("Polygon"===p)ge(h,g,o,i,r,!0);else if("MultiPolygon"===p)for(var m=0;m<h.length;m++){var y=[];ge(h[m],y,o,i,r,!0),y.length&&g.push(y);}if(g.length){if(a.lineMetrics&&"LineString"===p){for(m=0;m<g.length;m++)l.push(ie(u.id,p,g[m],u.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===g.length?(p="LineString",g=g[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===g.length?"Point":"MultiPoint"),l.push(ie(u.id,p,g,u.tags));}}}return l.length?l:null}function pe(e,t,o,i,r){for(var n=0;n<e.length;n+=3){var s=e[n+r];s>=o&&s<=i&&(t.push(e[n]),t.push(e[n+1]),t.push(e[n+2]));}}function fe(e,t,o,i,r,n,s){for(var a,l,c=de(e),u=0===r?ye:ve,h=e.start,p=0;p<e.length-3;p+=3){var f=e[p],d=e[p+1],g=e[p+2],m=e[p+3],y=e[p+4],v=0===r?f:d,x=0===r?m:y,w=!1;s&&(a=Math.sqrt(Math.pow(f-m,2)+Math.pow(d-y,2))),v<o?x>o&&(l=u(c,f,d,m,y,o),s&&(c.start=h+a*l)):v>i?x<i&&(l=u(c,f,d,m,y,i),s&&(c.start=h+a*l)):me(c,f,d,g),x<o&&v>=o&&(l=u(c,f,d,m,y,o),w=!0),x>i&&v<=i&&(l=u(c,f,d,m,y,i),w=!0),!n&&w&&(s&&(c.end=h+a*l),t.push(c),c=de(e)),s&&(h+=a);}var S=e.length-3;f=e[S],d=e[S+1],g=e[S+2],(v=0===r?f:d)>=o&&v<=i&&me(c,f,d,g),S=c.length-3,n&&S>=3&&(c[S]!==c[0]||c[S+1]!==c[1])&&me(c,c[0],c[1],c[2]),c.length&&t.push(c);}function de(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function ge(e,t,o,i,r,n){for(var s=0;s<e.length;s++)fe(e[s],t,o,i,r,n,!1);}function me(e,t,o,i){e.push(t),e.push(o),e.push(i);}function ye(e,t,o,i,r,n){var s=(n-t)/(i-t);return e.push(n),e.push(o+(r-o)*s),e.push(1),s}function ve(e,t,o,i,r,n){var s=(n-o)/(r-o);return e.push(t+(i-t)*s),e.push(n),e.push(1),s}function xe(e,t){for(var o=[],i=0;i<e.length;i++){var r,n=e[i],s=n.type;if("Point"===s||"MultiPoint"===s||"LineString"===s)r=we(n.geometry,t);else if("MultiLineString"===s||"Polygon"===s){r=[];for(var a=0;a<n.geometry.length;a++)r.push(we(n.geometry[a],t));}else if("MultiPolygon"===s)for(r=[],a=0;a<n.geometry.length;a++){for(var l=[],c=0;c<n.geometry[a].length;c++)l.push(we(n.geometry[a][c],t));r.push(l);}o.push(ie(n.id,s,r,n.tags));}return o}function we(e,t){var o=[];o.size=e.size,void 0!==e.start&&(o.start=e.start,o.end=e.end);for(var i=0;i<e.length;i+=3)o.push(e[i]+t,e[i+1],e[i+2]);return o}function Se(e,t){if(e.transformed)return e;var o,i,r,n=1<<e.z,s=e.x,a=e.y;for(o=0;o<e.features.length;o++){var l=e.features[o],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(i=0;i<c.length;i+=2)l.geometry.push(Ie(c[i],c[i+1],t,n,s,a));else for(i=0;i<c.length;i++){var h=[];for(r=0;r<c[i].length;r+=2)h.push(Ie(c[i][r],c[i][r+1],t,n,s,a));l.geometry.push(h);}}return e.transformed=!0,e}function Ie(e,t,o,i,r,n){return [Math.round(o*(e*i-r)),Math.round(o*(t*i-n))]}function Me(e,t,o,i,r){for(var n=t===r.maxZoom?0:r.tolerance/((1<<t)*r.extent),s={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:o,y:i,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},a=0;a<e.length;a++){s.numFeatures++,be(s,e[a],n,r);var l=e[a].minX,c=e[a].minY,u=e[a].maxX,h=e[a].maxY;l<s.minX&&(s.minX=l),c<s.minY&&(s.minY=c),u>s.maxX&&(s.maxX=u),h>s.maxY&&(s.maxY=h);}return s}function be(e,t,o,i){var r=t.geometry,n=t.type,s=[];if("Point"===n||"MultiPoint"===n)for(var a=0;a<r.length;a+=3)s.push(r[a]),s.push(r[a+1]),e.numPoints++,e.numSimplified++;else if("LineString"===n)ke(s,r,e,o,!1,!1);else if("MultiLineString"===n||"Polygon"===n)for(a=0;a<r.length;a++)ke(s,r[a],e,o,"Polygon"===n,0===a);else if("MultiPolygon"===n)for(var l=0;l<r.length;l++){var c=r[l];for(a=0;a<c.length;a++)ke(s,c[a],e,o,!0,0===a);}if(s.length){var u=t.tags||null;if("LineString"===n&&i.lineMetrics){for(var h in u={},t.tags)u[h]=t.tags[h];u.mapbox_clip_start=r.start/r.size,u.mapbox_clip_end=r.end/r.size;}var p={geometry:s,type:"Polygon"===n||"MultiPolygon"===n?3:"LineString"===n||"MultiLineString"===n?2:1,tags:u};null!==t.id&&(p.id=t.id),e.features.push(p);}}function ke(e,t,o,i,r,n){var s=i*i;if(i>0&&t.size<(r?s:i))o.numPoints+=t.length/3;else {for(var a=[],l=0;l<t.length;l+=3)(0===i||t[l+2]>s)&&(o.numSimplified++,a.push(t[l]),a.push(t[l+1])),o.numPoints++;r&&function(e,t){for(var o=0,i=0,r=e.length,n=r-2;i<r;n=i,i+=2)o+=(e[i]-e[n])*(e[i+1]+e[n+1]);if(o>0===t)for(i=0,r=e.length;i<r/2;i+=2){var s=e[i],a=e[i+1];e[i]=e[r-2-i],e[i+1]=e[r-1-i],e[r-2-i]=s,e[r-1-i]=a;}}(a,n),e.push(a);}}function _e(e,t){var o=(t=this.options=function(e,t){for(var o in t)e[o]=t[o];return e}(Object.create(this.options),t)).debug;if(o&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var i=function(e,t){var o=[];if("FeatureCollection"===e.type)for(var i=0;i<e.features.length;i++)ne(o,e.features[i],t,i);else ne(o,"Feature"===e.type?e:{geometry:e},t);return o}(e,t);this.tiles={},this.tileCoords=[],o&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),i=function(e,t){var o=t.buffer/t.extent,i=e,r=he(e,1,-1-o,o,0,-1,2,t),n=he(e,1,1-o,2+o,0,-1,2,t);return (r||n)&&(i=he(e,1,-o,1+o,0,-1,2,t)||[],r&&(i=xe(r,1).concat(i)),n&&(i=i.concat(xe(n,-1)))),i}(i,t),i.length&&this.splitTile(i,0,0,0),o&&(i.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)));}function Pe(e,t,o){return 32*((1<<e)*o+t)+e}function Te(e,t){const o=e.tileID.canonical;if(!this._geoJSONIndex)return t(null,null);const i=this._geoJSONIndex.getTile(o.z,o.x,o.y);if(!i)return t(null,null);const r=new g(i.features);let n=z(r);0===n.byteOffset&&n.byteLength===n.buffer.byteLength||(n=new Uint8Array(n)),t(null,{vectorTile:r,rawData:n.buffer});}_e.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},_e.prototype.splitTile=function(e,t,o,i,r,n,s){for(var a=[e,t,o,i],l=this.options,c=l.debug;a.length;){i=a.pop(),o=a.pop(),t=a.pop(),e=a.pop();var u=1<<t,h=Pe(t,o,i),p=this.tiles[h];if(!p&&(c>1&&console.time("creation"),p=this.tiles[h]=Me(e,t,o,i,l),this.tileCoords.push({z:t,x:o,y:i}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,o,i,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var f="z"+t;this.stats[f]=(this.stats[f]||0)+1,this.total++;}if(p.source=e,r){if(t===l.maxZoom||t===r)continue;var d=1<<r-t;if(o!==Math.floor(n/d)||i!==Math.floor(s/d))continue}else if(t===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue;if(p.source=null,0!==e.length){c>1&&console.time("clipping");var g,m,y,v,x,w,S=.5*l.buffer/l.extent,I=.5-S,M=.5+S,b=1+S;g=m=y=v=null,x=he(e,u,o-S,o+M,0,p.minX,p.maxX,l),w=he(e,u,o+I,o+b,0,p.minX,p.maxX,l),e=null,x&&(g=he(x,u,i-S,i+M,1,p.minY,p.maxY,l),m=he(x,u,i+I,i+b,1,p.minY,p.maxY,l),x=null),w&&(y=he(w,u,i-S,i+M,1,p.minY,p.maxY,l),v=he(w,u,i+I,i+b,1,p.minY,p.maxY,l),w=null),c>1&&console.timeEnd("clipping"),a.push(g||[],t+1,2*o,2*i),a.push(m||[],t+1,2*o,2*i+1),a.push(y||[],t+1,2*o+1,2*i),a.push(v||[],t+1,2*o+1,2*i+1);}}},_e.prototype.getTile=function(e,t,o){var i=this.options,r=i.extent,n=i.debug;if(e<0||e>24)return null;var s=1<<e,a=Pe(e,t=(t%s+s)%s,o);if(this.tiles[a])return Se(this.tiles[a],r);n>1&&console.log("drilling down to z%d-%d-%d",e,t,o);for(var l,c=e,u=t,h=o;!l&&c>0;)c--,u=Math.floor(u/2),h=Math.floor(h/2),l=this.tiles[Pe(c,u,h)];return l&&l.source?(n>1&&console.log("found parent tile z%d-%d-%d",c,u,h),n>1&&console.time("drilling down"),this.splitTile(l.source,c,u,h,e,t,o),n>1&&console.timeEnd("drilling down"),this.tiles[a]?Se(this.tiles[a],r):null):null};class Ce extends l{constructor(e,t,o,i){super(e,t,o,Te),i&&(this.loadGeoJSON=i);}loadData(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=t,this._pendingLoadDataParams=e,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData());}_loadData(){if(!this._pendingCallback||!this._pendingLoadDataParams)return;const t=this._pendingCallback,o=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;const i=!!(o&&o.request&&o.request.collectResourceTiming)&&new e.RequestPerformance(o.request);this.loadGeoJSON(o,((r,n)=>{if(r||!n)return t(r);if("object"!=typeof n)return t(new Error(`Input data given to '${o.source}' is not a valid GeoJSON object.`));{u(n,!0);try{if(o.filter){const t=e.createExpression(o.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===t.result)throw new Error(t.value.map((e=>`${e.key}: ${e.message}`)).join(", "));const i=n.features.filter((e=>t.value.evaluate({zoom:0},e)));n={type:"FeatureCollection",features:i};}this._geoJSONIndex=o.cluster?new V(function({superclusterOptions:t,clusterProperties:o}){if(!o||!t)return t;const i={},r={},n={accumulated:null,zoom:0},s={properties:null},a=Object.keys(o);for(const t of a){const[n,s]=o[t],a=e.createExpression(s),l=e.createExpression("string"==typeof n?[n,["accumulated"],["get",t]]:n);i[t]=a.value,r[t]=l.value;}return t.map=e=>{s.properties=e;const t={};for(const e of a)t[e]=i[e].evaluate(n,s);return t},t.reduce=(e,t)=>{s.properties=t;for(const t of a)n.accumulated=e[t],e[t]=r[t].evaluate(n,s);},t}(o)).load(n.features):function(e,t){return new _e(e,t)}(n,o.geojsonVtOptions);}catch(r){return t(r)}this.loaded={};const s={};if(i){const e=i.finish();e&&(s.resourceTiming={},s.resourceTiming[o.source]=JSON.parse(JSON.stringify(e)));}t(null,s);}}));}coalesce(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData());}reloadTile(e,t){const o=this.loaded;return o&&o[e.uid]?super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(t,o){if(t.request)e.getJSON(t.request,o);else {if("string"!=typeof t.data)return o(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));try{return o(null,JSON.parse(t.data))}catch(e){return o(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`))}}}removeSource(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t();}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId));}catch(e){t(e);}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId));}catch(e){t(e);}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset));}catch(e){t(e);}}}class De{constructor(t){this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:Ce},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t;},this.self.registerRTLTextPlugin=t=>{if(e.plugin.isParsed())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText;};}setReferrer(e,t){this.referrer=t;}setImages(e,t,o){this.availableImages[e]=t;for(const o in this.workerSources[e]){const i=this.workerSources[e][o];for(const e in i)i[e].availableImages=t;}o();}setLayers(e,t,o){this.getLayerIndex(e).replace(t),o();}updateLayers(e,t,o){this.getLayerIndex(e).update(t.layers,t.removedIds),o();}loadTile(e,t,o){this.getWorkerSource(e,t.type,t.source).loadTile(t,o);}loadDEMTile(e,t,o){this.getDEMWorkerSource(e,t.source).loadTile(t,o);}reloadTile(e,t,o){this.getWorkerSource(e,t.type,t.source).reloadTile(t,o);}abortTile(e,t,o){this.getWorkerSource(e,t.type,t.source).abortTile(t,o);}removeTile(e,t,o){this.getWorkerSource(e,t.type,t.source).removeTile(t,o);}removeDEMTile(e,t){this.getDEMWorkerSource(e,t.source).removeTile(t);}removeSource(e,t,o){if(!this.workerSources[e]||!this.workerSources[e][t.type]||!this.workerSources[e][t.type][t.source])return;const i=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==i.removeSource?i.removeSource(t,o):o();}loadWorkerSource(e,t,o){try{this.self.importScripts(t.url),o();}catch(e){o(e.toString());}}syncRTLPluginState(t,o,i){try{e.plugin.setState(o);const t=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=t){this.self.importScripts(t);const o=e.plugin.isParsed();i(o?void 0:new Error(`RTL Text Plugin failed to import scripts from ${t}`),o);}}catch(e){i(e.toString());}}getAvailableImages(e){let t=this.availableImages[e];return t||(t=[]),t}getLayerIndex(e){let t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new i),t}getWorkerSource(e,t,o){if(this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),!this.workerSources[e][t][o]){const i={send:(t,o,i)=>{this.actor.send(t,o,i,e);}};this.workerSources[e][t][o]=new this.workerSourceTypes[t](i,this.getLayerIndex(e),this.getAvailableImages(e));}return this.workerSources[e][t][o]}getDEMWorkerSource(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new c),this.demWorkerSources[e][t]}enforceCacheSizeLimit(t,o){e.enforceCacheSizeLimit(o);}}return "undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new De(self)),De}));define(["./shared"],(function(t){"use strict";var e=i;function i(t){return !function(t){return "undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return !1;var t,e,i=new Blob([""],{type:"text/javascript"}),o=URL.createObjectURL(i);try{e=new Worker(o),t=!0;}catch(e){t=!1;}return e&&e.terminate(),URL.revokeObjectURL(o),t}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var t=document.createElement("canvas");t.width=t.height=1;var e=t.getContext("2d");if(!e)return !1;var i=e.getImageData(0,0,1,1);return i&&i.width===t.width}()?(void 0===o[e=t&&t.failIfMajorPerformanceCaveat]&&(o[e]=function(t){var e,o=function(t){var e=document.createElement("canvas"),o=Object.create(i.webGLContextAttributes);return o.failIfMajorPerformanceCaveat=t,e.getContext("webgl",o)||e.getContext("experimental-webgl",o)}(t);if(!o)return !1;try{e=o.createShader(o.VERTEX_SHADER);}catch(t){return !1}return !(!e||o.isContextLost())&&(o.shaderSource(e,"void main() {}"),o.compileShader(e),!0===o.getShaderParameter(e,o.COMPILE_STATUS))}(e)),o[e]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var e;}(t)}var o={};function a(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return !1;for(let i=0;i<t.length;i++)if(!a(t[i],e[i]))return !1;return !0}if("object"==typeof t&&null!==t&&null!==e){if("object"!=typeof e)return !1;if(Object.keys(t).length!==Object.keys(e).length)return !1;for(const i in t)if(!a(t[i],e[i]))return !1;return !0}return t===e}i.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};class s{static testProp(t){if(!s.docStyle)return t[0];for(let e=0;e<t.length;e++)if(t[e]in s.docStyle)return t[e];return t[0]}static create(t,e,i){const o=window.document.createElement(t);return void 0!==e&&(o.className=e),i&&i.appendChild(o),o}static createNS(t,e){return window.document.createElementNS(t,e)}static disableDrag(){s.docStyle&&s.selectProp&&(s.userSelect=s.docStyle[s.selectProp],s.docStyle[s.selectProp]="none");}static enableDrag(){s.docStyle&&s.selectProp&&(s.docStyle[s.selectProp]=s.userSelect);}static setTransform(t,e){t.style[s.transformProp]=e;}static addEventListener(t,e,i,o={}){t.addEventListener(e,i,"passive"in o?o:o.capture);}static removeEventListener(t,e,i,o={}){t.removeEventListener(e,i,"passive"in o?o:o.capture);}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",s.suppressClickInternal,!0);}static suppressClick(){window.addEventListener("click",s.suppressClickInternal,!0),window.setTimeout((()=>{window.removeEventListener("click",s.suppressClickInternal,!0);}),0);}static mousePos(e,i){const o=e.getBoundingClientRect();return new t.pointGeometry(i.clientX-o.left-e.clientLeft,i.clientY-o.top-e.clientTop)}static touchPos(e,i){const o=e.getBoundingClientRect(),a=[];for(let s=0;s<i.length;s++)a.push(new t.pointGeometry(i[s].clientX-o.left-e.clientLeft,i[s].clientY-o.top-e.clientTop));return a}static mouseButton(t){return t.button}static remove(t){t.parentNode&&t.parentNode.removeChild(t);}}s.docStyle="undefined"!=typeof window&&window.document&&window.document.documentElement.style,s.selectProp=s.testProp(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]),s.transformProp=s.testProp(["transform","WebkitTransform"]);class r{constructor(t){this._transformRequestFn=t;}transformRequest(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}}normalizeSpriteURL(t,e,i){const o=function(t){const e=t.match(n);if(!e)throw new Error(`Unable to parse URL "${t}"`);return {protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}(t);return o.path+=`${e}${i}`,function(t){const e=t.params.length?`?${t.params.join("&")}`:"";return `${t.protocol}://${t.authority}${t.path}${e}`}(o)}setTransformRequest(t){this._transformRequestFn=t;}}const n=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function l(e){var i=new t.ARRAY_TYPE(3);return i[0]=e[0],i[1]=e[1],i[2]=e[2],i}var c,h=function(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t};c=new t.ARRAY_TYPE(3),t.ARRAY_TYPE!=Float32Array&&(c[0]=0,c[1]=0,c[2]=0);var u=function(t){var e=t[0],i=t[1];return e*e+i*i};!function(){var e=new t.ARRAY_TYPE(2);t.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0);}();class d{constructor(t,e,i,o){this.context=t,this.format=i,this.texture=t.gl.createTexture(),this.update(e,o);}update(e,i,o){const{width:a,height:s}=e,r=!(this.size&&this.size[0]===a&&this.size[1]===s||o),{context:n}=this,{gl:l}=n;if(this.useMipmap=Boolean(i&&i.useMipmap),l.bindTexture(l.TEXTURE_2D,this.texture),n.pixelStoreUnpackFlipY.set(!1),n.pixelStoreUnpack.set(1),n.pixelStoreUnpackPremultiplyAlpha.set(this.format===l.RGBA&&(!i||!1!==i.premultiply)),r)this.size=[a,s],e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageData||t.isImageBitmap(e)?l.texImage2D(l.TEXTURE_2D,0,this.format,this.format,l.UNSIGNED_BYTE,e):l.texImage2D(l.TEXTURE_2D,0,this.format,a,s,0,this.format,l.UNSIGNED_BYTE,e.data);else {const{x:i,y:r}=o||{x:0,y:0};e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageData||t.isImageBitmap(e)?l.texSubImage2D(l.TEXTURE_2D,0,i,r,l.RGBA,l.UNSIGNED_BYTE,e):l.texSubImage2D(l.TEXTURE_2D,0,i,r,a,s,l.RGBA,l.UNSIGNED_BYTE,e.data);}this.useMipmap&&this.isSizePowerOfTwo()&&l.generateMipmap(l.TEXTURE_2D);}bind(t,e,i){const{context:o}=this,{gl:a}=o;a.bindTexture(a.TEXTURE_2D,this.texture),i!==a.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(i=a.LINEAR),t!==this.filter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,t),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,i||t),this.filter=t),e!==this.wrap&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,e),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,e),this.wrap=e);}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null;}}function m(t){const{userImage:e}=t;return !!(e&&e.render&&e.render())&&(t.data.replace(new Uint8Array(e.data.buffer)),!0)}class _ extends t.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0;}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(const{ids:t,callback:e}of this.requestors)this._notify(t,e);this.requestors=[];}}getImage(t){return this.images[t]}addImage(t,e){this._validate(t,e)&&(this.images[t]=e);}_validate(e,i){let o=!0;return this._validateStretch(i.stretchX,i.data&&i.data.width)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "stretchX" value`))),o=!1),this._validateStretch(i.stretchY,i.data&&i.data.height)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "stretchY" value`))),o=!1),this._validateContent(i.content,i)||(this.fire(new t.ErrorEvent(new Error(`Image "${e}" has invalid "content" value`))),o=!1),o}_validateStretch(t,e){if(!t)return !0;let i=0;for(const o of t){if(o[0]<i||o[1]<o[0]||e<o[1])return !1;i=o[1];}return !0}_validateContent(t,e){return !(t&&(4!==t.length||t[0]<0||e.data.width<t[0]||t[1]<0||e.data.height<t[1]||t[2]<0||e.data.width<t[2]||t[3]<0||e.data.height<t[3]||t[2]<t[0]||t[3]<t[1]))}updateImage(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0;}removeImage(t){const e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&&e.userImage.onRemove&&e.userImage.onRemove();}listImages(){return Object.keys(this.images)}getImages(t,e){let i=!0;if(!this.isLoaded())for(const e of t)this.images[e]||(i=!1);this.isLoaded()||i?this._notify(t,e):this.requestors.push({ids:t,callback:e});}_notify(e,i){const o={};for(const i of e){this.images[i]||this.fire(new t.Event("styleimagemissing",{id:i}));const e=this.images[i];e?o[i]={data:e.data.clone(),pixelRatio:e.pixelRatio,sdf:e.sdf,version:e.version,stretchX:e.stretchX,stretchY:e.stretchY,content:e.content,hasRenderCallback:Boolean(e.userImage&&e.userImage.render)}:t.warnOnce(`Image "${i}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`);}i(null,o);}getPixelSize(){const{width:t,height:e}=this.atlasImage;return {width:t,height:e}}getPattern(e){const i=this.patterns[e],o=this.getImage(e);if(!o)return null;if(i&&i.position.version===o.version)return i.position;if(i)i.position.version=o.version;else {const i={w:o.data.width+2,h:o.data.height+2,x:0,y:0},a=new t.ImagePosition(i,o);this.patterns[e]={bin:i,position:a};}return this._updatePatternAtlas(),this.patterns[e].position}bind(t){const e=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new d(t,this.atlasImage,e.RGBA),this.atlasTexture.bind(e.LINEAR,e.CLAMP_TO_EDGE);}_updatePatternAtlas(){const e=[];for(const t in this.patterns)e.push(this.patterns[t].bin);const{w:i,h:o}=t.potpack(e),a=this.atlasImage;a.resize({width:i||1,height:o||1});for(const e in this.patterns){const{bin:i}=this.patterns[e],o=i.x+1,s=i.y+1,r=this.images[e].data,n=r.width,l=r.height;t.RGBAImage.copy(r,a,{x:0,y:0},{x:o,y:s},{width:n,height:l}),t.RGBAImage.copy(r,a,{x:0,y:l-1},{x:o,y:s-1},{width:n,height:1}),t.RGBAImage.copy(r,a,{x:0,y:0},{x:o,y:s+l},{width:n,height:1}),t.RGBAImage.copy(r,a,{x:n-1,y:0},{x:o-1,y:s},{width:1,height:l}),t.RGBAImage.copy(r,a,{x:0,y:0},{x:o+n,y:s},{width:1,height:l});}this.dirty=!0;}beginFrame(){this.callbackDispatchedThisFrame={};}dispatchRenderCallbacks(t){for(const e of t){if(this.callbackDispatchedThisFrame[e])continue;this.callbackDispatchedThisFrame[e]=!0;const t=this.images[e];m(t)&&this.updateImage(e,t);}}}const p=1e20;function f(t,e,i,o,a,s,r,n,l){for(let c=e;c<e+o;c++)g(t,i*s+c,s,a,r,n,l);for(let c=i;c<i+a;c++)g(t,c*s+e,1,o,r,n,l);}function g(t,e,i,o,a,s,r){s[0]=0,r[0]=-p,r[1]=p,a[0]=t[e];for(let n=1,l=0,c=0;n<o;n++){a[n]=t[e+n*i];const o=n*n;do{const t=s[l];c=(a[n]-a[t]+o-t*t)/(n-t)/2;}while(c<=r[l]&&--l>-1);l++,s[l]=n,r[l]=c,r[l+1]=p;}for(let n=0,l=0;n<o;n++){for(;r[l+1]<n;)l++;const o=s[l],c=n-o;t[e+n*i]=a[o]+c*c;}}class x{constructor(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={};}setURL(t){this.url=t;}getGlyphs(e,i){const o=[];for(const t in e)for(const i of e[t])o.push({stack:t,id:i});t.asyncAll(o,(({stack:t,id:e},i)=>{let o=this.entries[t];o||(o=this.entries[t]={glyphs:{},requests:{},ranges:{}});let a=o.glyphs[e];if(void 0!==a)return void i(null,{stack:t,id:e,glyph:a});if(a=this._tinySDF(o,t,e),a)return o.glyphs[e]=a,void i(null,{stack:t,id:e,glyph:a});const s=Math.floor(e/256);if(256*s>65535)return void i(new Error("glyphs > 65535 not supported"));if(o.ranges[s])return void i(null,{stack:t,id:e,glyph:a});let r=o.requests[s];r||(r=o.requests[s]=[],x.loadGlyphRange(t,s,this.url,this.requestManager,((t,e)=>{if(e){for(const t in e)this._doesCharSupportLocalGlyph(+t)||(o.glyphs[+t]=e[+t]);o.ranges[s]=!0;}for(const i of r)i(t,e);delete o.requests[s];}))),r.push(((o,a)=>{o?i(o):a&&i(null,{stack:t,id:e,glyph:a[e]||null});}));}),((t,e)=>{if(t)i(t);else if(e){const t={};for(const{stack:i,id:o,glyph:a}of e)(t[i]||(t[i]={}))[o]=a&&{id:a.id,bitmap:a.bitmap.clone(),metrics:a.metrics};i(null,t);}}));}_doesCharSupportLocalGlyph(e){return !!this.localIdeographFontFamily&&(t.unicodeBlockLookup["CJK Unified Ideographs"](e)||t.unicodeBlockLookup["Hangul Syllables"](e)||t.unicodeBlockLookup.Hiragana(e)||t.unicodeBlockLookup.Katakana(e))}_tinySDF(e,i,o){const a=this.localIdeographFontFamily;if(!a)return;if(!this._doesCharSupportLocalGlyph(o))return;let s=e.tinySDF;if(!s){let t="400";/bold/i.test(i)?t="900":/medium/i.test(i)?t="500":/light/i.test(i)&&(t="200"),s=e.tinySDF=new x.TinySDF({fontSize:24,buffer:3,radius:8,cutoff:.25,fontFamily:a,fontWeight:t});}const r=s.draw(String.fromCharCode(o));return {id:o,bitmap:new t.AlphaImage({width:r.width||30,height:r.height||30},r.data),metrics:{width:r.glyphWidth||24,height:r.glyphHeight||24,left:r.glyphLeft||0,top:r.glyphTop-27||-8,advance:r.glyphAdvance||24}}}}x.loadGlyphRange=function(e,i,o,a,s){const r=256*i,n=r+255,l=a.transformRequest(o.replace("{fontstack}",e).replace("{range}",`${r}-${n}`),t.ResourceType.Glyphs);t.getArrayBuffer(l,((e,i)=>{if(e)s(e);else if(i){const e={};for(const o of t.parseGlyphPBF(i))e[o.id]=o;s(null,e);}}));},x.TinySDF=class{constructor({fontSize:t=24,buffer:e=3,radius:i=8,cutoff:o=.25,fontFamily:a="sans-serif",fontWeight:s="normal",fontStyle:r="normal"}={}){this.buffer=e,this.cutoff=o,this.radius=i;const n=this.size=t+4*e,l=this._createCanvas(n),c=this.ctx=l.getContext("2d",{willReadFrequently:!0});c.font=`${r} ${s} ${t}px ${a}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(n*n),this.gridInner=new Float64Array(n*n),this.f=new Float64Array(n),this.z=new Float64Array(n+1),this.v=new Uint16Array(n);}_createCanvas(t){const e=document.createElement("canvas");return e.width=e.height=t,e}draw(t){const{width:e,actualBoundingBoxAscent:i,actualBoundingBoxDescent:o,actualBoundingBoxLeft:a,actualBoundingBoxRight:s}=this.ctx.measureText(t),r=Math.ceil(i),n=Math.min(this.size-this.buffer,Math.ceil(s-a)),l=Math.min(this.size-this.buffer,r+Math.ceil(o)),c=n+2*this.buffer,h=l+2*this.buffer,u=Math.max(c*h,0),d=new Uint8ClampedArray(u),m={data:d,width:c,height:h,glyphWidth:n,glyphHeight:l,glyphTop:r,glyphLeft:0,glyphAdvance:e};if(0===n||0===l)return m;const{ctx:_,buffer:g,gridInner:x,gridOuter:v}=this;_.clearRect(g,g,n,l),_.fillText(t,g,g+r);const y=_.getImageData(g,g,n,l);v.fill(p,0,u),x.fill(0,0,u);for(let t=0;t<l;t++)for(let e=0;e<n;e++){const i=y.data[4*(t*n+e)+3]/255;if(0===i)continue;const o=(t+g)*c+e+g;if(1===i)v[o]=0,x[o]=p;else {const t=.5-i;v[o]=t>0?t*t:0,x[o]=t<0?t*t:0;}}f(v,0,0,c,h,c,this.f,this.v,this.z),f(x,g,g,n,l,c,this.f,this.v,this.z);for(let t=0;t<u;t++){const e=Math.sqrt(v[t])-Math.sqrt(x[t]);d[t]=Math.round(255-255*(e/this.radius+this.cutoff));}return m}};const v=new t.Properties({anchor:new t.DataConstantProperty(t.spec.light.anchor),position:new class{constructor(){this.specification=t.spec.light.position;}possiblyEvaluate(e,i){return t.sphericalToCartesian(e.expression.evaluate(i))}interpolate(e,i,o){return {x:t.number(e.x,i.x,o),y:t.number(e.y,i.y,o),z:t.number(e.z,i.z,o)}}},color:new t.DataConstantProperty(t.spec.light.color),intensity:new t.DataConstantProperty(t.spec.light.intensity)}),y="-transition";class b extends t.Evented{constructor(e){super(),this._transitionable=new t.Transitionable(v),this.setLight(e),this._transitioning=this._transitionable.untransitioned();}getLight(){return this._transitionable.serialize()}setLight(e,i={}){if(!this._validate(t.validateLight,e,i))for(const t in e){const i=e[t];t.endsWith(y)?this._transitionable.setTransition(t.slice(0,-y.length),i):this._transitionable.setValue(t,i);}}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning);}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t);}_validate(e,i,o){return (!o||!1!==o.validate)&&t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:i,style:{glyphs:!0,sprite:!0},styleSpec:t.spec})))}}class w{constructor(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={};}getDash(t,e){const i=t.join(",")+String(e);return this.dashEntry[i]||(this.dashEntry[i]=this.addDash(t,e)),this.dashEntry[i]}getDashRanges(t,e,i){const o=[];let a=t.length%2==1?-t[t.length-1]*i:0,s=t[0]*i,r=!0;o.push({left:a,right:s,isDash:r,zeroLength:0===t[0]});let n=t[0];for(let e=1;e<t.length;e++){r=!r;const l=t[e];a=n*i,n+=l,s=n*i,o.push({left:a,right:s,isDash:r,zeroLength:0===l});}return o}addRoundDash(t,e,i){const o=e/2;for(let e=-i;e<=i;e++){const a=this.width*(this.nextRow+i+e);let s=0,r=t[s];for(let n=0;n<this.width;n++){n/r.right>1&&(r=t[++s]);const l=Math.abs(n-r.left),c=Math.abs(n-r.right),h=Math.min(l,c);let u;const d=e/i*(o+1);if(r.isDash){const t=o-Math.abs(d);u=Math.sqrt(h*h+t*t);}else u=o-Math.sqrt(h*h+d*d);this.data[a+n]=Math.max(0,Math.min(255,u+128));}}}addRegularDash(t){for(let e=t.length-1;e>=0;--e){const i=t[e],o=t[e+1];i.zeroLength?t.splice(e,1):o&&o.isDash===i.isDash&&(o.left=i.left,t.splice(e,1));}const e=t[0],i=t[t.length-1];e.isDash===i.isDash&&(e.left=i.left-this.width,i.right=e.right+this.width);const o=this.width*this.nextRow;let a=0,s=t[a];for(let e=0;e<this.width;e++){e/s.right>1&&(s=t[++a]);const i=Math.abs(e-s.left),r=Math.abs(e-s.right),n=Math.min(i,r);this.data[o+e]=Math.max(0,Math.min(255,(s.isDash?n:-n)+128));}}addDash(e,i){const o=i?7:0,a=2*o+1;if(this.nextRow+a>this.height)return t.warnOnce("LineAtlas out of space"),null;let s=0;for(let t=0;t<e.length;t++)s+=e[t];if(0!==s){const t=this.width/s,a=this.getDashRanges(e,this.width,t);i?this.addRoundDash(a,t,o):this.addRegularDash(a);}const r={y:(this.nextRow+o+.5)/this.height,height:2*o/this.height,width:s};return this.nextRow+=a,this.dirty=!0,r}bind(t){const e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data));}}class T{constructor(e,i){this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t.uniqueId();const o=this.workerPool.acquire(this.id);for(let t=0;t<o.length;t++){const e=new T.Actor(o[t],i,this.id);e.name=`Worker ${t}`,this.actors.push(e);}}broadcast(e,i,o){t.asyncAll(this.actors,((t,o)=>{t.send(e,i,o);}),o=o||function(){});}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach((t=>{t.remove();})),this.actors=[],this.workerPool.release(this.id);}}function E(e,i,o){const a=function(i,a){if(i)return o(i);if(a){const i=t.pick(t.extend(a,e),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);a.vector_layers&&(i.vectorLayers=a.vector_layers,i.vectorLayerIds=i.vectorLayers.map((t=>t.id))),o(null,i);}};return e.url?t.getJSON(i.transformRequest(e.url,t.ResourceType.Source),a):t.exported.frame((()=>a(null,e)))}T.Actor=t.Actor;class I{constructor(e,i,o){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=i||0,this.maxzoom=o||24;}validateBounds(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(e){const i=Math.pow(2,e.z),o=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*i),a=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*i),s=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*i),r=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*i);return e.x>=o&&e.x<s&&e.y>=a&&e.y<r}}class S extends t.Evented{constructor(e,i,o,a){if(super(),this.id=e,this.dispatcher=o,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(i,["url","scheme","tileSize","promoteId"])),this._options=t.extend({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(a);}load(){this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=E(this._options,this.map._requestManager,((e,i)=>{this._tileJSONRequest=null,this._loaded=!0,this.map.style.sourceCaches[this.id].clearTiles(),e?this.fire(new t.ErrorEvent(e)):i&&(t.extend(this,i),i.bounds&&(this.tileBounds=new I(i.bounds,this.minzoom,this.maxzoom)),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})));}));}loaded(){return this._loaded}hasTile(t){return !this.tileBounds||this.tileBounds.contains(t.canonical)}onAdd(t){this.map=t,this.load();}setSourceProperty(t){this._tileJSONRequest&&this._tileJSONRequest.cancel(),t(),this.load();}setTiles(t){return this.setSourceProperty((()=>{this._options.tiles=t;})),this}setUrl(t){return this.setSourceProperty((()=>{this.url=t,this._options.url=t;})),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null);}serialize(){return t.extend({},this._options)}loadTile(e,i){const o=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),a={request:this.map._requestManager.transformRequest(o,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function s(o,a){return delete e.request,e.aborted?i(null):o&&404!==o.status?i(o):(a&&a.resourceTiming&&(e.resourceTiming=a.resourceTiming),this.map._refreshExpiredTiles&&a&&e.setExpiryData(a),e.loadVectorData(a,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),i(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}a.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state?"loading"===e.state?e.reloadCallback=i:e.request=e.actor.send("reloadTile",a,s.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send("loadTile",a,s.bind(this)));}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.actor&&t.actor.send("abortTile",{uid:t.uid,type:this.type,source:this.id},void 0);}unloadTile(t){t.unloadVectorData(),t.actor&&t.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id},void 0);}hasTransition(){return !1}}class C extends t.Evented{constructor(e,i,o,a){super(),this.id=e,this.dispatcher=o,this.setEventedParent(a),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.extend({type:"raster"},i),t.extend(this,t.pick(i,["url","scheme","tileSize"]));}load(){this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=E(this._options,this.map._requestManager,((e,i)=>{this._tileJSONRequest=null,this._loaded=!0,e?this.fire(new t.ErrorEvent(e)):i&&(t.extend(this,i),i.bounds&&(this.tileBounds=new I(i.bounds,this.minzoom,this.maxzoom)),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})));}));}loaded(){return this._loaded}onAdd(t){this.map=t,this.load();}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null);}serialize(){return t.extend({},this._options)}hasTile(t){return !this.tileBounds||this.tileBounds.contains(t.canonical)}loadTile(e,i){const o=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.request=t.getImage(this.map._requestManager.transformRequest(o,t.ResourceType.Tile),((o,a,s)=>{if(delete e.request,e.aborted)e.state="unloaded",i(null);else if(o)e.state="errored",i(o);else if(a){this.map._refreshExpiredTiles&&e.setExpiryData(s);const o=this.map.painter.context,r=o.gl;e.texture=this.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new d(o,a,r.RGBA,{useMipmap:!0}),e.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state="loaded",t.cacheEntryPossiblyAdded(this.dispatcher),i(null);}}));}abortTile(t,e){t.request&&(t.request.cancel(),delete t.request),e();}unloadTile(t,e){t.texture&&this.map.painter.saveTileTexture(t.texture),e();}hasTransition(){return !1}}let P;class z extends C{constructor(e,i,o,a){super(e,i,o,a),this.type="raster-dem",this.maxzoom=22,this._options=t.extend({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox";}serialize(){return {type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}}loadTile(e,i){const o=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);function a(t,o){t&&(e.state="errored",i(t)),o&&(e.dem=o,e.needsHillshadePrepare=!0,e.state="loaded",i(null));}e.request=t.getImage(this.map._requestManager.transformRequest(o,t.ResourceType.Tile),function(o,s){if(delete e.request,e.aborted)e.state="unloaded",i(null);else if(o)e.state="errored",i(o);else if(s){this.map._refreshExpiredTiles&&e.setExpiryData(s),delete s.cacheControl,delete s.expires;const i=t.isImageBitmap(s)&&(null==P&&(P="undefined"!=typeof OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap),P)?s:t.exported.getImageData(s,1),o={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:i,encoding:this.encoding};e.actor&&"expired"!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send("loadDEMTile",o,a.bind(this)));}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID);}_getNeighboringTiles(e){const i=e.canonical,o=Math.pow(2,i.z),a=(i.x-1+o)%o,s=0===i.x?e.wrap-1:e.wrap,r=(i.x+1+o)%o,n=i.x+1===o?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,s,i.z,a,i.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,n,i.z,r,i.y).key]={backfilled:!1},i.y>0&&(l[new t.OverscaledTileID(e.overscaledZ,s,i.z,a,i.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,n,i.z,r,i.y-1).key]={backfilled:!1}),i.y+1<o&&(l[new t.OverscaledTileID(e.overscaledZ,s,i.z,a,i.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,n,i.z,r,i.y+1).key]={backfilled:!1}),l}unloadTile(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&&t.actor.send("removeDEMTile",{uid:t.uid,source:this.id});}}class D extends t.Evented{constructor(e,i,o,a){super(),this.id=e,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._pendingLoads=0,this.actor=o.getActor(),this.setEventedParent(a),this._data=i.data,this._options=t.extend({},i),this._collectResourceTiming=i.collectResourceTiming,void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId;const s=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:i.cluster||!1,geojsonVtOptions:{buffer:(void 0!==i.buffer?i.buffer:128)*s,tolerance:(void 0!==i.tolerance?i.tolerance:.375)*s,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1},superclusterOptions:{maxZoom:void 0!==i.clusterMaxZoom?i.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,i.clusterMinPoints||2),extent:t.EXTENT,radius:(i.clusterRadius||50)*s,log:!1,generateId:i.generateId||!1},clusterProperties:i.clusterProperties,filter:i.filter},i.workerOptions);}load(){this._updateWorkerData("metadata");}onAdd(t){this.map=t,this.load();}setData(t){return this._data=t,this._updateWorkerData("content"),this}getClusterExpansionZoom(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this}getClusterChildren(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this}getClusterLeaves(t,e,i,o){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:i},o),this}_updateWorkerData(e){const i=t.extend({},this.workerOptions),o=this._data;"string"==typeof o?(i.request=this.map._requestManager.transformRequest(t.exported.resolveURL(o),t.ResourceType.Source),i.request.collectResourceTiming=this._collectResourceTiming):i.data=JSON.stringify(o),this._pendingLoads++,this.fire(new t.Event("dataloading",{dataType:"source"})),this.actor.send(`${this.type}.loadData`,i,((o,a)=>{if(this._pendingLoads--,this._removed||a&&a.abandoned)return;let s=null;if(a&&a.resourceTiming&&a.resourceTiming[this.id]&&(s=a.resourceTiming[this.id].slice(0)),this.actor.send(`${this.type}.coalesce`,{source:i.source},null),o)return void this.fire(new t.ErrorEvent(o));const r={dataType:"source",sourceDataType:e};this._collectResourceTiming&&s&&s.length>0&&t.extend(r,{resourceTiming:s}),this.fire(new t.Event("data",r));}));}loaded(){return 0===this._pendingLoads}loadTile(t,e){const i=t.actor?"reloadTile":"loadTile";t.actor=this.actor;const o={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};t.request=this.actor.send(i,o,((o,a)=>(delete t.request,t.unloadVectorData(),t.aborted?e(null):o?e(o):(t.loadVectorData(a,this.map.painter,"reloadTile"===i),e(null)))));}abortTile(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0;}unloadTile(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id});}onRemove(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id});}serialize(){return t.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return !1}}var A=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class M extends t.Evented{constructor(t,e,i,o){super(),this.id=t,this.dispatcher=i,this.coordinates=e.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(o),this.options=e;}load(e,i){this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),((o,a)=>{this._loaded=!0,o?this.fire(new t.ErrorEvent(o)):a&&(this.image=a,e&&(this.coordinates=e),i&&i(),this._finishLoading());}));}loaded(){return this._loaded}updateImage(t){return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,(()=>{this.texture=null;})),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})));}onAdd(t){this.map=t,this.load();}setCoordinates(e){this.coordinates=e;const i=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){let i=1/0,o=1/0,a=-1/0,s=-1/0;for(const t of e)i=Math.min(i,t.x),o=Math.min(o,t.y),a=Math.max(a,t.x),s=Math.max(s,t.y);const r=Math.max(a-i,s-o),n=Math.max(0,Math.floor(-Math.log(r)/Math.LN2)),l=Math.pow(2,n);return new t.CanonicalTileID(n,Math.floor((i+a)/2*l),Math.floor((o+s)/2*l))}(i),this.minzoom=this.maxzoom=this.tileID.z;const o=i.map((t=>this.tileID.getTilePoint(t)._round()));return this._boundsArray=new t.RasterBoundsArray,this._boundsArray.emplaceBack(o[0].x,o[0].y,0,0),this._boundsArray.emplaceBack(o[1].x,o[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(o[3].x,o[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(o[2].x,o[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const e=this.map.painter.context,i=e.gl;this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,A.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new d(e,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));for(const t in this.tiles){const e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture);}}loadTile(t,e){this.tileID&&this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state="errored",e(null));}serialize(){return {type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return !1}}class L extends M{constructor(t,e,i,o){super(t,e,i,o),this.roundZoom=!0,this.type="video",this.options=e;}load(){this._loaded=!1;const e=this.options;this.urls=[];for(const i of e.urls)this.urls.push(this.map._requestManager.transformRequest(i,t.ResourceType.Source).url);t.getVideo(this.urls,((e,i)=>{this._loaded=!0,e?this.fire(new t.ErrorEvent(e)):i&&(this.video=i,this.video.loop=!0,this.video.addEventListener("playing",(()=>{this.map.triggerRepaint();})),this.map&&this.video.play(),this._finishLoading());}));}pause(){this.video&&this.video.pause();}play(){this.video&&this.video.play();}seek(e){if(this.video){const i=this.video.seekable;e<i.start(0)||e>i.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))):this.video.currentTime=e;}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)));}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const e=this.map.painter.context,i=e.gl;this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,A.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new d(e,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));for(const t in this.tiles){const e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture);}}serialize(){return {type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class R extends M{constructor(e,i,o,a){super(e,i,o,a),i.coordinates?Array.isArray(i.coordinates)&&4===i.coordinates.length&&!i.coordinates.some((t=>!Array.isArray(t)||2!==t.length||t.some((t=>"number"!=typeof t))))||this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${e}`,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${e}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(`sources.${e}`,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate;}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint();},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1);},this._finishLoading());}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play();}onRemove(){this.pause();}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const i=this.map.painter.context,o=i.gl;this.boundsBuffer||(this.boundsBuffer=i.createVertexBuffer(this._boundsArray,A.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new d(i,this.canvas,o.RGBA,{premultiply:!0});for(const t in this.tiles){const e=this.tiles[t];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture);}}serialize(){return {type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const t of [this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return !0;return !1}}const k={vector:S,raster:C,"raster-dem":z,geojson:D,video:L,image:M,canvas:R};function B(e,i){const o=t.create();return t.translate(o,o,[1,1,0]),t.scale(o,o,[.5*e.width,.5*e.height,1]),t.multiply(o,o,e.calculatePosMatrix(i.toUnwrapped()))}function F(t,e,i,o,a,s){const r=function(t,e,i){if(t)for(const o of t){const t=e[o];if(t&&t.source===i&&"fill-extrusion"===t.type)return !0}else for(const t in e){const o=e[t];if(o.source===i&&"fill-extrusion"===o.type)return !0}return !1}(a&&a.layers,e,t.id),n=s.maxPitchScaleFactor(),l=t.tilesIn(o,n,r);l.sort(O);const c=[];for(const o of l)c.push({wrappedTileID:o.tileID.wrapped().key,queryResults:o.tile.queryRenderedFeatures(e,i,t._state,o.queryGeometry,o.cameraQueryGeometry,o.scale,a,s,n,B(t.transform,o.tileID))});const h=function(t){const e={},i={};for(const o of t){const t=o.queryResults,a=o.wrappedTileID,s=i[a]=i[a]||{};for(const i in t){const o=t[i],a=s[i]=s[i]||{},r=e[i]=e[i]||[];for(const t of o)a[t.featureIndex]||(a[t.featureIndex]=!0,r.push(t));}}return e}(c);for(const e in h)h[e].forEach((e=>{const i=e.feature,o=t.getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=o;}));return h}function O(t,e){const i=t.tileID,o=e.tileID;return i.overscaledZ-o.overscaledZ||i.canonical.y-o.canonical.y||i.wrap-o.wrap||i.canonical.x-o.canonical.x}class U{constructor(e,i){this.tileID=e,this.uid=t.uniqueId(),this.uses=0,this.tileSize=i,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading";}registerFadeDuration(e){const i=e+this.timeAdded;i<t.exported.now()||this.fadeEndTime&&i<this.fadeEndTime||(this.fadeEndTime=i);}wasRequested(){return "errored"===this.state||"loaded"===this.state||"reloading"===this.state}loadVectorData(e,i,o){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",e){e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(t,e){const i={};if(!e)return i;for(const o of t){const t=o.layerIds.map((t=>e.getLayer(t))).filter(Boolean);if(0!==t.length){o.layers=t,o.stateDependentLayerIds&&(o.stateDependentLayers=o.stateDependentLayerIds.map((e=>t.filter((t=>t.id===e))[0])));for(const e of t)i[e.id]=o;}}return i}(e.buckets,i.style),this.hasSymbolBuckets=!1;for(const e in this.buckets){const i=this.buckets[e];if(i instanceof t.SymbolBucket){if(this.hasSymbolBuckets=!0,!o)break;i.justReloaded=!0;}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const e in this.buckets){const i=this.buckets[e];if(i instanceof t.SymbolBucket&&i.hasRTLText){this.hasRTLText=!0,t.lazyLoadRTLTextPlugin();break}}this.queryPadding=0;for(const t in this.buckets){const e=this.buckets[t];this.queryPadding=Math.max(this.queryPadding,i.style.getLayer(t).queryRadius(e));}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage);}else this.collisionBoxArray=new t.CollisionBoxArray;}unloadVectorData(){for(const t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded";}getBucket(t){return this.buckets[t.id]}upload(t){for(const e in this.buckets){const i=this.buckets[e];i.uploadPending()&&i.upload(t);}const e=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new d(t,this.imageAtlas.image,e.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new d(t,this.glyphAtlasImage,e.ALPHA),this.glyphAtlasImage=null);}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture);}queryRenderedFeatures(t,e,i,o,a,s,r,n,l,c){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:o,cameraQueryGeometry:a,scale:s,tileSize:this.tileSize,pixelPosMatrix:c,transform:n,params:r,queryPadding:this.queryPadding*l},t,e,i):{}}querySourceFeatures(e,i){const o=this.latestFeatureIndex;if(!o||!o.rawTileData)return;const a=o.loadVTLayers(),s=i?i.sourceLayer:"",r=a._geojsonTileLayer||a[s];if(!r)return;const n=t.createFilter(i&&i.filter),{z:l,x:c,y:h}=this.tileID.canonical,u={z:l,x:c,y:h};for(let i=0;i<r.length;i++){const a=r.feature(i);if(n.needGeometry){const e=t.toEvaluationFeature(a,!0);if(!n.filter(new t.EvaluationParameters(this.tileID.overscaledZ),e,this.tileID.canonical))continue}else if(!n.filter(new t.EvaluationParameters(this.tileID.overscaledZ),a))continue;const d=o.getId(a,s),m=new t.GeoJSONFeature(a,l,c,h,d);m.tile=u,e.push(m);}}hasData(){return "loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(e){const i=this.expirationTime;if(e.cacheControl){const i=t.parseCacheControl(e.cacheControl);i["max-age"]&&(this.expirationTime=Date.now()+1e3*i["max-age"]);}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){const t=Date.now();let e=!1;if(this.expirationTime>t)e=!1;else if(i)if(this.expirationTime<i)e=!0;else {const o=this.expirationTime-i;o?this.expirationTime=t+Math.max(o,3e4):e=!0;}else e=!0;e?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0;}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(t,e){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(t).length)return;const i=this.latestFeatureIndex.loadVTLayers();for(const o in this.buckets){if(!e.style.hasLayer(o))continue;const a=this.buckets[o],s=a.layers[0].sourceLayer||"_geojsonTileLayer",r=i[s],n=t[s];if(!r||!n||0===Object.keys(n).length)continue;a.update(n,r,this.imageAtlas&&this.imageAtlas.patternPositions||{});const l=e&&e.style&&e.style.getLayer(o);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(a)));}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return !this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<t.exported.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0;}setHoldDuration(e){this.symbolFadeHoldUntil=t.exported.now()+e;}setDependencies(t,e){const i={};for(const t of e)i[t]=!0;this.dependencies[t]=i;}hasDependency(t,e){for(const i of t){const t=this.dependencies[i];if(t)for(const i of e)if(t[i])return !0}return !1}}class N{constructor(t,e){this.max=t,this.onRemove=e,this.reset();}reset(){for(const t in this.data)for(const e of this.data[t])e.timeout&&clearTimeout(e.timeout),this.onRemove(e.value);return this.data={},this.order=[],this}add(t,e,i){const o=t.wrapped().key;void 0===this.data[o]&&(this.data[o]=[]);const a={value:e,timeout:void 0};if(void 0!==i&&(a.timeout=setTimeout((()=>{this.remove(t,a);}),i)),this.data[o].push(a),this.order.push(o),this.order.length>this.max){const t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t);}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){const e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value}getByKey(t){const e=this.data[t];return e?e[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,e){if(!this.has(t))return this;const i=t.wrapped().key,o=void 0===e?0:this.data[i].indexOf(e),a=this.data[i][o];return this.data[i].splice(o,1),a.timeout&&clearTimeout(a.timeout),0===this.data[i].length&&delete this.data[i],this.onRemove(a.value),this.order.splice(this.order.indexOf(i),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){const t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t);}return this}filter(t){const e=[];for(const i in this.data)for(const o of this.data[i])t(o.value)||e.push(o);for(const t of e)this.remove(t.value.tileID,t);}}class G{constructor(){this.state={},this.stateChanges={},this.deletedStates={};}updateState(e,i,o){const a=String(i);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][a]=this.stateChanges[e][a]||{},t.extend(this.stateChanges[e][a],o),null===this.deletedStates[e]){this.deletedStates[e]={};for(const t in this.state[e])t!==a&&(this.deletedStates[e][t]=null);}else if(this.deletedStates[e]&&null===this.deletedStates[e][a]){this.deletedStates[e][a]={};for(const t in this.state[e][a])o[t]||(this.deletedStates[e][a][t]=null);}else for(const t in o)this.deletedStates[e]&&this.deletedStates[e][a]&&null===this.deletedStates[e][a][t]&&delete this.deletedStates[e][a][t];}removeFeatureState(t,e,i){if(null===this.deletedStates[t])return;const o=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},i&&void 0!==e)null!==this.deletedStates[t][o]&&(this.deletedStates[t][o]=this.deletedStates[t][o]||{},this.deletedStates[t][o][i]=null);else if(void 0!==e)if(this.stateChanges[t]&&this.stateChanges[t][o])for(i in this.deletedStates[t][o]={},this.stateChanges[t][o])this.deletedStates[t][o][i]=null;else this.deletedStates[t][o]=null;else this.deletedStates[t]=null;}getState(e,i){const o=String(i),a=t.extend({},(this.state[e]||{})[o],(this.stateChanges[e]||{})[o]);if(null===this.deletedStates[e])return {};if(this.deletedStates[e]){const t=this.deletedStates[e][i];if(null===t)return {};for(const e in t)delete a[e];}return a}initializeTileState(t,e){t.setFeatureState(this.state,e);}coalesceChanges(e,i){const o={};for(const e in this.stateChanges){this.state[e]=this.state[e]||{};const i={};for(const o in this.stateChanges[e])this.state[e][o]||(this.state[e][o]={}),t.extend(this.state[e][o],this.stateChanges[e][o]),i[o]=this.state[e][o];o[e]=i;}for(const e in this.deletedStates){this.state[e]=this.state[e]||{};const i={};if(null===this.deletedStates[e])for(const t in this.state[e])i[t]={},this.state[e][t]={};else for(const t in this.deletedStates[e]){if(null===this.deletedStates[e][t])this.state[e][t]={};else for(const i of Object.keys(this.deletedStates[e][t]))delete this.state[e][t][i];i[t]=this.state[e][t];}o[e]=o[e]||{},t.extend(o[e],i);}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(o).length)for(const t in e)e[t].setFeatureState(o,i);}}class Z extends t.Evented{constructor(e,i,o){super(),this.id=e,this.dispatcher=o,this.on("data",(t=>{"source"===t.dataType&&"metadata"===t.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===t.dataType&&"content"===t.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform));})),this.on("dataloading",(()=>{this._sourceErrored=!1;})),this.on("error",(()=>{this._sourceErrored=this._source.loaded();})),this._source=function(e,i,o,a){const s=new k[i.type](e,i,o,a);if(s.id!==e)throw new Error(`Expected Source id to be ${e} instead of ${s.id}`);return t.bindAll(["load","abort","unload","serialize","prepare"],s),s}(e,i,o,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new G;}onAdd(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(t);}onRemove(t){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(t);}loaded(){if(this._sourceErrored)return !0;if(!this._sourceLoaded)return !1;if(!this._source.loaded())return !1;for(const t in this._tiles){const e=this._tiles[t];if("loaded"!==e.state&&"errored"!==e.state)return !1}return !0}getSource(){return this._source}pause(){this._paused=!0;}resume(){if(!this._paused)return;const t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform);}_loadTile(t,e){return this._source.loadTile(t,e)}_unloadTile(t){if(this._source.unloadTile)return this._source.unloadTile(t,(()=>{}))}_abortTile(e){this._source.abortTile&&this._source.abortTile(e,(()=>{})),this._source.fire(new t.Event("dataabort",{tile:e,coord:e.tileID,dataType:"source"}));}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const e in this._tiles){const i=this._tiles[e];i.upload(t),i.prepare(this.map.style.imageManager);}}getIds(){return Object.values(this._tiles).map((t=>t.tileID)).sort(q).map((t=>t.key))}getRenderableIds(e){const i=[];for(const t in this._tiles)this._isIdRenderable(t,e)&&i.push(this._tiles[t]);return e?i.sort(((e,i)=>{const o=e.tileID,a=i.tileID,s=new t.pointGeometry(o.canonical.x,o.canonical.y)._rotate(this.transform.angle),r=new t.pointGeometry(a.canonical.x,a.canonical.y)._rotate(this.transform.angle);return o.overscaledZ-a.overscaledZ||r.y-s.y||r.x-s.x})).map((t=>t.tileID.key)):i.map((t=>t.tileID)).sort(q).map((t=>t.key))}hasRenderableParent(t){const e=this.findLoadedParent(t,0);return !!e&&this._isIdRenderable(e.tileID.key)}_isIdRenderable(t,e){return this._tiles[t]&&this._tiles[t].hasData()&&!this._coveredTiles[t]&&(e||!this._tiles[t].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else {this._cache.reset();for(const t in this._tiles)"errored"!==this._tiles[t].state&&this._reloadTile(t,"reloading");}}_reloadTile(t,e){const i=this._tiles[t];i&&("loading"!==i.state&&(i.state=e),this._loadTile(i,this._tileLoaded.bind(this,i,t,e)));}_tileLoaded(e,i,o,a){if(a)return e.state="errored",void(404!==a.status?this._source.fire(new t.ErrorEvent(a,{tile:e})):this.update(this.transform));e.timeAdded=t.exported.now(),"expired"===o&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(i,e),"raster-dem"===this.getSource().type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),e.aborted||this._source.fire(new t.Event("data",{dataType:"source",tile:e,coord:e.tileID}));}_backfillDEM(t){const e=this.getRenderableIds();for(let o=0;o<e.length;o++){const a=e[o];if(t.neighboringTiles&&t.neighboringTiles[a]){const e=this.getTileByID(a);i(t,e),i(e,t);}}function i(t,e){t.needsHillshadePrepare=!0;let i=e.tileID.canonical.x-t.tileID.canonical.x;const o=e.tileID.canonical.y-t.tileID.canonical.y,a=Math.pow(2,t.tileID.canonical.z),s=e.tileID.key;0===i&&0===o||Math.abs(o)>1||(Math.abs(i)>1&&(1===Math.abs(i+a)?i+=a:1===Math.abs(i-a)&&(i-=a)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,i,o),t.neighboringTiles&&t.neighboringTiles[s]&&(t.neighboringTiles[s].backfilled=!0)));}}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._tiles[t]}_retainLoadedChildren(t,e,i,o){for(const a in this._tiles){let s=this._tiles[a];if(o[a]||!s.hasData()||s.tileID.overscaledZ<=e||s.tileID.overscaledZ>i)continue;let r=s.tileID;for(;s&&s.tileID.overscaledZ>e+1;){const t=s.tileID.scaledTo(s.tileID.overscaledZ-1);s=this._tiles[t.key],s&&s.hasData()&&(r=t);}let n=r;for(;n.overscaledZ>e;)if(n=n.scaledTo(n.overscaledZ-1),t[n.key]){o[r.key]=r;break}}}findLoadedParent(t,e){if(t.key in this._loadedParentTiles){const i=this._loadedParentTiles[t.key];return i&&i.tileID.overscaledZ>=e?i:null}for(let i=t.overscaledZ-1;i>=e;i--){const e=t.scaledTo(i),o=this._getLoadedTile(e);if(o)return o}}_getLoadedTile(t){const e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)}updateCacheSize(t){const e=Math.ceil(t.width/this._source.tileSize)+1,i=Math.ceil(t.height/this._source.tileSize)+1,o=Math.floor(e*i*5),a="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,o):o;this._cache.setMaxSize(a);}handleWrapJump(t){const e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){const t={};for(const i in this._tiles){const o=this._tiles[i];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),t[o.tileID.key]=o;}this._tiles=t;for(const t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(const t in this._tiles)this._setTileReloadTimer(t,this._tiles[t]);}}update(e){if(this.transform=e,!this._sourceLoaded||this._paused)return;let i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((e=>new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y))):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter((t=>this._source.hasTile(t))))):i=[];const o=e.coveringZoomLevel(this._source),a=Math.max(o-Z.maxOverzooming,this._source.minzoom),s=Math.max(o+Z.maxUnderzooming,this._source.minzoom),r=this._updateRetainedTiles(i,o);if(V(this._source.type)){const e={},i={},n=Object.keys(r);for(const o of n){const s=r[o],n=this._tiles[o];if(!n||n.fadeEndTime&&n.fadeEndTime<=t.exported.now())continue;const l=this.findLoadedParent(s,a);l&&(this._addTile(l.tileID),e[l.tileID.key]=l.tileID),i[o]=s;}this._retainLoadedChildren(i,o,s,r);for(const t in e)r[t]||(this._coveredTiles[t]=!0,r[t]=e[t]);}for(const t in r)this._tiles[t].clearFadeHold();const n=t.keysDifference(this._tiles,r);for(const t of n){const e=this._tiles[t];e.hasSymbolBuckets&&!e.holdingForFade()?e.setHoldDuration(this.map._fadeDuration):e.hasSymbolBuckets&&!e.symbolFadeFinished()||this._removeTile(t);}this._updateLoadedParentTileCache();}releaseSymbolFadeTiles(){for(const t in this._tiles)this._tiles[t].holdingForFade()&&this._removeTile(t);}_updateRetainedTiles(t,e){const i={},o={},a=Math.max(e-Z.maxOverzooming,this._source.minzoom),s=Math.max(e+Z.maxUnderzooming,this._source.minzoom),r={};for(const o of t){const t=this._addTile(o);i[o.key]=o,t.hasData()||e<this._source.maxzoom&&(r[o.key]=o);}this._retainLoadedChildren(r,e,s,i);for(const s of t){let t=this._tiles[s.key];if(t.hasData())continue;if(e+1>this._source.maxzoom){const t=s.children(this._source.maxzoom)[0],e=this.getTile(t);if(e&&e.hasData()){i[t.key]=t;continue}}else {const t=s.children(this._source.maxzoom);if(i[t[0].key]&&i[t[1].key]&&i[t[2].key]&&i[t[3].key])continue}let r=t.wasRequested();for(let e=s.overscaledZ-1;e>=a;--e){const a=s.scaledTo(e);if(o[a.key])break;if(o[a.key]=!0,t=this.getTile(a),!t&&r&&(t=this._addTile(a)),t&&(i[a.key]=a,r=t.wasRequested(),t.hasData()))break}}return i}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const t in this._tiles){const e=[];let i,o=this._tiles[t].tileID;for(;o.overscaledZ>0;){if(o.key in this._loadedParentTiles){i=this._loadedParentTiles[o.key];break}e.push(o.key);const t=o.scaledTo(o.overscaledZ-1);if(i=this._getLoadedTile(t),i)break;o=t;}for(const t of e)this._loadedParentTiles[t]=i;}}_addTile(e){let i=this._tiles[e.key];if(i)return i;i=this._cache.getAndRemove(e),i&&(this._setTileReloadTimer(e.key,i),i.tileID=e,this._state.initializeTileState(i,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,i)));const o=i;return i||(i=new U(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(i,this._tileLoaded.bind(this,i,e.key,i.state))),i.uses++,this._tiles[e.key]=i,o||this._source.fire(new t.Event("dataloading",{tile:i,coord:i.tileID,dataType:"source"})),i}_setTileReloadTimer(t,e){t in this._timers&&(clearTimeout(this._timers[t]),delete this._timers[t]);const i=e.getExpiryTimeout();i&&(this._timers[t]=setTimeout((()=>{this._reloadTile(t,"expired"),delete this._timers[t];}),i));}_removeTile(t){const e=this._tiles[t];e&&(e.uses--,delete this._tiles[t],this._timers[t]&&(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses>0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))));}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const t in this._tiles)this._removeTile(t);this._cache.reset();}tilesIn(e,i,o){const a=[],s=this.transform;if(!s)return a;const r=o?s.getCameraQueryGeometry(e):e,n=e.map((t=>s.pointCoordinate(t))),l=r.map((t=>s.pointCoordinate(t))),c=this.getIds();let h=1/0,u=1/0,d=-1/0,m=-1/0;for(const t of l)h=Math.min(h,t.x),u=Math.min(u,t.y),d=Math.max(d,t.x),m=Math.max(m,t.y);for(let e=0;e<c.length;e++){const o=this._tiles[c[e]];if(o.holdingForFade())continue;const r=o.tileID,_=Math.pow(2,s.zoom-o.tileID.overscaledZ),p=i*o.queryPadding*t.EXTENT/o.tileSize/_,f=[r.getTilePoint(new t.MercatorCoordinate(h,u)),r.getTilePoint(new t.MercatorCoordinate(d,m))];if(f[0].x-p<t.EXTENT&&f[0].y-p<t.EXTENT&&f[1].x+p>=0&&f[1].y+p>=0){const t=n.map((t=>r.getTilePoint(t))),e=l.map((t=>r.getTilePoint(t)));a.push({tile:o,tileID:r,queryGeometry:t,cameraQueryGeometry:e,scale:_});}}return a}getVisibleCoordinates(t){const e=this.getRenderableIds(t).map((t=>this._tiles[t].tileID));for(const t of e)t.posMatrix=this.transform.calculatePosMatrix(t.toUnwrapped());return e}hasTransition(){if(this._source.hasTransition())return !0;if(V(this._source.type))for(const e in this._tiles){const i=this._tiles[e];if(void 0!==i.fadeEndTime&&i.fadeEndTime>=t.exported.now())return !0}return !1}setFeatureState(t,e,i){this._state.updateState(t=t||"_geojsonTileLayer",e,i);}removeFeatureState(t,e,i){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,i);}getFeatureState(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)}setDependencies(t,e,i){const o=this._tiles[t];o&&o.setDependencies(e,i);}reloadTilesForDependencies(t,e){for(const i in this._tiles)this._tiles[i].hasDependency(t,e)&&this._reloadTile(i,"reloading");this._cache.filter((i=>!i.hasDependency(t,e)));}}function q(t,e){const i=Math.abs(2*t.wrap)-+(t.wrap<0),o=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||o-i||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function V(t){return "raster"===t||"image"===t||"video"===t}Z.maxOverzooming=10,Z.maxUnderzooming=3;const j="mapboxgl_preloaded_worker_pool";class ${constructor(){this.active={};}acquire(t){if(!this.workers)for(this.workers=[];this.workers.length<$.workerCount;)this.workers.push(new Worker(va.workerUrl));return this.active[t]=!0,this.workers.slice()}release(t){delete this.active[t],0===this.numActive()&&(this.workers.forEach((t=>{t.terminate();})),this.workers=null);}isPreloaded(){return !!this.active[j]}numActive(){return Object.keys(this.active).length}}const W=Math.floor(t.exported.hardwareConcurrency/2);let X;function H(){return X||(X=new $),X}function K(e,i){const o={};for(const t in e)"ref"!==t&&(o[t]=e[t]);return t.refProperties.forEach((t=>{t in i&&(o[t]=i[t]);})),o}function Y(t){t=t.slice();const e=Object.create(null);for(let i=0;i<t.length;i++)e[t[i].id]=t[i];for(let i=0;i<t.length;i++)"ref"in t[i]&&(t[i]=K(t[i],e[t[i].ref]));return t}$.workerCount=Math.max(Math.min(W,6),1);const J={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function Q(t,e,i){i.push({command:J.addSource,args:[t,e[t]]});}function tt(t,e,i){e.push({command:J.removeSource,args:[t]}),i[t]=!0;}function et(t,e,i,o){tt(t,i,o),Q(t,e,i);}function it(t,e,i){let o;for(o in t[i])if(Object.prototype.hasOwnProperty.call(t[i],o)&&"data"!==o&&!a(t[i][o],e[i][o]))return !1;for(o in e[i])if(Object.prototype.hasOwnProperty.call(e[i],o)&&"data"!==o&&!a(t[i][o],e[i][o]))return !1;return !0}function ot(t,e,i,o,s,r){let n;for(n in e=e||{},t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(a(t[n],e[n])||i.push({command:r,args:[o,n,e[n],s]}));for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&!Object.prototype.hasOwnProperty.call(t,n)&&(a(t[n],e[n])||i.push({command:r,args:[o,n,e[n],s]}));}function at(t){return t.id}function st(t,e){return t[e.id]=e,t}class rt{constructor(t,e){this.reset(t,e);}reset(t,e){this.points=t||[],this._distances=[0];for(let t=1;t<this.points.length;t++)this._distances[t]=this._distances[t-1]+this.points[t].dist(this.points[t-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding;}lerp(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);let i=1,o=this._distances[i];const a=e*this.paddedLength+this.padding;for(;o<a&&i<this._distances.length;)o=this._distances[++i];const s=i-1,r=this._distances[s],n=o-r,l=n>0?(a-r)/n:0;return this.points[s].mult(1-l).add(this.points[i].mult(l))}}function nt(t,e){let i=!0;return "always"===t||"never"!==t&&"never"!==e||(i=!1),i}class lt{constructor(t,e,i){const o=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(t/i),this.yCellCount=Math.ceil(e/i);for(let t=0;t<this.xCellCount*this.yCellCount;t++)o.push([]),a.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0;}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(t,e,i,o,a){this._forEachCell(e,i,o,a,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(i),this.bboxes.push(o),this.bboxes.push(a);}insertCircle(t,e,i,o){this._forEachCell(e-o,i-o,e+o,i+o,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(i),this.circles.push(o);}_insertBoxCell(t,e,i,o,a,s){this.boxCells[a].push(s);}_insertCircleCell(t,e,i,o,a,s){this.circleCells[a].push(s);}_query(t,e,i,o,a,s,r){if(i<0||t>this.width||o<0||e>this.height)return [];const n=[];if(t<=0&&e<=0&&this.width<=i&&this.height<=o){if(a)return [{key:null,x1:t,y1:e,x2:i,y2:o}];for(let t=0;t<this.boxKeys.length;t++)n.push({key:this.boxKeys[t],x1:this.bboxes[4*t],y1:this.bboxes[4*t+1],x2:this.bboxes[4*t+2],y2:this.bboxes[4*t+3]});for(let t=0;t<this.circleKeys.length;t++){const e=this.circles[3*t],i=this.circles[3*t+1],o=this.circles[3*t+2];n.push({key:this.circleKeys[t],x1:e-o,y1:i-o,x2:e+o,y2:i+o});}}else this._forEachCell(t,e,i,o,this._queryCell,n,{hitTest:a,overlapMode:s,seenUids:{box:{},circle:{}}},r);return n}query(t,e,i,o){return this._query(t,e,i,o,!1,null)}hitTest(t,e,i,o,a,s){return this._query(t,e,i,o,!0,a,s).length>0}hitTestCircle(t,e,i,o,a){const s=t-i,r=t+i,n=e-i,l=e+i;if(r<0||s>this.width||l<0||n>this.height)return !1;const c=[];return this._forEachCell(s,n,r,l,this._queryCellCircle,c,{hitTest:!0,overlapMode:o,circle:{x:t,y:e,radius:i},seenUids:{box:{},circle:{}}},a),c.length>0}_queryCell(t,e,i,o,a,s,r,n){const{seenUids:l,hitTest:c,overlapMode:h}=r,u=this.boxCells[a];if(null!==u){const a=this.bboxes;for(const r of u)if(!l.box[r]){l.box[r]=!0;const u=4*r,d=this.boxKeys[r];if(t<=a[u+2]&&e<=a[u+3]&&i>=a[u+0]&&o>=a[u+1]&&(!n||n(d))&&(!c||!nt(h,d.overlapMode))&&(s.push({key:d,x1:a[u],y1:a[u+1],x2:a[u+2],y2:a[u+3]}),c))return !0}}const d=this.circleCells[a];if(null!==d){const a=this.circles;for(const r of d)if(!l.circle[r]){l.circle[r]=!0;const u=3*r,d=this.circleKeys[r];if(this._circleAndRectCollide(a[u],a[u+1],a[u+2],t,e,i,o)&&(!n||n(d))&&(!c||!nt(h,d.overlapMode))){const t=a[u],e=a[u+1],i=a[u+2];if(s.push({key:d,x1:t-i,y1:e-i,x2:t+i,y2:e+i}),c)return !0}}}return !1}_queryCellCircle(t,e,i,o,a,s,r,n){const{circle:l,seenUids:c,overlapMode:h}=r,u=this.boxCells[a];if(null!==u){const t=this.bboxes;for(const e of u)if(!c.box[e]){c.box[e]=!0;const i=4*e,o=this.boxKeys[e];if(this._circleAndRectCollide(l.x,l.y,l.radius,t[i+0],t[i+1],t[i+2],t[i+3])&&(!n||n(o))&&!nt(h,o.overlapMode))return s.push(!0),!0}}const d=this.circleCells[a];if(null!==d){const t=this.circles;for(const e of d)if(!c.circle[e]){c.circle[e]=!0;const i=3*e,o=this.circleKeys[e];if(this._circlesCollide(t[i],t[i+1],t[i+2],l.x,l.y,l.radius)&&(!n||n(o))&&!nt(h,o.overlapMode))return s.push(!0),!0}}}_forEachCell(t,e,i,o,a,s,r,n){const l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),h=this._convertToXCellCoord(i),u=this._convertToYCellCoord(o);for(let d=l;d<=h;d++)for(let l=c;l<=u;l++)if(a.call(this,t,e,i,o,this.xCellCount*l+d,s,r,n))return}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,e,i,o,a,s){const r=o-t,n=a-e,l=i+s;return l*l>r*r+n*n}_circleAndRectCollide(t,e,i,o,a,s,r){const n=(s-o)/2,l=Math.abs(t-(o+n));if(l>n+i)return !1;const c=(r-a)/2,h=Math.abs(e-(a+c));if(h>c+i)return !1;if(l<=n||h<=c)return !0;const u=l-n,d=h-c;return u*u+d*d<=i*i}}function ct(e,i,o,a,s){const r=t.create();return i?(t.scale(r,r,[1/s,1/s,1]),o||t.rotateZ(r,r,a.angle)):t.multiply(r,a.labelPlaneMatrix,e),r}function ht(e,i,o,a,s){if(i){const i=t.clone(e);return t.scale(i,i,[s,s,1]),o||t.rotateZ(i,i,-a.angle),i}return a.glCoordMatrix}function ut(e,i){const o=[e.x,e.y,0,1];wt(o,o,i);const a=o[3];return {point:new t.pointGeometry(o[0]/a,o[1]/a),signedDistanceFromCamera:a}}function dt(t,e){return .5+t/e*.5}function mt(t,e){const i=t[0]/t[3],o=t[1]/t[3];return i>=-e[0]&&i<=e[0]&&o>=-e[1]&&o<=e[1]}function _t(e,i,o,a,s,r,n,l,c){const h=a?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(h,o.transform.zoom),d=[256/o.width*2+1,256/o.height*2+1],m=a?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;m.clear();const _=e.lineVertexArray,p=a?e.text.placedSymbolArray:e.icon.placedSymbolArray,f=o.transform.width/o.transform.height;let g=!1;for(let a=0;a<p.length;a++){const x=p.get(a);if(x.hidden||x.writingMode===t.WritingMode.vertical&&!g){bt(x.numGlyphs,m);continue}g=!1;const v=[x.anchorX,x.anchorY,0,1];if(t.transformMat4(v,v,i),!mt(v,d)){bt(x.numGlyphs,m);continue}const y=dt(o.transform.cameraToCenterDistance,v[3]),b=t.evaluateSizeForFeature(h,u,x),w=n?b/y:b*y,T=new t.pointGeometry(x.anchorX,x.anchorY),E=ut(T,s).point,I={},S=gt(x,w,!1,l,i,s,r,e.glyphOffsetArray,_,m,E,T,I,f,c);g=S.useVertical,(S.notEnoughRoom||g||S.needsFlipping&>(x,w,!0,l,i,s,r,e.glyphOffsetArray,_,m,E,T,I,f,c).notEnoughRoom)&&bt(x.numGlyphs,m);}a?e.text.dynamicLayoutVertexBuffer.updateData(m):e.icon.dynamicLayoutVertexBuffer.updateData(m);}function pt(t,e,i,o,a,s,r,n,l,c,h,u){const d=n.glyphStartIndex+n.numGlyphs,m=n.lineStartIndex,_=n.lineStartIndex+n.lineLength,p=e.getoffsetX(n.glyphStartIndex),f=e.getoffsetX(d-1),g=vt(t*p,i,o,a,s,r,n.segment,m,_,l,c,h,u);if(!g)return null;const x=vt(t*f,i,o,a,s,r,n.segment,m,_,l,c,h,u);return x?{first:g,last:x}:null}function ft(e,i,o,a){return e===t.WritingMode.horizontal&&Math.abs(o.y-i.y)>Math.abs(o.x-i.x)*a?{useVertical:!0}:(e===t.WritingMode.vertical?i.y<o.y:i.x>o.x)?{needsFlipping:!0}:null}function gt(e,i,o,a,s,r,n,l,c,h,u,d,m,_,p){const f=i/24,g=e.lineOffsetX*f,x=e.lineOffsetY*f;let v;if(e.numGlyphs>1){const t=e.glyphStartIndex+e.numGlyphs,i=e.lineStartIndex,s=e.lineStartIndex+e.lineLength,h=pt(f,l,g,x,o,u,d,e,c,r,m,p);if(!h)return {notEnoughRoom:!0};const y=ut(h.first.point,n).point,b=ut(h.last.point,n).point;if(a&&!o){const t=ft(e.writingMode,y,b,_);if(t)return t}v=[h.first];for(let a=e.glyphStartIndex+1;a<t-1;a++)v.push(vt(f*l.getoffsetX(a),g,x,o,u,d,e.segment,i,s,c,r,m,p));v.push(h.last);}else {if(a&&!o){const i=ut(d,s).point,o=e.lineStartIndex+e.segment+1,a=new t.pointGeometry(c.getx(o),c.gety(o)),r=ut(a,s),n=r.signedDistanceFromCamera>0?r.point:xt(d,a,i,1,s),l=ft(e.writingMode,i,n,_);if(l)return l}const i=vt(f*l.getoffsetX(e.glyphStartIndex),g,x,o,u,d,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,r,m,p);if(!i)return {notEnoughRoom:!0};v=[i];}for(const e of v)t.addDynamicAttributes(h,e.point,e.angle);return {}}function xt(t,e,i,o,a){const s=ut(t.add(t.sub(e)._unit()),a).point,r=i.sub(s);return i.add(r._mult(o/r.mag()))}function vt(e,i,o,a,s,r,n,l,c,h,u,d,m){const _=a?e-i:e+i;let p=_>0?1:-1,f=0;a&&(p*=-1,f=Math.PI),p<0&&(f+=Math.PI);let g=p>0?l+n:l+n+1,x=s,v=s,y=0,b=0;const w=Math.abs(_),T=[];for(;y+b<=w;){if(g+=p,g<l||g>=c)return null;if(v=x,T.push(x),x=d[g],void 0===x){const e=new t.pointGeometry(h.getx(g),h.gety(g)),i=ut(e,u);if(i.signedDistanceFromCamera>0)x=d[g]=i.point;else {const i=g-p;x=xt(0===y?r:new t.pointGeometry(h.getx(i),h.gety(i)),e,v,w-y+1,u);}}y+=b,b=v.dist(x);}const E=(w-y)/b,I=x.sub(v),S=I.mult(E)._add(v);S._add(I._unit()._perp()._mult(o*p));const C=f+Math.atan2(x.y-v.y,x.x-v.x);return T.push(S),{point:S,angle:m?C:0,path:T}}const yt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function bt(t,e){for(let i=0;i<t;i++){const t=e.length;e.resize(t+4),e.float32.set(yt,3*t);}}function wt(t,e,i){const o=e[0],a=e[1];return t[0]=i[0]*o+i[4]*a+i[12],t[1]=i[1]*o+i[5]*a+i[13],t[3]=i[3]*o+i[7]*a+i[15],t}const Tt=100;class Et{constructor(t,e=new lt(t.width+200,t.height+200,25),i=new lt(t.width+200,t.height+200,25)){this.transform=t,this.grid=e,this.ignoredGrid=i,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+Tt,this.screenBottomBoundary=t.height+Tt,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200;}placeCollisionBox(t,e,i,o,a){const s=this.projectAndGetPerspectiveRatio(o,t.anchorPointX,t.anchorPointY),r=i*s.perspectiveRatio,n=t.x1*r+s.point.x,l=t.y1*r+s.point.y,c=t.x2*r+s.point.x,h=t.y2*r+s.point.y;return !this.isInsideGrid(n,l,c,h)||"always"!==e&&this.grid.hitTest(n,l,c,h,e,a)?{box:[],offscreen:!1}:{box:[n,l,c,h],offscreen:this.isOffscreen(n,l,c,h)}}placeCollisionCircles(e,i,o,a,s,r,n,l,c,h,u,d,m){const _=[],p=new t.pointGeometry(i.anchorX,i.anchorY),f=ut(p,r),g=dt(this.transform.cameraToCenterDistance,f.signedDistanceFromCamera),x=(h?s/g:s*g)/t.ONE_EM,v=ut(p,n).point,y=pt(x,a,i.lineOffsetX*x,i.lineOffsetY*x,!1,v,p,i,o,n,{},!1);let b=!1,w=!1,T=!0;if(y){const i=.5*d*g+m,o=new t.pointGeometry(-100,-100),a=new t.pointGeometry(this.screenRightBoundary,this.screenBottomBoundary),s=new rt,r=y.first,n=y.last;let h=[];for(let t=r.path.length-1;t>=1;t--)h.push(r.path[t]);for(let t=1;t<n.path.length;t++)h.push(n.path[t]);const p=2.5*i;if(l){const t=h.map((t=>ut(t,l)));h=t.some((t=>t.signedDistanceFromCamera<=0))?[]:t.map((t=>t.point));}let f=[];if(h.length>0){const e=h[0].clone(),i=h[0].clone();for(let t=1;t<h.length;t++)e.x=Math.min(e.x,h[t].x),e.y=Math.min(e.y,h[t].y),i.x=Math.max(i.x,h[t].x),i.y=Math.max(i.y,h[t].y);f=e.x>=o.x&&i.x<=a.x&&e.y>=o.y&&i.y<=a.y?[h]:i.x<o.x||e.x>a.x||i.y<o.y||e.y>a.y?[]:t.clipLine([h],o.x,o.y,a.x,a.y);}for(const t of f){s.reset(t,.25*i);let o=0;o=s.length<=.5*i?1:Math.ceil(s.paddedLength/p)+1;for(let t=0;t<o;t++){const a=t/Math.max(o-1,1),r=s.lerp(a),n=r.x+Tt,l=r.y+Tt;_.push(n,l,i,0);const h=n-i,d=l-i,m=n+i,p=l+i;if(T=T&&this.isOffscreen(h,d,m,p),w=w||this.isInsideGrid(h,d,m,p),"always"!==e&&this.grid.hitTestCircle(n,l,i,e,u)&&(b=!0,!c))return {circles:[],offscreen:!1,collisionDetected:b}}}}return {circles:!c&&b||!w?[]:_,offscreen:T,collisionDetected:b}}queryRenderedSymbols(e){if(0===e.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return {};const i=[];let o=1/0,a=1/0,s=-1/0,r=-1/0;for(const n of e){const e=new t.pointGeometry(n.x+Tt,n.y+Tt);o=Math.min(o,e.x),a=Math.min(a,e.y),s=Math.max(s,e.x),r=Math.max(r,e.y),i.push(e);}const n=this.grid.query(o,a,s,r).concat(this.ignoredGrid.query(o,a,s,r)),l={},c={};for(const e of n){const o=e.key;if(void 0===l[o.bucketInstanceId]&&(l[o.bucketInstanceId]={}),l[o.bucketInstanceId][o.featureIndex])continue;const a=[new t.pointGeometry(e.x1,e.y1),new t.pointGeometry(e.x2,e.y1),new t.pointGeometry(e.x2,e.y2),new t.pointGeometry(e.x1,e.y2)];t.polygonIntersectsPolygon(i,a)&&(l[o.bucketInstanceId][o.featureIndex]=!0,void 0===c[o.bucketInstanceId]&&(c[o.bucketInstanceId]=[]),c[o.bucketInstanceId].push(o.featureIndex));}return c}insertCollisionBox(t,e,i,o,a,s){(i?this.ignoredGrid:this.grid).insert({bucketInstanceId:o,featureIndex:a,collisionGroupID:s,overlapMode:e},t[0],t[1],t[2],t[3]);}insertCollisionCircles(t,e,i,o,a,s){const r=i?this.ignoredGrid:this.grid,n={bucketInstanceId:o,featureIndex:a,collisionGroupID:s,overlapMode:e};for(let e=0;e<t.length;e+=4)r.insertCircle(n,t[e],t[e+1],t[e+2]);}projectAndGetPerspectiveRatio(e,i,o){const a=[i,o,0,1];return wt(a,a,e),{point:new t.pointGeometry((a[0]/a[3]+1)/2*this.transform.width+Tt,(-a[1]/a[3]+1)/2*this.transform.height+Tt),perspectiveRatio:.5+this.transform.cameraToCenterDistance/a[3]*.5}}isOffscreen(t,e,i,o){return i<Tt||t>=this.screenRightBoundary||o<Tt||e>this.screenBottomBoundary}isInsideGrid(t,e,i,o){return i>=0&&t<this.gridRightBoundary&&o>=0&&e<this.gridBottomBoundary}getViewportMatrix(){const e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e}}function It(e,i,o){return i*(t.EXTENT/(e.tileSize*Math.pow(2,o-e.tileID.overscaledZ)))}class St{constructor(t,e,i,o){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):o&&i?1:0,this.placed=i;}isHidden(){return 0===this.opacity&&!this.placed}}class Ct{constructor(t,e,i,o,a){this.text=new St(t?t.text:null,e,i,a),this.icon=new St(t?t.icon:null,e,o,a);}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Pt{constructor(t,e,i){this.text=t,this.icon=e,this.skipFade=i;}}class zt{constructor(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[];}}class Dt{constructor(t,e,i,o,a){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=i,this.bucketIndex=o,this.tileID=a;}}class At{constructor(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={};}get(t){if(this.crossSourceCollisions)return {ID:0,predicate:null};if(!this.collisionGroups[t]){const e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:t=>t.collisionGroupID===e};}return this.collisionGroups[t]}}function Mt(e,i,o,a,s){const{horizontalAlign:r,verticalAlign:n}=t.getAnchorAlignment(e),l=-(r-.5)*i,c=-(n-.5)*o,h=t.evaluateVariableOffset(e,a);return new t.pointGeometry(l+h[0]*s,c+h[1]*s)}function Lt(e,i,o,a,s,r){const{x1:n,x2:l,y1:c,y2:h,anchorPointX:u,anchorPointY:d}=e,m=new t.pointGeometry(i,o);return a&&m._rotate(s?r:-r),{x1:n+m.x,y1:c+m.y,x2:l+m.x,y2:h+m.y,anchorPointX:u,anchorPointY:d}}class Rt{constructor(t,e,i,o){this.transform=t.clone(),this.collisionIndex=new Et(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new At(i),this.collisionCircleArrays={},this.prevPlacement=o,o&&(o.prevPlacement=void 0),this.placedOrientations={};}getBucketParts(e,i,o,a){const s=o.getBucket(i),r=o.latestFeatureIndex;if(!s||!r||i.id!==s.layerIds[0])return;const n=o.collisionBoxArray,l=s.layers[0].layout,c=Math.pow(2,this.transform.zoom-o.tileID.overscaledZ),h=o.tileSize/t.EXTENT,u=this.transform.calculatePosMatrix(o.tileID.toUnwrapped()),d="map"===l.get("text-pitch-alignment"),m="map"===l.get("text-rotation-alignment"),_=It(o,1,this.transform.zoom),p=ct(u,d,m,this.transform,_);let f=null;if(d){const e=ht(u,d,m,this.transform,_);f=t.multiply([],this.transform.labelPlaneMatrix,e);}this.retainedQueryData[s.bucketInstanceId]=new Dt(s.bucketInstanceId,r,s.sourceLayerIndex,s.index,o.tileID);const g={bucket:s,layout:l,posMatrix:u,textLabelPlaneMatrix:p,labelToScreenMatrix:f,scale:c,textPixelRatio:h,holdingForFade:o.holdingForFade(),collisionBoxArray:n,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(s.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(s.sourceID)};if(a)for(const t of s.sortKeyRanges){const{sortKey:i,symbolInstanceStart:o,symbolInstanceEnd:a}=t;e.push({sortKey:i,symbolInstanceStart:o,symbolInstanceEnd:a,parameters:g});}else e.push({symbolInstanceStart:0,symbolInstanceEnd:s.symbolInstances.length,parameters:g});}attemptAnchorPlacement(t,e,i,o,a,s,r,n,l,c,h,u,d,m,_){const p=[u.textOffset0,u.textOffset1],f=Mt(t,i,o,p,a),g=this.collisionIndex.placeCollisionBox(Lt(e,f.x,f.y,s,r,this.transform.angle),h,n,l,c.predicate);if((!_||0!==this.collisionIndex.placeCollisionBox(Lt(_,f.x,f.y,s,r,this.transform.angle),h,n,l,c.predicate).box.length)&&g.box.length>0){let e;return this.prevPlacement&&this.prevPlacement.variableOffsets[u.crossTileID]&&this.prevPlacement.placements[u.crossTileID]&&this.prevPlacement.placements[u.crossTileID].text&&(e=this.prevPlacement.variableOffsets[u.crossTileID].anchor),this.variableOffsets[u.crossTileID]={textOffset:p,width:i,height:o,anchor:t,textBoxScale:a,prevAnchor:e},this.markUsedJustification(d,t,u,m),d.allowVerticalPlacement&&(this.markUsedOrientation(d,m,u),this.placedOrientations[u.crossTileID]=m),{shift:f,placedGlyphBoxes:g}}}placeLayerBucketPart(e,i,o){const{bucket:a,layout:s,posMatrix:r,textLabelPlaneMatrix:n,labelToScreenMatrix:l,textPixelRatio:c,holdingForFade:h,collisionBoxArray:u,partiallyEvaluatedTextSize:d,collisionGroup:m}=e.parameters,_=s.get("text-optional"),p=s.get("icon-optional"),f=t.getOverlapMode(s,"text-overlap","text-allow-overlap"),g="always"===f,x=t.getOverlapMode(s,"icon-overlap","icon-allow-overlap"),v="always"===x,y="map"===s.get("text-rotation-alignment"),b="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),T="viewport-y"===s.get("symbol-z-order"),E=g&&(v||!a.hasIconData()||p),I=v&&(g||!a.hasTextData()||_);!a.collisionArrays&&u&&a.deserializeCollisionBoxes(u);const S=(e,u)=>{if(i[e.crossTileID])return;if(h)return void(this.placements[e.crossTileID]=new Pt(!1,!1,!1));let v=!1,T=!1,S=!0,C=null,P={box:null,offscreen:null},z={box:null,offscreen:null},D=null,A=null,M=null,L=0,R=0,k=0;u.textFeatureIndex?L=u.textFeatureIndex:e.useRuntimeCollisionCircles&&(L=e.featureIndex),u.verticalTextFeatureIndex&&(R=u.verticalTextFeatureIndex);const B=u.textBox;if(B){const i=i=>{let o=t.WritingMode.horizontal;if(a.allowVerticalPlacement&&!i&&this.prevPlacement){const t=this.prevPlacement.placedOrientations[e.crossTileID];t&&(this.placedOrientations[e.crossTileID]=t,o=t,this.markUsedOrientation(a,o,e));}return o},o=(i,o)=>{if(a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&u.verticalTextBox){for(const e of a.writingModes)if(e===t.WritingMode.vertical?(P=o(),z=P):P=i(),P&&P.box&&P.box.length)break}else P=i();};if(s.get("text-variable-anchor")){let n=s.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[e.crossTileID]){const t=this.prevPlacement.variableOffsets[e.crossTileID];n.indexOf(t.anchor)>0&&(n=n.filter((e=>e!==t.anchor)),n.unshift(t.anchor));}const l=(t,i,o)=>{const s=t.x2-t.x1,l=t.y2-t.y1,h=e.textBoxScale,u=w&&"never"===x?i:null;let d={box:[],offscreen:!1};const _="never"!==f?2*n.length:n.length;for(let i=0;i<_;++i){const _=this.attemptAnchorPlacement(n[i%n.length],t,s,l,h,y,b,c,r,m,i>=n.length?f:"never",e,a,o,u);if(_&&(d=_.placedGlyphBoxes,d&&d.box&&d.box.length)){v=!0,C=_.shift;break}}return d};o((()=>l(B,u.iconBox,t.WritingMode.horizontal)),(()=>{const i=u.verticalTextBox;return a.allowVerticalPlacement&&!(P&&P.box&&P.box.length)&&e.numVerticalGlyphVertices>0&&i?l(i,u.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),P&&(v=P.box,S=P.offscreen);const h=i(P&&P.box);if(!v&&this.prevPlacement){const t=this.prevPlacement.variableOffsets[e.crossTileID];t&&(this.variableOffsets[e.crossTileID]=t,this.markUsedJustification(a,t.anchor,e,h));}}else {const s=(t,i)=>{const o=this.collisionIndex.placeCollisionBox(t,f,c,r,m.predicate);return o&&o.box&&o.box.length&&(this.markUsedOrientation(a,i,e),this.placedOrientations[e.crossTileID]=i),o};o((()=>s(B,t.WritingMode.horizontal)),(()=>{const i=u.verticalTextBox;return a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&i?s(i,t.WritingMode.vertical):{box:null,offscreen:null}})),i(P&&P.box&&P.box.length);}}if(D=P,v=D&&D.box&&D.box.length>0,S=D&&D.offscreen,e.useRuntimeCollisionCircles){const i=a.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),c=t.evaluateSizeForFeature(a.textSizeData,d,i),h=s.get("text-padding");A=this.collisionIndex.placeCollisionCircles(f,i,a.lineVertexArray,a.glyphOffsetArray,c,r,n,l,o,b,m.predicate,e.collisionCircleDiameter,h),v=g||A.circles.length>0&&!A.collisionDetected,S=S&&A.offscreen;}if(u.iconFeatureIndex&&(k=u.iconFeatureIndex),u.iconBox){const t=t=>{const e=w&&C?Lt(t,C.x,C.y,y,b,this.transform.angle):t;return this.collisionIndex.placeCollisionBox(e,x,c,r,m.predicate)};z&&z.box&&z.box.length&&u.verticalIconBox?(M=t(u.verticalIconBox),T=M.box.length>0):(M=t(u.iconBox),T=M.box.length>0),S=S&&M.offscreen;}const F=_||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,O=p||0===e.numIconVertices;if(F||O?O?F||(T=T&&v):v=T&&v:T=v=T&&v,v&&D&&D.box&&this.collisionIndex.insertCollisionBox(D.box,f,s.get("text-ignore-placement"),a.bucketInstanceId,z&&z.box&&R?R:L,m.ID),T&&M&&this.collisionIndex.insertCollisionBox(M.box,x,s.get("icon-ignore-placement"),a.bucketInstanceId,k,m.ID),A&&(v&&this.collisionIndex.insertCollisionCircles(A.circles,f,s.get("text-ignore-placement"),a.bucketInstanceId,L,m.ID),o)){const t=a.bucketInstanceId;let e=this.collisionCircleArrays[t];void 0===e&&(e=this.collisionCircleArrays[t]=new zt);for(let t=0;t<A.circles.length;t+=4)e.circles.push(A.circles[t+0]),e.circles.push(A.circles[t+1]),e.circles.push(A.circles[t+2]),e.circles.push(A.collisionDetected?1:0);}this.placements[e.crossTileID]=new Pt(v||E,T||I,S||a.justReloaded),i[e.crossTileID]=!0;};if(T){const t=a.getSortedSymbolIndexes(this.transform.angle);for(let e=t.length-1;e>=0;--e){const i=t[e];S(a.symbolInstances.get(i),a.collisionArrays[i]);}}else for(let t=e.symbolInstanceStart;t<e.symbolInstanceEnd;t++)S(a.symbolInstances.get(t),a.collisionArrays[t]);if(o&&a.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[a.bucketInstanceId];t.invert(e.invProjMatrix,r),e.viewportMatrix=this.collisionIndex.getViewportMatrix();}a.justReloaded=!1;}markUsedJustification(e,i,o,a){let s;s=a===t.WritingMode.vertical?o.verticalPlacedTextSymbolIndex:{left:o.leftJustifiedTextSymbolIndex,center:o.centerJustifiedTextSymbolIndex,right:o.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(i)];const r=[o.leftJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.rightJustifiedTextSymbolIndex,o.verticalPlacedTextSymbolIndex];for(const t of r)t>=0&&(e.text.placedSymbolArray.get(t).crossTileID=s>=0&&t!==s?0:o.crossTileID);}markUsedOrientation(e,i,o){const a=i===t.WritingMode.horizontal||i===t.WritingMode.horizontalOnly?i:0,s=i===t.WritingMode.vertical?i:0,r=[o.leftJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.rightJustifiedTextSymbolIndex];for(const t of r)e.text.placedSymbolArray.get(t).placedOrientation=a;o.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(o.verticalPlacedTextSymbolIndex).placedOrientation=s);}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;const e=this.prevPlacement;let i=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;const o=e?e.symbolFadeChange(t):1,a=e?e.opacities:{},s=e?e.variableOffsets:{},r=e?e.placedOrientations:{};for(const t in this.placements){const e=this.placements[t],s=a[t];s?(this.opacities[t]=new Ct(s,o,e.text,e.icon),i=i||e.text!==s.text.placed||e.icon!==s.icon.placed):(this.opacities[t]=new Ct(null,o,e.text,e.icon,e.skipFade),i=i||e.text||e.icon);}for(const t in a){const e=a[t];if(!this.opacities[t]){const a=new Ct(e,o,!1,!1);a.isHidden()||(this.opacities[t]=a,i=i||e.text.placed||e.icon.placed);}}for(const t in s)this.variableOffsets[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.variableOffsets[t]=s[t]);for(const t in r)this.placedOrientations[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.placedOrientations[t]=r[t]);i?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t);}updateLayerOpacities(t,e){const i={};for(const o of e){const e=o.getBucket(t);e&&o.latestFeatureIndex&&t.id===e.layerIds[0]&&this.updateBucketOpacities(e,i,o.collisionBoxArray);}}updateBucketOpacities(e,i,o){e.hasTextData()&&e.text.opacityVertexArray.clear(),e.hasIconData()&&e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();const a=e.layers[0].layout,s=new Ct(null,0,!1,!1,!0),r=a.get("text-allow-overlap"),n=a.get("icon-allow-overlap"),l=a.get("text-variable-anchor"),c="map"===a.get("text-rotation-alignment"),h="map"===a.get("text-pitch-alignment"),u="none"!==a.get("icon-text-fit"),d=new Ct(null,0,r&&(n||!e.hasIconData()||a.get("icon-optional")),n&&(r||!e.hasTextData()||a.get("text-optional")),!0);!e.collisionArrays&&o&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(o);const m=(t,e,i)=>{for(let o=0;o<e/4;o++)t.opacityVertexArray.emplaceBack(i);};for(let o=0;o<e.symbolInstances.length;o++){const a=e.symbolInstances.get(o),{numHorizontalGlyphVertices:r,numVerticalGlyphVertices:n,crossTileID:_}=a;let p=this.opacities[_];i[_]?p=s:p||(p=d,this.opacities[_]=p),i[_]=!0;const f=a.numIconVertices>0,g=this.placedOrientations[a.crossTileID],x=g===t.WritingMode.vertical,v=g===t.WritingMode.horizontal||g===t.WritingMode.horizontalOnly;if(r>0||n>0){const t=qt(p.text);m(e.text,r,x?Vt:t),m(e.text,n,v?Vt:t);const i=p.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((t=>{t>=0&&(e.text.placedSymbolArray.get(t).hidden=i||x?1:0);})),a.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=i||v?1:0);const o=this.variableOffsets[a.crossTileID];o&&this.markUsedJustification(e,o.anchor,a,g);const s=this.placedOrientations[a.crossTileID];s&&(this.markUsedJustification(e,"left",a,s),this.markUsedOrientation(e,s,a));}if(f){const t=qt(p.icon),i=!(u&&a.verticalPlacedIconSymbolIndex&&x);a.placedIconSymbolIndex>=0&&(m(e.icon,a.numIconVertices,i?t:Vt),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=p.icon.isHidden()),a.verticalPlacedIconSymbolIndex>=0&&(m(e.icon,a.numVerticalIconVertices,i?Vt:t),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=p.icon.isHidden());}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){const i=e.collisionArrays[o];if(i){let o=new t.pointGeometry(0,0);if(i.textBox||i.verticalTextBox){let t=!0;if(l){const e=this.variableOffsets[_];e?(o=Mt(e.anchor,e.width,e.height,e.textOffset,e.textBoxScale),c&&o._rotate(h?this.transform.angle:-this.transform.angle)):t=!1;}i.textBox&&kt(e.textCollisionBox.collisionVertexArray,p.text.placed,!t||x,o.x,o.y),i.verticalTextBox&&kt(e.textCollisionBox.collisionVertexArray,p.text.placed,!t||v,o.x,o.y);}const a=Boolean(!v&&i.verticalIconBox);i.iconBox&&kt(e.iconCollisionBox.collisionVertexArray,p.icon.placed,a,u?o.x:0,u?o.y:0),i.verticalIconBox&&kt(e.iconCollisionBox.collisionVertexArray,p.icon.placed,!a,u?o.x:0,u?o.y:0);}}}if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=t.invProjMatrix,e.placementViewportMatrix=t.viewportMatrix,e.collisionCircleArray=t.circles,delete this.collisionCircleArrays[e.bucketInstanceId];}}symbolFadeChange(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(t,e){const i=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*i>t}setStale(){this.stale=!0;}}function kt(t,e,i,o,a){t.emplaceBack(e?1:0,i?1:0,o||0,a||0),t.emplaceBack(e?1:0,i?1:0,o||0,a||0),t.emplaceBack(e?1:0,i?1:0,o||0,a||0),t.emplaceBack(e?1:0,i?1:0,o||0,a||0);}const Bt=Math.pow(2,25),Ft=Math.pow(2,24),Ot=Math.pow(2,17),Ut=Math.pow(2,16),Nt=Math.pow(2,9),Gt=Math.pow(2,8),Zt=Math.pow(2,1);function qt(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;const e=t.placed?1:0,i=Math.floor(127*t.opacity);return i*Bt+e*Ft+i*Ot+e*Ut+i*Nt+e*Gt+i*Zt+e}const Vt=0;class jt{constructor(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&!t.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[];}continuePlacement(t,e,i,o,a){const s=this._bucketParts;for(;this._currentTileIndex<t.length;)if(e.getBucketParts(s,o,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,a())return !0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,s.sort(((t,e)=>t.sortKey-e.sortKey)));this._currentPartIndex<s.length;)if(e.placeLayerBucketPart(s[this._currentPartIndex],this._seenCrossTileIDs,i),this._currentPartIndex++,a())return !0;return !1}}class $t{constructor(t,e,i,o,a,s,r){this.placement=new Rt(t,a,s,r),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=i,this._showCollisionBoxes=o,this._done=!1;}isDone(){return this._done}continuePlacement(e,i,o){const a=t.exported.now(),s=()=>{const e=t.exported.now()-a;return !this._forceFullPlacement&&e>2};for(;this._currentPlacementIndex>=0;){const t=i[e[this._currentPlacementIndex]],a=this.placement.collisionIndex.transform.zoom;if("symbol"===t.type&&(!t.minzoom||t.minzoom<=a)&&(!t.maxzoom||t.maxzoom>a)){if(this._inProgressLayer||(this._inProgressLayer=new jt(t)),this._inProgressLayer.continuePlacement(o[t.source],this.placement,this._showCollisionBoxes,t,s))return;delete this._inProgressLayer;}this._currentPlacementIndex--;}this._done=!0;}commit(t){return this.placement.commit(t),this.placement}}const Wt=512/t.EXTENT/2;class Xt{constructor(t,e,i){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=i;for(let i=0;i<e.length;i++){const o=e.get(i),a=o.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:o.crossTileID,coord:this.getScaledCoordinates(o,t)});}}getScaledCoordinates(e,i){const o=Wt/Math.pow(2,i.canonical.z-this.tileID.canonical.z);return {x:Math.floor((i.canonical.x*t.EXTENT+e.anchorX)*o),y:Math.floor((i.canonical.y*t.EXTENT+e.anchorY)*o)}}findMatches(t,e,i){const o=this.tileID.canonical.z<e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z);for(let a=0;a<t.length;a++){const s=t.get(a);if(s.crossTileID)continue;const r=this.indexedSymbolInstances[s.key];if(!r)continue;const n=this.getScaledCoordinates(s,e);for(const t of r)if(Math.abs(t.coord.x-n.x)<=o&&Math.abs(t.coord.y-n.y)<=o&&!i[t.crossTileID]){i[t.crossTileID]=!0,s.crossTileID=t.crossTileID;break}}}}class Ht{constructor(){this.maxCrossTileID=0;}generate(){return ++this.maxCrossTileID}}class Kt{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0;}handleWrapJump(t){const e=Math.round((t-this.lng)/360);if(0!==e)for(const t in this.indexes){const i=this.indexes[t],o={};for(const t in i){const a=i[t];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+e),o[a.tileID.key]=a;}this.indexes[t]=o;}this.lng=t;}addBucket(t,e,i){if(this.indexes[t.overscaledZ]&&this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return !1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key]);}for(let t=0;t<e.symbolInstances.length;t++)e.symbolInstances.get(t).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});const o=this.usedCrossTileIDs[t.overscaledZ];for(const i in this.indexes){const a=this.indexes[i];if(Number(i)>t.overscaledZ)for(const i in a){const s=a[i];s.tileID.isChildOf(t)&&s.findMatches(e.symbolInstances,t,o);}else {const s=a[t.scaledTo(Number(i)).key];s&&s.findMatches(e.symbolInstances,t,o);}}for(let t=0;t<e.symbolInstances.length;t++){const a=e.symbolInstances.get(t);a.crossTileID||(a.crossTileID=i.generate(),o[a.crossTileID]=!0);}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Xt(t,e.symbolInstances,e.bucketInstanceId),!0}removeBucketCrossTileIDs(t,e){for(const i in e.indexedSymbolInstances)for(const o of e.indexedSymbolInstances[i])delete this.usedCrossTileIDs[t][o.crossTileID];}removeStaleBuckets(t){let e=!1;for(const i in this.indexes){const o=this.indexes[i];for(const a in o)t[o[a].bucketInstanceId]||(this.removeBucketCrossTileIDs(i,o[a]),delete o[a],e=!0);}return e}}class Yt{constructor(){this.layerIndexes={},this.crossTileIDs=new Ht,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={};}addLayer(t,e,i){let o=this.layerIndexes[t.id];void 0===o&&(o=this.layerIndexes[t.id]=new Kt);let a=!1;const s={};o.handleWrapJump(i);for(const i of e){const e=i.getBucket(t);e&&t.id===e.layerIds[0]&&(e.bucketInstanceId||(e.bucketInstanceId=++this.maxBucketInstanceId),o.addBucket(i.tileID,e,this.crossTileIDs)&&(a=!0),s[e.bucketInstanceId]=!0);}return o.removeStaleBuckets(s)&&(a=!0),a}pruneUnusedLayers(t){const e={};t.forEach((t=>{e[t]=!0;}));for(const t in this.layerIndexes)e[t]||delete this.layerIndexes[t];}}const Jt=(e,i)=>t.emitValidationErrors(e,i&&i.filter((t=>"source.canvas"!==t.identifier))),Qt=t.pick(J,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),te=t.pick(J,["setCenter","setZoom","setBearing","setPitch"]),ee=function(){const e={},i=t.spec.$version;for(const o in t.spec.$root){const a=t.spec.$root[o];if(a.required){let t=null;t="version"===o?i:"array"===a.type?[]:{},null!=t&&(e[o]=t);}}return e}();class ie extends t.Evented{constructor(e,i={}){super(),this.map=e,this.dispatcher=new T(H(),this),this.imageManager=new _,this.imageManager.setEventedParent(this),this.glyphManager=new x(e._requestManager,i.localIdeographFontFamily),this.lineAtlas=new w(256,512),this.crossTileSymbolIndex=new Yt,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",t.getReferrer());const o=this;this._rtlTextPluginCallback=ie.registerForPluginStateChange((e=>{o.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},((e,i)=>{if(t.triggerPluginCompletionEvent(e),i&&i.every((t=>t)))for(const t in o.sourceCaches)o.sourceCaches[t].reload();}));})),this.on("data",(t=>{if("source"!==t.dataType||"metadata"!==t.sourceDataType)return;const e=this.sourceCaches[t.sourceId];if(!e)return;const i=e.getSource();if(i&&i.vectorLayerIds)for(const t in this._layers){const e=this._layers[t];e.source===i.id&&this._validateLayer(e);}}));}loadURL(e,i={}){this.fire(new t.Event("dataloading",{dataType:"style"}));const o="boolean"!=typeof i.validate||i.validate,a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,((e,i)=>{this._request=null,e?this.fire(new t.ErrorEvent(e)):i&&this._load(i,o);}));}loadJSON(e,i={}){this.fire(new t.Event("dataloading",{dataType:"style"})),this._request=t.exported.frame((()=>{this._request=null,this._load(e,!1!==i.validate);}));}loadEmpty(){this.fire(new t.Event("dataloading",{dataType:"style"})),this._load(ee,!1);}_load(e,i){if(i&&Jt(this,t.validateStyle(e)))return;this._loaded=!0,this.stylesheet=e;for(const t in e.sources)this.addSource(t,e.sources[t],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);const o=Y(this.stylesheet.layers);this._order=o.map((t=>t.id)),this._layers={},this._serializedLayers={};for(let e of o)e=t.createStyleLayer(e),e.setEventedParent(this,{layer:{id:e.id}}),this._layers[e.id]=e,this._serializedLayers[e.id]=e.serialize();this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new b(this.stylesheet.light),this.fire(new t.Event("data",{dataType:"style"})),this.fire(new t.Event("style.load"));}_loadSprite(e){this._spriteRequest=function(e,i,o,a){let s,r,n;const l=o>1?"@2x":"";let c=t.getJSON(i.transformRequest(i.normalizeSpriteURL(e,l,".json"),t.ResourceType.SpriteJSON),((t,e)=>{c=null,n||(n=t,s=e,u());})),h=t.getImage(i.transformRequest(i.normalizeSpriteURL(e,l,".png"),t.ResourceType.SpriteImage),((t,e)=>{h=null,n||(n=t,r=e,u());}));function u(){if(n)a(n);else if(s&&r){const e=t.exported.getImageData(r),i={};for(const o in s){const{width:a,height:r,x:n,y:l,sdf:c,pixelRatio:h,stretchX:u,stretchY:d,content:m}=s[o],_=new t.RGBAImage({width:a,height:r});t.RGBAImage.copy(e,_,{x:n,y:l},{x:0,y:0},{width:a,height:r}),i[o]={data:_,pixelRatio:h,sdf:c,stretchX:u,stretchY:d,content:m};}a(null,i);}}return {cancel(){c&&(c.cancel(),c=null),h&&(h.cancel(),h=null);}}}(e,this.map._requestManager,this.map.getPixelRatio(),((e,i)=>{if(this._spriteRequest=null,e)this.fire(new t.ErrorEvent(e));else if(i)for(const t in i)this.imageManager.addImage(t,i[t]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}));}));}_validateLayer(e){const i=this.sourceCaches[e.source];if(!i)return;const o=e.sourceLayer;if(!o)return;const a=i.getSource();("geojson"===a.type||a.vectorLayerIds&&-1===a.vectorLayerIds.indexOf(o))&&this.fire(new t.ErrorEvent(new Error(`Source layer "${o}" does not exist on source "${a.id}" as specified by style layer "${e.id}".`)));}loaded(){if(!this._loaded)return !1;if(Object.keys(this._updatedSources).length)return !1;for(const t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return !1;return !!this.imageManager.isLoaded()}_serializeLayers(t){const e=[];for(const i of t){const t=this._layers[i];"custom"!==t.type&&e.push(t.serialize());}return e}hasTransitions(){if(this.light&&this.light.hasTransition())return !0;for(const t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return !0;for(const t in this._layers)if(this._layers[t].hasTransition())return !0;return !1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(e){if(!this._loaded)return;const i=this._changed;if(this._changed){const t=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);(t.length||i.length)&&this._updateWorkerLayers(t,i);for(const t in this._updatedSources){const e=this._updatedSources[t];"reload"===e?this._reloadSource(t):"clear"===e&&this._clearSource(t);}this._updateTilesForChangedImages();for(const t in this._updatedPaintProps)this._layers[t].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates();}const o={};for(const t in this.sourceCaches){const e=this.sourceCaches[t];o[t]=e.used,e.used=!1;}for(const t of this._order){const i=this._layers[t];i.recalculate(e,this._availableImages),!i.isHidden(e.zoom)&&i.source&&(this.sourceCaches[i.source].used=!0);}for(const e in o){const i=this.sourceCaches[e];o[e]!==i.used&&i.fire(new t.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:e}));}this.light.recalculate(e),this.z=e.zoom,i&&this.fire(new t.Event("data",{dataType:"style"}));}_updateTilesForChangedImages(){const t=Object.keys(this._changedImages);if(t.length){for(const e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={};}}_updateWorkerLayers(t,e){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(t),removedIds:e});}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={};}setState(e){if(this._checkLoaded(),Jt(this,t.validateStyle(e)))return !1;(e=t.clone$1(e)).layers=Y(e.layers);const i=function(t,e){if(!t)return [{command:J.setStyle,args:[e]}];let i=[];try{if(!a(t.version,e.version))return [{command:J.setStyle,args:[e]}];a(t.center,e.center)||i.push({command:J.setCenter,args:[e.center]}),a(t.zoom,e.zoom)||i.push({command:J.setZoom,args:[e.zoom]}),a(t.bearing,e.bearing)||i.push({command:J.setBearing,args:[e.bearing]}),a(t.pitch,e.pitch)||i.push({command:J.setPitch,args:[e.pitch]}),a(t.sprite,e.sprite)||i.push({command:J.setSprite,args:[e.sprite]}),a(t.glyphs,e.glyphs)||i.push({command:J.setGlyphs,args:[e.glyphs]}),a(t.transition,e.transition)||i.push({command:J.setTransition,args:[e.transition]}),a(t.light,e.light)||i.push({command:J.setLight,args:[e.light]});const o={},s=[];!function(t,e,i,o){let s;for(s in e=e||{},t=t||{})Object.prototype.hasOwnProperty.call(t,s)&&(Object.prototype.hasOwnProperty.call(e,s)||tt(s,i,o));for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&(Object.prototype.hasOwnProperty.call(t,s)?a(t[s],e[s])||("geojson"===t[s].type&&"geojson"===e[s].type&&it(t,e,s)?i.push({command:J.setGeoJSONSourceData,args:[s,e[s].data]}):et(s,e,i,o)):Q(s,e,i));}(t.sources,e.sources,s,o);const r=[];t.layers&&t.layers.forEach((t=>{o[t.source]?i.push({command:J.removeLayer,args:[t.id]}):r.push(t);})),i=i.concat(s),function(t,e,i){e=e||[];const o=(t=t||[]).map(at),s=e.map(at),r=t.reduce(st,{}),n=e.reduce(st,{}),l=o.slice(),c=Object.create(null);let h,u,d,m,_,p,f;for(h=0,u=0;h<o.length;h++)d=o[h],Object.prototype.hasOwnProperty.call(n,d)?u++:(i.push({command:J.removeLayer,args:[d]}),l.splice(l.indexOf(d,u),1));for(h=0,u=0;h<s.length;h++)d=s[s.length-1-h],l[l.length-1-h]!==d&&(Object.prototype.hasOwnProperty.call(r,d)?(i.push({command:J.removeLayer,args:[d]}),l.splice(l.lastIndexOf(d,l.length-u),1)):u++,p=l[l.length-h],i.push({command:J.addLayer,args:[n[d],p]}),l.splice(l.length-h,0,d),c[d]=!0);for(h=0;h<s.length;h++)if(d=s[h],m=r[d],_=n[d],!c[d]&&!a(m,_))if(a(m.source,_.source)&&a(m["source-layer"],_["source-layer"])&&a(m.type,_.type)){for(f in ot(m.layout,_.layout,i,d,null,J.setLayoutProperty),ot(m.paint,_.paint,i,d,null,J.setPaintProperty),a(m.filter,_.filter)||i.push({command:J.setFilter,args:[d,_.filter]}),a(m.minzoom,_.minzoom)&&a(m.maxzoom,_.maxzoom)||i.push({command:J.setLayerZoomRange,args:[d,_.minzoom,_.maxzoom]}),m)Object.prototype.hasOwnProperty.call(m,f)&&"layout"!==f&&"paint"!==f&&"filter"!==f&&"metadata"!==f&&"minzoom"!==f&&"maxzoom"!==f&&(0===f.indexOf("paint.")?ot(m[f],_[f],i,d,f.slice(6),J.setPaintProperty):a(m[f],_[f])||i.push({command:J.setLayerProperty,args:[d,f,_[f]]}));for(f in _)Object.prototype.hasOwnProperty.call(_,f)&&!Object.prototype.hasOwnProperty.call(m,f)&&"layout"!==f&&"paint"!==f&&"filter"!==f&&"metadata"!==f&&"minzoom"!==f&&"maxzoom"!==f&&(0===f.indexOf("paint.")?ot(m[f],_[f],i,d,f.slice(6),J.setPaintProperty):a(m[f],_[f])||i.push({command:J.setLayerProperty,args:[d,f,_[f]]}));}else i.push({command:J.removeLayer,args:[d]}),p=l[l.lastIndexOf(d)+1],i.push({command:J.addLayer,args:[_,p]});}(r,e.layers,i);}catch(t){console.warn("Unable to compute style diff:",t),i=[{command:J.setStyle,args:[e]}];}return i}(this.serialize(),e).filter((t=>!(t.command in te)));if(0===i.length)return !1;const o=i.filter((t=>!(t.command in Qt)));if(o.length>0)throw new Error(`Unimplemented: ${o.map((t=>t.command)).join(", ")}.`);return i.forEach((t=>{"setTransition"!==t.command&&this[t.command].apply(this,t.args);})),this.stylesheet=e,!0}addImage(e,i){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(`An image named "${e}" already exists.`)));this.imageManager.addImage(e,i),this._afterImageUpdated(e);}updateImage(t,e){this.imageManager.updateImage(t,e);}getImage(t){return this.imageManager.getImage(t)}removeImage(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(`An image named "${e}" does not exist.`)));this.imageManager.removeImage(e),this._afterImageUpdated(e);}_afterImageUpdated(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}));}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(e,i,o={}){if(this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(`Source "${e}" already exists.`);if(!i.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(i).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(i.type)>=0&&this._validate(t.validateStyle.source,`sources.${e}`,i,null,o))return;this.map&&this.map._collectResourceTiming&&(i.collectResourceTiming=!0);const a=this.sourceCaches[e]=new Z(e,i,this.dispatcher);a.style=this,a.setEventedParent(this,(()=>({isSourceLoaded:this.loaded(),source:a.serialize(),sourceId:e}))),a.onAdd(this.map),this._changed=!0;}removeSource(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(const i in this._layers)if(this._layers[i].source===e)return this.fire(new t.ErrorEvent(new Error(`Source "${e}" cannot be removed while layer "${i}" is using it.`)));const i=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],i.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),i.setEventedParent(null),i.onRemove(this.map),this._changed=!0;}setGeoJSONSourceData(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0;}getSource(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()}addLayer(e,i,o={}){this._checkLoaded();const a=e.id;if(this.getLayer(a))return void this.fire(new t.ErrorEvent(new Error(`Layer "${a}" already exists on this map.`)));let s;if("custom"===e.type){if(Jt(this,t.validateCustomStyleLayer(e)))return;s=t.createStyleLayer(e);}else {if("object"==typeof e.source&&(this.addSource(a,e.source),e=t.clone$1(e),e=t.extend(e,{source:a})),this._validate(t.validateStyle.layer,`layers.${a}`,e,{arrayIndex:-1},o))return;s=t.createStyleLayer(e),this._validateLayer(s),s.setEventedParent(this,{layer:{id:a}}),this._serializedLayers[s.id]=s.serialize();}const r=i?this._order.indexOf(i):this._order.length;if(i&&-1===r)this.fire(new t.ErrorEvent(new Error(`Cannot add layer "${a}" before non-existing layer "${i}".`)));else {if(this._order.splice(r,0,a),this._layerOrderChanged=!0,this._layers[a]=s,this._removedLayers[a]&&s.source&&"custom"!==s.type){const t=this._removedLayers[a];delete this._removedLayers[a],t.type!==s.type?this._updatedSources[s.source]="clear":(this._updatedSources[s.source]="reload",this.sourceCaches[s.source].pause());}this._updateLayer(s),s.onAdd&&s.onAdd(this.map);}}moveLayer(e,i){if(this._checkLoaded(),this._changed=!0,!this._layers[e])return void this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));if(e===i)return;const o=this._order.indexOf(e);this._order.splice(o,1);const a=i?this._order.indexOf(i):this._order.length;i&&-1===a?this.fire(new t.ErrorEvent(new Error(`Cannot move layer "${e}" before non-existing layer "${i}".`))):(this._order.splice(a,0,e),this._layerOrderChanged=!0);}removeLayer(e){this._checkLoaded();const i=this._layers[e];if(!i)return void this.fire(new t.ErrorEvent(new Error(`Cannot remove non-existing layer "${e}".`)));i.setEventedParent(null);const o=this._order.indexOf(e);this._order.splice(o,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=i,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],i.onRemove&&i.onRemove(this.map);}getLayer(t){return this._layers[t]}hasLayer(t){return t in this._layers}setLayerZoomRange(e,i,o){this._checkLoaded();const a=this.getLayer(e);a?a.minzoom===i&&a.maxzoom===o||(null!=i&&(a.minzoom=i),null!=o&&(a.maxzoom=o),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error(`Cannot set the zoom range of non-existing layer "${e}".`)));}setFilter(e,i,o={}){this._checkLoaded();const s=this.getLayer(e);if(s){if(!a(s.filter,i))return null==i?(s.filter=void 0,void this._updateLayer(s)):void(this._validate(t.validateStyle.filter,`layers.${s.id}.filter`,i,null,o)||(s.filter=t.clone$1(i),this._updateLayer(s)))}else this.fire(new t.ErrorEvent(new Error(`Cannot filter non-existing layer "${e}".`)));}getFilter(e){return t.clone$1(this.getLayer(e).filter)}setLayoutProperty(e,i,o,s={}){this._checkLoaded();const r=this.getLayer(e);r?a(r.getLayoutProperty(i),o)||(r.setLayoutProperty(i,o,s),this._updateLayer(r)):this.fire(new t.ErrorEvent(new Error(`Cannot style non-existing layer "${e}".`)));}getLayoutProperty(e,i){const o=this.getLayer(e);if(o)return o.getLayoutProperty(i);this.fire(new t.ErrorEvent(new Error(`Cannot get style of non-existing layer "${e}".`)));}setPaintProperty(e,i,o,s={}){this._checkLoaded();const r=this.getLayer(e);r?a(r.getPaintProperty(i),o)||(r.setPaintProperty(i,o,s)&&this._updateLayer(r),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(`Cannot style non-existing layer "${e}".`)));}getPaintProperty(t,e){return this.getLayer(t).getPaintProperty(e)}setFeatureState(e,i){this._checkLoaded();const o=e.source,a=e.sourceLayer,s=this.sourceCaches[o];if(void 0===s)return void this.fire(new t.ErrorEvent(new Error(`The source '${o}' does not exist in the map's style.`)));const r=s.getSource().type;"geojson"===r&&a?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==r||a?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),s.setFeatureState(a,e.id,i)):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));}removeFeatureState(e,i){this._checkLoaded();const o=e.source,a=this.sourceCaches[o];if(void 0===a)return void this.fire(new t.ErrorEvent(new Error(`The source '${o}' does not exist in the map's style.`)));const s=a.getSource().type,r="vector"===s?e.sourceLayer:void 0;"vector"!==s||r?i&&"string"!=typeof e.id&&"number"!=typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):a.removeFeatureState(r,e.id,i):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));}getFeatureState(e){this._checkLoaded();const i=e.source,o=e.sourceLayer,a=this.sourceCaches[i];if(void 0!==a)return "vector"!==a.getSource().type||o?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),a.getFeatureState(o,e.id)):void this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new t.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)));}getTransition(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(t=>t.serialize())),layers:this._serializeLayers(this._order)},(t=>void 0!==t))}_updateLayer(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0;}_flattenAndSortRenderedFeatures(t){const e=t=>"fill-extrusion"===this._layers[t].type,i={},o=[];for(let a=this._order.length-1;a>=0;a--){const s=this._order[a];if(e(s)){i[s]=a;for(const e of t){const t=e[s];if(t)for(const e of t)o.push(e);}}}o.sort(((t,e)=>e.intersectionZ-t.intersectionZ));const a=[];for(let s=this._order.length-1;s>=0;s--){const r=this._order[s];if(e(r))for(let t=o.length-1;t>=0;t--){const e=o[t].feature;if(i[e.layer.id]<s)break;a.push(e),o.pop();}else for(const e of t){const t=e[r];if(t)for(const e of t)a.push(e.feature);}}return a}queryRenderedFeatures(e,i,o){i&&i.filter&&this._validate(t.validateStyle.filter,"queryRenderedFeatures.filter",i.filter,null,i);const a={};if(i&&i.layers){if(!Array.isArray(i.layers))return this.fire(new t.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const e of i.layers){const i=this._layers[e];if(!i)return this.fire(new t.ErrorEvent(new Error(`The layer '${e}' does not exist in the map's style and cannot be queried for features.`))),[];a[i.source]=!0;}}const s=[];i.availableImages=this._availableImages;for(const t in this.sourceCaches)i.layers&&!a[t]||s.push(F(this.sourceCaches[t],this._layers,this._serializedLayers,e,i,o));return this.placement&&s.push(function(t,e,i,o,a,s,r){const n={},l=s.queryRenderedSymbols(o),c=[];for(const t of Object.keys(l).map(Number))c.push(r[t]);c.sort(O);for(const i of c){const o=i.featureIndex.lookupSymbolFeatures(l[i.bucketInstanceId],e,i.bucketIndex,i.sourceLayerIndex,a.filter,a.layers,a.availableImages,t);for(const t in o){const e=n[t]=n[t]||[],a=o[t];a.sort(((t,e)=>{const o=i.featureSortOrder;if(o){const i=o.indexOf(t.featureIndex);return o.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(const t of a)e.push(t);}}for(const e in n)n[e].forEach((o=>{const a=o.feature,s=i[t[e].source].getFeatureState(a.layer["source-layer"],a.id);a.source=a.layer.source,a.layer["source-layer"]&&(a.sourceLayer=a.layer["source-layer"]),a.state=s;}));return n}(this._layers,this._serializedLayers,this.sourceCaches,e,i,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(s)}querySourceFeatures(e,i){i&&i.filter&&this._validate(t.validateStyle.filter,"querySourceFeatures.filter",i.filter,null,i);const o=this.sourceCaches[e];return o?function(t,e){const i=t.getRenderableIds().map((e=>t.getTileByID(e))),o=[],a={};for(let t=0;t<i.length;t++){const s=i[t],r=s.tileID.canonical.key;a[r]||(a[r]=!0,s.querySourceFeatures(o,e));}return o}(o,i):[]}addSourceType(t,e,i){return ie.getSourceType(t)?i(new Error(`A source type called "${t}" already exists.`)):(ie.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:t,url:e.workerSourceURL},i):i(null,null))}getLight(){return this.light.getLight()}setLight(e,i={}){this._checkLoaded();const o=this.light.getLight();let s=!1;for(const t in e)if(!a(e[t],o[t])){s=!0;break}if(!s)return;const r={now:t.exported.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,i),this.light.updateTransitions(r);}_validate(e,i,o,a,s={}){return (!s||!1!==s.validate)&&Jt(this,e.call(t.validateStyle,t.extend({key:i,style:this.serialize(),value:o,styleSpec:t.spec},a)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const t in this._layers)this._layers[t].setEventedParent(null);for(const t in this.sourceCaches){const e=this.sourceCaches[t];e.setEventedParent(null),e.onRemove(this.map);}this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove();}_clearSource(t){this.sourceCaches[t].clearTiles();}_reloadSource(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload();}_updateSources(t){for(const e in this.sourceCaches)this.sourceCaches[e].update(t);}_generateCollisionBoxes(){for(const t in this.sourceCaches)this._reloadSource(t);}_updatePlacement(e,i,o,a,s=!1){let r=!1,n=!1;const l={};for(const t of this._order){const i=this._layers[t];if("symbol"!==i.type)continue;if(!l[i.source]){const t=this.sourceCaches[i.source];l[i.source]=t.getRenderableIds(!0).map((e=>t.getTileByID(e))).sort(((t,e)=>e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)));}const o=this.crossTileSymbolIndex.addLayer(i,l[i.source],e.center.lng);r=r||o;}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((s=s||this._layerOrderChanged||0===o)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(t.exported.now(),e.zoom))&&(this.pauseablePlacement=new $t(e,this._order,s,i,o,a,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(t.exported.now()),n=!0),r&&this.pauseablePlacement.placement.setStale()),n||r)for(const t of this._order){const e=this._layers[t];"symbol"===e.type&&this.placement.updateLayerOpacities(e,l[e.source]);}return !this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.exported.now())}_releaseSymbolFadeTiles(){for(const t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles();}getImages(t,e,i){this.imageManager.getImages(e.icons,i),this._updateTilesForChangedImages();const o=this.sourceCaches[e.source];o&&o.setDependencies(e.tileID.key,e.type,e.icons);}getGlyphs(t,e,i){this.glyphManager.getGlyphs(e.stacks,i);}getResource(e,i,o){return t.makeRequest(i,o)}}ie.getSourceType=function(t){return k[t]},ie.setSourceType=function(t,e){k[t]=e;},ie.registerForPluginStateChange=t.registerForPluginStateChange;var oe=t.createLayout([{name:"a_pos",type:"Int16",components:2}]),ae={prelude:se("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),background:se("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:se("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:se("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),clippingMask:se("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:se("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),heatmapTexture:se("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:se("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:se("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:se("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),fill:se("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),fillOutline:se("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillOutlinePattern:se("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillPattern:se("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),fillExtrusion:se("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),fillExtrusionPattern:se("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),hillshadePrepare:se("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:se("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:se("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),lineGradient:se("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),linePattern:se("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),lineSDF:se("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),raster:se("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:se("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),symbolSDF:se("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),symbolTextAndIcon:se("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}")};function se(t,e){const i=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,o=e.match(/attribute ([\w]+) ([\w]+)/g),a=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),s=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),r=s?s.concat(a):a,n={};return {fragmentSource:t=t.replace(i,((t,e,i,o,a)=>(n[a]=!0,"define"===e?`\n#ifndef HAS_UNIFORM_u_${a}\nvarying ${i} ${o} ${a};\n#else\nuniform ${i} ${o} u_${a};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${a}\n ${i} ${o} ${a} = u_${a};\n#endif\n`))),vertexSource:e=e.replace(i,((t,e,i,o,a)=>{const s="float"===o?"vec2":"vec4",r=a.match(/color/)?"color":s;return n[a]?"define"===e?`\n#ifndef HAS_UNIFORM_u_${a}\nuniform lowp float u_${a}_t;\nattribute ${i} ${s} a_${a};\nvarying ${i} ${o} ${a};\n#else\nuniform ${i} ${o} u_${a};\n#endif\n`:"vec4"===r?`\n#ifndef HAS_UNIFORM_u_${a}\n ${a} = a_${a};\n#else\n ${i} ${o} ${a} = u_${a};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${a}\n ${a} = unpack_mix_${r}(a_${a}, u_${a}_t);\n#else\n ${i} ${o} ${a} = u_${a};\n#endif\n`:"define"===e?`\n#ifndef HAS_UNIFORM_u_${a}\nuniform lowp float u_${a}_t;\nattribute ${i} ${s} a_${a};\n#else\nuniform ${i} ${o} u_${a};\n#endif\n`:"vec4"===r?`\n#ifndef HAS_UNIFORM_u_${a}\n ${i} ${o} ${a} = a_${a};\n#else\n ${i} ${o} ${a} = u_${a};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${a}\n ${i} ${o} ${a} = unpack_mix_${r}(a_${a}, u_${a}_t);\n#else\n ${i} ${o} ${a} = u_${a};\n#endif\n`})),staticAttributes:o,staticUniforms:r}}class re{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null;}bind(t,e,i,o,a,s,r,n){this.context=t;let l=this.boundPaintVertexBuffers.length!==o.length;for(let t=0;!l&&t<o.length;t++)this.boundPaintVertexBuffers[t]!==o[t]&&(l=!0);t.extVertexArrayObject&&this.vao&&this.boundProgram===e&&this.boundLayoutVertexBuffer===i&&!l&&this.boundIndexBuffer===a&&this.boundVertexOffset===s&&this.boundDynamicVertexBuffer===r&&this.boundDynamicVertexBuffer2===n?(t.bindVertexArrayOES.set(this.vao),r&&r.bind(),a&&a.dynamicDraw&&a.bind(),n&&n.bind()):this.freshBind(e,i,o,a,s,r,n);}freshBind(t,e,i,o,a,s,r){let n;const l=t.numAttributes,c=this.context,h=c.gl;if(c.extVertexArrayObject)this.vao&&this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),n=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=i,this.boundIndexBuffer=o,this.boundVertexOffset=a,this.boundDynamicVertexBuffer=s,this.boundDynamicVertexBuffer2=r;else {n=c.currentNumAttributes||0;for(let t=l;t<n;t++)h.disableVertexAttribArray(t);}e.enableAttributes(h,t);for(const e of i)e.enableAttributes(h,t);s&&s.enableAttributes(h,t),r&&r.enableAttributes(h,t),e.bind(),e.setVertexAttribPointers(h,t,a);for(const e of i)e.bind(),e.setVertexAttribPointers(h,t,a);s&&(s.bind(),s.setVertexAttribPointers(h,t,a)),o&&o.bind(),r&&(r.bind(),r.setVertexAttribPointers(h,t,a)),c.currentNumAttributes=l;}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null);}}function ne(t){const e=[];for(let i=0;i<t.length;i++){if(null===t[i])continue;const o=t[i].split(" ");e.push(o.pop());}return e}class le{constructor(t,e,i,o,a,s){const r=t.gl;this.program=r.createProgram();const n=ne(i.staticAttributes),l=o?o.getBinderAttributes():[],c=n.concat(l),h=i.staticUniforms?ne(i.staticUniforms):[],u=o?o.getBinderUniforms():[],d=h.concat(u),m=[];for(const t of d)m.indexOf(t)<0&&m.push(t);const _=o?o.defines():[];s&&_.push("#define OVERDRAW_INSPECTOR;");const p=_.concat(ae.prelude.fragmentSource,i.fragmentSource).join("\n"),f=_.concat(ae.prelude.vertexSource,i.vertexSource).join("\n"),g=r.createShader(r.FRAGMENT_SHADER);if(r.isContextLost())return void(this.failedToCreate=!0);r.shaderSource(g,p),r.compileShader(g),r.attachShader(this.program,g);const x=r.createShader(r.VERTEX_SHADER);if(r.isContextLost())return void(this.failedToCreate=!0);r.shaderSource(x,f),r.compileShader(x),r.attachShader(this.program,x),this.attributes={};const v={};this.numAttributes=c.length;for(let t=0;t<this.numAttributes;t++)c[t]&&(r.bindAttribLocation(this.program,t,c[t]),this.attributes[c[t]]=t);r.linkProgram(this.program),r.deleteShader(x),r.deleteShader(g);for(let t=0;t<m.length;t++){const e=m[t];if(e&&!v[e]){const t=r.getUniformLocation(this.program,e);t&&(v[e]=t);}}this.fixedUniforms=a(t,v),this.binderUniforms=o?o.getUniforms(t,v):[];}draw(t,e,i,o,a,s,r,n,l,c,h,u,d,m,_,p){const f=t.gl;if(this.failedToCreate)return;t.program.set(this.program),t.setDepthMode(i),t.setStencilMode(o),t.setColorMode(a),t.setCullFace(s);for(const t in this.fixedUniforms)this.fixedUniforms[t].set(r[t]);m&&m.setUniforms(t,this.binderUniforms,u,{zoom:d});const g={[f.LINES]:2,[f.TRIANGLES]:3,[f.LINE_STRIP]:1}[e];for(const i of h.get()){const o=i.vaos||(i.vaos={});(o[n]||(o[n]=new re)).bind(t,this,l,m?m.getPaintVertexBuffers():[],c,i.vertexOffset,_,p),f.drawElements(e,i.primitiveLength*g,f.UNSIGNED_SHORT,i.primitiveOffset*g*2);}}}function ce(t,e,i){const o=1/It(i,1,e.transform.tileZoom),a=Math.pow(2,i.tileID.overscaledZ),s=i.tileSize*Math.pow(2,e.transform.tileZoom)/a,r=s*(i.tileID.canonical.x+i.tileID.wrap*a),n=s*i.tileID.canonical.y;return {u_image:0,u_texsize:i.imageAtlasTexture.size,u_scale:[o,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[r>>16,n>>16],u_pixel_coord_lower:[65535&r,65535&n]}}const he=(e,i,o,a)=>{const s=i.style.light,r=s.properties.get("position"),n=[r.x,r.y,r.z],l=function(){var e=new t.ARRAY_TYPE(9);return t.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}();"viewport"===s.properties.get("anchor")&&function(t,e){var i=Math.sin(e),o=Math.cos(e);t[0]=o,t[1]=i,t[2]=0,t[3]=-i,t[4]=o,t[5]=0,t[6]=0,t[7]=0,t[8]=1;}(l,-i.transform.angle),function(t,e,i){var o=e[0],a=e[1],s=e[2];t[0]=o*i[0]+a*i[3]+s*i[6],t[1]=o*i[1]+a*i[4]+s*i[7],t[2]=o*i[2]+a*i[5]+s*i[8];}(n,n,l);const c=s.properties.get("color");return {u_matrix:e,u_lightpos:n,u_lightintensity:s.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+o,u_opacity:a}},ue=(e,i,o,a,s,r,n)=>t.extend(he(e,i,o,a),ce(r,i,n),{u_height_factor:-Math.pow(2,s.overscaledZ)/n.tileSize/8}),de=t=>({u_matrix:t}),me=(e,i,o,a)=>t.extend(de(e),ce(o,i,a)),_e=(t,e)=>({u_matrix:t,u_world:e}),pe=(e,i,o,a,s)=>t.extend(me(e,i,o,a),{u_world:s}),fe=(t,e,i,o)=>{const a=t.transform;let s,r;if("map"===o.paint.get("circle-pitch-alignment")){const t=It(i,1,a.zoom);s=!0,r=[t,t];}else s=!1,r=a.pixelsToGLUnits;return {u_camera_to_center_distance:a.cameraToCenterDistance,u_scale_with_map:+("map"===o.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(e.posMatrix,i,o.paint.get("circle-translate"),o.paint.get("circle-translate-anchor")),u_pitch_with_map:+s,u_device_pixel_ratio:t.pixelRatio,u_extrude_scale:r}},ge=(t,e,i)=>{const o=It(i,1,e.zoom),a=Math.pow(2,e.zoom-i.tileID.overscaledZ),s=i.tileID.overscaleFactor();return {u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:o,u_extrude_scale:[e.pixelsToGLUnits[0]/(o*a),e.pixelsToGLUnits[1]/(o*a)],u_overscale_factor:s}},xe=(t,e,i=1)=>({u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:i}),ve=t=>({u_matrix:t}),ye=(t,e,i,o)=>({u_matrix:t,u_extrude_scale:It(e,1,i),u_intensity:o});function be(e,i){const o=Math.pow(2,i.canonical.z),a=i.canonical.y;return [new t.MercatorCoordinate(0,a/o).toLngLat().lat,new t.MercatorCoordinate(0,(a+1)/o).toLngLat().lat]}const we=(t,e,i)=>{const o=t.transform;return {u_matrix:Ce(t,e,i),u_ratio:1/It(e,1,o.zoom),u_device_pixel_ratio:t.pixelRatio,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},Te=(e,i,o,a)=>t.extend(we(e,i,o),{u_image:0,u_image_height:a}),Ee=(t,e,i,o)=>{const a=t.transform,s=Se(e,a);return {u_matrix:Ce(t,e,i),u_texsize:e.imageAtlasTexture.size,u_ratio:1/It(e,1,a.zoom),u_device_pixel_ratio:t.pixelRatio,u_image:0,u_scale:[s,o.fromScale,o.toScale],u_fade:o.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Ie=(e,i,o,a,s)=>{const r=e.lineAtlas,n=Se(i,e.transform),l="round"===o.layout.get("line-cap"),c=r.getDash(a.from,l),h=r.getDash(a.to,l),u=c.width*s.fromScale,d=h.width*s.toScale;return t.extend(we(e,i,o),{u_patternscale_a:[n/u,-c.height/2],u_patternscale_b:[n/d,-h.height/2],u_sdfgamma:r.width/(256*Math.min(u,d)*e.pixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:h.y,u_mix:s.t})};function Se(t,e){return 1/It(t,1,e.tileZoom)}function Ce(t,e,i){return t.translatePosMatrix(e.tileID.posMatrix,e,i.paint.get("line-translate"),i.paint.get("line-translate-anchor"))}const Pe=(t,e,i,o,a)=>{return {u_matrix:t,u_tl_parent:e,u_scale_parent:i,u_buffer_scale:1,u_fade_t:o.mix,u_opacity:o.opacity*a.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:a.paint.get("raster-brightness-min"),u_brightness_high:a.paint.get("raster-brightness-max"),u_saturation_factor:(r=a.paint.get("raster-saturation"),r>0?1-1/(1.001-r):-r),u_contrast_factor:(s=a.paint.get("raster-contrast"),s>0?1/(1-s):1+s),u_spin_weights:ze(a.paint.get("raster-hue-rotate"))};var s,r;};function ze(t){t*=Math.PI/180;const e=Math.sin(t),i=Math.cos(t);return [(2*i+1)/3,(-Math.sqrt(3)*e-i+1)/3,(Math.sqrt(3)*e-i+1)/3]}const De=(t,e,i,o,a,s,r,n,l,c)=>{const h=a.transform;return {u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:h.cameraToCenterDistance,u_pitch:h.pitch/360*2*Math.PI,u_rotate_symbol:+i,u_aspect_ratio:h.width/h.height,u_fade_change:a.options.fadeDuration?a.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:r,u_coord_matrix:n,u_is_text:+l,u_pitch_with_map:+o,u_texsize:c,u_texture:0}},Ae=(e,i,o,a,s,r,n,l,c,h,u)=>{const d=s.transform;return t.extend(De(e,i,o,a,s,r,n,l,c,h),{u_gamma_scale:a?Math.cos(d._pitch)*d.cameraToCenterDistance:1,u_device_pixel_ratio:s.pixelRatio,u_is_halo:+u})},Me=(e,i,o,a,s,r,n,l,c,h)=>t.extend(Ae(e,i,o,a,s,r,n,l,!0,c,!0),{u_texsize_icon:h,u_texture_icon:1}),Le=(t,e,i)=>({u_matrix:t,u_opacity:e,u_color:i}),Re=(e,i,o,a,s,r)=>t.extend(function(t,e,i,o){const a=i.imageManager.getPattern(t.from.toString()),s=i.imageManager.getPattern(t.to.toString()),{width:r,height:n}=i.imageManager.getPixelSize(),l=Math.pow(2,o.tileID.overscaledZ),c=o.tileSize*Math.pow(2,i.transform.tileZoom)/l,h=c*(o.tileID.canonical.x+o.tileID.wrap*l),u=c*o.tileID.canonical.y;return {u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:s.tl,u_pattern_br_b:s.br,u_texsize:[r,n],u_mix:e.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:s.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/It(o,1,i.transform.tileZoom),u_pixel_coord_upper:[h>>16,u>>16],u_pixel_coord_lower:[65535&h,65535&u]}}(a,r,o,s),{u_matrix:e,u_opacity:i}),ke={fillExtrusion:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_lightpos:new t.Uniform3f(e,i.u_lightpos),u_lightintensity:new t.Uniform1f(e,i.u_lightintensity),u_lightcolor:new t.Uniform3f(e,i.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,i.u_vertical_gradient),u_opacity:new t.Uniform1f(e,i.u_opacity)}),fillExtrusionPattern:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_lightpos:new t.Uniform3f(e,i.u_lightpos),u_lightintensity:new t.Uniform1f(e,i.u_lightintensity),u_lightcolor:new t.Uniform3f(e,i.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,i.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,i.u_height_factor),u_image:new t.Uniform1i(e,i.u_image),u_texsize:new t.Uniform2f(e,i.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade),u_opacity:new t.Uniform1f(e,i.u_opacity)}),fill:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}),fillPattern:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_image:new t.Uniform1i(e,i.u_image),u_texsize:new t.Uniform2f(e,i.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade)}),fillOutline:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_world:new t.Uniform2f(e,i.u_world)}),fillOutlinePattern:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_world:new t.Uniform2f(e,i.u_world),u_image:new t.Uniform1i(e,i.u_image),u_texsize:new t.Uniform2f(e,i.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade)}),circle:(e,i)=>({u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,i.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,i.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}),collisionBox:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,i.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,i.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,i.u_overscale_factor)}),collisionCircle:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,i.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,i.u_viewport_size)}),debug:(e,i)=>({u_color:new t.UniformColor(e,i.u_color),u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_overlay:new t.Uniform1i(e,i.u_overlay),u_overlay_scale:new t.Uniform1f(e,i.u_overlay_scale)}),clippingMask:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}),heatmap:(e,i)=>({u_extrude_scale:new t.Uniform1f(e,i.u_extrude_scale),u_intensity:new t.Uniform1f(e,i.u_intensity),u_matrix:new t.UniformMatrix4f(e,i.u_matrix)}),heatmapTexture:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_world:new t.Uniform2f(e,i.u_world),u_image:new t.Uniform1i(e,i.u_image),u_color_ramp:new t.Uniform1i(e,i.u_color_ramp),u_opacity:new t.Uniform1f(e,i.u_opacity)}),hillshade:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_image:new t.Uniform1i(e,i.u_image),u_latrange:new t.Uniform2f(e,i.u_latrange),u_light:new t.Uniform2f(e,i.u_light),u_shadow:new t.UniformColor(e,i.u_shadow),u_highlight:new t.UniformColor(e,i.u_highlight),u_accent:new t.UniformColor(e,i.u_accent)}),hillshadePrepare:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_image:new t.Uniform1i(e,i.u_image),u_dimension:new t.Uniform2f(e,i.u_dimension),u_zoom:new t.Uniform1f(e,i.u_zoom),u_unpack:new t.Uniform4f(e,i.u_unpack)}),line:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_ratio:new t.Uniform1f(e,i.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,i.u_units_to_pixels)}),lineGradient:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_ratio:new t.Uniform1f(e,i.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,i.u_units_to_pixels),u_image:new t.Uniform1i(e,i.u_image),u_image_height:new t.Uniform1f(e,i.u_image_height)}),linePattern:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_texsize:new t.Uniform2f(e,i.u_texsize),u_ratio:new t.Uniform1f(e,i.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_image:new t.Uniform1i(e,i.u_image),u_units_to_pixels:new t.Uniform2f(e,i.u_units_to_pixels),u_scale:new t.Uniform3f(e,i.u_scale),u_fade:new t.Uniform1f(e,i.u_fade)}),lineSDF:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_ratio:new t.Uniform1f(e,i.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,i.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,i.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,i.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,i.u_sdfgamma),u_image:new t.Uniform1i(e,i.u_image),u_tex_y_a:new t.Uniform1f(e,i.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,i.u_tex_y_b),u_mix:new t.Uniform1f(e,i.u_mix)}),raster:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_tl_parent:new t.Uniform2f(e,i.u_tl_parent),u_scale_parent:new t.Uniform1f(e,i.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,i.u_buffer_scale),u_fade_t:new t.Uniform1f(e,i.u_fade_t),u_opacity:new t.Uniform1f(e,i.u_opacity),u_image0:new t.Uniform1i(e,i.u_image0),u_image1:new t.Uniform1i(e,i.u_image1),u_brightness_low:new t.Uniform1f(e,i.u_brightness_low),u_brightness_high:new t.Uniform1f(e,i.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,i.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,i.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,i.u_spin_weights)}),symbolIcon:(e,i)=>({u_is_size_zoom_constant:new t.Uniform1i(e,i.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,i.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,i.u_size_t),u_size:new t.Uniform1f(e,i.u_size),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,i.u_pitch),u_rotate_symbol:new t.Uniform1i(e,i.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,i.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,i.u_fade_change),u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,i.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,i.u_coord_matrix),u_is_text:new t.Uniform1i(e,i.u_is_text),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_texsize:new t.Uniform2f(e,i.u_texsize),u_texture:new t.Uniform1i(e,i.u_texture)}),symbolSDF:(e,i)=>({u_is_size_zoom_constant:new t.Uniform1i(e,i.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,i.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,i.u_size_t),u_size:new t.Uniform1f(e,i.u_size),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,i.u_pitch),u_rotate_symbol:new t.Uniform1i(e,i.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,i.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,i.u_fade_change),u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,i.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,i.u_coord_matrix),u_is_text:new t.Uniform1i(e,i.u_is_text),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_texsize:new t.Uniform2f(e,i.u_texsize),u_texture:new t.Uniform1i(e,i.u_texture),u_gamma_scale:new t.Uniform1f(e,i.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,i.u_is_halo)}),symbolTextAndIcon:(e,i)=>({u_is_size_zoom_constant:new t.Uniform1i(e,i.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,i.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,i.u_size_t),u_size:new t.Uniform1f(e,i.u_size),u_camera_to_center_distance:new t.Uniform1f(e,i.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,i.u_pitch),u_rotate_symbol:new t.Uniform1i(e,i.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,i.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,i.u_fade_change),u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,i.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,i.u_coord_matrix),u_is_text:new t.Uniform1i(e,i.u_is_text),u_pitch_with_map:new t.Uniform1i(e,i.u_pitch_with_map),u_texsize:new t.Uniform2f(e,i.u_texsize),u_texsize_icon:new t.Uniform2f(e,i.u_texsize_icon),u_texture:new t.Uniform1i(e,i.u_texture),u_texture_icon:new t.Uniform1i(e,i.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,i.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,i.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,i.u_is_halo)}),background:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_opacity:new t.Uniform1f(e,i.u_opacity),u_color:new t.UniformColor(e,i.u_color)}),backgroundPattern:(e,i)=>({u_matrix:new t.UniformMatrix4f(e,i.u_matrix),u_opacity:new t.Uniform1f(e,i.u_opacity),u_image:new t.Uniform1i(e,i.u_image),u_pattern_tl_a:new t.Uniform2f(e,i.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,i.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,i.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,i.u_pattern_br_b),u_texsize:new t.Uniform2f(e,i.u_texsize),u_mix:new t.Uniform1f(e,i.u_mix),u_pattern_size_a:new t.Uniform2f(e,i.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,i.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,i.u_scale_a),u_scale_b:new t.Uniform1f(e,i.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,i.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,i.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,i.u_tile_units_to_pixels)})};class Be{constructor(t,e,i){this.context=t;const o=t.gl;this.buffer=o.createBuffer(),this.dynamicDraw=Boolean(i),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),o.bufferData(o.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?o.DYNAMIC_DRAW:o.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer;}bind(){this.context.bindElementBuffer.set(this.buffer);}updateData(t){const e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer);}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer);}}const Fe={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Oe{constructor(t,e,i,o){this.length=e.length,this.attributes=i,this.itemSize=e.bytesPerElement,this.dynamicDraw=o,this.context=t;const a=t.gl;this.buffer=a.createBuffer(),t.bindVertexBuffer.set(this.buffer),a.bufferData(a.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer;}bind(){this.context.bindVertexBuffer.set(this.buffer);}updateData(t){const e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer);}enableAttributes(t,e){for(let i=0;i<this.attributes.length;i++){const o=e.attributes[this.attributes[i].name];void 0!==o&&t.enableVertexAttribArray(o);}}setVertexAttribPointers(t,e,i){for(let o=0;o<this.attributes.length;o++){const a=this.attributes[o],s=e.attributes[a.name];void 0!==s&&t.vertexAttribPointer(s,a.components,t[Fe[a.type]],!1,this.itemSize,a.offset+this.itemSize*(i||0));}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer);}}class Ue{constructor(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1;}get(){return this.current}set(t){}getDefault(){return this.default}setDefault(){this.set(this.default);}}class Ne extends Ue{getDefault(){return t.Color.transparent}set(t){const e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1);}}class Ge extends Ue{getDefault(){return 1}set(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1);}}class Ze extends Ue{getDefault(){return 0}set(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1);}}class qe extends Ue{getDefault(){return [!0,!0,!0,!0]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1);}}class Ve extends Ue{getDefault(){return !0}set(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1);}}class je extends Ue{getDefault(){return 255}set(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1);}}class $e extends Ue{getDefault(){return {func:this.gl.ALWAYS,ref:0,mask:255}}set(t){const e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1);}}class We extends Ue{getDefault(){const t=this.gl;return [t.KEEP,t.KEEP,t.KEEP]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1);}}class Xe extends Ue{getDefault(){return !1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1;}}class He extends Ue{getDefault(){return [0,1]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1);}}class Ke extends Ue{getDefault(){return !1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1;}}class Ye extends Ue{getDefault(){return this.gl.LESS}set(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1);}}class Je extends Ue{getDefault(){return !1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1;}}class Qe extends Ue{getDefault(){const t=this.gl;return [t.ONE,t.ZERO]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1);}}class ti extends Ue{getDefault(){return t.Color.transparent}set(t){const e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&&(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1);}}class ei extends Ue{getDefault(){return this.gl.FUNC_ADD}set(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1);}}class ii extends Ue{getDefault(){return !1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1;}}class oi extends Ue{getDefault(){return this.gl.BACK}set(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1);}}class ai extends Ue{getDefault(){return this.gl.CCW}set(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1);}}class si extends Ue{getDefault(){return null}set(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1);}}class ri extends Ue{getDefault(){return this.gl.TEXTURE0}set(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1);}}class ni extends Ue{getDefault(){const t=this.gl;return [0,0,t.drawingBufferWidth,t.drawingBufferHeight]}set(t){const e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1);}}class li extends Ue{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1;}}class ci extends Ue{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1;}}class hi extends Ue{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1;}}class ui extends Ue{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1;}}class di extends Ue{getDefault(){return null}set(t){const e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1;}}class mi extends Ue{constructor(t){super(t),this.vao=t.extVertexArrayObject;}getDefault(){return null}set(t){this.vao&&(t!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1);}}class _i extends Ue{getDefault(){return 4}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1;}}class pi extends Ue{getDefault(){return !1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1;}}class fi extends Ue{getDefault(){return !1}set(t){if(t===this.current&&!this.dirty)return;const e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1;}}class gi extends Ue{constructor(t,e){super(t),this.context=t,this.parent=e;}getDefault(){return null}}class xi extends gi{setDirty(){this.dirty=!0;}set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1;}}class vi extends gi{set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1;}}class yi{constructor(t,e,i,o){this.context=t,this.width=e,this.height=i;const a=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new xi(t,a),o&&(this.depthAttachment=new vi(t,a));}destroy(){const t=this.context.gl,e=this.colorAttachment.get();if(e&&t.deleteTexture(e),this.depthAttachment){const e=this.depthAttachment.get();e&&t.deleteRenderbuffer(e);}t.deleteFramebuffer(this.framebuffer);}}class bi{constructor(t,e,i){this.blendFunction=t,this.blendColor=e,this.mask=i;}}bi.Replace=[1,0],bi.disabled=new bi(bi.Replace,t.Color.transparent,[!1,!1,!1,!1]),bi.unblended=new bi(bi.Replace,t.Color.transparent,[!0,!0,!0,!0]),bi.alphaBlended=new bi([1,771],t.Color.transparent,[!0,!0,!0,!0]);class wi{constructor(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new Ne(this),this.clearDepth=new Ge(this),this.clearStencil=new Ze(this),this.colorMask=new qe(this),this.depthMask=new Ve(this),this.stencilMask=new je(this),this.stencilFunc=new $e(this),this.stencilOp=new We(this),this.stencilTest=new Xe(this),this.depthRange=new He(this),this.depthTest=new Ke(this),this.depthFunc=new Ye(this),this.blend=new Je(this),this.blendFunc=new Qe(this),this.blendColor=new ti(this),this.blendEquation=new ei(this),this.cullFace=new ii(this),this.cullFaceSide=new oi(this),this.frontFace=new ai(this),this.program=new si(this),this.activeTexture=new ri(this),this.viewport=new ni(this),this.bindFramebuffer=new li(this),this.bindRenderbuffer=new ci(this),this.bindTexture=new hi(this),this.bindVertexBuffer=new ui(this),this.bindElementBuffer=new di(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new mi(this),this.pixelStoreUnpack=new _i(this),this.pixelStoreUnpackPremultiplyAlpha=new pi(this),this.pixelStoreUnpackFlipY=new fi(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(t.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=t.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=t.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE);}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault();}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0;}createIndexBuffer(t,e){return new Be(this,t,e)}createVertexBuffer(t,e,i){return new Oe(this,t,e,i)}createRenderbuffer(t,e,i){const o=this.gl,a=o.createRenderbuffer();return this.bindRenderbuffer.set(a),o.renderbufferStorage(o.RENDERBUFFER,t,e,i),this.bindRenderbuffer.set(null),a}createFramebuffer(t,e,i){return new yi(this,t,e,i)}clear({color:t,depth:e}){const i=this.gl;let o=0;t&&(o|=i.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==e&&(o|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(e),this.depthMask.set(!0)),i.clear(o);}setCullFace(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace));}setDepthMode(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1);}setStencilMode(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1);}setColorMode(t){a(t.blendFunction,bi.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask);}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null);}}class Ti{constructor(t,e,i){this.func=t,this.mask=e,this.range=i;}}Ti.ReadOnly=!1,Ti.ReadWrite=!0,Ti.disabled=new Ti(519,Ti.ReadOnly,[0,1]);const Ei=7680;class Ii{constructor(t,e,i,o,a,s){this.test=t,this.ref=e,this.mask=i,this.fail=o,this.depthFail=a,this.pass=s;}}Ii.disabled=new Ii({func:519,mask:0},0,0,Ei,Ei,Ei);class Si{constructor(t,e,i){this.enable=t,this.mode=e,this.frontFace=i;}}let Ci;function Pi(e,i,o,a,s,r,n){const l=e.context,c=l.gl,h=e.useProgram("collisionBox"),u=[];let d=0,m=0;for(let _=0;_<a.length;_++){const p=a[_],f=i.getTile(p),g=f.getBucket(o);if(!g)continue;let x=p.posMatrix;0===s[0]&&0===s[1]||(x=e.translatePosMatrix(p.posMatrix,f,s,r));const v=n?g.textCollisionBox:g.iconCollisionBox,y=g.collisionCircleArray;if(y.length>0){const i=t.create(),o=x;t.mul(i,g.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(i,i,g.placementViewportMatrix),u.push({circleArray:y,circleOffset:m,transform:o,invTransform:i}),d+=y.length/4,m=d;}v&&h.draw(l,c.LINES,Ti.disabled,Ii.disabled,e.colorModeForRenderPass(),Si.disabled,ge(x,e.transform,f),o.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,null,e.transform.zoom,null,null,v.collisionVertexBuffer);}if(!n||!u.length)return;const _=e.useProgram("collisionCircle"),p=new t.CollisionCircleLayoutArray;p.resize(4*d),p._trim();let f=0;for(const t of u)for(let e=0;e<t.circleArray.length/4;e++){const i=4*e,o=t.circleArray[i+0],a=t.circleArray[i+1],s=t.circleArray[i+2],r=t.circleArray[i+3];p.emplace(f++,o,a,s,r,0),p.emplace(f++,o,a,s,r,1),p.emplace(f++,o,a,s,r,2),p.emplace(f++,o,a,s,r,3);}(!Ci||Ci.length<2*d)&&(Ci=function(e){const i=2*e,o=new t.QuadTriangleArray;o.resize(i),o._trim();for(let t=0;t<i;t++){const e=6*t;o.uint16[e+0]=4*t+0,o.uint16[e+1]=4*t+1,o.uint16[e+2]=4*t+2,o.uint16[e+3]=4*t+2,o.uint16[e+4]=4*t+3,o.uint16[e+5]=4*t+0;}return o}(d));const g=l.createIndexBuffer(Ci,!0),x=l.createVertexBuffer(p,t.collisionCircleLayout.members,!0);for(const i of u){const a={u_matrix:i.transform,u_inv_matrix:i.invTransform,u_camera_to_center_distance:(v=e.transform).cameraToCenterDistance,u_viewport_size:[v.width,v.height]};_.draw(l,c.TRIANGLES,Ti.disabled,Ii.disabled,e.colorModeForRenderPass(),Si.disabled,a,o.id,x,g,t.SegmentVector.simpleSegment(0,2*i.circleOffset,i.circleArray.length,i.circleArray.length/2),null,e.transform.zoom,null,null,null);}var v;x.destroy(),g.destroy();}Si.disabled=new Si(!1,1029,2305),Si.backCCW=new Si(!0,1029,2305);const zi=t.identity(new Float32Array(16));function Di(e,i,o,a,s,r){const{horizontalAlign:n,verticalAlign:l}=t.getAnchorAlignment(e),c=-(n-.5)*i,h=-(l-.5)*o,u=t.evaluateVariableOffset(e,a);return new t.pointGeometry((c/s+u[0])*r,(h/s+u[1])*r)}function Ai(e,i,o,a,s,r,n,l,c,h){const u=e.text.placedSymbolArray,d=e.text.dynamicLayoutVertexArray,m=e.icon.dynamicLayoutVertexArray,_={};d.clear();for(let m=0;m<u.length;m++){const p=u.get(m),f=e.allowVerticalPlacement&&!p.placedOrientation,g=p.hidden||!p.crossTileID||f?null:a[p.crossTileID];if(g){const a=new t.pointGeometry(p.anchorX,p.anchorY),u=ut(a,o?n:r),m=dt(s.cameraToCenterDistance,u.signedDistanceFromCamera);let f=t.evaluateSizeForFeature(e.textSizeData,c,p)*m/t.ONE_EM;o&&(f*=e.tilePixelRatio/l);const{width:x,height:v,anchor:y,textOffset:b,textBoxScale:w}=g,T=Di(y,x,v,b,w,f),E=o?ut(a.add(T),r).point:u.point.add(i?T.rotate(-s.angle):T),I=e.allowVerticalPlacement&&p.placedOrientation===t.WritingMode.vertical?Math.PI/2:0;for(let e=0;e<p.numGlyphs;e++)t.addDynamicAttributes(d,E,I);h&&p.associatedIconIndex>=0&&(_[p.associatedIconIndex]={shiftedAnchor:E,angle:I});}else bt(p.numGlyphs,d);}if(h){m.clear();const i=e.icon.placedSymbolArray;for(let e=0;e<i.length;e++){const o=i.get(e);if(o.hidden)bt(o.numGlyphs,m);else {const i=_[e];if(i)for(let e=0;e<o.numGlyphs;e++)t.addDynamicAttributes(m,i.shiftedAnchor,i.angle);else bt(o.numGlyphs,m);}}e.icon.dynamicLayoutVertexBuffer.updateData(m);}e.text.dynamicLayoutVertexBuffer.updateData(d);}function Mi(t,e,i){return i.iconsInText&&e?"symbolTextAndIcon":t?"symbolSDF":"symbolIcon"}function Li(e,i,o,a,s,r,n,l,c,h,u,d){const m=e.context,_=m.gl,p=e.transform,f="map"===l,g="map"===c,x="viewport"!==l&&"point"!==o.layout.get("symbol-placement"),v=f&&!g&&!x,y=!o.layout.get("symbol-sort-key").isConstant();let b=!1;const w=e.depthModeForSublayer(0,Ti.ReadOnly),T=o.layout.get("text-variable-anchor"),E=[];for(const l of a){const a=i.getTile(l),c=a.getBucket(o);if(!c)continue;const u=s?c.text:c.icon;if(!u||!u.segments.get().length)continue;const d=u.programConfigurations.get(o.id),m=s||c.sdfIcons,w=s?c.textSizeData:c.iconSizeData,I=g||0!==p.pitch,S=e.useProgram(Mi(m,s,c),d),C=t.evaluateSizeForZoom(w,p.zoom);let P,z,D,A,M=[0,0],L=null;if(s){if(z=a.glyphAtlasTexture,D=_.LINEAR,P=a.glyphAtlasTexture.size,c.iconsInText){M=a.imageAtlasTexture.size,L=a.imageAtlasTexture;const t="composite"===w.kind||"camera"===w.kind;A=I||e.options.rotating||e.options.zooming||t?_.LINEAR:_.NEAREST;}}else {const t=1!==o.layout.get("icon-size").constantOr(0)||c.iconsNeedLinear;z=a.imageAtlasTexture,D=m||e.options.rotating||e.options.zooming||t||I?_.LINEAR:_.NEAREST,P=a.imageAtlasTexture.size;}const R=It(a,1,e.transform.zoom),k=ct(l.posMatrix,g,f,e.transform,R),B=ht(l.posMatrix,g,f,e.transform,R),F=T&&c.hasTextData(),O="none"!==o.layout.get("icon-text-fit")&&F&&c.hasIconData();if(x){const t="map"===o.layout.get("text-rotation-alignment");_t(c,l.posMatrix,e,s,k,B,g,h,t);}const U=e.translatePosMatrix(l.posMatrix,a,r,n),N=x||s&&T||O?zi:k,G=e.translatePosMatrix(B,a,r,n,!0),Z=m&&0!==o.paint.get(s?"text-halo-width":"icon-halo-width").constantOr(1);let q;q=m?c.iconsInText?Me(w.kind,C,v,g,e,U,N,G,P,M):Ae(w.kind,C,v,g,e,U,N,G,s,P,!0):De(w.kind,C,v,g,e,U,N,G,s,P);const V={program:S,buffers:u,uniformValues:q,atlasTexture:z,atlasTextureIcon:L,atlasInterpolation:D,atlasInterpolationIcon:A,isSDF:m,hasHalo:Z};if(y&&c.canOverlap){b=!0;const e=u.segments.get();for(const i of e)E.push({segments:new t.SegmentVector([i]),sortKey:i.sortKey,state:V});}else E.push({segments:u.segments,sortKey:0,state:V});}b&&E.sort(((t,e)=>t.sortKey-e.sortKey));for(const t of E){const i=t.state;if(m.activeTexture.set(_.TEXTURE0),i.atlasTexture.bind(i.atlasInterpolation,_.CLAMP_TO_EDGE),i.atlasTextureIcon&&(m.activeTexture.set(_.TEXTURE1),i.atlasTextureIcon&&i.atlasTextureIcon.bind(i.atlasInterpolationIcon,_.CLAMP_TO_EDGE)),i.isSDF){const a=i.uniformValues;i.hasHalo&&(a.u_is_halo=1,Ri(i.buffers,t.segments,o,e,i.program,w,u,d,a)),a.u_is_halo=0;}Ri(i.buffers,t.segments,o,e,i.program,w,u,d,i.uniformValues);}}function Ri(t,e,i,o,a,s,r,n,l){const c=o.context;a.draw(c,c.gl.TRIANGLES,s,r,n,Si.disabled,l,i.id,t.layoutVertexBuffer,t.indexBuffer,e,i.paint,o.transform.zoom,t.programConfigurations.get(i.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer);}function ki(t,e,i,o,a,s,r){const n=t.context.gl,l=i.paint.get("fill-pattern"),c=l&&l.constantOr(1),h=i.getCrossfadeParameters();let u,d,m,_,p;r?(d=c&&!i.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",u=n.LINES):(d=c?"fillPattern":"fill",u=n.TRIANGLES);for(const f of o){const o=e.getTile(f);if(c&&!o.patternsLoaded())continue;const g=o.getBucket(i);if(!g)continue;const x=g.programConfigurations.get(i.id),v=t.useProgram(d,x);c&&(t.context.activeTexture.set(n.TEXTURE0),o.imageAtlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE),x.updatePaintBuffers(h));const y=l.constantOr(null);if(y&&o.imageAtlas){const t=o.imageAtlas,e=t.patternPositions[y.to.toString()],i=t.patternPositions[y.from.toString()];e&&i&&x.setConstantPatternPositions(e,i);}const b=t.translatePosMatrix(f.posMatrix,o,i.paint.get("fill-translate"),i.paint.get("fill-translate-anchor"));if(r){_=g.indexBuffer2,p=g.segments2;const e=[n.drawingBufferWidth,n.drawingBufferHeight];m="fillOutlinePattern"===d&&c?pe(b,t,h,o,e):_e(b,e);}else _=g.indexBuffer,p=g.segments,m=c?me(b,t,h,o):de(b);v.draw(t.context,u,a,t.stencilModeForClipping(f),s,Si.disabled,m,i.id,g.layoutVertexBuffer,_,p,i.paint,t.transform.zoom,x);}}function Bi(t,e,i,o,a,s,r){const n=t.context,l=n.gl,c=i.paint.get("fill-extrusion-pattern"),h=c.constantOr(1),u=i.getCrossfadeParameters(),d=i.paint.get("fill-extrusion-opacity");for(const m of o){const o=e.getTile(m),_=o.getBucket(i);if(!_)continue;const p=_.programConfigurations.get(i.id),f=t.useProgram(h?"fillExtrusionPattern":"fillExtrusion",p);h&&(t.context.activeTexture.set(l.TEXTURE0),o.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),p.updatePaintBuffers(u));const g=c.constantOr(null);if(g&&o.imageAtlas){const t=o.imageAtlas,e=t.patternPositions[g.to.toString()],i=t.patternPositions[g.from.toString()];e&&i&&p.setConstantPatternPositions(e,i);}const x=t.translatePosMatrix(m.posMatrix,o,i.paint.get("fill-extrusion-translate"),i.paint.get("fill-extrusion-translate-anchor")),v=i.paint.get("fill-extrusion-vertical-gradient"),y=h?ue(x,t,v,d,m,u,o):he(x,t,v,d);f.draw(n,n.gl.TRIANGLES,a,s,r,Si.backCCW,y,i.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,i.paint,t.transform.zoom,p);}}function Fi(t,e,i,o,a,s){const r=t.context,n=r.gl,l=e.fbo;if(!l)return;const c=t.useProgram("hillshade");r.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,l.colorAttachment.get());const h=((t,e,i)=>{const o=i.paint.get("hillshade-shadow-color"),a=i.paint.get("hillshade-highlight-color"),s=i.paint.get("hillshade-accent-color");let r=i.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===i.paint.get("hillshade-illumination-anchor")&&(r-=t.transform.angle);const n=!t.options.moving;return {u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped(),n),u_image:0,u_latrange:be(0,e.tileID),u_light:[i.paint.get("hillshade-exaggeration"),r],u_shadow:o,u_highlight:a,u_accent:s}})(t,e,i);c.draw(r,n.TRIANGLES,o,a,s,Si.disabled,h,i.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments);}function Oi(e,i,o,a,s,r){const n=e.context,l=n.gl,c=i.dem;if(c&&c.data){const h=c.dim,u=c.stride,m=c.getPixels();if(n.activeTexture.set(l.TEXTURE1),n.pixelStoreUnpackPremultiplyAlpha.set(!1),i.demTexture=i.demTexture||e.getTileTexture(u),i.demTexture){const t=i.demTexture;t.update(m,{premultiply:!1}),t.bind(l.NEAREST,l.CLAMP_TO_EDGE);}else i.demTexture=new d(n,m,l.RGBA,{premultiply:!1}),i.demTexture.bind(l.NEAREST,l.CLAMP_TO_EDGE);n.activeTexture.set(l.TEXTURE0);let _=i.fbo;if(!_){const t=new d(n,{width:h,height:h,data:null},l.RGBA);t.bind(l.LINEAR,l.CLAMP_TO_EDGE),_=i.fbo=n.createFramebuffer(h,h,!0),_.colorAttachment.set(t.texture);}n.bindFramebuffer.set(_.framebuffer),n.viewport.set([0,0,h,h]),e.useProgram("hillshadePrepare").draw(n,l.TRIANGLES,a,s,r,Si.disabled,((e,i)=>{const o=i.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[o,o],u_zoom:e.overscaledZ,u_unpack:i.getUnpackVector()}})(i.tileID,c),o.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),i.needsHillshadePrepare=!1;}}function Ui(e,i,o,a,s){const r=a.paint.get("raster-fade-duration");if(r>0){const a=t.exported.now(),n=(a-e.timeAdded)/r,l=i?(a-i.timeAdded)/r:-1,c=o.getSource(),h=s.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),u=!i||Math.abs(i.tileID.overscaledZ-h)>Math.abs(e.tileID.overscaledZ-h),d=u&&e.refreshedUponExpiration?1:t.clamp(u?n:1-l,0,1);return e.refreshedUponExpiration&&n>=1&&(e.refreshedUponExpiration=!1),i?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return {opacity:1,mix:0}}const Ni=new t.Color(1,0,0,1),Gi=new t.Color(0,1,0,1),Zi=new t.Color(0,0,1,1),qi=new t.Color(1,0,1,1),Vi=new t.Color(0,1,1,1);function ji(t,e,i,o){Wi(t,0,e+i/2,t.transform.width,i,o);}function $i(t,e,i,o){Wi(t,e-i/2,0,i,t.transform.height,o);}function Wi(t,e,i,o,a,s){const r=t.context,n=r.gl;n.enable(n.SCISSOR_TEST),n.scissor(e*t.pixelRatio,i*t.pixelRatio,o*t.pixelRatio,a*t.pixelRatio),r.clear({color:s}),n.disable(n.SCISSOR_TEST);}function Xi(e,i,o){const a=e.context,s=a.gl,r=o.posMatrix,n=e.useProgram("debug"),l=Ti.disabled,c=Ii.disabled,h=e.colorModeForRenderPass(),u="$debug";a.activeTexture.set(s.TEXTURE0),e.emptyTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),n.draw(a,s.LINE_STRIP,l,c,h,Si.disabled,xe(r,t.Color.red),u,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);const d=i.getTileByID(o.key).latestRawTileData,m=Math.floor((d&&d.byteLength||0)/1024),_=i.getTile(o).tileSize,p=512/Math.min(_,512)*(o.overscaledZ/e.transform.zoom)*.5;let f=o.canonical.toString();o.overscaledZ!==o.canonical.z&&(f+=` => ${o.overscaledZ}`),function(t,e){t.initDebugOverlayCanvas();const i=t.debugOverlayCanvas,o=t.context.gl,a=t.debugOverlayCanvas.getContext("2d");a.clearRect(0,0,i.width,i.height),a.shadowColor="white",a.shadowBlur=2,a.lineWidth=1.5,a.strokeStyle="white",a.textBaseline="top",a.font="bold 36px Open Sans, sans-serif",a.fillText(e,5,5),a.strokeText(e,5,5),t.debugOverlayTexture.update(i),t.debugOverlayTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE);}(e,`${f} ${m}kb`),n.draw(a,s.TRIANGLES,l,c,bi.alphaBlended,Si.disabled,xe(r,t.Color.transparent,p),u,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments);}const Hi={symbol:function(e,i,o,a,s){if("translucent"!==e.renderPass)return;const r=Ii.disabled,n=e.colorModeForRenderPass();o.layout.get("text-variable-anchor")&&function(e,i,o,a,s,r,n){const l=i.transform,c="map"===s,h="map"===r;for(const s of e){const e=a.getTile(s),r=e.getBucket(o);if(!r||!r.text||!r.text.segments.get().length)continue;const u=t.evaluateSizeForZoom(r.textSizeData,l.zoom),d=It(e,1,i.transform.zoom),m=ct(s.posMatrix,h,c,i.transform,d),_="none"!==o.layout.get("icon-text-fit")&&r.hasIconData();if(u){const t=Math.pow(2,l.zoom-e.tileID.overscaledZ);Ai(r,c,h,n,l,m,s.posMatrix,t,u,_);}}}(a,e,o,i,o.layout.get("text-rotation-alignment"),o.layout.get("text-pitch-alignment"),s),0!==o.paint.get("icon-opacity").constantOr(1)&&Li(e,i,o,a,!1,o.paint.get("icon-translate"),o.paint.get("icon-translate-anchor"),o.layout.get("icon-rotation-alignment"),o.layout.get("icon-pitch-alignment"),o.layout.get("icon-keep-upright"),r,n),0!==o.paint.get("text-opacity").constantOr(1)&&Li(e,i,o,a,!0,o.paint.get("text-translate"),o.paint.get("text-translate-anchor"),o.layout.get("text-rotation-alignment"),o.layout.get("text-pitch-alignment"),o.layout.get("text-keep-upright"),r,n),i.map.showCollisionBoxes&&(Pi(e,i,o,a,o.paint.get("text-translate"),o.paint.get("text-translate-anchor"),!0),Pi(e,i,o,a,o.paint.get("icon-translate"),o.paint.get("icon-translate-anchor"),!1));},circle:function(e,i,o,a){if("translucent"!==e.renderPass)return;const s=o.paint.get("circle-opacity"),r=o.paint.get("circle-stroke-width"),n=o.paint.get("circle-stroke-opacity"),l=!o.layout.get("circle-sort-key").isConstant();if(0===s.constantOr(1)&&(0===r.constantOr(1)||0===n.constantOr(1)))return;const c=e.context,h=c.gl,u=e.depthModeForSublayer(0,Ti.ReadOnly),d=Ii.disabled,m=e.colorModeForRenderPass(),_=[];for(let s=0;s<a.length;s++){const r=a[s],n=i.getTile(r),c=n.getBucket(o);if(!c)continue;const h=c.programConfigurations.get(o.id),u={programConfiguration:h,program:e.useProgram("circle",h),layoutVertexBuffer:c.layoutVertexBuffer,indexBuffer:c.indexBuffer,uniformValues:fe(e,r,n,o)};if(l){const e=c.segments.get();for(const i of e)_.push({segments:new t.SegmentVector([i]),sortKey:i.sortKey,state:u});}else _.push({segments:c.segments,sortKey:0,state:u});}l&&_.sort(((t,e)=>t.sortKey-e.sortKey));for(const t of _){const{programConfiguration:i,program:a,layoutVertexBuffer:s,indexBuffer:r,uniformValues:n}=t.state;a.draw(c,h.TRIANGLES,u,d,m,Si.disabled,n,o.id,s,r,t.segments,o.paint,e.transform.zoom,i);}},heatmap:function(e,i,o,a){if(0!==o.paint.get("heatmap-opacity"))if("offscreen"===e.renderPass){const s=e.context,r=s.gl,n=Ii.disabled,l=new bi([r.ONE,r.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,i){const o=t.gl;t.activeTexture.set(o.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);let a=i.heatmapFbo;if(a)o.bindTexture(o.TEXTURE_2D,a.colorAttachment.get()),t.bindFramebuffer.set(a.framebuffer);else {const s=o.createTexture();o.bindTexture(o.TEXTURE_2D,s),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_S,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_T,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MIN_FILTER,o.LINEAR),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MAG_FILTER,o.LINEAR),a=i.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,i,o){const a=t.gl;a.texImage2D(a.TEXTURE_2D,0,a.RGBA,e.width/4,e.height/4,0,a.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:a.UNSIGNED_BYTE,null),o.colorAttachment.set(i);}(t,e,s,a);}}(s,e,o),s.clear({color:t.Color.transparent});for(let t=0;t<a.length;t++){const c=a[t];if(i.hasRenderableParent(c))continue;const h=i.getTile(c),u=h.getBucket(o);if(!u)continue;const d=u.programConfigurations.get(o.id),m=e.useProgram("heatmap",d),{zoom:_}=e.transform;m.draw(s,r.TRIANGLES,Ti.disabled,n,l,Si.disabled,ye(c.posMatrix,h,_,o.paint.get("heatmap-intensity")),o.id,u.layoutVertexBuffer,u.indexBuffer,u.segments,o.paint,e.transform.zoom,d);}s.viewport.set([0,0,e.width,e.height]);}else "translucent"===e.renderPass&&(e.context.setColorMode(e.colorModeForRenderPass()),function(e,i){const o=e.context,a=o.gl,s=i.heatmapFbo;if(!s)return;o.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,s.colorAttachment.get()),o.activeTexture.set(a.TEXTURE1);let r=i.colorRampTexture;r||(r=i.colorRampTexture=new d(o,i.colorRamp,a.RGBA)),r.bind(a.LINEAR,a.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(o,a.TRIANGLES,Ti.disabled,Ii.disabled,e.colorModeForRenderPass(),Si.disabled,((e,i,o,a)=>{const s=t.create();t.ortho(s,0,e.width,e.height,0,0,1);const r=e.context.gl;return {u_matrix:s,u_world:[r.drawingBufferWidth,r.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:i.paint.get("heatmap-opacity")}})(e,i),i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom);}(e,o));},line:function(e,i,o,a){if("translucent"!==e.renderPass)return;const s=o.paint.get("line-opacity"),r=o.paint.get("line-width");if(0===s.constantOr(1)||0===r.constantOr(1))return;const n=e.depthModeForSublayer(0,Ti.ReadOnly),l=e.colorModeForRenderPass(),c=o.paint.get("line-dasharray"),h=o.paint.get("line-pattern"),u=h.constantOr(1),m=o.paint.get("line-gradient"),_=o.getCrossfadeParameters(),p=u?"linePattern":c?"lineSDF":m?"lineGradient":"line",f=e.context,g=f.gl;let x=!0;for(const s of a){const a=i.getTile(s);if(u&&!a.patternsLoaded())continue;const r=a.getBucket(o);if(!r)continue;const v=r.programConfigurations.get(o.id),y=e.context.program.get(),b=e.useProgram(p,v),w=x||b.program!==y,T=h.constantOr(null);if(T&&a.imageAtlas){const t=a.imageAtlas,e=t.patternPositions[T.to.toString()],i=t.patternPositions[T.from.toString()];e&&i&&v.setConstantPatternPositions(e,i);}const E=u?Ee(e,a,o,_):c?Ie(e,a,o,c,_):m?Te(e,a,o,r.lineClipsArray.length):we(e,a,o);if(u)f.activeTexture.set(g.TEXTURE0),a.imageAtlasTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),v.updatePaintBuffers(_);else if(c&&(w||e.lineAtlas.dirty))f.activeTexture.set(g.TEXTURE0),e.lineAtlas.bind(f);else if(m){const a=r.gradients[o.id];let n=a.texture;if(o.gradientVersion!==a.version){let l=256;if(o.stepInterpolant){const o=i.getSource().maxzoom,a=s.canonical.z===o?Math.ceil(1<<e.transform.maxZoom-s.canonical.z):1;l=t.clamp(t.nextPowerOfTwo(r.maxLineLength/t.EXTENT*1024*a),256,f.maxTextureSize);}a.gradient=t.renderColorRamp({expression:o.gradientExpression(),evaluationKey:"lineProgress",resolution:l,image:a.gradient||void 0,clips:r.lineClipsArray}),a.texture?a.texture.update(a.gradient):a.texture=new d(f,a.gradient,g.RGBA),a.version=o.gradientVersion,n=a.texture;}f.activeTexture.set(g.TEXTURE0),n.bind(o.stepInterpolant?g.NEAREST:g.LINEAR,g.CLAMP_TO_EDGE);}b.draw(f,g.TRIANGLES,n,e.stencilModeForClipping(s),l,Si.disabled,E,o.id,r.layoutVertexBuffer,r.indexBuffer,r.segments,o.paint,e.transform.zoom,v,r.layoutVertexBuffer2),x=!1;}},fill:function(e,i,o,a){const s=o.paint.get("fill-color"),r=o.paint.get("fill-opacity");if(0===r.constantOr(1))return;const n=e.colorModeForRenderPass(),l=o.paint.get("fill-pattern"),c=e.opaquePassEnabledForLayer()&&!l.constantOr(1)&&1===s.constantOr(t.Color.transparent).a&&1===r.constantOr(0)?"opaque":"translucent";if(e.renderPass===c){const t=e.depthModeForSublayer(1,"opaque"===e.renderPass?Ti.ReadWrite:Ti.ReadOnly);ki(e,i,o,a,t,n,!1);}if("translucent"===e.renderPass&&o.paint.get("fill-antialias")){const t=e.depthModeForSublayer(o.getPaintProperty("fill-outline-color")?2:0,Ti.ReadOnly);ki(e,i,o,a,t,n,!0);}},"fill-extrusion":function(t,e,i,o){const a=i.paint.get("fill-extrusion-opacity");if(0!==a&&"translucent"===t.renderPass){const s=new Ti(t.context.gl.LEQUAL,Ti.ReadWrite,t.depthRangeFor3D);if(1!==a||i.paint.get("fill-extrusion-pattern").constantOr(1))Bi(t,e,i,o,s,Ii.disabled,bi.disabled),Bi(t,e,i,o,s,t.stencilModeFor3D(),t.colorModeForRenderPass());else {const a=t.colorModeForRenderPass();Bi(t,e,i,o,s,Ii.disabled,a);}}},hillshade:function(t,e,i,o){if("offscreen"!==t.renderPass&&"translucent"!==t.renderPass)return;const a=t.context,s=t.depthModeForSublayer(0,Ti.ReadOnly),r=t.colorModeForRenderPass(),[n,l]="translucent"===t.renderPass?t.stencilConfigForOverlap(o):[{},o];for(const o of l){const a=e.getTile(o);a.needsHillshadePrepare&&"offscreen"===t.renderPass?Oi(t,a,i,s,Ii.disabled,r):"translucent"===t.renderPass&&Fi(t,a,i,s,n[o.overscaledZ],r);}a.viewport.set([0,0,t.width,t.height]);},raster:function(t,e,i,o){if("translucent"!==t.renderPass)return;if(0===i.paint.get("raster-opacity"))return;if(!o.length)return;const a=t.context,s=a.gl,r=e.getSource(),n=t.useProgram("raster"),l=t.colorModeForRenderPass(),[c,h]=r instanceof M?[{},o]:t.stencilConfigForOverlap(o),u=h[h.length-1].overscaledZ,d=!t.options.moving;for(const o of h){const h=t.depthModeForSublayer(o.overscaledZ-u,1===i.paint.get("raster-opacity")?Ti.ReadWrite:Ti.ReadOnly,s.LESS),m=e.getTile(o),_=t.transform.calculatePosMatrix(o.toUnwrapped(),d);m.registerFadeDuration(i.paint.get("raster-fade-duration"));const p=e.findLoadedParent(o,0),f=Ui(m,p,e,i,t.transform);let g,x;const v="nearest"===i.paint.get("raster-resampling")?s.NEAREST:s.LINEAR;a.activeTexture.set(s.TEXTURE0),m.texture.bind(v,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),a.activeTexture.set(s.TEXTURE1),p?(p.texture.bind(v,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),g=Math.pow(2,p.tileID.overscaledZ-m.tileID.overscaledZ),x=[m.tileID.canonical.x*g%1,m.tileID.canonical.y*g%1]):m.texture.bind(v,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST);const y=Pe(_,x||[0,0],g||1,f,i);r instanceof M?n.draw(a,s.TRIANGLES,h,Ii.disabled,l,Si.disabled,y,i.id,r.boundsBuffer,t.quadTriangleIndexBuffer,r.boundsSegments):n.draw(a,s.TRIANGLES,h,c[o.overscaledZ],l,Si.disabled,y,i.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments);}},background:function(t,e,i){const o=i.paint.get("background-color"),a=i.paint.get("background-opacity");if(0===a)return;const s=t.context,r=s.gl,n=t.transform,l=n.tileSize,c=i.paint.get("background-pattern");if(t.isPatternMissing(c))return;const h=!c&&1===o.a&&1===a&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass!==h)return;const u=Ii.disabled,d=t.depthModeForSublayer(0,"opaque"===h?Ti.ReadWrite:Ti.ReadOnly),m=t.colorModeForRenderPass(),_=t.useProgram(c?"backgroundPattern":"background"),p=n.coveringTiles({tileSize:l});c&&(s.activeTexture.set(r.TEXTURE0),t.imageManager.bind(t.context));const f=i.getCrossfadeParameters();for(const e of p){const n=t.transform.calculatePosMatrix(e.toUnwrapped()),h=c?Re(n,a,t,c,{tileID:e,tileSize:l},f):Le(n,a,o);_.draw(s,r.TRIANGLES,d,u,m,Si.disabled,h,i.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments);}},debug:function(t,e,i){for(let o=0;o<i.length;o++)Xi(t,e,i[o]);},custom:function(t,e,i){const o=t.context,a=i.implementation;if("offscreen"===t.renderPass){const e=a.prerender;e&&(t.setCustomLayerDefaults(),o.setColorMode(t.colorModeForRenderPass()),e.call(a,o.gl,t.transform.customLayerMatrix()),o.setDirty(),t.setBaseState());}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),o.setColorMode(t.colorModeForRenderPass()),o.setStencilMode(Ii.disabled);const e="3d"===a.renderingMode?new Ti(t.context.gl.LEQUAL,Ti.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Ti.ReadOnly);o.setDepthMode(e),a.render(o.gl,t.transform.customLayerMatrix()),o.setDirty(),t.setBaseState(),o.bindFramebuffer.set(null);}}};class Ki{constructor(t,e){this.context=new wi(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Z.maxUnderzooming+Z.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Yt,this.gpuTimers={};}resize(t,e,i){if(this.width=t*i,this.height=e*i,this.pixelRatio=i,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const t of this.style._order)this.style._layers[t].resize();}setup(){const e=this.context,i=new t.PosArray;i.emplaceBack(0,0),i.emplaceBack(t.EXTENT,0),i.emplaceBack(0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(i,oe.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);const o=new t.PosArray;o.emplaceBack(0,0),o.emplaceBack(t.EXTENT,0),o.emplaceBack(0,t.EXTENT),o.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(o,oe.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);const a=new t.RasterBoundsArray;a.emplaceBack(0,0,0,0),a.emplaceBack(t.EXTENT,0,t.EXTENT,0),a.emplaceBack(0,t.EXTENT,0,t.EXTENT),a.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(a,A.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);const s=new t.PosArray;s.emplaceBack(0,0),s.emplaceBack(1,0),s.emplaceBack(0,1),s.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(s,oe.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);const r=new t.LineStripIndexArray;r.emplaceBack(0),r.emplaceBack(1),r.emplaceBack(3),r.emplaceBack(2),r.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(r);const n=new t.TriangleIndexArray;n.emplaceBack(0,1,2),n.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(n),this.emptyTexture=new d(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);const l=this.context.gl;this.stencilClearMode=new Ii({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO);}clearStencil(){const e=this.context,i=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const o=t.create();t.ortho(o,0,this.width,this.height,0,0,1),t.scale(o,o,[i.drawingBufferWidth,i.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(e,i.TRIANGLES,Ti.disabled,this.stencilClearMode,bi.disabled,Si.disabled,ve(o),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments);}_renderTileClippingMasks(t,e){if(this.currentStencilSource===t.source||!t.isTileClipped()||!e||!e.length)return;this.currentStencilSource=t.source;const i=this.context,o=i.gl;this.nextStencilID+e.length>256&&this.clearStencil(),i.setColorMode(bi.disabled),i.setDepthMode(Ti.disabled);const a=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const t of e){const e=this._tileClippingMaskIDs[t.key]=this.nextStencilID++;a.draw(i,o.TRIANGLES,Ti.disabled,new Ii({func:o.ALWAYS,mask:0},e,255,o.KEEP,o.KEEP,o.REPLACE),bi.disabled,Si.disabled,ve(t.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments);}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const t=this.nextStencilID++,e=this.context.gl;return new Ii({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)}stencilModeForClipping(t){const e=this.context.gl;return new Ii({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)}stencilConfigForOverlap(t){const e=this.context.gl,i=t.sort(((t,e)=>e.overscaledZ-t.overscaledZ)),o=i[i.length-1].overscaledZ,a=i[0].overscaledZ-o+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();const t={};for(let i=0;i<a;i++)t[i+o]=new Ii({func:e.GEQUAL,mask:255},i+this.nextStencilID,255,e.KEEP,e.KEEP,e.REPLACE);return this.nextStencilID+=a,[t,i]}return [{[o]:Ii.disabled},i]}colorModeForRenderPass(){const e=this.context.gl;if(this._showOverdrawInspector){const i=1/8;return new bi([e.CONSTANT_COLOR,e.ONE],new t.Color(i,i,i,0),[!0,!0,!0,!0])}return "opaque"===this.renderPass?bi.unblended:bi.alphaBlended}depthModeForSublayer(t,e,i){if(!this.opaquePassEnabledForLayer())return Ti.disabled;const o=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new Ti(i||this.context.gl.LEQUAL,e,[o,o])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(e,i){this.style=e,this.options=i,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.exported.now()),this.imageManager.beginFrame();const o=this.style._order,a=this.style.sourceCaches;for(const t in a){const e=a[t];e.used&&e.prepare(this.context);}const s={},r={},n={};for(const t in a){const e=a[t];s[t]=e.getVisibleCoordinates(),r[t]=s[t].slice().reverse(),n[t]=e.getVisibleCoordinates(!0).reverse();}this.opaquePassCutoff=1/0;for(let t=0;t<o.length;t++)if(this.style._layers[o[t]].is3D()){this.opaquePassCutoff=t;break}this.renderPass="offscreen";for(const t of o){const e=this.style._layers[t];if(!e.hasOffscreenPass()||e.isHidden(this.transform.zoom))continue;const i=r[e.source];("custom"===e.type||i.length)&&this.renderLayer(this,a[e.source],e,i);}for(this.context.bindFramebuffer.set(null),this.context.clear({color:i.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=i.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=o.length-1;this.currentLayer>=0;this.currentLayer--){const t=this.style._layers[o[this.currentLayer]],e=a[t.source],i=s[t.source];this._renderTileClippingMasks(t,i),this.renderLayer(this,e,t,i);}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<o.length;this.currentLayer++){const t=this.style._layers[o[this.currentLayer]],e=a[t.source],i=("symbol"===t.type?n:r)[t.source];this._renderTileClippingMasks(t,s[t.source]),this.renderLayer(this,e,t,i);}if(this.options.showTileBoundaries){let t,e;Object.values(this.style._layers).forEach((i=>{i.source&&!i.isHidden(this.transform.zoom)&&(i.source!==(e&&e.id)&&(e=this.style.sourceCaches[i.source]),(!t||t.getSource().maxzoom<e.getSource().maxzoom)&&(t=e));})),t&&Hi.debug(this,t,t.getVisibleCoordinates());}this.options.showPadding&&function(t){const e=t.transform.padding;ji(t,t.transform.height-(e.top||0),3,Ni),ji(t,e.bottom||0,3,Gi),$i(t,e.left||0,3,Zi),$i(t,t.transform.width-(e.right||0),3,qi);const i=t.transform.centerPoint;!function(t,e,i,o){Wi(t,e-1,i-10,2,20,o),Wi(t,e-10,i-1,20,2,o);}(t,i.x,t.transform.height-i.y,Vi);}(this),this.context.setDefault();}renderLayer(t,e,i,o){i.isHidden(this.transform.zoom)||("background"===i.type||"custom"===i.type||o.length)&&(this.id=i.id,this.gpuTimingStart(i),Hi[i.type](t,e,i,o,this.style.placement.variableOffsets),this.gpuTimingEnd());}gpuTimingStart(t){if(!this.options.gpuTiming)return;const e=this.context.extTimerQuery;let i=this.gpuTimers[t.id];i||(i=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),i.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,i.query);}gpuTimingEnd(){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT);}collectGpuTimers(){const t=this.gpuTimers;return this.gpuTimers={},t}queryGpuTimers(t){const e={};for(const i in t){const o=t[i],a=this.context.extTimerQuery,s=a.getQueryObjectEXT(o.query,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(o.query),e[i]=s;}return e}translatePosMatrix(e,i,o,a,s){if(!o[0]&&!o[1])return e;const r=s?"map"===a?this.transform.angle:0:"viewport"===a?-this.transform.angle:0;if(r){const t=Math.sin(r),e=Math.cos(r);o=[o[0]*e-o[1]*t,o[0]*t+o[1]*e];}const n=[s?o[0]:It(i,o[0],this.transform.zoom),s?o[1]:It(i,o[1],this.transform.zoom),0],l=new Float32Array(16);return t.translate(l,e,n),l}saveTileTexture(t){const e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t];}getTileTexture(t){const e=this._tileTextures[t];return e&&e.length>0?e.pop():null}isPatternMissing(t){if(!t)return !1;if(!t.from||!t.to)return !0;const e=this.imageManager.getPattern(t.from.toString()),i=this.imageManager.getPattern(t.to.toString());return !e||!i}useProgram(t,e){this.cache=this.cache||{};const i=`${t}${e?e.cacheKey:""}${this._showOverdrawInspector?"/overdraw":""}`;return this.cache[i]||(this.cache[i]=new le(this.context,t,ae[t],e,ke[t],this._showOverdrawInspector)),this.cache[i]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault();}setBaseState(){const t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD);}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new d(this.context,this.debugOverlayCanvas,this.context.gl.RGBA));}destroy(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy();}}class Yi{constructor(t,e){this.points=t,this.planes=e;}static fromInvProjectionMatrix(e,i,o){const a=Math.pow(2,o),s=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((i=>t.transformMat4([],i,e))).map((e=>t.scale$1([],e,1/e[3]/i*a))),r=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((t=>{const e=function(t,e){var i=e[0],o=e[1],a=e[2],s=i*i+o*o+a*a;return s>0&&(s=1/Math.sqrt(s)),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s,t}([],function(t,e,i){var o=e[0],a=e[1],s=e[2],r=i[0],n=i[1],l=i[2];return t[0]=a*l-s*n,t[1]=s*r-o*l,t[2]=o*n-a*r,t}([],h([],s[t[0]],s[t[1]]),h([],s[t[2]],s[t[1]]))),i=-((o=e)[0]*(a=s[t[1]])[0]+o[1]*a[1]+o[2]*a[2]);var o,a;return e.concat(i)}));return new Yi(s,r)}}class Ji{constructor(t,e){this.min=t,this.max=e,this.center=function(t,e,i){return t[0]=.5*e[0],t[1]=.5*e[1],t[2]=.5*e[2],t}([],function(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}([],this.min,this.max));}quadrant(t){const e=[t%2==0,t<2],i=l(this.min),o=l(this.max);for(let t=0;t<e.length;t++)i[t]=e[t]?this.min[t]:this.center[t],o[t]=e[t]?this.center[t]:this.max[t];return o[2]=this.max[2],new Ji(i,o)}distanceX(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]}distanceY(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]}intersects(e){const i=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]];let o=!0;for(let a=0;a<e.planes.length;a++){const s=e.planes[a];let r=0;for(let e=0;e<i.length;e++)t.dot(s,i[e])>=0&&r++;if(0===r)return 0;r!==i.length&&(o=!1);}if(o)return 2;for(let t=0;t<3;t++){let i=Number.MAX_VALUE,o=-Number.MAX_VALUE;for(let a=0;a<e.points.length;a++){const s=e.points[a][t]-this.min[t];i=Math.min(i,s),o=Math.max(o,s);}if(o<0||i>this.max[t]-this.min[t])return 0}return 1}}class Qi{constructor(t=0,e=0,i=0,o=0){if(isNaN(t)||t<0||isNaN(e)||e<0||isNaN(i)||i<0||isNaN(o)||o<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=i,this.right=o;}interpolate(e,i,o){return null!=i.top&&null!=e.top&&(this.top=t.number(e.top,i.top,o)),null!=i.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,i.bottom,o)),null!=i.left&&null!=e.left&&(this.left=t.number(e.left,i.left,o)),null!=i.right&&null!=e.right&&(this.right=t.number(e.right,i.right,o)),this}getCenter(e,i){const o=t.clamp((this.left+e-this.right)/2,0,e),a=t.clamp((this.top+i-this.bottom)/2,0,i);return new t.pointGeometry(o,a)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new Qi(this.top,this.bottom,this.left,this.right)}toJSON(){return {top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}class to{constructor(e,i,o,a,s){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===s||!!s,this._minZoom=e||0,this._maxZoom=i||22,this._minPitch=null==o?0:o,this._maxPitch=null==a?60:a,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Qi,this._posMatrixCache={},this._alignedPosMatrixCache={};}clone(){const t=new to(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t}get minZoom(){return this._minZoom}set minZoom(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t));}get maxZoom(){return this._maxZoom}set maxZoom(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t));}get minPitch(){return this._minPitch}set minPitch(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t));}get maxPitch(){return this._maxPitch}set maxPitch(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t));}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t;}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new t.pointGeometry(this.width,this.height)}get bearing(){return -this.angle/Math.PI*180}set bearing(e){const i=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==i&&(this._unmodified=!1,this.angle=i,this._calcMatrices(),this.rotationMatrix=function(){var e=new t.ARRAY_TYPE(4);return t.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}(),function(t,e,i){var o=e[0],a=e[1],s=e[2],r=e[3],n=Math.sin(i),l=Math.cos(i);t[0]=o*l+s*n,t[1]=a*l+r*n,t[2]=o*-n+s*l,t[3]=a*-n+r*l;}(this.rotationMatrix,this.rotationMatrix,this.angle));}get pitch(){return this._pitch/Math.PI*180}set pitch(e){const i=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==i&&(this._unmodified=!1,this._pitch=i,this._calcMatrices());}get fov(){return this._fov/Math.PI*180}set fov(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices());}get zoom(){return this._zoom}set zoom(t){const e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices());}get center(){return this._center}set center(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices());}get padding(){return this._edgeInsets.toJSON()}set padding(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices());}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(t){return this._edgeInsets.equals(t)}interpolatePadding(t,e,i){this._unmodified=!1,this._edgeInsets.interpolate(t,e,i),this._constrain(),this._calcMatrices();}coveringZoomLevel(t){const e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)}getVisibleUnwrappedCoordinates(e){const i=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies){const o=this.pointCoordinate(new t.pointGeometry(0,0)),a=this.pointCoordinate(new t.pointGeometry(this.width,0)),s=this.pointCoordinate(new t.pointGeometry(this.width,this.height)),r=this.pointCoordinate(new t.pointGeometry(0,this.height)),n=Math.floor(Math.min(o.x,a.x,s.x,r.x)),l=Math.floor(Math.max(o.x,a.x,s.x,r.x)),c=1;for(let o=n-c;o<=l+c;o++)0!==o&&i.push(new t.UnwrappedTileID(o,e));}return i}coveringTiles(e){let i=this.coveringZoomLevel(e);const o=i;if(void 0!==e.minzoom&&i<e.minzoom)return [];void 0!==e.maxzoom&&i>e.maxzoom&&(i=e.maxzoom);const a=t.MercatorCoordinate.fromLngLat(this.center),s=Math.pow(2,i),r=[s*a.x,s*a.y,0],n=Yi.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,i);let l=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(l=i);const c=t=>({aabb:new Ji([t*s,0,0],[(t+1)*s,s,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}),h=[],d=[],m=i,_=e.reparseOverscaled?o:i;if(this._renderWorldCopies)for(let t=1;t<=3;t++)h.push(c(-t)),h.push(c(t));for(h.push(c(0));h.length>0;){const e=h.pop(),i=e.x,o=e.y;let a=e.fullyVisible;if(!a){const t=e.aabb.intersects(n);if(0===t)continue;a=2===t;}const s=e.aabb.distanceX(r),c=e.aabb.distanceY(r),p=Math.max(Math.abs(s),Math.abs(c)),f=3+(1<<m-e.zoom)-2;if(e.zoom===m||p>f&&e.zoom>=l)d.push({tileID:new t.OverscaledTileID(e.zoom===m?_:e.zoom,e.wrap,e.zoom,i,o),distanceSq:u([r[0]-.5-i,r[1]-.5-o])});else for(let t=0;t<4;t++){const s=(i<<1)+t%2,r=(o<<1)+(t>>1);h.push({aabb:e.aabb.quadrant(t),zoom:e.zoom+1,x:s,y:r,wrap:e.wrap,fullyVisible:a});}}return d.sort(((t,e)=>t.distanceSq-e.distanceSq)).map((t=>t.tileID))}resize(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices();}get unmodified(){return this._unmodified}zoomScale(t){return Math.pow(2,t)}scaleZoom(t){return Math.log(t)/Math.LN2}project(e){const i=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.pointGeometry(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(i)*this.worldSize)}unproject(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}setLocationAtPoint(e,i){const o=this.pointCoordinate(i),a=this.pointCoordinate(this.centerPoint),s=this.locationCoordinate(e),r=new t.MercatorCoordinate(s.x-(o.x-a.x),s.y-(o.y-a.y));this.center=this.coordinateLocation(r),this._renderWorldCopies&&(this.center=this.center.wrap());}locationPoint(t){return this.coordinatePoint(this.locationCoordinate(t))}pointLocation(t){return this.coordinateLocation(this.pointCoordinate(t))}locationCoordinate(e){return t.MercatorCoordinate.fromLngLat(e)}coordinateLocation(t){return t.toLngLat()}pointCoordinate(e){const i=[e.x,e.y,0,1],o=[e.x,e.y,1,1];t.transformMat4(i,i,this.pixelMatrixInverse),t.transformMat4(o,o,this.pixelMatrixInverse);const a=i[3],s=o[3],r=i[1]/a,n=o[1]/s,l=i[2]/a,c=o[2]/s,h=l===c?0:(0-l)/(c-l);return new t.MercatorCoordinate(t.number(i[0]/a,o[0]/s,h)/this.worldSize,t.number(r,n,h)/this.worldSize)}coordinatePoint(e){const i=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(i,i,this.pixelMatrix),new t.pointGeometry(i[0]/i[3],i[1]/i[3])}getBounds(){return (new t.LngLatBounds).extend(this.pointLocation(new t.pointGeometry(0,0))).extend(this.pointLocation(new t.pointGeometry(this.width,0))).extend(this.pointLocation(new t.pointGeometry(this.width,this.height))).extend(this.pointLocation(new t.pointGeometry(0,this.height)))}getMaxBounds(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}setMaxBounds(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude]);}calculatePosMatrix(e,i=!1){const o=e.key,a=i?this._alignedPosMatrixCache:this._posMatrixCache;if(a[o])return a[o];const s=e.canonical,r=this.worldSize/this.zoomScale(s.z),n=s.x+Math.pow(2,s.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[n*r,s.y*r,0]),t.scale(l,l,[r/t.EXTENT,r/t.EXTENT,1]),t.multiply(l,i?this.alignedProjMatrix:this.projMatrix,l),a[o]=new Float32Array(l),a[o]}customLayerMatrix(){return this.mercatorMatrix.slice()}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let e,i,o,a,s=-90,r=90,n=-180,l=180;const c=this.size,h=this._unmodified;if(this.latRange){const i=this.latRange;s=t.mercatorYfromLat(i[1])*this.worldSize,r=t.mercatorYfromLat(i[0])*this.worldSize,e=r-s<c.y?c.y/(r-s):0;}if(this.lngRange){const e=this.lngRange;n=t.mercatorXfromLng(e[0])*this.worldSize,l=t.mercatorXfromLng(e[1])*this.worldSize,i=l-n<c.x?c.x/(l-n):0;}const u=this.point,d=Math.max(i||0,e||0);if(d)return this.center=this.unproject(new t.pointGeometry(i?(l+n)/2:u.x,e?(r+s)/2:u.y)),this.zoom+=this.scaleZoom(d),this._unmodified=h,void(this._constraining=!1);if(this.latRange){const t=u.y,e=c.y/2;t-e<s&&(a=s+e),t+e>r&&(a=r-e);}if(this.lngRange){const t=u.x,e=c.x/2;t-e<n&&(o=n+e),t+e>l&&(o=l-e);}void 0===o&&void 0===a||(this.center=this.unproject(new t.pointGeometry(void 0!==o?o:u.x,void 0!==a?a:u.y))),this._unmodified=h,this._constraining=!1;}_calcMatrices(){if(!this.height)return;const e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;const i=Math.PI/2+this._pitch,o=this._fov*(.5+e.y/this.height),a=Math.sin(o)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-i-o,.01,Math.PI-.01)),s=this.point,r=s.x,n=s.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*a+this.cameraToCenterDistance),c=this.height/50;let h=new Float64Array(16);t.perspective(h,this._fov,this.width/this.height,c,l),h[8]=2*-e.x/this.width,h[9]=2*e.y/this.height,t.scale(h,h,[1,-1,1]),t.translate(h,h,[0,0,-this.cameraToCenterDistance]),t.rotateX(h,h,this._pitch),t.rotateZ(h,h,this.angle),t.translate(h,h,[-r,-n,0]),this.mercatorMatrix=t.scale([],h,[this.worldSize,this.worldSize,this.worldSize]),t.scale(h,h,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize]),this.projMatrix=h,this.invProjMatrix=t.invert([],this.projMatrix);const u=this.width%2/2,d=this.height%2/2,m=Math.cos(this.angle),_=Math.sin(this.angle),p=r-Math.round(r)+m*u+_*d,f=n-Math.round(n)+m*d+_*u,g=new Float64Array(h);if(t.translate(g,g,[p>.5?p-1:p,f>.5?f-1:f,0]),this.alignedProjMatrix=g,h=t.create(),t.scale(h,h,[this.width/2,-this.height/2,1]),t.translate(h,h,[1,-1,0]),this.labelPlaneMatrix=h,h=t.create(),t.scale(h,h,[1,-1,1]),t.translate(h,h,[-1,-1,0]),t.scale(h,h,[2/this.width,2/this.height,1]),this.glCoordMatrix=h,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),h=t.invert(new Float64Array(16),this.pixelMatrix),!h)throw new Error("failed to invert matrix");this.pixelMatrixInverse=h,this._posMatrixCache={},this._alignedPosMatrixCache={};}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const e=this.pointCoordinate(new t.pointGeometry(0,0)),i=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(i,i,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.pointGeometry(0,e))}getCameraQueryGeometry(e){const i=this.getCameraPoint();if(1===e.length)return [e[0],i];{let o=i.x,a=i.y,s=i.x,r=i.y;for(const t of e)o=Math.min(o,t.x),a=Math.min(a,t.y),s=Math.max(s,t.x),r=Math.max(r,t.y);return [new t.pointGeometry(o,a),new t.pointGeometry(s,a),new t.pointGeometry(s,r),new t.pointGeometry(o,r),new t.pointGeometry(o,a)]}}}class eo{constructor(e){this._hashName=e&&encodeURIComponent(e),t.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=function(t,e){let i=!1,o=null;const a=()=>{o=null,i&&(t(),o=setTimeout(a,300),i=!1);};return ()=>(i=!0,o||a(),o)}(this._updateHashUnthrottled.bind(this));}addTo(t){return this._map=t,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(t){const e=this._map.getCenter(),i=Math.round(100*this._map.getZoom())/100,o=Math.ceil((i*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,o),s=Math.round(e.lng*a)/a,r=Math.round(e.lat*a)/a,n=this._map.getBearing(),l=this._map.getPitch();let c="";if(c+=t?`/${s}/${r}/${i}`:`${i}/${r}/${s}`,(n||l)&&(c+="/"+Math.round(10*n)/10),l&&(c+=`/${Math.round(l)}`),this._hashName){const t=this._hashName;let e=!1;const i=window.location.hash.slice(1).split("&").map((i=>{const o=i.split("=")[0];return o===t?(e=!0,`${o}=${c}`):i})).filter((t=>t));return e||i.push(`${t}=${c}`),`#${i.join("&")}`}return `#${c}`}_getCurrentHash(){const t=window.location.hash.replace("#","");if(this._hashName){let e;return t.split("&").map((t=>t.split("="))).forEach((t=>{t[0]===this._hashName&&(e=t);})),(e&&e[1]||"").split("/")}return t.split("/")}_onHashChange(){const t=this._getCurrentHash();if(t.length>=3&&!t.some((t=>isNaN(t)))){const e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return !1}_updateHashUnthrottled(){const t=window.location.href.replace(/(#.+)?$/,this.getHashString());try{window.history.replaceState(window.history.state,null,t);}catch(t){}}}const io={linearity:.3,easing:t.bezier(0,0,.3,1)},oo=t.extend({deceleration:2500,maxSpeed:1400},io),ao=t.extend({deceleration:20,maxSpeed:1400},io),so=t.extend({deceleration:1e3,maxSpeed:360},io),ro=t.extend({deceleration:1e3,maxSpeed:90},io);class no{constructor(t){this._map=t,this.clear();}clear(){this._inertiaBuffer=[];}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.exported.now(),settings:e});}_drainInertiaBuffer(){const e=this._inertiaBuffer,i=t.exported.now();for(;e.length>0&&i-e[0].time>160;)e.shift();}_onMoveEnd(e){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const i={zoom:0,bearing:0,pitch:0,pan:new t.pointGeometry(0,0),pinchAround:void 0,around:void 0};for(const{settings:t}of this._inertiaBuffer)i.zoom+=t.zoomDelta||0,i.bearing+=t.bearingDelta||0,i.pitch+=t.pitchDelta||0,t.panDelta&&i.pan._add(t.panDelta),t.around&&(i.around=t.around),t.pinchAround&&(i.pinchAround=t.pinchAround);const o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,a={};if(i.pan.mag()){const s=co(i.pan.mag(),o,t.extend({},oo,e||{}));a.offset=i.pan.mult(s.amount/i.pan.mag()),a.center=this._map.transform.center,lo(a,s);}if(i.zoom){const t=co(i.zoom,o,ao);a.zoom=this._map.transform.zoom+t.amount,lo(a,t);}if(i.bearing){const e=co(i.bearing,o,so);a.bearing=this._map.transform.bearing+t.clamp(e.amount,-179,179),lo(a,e);}if(i.pitch){const t=co(i.pitch,o,ro);a.pitch=this._map.transform.pitch+t.amount,lo(a,t);}if(a.zoom||a.bearing){const t=void 0===i.pinchAround?i.around:i.pinchAround;a.around=t?this._map.unproject(t):this._map.getCenter();}return this.clear(),t.extend(a,{noMoveStart:!0})}}function lo(t,e){(!t.duration||t.duration<e.duration)&&(t.duration=e.duration,t.easing=e.easing);}function co(e,i,o){const{maxSpeed:a,linearity:s,deceleration:r}=o,n=t.clamp(e*s/(i/1e3),-a,a),l=Math.abs(n)/(r*s);return {easing:o.easing,duration:1e3*l,amount:n*(l/2)}}class ho extends t.Event{constructor(e,i,o,a={}){const r=s.mousePos(i.getCanvasContainer(),o),n=i.unproject(r);super(e,t.extend({point:r,lngLat:n,originalEvent:o},a)),this._defaultPrevented=!1,this.target=i;}preventDefault(){this._defaultPrevented=!0;}get defaultPrevented(){return this._defaultPrevented}}class uo extends t.Event{constructor(e,i,o){const a="touchend"===e?o.changedTouches:o.touches,r=s.touchPos(i.getCanvasContainer(),a),n=r.map((t=>i.unproject(t))),l=r.reduce(((t,e,i,o)=>t.add(e.div(o.length))),new t.pointGeometry(0,0));super(e,{points:r,point:l,lngLats:n,lngLat:i.unproject(l),originalEvent:o}),this._defaultPrevented=!1;}preventDefault(){this._defaultPrevented=!0;}get defaultPrevented(){return this._defaultPrevented}}class mo extends t.Event{constructor(t,e,i){super(t,{originalEvent:i}),this._defaultPrevented=!1;}preventDefault(){this._defaultPrevented=!0;}get defaultPrevented(){return this._defaultPrevented}}class _o{constructor(t,e){this._map=t,this._clickTolerance=e.clickTolerance;}reset(){delete this._mousedownPos;}wheel(t){return this._firePreventable(new mo(t.type,this._map,t))}mousedown(t,e){return this._mousedownPos=e,this._firePreventable(new ho(t.type,this._map,t))}mouseup(t){this._map.fire(new ho(t.type,this._map,t));}click(t,e){this._mousedownPos&&this._mousedownPos.dist(e)>=this._clickTolerance||this._map.fire(new ho(t.type,this._map,t));}dblclick(t){return this._firePreventable(new ho(t.type,this._map,t))}mouseover(t){this._map.fire(new ho(t.type,this._map,t));}mouseout(t){this._map.fire(new ho(t.type,this._map,t));}touchstart(t){return this._firePreventable(new uo(t.type,this._map,t))}touchmove(t){this._map.fire(new uo(t.type,this._map,t));}touchend(t){this._map.fire(new uo(t.type,this._map,t));}touchcancel(t){this._map.fire(new uo(t.type,this._map,t));}_firePreventable(t){if(this._map.fire(t),t.defaultPrevented)return {}}isEnabled(){return !0}isActive(){return !1}enable(){}disable(){}}class po{constructor(t){this._map=t;}reset(){this._delayContextMenu=!1,delete this._contextMenuEvent;}mousemove(t){this._map.fire(new ho(t.type,this._map,t));}mousedown(){this._delayContextMenu=!0;}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new ho("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent);}contextmenu(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new ho(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault();}isEnabled(){return !0}isActive(){return !1}enable(){}disable(){}}class fo{constructor(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1;}isEnabled(){return !!this._enabled}isActive(){return !!this._active}enable(){this.isEnabled()||(this._enabled=!0);}disable(){this.isEnabled()&&(this._enabled=!1);}mousedown(t,e){this.isEnabled()&&t.shiftKey&&0===t.button&&(s.disableDrag(),this._startPos=this._lastPos=e,this._active=!0);}mousemoveWindow(t,e){if(!this._active)return;const i=e;if(this._lastPos.equals(i)||!this._box&&i.dist(this._startPos)<this._clickTolerance)return;const o=this._startPos;this._lastPos=i,this._box||(this._box=s.create("div","maplibregl-boxzoom mapboxgl-boxzoom",this._container),this._container.classList.add("maplibregl-crosshair","mapboxgl-crosshair"),this._fireEvent("boxzoomstart",t));const a=Math.min(o.x,i.x),r=Math.max(o.x,i.x),n=Math.min(o.y,i.y),l=Math.max(o.y,i.y);s.setTransform(this._box,`translate(${a}px,${n}px)`),this._box.style.width=r-a+"px",this._box.style.height=l-n+"px";}mouseupWindow(e,i){if(!this._active)return;if(0!==e.button)return;const o=this._startPos,a=i;if(this.reset(),s.suppressClick(),o.x!==a.x||o.y!==a.y)return this._map.fire(new t.Event("boxzoomend",{originalEvent:e})),{cameraAnimation:t=>t.fitScreenCoordinates(o,a,this._map.getBearing(),{linear:!0})};this._fireEvent("boxzoomcancel",e);}keydown(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t));}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair","mapboxgl-crosshair"),this._box&&(s.remove(this._box),this._box=null),s.enableDrag(),delete this._startPos,delete this._lastPos;}_fireEvent(e,i){return this._map.fire(new t.Event(e,{originalEvent:i}))}}function go(t,e){const i={};for(let o=0;o<t.length;o++)i[t[o].identifier]=e[o];return i}class xo{constructor(t){this.reset(),this.numTouches=t.numTouches;}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1;}touchstart(e,i,o){(this.centroid||o.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),o.length===this.numTouches&&(this.centroid=function(e){const i=new t.pointGeometry(0,0);for(const t of e)i._add(t);return i.div(e.length)}(i),this.touches=go(o,i)));}touchmove(t,e,i){if(this.aborted||!this.centroid)return;const o=go(i,e);for(const t in this.touches){const e=this.touches[t],i=o[t];(!i||i.dist(e)>30)&&(this.aborted=!0);}}touchend(t,e,i){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===i.length){const t=!this.aborted&&this.centroid;if(this.reset(),t)return t}}}class vo{constructor(t){this.singleTap=new xo(t),this.numTaps=t.numTaps,this.reset();}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset();}touchstart(t,e,i){this.singleTap.touchstart(t,e,i);}touchmove(t,e,i){this.singleTap.touchmove(t,e,i);}touchend(t,e,i){const o=this.singleTap.touchend(t,e,i);if(o){const e=t.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(o)<30;if(e&&i||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=o,this.count===this.numTaps)return this.reset(),o}}}class yo{constructor(){this._zoomIn=new vo({numTouches:1,numTaps:2}),this._zoomOut=new vo({numTouches:2,numTaps:1}),this.reset();}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset();}touchstart(t,e,i){this._zoomIn.touchstart(t,e,i),this._zoomOut.touchstart(t,e,i);}touchmove(t,e,i){this._zoomIn.touchmove(t,e,i),this._zoomOut.touchmove(t,e,i);}touchend(t,e,i){const o=this._zoomIn.touchend(t,e,i),a=this._zoomOut.touchend(t,e,i);return o?(this._active=!0,t.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:e=>e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(o)},{originalEvent:t})}):a?(this._active=!0,t.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:e=>e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}):void 0}touchcancel(){this.reset();}enable(){this._enabled=!0;}disable(){this._enabled=!1,this.reset();}isEnabled(){return this._enabled}isActive(){return this._active}}const bo={0:1,2:2};class wo{constructor(t){this.reset(),this._clickTolerance=t.clickTolerance||1;}reset(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton;}_correctButton(t,e){return !1}_move(t,e){return {}}mousedown(t,e){if(this._lastPoint)return;const i=s.mouseButton(t);this._correctButton(t,i)&&(this._lastPoint=e,this._eventButton=i);}mousemoveWindow(t,e){const i=this._lastPoint;if(i)if(t.preventDefault(),function(t,e){const i=bo[e];return void 0===t.buttons||(t.buttons&i)!==i}(t,this._eventButton))this.reset();else if(this._moved||!(e.dist(i)<this._clickTolerance))return this._moved=!0,this._lastPoint=e,this._move(i,e)}mouseupWindow(t){this._lastPoint&&s.mouseButton(t)===this._eventButton&&(this._moved&&s.suppressClick(),this.reset());}enable(){this._enabled=!0;}disable(){this._enabled=!1,this.reset();}isEnabled(){return this._enabled}isActive(){return this._active}}class To extends wo{mousedown(t,e){super.mousedown(t,e),this._lastPoint&&(this._active=!0);}_correctButton(t,e){return 0===e&&!t.ctrlKey}_move(t,e){return {around:e,panDelta:e.sub(t)}}}class Eo extends wo{_correctButton(t,e){return 0===e&&t.ctrlKey||2===e}_move(t,e){const i=.8*(e.x-t.x);if(i)return this._active=!0,{bearingDelta:i}}contextmenu(t){t.preventDefault();}}class Io extends wo{_correctButton(t,e){return 0===e&&t.ctrlKey||2===e}_move(t,e){const i=-.5*(e.y-t.y);if(i)return this._active=!0,{pitchDelta:i}}contextmenu(t){t.preventDefault();}}class So{constructor(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset();}reset(){this._active=!1,this._touches={},this._sum=new t.pointGeometry(0,0);}touchstart(t,e,i){return this._calculateTransform(t,e,i)}touchmove(t,e,i){if(this._active&&!(i.length<this._minTouches))return t.preventDefault(),this._calculateTransform(t,e,i)}touchend(t,e,i){this._calculateTransform(t,e,i),this._active&&i.length<this._minTouches&&this.reset();}touchcancel(){this.reset();}_calculateTransform(e,i,o){o.length>0&&(this._active=!0);const a=go(o,i),s=new t.pointGeometry(0,0),r=new t.pointGeometry(0,0);let n=0;for(const t in a){const e=a[t],i=this._touches[t];i&&(s._add(e),r._add(e.sub(i)),n++,a[t]=e);}if(this._touches=a,n<this._minTouches||!r.mag())return;const l=r.div(n);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:s.div(n),panDelta:l}}enable(){this._enabled=!0;}disable(){this._enabled=!1,this.reset();}isEnabled(){return this._enabled}isActive(){return this._active}}class Co{constructor(){this.reset();}reset(){this._active=!1,delete this._firstTwoTouches;}_start(t){}_move(t,e,i){return {}}touchstart(t,e,i){this._firstTwoTouches||i.length<2||(this._firstTwoTouches=[i[0].identifier,i[1].identifier],this._start([e[0],e[1]]));}touchmove(t,e,i){if(!this._firstTwoTouches)return;t.preventDefault();const[o,a]=this._firstTwoTouches,s=Po(i,e,o),r=Po(i,e,a);if(!s||!r)return;const n=this._aroundCenter?null:s.add(r).div(2);return this._move([s,r],n,t)}touchend(t,e,i){if(!this._firstTwoTouches)return;const[o,a]=this._firstTwoTouches,r=Po(i,e,o),n=Po(i,e,a);r&&n||(this._active&&s.suppressClick(),this.reset());}touchcancel(){this.reset();}enable(t){this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around;}disable(){this._enabled=!1,this.reset();}isEnabled(){return this._enabled}isActive(){return this._active}}function Po(t,e,i){for(let o=0;o<t.length;o++)if(t[o].identifier===i)return e[o]}function zo(t,e){return Math.log(t/e)/Math.LN2}class Do extends Co{reset(){super.reset(),delete this._distance,delete this._startDistance;}_start(t){this._startDistance=this._distance=t[0].dist(t[1]);}_move(t,e){const i=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(zo(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:zo(this._distance,i),pinchAround:e}}}function Ao(t,e){return 180*t.angleWith(e)/Math.PI}class Mo extends Co{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector;}_start(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1]);}_move(t,e){const i=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Ao(this._vector,i),pinchAround:e}}_isBelowThreshold(t){this._minDiameter=Math.min(this._minDiameter,t.mag());const e=25/(Math.PI*this._minDiameter)*360,i=Ao(t,this._startVector);return Math.abs(i)<e}}function Lo(t){return Math.abs(t.y)>Math.abs(t.x)}class Ro extends Co{reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints;}_start(t){this._lastPoints=t,Lo(t[0].sub(t[1]))&&(this._valid=!1);}_move(t,e,i){const o=t[0].sub(this._lastPoints[0]),a=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(o,a,i.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(o.y+a.y)/2*-.5}}gestureBeginsVertically(t,e,i){if(void 0!==this._valid)return this._valid;const o=t.mag()>=2,a=e.mag()>=2;if(!o&&!a)return;if(!o||!a)return void 0===this._firstMove&&(this._firstMove=i),i-this._firstMove<100&&void 0;const s=t.y>0==e.y>0;return Lo(t)&&Lo(e)&&s}}const ko={panStep:100,bearingStep:15,pitchStep:10};class Bo{constructor(){const t=ko;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1;}reset(){this._active=!1;}keydown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;let e=0,i=0,o=0,a=0,s=0;switch(t.keyCode){case 61:case 107:case 171:case 187:e=1;break;case 189:case 109:case 173:e=-1;break;case 37:t.shiftKey?i=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?i=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?o=1:(t.preventDefault(),s=-1);break;case 40:t.shiftKey?o=-1:(t.preventDefault(),s=1);break;default:return}return this._rotationDisabled&&(i=0,o=0),{cameraAnimation:r=>{const n=r.getZoom();r.easeTo({duration:300,easeId:"keyboardHandler",easing:Fo,zoom:e?Math.round(n)+e*(t.shiftKey?2:1):n,bearing:r.getBearing()+i*this._bearingStep,pitch:r.getPitch()+o*this._pitchStep,offset:[-a*this._panStep,-s*this._panStep],center:r.getCenter()},{originalEvent:t});}}}enable(){this._enabled=!0;}disable(){this._enabled=!1,this.reset();}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0;}enableRotation(){this._rotationDisabled=!1;}}function Fo(t){return t*(2-t)}const Oo=4.000244140625;class Uo{constructor(e,i){this._map=e,this._el=e.getCanvasContainer(),this._handler=i,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,t.bindAll(["_onTimeout"],this);}setZoomRate(t){this._defaultZoomRate=t;}setWheelZoomRate(t){this._wheelZoomRate=t;}isEnabled(){return !!this._enabled}isActive(){return !!this._active||void 0!==this._finishTimeout}isZooming(){return !!this._zooming}enable(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around);}disable(){this.isEnabled()&&(this._enabled=!1);}wheel(e){if(!this.isEnabled())return;let i=e.deltaMode===WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY;const o=t.exported.now(),a=o-(this._lastWheelEventTime||0);this._lastWheelEventTime=o,0!==i&&i%Oo==0?this._type="wheel":0!==i&&Math.abs(i)<4?this._type="trackpad":a>400?(this._type=null,this._lastValue=i,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(a*i)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,i+=this._lastValue)),e.shiftKey&&i&&(i/=4),this._type&&(this._lastWheelEvent=e,this._delta-=i,this._active||this._start(e)),e.preventDefault();}_onTimeout(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t);}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const i=s.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(i)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame());}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const e=this._map.transform;if(0!==this._delta){const t="wheel"===this._type&&Math.abs(this._delta)>Oo?this._wheelZoomRate:this._defaultZoomRate;let i=2/(1+Math.exp(-Math.abs(this._delta*t)));this._delta<0&&0!==i&&(i=1/i);const o="number"==typeof this._targetZoom?e.zoomScale(this._targetZoom):e.scale;this._targetZoom=Math.min(e.maxZoom,Math.max(e.minZoom,e.scaleZoom(o*i))),"wheel"===this._type&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0;}const i="number"==typeof this._targetZoom?this._targetZoom:e.zoom,o=this._startZoom,a=this._easing;let s,r=!1;if("wheel"===this._type&&o&&a){const e=Math.min((t.exported.now()-this._lastWheelEventTime)/200,1),n=a(e);s=t.number(o,i,n),e<1?this._frameId||(this._frameId=!0):r=!0;}else s=i,r=!0;return this._active=!0,r&&(this._active=!1,this._finishTimeout=setTimeout((()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout;}),200)),{noInertia:!0,needsRenderFrame:!r,zoomDelta:s-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let i=t.ease;if(this._prevEase){const e=this._prevEase,o=(t.exported.now()-e.start)/e.duration,a=e.easing(o+.01)-e.easing(o),s=.27/Math.sqrt(a*a+1e-4)*.01,r=Math.sqrt(.0729-s*s);i=t.bezier(s,r,.25,1);}return this._prevEase={start:t.exported.now(),duration:e,easing:i},i}reset(){this._active=!1;}}class No{constructor(t,e){this._clickZoom=t,this._tapZoom=e;}enable(){this._clickZoom.enable(),this._tapZoom.enable();}disable(){this._clickZoom.disable(),this._tapZoom.disable();}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Go{constructor(){this.reset();}reset(){this._active=!1;}dblclick(t,e){return t.preventDefault(),{cameraAnimation:i=>{i.easeTo({duration:300,zoom:i.getZoom()+(t.shiftKey?-1:1),around:i.unproject(e)},{originalEvent:t});}}}enable(){this._enabled=!0;}disable(){this._enabled=!1,this.reset();}isEnabled(){return this._enabled}isActive(){return this._active}}class Zo{constructor(){this._tap=new vo({numTouches:1,numTaps:1}),this.reset();}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset();}touchstart(t,e,i){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?i.length>0&&(this._swipePoint=e[0],this._swipeTouch=i[0].identifier):this._tap.touchstart(t,e,i));}touchmove(t,e,i){if(this._tapTime){if(this._swipePoint){if(i[0].identifier!==this._swipeTouch)return;const o=e[0],a=o.y-this._swipePoint.y;return this._swipePoint=o,t.preventDefault(),this._active=!0,{zoomDelta:a/128}}}else this._tap.touchmove(t,e,i);}touchend(t,e,i){this._tapTime?this._swipePoint&&0===i.length&&this.reset():this._tap.touchend(t,e,i)&&(this._tapTime=t.timeStamp);}touchcancel(){this.reset();}enable(){this._enabled=!0;}disable(){this._enabled=!1,this.reset();}isEnabled(){return this._enabled}isActive(){return this._active}}class qo{constructor(t,e,i){this._el=t,this._mousePan=e,this._touchPan=i;}enable(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan","mapboxgl-touch-drag-pan");}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan","mapboxgl-touch-drag-pan");}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Vo{constructor(t,e,i){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=i;}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable();}disable(){this._mouseRotate.disable(),this._mousePitch.disable();}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class jo{constructor(t,e,i,o){this._el=t,this._touchZoom=e,this._touchRotate=i,this._tapDragZoom=o,this._rotationDisabled=!1,this._enabled=!0;}enable(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate","mapboxgl-touch-zoom-rotate");}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate","mapboxgl-touch-zoom-rotate");}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable();}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable();}}const $o=t=>t.zoom||t.drag||t.pitch||t.rotate;class Wo extends t.Event{}function Xo(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}class Ho{constructor(e,i){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new no(e),this._bearingSnap=i.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(i),t.bindAll(["handleEvent","handleWindowEvent"],this);const o=this._el;this._listeners=[[o,"touchstart",{passive:!0}],[o,"touchmove",{passive:!1}],[o,"touchend",void 0],[o,"touchcancel",void 0],[o,"mousedown",void 0],[o,"mousemove",void 0],[o,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[o,"mouseover",void 0],[o,"mouseout",void 0],[o,"dblclick",void 0],[o,"click",void 0],[o,"keydown",{capture:!1}],[o,"keyup",void 0],[o,"wheel",{passive:!1}],[o,"contextmenu",void 0],[window,"blur",void 0]];for(const[t,e,i]of this._listeners)s.addEventListener(t,e,t===document?this.handleWindowEvent:this.handleEvent,i);}destroy(){for(const[t,e,i]of this._listeners)s.removeEventListener(t,e,t===document?this.handleWindowEvent:this.handleEvent,i);}_addDefaultHandlers(t){const e=this._map,i=e.getCanvasContainer();this._add("mapEvent",new _o(e,t));const o=e.boxZoom=new fo(e,t);this._add("boxZoom",o);const a=new yo,s=new Go;e.doubleClickZoom=new No(s,a),this._add("tapZoom",a),this._add("clickZoom",s);const r=new Zo;this._add("tapDragZoom",r);const n=e.touchPitch=new Ro;this._add("touchPitch",n);const l=new Eo(t),c=new Io(t);e.dragRotate=new Vo(t,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const h=new To(t),u=new So(t);e.dragPan=new qo(i,h,u),this._add("mousePan",h),this._add("touchPan",u,["touchZoom","touchRotate"]);const d=new Mo,m=new Do;e.touchZoomRotate=new jo(i,m,d,r),this._add("touchRotate",d,["touchPan","touchZoom"]),this._add("touchZoom",m,["touchPan","touchRotate"]);const _=e.scrollZoom=new Uo(e,this);this._add("scrollZoom",_,["mousePan"]);const p=e.keyboard=new Bo;this._add("keyboard",p),this._add("blockableMapEvent",new po(e));for(const i of ["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])t.interactive&&t[i]&&e[i].enable(t[i]);}_add(t,e,i){this._handlers.push({handlerName:t,handler:e,allowed:i}),this._handlersById[t]=e;}stop(t){if(!this._updatingCamera){for(const{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[];}}isActive(){for(const{handler:t}of this._handlers)if(t.isActive())return !0;return !1}isZooming(){return !!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return !!this._eventsInProgress.rotate}isMoving(){return Boolean($o(this._eventsInProgress))||this.isZooming()}_blockedByActive(t,e,i){for(const o in t)if(o!==i&&(!e||e.indexOf(o)<0))return !0;return !1}handleWindowEvent(t){this.handleEvent(t,`${t.type}Window`);}_getMapTouches(t){const e=[];for(const i of t)this._el.contains(i.target)&&e.push(i);return e}handleEvent(t,e){if("blur"===t.type)return void this.stop(!0);this._updatingCamera=!0;const i="renderFrame"===t.type?void 0:t,o={needsRenderFrame:!1},a={},r={},n=t.touches,l=n?this._getMapTouches(n):void 0,c=l?s.touchPos(this._el,l):s.mousePos(this._el,t);for(const{handlerName:s,handler:n,allowed:h}of this._handlers){if(!n.isEnabled())continue;let u;this._blockedByActive(r,h,s)?n.reset():n[e||t.type]&&(u=n[e||t.type](t,c,l),this.mergeHandlerResult(o,a,u,s,i),u&&u.needsRenderFrame&&this._triggerRenderFrame()),(u||n.isActive())&&(r[s]=n);}const h={};for(const t in this._previousActiveHandlers)r[t]||(h[t]=i);this._previousActiveHandlers=r,(Object.keys(h).length||Xo(o))&&(this._changes.push([o,a,h]),this._triggerRenderFrame()),(Object.keys(r).length||Xo(o))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:u}=o;u&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],u(this._map));}mergeHandlerResult(e,i,o,a,s){if(!o)return;t.extend(e,o);const r={handlerName:a,originalEvent:o.originalEvent||s};void 0!==o.zoomDelta&&(i.zoom=r),void 0!==o.panDelta&&(i.drag=r),void 0!==o.pitchDelta&&(i.pitch=r),void 0!==o.bearingDelta&&(i.rotate=r);}_applyChanges(){const e={},i={},o={};for(const[a,s,r]of this._changes)a.panDelta&&(e.panDelta=(e.panDelta||new t.pointGeometry(0,0))._add(a.panDelta)),a.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+a.zoomDelta),a.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+a.bearingDelta),a.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+a.pitchDelta),void 0!==a.around&&(e.around=a.around),void 0!==a.pinchAround&&(e.pinchAround=a.pinchAround),a.noInertia&&(e.noInertia=a.noInertia),t.extend(i,s),t.extend(o,r);this._updateMapTransform(e,i,o),this._changes=[];}_updateMapTransform(t,e,i){const o=this._map,a=o.transform;if(!Xo(t))return this._fireEvents(e,i,!0);let{panDelta:s,zoomDelta:r,bearingDelta:n,pitchDelta:l,around:c,pinchAround:h}=t;void 0!==h&&(c=h),o._stop(!0),c=c||o.transform.centerPoint;const u=a.pointLocation(s?c.sub(s):c);n&&(a.bearing+=n),l&&(a.pitch+=l),r&&(a.zoom+=r),a.setLocationAtPoint(u,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,i,!0);}_fireEvents(e,i,o){const a=$o(this._eventsInProgress),s=$o(e),r={};for(const t in e){const{originalEvent:i}=e[t];this._eventsInProgress[t]||(r[`${t}start`]=i),this._eventsInProgress[t]=e[t];}!a&&s&&this._fireEvent("movestart",s.originalEvent);for(const t in r)this._fireEvent(t,r[t]);s&&this._fireEvent("move",s.originalEvent);for(const t in e){const{originalEvent:i}=e[t];this._fireEvent(t,i);}const n={};let l;for(const t in this._eventsInProgress){const{handlerName:e,originalEvent:o}=this._eventsInProgress[t];this._handlersById[e].isActive()||(delete this._eventsInProgress[t],l=i[e]||o,n[`${t}end`]=l);}for(const t in n)this._fireEvent(t,n[t]);const c=$o(this._eventsInProgress);if(o&&(a||s)&&!c){this._updatingCamera=!0;const e=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),i=t=>0!==t&&-this._bearingSnap<t&&t<this._bearingSnap;e?(i(e.bearing||this._map.getBearing())&&(e.bearing=0),this._map.easeTo(e,{originalEvent:l})):(this._map.fire(new t.Event("moveend",{originalEvent:l})),i(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1;}}_fireEvent(e,i){this._map.fire(new t.Event(e,i?{originalEvent:i}:{}));}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add((t=>{delete this._frameId,this.handleEvent(new Wo("renderFrame",{timeStamp:t})),this._applyChanges();}))}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame());}}const Ko={extend:(e,...i)=>t.extend(e,...i),run(t){t();},logToElement(t,e=!1,i="log"){const o=window.document.getElementById(i);o&&(e&&(o.innerHTML=""),o.innerHTML+=`<br>${t}`);}};class Yo extends t.Evented{constructor(e,i){super(),this._moving=!1,this._zooming=!1,this.transform=e,this._bearingSnap=i.bearingSnap,t.bindAll(["_renderFrameCallback"],this);}getCenter(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(t,e){return this.jumpTo({center:t},e)}panBy(e,i,o){return e=t.pointGeometry.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},i),o)}panTo(e,i,o){return this.easeTo(t.extend({center:e},i),o)}getZoom(){return this.transform.zoom}setZoom(t,e){return this.jumpTo({zoom:t},e),this}zoomTo(e,i,o){return this.easeTo(t.extend({zoom:e},i),o)}zoomIn(t,e){return this.zoomTo(this.getZoom()+1,t,e),this}zoomOut(t,e){return this.zoomTo(this.getZoom()-1,t,e),this}getBearing(){return this.transform.bearing}setBearing(t,e){return this.jumpTo({bearing:t},e),this}getPadding(){return this.transform.padding}setPadding(t,e){return this.jumpTo({padding:t},e),this}rotateTo(e,i,o){return this.easeTo(t.extend({bearing:e},i),o)}resetNorth(e,i){return this.rotateTo(0,t.extend({duration:1e3},e),i),this}resetNorthPitch(e,i){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),i),this}snapToNorth(t,e){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,e):this}getPitch(){return this.transform.pitch}setPitch(t,e){return this.jumpTo({pitch:t},e),this}cameraForBounds(e,i){e=t.LngLatBounds.convert(e);const o=i&&i.bearing||0;return this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),o,i)}_cameraForBoxAndBearing(e,i,o,a){const s={top:0,bottom:0,right:0,left:0};if("number"==typeof(a=t.extend({padding:s,offset:[0,0],maxZoom:this.transform.maxZoom},a)).padding){const t=a.padding;a.padding={top:t,bottom:t,right:t,left:t};}a.padding=t.extend(s,a.padding);const r=this.transform,n=r.padding,l=r.project(t.LngLat.convert(e)),c=r.project(t.LngLat.convert(i)),h=l.rotate(-o*Math.PI/180),u=c.rotate(-o*Math.PI/180),d=new t.pointGeometry(Math.max(h.x,u.x),Math.max(h.y,u.y)),m=new t.pointGeometry(Math.min(h.x,u.x),Math.min(h.y,u.y)),_=d.sub(m),p=(r.width-(n.left+n.right+a.padding.left+a.padding.right))/_.x,f=(r.height-(n.top+n.bottom+a.padding.top+a.padding.bottom))/_.y;if(f<0||p<0)return void t.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");const g=Math.min(r.scaleZoom(r.scale*Math.min(p,f)),a.maxZoom),x=t.pointGeometry.convert(a.offset),v=new t.pointGeometry((a.padding.left-a.padding.right)/2,(a.padding.top-a.padding.bottom)/2).rotate(o*Math.PI/180),y=x.add(v).mult(r.scale/r.zoomScale(g));return {center:r.unproject(l.add(c).div(2).sub(y)),zoom:g,bearing:o}}fitBounds(t,e,i){return this._fitInternal(this.cameraForBounds(t,e),e,i)}fitScreenCoordinates(e,i,o,a,s){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.pointGeometry.convert(e)),this.transform.pointLocation(t.pointGeometry.convert(i)),o,a),a,s)}_fitInternal(e,i,o){return e?(delete(i=t.extend(e,i)).padding,i.linear?this.easeTo(i,o):this.flyTo(i,o)):this}jumpTo(e,i){this.stop();const o=this.transform;let a=!1,s=!1,r=!1;return "zoom"in e&&o.zoom!==+e.zoom&&(a=!0,o.zoom=+e.zoom),void 0!==e.center&&(o.center=t.LngLat.convert(e.center)),"bearing"in e&&o.bearing!==+e.bearing&&(s=!0,o.bearing=+e.bearing),"pitch"in e&&o.pitch!==+e.pitch&&(r=!0,o.pitch=+e.pitch),null==e.padding||o.isPaddingEqual(e.padding)||(o.padding=e.padding),this.fire(new t.Event("movestart",i)).fire(new t.Event("move",i)),a&&this.fire(new t.Event("zoomstart",i)).fire(new t.Event("zoom",i)).fire(new t.Event("zoomend",i)),s&&this.fire(new t.Event("rotatestart",i)).fire(new t.Event("rotate",i)).fire(new t.Event("rotateend",i)),r&&this.fire(new t.Event("pitchstart",i)).fire(new t.Event("pitch",i)).fire(new t.Event("pitchend",i)),this.fire(new t.Event("moveend",i))}easeTo(e,i){this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&&t.exported.prefersReducedMotion)&&(e.duration=0);const o=this.transform,a=this.getZoom(),s=this.getBearing(),r=this.getPitch(),n=this.getPadding(),l="zoom"in e?+e.zoom:a,c="bearing"in e?this._normalizeBearing(e.bearing,s):s,h="pitch"in e?+e.pitch:r,u="padding"in e?e.padding:o.padding,d=t.pointGeometry.convert(e.offset);let m=o.centerPoint.add(d);const _=o.pointLocation(m),p=t.LngLat.convert(e.center||_);this._normalizeCenter(p);const f=o.project(_),g=o.project(p).sub(f),x=o.zoomScale(l-a);let v,y;e.around&&(v=t.LngLat.convert(e.around),y=o.locationPoint(v));const b={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||l!==a,this._rotating=this._rotating||s!==c,this._pitching=this._pitching||h!==r,this._padding=!o.isPaddingEqual(u),this._easeId=e.easeId,this._prepareEase(i,e.noMoveStart,b),this._ease((e=>{if(this._zooming&&(o.zoom=t.number(a,l,e)),this._rotating&&(o.bearing=t.number(s,c,e)),this._pitching&&(o.pitch=t.number(r,h,e)),this._padding&&(o.interpolatePadding(n,u,e),m=o.centerPoint.add(d)),v)o.setLocationAtPoint(v,y);else {const t=o.zoomScale(o.zoom-a),i=l>a?Math.min(2,x):Math.max(.5,x),s=Math.pow(i,1-e),r=o.unproject(f.add(g.mult(e*s)).mult(t));o.setLocationAtPoint(o.renderWorldCopies?r.wrap():r,m);}this._fireMoveEvents(i);}),(t=>{this._afterEase(i,t);}),e),this}_prepareEase(e,i,o={}){this._moving=!0,i||o.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!o.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!o.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!o.pitching&&this.fire(new t.Event("pitchstart",e));}_fireMoveEvents(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e));}_afterEase(e,i){if(this._easeId&&i&&this._easeId===i)return;delete this._easeId;const o=this._zooming,a=this._rotating,s=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,o&&this.fire(new t.Event("zoomend",e)),a&&this.fire(new t.Event("rotateend",e)),s&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e));}flyTo(e,i){if(!e.essential&&t.exported.prefersReducedMotion){const o=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(o,i)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);const o=this.transform,a=this.getZoom(),s=this.getBearing(),r=this.getPitch(),n=this.getPadding(),l="zoom"in e?t.clamp(+e.zoom,o.minZoom,o.maxZoom):a,c="bearing"in e?this._normalizeBearing(e.bearing,s):s,h="pitch"in e?+e.pitch:r,u="padding"in e?e.padding:o.padding,d=o.zoomScale(l-a),m=t.pointGeometry.convert(e.offset);let _=o.centerPoint.add(m);const p=o.pointLocation(_),f=t.LngLat.convert(e.center||p);this._normalizeCenter(f);const g=o.project(p),x=o.project(f).sub(g);let v=e.curve;const y=Math.max(o.width,o.height),b=y/d,w=x.mag();if("minZoom"in e){const i=t.clamp(Math.min(e.minZoom,a,l),o.minZoom,o.maxZoom),s=y/o.zoomScale(i-a);v=Math.sqrt(s/w*2);}const T=v*v;function E(t){const e=(b*b-y*y+(t?-1:1)*T*T*w*w)/(2*(t?b:y)*T*w);return Math.log(Math.sqrt(e*e+1)-e)}function I(t){return (Math.exp(t)-Math.exp(-t))/2}function S(t){return (Math.exp(t)+Math.exp(-t))/2}const C=E(0);let P=function(t){return S(C)/S(C+v*t)},z=function(t){return y*((S(C)*(I(e=C+v*t)/S(e))-I(C))/T)/w;var e;},D=(E(1)-C)/v;if(Math.abs(w)<1e-6||!isFinite(D)){if(Math.abs(y-b)<1e-6)return this.easeTo(e,i);const t=b<y?-1:1;D=Math.abs(Math.log(b/y))/v,z=function(){return 0},P=function(e){return Math.exp(t*v*e)};}return e.duration="duration"in e?+e.duration:1e3*D/("screenSpeed"in e?+e.screenSpeed/v:+e.speed),e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==c,this._pitching=h!==r,this._padding=!o.isPaddingEqual(u),this._prepareEase(i,!1),this._ease((e=>{const d=e*D,p=1/P(d);o.zoom=1===e?l:a+o.scaleZoom(p),this._rotating&&(o.bearing=t.number(s,c,e)),this._pitching&&(o.pitch=t.number(r,h,e)),this._padding&&(o.interpolatePadding(n,u,e),_=o.centerPoint.add(m));const v=1===e?f:o.unproject(g.add(x.mult(z(d))).mult(p));o.setLocationAtPoint(o.renderWorldCopies?v.wrap():v,_),this._fireMoveEvents(i);}),(()=>this._afterEase(i)),e),this}isEasing(){return !!this._easeFrameId}stop(){return this._stop()}_stop(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const t=this._onEaseEnd;delete this._onEaseEnd,t.call(this,e);}if(!t){const t=this.handlers;t&&t.stop(!1);}return this}_ease(e,i,o){!1===o.animate||0===o.duration?(e(1),i()):(this._easeStart=t.exported.now(),this._easeOptions=o,this._onEaseFrame=e,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback));}_renderFrameCallback(){const e=Math.min((t.exported.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop();}_normalizeBearing(e,i){e=t.wrap(e,-180,180);const o=Math.abs(e-i);return Math.abs(e-360-i)<o&&(e-=360),Math.abs(e+360-i)<o&&(e+=360),e}_normalizeCenter(t){const e=this.transform;if(!e.renderWorldCopies||e.lngRange)return;const i=t.lng-e.center.lng;t.lng+=i>180?-360:i<-180?360:0;}}class Jo{constructor(e={}){this.options=e,t.bindAll(["_toggleAttribution","_updateData","_updateCompact","_updateCompactMinimize"],this);}getDefaultPosition(){return "bottom-right"}onAdd(t){return this._map=t,this._compact=this.options&&this.options.compact,this._container=s.create("details","maplibregl-ctrl maplibregl-ctrl-attrib mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=s.create("summary","maplibregl-ctrl-attrib-button mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=s.create("div","maplibregl-ctrl-attrib-inner mapboxgl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){s.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0;}_setElementTitle(t,e){const i=this._map._getUIString(`AttributionControl.${e}`);t.title=i,t.setAttribute("aria-label",i);}_toggleAttribution(){this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show","mapboxgl-compact-show")):(this._container.classList.add("maplibregl-compact-show","mapboxgl-compact-show"),this._container.removeAttribute("open")));}_updateData(t){!t||"metadata"!==t.sourceDataType&&"visibility"!==t.sourceDataType&&"style"!==t.dataType||this._updateAttributions();}_updateAttributions(){if(!this._map.style)return;let t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((t=>"string"!=typeof t?"":t))):"string"==typeof this.options.customAttribution&&t.push(this.options.customAttribution)),this._map.style.stylesheet){const t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id;}const e=this._map.style.sourceCaches;for(const i in e){const o=e[i];if(o.used){const e=o.getSource();e.attribution&&t.indexOf(e.attribution)<0&&t.push(e.attribution);}}t=t.filter((t=>String(t).trim())),t.sort(((t,e)=>t.length-e.length)),t=t.filter(((e,i)=>{for(let o=i+1;o<t.length;o++)if(t[o].indexOf(e)>=0)return !1;return !0}));const i=t.join(" | ");i!==this._attribHTML&&(this._attribHTML=i,t.length?(this._innerContainer.innerHTML=i,this._container.classList.remove("maplibregl-attrib-empty","mapboxgl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty","mapboxgl-attrib-empty"),this._updateCompact(),this._editLink=null);}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1===this._compact?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","mapboxgl-compact","maplibregl-compact-show","mapboxgl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show","mapboxgl-compact","mapboxgl-compact-show"));}_updateCompactMinimize(){this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show","mapboxgl-compact-show");}}class Qo{constructor(e={}){this.options=e,t.bindAll(["_updateCompact"],this);}getDefaultPosition(){return "bottom-left"}onAdd(t){this._map=t,this._compact=this.options&&this.options.compact,this._container=s.create("div","maplibregl-ctrl mapboxgl-ctrl");const e=s.create("a","maplibregl-ctrl-logo mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://maplibre.org/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){s.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0;}_updateCompact(){const t=this._container.children;if(t.length){const e=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1!==this._compact&&e.classList.add("maplibregl-compact","mapboxgl-compact"):e.classList.remove("maplibregl-compact","mapboxgl-compact");}}}class ta{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1;}add(t){const e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e}remove(t){const e=this._currentlyRunning,i=e?this._queue.concat(e):this._queue;for(const e of i)if(e.id===t)return void(e.cancelled=!0)}run(t=0){const e=this._currentlyRunning=this._queue;this._queue=[];for(const i of e)if(!i.cancelled&&(i.callback(t),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1;}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[];}}const ea={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},ia={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,maplibreLogo:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,fadeDuration:300,crossSourceCollisions:!0},oa={showCompass:!0,showZoom:!0,visualizePitch:!1};class aa{constructor(e,i,o=!1){this._clickTolerance=10,this.element=i,this.mouseRotate=new Eo({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,o&&(this.mousePitch=new Io({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),s.addEventListener(i,"mousedown",this.mousedown),s.addEventListener(i,"touchstart",this.touchstart,{passive:!1}),s.addEventListener(i,"touchmove",this.touchmove),s.addEventListener(i,"touchend",this.touchend),s.addEventListener(i,"touchcancel",this.reset);}down(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),s.disableDrag();}move(t,e){const i=this.map,o=this.mouseRotate.mousemoveWindow(t,e);if(o&&o.bearingDelta&&i.setBearing(i.getBearing()+o.bearingDelta),this.mousePitch){const o=this.mousePitch.mousemoveWindow(t,e);o&&o.pitchDelta&&i.setPitch(i.getPitch()+o.pitchDelta);}}off(){const t=this.element;s.removeEventListener(t,"mousedown",this.mousedown),s.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),s.removeEventListener(t,"touchmove",this.touchmove),s.removeEventListener(t,"touchend",this.touchend),s.removeEventListener(t,"touchcancel",this.reset),this.offTemp();}offTemp(){s.enableDrag(),s.removeEventListener(window,"mousemove",this.mousemove),s.removeEventListener(window,"mouseup",this.mouseup);}mousedown(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:()=>e.preventDefault()}),s.mousePos(this.element,e)),s.addEventListener(window,"mousemove",this.mousemove),s.addEventListener(window,"mouseup",this.mouseup);}mousemove(t){this.move(t,s.mousePos(this.element,t));}mouseup(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp();}touchstart(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=s.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>t.preventDefault()},this._startPos));}touchmove(t){1!==t.targetTouches.length?this.reset():(this._lastPos=s.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:()=>t.preventDefault()},this._lastPos));}touchend(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset();}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp();}}function sa(e,i,o){if(e=new t.LngLat(e.lng,e.lat),i){const a=new t.LngLat(e.lng-360,e.lat),s=new t.LngLat(e.lng+360,e.lat),r=o.locationPoint(e).distSqr(i);o.locationPoint(a).distSqr(i)<r?e=a:o.locationPoint(s).distSqr(i)<r&&(e=s);}for(;Math.abs(e.lng-o.center.lng)>180;){const t=o.locationPoint(e);if(t.x>=0&&t.y>=0&&t.x<=o.width&&t.y<=o.height)break;e.lng>o.center.lng?e.lng-=360:e.lng+=360;}return e}const ra={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function na(t,e,i){const o=t.classList;for(const t in ra)o.remove(`maplibregl-${i}-anchor-${t}`,`mapboxgl-${i}-anchor-${t}`);o.add(`maplibregl-${i}-anchor-${e}`,`mapboxgl-${i}-anchor-${e}`);}class la extends t.Evented{constructor(e,i){if(super(),(e instanceof HTMLElement||i)&&(e=t.extend({element:e},i)),t.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=e&&e.anchor||"center",this._color=e&&e.color||"#3FB1CE",this._scale=e&&e.scale||1,this._draggable=e&&e.draggable||!1,this._clickTolerance=e&&e.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=e&&e.rotation||0,this._rotationAlignment=e&&e.rotationAlignment||"auto",this._pitchAlignment=e&&e.pitchAlignment&&"auto"!==e.pitchAlignment?e.pitchAlignment:this._rotationAlignment,e&&e.element)this._element=e.element,this._offset=t.pointGeometry.convert(e&&e.offset||[0,0]);else {this._defaultMarker=!0,this._element=s.create("div"),this._element.setAttribute("aria-label","Map marker");const i=s.createNS("http://www.w3.org/2000/svg","svg"),o=41,a=27;i.setAttributeNS(null,"display","block"),i.setAttributeNS(null,"height",`${o}px`),i.setAttributeNS(null,"width",`${a}px`),i.setAttributeNS(null,"viewBox",`0 0 ${a} ${o}`);const r=s.createNS("http://www.w3.org/2000/svg","g");r.setAttributeNS(null,"stroke","none"),r.setAttributeNS(null,"stroke-width","1"),r.setAttributeNS(null,"fill","none"),r.setAttributeNS(null,"fill-rule","evenodd");const n=s.createNS("http://www.w3.org/2000/svg","g");n.setAttributeNS(null,"fill-rule","nonzero");const l=s.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"transform","translate(3.0, 29.0)"),l.setAttributeNS(null,"fill","#000000");const c=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(const t of c){const e=s.createNS("http://www.w3.org/2000/svg","ellipse");e.setAttributeNS(null,"opacity","0.04"),e.setAttributeNS(null,"cx","10.5"),e.setAttributeNS(null,"cy","5.80029008"),e.setAttributeNS(null,"rx",t.rx),e.setAttributeNS(null,"ry",t.ry),l.appendChild(e);}const h=s.createNS("http://www.w3.org/2000/svg","g");h.setAttributeNS(null,"fill",this._color);const u=s.createNS("http://www.w3.org/2000/svg","path");u.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),h.appendChild(u);const d=s.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"opacity","0.25"),d.setAttributeNS(null,"fill","#000000");const m=s.createNS("http://www.w3.org/2000/svg","path");m.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),d.appendChild(m);const _=s.createNS("http://www.w3.org/2000/svg","g");_.setAttributeNS(null,"transform","translate(6.0, 7.0)"),_.setAttributeNS(null,"fill","#FFFFFF");const p=s.createNS("http://www.w3.org/2000/svg","g");p.setAttributeNS(null,"transform","translate(8.0, 8.0)");const f=s.createNS("http://www.w3.org/2000/svg","circle");f.setAttributeNS(null,"fill","#000000"),f.setAttributeNS(null,"opacity","0.25"),f.setAttributeNS(null,"cx","5.5"),f.setAttributeNS(null,"cy","5.5"),f.setAttributeNS(null,"r","5.4999962");const g=s.createNS("http://www.w3.org/2000/svg","circle");g.setAttributeNS(null,"fill","#FFFFFF"),g.setAttributeNS(null,"cx","5.5"),g.setAttributeNS(null,"cy","5.5"),g.setAttributeNS(null,"r","5.4999962"),p.appendChild(f),p.appendChild(g),n.appendChild(l),n.appendChild(h),n.appendChild(d),n.appendChild(_),n.appendChild(p),i.appendChild(n),i.setAttributeNS(null,"height",o*this._scale+"px"),i.setAttributeNS(null,"width",a*this._scale+"px"),this._element.appendChild(i),this._offset=t.pointGeometry.convert(e&&e.offset||[0,-14]);}this._element.classList.add("maplibregl-marker","mapboxgl-marker"),this._element.addEventListener("dragstart",(t=>{t.preventDefault();})),this._element.addEventListener("mousedown",(t=>{t.preventDefault();})),na(this._element,this._anchor,"marker"),this._popup=null;}addTo(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),s.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),t){if(!("offset"in t.options)){const e=38.1,i=13.5,o=Math.sqrt(Math.pow(i,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-e],"bottom-left":[o,-1*(e-i+o)],"bottom-right":[-o,-1*(e-i+o)],left:[i,-1*(e-i)],right:[-i,-1*(e-i)]}:this._offset;}this._popup=t,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress);}return this}_onKeyPress(t){const e=t.code,i=t.charCode||t.keyCode;"Space"!==e&&"Enter"!==e&&32!==i&&13!==i||this.togglePopup();}_onMapClick(t){const e=t.originalEvent.target,i=this._element;this._popup&&(e===i||i.contains(e))&&this.togglePopup();}getPopup(){return this._popup}togglePopup(){const t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this}_update(t){if(!this._map)return;this._map.transform.renderWorldCopies&&(this._lngLat=sa(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);let e="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?e=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(e=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let i="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?i="rotateX(0deg)":"map"===this._pitchAlignment&&(i=`rotateX(${this._map.getPitch()}deg)`),t&&"moveend"!==t.type||(this._pos=this._pos.round()),s.setTransform(this._element,`${ra[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${e}`);}getOffset(){return this._offset}setOffset(e){return this._offset=t.pointGeometry.convert(e),this._update(),this}_onMove(e){if(!this._isDragging){const t=this._clickTolerance||this._map._clickTolerance;this._isDragging=e.point.dist(this._pointerdownPos)>=t;}this._isDragging&&(this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag")));}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive";}_addDragHandler(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp));}setDraggable(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(t){return this._rotation=t||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}const ca={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let ha,ua=0,da=!1;const ma={maxWidth:100,unit:"metric"};function _a(t,e,i){const o=i&&i.maxWidth||100,a=t._container.clientHeight/2,s=t.unproject([0,a]),r=t.unproject([o,a]),n=s.distanceTo(r);if(i&&"imperial"===i.unit){const i=3.2808*n;i>5280?pa(e,o,i/5280,t._getUIString("ScaleControl.Miles")):pa(e,o,i,t._getUIString("ScaleControl.Feet"));}else i&&"nautical"===i.unit?pa(e,o,n/1852,t._getUIString("ScaleControl.NauticalMiles")):n>=1e3?pa(e,o,n/1e3,t._getUIString("ScaleControl.Kilometers")):pa(e,o,n,t._getUIString("ScaleControl.Meters"));}function pa(t,e,i,o){const a=function(t){const e=Math.pow(10,`${Math.floor(t)}`.length-1);let i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:i>=1?1:function(t){const e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(i),e*i}(i);t.style.width=e*(a/i)+"px",t.innerHTML=`${a} ${o}`;}const fa={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},ga=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function xa(e){if(e){if("number"==typeof e){const i=Math.round(Math.sqrt(.5*Math.pow(e,2)));return {center:new t.pointGeometry(0,0),top:new t.pointGeometry(0,e),"top-left":new t.pointGeometry(i,i),"top-right":new t.pointGeometry(-i,i),bottom:new t.pointGeometry(0,-e),"bottom-left":new t.pointGeometry(i,-i),"bottom-right":new t.pointGeometry(-i,-i),left:new t.pointGeometry(e,0),right:new t.pointGeometry(-e,0)}}if(e instanceof t.pointGeometry||Array.isArray(e)){const i=t.pointGeometry.convert(e);return {center:i,top:i,"top-left":i,"top-right":i,bottom:i,"bottom-left":i,"bottom-right":i,left:i,right:i}}return {center:t.pointGeometry.convert(e.center||[0,0]),top:t.pointGeometry.convert(e.top||[0,0]),"top-left":t.pointGeometry.convert(e["top-left"]||[0,0]),"top-right":t.pointGeometry.convert(e["top-right"]||[0,0]),bottom:t.pointGeometry.convert(e.bottom||[0,0]),"bottom-left":t.pointGeometry.convert(e["bottom-left"]||[0,0]),"bottom-right":t.pointGeometry.convert(e["bottom-right"]||[0,0]),left:t.pointGeometry.convert(e.left||[0,0]),right:t.pointGeometry.convert(e.right||[0,0])}}return xa(new t.pointGeometry(0,0))}const va={supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:class extends Yo{constructor(e){var i;if(t.PerformanceUtils.mark(t.PerformanceMarkers.create),null!=(e=t.extend({},ia,e)).minZoom&&null!=e.maxZoom&&e.minZoom>e.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new to(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies),{bearingSnap:e.bearingSnap}),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new ta,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},ea,e.locale),this._clickTolerance=e.clickTolerance,this._pixelRatio=null!==(i=e.pixelRatio)&&void 0!==i?i:devicePixelRatio,this._requestManager=new r(e.transformRequest),"string"==typeof e.container){if(this._container=document.getElementById(e.container),!this._container)throw new Error(`Container '${e.container}' not found.`)}else {if(!(e.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container;}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(()=>this._update(!1))),this.on("moveend",(()=>this._update(!1))),this.on("zoom",(()=>this._update(!0))),"undefined"!=typeof window&&(addEventListener("online",this._onWindowOnline,!1),addEventListener("resize",this._onWindowResize,!1),addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ho(this,e),this._hash=e.hash&&new eo("string"==typeof e.hash&&e.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new Jo({customAttribution:e.customAttribution})),e.maplibreLogo&&this.addControl(new Qo,e.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet);})),this.on("data",(e=>{this._update("style"===e.dataType),this.fire(new t.Event(`${e.dataType}data`,e));})),this.on("dataloading",(e=>{this.fire(new t.Event(`${e.dataType}dataloading`,e));})),this.on("dataabort",(e=>{this.fire(new t.Event("sourcedataabort",e));}));}_getMapId(){return this._mapId}addControl(e,i){if(void 0===i&&(i=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const o=e.onAdd(this);this._controls.push(e);const a=this._controlPositions[i];return -1!==i.indexOf("bottom")?a.insertBefore(o,a.firstChild):a.appendChild(o),this}removeControl(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const i=this._controls.indexOf(e);return i>-1&&this._controls.splice(i,1),e.onRemove(this),this}hasControl(t){return this._controls.indexOf(t)>-1}resize(e){const i=this._containerDimensions(),o=i[0],a=i[1];this._resizeCanvas(o,a,this.getPixelRatio()),this.transform.resize(o,a),this.painter.resize(o,a,this.getPixelRatio());const s=!this._moving;return s&&(this.stop(),this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e))),this.fire(new t.Event("resize",e)),s&&this.fire(new t.Event("moveend",e)),this}getPixelRatio(){return this._pixelRatio}setPixelRatio(t){const[e,i]=this._containerDimensions();this._pixelRatio=t,this._resizeCanvas(e,i,t),this.painter.resize(e,i,t);}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()}setMinZoom(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t&&this.setZoom(t),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t&&this.setPitch(t),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(t){if((t=null==t?60:t)>85)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(t){return this.transform.renderWorldCopies=t,this._update()}project(e){return this.transform.locationPoint(t.LngLat.convert(e))}unproject(e){return this.transform.pointLocation(t.pointGeometry.convert(e))}isMoving(){return this._moving||this.handlers.isMoving()}isZooming(){return this._zooming||this.handlers.isZooming()}isRotating(){return this._rotating||this.handlers.isRotating()}_createDelegatedListener(t,e,i){if("mouseenter"===t||"mouseover"===t){let o=!1;const a=a=>{const s=this.getLayer(e)?this.queryRenderedFeatures(a.point,{layers:[e]}):[];s.length?o||(o=!0,i.call(this,new ho(t,this,a.originalEvent,{features:s}))):o=!1;};return {layer:e,listener:i,delegates:{mousemove:a,mouseout:()=>{o=!1;}}}}if("mouseleave"===t||"mouseout"===t){let o=!1;const a=a=>{(this.getLayer(e)?this.queryRenderedFeatures(a.point,{layers:[e]}):[]).length?o=!0:o&&(o=!1,i.call(this,new ho(t,this,a.originalEvent)));},s=e=>{o&&(o=!1,i.call(this,new ho(t,this,e.originalEvent)));};return {layer:e,listener:i,delegates:{mousemove:a,mouseout:s}}}{const o=t=>{const o=this.getLayer(e)?this.queryRenderedFeatures(t.point,{layers:[e]}):[];o.length&&(t.features=o,i.call(this,t),delete t.features);};return {layer:e,listener:i,delegates:{[t]:o}}}}on(t,e,i){if(void 0===i)return super.on(t,e);const o=this._createDelegatedListener(t,e,i);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(o);for(const t in o.delegates)this.on(t,o.delegates[t]);return this}once(t,e,i){if(void 0===i)return super.once(t,e);const o=this._createDelegatedListener(t,e,i);for(const t in o.delegates)this.once(t,o.delegates[t]);return this}off(t,e,i){return void 0===i?super.off(t,e):(this._delegatedListeners&&this._delegatedListeners[t]&&(o=>{const a=this._delegatedListeners[t];for(let t=0;t<a.length;t++){const o=a[t];if(o.layer===e&&o.listener===i){for(const t in o.delegates)this.off(t,o.delegates[t]);return a.splice(t,1),this}}})(),this)}queryRenderedFeatures(e,i){if(!this.style)return [];let o;if(void 0!==i||void 0===e||e instanceof t.pointGeometry||Array.isArray(e)||(i=e,e=void 0),i=i||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.pointGeometry||"number"==typeof e[0])o=[t.pointGeometry.convert(e)];else {const i=t.pointGeometry.convert(e[0]),a=t.pointGeometry.convert(e[1]);o=[i,new t.pointGeometry(a.x,i.y),a,new t.pointGeometry(i.x,a.y),i];}return this.style.queryRenderedFeatures(o,i,this.transform)}querySourceFeatures(t,e){return this.style.querySourceFeatures(t,e)}setStyle(e,i){return !1!==(i=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},i)).diff&&i.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,i),this):(this._localIdeographFontFamily=i.localIdeographFontFamily,this._updateStyle(e,i))}setTransformRequest(t){return this._requestManager.setTransformRequest(t),this}_getUIString(t){const e=this._locale[t];if(null==e)throw new Error(`Missing UI string '${t}'`);return e}_updateStyle(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new ie(this,e||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new ie(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty());}_diffStyle(e,i){if("string"==typeof e){const o=this._requestManager.transformRequest(e,t.ResourceType.Style);t.getJSON(o,((e,o)=>{e?this.fire(new t.ErrorEvent(e)):o&&this._updateDiff(o,i);}));}else "object"==typeof e&&this._updateDiff(e,i);}_updateDiff(e,i){try{this.style.setState(e)&&this._update(!0);}catch(o){t.warnOnce(`Unable to perform style diff: ${o.message||o.error||o}. Rebuilding the style from scratch.`),this._updateStyle(e,i);}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():t.warnOnce("There is no style added to the map.")}addSource(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)}isSourceLoaded(e){const i=this.style&&this.style.sourceCaches[e];if(void 0!==i)return i.loaded();this.fire(new t.ErrorEvent(new Error(`There is no source with ID '${e}'`)));}areTilesLoaded(){const t=this.style&&this.style.sourceCaches;for(const e in t){const i=t[e]._tiles;for(const t in i){const e=i[t];if("loaded"!==e.state&&"errored"!==e.state)return !1}}return !0}addSourceType(t,e,i){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,i)}removeSource(t){return this.style.removeSource(t),this._update(!0)}getSource(t){return this.style.getSource(t)}addImage(e,i,{pixelRatio:o=1,sdf:a=!1,stretchX:s,stretchY:r,content:n}={}){if(this._lazyInitEmptyStyle(),i instanceof HTMLImageElement||t.isImageBitmap(i)){const{width:l,height:c,data:h}=t.exported.getImageData(i);this.style.addImage(e,{data:new t.RGBAImage({width:l,height:c},h),pixelRatio:o,stretchX:s,stretchY:r,content:n,sdf:a,version:0});}else {if(void 0===i.width||void 0===i.height)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{const{width:l,height:c,data:h}=i,u=i;this.style.addImage(e,{data:new t.RGBAImage({width:l,height:c},new Uint8Array(h)),pixelRatio:o,stretchX:s,stretchY:r,content:n,sdf:a,version:0,userImage:u}),u.onAdd&&u.onAdd(this,e);}}}updateImage(e,i){const o=this.style.getImage(e);if(!o)return this.fire(new t.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const a=i instanceof HTMLImageElement||t.isImageBitmap(i)?t.exported.getImageData(i):i,{width:s,height:r,data:n}=a;if(void 0===s||void 0===r)return this.fire(new t.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(s!==o.data.width||r!==o.data.height)return this.fire(new t.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image")));const l=!(i instanceof HTMLImageElement||t.isImageBitmap(i));o.data.replace(n,l),this.style.updateImage(e,o);}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(t){this.style.removeImage(t);}loadImage(e,i){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),i);}listImages(){return this.style.listImages()}addLayer(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)}moveLayer(t,e){return this.style.moveLayer(t,e),this._update(!0)}removeLayer(t){return this.style.removeLayer(t),this._update(!0)}getLayer(t){return this.style.getLayer(t)}setLayerZoomRange(t,e,i){return this.style.setLayerZoomRange(t,e,i),this._update(!0)}setFilter(t,e,i={}){return this.style.setFilter(t,e,i),this._update(!0)}getFilter(t){return this.style.getFilter(t)}setPaintProperty(t,e,i,o={}){return this.style.setPaintProperty(t,e,i,o),this._update(!0)}getPaintProperty(t,e){return this.style.getPaintProperty(t,e)}setLayoutProperty(t,e,i,o={}){return this.style.setLayoutProperty(t,e,i,o),this._update(!0)}getLayoutProperty(t,e){return this.style.getLayoutProperty(t,e)}setLight(t,e={}){return this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)}getLight(){return this.style.getLight()}setFeatureState(t,e){return this.style.setFeatureState(t,e),this._update()}removeFeatureState(t,e){return this.style.removeFeatureState(t,e),this._update()}getFeatureState(t){return this.style.getFeatureState(t)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let t=0,e=0;return this._container&&(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]}_setupContainer(){const t=this._container;t.classList.add("maplibregl-map","mapboxgl-map");const e=this._canvasContainer=s.create("div","maplibregl-canvas-container mapboxgl-canvas-container",t);this._interactive&&e.classList.add("maplibregl-interactive","mapboxgl-interactive"),this._canvas=s.create("canvas","maplibregl-canvas mapboxgl-canvas",e),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");const i=this._containerDimensions();this._resizeCanvas(i[0],i[1],this.getPixelRatio());const o=this._controlContainer=s.create("div","maplibregl-control-container mapboxgl-control-container",t),a=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((t=>{a[t]=s.create("div",`maplibregl-ctrl-${t} mapboxgl-ctrl-${t}`,o);})),this._container.addEventListener("scroll",this._onMapScroll,!1);}_resizeCanvas(t,e,i){this._canvas.width=i*t,this._canvas.height=i*e,this._canvas.style.width=`${t}px`,this._canvas.style.height=`${e}px`;}_setupPainter(){const i=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),o=this._canvas.getContext("webgl",i)||this._canvas.getContext("experimental-webgl",i);o?(this.painter=new Ki(o,this.transform),t.exported$1.testSupport(o)):this.fire(new t.ErrorEvent(new Error("Failed to initialize WebGL")));}_contextLost(e){e.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new t.Event("webglcontextlost",{originalEvent:e}));}_contextRestored(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event("webglcontextrestored",{originalEvent:e}));}_onMapScroll(t){if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return !this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(t){return this._update(),this._renderTaskQueue.add(t)}_cancelRenderFrame(t){this._renderTaskQueue.remove(t);}_render(e){let i,o=0;const a=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(i=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,i),o=t.exported.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),this._removed)return;let s=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const e=this.transform.zoom,i=t.exported.now();this.style.zoomHistory.update(e,i);const o=new t.EvaluationParameters(e,{now:i,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),a=o.crossFadingFactor();1===a&&a===this._crossFadingFactor||(s=!0,this._crossFadingFactor=a),this.style.update(o);}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new t.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,t.PerformanceUtils.mark(t.PerformanceMarkers.load),this.fire(new t.Event("load"))),this.style&&(this.style.hasTransitions()||s)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){const e=t.exported.now()-o;a.endQueryEXT(a.TIME_ELAPSED_EXT,i),setTimeout((()=>{const o=a.getQueryObjectEXT(i,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(i),this.fire(new t.Event("gpu-timing-frame",{cpuTime:e,gpuTime:o}));}),50);}if(this.listens("gpu-timing-layer")){const e=this.painter.collectGpuTimers();setTimeout((()=>{const i=this.painter.queryGpuTimers(e);this.fire(new t.Event("gpu-timing-layer",{layerTimes:i}));}),50);}const r=this._sourcesDirty||this._styleDirty||this._placementDirty;return r||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new t.Event("idle")),!this._loaded||this._fullyLoaded||r||(this._fullyLoaded=!0,t.PerformanceUtils.mark(t.PerformanceMarkers.fullLoad)),this}redraw(){return this.style&&(this._frame&&(this._frame.cancel(),this._frame=null),this._render(0)),this}remove(){this._hash&&this._hash.remove();for(const t of this._controls)t.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),"undefined"!=typeof window&&(removeEventListener("resize",this._onWindowResize,!1),removeEventListener("orientationchange",this._onWindowResize,!1),removeEventListener("online",this._onWindowOnline,!1));const e=this.painter.context.gl.getExtension("WEBGL_lose_context");e&&e.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),s.remove(this._canvasContainer),s.remove(this._controlContainer),this._container.classList.remove("maplibregl-map","mapboxgl-map"),t.PerformanceUtils.clearMetrics(),this._removed=!0,this.fire(new t.Event("remove"));}triggerRepaint(){this.style&&!this._frame&&(this._frame=t.exported.frame((e=>{t.PerformanceUtils.frame(e),this._frame=null,this._render(e);})));}_onWindowOnline(){this._update();}_onWindowResize(t){this._trackResize&&this.resize({originalEvent:t})._update();}get showTileBoundaries(){return !!this._showTileBoundaries}set showTileBoundaries(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update());}get showPadding(){return !!this._showPadding}set showPadding(t){this._showPadding!==t&&(this._showPadding=t,this._update());}get showCollisionBoxes(){return !!this._showCollisionBoxes}set showCollisionBoxes(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update());}get showOverdrawInspector(){return !!this._showOverdrawInspector}set showOverdrawInspector(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update());}get repaint(){return !!this._repaint}set repaint(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint());}get vertices(){return !!this._vertices}set vertices(t){this._vertices=t,this._update();}_setCacheLimits(e,i){t.setCacheLimits(e,i);}},NavigationControl:class{constructor(e){this.options=t.extend({},oa,e),this._container=s.create("div","maplibregl-ctrl maplibregl-ctrl-group mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(t=>t.preventDefault())),this.options.showZoom&&(t.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in mapboxgl-ctrl-zoom-in",(t=>this._map.zoomIn({},{originalEvent:t}))),s.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out mapboxgl-ctrl-zoom-out",(t=>this._map.zoomOut({},{originalEvent:t}))),s.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(t.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("maplibregl-ctrl-compass mapboxgl-ctrl-compass",(t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t});})),this._compassIcon=s.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"));}_updateZoomButtons(){const t=this._map.getZoom(),e=t===this._map.getMaxZoom(),i=t===this._map.getMinZoom();this._zoomInButton.disabled=e,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",e.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString());}_rotateCompassArrow(){const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=t;}onAdd(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new aa(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){s.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map;}_createButton(t,e){const i=s.create("button",t,this._container);return i.type="button",i.addEventListener("click",e),i}_setButtonTitle(t,e){const i=this._map._getUIString(`NavigationControl.${e}`);t.title=i,t.setAttribute("aria-label",i);}},GeolocateControl:class extends t.Evented{constructor(e){super(),this.options=t.extend({},ca,e),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this);}onAdd(t){var e;return this._map=t,this._container=s.create("div","maplibregl-ctrl maplibregl-ctrl-group mapboxgl-ctrl mapboxgl-ctrl-group"),e=this._setupUI,void 0!==ha?e(ha):void 0!==window.navigator.permissions?window.navigator.permissions.query({name:"geolocation"}).then((t=>{ha="denied"!==t.state,e(ha);})):(ha=!!window.navigator.geolocation,e(ha)),this._container}onRemove(){void 0!==this._geolocationWatchID&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),s.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,ua=0,da=!1;}_isOutOfMapMaxBounds(t){const e=this._map.getMaxBounds(),i=t.coords;return e&&(i.longitude<e.getWest()||i.longitude>e.getEast()||i.latitude<e.getSouth()||i.latitude>e.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting");}}_onSuccess(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background");}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale","mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish();}}_updateCamera(e){const i=new t.LngLat(e.coords.longitude,e.coords.latitude),o=e.coords.accuracy,a=this._map.getBearing(),s=t.extend({bearing:a},this.options.fitBoundsOptions);this._map.fitBounds(i.toBounds(o),s,{geolocateSource:!0});}_updateMarker(e){if(e){const i=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(i).addTo(this._map),this._userLocationDotMarker.setLngLat(i).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius();}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove();}_updateCircleRadius(){const t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),i=this._map.unproject([1,t]),o=e.distanceTo(i),a=Math.ceil(2*this._accuracy/o);this._circleElement.style.width=`${a}px`,this._circleElement.style.height=`${a}px`;}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius();}_onError(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t),void 0!==this._geolocationWatchID&&this._clearWatch();}else {if(3===e.code&&da)return;this._setErrorState();}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale","mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish();}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0;}_setupUI(e){if(this._container.addEventListener("contextmenu",(t=>t.preventDefault())),this._geolocateButton=s.create("button","maplibregl-ctrl-geolocate mapboxgl-ctrl-geolocate",this._container),s.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e);}else {const t=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t);}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=s.create("div","maplibregl-user-location-dot mapboxgl-user-location-dot"),this._userLocationDotMarker=new la(this._dotElement),this._circleElement=s.create("div","maplibregl-user-location-accuracy-circle mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new la({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(e=>{e.geolocateSource||"ACTIVE_LOCK"!==this._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this.fire(new t.Event("trackuserlocationend")));}));}trigger(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":ua--,da=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error","mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error","mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background","mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"));}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active","mapboxgl-ctrl-geolocate-active");}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let t;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),ua++,ua>1?(t={maximumAge:6e5,timeout:0},da=!0):(t=this.options.positionOptions,da=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t);}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return !0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting","mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null);}},AttributionControl:Jo,LogoControl:Qo,ScaleControl:class{constructor(e){this.options=t.extend({},ma,e),t.bindAll(["_onMove","setUnit"],this);}getDefaultPosition(){return "bottom-left"}_onMove(){_a(this._map,this._container,this.options);}onAdd(t){return this._map=t,this._container=s.create("div","maplibregl-ctrl maplibregl-ctrl-scale mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){s.remove(this._container),this._map.off("move",this._onMove),this._map=void 0;}setUnit(t){this.options.unit=t,_a(this._map,this._container,this.options);}},FullscreenControl:class{constructor(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange");}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=s.create("div","maplibregl-ctrl maplibregl-ctrl-group mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){s.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._changeIcon);}_checkFullscreenSupport(){return !!(document.fullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled)}_setupUI(){const t=this._fullscreenButton=s.create("button","maplibregl-ctrl-fullscreen mapboxgl-ctrl-fullscreen",this._controlContainer);s.create("span","maplibregl-ctrl-icon mapboxgl-ctrl-icon",t).setAttribute("aria-hidden","true"),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._changeIcon);}_updateTitle(){const t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t;}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle());}_onClickFullscreen(){this._isFullscreen()?window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen&&window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen();}},Popup:class extends t.Evented{constructor(e){super(),this.options=t.extend(Object.create(fa),e),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this);}addTo(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer","mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this}isOpen(){return !!this._map}remove(){return this._content&&s.remove(this._content),this._container&&(s.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer","mapboxgl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer","mapboxgl-track-pointer")),this}getElement(){return this._container}setText(t){return this.setDOMContent(document.createTextNode(t))}setHTML(t){const e=document.createDocumentFragment(),i=document.createElement("body");let o;for(i.innerHTML=t;o=i.firstChild,o;)e.appendChild(o);return this.setDOMContent(e)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(t){return this.options.maxWidth=t,this._update(),this}setDOMContent(t){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=s.create("div","maplibregl-popup-content mapboxgl-popup-content",this._container);return this._content.appendChild(t),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(t){this._container&&this._container.classList.add(t);}removeClassName(t){this._container&&this._container.classList.remove(t);}setOffset(t){return this.options.offset=t,this._update(),this}toggleClassName(t){if(this._container)return this._container.classList.toggle(t)}_createCloseButton(){this.options.closeButton&&(this._closeButton=s.create("button","maplibregl-popup-close-button mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose));}_onMouseUp(t){this._update(t.point);}_onMouseMove(t){this._update(t.point);}_onDrag(t){this._update(t.point);}_update(t){if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(this._container||(this._container=s.create("div","maplibregl-popup mapboxgl-popup",this._map.getContainer()),this._tip=s.create("div","maplibregl-popup-tip mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((t=>this._container.classList.add(t))),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer","mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=sa(this._lngLat,this._pos,this._map.transform)),this._trackPointer&&!t)return;const e=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat);let i=this.options.anchor;const o=xa(this.options.offset);if(!i){const t=this._container.offsetWidth,a=this._container.offsetHeight;let s;s=e.y+o.bottom.y<a?["top"]:e.y>this._map.transform.height-a?["bottom"]:[],e.x<t/2?s.push("left"):e.x>this._map.transform.width-t/2&&s.push("right"),i=0===s.length?"bottom":s.join("-");}const a=e.add(o[i]).round();s.setTransform(this._container,`${ra[i]} translate(${a.x}px,${a.y}px)`),na(this._container,i,"popup");}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const t=this._container.querySelector(ga);t&&t.focus();}_onClose(){this.remove();}},Marker:la,Style:ie,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.pointGeometry,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,AJAXError:t.AJAXError,config:t.config,CanvasSource:R,GeoJSONSource:D,ImageSource:M,RasterDEMTileSource:z,RasterTileSource:C,VectorTileSource:S,VideoSource:L,prewarm:function(){H().acquire(j);},clearPrewarmedResources:function(){const t=X;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(j),X=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"));},get workerCount(){return $.workerCount},set workerCount(t){$.workerCount=t;},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e;},clearStorage(e){t.clearTileCache(e);},workerUrl:"",addProtocol(e,i){t.config.REGISTERED_PROTOCOLS[e]=i;},removeProtocol(e){delete t.config.REGISTERED_PROTOCOLS[e];}};return Ko.extend(va,{isSafari:t.isSafari,getPerformanceMetrics:t.PerformanceUtils.getPerformanceMetrics}),va}));var mapplsgl$1 = maplibregl;return mapplsgl$1;}));Element.prototype.hasClass = function (className) {this.className && new RegExp("(^|\\s)" + className + "(\\s|$)").test(this.className);};Element.prototype.removeClass = function (ele, cls) {if (ele.hasClass(cls)) {var reg = new RegExp('(\\s|^)' + cls + '(\\s|$)');ele.className = ele.className.replace(reg, ' ');}};Element.prototype.toggleClass = function (ele, cls, id) {if (!ele.hasClass(cls)) { var p_ele = document.getElementById(id);if(p_ele!=null){p_ele.removeClass(p_ele, cls); ele.className += " " + cls;}}};var cur_srpt="";try{cur_srpt=document.currentScript;}catch(e){};var map_o=[], bm=function(d){ return mappls.$(d);},mappls = (function(){ var M={ rv:function(s){var _0xc5d8=["","\x6A\x6F\x69\x6E","\x72\x65\x76\x65\x72\x73\x65","\x73\x70\x6C\x69\x74","\x62\x21","\x72\x65\x70\x6C\x61\x63\x65"];if(s){return atob(s[_0xc5d8[5]](_0xc5d8[4],_0xc5d8[0])[_0xc5d8[3]](_0xc5d8[0])[_0xc5d8[2]]()[_0xc5d8[1]](_0xc5d8[0]))}}, current_location:[], ST:"", req:"",mObj:[], no:-1,popup:[], bounds: new mapplsgl.LngLatBounds(), markerPosition: [], listStyles:'',tkn_cll_send:0, vectorStyle: JSON.parse(_0xMMIst), mmi_mkr:[], stop_mkr_num:[],stop_mkr:[], point_km:500, tim:new Date(),indr_pos:'top-right', ac: null, expiry:Math.floor(Date.now()/1000)+0, satelliteStyle: JSON.parse(_1msat), overlaysList: ["polygon", "polyline", "circle", "symbol", "cluster", "cluster-icon", "unclustered-point"], featureType: ["Polygon", "LineString", "Point"], sources: {}, layers: {}, clusterLayer: [], _vs: function () { return this.vectorStyle; }, $:function(dv){ return dv.indexOf('#')===0?document.getElementById(dv.substring(1)):dv.indexOf('.')===0?document.getElementsByClassName(dv.substring(1)):'';}, _hs: function (map_no) { mappls.ST=!mappls.ST?mappls.mmi.lr:mappls.ST; var latersrc=bm('#layer_mp'+map_no); if(mappls.ST!='satellite') { if(map_o[map_no].getZoom()>=17) map_o[map_no].setZoom(16); map_o[map_no].setMaxZoom(16); mappls.ST='satellite';if(latersrc) latersrc.src=mappls.mmi.pth+'/mapview.jpg';mappls._act(map_no,"satellite");return this.satelliteStyle; } else { map_o[map_no].setMaxZoom(19); mappls.ST=mappls.mmi.lr;if(latersrc) latersrc.src=mappls.mmi.pth+'/hybridview.jpg';mappls._act(map_no,"raster");return this.vectorStyle; } }, _lsat: function (map_no) { var z = map_o[map_no].getZoom(); mappls.removeGsonData(map_no); if (mappls.ac !== null) { mappls.ac.options.content = mappls.satelliteAttribute; } map_o[map_no].setStyle(this._hs(map_no)); map_o[map_no].setZoom(z); }, _li:function(e) { var tile="mapmyindia.com/advancedmaps/v1/"+mappls.mmi.k+"/base_label/{z}/{x}/{y}.png"; if (mappls.ac !== null) { mappls.ac.options.content = mappls.satelliteAttribute; } ind_st= { "version": 8, "sources": { "raster-tiles": { "type": "raster", "tiles": [ "https://apis."+tile.replace('base_label','still_map'),"https://apis."+tile.replace('base_label','still_map'),"https://mt2."+tile.replace('base_label','still_map') ], "tileSize": 256 } }, "layers": [{"id": "raster-tiles","type": "raster","source": "raster-tiles","minzoom": 3,"maxzoom": 18}] }; map_o.setStyle(ind_st);map_o.setZoom(map_o.getZoom()); }, _act: function (map_no,layer) { var attrdv=bm("#mLogo"+map_no),map=map_o[map_no],osm=0, indB={"_sw": {"lng": 65.236592,"lat": 4.137793},"_ne": {"lng": 100.917333,"lat": 36.967963}},mapB=map.getBounds(), hasInd=0,cw=map._container.clientWidth,mob=(cw<450?1:0),mmi_copy=" Map Data © MapmyIndia", Lgsrc=mappls.logo+"?1",wmlg=bm('#watermark_logo'+map_no); try{ if(mapB && attrdv){ if(mapB.contains({lng: 78.150, lat: 25.275}) || mapB.contains(indB._sw) || mapB.contains(indB._ne) || (mapB._ne.lat>indB._sw.lat && mapB._sw.lat>indB._sw.lat && mapB._ne.lat<indB._ne.lat && mapB._sw.lat<indB._ne.lat && mapB._ne.lng>indB._sw.lng && mapB._sw.lng>indB._sw.lng && mapB._ne.lng<indB._ne.lng && mapB._sw.lng<indB._ne.lng)) hasInd=1; if(!hasInd && layer!='raster' && map.getZoom()>9) osm=1; if(!hasInd && Lgsrc.indexOf('?claim')==-1) Lgsrc=Lgsrc.replace('mappls_mmi','mappls'); if(map.getSource("Bhuvan")) { mmi_copy+=", Satellite © Bhuvan (NRSC)"; Lgsrc=Lgsrc.replace('.png','_hybrid.png'); } else if(osm){ mmi_copy=(mob?mmi_copy.replace('Map Data ',''):mmi_copy)+", OpenStreetMap contributors"; } if(bm('#osrm'+map_no)) bm('#osrm'+map_no).style.display=osm?'inline-block':'none'; if(bm("#copyright"+map_no)) bm("#copyright"+map_no).innerHTML=mmi_copy; if(wmlg && Lgsrc!==wmlg.src) wmlg.src= Lgsrc; if(!attrdv.innerHTML){ var wu='www.mappls.com',logoU=(location.host==wu?'#':"https://"+wu),report=mappls.mmi.claim.indexOf('report:false')!==-1?" ":"<b id='rp_"+map_no+"'> | <a style='cursor:pointer;margin-right:8px;pointer-events:all' onclick=\"window.open('https://www.mappls.com/report@'+btoa(map_o["+map_no+"].getCenter().lat.toPrecision(8))+','+btoa(map_o["+map_no+"].getCenter().lng.toPrecision(8))+','+btoa(map_o["+map_no+"].getZoom()));return false\">Report</a></b></span>", mmiAttribute="<div class ='cst-attrib-cont' id='mmi_attrib"+map_no+"' style='user-select: none;-webkit-user-select: none;-moz-user-select: none; position:absolute;width:100%;bottom:0;"+(mob?"":"")+";white-space: nowrap;'><a href='"+logoU+"' target='"+(logoU!='#'?'blank':'')+"' style='pointer-events:"+(mappls.mmi.claim && mappls.mmi.claim.indexOf('logoLink:')==-1?"all":"none")+";display:inline-block;margin-left:5px;position:relative;"+(mob?"top:14px":"")+"'><img src='"+Lgsrc+"' alt='mappls.com' title='mappls.com' id='watermark_logo"+map_no+"' /></a><span style='line-height:15px;background:rgba(255, 255, 255, .4);font-size:11px;float: right;margin-top:14px;"+(mob?"width:100%;text-align:right":"")+"'><span id='copyright"+map_no+"'>"+mmi_copy+"</span>"+report+"</span></div>"; attrdv.innerHTML=mmiAttribute; } } }catch(e){console.log(e);} }, encd:function(s,k){var _0x53e9=['toString','length','charCodeAt'];(function(_0x42f3a4,_0x53e994){var _0x440b66=function(_0x2a67f0){while(--_0x2a67f0){_0x42f3a4['push'](_0x42f3a4['shift']());}};_0x440b66(++_0x53e994);}(_0x53e9,0x17d));var _0x440b=function(_0x42f3a4,_0x53e994){_0x42f3a4=_0x42f3a4-0x0;var _0x440b66=_0x53e9[_0x42f3a4];return _0x440b66;};var enc='',str=s[_0x440b('0x0')]();for(var i=0x0;i<s[_0x440b('0x1')];i++){var a=s[_0x440b('0x2')](i);var b=a^k;enc=enc+String['fromCharCode'](b);}return enc;}, chtkn:function(call) { var dt = new Date();dt.setHours(dt.getHours()-1); if(mappls.tim<dt || call===1) { if(cur_srpt.src.indexOf('advancedmaps/')>1) { MapUtil.getJSON(cur_srpt.src+'&mtk='+Math.random(), function(data) { if(data){ mappls.mmi.pb=data;mappls.tim=new Date();} else console.log('!pb'); }); } return true; } else return false; }, _4:function (id, p) { plidx = 0; pgidx = 0; cidx = 0; imgidx = 0; clstridx = 0; clcnt = 0;clmrk=0; unclcnt = 0; nodiv="Map Container div not found, please check timing of your map div initialization"; if(!id) {console.error(nodiv);return false;} if(typeof id=='object') id=id.id; else if(!document.getElementById(id)){console.error(nodiv);return false;} cont_id = id; if(id==undefined || !id){console.warn("Error:Map conatainer not defined!!");return false;} if(!p) p={}; var center = p.center !== undefined ? [p.center.hasOwnProperty('lng')?p.center.lng:p.center[1],p.center.hasOwnProperty('lat')?p.center.lat:p.center[0]] : [77.23, 28.61]; var zm = (p.zoom !== undefined ? p.zoom : 10), mizm = (p.minZoom !== undefined ? p.minZoom : (mappls.mmi.lr=='raster'?3:1)), mxzm = (p.maxZoom !== undefined ? p.maxZoom : (mappls.mmi.lr=='vector'?22:19)), hash = (p.hash !== undefined ? p.hash : false), style=(p.style !== undefined ? p.style : ''), tilehost=(p.tilehost!=undefined?p.tilehost:''), backgroundColor=(p.backgroundColor!=undefined?p.backgroundColor:'#eaeaea'); if(p.disableDoubleClickZoom==true) p.doubleClickZoom=false; if(p.draggable!=undefined) p.dragPan=p.draggable; if(p.indoor_position!==undefined) mappls.indr_pos=p.indoor_position; if(p.tilt!=undefined) p.pitch=p.tilt; if(p.heading) p.bearing=p.heading; var scale = p.scaleControl !== undefined ? p.scaleControl : true; var zc = p.zoomControl !== undefined && p.zoomControl===false ? p.zoomControl : true; var mhy = p.satellite !== undefined ? p.satellite : false,mcomps = p.rotateControl !== undefined ? p.rotateControl : true; var traffic = p.traffic !== undefined ? p.traffic : false; M.no++; var layer = p.layer !== undefined ? p.layer : mappls.mmi.lr?mappls.mmi.lr:"raster"; var map_options={container: id,center: center,attributionControl: false,fadeDuration:0,zoom: zm, hash: hash,transformRequest:function(url, resourceType){if(p.transformRequest) return p.transformRequest(url, resourceType);else return mappls.sH(url, resourceType,tilehost);}, maxZoom: mxzm, minZoom: mizm}; for (var key in p) { if(!map_options[key]) map_options[key]=p[key]; } var existId=0; if(M.no>=1) { if(map_o[M.no-1] && map_o[M.no-1].getDiv() && map_o[M.no-1].getDiv().id==id) { map_o[M.no-1].remove();existId=1; if(bm("#mmi_menu"+(M.no-1))){bm("#mmi_menu"+(M.no-1)).remove();} } } map_o[M.no] = new mapplsgl.Map(map_options); mappls.mObj[id]=map_o[M.no]; if(style) map_o[M.no].setStyle(style); else if (layer === "vector"||layer === "raster"|| !layer) { var styl=mappls._vs();if(styl && styl.layers) styl.layers[0].paint["background-color"]=backgroundColor; map_o[M.no].setStyle(styl).styleN='standard-day'; } else if (layer === "mmi") { mappls._li(); }else {return false;} var timeout,mmalrt = document.createElement("div"),mpLogo=document.createElement("div");mmalrt.id='mmi_alert'+M.no;mmalrt.style='display:none;position: absolute;z-index: 111;background: #fff;top: 50%;left: 50%;transform: translate(-50%, -50%);text-align:center;padding: 8px;font-size:16px'; mpLogo.id='mLogo'+M.no; bm('#'+cont_id).appendChild(mmalrt);bm('#'+cont_id).appendChild(mpLogo); mappls._act(M.no,layer); if(p.disableDefaultUI!==true ){ if (zc!==false) { var zmpos="";if(p.hasOwnProperty('zoomControlOptions')) { if(p.zoomControlOptions.hasOwnProperty('position')) zmpos=p.zoomControlOptions.position } mappls.addHybridControl(M.no,mhy,mcomps,zmpos,traffic,bm('#'+id).id); } if (scale === true) {map_o[M.no].addControl(new mapplsgl.ScaleControl({maxWidth: 60,unit: ['imperial']}),'bottom-right');} if(p.fullscreenControl!==false){ var psg=p.hasOwnProperty('fullscreenControlOptions')?!p.fullscreenControlOptions.hasOwnProperty('position')?"top-right":p.fullscreenControlOptions.position.replace('_','-').match(/(top-left|top-right|bottom-left|bottom-right)/i)[0]:"top-right";map_o[M.no].addControl(new mapplsgl.FullscreenControl(), psg.toLowerCase());} if(p.geolocation==true){ var psg_gloc=p.hasOwnProperty('geolocationControlOptions')?!p.geolocationControlOptions.hasOwnProperty('position')?"top-right":p.geolocationControlOptions.position.replace('_','-').match(/(top-left|top-right|bottom-left|bottom-right)/i)[0]:"top-right";mappls.geo(p);} if(bm("#mcompass"+M.no)){bm("#mcompass"+M.no).style.transform = "rotate("+(360-(map_o[M.no].getBearing()))+"deg)";} } if(p.clickableIcons!==false && mappls.mmi.lr=='vector'){ var clk_callback="";if(p.hasOwnProperty('clickableIcons_callback')) clk_callback=p.clickableIcons_callback; map_o[M.no].on('mousemove', function(e) {mappls.infowin(map_o[M.no],e,clk_callback);}).on('click', function(e) {if(e.lngLat!=undefined){e.preventDefault();mappls.infowin(map_o[M.no],e,clk_callback);}}); } map_o[M.no].on('move', function(e){mappls.tkn_cll_send=0;if(map_o[this.num].getBearing()) if(bm("#mcompass"+this.num)){bm("#mcompass"+this.num).style.transform = "rotate("+(360-(map_o[this.num].getBearing()))+"deg)";}}). on('dragend',function(e){ mappls.indoor(map_o[M.no],e,p.indoor,p.indoor_callback);mappls.chtkn(); mappls._act(M.no,layer); }).on('moveend',function(){ try{ var id="footprints_ind1_3d",mp=this; if(this.getTilt()>1 && this.getTilt()<70 && this.getZoom()>16 && this.getLayer(id)){ var mp=this; setTimeout(function(){ var ar=[];mp.queryRenderedFeatures({ layers: [id] }).map(function(f){var f=f.properties.UID;if(ar.indexOf(f)==-1) ar.push(f)}); if(ar.length) { if(mp.getLayer(id).type=='fill-extrusion') mp.setPaintProperty(id,'fill-extrusion-height', ['match', ['get', 'UID'],ar,['get',"c"],0]); } },100); } }catch(e){}; }).on('load',function(e){mappls.indoor(map_o[M.no],e,p.indoor,p.indoor_callback);mappls._act(M.no,layer); if(p.dynamic_pois){ this.addLayer( { "id": "dynamic_pois", "type": "symbol", "source": { "type": "vector", "tiles" : ["https://explore.mapmyindia.com/apis/O2O/action/vector_tile/{z}/{x}/{y}.pbf?access_token=v_mmi"], "minzoom": 14, "maxzoom": 16 }, "source-layer": "MDL_poi", "minzoom": 5, "layout": { "text-size": 13, "symbol-avoid-edges": true, "text-font": [ "Open Sans Medium" ], "text-field": "{LBL_NME}", "text-anchor": "top", "text-max-width": 7, "symbol-placement": "point", "icon-allow-overlap": false, "icon-image": "common2_blue", "icon-size": 0.8, "text-offset": [ 0, 0.7 ], "icon-rotation-alignment": "viewport" }, "paint": { "text-color": "#044568", "text-halo-color": "#fff", "text-halo-width": 0.7 } }) } }).on('zoomend',function(e){ mappls.indoor(this,e,p.indoor,p.indoor_callback);mappls._act(M.no,layer); }).on('error',function(e){ if("function"==typeof p.token_callback) {var sn=0;if(e.error && e.error.status===400 && !mappls.tkn_cll_send) {p.token_callback({error:"To"+"ken "+(e.error.status===401?"Exp"+"ired":"Failed"),code:e.error.status});mappls.tkn_cll_send=1;}} }).on('pitchend',function(e){ if(!e.duration) this.autoPitch=false; var t=this.getPitch()>20?"2D":"3D"; if(bm('#d3'+this.num)) bm('#d3'+this.num).innerHTML=t; }); if(p.scrollwheel===false || p.gestureHandlling==true) { map_o[M.no].on('wheel', function(e){ var fing=1; if (e.originalEvent && 'touches' in e.originalEvent && e.originalEvent.touches.length >= 2) fing=2; if(e.originalEvent.ctrlKey == true || fing==2) { map_o[M.no]['scrollZoom'].enable();if(timeout)clearTimeout(timeout);bm('#mmi_alert'+M.no).style.display='none'; } else { map_o[M.no]['scrollZoom'].disable(); bm('#mmi_alert'+M.no).style.display='inline';bm('#mmi_alert'+M.no).innerHTML='Press ctrl to zoom'; if(timeout)clearTimeout(timeout); timeout=setTimeout(function() {bm('#mmi_alert'+M.no).style.display='none';}, 500); } }); } if(p.gestureHandlling==true && window.devicePixelRatio>1) { map_o[M.no].on('touchstart', function(e){ var fing=1;if (e.originalEvent && 'touches' in e.originalEvent && e.originalEvent.touches.length >= 2) fing=2; if(fing==2) { map_o[M.no]['dragPan'].enable(); if(timeout)clearTimeout(timeout);bm('#mmi_alert'+M.no).style.display='none'; } else { map_o[M.no]['dragPan'].disable(); bm('#mmi_alert'+M.no).style.display='inline';bm('#mmi_alert'+M.no).innerHTML='Press double fingers drag'; if(timeout)clearTimeout(timeout);timeout=setTimeout(function() {bm('#mmi_alert'+M.no).style.display='none';}, 500); } }); } setTimeout(function(){var _0xf160=["\x5B\x62\x6D\x63\x6C\x6B\x5D","\x71\x75\x65\x72\x79\x53\x65\x6C\x65\x63\x74\x6F\x72\x41\x6C\x6C","\x6C\x65\x6E\x67\x74\x68","\x63\x6C\x69\x63\x6B","\x62\x6D\x63\x6C\x6B","\x67\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65","\x28","\x72\x65\x70\x6C\x61\x63\x65","\x2E","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72"];var fcl=document[_0xf160[1]](_0xf160[0]);for(var i=0;i< fcl[_0xf160[2]];i++){fcl[i][_0xf160[9]](_0xf160[3],function(){var _0x3ff9x3=this[_0xf160[5]](_0xf160[4]);if(_0x3ff9x3){setTimeout(_0x3ff9x3[_0xf160[7]](/\!/g,_0xf160[8])[_0xf160[7]](/\|/g,_0xf160[6]),1)}},false)}},1000); var Nm=M.no; map_o[Nm].getHeading = function () {return map_o[M.no].getBearing();}; map_o[Nm].setHeading = function (heading) { map_o[M.no].setBearing(heading);}; map_o[Nm].getDiv = function () {return document.getElementById(id);}; map_o[Nm].getViewBounds=function(p){ var m=this,c=m._container; if(!p) p={left:0,bottom:0,top:0,right:0}; return (new mappls.LngLatBounds) .extend(m.unproject(mappls.Point(p.left?p.left:0,p.top?p.top:0))) .extend(m.unproject(mappls.Point(p.right?c.clientWidth-p.right:c.clientWidth,p.top?p.top:0))) .extend(m.unproject(mappls.Point(p.right?c.clientWidth-p.right:c.clientWidth,p.bottom?c.clientHeight-p.bottom:c.clientHeight))) .extend(m.unproject(mappls.Point(p.left?p.left:0,p.bottom?c.clientHeight-p.bottom:c.clientHeight))); }; map_o[Nm].getTilt = function () {return map_o[M.no].getPitch();}; map_o[Nm].setTilt = function (tilt) {map_o[M.no].setPitch(tilt);}; map_o[Nm].addListener=function(evt,c){ this.on(evt,c);}, map_o[Nm].addListenerOnce=function(evt,c){ this.on(evt,c);}, map_o[Nm].addDomListener=function(evt,c) { this.on(evt,c);}, map_o[Nm].addDomListenerOnce=function(e,c){ this.once(e,c);}, map_o[Nm].clearListeners=function(evt,c){this.off(evt,c);}; map_o[Nm].setView=function(pt,z){return this.jumpTo({center:[pt[1],pt[0]],zoom:z?z:this.getZoom()});}; map_o[Nm].models=function(c){if(c) return mappls.add3DModel({map:this});else mappls.removeModel3D({map:this});}; map_o[Nm][atob('cmVhbHZpZXc=')]=function(s,cb){if('function'!== typeof mappls[atob('cnZs')]) mappls.mjs('realview_v1.js');try{mappls[atob('cnZs')](this,s,cb);}catch(e){console.warn(e);}}; map_o[Nm].closePopup=function(callback){ mappls.closepop(); if(callback) callback(); }; map_o[Nm][atob('c2V0TGFuZw==')] =function(l,f) { if(l && (this.lang!==l || f==1) && (l!=='en' || this.lang!=='en')) { if(!this.lang && l!=='en') { mapplsgl.setRTLTextPlugin(mappls.mmi.pth+"/../vector_map/assets/v3.0/BMunicode.js",false); } if(l=='en' && !this.lang) return false; this.lang=l; var s='indic-hindi';if(l=='en') s='standard-day'; if(this.styleN.indexOf(s)==-1){ mappls.setStyle(s,this); this.once('data',function(){if(l!=='en') {this[atob('c2V0TGFuZw==')](l,1);}});this.styleN=s;return false; } var lrs=this.getStyle().layers,chklng=0; for(var i=0;i<lrs.length;i++){ if(lrs[i].source=='maplabel' && lrs[i].layout && lrs[i].layout['text-field'] && lrs[i].layout['text-field'].indexOf('name_')>=1) { var n=lrs[i].layout['text-field'].split('}'),tf=lrs[i].layout['text-font'][0].split('_'); this.setLayoutProperty(lrs[i].id, 'text-field','{name_'+l+'}'+n[1]).setLayoutProperty(lrs[i].id, 'text-font',[tf[0]+'_'+(l=='hi' || l=='mr' ?'hm':l)+'_'+tf[2]]); } } return true; } }; map_o[Nm][atob('c2V0VG9rZW4=')] =function(t) { var rtn=false; if(t){ var map=this,pth=mappls.mmi.pth.replace('//map','/map').split('/map_sdk')[0]; if(pth) { pth+="/advancedmaps/v1/"+t.toString()+"/map_sdk?v=2&layer=raster&checkToken="+Math.floor(Math.random()*100); var res=MapUtil.getJSON(pth,function(d){ if(d && d.indexOf(atob('Ym0h'))!=-1){ var d_arr=d.split(atob('Ym0h')); if(d[0]) {mappls.expiry=(Math.floor(Date.now()/1000)+d_arr[0]); map_key=mappls.mmi.k=t.toString(); map.setStyle(map.getStyle()); } if(d[1]) { mappls.mmi.pb=btoa(d_arr[1]+"bm!"+t.toString()); if("object"==typeof MMIencrypt) MMIencrypt['setPub'+'licKey']('bm!') } rtn=true; } }) } } return rtn; }; map_o[Nm]['num']=Nm; map_o[Nm].attribution=function(h){if(this.num!==undefined && h){var adv=mappls.$('#mmi_attrib'+this.num);if(adv) adv.innerHTML=h;} ;}; map_o[Nm][atob('dHJhZmZpYw==')]=function(s){ if(this.getStyle()){ var lrs=this.getStyle().layers; for(var i=0;i<lrs.length;i++){ if(lrs[i].source=='traffic') {this.setLayoutProperty(lrs[i].id, 'visibility',(s===false?'none':'visible'));} } } }; map_o[Nm][atob('YWRkVGlsZQ==')]=function(d,st){ if(!d || !d.tiles) return false; if(!st){ d.id=(new Date()).getTime(); st={'id': 'tl'+d.id,'type': 'raster','source': {'type': d.type?d.type:'raster','tiles': d.tiles,'tileSize': d.size?d.size:256,'minzoom':d.minzoom?d.minzoom:this.getMinZoom(),'maxzoom':d.maxzoom?d.maxzoom:this.getMaxZoom()}}; } if(this.isStyleLoaded() && d.tiles){ this.addLayer(st,d.beforeId?d.beforeId:'water_ocean_label'); if(d.type=='raster-dem'){ this.setTerrain({source: d.id, exaggeration: d.exaggeration?d.exaggeration:2.5}); } } else this.once('load',function(){this[atob('YWRkVGlsZQ==')](d,st);}); return st; }; mappls.icn_arr=[];mappls.indoor_flr_clk=[]; return map_o[Nm]; }, closepop:function(){var pps=bm('.maplibregl-popup'); if(pps.length>=1) { while(pps.length>0) pps[0].remove(); }}, geo:function(p){ var glc=new mapplsgl.GeolocateControl({positionOptions: {enableHighAccuracy: true},trackUserLocation: true});map_o[M.no].addControl(glc); glc.on('geolocate',function(data) {mappls.current_location=[data.coords.latitude,data.coords.longitude];if(p.geolocation_callback) p.geolocation_callback(data);}); glc.on('error',function(e){try{document.querySelector('.maplibregl-ctrl-geolocate').removeAttribute('disabled');}catch(e){};console.log(e)}); }, ind_ctrl:[],indoor_flr_clk:[], indoor:function(mapobj,e,indoor_sts,indoor_callback) { if(indoor_sts!==false) { if(mapobj.getZoom()>=16) { var layer=(map_o[M.no].getLayer('footprints_indoor_3d_1_floor')!=undefined?map_o[M.no].queryRenderedFeatures({layers:['footprints_indoor_3d_1_floor']}):''); if(layer.length>=1) { var tb="<table id='indoor_dv'>",tr="",building=[],open_one=0; for(var i=0;i<layer.length;i++) { var ppt=layer[i].properties,flt_dv="",bulding=(ppt.BLDG_ID!=undefined?ppt.BLDG_ID:ppt.NAME),flt_no=(ppt.INI_FLOOR && parseInt(ppt.INI_FLOOR)>0?parseInt(ppt.FLOOR):(parseInt(ppt.FLOOR)+parseInt(ppt.INI_FLOOR)))-1,base_flr=-1; if(building.indexOf(bulding)!=-1) continue; building.push(bulding); var iniflr_ct=(ppt.INI_FLOOR>0?ppt.INI_FLOOR:0); if(ppt.FLOOR>1) { var maxflr_ct=(ppt.INI_FLOOR<0?(ppt.FLOOR+ppt.INI_FLOOR):ppt.FLOOR); for(var j=iniflr_ct;j<maxflr_ct;j++) { flt_dv+="<div onclick=\"mappls.floor_show({map:map_o["+M.no+"],floor:"+flt_no+",bldg_id:'"+bulding+"',div:this});\" class='flr "+(mappls.indoor_flr_clk[0]===flt_no+1 && mappls.indoor_flr_clk[1]==bulding?'flrclk':'')+"' >"+(flt_no>0?flt_no:'G')+"</div>";flt_no--; } if(maxflr_ct-iniflr_ct==1) { flt_dv+="<div class='flr' style='cursor:default;font-size:10px;color:#084dc4'>[:]</div>"; } } if(ppt.INI_FLOOR<0) { for(var k=ppt.INI_FLOOR;k<0;k++) { flt_dv+="<div onclick=\"mappls.floor_show({map:map_o["+M.no+"],floor:"+base_flr+",bldg_id:'"+bulding+"',div:this});\" class='flr "+(mappls.indoor_flr_clk[0]===base_flr+1?'flrclk':'')+"' >"+base_flr+"</div>";base_flr--; } } var def_open_flr=""; if(mappls.indoor_flr_clk[1]===undefined || mappls.indoor_flr_clk[1]=='undefined'){if(i===0) def_open_flr="flr_opndv";open_one=1;} else if(mappls.indoor_flr_clk[1]==bulding ) {def_open_flr="flr_opndv";open_one=1;} if(mappls.indoor_flr_clk[0]-1!=iniflr_ct && mappls.indoor_flr_clk[1]!=bulding) mappls.floor_show({map:map_o[M.no],floor:iniflr_ct}); if(ppt.FLOOR>1 || ppt.INI_FLOOR<0) { tr+="<tr id='"+bulding+"' class='bl_flr_dv "+def_open_flr+"' ><td id='fsl"+M.no+"'>"+flt_dv+"</td></tr>"; tr+="<tr onclick=\"if(bm('.flr_opndv').length>0) bm('.flr_opndv')[0].classList.remove('flr_opndv');var ds=bm('#"+bulding+"');ds.classList.add('flr_opndv');\" ><td><div class='indoor_nme' title='Indoor Floor View - "+ppt.NAME+"'>"+ppt.NAME+"</div></td></tr>"; } } if(indoor_callback!=undefined) {indoor_callback(layer);return true;} else { if(mappls.ind_ctrl[M.no]) mapobj.removeControl(mappls.ind_ctrl[M.no]); mappls.ind_ctrl[M.no]=new mcontrol(tb+tr+"</table>",'indoor_cls'); mapobj.addControl(mappls.ind_ctrl[M.no],mappls.indr_pos.replace('_','-')); if(open_one<1) { try{bm('.bl_flr_dv')[0].classList.add("flr_opndv");}catch(e){}open_one=1;mappls.floor_show({map:map_o[M.no],floor:0});} } } else if(mappls.ind_ctrl[M.no]) {mapobj.removeControl(mappls.ind_ctrl[M.no]);mappls.ind_ctrl[M.no]="";} } else if(mappls.ind_ctrl[M.no]) {mapobj.removeControl(mappls.ind_ctrl[M.no]);mappls.ind_ctrl[M.no]="";} } }, indr_lr:[], floor_show:function(params) { var currentFloor = params.floor; if(currentFloor>=0) currentFloor+=1; if(isNaN(currentFloor)===false) { var prevflr=1,flrclk= document.getElementsByClassName('flrclk'); if(flrclk.length>0){flrclk[0].classList.remove('flrclk');} if(mappls.indoor_flr_clk[0]) prevflr=mappls.indoor_flr_clk[0]; if(params.div!=undefined)params.div.classList.add("flrclk"); mappls.indoor_flr_clk[0]=currentFloor;mappls.indoor_flr_clk[1]=params.bldg_id; if(mappls.indr_lr.length<1) { var lrs=params.map.getStyle().layers; lrs.forEach(function(layer, i){if(layer && layer.id.toLowerCase().indexOf('indoor_')!==-1){mappls.indr_lr.push(layer.id);}}) } mappls.indr_lr.forEach(function(layer, i){ if(layer){ var currentFilter = params.map.getFilter(layer); if(currentFilter!=undefined) { var ftr=JSON.stringify(currentFilter); var flr_txt='L00',flr_replace_txt=(currentFloor<10?'L00':'L0')+currentFloor;if(currentFloor<0) flr_replace_txt='B00'+Math.abs(currentFloor); if(ftr.indexOf('B00')!=-1) {flr_txt='B00';prevflr=Math.abs(prevflr);} if(prevflr>9) flr_txt='L0'; if(ftr.indexOf('"L0')!=-1 || ftr.indexOf('"B0')!=-1) { var nftr=JSON.parse(ftr.replace(flr_txt+prevflr,flr_replace_txt)); params.map.setFilter(layer, nftr); } params.map.setLayoutProperty(layer, 'visibility', (currentFloor===1 && layer=='footprints_indoor_2_3floors'?'none':'visible')); } } }); } }, addControl:function(p) { if(p.map && p.html) { var pos="top-right";if(p.position=='top-left'||p.position=='bottom-left'||p.position=='bottom-right') pos=p.position; var ctl=new mcontrol(p.html,p.class?p.class:""); p.map.addControl(ctl,pos); ctl.remove=function(){if(this.map) this.map.removeControl(this);}; return ctl; } else console.warn("Either map object or html missing"); }, infowin:function(map,e,callback) { var pcr,evt=e.originalEvent.type; try{pcr=map.getCanvas().style.cursor;features = map.queryRenderedFeatures(e.point);}catch(e){} if(map && map.isStyleLoaded() && pcr!=='crosshair'){ var elc='',name='',name_a='',allw=1; try{ if(features[0].layer.type=='symbol' && features[0].properties.ELOC) { elc=features[0].properties.ELOC; name=(features[0].properties.description?features[0].properties.description:features[0].properties.c); if(!name) name=features[0].properties.BLDG_NO;if(!name) name=features[0].properties.name_en;if(!name) name=features[0].properties.LBL_NME; if(map.lang){name_a=features[0].properties['name_'+map.lang];} else if(features[0].properties.name_all) name_a=features[0].properties.name_all; if(evt=='click') { features.forEach(function(x) { if(x.layer && x.layer.id && x.layer.id=='RealView-Layer') allw=0; }); if(allw){ if(!name) name="Mappls PIN:"+elc; if(callback){callback({eloc:elc});} else {new mapplsgl.Popup({maxWidth:'200px'}).setLngLat([e.lngLat.lng,e.lngLat.lat]).setHTML("<h3>"+(name.indexOf('undefined')==-1?name:'')+(name_a?"<br>"+name_a:'')+"</h3><div style='text-align: center'><a href='https://www.mappls.com/"+elc+"' target='_blank' style='text-decoration:none;color:#22d0b2'><span style='vertical-align:middle'> Open with </span><img src='"+mappls.mmi.pth+"/../map_v3/mapplslogo.png' style='width:65px;vertical-align:middle'></a></div>").addTo(map);} } } if(pcr=='') map.getCanvas().style.cursor = 'pointer'; var id=features[0].layer.id; } else if((features[0].source=="maplabel" || features[0].source=="maplayout") && pcr=='pointer') map.getCanvas().style.cursor = ''; }catch(e){} } }, p_host:0,ftime:new Date().getTime(), sH:function(url, resourceType,tilehost) { if(typeof url=='string'){ var _0x2dab7f=_0x58aa;(function(_0x146a97,_0x3717ad){var _0x14430b=_0x58aa,_0xe3a6d8=_0x146a97();while(!![]){try{var _0xce79f4=parseInt(_0x14430b(0x1c2))/0x1*(parseInt(_0x14430b(0x1d9))/0x2)+parseInt(_0x14430b(0x1de))/0x3+parseInt(_0x14430b(0x1bb))/0x4+parseInt(_0x14430b(0x1c9))/0x5*(-parseInt(_0x14430b(0x1b9))/0x6)+-parseInt(_0x14430b(0x1dd))/0x7+-parseInt(_0x14430b(0x1d7))/0x8+parseInt(_0x14430b(0x1c5))/0x9*(-parseInt(_0x14430b(0x1c7))/0xa);if(_0xce79f4===_0x3717ad)break;else _0xe3a6d8['push'](_0xe3a6d8['shift']());}catch(_0x3922ee){_0xe3a6d8['push'](_0xe3a6d8['shift']());}}}(_0x4a66,0x28e15),mappls[_0x2dab7f(0x1bd)]());function _0x58aa(_0x13a8df,_0xee361){var _0x4a6626=_0x4a66();return _0x58aa=function(_0x58aadd,_0x6519cf){_0x58aadd=_0x58aadd-0x1b8;var _0x4837f9=_0x4a6626[_0x58aadd];return _0x4837f9;},_0x58aa(_0x13a8df,_0xee361);}if(url==undefined||url===!![])return![];function _0x4a66(){var _0x4deec0=['cache','https://mt1','indoor_','vsl','floor','{x}','.pbf','12rJUGMT','cach','984404pMPkFg','replace','chtkn','{y}','indoor_private','mmi_h','&t=','461ENFIqF','nnl','mmi','1476RcZKMx','&cache=false','7580LHMNYS','https://apis','558365XfuvZT','split','indoor_private&','https://','p_host','rfl','object','tdl','encrypt','region=','pbf','dem_tile','indexOf','{z}','60984ZZolqL','access_token=','622azvDqm','vfl','nol','length','775222iwYbxS','732000zsJYsY','v_mmi','&rg=','.mapmyindia.com','xsl','htl','&x-sec'];_0x4a66=function(){return _0x4deec0;};return _0x4a66();}if((url[_0x2dab7f(0x1d5)]('.pbf')==-0x1||url[_0x2dab7f(0x1d5)](_0x2dab7f(0x1d4))!=-0x1)&&url['indexOf'](_0x2dab7f(0x1df))>0x0)return url+=(mappls[_0x2dab7f(0x1e5)]===![]?_0x2dab7f(0x1c6):'')+_0x2dab7f(0x1e4)+this['mmi']['a'],{'url':url[_0x2dab7f(0x1bc)](_0x2dab7f(0x1c0),_0x2dab7f(0x1e6))['replace']('v_mmi',mappls['mmi']['k'])};else{if(url['indexOf'](_0x2dab7f(0x1b8))>0x0&&url[_0x2dab7f(0x1d5)]('v_mmi')>0x0){var md=function(_0x5f36ac){var _0x192d73=_0x2dab7f,_0x42d6e9='';for(var _0x5a16d2=0x0;_0x5a16d2<_0x5f36ac[_0x192d73(0x1dc)];_0x5a16d2++){if(_0x5f36ac[_0x5a16d2]==='0')_0x42d6e9=_0x42d6e9+'rzl';else{if(_0x5f36ac[_0x5a16d2]==='1')_0x42d6e9+=_0x192d73(0x1db);else{if(_0x5f36ac[_0x5a16d2]==='2')_0x42d6e9=_0x42d6e9+'wtl';else{if(_0x5f36ac[_0x5a16d2]==='3')_0x42d6e9=_0x42d6e9+_0x192d73(0x1e3);else{if(_0x5f36ac[_0x5a16d2]==='4')_0x42d6e9=_0x42d6e9+_0x192d73(0x1ce);else{if(_0x5f36ac[_0x5a16d2]==='5')_0x42d6e9=_0x42d6e9+_0x192d73(0x1da);else{if(_0x5f36ac[_0x5a16d2]==='6')_0x42d6e9=_0x42d6e9+_0x192d73(0x1e2);else{if(_0x5f36ac[_0x5a16d2]==='7')_0x42d6e9=_0x42d6e9+_0x192d73(0x1e8);else{if(_0x5f36ac[_0x5a16d2]==='8')_0x42d6e9=_0x42d6e9+'tel';else{if(_0x5f36ac[_0x5a16d2]==='9')_0x42d6e9=_0x42d6e9+_0x192d73(0x1c3);else{if(_0x5f36ac[_0x5a16d2]==='/')_0x42d6e9=_0x42d6e9+'sl';else{if(_0x5f36ac[_0x5a16d2]==='.')_0x42d6e9=_0x42d6e9+_0x192d73(0x1d0);else{if(_0x5f36ac[_0x5a16d2]==='?')_0x42d6e9=_0x42d6e9+'ql';else _0x42d6e9=_0x42d6e9+_0x5f36ac[_0x5a16d2]+'l';}}}}}}}}}}}}}return btoa(_0x42d6e9);},url_part=url[_0x2dab7f(0x1ca)]('/'),url_len=url_part[_0x2dab7f(0x1dc)],encode_part=url_part[url_len-0x3]+'/'+url_part[url_len-0x2]+'/'+url_part[url_len-0x1];encode_part['indexOf'](_0x2dab7f(0x1d8))!==-0x1&&(encode_part=encode_part['split']('?')[0x0]);var dmn=0x0,z=url_part[url_len-0x3];if(z>0x3&&z<0x6)dmn=0x1;else{if(z<0x9)dmn=0x2;else{if(z<0xc)dmn=0x3;else{if(z<0xf)dmn=0x4;else{if(z<0x19)dmn=0x5;}}}}var new_url=(url[_0x2dab7f(0x1d5)]('http')==-0x1?_0x2dab7f(0x1cc):'')+url['replace'](_0x2dab7f(0x1c0),'mt'+dmn)[_0x2dab7f(0x1bc)]('v_mmi',mappls['mmi']['k'])[_0x2dab7f(0x1bc)](encode_part,encode_part['indexOf']('pbf!')==-0x1?_0x2dab7f(0x1d3):'');tilehost&&(new_url=tilehost+url['replace'](_0x2dab7f(0x1e1),'')[_0x2dab7f(0x1bc)](_0x2dab7f(0x1c8),'')[_0x2dab7f(0x1bc)]('.mappls.com','')[_0x2dab7f(0x1bc)](_0x2dab7f(0x1c0),'')[_0x2dab7f(0x1bc)](_0x2dab7f(0x1df),mappls['mmi']['k'])[_0x2dab7f(0x1bc)](encode_part,'pbf'));mappls[_0x2dab7f(0x1cd)]=mappls[_0x2dab7f(0x1cd)]+0x1;if(encode_part[_0x2dab7f(0x1d5)](_0x2dab7f(0x1bf))!==-0x1)encode_part=encode_part['replace'](_0x2dab7f(0x1e7),_0x2dab7f(0x1cb));var v=(url_part[0x6]?Math[_0x2dab7f(0x1e9)](url_part[0x6]):'')+(mappls[_0x2dab7f(0x1c4)]['v']?mappls[_0x2dab7f(0x1c4)]['v']:0x1),en_part=_0x2dab7f(0x1cf)==typeof MMIencrypt?MMIencrypt[_0x2dab7f(0x1d1)](encode_part[_0x2dab7f(0x1bc)](_0x2dab7f(0x1b8),'')[_0x2dab7f(0x1bc)]('!','')):![];if(tilehost[_0x2dab7f(0x1d5)](_0x2dab7f(0x1d6))!=-0x1)return{'url':tilehost[_0x2dab7f(0x1bc)](_0x2dab7f(0x1d6),dmn)[_0x2dab7f(0x1bc)](_0x2dab7f(0x1ea),url_part[url_len-0x2])[_0x2dab7f(0x1bc)](_0x2dab7f(0x1be),url_part[url_len-0x1][_0x2dab7f(0x1bc)]('.pbf',''))};var rgn='';if(url[_0x2dab7f(0x1d5)](_0x2dab7f(0x1d2))!==-0x1){var rur=url[_0x2dab7f(0x1ca)](_0x2dab7f(0x1d2))[0x1][_0x2dab7f(0x1ca)]('&')[0x0];if(rur)rgn=rur;}if(en_part===![])en_part='ll'+md(encode_part);var u=new_url+(new_url['indexOf']('?')==-0x1?'?':'&')+'b='+v+'&x-sec'+this['mmi']['a']+_0x2dab7f(0x1e0)+rgn+'&'+mappls['mmi'][_0x2dab7f(0x1ba)]+_0x2dab7f(0x1c1)+encodeURIComponent(en_part);return u=u+(mappls[_0x2dab7f(0x1e5)]===![]?_0x2dab7f(0x1c6):''),{'url':u};}} } else return {url:url} }, LatLng:function(params,lng){ return new mapplsgl.LngLat(lng?lng:params.lng,lng?params:params.lat); }, LngLat:function(t,e){return new mapplsgl.LngLat(t,e);}, LngLatBounds:function(t,e){return new mapplsgl.LngLatBounds(t,e);}, LatLngBounds:function(t,e,wrap){return new mapplsgl.LngLatBounds(e,t);}, getBounds:function(g,ctp){ if(g && typeof g=='object'){ var ng=[];for(var i=0;i<g.length;i++){ var lat=parseFloat(g[i].lat?g[i].lat:g[i][0]),lng=parseFloat(g[i].lng?g[i].lng:g[i][1]); if((lat>lng && ctp===0) || ctp===1){var ln=lng;lng=lat;lat=ln;} if(lat && lng) ng.push([lng,lat]); }; var bounds = ng.reduce(function(bounds, coord) {return bounds.extend(coord);}, new mapplsgl.LngLatBounds(ng[0], ng[0]));return bounds; }}, Point:function(x,y){return new mapplsgl.Point(x,y);}, warn:function(msg){ console.warn(msg);return false; }, mrn:1,mpp:'', _0: function (params) { if(typeof params.map!=='object') {mappls.warn('Error:Please Pass Map Object');} ; if((params.hasOwnProperty('geojson') || Array.isArray(params.position)===false ) && params.position && params.position.hasOwnProperty('lng')===false) { if(params.hasOwnProperty('geojson')===false) params.geojson=params.position; return mappls.addCluster(params);return false; } var position = params.position !== undefined ? (params.position.hasOwnProperty('lng')?[parseFloat(params.position.lng),parseFloat(params.position.lat)]:params.position) : [0, 0]; var wdth=params.width!==undefined?params.width:34,offset = params.offset !== undefined ? params.offset : [0,-parseInt(wdth)/2]; var cType = params.cType !== undefined ? params.cType : 0; var drag=params.draggable!== undefined ? params.draggable : false; var fitbounds=params.fitbounds!== undefined ? params.fitbounds: false; var fitbounds_options=params.fitboundOptions!== undefined ? params.fitboundOptions:""; var popuphtml = params.popupHtml !== undefined && params.popupHtml!=''? params.popupHtml : ''; var popupoptions=params.popupOptions!== undefined ? params.popupOptions:""; if(popupoptions=='' || popupoptions===undefined) popupoptions={offset: {'bottom': [0, -20]}}; var el = mappls.createMarkerElement(params); if(params.className) el.className = params.className; if (cType === 0 && params.position && params.position.hasOwnProperty('lng')===false) { var position = MapUtil.swapMarkerCoordinates(position); } if((fitbounds!=='false' && fitbounds!==false) || mappls.bnd_all!==false) { mappls.fitBounds(params.map,position,fitbounds_options); mappls.markerPosition.push(position); mappls.createBoundsArray(mappls.markerPosition); } var m = new mapplsgl.Marker(el,{offset: offset,draggable: drag}).setLngLat(position).addTo(params.map); m.setPosition=function (params) {var lat=params[1],lng=params[0];if(params.lat!=undefined){lat=params.lat;lng=params.lng;};this.setLngLat([lng,lat]);}; m.setIcon=function (url) {this._element.style.backgroundImage="url("+url+")";}; m.setZIndex=function (no) {this._element.style.zIndex=no;}; m.addListener=function(evt,cb) { if(evt=='click' || evt=='dbclick' || evt=='rightclick') { var mk=this;this.getElement().addEventListener(evt,cb, false); } else { var clb=function(e){if(cb) cb(e,m);}; this.on(evt,clb); } }, m.getPosition=function(){return this.getLngLat();}; m.getBounds=function(){return mappls.getBounds([this.getPosition()]);}; m.addListenerOnce=function(evt,callback){ this.on(evt,function(e) {callback(e);});}, m.addDomListener=function(evt,callback) { this.on(evt,function(e) {callback(e,m);});}, m.addDomListenerOnce=function(evt,callback){ this.on(evt,function(e) {callback(e);});}, m.openPopup=function(s){ if(this.getPopup()) {this.getPopup().remove();if(this._map) this._map.closePopup();if(s!==false) this.togglePopup();}}, m.clearListeners=function(evt,callback){ var clb=function(e){if(callback) callback(e,m);}; this.off(evt,clb); var evts=getEventListeners(this.getElement())[evt]; if(evts){ for(var i=(evts.length>1?1:0);i<evts.length;i++){ this.getElement().removeEventListener(evts[i].type,evts[i].listener,evts[i].useCapture); }}; if(this._listeners && this._listeners[evt]) delete this._listeners[evt]; }; if(popuphtml) { var ppcls="pp"+params.id; el.addEventListener('click',function(e){ var Opsts=0;if(bm("."+ppcls)[0]) Opsts=1;params.map.closePopup(function(){if(!Opsts) setTimeout(function(){m.openPopup();},1);});e.stopPropagation(); },false); if(params.hover_popup==true){ el.addEventListener('mouseenter',function(e){m._popup.remove();params.map.closePopup(function(){m.togglePopup();});e.stopPropagation();},true); el.addEventListener('mouseleave',function(e){ mappls.popHide(ppcls); },true); } popupoptions.className=ppcls;popupoptions.focusAfterOpen=false; m.setPopup(new mapplsgl.Popup(popupoptions).setHTML(popuphtml)); } m.setP=m.setPopup; m.setPopup=function(h,po) { if(h) {this.setP(new mapplsgl.Popup(po).setHTML(h)); if(po && po.hasOwnProperty('openPopup')){ this.togglePopup();} } }; if(popupoptions.hasOwnProperty('openPopup')){ if(popupoptions.openPopup) m.togglePopup();} return m; }, addStockMarker: function (p) { var cType = p.cType !== undefined ? p.cType : 1; var isJson = p.isJson !== undefined ? p.isJson : false; var geojson = p.geojson !== undefined ? p.geojson : {}; var position = p.position !== undefined ? p.position : [0, 0]; var id = p.id !== undefined ? p.id : "stc-img" + (imgidx++); var icon_image = p.icon_image !== undefined ? p.icon_image : "airport"; var icon_size = p.icon_size !== undefined ? p.icon_size : ""; var title = p.title !== undefined ? p.title : ""; if (cType === 0) { if (!isJson) { position = MapUtil.swapMarkerCoordinates(position); geojson = MapUtil.createGeoJson(this.featureType[2], position, true, icon_image, title); this.markerPosition.push(position); } else { for (var i = 0; i < geojson.features.length; i++) { position = MapUtil.swapMarkerCoordinates(geojson.features[i].geometry.coordinates); this.markerPosition.push(position); } } } else { if (!isJson) { geojson = MapUtil.createGeoJson(this.featureType[2], position, true, icon_image, title); } for (var i = 0; i < geojson.features.length; i++) { position = geojson.features[i].geometry.coordinates; this.markerPosition.push(position); } } this.createBoundsArray(this.markerPosition); var ldo = { "id": id, "layerType": mappls.overlaysList[3], "icon_size": icon_size.length > 0 ? "-" + icon_size : "", "title": title, }; map_o.addSource(id, MapUtil.createSourceData(id, geojson)); map_o.addLayer(MapUtil.createLayerData(ldo)); return map_o.getLayer(id); }, addCluster: function (p) { var cType = p.cType !== undefined ? p.cType : 0; var isJson = p.isJson !== undefined ? p.isJson : typeof p.geojson=='object'?true:false; var geojson = p.geojson !== undefined ? p.geojson : {}, coordsArray = p.coordsArray !== undefined ? p.coordsArray : [], id = p.id !== undefined ? p.id : "cluster_group" + (clstridx++), icon_image = p.icon_url !== undefined ? p.icon_url : (p.icon?p.icon:""), icon_size = p.icon_size !== undefined ? p.icon_size : 1, fitbounds=p.fitbounds!== undefined ? p.fitbounds: false, fitbounds_options=p.fitboundOptions!== undefined ? p.fitboundOptions:"", popupoptions=p.popupOptions!== undefined ? p.popupOptions:"", clusterMaxZoom = p.clusterMaxZoom !== undefined ? p.clusterMaxZoom : 18, clusterRadius = p.clusterRadius !== undefined ? p.clusterRadius : 20, clustersIcon=p.clustersIcon!== undefined?p.clustersIcon:""; if(popupoptions=='' || popupoptions===undefined) popupoptions=""; if (!isJson) { geojson = { "type": "FeatureCollection", "features": [] }; for (var p = 0; p < coordsArray.length; p++) { var fp = { "type": "Feature", "geometry": { "type": this.featureType[2], "coordinates": coordsArray[p] }, "properties": {} }; geojson.features.push(fp); this.markerPosition.push(coordsArray[p]); } } if(geojson.hasOwnProperty('source')) if(geojson.source.hasOwnProperty('data')) var geojson=geojson.source.data; if(geojson.type!=='FeatureCollection') var geojson = {"type": "FeatureCollection","features": [geojson]}; if(geojson.features){ for (var i = 0; i < geojson.features.length; i++) { position = geojson.features[i].geometry.coordinates; this.markerPosition.push(position); } } var map=p.map; var icn=""; if(map.hasImage(id+'cat')) map.removeImage(id+'cat'); if(icon_image) { MapUtil.getJSON(icon_image, function(data){}); map.loadImage(icon_image, function(error,image) { map.addImage(id+'cat', image); }); } if(p.hasOwnProperty('clusters')) { } if (cType === 0) var geojson=MapUtil.swapJson(geojson); var clr="",bgclr="",hlw=1,hlc="#000021",ts=12;if(p.hasOwnProperty('clustersOptions')) { clr=p.clustersOptions.color;bgclr=p.clustersOptions.background; hlw=p.clustersOptions.haloWidth; hlc=p.clustersOptions.haloColor; ts=p.clustersOptions.textSize; if(p.clustersOptions.radius) clusterRadius=p.clustersOptions.radius; if(p.clustersOptions.maxZoom) clusterMaxZoom=p.clustersOptions.maxZoom; } id="cluster_mkr" + (clmrk++); if(p.width && !p.hasOwnProperty('icon_size')){ icon_size=p.width/100;p['icon_size']=icon_size; if(p.height && !p.offset) p.offset=[0,-(p.height)]; } if(clustersIcon) { clustersIcon=mappls.addImage({map:p.map,url:clustersIcon}); } var rtId='',clstr='', ldo = { "id": id, "layerType": mappls.overlaysList[4], "icon_image": icon_image?id+'cat':"", "color":clr, "icon_size":icon_size, "bgcolor":bgclr, "clusterMaxZoom": clusterMaxZoom, "clusterRadius": clusterRadius, "clustersIcon":clustersIcon, "hlw":hlw, "hlc":hlc, "text_size":ts }; mappls.clusterLayer.push(id); p.map.addSource(id, MapUtil.createSourceData(id, geojson, true, ldo)); if(p.clusters!==false && p.clusters!=='false') { clstr=MapUtil.createLayerData(ldo); p.map.addLayer(clstr); ldo.layerType = mappls.overlaysList[5]; ldo.cluster = true; var ct=MapUtil.createLayerData(ldo), clkId=clustersIcon?ct.id:id; p.map.addLayer(ct); map.on('click',clkId , function (e) { if(p.cluster_callback){return p.cluster_callback(e);} var features = map.queryRenderedFeatures(e.point, { layers: [clkId] }); var clusterId = features[0].properties.cluster_id; map.getSource(id).getClusterExpansionZoom(clusterId, function (err, zoom) { if (err)return; map.easeTo({center: features[0].geometry.coordinates,zoom: zoom}); }); }); p.source=id; p.filter=["!has", "point_count"]; } p.data=geojson; p.cType=1; p.icon=icon_image?id+'cat':""; if(p.icon_size) p['icon-size']=p.icon_size; rtId=mappls.addGeoJson(p); if(p.clusters!==false) rtId.push({id:id}); if(clstr) rtId.cluster=clstr; rtId.p=p; map.on('mouseenter', id, function () {map.getCanvas().style.cursor = 'pointer';}); map.on('mouseleave', id, function () {map.getCanvas().style.cursor = '';}); if((fitbounds!=='false' && fitbounds!==false) || mappls.bnd_all!==false) { var fit_arr=[]; for(var i=0;i<geojson.features.length;i++) { var pos=geojson.features[i].geometry.coordinates; fit_arr[i]=pos; } mappls.fitBounds(p.map,fit_arr,fitbounds_options); } return rtId; }, remove:function(params) { var params=params; if(!params.map || params.map==undefined || params.layer==undefined ||undefined==typeof params.map.getLayer || typeof params.map.getCenter!='function'){return false;} else if(params.layer=='clusters') {mappls.removeCluster(params.map);return true;} else if(params.layer.hasOwnProperty('id')) { if(params.map.getLayer(params.layer.id)!==undefined) { if(params.layer.id.indexOf('cluster')===0) {mappls.removeCluster(params.map,params.layer.id);return true;} else { params.map.removeLayer(params.layer.id);params.map.removeSource(params.layer.id); if(mappls.popup[params.layer.id]) mappls.popup[params.layer.id].remove(); if(params.layer.icon) params.layer.icon.remove(); } if(params.layer.id.indexOf('circle')===0){if(params.map.getLayer("lbl"+params.layer.id)) params.map.removeLayer("lbl"+params.layer.id);} if(mappls.Poly_drag_mkr[params.layer.id]) { mappls.remove({map:params.map,layer:mappls.Poly_drag_mkr[params.layer.id]}); delete mappls.Poly_drag_mkr[params.layer.id]; } if(mappls.mkr_on_polygon[params.layer.id]) { mappls.remove({map:params.map,layer:mappls.mkr_on_polygon[params.layer.id]}); delete mappls.mkr_on_polygon[params.layer.id]; } } } if(typeof params.layer=='object') { if(params.layer.length>=1){ for(var i=0;i<params.layer.length;i++){ if(params.layer[i].hasOwnProperty('id')) { if(params.map.getLayer(params.layer[i].id)!==undefined){ if(params.layer[i].id.indexOf('cluster')===0) {mappls.removeCluster(params.map,params.layer[i].id);} else { params.map.removeLayer(params.layer[i].id); try{if(params.map.getSource(params.layer[i].id) !== undefined) params.map.removeSource(params.layer[i].id);}catch(e){console.log(e);} if(mappls.popup[params.layer[i].id]) mappls.popup[params.layer[i].id].remove(); } if(mappls.mkr_on_polygon[params.layer[i].id]) { mappls.remove({map:params.map,layer:mappls.mkr_on_polygon[params.layer[i].id]}); delete mappls.mkr_on_polygon[params.layer[i].id]; } if(mappls.Poly_drag_mkr[params.layer[i].id]) { mappls.remove({map:params.map,layer:mappls.Poly_drag_mkr[params.layer[i].id]}); delete mappls.Poly_drag_mkr[params.layer[i].id]; } } } else params.layer[i].remove();} } else if(params.layer._map) { params.layer.remove(); } } return true; }, removeCluster: function (map,id) { var clust_num=id.replace('cluster_mkr',''),cluster_arr=["cluster_mkr"+clust_num, "cluster-count"+clust_num, "unclustered-point"+clust_num]; var length = cluster_arr.length; while (length > 0) { var key = cluster_arr.pop(); if (mappls.layers.hasOwnProperty(key)) { if (map.getLayer(key) !== undefined) { map.removeLayer(key); delete mappls.layers[key]; } if (mappls.sources.hasOwnProperty(key)) { if (map.getSource(key) !== undefined) { map.removeSource(key); delete mappls.sources[key]; } } } length--; } }, createMarkerElement: function (o) { var el; el = document.createElement('div'); var st_wt=o.width !== undefined ? o.width + "px" : 34 + "px",st_ht=o.height !== undefined ? o.height+ "px" : 48 + "px"; el.id = o.id !== undefined ? o.id : o.id="cst_mid" + (mappls.mrn++); el.className = o.cclass !== undefined ? o.class : "cst_mclz"; if(o.icon_url) o.icon=o.icon_url; if(o.icon==undefined && o.html == undefined) o.icon=mappls.defaultMarker; if(o.html == undefined ||o.icon !== undefined) el.style.backgroundImage = o.icon !== undefined && o.icon !== ''? 'url(' + o.icon + ')' : 'url(' + "https://maps.mapmyindia.com/images/2.png" + ')'; el.style.backgroundRepeat = "no-repeat"; el.style.backgroundSize = st_wt.replace('pxpx','px')+" "+st_ht.replace('pxpx','px') ; if(o.clickable!==false) el.style.cursor="pointer"; el.style.height = st_ht.replace('pxpx','px'); if(o.title!=undefined) el.title = o.title; el.style.width = st_wt.replace('pxpx','px'); el.innerHTML = o.html !== undefined ? o.html : ""; el.draggable = o.draggable !== undefined ? o.draggable : false; return el; }, getCenter:function(data) { if (!(data.length > 0)){ return false; } if('number'!==typeof data[0].lat){ var ndt=[];for(var i=0;i<data.length;i++){for(var j=0;j<data[i].length;j++){ndt.push(data[i][j]);}} data=ndt; };if(Array.isArray(data[0])) data=data[0]; var first = data[0], last = data[data.length - 1]; if (parseFloat(first.lng) != parseFloat(last.lng) || parseFloat(first.lat) != parseFloat(last.lat)) data.push(first); var twicearea = 0,lng = 0, lat = 0, nPts = data.length, p1, p2, f; for (var i = 0, j = nPts - 1; i < nPts; j = i++) { p1 = data[i]; p2 = data[j]; f = (parseFloat(p1.lat) - parseFloat(first.lat)) * (parseFloat(p2.lng) - parseFloat(first.lng)) - (parseFloat(p2.lat) - parseFloat(first.lat)) * (parseFloat(p1.lng) - parseFloat(first.lng)); twicearea += f; lng += (parseFloat(p1.lng) + parseFloat(p2.lng) - 2 * parseFloat(first.lng)) * f; lat += (parseFloat(p1.lat) + parseFloat(p2.lat) - 2 * parseFloat(first.lat)) * f; } f = twicearea * 3; return { lng: lng / f + parseFloat(first.lng), lat: lat / f + parseFloat(first.lat) }; }, Poly_drag_mkr:[],mkr_on_polygon:[], _1: function (params) { if(!params.map || typeof params.map.getDiv!=='function'){console.error("Error:Please pass map object for polygon or use under load event");return false;} var isJson = params.isJson !== undefined ? params.isJson : true; if(params.paths !== undefined) var geojson=params.paths;else {console.warn("Error:Please pass polygon paths");return false;} var cType = params.cType !== undefined ? params.cType : 0,fillColor = params.fillColor !== undefined ? params.fillColor : "#006400", fillOpacity = params.fillOpacity !== undefined ? params.fillOpacity : 0.5,fillOutlineColor = params.strokeColor !== undefined ? params.strokeColor : "#000000", coordsArray = params.coordsArray !== undefined ? params.coordsArray : [], id = params.id !== undefined ? params.id : (geojson.id!==undefined?geojson.id:"pgon" + (pgidx++)), fitbounds=params.fitbounds!== undefined ? params.fitbounds: false, fitbounds_options=params.fitboundOptions!== undefined ? params.fitboundOptions:"", popupHtml=params.popupHtml!==undefined?params.popupHtml:"",html=params.html!==undefined?params.html:""; if (!isJson || geojson.length>1 || Array.isArray(geojson)) { coordsArray=[];if(Array.isArray(geojson[0][0])) {geojson=geojson[0];} for(var i=0;i<geojson.length;i++) { if(geojson[i].lng && geojson[i].lat) { coordsArray[i]=[parseFloat(geojson[i].lng),parseFloat(geojson[i].lat)]; } else { var muti_arr=[]; for(var j=0;j<geojson[i].length;j++) { if(geojson[i][j].lng && geojson[i][j].lat) { muti_arr[j]=[parseFloat(geojson[i][j].lng),parseFloat(geojson[i][j].lat)]; } } coordsArray[i]=muti_arr; } } if(coordsArray.length===1 && Array.isArray(coordsArray[0])) coordsArray=coordsArray[0]; if(coordsArray.length>1 && (coordsArray[0][0]!=coordsArray[i-1][0] || coordsArray[0][1]!=coordsArray[i-1][1])) { if(geojson[0].lng) coordsArray[i]=[geojson[0].lng,geojson[0].lat]; } if(coordsArray.length>1){geojson = MapUtil.createGeoJson('Polygon', [coordsArray]);} else {console.error("Please pass valid data for polygon");return false;} } else if(geojson.source && geojson.source.data && (geojson.source.data.type=='MultiPolygon'||geojson.source.data.geometry.type=='MultiPolygon')){geojson=geojson.source.data} else { var data=geojson.source!==undefined?geojson.source.data:geojson.features; if(!data) data=geojson; var geom_cord=data.geometry.coordinates; var consider=2; if(geom_cord.length===1) {consider=1;data.geometry.coordinates=geom_cord[0];geom_cord=data.geometry.coordinates;} var feature=[]; for(var i=0;i<geom_cord.length;i++) { feature[i]={"type": "Feature",geometry:{"type":"Polygon",coordinates:[]}}; feature[i].geometry.coordinates[0]=[]; for(var j=0;j<geom_cord[i].length;j++) { var cord=(cType==1?[geom_cord[i][j][0],geom_cord[i][j][1]]:[geom_cord[i][j][1],geom_cord[i][j][0]]); geom_cord[i][j]=cord; feature[i].geometry.coordinates[0].push(cord); } } if(!data){mappls.warn('Invalid json for polygon');return false;} geojson={ "type": "FeatureCollection", "features":(consider==1?[data]:feature)}; } var pgmsg="Call polygon method after map load or add timeout!", rt={id: id, type: "fill",map:params.map,cType:cType,isEditable:false, color:function(c){if(this.map){ if(c) {this.map.setPaintProperty(this.id,'fill-color',c);return true;}else return this.map.getPaintProperty(this.id,'fill-color');}}, setVisible:function(pos){this.map.setLayoutProperty(this.id, 'visibility', (pos==false?'none':'visible'));var m=mappls.mkr_on_polygon[this.id];if(m) m._element.style.display=pos?'inline':'none';}, setTop:function () {this.map.moveLayer(this.id);}, addListener:function(evt,callback){this.map.on(evt,this.id,function(e) {callback(e,rt);});}, getBounds:function(){var pth=this.getPath(),narr=[]; if(pth[0] && !pth[0][0].lat)pth=pth[0]; else if(pth.geometry && pth.geometry.coordinates){ pth=pth.geometry.coordinates;pth=[].concat.apply([], pth);} for(var i = 0; i < pth.length; i++){narr = narr.concat(pth[i]);}return mappls.getBounds(narr);}, getPath:function(t) { var mapO=params.map,mpop=this._eventedParent;if(mpop && mpop.map) mapO=mpop.map; var points=[],geom=[],src=mapO.getSource(id),feature=src && src._data.features?src._data.features:[]; if(feature.length===0 && src){return src._data?src._data:[];} if(t && t===2) return feature; for(var f=0;f<feature.length;f++) { var pts=src._data.features[f].geometry.coordinates; for (var i = 0; i < pts.length;i++) { var j_arr=[],geom_arr=[]; for(var j=0;j<pts[i].length;j++) { var lt=parseFloat(pts[i][j][1]),ln=parseFloat(pts[i][j][0]); j_arr.push({lat: lt, lng:ln}); geom_arr.push(cType?[ln,lt]:[lt,ln]); } if(pts[1]!==undefined) { if(!points[f]) points[f]=[]; points[f][i]=j_arr; if(!geom[f]) geom[f]=[]; geom[f][i]=geom_arr; } else {points[f]=j_arr; geom[f]=geom_arr;} } } return t?geom:points; }, setPath:function(path) { if(path) { var pts=[],feature=[]; for(var i=0;i<path.length;i++) { var pts_arr=path[i],lat=parseFloat(pts_arr.lat),lng=parseFloat(pts_arr.lng); if(lat>1 && lng>1) { pts.push([lng,lat]); } else { var npts=[]; feature[i]={"type": "Feature",geometry:{"type":"Polygon",coordinates:[]}}; feature[i].geometry.coordinates[0]=[]; for(var j=0;j<pts_arr.length;j++) { var ln=parseFloat(pts_arr[j].lng),lt=parseFloat(pts_arr[j].lat); if(lt>1) { npts.push([ln,lt]); feature[i].geometry.coordinates[0].push([ln,lt]); } else { npts[j]=[]; for(var k=0;k<pts_arr[j].length;k++) { var ltk=parseFloat(pts_arr[j][k].lng),lnk=parseFloat(pts_arr[j][k].lat); if(ltk>1) { npts[j].push([ltk,lnk]); } } feature[i].geometry.coordinates[j]=npts[j]; } } pts[i]=npts; } } if(path[0].lat!=path[path.length-1].lat && path[0].lng!=path[path.length-1].lng) pts.push([path[0].lng,path[0].lat]); var src_nme=this.id; if("number" ==typeof pts[0][0])pts=[pts]; if(src_nme) { var src_data=this.map.getSource(src_nme); var nwData=src_data._data; if(feature.length){nwData.features=feature;}else nwData.features[0].geometry.coordinates=pts; src_data.setData(nwData); if(mappls.mkr_on_polygon[this.id]){ mappls.mkr_on_polygon[this.id].setPosition(mappls.getCenter(this.getPath())); } } } }, setEditable:function(action) { var pgObj=this,mpO=this.map; if(action!==false) { var path=this.getPath(); if(path && path.length>=1) { if(mappls.Poly_drag_mkr[this.id]) return {"editable":true}; mappls.Poly_drag_mkr[this.id]=[]; pgObj.isEditable=true; var zeropos=0; if(!path[0][0].lat){path=path[0];zeropos=1;} var mkr_no=0; for(var i=0;i<path.length;i++) { var cord=path[i]; var cordD=cord;if(cord.lat) cordD=[cord]; for(var j=0;j<cordD.length;j++) { var cordDt=cordD[j]; if(cordDt.lat) { mappls.Poly_drag_mkr[this.id][mkr_no]=new mappls.Marker({map:mpO,position:{lat: cordDt.lat, lng: cordDt.lng},id:this.id+"-"+i+"-"+j,width:"10px",height:"10px",html:'<div class="round_marker"></div>',draggable:true}); mappls.Poly_drag_mkr[this.id][mkr_no].on("drag",function(e){ var idM=this._element; if(idM && idM.id) { var idM_arr=idM.id.split('-'), mkr_ipos=idM_arr[1],mkr_jpos=idM_arr[2], pts=this._lngLat; var edit_pts={lat:parseFloat(pts.lat.toFixed(6)),lng:parseFloat(pts.lng.toFixed(6))}; if("number" ==typeof path[0].lat) path[mkr_ipos]=edit_pts; else path[mkr_ipos][mkr_jpos]=edit_pts; pgObj.setPath((zeropos?[path]:path)); } }); mkr_no++; } } } } } else { pgObj.isEditable=false; var pgData=mappls.Poly_drag_mkr[pgObj.id]; if(pgData && pgData.length>=1) { for(var i=0;i<pgData.length;i++) { pgData[i].remove(); } delete mappls.Poly_drag_mkr[pgObj.id]; } } return true; }, check_position:function(pos) { if(pos.lat && pos.lng) { var crd=this.getPath(),cord=[],cord_x =[], cord_y =[];if(!crd) return false; for(var o=0;o<crd.length;o++) { if(crd[o].lng) cord.push([crd[o].lng,crd[o].lat]); else{ for(var k=0;k<crd[o].length;k++){ if(crd[o][k].lng) cord.push([crd[o][k].lng,crd[o][k].lat]); } } } if(cord.length===1) cord=cord[0]; cord.map(function(value,index) {cord_x.push(parseFloat(cord[index][0]));cord_y.push(parseFloat(cord[index][1])); }); var i = j = c = false; for (i = 0, j = cord.length-1; i < cord.length; j = i++) { var ps_lat=parseFloat(pos.lat),ps_lng=parseFloat(pos.lng); if ((cord_y[i] > ps_lat != (cord_y[j] > ps_lat)) && (ps_lng < (cord_x[j] - cord_x[i]) * (ps_lat- cord_y[i]) / (cord_y[j] - cord_y[i]) + cord_x[i])) { c = !c; } } return c; } else return 'Invalid lat & lng object'; }, snapPoint:function(pos) {if(!pos || !pos.lat || !pos.lng){console.error("Pass Position in snap_points method "); return false;} var lat=parseFloat(pos.lat),lng=parseFloat(pos.lng),pth=this.getPath(),cntr=mappls.getCenter(pth); var pr_pts,nr_pos={lat:lat,lng:lng},all_mid_pts=mappls.points(cntr.lat,cntr.lng,lat,lng); for(var i=0;i<all_mid_pts.length;i++) { var ind_pt=all_mid_pts[i]; var chk_pt=this.check_position({lat:ind_pt[0],lng:ind_pt[1]}); if(!chk_pt) break; pr_pts=i; } if(pr_pts){nr_pos.lat=all_mid_pts[pr_pts-1][0];nr_pos.lng=all_mid_pts[pr_pts-1][1];} else nr_pos=cntr; return nr_pos; } }; if((params.map.areTilesLoaded() || params.map.loaded()) && geojson) { try{ params.map.addLayer({'id': id,'type': 'fill','source': {'type': 'geojson','data': geojson},'layout': {}, 'paint': {'fill-color': fillColor,'fill-opacity': fillOpacity,'fill-outline-color':fillOutlineColor}}); }catch(e){ params.map.once('data', function () { params.cType=1;params.id=id;mappls.Polygon(params);}); return rt; } try{ if((fitbounds!=='false' && fitbounds!==false) || mappls.bnd_all!==false) { var fit_arr=[]; var data=geojson;if(geojson.features) data=geojson.features; for(var i=0;i<data.length;i++) { var pos=data[i].geometry.coordinates; for(var j=0;j<pos.length;j++) { fit_arr.push(pos[j]); } } var ftD=fit_arr[0]; for(var i=1;i<fit_arr.length;i++) { ftD=ftD.concat(fit_arr[i]); } mappls.fitBounds(params.map,ftD,fitbounds_options); } }catch(e){} if(html) { if(params.center && params.center.lat) var ctr=params.center;else var ctr=mappls.getCenter(rt.getPath()); if(ctr && ctr.lat) mappls.mkr_on_polygon[id]=new mappls.Marker({map:params.map,position:{lat: ctr.lat, lng: ctr.lng},className:"polygon_txt",html:html,offset:[0,0]}); } if(popupHtml) { params.map.on('click', id, function (e) { params.map.closePopup();mappls.popup[id]=new mapplsgl.Popup(params.popupOptions).setLngLat(e.lngLat).setHTML(popupHtml).addTo(params.map);return false;}); params.map.on('mouseenter', id, function () {params.map.getCanvas().style.cursor = 'pointer';}); }; return rt; } else { params.map.once('data', function () {params.id=id;mappls.Polygon(params);}); return rt; } }, _2: function (params) { if(!params.map || params.map.hasOwnProperty('style')==undefined ){console.warn("Error:Please pass map object & layer Id to remove");return false;} var isJson = params.isJson !== undefined ? params.isJson : true; var geojson = params.path !== undefined ? params.path : (params.paths?params.paths:{}); var cType = params.cType !== undefined ? params.cType : 0; var lineColor = params.strokeColor !== undefined ? params.strokeColor : ""; var lineWidth = params.strokeWeight !== undefined ? params.strokeWeight : 2; var lineopacity=params.strokeOpacity!==undefined?params.strokeOpacity:1; var coordsArray = params.coordsArray !== undefined ? params.coordsArray : []; var id = params.id !== undefined ? params.id : "pline" + (plidx++); var lineJoin = params.lineJoin !== undefined ? params.lineJoin : "miter"; var lineCap = params.lineCap !== undefined ? params.lineCap : "round"; var lineGap = params.lineGap !== undefined ? params.lineGap :0; var fitbounds=params.fitbounds!== undefined ? params.fitbounds: false; var fitbounds_options=params.fitboundOptions!== undefined ? params.fitboundOptions:""; var popupHtml=params.popupHtml!==undefined?params.popupHtml:""; var gradient=params.gradient?params.gradient:"",dasharray=params.dasharray?params.dasharray:"", editable=params.editable?params.editable:""; var crd=function(d){ if(d){ var crd=[]; for(var i=0;i<d.length;i++) { var lt=d[i].lat?d[i].lat:d[i][0],ln=d[i].lng?d[i].lng:d[i][1]; if (cType ===1) crd[i]=[lt,ln]; else crd[i]=[ln,lt]; } return crd; } }; if (!isJson || geojson.hasOwnProperty('features')===false) { if(typeof geojson=='string') geojson=mappls.decodePath(geojson.trim()); var cord=crd(geojson); geojson = MapUtil.createGeoJson('LineString',cord); mappls.createBoundsArray(cord); } else { for (var i = 0; i < geojson.features.length; i++) { if (cType === 0) MapUtil.swapCoordinates(geojson.features[i].geometry.coordinates,1); mappls.createBoundsArray(geojson.features[i].geometry.coordinates); } } var ldo = { "id": id, "layerType": mappls.overlaysList[1], "lineColor": (lineColor?lineColor:['get', 'color']), "lineWidth": lineWidth, "lineOpacity":lineopacity, "lineJoin": lineJoin, "lineCap": lineCap, "lineGap":lineGap, "gradient":gradient, "dasharray":dasharray }; if((fitbounds!=='false' && fitbounds!==false) || mappls.bnd_all!==false) { var fit_arr=[]; for(var i=0;i<geojson.features.length;i++) { var pos=geojson.features[i].geometry.coordinates; fit_arr=fit_arr.concat(pos) } if(fit_arr[1]===undefined) fit_arr=fit_arr[0]; mappls.fitBounds(params.map,fit_arr,fitbounds_options); } var line_l={id: id, type: "line",map:params.map,cType:cType, getPath:function(t) { var mapO=this.map,points=[],src=this.map.getSource(this.id),cords=src?src._data.features:'',cords_arr=[]; for(var i=0;i<cords.length;i++) { cords_arr=cords_arr.concat(cords[i].geometry.coordinates); } for (var i = 0; i < cords_arr.length;i++) { points.push({lat: cords_arr[i][1], lng: cords_arr[i][0]}); } return points; }, setTop:function () {this.map.moveLayer(this.id);}, setVisible:function(pos){this.map.setLayoutProperty(this.id, 'visibility', (pos==false?'none':'visible'));}, setMap:function (map) {if(!map)this.map.removeLayer(this.id); }, addListener:function(evt,callback){this.map.on(evt,this.id,function(e) {callback(e,line_l);});}, animate:function(val){ if(val===false || val=='stop') mappls.stop_mkr[id]='stop'; else { mappls.animateMarker(this.map,geojson,this.id,delay,params.animate,0,mappls.stop_mkr[id]);mappls.stop_mkr[id]=''; } }, color:function(c){ if(this.map){ if(c) this.map.setPaintProperty(this.id,'line-color',c);else return this.map.getPaintProperty(this.id,'line-color');}}, setPath:function(p,ext) { if(p && 'object'==typeof p && this.map && this.id){ var pts=[];if(!Array.isArray(p)) p=[p]; for(var i=0;i<p.length;i++){ if(p[i]){ var lt=parseFloat(p[i].lat),ln=parseFloat(p[i].lng);if(lt && ln) pts.push([ln,lt]);} } if(pts.length>=1){ var src=this.map.getSource(this.id); if(src && src._data.features[0]) { var ftr=src._data.features,ftln=ftr.length-1,coord=ftr[ftln].geometry.coordinates; if(ext) pts=coord.concat(pts); var geojson = {"type": "FeatureCollection","features": [{"type": "Feature", "geometry": {"type": "LineString","coordinates": pts},"properties": {}}]}; src.setData(geojson);return true;} } } }, extend:function(p){if(p && ('number'==typeof p.lat || 'object'==typeof p[0])){return this.setPath(p,1);}}, getBounds:function(){return mappls.getBounds(this.getPath());} }; if(params.map.isStyleLoaded() || plidx>=1) { var lbl_id='waterway_lbl_lowzoom'; if(params.labelup==false || mappls.mmi.lr=='raster') lbl_id=''; try{ var lr=MapUtil.createLayerData(ldo); lr.source={'type': 'geojson','data': geojson}; if(gradient) lr.source.lineMetrics=true; params.map.addLayer(lr,lbl_id); params.map.moveLayer(id); }catch(e){ if(!params.attempt){ params.attempt=1;params.map.once('style.load', function () { params.id=id;mappls._2(params); });} else {return false;console.error(e);} } var cordinate="",animate_type=""; if(params.animate) { var delay=(params.animate.speed!=undefined?params.animate.speed:50); cordinate=geojson.features[0].geometry.coordinates; if(params.animate.path) { geojson.features[0].geometry.coordinates=[]; mappls.animateLine(params.map,geojson,id,cordinate,delay,0); } else if(params.animate.icon_url!=undefined) { var m=mappls.animateMarker(params.map,geojson,id,delay,params.animate,0,0); line_l.icon=m; } } params.map.on('mouseenter', id, function () {params.map.getCanvas().style.cursor = 'pointer';}).on('mouseleave', id, function (e) { params.map.getCanvas().style.cursor = ''; }); if(popupHtml) { params.map.on('click', id, function (e) { mappls.popup[id]=new mapplsgl.Popup().setLngLat(e.lngLat).setHTML(popupHtml).addTo(params.map);}); }; if(editable) { var callB="";if(params.hasOwnProperty('editable_callback')) callB=params.editable_callback; mappls.editableLine(params.map,geojson,id,callB); } if(params.visible==false) params.map.setLayoutProperty(id, 'visibility','none' ); return line_l; } params.map.on('load', function () { return mappls.Polyline(params);}); }, animateLine:function(mapObj,geojson,line_id,cordinate,delay,num_cordinate) { if(!cordinate[num_cordinate]) return false; geojson.features[0].geometry.coordinates.push(cordinate[num_cordinate]); mapObj.getSource(line_id).setData(geojson); speed=mappls.point_km/delay;if(speed<=1) speed=0; window.setTimeout(function (){num_cordinate=num_cordinate+1;mappls.animateLine(mapObj,geojson,line_id,cordinate,delay,num_cordinate);},speed); }, animateMarker:function(mapObj,geojson,line_id,delay,params,route_mdl_pts,cordinate) { var icon_url=params.icon_url,img_width=params.icon_width,img_height=params.icon_height; if(!route_mdl_pts) { if(!geojson) return false; var arr_data=[],nrr=[]; for(var i=0;i<geojson.features.length;i++) { arr_data=arr_data.concat(geojson.features[i].geometry.coordinates); }; for(var i=1;i<arr_data.length;i++) { var crd=mappls.points(arr_data[i-1][1],arr_data[i-1][0],arr_data[i][1],arr_data[i][0]); if(crd) nrr=nrr.concat(crd); } ; route_mdl_pts=nrr; } if(route_mdl_pts) { if(mappls.mmi_mkr[line_id]==undefined) { var brlat1=route_mdl_pts[0][0],br_lng1=route_mdl_pts[0][1],brlat2=route_mdl_pts[1][0],brlng2=route_mdl_pts[1][1]; mappls.mmi_mkr[line_id]=new mappls.Marker({position: {"lat": route_mdl_pts[0][0] ,"lng":route_mdl_pts[0][1]},map: mapObj,width:img_width,height:img_height,html:'<img id="marker_'+line_id+'" src="'+icon_url+'" style="width:100%;height:100%">',offset:[0,-(img_height!=undefined?(img_height/50):0)]}); } else { if(cordinate>=route_mdl_pts.length) {if(params.repeat===true) cordinate=1; else return false; } var brlat1=route_mdl_pts[cordinate][0],brlng1=route_mdl_pts[cordinate][1],brlat2=route_mdl_pts[cordinate-1][0],brlng2=route_mdl_pts[cordinate-1][1]; mappls.mmi_mkr[line_id].setPosition({"lat": route_mdl_pts[cordinate][0] ,"lng": route_mdl_pts[cordinate][1]}); } if(cordinate<route_mdl_pts.length ||cordinate===0){ var bearing=Math.round(mappls.bearing(brlat1,brlng1,brlat2,brlng2)); if(bearing){ bearing=bearing-(mapObj.getHeading()); var tsfrm=document.getElementById("marker_"+line_id); if(tsfrm){ var cur_brng=tsfrm.style.transform.replace(/[^0-9]/g,''), diff_brng=(bearing>cur_brng?(bearing-cur_brng):(cur_brng-bearing)); if(diff_brng>30) {tsfrm.style.transform="rotate(0deg)";tsfrm.style.transform="rotate("+(bearing-540)+"deg)";} } } } if(delay>0) { speed=mappls.point_km/delay; if(mapObj.getLayer(line_id)){ if(mappls.stop_mkr[line_id]=='stop'){ mappls.stop_mkr[line_id]=num_cordinate;} else{ window.setTimeout(function (){num_cordinate=cordinate+1;mappls.animateMarker(mapObj,geojson,line_id,delay,params,route_mdl_pts,num_cordinate);},speed); } } else { mappls.remove({map:mapObj,layer:mappls.mmi_mkr[line_id]}); } } return mappls.mmi_mkr[line_id]; } }, pl_edtmkr:[],pl_mkr_dragstrt:[], editableLine:function(mapObj,geojson,id,callback) { var arr_data=[];mappls.pl_edtmkr[id]=0; for(var i=0;i<geojson.features.length;i++) { arr_data=arr_data.concat(geojson.features[i].geometry.coordinates); }; mapObj.on('mousemove', id, function(e,a,c) { var latlng=e.lngLat; mappls.editlineMarker(mapObj,geojson,arr_data,id,latlng,callback); }); }, editlineMarker:function(mapObj,geojson,arr_data,id,latlng,callback) { var mouse_lat=latlng.lat.toPrecision(7),mouse_lng=(latlng.lng-0.00001).toPrecision(7),between=[],between_rand=[]; for(var i=1;i<arr_data.length;i++) { var lat1=arr_data[i-1][1],lat2=arr_data[i][1],lng1=arr_data[i-1][0],lng2=arr_data[i][0]; if(((mouse_lat>=lat1 && mouse_lat<=lat2) || (mouse_lat<=lat1 && mouse_lat>=lat2))&& ((mouse_lng>=lng1 && mouse_lng<=lng2) ||(mouse_lng<=lng1 && mouse_lng>=lng2))) {between=[lat1,lng1,lat2,lng2];} } if(between.length<1) return false; if(mappls.pl_edtmkr[id]._map){ mappls.pl_edtmkr[id].setPosition(latlng);} else { mappls.pl_edtmkr[id]=new mappls.Marker({ position: latlng,map: mapObj,id:'editmkr_'+id,offset:[-2,-3],height:8,width:8,html:"<div style='border-radius:50%;width:8px;height:8px;background:#fff;border:2px solid #000'></div>",draggable:true}); mappls.pl_edtmkr[id].on('dragend', function() { mappls.editdrawPolyline(mapObj,geojson,between,this.getPosition(),id);mappls.pl_mkr_dragstrt[id]=0;mappls.pl_edtmkr[id].remove(); if(callback) callback(this.getPosition()); }); document.getElementById('editmkr_'+id).addEventListener("mousedown", function(){mappls.pl_mkr_dragstrt[id]=1;}); document.getElementById('editmkr_'+id).addEventListener("mouseleave", function(){if(mappls.pl_mkr_dragstrt[id]==1) return false; mappls.pl_edtmkr[id].remove();}); } }, editdrawPolyline:function(mapObj,geojson,between,pos,lineId) { var edited_geojson=geojson; if(geojson) { for(var i=0;i<geojson.features.length;i++) { var cord=geojson.features[i].geometry.coordinates,edited_cord=[]; for(var j=0;j<cord.length;j++) { var cord_arr=cord[j],cord_next=[]; if(cord[j+1])cord_next=cord[j+1]; edited_cord.push(cord_arr); if(cord_arr[0]==between[1] && cord_arr[1]==between[0] && cord_next[0]==between[3] && cord_next[1]==between[2]) { edited_cord.push([pos.lng,pos.lat]); } } edited_geojson.features[i].geometry.coordinates=edited_cord; }; mapObj.getSource(lineId).setData(edited_geojson); } }, draw:function(params) { if(params.map && params.type) { var map=params.map,poly_points_list=[],polyline=[],marker=[],ct=0,data; if(params.status===false) {rm_draw(map);return false;} map.getCanvas().style.cursor = 'crosshair'; map.on('click',draw_clk).once('dblclick', function(e) { map.off('click',draw_clk); poly_points_list.pop(); for(var i=0; i<=ct; i++){ if(marker[ct-1]) mappls.remove({map:params.map,layer: marker[ct-1]}); if(marker[i]) mappls.remove({map:params.map,layer: marker[i]}); if(polyline[i]) mappls.remove({map:params.map,layer:polyline[i]}); } var options=(params.options?params.options:{});options.map=params.map;options.paths=poly_points_list; if(poly_points_list.length<2) return false; if(params.type=='polygon') { data = new mappls.Polygon(options); } else if(params.type=='polyline') { data = new mappls.Polyline(options); } if(params.callback) params.callback(data); rm_draw(map); return data; }); function draw_clk(e) { ct++; poly_points_list.push({"lat": e.lngLat.lat,"lng":e.lngLat.lng}); marker[ct] = new mappls.Marker({ map:params.map, position: [e.lngLat.lat,e.lngLat.lng], width:20, height:26, fitbounds:false }); polyline[ct] = new mappls.Polyline({ map:params.map, path: poly_points_list, strokeColor: (params.options.strokeColor?params.options.strokeColor:"red"), strokeOpacity:1, strokeWeight: (params.options.strokeWeight?params.options.strokeWeight:2), lineGap:0, }); }; function rm_draw(map) { map.getCanvas().style.cursor = ''; }; } }, distance:function(lat1, lon1, lat2, lon2, unit) {if ((lat1 == lat2) && (lon1 == lon2)) return 0;else {var radlat1 = Math.PI * lat1/180;var radlat2 = Math.PI * lat2/180;var theta = lon1-lon2;var radtheta = Math.PI * theta/180;var dist = Math.sin(radlat1) * Math.sin(radlat2) + Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta);if (dist > 1) {dist = 1;}dist = Math.acos(dist);dist = dist * 180/Math.PI;dist = dist * 60 * 1.1515;if (unit=="N") { dist = dist * 0.8684 } else dist = dist * 1.609344;return dist;} }, points:function(lat1, lon1, lat2, lon2) { if(!lat1 || !lon1 || !lat2 || !lon2 || ((lat1 == lat2) && (lon1 == lon2))){return 0;} var latDif = (lat2>lat1?(lat2- lat1):(lat1-lat2)).toPrecision(8); var lonDif = (lon2>lon1?(lon2- lon1):(lon1-lon2)).toPrecision(8); var pt_dis=mappls.distance(lat1, lon1, lat2, lon2); var chunks = Math.round(pt_dis*mappls.point_km); var latStep = (latDif / chunks).toPrecision(8); var lonStep =(lonDif / chunks).toPrecision(8); var newLat = lat1,newLon = lon1; var pts=[];pts.push([lat1,lon1]); for(var i = 0; i <chunks;i++){ if(lat1 < lat2){ newLat = parseFloat(newLat)+parseFloat(latStep); } else { newLat = parseFloat(newLat)-parseFloat(latStep); } if(lon1 < lon2){ newLon = parseFloat(newLon) + parseFloat(lonStep); } else { newLon = parseFloat(newLon) - parseFloat(lonStep); } var g_lat=parseFloat(newLat.toPrecision(8)),g_lng=parseFloat(newLon.toPrecision(8)); var pt_strt_dis=mappls.distance(lat1, lon1, g_lat, g_lng); var pt_end_dis=mappls.distance(lat2, lon2, g_lat, g_lng); var dff_dis=pt_dis-(pt_strt_dis+pt_end_dis); if(g_lat>0 && g_lng>0 && dff_dis<10) pts.push([g_lat,g_lng]); } pts.push([lat2,lon2]); return pts; }, bearing:function(startLat, startLng, destLat, destLng) { if(!startLat || !startLng || !destLat || !destLng || ((startLat == destLat) && (startLng == destLng))){return 0;} startLat = mappls.to_rad_deg(startLat,'radian'); startLng = mappls.to_rad_deg(startLng,'radian'); destLat = mappls.to_rad_deg(destLat,'radian'); destLng = mappls.to_rad_deg(destLng,'radian'); y = Math.sin(destLng - startLng) * Math.cos(destLat); x = Math.cos(startLat) * Math.sin(destLat) - Math.sin(startLat) * Math.cos(destLat) * Math.cos(destLng - startLng); brng = Math.atan2(y, x); brng = mappls.to_rad_deg(brng,'degree'); return (brng + 360) % 360; }, to_rad_deg:function(val,type) { return (type=='radian'?(val * Math.PI / 180):(val * 180 / Math.PI)); }, topLayer:function(map) { var layers = map.getStyle().layers,firstSymbolId; for (var i = 0; i < layers.length; i++) {if (layers[i].type === 'symbol') {firstSymbolId = layers[i].id;break;}}return firstSymbolId; }, traffic:function(params,num) { var trffClr='',map=params.map,src=map.getSource('trafficR'),tlayer=params.map.getLayer('traffic'),traffic_url=(params.url?params.url:atob('aHR0cHM6Ly90cmFmZmljLm1hcHBscy5jb20vYWR2YW5jZWRtYXBzL3YyL3RyYWZmaWNfZmxvdy9yYXN0ZXJUaWxlcw=='))+"/png/{z}/{x}/{y}.pbf!?access_token=v_mmi"; if(src===undefined) { map.addSource('trafficR',{"type":"raster","tiles":[traffic_url],"tileSize":256,"minzoom":8,"maxzoom":(params.maxZoom?params.maxZoom:22)}) } if(tlayer) { map.removeLayer("traffic");map.traffic=0; } else { map.addLayer({"id": "traffic","type":"raster","source":"trafficR"},'water_ocean_label'); trffClr='#824707';params.map.traffic=1; map.once('styledataloading', function(e) { setTimeout(function(){if(!map.getLayer('traffic') && map.traffic) mappls.traffic(params,num)},1000)}); } if(bm('#traffic_dv'+num)) bm('#traffic_dv'+num).style.backgroundColor=trffClr; },gjson:[],gjsoNo:0,icn_arr:[], addGeoJson:function(params) { if(params.map && params.data) { mappls.gjsoNo++; var idn=mappls.gjsoNo,type_geojson=[]; var cType = params.cType !== undefined ? params.cType : 0; var viewp=params.preserveViewport !== undefined ? params.preserveViewport : (params.fitbounds !== undefined?params.fitbounds:0); if(typeof params.data=='string') { if(params.data.indexOf('.geojson')!=-1){ var data=MapUtil.getJSON(params.data); if(data) params.data=JSON.parse(data);} } if (cType === 0) {params.data=MapUtil.swapJson(params.data);} if(params.data.features) { var crd_arr=[];icn_arr:new Array(); for(var i=0;i<params.data.features.length;i++) { var gjn_tp=params.data.features[i].geometry.type; if(type_geojson.indexOf(gjn_tp)==-1) type_geojson.push(gjn_tp); var icn=params.data.features[i].properties.icon,cord=params.data.features[i].geometry.coordinates; if(icn!=undefined){ if(icn.indexOf('.')!==-1){ if(this.icn_arr[icn]!=undefined) { params.data.features[i].properties.icon=this.icn_arr[icn];} else { var icn_id=mappls.addImage({map:params.map,url:icn});params.data.features[i].properties.icon=icn_id;this.icn_arr[icn]=icn_id; } } } if( cord[0]) { var addp=[cord];if(cord[0].length<=2 && cord[0].length!==undefined) addp=cord;else if(cord[0].length>2)addp=cord[0]; crd_arr=crd_arr.concat(addp); } } } params.idn=idn; var keys=Object.keys(this.icn_arr); if(keys.length<1){ this.addjsonLayer(params,type_geojson); } else { var last_url = keys.slice(-1),last_id=this.icn_arr[last_url]; mappls.addImage({map:params.map,url:last_url,id:last_id,callback:mappls.addjsonLayer,params:params,type_geojson:type_geojson}); } if(viewp && crd_arr) { var fitbounds_options=params.fitboundOptions!== undefined ? params.fitboundOptions:"";mappls.fitBounds(params.map,crd_arr,fitbounds_options);} var return_json=[]; return_json['idn']=idn; return_json.map=params.map;return_json.cType=params.cType; if(type_geojson.indexOf('Point')!=-1) {return_json.push({'id':"mpt"+idn,"type":"symbol","source":"mixjson"+idn});} if(type_geojson.indexOf('LineString')!=-1) {return_json.push({'id':"mpln"+idn,"type":"line","source":"mixjson"+idn});} if(type_geojson.indexOf('Polygon')!=-1) { return_json.push({'id':"mply"+idn,"type":"fill","source":"mixjson"+idn});} return_json.getPath=function(){return crd_arr; };return_json.getBounds=function(){return mappls.getBounds(crd_arr); }; return_json.setTop=function(){this.map.moveLayer(this[0].id); }; return_json.getBounds=function(){return mappls.getBounds(crd_arr,cType); }; return_json.addListener=function(evt,cl){if(this && this[0].id){ this.map.on(evt,this[0].id,function(e){ var v=e.features;v.lngLat=e.lngLat;cl(v)}); } }; return_json.getData=function(){ var d=params.map.getSource("mixjson"+this.idn)._data; if(cType!==1) d=MapUtil.swapJson(d); return d; }; var icnData=this.icn_arr; return_json.setData=function(data){ if(data!=undefined){ if(cType!==1) data=MapUtil.swapJson(data); for(var i=0;i<data.features.length;i++) { var icn=data.features[i].properties.icon; if(icn!=undefined){ if(icn.indexOf('.')!==-1){ if(icnData[icn]!=undefined) { data.features[i].properties.icon=icnData[icn];} else { var icn_id=mappls.addImage({map:params.map,url:icn});params.data.features[i].properties.icon=icn_id;icnData[icn]=icn_id; } } } } return params.map.getSource("mixjson"+this.idn).setData(data); } }; return return_json; } }, addjsonLayer:function(params,type_geojson) { var mix=[],idn=params.idn,src="mixjson"+idn,map=params.map; if(params.source) {src=params.source;map.getSource(src).setData(params.data);} else { try{ map.addSource(src, {type: "geojson",data: params.data}); }catch(e){mappls.addjsonLayer(params,type_geojson);return false;} } var beforeId="";if(params.beforeId!=undefined) beforeId=params.beforeId; if(type_geojson.indexOf('Polygon')!=-1){ map.addLayer({"id": "mply"+idn,"type": "fill","source": src, "paint": {"fill-color": ['match', ['get', 'fill'],"#999777","#999999", ['get', 'fill']],"fill-outline-color":['match', ['get', 'stroke'],"#111000","#111000", ['get', 'stroke']],"fill-opacity": ['match', ['get', 'fill-opacity'], ['get', 'fill-opacity'] , 1 , ['get', 'fill-opacity']]},"filter": ["==", "$type", "Polygon"]},beforeId); mix[0]=map.getLayer('mply'+idn); if(params.hover_callback) { map.on('mouseenter', "mply"+idn, function(e) {params.hover_callback(e);}); } if(params.callback) map.on('click', "mply"+idn, function (e) {map.closePopup(); var dtt=e.features[0];dtt['event']=e; params.callback(dtt); }); else map.on('click', "mply"+idn, function (e) {map.closePopup(); var dtt=e.features[0],phtm=dtt.properties.description;if(!phtm) phtm=dtt.properties.name;if(dtt.properties && phtm){var coord= e.lngLat;mappls.popup["mply"+idn]=new mapplsgl.Popup(params.popupOptions).setLngLat(coord).setHTML(phtm).addTo(map);} }); } if(type_geojson.indexOf('LineString')!=-1){ if(!beforeId) beforeId="water_ocean_label"; var dt={"id": "mpln"+idn,"type": "line","source": src,"layout": {"line-cap": "round"}, "paint": {"line-width": ['match', ['get', 'stroke-width'],4,4, ['get', 'stroke-width']],"line-color":['match', ['get', 'stroke'],"#111","#111", ['get', 'stroke']],"line-opacity": ['match', ['get', 'stroke-opacity'], ['get', 'stroke-opacity'] , 1 , ['get', 'stroke-opacity']]},"filter": ["==", "$type", "LineString"]}; if(params.dasharray) dt.paint['line-dasharray']=params.dasharray; map.addLayer(dt,beforeId); mix[1]=map.getLayer('mpln'+idn); map.on('mouseenter', "mpln"+idn, function (e) {map.getCanvas().style.cursor = 'pointer';}).on('mouseleave', "mpln"+idn, function (e) { map.getCanvas().style.cursor = ''; }); if(params.callback){ map.on('click', "mpln"+idn, function (e) {map.closePopup(); var dtt=e.features[0];dtt['event']=e; params.callback(dtt); }).on('mouseenter', "mpln"+idn, function (e) {map.getCanvas().style.cursor = 'pointer';}).on('mouseleave', "mpln"+idn, function () {map.getCanvas().style.cursor = '';}); } if(params.hover_callback){ map.on('mouseenter', "mpln"+idn, function(e) {params.hover_callback(e);}); } } if(type_geojson.indexOf('Point')!=-1){ var tmt=2000,filter=["==", "$type", "Point"]; if(params.filter) filter=params.filter; var pts=function(){ map.addLayer({"id": "mpt"+idn,"type": "symbol","source": src, "layout": {"icon-image":params.icon?params.icon:['string', ['get', 'icon'], "common"],"icon-size":params['icon-size']?params['icon-size']:['number', ['get', 'icon-size'],1],"icon-offset":["case",["has", "icon-offset"],['get', 'icon-offset'],["literal", (params.offset?params.offset:[0, -25])]],"icon-anchor":['string', ['get', 'icon-anchor'],"top"],"icon-allow-overlap":(params.overlap!=undefined?params.overlap:true),"text-allow-overlap":(params.overlap!=undefined?params.overlap:true),"icon-padding":0,"text-field":['string', ['get', 'text'], ""],"text-size":params.textSize?params.textSize:['number', ['get', 'text-size'], ""],"text-font":params.font?params.font:["Open Sans Regular"],"text-offset":["case",["has", "text-offset"],['get','text-offset'],["literal",params.textOffset?params.textOffset:[0,-2]]],'icon-rotate':['number', ['get', 'rotation'], 0]}, "paint":{"text-halo-blur":2,"text-halo-width":2,"text-halo-color":"rgba(255, 255, 255, 1)","text-color":params.textColor?params.textColor:['string', ['get', 'text-color'], "#000"]}, "filter": filter},beforeId); }; pts(); mix[2]=map.getLayer('mpt'+idn); if(params.hover_callback){ map.on('mouseenter', "mpt"+idn, function(e) {params.hover_callback(e);}); } var popp=function(e) { mappls.closepop(); if(params.callback!=undefined) params.callback(e.features[0]); var coord= e.features[0].geometry.coordinates.slice(),desc = e.features[0].properties.description,nme=e.features[0].properties.name;if(!desc)desc = e.features[0].properties.htmlPopup; if(desc===undefined) desc=''; if(desc || nme){mappls.popup["mpt"+idn]=new mapplsgl.Popup({className: "Popmpt"+idn,offset:params.popupOffset?params.popupOffset:[0,-24]}).setLngLat(coord).setHTML(nme!=undefined?nme+'<br>'+desc:desc).addTo(map);} }; map.on('click', "mpt"+idn, function (e) { popp(e);}).on('mouseenter', "mpt"+idn, function (e) { map.getCanvas().style.cursor = 'pointer'; if(params.hover_popup) popp(e); }).on('mouseleave', "mpt"+idn, function (e) { map.getCanvas().style.cursor = ''; if(params.hover_popup) { mappls.popHide("Popmpt"+idn); } }); if(params.icon && (map.hasImage(params.icon) || params.clusters!==true)) tmt=0; setTimeout(function(){ if(map.getLayer("mpt"+idn)){ try{map.removeLayer("mpt"+idn); pts(); }catch(e){}} },tmt); } }, imgNo:0, addImage:function(p) { if(!p.url) return true; if(p.map.hasImage(p.url)) return p.url; var imid=p.id==undefined?'icn'+(this.imgNo++):p.id; p.map.loadImage(p.url, function(error,image) { try{if(!p.map.hasImage(imid)) { p.map.addImage(imid, image);} }catch(e){} if(p.callback) p.callback(p.params,p.type_geojson); }); return imid; }, popHide:function(Pcls){ var cls=document.querySelector("."+Pcls); if(cls) { var ppFCS=0; cls.addEventListener('mouseenter',function(){ppFCS=1;}); cls.addEventListener('mouseleave',function(){mappls.closepop();}); setTimeout(function(){if(!ppFCS) mappls.closepop(); },300); } }, _3: function (params) { var isJson = params.isJson !== undefined ? params.isJson : false, geojson = params.geojson !== undefined ? params.geojson : {}, center = params.center.lat !== undefined ?[params.center.lat,params.center.lng] : [0, 0], radius = params.radius !== undefined ? parseInt(params.radius) : 100, color = params.fillColor !== undefined ? params.fillColor : "blue", opacity = params.fillOpacity !== undefined ? params.fillOpacity : 1, id = params.id !== undefined ? params.id : "circle" + (cidx++), cType = params.cType !== undefined ? params.cType : 0; center = MapUtil.swapMarkerCoordinates(center); geojson = MapUtil.createGeoJson(mappls.featureType[2], center); mappls.markerPosition.push(center); mappls.createBoundsArray(mappls.markerPosition); var cirPts = function(center, km, points) { if(!points) points = Math.round(parseFloat(km)*1000);if(points<50) points=64; var ret = [],coords = {lt: parseFloat(center[1]),ln: parseFloat(center[0])}; var distanceX = km/(111.320*Math.cos(coords.lt*Math.PI/180)),distanceY = km/110.574, theta, x, y; for(var i=0; i<points; i++) { theta = (i/points)*(2*Math.PI); x = distanceX*Math.cos(theta);y = distanceY*Math.sin(theta);ret.push([coords.ln+x, coords.lt+y]); } ret.push(ret[0]); return {"type": "geojson","data": {"type": "FeatureCollection","features": [{"type": "Feature","geometry": {"type": "Polygon","coordinates": [ret]}}]}}; }; var rad = { stops: [[0, 0],[22, MapUtil.metersToPixelsAtMaxZoom(radius*4, center[1])]],base: 2}; var rt={id: id,type: 'circle',map:params.map,radius:radius}; rt.addListener=function(evt,callback){ this.map.on(evt,this.id,function(e) {callback(e);});}; rt.getBounds=function(){if(this.id && this.map){var sr=this.map.getSource(this.id);if(sr){ var dt=sr._data.features[0].geometry.coordinates; if(dt){ var fdt=dt[0]; if("object"!==typeof fdt){var rdt=new mapplsgl.LngLat(dt[0],dt[1]).toBounds(this.radius).toArray(); fdt=[{lng:rdt[0][0],lat:rdt[0][1]},{lng:rdt[1][0],lat:rdt[1][1]}]; } return mappls.getBounds(fdt,0); } } }}; try{ var src=cirPts([center[0],center[1]],radius/1000), tp='fill',pt={'fill-color': color,'fill-opacity': opacity,"fill-outline-color":params.strokeColor!=undefined?params.strokeColor:(params.strokeWidth || params.strokeWeight?color:"transparent")}; if(params.type!=='polygon'){ src={'type': 'geojson','data': geojson}; tp="circle";pt={'circle-radius': rad, 'circle-color': color,'circle-opacity': opacity,"circle-stroke-color":params.strokeColor!=undefined?params.strokeColor:(params.strokeWidth || params.strokeWeight?color:"transparent"),"circle-stroke-width":params.strokeWidth!=undefined?params.strokeWidth:(params.strokeWeight?params.strokeWeight:1),"circle-stroke-opacity":params.strokeOpacity!=undefined?params.strokeOpacity:1}; } params.map.addLayer({'id': id,'type': tp,'source':src,'layout': {},'paint':pt}); if(params.text){ params.map.addLayer({"id": "lbl"+id, "source": {'type': 'geojson','data': geojson}, "type": "symbol", "paint":{'text-color':params['text-color']?params['text-color']:'#333'}, "layout": {'text-field':params.text.toString(),"text-font": ["Open Sans Regular"],"text-max-width":params['text-width']?parseInt(params['text-width']):5, 'text-size': params['text-size']?parseInt(params['text-size']):15,'text-ignore-placement':true,'text-allow-overlap':true } });} return rt; } catch(e){ params.map.once('data', function () {params.id=id;mappls._3(params);}); return rt; } }, HeatmapLayer: function (params) { if(!params.map){console.error("Error:Please pass map object");return false;} var isJson = params.isJson !== undefined ? params.isJson : true,ou_c="white",in_c='#3A78E7'; if(params.data !== undefined) var geojson=params.data;else {console.error("Error:Please pass data for heatmap");return false;} var id = params.id !== undefined ? params.id : (geojson.id!==undefined?geojson.id:"heatmp" + (pgidx++)), fitbounds=params.fitbounds!== undefined ? params.fitbounds: false, fitbounds_options=params.fitboundOptions!== undefined ? params.fitboundOptions:"", gradient=params.gradient!== undefined ? params.gradient:"", opacity=params.opacity!==undefined?params.opacity:.8, radius=params.radius!=undefined?params.radius:2, weight=params.weight!=undefined?params.weight:0.5, maxIntensity=params.maxIntensity!=undefined?params.maxIntensity:1; if(geojson.indexOf('.geojson')==-1){ var json = { "type": "FeatureCollection", "features": []};coordsArray=[]; for(var i=0;i<geojson.length;i++) { coordsArray[i]=[geojson[i].lng,geojson[i].lat,geojson[i].title]; json.features[i]={ "type": "Feature","properties": {"weight": 10},"geometry": {"type": "Point", "coordinates": [geojson[i].lng,geojson[i].lat]}}; } } else json=geojson; if(json) { setTimeout(function(){ params.map.addLayer({ "id": id, "type": "heatmap","maxzoom": params.maxzoom?params.maxzoom:22, "source": {'type': 'geojson','data': json}, "paint": { "heatmap-weight": weight, "heatmap-intensity": maxIntensity, "heatmap-radius": ["interpolate",["linear"],["zoom"],0, radius,9, 20,10,15], "heatmap-opacity": ["interpolate",["linear"],["zoom"],7, opacity,9, opacity] } }); if(gradient){ var gradt_clr=[0,"rgba(33,102,172,0)"],div=1/gradient.length,ou_c=gradient[0],in_c=gradient[1]; for(var i=0;i<gradient.length;i++) { gradt_clr.push(parseFloat((div*(i+1)).toPrecision(2)));gradt_clr.push(gradient[i]); } var htclr=["interpolate",["linear"],["heatmap-density"]]; params.map.setPaintProperty(id, 'heatmap-color', htclr.concat(gradt_clr)); } try{ if((fitbounds!=='false' && fitbounds!==false) || mappls.bnd_all!==false) { var fit_arr=[]; var data=json;if(json.features) data=json.features; for(var i=0;i<data.length;i++) { var pos=data[i].geometry.coordinates; fit_arr.push(pos); } mappls.fitBounds(params.map,fit_arr,fitbounds_options); } }catch(e){} var pg_id=params.map.getLayer(id); return pg_id; },10); } return {'id':id,"type":"heatmap"}; }, get_pos:function(pos,map_no,map_id){ var ps_json=mappls.ControlPosition,pos_val=''; for (var pozjson in ps_json) {if(ps_json[pozjson]==pos) pos_val=pozjson;} if(!pos_val) pos_val="RIGHT_CENTER"; var cnstyl='1',cnpos=pos_val.replace('-','_').split('_'); if(cnpos.length==2) { if(cnpos[0]=='LEFT') cnstyl='left:5px;';else if(cnpos[0]=='RIGHT') cnstyl='right:6px;';else if(cnpos[0]=='TOP') cnstyl='top:10px;';else if(cnpos[0]=='BOTTOM') cnstyl='bottom:45px;'; else if(cnpos[0]) cnstyl='top:'+cnpos[0]; if(cnpos[1]=='LEFT') cnstyl+='left:5px;';else if(cnpos[1]=='RIGHT') cnstyl+='right:6px;';else if(cnpos[1]=='TOP') cnstyl+='top:10px;';else if(cnpos[1]=='BOTTOM') cnstyl+='bottom:45px;';else if(cnpos[1]=='CENTER'){ if(cnpos[0]=='TOP' || cnpos[0]=='BOTTOM')cnstyl+='left:'+(bm('#'+map_id).clientWidth/2)+'px';else cnstyl+='top:'+((bm('#'+map_id).clientHeight/2)-bm('#mmi_ctrl'+map_no).clientHeight/2)+'px';}else if(cnpos[1]) cnstyl='left:'+cnpos[1]; } return cnstyl; }, addHybridControl: function (map_no,mhy,mcomps,position,traffic,map_id) { var lyr=mappls.mmi.lr,cmps='',claim=mappls.mmi.claim,traffic_d='',pos="style='"+cnstyl+";'"; if(mcomps!==false && lyr=='vector') cmps='<li><a alt="Compass" title="Compass" onclick="var p=map_o['+map_no+'].getPitch()>0?0:85;map_o['+map_no+'].setPitch(p).easeTo({bearing:0,duration:1000});bm(\'#d3'+map_no+'\').innerHTML=(p?\'2D\':\'3D\')" style="line-height:0" ><span class="mcompass" id="mcompass'+map_no+'" style="'+(lyr!='vector'?'height:35px':'')+'"></span><span style="font-size:12px;'+(lyr!='vector'?'display:none':'')+'" id="d3'+map_no+'" class="D3">3D</span></a></li>'; if(traffic!==false && claim.search('Traffic')!=-1) traffic_d='<li ><a alt="Traffic" title="Traffic" bmclk="mappls!traffic({map:map_o['+map_no+']},'+map_no+')"; id="traffic_dv'+map_no+'"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfjBwgJECq1ONd7AAABvElEQVQ4y6XTz0vUQRzG8dcsgiJdki6BURgZQrKHMIMI/AM8bPQHdBEiijoEpTdBCC08FEWXzgpdLAwsISw6d0ojNrfQgo4LSlLgOh2c/e7PDtHnNPM8M5+HefMZ/rFC4zbecL3pxINwv37b0WQf1NeiaLkQb+oHxaT+8FDFVUca3TBbTeh2SSfeeIvfzocS8amPujBqBL/cgRyEKf2WstTVUILw1YdMW9IfprILhE2jZpJ5NHZDPOB4UmaMhm/7y1yGay+Mew4OWYjD8YwFPeBZGA97bRnHjjgZm2syNpDcp3Q6wStn+me7BtI6H5Mb3lc7L6duKynhCsSxlLCS3OXaGwpu26p1D48hPPEp07bcUqhh3Ql3DVlL5m7L4KwZCvfCTiOlohEbYCCOQbzsJNgwEoraVezNKBVjMaPU20IpS/keq8sT9Wr9mRzEuViKpViKc0l97Zxhr1Jug7ufMG/QKWwqouxC2CZetKkHh/Vh1XyN0qK8CZXUfz1sQ/hpPSkVE/JhsX749sK0QgI6GI9B7JNPmAthujpNdY8OL+Kus+jyLj7CNZ1gNrz0t2o3fI0nmv902ZcW5f/qD4kh2o2SjP31AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTA3LTA4VDA3OjE2OjQyKzAyOjAw5QB3jAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wNy0wOFQwNzoxNjo0MiswMjowMJRdzzAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC"/></a></li>'; var a = '<div class="map-control" id="mmi_ctrl'+map_no+'"><ul class="expand-map-control">'+cmps+traffic_d+'<li ><a alt="Zoom In" title="Zoom In" class="map-zoom-in" bmclk="map_o['+map_no+']!zoomIn|)" >+</a></li><li style="border:none;margin-bottom:5px"><a alt="Zoom Out" title="Zoom Out" class="map-zoom-out" bmclk="map_o['+map_no+']!zoomOut|)" style="line-height:30px;font-size:38px;border-radius:0 0 6px 6px">-</a></li>'; if(mhy!==false && claim.search('Satellite')!=-1) a+='<li bmclk="mappls!_lsat|'+map_no+')" style="height: 55px;border-radius:15px;width:34px;border:2px solid #2a445b;overflow:hidden;cursor:pointer"><img src="'+mappls.mmi.pth+'/hybridview.jpg" id="layer_mp'+map_no+'"></li>'; a+='</ul></div>'; var nav = document.createElement('nav'); nav.id = 'mmi_menu'+map_no; nav.innerHTML = a; bm('#'+cont_id).appendChild(nav); var cnpos="",cnstyl=''; }, createBoundsArray: function (coordinates) { mappls.bounds = coordinates.reduce(function (bounds, coord) { return bounds.extend(coord); }, new mapplsgl.LngLatBounds(coordinates[0], coordinates[0])); }, multiBounds:function(act,options) { if(act==true){ mappls.bnd_all=true; if(options) mappls.bnd_options=options;} else {mappls.bnd_all=false;mappls.bnd_options=[];} }, multibounds:[],bnd_all:false,bnd_options:[], fitBounds: function (map,coordinate_arr,options) { var mpobj=map; if(coordinate_arr==undefined){ if(map.layers!==undefined && map.map) { if(!map.map.loaded()){ map.map.once('load',function(){ return mappls.fitBounds(map,coordinate_arr,options);}); } var lr=map.layers,bnd=[]; if(!Array.isArray(lr) || "function"==typeof lr.getBounds) lr=[lr]; for(var i=0;i<lr.length;i++){ if(lr[i] && "function"===typeof lr[i].getBounds){ var bn=lr[i].getBounds(); if(bn && bn._ne){ bnd.push([bn._ne.lng,bn._ne.lat]);bnd.push([bn._sw.lng,bn._sw.lat]);} }else if(Array.isArray(lr[i])){ for(var j=0;j<lr[i].length;j++){ if(lr[i][j].getBounds){ var bn=lr[i][j].getBounds();if(bn._ne){ bnd.push([bn._ne.lng,bn._ne.lat]);bnd.push([bn._sw.lng,bn._sw.lat]);} } } } } if(bnd.length) map.bounds=bnd; } if(map.map!=undefined && map.bounds) { coordinate_arr=map.bounds;options=map.options?map.options:map.fitboundOptions;mpobj=map.map; if(coordinate_arr._sw){map.map.fitBounds(coordinate_arr,options?options:{padding:150});return true;} else if(coordinate_arr && coordinate_arr[0] && map.cType===0) MapUtil.swapCoordinates(coordinate_arr,1); } else{ console.warn("no data for fitbounds, pass ie. map:map,bounds:");return false;} } else if(coordinate_arr.length==2) { MapUtil.swapCoordinates(coordinate_arr); coordinate_arr=[[coordinate_arr[0],coordinate_arr[1]]] } this.markerPosition = [];if(!options) options={padding: 50,maxZoom:18,duration:1000}; if(options.multibounds || mappls.bnd_all) { coordinate_arr=coordinate_arr.concat(mappls.multibounds); mappls.multibounds=coordinate_arr; if(mappls.bnd_options) options=mappls.bnd_options; } else mappls.multibounds=[]; setTimeout(function(){ if(coordinate_arr.length>=1) { mappls.bounds = new mapplsgl.LngLatBounds(); if(!coordinate_arr[0].length) { mappls.bounds.extend([coordinate_arr[0],coordinate_arr[1]]); } else { for(var i=0;i<coordinate_arr.length;i++) { mappls.bounds.extend(coordinate_arr[i]); } } } if(mpobj.resize && "object"==typeof mappls.bounds._ne){ mpobj.resize(); mpobj.fitBounds(mappls.bounds, options); mappls.bounds = new mapplsgl.LngLatBounds(); } },10); return true; }, InfoWindow: function (params) { var isHtml = params.isHtml !== undefined ? params.isHtml : true; var text = params.content !== undefined ? params.content : ''; var layer = params.layer !== undefined ? params.layer : null; var map = params.map !== undefined ? params.map : null; var overlay = params.overlay !== undefined ? params.overlay : ""; var position = params.position !== undefined ? [params.position.lng,params.position.lat] : []; var closeButton = params.closeButton !== undefined ? params.closeButton : true; var closeOnClick = params.closeOnClick !== undefined ? params.closeOnClick : true; var offset = params.offset !== undefined ? params.offset : [0, 0]; var classname = params.className !== undefined ? params.className : ""; var maxwidth=params.maxWidth!==undefined?params.maxWidth:""; var anchor=params.anchor!==undefined?params.anchor:""; var offset=params.offset!==undefined?params.offset:""; var popup = new mapplsgl.Popup({closeButton: closeButton,closeOnClick: closeOnClick,maxWidth:maxwidth,anchor:anchor,offset:offset,className: classname}); if (isHtml) { popup.setLngLat(position).setHTML(text); } else if(text) { popup.setLngLat(position).setText(text); } if (map !== null) { popup.addTo(map); } popup.open=function(map,id){ this.addTo(map);}; popup.close=function(){this.remove();}; popup.setContent=function(html){this.setHTML(html);}; popup.setPosition=function(pos){this.setLngLat([pos.lng,pos.lat]);}; return popup; }, removeGsonData: function (map_no) { if (Object.keys(mappls.sources).length > 0) { for (var key in mappls.sources) { if (map_o[map_no].getLayer(key) === undefined) { delete mappls.sources[key]; delete mappls.layers[key]; } } } }, restoreOverlays: function (map_no) { if (Object.keys(mappls.sources).length > 0) { var sr = mappls.sources; var ly = mappls.layers; for (var key in mappls.sources) { if (sr.hasOwnProperty(key) && ly.hasOwnProperty(key)) { if (map_o[map_no].getLayer(key) !== undefined) { map_o[map_no].removeSource(key); map_o[map_no].removeLayer(key); } map_o[map_no].addSource(key, sr[key]); map_o[map_no].addLayer(ly[key]); } }f } }, add3DModel:function(p){ if(!p || !p.map){return {'error':'Provide map object'};}; if(typeof p.label!="boolean"){p.label=true;} if("function"!==typeof Model3d) mappls.mjs('3dmodel.build.js'); var model3d = new Model3d(p); mappls.removeModel3D=p.remove=function(){return model3d.remove()}; return p; }, rotate:function(p){ }, mjs:function(js,sync) { try{ MapUtil.getJSON(js.indexOf('://')!==-1?js:mappls.mmi.pth+"/../advancedmaps/api/"+mappls.mmi.k+"/map_sdk?"+js+"&x-sec"+this.mmi.a,function(d){ var scrt = document.createElement("script");scrt.appendChild(document.createTextNode(d));document.body.appendChild(scrt); },sync);}catch(e){} }, _5:function(st,mp) { var rv=function(s){return s.split("").reverse().join("").slice(1, -1);}; if(!this.listStyles && (!st || st.indexOf('://')==-1)){ MapUtil.getJSON(mappls.mmi.pth.replace('map_sdk','')+atob("YWR2YW5jZWRtYXBzL3ZhcGkvZ2V0U3R5bGVzL2pzb24/ciZhY2Nlc3NfdG9rZW49")+mappls.mmi.k+"&x-sec"+this.mmi.a,function(d){mappls.listStyles=rv(d);}); } var dt=[],allwd_sty=st && st.indexOf('://')!==-1?st:0,sty=mappls.listStyles?JSON.parse(mappls.listStyles):""; if(sty && sty.data){ var dt=[]; for(var i=0;i<sty.data.length;i++){ var nm=sty.data[i].name,dn=sty.data[i].displayName,u=(sty.data[i].styleUrl.indexOf('http')==-1?sty.baseUrl+sty.data[i].styleUrl:sty.data[i].styleUrl),uI=sty.baseUrl+sty.data[i].imageUrl; if(st && (st==nm || st==dn) && !allwd_sty) allwd_sty=u; dt.push({name:nm,description:sty.data[i].description,displayName:dn,imageUrl:uI}); } } if(st){ if(allwd_sty){ if(allwd_sty.indexOf('?')!==-1) allwd_sty+="&x-sec"+this.mmi.a; MapUtil.getJSON(allwd_sty,function(d){if(d){ if(mp) {try{mp.setStyle(JSON.parse(rv(d))).styleN=st;setTimeout(function(){mappls._act(mp.num);},100);}catch(e){console.warn("failed");}} else { var m=mappls.mObj; for (var ob in m) { m[ob].setStyle(JSON.parse(rv(d))).styleN=st; } } } }); return true; }else if(st=='default' && mp){ mp.setStyle(mappls._vs()); }else return {error:atob('SW52YWxpZCBTdHlsZQ==')}; } else{ if(dt)return dt; } }, _6:function(s,m){if(s) return this._5(s,m);else return false;}, _f:{'TWFya2Vy':'_0','YWRkTWFya2Vy':'_0','UG9seWdvbg==':'_1','UG9seWxpbmU=':'_2','Q2lyY2xl':'_3','TWFw':'_4','Z2V0U3R5bGVz':'_5','c2V0U3R5bGU=':'_6'}};M.mmi=JSON.parse(M.rv('=0nIxADMiojIoNWYjJCLiEjI6ISYiwb!iI0ETN2UGZkNTY2YjZwQmYlZjZmFzM3YWZ3MjMtJGMxgTZxYTMiJiOiUXYiwiIiojItlWYsNmIsIiI6IyajFmYsNmIsIicvR3YlZnI6IicsJCLi0TVUpVMRR0Tzk1VPVTQU5EMnRlT0ElaatGZE5keRd0TsJFVONTR65UeFpmWoBTbZNkRVVlQSV1USFjMThnRXVmUSRkYspVRhVVMrFmMaxWWyRTVXJlSWVFa0N1U2YVRaRFbF9kRWZEZEplVOVFbUNmRoJTT00kMVRTTF1kaGpWUPlTVjhXTWJ1dwUUZ45kVaRjSudlRGFTW5RGVRpEbUVWMGpnW3ZEMTdkUXR1TkVEVoB3aWlEZX1EMNV1YSR2MSZlSu5USGBzUxYURSBnSqRGeOZkU0VTbVNkWyQFWo5mWyYkRUpkSxwUYSNjT2R3aitmTVNWSGZlY1hGbNVXOpJGbCFjWxU0MR9UMVl1RaJjV3lkaURFZtV2RxclWEZUMaNEdVVFcKBTUFZ0aUhkUUFlQWZVVCpUVSJlUw0UasBTVIZ0MVREZF1kQxsmWIxWVUJiOiIGciwiIrR2cfBXYt9SbvNmLzxGcwFWbuMXawF2LvozcwRHdoJiOigGdwJCLiUTZ1QDO3YWO5ATN0gTN4QjZkdDNzQGOlRTN3EzNyEjZiojIrJCLiQjMiojI2Jye'));M.logo="https://cdn.mapmyindia.com/mappls_web/logos/1x/mappls_mmi.png";M.defaultMarker=M.mmi.pth+"/../map_v3/1.png";return M;})();var _0x7843=["\x5F\x66"];for(var fc in mappls[_0x7843[0]]){mappls[atob(fc)]= mappls[mappls[_0x7843[0]][fc]]}mappls.LngLatBounds.convert=mapplsgl.LngLatBounds.convert;mappls.LngLatBounds.prototype=mapplsgl.LngLatBounds.prototype;mappls.ControlPosition={BOTTOM: 11,BOTTOM_CENTER: 11,BOTTOM_LEFT: 10,BOTTOM_RIGHT: 12,CENTER: 13,LEFT: 5,LEFT_BOTTOM: 6,LEFT_CENTER: 4,LEFT_TOP: 5,RIGHT: 7,RIGHT_BOTTOM: 9,RIGHT_CENTER: 8,RIGHT_TOP: 7,TOP: 2,TOP_CENTER: 2,TOP_LEFT: 1,TOP_RIGHT: 3};mappls.decodePath=function(encoded,pc) { if(!pc) pc=100000;else pc=1000000;encoded=unescape(encoded); var points=[];var index=0,len=encoded.length;var lat=0,lng=0;while(index<len){var b,shift=0,result=0;do{b=encoded.charAt(index++).charCodeAt(0)-63;result|=(b&31)<<shift;shift+=5}while(b>=32);var dlat=((result&1)!=0?~(result>>1):(result>>1));lat+=dlat;shift=0;result=0;do{b=encoded.charAt(index++).charCodeAt(0)-63;result|=(b&31)<<shift;shift+=5}while(b>=32);var dlng=((result&1)!=0?~(result>>1):(result>>1));lng+=dlng;points.push([lat/pc,lng/pc])};if(points[0][0]>100) return mappls.decodePath(encoded,1); else return points};mappls.event={ addListener:function(obj,evt,callback) { obj.on(evt,function(e) {callback(e);}); }, addListenerOnce:function(obj,evt,callback) { obj.on(evt,function(e) {callback(e);}); }, addDomListener:function(obj,evt,callback) { obj.on(evt,function(e) {callback(e);}); }, addDomListenerOnce:function(obj,evt,callback) { obj.on(evt,function(e) {callback(e);}); }, clearListeners:function(obj,evt) { obj.off(evt); }};var MapUtil = { create_control:function(map,html) { this.map = map; this.container = document.createElement('div'); this.container.className = 'my-custom-control'; this.container.textContent = 'My custom control'; return this.container; }, swapCoordinates: function (coordsArray, t) { if(coordsArray.length[0]==undefined && (!t || typeof coordsArray[0]=='number')) {return MapUtil.swapMarkerCoordinates(coordsArray);} else{ for (var i = 0; i < coordsArray.length; i++) { coordsArray[i][0] = coordsArray[i].splice(1, 1, coordsArray[i][0])[0]; } } }, swapMarkerCoordinates: function (position) { var x = position[0], y = position[1]; return [y,x]; }, createGeoJson: function (fType, coordsArray, isStockMarker, icon_image, title) { var properties = {}; if (isStockMarker) { properties = { "title": title, "icon": icon_image } }; try{if('number'!==typeof coordsArray[0][0][0] && fType=='Polygon') coordsArray=coordsArray[0];}catch(e){} var geojson = { "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": { "type": fType, "coordinates": coordsArray }, "properties": properties }] }; return geojson; }, swapJson:function(json) { var count =json.features.length,njson=JSON.parse(JSON.stringify(json)); for(var i=0; i<count; i++){ var pts_cord=njson.features[i].geometry.coordinates; if(pts_cord.length>=1) { if(pts_cord[0].length==undefined) {njson.features[i].geometry.coordinates = [njson.features[i].geometry.coordinates[1], njson.features[i].geometry.coordinates[0]];} else { for(var j=0;j<pts_cord.length;j++) { var jlength=njson.features[i].geometry.coordinates[j]; if(jlength[0].length==undefined){ njson.features[i].geometry.coordinates[j] = [njson.features[i].geometry.coordinates[j][1], njson.features[i].geometry.coordinates[j][0]]; } else{ for(var k=0;k<jlength.length;k++) { njson.features[i].geometry.coordinates[j][k] = [njson.features[i].geometry.coordinates[j][k][1], njson.features[i].geometry.coordinates[j][k][0]]; } } } } } } return njson; }, createLayerData: function (ldo) { var uid = ldo.id; if (!mappls.layers.hasOwnProperty(ldo.id)) { switch (ldo.layerType) { case "polyline" : var gradient=['interpolate',['linear'],['line-progress']]; mappls.layers[ldo.id] = { "id": ldo.id, "type": "line", "source": ldo.id, "layout": { "line-join": ldo.lineJoin, "line-cap": ldo.lineCap }, "paint": { "line-color": ldo.lineColor, "line-width": ldo.lineWidth, "line-gap-width":ldo.lineGap, 'line-opacity':ldo.lineOpacity } }; if(ldo.gradient!=''){ mappls.layers[ldo.id].paint['line-gradient']=gradient.concat(ldo.gradient);} if(ldo.dasharray!=''){ mappls.layers[ldo.id].paint['line-dasharray']=ldo.dasharray;} break; case "symbol" : mappls.layers[ldo.id] = { "id": ldo.id, "type": "symbol", "source": ldo.id, "layout": { "icon-image": "{icon}" + ldo.icon_size, "text-field": "{title}" } }; break; case "cluster" : var bg={property: "point_count",type: "interval",stops:[[0, ldo.bgcolor?ldo.bgcolor:"#51bbd6"],[20, ldo.bgcolor?ldo.bgcolor:"#b85bf9"],[50, ldo.bgcolor?ldo.bgcolor:"#f1f075"],[100, ldo.bgcolor?ldo.bgcolor:"#f28cb1"]]}; if(typeof ldo.bgcolor=='object') bg.stops=ldo.bgcolor; var rad={property: "point_count",type: "interval",stops: [[0, 5],[20, 20],[50, 25],[100, 30]]}; if(typeof ldo.clusterRadius=='number' ) rad.stops=[[0,ldo.clusterRadius]]; else if(Array.isArray(ldo.clusterRadius)) rad.stops=ldo.clusterRadius; mappls.layers[ldo.id] = { "id": ldo.id, "type": "circle", "source": ldo.id, filter: ["has", "point_count"], paint: { "circle-color": bg, "circle-radius": ldo.clustersIcon?0:rad } }; break; } } else if (ldo.hasOwnProperty("cluster") && ldo.cluster) { switch (ldo.layerType) { case "cluster-icon": uid = "cluster-count" + (clcnt++); mappls.clusterLayer.push(uid); mappls.layers[uid] = { id: uid, type: "symbol", source: ldo.id, filter: ["has", "point_count"], layout: { "icon-image":ldo.clustersIcon?ldo.clustersIcon:"", "icon-size":(ldo.icon_size?ldo.icon_size:.5), "text-allow-overlap":true, 'icon-allow-overlap': true, "text-field": "{point_count_abbreviated}", "text-font": ["Open Sans Regular"], "text-size": ldo.text_size?ldo.text_size:12 }, paint: { "text-color": ldo.color?ldo.color:"#000000", "text-halo-width":ldo.hlw?ldo.hlw:1, "text-halo-color":ldo.hlc?ldo.hlc:"#000021" } }; break; case "unclustered-point": uid = "unclustered-point" + (unclcnt++); mappls.clusterLayer.push(uid); var bg=ldo.bgcolor?ldo.bgcolor:"#000"; if(typeof ldo.bgcolor=='object' && ldo.bgcolor[0] && ldo.bgcolor[0][1]) bg=ldo.bgcolor[0][1]; var rad=ldo.clusterRadius && ldo.clusterRadius!=20?ldo.clusterRadius:10; if(typeof ldo.clusterRadius=='object' && ldo.clusterRadius[0] && ldo.clusterRadius[0][1]) rad=ldo.clusterRadius[0][1]; mappls.layers[uid] =ldo.icon_image? { id: uid, type: "symbol", source: ldo.id, filter: ["!has", "point_count"], "layout": { "icon-image": ldo.icon_image, "icon-size":(ldo.icon_size?ldo.icon_size:1), 'icon-allow-overlap': true, "text-field": "{text}", "text-size":"{text-size}", "text-font": ["Open Sans Regular"], "text-size": 11 } }:{ id: uid, type: "circle", source: ldo.id, filter: ["!", ["has", "point_count"]], paint: { "circle-color": bg, "circle-radius": rad, "circle-stroke-width": 2, "circle-stroke-color":"#fff" } }; break; } } return mappls.layers[uid]; }, createSourceData: function (id, geojson, isCluster, co) { if (!mappls.sources.hasOwnProperty(id)) { if (isCluster) { var rd=50;if(co && 'object'==typeof co.clusterRadius){try{rd=Math.max.apply(null,co.clusterRadius.map(function(row){ return Math.max.apply(Math, row); }));}catch(e){}} mappls.sources[id] = { "type": "geojson", "data": geojson, cluster: true, clusterMaxZoom: co.clusterMaxZoom, clusterRadius: 'number'==typeof co.clusterRadius?co.clusterRadius:rd }; } else { mappls.sources[id] = { "type": "geojson",lineMetrics: true, "data": geojson } } } return mappls.sources[id]; }, searchObject: function (geojson, query) { var value = null; var value = geojson[query]; if (query !== "coordinates") { if (MapUtil.isArray(value)) { MapUtil.searchObject(value, "geometry"); } if (MapUtil.isObject(value)) { MapUtil.searchObject(value, "coordinates"); } } }, isArray: function (a) { return (!!a) && (a.constructor === Array); }, isObject: function (a) { return (!!a) && (a.constructor === Object); }, $: function (id) { return document.getElementById(id); }, metersToPixelsAtMaxZoom: function (meters, latitude) { return meters / 0.075 / Math.cos(latitude * Math.PI / 180); }, xhr:'', getJSON: function (url, callback,sync) { if (!sync) sync = false; if (typeof XMLHttpRequest !== 'undefined') mappls.xhr = new XMLHttpRequest(); else { var versions = ["MSXML2.XmlHttp.5.0", "MSXML2.XmlHttp.4.0", "MSXML2.XmlHttp.3.0", "MSXML2.XmlHttp.2.0", "Microsoft.XmlHttp"]; for (var i = 0, len = versions.length; i < len; i++) { try { xhr = new ActiveXObject(versions[i]); break; } catch (e) { } } } mappls.xhr.open('GET', url, sync); var res=""; mappls.xhr.onload = function () { if (mappls.xhr.readyState === 4 && mappls.xhr.status >= 200 && mappls.xhr.status < 300 && mappls.xhr.response) { res= mappls.xhr.response; } if(callback!=undefined && sync) callback(res); }; mappls.xhr.send(); if(!sync) { if(callback!=undefined) callback(res); else return res; } } };function mcontrol(html,cls){ this.html = html;this.cls=cls!=undefined?cls+" ":"";}mcontrol.prototype.onAdd = function(map) { this.map = map;this.container = document.createElement('div');this.container.className = this.cls+'mapplsgl-ctrl mapplsgl-ctrl-group'; this.container.innerHTML = this.html;return this.container;};mcontrol.prototype.onRemove = function() {this.container.parentNode.removeChild(this.container);this.map = undefined;};if("object"==typeof mE){ var m=mE.mthd;if(m) {m=atob(m).split(',');for(var i=0;i<m.length;i++){ var fn=m[i];mappls[fn]=mE[fn];}}}window.onload = function(e){ if(mappls && mappls.mmi.pth.indexOf('mappls.com')!==-1 && typeof mapplsLogs=='undefined') mappls.mjs('https://www.mappls.com/apis/visits.js?ref=SDK@3.0&clientId=f1271754e8d347df485845099f7845e5&appid=mappls-web-sdk',true);};function _0x5cfb(){var _0x471115=['ia5str','[object\x20Array]','malformed\x20oid\x20string:\x20','setByInteger','parseInteger','all\x20dependencies\x20are\x20included.','DERTeletexString','removeEventListener','bitwiseTo','splice','slice','utc','parseKey','DERBitString','isModified','stream','square','modInverse','ObjectDescriptor','testBit','obj','setValueOidString','defineProperty',',length:','setByBooleanArray','Message\x20too\x20long\x20for\x20RSA','shiftLeft','0123456789ABCDEF','compareTo','coeff','tag','3020300c06082a864886f70d020505000410','DEREnumerated','undefined\x20key:\x20','max','3021300906052b0e03021a05000414','create','divide','asn1','ENUMERATED','setKey','number','shiftRight','get','3021300906052b2403020105000414','setPub','x509','asn1Array','Invalid\x20tag\x20value.','ASN.1\x20length\x20too\x20long\x20to\x20represent\x20by\x208x:\x20n\x20=\x20','fromInt','value\x20hex\x20must\x20be\x20even\x20length:\x20n=','DERAbstractString','BIT_STRING','key\x20of\x20param\x20shall\x20be\x20only\x20one.','formatDate','subTo','fromString','NULL','tagNumber','toByteArray','addTo','getHexStringValue','mousemove','setPublicKey','posStart','Length\x20over\x2048\x20bits\x20not\x20supported\x20at\x20position\x20','JSEncrypt','getEncodedHex','hasPrivateKeyProperty','add','dAddOffset','DERUTCTime','(no\x20elem)','parseStringUTF','clamp','Base64\x20encoding\x20incomplete:\x20at\x20least\x202\x20bits\x20missing','setPrivateKey','setByDateValue','asn1Object','LN2','DERPrintableString','next','getLowestSetBit','setPrivate','1344114syRHFg','set','getPublicKeyB64','\x20elem)','ONE','4424256AaTpye','exports','userAgent','setPublic','getDate','DEROctetString','\x20UTC','true','extend','parsePropertiesFrom','getTime','DERObjectIdentifier','Invalid\x20RSA\x20private\x20key','dmp1','SET','Illegal\x20character\x20at\x20offset\x20','DERAbstractStructured','0101ff','getHours','generateAsync','indexOf','this.hV\x20is\x20null\x20or\x20undefined.','UTF8String','GeneralizedTime','posContent','DERUTF8String','verify','squareTo','bool','ASN1Util','substring','\x20byte)\x0a','__proto__','SEQUENCE','intValue','OID','exp','=\x20\x0c\x0a\x0d\x09\u00a0\u2028\u2029','(.{1,','default','getPublicKey','mph','call','drShiftTo','OBJECT_IDENTIFIER','isEven','isEOC','getLengthHexFromValue','bin','toRadix','PrintableString','reduce','UTCTime','010001','length','getMonth','\x20(constructed)','RegExp\x20out\x20of\x20sync','typeName','join','oid','toLowerCase','multiply','header','remainder','DERObjectIdentifier\x20oidName\x20undefined:\x20','Private_','lang','1.2.840.113549.1.1.1','default_key_size','substr','subtract','\x20bit)\x0a','254691XcfdaV','parseTime','error','init','toHexString','DERGeneralizedTime','crypto','millerRabin','newFalseArray','valueOf','appName','multiplyLowerTo','licKey','changeBit','3446844QdlTLa','enum','Hex\x20encoding\x20incomplete:\x204\x20bits\x20missing','charCodeAt','mt2','DERSet','DERTaggedObject','mulTo','UTC','fromNumber','gentime','telstr','EXTERNAL','getFreshValueHex','isProbablePrime','3031300d060960864801650304020105000420','divRemTo','DERNumericString','toString','unused\x20bits\x20shall\x20be\x20from\x200\x20to\x207:\x20u\x20=\x20','constructor','fromNumberAsync','Application_','decode','floor','newObject','REAL','prototype','sign','setASN1Object','hTLV','hexDump','flipBit','random','clone','split','setByDate','andNot','3041300d060960864801650304020205000430','dMultiply','str','attachEvent','multiplyTo','explicit','buf','replace','3020300c06082a864886f70d020205000410','getSeconds','getPrivateKey','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/','\x20(encapsulates)','false','getKey','wordwrap','modInt','\x20on\x20a\x20stream\x20of\x20length\x20','decodeLength','GraphicString','mulAdd','toPrettyString','null','zeroPadding','simplify','appendASN1Object','setByBinaryString','hexDigits','mod','176097HBijvS','Unrecognized\x20time:\x20','__esModule','withMillis','ASN1Object','setHexValueIncludingUnusedBits','enc','undefined','2fzZFkn','EOC\x20is\x20not\x20supposed\x20to\x20be\x20actual\x20content.','addEventListener','NumericString','rShiftTo','00000000','getRandomValues','divideAndRemainder','hex','[header:','parseStringBMP','jsonToASN1HEX','BMPString','function','VideotexString','tagConstructed','isExplicit','parseOctetString','IA5String','log','pow','date','getPublicBaseKey','oidIntToHex','dlShiftTo','hasOwnProperty','setValueHex','key','setPrivateEx','test','getPublicBaseKeyB64','gcda','unarmor','bitLength','1665164NsSzXj','superclass','Content\x20size\x20is\x20not\x20correct\x20for\x20container\x20starting\x20at\x20offset\x20','setValueName','0123456789abcdefghijklmnopqrstuvwxyz','copyTo','Exception\x20while\x20decoding\x20undefined\x20length\x20content:\x20','match','getValueHex','xor','isUniversal','sortflag','0001','OCTET_STRING','2787065zArhnx','DERSequence','setUnusedBitsAndHexValue','3.0.0-rc.1','ZERO','DERInteger','onmousemove','millis','detachEvent','parseBitString','chunkSize','setByBigInteger','encrypt','302d300d06096086480165030402040500041c','setByASN1ObjectArray','})(\x20+|$\x0a?)|(.{1,','revert','lShiftTo','DERBoolean','oidHexToInt','modPow','invDigit','push','string','keys','clearBit','int','tagClass','getPrivateBaseKeyB64','default_public_exponent','convert','min','BIT\x20STRINGs\x20with\x20unused\x20bits\x20cannot\x20encapsulate.','pos','integerToByteHex','utf8str','doPrivate','fromRadix','nextBytes','mpl','array','bigIntToMinTwosComplementsHex','negate','GeneralString','doPublic','setBit','parseStringISO','generate','DERIA5String','fromCharCode','localDateToUTC','gen','7memiSO','setString','setStringHex','getPrivateKeyB64','sortFlag','bm!','exec','only\x20base\x2010\x20is\x20supported','VisibleString','prnstr','posEnd','version','.incomplete','DERNull','modPowInt','sub','Invalid\x20RSA\x20public\x20key','multiplyUpperTo','signum','sqrTo','gcd','DERAbstractTime','dmq1','getString','parseOID','name','count','hasPublicKeyProperty','name2oid','charAt','abs','INTEGER'];_0x5cfb=function(){return _0x471115;};return _0x5cfb();}var _0x288f0f=_0x5239;(function(_0x451edd,_0x1cc995){var _0x48b54f=_0x5239,_0x167b41=_0x451edd();while(!![]){try{var _0x2993e3=parseInt(_0x48b54f(0x218))/0x1*(-parseInt(_0x48b54f(0x220))/0x2)+parseInt(_0x48b54f(0x179))/0x3+-parseInt(_0x48b54f(0x242))/0x4+parseInt(_0x48b54f(0x250))/0x5+-parseInt(_0x48b54f(0x1d5))/0x6*(parseInt(_0x48b54f(0x284))/0x7)+parseInt(_0x48b54f(0x17e))/0x8+-parseInt(_0x48b54f(0x1c7))/0x9;if(_0x2993e3===_0x1cc995)break;else _0x167b41['push'](_0x167b41['shift']());}catch(_0x20b8fb){_0x167b41['push'](_0x167b41['shift']());}}}(_0x5cfb,0x58b3a),function(_0x301dcc,_0x552ed1){var _0x55cb44=_0x5239;typeof exports==='object'&&typeof module!=='undefined'?_0x552ed1(exports):typeof define===_0x55cb44(0x22d)&&define['amd']?define([_0x55cb44(0x17f)],_0x552ed1):_0x552ed1(_0x301dcc[_0x55cb44(0x167)]={});}(this,function(_0x4c93d3){'use strict';var _0x53dedb=_0x5239;var _0x3fa923=_0x53dedb(0x246);function _0x20ea4e(_0x44e752){var _0x13b5f1=_0x53dedb;return _0x3fa923[_0x13b5f1(0x2a1)](_0x44e752);}function _0x3d33c2(_0x4cdc56,_0x52e700){return _0x4cdc56&_0x52e700;}function _0x2c14e5(_0x3ae4ad,_0x2f8504){return _0x3ae4ad|_0x2f8504;}function _0x2aa1aa(_0x1a4387,_0x1f85b0){return _0x1a4387^_0x1f85b0;}function _0x10e6ee(_0x2f8be3,_0x20990a){return _0x2f8be3&~_0x20990a;}function _0x21dd40(_0x32a16e){if(_0x32a16e==0x0)return-0x1;var _0x524116=0x0;return(_0x32a16e&0xffff)==0x0&&(_0x32a16e>>=0x10,_0x524116+=0x10),(_0x32a16e&0xff)==0x0&&(_0x32a16e>>=0x8,_0x524116+=0x8),(_0x32a16e&0xf)==0x0&&(_0x32a16e>>=0x4,_0x524116+=0x4),(_0x32a16e&0x3)==0x0&&(_0x32a16e>>=0x2,_0x524116+=0x2),(_0x32a16e&0x1)==0x0&&++_0x524116,_0x524116;}function _0x44bfaa(_0x5552ae){var _0x2de0b4=0x0;while(_0x5552ae!=0x0){_0x5552ae&=_0x5552ae-0x1,++_0x2de0b4;}return _0x2de0b4;}var _0x577d59=_0x53dedb(0x206),_0x4a030a='=';function _0xf7b819(_0x3adb90){var _0x259636=_0x53dedb,_0x4705d0,_0x40ea76,_0x37734f='';for(_0x4705d0=0x0;_0x4705d0+0x3<=_0x3adb90[_0x259636(0x1b4)];_0x4705d0+=0x3){_0x40ea76=parseInt(_0x3adb90[_0x259636(0x19c)](_0x4705d0,_0x4705d0+0x3),0x10),_0x37734f+=_0x577d59[_0x259636(0x2a1)](_0x40ea76>>0x6)+_0x577d59['charAt'](_0x40ea76&0x3f);}if(_0x4705d0+0x1==_0x3adb90['length'])_0x40ea76=parseInt(_0x3adb90[_0x259636(0x19c)](_0x4705d0,_0x4705d0+0x1),0x10),_0x37734f+=_0x577d59[_0x259636(0x2a1)](_0x40ea76<<0x2);else _0x4705d0+0x2==_0x3adb90[_0x259636(0x1b4)]&&(_0x40ea76=parseInt(_0x3adb90[_0x259636(0x19c)](_0x4705d0,_0x4705d0+0x2),0x10),_0x37734f+=_0x577d59[_0x259636(0x2a1)](_0x40ea76>>0x2)+_0x577d59[_0x259636(0x2a1)]((_0x40ea76&0x3)<<0x4));while((_0x37734f[_0x259636(0x1b4)]&0x3)>0x0){_0x37734f+=_0x4a030a;}return _0x37734f;}function _0x3f4295(_0x3e9bd4){var _0x252982=_0x53dedb,_0x736a8a='',_0x5848c8,_0x5df50b=0x0,_0x1b2fb5=0x0;for(_0x5848c8=0x0;_0x5848c8<_0x3e9bd4[_0x252982(0x1b4)];++_0x5848c8){if(_0x3e9bd4[_0x252982(0x2a1)](_0x5848c8)==_0x4a030a)break;var _0xa3bc83=_0x577d59[_0x252982(0x192)](_0x3e9bd4[_0x252982(0x2a1)](_0x5848c8));if(_0xa3bc83<0x0)continue;if(_0x5df50b==0x0)_0x736a8a+=_0x20ea4e(_0xa3bc83>>0x2),_0x1b2fb5=_0xa3bc83&0x3,_0x5df50b=0x1;else{if(_0x5df50b==0x1)_0x736a8a+=_0x20ea4e(_0x1b2fb5<<0x2|_0xa3bc83>>0x4),_0x1b2fb5=_0xa3bc83&0xf,_0x5df50b=0x2;else _0x5df50b==0x2?(_0x736a8a+=_0x20ea4e(_0x1b2fb5),_0x736a8a+=_0x20ea4e(_0xa3bc83>>0x2),_0x1b2fb5=_0xa3bc83&0x3,_0x5df50b=0x3):(_0x736a8a+=_0x20ea4e(_0x1b2fb5<<0x2|_0xa3bc83>>0x4),_0x736a8a+=_0x20ea4e(_0xa3bc83&0xf),_0x5df50b=0x0);}}return _0x5df50b==0x1&&(_0x736a8a+=_0x20ea4e(_0x1b2fb5<<0x2)),_0x736a8a;}var _0xf0f0fa=function(_0x3d750c,_0x2c5963){return _0xf0f0fa=Object['setPrototypeOf']||{'__proto__':[]}instanceof Array&&function(_0x19c565,_0x3bc300){var _0x6641ee=_0x5239;_0x19c565[_0x6641ee(0x19e)]=_0x3bc300;}||function(_0x179ae6,_0x4e7673){for(var _0x17b472 in _0x4e7673)if(_0x4e7673['hasOwnProperty'](_0x17b472))_0x179ae6[_0x17b472]=_0x4e7673[_0x17b472];},_0xf0f0fa(_0x3d750c,_0x2c5963);};function _0x590e5c(_0x3e85d7,_0x468843){var _0x26c92e=_0x53dedb;_0xf0f0fa(_0x3e85d7,_0x468843);function _0x678b31(){var _0x11ce88=_0x5239;this[_0x11ce88(0x1e9)]=_0x3e85d7;}_0x3e85d7['prototype']=_0x468843===null?Object[_0x26c92e(0x2c8)](_0x468843):(_0x678b31[_0x26c92e(0x1f0)]=_0x468843['prototype'],new _0x678b31());}var _0xe2e348,_0x30ec57={'decode':function(_0x4854a3){var _0x4479fc=_0x53dedb,_0x2f14ec;if(_0xe2e348===undefined){var _0x4849e6=_0x4479fc(0x2bf),_0x586963='\x20\x0c\x0a\x0d\x09\u00a0\u2028\u2029';_0xe2e348={};for(_0x2f14ec=0x0;_0x2f14ec<0x10;++_0x2f14ec){_0xe2e348[_0x4849e6[_0x4479fc(0x2a1)](_0x2f14ec)]=_0x2f14ec;}_0x4849e6=_0x4849e6[_0x4479fc(0x1bb)]();for(_0x2f14ec=0xa;_0x2f14ec<0x10;++_0x2f14ec){_0xe2e348[_0x4849e6[_0x4479fc(0x2a1)](_0x2f14ec)]=_0x2f14ec;}for(_0x2f14ec=0x0;_0x2f14ec<_0x586963['length'];++_0x2f14ec){_0xe2e348[_0x586963[_0x4479fc(0x2a1)](_0x2f14ec)]=-0x1;}}var _0x3cc376=[],_0xbf7f3=0x0,_0x227811=0x0;for(_0x2f14ec=0x0;_0x2f14ec<_0x4854a3[_0x4479fc(0x1b4)];++_0x2f14ec){var _0x16cfd7=_0x4854a3[_0x4479fc(0x2a1)](_0x2f14ec);if(_0x16cfd7=='=')break;_0x16cfd7=_0xe2e348[_0x16cfd7];if(_0x16cfd7==-0x1)continue;if(_0x16cfd7===undefined)throw new Error(_0x4479fc(0x18d)+_0x2f14ec);_0xbf7f3|=_0x16cfd7,++_0x227811>=0x2?(_0x3cc376[_0x3cc376[_0x4479fc(0x1b4)]]=_0xbf7f3,_0xbf7f3=0x0,_0x227811=0x0):_0xbf7f3<<=0x4;}if(_0x227811)throw new Error(_0x4479fc(0x1d7));return _0x3cc376;}},_0xd5d0c5,_0xf94f8c={'decode':function(_0x4dd7df){var _0x13fb52=_0x53dedb,_0x3b3435;if(_0xd5d0c5===undefined){var _0x1f1599=_0x13fb52(0x206),_0xda45d8=_0x13fb52(0x1a3);_0xd5d0c5=Object[_0x13fb52(0x2c8)](null);for(_0x3b3435=0x0;_0x3b3435<0x40;++_0x3b3435){_0xd5d0c5[_0x1f1599['charAt'](_0x3b3435)]=_0x3b3435;}for(_0x3b3435=0x0;_0x3b3435<_0xda45d8['length'];++_0x3b3435){_0xd5d0c5[_0xda45d8[_0x13fb52(0x2a1)](_0x3b3435)]=-0x1;}}var _0x29ffb2=[],_0x50fe0e=0x0,_0x30afa8=0x0;for(_0x3b3435=0x0;_0x3b3435<_0x4dd7df['length'];++_0x3b3435){var _0x3a6833=_0x4dd7df[_0x13fb52(0x2a1)](_0x3b3435);if(_0x3a6833=='=')break;_0x3a6833=_0xd5d0c5[_0x3a6833];if(_0x3a6833==-0x1)continue;if(_0x3a6833===undefined)throw new Error(_0x13fb52(0x18d)+_0x3b3435);_0x50fe0e|=_0x3a6833,++_0x30afa8>=0x4?(_0x29ffb2[_0x29ffb2[_0x13fb52(0x1b4)]]=_0x50fe0e>>0x10,_0x29ffb2[_0x29ffb2[_0x13fb52(0x1b4)]]=_0x50fe0e>>0x8&0xff,_0x29ffb2[_0x29ffb2['length']]=_0x50fe0e&0xff,_0x50fe0e=0x0,_0x30afa8=0x0):_0x50fe0e<<=0x6;}switch(_0x30afa8){case 0x1:throw new Error(_0x13fb52(0x170));case 0x2:_0x29ffb2[_0x29ffb2['length']]=_0x50fe0e>>0xa;break;case 0x3:_0x29ffb2[_0x29ffb2[_0x13fb52(0x1b4)]]=_0x50fe0e>>0x10,_0x29ffb2[_0x29ffb2[_0x13fb52(0x1b4)]]=_0x50fe0e>>0x8&0xff;break;}return _0x29ffb2;},'re':/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,'unarmor':function(_0x50cb94){var _0x3ba1e5=_0x53dedb,_0x576a66=_0xf94f8c['re']['exec'](_0x50cb94);if(_0x576a66){if(_0x576a66[0x1])_0x50cb94=_0x576a66[0x1];else{if(_0x576a66[0x2])_0x50cb94=_0x576a66[0x2];else throw new Error(_0x3ba1e5(0x1b7));}}return _0xf94f8c[_0x3ba1e5(0x1ec)](_0x50cb94);}},_0x361eca=0x9184e72a000,_0x2602f9=(function(){var _0x24ca9e=_0x53dedb;function _0x27ac99(_0x14f0f9){var _0x7cec1c=_0x5239;this[_0x7cec1c(0x201)]=[+_0x14f0f9||0x0];}return _0x27ac99[_0x24ca9e(0x1f0)][_0x24ca9e(0x20f)]=function(_0xa59cfb,_0x423b4d){var _0x5028c4=_0x24ca9e,_0x448b95=this[_0x5028c4(0x201)],_0x17c41e=_0x448b95[_0x5028c4(0x1b4)],_0x51404b,_0x397f50;for(_0x51404b=0x0;_0x51404b<_0x17c41e;++_0x51404b){_0x397f50=_0x448b95[_0x51404b]*_0xa59cfb+_0x423b4d,_0x397f50<_0x361eca?_0x423b4d=0x0:(_0x423b4d=0x0|_0x397f50/_0x361eca,_0x397f50-=_0x423b4d*_0x361eca),_0x448b95[_0x51404b]=_0x397f50;}_0x423b4d>0x0&&(_0x448b95[_0x51404b]=_0x423b4d);},_0x27ac99[_0x24ca9e(0x1f0)][_0x24ca9e(0x293)]=function(_0x5d876c){var _0x3ac8d9=_0x24ca9e,_0x1dc5ba=this[_0x3ac8d9(0x201)],_0x3e0881=_0x1dc5ba[_0x3ac8d9(0x1b4)],_0x1355f5,_0x12d270;for(_0x1355f5=0x0;_0x1355f5<_0x3e0881;++_0x1355f5){_0x12d270=_0x1dc5ba[_0x1355f5]-_0x5d876c,_0x12d270<0x0?(_0x12d270+=_0x361eca,_0x5d876c=0x1):_0x5d876c=0x0,_0x1dc5ba[_0x1355f5]=_0x12d270;}while(_0x1dc5ba[_0x1dc5ba[_0x3ac8d9(0x1b4)]-0x1]===0x0){_0x1dc5ba['pop']();}},_0x27ac99[_0x24ca9e(0x1f0)][_0x24ca9e(0x1e7)]=function(_0x3cdf94){var _0x4494e5=_0x24ca9e;if((_0x3cdf94||0xa)!=0xa)throw new Error(_0x4494e5(0x28b));var _0x1914fa=this['buf'],_0x14b784=_0x1914fa[_0x1914fa[_0x4494e5(0x1b4)]-0x1][_0x4494e5(0x1e7)]();for(var _0x3fc627=_0x1914fa[_0x4494e5(0x1b4)]-0x2;_0x3fc627>=0x0;--_0x3fc627){_0x14b784+=(_0x361eca+_0x1914fa[_0x3fc627])['toString']()['substring'](0x1);}return _0x14b784;},_0x27ac99[_0x24ca9e(0x1f0)][_0x24ca9e(0x1d0)]=function(){var _0x406a9d=_0x24ca9e,_0xb1d9c6=this['buf'],_0xfc68d9=0x0;for(var _0x41ab40=_0xb1d9c6[_0x406a9d(0x1b4)]-0x1;_0x41ab40>=0x0;--_0x41ab40){_0xfc68d9=_0xfc68d9*_0x361eca+_0xb1d9c6[_0x41ab40];}return _0xfc68d9;},_0x27ac99[_0x24ca9e(0x1f0)][_0x24ca9e(0x213)]=function(){var _0x2b7337=this['buf'];return _0x2b7337['length']==0x1?_0x2b7337[0x0]:this;},_0x27ac99;}()),_0x2242c5='…',_0x3f9221=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,_0x5a5583=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function _0x195d1e(_0x2eb015,_0x9bffe9){var _0x365703=_0x53dedb;return _0x2eb015['length']>_0x9bffe9&&(_0x2eb015=_0x2eb015[_0x365703(0x19c)](0x0,_0x9bffe9)+_0x2242c5),_0x2eb015;}var _0x236914=(function(){var _0x38a4dc=_0x53dedb;function _0x15b591(_0x206237,_0xc9fcdd){var _0x124322=_0x5239;this[_0x124322(0x216)]='0123456789ABCDEF',_0x206237 instanceof _0x15b591?(this[_0x124322(0x21e)]=_0x206237[_0x124322(0x21e)],this[_0x124322(0x271)]=_0x206237['pos']):(this['enc']=_0x206237,this[_0x124322(0x271)]=_0xc9fcdd);}return _0x15b591[_0x38a4dc(0x1f0)]['get']=function(_0x4a9656){var _0xd488cd=_0x38a4dc;_0x4a9656===undefined&&(_0x4a9656=this[_0xd488cd(0x271)]++);if(_0x4a9656>=this['enc'][_0xd488cd(0x1b4)])throw new Error('Requesting\x20byte\x20offset\x20'+_0x4a9656+_0xd488cd(0x20c)+this[_0xd488cd(0x21e)][_0xd488cd(0x1b4)]);return _0xd488cd(0x267)===typeof this[_0xd488cd(0x21e)]?this[_0xd488cd(0x21e)]['charCodeAt'](_0x4a9656):this[_0xd488cd(0x21e)][_0x4a9656];},_0x15b591[_0x38a4dc(0x1f0)]['hexByte']=function(_0x15e542){var _0x12b3de=_0x38a4dc;return this[_0x12b3de(0x216)][_0x12b3de(0x2a1)](_0x15e542>>0x4&0xf)+this['hexDigits'][_0x12b3de(0x2a1)](_0x15e542&0xf);},_0x15b591[_0x38a4dc(0x1f0)][_0x38a4dc(0x1f4)]=function(_0x1106e1,_0x4c5fd7,_0x5e3a90){var _0x4133d5=_0x38a4dc,_0x834680='';for(var _0x5b12be=_0x1106e1;_0x5b12be<_0x4c5fd7;++_0x5b12be){_0x834680+=this['hexByte'](this[_0x4133d5(0x2cf)](_0x5b12be));if(_0x5e3a90!==!![])switch(_0x5b12be&0xf){case 0x7:_0x834680+='\x20\x20';break;case 0xf:_0x834680+='\x0a';break;default:_0x834680+='\x20';}}return _0x834680;},_0x15b591[_0x38a4dc(0x1f0)]['isASCII']=function(_0x5b31a4,_0x5a5400){var _0x12f22b=_0x38a4dc;for(var _0xd57914=_0x5b31a4;_0xd57914<_0x5a5400;++_0xd57914){var _0x5b9862=this[_0x12f22b(0x2cf)](_0xd57914);if(_0x5b9862<0x20||_0x5b9862>0xb0)return![];}return!![];},_0x15b591['prototype'][_0x38a4dc(0x27e)]=function(_0x4fc114,_0x29da94){var _0x439c4a='';for(var _0x25ee67=_0x4fc114;_0x25ee67<_0x29da94;++_0x25ee67){_0x439c4a+=String['fromCharCode'](this['get'](_0x25ee67));}return _0x439c4a;},_0x15b591[_0x38a4dc(0x1f0)]['parseStringUTF']=function(_0x2507cd,_0x530009){var _0x31970b=_0x38a4dc,_0x5d01e4='';for(var _0x216c0a=_0x2507cd;_0x216c0a<_0x530009;){var _0x2edede=this[_0x31970b(0x2cf)](_0x216c0a++);if(_0x2edede<0x80)_0x5d01e4+=String[_0x31970b(0x281)](_0x2edede);else _0x2edede>0xbf&&_0x2edede<0xe0?_0x5d01e4+=String[_0x31970b(0x281)]((_0x2edede&0x1f)<<0x6|this[_0x31970b(0x2cf)](_0x216c0a++)&0x3f):_0x5d01e4+=String['fromCharCode']((_0x2edede&0xf)<<0xc|(this[_0x31970b(0x2cf)](_0x216c0a++)&0x3f)<<0x6|this[_0x31970b(0x2cf)](_0x216c0a++)&0x3f);}return _0x5d01e4;},_0x15b591['prototype'][_0x38a4dc(0x22a)]=function(_0x5d52a1,_0x353e2d){var _0xb0670e='',_0x753019,_0x21843f;for(var _0x90f4b7=_0x5d52a1;_0x90f4b7<_0x353e2d;){_0x753019=this['get'](_0x90f4b7++),_0x21843f=this['get'](_0x90f4b7++),_0xb0670e+=String['fromCharCode'](_0x753019<<0x8|_0x21843f);}return _0xb0670e;},_0x15b591[_0x38a4dc(0x1f0)][_0x38a4dc(0x1c8)]=function(_0x425e3f,_0x1cd270,_0x382776){var _0x1c0bf5=_0x38a4dc,_0x51e7cb=this[_0x1c0bf5(0x27e)](_0x425e3f,_0x1cd270),_0x29519e=(_0x382776?_0x3f9221:_0x5a5583)[_0x1c0bf5(0x28a)](_0x51e7cb);if(!_0x29519e)return _0x1c0bf5(0x219)+_0x51e7cb;return _0x382776&&(_0x29519e[0x1]=+_0x29519e[0x1],_0x29519e[0x1]+=+_0x29519e[0x1]<0x46?0x7d0:0x76c),_0x51e7cb=_0x29519e[0x1]+'-'+_0x29519e[0x2]+'-'+_0x29519e[0x3]+'\x20'+_0x29519e[0x4],_0x29519e[0x5]&&(_0x51e7cb+=':'+_0x29519e[0x5],_0x29519e[0x6]&&(_0x51e7cb+=':'+_0x29519e[0x6],_0x29519e[0x7]&&(_0x51e7cb+='.'+_0x29519e[0x7]))),_0x29519e[0x8]&&(_0x51e7cb+=_0x1c0bf5(0x184),_0x29519e[0x8]!='Z'&&(_0x51e7cb+=_0x29519e[0x8],_0x29519e[0x9]&&(_0x51e7cb+=':'+_0x29519e[0x9]))),_0x51e7cb;},_0x15b591[_0x38a4dc(0x1f0)][_0x38a4dc(0x2a8)]=function(_0x488614,_0x36e38a){var _0x38d81d=_0x38a4dc,_0x2175e1=this[_0x38d81d(0x2cf)](_0x488614),_0x33e6a9=_0x2175e1>0x7f,_0x3bb4e0=_0x33e6a9?0xff:0x0,_0x2a5ed2,_0x260fa2='';while(_0x2175e1==_0x3bb4e0&&++_0x488614<_0x36e38a){_0x2175e1=this[_0x38d81d(0x2cf)](_0x488614);}_0x2a5ed2=_0x36e38a-_0x488614;if(_0x2a5ed2===0x0)return _0x33e6a9?-0x1:0x0;if(_0x2a5ed2>0x4){_0x260fa2=_0x2175e1,_0x2a5ed2<<=0x3;while(((+_0x260fa2^_0x3bb4e0)&0x80)==0x0){_0x260fa2=+_0x260fa2<<0x1,--_0x2a5ed2;}_0x260fa2='('+_0x2a5ed2+_0x38d81d(0x1c6);}_0x33e6a9&&(_0x2175e1=_0x2175e1-0x100);var _0x3c76e1=new _0x2602f9(_0x2175e1);for(var _0x35fc5f=_0x488614+0x1;_0x35fc5f<_0x36e38a;++_0x35fc5f){_0x3c76e1[_0x38d81d(0x20f)](0x100,this[_0x38d81d(0x2cf)](_0x35fc5f));}return _0x260fa2+_0x3c76e1['toString']();},_0x15b591['prototype'][_0x38a4dc(0x259)]=function(_0x55ae50,_0x5e9425,_0x329804){var _0x5010c4=_0x38a4dc,_0x4f0db8=this[_0x5010c4(0x2cf)](_0x55ae50),_0x5c87e1=(_0x5e9425-_0x55ae50-0x1<<0x3)-_0x4f0db8,_0x5bb744='('+_0x5c87e1+'\x20bit)\x0a',_0x117ea3='';for(var _0x2a4609=_0x55ae50+0x1;_0x2a4609<_0x5e9425;++_0x2a4609){var _0x53a273=this[_0x5010c4(0x2cf)](_0x2a4609),_0x2b58ad=_0x2a4609==_0x5e9425-0x1?_0x4f0db8:0x0;for(var _0x179725=0x7;_0x179725>=_0x2b58ad;--_0x179725){_0x117ea3+=_0x53a273>>_0x179725&0x1?'1':'0';}if(_0x117ea3[_0x5010c4(0x1b4)]>_0x329804)return _0x5bb744+_0x195d1e(_0x117ea3,_0x329804);}return _0x5bb744+_0x117ea3;},_0x15b591[_0x38a4dc(0x1f0)][_0x38a4dc(0x231)]=function(_0x2fa4a2,_0x33200c,_0x26598b){var _0x517f9a=_0x38a4dc;if(this['isASCII'](_0x2fa4a2,_0x33200c))return _0x195d1e(this['parseStringISO'](_0x2fa4a2,_0x33200c),_0x26598b);var _0xe3b56a=_0x33200c-_0x2fa4a2,_0x4184d7='('+_0xe3b56a+_0x517f9a(0x19d);_0x26598b/=0x2;_0xe3b56a>_0x26598b&&(_0x33200c=_0x2fa4a2+_0x26598b);for(var _0x32da88=_0x2fa4a2;_0x32da88<_0x33200c;++_0x32da88){_0x4184d7+=this['hexByte'](this[_0x517f9a(0x2cf)](_0x32da88));}return _0xe3b56a>_0x26598b&&(_0x4184d7+=_0x2242c5),_0x4184d7;},_0x15b591[_0x38a4dc(0x1f0)][_0x38a4dc(0x29c)]=function(_0x1b9230,_0x5e0151,_0x3aee12){var _0x2430f2=_0x38a4dc,_0x134f11='',_0x39023f=new _0x2602f9(),_0x1a0f8a=0x0;for(var _0x553636=_0x1b9230;_0x553636<_0x5e0151;++_0x553636){var _0x1cf494=this[_0x2430f2(0x2cf)](_0x553636);_0x39023f[_0x2430f2(0x20f)](0x80,_0x1cf494&0x7f),_0x1a0f8a+=0x7;if(!(_0x1cf494&0x80)){if(_0x134f11===''){_0x39023f=_0x39023f[_0x2430f2(0x213)]();if(_0x39023f instanceof _0x2602f9)_0x39023f[_0x2430f2(0x293)](0x50),_0x134f11='2.'+_0x39023f['toString']();else{var _0x514e80=_0x39023f<0x50?_0x39023f<0x28?0x0:0x1:0x2;_0x134f11=_0x514e80+'.'+(_0x39023f-_0x514e80*0x28);}}else _0x134f11+='.'+_0x39023f['toString']();if(_0x134f11[_0x2430f2(0x1b4)]>_0x3aee12)return _0x195d1e(_0x134f11,_0x3aee12);_0x39023f=new _0x2602f9(),_0x1a0f8a=0x0;}}return _0x1a0f8a>0x0&&(_0x134f11+=_0x2430f2(0x290)),_0x134f11;},_0x15b591;}()),_0x567b8f=(function(){var _0x7e149=_0x53dedb;function _0x5db931(_0x2d0e36,_0x317225,_0xa46e15,_0x1f4eea,_0x354e98){var _0xf8f42a=_0x5239;if(!(_0x1f4eea instanceof _0x75d56e))throw new Error(_0xf8f42a(0x154));this[_0xf8f42a(0x2b3)]=_0x2d0e36,this['header']=_0x317225,this[_0xf8f42a(0x1b4)]=_0xa46e15,this['tag']=_0x1f4eea,this[_0xf8f42a(0x293)]=_0x354e98;}return _0x5db931[_0x7e149(0x1f0)][_0x7e149(0x1b8)]=function(){var _0x26b06f=_0x7e149;switch(this[_0x26b06f(0x2c2)]['tagClass']){case 0x0:switch(this['tag'][_0x26b06f(0x15f)]){case 0x0:return'EOC';case 0x1:return'BOOLEAN';case 0x2:return _0x26b06f(0x2a3);case 0x3:return _0x26b06f(0x159);case 0x4:return _0x26b06f(0x24f);case 0x5:return _0x26b06f(0x15e);case 0x6:return _0x26b06f(0x1aa);case 0x7:return _0x26b06f(0x2b6);case 0x8:return _0x26b06f(0x1e1);case 0x9:return _0x26b06f(0x1ef);case 0xa:return _0x26b06f(0x2cb);case 0xb:return'EMBEDDED_PDV';case 0xc:return _0x26b06f(0x194);case 0x10:return _0x26b06f(0x19f);case 0x11:return _0x26b06f(0x18c);case 0x12:return _0x26b06f(0x223);case 0x13:return _0x26b06f(0x1b0);case 0x14:return'TeletexString';case 0x15:return _0x26b06f(0x22e);case 0x16:return _0x26b06f(0x232);case 0x17:return _0x26b06f(0x1b2);case 0x18:return _0x26b06f(0x195);case 0x19:return _0x26b06f(0x20e);case 0x1a:return _0x26b06f(0x28c);case 0x1b:return _0x26b06f(0x27b);case 0x1c:return'UniversalString';case 0x1e:return _0x26b06f(0x22c);}return'Universal_'+this[_0x26b06f(0x2c2)][_0x26b06f(0x15f)][_0x26b06f(0x1e7)]();case 0x1:return _0x26b06f(0x1eb)+this[_0x26b06f(0x2c2)][_0x26b06f(0x15f)][_0x26b06f(0x1e7)]();case 0x2:return'['+this['tag']['tagNumber']['toString']()+']';case 0x3:return _0x26b06f(0x1c0)+this['tag'][_0x26b06f(0x15f)][_0x26b06f(0x1e7)]();}},_0x5db931[_0x7e149(0x1f0)]['content']=function(_0x442c0a){var _0x45098c=_0x7e149;if(this['tag']===undefined)return null;_0x442c0a===undefined&&(_0x442c0a=Infinity);var _0x5c7730=this['posContent'](),_0x15c86e=Math[_0x45098c(0x2a2)](this[_0x45098c(0x1b4)]);if(!this['tag'][_0x45098c(0x24c)]()){if(this['sub']!==null)return'('+this[_0x45098c(0x293)][_0x45098c(0x1b4)]+_0x45098c(0x17c);return this[_0x45098c(0x2b3)]['parseOctetString'](_0x5c7730,_0x5c7730+_0x15c86e,_0x442c0a);}switch(this[_0x45098c(0x2c2)][_0x45098c(0x15f)]){case 0x1:return this[_0x45098c(0x2b3)][_0x45098c(0x2cf)](_0x5c7730)===0x0?_0x45098c(0x208):_0x45098c(0x185);case 0x2:return this[_0x45098c(0x2b3)]['parseInteger'](_0x5c7730,_0x5c7730+_0x15c86e);case 0x3:return this[_0x45098c(0x293)]?'('+this['sub']['length']+_0x45098c(0x17c):this[_0x45098c(0x2b3)][_0x45098c(0x259)](_0x5c7730,_0x5c7730+_0x15c86e,_0x442c0a);case 0x4:return this[_0x45098c(0x293)]?'('+this[_0x45098c(0x293)]['length']+'\x20elem)':this[_0x45098c(0x2b3)][_0x45098c(0x231)](_0x5c7730,_0x5c7730+_0x15c86e,_0x442c0a);case 0x6:return this[_0x45098c(0x2b3)]['parseOID'](_0x5c7730,_0x5c7730+_0x15c86e,_0x442c0a);case 0x10:case 0x11:return this['sub']!==null?'('+this[_0x45098c(0x293)][_0x45098c(0x1b4)]+_0x45098c(0x17c):_0x45098c(0x16d);case 0xc:return _0x195d1e(this[_0x45098c(0x2b3)][_0x45098c(0x16e)](_0x5c7730,_0x5c7730+_0x15c86e),_0x442c0a);case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x1a:return _0x195d1e(this['stream']['parseStringISO'](_0x5c7730,_0x5c7730+_0x15c86e),_0x442c0a);case 0x1e:return _0x195d1e(this[_0x45098c(0x2b3)][_0x45098c(0x22a)](_0x5c7730,_0x5c7730+_0x15c86e),_0x442c0a);case 0x17:case 0x18:return this[_0x45098c(0x2b3)]['parseTime'](_0x5c7730,_0x5c7730+_0x15c86e,this[_0x45098c(0x2c2)][_0x45098c(0x15f)]==0x17);}return null;},_0x5db931[_0x7e149(0x1f0)][_0x7e149(0x1e7)]=function(){var _0x44137f=_0x7e149;return this[_0x44137f(0x1b8)]()+'@'+this[_0x44137f(0x2b3)]['pos']+_0x44137f(0x229)+this[_0x44137f(0x1bd)]+_0x44137f(0x2bb)+this[_0x44137f(0x1b4)]+',sub:'+(this[_0x44137f(0x293)]===null?'null':this[_0x44137f(0x293)][_0x44137f(0x1b4)])+']';},_0x5db931['prototype'][_0x7e149(0x210)]=function(_0x3ce5c3){var _0x1a6574=_0x7e149;_0x3ce5c3===undefined&&(_0x3ce5c3='');var _0x3dae6e=_0x3ce5c3+this[_0x1a6574(0x1b8)]()+'\x20@'+this[_0x1a6574(0x2b3)][_0x1a6574(0x271)];this['length']>=0x0&&(_0x3dae6e+='+');_0x3dae6e+=this['length'];if(this[_0x1a6574(0x2c2)][_0x1a6574(0x22f)])_0x3dae6e+=_0x1a6574(0x1b6);else this[_0x1a6574(0x2c2)][_0x1a6574(0x24c)]()&&(this['tag'][_0x1a6574(0x15f)]==0x3||this['tag'][_0x1a6574(0x15f)]==0x4)&&this[_0x1a6574(0x293)]!==null&&(_0x3dae6e+=_0x1a6574(0x207));_0x3dae6e+='\x0a';if(this[_0x1a6574(0x293)]!==null){_0x3ce5c3+='\x20\x20';for(var _0x15864f=0x0,_0x579aac=this[_0x1a6574(0x293)][_0x1a6574(0x1b4)];_0x15864f<_0x579aac;++_0x15864f){_0x3dae6e+=this[_0x1a6574(0x293)][_0x15864f][_0x1a6574(0x210)](_0x3ce5c3);}}return _0x3dae6e;},_0x5db931['prototype'][_0x7e149(0x165)]=function(){var _0x4a66ab=_0x7e149;return this[_0x4a66ab(0x2b3)][_0x4a66ab(0x271)];},_0x5db931[_0x7e149(0x1f0)][_0x7e149(0x196)]=function(){var _0x196b3d=_0x7e149;return this[_0x196b3d(0x2b3)]['pos']+this[_0x196b3d(0x1bd)];},_0x5db931['prototype']['posEnd']=function(){var _0x309c3a=_0x7e149;return this[_0x309c3a(0x2b3)][_0x309c3a(0x271)]+this[_0x309c3a(0x1bd)]+Math[_0x309c3a(0x2a2)](this[_0x309c3a(0x1b4)]);},_0x5db931['prototype'][_0x7e149(0x1cb)]=function(){var _0x510ee3=_0x7e149;return this['stream'][_0x510ee3(0x1f4)](this[_0x510ee3(0x165)](),this[_0x510ee3(0x28e)](),!![]);},_0x5db931[_0x7e149(0x20d)]=function(_0x17deee){var _0x333f86=_0x7e149,_0x1760bc=_0x17deee[_0x333f86(0x2cf)](),_0x56f25e=_0x1760bc&0x7f;if(_0x56f25e==_0x1760bc)return _0x56f25e;if(_0x56f25e>0x6)throw new Error(_0x333f86(0x166)+(_0x17deee[_0x333f86(0x271)]-0x1));if(_0x56f25e===0x0)return null;_0x1760bc=0x0;for(var _0x436f9d=0x0;_0x436f9d<_0x56f25e;++_0x436f9d){_0x1760bc=_0x1760bc*0x100+_0x17deee[_0x333f86(0x2cf)]();}return _0x1760bc;},_0x5db931[_0x7e149(0x1f0)]['getHexStringValue']=function(){var _0x4b4a85=_0x7e149,_0x7a3760=this[_0x4b4a85(0x1cb)](),_0x157da6=this[_0x4b4a85(0x1bd)]*0x2,_0x190231=this[_0x4b4a85(0x1b4)]*0x2;return _0x7a3760[_0x4b4a85(0x1c4)](_0x157da6,_0x190231);},_0x5db931[_0x7e149(0x1ec)]=function(_0x3ab9e0){var _0x2a5f25=_0x7e149,_0x8519d2;!(_0x3ab9e0 instanceof _0x236914)?_0x8519d2=new _0x236914(_0x3ab9e0,0x0):_0x8519d2=_0x3ab9e0;var _0x3d02d2=new _0x236914(_0x8519d2),_0x13e265=new _0x75d56e(_0x8519d2),_0x1e8b77=_0x5db931['decodeLength'](_0x8519d2),_0x42e55c=_0x8519d2['pos'],_0x4581e0=_0x42e55c-_0x3d02d2['pos'],_0x5b8278=null,_0x3c8da1=function(){var _0x5d4ae1=_0x5239,_0x11e343=[];if(_0x1e8b77!==null){var _0x1a4113=_0x42e55c+_0x1e8b77;while(_0x8519d2[_0x5d4ae1(0x271)]<_0x1a4113){_0x11e343[_0x11e343[_0x5d4ae1(0x1b4)]]=_0x5db931[_0x5d4ae1(0x1ec)](_0x8519d2);}if(_0x8519d2['pos']!=_0x1a4113)throw new Error(_0x5d4ae1(0x244)+_0x42e55c);}else try{for(;;){var _0x1f1208=_0x5db931[_0x5d4ae1(0x1ec)](_0x8519d2);if(_0x1f1208['tag'][_0x5d4ae1(0x1ac)]())break;_0x11e343[_0x11e343[_0x5d4ae1(0x1b4)]]=_0x1f1208;}_0x1e8b77=_0x42e55c-_0x8519d2[_0x5d4ae1(0x271)];}catch(_0x5039b8){throw new Error(_0x5d4ae1(0x248)+_0x5039b8);}return _0x11e343;};if(_0x13e265[_0x2a5f25(0x22f)])_0x5b8278=_0x3c8da1();else{if(_0x13e265[_0x2a5f25(0x24c)]()&&(_0x13e265[_0x2a5f25(0x15f)]==0x3||_0x13e265[_0x2a5f25(0x15f)]==0x4))try{if(_0x13e265[_0x2a5f25(0x15f)]==0x3){if(_0x8519d2[_0x2a5f25(0x2cf)]()!=0x0)throw new Error(_0x2a5f25(0x270));}_0x5b8278=_0x3c8da1();for(var _0x398014=0x0;_0x398014<_0x5b8278[_0x2a5f25(0x1b4)];++_0x398014){if(_0x5b8278[_0x398014][_0x2a5f25(0x2c2)][_0x2a5f25(0x1ac)]())throw new Error(_0x2a5f25(0x221));}}catch(_0x9bbb0f){_0x5b8278=null;}}if(_0x5b8278===null){if(_0x1e8b77===null)throw new Error('We\x20can\x27t\x20skip\x20over\x20an\x20invalid\x20tag\x20with\x20undefined\x20length\x20at\x20offset\x20'+_0x42e55c);_0x8519d2[_0x2a5f25(0x271)]=_0x42e55c+Math[_0x2a5f25(0x2a2)](_0x1e8b77);}return new _0x5db931(_0x3d02d2,_0x4581e0,_0x1e8b77,_0x13e265,_0x5b8278);},_0x5db931;}()),_0x75d56e=(function(){var _0x4e4638=_0x53dedb;function _0xeb6dc7(_0x58f25e){var _0x5164f4=_0x5239,_0x4db618=_0x58f25e[_0x5164f4(0x2cf)]();this[_0x5164f4(0x26b)]=_0x4db618>>0x6,this[_0x5164f4(0x22f)]=(_0x4db618&0x20)!==0x0,this['tagNumber']=_0x4db618&0x1f;if(this['tagNumber']==0x1f){var _0x25566f=new _0x2602f9();do{_0x4db618=_0x58f25e[_0x5164f4(0x2cf)](),_0x25566f[_0x5164f4(0x20f)](0x80,_0x4db618&0x7f);}while(_0x4db618&0x80);this[_0x5164f4(0x15f)]=_0x25566f[_0x5164f4(0x213)]();}}return _0xeb6dc7[_0x4e4638(0x1f0)]['isUniversal']=function(){return this['tagClass']===0x0;},_0xeb6dc7[_0x4e4638(0x1f0)][_0x4e4638(0x1ac)]=function(){var _0x33f868=_0x4e4638;return this[_0x33f868(0x26b)]===0x0&&this[_0x33f868(0x15f)]===0x0;},_0xeb6dc7;}()),_0x195975,_0xcf3993=0xdeadbeefcafe,_0x3b3eb6=(_0xcf3993&0xffffff)==0xefcafe,_0x2e5ed7=[0x2,0x3,0x5,0x7,0xb,0xd,0x11,0x13,0x17,0x1d,0x1f,0x25,0x29,0x2b,0x2f,0x35,0x3b,0x3d,0x43,0x47,0x49,0x4f,0x53,0x59,0x61,0x65,0x67,0x6b,0x6d,0x71,0x7f,0x83,0x89,0x8b,0x95,0x97,0x9d,0xa3,0xa7,0xad,0xb3,0xb5,0xbf,0xc1,0xc5,0xc7,0xd3,0xdf,0xe3,0xe5,0xe9,0xef,0xf1,0xfb,0x101,0x107,0x10d,0x10f,0x115,0x119,0x11b,0x125,0x133,0x137,0x139,0x13d,0x14b,0x151,0x15b,0x15d,0x161,0x167,0x16f,0x175,0x17b,0x17f,0x185,0x18d,0x191,0x199,0x1a3,0x1a5,0x1af,0x1b1,0x1b7,0x1bb,0x1c1,0x1c9,0x1cd,0x1cf,0x1d3,0x1df,0x1e7,0x1eb,0x1f3,0x1f7,0x1fd,0x209,0x20b,0x21d,0x223,0x22d,0x233,0x239,0x23b,0x241,0x24b,0x251,0x257,0x259,0x25f,0x265,0x269,0x26b,0x277,0x281,0x283,0x287,0x28d,0x293,0x295,0x2a1,0x2a5,0x2ab,0x2b3,0x2bd,0x2c5,0x2cf,0x2d7,0x2dd,0x2e3,0x2e7,0x2ef,0x2f5,0x2f9,0x301,0x305,0x313,0x31d,0x329,0x32b,0x335,0x337,0x33b,0x33d,0x347,0x355,0x359,0x35b,0x35f,0x36d,0x371,0x373,0x377,0x38b,0x38f,0x397,0x3a1,0x3a9,0x3ad,0x3b3,0x3b9,0x3c7,0x3cb,0x3d1,0x3d7,0x3df,0x3e5],_0x42f1f6=(0x1<<0x1a)/_0x2e5ed7[_0x2e5ed7['length']-0x1],_0x44ddff=(function(){var _0x497e3e=_0x53dedb;function _0x2a805f(_0x217a0b,_0x22d993,_0x563bd8){var _0x376547=_0x5239;if(_0x217a0b!=null){if('number'==typeof _0x217a0b)this[_0x376547(0x1de)](_0x217a0b,_0x22d993,_0x563bd8);else _0x22d993==null&&'string'!=typeof _0x217a0b?this[_0x376547(0x15d)](_0x217a0b,0x100):this[_0x376547(0x15d)](_0x217a0b,_0x22d993);}}return _0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x1e7)]=function(_0xf3b90d){var _0x36db7c=_0x497e3e;if(this['s']<0x0)return'-'+this[_0x36db7c(0x27a)]()['toString'](_0xf3b90d);var _0x72e507;if(_0xf3b90d==0x10)_0x72e507=0x4;else{if(_0xf3b90d==0x8)_0x72e507=0x3;else{if(_0xf3b90d==0x2)_0x72e507=0x1;else{if(_0xf3b90d==0x20)_0x72e507=0x5;else{if(_0xf3b90d==0x4)_0x72e507=0x2;else return this[_0x36db7c(0x1af)](_0xf3b90d);}}}}var _0x4a81a1=(0x1<<_0x72e507)-0x1,_0x4b37d0,_0x1a0907=![],_0x2da9a3='',_0x3ac08b=this['t'],_0x422f5a=this['DB']-_0x3ac08b*this['DB']%_0x72e507;if(_0x3ac08b-->0x0){_0x422f5a<this['DB']&&(_0x4b37d0=this[_0x3ac08b]>>_0x422f5a)>0x0&&(_0x1a0907=!![],_0x2da9a3=_0x20ea4e(_0x4b37d0));while(_0x3ac08b>=0x0){_0x422f5a<_0x72e507?(_0x4b37d0=(this[_0x3ac08b]&(0x1<<_0x422f5a)-0x1)<<_0x72e507-_0x422f5a,_0x4b37d0|=this[--_0x3ac08b]>>(_0x422f5a+=this['DB']-_0x72e507)):(_0x4b37d0=this[_0x3ac08b]>>(_0x422f5a-=_0x72e507)&_0x4a81a1,_0x422f5a<=0x0&&(_0x422f5a+=this['DB'],--_0x3ac08b)),_0x4b37d0>0x0&&(_0x1a0907=!![]),_0x1a0907&&(_0x2da9a3+=_0x20ea4e(_0x4b37d0));}}return _0x1a0907?_0x2da9a3:'0';},_0x2a805f['prototype'][_0x497e3e(0x27a)]=function(){var _0x3d0db3=_0x497e3e,_0x3350b9=_0x2802d5();return _0x2a805f[_0x3d0db3(0x254)]['subTo'](this,_0x3350b9),_0x3350b9;},_0x2a805f['prototype'][_0x497e3e(0x2a2)]=function(){var _0x4e2aad=_0x497e3e;return this['s']<0x0?this[_0x4e2aad(0x27a)]():this;},_0x2a805f[_0x497e3e(0x1f0)]['compareTo']=function(_0x177725){var _0x4c56d4=this['s']-_0x177725['s'];if(_0x4c56d4!=0x0)return _0x4c56d4;var _0x5b8d4e=this['t'];_0x4c56d4=_0x5b8d4e-_0x177725['t'];if(_0x4c56d4!=0x0)return this['s']<0x0?-_0x4c56d4:_0x4c56d4;while(--_0x5b8d4e>=0x0){if((_0x4c56d4=this[_0x5b8d4e]-_0x177725[_0x5b8d4e])!=0x0)return _0x4c56d4;}return 0x0;},_0x2a805f['prototype']['bitLength']=function(){if(this['t']<=0x0)return 0x0;return this['DB']*(this['t']-0x1)+_0x2447a1(this[this['t']-0x1]^this['s']&this['DM']);},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x217)]=function(_0x58d7d9){var _0x180ca1=_0x497e3e,_0x20e22c=_0x2802d5();return this[_0x180ca1(0x2a2)]()[_0x180ca1(0x1e5)](_0x58d7d9,null,_0x20e22c),this['s']<0x0&&_0x20e22c[_0x180ca1(0x2c0)](_0x2a805f[_0x180ca1(0x254)])>0x0&&_0x58d7d9[_0x180ca1(0x15c)](_0x20e22c,_0x20e22c),_0x20e22c;},_0x2a805f[_0x497e3e(0x1f0)]['modPowInt']=function(_0x148199,_0x1eb36d){var _0x370fd8=_0x497e3e,_0x1c30b6;return _0x148199<0x100||_0x1eb36d[_0x370fd8(0x1ab)]()?_0x1c30b6=new _0x241b77(_0x1eb36d):_0x1c30b6=new _0x1989b2(_0x1eb36d),this['exp'](_0x148199,_0x1c30b6);},_0x2a805f['prototype']['clone']=function(){var _0x23d367=_0x497e3e,_0x15160f=_0x2802d5();return this[_0x23d367(0x247)](_0x15160f),_0x15160f;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x1a0)]=function(){if(this['s']<0x0){if(this['t']==0x1)return this[0x0]-this['DV'];else{if(this['t']==0x0)return-0x1;}}else{if(this['t']==0x1)return this[0x0];else{if(this['t']==0x0)return 0x0;}}return(this[0x1]&(0x1<<0x20-this['DB'])-0x1)<<this['DB']|this[0x0];},_0x2a805f[_0x497e3e(0x1f0)]['byteValue']=function(){return this['t']==0x0?this['s']:this[0x0]<<0x18>>0x18;},_0x2a805f[_0x497e3e(0x1f0)]['shortValue']=function(){return this['t']==0x0?this['s']:this[0x0]<<0x10>>0x10;},_0x2a805f[_0x497e3e(0x1f0)]['signum']=function(){if(this['s']<0x0)return-0x1;else return this['t']<=0x0||this['t']==0x1&&this[0x0]<=0x0?0x0:0x1;},_0x2a805f['prototype'][_0x497e3e(0x160)]=function(){var _0x210afb=this['t'],_0x259a54=[];_0x259a54[0x0]=this['s'];var _0x241511=this['DB']-_0x210afb*this['DB']%0x8,_0x19041c,_0x54ad38=0x0;if(_0x210afb-->0x0){_0x241511<this['DB']&&(_0x19041c=this[_0x210afb]>>_0x241511)!=(this['s']&this['DM'])>>_0x241511&&(_0x259a54[_0x54ad38++]=_0x19041c|this['s']<<this['DB']-_0x241511);while(_0x210afb>=0x0){_0x241511<0x8?(_0x19041c=(this[_0x210afb]&(0x1<<_0x241511)-0x1)<<0x8-_0x241511,_0x19041c|=this[--_0x210afb]>>(_0x241511+=this['DB']-0x8)):(_0x19041c=this[_0x210afb]>>(_0x241511-=0x8)&0xff,_0x241511<=0x0&&(_0x241511+=this['DB'],--_0x210afb)),(_0x19041c&0x80)!=0x0&&(_0x19041c|=-0x100),_0x54ad38==0x0&&(this['s']&0x80)!=(_0x19041c&0x80)&&++_0x54ad38,(_0x54ad38>0x0||_0x19041c!=this['s'])&&(_0x259a54[_0x54ad38++]=_0x19041c);}}return _0x259a54;},_0x2a805f[_0x497e3e(0x1f0)]['equals']=function(_0x23c50f){var _0x4d87f6=_0x497e3e;return this[_0x4d87f6(0x2c0)](_0x23c50f)==0x0;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x26f)]=function(_0x352cf5){var _0x2391bf=_0x497e3e;return this[_0x2391bf(0x2c0)](_0x352cf5)<0x0?this:_0x352cf5;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x2c6)]=function(_0xdb3869){var _0x41cd86=_0x497e3e;return this[_0x41cd86(0x2c0)](_0xdb3869)>0x0?this:_0xdb3869;},_0x2a805f[_0x497e3e(0x1f0)]['and']=function(_0x92ce69){var _0x37c3c1=_0x497e3e,_0x54cec5=_0x2802d5();return this[_0x37c3c1(0x2ac)](_0x92ce69,_0x3d33c2,_0x54cec5),_0x54cec5;},_0x2a805f[_0x497e3e(0x1f0)]['or']=function(_0x102d7e){var _0x3a4353=_0x2802d5();return this['bitwiseTo'](_0x102d7e,_0x2c14e5,_0x3a4353),_0x3a4353;},_0x2a805f[_0x497e3e(0x1f0)]['xor']=function(_0x30eac2){var _0x8ac63d=_0x497e3e,_0x300e5b=_0x2802d5();return this[_0x8ac63d(0x2ac)](_0x30eac2,_0x2aa1aa,_0x300e5b),_0x300e5b;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x1fa)]=function(_0x58a80f){var _0x627838=_0x497e3e,_0x45a8c5=_0x2802d5();return this[_0x627838(0x2ac)](_0x58a80f,_0x10e6ee,_0x45a8c5),_0x45a8c5;},_0x2a805f['prototype']['not']=function(){var _0x1509b7=_0x2802d5();for(var _0x24cee1=0x0;_0x24cee1<this['t'];++_0x24cee1){_0x1509b7[_0x24cee1]=this['DM']&~this[_0x24cee1];}return _0x1509b7['t']=this['t'],_0x1509b7['s']=~this['s'],_0x1509b7;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x2be)]=function(_0x1dab0f){var _0xfe1b72=_0x497e3e,_0x374795=_0x2802d5();return _0x1dab0f<0x0?this[_0xfe1b72(0x224)](-_0x1dab0f,_0x374795):this[_0xfe1b72(0x261)](_0x1dab0f,_0x374795),_0x374795;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x2ce)]=function(_0x48bb4c){var _0x1d1a04=_0x497e3e,_0x4f7e9a=_0x2802d5();return _0x48bb4c<0x0?this['lShiftTo'](-_0x48bb4c,_0x4f7e9a):this[_0x1d1a04(0x224)](_0x48bb4c,_0x4f7e9a),_0x4f7e9a;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x177)]=function(){for(var _0x1b5b73=0x0;_0x1b5b73<this['t'];++_0x1b5b73){if(this[_0x1b5b73]!=0x0)return _0x1b5b73*this['DB']+_0x21dd40(this[_0x1b5b73]);}if(this['s']<0x0)return this['t']*this['DB'];return-0x1;},_0x2a805f[_0x497e3e(0x1f0)]['bitCount']=function(){var _0xe8fb4c=0x0,_0x5c224a=this['s']&this['DM'];for(var _0x5bfa03=0x0;_0x5bfa03<this['t'];++_0x5bfa03){_0xe8fb4c+=_0x44bfaa(this[_0x5bfa03]^_0x5c224a);}return _0xe8fb4c;},_0x2a805f['prototype'][_0x497e3e(0x2b7)]=function(_0x58435d){var _0x17a938=_0x497e3e,_0x5164b6=Math[_0x17a938(0x1ed)](_0x58435d/this['DB']);if(_0x5164b6>=this['t'])return this['s']!=0x0;return(this[_0x5164b6]&0x1<<_0x58435d%this['DB'])!=0x0;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x27d)]=function(_0x5143b9){var _0x40bd64=_0x497e3e;return this[_0x40bd64(0x1d4)](_0x5143b9,_0x2c14e5);},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x269)]=function(_0x14d812){var _0x550fa4=_0x497e3e;return this[_0x550fa4(0x1d4)](_0x14d812,_0x10e6ee);},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x1f5)]=function(_0x296337){var _0x56391e=_0x497e3e;return this[_0x56391e(0x1d4)](_0x296337,_0x2aa1aa);},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x16a)]=function(_0x513826){var _0x53284c=_0x497e3e,_0x319676=_0x2802d5();return this[_0x53284c(0x161)](_0x513826,_0x319676),_0x319676;},_0x2a805f[_0x497e3e(0x1f0)]['subtract']=function(_0x394efe){var _0x35c947=_0x497e3e,_0xdf62df=_0x2802d5();return this[_0x35c947(0x15c)](_0x394efe,_0xdf62df),_0xdf62df;},_0x2a805f[_0x497e3e(0x1f0)]['multiply']=function(_0x34654d){var _0x576207=_0x497e3e,_0x2062d3=_0x2802d5();return this[_0x576207(0x1ff)](_0x34654d,_0x2062d3),_0x2062d3;},_0x2a805f['prototype'][_0x497e3e(0x2c9)]=function(_0x57bae3){var _0x107e77=_0x2802d5();return this['divRemTo'](_0x57bae3,_0x107e77,null),_0x107e77;},_0x2a805f['prototype'][_0x497e3e(0x1be)]=function(_0x392d0a){var _0x145cab=_0x497e3e,_0x39d667=_0x2802d5();return this[_0x145cab(0x1e5)](_0x392d0a,null,_0x39d667),_0x39d667;},_0x2a805f['prototype'][_0x497e3e(0x227)]=function(_0x11d56b){var _0x4f0ec5=_0x497e3e,_0x39204e=_0x2802d5(),_0x3d0d4c=_0x2802d5();return this[_0x4f0ec5(0x1e5)](_0x11d56b,_0x39204e,_0x3d0d4c),[_0x39204e,_0x3d0d4c];},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x264)]=function(_0x3606b5,_0x5829b5){var _0x593320=_0x497e3e,_0x9414ae=_0x3606b5[_0x593320(0x241)](),_0x59ecd3,_0x3fe3c5=_0x54187e(0x1),_0xba4f06;if(_0x9414ae<=0x0)return _0x3fe3c5;else{if(_0x9414ae<0x12)_0x59ecd3=0x1;else{if(_0x9414ae<0x30)_0x59ecd3=0x3;else{if(_0x9414ae<0x90)_0x59ecd3=0x4;else _0x9414ae<0x300?_0x59ecd3=0x5:_0x59ecd3=0x6;}}}if(_0x9414ae<0x8)_0xba4f06=new _0x241b77(_0x5829b5);else _0x5829b5[_0x593320(0x1ab)]()?_0xba4f06=new _0x19db42(_0x5829b5):_0xba4f06=new _0x1989b2(_0x5829b5);var _0x123620=[],_0x58a56d=0x3,_0x19d9c3=_0x59ecd3-0x1,_0x1b1bc9=(0x1<<_0x59ecd3)-0x1;_0x123620[0x1]=_0xba4f06[_0x593320(0x26e)](this);if(_0x59ecd3>0x1){var _0x16a819=_0x2802d5();_0xba4f06[_0x593320(0x297)](_0x123620[0x1],_0x16a819);while(_0x58a56d<=_0x1b1bc9){_0x123620[_0x58a56d]=_0x2802d5(),_0xba4f06[_0x593320(0x1dc)](_0x16a819,_0x123620[_0x58a56d-0x2],_0x123620[_0x58a56d]),_0x58a56d+=0x2;}}var _0x539e5e=_0x3606b5['t']-0x1,_0x360f0a,_0x54533d=!![],_0x30593b=_0x2802d5(),_0x37dcb0;_0x9414ae=_0x2447a1(_0x3606b5[_0x539e5e])-0x1;while(_0x539e5e>=0x0){_0x9414ae>=_0x19d9c3?_0x360f0a=_0x3606b5[_0x539e5e]>>_0x9414ae-_0x19d9c3&_0x1b1bc9:(_0x360f0a=(_0x3606b5[_0x539e5e]&(0x1<<_0x9414ae+0x1)-0x1)<<_0x19d9c3-_0x9414ae,_0x539e5e>0x0&&(_0x360f0a|=_0x3606b5[_0x539e5e-0x1]>>this['DB']+_0x9414ae-_0x19d9c3));_0x58a56d=_0x59ecd3;while((_0x360f0a&0x1)==0x0){_0x360f0a>>=0x1,--_0x58a56d;}(_0x9414ae-=_0x58a56d)<0x0&&(_0x9414ae+=this['DB'],--_0x539e5e);if(_0x54533d)_0x123620[_0x360f0a][_0x593320(0x247)](_0x3fe3c5),_0x54533d=![];else{while(_0x58a56d>0x1){_0xba4f06[_0x593320(0x297)](_0x3fe3c5,_0x30593b),_0xba4f06[_0x593320(0x297)](_0x30593b,_0x3fe3c5),_0x58a56d-=0x2;}_0x58a56d>0x0?_0xba4f06['sqrTo'](_0x3fe3c5,_0x30593b):(_0x37dcb0=_0x3fe3c5,_0x3fe3c5=_0x30593b,_0x30593b=_0x37dcb0),_0xba4f06['mulTo'](_0x30593b,_0x123620[_0x360f0a],_0x3fe3c5);}while(_0x539e5e>=0x0&&(_0x3606b5[_0x539e5e]&0x1<<_0x9414ae)==0x0){_0xba4f06[_0x593320(0x297)](_0x3fe3c5,_0x30593b),_0x37dcb0=_0x3fe3c5,_0x3fe3c5=_0x30593b,_0x30593b=_0x37dcb0,--_0x9414ae<0x0&&(_0x9414ae=this['DB']-0x1,--_0x539e5e);}}return _0xba4f06[_0x593320(0x260)](_0x3fe3c5);},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x2b5)]=function(_0x2824fd){var _0x12ca80=_0x497e3e,_0x52760f=_0x2824fd[_0x12ca80(0x1ab)]();if(this[_0x12ca80(0x1ab)]()&&_0x52760f||_0x2824fd[_0x12ca80(0x296)]()==0x0)return _0x2a805f[_0x12ca80(0x254)];var _0x23a1df=_0x2824fd['clone'](),_0x559e41=this['clone'](),_0x54a56a=_0x54187e(0x1),_0x57ad82=_0x54187e(0x0),_0x43d88b=_0x54187e(0x0),_0x5cec2a=_0x54187e(0x1);while(_0x23a1df[_0x12ca80(0x296)]()!=0x0){while(_0x23a1df[_0x12ca80(0x1ab)]()){_0x23a1df[_0x12ca80(0x224)](0x1,_0x23a1df);if(_0x52760f)(!_0x54a56a[_0x12ca80(0x1ab)]()||!_0x57ad82[_0x12ca80(0x1ab)]())&&(_0x54a56a[_0x12ca80(0x161)](this,_0x54a56a),_0x57ad82['subTo'](_0x2824fd,_0x57ad82)),_0x54a56a[_0x12ca80(0x224)](0x1,_0x54a56a);else!_0x57ad82[_0x12ca80(0x1ab)]()&&_0x57ad82[_0x12ca80(0x15c)](_0x2824fd,_0x57ad82);_0x57ad82[_0x12ca80(0x224)](0x1,_0x57ad82);}while(_0x559e41[_0x12ca80(0x1ab)]()){_0x559e41['rShiftTo'](0x1,_0x559e41);if(_0x52760f)(!_0x43d88b[_0x12ca80(0x1ab)]()||!_0x5cec2a[_0x12ca80(0x1ab)]())&&(_0x43d88b[_0x12ca80(0x161)](this,_0x43d88b),_0x5cec2a[_0x12ca80(0x15c)](_0x2824fd,_0x5cec2a)),_0x43d88b['rShiftTo'](0x1,_0x43d88b);else!_0x5cec2a['isEven']()&&_0x5cec2a[_0x12ca80(0x15c)](_0x2824fd,_0x5cec2a);_0x5cec2a[_0x12ca80(0x224)](0x1,_0x5cec2a);}_0x23a1df[_0x12ca80(0x2c0)](_0x559e41)>=0x0?(_0x23a1df[_0x12ca80(0x15c)](_0x559e41,_0x23a1df),_0x52760f&&_0x54a56a[_0x12ca80(0x15c)](_0x43d88b,_0x54a56a),_0x57ad82[_0x12ca80(0x15c)](_0x5cec2a,_0x57ad82)):(_0x559e41[_0x12ca80(0x15c)](_0x23a1df,_0x559e41),_0x52760f&&_0x43d88b[_0x12ca80(0x15c)](_0x54a56a,_0x43d88b),_0x5cec2a[_0x12ca80(0x15c)](_0x57ad82,_0x5cec2a));}if(_0x559e41[_0x12ca80(0x2c0)](_0x2a805f[_0x12ca80(0x17d)])!=0x0)return _0x2a805f[_0x12ca80(0x254)];if(_0x5cec2a[_0x12ca80(0x2c0)](_0x2824fd)>=0x0)return _0x5cec2a[_0x12ca80(0x1c5)](_0x2824fd);if(_0x5cec2a[_0x12ca80(0x296)]()<0x0)_0x5cec2a[_0x12ca80(0x161)](_0x2824fd,_0x5cec2a);else return _0x5cec2a;return _0x5cec2a[_0x12ca80(0x296)]()<0x0?_0x5cec2a[_0x12ca80(0x16a)](_0x2824fd):_0x5cec2a;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x234)]=function(_0x3ac761){var _0x485318=_0x497e3e;return this[_0x485318(0x1a2)](_0x3ac761,new _0x102c25());},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x298)]=function(_0x4ce7b6){var _0x535522=_0x497e3e,_0x51794b=this['s']<0x0?this[_0x535522(0x27a)]():this[_0x535522(0x1f7)](),_0x22cc09=_0x4ce7b6['s']<0x0?_0x4ce7b6[_0x535522(0x27a)]():_0x4ce7b6['clone']();if(_0x51794b[_0x535522(0x2c0)](_0x22cc09)<0x0){var _0x400f40=_0x51794b;_0x51794b=_0x22cc09,_0x22cc09=_0x400f40;}var _0x1f5193=_0x51794b[_0x535522(0x177)](),_0x4dab59=_0x22cc09[_0x535522(0x177)]();if(_0x4dab59<0x0)return _0x51794b;_0x1f5193<_0x4dab59&&(_0x4dab59=_0x1f5193);_0x4dab59>0x0&&(_0x51794b[_0x535522(0x224)](_0x4dab59,_0x51794b),_0x22cc09[_0x535522(0x224)](_0x4dab59,_0x22cc09));while(_0x51794b[_0x535522(0x296)]()>0x0){(_0x1f5193=_0x51794b[_0x535522(0x177)]())>0x0&&_0x51794b[_0x535522(0x224)](_0x1f5193,_0x51794b),(_0x1f5193=_0x22cc09[_0x535522(0x177)]())>0x0&&_0x22cc09[_0x535522(0x224)](_0x1f5193,_0x22cc09),_0x51794b[_0x535522(0x2c0)](_0x22cc09)>=0x0?(_0x51794b['subTo'](_0x22cc09,_0x51794b),_0x51794b[_0x535522(0x224)](0x1,_0x51794b)):(_0x22cc09['subTo'](_0x51794b,_0x22cc09),_0x22cc09[_0x535522(0x224)](0x1,_0x22cc09));}return _0x4dab59>0x0&&_0x22cc09[_0x535522(0x261)](_0x4dab59,_0x22cc09),_0x22cc09;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x1e3)]=function(_0x55f5a8){var _0x59e001=_0x497e3e,_0x4d1ecb,_0x2d83c8=this['abs']();if(_0x2d83c8['t']==0x1&&_0x2d83c8[0x0]<=_0x2e5ed7[_0x2e5ed7[_0x59e001(0x1b4)]-0x1]){for(_0x4d1ecb=0x0;_0x4d1ecb<_0x2e5ed7[_0x59e001(0x1b4)];++_0x4d1ecb){if(_0x2d83c8[0x0]==_0x2e5ed7[_0x4d1ecb])return!![];}return![];}if(_0x2d83c8[_0x59e001(0x1ab)]())return![];_0x4d1ecb=0x1;while(_0x4d1ecb<_0x2e5ed7[_0x59e001(0x1b4)]){var _0x19b8b8=_0x2e5ed7[_0x4d1ecb],_0x2cbeef=_0x4d1ecb+0x1;while(_0x2cbeef<_0x2e5ed7[_0x59e001(0x1b4)]&&_0x19b8b8<_0x42f1f6){_0x19b8b8*=_0x2e5ed7[_0x2cbeef++];}_0x19b8b8=_0x2d83c8[_0x59e001(0x20b)](_0x19b8b8);while(_0x4d1ecb<_0x2cbeef){if(_0x19b8b8%_0x2e5ed7[_0x4d1ecb++]==0x0)return![];}}return _0x2d83c8[_0x59e001(0x1ce)](_0x55f5a8);},_0x2a805f['prototype'][_0x497e3e(0x247)]=function(_0x5b370e){for(var _0xcd73c5=this['t']-0x1;_0xcd73c5>=0x0;--_0xcd73c5){_0x5b370e[_0xcd73c5]=this[_0xcd73c5];}_0x5b370e['t']=this['t'],_0x5b370e['s']=this['s'];},_0x2a805f['prototype'][_0x497e3e(0x156)]=function(_0x52faec){this['t']=0x1,this['s']=_0x52faec<0x0?-0x1:0x0;if(_0x52faec>0x0)this[0x0]=_0x52faec;else _0x52faec<-0x1?this[0x0]=_0x52faec+this['DV']:this['t']=0x0;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x15d)]=function(_0x149db5,_0x3978be){var _0x136592=_0x497e3e,_0x428728;if(_0x3978be==0x10)_0x428728=0x4;else{if(_0x3978be==0x8)_0x428728=0x3;else{if(_0x3978be==0x100)_0x428728=0x8;else{if(_0x3978be==0x2)_0x428728=0x1;else{if(_0x3978be==0x20)_0x428728=0x5;else{if(_0x3978be==0x4)_0x428728=0x2;else{this[_0x136592(0x275)](_0x149db5,_0x3978be);return;}}}}}}this['t']=0x0,this['s']=0x0;var _0x420dae=_0x149db5[_0x136592(0x1b4)],_0x1f6d3b=![],_0x44026b=0x0;while(--_0x420dae>=0x0){var _0x4d5ccf=_0x428728==0x8?+_0x149db5[_0x420dae]&0xff:_0x75e6cb(_0x149db5,_0x420dae);if(_0x4d5ccf<0x0){_0x149db5['charAt'](_0x420dae)=='-'&&(_0x1f6d3b=!![]);continue;}_0x1f6d3b=![];if(_0x44026b==0x0)this[this['t']++]=_0x4d5ccf;else _0x44026b+_0x428728>this['DB']?(this[this['t']-0x1]|=(_0x4d5ccf&(0x1<<this['DB']-_0x44026b)-0x1)<<_0x44026b,this[this['t']++]=_0x4d5ccf>>this['DB']-_0x44026b):this[this['t']-0x1]|=_0x4d5ccf<<_0x44026b;_0x44026b+=_0x428728,_0x44026b>=this['DB']&&(_0x44026b-=this['DB']);}_0x428728==0x8&&(+_0x149db5[0x0]&0x80)!=0x0&&(this['s']=-0x1,_0x44026b>0x0&&(this[this['t']-0x1]|=(0x1<<this['DB']-_0x44026b)-0x1<<_0x44026b)),this[_0x136592(0x16f)](),_0x1f6d3b&&_0x2a805f[_0x136592(0x254)][_0x136592(0x15c)](this,this);},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x16f)]=function(){var _0x288806=this['s']&this['DM'];while(this['t']>0x0&&this[this['t']-0x1]==_0x288806){--this['t'];}},_0x2a805f['prototype'][_0x497e3e(0x238)]=function(_0x23b763,_0x1e38db){var _0x2d9aa7;for(_0x2d9aa7=this['t']-0x1;_0x2d9aa7>=0x0;--_0x2d9aa7){_0x1e38db[_0x2d9aa7+_0x23b763]=this[_0x2d9aa7];}for(_0x2d9aa7=_0x23b763-0x1;_0x2d9aa7>=0x0;--_0x2d9aa7){_0x1e38db[_0x2d9aa7]=0x0;}_0x1e38db['t']=this['t']+_0x23b763,_0x1e38db['s']=this['s'];},_0x2a805f['prototype']['drShiftTo']=function(_0x339602,_0x27af40){for(var _0x134c6e=_0x339602;_0x134c6e<this['t'];++_0x134c6e){_0x27af40[_0x134c6e-_0x339602]=this[_0x134c6e];}_0x27af40['t']=Math['max'](this['t']-_0x339602,0x0),_0x27af40['s']=this['s'];},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x261)]=function(_0x48e59a,_0x36f9e2){var _0x207666=_0x497e3e,_0x2989a1=_0x48e59a%this['DB'],_0x3b9a02=this['DB']-_0x2989a1,_0x5158b8=(0x1<<_0x3b9a02)-0x1,_0x5ab5fb=Math[_0x207666(0x1ed)](_0x48e59a/this['DB']),_0x545e01=this['s']<<_0x2989a1&this['DM'];for(var _0x231d19=this['t']-0x1;_0x231d19>=0x0;--_0x231d19){_0x36f9e2[_0x231d19+_0x5ab5fb+0x1]=this[_0x231d19]>>_0x3b9a02|_0x545e01,_0x545e01=(this[_0x231d19]&_0x5158b8)<<_0x2989a1;}for(var _0x231d19=_0x5ab5fb-0x1;_0x231d19>=0x0;--_0x231d19){_0x36f9e2[_0x231d19]=0x0;}_0x36f9e2[_0x5ab5fb]=_0x545e01,_0x36f9e2['t']=this['t']+_0x5ab5fb+0x1,_0x36f9e2['s']=this['s'],_0x36f9e2[_0x207666(0x16f)]();},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x224)]=function(_0x4eabcd,_0x5ece79){var _0x19f96e=_0x497e3e;_0x5ece79['s']=this['s'];var _0x231456=Math[_0x19f96e(0x1ed)](_0x4eabcd/this['DB']);if(_0x231456>=this['t']){_0x5ece79['t']=0x0;return;}var _0x3b2eb4=_0x4eabcd%this['DB'],_0x59edaa=this['DB']-_0x3b2eb4,_0x2508f9=(0x1<<_0x3b2eb4)-0x1;_0x5ece79[0x0]=this[_0x231456]>>_0x3b2eb4;for(var _0x48afc6=_0x231456+0x1;_0x48afc6<this['t'];++_0x48afc6){_0x5ece79[_0x48afc6-_0x231456-0x1]|=(this[_0x48afc6]&_0x2508f9)<<_0x59edaa,_0x5ece79[_0x48afc6-_0x231456]=this[_0x48afc6]>>_0x3b2eb4;}_0x3b2eb4>0x0&&(_0x5ece79[this['t']-_0x231456-0x1]|=(this['s']&_0x2508f9)<<_0x59edaa),_0x5ece79['t']=this['t']-_0x231456,_0x5ece79['clamp']();},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x15c)]=function(_0x442cb1,_0x205301){var _0x41f335=_0x497e3e,_0x334d5d=0x0,_0x4358a8=0x0,_0x2ba818=Math[_0x41f335(0x26f)](_0x442cb1['t'],this['t']);while(_0x334d5d<_0x2ba818){_0x4358a8+=this[_0x334d5d]-_0x442cb1[_0x334d5d],_0x205301[_0x334d5d++]=_0x4358a8&this['DM'],_0x4358a8>>=this['DB'];}if(_0x442cb1['t']<this['t']){_0x4358a8-=_0x442cb1['s'];while(_0x334d5d<this['t']){_0x4358a8+=this[_0x334d5d],_0x205301[_0x334d5d++]=_0x4358a8&this['DM'],_0x4358a8>>=this['DB'];}_0x4358a8+=this['s'];}else{_0x4358a8+=this['s'];while(_0x334d5d<_0x442cb1['t']){_0x4358a8-=_0x442cb1[_0x334d5d],_0x205301[_0x334d5d++]=_0x4358a8&this['DM'],_0x4358a8>>=this['DB'];}_0x4358a8-=_0x442cb1['s'];}_0x205301['s']=_0x4358a8<0x0?-0x1:0x0;if(_0x4358a8<-0x1)_0x205301[_0x334d5d++]=this['DV']+_0x4358a8;else _0x4358a8>0x0&&(_0x205301[_0x334d5d++]=_0x4358a8);_0x205301['t']=_0x334d5d,_0x205301[_0x41f335(0x16f)]();},_0x2a805f['prototype'][_0x497e3e(0x1ff)]=function(_0x49233d,_0x29bc43){var _0x38362a=_0x497e3e,_0x1e62a0=this[_0x38362a(0x2a2)](),_0x2a78dc=_0x49233d[_0x38362a(0x2a2)](),_0x2f9611=_0x1e62a0['t'];_0x29bc43['t']=_0x2f9611+_0x2a78dc['t'];while(--_0x2f9611>=0x0){_0x29bc43[_0x2f9611]=0x0;}for(_0x2f9611=0x0;_0x2f9611<_0x2a78dc['t'];++_0x2f9611){_0x29bc43[_0x2f9611+_0x1e62a0['t']]=_0x1e62a0['am'](0x0,_0x2a78dc[_0x2f9611],_0x29bc43,_0x2f9611,0x0,_0x1e62a0['t']);}_0x29bc43['s']=0x0,_0x29bc43[_0x38362a(0x16f)](),this['s']!=_0x49233d['s']&&_0x2a805f['ZERO'][_0x38362a(0x15c)](_0x29bc43,_0x29bc43);},_0x2a805f[_0x497e3e(0x1f0)]['squareTo']=function(_0xee3a74){var _0x2a100b=_0x497e3e,_0x4a289f=this['abs'](),_0x38bb37=_0xee3a74['t']=0x2*_0x4a289f['t'];while(--_0x38bb37>=0x0){_0xee3a74[_0x38bb37]=0x0;}for(_0x38bb37=0x0;_0x38bb37<_0x4a289f['t']-0x1;++_0x38bb37){var _0x41b7c3=_0x4a289f['am'](_0x38bb37,_0x4a289f[_0x38bb37],_0xee3a74,0x2*_0x38bb37,0x0,0x1);(_0xee3a74[_0x38bb37+_0x4a289f['t']]+=_0x4a289f['am'](_0x38bb37+0x1,0x2*_0x4a289f[_0x38bb37],_0xee3a74,0x2*_0x38bb37+0x1,_0x41b7c3,_0x4a289f['t']-_0x38bb37-0x1))>=_0x4a289f['DV']&&(_0xee3a74[_0x38bb37+_0x4a289f['t']]-=_0x4a289f['DV'],_0xee3a74[_0x38bb37+_0x4a289f['t']+0x1]=0x1);}_0xee3a74['t']>0x0&&(_0xee3a74[_0xee3a74['t']-0x1]+=_0x4a289f['am'](_0x38bb37,_0x4a289f[_0x38bb37],_0xee3a74,0x2*_0x38bb37,0x0,0x1)),_0xee3a74['s']=0x0,_0xee3a74[_0x2a100b(0x16f)]();},_0x2a805f[_0x497e3e(0x1f0)]['divRemTo']=function(_0x54db65,_0x109f9e,_0x127dc1){var _0x5d038f=_0x497e3e,_0x2df7db=_0x54db65[_0x5d038f(0x2a2)]();if(_0x2df7db['t']<=0x0)return;var _0x4dfe8e=this[_0x5d038f(0x2a2)]();if(_0x4dfe8e['t']<_0x2df7db['t']){_0x109f9e!=null&&_0x109f9e[_0x5d038f(0x156)](0x0);_0x127dc1!=null&&this['copyTo'](_0x127dc1);return;}_0x127dc1==null&&(_0x127dc1=_0x2802d5());var _0x5ed236=_0x2802d5(),_0x2e0558=this['s'],_0x5ce012=_0x54db65['s'],_0x21522a=this['DB']-_0x2447a1(_0x2df7db[_0x2df7db['t']-0x1]);_0x21522a>0x0?(_0x2df7db[_0x5d038f(0x261)](_0x21522a,_0x5ed236),_0x4dfe8e[_0x5d038f(0x261)](_0x21522a,_0x127dc1)):(_0x2df7db[_0x5d038f(0x247)](_0x5ed236),_0x4dfe8e[_0x5d038f(0x247)](_0x127dc1));var _0x7728f2=_0x5ed236['t'],_0x32380e=_0x5ed236[_0x7728f2-0x1];if(_0x32380e==0x0)return;var _0x376076=_0x32380e*(0x1<<this['F1'])+(_0x7728f2>0x1?_0x5ed236[_0x7728f2-0x2]>>this['F2']:0x0),_0x3e2370=this['FV']/_0x376076,_0x5bc89f=(0x1<<this['F1'])/_0x376076,_0x3db6ee=0x1<<this['F2'],_0x11832a=_0x127dc1['t'],_0x17b795=_0x11832a-_0x7728f2,_0x2f7eac=_0x109f9e==null?_0x2802d5():_0x109f9e;_0x5ed236['dlShiftTo'](_0x17b795,_0x2f7eac);_0x127dc1[_0x5d038f(0x2c0)](_0x2f7eac)>=0x0&&(_0x127dc1[_0x127dc1['t']++]=0x1,_0x127dc1[_0x5d038f(0x15c)](_0x2f7eac,_0x127dc1));_0x2a805f[_0x5d038f(0x17d)]['dlShiftTo'](_0x7728f2,_0x2f7eac),_0x2f7eac[_0x5d038f(0x15c)](_0x5ed236,_0x5ed236);while(_0x5ed236['t']<_0x7728f2){_0x5ed236[_0x5ed236['t']++]=0x0;}while(--_0x17b795>=0x0){var _0x4e1d12=_0x127dc1[--_0x11832a]==_0x32380e?this['DM']:Math[_0x5d038f(0x1ed)](_0x127dc1[_0x11832a]*_0x3e2370+(_0x127dc1[_0x11832a-0x1]+_0x3db6ee)*_0x5bc89f);if((_0x127dc1[_0x11832a]+=_0x5ed236['am'](0x0,_0x4e1d12,_0x127dc1,_0x17b795,0x0,_0x7728f2))<_0x4e1d12){_0x5ed236[_0x5d038f(0x238)](_0x17b795,_0x2f7eac),_0x127dc1[_0x5d038f(0x15c)](_0x2f7eac,_0x127dc1);while(_0x127dc1[_0x11832a]<--_0x4e1d12){_0x127dc1[_0x5d038f(0x15c)](_0x2f7eac,_0x127dc1);}}}_0x109f9e!=null&&(_0x127dc1['drShiftTo'](_0x7728f2,_0x109f9e),_0x2e0558!=_0x5ce012&&_0x2a805f['ZERO'][_0x5d038f(0x15c)](_0x109f9e,_0x109f9e)),_0x127dc1['t']=_0x7728f2,_0x127dc1[_0x5d038f(0x16f)](),_0x21522a>0x0&&_0x127dc1[_0x5d038f(0x224)](_0x21522a,_0x127dc1),_0x2e0558<0x0&&_0x2a805f[_0x5d038f(0x254)][_0x5d038f(0x15c)](_0x127dc1,_0x127dc1);},_0x2a805f[_0x497e3e(0x1f0)]['invDigit']=function(){if(this['t']<0x1)return 0x0;var _0x3d403a=this[0x0];if((_0x3d403a&0x1)==0x0)return 0x0;var _0x542f6a=_0x3d403a&0x3;return _0x542f6a=_0x542f6a*(0x2-(_0x3d403a&0xf)*_0x542f6a)&0xf,_0x542f6a=_0x542f6a*(0x2-(_0x3d403a&0xff)*_0x542f6a)&0xff,_0x542f6a=_0x542f6a*(0x2-((_0x3d403a&0xffff)*_0x542f6a&0xffff))&0xffff,_0x542f6a=_0x542f6a*(0x2-_0x3d403a*_0x542f6a%this['DV'])%this['DV'],_0x542f6a>0x0?this['DV']-_0x542f6a:-_0x542f6a;},_0x2a805f['prototype']['isEven']=function(){return(this['t']>0x0?this[0x0]&0x1:this['s'])==0x0;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x1a2)]=function(_0xcbeee0,_0x2a6ffc){var _0x130f58=_0x497e3e;if(_0xcbeee0>0xffffffff||_0xcbeee0<0x1)return _0x2a805f[_0x130f58(0x17d)];var _0x384818=_0x2802d5(),_0x53722e=_0x2802d5(),_0x1f89df=_0x2a6ffc[_0x130f58(0x26e)](this),_0x19e82e=_0x2447a1(_0xcbeee0)-0x1;_0x1f89df['copyTo'](_0x384818);while(--_0x19e82e>=0x0){_0x2a6ffc[_0x130f58(0x297)](_0x384818,_0x53722e);if((_0xcbeee0&0x1<<_0x19e82e)>0x0)_0x2a6ffc[_0x130f58(0x1dc)](_0x53722e,_0x1f89df,_0x384818);else{var _0x1703b3=_0x384818;_0x384818=_0x53722e,_0x53722e=_0x1703b3;}}return _0x2a6ffc['revert'](_0x384818);},_0x2a805f[_0x497e3e(0x1f0)]['chunkSize']=function(_0xa58d50){var _0x1b4173=_0x497e3e;return Math[_0x1b4173(0x1ed)](Math[_0x1b4173(0x174)]*this['DB']/Math[_0x1b4173(0x233)](_0xa58d50));},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x1af)]=function(_0x590b21){var _0x40ed4c=_0x497e3e;_0x590b21==null&&(_0x590b21=0xa);if(this[_0x40ed4c(0x296)]()==0x0||_0x590b21<0x2||_0x590b21>0x24)return'0';var _0xd590b5=this[_0x40ed4c(0x25a)](_0x590b21),_0x105e59=Math[_0x40ed4c(0x234)](_0x590b21,_0xd590b5),_0x395d7a=_0x54187e(_0x105e59),_0x52979c=_0x2802d5(),_0x1dee7a=_0x2802d5(),_0x4da753='';this[_0x40ed4c(0x1e5)](_0x395d7a,_0x52979c,_0x1dee7a);while(_0x52979c[_0x40ed4c(0x296)]()>0x0){_0x4da753=(_0x105e59+_0x1dee7a['intValue']())['toString'](_0x590b21)[_0x40ed4c(0x1c4)](0x1)+_0x4da753,_0x52979c[_0x40ed4c(0x1e5)](_0x395d7a,_0x52979c,_0x1dee7a);}return _0x1dee7a[_0x40ed4c(0x1a0)]()[_0x40ed4c(0x1e7)](_0x590b21)+_0x4da753;},_0x2a805f['prototype'][_0x497e3e(0x275)]=function(_0xad3dcf,_0x4e85e5){var _0x58ea79=_0x497e3e;this[_0x58ea79(0x156)](0x0);_0x4e85e5==null&&(_0x4e85e5=0xa);var _0x57cf84=this[_0x58ea79(0x25a)](_0x4e85e5),_0x2161b8=Math['pow'](_0x4e85e5,_0x57cf84),_0x5149ec=![],_0x192e2e=0x0,_0x34741d=0x0;for(var _0x4993db=0x0;_0x4993db<_0xad3dcf[_0x58ea79(0x1b4)];++_0x4993db){var _0x36a53e=_0x75e6cb(_0xad3dcf,_0x4993db);if(_0x36a53e<0x0){_0xad3dcf[_0x58ea79(0x2a1)](_0x4993db)=='-'&&this['signum']()==0x0&&(_0x5149ec=!![]);continue;}_0x34741d=_0x4e85e5*_0x34741d+_0x36a53e,++_0x192e2e>=_0x57cf84&&(this[_0x58ea79(0x1fc)](_0x2161b8),this[_0x58ea79(0x16b)](_0x34741d,0x0),_0x192e2e=0x0,_0x34741d=0x0);}_0x192e2e>0x0&&(this['dMultiply'](Math['pow'](_0x4e85e5,_0x192e2e)),this[_0x58ea79(0x16b)](_0x34741d,0x0)),_0x5149ec&&_0x2a805f[_0x58ea79(0x254)][_0x58ea79(0x15c)](this,this);},_0x2a805f[_0x497e3e(0x1f0)]['fromNumber']=function(_0xb2e0da,_0x516a56,_0x40508e){var _0xe32c30=_0x497e3e;if(_0xe32c30(0x2cd)==typeof _0x516a56){if(_0xb2e0da<0x2)this[_0xe32c30(0x156)](0x1);else{this[_0xe32c30(0x1de)](_0xb2e0da,_0x40508e);!this['testBit'](_0xb2e0da-0x1)&&this[_0xe32c30(0x2ac)](_0x2a805f['ONE']['shiftLeft'](_0xb2e0da-0x1),_0x2c14e5,this);this[_0xe32c30(0x1ab)]()&&this['dAddOffset'](0x1,0x0);while(!this[_0xe32c30(0x1e3)](_0x516a56)){this[_0xe32c30(0x16b)](0x2,0x0),this[_0xe32c30(0x241)]()>_0xb2e0da&&this[_0xe32c30(0x15c)](_0x2a805f[_0xe32c30(0x17d)][_0xe32c30(0x2be)](_0xb2e0da-0x1),this);}}}else{var _0x209930=[],_0x7c4404=_0xb2e0da&0x7;_0x209930[_0xe32c30(0x1b4)]=(_0xb2e0da>>0x3)+0x1,_0x516a56[_0xe32c30(0x276)](_0x209930),_0x7c4404>0x0?_0x209930[0x0]&=(0x1<<_0x7c4404)-0x1:_0x209930[0x0]=0x0,this[_0xe32c30(0x15d)](_0x209930,0x100);}},_0x2a805f['prototype']['bitwiseTo']=function(_0x1e171e,_0x59f073,_0x34f6d1){var _0x1fa6b4=_0x497e3e,_0x40de8d,_0x53d873,_0x3184f2=Math[_0x1fa6b4(0x26f)](_0x1e171e['t'],this['t']);for(_0x40de8d=0x0;_0x40de8d<_0x3184f2;++_0x40de8d){_0x34f6d1[_0x40de8d]=_0x59f073(this[_0x40de8d],_0x1e171e[_0x40de8d]);}if(_0x1e171e['t']<this['t']){_0x53d873=_0x1e171e['s']&this['DM'];for(_0x40de8d=_0x3184f2;_0x40de8d<this['t'];++_0x40de8d){_0x34f6d1[_0x40de8d]=_0x59f073(this[_0x40de8d],_0x53d873);}_0x34f6d1['t']=this['t'];}else{_0x53d873=this['s']&this['DM'];for(_0x40de8d=_0x3184f2;_0x40de8d<_0x1e171e['t'];++_0x40de8d){_0x34f6d1[_0x40de8d]=_0x59f073(_0x53d873,_0x1e171e[_0x40de8d]);}_0x34f6d1['t']=_0x1e171e['t'];}_0x34f6d1['s']=_0x59f073(this['s'],_0x1e171e['s']),_0x34f6d1[_0x1fa6b4(0x16f)]();},_0x2a805f['prototype'][_0x497e3e(0x1d4)]=function(_0x43ab49,_0x91c5b7){var _0x102d81=_0x497e3e,_0x49309c=_0x2a805f[_0x102d81(0x17d)][_0x102d81(0x2be)](_0x43ab49);return this[_0x102d81(0x2ac)](_0x49309c,_0x91c5b7,_0x49309c),_0x49309c;},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x161)]=function(_0x5cba01,_0x3f8531){var _0x25fe21=_0x497e3e,_0x39e4f5=0x0,_0x288359=0x0,_0x1715b9=Math['min'](_0x5cba01['t'],this['t']);while(_0x39e4f5<_0x1715b9){_0x288359+=this[_0x39e4f5]+_0x5cba01[_0x39e4f5],_0x3f8531[_0x39e4f5++]=_0x288359&this['DM'],_0x288359>>=this['DB'];}if(_0x5cba01['t']<this['t']){_0x288359+=_0x5cba01['s'];while(_0x39e4f5<this['t']){_0x288359+=this[_0x39e4f5],_0x3f8531[_0x39e4f5++]=_0x288359&this['DM'],_0x288359>>=this['DB'];}_0x288359+=this['s'];}else{_0x288359+=this['s'];while(_0x39e4f5<_0x5cba01['t']){_0x288359+=_0x5cba01[_0x39e4f5],_0x3f8531[_0x39e4f5++]=_0x288359&this['DM'],_0x288359>>=this['DB'];}_0x288359+=_0x5cba01['s'];}_0x3f8531['s']=_0x288359<0x0?-0x1:0x0;if(_0x288359>0x0)_0x3f8531[_0x39e4f5++]=_0x288359;else _0x288359<-0x1&&(_0x3f8531[_0x39e4f5++]=this['DV']+_0x288359);_0x3f8531['t']=_0x39e4f5,_0x3f8531[_0x25fe21(0x16f)]();},_0x2a805f['prototype'][_0x497e3e(0x1fc)]=function(_0x241f1a){var _0x366bb5=_0x497e3e;this[this['t']]=this['am'](0x0,_0x241f1a-0x1,this,0x0,0x0,this['t']),++this['t'],this[_0x366bb5(0x16f)]();},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x16b)]=function(_0x34c2db,_0xe00cdf){if(_0x34c2db==0x0)return;while(this['t']<=_0xe00cdf){this[this['t']++]=0x0;}this[_0xe00cdf]+=_0x34c2db;while(this[_0xe00cdf]>=this['DV']){this[_0xe00cdf]-=this['DV'],++_0xe00cdf>=this['t']&&(this[this['t']++]=0x0),++this[_0xe00cdf];}},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x1d2)]=function(_0x37c6b7,_0x1876f2,_0x45e0e1){var _0xb23641=_0x497e3e,_0x57c208=Math[_0xb23641(0x26f)](this['t']+_0x37c6b7['t'],_0x1876f2);_0x45e0e1['s']=0x0,_0x45e0e1['t']=_0x57c208;while(_0x57c208>0x0){_0x45e0e1[--_0x57c208]=0x0;}for(var _0x5657aa=_0x45e0e1['t']-this['t'];_0x57c208<_0x5657aa;++_0x57c208){_0x45e0e1[_0x57c208+this['t']]=this['am'](0x0,_0x37c6b7[_0x57c208],_0x45e0e1,_0x57c208,0x0,this['t']);}for(var _0x5657aa=Math[_0xb23641(0x26f)](_0x37c6b7['t'],_0x1876f2);_0x57c208<_0x5657aa;++_0x57c208){this['am'](0x0,_0x37c6b7[_0x57c208],_0x45e0e1,_0x57c208,0x0,_0x1876f2-_0x57c208);}_0x45e0e1[_0xb23641(0x16f)]();},_0x2a805f['prototype'][_0x497e3e(0x295)]=function(_0x32a22f,_0x4e5576,_0x4fbc93){var _0x3a44fd=_0x497e3e;--_0x4e5576;var _0x359fb6=_0x4fbc93['t']=this['t']+_0x32a22f['t']-_0x4e5576;_0x4fbc93['s']=0x0;while(--_0x359fb6>=0x0){_0x4fbc93[_0x359fb6]=0x0;}for(_0x359fb6=Math[_0x3a44fd(0x2c6)](_0x4e5576-this['t'],0x0);_0x359fb6<_0x32a22f['t'];++_0x359fb6){_0x4fbc93[this['t']+_0x359fb6-_0x4e5576]=this['am'](_0x4e5576-_0x359fb6,_0x32a22f[_0x359fb6],_0x4fbc93,0x0,0x0,this['t']+_0x359fb6-_0x4e5576);}_0x4fbc93[_0x3a44fd(0x16f)](),_0x4fbc93[_0x3a44fd(0x1a9)](0x1,_0x4fbc93);},_0x2a805f['prototype'][_0x497e3e(0x20b)]=function(_0x1b2562){if(_0x1b2562<=0x0)return 0x0;var _0xae9a5f=this['DV']%_0x1b2562,_0x5c15d2=this['s']<0x0?_0x1b2562-0x1:0x0;if(this['t']>0x0){if(_0xae9a5f==0x0)_0x5c15d2=this[0x0]%_0x1b2562;else for(var _0xf207c2=this['t']-0x1;_0xf207c2>=0x0;--_0xf207c2){_0x5c15d2=(_0xae9a5f*_0x5c15d2+this[_0xf207c2])%_0x1b2562;}}return _0x5c15d2;},_0x2a805f['prototype'][_0x497e3e(0x1ce)]=function(_0x1d718){var _0x935ab3=_0x497e3e,_0x41fbf7=this[_0x935ab3(0x1c5)](_0x2a805f[_0x935ab3(0x17d)]),_0x5228bf=_0x41fbf7['getLowestSetBit']();if(_0x5228bf<=0x0)return![];var _0x680862=_0x41fbf7[_0x935ab3(0x2ce)](_0x5228bf);_0x1d718=_0x1d718+0x1>>0x1;_0x1d718>_0x2e5ed7[_0x935ab3(0x1b4)]&&(_0x1d718=_0x2e5ed7['length']);var _0x4f4c4f=_0x2802d5();for(var _0x58454c=0x0;_0x58454c<_0x1d718;++_0x58454c){_0x4f4c4f[_0x935ab3(0x156)](_0x2e5ed7[Math[_0x935ab3(0x1ed)](Math[_0x935ab3(0x1f6)]()*_0x2e5ed7['length'])]);var _0x3df063=_0x4f4c4f['modPow'](_0x680862,this);if(_0x3df063['compareTo'](_0x2a805f['ONE'])!=0x0&&_0x3df063[_0x935ab3(0x2c0)](_0x41fbf7)!=0x0){var _0x3366e7=0x1;while(_0x3366e7++<_0x5228bf&&_0x3df063[_0x935ab3(0x2c0)](_0x41fbf7)!=0x0){_0x3df063=_0x3df063['modPowInt'](0x2,this);if(_0x3df063['compareTo'](_0x2a805f[_0x935ab3(0x17d)])==0x0)return![];}if(_0x3df063[_0x935ab3(0x2c0)](_0x41fbf7)!=0x0)return![];}}return!![];},_0x2a805f[_0x497e3e(0x1f0)][_0x497e3e(0x2b4)]=function(){var _0x10b16c=_0x497e3e,_0x242336=_0x2802d5();return this[_0x10b16c(0x199)](_0x242336),_0x242336;},_0x2a805f['prototype'][_0x497e3e(0x23f)]=function(_0x1e34b9,_0x38b09d){var _0x50a722=_0x497e3e,_0x1e0533=this['s']<0x0?this[_0x50a722(0x27a)]():this[_0x50a722(0x1f7)](),_0x1615a7=_0x1e34b9['s']<0x0?_0x1e34b9[_0x50a722(0x27a)]():_0x1e34b9[_0x50a722(0x1f7)]();if(_0x1e0533[_0x50a722(0x2c0)](_0x1615a7)<0x0){var _0x194c47=_0x1e0533;_0x1e0533=_0x1615a7,_0x1615a7=_0x194c47;}var _0x29bada=_0x1e0533[_0x50a722(0x177)](),_0x19112e=_0x1615a7[_0x50a722(0x177)]();if(_0x19112e<0x0){_0x38b09d(_0x1e0533);return;}_0x29bada<_0x19112e&&(_0x19112e=_0x29bada);_0x19112e>0x0&&(_0x1e0533[_0x50a722(0x224)](_0x19112e,_0x1e0533),_0x1615a7['rShiftTo'](_0x19112e,_0x1615a7));var _0x3d9c4c=function(){var _0x52d366=_0x50a722;(_0x29bada=_0x1e0533['getLowestSetBit']())>0x0&&_0x1e0533[_0x52d366(0x224)](_0x29bada,_0x1e0533),(_0x29bada=_0x1615a7[_0x52d366(0x177)]())>0x0&&_0x1615a7[_0x52d366(0x224)](_0x29bada,_0x1615a7),_0x1e0533[_0x52d366(0x2c0)](_0x1615a7)>=0x0?(_0x1e0533[_0x52d366(0x15c)](_0x1615a7,_0x1e0533),_0x1e0533['rShiftTo'](0x1,_0x1e0533)):(_0x1615a7[_0x52d366(0x15c)](_0x1e0533,_0x1615a7),_0x1615a7[_0x52d366(0x224)](0x1,_0x1615a7)),!(_0x1e0533[_0x52d366(0x296)]()>0x0)?(_0x19112e>0x0&&_0x1615a7[_0x52d366(0x261)](_0x19112e,_0x1615a7),setTimeout(function(){_0x38b09d(_0x1615a7);},0x0)):setTimeout(_0x3d9c4c,0x0);};setTimeout(_0x3d9c4c,0xa);},_0x2a805f[_0x497e3e(0x1f0)]['fromNumberAsync']=function(_0x485d43,_0x8320fd,_0x5b0251,_0x163ea4){var _0x2e47b6=_0x497e3e;if('number'==typeof _0x8320fd){if(_0x485d43<0x2)this[_0x2e47b6(0x156)](0x1);else{this[_0x2e47b6(0x1de)](_0x485d43,_0x5b0251);!this['testBit'](_0x485d43-0x1)&&this[_0x2e47b6(0x2ac)](_0x2a805f[_0x2e47b6(0x17d)]['shiftLeft'](_0x485d43-0x1),_0x2c14e5,this);this[_0x2e47b6(0x1ab)]()&&this[_0x2e47b6(0x16b)](0x1,0x0);var _0x45cd17=this,_0x4aee29=function(){var _0x2755b3=_0x2e47b6;_0x45cd17[_0x2755b3(0x16b)](0x2,0x0),_0x45cd17[_0x2755b3(0x241)]()>_0x485d43&&_0x45cd17[_0x2755b3(0x15c)](_0x2a805f[_0x2755b3(0x17d)][_0x2755b3(0x2be)](_0x485d43-0x1),_0x45cd17),_0x45cd17[_0x2755b3(0x1e3)](_0x8320fd)?setTimeout(function(){_0x163ea4();},0x0):setTimeout(_0x4aee29,0x0);};setTimeout(_0x4aee29,0x0);}}else{var _0x13f673=[],_0x547386=_0x485d43&0x7;_0x13f673['length']=(_0x485d43>>0x3)+0x1,_0x8320fd[_0x2e47b6(0x276)](_0x13f673),_0x547386>0x0?_0x13f673[0x0]&=(0x1<<_0x547386)-0x1:_0x13f673[0x0]=0x0,this['fromString'](_0x13f673,0x100);}},_0x2a805f;}()),_0x102c25=(function(){var _0xb5e168=_0x53dedb;function _0x19427d(){}return _0x19427d[_0xb5e168(0x1f0)][_0xb5e168(0x26e)]=function(_0x50713b){return _0x50713b;},_0x19427d['prototype'][_0xb5e168(0x260)]=function(_0x2f8d94){return _0x2f8d94;},_0x19427d[_0xb5e168(0x1f0)][_0xb5e168(0x1dc)]=function(_0x50f8c0,_0x32c164,_0x594a32){var _0x33a046=_0xb5e168;_0x50f8c0[_0x33a046(0x1ff)](_0x32c164,_0x594a32);},_0x19427d[_0xb5e168(0x1f0)][_0xb5e168(0x297)]=function(_0x24a4d9,_0xb96604){var _0x5b5827=_0xb5e168;_0x24a4d9[_0x5b5827(0x199)](_0xb96604);},_0x19427d;}()),_0x241b77=(function(){var _0xbfc42f=_0x53dedb;function _0x12bec6(_0x2784dc){this['m']=_0x2784dc;}return _0x12bec6[_0xbfc42f(0x1f0)]['convert']=function(_0x4b48e2){var _0x9a1f37=_0xbfc42f;return _0x4b48e2['s']<0x0||_0x4b48e2[_0x9a1f37(0x2c0)](this['m'])>=0x0?_0x4b48e2[_0x9a1f37(0x217)](this['m']):_0x4b48e2;},_0x12bec6[_0xbfc42f(0x1f0)][_0xbfc42f(0x260)]=function(_0x4f3ebb){return _0x4f3ebb;},_0x12bec6[_0xbfc42f(0x1f0)][_0xbfc42f(0x1b1)]=function(_0x4b1293){var _0x30b64d=_0xbfc42f;_0x4b1293[_0x30b64d(0x1e5)](this['m'],null,_0x4b1293);},_0x12bec6[_0xbfc42f(0x1f0)]['mulTo']=function(_0x3e93e7,_0x4c1db1,_0x10526d){var _0xfcd13f=_0xbfc42f;_0x3e93e7[_0xfcd13f(0x1ff)](_0x4c1db1,_0x10526d),this['reduce'](_0x10526d);},_0x12bec6[_0xbfc42f(0x1f0)][_0xbfc42f(0x297)]=function(_0x48b12a,_0x27bace){var _0x107004=_0xbfc42f;_0x48b12a[_0x107004(0x199)](_0x27bace),this[_0x107004(0x1b1)](_0x27bace);},_0x12bec6;}()),_0x1989b2=(function(){var _0x3b6076=_0x53dedb;function _0x24ed6e(_0x147af8){var _0x2bd27d=_0x5239;this['m']=_0x147af8,this['mp']=_0x147af8[_0x2bd27d(0x265)](),this[_0x2bd27d(0x277)]=this['mp']&0x7fff,this[_0x2bd27d(0x1a7)]=this['mp']>>0xf,this['um']=(0x1<<_0x147af8['DB']-0xf)-0x1,this[_0x2bd27d(0x1d9)]=0x2*_0x147af8['t'];}return _0x24ed6e[_0x3b6076(0x1f0)][_0x3b6076(0x26e)]=function(_0x4d2304){var _0xe66224=_0x3b6076,_0x29db12=_0x2802d5();return _0x4d2304['abs']()[_0xe66224(0x238)](this['m']['t'],_0x29db12),_0x29db12[_0xe66224(0x1e5)](this['m'],null,_0x29db12),_0x4d2304['s']<0x0&&_0x29db12[_0xe66224(0x2c0)](_0x44ddff[_0xe66224(0x254)])>0x0&&this['m'][_0xe66224(0x15c)](_0x29db12,_0x29db12),_0x29db12;},_0x24ed6e['prototype']['revert']=function(_0x541cd5){var _0x5dd106=_0x3b6076,_0x41c1d0=_0x2802d5();return _0x541cd5[_0x5dd106(0x247)](_0x41c1d0),this['reduce'](_0x41c1d0),_0x41c1d0;},_0x24ed6e[_0x3b6076(0x1f0)][_0x3b6076(0x1b1)]=function(_0x270fea){var _0x39b971=_0x3b6076;while(_0x270fea['t']<=this['mt2']){_0x270fea[_0x270fea['t']++]=0x0;}for(var _0x56f365=0x0;_0x56f365<this['m']['t'];++_0x56f365){var _0x564040=_0x270fea[_0x56f365]&0x7fff,_0x33a03d=_0x564040*this['mpl']+((_0x564040*this[_0x39b971(0x1a7)]+(_0x270fea[_0x56f365]>>0xf)*this[_0x39b971(0x277)]&this['um'])<<0xf)&_0x270fea['DM'];_0x564040=_0x56f365+this['m']['t'],_0x270fea[_0x564040]+=this['m']['am'](0x0,_0x33a03d,_0x270fea,_0x56f365,0x0,this['m']['t']);while(_0x270fea[_0x564040]>=_0x270fea['DV']){_0x270fea[_0x564040]-=_0x270fea['DV'],_0x270fea[++_0x564040]++;}}_0x270fea[_0x39b971(0x16f)](),_0x270fea[_0x39b971(0x1a9)](this['m']['t'],_0x270fea),_0x270fea['compareTo'](this['m'])>=0x0&&_0x270fea['subTo'](this['m'],_0x270fea);},_0x24ed6e['prototype'][_0x3b6076(0x1dc)]=function(_0xbddd9a,_0x5c873b,_0x344fc2){var _0x2b754f=_0x3b6076;_0xbddd9a[_0x2b754f(0x1ff)](_0x5c873b,_0x344fc2),this['reduce'](_0x344fc2);},_0x24ed6e[_0x3b6076(0x1f0)][_0x3b6076(0x297)]=function(_0x4611a8,_0x39e0bd){var _0x410121=_0x3b6076;_0x4611a8[_0x410121(0x199)](_0x39e0bd),this[_0x410121(0x1b1)](_0x39e0bd);},_0x24ed6e;}()),_0x19db42=(function(){var _0x321450=_0x53dedb;function _0x53809d(_0xb3cdaf){var _0x1e94ba=_0x5239;this['m']=_0xb3cdaf,this['r2']=_0x2802d5(),this['q3']=_0x2802d5(),_0x44ddff[_0x1e94ba(0x17d)]['dlShiftTo'](0x2*_0xb3cdaf['t'],this['r2']),this['mu']=this['r2'][_0x1e94ba(0x2c9)](_0xb3cdaf);}return _0x53809d[_0x321450(0x1f0)][_0x321450(0x26e)]=function(_0xaa7fe1){var _0x57f150=_0x321450;if(_0xaa7fe1['s']<0x0||_0xaa7fe1['t']>0x2*this['m']['t'])return _0xaa7fe1[_0x57f150(0x217)](this['m']);else{if(_0xaa7fe1['compareTo'](this['m'])<0x0)return _0xaa7fe1;else{var _0x11d3dc=_0x2802d5();return _0xaa7fe1['copyTo'](_0x11d3dc),this[_0x57f150(0x1b1)](_0x11d3dc),_0x11d3dc;}}},_0x53809d[_0x321450(0x1f0)][_0x321450(0x260)]=function(_0x42decc){return _0x42decc;},_0x53809d[_0x321450(0x1f0)][_0x321450(0x1b1)]=function(_0x4ea11b){var _0x360698=_0x321450;_0x4ea11b['drShiftTo'](this['m']['t']-0x1,this['r2']);_0x4ea11b['t']>this['m']['t']+0x1&&(_0x4ea11b['t']=this['m']['t']+0x1,_0x4ea11b[_0x360698(0x16f)]());this['mu'][_0x360698(0x295)](this['r2'],this['m']['t']+0x1,this['q3']),this['m'][_0x360698(0x1d2)](this['q3'],this['m']['t']+0x1,this['r2']);while(_0x4ea11b[_0x360698(0x2c0)](this['r2'])<0x0){_0x4ea11b[_0x360698(0x16b)](0x1,this['m']['t']+0x1);}_0x4ea11b[_0x360698(0x15c)](this['r2'],_0x4ea11b);while(_0x4ea11b[_0x360698(0x2c0)](this['m'])>=0x0){_0x4ea11b['subTo'](this['m'],_0x4ea11b);}},_0x53809d[_0x321450(0x1f0)]['mulTo']=function(_0x419420,_0x28d782,_0x321e55){var _0x29ca11=_0x321450;_0x419420['multiplyTo'](_0x28d782,_0x321e55),this[_0x29ca11(0x1b1)](_0x321e55);},_0x53809d[_0x321450(0x1f0)][_0x321450(0x297)]=function(_0x19af1a,_0x3641ad){var _0x43369e=_0x321450;_0x19af1a[_0x43369e(0x199)](_0x3641ad),this[_0x43369e(0x1b1)](_0x3641ad);},_0x53809d;}());function _0x2802d5(){return new _0x44ddff(null);}function _0x1adc88(_0x347d91,_0x4d3c39){return new _0x44ddff(_0x347d91,_0x4d3c39);}function _0x4b332c(_0x552f46,_0x50ad18,_0x4e4c7d,_0x3e21f9,_0x5d5451,_0x2387e1){var _0xb42694=_0x53dedb;while(--_0x2387e1>=0x0){var _0x114234=_0x50ad18*this[_0x552f46++]+_0x4e4c7d[_0x3e21f9]+_0x5d5451;_0x5d5451=Math[_0xb42694(0x1ed)](_0x114234/0x4000000),_0x4e4c7d[_0x3e21f9++]=_0x114234&0x3ffffff;}return _0x5d5451;}function _0xdf45a1(_0x32e9ac,_0x1cadf7,_0x204bf7,_0x2bef42,_0x33fef4,_0x27f0ed){var _0x5f0837=_0x1cadf7&0x7fff,_0x258114=_0x1cadf7>>0xf;while(--_0x27f0ed>=0x0){var _0x12450d=this[_0x32e9ac]&0x7fff,_0x2ef574=this[_0x32e9ac++]>>0xf,_0x3f81dc=_0x258114*_0x12450d+_0x2ef574*_0x5f0837;_0x12450d=_0x5f0837*_0x12450d+((_0x3f81dc&0x7fff)<<0xf)+_0x204bf7[_0x2bef42]+(_0x33fef4&0x3fffffff),_0x33fef4=(_0x12450d>>>0x1e)+(_0x3f81dc>>>0xf)+_0x258114*_0x2ef574+(_0x33fef4>>>0x1e),_0x204bf7[_0x2bef42++]=_0x12450d&0x3fffffff;}return _0x33fef4;}function _0x552d8f(_0xa71d7b,_0x9d69a5,_0x2b7575,_0x1c87b2,_0x1a17cd,_0x2cbcc2){var _0x57addb=_0x9d69a5&0x3fff,_0x57b785=_0x9d69a5>>0xe;while(--_0x2cbcc2>=0x0){var _0x1ba87e=this[_0xa71d7b]&0x3fff,_0x27a7df=this[_0xa71d7b++]>>0xe,_0x2605b4=_0x57b785*_0x1ba87e+_0x27a7df*_0x57addb;_0x1ba87e=_0x57addb*_0x1ba87e+((_0x2605b4&0x3fff)<<0xe)+_0x2b7575[_0x1c87b2]+_0x1a17cd,_0x1a17cd=(_0x1ba87e>>0x1c)+(_0x2605b4>>0xe)+_0x57b785*_0x27a7df,_0x2b7575[_0x1c87b2++]=_0x1ba87e&0xfffffff;}return _0x1a17cd;}if(_0x3b3eb6&&navigator[_0x53dedb(0x1d1)]=='Microsoft\x20Internet\x20Explorer')_0x44ddff[_0x53dedb(0x1f0)]['am']=_0xdf45a1,_0x195975=0x1e;else _0x3b3eb6&&navigator['appName']!='Netscape'?(_0x44ddff[_0x53dedb(0x1f0)]['am']=_0x4b332c,_0x195975=0x1a):(_0x44ddff[_0x53dedb(0x1f0)]['am']=_0x552d8f,_0x195975=0x1c);_0x44ddff[_0x53dedb(0x1f0)]['DB']=_0x195975,_0x44ddff[_0x53dedb(0x1f0)]['DM']=(0x1<<_0x195975)-0x1,_0x44ddff[_0x53dedb(0x1f0)]['DV']=0x1<<_0x195975;var _0x170f8f=0x34;_0x44ddff[_0x53dedb(0x1f0)]['FV']=Math[_0x53dedb(0x234)](0x2,_0x170f8f),_0x44ddff['prototype']['F1']=_0x170f8f-_0x195975,_0x44ddff[_0x53dedb(0x1f0)]['F2']=0x2*_0x195975-_0x170f8f;var _0x39132f=[],_0x516f30,_0x3b5e39;_0x516f30='0'[_0x53dedb(0x1d8)](0x0);for(_0x3b5e39=0x0;_0x3b5e39<=0x9;++_0x3b5e39){_0x39132f[_0x516f30++]=_0x3b5e39;}_0x516f30='a'[_0x53dedb(0x1d8)](0x0);for(_0x3b5e39=0xa;_0x3b5e39<0x24;++_0x3b5e39){_0x39132f[_0x516f30++]=_0x3b5e39;}_0x516f30='A'[_0x53dedb(0x1d8)](0x0);for(_0x3b5e39=0xa;_0x3b5e39<0x24;++_0x3b5e39){_0x39132f[_0x516f30++]=_0x3b5e39;}function _0x75e6cb(_0x45c60a,_0x60ada1){var _0x1c747a=_0x53dedb,_0x170fc4=_0x39132f[_0x45c60a[_0x1c747a(0x1d8)](_0x60ada1)];return _0x170fc4==null?-0x1:_0x170fc4;}function _0x54187e(_0x183bb5){var _0x51ba47=_0x53dedb,_0x4eb0cf=_0x2802d5();return _0x4eb0cf[_0x51ba47(0x156)](_0x183bb5),_0x4eb0cf;}function _0x2447a1(_0x2f731b){var _0x982b0f=0x1,_0x2fa948;return(_0x2fa948=_0x2f731b>>>0x10)!=0x0&&(_0x2f731b=_0x2fa948,_0x982b0f+=0x10),(_0x2fa948=_0x2f731b>>0x8)!=0x0&&(_0x2f731b=_0x2fa948,_0x982b0f+=0x8),(_0x2fa948=_0x2f731b>>0x4)!=0x0&&(_0x2f731b=_0x2fa948,_0x982b0f+=0x4),(_0x2fa948=_0x2f731b>>0x2)!=0x0&&(_0x2f731b=_0x2fa948,_0x982b0f+=0x2),(_0x2fa948=_0x2f731b>>0x1)!=0x0&&(_0x2f731b=_0x2fa948,_0x982b0f+=0x1),_0x982b0f;}_0x44ddff['ZERO']=_0x54187e(0x0),_0x44ddff['ONE']=_0x54187e(0x1);var _0x2a0d41=(function(){var _0x5633b9=_0x53dedb;function _0x423477(){this['i']=0x0,this['j']=0x0,this['S']=[];}return _0x423477['prototype'][_0x5633b9(0x1ca)]=function(_0x48deef){var _0x358c3f,_0x784f6d,_0xfd9504;for(_0x358c3f=0x0;_0x358c3f<0x100;++_0x358c3f){this['S'][_0x358c3f]=_0x358c3f;}_0x784f6d=0x0;for(_0x358c3f=0x0;_0x358c3f<0x100;++_0x358c3f){_0x784f6d=_0x784f6d+this['S'][_0x358c3f]+_0x48deef[_0x358c3f%_0x48deef['length']]&0xff,_0xfd9504=this['S'][_0x358c3f],this['S'][_0x358c3f]=this['S'][_0x784f6d],this['S'][_0x784f6d]=_0xfd9504;}this['i']=0x0,this['j']=0x0;},_0x423477['prototype'][_0x5633b9(0x176)]=function(){var _0x16c815;return this['i']=this['i']+0x1&0xff,this['j']=this['j']+this['S'][this['i']]&0xff,_0x16c815=this['S'][this['i']],this['S'][this['i']]=this['S'][this['j']],this['S'][this['j']]=_0x16c815,this['S'][_0x16c815+this['S'][this['i']]&0xff];},_0x423477;}());function _0x38257e(){return new _0x2a0d41();}var _0x479d5a=0x100,_0x3ec423,_0xf6ba64=null,_0x2f6970;if(_0xf6ba64==null){_0xf6ba64=[],_0x2f6970=0x0;var _0x1b88a5=void 0x0;if(window[_0x53dedb(0x1cd)]&&window[_0x53dedb(0x1cd)][_0x53dedb(0x226)]){var _0x1dabe6=new Uint32Array(0x100);window[_0x53dedb(0x1cd)][_0x53dedb(0x226)](_0x1dabe6);for(_0x1b88a5=0x0;_0x1b88a5<_0x1dabe6['length'];++_0x1b88a5){_0xf6ba64[_0x2f6970++]=_0x1dabe6[_0x1b88a5]&0xff;}}var _0x282f3c=function(_0x3bb65b){var _0x2269ec=_0x53dedb;this[_0x2269ec(0x29e)]=this[_0x2269ec(0x29e)]||0x0;if(this[_0x2269ec(0x29e)]>=0x100||_0x2f6970>=_0x479d5a){if(window[_0x2269ec(0x2ab)])window['removeEventListener']('mousemove',_0x282f3c,![]);else window[_0x2269ec(0x258)]&&window[_0x2269ec(0x258)](_0x2269ec(0x256),_0x282f3c);return;}try{var _0x24c37b=_0x3bb65b['x']+_0x3bb65b['y'];_0xf6ba64[_0x2f6970++]=_0x24c37b&0xff,this[_0x2269ec(0x29e)]+=0x1;}catch(_0x350de6){}};if(window[_0x53dedb(0x222)])window[_0x53dedb(0x222)](_0x53dedb(0x163),_0x282f3c,![]);else window[_0x53dedb(0x1fe)]&&window[_0x53dedb(0x1fe)]('onmousemove',_0x282f3c);}function _0x51672a(){var _0x1ebc1c=_0x53dedb;if(_0x3ec423==null){_0x3ec423=_0x38257e();while(_0x2f6970<_0x479d5a){var _0x206879=Math['floor'](0x10000*Math['random']());_0xf6ba64[_0x2f6970++]=_0x206879&0xff;}_0x3ec423['init'](_0xf6ba64);for(_0x2f6970=0x0;_0x2f6970<_0xf6ba64[_0x1ebc1c(0x1b4)];++_0x2f6970){_0xf6ba64[_0x2f6970]=0x0;}_0x2f6970=0x0;}return _0x3ec423[_0x1ebc1c(0x176)]();}var _0x1f3801=(function(){var _0xe74a1d=_0x53dedb;function _0x4b76ce(){}return _0x4b76ce[_0xe74a1d(0x1f0)]['nextBytes']=function(_0x5bc3d7){var _0x16b01e=_0xe74a1d;for(var _0x127492=0x0;_0x127492<_0x5bc3d7[_0x16b01e(0x1b4)];++_0x127492){_0x5bc3d7[_0x127492]=_0x51672a();}},_0x4b76ce;}());function _0x3fbc87(_0x429b40,_0x19357d){var _0xd47240=_0x53dedb;if(_0x19357d<_0x429b40[_0xd47240(0x1b4)]+0x16)return console[_0xd47240(0x1c9)](_0xd47240(0x2bd)),null;var _0x13ca72=_0x19357d-_0x429b40['length']-0x6,_0x1f2eab='';for(var _0x4b976c=0x0;_0x4b976c<_0x13ca72;_0x4b976c+=0x2){_0x1f2eab+='ff';}var _0xa52945=_0xd47240(0x24e)+_0x1f2eab+'00'+_0x429b40;return _0x1adc88(_0xa52945,0x10);}function _0x12d592(_0x19e5f8,_0x1a1cd3){var _0x568dd1=_0x53dedb;if(_0x1a1cd3<_0x19e5f8[_0x568dd1(0x1b4)]+0xb)return console[_0x568dd1(0x1c9)](_0x568dd1(0x2bd)),null;var _0x5d5503=[],_0x41e9ce=_0x19e5f8[_0x568dd1(0x1b4)]-0x1;while(_0x41e9ce>=0x0&&_0x1a1cd3>0x0){var _0x189074=_0x19e5f8[_0x568dd1(0x1d8)](_0x41e9ce--);if(_0x189074<0x80)_0x5d5503[--_0x1a1cd3]=_0x189074;else _0x189074>0x7f&&_0x189074<0x800?(_0x5d5503[--_0x1a1cd3]=_0x189074&0x3f|0x80,_0x5d5503[--_0x1a1cd3]=_0x189074>>0x6|0xc0):(_0x5d5503[--_0x1a1cd3]=_0x189074&0x3f|0x80,_0x5d5503[--_0x1a1cd3]=_0x189074>>0x6&0x3f|0x80,_0x5d5503[--_0x1a1cd3]=_0x189074>>0xc|0xe0);}_0x5d5503[--_0x1a1cd3]=0x0;var _0x1a77ac=new _0x1f3801(),_0x542b21=[];while(_0x1a1cd3>0x2){_0x542b21[0x0]=0x0;while(_0x542b21[0x0]==0x0){_0x1a77ac['nextBytes'](_0x542b21);}_0x5d5503[--_0x1a1cd3]=_0x1a1cd3;}return _0x5d5503[--_0x1a1cd3]=0x2,_0x5d5503[--_0x1a1cd3]=0x0,new _0x44ddff(_0x5d5503);}var _0x2afce7=(function(){var _0x4718ef=_0x53dedb;function _0x5bfd1c(){var _0x1baf15=_0x5239;this['n']=null,this['e']=0x0,this['d']=null,this['p']=null,this['q']=null,this[_0x1baf15(0x18b)]=null,this['dmq1']=null,this[_0x1baf15(0x2c1)]=null;}return _0x5bfd1c['prototype']['doPublic']=function(_0x14fc0c){var _0x2e4e08=_0x5239;return _0x14fc0c[_0x2e4e08(0x292)](this['e'],this['n']);},_0x5bfd1c[_0x4718ef(0x1f0)][_0x4718ef(0x274)]=function(_0x245ffb){var _0x207138=_0x4718ef;if(this['p']==null||this['q']==null)return _0x245ffb[_0x207138(0x264)](this['d'],this['n']);var _0xdd3d9f=_0x245ffb[_0x207138(0x217)](this['p'])[_0x207138(0x264)](this[_0x207138(0x18b)],this['p']),_0x473098=_0x245ffb[_0x207138(0x217)](this['q'])[_0x207138(0x264)](this[_0x207138(0x29a)],this['q']);while(_0xdd3d9f['compareTo'](_0x473098)<0x0){_0xdd3d9f=_0xdd3d9f['add'](this['p']);}return _0xdd3d9f[_0x207138(0x1c5)](_0x473098)[_0x207138(0x1bc)](this[_0x207138(0x2c1)])[_0x207138(0x217)](this['p'])[_0x207138(0x1bc)](this['q'])[_0x207138(0x16a)](_0x473098);},_0x5bfd1c[_0x4718ef(0x1f0)][_0x4718ef(0x181)]=function(_0x11b0d5,_0x2da985){var _0x1fadd4=_0x4718ef;_0x11b0d5!=null&&_0x2da985!=null&&_0x11b0d5[_0x1fadd4(0x1b4)]>0x0&&_0x2da985['length']>0x0?(this['n']=_0x1adc88(_0x11b0d5,0x10),this['e']=parseInt(_0x2da985,0x10)):console['error'](_0x1fadd4(0x294));},_0x5bfd1c[_0x4718ef(0x1f0)]['encrypt']=function(_0x4416d7){var _0x13e461=_0x4718ef,_0x1dce14=_0x12d592(_0x4416d7,this['n'][_0x13e461(0x241)]()+0x7>>0x3);if(_0x1dce14==null)return null;var _0x1720b3=this['doPublic'](_0x1dce14);if(_0x1720b3==null)return null;var _0xbedc1f=_0x1720b3['toString'](0x10);return(_0xbedc1f[_0x13e461(0x1b4)]&0x1)==0x0?_0xbedc1f:'0'+_0xbedc1f;},_0x5bfd1c[_0x4718ef(0x1f0)][_0x4718ef(0x178)]=function(_0x540f09,_0x16f589,_0xbf3a4d){var _0x62928e=_0x4718ef;_0x540f09!=null&&_0x16f589!=null&&_0x540f09[_0x62928e(0x1b4)]>0x0&&_0x16f589['length']>0x0?(this['n']=_0x1adc88(_0x540f09,0x10),this['e']=parseInt(_0x16f589,0x10),this['d']=_0x1adc88(_0xbf3a4d,0x10)):console[_0x62928e(0x1c9)](_0x62928e(0x18a));},_0x5bfd1c[_0x4718ef(0x1f0)][_0x4718ef(0x23c)]=function(_0x227037,_0x23bc06,_0x1949b4,_0x4288a2,_0x9d7d36,_0x5ed124,_0x1bb745,_0x40afbf){var _0x5b256f=_0x4718ef;_0x227037!=null&&_0x23bc06!=null&&_0x227037[_0x5b256f(0x1b4)]>0x0&&_0x23bc06['length']>0x0?(this['n']=_0x1adc88(_0x227037,0x10),this['e']=parseInt(_0x23bc06,0x10),this['d']=_0x1adc88(_0x1949b4,0x10),this['p']=_0x1adc88(_0x4288a2,0x10),this['q']=_0x1adc88(_0x9d7d36,0x10),this[_0x5b256f(0x18b)]=_0x1adc88(_0x5ed124,0x10),this[_0x5b256f(0x29a)]=_0x1adc88(_0x1bb745,0x10),this[_0x5b256f(0x2c1)]=_0x1adc88(_0x40afbf,0x10)):console[_0x5b256f(0x1c9)](_0x5b256f(0x18a));},_0x5bfd1c[_0x4718ef(0x1f0)][_0x4718ef(0x27f)]=function(_0x333517,_0x1544f0){var _0x27babc=_0x4718ef,_0x4b8404=new _0x1f3801(),_0x24d21b=_0x333517>>0x1;this['e']=parseInt(_0x1544f0,0x10);var _0x61db59=new _0x44ddff(_0x1544f0,0x10);for(;;){for(;;){this['p']=new _0x44ddff(_0x333517-_0x24d21b,0x1,_0x4b8404);if(this['p'][_0x27babc(0x1c5)](_0x44ddff[_0x27babc(0x17d)])[_0x27babc(0x298)](_0x61db59)[_0x27babc(0x2c0)](_0x44ddff[_0x27babc(0x17d)])==0x0&&this['p'][_0x27babc(0x1e3)](0xa))break;}for(;;){this['q']=new _0x44ddff(_0x24d21b,0x1,_0x4b8404);if(this['q'][_0x27babc(0x1c5)](_0x44ddff[_0x27babc(0x17d)])[_0x27babc(0x298)](_0x61db59)[_0x27babc(0x2c0)](_0x44ddff[_0x27babc(0x17d)])==0x0&&this['q'][_0x27babc(0x1e3)](0xa))break;}if(this['p'][_0x27babc(0x2c0)](this['q'])<=0x0){var _0x51be50=this['p'];this['p']=this['q'],this['q']=_0x51be50;}var _0x4c27c9=this['p'][_0x27babc(0x1c5)](_0x44ddff[_0x27babc(0x17d)]),_0x2a05e7=this['q'][_0x27babc(0x1c5)](_0x44ddff['ONE']),_0x84ae15=_0x4c27c9[_0x27babc(0x1bc)](_0x2a05e7);if(_0x84ae15[_0x27babc(0x298)](_0x61db59)['compareTo'](_0x44ddff['ONE'])==0x0){this['n']=this['p']['multiply'](this['q']),this['d']=_0x61db59[_0x27babc(0x2b5)](_0x84ae15),this[_0x27babc(0x18b)]=this['d'][_0x27babc(0x217)](_0x4c27c9),this[_0x27babc(0x29a)]=this['d'][_0x27babc(0x217)](_0x2a05e7),this[_0x27babc(0x2c1)]=this['q'][_0x27babc(0x2b5)](this['p']);break;}}},_0x5bfd1c[_0x4718ef(0x1f0)][_0x4718ef(0x191)]=function(_0x141957,_0x884d61,_0x4dd41a){var _0x5d1776=new _0x1f3801(),_0x808c61=_0x141957>>0x1;this['e']=parseInt(_0x884d61,0x10);var _0x2bcce4=new _0x44ddff(_0x884d61,0x10),_0x47e616=this,_0x4ca9d1=function(){var _0x282a8d=function(){var _0x124c59=_0x5239;if(_0x47e616['p'][_0x124c59(0x2c0)](_0x47e616['q'])<=0x0){var _0x2916ed=_0x47e616['p'];_0x47e616['p']=_0x47e616['q'],_0x47e616['q']=_0x2916ed;}var _0x40b002=_0x47e616['p'][_0x124c59(0x1c5)](_0x44ddff[_0x124c59(0x17d)]),_0x45042a=_0x47e616['q']['subtract'](_0x44ddff[_0x124c59(0x17d)]),_0x4a43ab=_0x40b002[_0x124c59(0x1bc)](_0x45042a);_0x4a43ab[_0x124c59(0x298)](_0x2bcce4)['compareTo'](_0x44ddff[_0x124c59(0x17d)])==0x0?(_0x47e616['n']=_0x47e616['p'][_0x124c59(0x1bc)](_0x47e616['q']),_0x47e616['d']=_0x2bcce4[_0x124c59(0x2b5)](_0x4a43ab),_0x47e616['dmp1']=_0x47e616['d']['mod'](_0x40b002),_0x47e616[_0x124c59(0x29a)]=_0x47e616['d']['mod'](_0x45042a),_0x47e616[_0x124c59(0x2c1)]=_0x47e616['q']['modInverse'](_0x47e616['p']),setTimeout(function(){_0x4dd41a();},0x0)):setTimeout(_0x4ca9d1,0x0);},_0x513861=function(){_0x47e616['q']=_0x2802d5(),_0x47e616['q']['fromNumberAsync'](_0x808c61,0x1,_0x5d1776,function(){var _0x39b28c=_0x5239;_0x47e616['q']['subtract'](_0x44ddff[_0x39b28c(0x17d)])[_0x39b28c(0x23f)](_0x2bcce4,function(_0x3be6ca){var _0x2fa7ee=_0x39b28c;_0x3be6ca['compareTo'](_0x44ddff[_0x2fa7ee(0x17d)])==0x0&&_0x47e616['q'][_0x2fa7ee(0x1e3)](0xa)?setTimeout(_0x282a8d,0x0):setTimeout(_0x513861,0x0);});});},_0x3f49e3=function(){var _0x9c936d=_0x5239;_0x47e616['p']=_0x2802d5(),_0x47e616['p'][_0x9c936d(0x1ea)](_0x141957-_0x808c61,0x1,_0x5d1776,function(){var _0x20b379=_0x9c936d;_0x47e616['p'][_0x20b379(0x1c5)](_0x44ddff['ONE'])[_0x20b379(0x23f)](_0x2bcce4,function(_0xa38902){var _0x13166a=_0x20b379;_0xa38902['compareTo'](_0x44ddff[_0x13166a(0x17d)])==0x0&&_0x47e616['p'][_0x13166a(0x1e3)](0xa)?setTimeout(_0x513861,0x0):setTimeout(_0x3f49e3,0x0);});});};setTimeout(_0x3f49e3,0x0);};setTimeout(_0x4ca9d1,0x0);},_0x5bfd1c[_0x4718ef(0x1f0)][_0x4718ef(0x1f1)]=function(_0x54e004,_0x3ca3d2,_0xdc8da5){var _0x4aedea=_0x4718ef,_0x301101=_0x60ca2a(_0xdc8da5),_0x4e1cf8=_0x301101+_0x3ca3d2(_0x54e004)[_0x4aedea(0x1e7)](),_0x1f61dc=_0x3fbc87(_0x4e1cf8,this['n'][_0x4aedea(0x241)]()/0x4);if(_0x1f61dc==null)return null;var _0x2aad0d=this[_0x4aedea(0x274)](_0x1f61dc);if(_0x2aad0d==null)return null;var _0x33e9a1=_0x2aad0d['toString'](0x10);return(_0x33e9a1[_0x4aedea(0x1b4)]&0x1)==0x0?_0x33e9a1:'0'+_0x33e9a1;},_0x5bfd1c[_0x4718ef(0x1f0)][_0x4718ef(0x198)]=function(_0x58afd8,_0x321b6a,_0x3cc818){var _0x5a5fda=_0x4718ef,_0x489f71=_0x1adc88(_0x321b6a,0x10),_0x35faa6=this[_0x5a5fda(0x27c)](_0x489f71);if(_0x35faa6==null)return null;var _0x5d9ad4=_0x35faa6[_0x5a5fda(0x1e7)](0x10)[_0x5a5fda(0x202)](/^1f+00/,''),_0x172853=_0x558a46(_0x5d9ad4);return _0x172853==_0x3cc818(_0x58afd8)[_0x5a5fda(0x1e7)]();},_0x5bfd1c;}());function _0x1a6bac(_0x1addfb,_0xed01f2){var _0x46427b=_0x53dedb,_0x45589d=_0x1addfb[_0x46427b(0x160)](),_0xcf9a24=0x0;while(_0xcf9a24<_0x45589d[_0x46427b(0x1b4)]&&_0x45589d[_0xcf9a24]==0x0){++_0xcf9a24;}if(_0x45589d[_0x46427b(0x1b4)]-_0xcf9a24!=_0xed01f2-0x1||_0x45589d[_0xcf9a24]!=0x2)return null;++_0xcf9a24;while(_0x45589d[_0xcf9a24]!=0x0){if(++_0xcf9a24>=_0x45589d['length'])return null;}var _0x4a4d57='';while(++_0xcf9a24<_0x45589d[_0x46427b(0x1b4)]){var _0x4a276f=_0x45589d[_0xcf9a24]&0xff;if(_0x4a276f<0x80)_0x4a4d57+=String[_0x46427b(0x281)](_0x4a276f);else _0x4a276f>0xbf&&_0x4a276f<0xe0?(_0x4a4d57+=String[_0x46427b(0x281)]((_0x4a276f&0x1f)<<0x6|_0x45589d[_0xcf9a24+0x1]&0x3f),++_0xcf9a24):(_0x4a4d57+=String['fromCharCode']((_0x4a276f&0xf)<<0xc|(_0x45589d[_0xcf9a24+0x1]&0x3f)<<0x6|_0x45589d[_0xcf9a24+0x2]&0x3f),_0xcf9a24+=0x2);}return _0x4a4d57;}var _0x31a856={'md2':_0x53dedb(0x203),'md5':_0x53dedb(0x2c3),'sha1':_0x53dedb(0x2c7),'sha224':_0x53dedb(0x25d),'sha256':_0x53dedb(0x1e4),'sha384':_0x53dedb(0x1fb),'sha512':'3051300d060960864801650304020305000440','ripemd160':_0x53dedb(0x2d0)};function _0x60ca2a(_0x5c1be8){return _0x31a856[_0x5c1be8]||'';}function _0x558a46(_0x37d649){var _0x357da5=_0x53dedb;for(var _0x30e357 in _0x31a856){if(_0x31a856[_0x357da5(0x239)](_0x30e357)){var _0x25da47=_0x31a856[_0x30e357],_0x289f00=_0x25da47['length'];if(_0x37d649['substr'](0x0,_0x289f00)==_0x25da47)return _0x37d649['substr'](_0x289f00);}}return _0x37d649;}var _0x2259bd={};_0x2259bd[_0x53dedb(0x1c1)]={'extend':function(_0x64fb17,_0x8d5aa8,_0x26394f){var _0x23fc83=_0x53dedb;if(!_0x8d5aa8||!_0x64fb17)throw new Error('YAHOO.lang.extend\x20failed,\x20please\x20check\x20that\x20'+_0x23fc83(0x2a9));var _0x839424=function(){};_0x839424['prototype']=_0x8d5aa8[_0x23fc83(0x1f0)],_0x64fb17[_0x23fc83(0x1f0)]=new _0x839424(),_0x64fb17[_0x23fc83(0x1f0)][_0x23fc83(0x1e9)]=_0x64fb17,_0x64fb17[_0x23fc83(0x243)]=_0x8d5aa8[_0x23fc83(0x1f0)];_0x8d5aa8[_0x23fc83(0x1f0)][_0x23fc83(0x1e9)]==Object['prototype']['constructor']&&(_0x8d5aa8[_0x23fc83(0x1f0)][_0x23fc83(0x1e9)]=_0x8d5aa8);if(_0x26394f){var _0x26f0df;for(_0x26f0df in _0x26394f){_0x64fb17[_0x23fc83(0x1f0)][_0x26f0df]=_0x26394f[_0x26f0df];}var _0x4530ac=function(){},_0x55c026=[_0x23fc83(0x1e7),'valueOf'];try{/MSIE/[_0x23fc83(0x23d)](navigator[_0x23fc83(0x180)])&&(_0x4530ac=function(_0x128cf4,_0x52bdf1){var _0x3641ee=_0x23fc83;for(_0x26f0df=0x0;_0x26f0df<_0x55c026[_0x3641ee(0x1b4)];_0x26f0df=_0x26f0df+0x1){var _0x1fd128=_0x55c026[_0x26f0df],_0x47952a=_0x52bdf1[_0x1fd128];typeof _0x47952a===_0x3641ee(0x22d)&&_0x47952a!=Object[_0x3641ee(0x1f0)][_0x1fd128]&&(_0x128cf4[_0x1fd128]=_0x47952a);}});}catch(_0x19167f){}_0x4530ac(_0x64fb17[_0x23fc83(0x1f0)],_0x26394f);}}};var _0x23e9a9={};if(typeof _0x23e9a9[_0x53dedb(0x2ca)]=='undefined'||!_0x23e9a9['asn1'])_0x23e9a9[_0x53dedb(0x2ca)]={};_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x19b)]=new function(){var _0x5e4833=_0x53dedb;this[_0x5e4833(0x272)]=function(_0x3dff1c){var _0x27996d=_0x5e4833,_0x18cfd3=_0x3dff1c[_0x27996d(0x1e7)](0x10);if(_0x18cfd3[_0x27996d(0x1b4)]%0x2==0x1)_0x18cfd3='0'+_0x18cfd3;return _0x18cfd3;},this[_0x5e4833(0x279)]=function(_0x7fa0d3){var _0x27ba57=_0x5e4833,_0x22cb5a=_0x7fa0d3[_0x27ba57(0x1e7)](0x10);if(_0x22cb5a[_0x27ba57(0x1c4)](0x0,0x1)!='-')_0x22cb5a[_0x27ba57(0x1b4)]%0x2==0x1?_0x22cb5a='0'+_0x22cb5a:!_0x22cb5a[_0x27ba57(0x249)](/^[0-7]/)&&(_0x22cb5a='00'+_0x22cb5a);else{var _0x7931f=_0x22cb5a[_0x27ba57(0x1c4)](0x1),_0x4bc8f7=_0x7931f[_0x27ba57(0x1b4)];_0x4bc8f7%0x2==0x1?_0x4bc8f7+=0x1:!_0x22cb5a[_0x27ba57(0x249)](/^[0-7]/)&&(_0x4bc8f7+=0x2);var _0x45b981='';for(var _0x15be86=0x0;_0x15be86<_0x4bc8f7;_0x15be86++){_0x45b981+='f';}var _0x507b2a=new _0x44ddff(_0x45b981,0x10),_0x455d64=_0x507b2a[_0x27ba57(0x24b)](_0x7fa0d3)[_0x27ba57(0x16a)](_0x44ddff[_0x27ba57(0x17d)]);_0x22cb5a=_0x455d64[_0x27ba57(0x1e7)](0x10)['replace'](/^-/,'');}return _0x22cb5a;},this['getPEMStringFromHex']=function(_0x56efd8,_0x18afec){return hextopem(_0x56efd8,_0x18afec);},this[_0x5e4833(0x1ee)]=function(_0x1c25e2){var _0x305695=_0x5e4833,_0x5a700a=_0x23e9a9,_0x7cfffe=_0x5a700a[_0x305695(0x2ca)],_0x3321de=_0x7cfffe[_0x305695(0x262)],_0x32ef25=_0x7cfffe[_0x305695(0x255)],_0xd2c2e3=_0x7cfffe[_0x305695(0x2b1)],_0x33d77d=_0x7cfffe[_0x305695(0x183)],_0x528de5=_0x7cfffe[_0x305695(0x291)],_0x85089c=_0x7cfffe[_0x305695(0x189)],_0x4e401c=_0x7cfffe[_0x305695(0x2c4)],_0x3e744d=_0x7cfffe['DERUTF8String'],_0x4d40b6=_0x7cfffe[_0x305695(0x1e6)],_0xca0998=_0x7cfffe['DERPrintableString'],_0x706839=_0x7cfffe[_0x305695(0x2aa)],_0x5792d9=_0x7cfffe[_0x305695(0x280)],_0x32bfa5=_0x7cfffe[_0x305695(0x16c)],_0x3a4f94=_0x7cfffe[_0x305695(0x1cc)],_0x20a8e5=_0x7cfffe['DERSequence'],_0x135a6d=_0x7cfffe[_0x305695(0x1da)],_0x54dc79=_0x7cfffe[_0x305695(0x1db)],_0x210be2=_0x7cfffe['ASN1Util'][_0x305695(0x1ee)],_0x21bdef=Object[_0x305695(0x268)](_0x1c25e2);if(_0x21bdef[_0x305695(0x1b4)]!=0x1)throw _0x305695(0x15a);var _0xcee715=_0x21bdef[0x0];if(':bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:'[_0x305695(0x192)](':'+_0xcee715+':')==-0x1)throw _0x305695(0x2c5)+_0xcee715;if(_0xcee715==_0x305695(0x19a))return new _0x3321de(_0x1c25e2[_0xcee715]);if(_0xcee715=='int')return new _0x32ef25(_0x1c25e2[_0xcee715]);if(_0xcee715=='bitstr')return new _0xd2c2e3(_0x1c25e2[_0xcee715]);if(_0xcee715=='octstr')return new _0x33d77d(_0x1c25e2[_0xcee715]);if(_0xcee715==_0x305695(0x211))return new _0x528de5(_0x1c25e2[_0xcee715]);if(_0xcee715==_0x305695(0x1ba))return new _0x85089c(_0x1c25e2[_0xcee715]);if(_0xcee715==_0x305695(0x1d6))return new _0x4e401c(_0x1c25e2[_0xcee715]);if(_0xcee715==_0x305695(0x273))return new _0x3e744d(_0x1c25e2[_0xcee715]);if(_0xcee715=='numstr')return new _0x4d40b6(_0x1c25e2[_0xcee715]);if(_0xcee715==_0x305695(0x28d))return new _0xca0998(_0x1c25e2[_0xcee715]);if(_0xcee715==_0x305695(0x1e0))return new _0x706839(_0x1c25e2[_0xcee715]);if(_0xcee715==_0x305695(0x2a4))return new _0x5792d9(_0x1c25e2[_0xcee715]);if(_0xcee715=='utctime')return new _0x32bfa5(_0x1c25e2[_0xcee715]);if(_0xcee715==_0x305695(0x1df))return new _0x3a4f94(_0x1c25e2[_0xcee715]);if(_0xcee715=='seq'){var _0x1f00e2=_0x1c25e2[_0xcee715],_0x5ba6d1=[];for(var _0x55d4a2=0x0;_0x55d4a2<_0x1f00e2['length'];_0x55d4a2++){var _0x215872=_0x210be2(_0x1f00e2[_0x55d4a2]);_0x5ba6d1[_0x305695(0x266)](_0x215872);}return new _0x20a8e5({'array':_0x5ba6d1});}if(_0xcee715==_0x305695(0x17a)){var _0x1f00e2=_0x1c25e2[_0xcee715],_0x5ba6d1=[];for(var _0x55d4a2=0x0;_0x55d4a2<_0x1f00e2[_0x305695(0x1b4)];_0x55d4a2++){var _0x215872=_0x210be2(_0x1f00e2[_0x55d4a2]);_0x5ba6d1[_0x305695(0x266)](_0x215872);}return new _0x135a6d({'array':_0x5ba6d1});}if(_0xcee715==_0x305695(0x2c2)){var _0x288f34=_0x1c25e2[_0xcee715];if(Object[_0x305695(0x1f0)]['toString'][_0x305695(0x1a8)](_0x288f34)===_0x305695(0x2a5)&&_0x288f34[_0x305695(0x1b4)]==0x3){var _0x1325b8=_0x210be2(_0x288f34[0x2]);return new _0x54dc79({'tag':_0x288f34[0x0],'explicit':_0x288f34[0x1],'obj':_0x1325b8});}else{var _0x29f5e5={};if(_0x288f34[_0x305695(0x200)]!==undefined)_0x29f5e5['explicit']=_0x288f34[_0x305695(0x200)];if(_0x288f34['tag']!==undefined)_0x29f5e5[_0x305695(0x2c2)]=_0x288f34[_0x305695(0x2c2)];if(_0x288f34['obj']===undefined)throw'obj\x20shall\x20be\x20specified\x20for\x20\x27tag\x27.';return _0x29f5e5[_0x305695(0x2b8)]=_0x210be2(_0x288f34[_0x305695(0x2b8)]),new _0x54dc79(_0x29f5e5);}}},this[_0x5e4833(0x22b)]=function(_0x1c2c3e){var _0x4a41fb=_0x5e4833,_0x1be233=this[_0x4a41fb(0x1ee)](_0x1c2c3e);return _0x1be233[_0x4a41fb(0x168)]();};}(),_0x23e9a9[_0x53dedb(0x2ca)]['ASN1Util'][_0x53dedb(0x263)]=function(_0x1bfb2c){var _0x52cf66=_0x53dedb,_0x11a551='',_0x58a377=parseInt(_0x1bfb2c[_0x52cf66(0x1c4)](0x0,0x2),0x10),_0xb974c0=Math[_0x52cf66(0x1ed)](_0x58a377/0x28),_0x48ab97=_0x58a377%0x28,_0x11a551=_0xb974c0+'.'+_0x48ab97,_0x4eda6d='';for(var _0x22f049=0x2;_0x22f049<_0x1bfb2c['length'];_0x22f049+=0x2){var _0x28e058=parseInt(_0x1bfb2c['substr'](_0x22f049,0x2),0x10),_0x3da31b=(_0x52cf66(0x225)+_0x28e058[_0x52cf66(0x1e7)](0x2))[_0x52cf66(0x2ae)](-0x8);_0x4eda6d=_0x4eda6d+_0x3da31b['substr'](0x1,0x7);if(_0x3da31b[_0x52cf66(0x1c4)](0x0,0x1)=='0'){var _0x5ca579=new _0x44ddff(_0x4eda6d,0x2);_0x11a551=_0x11a551+'.'+_0x5ca579[_0x52cf66(0x1e7)](0xa),_0x4eda6d='';}}return _0x11a551;},_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x19b)][_0x53dedb(0x237)]=function(_0x10bad2){var _0xcefad1=_0x53dedb,_0x2d9274=function(_0x4b89fe){var _0x3b7d5a=_0x5239,_0x323388=_0x4b89fe[_0x3b7d5a(0x1e7)](0x10);if(_0x323388[_0x3b7d5a(0x1b4)]==0x1)_0x323388='0'+_0x323388;return _0x323388;},_0x302a13=function(_0x442b4c){var _0x44d26b=_0x5239,_0x43adb0='',_0x4d1a70=new _0x44ddff(_0x442b4c,0xa),_0x337af9=_0x4d1a70[_0x44d26b(0x1e7)](0x2),_0x465908=0x7-_0x337af9[_0x44d26b(0x1b4)]%0x7;if(_0x465908==0x7)_0x465908=0x0;var _0x680149='';for(var _0xbe39c5=0x0;_0xbe39c5<_0x465908;_0xbe39c5++)_0x680149+='0';_0x337af9=_0x680149+_0x337af9;for(var _0xbe39c5=0x0;_0xbe39c5<_0x337af9[_0x44d26b(0x1b4)]-0x1;_0xbe39c5+=0x7){var _0x423494=_0x337af9['substr'](_0xbe39c5,0x7);if(_0xbe39c5!=_0x337af9['length']-0x7)_0x423494='1'+_0x423494;_0x43adb0+=_0x2d9274(parseInt(_0x423494,0x2));}return _0x43adb0;};if(!_0x10bad2[_0xcefad1(0x249)](/^[0-9.]+$/))throw _0xcefad1(0x2a6)+_0x10bad2;var _0x4c663c='',_0x597f5e=_0x10bad2['split']('.'),_0x15e2d0=parseInt(_0x597f5e[0x0])*0x28+parseInt(_0x597f5e[0x1]);_0x4c663c+=_0x2d9274(_0x15e2d0),_0x597f5e[_0xcefad1(0x2ad)](0x0,0x2);for(var _0x188946=0x0;_0x188946<_0x597f5e[_0xcefad1(0x1b4)];_0x188946++){_0x4c663c+=_0x302a13(_0x597f5e[_0x188946]);}return _0x4c663c;},_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x21c)]=function(){var _0x1e872a=_0x53dedb,_0x5ddb79='';this[_0x1e872a(0x1ad)]=function(){var _0x1402f9=_0x1e872a;if(typeof this['hV']=='undefined'||this['hV']==null)throw _0x1402f9(0x193);if(this['hV'][_0x1402f9(0x1b4)]%0x2==0x1)throw _0x1402f9(0x157)+_0x5ddb79[_0x1402f9(0x1b4)]+',v='+this['hV'];var _0x22af0d=this['hV'][_0x1402f9(0x1b4)]/0x2,_0x83ae73=_0x22af0d[_0x1402f9(0x1e7)](0x10);_0x83ae73['length']%0x2==0x1&&(_0x83ae73='0'+_0x83ae73);if(_0x22af0d<0x80)return _0x83ae73;else{var _0x2d3b83=_0x83ae73['length']/0x2;if(_0x2d3b83>0xf)throw _0x1402f9(0x155)+_0x22af0d[_0x1402f9(0x1e7)](0x10);var _0x59c430=0x80+_0x2d3b83;return _0x59c430[_0x1402f9(0x1e7)](0x10)+_0x83ae73;}},this[_0x1e872a(0x168)]=function(){var _0x24f20b=_0x1e872a;return(this[_0x24f20b(0x1f3)]==null||this[_0x24f20b(0x2b2)])&&(this['hV']=this['getFreshValueHex'](),this['hL']=this[_0x24f20b(0x1ad)](),this[_0x24f20b(0x1f3)]=this['hT']+this['hL']+this['hV'],this['isModified']=![]),this[_0x24f20b(0x1f3)];},this[_0x1e872a(0x24a)]=function(){var _0x928111=_0x1e872a;return this[_0x928111(0x168)](),this['hV'];},this[_0x1e872a(0x1e2)]=function(){return'';};},_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x158)]=function(_0x1a77d1){var _0x1d27fd=_0x53dedb;_0x23e9a9[_0x1d27fd(0x2ca)]['DERAbstractString'][_0x1d27fd(0x243)][_0x1d27fd(0x1e9)][_0x1d27fd(0x1a8)](this),this[_0x1d27fd(0x29b)]=function(){return this['s'];},this['setString']=function(_0x1887f5){var _0x38501d=_0x1d27fd;this[_0x38501d(0x1f3)]=null,this[_0x38501d(0x2b2)]=!![],this['s']=_0x1887f5,this['hV']=stohex(this['s']);},this['setStringHex']=function(_0x2a2a11){var _0x2628fa=_0x1d27fd;this['hTLV']=null,this[_0x2628fa(0x2b2)]=!![],this['s']=null,this['hV']=_0x2a2a11;},this[_0x1d27fd(0x1e2)]=function(){return this['hV'];};if(typeof _0x1a77d1!=_0x1d27fd(0x21f)){if(typeof _0x1a77d1==_0x1d27fd(0x267))this[_0x1d27fd(0x285)](_0x1a77d1);else{if(typeof _0x1a77d1['str']!=_0x1d27fd(0x21f))this['setString'](_0x1a77d1[_0x1d27fd(0x1fd)]);else typeof _0x1a77d1['hex']!='undefined'&&this[_0x1d27fd(0x286)](_0x1a77d1['hex']);}}},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x158)],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x21c)]),_0x23e9a9['asn1']['DERAbstractTime']=function(_0x46e918){var _0x1ea80b=_0x53dedb;_0x23e9a9[_0x1ea80b(0x2ca)][_0x1ea80b(0x299)][_0x1ea80b(0x243)]['constructor'][_0x1ea80b(0x1a8)](this),this[_0x1ea80b(0x282)]=function(_0x100be9){var _0x213bb2=_0x1ea80b;utc=_0x100be9[_0x213bb2(0x188)]()+_0x100be9['getTimezoneOffset']()*0xea60;var _0x3af0a3=new Date(utc);return _0x3af0a3;},this[_0x1ea80b(0x15b)]=function(_0x53954c,_0x1c2d34,_0x4af2ba){var _0x5f5cc7=_0x1ea80b,_0x54f2b9=this[_0x5f5cc7(0x212)],_0x345da9=this['localDateToUTC'](_0x53954c),_0x84b7cc=String(_0x345da9['getFullYear']());if(_0x1c2d34==_0x5f5cc7(0x2af))_0x84b7cc=_0x84b7cc[_0x5f5cc7(0x1c4)](0x2,0x2);var _0x1da5ef=_0x54f2b9(String(_0x345da9[_0x5f5cc7(0x1b5)]()+0x1),0x2),_0x34bbc8=_0x54f2b9(String(_0x345da9[_0x5f5cc7(0x182)]()),0x2),_0x1c266e=_0x54f2b9(String(_0x345da9[_0x5f5cc7(0x190)]()),0x2),_0x1891ae=_0x54f2b9(String(_0x345da9['getMinutes']()),0x2),_0x26cfcc=_0x54f2b9(String(_0x345da9[_0x5f5cc7(0x204)]()),0x2),_0xa30e20=_0x84b7cc+_0x1da5ef+_0x34bbc8+_0x1c266e+_0x1891ae+_0x26cfcc;if(_0x4af2ba===!![]){var _0x16118e=_0x345da9['getMilliseconds']();if(_0x16118e!=0x0){var _0x4992a0=_0x54f2b9(String(_0x16118e),0x3);_0x4992a0=_0x4992a0[_0x5f5cc7(0x202)](/[0]+$/,''),_0xa30e20=_0xa30e20+'.'+_0x4992a0;}}return _0xa30e20+'Z';},this[_0x1ea80b(0x212)]=function(_0x1e180a,_0x30948d){var _0x12c138=_0x1ea80b;if(_0x1e180a[_0x12c138(0x1b4)]>=_0x30948d)return _0x1e180a;return new Array(_0x30948d-_0x1e180a['length']+0x1)['join']('0')+_0x1e180a;},this['getString']=function(){return this['s'];},this[_0x1ea80b(0x285)]=function(_0x3d81e3){var _0x231224=_0x1ea80b;this[_0x231224(0x1f3)]=null,this[_0x231224(0x2b2)]=!![],this['s']=_0x3d81e3,this['hV']=stohex(_0x3d81e3);},this[_0x1ea80b(0x172)]=function(_0x4a6197,_0x55fe1f,_0x44c079,_0x8ab555,_0x250f93,_0xff0bf6){var _0x8962da=_0x1ea80b,_0x406806=new Date(Date[_0x8962da(0x1dd)](_0x4a6197,_0x55fe1f-0x1,_0x44c079,_0x8ab555,_0x250f93,_0xff0bf6,0x0));this['setByDate'](_0x406806);},this[_0x1ea80b(0x1e2)]=function(){return this['hV'];};},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)]['DERAbstractTime'],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x21c)]),_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x18e)]=function(_0x51a391){var _0x414221=_0x53dedb;_0x23e9a9[_0x414221(0x2ca)][_0x414221(0x158)]['superclass'][_0x414221(0x1e9)][_0x414221(0x1a8)](this),this[_0x414221(0x25e)]=function(_0x15036b){var _0x60ee74=_0x414221;this[_0x60ee74(0x1f3)]=null,this['isModified']=!![],this[_0x60ee74(0x153)]=_0x15036b;},this[_0x414221(0x214)]=function(_0x356421){var _0x4bce69=_0x414221;this[_0x4bce69(0x1f3)]=null,this['isModified']=!![],this[_0x4bce69(0x153)]['push'](_0x356421);},this[_0x414221(0x153)]=new Array(),typeof _0x51a391!=_0x414221(0x21f)&&(typeof _0x51a391['array']!=_0x414221(0x21f)&&(this[_0x414221(0x153)]=_0x51a391[_0x414221(0x278)]));},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x18e)],_0x23e9a9['asn1'][_0x53dedb(0x21c)]),_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x262)]=function(){var _0x1caeda=_0x53dedb;_0x23e9a9[_0x1caeda(0x2ca)][_0x1caeda(0x262)][_0x1caeda(0x243)][_0x1caeda(0x1e9)]['call'](this),this['hT']='01',this[_0x1caeda(0x1f3)]=_0x1caeda(0x18f);},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x262)],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x21c)]),_0x23e9a9['asn1'][_0x53dedb(0x255)]=function(_0x354ad1){var _0x1897ac=_0x53dedb;_0x23e9a9[_0x1897ac(0x2ca)][_0x1897ac(0x255)][_0x1897ac(0x243)][_0x1897ac(0x1e9)][_0x1897ac(0x1a8)](this),this['hT']='02',this[_0x1897ac(0x25b)]=function(_0x6b18b8){var _0x20d8c3=_0x1897ac;this[_0x20d8c3(0x1f3)]=null,this[_0x20d8c3(0x2b2)]=!![],this['hV']=_0x23e9a9[_0x20d8c3(0x2ca)]['ASN1Util'][_0x20d8c3(0x279)](_0x6b18b8);},this[_0x1897ac(0x2a7)]=function(_0x5f489a){var _0x1e3023=_0x1897ac,_0x2699dd=new _0x44ddff(String(_0x5f489a),0xa);this[_0x1e3023(0x25b)](_0x2699dd);},this['setValueHex']=function(_0x37b7a2){this['hV']=_0x37b7a2;},this[_0x1897ac(0x1e2)]=function(){return this['hV'];};if(typeof _0x354ad1!=_0x1897ac(0x21f)){if(typeof _0x354ad1['bigint']!='undefined')this[_0x1897ac(0x25b)](_0x354ad1['bigint']);else{if(typeof _0x354ad1[_0x1897ac(0x26a)]!=_0x1897ac(0x21f))this['setByInteger'](_0x354ad1[_0x1897ac(0x26a)]);else{if(typeof _0x354ad1==_0x1897ac(0x2cd))this[_0x1897ac(0x2a7)](_0x354ad1);else typeof _0x354ad1[_0x1897ac(0x228)]!='undefined'&&this[_0x1897ac(0x23a)](_0x354ad1[_0x1897ac(0x228)]);}}}},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x255)],_0x23e9a9['asn1']['ASN1Object']),_0x23e9a9['asn1']['DERBitString']=function(_0x3f7381){var _0x11b394=_0x53dedb;if(_0x3f7381!==undefined&&typeof _0x3f7381['obj']!==_0x11b394(0x21f)){var _0x5dcfa8=_0x23e9a9[_0x11b394(0x2ca)][_0x11b394(0x19b)][_0x11b394(0x1ee)](_0x3f7381['obj']);_0x3f7381[_0x11b394(0x228)]='00'+_0x5dcfa8[_0x11b394(0x168)]();}_0x23e9a9[_0x11b394(0x2ca)][_0x11b394(0x2b1)][_0x11b394(0x243)]['constructor']['call'](this),this['hT']='03',this[_0x11b394(0x21d)]=function(_0x52db09){var _0x89b2a7=_0x11b394;this[_0x89b2a7(0x1f3)]=null,this[_0x89b2a7(0x2b2)]=!![],this['hV']=_0x52db09;},this[_0x11b394(0x252)]=function(_0x5844e1,_0x2609e6){var _0x41fc79=_0x11b394;if(_0x5844e1<0x0||0x7<_0x5844e1)throw _0x41fc79(0x1e8)+_0x5844e1;var _0x4432aa='0'+_0x5844e1;this[_0x41fc79(0x1f3)]=null,this[_0x41fc79(0x2b2)]=!![],this['hV']=_0x4432aa+_0x2609e6;},this[_0x11b394(0x215)]=function(_0x3b7236){var _0x2c9604=_0x11b394;_0x3b7236=_0x3b7236[_0x2c9604(0x202)](/0+$/,'');var _0x46dbde=0x8-_0x3b7236[_0x2c9604(0x1b4)]%0x8;if(_0x46dbde==0x8)_0x46dbde=0x0;for(var _0x45ada0=0x0;_0x45ada0<=_0x46dbde;_0x45ada0++){_0x3b7236+='0';}var _0x1006d4='';for(var _0x45ada0=0x0;_0x45ada0<_0x3b7236[_0x2c9604(0x1b4)]-0x1;_0x45ada0+=0x8){var _0x55347b=_0x3b7236[_0x2c9604(0x1c4)](_0x45ada0,0x8),_0x203a6c=parseInt(_0x55347b,0x2)[_0x2c9604(0x1e7)](0x10);if(_0x203a6c[_0x2c9604(0x1b4)]==0x1)_0x203a6c='0'+_0x203a6c;_0x1006d4+=_0x203a6c;}this['hTLV']=null,this[_0x2c9604(0x2b2)]=!![],this['hV']='0'+_0x46dbde+_0x1006d4;},this[_0x11b394(0x2bc)]=function(_0x5076f3){var _0x5efd1d=_0x11b394,_0x373762='';for(var _0x578994=0x0;_0x578994<_0x5076f3[_0x5efd1d(0x1b4)];_0x578994++){_0x5076f3[_0x578994]==!![]?_0x373762+='1':_0x373762+='0';}this[_0x5efd1d(0x215)](_0x373762);},this[_0x11b394(0x1cf)]=function(_0x3eb67f){var _0x4a339b=new Array(_0x3eb67f);for(var _0x323545=0x0;_0x323545<_0x3eb67f;_0x323545++){_0x4a339b[_0x323545]=![];}return _0x4a339b;},this[_0x11b394(0x1e2)]=function(){return this['hV'];};if(typeof _0x3f7381!='undefined'){if(typeof _0x3f7381==_0x11b394(0x267)&&_0x3f7381[_0x11b394(0x1bb)]()['match'](/^[0-9a-f]+$/))this[_0x11b394(0x21d)](_0x3f7381);else{if(typeof _0x3f7381[_0x11b394(0x228)]!='undefined')this[_0x11b394(0x21d)](_0x3f7381[_0x11b394(0x228)]);else{if(typeof _0x3f7381['bin']!=_0x11b394(0x21f))this[_0x11b394(0x215)](_0x3f7381[_0x11b394(0x1ae)]);else typeof _0x3f7381[_0x11b394(0x278)]!='undefined'&&this[_0x11b394(0x2bc)](_0x3f7381['array']);}}}},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9['asn1']['DERBitString'],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x21c)]),_0x23e9a9['asn1'][_0x53dedb(0x183)]=function(_0x216a98){var _0x5835c8=_0x53dedb;if(_0x216a98!==undefined&&typeof _0x216a98[_0x5835c8(0x2b8)]!==_0x5835c8(0x21f)){var _0x2d4eb7=_0x23e9a9[_0x5835c8(0x2ca)][_0x5835c8(0x19b)]['newObject'](_0x216a98['obj']);_0x216a98[_0x5835c8(0x228)]=_0x2d4eb7[_0x5835c8(0x168)]();}_0x23e9a9[_0x5835c8(0x2ca)][_0x5835c8(0x183)][_0x5835c8(0x243)][_0x5835c8(0x1e9)][_0x5835c8(0x1a8)](this,_0x216a98),this['hT']='04';},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x183)],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x158)]),_0x23e9a9[_0x53dedb(0x2ca)]['DERNull']=function(){var _0x131805=_0x53dedb;_0x23e9a9[_0x131805(0x2ca)][_0x131805(0x291)]['superclass'][_0x131805(0x1e9)][_0x131805(0x1a8)](this),this['hT']='05',this[_0x131805(0x1f3)]='0500';},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)]['DERNull'],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x21c)]),_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x189)]=function(_0x11ea50){var _0x5e70b8=_0x53dedb,_0x448bb3=function(_0x2a4d89){var _0x2b4990=_0x5239,_0x50f62d=_0x2a4d89[_0x2b4990(0x1e7)](0x10);if(_0x50f62d[_0x2b4990(0x1b4)]==0x1)_0x50f62d='0'+_0x50f62d;return _0x50f62d;},_0x822092=function(_0x47c35d){var _0x3f8ed9=_0x5239,_0x2dbc35='',_0xd57001=new _0x44ddff(_0x47c35d,0xa),_0x2af408=_0xd57001['toString'](0x2),_0x10ad56=0x7-_0x2af408[_0x3f8ed9(0x1b4)]%0x7;if(_0x10ad56==0x7)_0x10ad56=0x0;var _0x3454d1='';for(var _0x5d6e56=0x0;_0x5d6e56<_0x10ad56;_0x5d6e56++)_0x3454d1+='0';_0x2af408=_0x3454d1+_0x2af408;for(var _0x5d6e56=0x0;_0x5d6e56<_0x2af408[_0x3f8ed9(0x1b4)]-0x1;_0x5d6e56+=0x7){var _0x338df9=_0x2af408['substr'](_0x5d6e56,0x7);if(_0x5d6e56!=_0x2af408[_0x3f8ed9(0x1b4)]-0x7)_0x338df9='1'+_0x338df9;_0x2dbc35+=_0x448bb3(parseInt(_0x338df9,0x2));}return _0x2dbc35;};_0x23e9a9['asn1']['DERObjectIdentifier']['superclass'][_0x5e70b8(0x1e9)][_0x5e70b8(0x1a8)](this),this['hT']='06',this['setValueHex']=function(_0x358d8d){var _0x3100d5=_0x5e70b8;this[_0x3100d5(0x1f3)]=null,this[_0x3100d5(0x2b2)]=!![],this['s']=null,this['hV']=_0x358d8d;},this[_0x5e70b8(0x2b9)]=function(_0x53feef){var _0xdc7a3d=_0x5e70b8;if(!_0x53feef[_0xdc7a3d(0x249)](/^[0-9.]+$/))throw _0xdc7a3d(0x2a6)+_0x53feef;var _0x3fc6f1='',_0x510256=_0x53feef[_0xdc7a3d(0x1f8)]('.'),_0x1eac88=parseInt(_0x510256[0x0])*0x28+parseInt(_0x510256[0x1]);_0x3fc6f1+=_0x448bb3(_0x1eac88),_0x510256[_0xdc7a3d(0x2ad)](0x0,0x2);for(var _0x287af5=0x0;_0x287af5<_0x510256['length'];_0x287af5++){_0x3fc6f1+=_0x822092(_0x510256[_0x287af5]);}this[_0xdc7a3d(0x1f3)]=null,this[_0xdc7a3d(0x2b2)]=!![],this['s']=null,this['hV']=_0x3fc6f1;},this[_0x5e70b8(0x245)]=function(_0x3c693f){var _0x1a6a41=_0x5e70b8,_0x1f7e19=_0x23e9a9[_0x1a6a41(0x2ca)][_0x1a6a41(0x152)][_0x1a6a41(0x1a1)][_0x1a6a41(0x2a0)](_0x3c693f);if(_0x1f7e19!=='')this['setValueOidString'](_0x1f7e19);else throw _0x1a6a41(0x1bf)+_0x3c693f;},this[_0x5e70b8(0x1e2)]=function(){return this['hV'];};if(_0x11ea50!==undefined){if(typeof _0x11ea50==='string')_0x11ea50['match'](/^[0-2].[0-9.]+$/)?this[_0x5e70b8(0x2b9)](_0x11ea50):this[_0x5e70b8(0x245)](_0x11ea50);else{if(_0x11ea50['oid']!==undefined)this[_0x5e70b8(0x2b9)](_0x11ea50[_0x5e70b8(0x1ba)]);else{if(_0x11ea50[_0x5e70b8(0x228)]!==undefined)this[_0x5e70b8(0x23a)](_0x11ea50[_0x5e70b8(0x228)]);else _0x11ea50['name']!==undefined&&this[_0x5e70b8(0x245)](_0x11ea50[_0x5e70b8(0x29d)]);}}}},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x189)],_0x23e9a9[_0x53dedb(0x2ca)]['ASN1Object']),_0x23e9a9['asn1']['DEREnumerated']=function(_0xc5d60e){var _0x4bb242=_0x53dedb;_0x23e9a9[_0x4bb242(0x2ca)]['DEREnumerated'][_0x4bb242(0x243)][_0x4bb242(0x1e9)]['call'](this),this['hT']='0a',this[_0x4bb242(0x25b)]=function(_0x2f469e){var _0x31b215=_0x4bb242;this['hTLV']=null,this['isModified']=!![],this['hV']=_0x23e9a9[_0x31b215(0x2ca)][_0x31b215(0x19b)][_0x31b215(0x279)](_0x2f469e);},this[_0x4bb242(0x2a7)]=function(_0x96e8c8){var _0x5ecbe1=_0x4bb242,_0x53ea81=new _0x44ddff(String(_0x96e8c8),0xa);this[_0x5ecbe1(0x25b)](_0x53ea81);},this[_0x4bb242(0x23a)]=function(_0x58bcf9){this['hV']=_0x58bcf9;},this[_0x4bb242(0x1e2)]=function(){return this['hV'];};if(typeof _0xc5d60e!='undefined'){if(typeof _0xc5d60e[_0x4bb242(0x26a)]!=_0x4bb242(0x21f))this[_0x4bb242(0x2a7)](_0xc5d60e[_0x4bb242(0x26a)]);else{if(typeof _0xc5d60e==_0x4bb242(0x2cd))this[_0x4bb242(0x2a7)](_0xc5d60e);else typeof _0xc5d60e[_0x4bb242(0x228)]!=_0x4bb242(0x21f)&&this[_0x4bb242(0x23a)](_0xc5d60e[_0x4bb242(0x228)]);}}},_0x2259bd[_0x53dedb(0x1c1)]['extend'](_0x23e9a9['asn1'][_0x53dedb(0x2c4)],_0x23e9a9[_0x53dedb(0x2ca)]['ASN1Object']),_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x197)]=function(_0x3decc9){var _0xd89724=_0x53dedb;_0x23e9a9[_0xd89724(0x2ca)]['DERUTF8String'][_0xd89724(0x243)]['constructor'][_0xd89724(0x1a8)](this,_0x3decc9),this['hT']='0c';},_0x2259bd['lang'][_0x53dedb(0x186)](_0x23e9a9['asn1'][_0x53dedb(0x197)],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x158)]),_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x1e6)]=function(_0x3138a0){var _0x317f94=_0x53dedb;_0x23e9a9[_0x317f94(0x2ca)][_0x317f94(0x1e6)][_0x317f94(0x243)]['constructor'][_0x317f94(0x1a8)](this,_0x3138a0),this['hT']='12';},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9['asn1'][_0x53dedb(0x1e6)],_0x23e9a9[_0x53dedb(0x2ca)]['DERAbstractString']),_0x23e9a9['asn1'][_0x53dedb(0x175)]=function(_0x5a8089){var _0x16fcfe=_0x53dedb;_0x23e9a9[_0x16fcfe(0x2ca)][_0x16fcfe(0x175)]['superclass'][_0x16fcfe(0x1e9)][_0x16fcfe(0x1a8)](this,_0x5a8089),this['hT']='13';},_0x2259bd['lang']['extend'](_0x23e9a9['asn1']['DERPrintableString'],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x158)]),_0x23e9a9['asn1']['DERTeletexString']=function(_0x1788c9){var _0x4c9a2a=_0x53dedb;_0x23e9a9['asn1'][_0x4c9a2a(0x2aa)]['superclass'][_0x4c9a2a(0x1e9)][_0x4c9a2a(0x1a8)](this,_0x1788c9),this['hT']='14';},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9['asn1'][_0x53dedb(0x2aa)],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x158)]),_0x23e9a9['asn1'][_0x53dedb(0x280)]=function(_0x5dd822){var _0x537122=_0x53dedb;_0x23e9a9[_0x537122(0x2ca)]['DERIA5String'][_0x537122(0x243)][_0x537122(0x1e9)][_0x537122(0x1a8)](this,_0x5dd822),this['hT']='16';},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)]['DERIA5String'],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x158)]),_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x16c)]=function(_0x42d83c){var _0xce0da1=_0x53dedb;_0x23e9a9[_0xce0da1(0x2ca)][_0xce0da1(0x16c)]['superclass']['constructor'][_0xce0da1(0x1a8)](this,_0x42d83c),this['hT']='17',this[_0xce0da1(0x1f9)]=function(_0x166f47){var _0x39a78e=_0xce0da1;this[_0x39a78e(0x1f3)]=null,this['isModified']=!![],this['date']=_0x166f47,this['s']=this[_0x39a78e(0x15b)](this[_0x39a78e(0x235)],'utc'),this['hV']=stohex(this['s']);},this[_0xce0da1(0x1e2)]=function(){var _0x1049c8=_0xce0da1;return typeof this[_0x1049c8(0x235)]=='undefined'&&typeof this['s']==_0x1049c8(0x21f)&&(this['date']=new Date(),this['s']=this[_0x1049c8(0x15b)](this[_0x1049c8(0x235)],_0x1049c8(0x2af)),this['hV']=stohex(this['s'])),this['hV'];};if(_0x42d83c!==undefined){if(_0x42d83c[_0xce0da1(0x1fd)]!==undefined)this['setString'](_0x42d83c[_0xce0da1(0x1fd)]);else{if(typeof _0x42d83c==_0xce0da1(0x267)&&_0x42d83c[_0xce0da1(0x249)](/^[0-9]{12}Z$/))this[_0xce0da1(0x285)](_0x42d83c);else{if(_0x42d83c[_0xce0da1(0x228)]!==undefined)this[_0xce0da1(0x286)](_0x42d83c[_0xce0da1(0x228)]);else _0x42d83c[_0xce0da1(0x235)]!==undefined&&this[_0xce0da1(0x1f9)](_0x42d83c[_0xce0da1(0x235)]);}}}},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9['asn1'][_0x53dedb(0x16c)],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x299)]),_0x23e9a9[_0x53dedb(0x2ca)]['DERGeneralizedTime']=function(_0x4f4797){var _0x4446d6=_0x53dedb;_0x23e9a9[_0x4446d6(0x2ca)]['DERGeneralizedTime']['superclass']['constructor'][_0x4446d6(0x1a8)](this,_0x4f4797),this['hT']='18',this['withMillis']=![],this[_0x4446d6(0x1f9)]=function(_0x267cb2){var _0x1b0cf5=_0x4446d6;this[_0x1b0cf5(0x1f3)]=null,this['isModified']=!![],this[_0x1b0cf5(0x235)]=_0x267cb2,this['s']=this[_0x1b0cf5(0x15b)](this[_0x1b0cf5(0x235)],_0x1b0cf5(0x283),this['withMillis']),this['hV']=stohex(this['s']);},this['getFreshValueHex']=function(){var _0x52f56b=_0x4446d6;return this['date']===undefined&&this['s']===undefined&&(this['date']=new Date(),this['s']=this[_0x52f56b(0x15b)](this[_0x52f56b(0x235)],'gen',this[_0x52f56b(0x21b)]),this['hV']=stohex(this['s'])),this['hV'];};if(_0x4f4797!==undefined){if(_0x4f4797[_0x4446d6(0x1fd)]!==undefined)this['setString'](_0x4f4797['str']);else{if(typeof _0x4f4797==_0x4446d6(0x267)&&_0x4f4797[_0x4446d6(0x249)](/^[0-9]{14}Z$/))this[_0x4446d6(0x285)](_0x4f4797);else{if(_0x4f4797['hex']!==undefined)this[_0x4446d6(0x286)](_0x4f4797[_0x4446d6(0x228)]);else _0x4f4797[_0x4446d6(0x235)]!==undefined&&this[_0x4446d6(0x1f9)](_0x4f4797[_0x4446d6(0x235)]);}}_0x4f4797[_0x4446d6(0x257)]===!![]&&(this[_0x4446d6(0x21b)]=!![]);}},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x1cc)],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x299)]),_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x251)]=function(_0x26cdd3){var _0x1ae054=_0x53dedb;_0x23e9a9[_0x1ae054(0x2ca)][_0x1ae054(0x251)]['superclass']['constructor'][_0x1ae054(0x1a8)](this,_0x26cdd3),this['hT']='30',this[_0x1ae054(0x1e2)]=function(){var _0x548574=_0x1ae054,_0x4d000d='';for(var _0x38fce5=0x0;_0x38fce5<this['asn1Array']['length'];_0x38fce5++){var _0x37ac28=this[_0x548574(0x153)][_0x38fce5];_0x4d000d+=_0x37ac28['getEncodedHex']();}return this['hV']=_0x4d000d,this['hV'];};},_0x2259bd[_0x53dedb(0x1c1)][_0x53dedb(0x186)](_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x251)],_0x23e9a9['asn1'][_0x53dedb(0x18e)]),_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x1da)]=function(_0x344dcf){var _0x26324e=_0x53dedb;_0x23e9a9[_0x26324e(0x2ca)][_0x26324e(0x1da)]['superclass']['constructor'][_0x26324e(0x1a8)](this,_0x344dcf),this['hT']='31',this['sortFlag']=!![],this[_0x26324e(0x1e2)]=function(){var _0x5c9960=_0x26324e,_0x523ca5=new Array();for(var _0x51a05b=0x0;_0x51a05b<this[_0x5c9960(0x153)][_0x5c9960(0x1b4)];_0x51a05b++){var _0x425696=this['asn1Array'][_0x51a05b];_0x523ca5[_0x5c9960(0x266)](_0x425696[_0x5c9960(0x168)]());}if(this[_0x5c9960(0x288)]==!![])_0x523ca5['sort']();return this['hV']=_0x523ca5[_0x5c9960(0x1b9)](''),this['hV'];};if(typeof _0x344dcf!=_0x26324e(0x21f)){if(typeof _0x344dcf[_0x26324e(0x24d)]!='undefined'&&_0x344dcf[_0x26324e(0x24d)]==![])this['sortFlag']=![];}},_0x2259bd[_0x53dedb(0x1c1)]['extend'](_0x23e9a9['asn1'][_0x53dedb(0x1da)],_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x18e)]),_0x23e9a9[_0x53dedb(0x2ca)]['DERTaggedObject']=function(_0x983fb8){var _0x3491a9=_0x53dedb;_0x23e9a9['asn1'][_0x3491a9(0x1db)][_0x3491a9(0x243)][_0x3491a9(0x1e9)]['call'](this),this['hT']='a0',this['hV']='',this['isExplicit']=!![],this[_0x3491a9(0x173)]=null,this['setASN1Object']=function(_0x4b40cf,_0x4b9903,_0x376a04){var _0x187ee0=_0x3491a9;this['hT']=_0x4b9903,this[_0x187ee0(0x230)]=_0x4b40cf,this[_0x187ee0(0x173)]=_0x376a04,this[_0x187ee0(0x230)]?(this['hV']=this['asn1Object']['getEncodedHex'](),this[_0x187ee0(0x1f3)]=null,this['isModified']=!![]):(this['hV']=null,this[_0x187ee0(0x1f3)]=_0x376a04[_0x187ee0(0x168)](),this[_0x187ee0(0x1f3)]=this[_0x187ee0(0x1f3)][_0x187ee0(0x202)](/^../,_0x4b9903),this[_0x187ee0(0x2b2)]=![]);},this[_0x3491a9(0x1e2)]=function(){return this['hV'];},typeof _0x983fb8!=_0x3491a9(0x21f)&&(typeof _0x983fb8[_0x3491a9(0x2c2)]!=_0x3491a9(0x21f)&&(this['hT']=_0x983fb8[_0x3491a9(0x2c2)]),typeof _0x983fb8[_0x3491a9(0x200)]!=_0x3491a9(0x21f)&&(this[_0x3491a9(0x230)]=_0x983fb8[_0x3491a9(0x200)]),typeof _0x983fb8[_0x3491a9(0x2b8)]!=_0x3491a9(0x21f)&&(this[_0x3491a9(0x173)]=_0x983fb8['obj'],this[_0x3491a9(0x1f2)](this[_0x3491a9(0x230)],this['hT'],this['asn1Object'])));},_0x2259bd[_0x53dedb(0x1c1)]['extend'](_0x23e9a9[_0x53dedb(0x2ca)][_0x53dedb(0x1db)],_0x23e9a9['asn1'][_0x53dedb(0x21c)]);var _0x5c9f2f=function(_0x13d950){var _0x334e88=_0x53dedb;_0x590e5c(_0x31c656,_0x13d950);function _0x31c656(_0x165db7){var _0x3331ef=_0x5239,_0x3c6d98=_0x13d950[_0x3331ef(0x1a8)](this)||this;if(_0x165db7){if(typeof _0x165db7===_0x3331ef(0x267))_0x3c6d98['parseKey'](_0x165db7);else(_0x31c656[_0x3331ef(0x169)](_0x165db7)||_0x31c656[_0x3331ef(0x29f)](_0x165db7))&&_0x3c6d98[_0x3331ef(0x187)](_0x165db7);}return _0x3c6d98;}return _0x31c656[_0x334e88(0x1f0)][_0x334e88(0x2b0)]=function(_0x4daa0d){var _0xb59d79=_0x334e88;try{var _0x4012ac=0x0,_0xc744c9=0x0,_0x25e3ec=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,_0x52728a=_0x25e3ec['test'](_0x4daa0d)?_0x30ec57[_0xb59d79(0x1ec)](_0x4daa0d):_0xf94f8c[_0xb59d79(0x240)](_0x4daa0d),_0x66187c=_0x567b8f['decode'](_0x52728a);_0x66187c[_0xb59d79(0x293)][_0xb59d79(0x1b4)]===0x3&&(_0x66187c=_0x66187c[_0xb59d79(0x293)][0x2][_0xb59d79(0x293)][0x0]);if(_0x66187c[_0xb59d79(0x293)][_0xb59d79(0x1b4)]===0x9){_0x4012ac=_0x66187c[_0xb59d79(0x293)][0x1]['getHexStringValue'](),this['n']=_0x1adc88(_0x4012ac,0x10),_0xc744c9=_0x66187c[_0xb59d79(0x293)][0x2][_0xb59d79(0x162)](),this['e']=parseInt(_0xc744c9,0x10);var _0xadb912=_0x66187c[_0xb59d79(0x293)][0x3][_0xb59d79(0x162)]();this['d']=_0x1adc88(_0xadb912,0x10);var _0x3d7f60=_0x66187c['sub'][0x4][_0xb59d79(0x162)]();this['p']=_0x1adc88(_0x3d7f60,0x10);var _0x3b8302=_0x66187c[_0xb59d79(0x293)][0x5]['getHexStringValue']();this['q']=_0x1adc88(_0x3b8302,0x10);var _0xa816de=_0x66187c[_0xb59d79(0x293)][0x6][_0xb59d79(0x162)]();this['dmp1']=_0x1adc88(_0xa816de,0x10);var _0x2cb566=_0x66187c[_0xb59d79(0x293)][0x7]['getHexStringValue']();this['dmq1']=_0x1adc88(_0x2cb566,0x10);var _0x5e7bb6=_0x66187c[_0xb59d79(0x293)][0x8]['getHexStringValue']();this[_0xb59d79(0x2c1)]=_0x1adc88(_0x5e7bb6,0x10);}else{if(_0x66187c[_0xb59d79(0x293)][_0xb59d79(0x1b4)]===0x2){var _0x10a737=_0x66187c[_0xb59d79(0x293)][0x1],_0x1418ac=_0x10a737['sub'][0x0];_0x4012ac=_0x1418ac[_0xb59d79(0x293)][0x0][_0xb59d79(0x162)](),this['n']=_0x1adc88(_0x4012ac,0x10),_0xc744c9=_0x1418ac['sub'][0x1][_0xb59d79(0x162)](),this['e']=parseInt(_0xc744c9,0x10);}else return![];}return!![];}catch(_0x266297){return![];}},_0x31c656[_0x334e88(0x1f0)][_0x334e88(0x236)]=function(){var _0x40a4fd=_0x334e88,_0x87d57a=new _0x23e9a9[(_0x40a4fd(0x2ca))][(_0x40a4fd(0x251))]({'array':[new _0x23e9a9['asn1']['DERObjectIdentifier']({'oid':_0x40a4fd(0x1c2)}),new _0x23e9a9[(_0x40a4fd(0x2ca))][(_0x40a4fd(0x291))]()]}),_0x53f1b6=new _0x23e9a9['asn1'][(_0x40a4fd(0x251))]({'array':[new _0x23e9a9[(_0x40a4fd(0x2ca))][(_0x40a4fd(0x255))]({'bigint':this['n']}),new _0x23e9a9[(_0x40a4fd(0x2ca))]['DERInteger']({'int':this['e']})]}),_0x5914d7=new _0x23e9a9[(_0x40a4fd(0x2ca))][(_0x40a4fd(0x2b1))]({'hex':'00'+_0x53f1b6[_0x40a4fd(0x168)]()}),_0x22048a=new _0x23e9a9['asn1']['DERSequence']({'array':[_0x87d57a,_0x5914d7]});return _0x22048a[_0x40a4fd(0x168)]();},_0x31c656[_0x334e88(0x1f0)]['getPublicBaseKeyB64']=function(){var _0x1877d9=_0x334e88;return _0xf7b819(this[_0x1877d9(0x236)]());},_0x31c656[_0x334e88(0x20a)]=function(_0x107725,_0x1a7d14){var _0x3e9c80=_0x334e88;_0x1a7d14=_0x1a7d14||0x40;if(!_0x107725)return _0x107725;var _0x28f93b=_0x3e9c80(0x1a4)+_0x1a7d14+_0x3e9c80(0x25f)+_0x1a7d14+'})';return _0x107725[_0x3e9c80(0x249)](RegExp(_0x28f93b,'g'))['join']('\x0a');},_0x31c656[_0x334e88(0x1f0)][_0x334e88(0x205)]=function(){var _0x418bee='-----BEGIN\x20RSA\x20PRIVATE\x20KEY-----\x0a';return _0x418bee+=_0x31c656['wordwrap'](this['getPrivateBaseKeyB64']())+'\x0a',_0x418bee+='-----END\x20RSA\x20PRIVATE\x20KEY-----',_0x418bee;},_0x31c656[_0x334e88(0x1f0)][_0x334e88(0x1a6)]=function(){var _0x1b62fc=_0x334e88,_0x4a35dd=this[_0x1b62fc(0x23e)]();return _0x4a35dd;},_0x31c656[_0x334e88(0x29f)]=function(_0x209bbe){var _0x5b20e3=_0x334e88;return _0x209bbe=_0x209bbe||{},_0x209bbe['hasOwnProperty']('n')&&_0x209bbe[_0x5b20e3(0x239)]('e');},_0x31c656[_0x334e88(0x1f0)]['parsePropertiesFrom']=function(_0xbc2c60){var _0x16ea9c=_0x334e88;this['n']=_0xbc2c60['n'],this['e']=_0xbc2c60['e'],_0xbc2c60[_0x16ea9c(0x239)]('d')&&(this['d']=_0xbc2c60['d'],this['p']=_0xbc2c60['p'],this['q']=_0xbc2c60['q'],this[_0x16ea9c(0x18b)]=_0xbc2c60[_0x16ea9c(0x18b)],this[_0x16ea9c(0x29a)]=_0xbc2c60['dmq1'],this['coeff']=_0xbc2c60[_0x16ea9c(0x2c1)]);},_0x31c656;}(_0x2afce7),_0x1b0ea7=(function(){var _0xa5bc1c=_0x53dedb;function _0x364ec1(_0xdc100){var _0x293b8c=_0x5239;_0xdc100=_0xdc100||{},this['default_key_size']=parseInt(_0xdc100[_0x293b8c(0x1c3)],0xa)||0x400,this[_0x293b8c(0x26d)]=_0xdc100[_0x293b8c(0x26d)]||_0x293b8c(0x1b3),this[_0x293b8c(0x233)]=_0xdc100[_0x293b8c(0x233)]||![],this[_0x293b8c(0x23b)]=null;}return _0x364ec1[_0xa5bc1c(0x1f0)][_0xa5bc1c(0x2cc)]=function(_0x32e84c){var _0xf2e1ca=_0xa5bc1c;this[_0xf2e1ca(0x233)]&&this[_0xf2e1ca(0x23b)]&&console['warn']('A\x20key\x20was\x20already\x20set,\x20overriding\x20existing.'),this[_0xf2e1ca(0x23b)]=new _0x5c9f2f(_0x32e84c);},_0x364ec1[_0xa5bc1c(0x1f0)][_0xa5bc1c(0x171)]=function(_0x2867f6){var _0x194860=_0xa5bc1c;this[_0x194860(0x2cc)](_0x2867f6);},_0x364ec1[_0xa5bc1c(0x1f0)][_0xa5bc1c(0x164)]=function(_0x4c22b2){var _0x1b1f17=_0xa5bc1c;this['setKey'](atob(mappls['mmi']['pb'])[_0x1b1f17(0x1f8)](_0x4c22b2)[0x0]);},_0x364ec1['prototype'][_0xa5bc1c(0x25c)]=function(_0x2dcd7b){var _0x3245eb=_0xa5bc1c;try{return _0xf7b819(this[_0x3245eb(0x209)]()[_0x3245eb(0x25c)](_0x2dcd7b));}catch(_0x39bac4){return![];}},_0x364ec1[_0xa5bc1c(0x1f0)][_0xa5bc1c(0x1f1)]=function(_0x1737a5,_0x44efe3,_0xb8ea17){var _0x1875d8=_0xa5bc1c;try{return _0xf7b819(this['getKey']()[_0x1875d8(0x1f1)](_0x1737a5,_0x44efe3,_0xb8ea17));}catch(_0x5be9e4){return![];}},_0x364ec1[_0xa5bc1c(0x1f0)][_0xa5bc1c(0x198)]=function(_0x30152b,_0x2b301b,_0x17c870){var _0x42c936=_0xa5bc1c;try{return this[_0x42c936(0x209)]()[_0x42c936(0x198)](_0x30152b,_0x3f4295(_0x2b301b),_0x17c870);}catch(_0x2a5951){return![];}},_0x364ec1['prototype'][_0xa5bc1c(0x209)]=function(_0x2e5e67){var _0x21b092=_0xa5bc1c;if(!this['key']){this[_0x21b092(0x23b)]=new _0x5c9f2f();if(_0x2e5e67&&{}[_0x21b092(0x1e7)][_0x21b092(0x1a8)](_0x2e5e67)==='[object\x20Function]'){this[_0x21b092(0x23b)]['generateAsync'](this['default_key_size'],this['default_public_exponent'],_0x2e5e67);return;}this[_0x21b092(0x23b)]['generate'](this[_0x21b092(0x1c3)],this['default_public_exponent']);}return this[_0x21b092(0x23b)];},_0x364ec1['prototype']['getPrivateKey']=function(){var _0x45c154=_0xa5bc1c;return this['getKey']()[_0x45c154(0x205)]();},_0x364ec1['prototype'][_0xa5bc1c(0x287)]=function(){var _0x1884ed=_0xa5bc1c;return this['getKey']()[_0x1884ed(0x26c)]();},_0x364ec1[_0xa5bc1c(0x1f0)][_0xa5bc1c(0x1a6)]=function(){var _0x2f97f4=_0xa5bc1c;return this[_0x2f97f4(0x209)]()[_0x2f97f4(0x1a6)]();},_0x364ec1[_0xa5bc1c(0x1f0)][_0xa5bc1c(0x17b)]=function(){var _0x237976=_0xa5bc1c;return this[_0x237976(0x209)]()[_0x237976(0x23e)]();},_0x364ec1[_0xa5bc1c(0x28f)]=_0xa5bc1c(0x253),_0x364ec1;}());window[_0x53dedb(0x167)]=_0x1b0ea7,_0x4c93d3[_0x53dedb(0x167)]=_0x1b0ea7,_0x4c93d3[_0x53dedb(0x1a5)]=_0x1b0ea7,Object[_0x53dedb(0x2ba)](_0x4c93d3,_0x53dedb(0x21a),{'value':!![]});}));function _0x5239(_0x35c090,_0x34c70d){var _0x5cfbcb=_0x5cfb();return _0x5239=function(_0x523928,_0x38827a){_0x523928=_0x523928-0x152;var _0x1d0d32=_0x5cfbcb[_0x523928];return _0x1d0d32;},_0x5239(_0x35c090,_0x34c70d);}var MMIencrypt=new JSEncrypt({'default_key_size':0x400});MMIencrypt[_0x288f0f(0x2d1)+_0x288f0f(0x1d3)](_0x288f0f(0x289));mappls[atob('cnZs')]=function(Lmap,s,clb){ /*map,status true/false,callbak*/ if(Lmap && Lmap.getDiv) { var rwId='MMIrview'+Lmap._container.id,dvRw=document.getElementById(rwId), Pur="https://realview.mappls.com", openPlyrDv=function(u) { if(!dvRw) { dvRw = document.createElement('div'); dvRw.id = rwId;dvRw.style="background:#fff;width:100%;height:100%;left:0;top:0;z-index:999;overflow: hidden;position:absolute"; document.getElementsByTagName('body')[0].appendChild(dvRw); document.addEventListener('keydown', function(event){ if(event.key === "Escape"){ dvRw.style.display='none';} }); } try{ mappls.$('#'+rwId+'').style.display="block"; dvRw.innerHTML='<div style="width:100%;height:100%;margin:0;padding:0;border:none;position:relative;z-index:111;"><iframe name="rvf" id="E_'+rwId+'" style="width:100%;height:100%;border:none;" type="text/html" src="'+(u.indexOf('://')==-1?Pur+"/mapplsView/":"")+u+'" allow="geolocation;xr-spatial-tracking"></iframe> <div class="relColse" style="position: absolute;z-index: 211;top: 7px; right: 7px; user-select:none;width: 25px;height:25px;background-color: #27a3ea;line-height: 20px;text-align: center;border-radius: 20px;font-size: 12px;padding-top:1px;border: 2px solid lightblue;color: #f3f0f0;font-weight: bold; cursor:pointer;font-family: monospace;box-sizing: border-box;" onclick=\'mappls.$("#'+rwId+'").style.display="none";if("function"==typeof parent.realviewTripOpened) parent.realviewTripOpened("")\' >✕</div><div id="backreal" style="position: absolute;z-index: 211;top: 7px; user-select:none;width:35px;height:25px;background-color: #27a3ea;line-height: 20px;text-align: center;border-radius: 20px;font-size: 12px;padding-top:1px;border: 2px solid lightblue;color: #f3f0f0;font-weight: bold; cursor:pointer;font-family: monospace;box-sizing: border-box;;left:0;display:none" onclick=\'mappls.$("#'+rwId+'").style.left=0;this.style.display="none";\' ><<</div></div>'; if("object"==typeof mapplsLogs) mapplsLogs.push("realviewTripOpened"); window.addEventListener('message',function(d){ if("function"==typeof parent.realviewTripOpened) { if(typeof(d.data) == "string" && d.data.indexOf('bm!') !== -1){ parent.realviewTripOpened(d.data); } if(typeof(d.data) == "string" && d.data.indexOf('pin:') !== -1){ if("function"==typeof parent.get_place_details) parent.get_place_details(d.data.replace('pin:','')); document.getElementById(rwId).style.left="95%"; document.getElementById('backreal').style.display='inline'; } else if(typeof(event.data) == "number"){ parent.document.getElementsByClassName('relColse')[0].style.display=parseInt(event.data) > 0?'none':'block'; } } }); /* var win = window.frames.rvf; var wn=document.getElementById("E_"+rwId).contentWindow; console.log(wn); wn.postMessage(mappls, wn.src);*/ } catch(e){console.log(e);dvRw.style.display='none';} }, checkDots=2,/*set 1 if data avl*/ rv=function(s){s=s.replace(/•/g,'","').replace(/¡/g,':"').replace(/⚬/g,'.');return s.split("").reverse().join("").slice(1, -1);}, showDots=function(e) { var map=e.target?e.target:e,bnd=map.getBounds(),ptId="realview_points"; if(map._loaded && checkDots && map.rv && map.getZoom()>13) { MapUtil.getJSON(Pur+"/streetview/listing?pts&enc&geojson&s=6&access_token=gcndsszsfecf6zztqcuoy2wskvd35oo4&bounds="+bnd._sw.lat+","+bnd._sw.lng+";"+bnd._ne.lat+","+bnd._ne.lng+"&dot="+checkDots,function(d){ if(checkDots==2 && d){checkDots=(d=='[]][[]'?0:1);if(checkDots)showDots(e);return false;/*check if data aval only one time*/} if(!d || d=='[]][[]') return false; try{d=JSON.parse(rv(d));}catch(e){console.log(e);d='';}; if(map.error) console.log(d); if(map.getSource(ptId)) { map.getSource(ptId).setData(d); } else { map.addLayer({ "id": ptId, "type": "circle","source": {type: 'geojson',data:d}, "paint": { 'circle-radius':{'base': 1,'stops': [[4, 1.2],[13, 4],[15, 4],[17, 4],[18, 8],[20, 10],[22,20]]}, 'circle-color': "#2ed3b7", 'circle-opacity':.5, 'circle-stroke-width':5, 'circle-stroke-color':'transparent' } }); map.on('mousemove',ptId,function(e) {showPlayer(e,map);}).on('click',ptId,function(e) {if(e.lngLat!=undefined){e.preventDefault();showPlayer(e,map);}}); } },true); } }, showPlayer=function(e,map) /*assign click event method*/ { var pcr=map.getCanvas().style.cursor,evt=e.originalEvent.type,bbox = [[e.point.x - 5, e.point.y - 5],[e.point.x + 5, e.point.y + 5]],features = map.queryRenderedFeatures(bbox); if(pcr=='') map.getCanvas().style.cursor = 'pointer'; if (evt == 'click') { var trip = "",roadName = ""; for (var f in features) { if (features[f].properties.hasOwnProperty('trip_id')) { trip = features[f].properties.trip_id; roadName = features[f].properties.road_nme?features[f].properties.road_nme:""; if(trip) break; } } if (!trip) return; if ("function" === typeof map.realviewClick) { map.realviewClick({ trip: trip, road:roadName, lat: e.lngLat.lat, lng: e.lngLat.lng }); return false; } openPlyrDv(btoa(mappls.mmi.k) + 'bm!' + btoa(trip) + '?lat=' + e.lngLat.lat + '&lng=' + e.lngLat.lng + "&style=" + encodeURIComponent(map.styleN)+"&rn="+btoa(roadName)+(clb && clb=='private'?"&private":"")+"&x-sec="+mappls.mmi.a); } }, rId="RealView-Layer",rId1=rId+"1",src=""; if(s && typeof s=="string"){openPlyrDv(s);return false;} try{src=Lmap.getSource('realview');}catch(e){if("function" ===typeof clb) clb("wrong map");return false;} var load=function(){if("function" ===typeof clb) { if(Lmap.isStyleLoaded()) clb(true);else Lmap.once('idle',function(){clb(true);});}}; if(src){ var vsi="visible";if(!s) vsi="none"; Lmap.setLayoutProperty(rId, 'visibility', vsi); Lmap.setLayoutProperty(rId1, 'visibility', vsi); Lmap.setLayoutProperty("realview_points", 'visibility', vsi); if(vsi=="visible") load(); else {var rwId='MMIrview'+Lmap._container.id,rwDv=mappls.$("#"+rwId);if(rwDv) rwDv.style.display='none';} Lmap.rv=(vsi=="visible")?1:0; return true; } if(!s){ return false;} try{ /*"mmi_h.mapmyindia.com/advancedmaps/v1/v_mmi/realview/vector_tile/{z}/{x}/{y}.pbf"*/ Lmap.addSource('realview', {"tiles": ["https://apis.mappls.com/advancedmaps/v1/v_mmi/base/vector_tile/{z}/{x}/{y}.pbf?v="+(clb && clb=='private'?"realview_private":"realview")+"&x-sec="+mappls.mmi.a ],"type": "vector","bounds": [67.7856,5.6597,101.5796,37.1957],"minzoom": 1,"maxzoom": 16}); Lmap.addLayer({ "id": rId1, "type": "line", "source": "realview", "source-layer": "RealViewLayer", "paint": { "line-color": "#eaeaea", "line-width":['interpolate',['linear'],['zoom'],7,['interpolate', ['linear'], ['get', 'zz'], 97,0,98,0,99,5], 8,6, 13,7, 16,9, 18,10, 22,15 ] }, "layout":{"line-cap":"round"} },'water_ocean_label'); Lmap.addLayer({ "id": rId, "type": "line", "source": "realview", "source-layer": "RealViewLayer", "paint": { "line-translate-anchor":"viewport", "line-color": "#2ed3b7", "line-width":['interpolate',['linear'],['zoom'],7,['interpolate', ['linear'], ['get', 'zz'], 97,0,98,0,99,2], 8,2.5, 13,3, 16,5, 18,6, 22,10 ] }, "layout":{"line-cap":"round"} },'water_ocean_label'); if(!Lmap.rv) { Lmap.rv=1; Lmap.on('mousemove',rId1,function(e) {showPlayer(e,Lmap);}).on('click',function(e) { if(e.lngLat!=undefined && Lmap.rv){e.preventDefault();showPlayer(e,Lmap);} }).on("dragend",showDots).on("zoomend",showDots); } /*orientation change send*/ if (window.DeviceOrientationEvent) { window.addEventListener('deviceorientation', function(evd) { try{ var ifrm=mappls.$('#E_MMIrview'+Lmap._container.id);if(ifrm && 'function'==typeof ifrm.contentWindow.orient){ ifrm.contentWindow.orient(evd);} }catch(e){} });} load();showDots(Lmap); }catch(e){Lmap.once('load',function(){return mappls[atob('cnZs')](Lmap,s,clb);});} return true; } else { console.warn("Invalid map for "+atob('cnZs')); };};; function iconClick(d){ if (d.eloc && !maps.uri().match(/get-pin|add-a-|get-eLoc|report@|direction|hondaAssistShareLocation/)){ maps.icon_click=0; get_place_details(d.eloc, 'near'); } else if (d.eloc && maps.uri().match(/direction/)){ maps.map_url = $.ajax({ type: 'POST', url: "auto_direction", data: {'eloc': d.eloc}, timeout: 15000, }).done(function(data) { var json = ''; try { json = de.code(data); var txt = json['response']['suggestedLocations'][0]; var click_dir = right_click_direction(txt.placeName,txt.entryLatitude,txt.entryLongitude,txt.eLoc); call_url('Direction', click_dir.replace(/\//g, '$')); newdr.driving_box(''); } catch (e) { console.log(e); show_error(1); return false; } }); } } map = new mappls.Map(document.getElementById("map"), { center: [map_lat,map_lng], zoom:map_zm, zoomControl: false, traffic:false, hybrid: true, location: false, maxPitch:70, fullscreenControl:false, indoor:true, clickableIcons_callback: function(d){iconClick(d);}, scaleControl: true, rotateControl:false, geolocation: false }); bm("#rp_0").innerHTML='<a style="cursor:pointer;color:#369CF5;margin-left:5px;" onclick="createPost();" id="report_I"><u>Post</u></a> (v13.0) </span> '; </script><script src="js/?314.js"></script><!-- map-control-web --><script>tkn='';var mapLayr=function(cat){ if("function"==typeof MMILayerTrig) {$("#mapLayerSidePanelMain").addClass("customPanelMain");MMILayerTrig();} else { $("#loader").show(); if(maplayerD) maplayerD.abort(); var catgs=cat?cat.replace('?','').replace(/\./g,','):''; maplayerD = $.ajax({method:"post",url: "maplayer_call?realview="+(map.rv?1:0)+"&tr="+(map.traffic==1?1:0)+"&threeD="+(map.threeD?1:0)+"&catgs="+catgs+"&mapLayer="+maps.currLayer+"&hostFlag="+(hostFlag?1:0)+"",success: function(data) { var obj =JSON.parse(data);$("#loader").hide();$("#mapLayerTest").html(obj.html);MMILayerTrig();if(cat){mul_report=catgs.split(',');mul_report_apnd=catgs;report_heatMap();get_report('','',mul_report_apnd);}else $("#mapLayerSidePanelMain").addClass("customPanelMain");},fail: function(){$("#loader").hide();} }); } }; var countrylist=function(){ comman('countrylist','countrylist',{countryName:countryName},'',function(d){ if(d){$("#error_modal").html(d).show();} });/*menu load*/ }, Mmenu=function(){ comman('menu','menu',{"evt":"menu","countryName":countryName,"url":maps.uri()},0);/*menu load*/ };$(window).on("load",function(){ if(mobilecheck()) { $('.covid-trigger-img').attr('onclick','window.location.href=\'corona\''); setTimeout(function(){ $(".reportTrig span").hide(); $(".reportTrig span").addClass("showReport"); },4000); } else { /*non mobile*/ $('#cat_more').mCustomScrollbar({theme:'dark',scrollInerctia:100,autoHideScrollbar:true}); } setTimeout(function(){ if(''=='' || ''!=$('ul.whatsnewList li').length) $(".red-mark").show(); else $(".red-mark").hide(); $(".help_out_trig").addClass("reportRotate"); if(!mobilecheck()) $("#red_dt").hide(); },1000);});function whatsNewPopup(){ $('.whatsnewWidgetSec').show(); $('.whatsnewList').scrollTop(0); document.cookie='what_new=1'; document.cookie='total='+$('ul.whatsnewList li').length; $('.red-mark').hide(); if(!$(".whatsnewList").html().trim()){ $.getJSON('new.json?314', function(data) { var data = data.whats_new; var whatsnewhtml=''; $(data).each(function(i, val) { whatsnewhtml += '<li>'+ '<a>'+ '<div class="listTime">'+val.Version+'<span style="color: #888;"> ('+val.Date+')</span>'+(val.status?val.status:'')+'</div>'+ '<h2>'+(val.Title?val.Title:'')+'</h2>'+ '<p>'+val.Desc+'</p>'+ '</a>'+ '</li>'; }); $(".whatsnewList").html(whatsnewhtml); });}}$(document).ready(function(){ /*if(maps.uri() && !maps.uri().indexOf('@')===0) close_cat();*/ $(".new-map-control").show(); if(!$('.map').height()) $('.map').css({"height":$(window).height()+"px"}); deviceType = '0'; if(!curl || curl.indexOf('@')===0 || curl=='nearby') $("#get-eloc-sec,.get-eloc-sec-bus").show(); $(".login-close-btn").click(function() { $(".login").css("display","none"); }); $(".login_btn").click(function() { $(".login").show(); }); $(".search-title").click(function() { $(".set_height").toggleClass("showlist"); $(".panel-body.forhide").toggleClass("hidelist"); }); $(document).on( "click", "#side-menu", function (event)/*side menu*/ { if(!$("#menu-links").html()) Mmenu(); $("#weather_panel_sec").removeClass("layer_panel_pos"); $(".custom-bg-overlay").attr("style", "display: block"); $("#login_dv_menu").attr('style', 'left: 0px !important'); $("#taketour_dv").attr("style", "display: none"); if(!mobilecheck()) $(".whatnewSec").hide(); event.preventDefault(); }).on( "click touch", function ( e ) { if($(e.target).css('line-height')=='50px'){ $(".custom-bg-overlay").attr("style", "display: block"); $("#login_dv_menu").attr('style', 'left: 0px !important'); } else if(!$(e.target).hasClass('side-menu')) { $(".custom-bg-overlay").hide(); $("#login_dv_menu").attr('style', 'left: -325px !important'); } }).on( "keydown", function ( e ) { if ( e.keyCode === 27 ) { $(".custom-bg-overlay").hide(); $("#login_dv_menu").attr('style', 'left: -325px !important'); } }); var lastY=0,lastX=0;src = document.getElementById("login_dv_menu");/*hemburger menu drag*/ src.addEventListener('touchmove', function(e) { var thisX= e.touches[0].clientX-195,c_y=e.touches[0].clientY; if(!lastY) {lastY=c_y;lastX=thisX;return;} if($(this).position().left<=0 && (thisX-lastX)<=0 && Math.abs(c_y-lastY)<20 ){ $(this).attr('style', 'left: '+(thisX-lastX)+'px !important');} }, false);src.addEventListener('touchend', function(e) {lastY=0;lastX=0;if($(this).offset().left<-5) {$(this).attr('style', 'left: -325px !important');$(".custom-bg-overlay").hide();f_tch=0;return false;}else $(this).attr('style', 'left: 0px !important');});/*siemenu*/ $(document).on("click", "#weather_close", function(event){if(weather_tile) map.removeLayer(weather_tile);$("#weather_panel_trigger").removeClass( "active");$(".weather-panel-btm").hide();$("#weather_panel_sec").removeClass("layer_panel_pos");maps.set_current();}); $("#weather_panel_trigger").on("click", function(){$("#weather_panel_sec").addClass("layer_panel_pos");}); $("#weather_panel_close").on("click", function(){$("#weather_panel_sec").removeClass("layer_panel_pos");}); if(!$('.map').height()) $('.map').css({"height":$(window).height()+"px"});/* collapse js starts here */ $('.tourleftArrow').click(function(e) { e.preventDefault(); $(this).hide(); $('.tourrightArrow').show(); $('.taketourSec').animate({ 'left': '-121px' }); }); $('.tourrightArrow').click(function(e) { e.preventDefault(); $(this).hide(); $('.tourleftArrow').show(); $('.taketourSec').animate({ 'left': '0' }); }); $(document).on("click", "#tk_tour", function(){$("#error_modal").load("take_tour").show();}).on('click','#x_home',function(){ home(); }); /* collapse js ends here */ });$(window).on("load",function(){ $(".lhid").show(40);});if("function"===typeof initLoad) initLoad();/*near & onborad */$(".shown-category .mob-cat-list li:last-child").hide(); $("#cat-more-btn").on("click", function(){ $(".rest-category").slideDown(); $(this).hide(); $(".shown-category .mob-cat-list li:last-child").show(); }); $("#cat-less-btn").on("click", function(){ $(".rest-category").slideUp(); $(".shown-category .mob-cat-list li:last-child").hide(); $("#cat-more-btn").show(); }); if(window.innerHeight!=document.body.offsetHeight) $(".map").height(window.innerHeight);let calArea;$("#scale_dv1").on("click", function(){ if(!uname) {notify('You need to login to use this feature');loginDv('scale_dv1'); } else { if(typeof ruler=="undefined"){ $.ajax({method:"get",url: "measure",success: function(data) { $('body').append(data); },fail: function(){$("#loader").hide();} });} } });</script> <noscript><iframe sandbox src="https://www.googletagmanager.com/ns.html?id=GTM-KXF8H62" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script> function ga_analytics(reqUrl) { } function vid_mate_check(){} $.ajax({url: "uid!"}); </script><div class="aqiHome" style="display:none;"> <div class="aqiHomeItem clearfix"> <div class="aqiHomeItemImg" id="weatherIcon"> </div> <div class="aqiHomeItemText" id="htempp" ></div> </div> <div class="aqiHomeItem"> <div class="aqiHomeData" id="haqi"></div> </div> </div></div> <style>.download-app-trigger.realviewMain { position: relative; cursor: pointer;}.download-app-trigger.realviewMain .tooltip-info { display: inline-block; position: absolute; right: 5px; z-index: 1; top: 7px;}.download-app-trigger.realviewMain .tooltip-info a { color: #212121; padding: 5px;}.download-app-trigger.realviewMain .tooltip-info .tooltip-sec { width: 280px; text-align: left; right: 0; margin-top: 32px; background: #fff; padding: 10px; border-radius: 5px; color: #212121; box-shadow: 0 2px 8px rgba(0,0,0,0.3); display: none;}.download-app-trigger.realviewMain .tooltip-info .tooltip-sec:before { display: none;}.download-app-trigger.realviewMain:hover .tooltip-sec { display: block;}.realviewMain .get-app-text { display: none;}.download-app-trigger.realviewMain .btn-profile { width: 36px !important; height: 36px; border-radius: 50%;}.realviewMain .get-app-icon { width: 36px !important;}.realviewMain .get-app-icon img { width: 24px; height: 24px !important; margin-top: 7px !important; margin-left: 0 !important;}.add-place-modal.real-view-modal .modal-body .multiLevel-body { height: 80vh;}.indoor_cls{margin:60px 25px 0 0 !important;}.mapboxgl-ctrl-scale{margin:-45px 5px 0 0 !important;}</style></div> </body><script src="https://www.mappls.com/apis/logs/visits.js?appid=mappls-web" defer async></script></html></html>