/*! For license information please see sdk-for-javascript.js.LICENSE.txt */ !function (t) { var e = {}; function n(i) { if (e[i]) return e[i].exports; var o = e[i] = { i: i, l: !1, exports: {} }; return t[i].call(o.exports, o, o.exports, n), o.l = !0, o.exports } n.m = t, n.c = e, n.d = function (t, e, i) { n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: i }) }, n.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, n.t = function (t, e) { if (1 & e && (t = n(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var i = Object.create(null); if (n.r(i), Object.defineProperty(i, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var o in t) n.d(i, o, function (e) { return t[e] }.bind(null, o)); return i }, n.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return n.d(e, "a", e), e }, n.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, n.p = "", n(n.s = 153) }([function (t, e, n) { "use strict"; Object.defineProperty(e, "__esModule", { value: !0 }), e.portalCreator = e.Fragment = e.default = void 0; var i = n(175); function o(t) { return (o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t })(t) } function a(t, e, n) { var o = (0, i.isSVG)(t) ? document.createElementNS("http://www.w3.org/2000/svg", t) : document.createElement(t), a = (0, i.createFragmentFrom)(n); return o.appendChild(a), Object.keys(e || {}).forEach((function (t) { "style" === t ? Object.assign(o.style, e[t]) : "ref" === t && "function" == typeof e.ref ? e.ref(o, e) : "className" === t ? o.setAttribute("class", e[t]) : "xlinkHref" === t ? o.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", e[t]) : "dangerouslySetInnerHTML" === t ? o.innerHTML = e[t].__html : o.setAttribute(t, e[t]) })), o } function r(t, e, n) { var o = Object.assign({}, t.defaultProps || {}, e, { children: n }), a = t.prototype.render ? new t(o).render : t, r = a(o); switch (r) { case "FRAGMENT": return (0, i.createFragmentFrom)(n); case "PORTAL": return a.target.appendChild((0, i.createFragmentFrom)(n)), document.createComment("Portal Used"); default: return r } } e.default = function (t, e) { for (var n = arguments.length, i = new Array(n > 2 ? n - 2 : 0), s = 2; s < n; s++)i[s - 2] = arguments[s]; return "function" == typeof t ? r(t, e, i) : "string" == typeof t ? a(t, e, i) : console.error("jsx-render does not handle ".concat("undefined" == typeof tag ? "undefined" : o(tag))) }, e.Fragment = function () { return "FRAGMENT" }, e.portalCreator = function (t) { function e() { return "PORTAL" } return e.target = document.body, t && t.nodeType === Node.ELEMENT_NODE && (e.target = t), e } }, function (t, e, n) { "use strict"; var i = n(4), o = n.n(i), a = n(34), r = n(104), s = { pl: { map: "Mapa", list: "Lista", search_by_city_or_address: "Szukaj po mieście, adresie i nazwie punktu", search_by_city_or_address_only: "Szukaj po mieście i adresie", search: "Szukaj", select_point: "Wybierz punkt...", parcel_locker: "Paczkomat®", parcel_locker_group: "Paczkomat® - typy", parcel_locker_only: "Paczkomat®", laundry_locker: "Pralniomat", avizo_locker: "Awizomaty24", pok: "PaczkoPunkt", pop: "PaczkoPunkt", allegro_courier: "PaczkoPunkt", nfk: "Oddział NFK", avizo: "Punkt awizo", office: "Lokalizacje biur", plan_route: "Zaplanuj trasę", details: "Szczegóły", select: "Wybierz", locationDescription: "Położenie", openingHours: "Godziny otwarcia", double_apm_info: "W pobliżu są też inne urządzenia Paczkomat®:", double_apm_info_details: "W pobliżu są też inne urządzenia Paczkomat®", easy_access_zone_info_details: "Strefa Ułatwionego Dostępu", screenless_info_details: "Wybierając Appkomat InPost upewnij się, że masz zainstalowaną aplikację InPost Mobile", pok_name: "PaczkoPunkt", pok_name_short: "PaczkoPunkt", parcel_locker_superpop: "PaczkoPunkt", parcel_locker_superpop_short: "PaczkoPunkt", allegro_courier_name: "PaczkoPunkt", parcel_locker_name: "Paczkomat®", avizo_name: "Punkt Awizo", pok_description: "PaczkoPunkt", avizo_description: "Punkt odbioru przesyłki listowej lub kurierskiej", parcel_locker_description: "Maszyna do nadawania i odbioru przesyłek 24/7", avizo_locker_description: "Maszyna do odbioru przesyłek awizowanych 24/7", air_on_airport: "Maszyna na lotnisku", air_outside_airport: "Maszyna poza lotniskiem", air_on_airport_description: "Maszyna znajdująca się na terenie lotniska", air_outside_airport_description: "Maszyna znajdująca się poza terenem lotniska", nfk_description: "Siedziba główna (magazyn) InPost w danym mieście lub regionie", pop_description: "Placówka, w której można nadać lub odebrać przesyłkę Paczkomat®", office_description: "Centrala i oddziały firmy", allegro_courier_description: "PaczkoPunkt", of: "z", points_loaded: "punktów załadowanych.", loading: "Ładowanie...", zoom_in_to_see_points: "Przybliż, aby wyświetlić punkty", phone_short: "tel. ", pay_by_link: "Formy płatności", is_next: 'Brak możliwości nadania bez etykiety "Wygodnie wprost z Paczkomat®"', show_filters: "Chcę zrealizować usługę...", MON: "Poniedziałek", TUE: "Wtorek", WED: "Środa", THU: "Czwartek", FRI: "Piątek", SAT: "Sobota", SUN: "Niedziela", show_on_map: "Pokaż na mapie", more: "więcej", next: "Następna", prev: "Poprzednia", no_points: "Brak punktów dla tej lokalizacji", parcel_247: "Dostępny: 24/7", pop_247: "Otwarty: 24/7", pop_247_details: "Otwarty", parcel_247_details: "Dostępny", payment_filter: "Płatność kartą", token_incorrect: "Nieprawidłowy token", token_incorrect_or_missing: "Brak lub nieprawidłowy token", token_incorrect_dangerous: "Uwaga! Użyto nieprawidłowy i niebezpieczny dla Twoich danych token." }, "pl-PL": { map: "Mapa", list: "Lista", search_by_city_or_address: "Szukaj po mieście, adresie i nazwie punktu", search_by_city_or_address_only: "Szukaj po mieście i adresie", search: "Szukaj", select_point: "Wybierz punkt...", parcel_locker: "Paczkomat®", parcel_locker_group: "Paczkomat® - typy", parcel_locker_only: "Paczkomat®", laundry_locker: "Pralniomat", avizo_locker: "Awizomaty24", pok: "PaczkoPunkt", pop: "PaczkoPunkt", allegro_courier: "PaczkoPunkt", nfk: "Oddział NFK", avizo: "Punkt awizo", office: "Lokalizacje biur", plan_route: "Zaplanuj trasę", details: "Szczegóły", select: "Wybierz", locationDescription: "Położenie", openingHours: "Godziny otwarcia", double_apm_info: "W pobliżu są też inne urządzenia Paczkomat®:", double_apm_info_details: "W pobliżu są też inne urządzenia Paczkomat®", easy_access_zone_info_details: "Strefa Ułatwionego Dostępu", screenless_info_details: "Wybierając Appkomat InPost upewnij się, że masz zainstalowaną aplikację InPost Mobile", pok_name: "PaczkoPunkt", pok_name_short: "PaczkoPunkt", parcel_locker_superpop: "PaczkoPunkt", parcel_locker_superpop_short: "PaczkoPunkt", allegro_courier_name: "PaczkoPunkt", parcel_locker_name: "Paczkomat®", avizo_name: "Punkt Awizo", pok_description: "PaczkoPunkt", avizo_description: "Punkt odbioru przesyłki listowej lub kurierskiej", parcel_locker_description: "Maszyna do nadawania i odbioru przesyłek 24/7", avizo_locker_description: "Maszyna do odbioru przesyłek awizowanych 24/7", air_on_airport: "Maszyna na lotnisku", air_outside_airport: "Maszyna poza lotniskiem", air_on_airport_description: "Maszyna znajdująca się na terenie lotniska", air_outside_airport_description: "Maszyna znajdująca się poza terenem lotniska", nfk_description: "Siedziba główna (magazyn) InPost w danym mieście lub regionie", pop_description: "Placówka, w której można nadać lub odebrać przesyłkę Paczkomat®", office_description: "Centrala i oddziały firmy", allegro_courier_description: "PaczkoPunkt", of: "z", points_loaded: "punktów załadowanych.", loading: "Ładowanie...", zoom_in_to_see_points: "Przybliż, aby wyświetlić punkty", phone_short: "tel. ", pay_by_link: "Formy płatności", is_next: 'Brak możliwości nadania bez etykiety "Wygodnie wprost z Paczkomat®"', show_filters: "Chcę zrealizować usługę...", MON: "Poniedziałek", TUE: "Wtorek", WED: "Środa", THU: "Czwartek", FRI: "Piątek", SAT: "Sobota", SUN: "Niedziela", show_on_map: "Pokaż na mapie", more: "więcej", next: "Następna", prev: "Poprzednia", no_points: "Brak punktów dla tej lokalizacji", parcel_247: "Dostępny: 24/7", pop_247: "Otwarty: 24/7", pop_247_details: "Otwarty", parcel_247_details: "Dostępny", payment_filter: "Płatność kartą", token_incorrect: "Nieprawidłowy token", token_incorrect_or_missing: "Brak lub nieprawidłowy token", token_incorrect_dangerous: "Uwaga! Użyto nieprawidłowy i niebezpieczny dla Twoich danych token." }, uk: { map: "Map", list: "List", search_by_city_or_address: "Type your city, address or machine name", search_by_city_or_address_only: "Type your city or address", search: "Search", select_point: "Select point...", parcel_locker: "Parcel Locker", laundry_locker: "Laundry Locker", avizo_locker: "Avizo Locker", pop: "Parcel Point", allegro_courier: "POP", nfk: "Oddział NFK", avizo: "Avizo point", office: "Office location", plan_route: "Plan your route", details: "Details", select: "Select", parcel_locker_name: "InPost Locker 24/7", locationDescription: "Location description", apmDoubled: "Doubled APM", openingHours: "Opening hours", pop_name: "Parcel Point", parcel_locker_superpop: "Parcel Point", avizo_name: "Avizo Point", pok_name: "Parcel Point", parcel_locker_superpop_short: "Parcel Point", pok_name_short: "POP", pop_description: "InPost PUDO location, where you can collect or send your parcel", avizo_description: "Point where you can collect your Parcel or Letter for which we left attempted delivery notice", parcel_locker_description: "Parcel Locker where you can collect or send your parcels 24/7", avizo_locker_description: "Parcel Locker where you can collect your parcels 24/7", air_on_airport: "Airport Locker", air_outside_airport: "Outside Airport Locker", air_on_airport_description: "Machine within airport area", air_outside_airport_description: "Machine outside of airport area", double_apm_info: "There are also other Parcel Locker nearby:", double_apm_info_details: "There are also other Parcel Locker nearby", easy_access_zone_info_details: "Easy Access Zone", screenless_info_details: "When choosing an Appkomat InPost, make sure that you have the InPost Mobile app installed", nfk_description: "Main InPost Hub in city or region", office_description: "InPost HQ", allegro_courier_description: "Punkty Nadania Allegro Kurier InPost", of: "z", points_loaded: "locations loaded", show_filters: "I want to use service...", loading: "Loading...", zoom_in_to_see_points: "Zoom in to view points", phone_short: "tel ", pay_by_link: "Payment options", is_next: "Only parcel collection and pre-labeled parcel lodgement available at this location", MON: "Monday", TUE: "Tuesday", WED: "Wednesday", THU: "Thursday", FRI: "Friday", SAT: "Saturday", SUN: "Sunday", show_on_map: "Show on map", more: "more", no_points: "There are no points at this location", parcel_247: "Available: 24/7", pop_247: "Open: 24/7", pop_247_details: "Open", parcel_247_details: "Available", payment_filter: "Card payment" }, it: { map: "Map", list: "List", search_by_city_or_address: "Type your city, address or machine name", search_by_city_or_address_only: "Type your city or address", search: "Search", select_point: "Select point...", parcel_locker: "Parcel Locker", laundry_locker: "Laundry Locker", avizo_locker: "Avizo Locker", pop: "Parcel Point", allegro_courier: "POP", nfk: "Oddział NFK", avizo: "Avizo point", office: "Office location", plan_route: "Plan your route", details: "Details", select: "Select", parcel_locker_name: "InPost Locker 24/7", locationDescription: "Location description", apmDoubled: "Doubled APM", openingHours: "Opening hours", pop_name: "Parcel Point", parcel_locker_superpop: "Parcel Point", avizo_name: "Avizo Point", pok_name: "Parcel Point", parcel_locker_superpop_short: "Parcel Point", pok_name_short: "POP", pop_description: "InPost PUDO location, where you can collect or send your parcel", avizo_description: "Point where you can collect your Parcel or Letter for which we left attempted delivery notice", parcel_locker_description: "Parcel Locker where you can collect or send your parcels 24/7", avizo_locker_description: "Parcel Locker where you can collect your parcels 24/7", air_on_airport: "Airport Locker", air_outside_airport: "Outside Airport Locker", air_on_airport_description: "Machine within airport area", air_outside_airport_description: "Machine outside of airport area", nfk_description: "Main InPost Hub in city or region", office_description: "InPost HQ", allegro_courier_description: "Punkty Nadania Allegro Kurier InPost", of: "z", points_loaded: "locations loaded", show_filters: "I want to use service...", loading: "Loading...", double_apm_info: "Ci sono anche altri armadietti per pacchi nelle vicinanze:", double_apm_info_details: "Ci sono anche altri armadietti per pacchi nelle vicinanze", easy_access_zone_info_details: "Easy Access Zone", screenless_info_details: "When choosing an Appkomat InPost, make sure that you have the InPost Mobile app installed", zoom_in_to_see_points: "Zoom in to view points", phone_short: "tel ", pay_by_link: "Payment options", is_next: "Only parcel collection and pre-labeled parcel lodgement available at this location", MON: "Monday", TUE: "Tuesday", WED: "Wednesday", THU: "Thursday", FRI: "Friday", SAT: "Saturday", SUN: "Sunday", show_on_map: "Show on map", more: "more", no_points: "There are no points at this location", parcel_247: "Available: 24/7", pop_247: "Open: 24/7", pop_247_details: "Open", parcel_247_details: "Available", payment_filter: "Pagamento con carta" }, fr: { map: "Carte", list: "Liste", search_by_city_or_address: "Saisissez votre ville, adresse ou casier à colis", search_by_city_or_address_only: "Saisissez votre ville ou adresse", search: "Rechercher", parcel_locker: "Consigne Abricolis", laundry_locker: "Casier de blanchisserie", avizo_locker: "Casier Avizo", pop: "Point de retrait InPost", allegro_courier: "POP", nfk: "Nouvelle Agence Courrier", avizo: "Point Avizo", office: "Bureau", plan_route: "Itinéraire", details: "Détails", select: "Selectionner", parcel_locker_name: "InPost Consigne Abricolis", locationDescription: "Où se situe la consigne?", apmDoubled: "Doubled APM", openingHours: "Heures d'ouverture", pop_name: "Point de service à la clientèle", parcel_locker_superpop: "Point de service à la clientèle", double_apm_info: "Il y a aussi d'autres casiers à colis à proximité:", double_apm_info_details: "Il y a aussi d'autres casiers à colis à proximité", easy_access_zone_info_details: "Easy Access Zone", avizo_name: "Point Avizo", avizo_description: "Point de réception de lettres et de colis après l'avisage", parcel_locker_description: "Abricolis InPost 24h/24 et 7j/7", avizo_locker_description: "Abricolis InPost 24h/24 et 7j/7", air_on_airport: "Distributeur de Colis Aéroport", air_outside_airport: "Distributeur de Colis en dehors Aéroport", air_on_airport_description: "Machine dans zone d'aéroport", air_outside_airport_description: "Machine à l'extérieur de zone d'aéroport", nfk_description: "Agence principale d'InPost", office_description: "Siège sociale d'InPost", allegro_courier_description: "Punkty Nadania Allegro Kurier InPost", of: "", pok_name: "Point de service client", pok_name_short: "POP", points_loaded: "Emplacement chargés", loading: "Chargement...", zoom_in_to_see_points: "Zoom avant pour les points de vue", phone_short: "tél ", pay_by_link: "Modes de paiement ", is_next: "Uniquement réception de colis et envoi de colis pré-étiquetés", show_filters: "Je veux mettre en place un service...", MON: "lundi", TUE: "mardi", WED: "mercredi", THU: "jeudi", FRI: "vendredi", SAT: "samedi", SUN: "dimanche", show_on_map: "Show on map", more: "more", no_points: "Il n'y a aucun point à cet endroit", parcel_247: "Disponible: 24/7", pop_247: "Ouvert: 24/7", pop_247_details: "Ouvert", parcel_247_details: "Disponible", payment_filter: "Paiement par carte", screenless_info_details: "When choosing an Appkomat InPost, make sure that you have the InPost Mobile app installed" }, ua: { map: "Карта", list: "Список", search_by_city_or_address: "Шукати по місту, адресі і назві поштомату", search_by_city_or_address_only: "Шукати по місту і адресі", search: "Шукати", select_point: "Виберіть пункт...", parcel_locker: "Поштомат", parcel_locker_group: "Типи поштоматів", parcel_locker_only: "Поштомат", laundry_locker: "Праннямат", avizo_locker: "Авізомат24", pok: "Поштопункт", pop: "Поштопункт", allegro_courier: "Поштопункт", nfk: "Відділ NFK", avizo: "Авізо пункт", office: "Місцезнаходження офісів", plan_route: "Сплануйте маршрут", details: "Подробиці", select: "Оберіть", locationDescription: "Місцезнаходження", openingHours: "Години роботи", double_apm_info: "Поблизу також знаходяться інші поштомати:", double_apm_info_details: "Поблизу також знаходяться інші поштомати:", easy_access_zone_info_details: "Зона спрощеного доступу", pok_name: "Поштопункт", pok_name_short: "Поштопункт", parcel_locker_superpop: "Поштопункт", parcel_locker_superpop_short: "Поштопункт", allegro_courier_name: "Поштопункт", parcel_locker_name: "Поштомат", avizo_name: "Авізо пункт", pok_description: "Поштопункт", avizo_description: "Пункт прийому листів або кур'єрської доставки", parcel_locker_description: "Автомат для відправки та отримання посилок 24/7", avizo_locker_description: "Цілодобовий автомат для збору відправлень", air_on_airport: "Автомат в аеропорту", air_outside_airport: "Автомат за межами аеропорту", air_on_airport_description: "Автомат знаходиться на території аеропорту", air_outside_airport_description: "Автомат знаходиться поза межами аеропорту", nfk_description: "Центральний офіс (склад) InPost в даному місті або регіоні", pop_description: " Об'єкт, де ви можете відправити або отримати відправлення із скриньки", office_description: "Центральний офіс і відділення компанії", allegro_courier_description: "Поштопункт", of: "z", points_loaded: "завантажених точок.", loading: "Завантаження...", zoom_in_to_see_points: "Збільшіть масштаб, щоб побачити точки", phone_short: "тел. ", pay_by_link: "Способи оплати", is_next: "Без етикетки немає доставки «Зручно прямо з поштомату»", show_filters: "Хочу виконати послугу...", MON: "Понеділок", TUE: "Вівторок", WED: "Середа", THU: "Четвер", FRI: "П’ятниця", SAT: "Субота", SUN: "Неділя", show_on_map: "Показати на мапі", more: "більше", next: "Наступна", prev: "Попередня", no_points: "Відсутні точки у цьому місці", parcel_247: "Доступний: 24/7", pop_247: "Відкритий: 24/7", pop_247_details: "Відкритий", parcel_247_details: "Доступний", payment_filter: "Оплата карткою", screenless_info_details: "Обираючи Аппкомат InPost, переконайтеся, що у вас встановлений застосунок InPost Mobile" } }, l = n(3), c = document.documentElement.style, u = "ActiveXObject" in window, f = (u && document.addEventListener, "msLaunchUri" in navigator && document, _("webkit"), _("android")), p = _("android 2") || _("android 3"), h = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), d = (f && _("Google") && h < 537 && window, window.opera, _("chrome")), m = (_("gecko"), !d && _("safari"), _("phantom"), navigator.platform.indexOf("Win"), "WebKitCSSMatrix" in window && new window.WebKitCSSMatrix, window.L_DISABLE_3D, "undefined" != typeof orientation || _("mobile"), !window.PointerEvent && window.MSPointerEvent), g = !(!window.PointerEvent && !m); function _(t) { return navigator.userAgent.toLowerCase().indexOf(t) >= 0 } function y(t) { return (y = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t })(t) } !(!window.L_NO_TOUCH && (g || "ontouchstart" in window || window.DocumentTouch && (document, window.DocumentTouch)), window.devicePixelRatio || (window.screen.deviceXDPI, window.screen.logicalXDPI), document.createElement("canvas").getContext, !(!document.createElementNS || !("svg", document.createElementNS("http://www.w3.org/2000/svg", "svg")).createSVGRect)) && function () { try { var t = document.createElement("div"); t.innerHTML = ''; var e = t.firstChild; e.style.behavior = "url(#default#VML)", e && e.adj } catch (t) { return !1 } }(), n.d(e, "l", (function () { return b })), n.d(e, "k", (function () { return k })), n.d(e, "n", (function () { return P })), n.d(e, "m", (function () { return x })), n.d(e, "d", (function () { return L })), n.d(e, "b", (function () { return C })), n.d(e, "e", (function () { return O })), n.d(e, "c", (function () { return S })), n.d(e, "a", (function () { return T })), n.d(e, "o", (function () { return E })), n.d(e, "j", (function () { return j })), n.d(e, "f", (function () { return A })), n.d(e, "h", (function () { return I })), n.d(e, "g", (function () { return N })), n.d(e, "i", (function () { return B })); var v = {}, w = null; v = n(56).leafletMap, n(61).googleMap, w = n(181).Loader, Array.prototype.find || (Array.prototype.find = function (t) { if (null == this) throw new TypeError("Array.prototype.find called on null or undefined"); if ("function" != typeof t) throw new TypeError("predicate must be a function"); for (var e, n = Object(this), i = n.length >>> 0, o = arguments[1], a = 0; a < i; a++)if (e = n[a], t.call(o, e, a, n)) return e }), Array.prototype.indexOf = function (t) { var e = this.length, n = Number(arguments[1]) || 0; for ((n = n < 0 ? Math.ceil(n) : Math.floor(n)) < 0 && (n += e); n < e; n++)if (n in this && this[n] === t) return n; return -1 }, Array.prototype.filter = function (t) { var e = this.length; if ("function" != typeof t) throw new TypeError; for (var n = new Array, i = arguments[1], o = 0; o < e; o++)if (o in this) { var a = this[o]; t.call(i, a, o, this) && n.push(a) } return n }; var b = function (t) { return function (e) { e.addEventListener("click", t) } }, k = function (t) { return function (e) { e.addEventListener("change", t) } }, P = function (t) { return function (e) { e.addEventListener("load", t) } }, x = function (t) { return function (e) { e.addEventListener("keyup", t) } }, L = function (t, e) { e || (e = window.location.href), t = t.replace(/[\[\]]/g, "\\$&"); var n = new RegExp("[?&]" + t + "(=([^&#]*)|&|#|$)").exec(e); return n ? n[2] ? decodeURIComponent(n[2].replace(/\+/g, " ")) : "" : null }, C = { LIST: "list", MAP: "map", update: function (t) { window.easyPack.choosenView = t }, get: function () { return void 0 === window.easyPack.choosenView || window.easyPack.choosenView !== this.LIST ? this.MAP : this.LIST }, isMap: function () { return this.get() === this.MAP } }, O = { checkArguments: function (t, e, n) { if (n.length != e) throw t + " function requires " + e + " arguments (" + n.length + " given)." }, serialize: function (t, e) { var n = []; for (var i in t) if (t.hasOwnProperty(i)) { var o = e ? e + "[" + i + "]" : i, a = t[i]; "object" == y(a) ? a instanceof Array ? n.push(encodeURIComponent(o) + "=" + encodeURIComponent(a.join(","))) : n.push(this.serialize(a, o)) : n.push(encodeURIComponent(o) + "=" + encodeURIComponent(a)) } return n.join("&") }, merge: function (t, e) { var n = this, i = Array.isArray(e), o = i && [] || {}; return i ? (t = t || [], e.forEach((function (e, i) { void 0 === o[i] ? o[i] = e : "object" === y(e) ? o[i] = n.merge(t[i], e) : -1 === t.indexOf(e) && o.push(e) }))) : (t && "object" === y(t) && Object.keys(t).forEach((function (e) { o[e] = t[e] })), Object.keys(e).forEach((function (i) { "object" === y(e[i]) && e[i] && t[i] ? o[i] = n.merge(t[i], e[i]) : o[i] = e[i] }))), o }, in: function (t, e) { return e.includes(t) }, findObjectByPropertyName: function (t, e) { var n; return t.forEach((function (t) { Object.keys(t).forEach((function (i) { i === e && (n = t[i]) })) })), n }, intersection: function (t, e) { for (var n = [], i = 0; i < t.length; i++)for (var o = 0; o < e.length; o++)if (t[i] == e[o]) { n.push(t[i]); break } return n }, contains: function (t, e, n) { for (var i = 0; t.length > i; i++)if (O.in(t[i], e)) { n(); break } }, all: function (t, e) { for (var n = !0, i = 0; i < t.length; i++)-1 === e.indexOf(t[i]) && (n = !1); return n }, asyncLoad: function (t, e, n) { if (document.body && (r = t, !document.querySelector('script[src="' + r + '"]'))) { var i = e || "text/javascript", a = document.createElement("script"); n && (a.id = n), a.async = "async", a.defer = "defer", a.type = i, a.src = t, document.body.appendChild(a) } else o()((function () { O.asyncLoad(t, e, n) }), 250); var r }, asyncLoadCss: function (t, e, n) { if (document.body && (r = t, !document.querySelector('link[href="' + r + '"]'))) { var i = e || "text/css", a = document.createElement("link"); n && (a.id = n), a.rel = "stylesheet", a.type = i, a.href = t, document.body.appendChild(a) } else o()((function () { O.asyncLoadCss(t, e, n) }), 250); var r }, loadWebFonts: function () { window.WebFontConfig = { google: { families: ["Open+Sans:600,400:latin"] } } }, calculateDistance: function (t, e) { var n = this.deg2rad(t[0] - e[0]), i = this.deg2rad(t[1] - e[1]), o = Math.sin(n / 2) * Math.sin(n / 2) + Math.cos(this.deg2rad(t[0])) * Math.cos(this.deg2rad(e[0])) * Math.sin(i / 2) * Math.sin(i / 2); return 2 * Math.atan2(Math.sqrt(o), Math.sqrt(1 - o)) * 6371 }, deg2rad: function (t) { return t * (Math.PI / 180) }, haveSameValues: function (t, e) { var n = !0; return e.forEach((function (e) { t.includes(e) || (n = !1) })), t.forEach((function (t) { e.includes(t) || (n = !1) })), n }, diffOfArrays: function (t, e) { return Array.prototype.diff = function (t) { return this.filter((function (e) { return t.indexOf(e) < 0 })) }, t.diff(e) }, dateDiffInDays: function (t, e) { var n = t.getTime(), i = e.getTime() - n; return Math.round(i / 864e5) }, getMarkerConditionByDays: function (t, e) { return window.easyPackConfig.points.markerConditions.filter((function (t) { return "location_date" === t.type })).sort((function (t, e) { return t.params.days - e.params.days })).find((function (e) { return e.params.days >= O.dateDiffInDays(new Date(t.location_date), new Date) })) || e }, getMarkerConditionByPartnerId: function (t, e) { return window.easyPackConfig.points.markerConditions.filter((function (t) { return "partner_id" === t.type })).find((function (e) { return e.params.partner_id === t.partner_id })) || e }, pointCaption: function (t) { if (void 0 !== t.partner_id && window.easyPackConfig.points.markerConditions.length > 0) { var e = O.getMarkerConditionByPartnerId(t, !1); if (e && e.name) return E(e.name).replace("%name%", "") } return E("pok" === t.type[0].toLowerCase() || "pop" === t.type[0].toLowerCase() ? "parcel_locker_superpop" : t.type[0].toLowerCase()) }, pointType: function (t, e) { var n = a.easyPackConfig.points.subtypes; if (n.length > 0 && void 0 !== n[0]) for (var i = 0; i < n.length; i++) { var o = n[i]; if (t.type.includes(o)) return E(o + "_short") } return O.in("allegro_courier", t.type) && "allegro_courier" === e[e.length - 1] ? E("allegro_courier_name") : O.in("pok", t.type) || O.in("pop", t.type) ? E("pok_name_short") : O.in("avizo", t.type) ? E("avizo_name") : O.in("parcel_locker", t.type) ? E("parcel_locker_name") : "" }, sortCurrentPointsByDistance: function (t, e) { if (t.length > 0) return t.sort((function (t, n) { var i = I() ? v.map.getCenter().lat : e.getCenter().lat(), o = I() ? v.map.getCenter().lng : e.getCenter().lng(); return O.calculateDistance([i, o], [t.location.latitude, t.location.longitude]) - O.calculateDistance([i, o], [n.location.latitude, n.location.longitude]) })) }, uniqueElementInArray: function (t, e, n) { return n.indexOf(t) === e }, pointName: function (t, e) { var n = a.easyPackConfig.points.subtypes; if (void 0 !== t.partner_id && window.easyPackConfig.points.markerConditions.length > 0) { var i = O.getMarkerConditionByPartnerId(t); if (i && i.name) return E(i.name).replace("%name%", t.name) } if (n.length > 0 && void 0 !== n[0]) for (var o = 0; o < n.length; o++) { var r = n[o]; if (O.in(r, t.type)) return E(r) + " " + t.name } return O.in("allegro_courier", t.type) && "allegro_courier" === e[e.length - 1] ? E("allegro_courier_name") : O.in("pok", t.type) || O.in("pop", t.type) ? E("pok_name") + " " + t.name : O.in("avizo", t.type) ? E("avizo_name") : O.in("parcel_locker", t.type) ? E("parcel_locker_name") + " " + t.name : t.name }, openingHours: function (t) { if (null !== t) return t.split(",").join(", ").replace("PT", "PT ").replace("SB", "SB ").replace("NIEDZIŚW", "NIEDZIŚW ") }, assetUrl: function (t) { return a.easyPackConfig.assetsServer && -1 === t.indexOf("http") ? a.easyPackConfig.assetsServer + t : t }, routeLink: function (t, e) { return "https://www.google.com/maps/dir/" + (null === t ? "" : t[0] + "," + t[1]) + "/" + e.latitude + "," + e.longitude }, hasCustomMapAndListInRow: function () { return window.easyPackConfig.customMapAndListInRow.enabled }, getPaginationPerPage: function () { return window.easyPackConfig.customMapAndListInRow.itemsPerPage } }, M = function (t, e) { for (var n = 0; n < t.length; n++) { var i = t[n]; e[i] = O.assetUrl(e[i]) } }, S = function (t, e) { if (window.easyPackUserConfig = t, window.easyPackConfig = a.easyPackConfig, void 0 === window.easyPackConfig.region && (window.easyPackConfig.region = t.defaultLocale), !e) { var n = t.instance || t.defaultLocale || window.easyPackConfig.defaultLocale; window.easyPackConfig = O.merge(window.easyPackConfig, r.instanceConfig[n] || {}) } window.easyPackConfig = O.merge(window.easyPackConfig, t), Array.isArray(window.easyPackConfig.points.fields) && (window.easyPackConfig.points.fields = l.typesHelpers.getUniqueValues(window.easyPackConfig.points.fields.concat(["name", "type", "location", "address", "functions"]))), L("names"), M(["infoboxLibraryUrl", "markersUrl", "iconsUrl", "loadingIcon"], window.easyPackConfig), M(["typeSelectedIcon", "typeSelectedRadio", "closeIcon", "selectIcon", "detailsIcon", "pointerIcon", "tooltipPointerIcon", "mapIcon", "listIcon", "pointIcon", "pointIconDark"], window.easyPackConfig.map); for (var i = 0; i < window.easyPackConfig.map.clusterer.styles.length; i++)M(["url"], window.easyPackConfig.map.clusterer.styles[i]) }, T = function t(e, n, i) { O.checkArguments("ajax()", 3, arguments); var o = new t.client({ async: !0 }); return o.open(n, e), o.onreadystatechange = function () { 4 === o.readyState && 200 === o.status && i(JSON.parse(o.responseText)) }, o.send(null), o }; T.client = function () { if (window.XMLHttpRequest) return new XMLHttpRequest; if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP"); throw "Ajax not supported." }; var E = function (t) { return s[window.easyPackConfig.locale || easyPack.locale][t] || t }, j = function () { switch (window.easyPack.googleMapsApi && window.easyPack.googleMapsApi.initialized || (window.easyPack.googleMapsApi = {}), window.easyPack.leafletMapsApi && window.easyPack.leafletMapsApi.initialized || (window.easyPack.leafletMapsApi = {}), window.easyPackConfig.mapType) { case "google": F(); break; case "osm": default: z() } }, z = function () { easyPack.googleMapsApi.ready = !0, N() && (easyPack.googleMapsApi.ready = !1, F()), window.easyPack.leafletMapsApi && window.easyPack.leafletMapsApi.initialized || (window.easyPack.leafletMapsApi.initialized = !0, easyPack.leafletMapsApi.ready = !0) }, A = function () { return window.easyPackConfig && "google" === window.easyPackConfig.mapType }, I = function () { return window.easyPackConfig && "osm" === window.easyPackConfig.mapType }, N = function () { return window.easyPackConfig && "google" === window.easyPackConfig.searchType }, B = function () { return window.easyPackConfig && "osm" === window.easyPackConfig.searchType }, F = function () { window.easyPack.googleMapsApi && window.easyPack.googleMapsApi.initialized || (window.easyPack.googleMapsApi.initialized = !0, window.easyPack.googleMapsApi.initialize = function () { O.asyncLoad(window.easyPackConfig.infoboxLibraryUrl), easyPack.googleMapsApi.ready = !0 }, new w(window.easyPackConfig.map.googleKey, { libraries: ["places"] }).load().then((function (t) { window.easyPack.googleMapsApi.initialize() }))) } }, function (t, e, n) { var i = n(5), o = n(12), a = n(22), r = n(18), s = n(25), l = function (t, e, n) { var c, u, f, p, h = t & l.F, d = t & l.G, m = t & l.S, g = t & l.P, _ = t & l.B, y = d ? i : m ? i[e] || (i[e] = {}) : (i[e] || {}).prototype, v = d ? o : o[e] || (o[e] = {}), w = v.prototype || (v.prototype = {}); for (c in d && (n = e), n) f = ((u = !h && y && void 0 !== y[c]) ? y : n)[c], p = _ && u ? s(f, i) : g && "function" == typeof f ? s(Function.call, f) : f, y && r(y, c, f, t & l.U), v[c] != f && a(v, c, p), g && w[c] != f && (w[c] = f) }; i.core = o, l.F = 1, l.G = 2, l.S = 4, l.P = 8, l.B = 16, l.W = 32, l.U = 64, l.R = 128, t.exports = l }, function (t, e, n) { "use strict"; n.r(e), n.d(e, "typesHelpers", (function () { return o })); var i = n(1), o = { getExtendedCollection: function () { return easyPackConfig.extendedTypes || [] }, isArrayContaintsPropWithSearchValue: function (t, e, n, i, o) { if (void 0 === t) return !1; if (!t.length) return !1; var a = this, r = !1; return t.forEach((function (t) { Object.keys(t).forEach((function (s, l) { s === e && t[s][n] === i && !1 === r && (r = !0), l === Object.keys(t).length - 1 && t[s][o] && !1 === r && (r = a.isArrayContaintsPropWithSearchValue(t[s][o], e, n, i, o)) })) })), r }, seachInArrayOfObjectsKeyWithCondition: function (t, e, n, i) { var o = []; if (void 0 === t) return o; if (!t.length) return o; var a = this; return t.forEach((function (t) { Object.keys(t).forEach((function (r, s) { t[r][e] === n && o.push(r), s === Object.keys(t).length - 1 && t[r][i] && (o = o.concat(a.seachInArrayOfObjectsKeyWithCondition(t[r][i], e, n, i))) })) })), o }, findParentObjectsByChildType: function (t, e) { var n; return t.forEach((function (t) { Object.keys(t).forEach((function (i) { t[i].childs && t[i].childs.filter((function (o) { o === e && (n = t[i]) })) })) })), n }, isParent: function (t, e) { var n = !1; return !!e && (e.forEach((function (e) { void 0 !== e && Object.keys(e).forEach((function (i) { e[i].childs && t === i && (n = !0) })) })), n) }, getUniqueValues: function (t) { for (var e = [], n = 0; n < t.length; n++)-1 === e.indexOf(t[n]) && e.push(t[n]); return e }, removeDuplicates: function (t, e) { return Array.from(t.reduce((function (t, n) { return t.set(n[e], n) }), new Map).values()) }, getStringFromObjectProperties: function (t, e) { var n = {}; return t.forEach((function (t) { Array.isArray(e[t]) && (e[t] = e[t].sort()), n[t] = e[t] })), JSON.stringify(n) }, getSpecifiedObjectProperties: function (t, e) { var n = {}; return t.forEach((function (t) { n[t] = e[t] })), n }, getAllAdditionalTypes: function (t) { var e = []; if (void 0 === t) return e; if (!t.length) return e; var n = this; return t.forEach((function (t) { Object.keys(t).forEach((function (i, o) { t[i].additional && (e = e.concat(t[i].additional)), o === Object.keys(t).length - 1 && t[i].childs && (e = e.concat(n.seachInArrayOfObjectsKeyWithCondition(t[i].childs, "additional", "childs"))) })) })), n.getUniqueValues(e) }, any: function (t, e) { return t.some((function (t) { return e.some((function (e) { return t === e })) })) }, getObjectForType: function (t, e) { var n = this, i = null; return e.forEach((function (e) { Object.keys(e).forEach((function (o) { o === t && (i = e[o]), void 0 !== e[o].childs && null === i && n.getObjectForType(t, e[o].childs) })) })), i }, isAllChildSelected: function (t, e, n) { if (void 0 === n || void 0 === n.childs) return !1; var o = !0, a = this; return n.childs.some((function (e, i) { void 0 === e[t] && n.childs.length === i - 1 && n.childs.unshift(JSON.parse('{"' + a.getNameForType(t) + '": { "enabled": "true"}}')) })), n.childs.forEach((function (t) { Object.keys(t).forEach((function (t) { i.e.in(a.getNameForType(t), e) || (o = !1) })) })), o }, in: function (t, e) { for (var n = [], i = 0; i < e.length; i++)n[i] = (e[i] || "").replace("_only", ""); return n.indexOf(t.valueOf()) >= 0 }, isNoOneChildSelected: function (t, e, n) { if (void 0 === n || void 0 === n.childs) return !1; var o = !0, a = this; return n.childs.some((function (e, i) { void 0 === e[t] && n.childs.length === i - 1 && n.childs.unshift(JSON.parse('{"' + a.getNameForType(t) + '": { "enabled": "true"}}')) })), n.childs.forEach((function (t) { Object.keys(t).forEach((function (t) { i.e.in(a.getNameForType(t), e) && (o = !1) })) })), o }, getAllChildsForGroup: function (t, e) { var n = this, i = []; return e.forEach((function (e) { void 0 !== e && Object.keys(e).forEach((function (o, a) { e[o].childs && n.getRealNameForType(t) === o && e[o].childs.forEach((function (t) { i = i.concat(Object.keys(t).map((function (t) { return n.getNameForType(t) }))) })) })) })), i }, getParentIfAvailable: function (t, e) { var n = null, i = this; return e.forEach((function (e) { Object.keys(e).forEach((function (o) { i.getNameForType(o) === t && (n = o), void 0 !== e[o].childs && null === n && e[o].childs.forEach((function (e) { i.in(t, Object.keys(e)) && (n = o) })) })) })), n }, isOnlyAdditionTypes: function (t, e) { var n = this, o = !0; return t.some((function (t) { i.e.in(t, n.getAllAdditionalTypes(e)) || (o = !1) })), o }, getNameForType: function (t) { switch (t) { case "parcel_locker": return "parcel_locker_only"; default: return t } }, getRealNameForType: function (t) { switch (t) { case "parcel_locker_only": return "parcel_locker"; default: return t } }, sortByPriorities: function (t) { var e = this; return t.sort((function (t, n) { return e.getPriorityForTypes(t) > e.getPriorityForTypes(n) ? -1 : e.getPriorityForTypes(t) < e.getPriorityForTypes(n) ? 1 : 0 })) }, getPriorityForTypes: function (t) { switch (t) { case "parcel_locker": return 1; case "pop": return 2; case "pok": return 3; case "parcel_locker_superpop": return 9; default: return 0 } } } }, function (t, e, n) { var i = n(154), o = n(155), a = n(116), r = o((function (t, e, n) { return i(t, a(e) || 0, n) })); t.exports = r }, function (t, e) { var n = t.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); "number" == typeof __g && (__g = n) }, function (t, e) { t.exports = function (t) { try { return !!t() } catch (t) { return !0 } } }, function (t, e, n) { var i = n(8); t.exports = function (t) { if (!i(t)) throw TypeError(t + " is not an object!"); return t } }, function (t, e) { t.exports = function (t) { return "object" == typeof t ? null !== t : "function" == typeof t } }, function (t, e, n) { var i = n(63)("wks"), o = n(39), a = n(5).Symbol, r = "function" == typeof a; (t.exports = function (t) { return i[t] || (i[t] = r && a[t] || (r ? a : o)("Symbol." + t)) }).store = i }, function (t, e, n) { "use strict"; n.d(e, "c", (function () { return f })), n.d(e, "b", (function () { return p })), n.d(e, "a", (function () { return h })), n.d(e, "e", (function () { return d })), n.d(e, "d", (function () { return m })); var i = n(4), o = n.n(i), a = n(35), r = n(1), s = n(3), l = n(16); function c(t) { return function (t) { if (Array.isArray(t)) { for (var e = 0, n = new Array(t.length); e < t.length; e++)n[e] = t[e]; return n } }(t) || function (t) { if (Symbol.iterator in Object(t) || "[object Arguments]" === Object.prototype.toString.call(t)) return Array.from(t) }(t) || function () { throw new TypeError("Invalid attempt to spread non-iterable instance") }() } function u(t) { return (u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t })(t) } function f(t, e, n) { Object(a.b)(t, (function (t) { e(t) }), null, n) } function p(t, e, n, i, o, a) { n.relative_point = t, n.max_distance = e, n.limit = n.limit || window.easyPackConfig.map.closestLimit, window.easyPackConfig.points.showPoints.length > 0 && (delete n.max_distance, n.name = window.easyPackConfig.points.showPoints.join(",")), new g(n, o || {}, i, a).closest() } function h(t, e, n, i, o, a) { n.relative_point = t, n.per_page = window.easyPackConfig.map.preloadLimit, new g(n, a || {}, i, o).allAsync() } function d(t, e) { var n = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2], i = n ? ".svg" : ".png"; if (window.easyPackConfig.points.markerConditions.length > 0) { var o = r.e.getMarkerConditionByPartnerId(t, r.e.getMarkerConditionByDays(t, !1)); if (o && o.icon_name) return window.easyPackConfig.markersUrl + o.icon_name + i + "?" + window.easyPack.version } return window.easyPackConfig.markersUrl + _(t, []).replace("_only", "") + i + "?" + window.easyPack.version } var m = function (t, e, n) { if (window.easyPackConfig.points.markerConditions.length > 0) { var i = r.e.getMarkerConditionByPartnerId(t, r.e.getMarkerConditionByDays(t, !1)); if (i && i.icon_name) return window.easyPackConfig.iconsUrl + i.icon_name + ".svg?" + window.easyPack.version } return window.easyPackConfig.iconsUrl + _(t, []).replace("_only", "") + ".svg?" + window.easyPack.version }; function g(t, e, n, i) { this.callback = n, this.abortCallback = i, this.mapObj = e; var o = t.optimized ? [window.easyPackConfig.points.fields[1], window.easyPackConfig.points.fields[2]] : window.easyPackConfig.points.fields; return this.params = { fields: o, status: ["Operating"] }, t.functions && 0 === t.functions.length && delete t.functions, !0 === window.easyPackConfig.showOverLoadedLockers && this.params.status.push("Overloaded"), window.easyPackConfig.showNonOperatingLockers && this.params.status.push("NonOperating"), this.params = r.e.merge(this.params, t), this.params.status = c(new Set(this.params.status)), this } function _(t, e) { if (t.type.length > 1) { if (t.type = s.typesHelpers.sortByPriorities(t.type), e && e.length > 0 && void 0 !== e[0]) { e = s.typesHelpers.sortByPriorities(e); for (var n = 0; n < t.type.length; n++) { var i = t.type[n].replace("_only", ""); if (s.typesHelpers.in(i, e)) return i } return t.type[0] } return t.type[0] } return t.type[0] } g.prototype = { closest: function () { var t = this; Object(a.c)(t.params, (function (e) { t.callback(e.items) })) }, allAsync: function () { var t = this, e = 1, n = 0; t.allPoints = [], t.params.type = s.typesHelpers.getUniqueValues(t.params.type); var i = window.easyPackConfig.apiEndpoint, f = "points_" + i, p = "last_modified_" + i, h = "requests_data_" + i, d = []; function m() { for (var i = function (i) { if (e > n) return { v: void 0 }; t.params.page = e, Object(a.c)(t.params, (function (o) { var a; (a = t.allPoints).push.apply(a, c(o.items)), t.callback(o), d.push(o.page), d.length === n && l.localStorageHelpers.putCompressed(f, t.allPoints.filter((function (t) { return !(t.status && "Removed" === t.status) }))), i === window.easyPackConfig.map.requestLimit && n >= e && m() }), t.abortCallback), e++ }, o = 0; o < window.easyPackConfig.map.requestLimit; o++) { var r = i(o); if ("object" === u(r)) return r.v } } t.params.page = e, window.easyPackConfig.points.functions.length > 0 && (t.params = r.e.merge(this.params, { functions: window.easyPackConfig.points.functions })); var g = l.localStorageHelpers.getDecompressed(h), _ = window.easyPackConfig.points.showPoints && window.easyPackConfig.points.showPoints.length > 0, y = !1, v = ["functions", "status", "fields", "type"], w = s.typesHelpers.getStringFromObjectProperties(v, t.params); if ("" !== g) { var b = s.typesHelpers.getStringFromObjectProperties(v, g); (y = b !== w) && (l.localStorageHelpers.remove(f), l.localStorageHelpers.putCompressed(h, s.typesHelpers.getSpecifiedObjectProperties(v, t.params))) } else l.localStorageHelpers.putCompressed(h, s.typesHelpers.getSpecifiedObjectProperties(v, t.params)); window.easyPackConfig.filters && delete t.params.functions; var k = l.localStorageHelpers.getDecompressed(f), P = 0; null !== k && k.length > 0 && (y || (t.params.updated_from = new Date(l.localStorageHelpers.get(p)).toISOString(), t.params.updated_to = (new Date).toISOString(), t.params.per_page = 10, t.params.fields += ",status", delete t.params.status), P = 1e3, _ || t.callback({ items: r.e.sortCurrentPointsByDistance(k, t.mapObj).slice(0, 100), count: 100 })), window.easyPackConfig.points.showPoints.length > 0 && (delete t.params.updated_from, delete t.params.updated_to, t.params.per_page = window.easyPackConfig.map.preloadLimit, t.params.name = window.easyPackConfig.points.showPoints.join(",")), o()((function () { Object(a.c)(t.params, (function (i) { var a; if (i.status && 404 === i.status && "invalid_date" === i.key) return l.localStorageHelpers.remove(p), l.localStorageHelpers.remove(f), delete t.params.updated_from, delete t.params.updated_to, t.params.per_page = window.easyPackConfig.map.preloadLimit, t.params.status = ["Operating"], !0 === window.easyPackConfig.showOverLoadedLockers && t.params.status.push("Overloaded"), window.easyPackConfig.showNonOperatingLockers && t.params.status.push("NonOperating"), o()((function () { t.allAsync() }), 20), !1; var r = 0; if (null !== k && (r = k.length), (a = t.allPoints).push.apply(a, c(i.items)), d.push(i.page), k && r > 0 && !_) { if (null !== l.localStorageHelpers.get(p)) { var u = i.items.length > 0, h = [].concat(c(k), c(i.items)).reverse(), g = u ? s.typesHelpers.removeDuplicates(h, "name") : h; t.allPoints = g.filter((function (t) { return !(t.status && "Removed" === t.status) })), u && i.total_pages < 2 && l.localStorageHelpers.putCompressed(f, t.allPoints), l.localStorageHelpers.put(p, (new Date).toISOString()) } var v = window.easyPackConfig.map.chunkLimit, w = t.allPoints.slice(0, v), b = w.length, P = t.allPoints.length; y ? P = i.count : P < P + i.count - i.items.length && (P += i.count - i.items.length), t.callback({ items: w, count: P }); for (var x = 1; x < Math.ceil(P / v); x++)var L = o()((function () { var e = b, n = b + v, i = t.allPoints.slice(e, n); t.callback({ items: i, count: P }), (b += i.length) === P && clearTimeout(L) }), x * window.easyPackConfig.map.timeOutPerChunkFromCache) } else _ || (l.localStorageHelpers.remove(f), l.localStorageHelpers.put(p, (new Date).toISOString()), l.localStorageHelpers.putCompressed(f, i.items)), t.callback(i); void 0 === (n = i.total_pages) && (n = 0), e++, n > 0 && m() }), t.abortCallback) }), P) } } }, function (t, e, n) { var i = n(27), o = Math.min; t.exports = function (t) { return t > 0 ? o(i(t), 9007199254740991) : 0 } }, function (t, e) { var n = t.exports = { version: "2.6.11" }; "number" == typeof __e && (__e = n) }, function (t, e, n) { t.exports = !n(6)((function () { return 7 != Object.defineProperty({}, "a", { get: function () { return 7 } }).a })) }, function (t, e, n) { var i = n(7), o = n(119), a = n(36), r = Object.defineProperty; e.f = n(13) ? Object.defineProperty : function (t, e, n) { if (i(t), e = a(e, !0), i(n), o) try { return r(t, e, n) } catch (t) { } if ("get" in n || "set" in n) throw TypeError("Accessors not supported!"); return "value" in n && (t[e] = n.value), t } }, function (t, e, n) { !function (t) { "use strict"; var e = Object.freeze; function n(t) { var e, n, i, o; for (n = 1, i = arguments.length; n < i; n++)for (e in o = arguments[n]) t[e] = o[e]; return t } Object.freeze = function (t) { return t }; var i = Object.create || function () { function t() { } return function (e) { return t.prototype = e, new t } }(); function o(t, e) { var n = Array.prototype.slice; if (t.bind) return t.bind.apply(t, n.call(arguments, 1)); var i = n.call(arguments, 2); return function () { return t.apply(e, i.length ? i.concat(n.call(arguments)) : arguments) } } var a = 0; function r(t) { return t._leaflet_id = t._leaflet_id || ++a, t._leaflet_id } function s(t, e, n) { var i, o, a, r; return r = function () { i = !1, o && (a.apply(n, o), o = !1) }, a = function () { i ? o = arguments : (t.apply(n, arguments), setTimeout(r, e), i = !0) } } function l(t, e, n) { var i = e[1], o = e[0], a = i - o; return t === i && n ? t : ((t - o) % a + a) % a + o } function c() { return !1 } function u(t, e) { return e = void 0 === e ? 6 : e, +(Math.round(t + "e+" + e) + "e-" + e) } function f(t) { return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "") } function p(t) { return f(t).split(/\s+/) } function h(t, e) { for (var n in t.hasOwnProperty("options") || (t.options = t.options ? i(t.options) : {}), e) t.options[n] = e[n]; return t.options } function d(t, e, n) { var i = []; for (var o in t) i.push(encodeURIComponent(n ? o.toUpperCase() : o) + "=" + encodeURIComponent(t[o])); return (e && -1 !== e.indexOf("?") ? "&" : "?") + i.join("&") } var m = /\{ *([\w_-]+) *\}/g; function g(t, e) { return t.replace(m, (function (t, n) { var i = e[n]; if (void 0 === i) throw new Error("No value provided for variable " + t); return "function" == typeof i && (i = i(e)), i })) } var _ = Array.isArray || function (t) { return "[object Array]" === Object.prototype.toString.call(t) }; function y(t, e) { for (var n = 0; n < t.length; n++)if (t[n] === e) return n; return -1 } var v = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="; function w(t) { return window["webkit" + t] || window["moz" + t] || window["ms" + t] } var b = 0; function k(t) { var e = +new Date, n = Math.max(0, 16 - (e - b)); return b = e + n, window.setTimeout(t, n) } var P = window.requestAnimationFrame || w("RequestAnimationFrame") || k, x = window.cancelAnimationFrame || w("CancelAnimationFrame") || w("CancelRequestAnimationFrame") || function (t) { window.clearTimeout(t) }; function C(t, e, n) { if (!n || P !== k) return P.call(window, o(t, e)); t.call(e) } function O(t) { t && x.call(window, t) } var M = (Object.freeze || Object)({ freeze: e, extend: n, create: i, bind: o, lastId: a, stamp: r, throttle: s, wrapNum: l, falseFn: c, formatNum: u, trim: f, splitWords: p, setOptions: h, getParamString: d, template: g, isArray: _, indexOf: y, emptyImageUrl: v, requestFn: P, cancelFn: x, requestAnimFrame: C, cancelAnimFrame: O }); function S() { } S.extend = function (t) { var e = function () { this.initialize && this.initialize.apply(this, arguments), this.callInitHooks() }, o = e.__super__ = this.prototype, a = i(o); for (var r in a.constructor = e, e.prototype = a, this) this.hasOwnProperty(r) && "prototype" !== r && "__super__" !== r && (e[r] = this[r]); return t.statics && (n(e, t.statics), delete t.statics), t.includes && (function (t) { if ("undefined" != typeof L && L && L.Mixin) { t = _(t) ? t : [t]; for (var e = 0; e < t.length; e++)t[e] === L.Mixin.Events && console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.", (new Error).stack) } }(t.includes), n.apply(null, [a].concat(t.includes)), delete t.includes), a.options && (t.options = n(i(a.options), t.options)), n(a, t), a._initHooks = [], a.callInitHooks = function () { if (!this._initHooksCalled) { o.callInitHooks && o.callInitHooks.call(this), this._initHooksCalled = !0; for (var t = 0, e = a._initHooks.length; t < e; t++)a._initHooks[t].call(this) } }, e }, S.include = function (t) { return n(this.prototype, t), this }, S.mergeOptions = function (t) { return n(this.prototype.options, t), this }, S.addInitHook = function (t) { var e = Array.prototype.slice.call(arguments, 1), n = "function" == typeof t ? t : function () { this[t].apply(this, e) }; return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(n), this }; var T = { on: function (t, e, n) { if ("object" == typeof t) for (var i in t) this._on(i, t[i], e); else for (var o = 0, a = (t = p(t)).length; o < a; o++)this._on(t[o], e, n); return this }, off: function (t, e, n) { if (t) if ("object" == typeof t) for (var i in t) this._off(i, t[i], e); else for (var o = 0, a = (t = p(t)).length; o < a; o++)this._off(t[o], e, n); else delete this._events; return this }, _on: function (t, e, n) { this._events = this._events || {}; var i = this._events[t]; i || (i = [], this._events[t] = i), n === this && (n = void 0); for (var o = { fn: e, ctx: n }, a = i, r = 0, s = a.length; r < s; r++)if (a[r].fn === e && a[r].ctx === n) return; a.push(o) }, _off: function (t, e, n) { var i, o, a; if (this._events && (i = this._events[t])) if (e) { if (n === this && (n = void 0), i) for (o = 0, a = i.length; o < a; o++) { var r = i[o]; if (r.ctx === n && r.fn === e) return r.fn = c, this._firingCount && (this._events[t] = i = i.slice()), void i.splice(o, 1) } } else { for (o = 0, a = i.length; o < a; o++)i[o].fn = c; delete this._events[t] } }, fire: function (t, e, i) { if (!this.listens(t, i)) return this; var o = n({}, e, { type: t, target: this, sourceTarget: e && e.sourceTarget || this }); if (this._events) { var a = this._events[t]; if (a) { this._firingCount = this._firingCount + 1 || 1; for (var r = 0, s = a.length; r < s; r++) { var l = a[r]; l.fn.call(l.ctx || this, o) } this._firingCount-- } } return i && this._propagateEvent(o), this }, listens: function (t, e) { var n = this._events && this._events[t]; if (n && n.length) return !0; if (e) for (var i in this._eventParents) if (this._eventParents[i].listens(t, e)) return !0; return !1 }, once: function (t, e, n) { if ("object" == typeof t) { for (var i in t) this.once(i, t[i], e); return this } var a = o((function () { this.off(t, e, n).off(t, a, n) }), this); return this.on(t, e, n).on(t, a, n) }, addEventParent: function (t) { return this._eventParents = this._eventParents || {}, this._eventParents[r(t)] = t, this }, removeEventParent: function (t) { return this._eventParents && delete this._eventParents[r(t)], this }, _propagateEvent: function (t) { for (var e in this._eventParents) this._eventParents[e].fire(t.type, n({ layer: t.target, propagatedFrom: t.target }, t), !0) } }; T.addEventListener = T.on, T.removeEventListener = T.clearAllEventListeners = T.off, T.addOneTimeEventListener = T.once, T.fireEvent = T.fire, T.hasEventListeners = T.listens; var E = S.extend(T); function j(t, e, n) { this.x = n ? Math.round(t) : t, this.y = n ? Math.round(e) : e } var z = Math.trunc || function (t) { return t > 0 ? Math.floor(t) : Math.ceil(t) }; function A(t, e, n) { return t instanceof j ? t : _(t) ? new j(t[0], t[1]) : null == t ? t : "object" == typeof t && "x" in t && "y" in t ? new j(t.x, t.y) : new j(t, e, n) } function I(t, e) { if (t) for (var n = e ? [t, e] : t, i = 0, o = n.length; i < o; i++)this.extend(n[i]) } function N(t, e) { return !t || t instanceof I ? t : new I(t, e) } function B(t, e) { if (t) for (var n = e ? [t, e] : t, i = 0, o = n.length; i < o; i++)this.extend(n[i]) } function F(t, e) { return t instanceof B ? t : new B(t, e) } function D(t, e, n) { if (isNaN(t) || isNaN(e)) throw new Error("Invalid LatLng object: (" + t + ", " + e + ")"); this.lat = +t, this.lng = +e, void 0 !== n && (this.alt = +n) } function Z(t, e, n) { return t instanceof D ? t : _(t) && "object" != typeof t[0] ? 3 === t.length ? new D(t[0], t[1], t[2]) : 2 === t.length ? new D(t[0], t[1]) : null : null == t ? t : "object" == typeof t && "lat" in t ? new D(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : void 0 === e ? null : new D(t, e, n) } j.prototype = { clone: function () { return new j(this.x, this.y) }, add: function (t) { return this.clone()._add(A(t)) }, _add: function (t) { return this.x += t.x, this.y += t.y, this }, subtract: function (t) { return this.clone()._subtract(A(t)) }, _subtract: function (t) { return this.x -= t.x, this.y -= t.y, this }, divideBy: function (t) { return this.clone()._divideBy(t) }, _divideBy: function (t) { return this.x /= t, this.y /= t, this }, multiplyBy: function (t) { return this.clone()._multiplyBy(t) }, _multiplyBy: function (t) { return this.x *= t, this.y *= t, this }, scaleBy: function (t) { return new j(this.x * t.x, this.y * t.y) }, unscaleBy: function (t) { return new j(this.x / t.x, this.y / t.y) }, round: function () { return this.clone()._round() }, _round: function () { return this.x = Math.round(this.x), this.y = Math.round(this.y), this }, floor: function () { return this.clone()._floor() }, _floor: function () { return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this }, ceil: function () { return this.clone()._ceil() }, _ceil: function () { return this.x = Math.ceil(this.x), this.y = Math.ceil(this.y), this }, trunc: function () { return this.clone()._trunc() }, _trunc: function () { return this.x = z(this.x), this.y = z(this.y), this }, distanceTo: function (t) { var e = (t = A(t)).x - this.x, n = t.y - this.y; return Math.sqrt(e * e + n * n) }, equals: function (t) { return (t = A(t)).x === this.x && t.y === this.y }, contains: function (t) { return t = A(t), Math.abs(t.x) <= Math.abs(this.x) && Math.abs(t.y) <= Math.abs(this.y) }, toString: function () { return "Point(" + u(this.x) + ", " + u(this.y) + ")" } }, I.prototype = { extend: function (t) { return t = A(t), this.min || this.max ? (this.min.x = Math.min(t.x, this.min.x), this.max.x = Math.max(t.x, this.max.x), this.min.y = Math.min(t.y, this.min.y), this.max.y = Math.max(t.y, this.max.y)) : (this.min = t.clone(), this.max = t.clone()), this }, getCenter: function (t) { return new j((this.min.x + this.max.x) / 2, (this.min.y + this.max.y) / 2, t) }, getBottomLeft: function () { return new j(this.min.x, this.max.y) }, getTopRight: function () { return new j(this.max.x, this.min.y) }, getTopLeft: function () { return this.min }, getBottomRight: function () { return this.max }, getSize: function () { return this.max.subtract(this.min) }, contains: function (t) { var e, n; return (t = "number" == typeof t[0] || t instanceof j ? A(t) : N(t)) instanceof I ? (e = t.min, n = t.max) : e = n = t, e.x >= this.min.x && n.x <= this.max.x && e.y >= this.min.y && n.y <= this.max.y }, intersects: function (t) { t = N(t); var e = this.min, n = this.max, i = t.min, o = t.max, a = o.x >= e.x && i.x <= n.x, r = o.y >= e.y && i.y <= n.y; return a && r }, overlaps: function (t) { t = N(t); var e = this.min, n = this.max, i = t.min, o = t.max, a = o.x > e.x && i.x < n.x, r = o.y > e.y && i.y < n.y; return a && r }, isValid: function () { return !(!this.min || !this.max) } }, B.prototype = { extend: function (t) { var e, n, i = this._southWest, o = this._northEast; if (t instanceof D) e = t, n = t; else { if (!(t instanceof B)) return t ? this.extend(Z(t) || F(t)) : this; if (e = t._southWest, n = t._northEast, !e || !n) return this } return i || o ? (i.lat = Math.min(e.lat, i.lat), i.lng = Math.min(e.lng, i.lng), o.lat = Math.max(n.lat, o.lat), o.lng = Math.max(n.lng, o.lng)) : (this._southWest = new D(e.lat, e.lng), this._northEast = new D(n.lat, n.lng)), this }, pad: function (t) { var e = this._southWest, n = this._northEast, i = Math.abs(e.lat - n.lat) * t, o = Math.abs(e.lng - n.lng) * t; return new B(new D(e.lat - i, e.lng - o), new D(n.lat + i, n.lng + o)) }, getCenter: function () { return new D((this._southWest.lat + this._northEast.lat) / 2, (this._southWest.lng + this._northEast.lng) / 2) }, getSouthWest: function () { return this._southWest }, getNorthEast: function () { return this._northEast }, getNorthWest: function () { return new D(this.getNorth(), this.getWest()) }, getSouthEast: function () { return new D(this.getSouth(), this.getEast()) }, getWest: function () { return this._southWest.lng }, getSouth: function () { return this._southWest.lat }, getEast: function () { return this._northEast.lng }, getNorth: function () { return this._northEast.lat }, contains: function (t) { t = "number" == typeof t[0] || t instanceof D || "lat" in t ? Z(t) : F(t); var e, n, i = this._southWest, o = this._northEast; return t instanceof B ? (e = t.getSouthWest(), n = t.getNorthEast()) : e = n = t, e.lat >= i.lat && n.lat <= o.lat && e.lng >= i.lng && n.lng <= o.lng }, intersects: function (t) { t = F(t); var e = this._southWest, n = this._northEast, i = t.getSouthWest(), o = t.getNorthEast(), a = o.lat >= e.lat && i.lat <= n.lat, r = o.lng >= e.lng && i.lng <= n.lng; return a && r }, overlaps: function (t) { t = F(t); var e = this._southWest, n = this._northEast, i = t.getSouthWest(), o = t.getNorthEast(), a = o.lat > e.lat && i.lat < n.lat, r = o.lng > e.lng && i.lng < n.lng; return a && r }, toBBoxString: function () { return [this.getWest(), this.getSouth(), this.getEast(), this.getNorth()].join(",") }, equals: function (t, e) { return !!t && (t = F(t), this._southWest.equals(t.getSouthWest(), e) && this._northEast.equals(t.getNorthEast(), e)) }, isValid: function () { return !(!this._southWest || !this._northEast) } }, D.prototype = { equals: function (t, e) { return !!t && (t = Z(t), Math.max(Math.abs(this.lat - t.lat), Math.abs(this.lng - t.lng)) <= (void 0 === e ? 1e-9 : e)) }, toString: function (t) { return "LatLng(" + u(this.lat, t) + ", " + u(this.lng, t) + ")" }, distanceTo: function (t) { return q.distance(this, Z(t)) }, wrap: function () { return q.wrapLatLng(this) }, toBounds: function (t) { var e = 180 * t / 40075017, n = e / Math.cos(Math.PI / 180 * this.lat); return F([this.lat - e, this.lng - n], [this.lat + e, this.lng + n]) }, clone: function () { return new D(this.lat, this.lng, this.alt) } }; var R, H = { latLngToPoint: function (t, e) { var n = this.projection.project(t), i = this.scale(e); return this.transformation._transform(n, i) }, pointToLatLng: function (t, e) { var n = this.scale(e), i = this.transformation.untransform(t, n); return this.projection.unproject(i) }, project: function (t) { return this.projection.project(t) }, unproject: function (t) { return this.projection.unproject(t) }, scale: function (t) { return 256 * Math.pow(2, t) }, zoom: function (t) { return Math.log(t / 256) / Math.LN2 }, getProjectedBounds: function (t) { if (this.infinite) return null; var e = this.projection.bounds, n = this.scale(t); return new I(this.transformation.transform(e.min, n), this.transformation.transform(e.max, n)) }, infinite: !1, wrapLatLng: function (t) { var e = this.wrapLng ? l(t.lng, this.wrapLng, !0) : t.lng; return new D(this.wrapLat ? l(t.lat, this.wrapLat, !0) : t.lat, e, t.alt) }, wrapLatLngBounds: function (t) { var e = t.getCenter(), n = this.wrapLatLng(e), i = e.lat - n.lat, o = e.lng - n.lng; if (0 === i && 0 === o) return t; var a = t.getSouthWest(), r = t.getNorthEast(); return new B(new D(a.lat - i, a.lng - o), new D(r.lat - i, r.lng - o)) } }, q = n({}, H, { wrapLng: [-180, 180], R: 6371e3, distance: function (t, e) { var n = Math.PI / 180, i = t.lat * n, o = e.lat * n, a = Math.sin((e.lat - t.lat) * n / 2), r = Math.sin((e.lng - t.lng) * n / 2), s = a * a + Math.cos(i) * Math.cos(o) * r * r, l = 2 * Math.atan2(Math.sqrt(s), Math.sqrt(1 - s)); return this.R * l } }), U = 6378137, W = { R: U, MAX_LATITUDE: 85.0511287798, project: function (t) { var e = Math.PI / 180, n = this.MAX_LATITUDE, i = Math.max(Math.min(n, t.lat), -n), o = Math.sin(i * e); return new j(this.R * t.lng * e, this.R * Math.log((1 + o) / (1 - o)) / 2) }, unproject: function (t) { var e = 180 / Math.PI; return new D((2 * Math.atan(Math.exp(t.y / this.R)) - Math.PI / 2) * e, t.x * e / this.R) }, bounds: (R = U * Math.PI, new I([-R, -R], [R, R])) }; function G(t, e, n, i) { if (_(t)) return this._a = t[0], this._b = t[1], this._c = t[2], void (this._d = t[3]); this._a = t, this._b = e, this._c = n, this._d = i } function V(t, e, n, i) { return new G(t, e, n, i) } G.prototype = { transform: function (t, e) { return this._transform(t.clone(), e) }, _transform: function (t, e) { return e = e || 1, t.x = e * (this._a * t.x + this._b), t.y = e * (this._c * t.y + this._d), t }, untransform: function (t, e) { return e = e || 1, new j((t.x / e - this._b) / this._a, (t.y / e - this._d) / this._c) } }; var K = n({}, q, { code: "EPSG:3857", projection: W, transformation: function () { var t = .5 / (Math.PI * W.R); return V(t, .5, -t, .5) }() }), Y = n({}, K, { code: "EPSG:900913" }); function X(t) { return document.createElementNS("http://www.w3.org/2000/svg", t) } function J(t, e) { var n, i, o, a, r, s, l = ""; for (n = 0, o = t.length; n < o; n++) { for (i = 0, a = (r = t[n]).length; i < a; i++)l += (i ? "L" : "M") + (s = r[i]).x + " " + s.y; l += e ? Mt ? "z" : "x" : "" } return l || "M0 0" } var $ = document.documentElement.style, Q = "ActiveXObject" in window, tt = Q && !document.addEventListener, et = "msLaunchUri" in navigator && !("documentMode" in document), nt = Tt("webkit"), it = Tt("android"), ot = Tt("android 2") || Tt("android 3"), at = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), rt = it && Tt("Google") && at < 537 && !("AudioNode" in window), st = !!window.opera, lt = Tt("chrome"), ct = Tt("gecko") && !nt && !st && !Q, ut = !lt && Tt("safari"), ft = Tt("phantom"), pt = "OTransition" in $, ht = 0 === navigator.platform.indexOf("Win"), dt = Q && "transition" in $, mt = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix && !ot, gt = "MozPerspective" in $, _t = !window.L_DISABLE_3D && (dt || mt || gt) && !pt && !ft, yt = "undefined" != typeof orientation || Tt("mobile"), vt = yt && nt, wt = yt && mt, bt = !window.PointerEvent && window.MSPointerEvent, kt = !(!window.PointerEvent && !bt), Pt = !window.L_NO_TOUCH && (kt || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch), xt = yt && st, Lt = yt && ct, Ct = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, Ot = !!document.createElement("canvas").getContext, Mt = !(!document.createElementNS || !X("svg").createSVGRect), St = !Mt && function () { try { var t = document.createElement("div"); t.innerHTML = ''; var e = t.firstChild; return e.style.behavior = "url(#default#VML)", e && "object" == typeof e.adj } catch (t) { return !1 } }(); function Tt(t) { return navigator.userAgent.toLowerCase().indexOf(t) >= 0 } var Et = (Object.freeze || Object)({ ie: Q, ielt9: tt, edge: et, webkit: nt, android: it, android23: ot, androidStock: rt, opera: st, chrome: lt, gecko: ct, safari: ut, phantom: ft, opera12: pt, win: ht, ie3d: dt, webkit3d: mt, gecko3d: gt, any3d: _t, mobile: yt, mobileWebkit: vt, mobileWebkit3d: wt, msPointer: bt, pointer: kt, touch: Pt, mobileOpera: xt, mobileGecko: Lt, retina: Ct, canvas: Ot, svg: Mt, vml: St }), jt = bt ? "MSPointerDown" : "pointerdown", zt = bt ? "MSPointerMove" : "pointermove", At = bt ? "MSPointerUp" : "pointerup", It = bt ? "MSPointerCancel" : "pointercancel", Nt = ["INPUT", "SELECT", "OPTION"], Bt = {}, Ft = !1, Dt = 0; function Zt(t, e, n, i) { return "touchstart" === e ? function (t, e, n) { var i = o((function (t) { if ("mouse" !== t.pointerType && t.MSPOINTER_TYPE_MOUSE && t.pointerType !== t.MSPOINTER_TYPE_MOUSE) { if (!(Nt.indexOf(t.target.tagName) < 0)) return; Be(t) } Ut(t, e) })); t["_leaflet_touchstart" + n] = i, t.addEventListener(jt, i, !1), Ft || (document.documentElement.addEventListener(jt, Rt, !0), document.documentElement.addEventListener(zt, Ht, !0), document.documentElement.addEventListener(At, qt, !0), document.documentElement.addEventListener(It, qt, !0), Ft = !0) }(t, n, i) : "touchmove" === e ? function (t, e, n) { var i = function (t) { (t.pointerType !== t.MSPOINTER_TYPE_MOUSE && "mouse" !== t.pointerType || 0 !== t.buttons) && Ut(t, e) }; t["_leaflet_touchmove" + n] = i, t.addEventListener(zt, i, !1) }(t, n, i) : "touchend" === e && function (t, e, n) { var i = function (t) { Ut(t, e) }; t["_leaflet_touchend" + n] = i, t.addEventListener(At, i, !1), t.addEventListener(It, i, !1) }(t, n, i), this } function Rt(t) { Bt[t.pointerId] = t, Dt++ } function Ht(t) { Bt[t.pointerId] && (Bt[t.pointerId] = t) } function qt(t) { delete Bt[t.pointerId], Dt-- } function Ut(t, e) { for (var n in t.touches = [], Bt) t.touches.push(Bt[n]); t.changedTouches = [t], e(t) } var Wt = bt ? "MSPointerDown" : kt ? "pointerdown" : "touchstart", Gt = bt ? "MSPointerUp" : kt ? "pointerup" : "touchend", Vt = "_leaflet_"; function Kt(t, e, n) { var i, o, a = !1; function r(t) { var e; if (kt) { if (!et || "mouse" === t.pointerType) return; e = Dt } else e = t.touches.length; if (!(e > 1)) { var n = Date.now(), r = n - (i || n); o = t.touches ? t.touches[0] : t, a = r > 0 && r <= 250, i = n } } function s(t) { if (a && !o.cancelBubble) { if (kt) { if (!et || "mouse" === t.pointerType) return; var n, r, s = {}; for (r in o) n = o[r], s[r] = n && n.bind ? n.bind(o) : n; o = s } o.type = "dblclick", o.button = 0, e(o), i = null } } return t[Vt + Wt + n] = r, t[Vt + Gt + n] = s, t[Vt + "dblclick" + n] = e, t.addEventListener(Wt, r, !1), t.addEventListener(Gt, s, !1), t.addEventListener("dblclick", e, !1), this } function Yt(t, e) { var n = t[Vt + Wt + e], i = t[Vt + Gt + e], o = t[Vt + "dblclick" + e]; return t.removeEventListener(Wt, n, !1), t.removeEventListener(Gt, i, !1), et || t.removeEventListener("dblclick", o, !1), this } var Xt, Jt, $t, Qt, te, ee = _e(["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]), ne = _e(["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]), ie = "webkitTransition" === ne || "OTransition" === ne ? ne + "End" : "transitionend"; function oe(t) { return "string" == typeof t ? document.getElementById(t) : t } function ae(t, e) { var n = t.style[e] || t.currentStyle && t.currentStyle[e]; if ((!n || "auto" === n) && document.defaultView) { var i = document.defaultView.getComputedStyle(t, null); n = i ? i[e] : null } return "auto" === n ? null : n } function re(t, e, n) { var i = document.createElement(t); return i.className = e || "", n && n.appendChild(i), i } function se(t) { var e = t.parentNode; e && e.removeChild(t) } function le(t) { for (; t.firstChild;)t.removeChild(t.firstChild) } function ce(t) { var e = t.parentNode; e && e.lastChild !== t && e.appendChild(t) } function ue(t) { var e = t.parentNode; e && e.firstChild !== t && e.insertBefore(t, e.firstChild) } function fe(t, e) { if (void 0 !== t.classList) return t.classList.contains(e); var n = me(t); return n.length > 0 && new RegExp("(^|\\s)" + e + "(\\s|$)").test(n) } function pe(t, e) { if (void 0 !== t.classList) for (var n = p(e), i = 0, o = n.length; i < o; i++)t.classList.add(n[i]); else if (!fe(t, e)) { var a = me(t); de(t, (a ? a + " " : "") + e) } } function he(t, e) { void 0 !== t.classList ? t.classList.remove(e) : de(t, f((" " + me(t) + " ").replace(" " + e + " ", " "))) } function de(t, e) { void 0 === t.className.baseVal ? t.className = e : t.className.baseVal = e } function me(t) { return t.correspondingElement && (t = t.correspondingElement), void 0 === t.className.baseVal ? t.className : t.className.baseVal } function ge(t, e) { "opacity" in t.style ? t.style.opacity = e : "filter" in t.style && function (t, e) { var n = !1, i = "DXImageTransform.Microsoft.Alpha"; try { n = t.filters.item(i) } catch (t) { if (1 === e) return } e = Math.round(100 * e), n ? (n.Enabled = 100 !== e, n.Opacity = e) : t.style.filter += " progid:" + i + "(opacity=" + e + ")" }(t, e) } function _e(t) { for (var e = document.documentElement.style, n = 0; n < t.length; n++)if (t[n] in e) return t[n]; return !1 } function ye(t, e, n) { var i = e || new j(0, 0); t.style[ee] = (dt ? "translate(" + i.x + "px," + i.y + "px)" : "translate3d(" + i.x + "px," + i.y + "px,0)") + (n ? " scale(" + n + ")" : "") } function ve(t, e) { t._leaflet_pos = e, _t ? ye(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px") } function we(t) { return t._leaflet_pos || new j(0, 0) } if ("onselectstart" in document) Xt = function () { Se(window, "selectstart", Be) }, Jt = function () { Ee(window, "selectstart", Be) }; else { var be = _e(["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]); Xt = function () { if (be) { var t = document.documentElement.style; $t = t[be], t[be] = "none" } }, Jt = function () { be && (document.documentElement.style[be] = $t, $t = void 0) } } function ke() { Se(window, "dragstart", Be) } function Pe() { Ee(window, "dragstart", Be) } function xe(t) { for (; -1 === t.tabIndex;)t = t.parentNode; t.style && (Le(), Qt = t, te = t.style.outline, t.style.outline = "none", Se(window, "keydown", Le)) } function Le() { Qt && (Qt.style.outline = te, Qt = void 0, te = void 0, Ee(window, "keydown", Le)) } function Ce(t) { do { t = t.parentNode } while (!(t.offsetWidth && t.offsetHeight || t === document.body)); return t } function Oe(t) { var e = t.getBoundingClientRect(); return { x: e.width / t.offsetWidth || 1, y: e.height / t.offsetHeight || 1, boundingClientRect: e } } var Me = (Object.freeze || Object)({ TRANSFORM: ee, TRANSITION: ne, TRANSITION_END: ie, get: oe, getStyle: ae, create: re, remove: se, empty: le, toFront: ce, toBack: ue, hasClass: fe, addClass: pe, removeClass: he, setClass: de, getClass: me, setOpacity: ge, testProp: _e, setTransform: ye, setPosition: ve, getPosition: we, disableTextSelection: Xt, enableTextSelection: Jt, disableImageDrag: ke, enableImageDrag: Pe, preventOutline: xe, restoreOutline: Le, getSizedParentNode: Ce, getScale: Oe }); function Se(t, e, n, i) { if ("object" == typeof e) for (var o in e) je(t, o, e[o], n); else for (var a = 0, r = (e = p(e)).length; a < r; a++)je(t, e[a], n, i); return this } var Te = "_leaflet_events"; function Ee(t, e, n, i) { if ("object" == typeof e) for (var o in e) ze(t, o, e[o], n); else if (e) for (var a = 0, r = (e = p(e)).length; a < r; a++)ze(t, e[a], n, i); else { for (var s in t[Te]) ze(t, s, t[Te][s]); delete t[Te] } return this } function je(t, e, n, i) { var o = e + r(n) + (i ? "_" + r(i) : ""); if (t[Te] && t[Te][o]) return this; var a = function (e) { return n.call(i || t, e || window.event) }, s = a; kt && 0 === e.indexOf("touch") ? Zt(t, e, a, o) : !Pt || "dblclick" !== e || !Kt || kt && lt ? "addEventListener" in t ? "mousewheel" === e ? t.addEventListener("onwheel" in t ? "wheel" : "mousewheel", a, !1) : "mouseenter" === e || "mouseleave" === e ? (a = function (e) { e = e || window.event, Ge(t, e) && s(e) }, t.addEventListener("mouseenter" === e ? "mouseover" : "mouseout", a, !1)) : ("click" === e && it && (a = function (t) { !function (t, e) { var n = t.timeStamp || t.originalEvent && t.originalEvent.timeStamp, i = He && n - He; i && i > 100 && i < 500 || t.target._simulatedClick && !t._simulated ? Fe(t) : (He = n, e(t)) }(t, s) }), t.addEventListener(e, a, !1)) : "attachEvent" in t && t.attachEvent("on" + e, a) : Kt(t, a, o), t[Te] = t[Te] || {}, t[Te][o] = a } function ze(t, e, n, i) { var o = e + r(n) + (i ? "_" + r(i) : ""), a = t[Te] && t[Te][o]; if (!a) return this; kt && 0 === e.indexOf("touch") ? function (t, e, n) { var i = t["_leaflet_" + e + n]; "touchstart" === e ? t.removeEventListener(jt, i, !1) : "touchmove" === e ? t.removeEventListener(zt, i, !1) : "touchend" === e && (t.removeEventListener(At, i, !1), t.removeEventListener(It, i, !1)) }(t, e, o) : !Pt || "dblclick" !== e || !Yt || kt && lt ? "removeEventListener" in t ? "mousewheel" === e ? t.removeEventListener("onwheel" in t ? "wheel" : "mousewheel", a, !1) : t.removeEventListener("mouseenter" === e ? "mouseover" : "mouseleave" === e ? "mouseout" : e, a, !1) : "detachEvent" in t && t.detachEvent("on" + e, a) : Yt(t, o), t[Te][o] = null } function Ae(t) { return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, We(t), this } function Ie(t) { return je(t, "mousewheel", Ae), this } function Ne(t) { return Se(t, "mousedown touchstart dblclick", Ae), je(t, "click", Ue), this } function Be(t) { return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this } function Fe(t) { return Be(t), Ae(t), this } function De(t, e) { if (!e) return new j(t.clientX, t.clientY); var n = Oe(e), i = n.boundingClientRect; return new j((t.clientX - i.left) / n.x - e.clientLeft, (t.clientY - i.top) / n.y - e.clientTop) } var Ze = ht && lt ? 2 * window.devicePixelRatio : ct ? window.devicePixelRatio : 1; function Re(t) { return et ? t.wheelDeltaY / 2 : t.deltaY && 0 === t.deltaMode ? -t.deltaY / Ze : t.deltaY && 1 === t.deltaMode ? 20 * -t.deltaY : t.deltaY && 2 === t.deltaMode ? 60 * -t.deltaY : t.deltaX || t.deltaZ ? 0 : t.wheelDelta ? (t.wheelDeltaY || t.wheelDelta) / 2 : t.detail && Math.abs(t.detail) < 32765 ? 20 * -t.detail : t.detail ? t.detail / -32765 * 60 : 0 } var He, qe = {}; function Ue(t) { qe[t.type] = !0 } function We(t) { var e = qe[t.type]; return qe[t.type] = !1, e } function Ge(t, e) { var n = e.relatedTarget; if (!n) return !0; try { for (; n && n !== t;)n = n.parentNode } catch (t) { return !1 } return n !== t } var Ve = (Object.freeze || Object)({ on: Se, off: Ee, stopPropagation: Ae, disableScrollPropagation: Ie, disableClickPropagation: Ne, preventDefault: Be, stop: Fe, getMousePosition: De, getWheelDelta: Re, fakeStop: Ue, skipped: We, isExternalTarget: Ge, addListener: Se, removeListener: Ee }), Ke = E.extend({ run: function (t, e, n, i) { this.stop(), this._el = t, this._inProgress = !0, this._duration = n || .25, this._easeOutPower = 1 / Math.max(i || .5, .2), this._startPos = we(t), this._offset = e.subtract(this._startPos), this._startTime = +new Date, this.fire("start"), this._animate() }, stop: function () { this._inProgress && (this._step(!0), this._complete()) }, _animate: function () { this._animId = C(this._animate, this), this._step() }, _step: function (t) { var e = +new Date - this._startTime, n = 1e3 * this._duration; e < n ? this._runFrame(this._easeOut(e / n), t) : (this._runFrame(1), this._complete()) }, _runFrame: function (t, e) { var n = this._startPos.add(this._offset.multiplyBy(t)); e && n._round(), ve(this._el, n), this.fire("step") }, _complete: function () { O(this._animId), this._inProgress = !1, this.fire("end") }, _easeOut: function (t) { return 1 - Math.pow(1 - t, this._easeOutPower) } }), Ye = E.extend({ options: { crs: K, center: void 0, zoom: void 0, minZoom: void 0, maxZoom: void 0, layers: [], maxBounds: void 0, renderer: void 0, zoomAnimation: !0, zoomAnimationThreshold: 4, fadeAnimation: !0, markerZoomAnimation: !0, transform3DLimit: 8388608, zoomSnap: 1, zoomDelta: 1, trackResize: !0 }, initialize: function (t, e) { e = h(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = o(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), void 0 !== e.zoom && (this._zoom = this._limitZoom(e.zoom)), e.center && void 0 !== e.zoom && this.setView(Z(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = ne && _t && !xt && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), Se(this._proxy, ie, this._catchTransitionEnd, this)), this._addLayers(this.options.layers) }, setView: function (t, e, i) { return e = void 0 === e ? this._zoom : this._limitZoom(e), t = this._limitCenter(Z(t), e, this.options.maxBounds), i = i || {}, this._stop(), this._loaded && !i.reset && !0 !== i && (void 0 !== i.animate && (i.zoom = n({ animate: i.animate }, i.zoom), i.pan = n({ animate: i.animate, duration: i.duration }, i.pan)), this._zoom !== e ? this._tryAnimatedZoom && this._tryAnimatedZoom(t, e, i.zoom) : this._tryAnimatedPan(t, i.pan)) ? (clearTimeout(this._sizeTimer), this) : (this._resetView(t, e), this) }, setZoom: function (t, e) { return this._loaded ? this.setView(this.getCenter(), t, { zoom: e }) : (this._zoom = t, this) }, zoomIn: function (t, e) { return t = t || (_t ? this.options.zoomDelta : 1), this.setZoom(this._zoom + t, e) }, zoomOut: function (t, e) { return t = t || (_t ? this.options.zoomDelta : 1), this.setZoom(this._zoom - t, e) }, setZoomAround: function (t, e, n) { var i = this.getZoomScale(e), o = this.getSize().divideBy(2), a = (t instanceof j ? t : this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1 - 1 / i), r = this.containerPointToLatLng(o.add(a)); return this.setView(r, e, { zoom: n }) }, _getBoundsCenterZoom: function (t, e) { e = e || {}, t = t.getBounds ? t.getBounds() : F(t); var n = A(e.paddingTopLeft || e.padding || [0, 0]), i = A(e.paddingBottomRight || e.padding || [0, 0]), o = this.getBoundsZoom(t, !1, n.add(i)); if ((o = "number" == typeof e.maxZoom ? Math.min(e.maxZoom, o) : o) === 1 / 0) return { center: t.getCenter(), zoom: o }; var a = i.subtract(n).divideBy(2), r = this.project(t.getSouthWest(), o), s = this.project(t.getNorthEast(), o); return { center: this.unproject(r.add(s).divideBy(2).add(a), o), zoom: o } }, fitBounds: function (t, e) { if (!(t = F(t)).isValid()) throw new Error("Bounds are not valid."); var n = this._getBoundsCenterZoom(t, e); return this.setView(n.center, n.zoom, e) }, fitWorld: function (t) { return this.fitBounds([[-90, -180], [90, 180]], t) }, panTo: function (t, e) { return this.setView(t, this._zoom, { pan: e }) }, panBy: function (t, e) { if (e = e || {}, !(t = A(t).round()).x && !t.y) return this.fire("moveend"); if (!0 !== e.animate && !this.getSize().contains(t)) return this._resetView(this.unproject(this.project(this.getCenter()).add(t)), this.getZoom()), this; if (this._panAnim || (this._panAnim = new Ke, this._panAnim.on({ step: this._onPanTransitionStep, end: this._onPanTransitionEnd }, this)), e.noMoveStart || this.fire("movestart"), !1 !== e.animate) { pe(this._mapPane, "leaflet-pan-anim"); var n = this._getMapPanePos().subtract(t).round(); this._panAnim.run(this._mapPane, n, e.duration || .25, e.easeLinearity) } else this._rawPanBy(t), this.fire("move").fire("moveend"); return this }, flyTo: function (t, e, n) { if (!1 === (n = n || {}).animate || !_t) return this.setView(t, e, n); this._stop(); var i = this.project(this.getCenter()), o = this.project(t), a = this.getSize(), r = this._zoom; t = Z(t), e = void 0 === e ? r : e; var s = Math.max(a.x, a.y), l = s * this.getZoomScale(r, e), c = o.distanceTo(i) || 1, u = 1.42, f = u * u; function p(t) { var e = (l * l - s * s + (t ? -1 : 1) * f * f * c * c) / (2 * (t ? l : s) * f * c), n = Math.sqrt(e * e + 1) - e; return n < 1e-9 ? -18 : Math.log(n) } function h(t) { return (Math.exp(t) - Math.exp(-t)) / 2 } function d(t) { return (Math.exp(t) + Math.exp(-t)) / 2 } var m = p(0); function g(t) { return s * (d(m) * function (t) { return h(t) / d(t) }(m + u * t) - h(m)) / f } var _ = Date.now(), y = (p(1) - m) / u, v = n.duration ? 1e3 * n.duration : 1e3 * y * .8; return this._moveStart(!0, n.noMoveStart), function n() { var a = (Date.now() - _) / v, l = function (t) { return 1 - Math.pow(1 - t, 1.5) }(a) * y; a <= 1 ? (this._flyToFrame = C(n, this), this._move(this.unproject(i.add(o.subtract(i).multiplyBy(g(l) / c)), r), this.getScaleZoom(s / function (t) { return s * (d(m) / d(m + u * t)) }(l), r), { flyTo: !0 })) : this._move(t, e)._moveEnd(!0) }.call(this), this }, flyToBounds: function (t, e) { var n = this._getBoundsCenterZoom(t, e); return this.flyTo(n.center, n.zoom, e) }, setMaxBounds: function (t) { return (t = F(t)).isValid() ? (this.options.maxBounds && this.off("moveend", this._panInsideMaxBounds), this.options.maxBounds = t, this._loaded && this._panInsideMaxBounds(), this.on("moveend", this._panInsideMaxBounds)) : (this.options.maxBounds = null, this.off("moveend", this._panInsideMaxBounds)) }, setMinZoom: function (t) { var e = this.options.minZoom; return this.options.minZoom = t, this._loaded && e !== t && (this.fire("zoomlevelschange"), this.getZoom() < this.options.minZoom) ? this.setZoom(t) : this }, setMaxZoom: function (t) { var e = this.options.maxZoom; return this.options.maxZoom = t, this._loaded && e !== t && (this.fire("zoomlevelschange"), this.getZoom() > this.options.maxZoom) ? this.setZoom(t) : this }, panInsideBounds: function (t, e) { this._enforcingBounds = !0; var n = this.getCenter(), i = this._limitCenter(n, this._zoom, F(t)); return n.equals(i) || this.panTo(i, e), this._enforcingBounds = !1, this }, panInside: function (t, e) { var n = A((e = e || {}).paddingTopLeft || e.padding || [0, 0]), i = A(e.paddingBottomRight || e.padding || [0, 0]), o = this.getCenter(), a = this.project(o), r = this.project(t), s = this.getPixelBounds(), l = s.getSize().divideBy(2), c = N([s.min.add(n), s.max.subtract(i)]); if (!c.contains(r)) { this._enforcingBounds = !0; var u = a.subtract(r), f = A(r.x + u.x, r.y + u.y); (r.x < c.min.x || r.x > c.max.x) && (f.x = a.x - u.x, u.x > 0 ? f.x += l.x - n.x : f.x -= l.x - i.x), (r.y < c.min.y || r.y > c.max.y) && (f.y = a.y - u.y, u.y > 0 ? f.y += l.y - n.y : f.y -= l.y - i.y), this.panTo(this.unproject(f), e), this._enforcingBounds = !1 } return this }, invalidateSize: function (t) { if (!this._loaded) return this; t = n({ animate: !1, pan: !0 }, !0 === t ? { animate: !0 } : t); var e = this.getSize(); this._sizeChanged = !0, this._lastCenter = null; var i = this.getSize(), a = e.divideBy(2).round(), r = i.divideBy(2).round(), s = a.subtract(r); return s.x || s.y ? (t.animate && t.pan ? this.panBy(s) : (t.pan && this._rawPanBy(s), this.fire("move"), t.debounceMoveend ? (clearTimeout(this._sizeTimer), this._sizeTimer = setTimeout(o(this.fire, this, "moveend"), 200)) : this.fire("moveend")), this.fire("resize", { oldSize: e, newSize: i })) : this }, stop: function () { return this.setZoom(this._limitZoom(this._zoom)), this.options.zoomSnap || this.fire("viewreset"), this._stop() }, locate: function (t) { if (t = this._locateOptions = n({ timeout: 1e4, watch: !1 }, t), !("geolocation" in navigator)) return this._handleGeolocationError({ code: 0, message: "Geolocation not supported." }), this; var e = o(this._handleGeolocationResponse, this), i = o(this._handleGeolocationError, this); return t.watch ? this._locationWatchId = navigator.geolocation.watchPosition(e, i, t) : navigator.geolocation.getCurrentPosition(e, i, t), this }, stopLocate: function () { return navigator.geolocation && navigator.geolocation.clearWatch && navigator.geolocation.clearWatch(this._locationWatchId), this._locateOptions && (this._locateOptions.setView = !1), this }, _handleGeolocationError: function (t) { var e = t.code, n = t.message || (1 === e ? "permission denied" : 2 === e ? "position unavailable" : "timeout"); this._locateOptions.setView && !this._loaded && this.fitWorld(), this.fire("locationerror", { code: e, message: "Geolocation error: " + n + "." }) }, _handleGeolocationResponse: function (t) { var e = new D(t.coords.latitude, t.coords.longitude), n = e.toBounds(2 * t.coords.accuracy), i = this._locateOptions; if (i.setView) { var o = this.getBoundsZoom(n); this.setView(e, i.maxZoom ? Math.min(o, i.maxZoom) : o) } var a = { latlng: e, bounds: n, timestamp: t.timestamp }; for (var r in t.coords) "number" == typeof t.coords[r] && (a[r] = t.coords[r]); this.fire("locationfound", a) }, addHandler: function (t, e) { if (!e) return this; var n = this[t] = new e(this); return this._handlers.push(n), this.options[t] && n.enable(), this }, remove: function () { if (this._initEvents(!0), this._containerId !== this._container._leaflet_id) throw new Error("Map container is being reused by another instance"); try { delete this._container._leaflet_id, delete this._containerId } catch (t) { this._container._leaflet_id = void 0, this._containerId = void 0 } var t; for (t in void 0 !== this._locationWatchId && this.stopLocate(), this._stop(), se(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (O(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload"), this._layers) this._layers[t].remove(); for (t in this._panes) se(this._panes[t]); return this._layers = [], this._panes = [], delete this._mapPane, delete this._renderer, this }, createPane: function (t, e) { var n = re("div", "leaflet-pane" + (t ? " leaflet-" + t.replace("Pane", "") + "-pane" : ""), e || this._mapPane); return t && (this._panes[t] = n), n }, getCenter: function () { return this._checkIfLoaded(), this._lastCenter && !this._moved() ? this._lastCenter : this.layerPointToLatLng(this._getCenterLayerPoint()) }, getZoom: function () { return this._zoom }, getBounds: function () { var t = this.getPixelBounds(); return new B(this.unproject(t.getBottomLeft()), this.unproject(t.getTopRight())) }, getMinZoom: function () { return void 0 === this.options.minZoom ? this._layersMinZoom || 0 : this.options.minZoom }, getMaxZoom: function () { return void 0 === this.options.maxZoom ? void 0 === this._layersMaxZoom ? 1 / 0 : this._layersMaxZoom : this.options.maxZoom }, getBoundsZoom: function (t, e, n) { t = F(t), n = A(n || [0, 0]); var i = this.getZoom() || 0, o = this.getMinZoom(), a = this.getMaxZoom(), r = t.getNorthWest(), s = t.getSouthEast(), l = this.getSize().subtract(n), c = N(this.project(s, i), this.project(r, i)).getSize(), u = _t ? this.options.zoomSnap : 1, f = l.x / c.x, p = l.y / c.y, h = e ? Math.max(f, p) : Math.min(f, p); return i = this.getScaleZoom(h, i), u && (i = Math.round(i / (u / 100)) * (u / 100), i = e ? Math.ceil(i / u) * u : Math.floor(i / u) * u), Math.max(o, Math.min(a, i)) }, getSize: function () { return this._size && !this._sizeChanged || (this._size = new j(this._container.clientWidth || 0, this._container.clientHeight || 0), this._sizeChanged = !1), this._size.clone() }, getPixelBounds: function (t, e) { var n = this._getTopLeftPoint(t, e); return new I(n, n.add(this.getSize())) }, getPixelOrigin: function () { return this._checkIfLoaded(), this._pixelOrigin }, getPixelWorldBounds: function (t) { return this.options.crs.getProjectedBounds(void 0 === t ? this.getZoom() : t) }, getPane: function (t) { return "string" == typeof t ? this._panes[t] : t }, getPanes: function () { return this._panes }, getContainer: function () { return this._container }, getZoomScale: function (t, e) { var n = this.options.crs; return e = void 0 === e ? this._zoom : e, n.scale(t) / n.scale(e) }, getScaleZoom: function (t, e) { var n = this.options.crs; e = void 0 === e ? this._zoom : e; var i = n.zoom(t * n.scale(e)); return isNaN(i) ? 1 / 0 : i }, project: function (t, e) { return e = void 0 === e ? this._zoom : e, this.options.crs.latLngToPoint(Z(t), e) }, unproject: function (t, e) { return e = void 0 === e ? this._zoom : e, this.options.crs.pointToLatLng(A(t), e) }, layerPointToLatLng: function (t) { var e = A(t).add(this.getPixelOrigin()); return this.unproject(e) }, latLngToLayerPoint: function (t) { return this.project(Z(t))._round()._subtract(this.getPixelOrigin()) }, wrapLatLng: function (t) { return this.options.crs.wrapLatLng(Z(t)) }, wrapLatLngBounds: function (t) { return this.options.crs.wrapLatLngBounds(F(t)) }, distance: function (t, e) { return this.options.crs.distance(Z(t), Z(e)) }, containerPointToLayerPoint: function (t) { return A(t).subtract(this._getMapPanePos()) }, layerPointToContainerPoint: function (t) { return A(t).add(this._getMapPanePos()) }, containerPointToLatLng: function (t) { var e = this.containerPointToLayerPoint(A(t)); return this.layerPointToLatLng(e) }, latLngToContainerPoint: function (t) { return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(t))) }, mouseEventToContainerPoint: function (t) { return De(t, this._container) }, mouseEventToLayerPoint: function (t) { return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t)) }, mouseEventToLatLng: function (t) { return this.layerPointToLatLng(this.mouseEventToLayerPoint(t)) }, _initContainer: function (t) { var e = this._container = oe(t); if (!e) throw new Error("Map container not found."); if (e._leaflet_id) throw new Error("Map container is already initialized."); Se(e, "scroll", this._onScroll, this), this._containerId = r(e) }, _initLayout: function () { var t = this._container; this._fadeAnimated = this.options.fadeAnimation && _t, pe(t, "leaflet-container" + (Pt ? " leaflet-touch" : "") + (Ct ? " leaflet-retina" : "") + (tt ? " leaflet-oldie" : "") + (ut ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : "")); var e = ae(t, "position"); "absolute" !== e && "relative" !== e && "fixed" !== e && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos() }, _initPanes: function () { var t = this._panes = {}; this._paneRenderers = {}, this._mapPane = this.createPane("mapPane", this._container), ve(this._mapPane, new j(0, 0)), this.createPane("tilePane"), this.createPane("shadowPane"), this.createPane("overlayPane"), this.createPane("markerPane"), this.createPane("tooltipPane"), this.createPane("popupPane"), this.options.markerZoomAnimation || (pe(t.markerPane, "leaflet-zoom-hide"), pe(t.shadowPane, "leaflet-zoom-hide")) }, _resetView: function (t, e) { ve(this._mapPane, new j(0, 0)); var n = !this._loaded; this._loaded = !0, e = this._limitZoom(e), this.fire("viewprereset"); var i = this._zoom !== e; this._moveStart(i, !1)._move(t, e)._moveEnd(i), this.fire("viewreset"), n && this.fire("load") }, _moveStart: function (t, e) { return t && this.fire("zoomstart"), e || this.fire("movestart"), this }, _move: function (t, e, n) { void 0 === e && (e = this._zoom); var i = this._zoom !== e; return this._zoom = e, this._lastCenter = t, this._pixelOrigin = this._getNewPixelOrigin(t), (i || n && n.pinch) && this.fire("zoom", n), this.fire("move", n) }, _moveEnd: function (t) { return t && this.fire("zoomend"), this.fire("moveend") }, _stop: function () { return O(this._flyToFrame), this._panAnim && this._panAnim.stop(), this }, _rawPanBy: function (t) { ve(this._mapPane, this._getMapPanePos().subtract(t)) }, _getZoomSpan: function () { return this.getMaxZoom() - this.getMinZoom() }, _panInsideMaxBounds: function () { this._enforcingBounds || this.panInsideBounds(this.options.maxBounds) }, _checkIfLoaded: function () { if (!this._loaded) throw new Error("Set map center and zoom first.") }, _initEvents: function (t) { this._targets = {}, this._targets[r(this._container)] = this; var e = t ? Ee : Se; e(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && e(window, "resize", this._onResize, this), _t && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd) }, _onResize: function () { O(this._resizeRequest), this._resizeRequest = C((function () { this.invalidateSize({ debounceMoveend: !0 }) }), this) }, _onScroll: function () { this._container.scrollTop = 0, this._container.scrollLeft = 0 }, _onMoveEnd: function () { var t = this._getMapPanePos(); Math.max(Math.abs(t.x), Math.abs(t.y)) >= this.options.transform3DLimit && this._resetView(this.getCenter(), this.getZoom()) }, _findEventTargets: function (t, e) { for (var n, i = [], o = "mouseout" === e || "mouseover" === e, a = t.target || t.srcElement, s = !1; a;) { if ((n = this._targets[r(a)]) && ("click" === e || "preclick" === e) && !t._simulated && this._draggableMoved(n)) { s = !0; break } if (n && n.listens(e, !0)) { if (o && !Ge(a, t)) break; if (i.push(n), o) break } if (a === this._container) break; a = a.parentNode } return i.length || s || o || !Ge(a, t) || (i = [this]), i }, _handleDOMEvent: function (t) { if (this._loaded && !We(t)) { var e = t.type; "mousedown" !== e && "keypress" !== e && "keyup" !== e && "keydown" !== e || xe(t.target || t.srcElement), this._fireDOMEvent(t, e) } }, _mouseEvents: ["click", "dblclick", "mouseover", "mouseout", "contextmenu"], _fireDOMEvent: function (t, e, i) { if ("click" === t.type) { var o = n({}, t); o.type = "preclick", this._fireDOMEvent(o, o.type, i) } if (!t._stopped && (i = (i || []).concat(this._findEventTargets(t, e))).length) { var a = i[0]; "contextmenu" === e && a.listens(e, !0) && Be(t); var r = { originalEvent: t }; if ("keypress" !== t.type && "keydown" !== t.type && "keyup" !== t.type) { var s = a.getLatLng && (!a._radius || a._radius <= 10); r.containerPoint = s ? this.latLngToContainerPoint(a.getLatLng()) : this.mouseEventToContainerPoint(t), r.layerPoint = this.containerPointToLayerPoint(r.containerPoint), r.latlng = s ? a.getLatLng() : this.layerPointToLatLng(r.layerPoint) } for (var l = 0; l < i.length; l++)if (i[l].fire(e, r, !0), r.originalEvent._stopped || !1 === i[l].options.bubblingMouseEvents && -1 !== y(this._mouseEvents, e)) return } }, _draggableMoved: function (t) { return (t = t.dragging && t.dragging.enabled() ? t : this).dragging && t.dragging.moved() || this.boxZoom && this.boxZoom.moved() }, _clearHandlers: function () { for (var t = 0, e = this._handlers.length; t < e; t++)this._handlers[t].disable() }, whenReady: function (t, e) { return this._loaded ? t.call(e || this, { target: this }) : this.on("load", t, e), this }, _getMapPanePos: function () { return we(this._mapPane) || new j(0, 0) }, _moved: function () { var t = this._getMapPanePos(); return t && !t.equals([0, 0]) }, _getTopLeftPoint: function (t, e) { return (t && void 0 !== e ? this._getNewPixelOrigin(t, e) : this.getPixelOrigin()).subtract(this._getMapPanePos()) }, _getNewPixelOrigin: function (t, e) { var n = this.getSize()._divideBy(2); return this.project(t, e)._subtract(n)._add(this._getMapPanePos())._round() }, _latLngToNewLayerPoint: function (t, e, n) { var i = this._getNewPixelOrigin(n, e); return this.project(t, e)._subtract(i) }, _latLngBoundsToNewLayerBounds: function (t, e, n) { var i = this._getNewPixelOrigin(n, e); return N([this.project(t.getSouthWest(), e)._subtract(i), this.project(t.getNorthWest(), e)._subtract(i), this.project(t.getSouthEast(), e)._subtract(i), this.project(t.getNorthEast(), e)._subtract(i)]) }, _getCenterLayerPoint: function () { return this.containerPointToLayerPoint(this.getSize()._divideBy(2)) }, _getCenterOffset: function (t) { return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint()) }, _limitCenter: function (t, e, n) { if (!n) return t; var i = this.project(t, e), o = this.getSize().divideBy(2), a = new I(i.subtract(o), i.add(o)), r = this._getBoundsOffset(a, n, e); return r.round().equals([0, 0]) ? t : this.unproject(i.add(r), e) }, _limitOffset: function (t, e) { if (!e) return t; var n = this.getPixelBounds(), i = new I(n.min.add(t), n.max.add(t)); return t.add(this._getBoundsOffset(i, e)) }, _getBoundsOffset: function (t, e, n) { var i = N(this.project(e.getNorthEast(), n), this.project(e.getSouthWest(), n)), o = i.min.subtract(t.min), a = i.max.subtract(t.max); return new j(this._rebound(o.x, -a.x), this._rebound(o.y, -a.y)) }, _rebound: function (t, e) { return t + e > 0 ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e)) }, _limitZoom: function (t) { var e = this.getMinZoom(), n = this.getMaxZoom(), i = _t ? this.options.zoomSnap : 1; return i && (t = Math.round(t / i) * i), Math.max(e, Math.min(n, t)) }, _onPanTransitionStep: function () { this.fire("move") }, _onPanTransitionEnd: function () { he(this._mapPane, "leaflet-pan-anim"), this.fire("moveend") }, _tryAnimatedPan: function (t, e) { var n = this._getCenterOffset(t)._trunc(); return !(!0 !== (e && e.animate) && !this.getSize().contains(n) || (this.panBy(n, e), 0)) }, _createAnimProxy: function () { var t = this._proxy = re("div", "leaflet-proxy leaflet-zoom-animated"); this._panes.mapPane.appendChild(t), this.on("zoomanim", (function (t) { var e = ee, n = this._proxy.style[e]; ye(this._proxy, this.project(t.center, t.zoom), this.getZoomScale(t.zoom, 1)), n === this._proxy.style[e] && this._animatingZoom && this._onZoomTransitionEnd() }), this), this.on("load moveend", (function () { var t = this.getCenter(), e = this.getZoom(); ye(this._proxy, this.project(t, e), this.getZoomScale(e, 1)) }), this), this._on("unload", this._destroyAnimProxy, this) }, _destroyAnimProxy: function () { se(this._proxy), delete this._proxy }, _catchTransitionEnd: function (t) { this._animatingZoom && t.propertyName.indexOf("transform") >= 0 && this._onZoomTransitionEnd() }, _nothingToAnimate: function () { return !this._container.getElementsByClassName("leaflet-zoom-animated").length }, _tryAnimatedZoom: function (t, e, n) { if (this._animatingZoom) return !0; if (n = n || {}, !this._zoomAnimated || !1 === n.animate || this._nothingToAnimate() || Math.abs(e - this._zoom) > this.options.zoomAnimationThreshold) return !1; var i = this.getZoomScale(e), o = this._getCenterOffset(t)._divideBy(1 - 1 / i); return !(!0 !== n.animate && !this.getSize().contains(o) || (C((function () { this._moveStart(!0, !1)._animateZoom(t, e, !0) }), this), 0)) }, _animateZoom: function (t, e, n, i) { this._mapPane && (n && (this._animatingZoom = !0, this._animateToCenter = t, this._animateToZoom = e, pe(this._mapPane, "leaflet-zoom-anim")), this.fire("zoomanim", { center: t, zoom: e, noUpdate: i }), setTimeout(o(this._onZoomTransitionEnd, this), 250)) }, _onZoomTransitionEnd: function () { this._animatingZoom && (this._mapPane && he(this._mapPane, "leaflet-zoom-anim"), this._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom), C((function () { this._moveEnd(!0) }), this)) } }); var Xe = S.extend({ options: { position: "topright" }, initialize: function (t) { h(this, t) }, getPosition: function () { return this.options.position }, setPosition: function (t) { var e = this._map; return e && e.removeControl(this), this.options.position = t, e && e.addControl(this), this }, getContainer: function () { return this._container }, addTo: function (t) { this.remove(), this._map = t; var e = this._container = this.onAdd(t), n = this.getPosition(), i = t._controlCorners[n]; return pe(e, "leaflet-control"), -1 !== n.indexOf("bottom") ? i.insertBefore(e, i.firstChild) : i.appendChild(e), this._map.on("unload", this.remove, this), this }, remove: function () { return this._map ? (se(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this }, _refocusOnMap: function (t) { this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus() } }), Je = function (t) { return new Xe(t) }; Ye.include({ addControl: function (t) { return t.addTo(this), this }, removeControl: function (t) { return t.remove(), this }, _initControlPos: function () { var t = this._controlCorners = {}, e = "leaflet-", n = this._controlContainer = re("div", e + "control-container", this._container); function i(i, o) { var a = e + i + " " + e + o; t[i + o] = re("div", a, n) } i("top", "left"), i("top", "right"), i("bottom", "left"), i("bottom", "right") }, _clearControlPos: function () { for (var t in this._controlCorners) se(this._controlCorners[t]); se(this._controlContainer), delete this._controlCorners, delete this._controlContainer } }); var $e = Xe.extend({ options: { collapsed: !0, position: "topright", autoZIndex: !0, hideSingleBase: !1, sortLayers: !1, sortFunction: function (t, e, n, i) { return n < i ? -1 : i < n ? 1 : 0 } }, initialize: function (t, e, n) { for (var i in h(this, n), this._layerControlInputs = [], this._layers = [], this._lastZIndex = 0, this._handlingClick = !1, t) this._addLayer(t[i], i); for (i in e) this._addLayer(e[i], i, !0) }, onAdd: function (t) { this._initLayout(), this._update(), this._map = t, t.on("zoomend", this._checkDisabledLayers, this); for (var e = 0; e < this._layers.length; e++)this._layers[e].layer.on("add remove", this._onLayerChange, this); return this._container }, addTo: function (t) { return Xe.prototype.addTo.call(this, t), this._expandIfNotCollapsed() }, onRemove: function () { this._map.off("zoomend", this._checkDisabledLayers, this); for (var t = 0; t < this._layers.length; t++)this._layers[t].layer.off("add remove", this._onLayerChange, this) }, addBaseLayer: function (t, e) { return this._addLayer(t, e), this._map ? this._update() : this }, addOverlay: function (t, e) { return this._addLayer(t, e, !0), this._map ? this._update() : this }, removeLayer: function (t) { t.off("add remove", this._onLayerChange, this); var e = this._getLayer(r(t)); return e && this._layers.splice(this._layers.indexOf(e), 1), this._map ? this._update() : this }, expand: function () { pe(this._container, "leaflet-control-layers-expanded"), this._section.style.height = null; var t = this._map.getSize().y - (this._container.offsetTop + 50); return t < this._section.clientHeight ? (pe(this._section, "leaflet-control-layers-scrollbar"), this._section.style.height = t + "px") : he(this._section, "leaflet-control-layers-scrollbar"), this._checkDisabledLayers(), this }, collapse: function () { return he(this._container, "leaflet-control-layers-expanded"), this }, _initLayout: function () { var t = "leaflet-control-layers", e = this._container = re("div", t), n = this.options.collapsed; e.setAttribute("aria-haspopup", !0), Ne(e), Ie(e); var i = this._section = re("section", t + "-list"); n && (this._map.on("click", this.collapse, this), it || Se(e, { mouseenter: this.expand, mouseleave: this.collapse }, this)); var o = this._layersLink = re("a", t + "-toggle", e); o.href = "#", o.title = "Layers", Pt ? (Se(o, "click", Fe), Se(o, "click", this.expand, this)) : Se(o, "focus", this.expand, this), n || this.expand(), this._baseLayersList = re("div", t + "-base", i), this._separator = re("div", t + "-separator", i), this._overlaysList = re("div", t + "-overlays", i), e.appendChild(i) }, _getLayer: function (t) { for (var e = 0; e < this._layers.length; e++)if (this._layers[e] && r(this._layers[e].layer) === t) return this._layers[e] }, _addLayer: function (t, e, n) { this._map && t.on("add remove", this._onLayerChange, this), this._layers.push({ layer: t, name: e, overlay: n }), this.options.sortLayers && this._layers.sort(o((function (t, e) { return this.options.sortFunction(t.layer, e.layer, t.name, e.name) }), this)), this.options.autoZIndex && t.setZIndex && (this._lastZIndex++, t.setZIndex(this._lastZIndex)), this._expandIfNotCollapsed() }, _update: function () { if (!this._container) return this; le(this._baseLayersList), le(this._overlaysList), this._layerControlInputs = []; var t, e, n, i, o = 0; for (n = 0; n < this._layers.length; n++)i = this._layers[n], this._addItem(i), e = e || i.overlay, t = t || !i.overlay, o += i.overlay ? 0 : 1; return this.options.hideSingleBase && (t = t && o > 1, this._baseLayersList.style.display = t ? "" : "none"), this._separator.style.display = e && t ? "" : "none", this }, _onLayerChange: function (t) { this._handlingClick || this._update(); var e = this._getLayer(r(t.target)), n = e.overlay ? "add" === t.type ? "overlayadd" : "overlayremove" : "add" === t.type ? "baselayerchange" : null; n && this._map.fire(n, e) }, _createRadioElement: function (t, e) { var n = '", i = document.createElement("div"); return i.innerHTML = n, i.firstChild }, _addItem: function (t) { var e, n = document.createElement("label"), i = this._map.hasLayer(t.layer); t.overlay ? ((e = document.createElement("input")).type = "checkbox", e.className = "leaflet-control-layers-selector", e.defaultChecked = i) : e = this._createRadioElement("leaflet-base-layers_" + r(this), i), this._layerControlInputs.push(e), e.layerId = r(t.layer), Se(e, "click", this._onInputClick, this); var o = document.createElement("span"); o.innerHTML = " " + t.name; var a = document.createElement("div"); return n.appendChild(a), a.appendChild(e), a.appendChild(o), (t.overlay ? this._overlaysList : this._baseLayersList).appendChild(n), this._checkDisabledLayers(), n }, _onInputClick: function () { var t, e, n = this._layerControlInputs, i = [], o = []; this._handlingClick = !0; for (var a = n.length - 1; a >= 0; a--)t = n[a], e = this._getLayer(t.layerId).layer, t.checked ? i.push(e) : t.checked || o.push(e); for (a = 0; a < o.length; a++)this._map.hasLayer(o[a]) && this._map.removeLayer(o[a]); for (a = 0; a < i.length; a++)this._map.hasLayer(i[a]) || this._map.addLayer(i[a]); this._handlingClick = !1, this._refocusOnMap() }, _checkDisabledLayers: function () { for (var t, e, n = this._layerControlInputs, i = this._map.getZoom(), o = n.length - 1; o >= 0; o--)t = n[o], e = this._getLayer(t.layerId).layer, t.disabled = void 0 !== e.options.minZoom && i < e.options.minZoom || void 0 !== e.options.maxZoom && i > e.options.maxZoom }, _expandIfNotCollapsed: function () { return this._map && !this.options.collapsed && this.expand(), this }, _expand: function () { return this.expand() }, _collapse: function () { return this.collapse() } }), Qe = Xe.extend({ options: { position: "topleft", zoomInText: "+", zoomInTitle: "Zoom in", zoomOutText: "−", zoomOutTitle: "Zoom out" }, onAdd: function (t) { var e = "leaflet-control-zoom", n = re("div", e + " leaflet-bar"), i = this.options; return this._zoomInButton = this._createButton(i.zoomInText, i.zoomInTitle, e + "-in", n, this._zoomIn), this._zoomOutButton = this._createButton(i.zoomOutText, i.zoomOutTitle, e + "-out", n, this._zoomOut), this._updateDisabled(), t.on("zoomend zoomlevelschange", this._updateDisabled, this), n }, onRemove: function (t) { t.off("zoomend zoomlevelschange", this._updateDisabled, this) }, disable: function () { return this._disabled = !0, this._updateDisabled(), this }, enable: function () { return this._disabled = !1, this._updateDisabled(), this }, _zoomIn: function (t) { !this._disabled && this._map._zoom < this._map.getMaxZoom() && this._map.zoomIn(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1)) }, _zoomOut: function (t) { !this._disabled && this._map._zoom > this._map.getMinZoom() && this._map.zoomOut(this._map.options.zoomDelta * (t.shiftKey ? 3 : 1)) }, _createButton: function (t, e, n, i, o) { var a = re("a", n, i); return a.innerHTML = t, a.href = "#", a.title = e, a.setAttribute("role", "button"), a.setAttribute("aria-label", e), Ne(a), Se(a, "click", Fe), Se(a, "click", o, this), Se(a, "click", this._refocusOnMap, this), a }, _updateDisabled: function () { var t = this._map, e = "leaflet-disabled"; he(this._zoomInButton, e), he(this._zoomOutButton, e), (this._disabled || t._zoom === t.getMinZoom()) && pe(this._zoomOutButton, e), (this._disabled || t._zoom === t.getMaxZoom()) && pe(this._zoomInButton, e) } }); Ye.mergeOptions({ zoomControl: !0 }), Ye.addInitHook((function () { this.options.zoomControl && (this.zoomControl = new Qe, this.addControl(this.zoomControl)) })); var tn = Xe.extend({ options: { position: "bottomleft", maxWidth: 100, metric: !0, imperial: !0 }, onAdd: function (t) { var e = "leaflet-control-scale", n = re("div", e), i = this.options; return this._addScales(i, e + "-line", n), t.on(i.updateWhenIdle ? "moveend" : "move", this._update, this), t.whenReady(this._update, this), n }, onRemove: function (t) { t.off(this.options.updateWhenIdle ? "moveend" : "move", this._update, this) }, _addScales: function (t, e, n) { t.metric && (this._mScale = re("div", e, n)), t.imperial && (this._iScale = re("div", e, n)) }, _update: function () { var t = this._map, e = t.getSize().y / 2, n = t.distance(t.containerPointToLatLng([0, e]), t.containerPointToLatLng([this.options.maxWidth, e])); this._updateScales(n) }, _updateScales: function (t) { this.options.metric && t && this._updateMetric(t), this.options.imperial && t && this._updateImperial(t) }, _updateMetric: function (t) { var e = this._getRoundNum(t), n = e < 1e3 ? e + " m" : e / 1e3 + " km"; this._updateScale(this._mScale, n, e / t) }, _updateImperial: function (t) { var e, n, i, o = 3.2808399 * t; o > 5280 ? (e = o / 5280, n = this._getRoundNum(e), this._updateScale(this._iScale, n + " mi", n / e)) : (i = this._getRoundNum(o), this._updateScale(this._iScale, i + " ft", i / o)) }, _updateScale: function (t, e, n) { t.style.width = Math.round(this.options.maxWidth * n) + "px", t.innerHTML = e }, _getRoundNum: function (t) { var e = Math.pow(10, (Math.floor(t) + "").length - 1), n = t / e; return e * (n >= 10 ? 10 : n >= 5 ? 5 : n >= 3 ? 3 : n >= 2 ? 2 : 1) } }), en = Xe.extend({ options: { position: "bottomright", prefix: 'Leaflet' }, initialize: function (t) { h(this, t), this._attributions = {} }, onAdd: function (t) { for (var e in t.attributionControl = this, this._container = re("div", "leaflet-control-attribution"), Ne(this._container), t._layers) t._layers[e].getAttribution && this.addAttribution(t._layers[e].getAttribution()); return this._update(), this._container }, setPrefix: function (t) { return this.options.prefix = t, this._update(), this }, addAttribution: function (t) { return t ? (this._attributions[t] || (this._attributions[t] = 0), this._attributions[t]++, this._update(), this) : this }, removeAttribution: function (t) { return t ? (this._attributions[t] && (this._attributions[t]--, this._update()), this) : this }, _update: function () { if (this._map) { var t = []; for (var e in this._attributions) this._attributions[e] && t.push(e); var n = []; this.options.prefix && n.push(this.options.prefix), t.length && n.push(t.join(", ")), this._container.innerHTML = n.join(" | ") } } }); Ye.mergeOptions({ attributionControl: !0 }), Ye.addInitHook((function () { this.options.attributionControl && (new en).addTo(this) })); Xe.Layers = $e, Xe.Zoom = Qe, Xe.Scale = tn, Xe.Attribution = en, Je.layers = function (t, e, n) { return new $e(t, e, n) }, Je.zoom = function (t) { return new Qe(t) }, Je.scale = function (t) { return new tn(t) }, Je.attribution = function (t) { return new en(t) }; var nn = S.extend({ initialize: function (t) { this._map = t }, enable: function () { return this._enabled || (this._enabled = !0, this.addHooks()), this }, disable: function () { return this._enabled ? (this._enabled = !1, this.removeHooks(), this) : this }, enabled: function () { return !!this._enabled } }); nn.addTo = function (t, e) { return t.addHandler(e, this), this }; var on, an = { Events: T }, rn = Pt ? "touchstart mousedown" : "mousedown", sn = { mousedown: "mouseup", touchstart: "touchend", pointerdown: "touchend", MSPointerDown: "touchend" }, ln = { mousedown: "mousemove", touchstart: "touchmove", pointerdown: "touchmove", MSPointerDown: "touchmove" }, cn = E.extend({ options: { clickTolerance: 3 }, initialize: function (t, e, n, i) { h(this, i), this._element = t, this._dragStartTarget = e || t, this._preventOutline = n }, enable: function () { this._enabled || (Se(this._dragStartTarget, rn, this._onDown, this), this._enabled = !0) }, disable: function () { this._enabled && (cn._dragging === this && this.finishDrag(), Ee(this._dragStartTarget, rn, this._onDown, this), this._enabled = !1, this._moved = !1) }, _onDown: function (t) { if (!t._simulated && this._enabled && (this._moved = !1, !fe(this._element, "leaflet-zoom-anim") && !(cn._dragging || t.shiftKey || 1 !== t.which && 1 !== t.button && !t.touches || (cn._dragging = this, this._preventOutline && xe(this._element), ke(), Xt(), this._moving)))) { this.fire("down"); var e = t.touches ? t.touches[0] : t, n = Ce(this._element); this._startPoint = new j(e.clientX, e.clientY), this._parentScale = Oe(n), Se(document, ln[t.type], this._onMove, this), Se(document, sn[t.type], this._onUp, this) } }, _onMove: function (t) { if (!t._simulated && this._enabled) if (t.touches && t.touches.length > 1) this._moved = !0; else { var e = t.touches && 1 === t.touches.length ? t.touches[0] : t, n = new j(e.clientX, e.clientY)._subtract(this._startPoint); (n.x || n.y) && (Math.abs(n.x) + Math.abs(n.y) < this.options.clickTolerance || (n.x /= this._parentScale.x, n.y /= this._parentScale.y, Be(t), this._moved || (this.fire("dragstart"), this._moved = !0, this._startPos = we(this._element).subtract(n), pe(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), pe(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(n), this._moving = !0, O(this._animRequest), this._lastEvent = t, this._animRequest = C(this._updatePosition, this, !0))) } }, _updatePosition: function () { var t = { originalEvent: this._lastEvent }; this.fire("predrag", t), ve(this._element, this._newPos), this.fire("drag", t) }, _onUp: function (t) { !t._simulated && this._enabled && this.finishDrag() }, finishDrag: function () { for (var t in he(document.body, "leaflet-dragging"), this._lastTarget && (he(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), ln) Ee(document, ln[t], this._onMove, this), Ee(document, sn[t], this._onUp, this); Pe(), Jt(), this._moved && this._moving && (O(this._animRequest), this.fire("dragend", { distance: this._newPos.distanceTo(this._startPos) })), this._moving = !1, cn._dragging = !1 } }); function un(t, e) { if (!e || !t.length) return t.slice(); var n = e * e; return function (t, e) { var n = t.length, i = new (typeof Uint8Array != void 0 + "" ? Uint8Array : Array)(n); i[0] = i[n - 1] = 1, function t(e, n, i, o, a) { var r, s, l, c = 0; for (s = o + 1; s <= a - 1; s++)(l = gn(e[s], e[o], e[a], !0)) > c && (r = s, c = l); c > i && (n[r] = 1, t(e, n, i, o, r), t(e, n, i, r, a)) }(t, i, e, 0, n - 1); var o, a = []; for (o = 0; o < n; o++)i[o] && a.push(t[o]); return a }(t = function (t, e) { for (var n = [t[0]], i = 1, o = 0, a = t.length; i < a; i++)mn(t[i], t[o]) > e && (n.push(t[i]), o = i); return o < a - 1 && n.push(t[a - 1]), n }(t, n), n) } function fn(t, e, n) { return Math.sqrt(gn(t, e, n, !0)) } function pn(t, e, n, i, o) { var a, r, s, l = i ? on : dn(t, n), c = dn(e, n); for (on = c; ;) { if (!(l | c)) return [t, e]; if (l & c) return !1; s = dn(r = hn(t, e, a = l || c, n, o), n), a === l ? (t = r, l = s) : (e = r, c = s) } } function hn(t, e, n, i, o) { var a, r, s = e.x - t.x, l = e.y - t.y, c = i.min, u = i.max; return 8 & n ? (a = t.x + s * (u.y - t.y) / l, r = u.y) : 4 & n ? (a = t.x + s * (c.y - t.y) / l, r = c.y) : 2 & n ? (a = u.x, r = t.y + l * (u.x - t.x) / s) : 1 & n && (a = c.x, r = t.y + l * (c.x - t.x) / s), new j(a, r, o) } function dn(t, e) { var n = 0; return t.x < e.min.x ? n |= 1 : t.x > e.max.x && (n |= 2), t.y < e.min.y ? n |= 4 : t.y > e.max.y && (n |= 8), n } function mn(t, e) { var n = e.x - t.x, i = e.y - t.y; return n * n + i * i } function gn(t, e, n, i) { var o, a = e.x, r = e.y, s = n.x - a, l = n.y - r, c = s * s + l * l; return c > 0 && ((o = ((t.x - a) * s + (t.y - r) * l) / c) > 1 ? (a = n.x, r = n.y) : o > 0 && (a += s * o, r += l * o)), s = t.x - a, l = t.y - r, i ? s * s + l * l : new j(a, r) } function _n(t) { return !_(t[0]) || "object" != typeof t[0][0] && void 0 !== t[0][0] } function yn(t) { return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), _n(t) } var vn = (Object.freeze || Object)({ simplify: un, pointToSegmentDistance: fn, closestPointOnSegment: function (t, e, n) { return gn(t, e, n) }, clipSegment: pn, _getEdgeIntersection: hn, _getBitCode: dn, _sqClosestPointOnSegment: gn, isFlat: _n, _flat: yn }); function wn(t, e, n) { var i, o, a, r, s, l, c, u, f, p = [1, 4, 2, 8]; for (o = 0, c = t.length; o < c; o++)t[o]._code = dn(t[o], e); for (r = 0; r < 4; r++) { for (u = p[r], i = [], o = 0, a = (c = t.length) - 1; o < c; a = o++)s = t[o], l = t[a], s._code & u ? l._code & u || ((f = hn(l, s, u, e, n))._code = dn(f, e), i.push(f)) : (l._code & u && ((f = hn(l, s, u, e, n))._code = dn(f, e), i.push(f)), i.push(s)); t = i } return t } var bn = (Object.freeze || Object)({ clipPolygon: wn }), kn = { project: function (t) { return new j(t.lng, t.lat) }, unproject: function (t) { return new D(t.y, t.x) }, bounds: new I([-180, -90], [180, 90]) }, Pn = { R: 6378137, R_MINOR: 6356752.314245179, bounds: new I([-20037508.34279, -15496570.73972], [20037508.34279, 18764656.23138]), project: function (t) { var e = Math.PI / 180, n = this.R, i = t.lat * e, o = this.R_MINOR / n, a = Math.sqrt(1 - o * o), r = a * Math.sin(i), s = Math.tan(Math.PI / 4 - i / 2) / Math.pow((1 - r) / (1 + r), a / 2); return i = -n * Math.log(Math.max(s, 1e-10)), new j(t.lng * e * n, i) }, unproject: function (t) { for (var e, n = 180 / Math.PI, i = this.R, o = this.R_MINOR / i, a = Math.sqrt(1 - o * o), r = Math.exp(-t.y / i), s = Math.PI / 2 - 2 * Math.atan(r), l = 0, c = .1; l < 15 && Math.abs(c) > 1e-7; l++)e = a * Math.sin(s), e = Math.pow((1 - e) / (1 + e), a / 2), s += c = Math.PI / 2 - 2 * Math.atan(r * e) - s; return new D(s * n, t.x * n / i) } }, xn = (Object.freeze || Object)({ LonLat: kn, Mercator: Pn, SphericalMercator: W }), Ln = n({}, q, { code: "EPSG:3395", projection: Pn, transformation: function () { var t = .5 / (Math.PI * Pn.R); return V(t, .5, -t, .5) }() }), Cn = n({}, q, { code: "EPSG:4326", projection: kn, transformation: V(1 / 180, 1, -1 / 180, .5) }), On = n({}, H, { projection: kn, transformation: V(1, 0, -1, 0), scale: function (t) { return Math.pow(2, t) }, zoom: function (t) { return Math.log(t) / Math.LN2 }, distance: function (t, e) { var n = e.lng - t.lng, i = e.lat - t.lat; return Math.sqrt(n * n + i * i) }, infinite: !0 }); H.Earth = q, H.EPSG3395 = Ln, H.EPSG3857 = K, H.EPSG900913 = Y, H.EPSG4326 = Cn, H.Simple = On; var Mn = E.extend({ options: { pane: "overlayPane", attribution: null, bubblingMouseEvents: !0 }, addTo: function (t) { return t.addLayer(this), this }, remove: function () { return this.removeFrom(this._map || this._mapToAdd) }, removeFrom: function (t) { return t && t.removeLayer(this), this }, getPane: function (t) { return this._map.getPane(t ? this.options[t] || t : this.options.pane) }, addInteractiveTarget: function (t) { return this._map._targets[r(t)] = this, this }, removeInteractiveTarget: function (t) { return delete this._map._targets[r(t)], this }, getAttribution: function () { return this.options.attribution }, _layerAdd: function (t) { var e = t.target; if (e.hasLayer(this)) { if (this._map = e, this._zoomAnimated = e._zoomAnimated, this.getEvents) { var n = this.getEvents(); e.on(n, this), this.once("remove", (function () { e.off(n, this) }), this) } this.onAdd(e), this.getAttribution && e.attributionControl && e.attributionControl.addAttribution(this.getAttribution()), this.fire("add"), e.fire("layeradd", { layer: this }) } } }); Ye.include({ addLayer: function (t) { if (!t._layerAdd) throw new Error("The provided object is not a Layer."); var e = r(t); return this._layers[e] || (this._layers[e] = t, t._mapToAdd = this, t.beforeAdd && t.beforeAdd(this), this.whenReady(t._layerAdd, t)), this }, removeLayer: function (t) { var e = r(t); return this._layers[e] ? (this._loaded && t.onRemove(this), t.getAttribution && this.attributionControl && this.attributionControl.removeAttribution(t.getAttribution()), delete this._layers[e], this._loaded && (this.fire("layerremove", { layer: t }), t.fire("remove")), t._map = t._mapToAdd = null, this) : this }, hasLayer: function (t) { return !!t && r(t) in this._layers }, eachLayer: function (t, e) { for (var n in this._layers) t.call(e, this._layers[n]); return this }, _addLayers: function (t) { for (var e = 0, n = (t = t ? _(t) ? t : [t] : []).length; e < n; e++)this.addLayer(t[e]) }, _addZoomLimit: function (t) { !isNaN(t.options.maxZoom) && isNaN(t.options.minZoom) || (this._zoomBoundLayers[r(t)] = t, this._updateZoomLevels()) }, _removeZoomLimit: function (t) { var e = r(t); this._zoomBoundLayers[e] && (delete this._zoomBoundLayers[e], this._updateZoomLevels()) }, _updateZoomLevels: function () { var t = 1 / 0, e = -1 / 0, n = this._getZoomSpan(); for (var i in this._zoomBoundLayers) { var o = this._zoomBoundLayers[i].options; t = void 0 === o.minZoom ? t : Math.min(t, o.minZoom), e = void 0 === o.maxZoom ? e : Math.max(e, o.maxZoom) } this._layersMaxZoom = e === -1 / 0 ? void 0 : e, this._layersMinZoom = t === 1 / 0 ? void 0 : t, n !== this._getZoomSpan() && this.fire("zoomlevelschange"), void 0 === this.options.maxZoom && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this.setZoom(this._layersMaxZoom), void 0 === this.options.minZoom && this._layersMinZoom && this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom) } }); var Sn = Mn.extend({ initialize: function (t, e) { var n, i; if (h(this, e), this._layers = {}, t) for (n = 0, i = t.length; n < i; n++)this.addLayer(t[n]) }, addLayer: function (t) { var e = this.getLayerId(t); return this._layers[e] = t, this._map && this._map.addLayer(t), this }, removeLayer: function (t) { var e = t in this._layers ? t : this.getLayerId(t); return this._map && this._layers[e] && this._map.removeLayer(this._layers[e]), delete this._layers[e], this }, hasLayer: function (t) { return !!t && (t in this._layers || this.getLayerId(t) in this._layers) }, clearLayers: function () { return this.eachLayer(this.removeLayer, this) }, invoke: function (t) { var e, n, i = Array.prototype.slice.call(arguments, 1); for (e in this._layers) (n = this._layers[e])[t] && n[t].apply(n, i); return this }, onAdd: function (t) { this.eachLayer(t.addLayer, t) }, onRemove: function (t) { this.eachLayer(t.removeLayer, t) }, eachLayer: function (t, e) { for (var n in this._layers) t.call(e, this._layers[n]); return this }, getLayer: function (t) { return this._layers[t] }, getLayers: function () { var t = []; return this.eachLayer(t.push, t), t }, setZIndex: function (t) { return this.invoke("setZIndex", t) }, getLayerId: function (t) { return r(t) } }), Tn = Sn.extend({ addLayer: function (t) { return this.hasLayer(t) ? this : (t.addEventParent(this), Sn.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t })) }, removeLayer: function (t) { return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this), Sn.prototype.removeLayer.call(this, t), this.fire("layerremove", { layer: t })) : this }, setStyle: function (t) { return this.invoke("setStyle", t) }, bringToFront: function () { return this.invoke("bringToFront") }, bringToBack: function () { return this.invoke("bringToBack") }, getBounds: function () { var t = new B; for (var e in this._layers) { var n = this._layers[e]; t.extend(n.getBounds ? n.getBounds() : n.getLatLng()) } return t } }), En = S.extend({ options: { popupAnchor: [0, 0], tooltipAnchor: [0, 0] }, initialize: function (t) { h(this, t) }, createIcon: function (t) { return this._createIcon("icon", t) }, createShadow: function (t) { return this._createIcon("shadow", t) }, _createIcon: function (t, e) { var n = this._getIconUrl(t); if (!n) { if ("icon" === t) throw new Error("iconUrl not set in Icon options (see the docs)."); return null } var i = this._createImg(n, e && "IMG" === e.tagName ? e : null); return this._setIconStyles(i, t), i }, _setIconStyles: function (t, e) { var n = this.options, i = n[e + "Size"]; "number" == typeof i && (i = [i, i]); var o = A(i), a = A("shadow" === e && n.shadowAnchor || n.iconAnchor || o && o.divideBy(2, !0)); t.className = "leaflet-marker-" + e + " " + (n.className || ""), a && (t.style.marginLeft = -a.x + "px", t.style.marginTop = -a.y + "px"), o && (t.style.width = o.x + "px", t.style.height = o.y + "px") }, _createImg: function (t, e) { return (e = e || document.createElement("img")).src = t, e }, _getIconUrl: function (t) { return Ct && this.options[t + "RetinaUrl"] || this.options[t + "Url"] } }); var jn = En.extend({ options: { iconUrl: "marker-icon.png", iconRetinaUrl: "marker-icon-2x.png", shadowUrl: "marker-shadow.png", iconSize: [25, 41], iconAnchor: [12, 41], popupAnchor: [1, -34], tooltipAnchor: [16, -28], shadowSize: [41, 41] }, _getIconUrl: function (t) { return jn.imagePath || (jn.imagePath = this._detectIconPath()), (this.options.imagePath || jn.imagePath) + En.prototype._getIconUrl.call(this, t) }, _detectIconPath: function () { var t = re("div", "leaflet-default-icon-path", document.body), e = ae(t, "background-image") || ae(t, "backgroundImage"); return document.body.removeChild(t), null === e || 0 !== e.indexOf("url") ? "" : e.replace(/^url\(["']?/, "").replace(/marker-icon\.png["']?\)$/, "") } }), zn = nn.extend({ initialize: function (t) { this._marker = t }, addHooks: function () { var t = this._marker._icon; this._draggable || (this._draggable = new cn(t, t, !0)), this._draggable.on({ dragstart: this._onDragStart, predrag: this._onPreDrag, drag: this._onDrag, dragend: this._onDragEnd }, this).enable(), pe(t, "leaflet-marker-draggable") }, removeHooks: function () { this._draggable.off({ dragstart: this._onDragStart, predrag: this._onPreDrag, drag: this._onDrag, dragend: this._onDragEnd }, this).disable(), this._marker._icon && he(this._marker._icon, "leaflet-marker-draggable") }, moved: function () { return this._draggable && this._draggable._moved }, _adjustPan: function (t) { var e = this._marker, n = e._map, i = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, a = we(e._icon), r = n.getPixelBounds(), s = n.getPixelOrigin(), l = N(r.min._subtract(s).add(o), r.max._subtract(s).subtract(o)); if (!l.contains(a)) { var c = A((Math.max(l.max.x, a.x) - l.max.x) / (r.max.x - l.max.x) - (Math.min(l.min.x, a.x) - l.min.x) / (r.min.x - l.min.x), (Math.max(l.max.y, a.y) - l.max.y) / (r.max.y - l.max.y) - (Math.min(l.min.y, a.y) - l.min.y) / (r.min.y - l.min.y)).multiplyBy(i); n.panBy(c, { animate: !1 }), this._draggable._newPos._add(c), this._draggable._startPos._add(c), ve(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = C(this._adjustPan.bind(this, t)) } }, _onDragStart: function () { this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup().fire("movestart").fire("dragstart") }, _onPreDrag: function (t) { this._marker.options.autoPan && (O(this._panRequest), this._panRequest = C(this._adjustPan.bind(this, t))) }, _onDrag: function (t) { var e = this._marker, n = e._shadow, i = we(e._icon), o = e._map.layerPointToLatLng(i); n && ve(n, i), e._latlng = o, t.latlng = o, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t) }, _onDragEnd: function (t) { O(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t) } }), An = Mn.extend({ options: { icon: new jn, interactive: !0, keyboard: !0, title: "", alt: "", zIndexOffset: 0, opacity: 1, riseOnHover: !1, riseOffset: 250, pane: "markerPane", shadowPane: "shadowPane", bubblingMouseEvents: !1, draggable: !1, autoPan: !1, autoPanPadding: [50, 50], autoPanSpeed: 10 }, initialize: function (t, e) { h(this, e), this._latlng = Z(t) }, onAdd: function (t) { this._zoomAnimated = this._zoomAnimated && t.options.markerZoomAnimation, this._zoomAnimated && t.on("zoomanim", this._animateZoom, this), this._initIcon(), this.update() }, onRemove: function (t) { this.dragging && this.dragging.enabled() && (this.options.draggable = !0, this.dragging.removeHooks()), delete this.dragging, this._zoomAnimated && t.off("zoomanim", this._animateZoom, this), this._removeIcon(), this._removeShadow() }, getEvents: function () { return { zoom: this.update, viewreset: this.update } }, getLatLng: function () { return this._latlng }, setLatLng: function (t) { var e = this._latlng; return this._latlng = Z(t), this.update(), this.fire("move", { oldLatLng: e, latlng: this._latlng }) }, setZIndexOffset: function (t) { return this.options.zIndexOffset = t, this.update() }, getIcon: function () { return this.options.icon }, setIcon: function (t) { return this.options.icon = t, this._map && (this._initIcon(), this.update()), this._popup && this.bindPopup(this._popup, this._popup.options), this }, getElement: function () { return this._icon }, update: function () { if (this._icon && this._map) { var t = this._map.latLngToLayerPoint(this._latlng).round(); this._setPos(t) } return this }, _initIcon: function () { var t = this.options, e = "leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide"), n = t.icon.createIcon(this._icon), i = !1; n !== this._icon && (this._icon && this._removeIcon(), i = !0, t.title && (n.title = t.title), "IMG" === n.tagName && (n.alt = t.alt || "")), pe(n, e), t.keyboard && (n.tabIndex = "0"), this._icon = n, t.riseOnHover && this.on({ mouseover: this._bringToFront, mouseout: this._resetZIndex }); var o = t.icon.createShadow(this._shadow), a = !1; o !== this._shadow && (this._removeShadow(), a = !0), o && (pe(o, e), o.alt = ""), this._shadow = o, t.opacity < 1 && this._updateOpacity(), i && this.getPane().appendChild(this._icon), this._initInteraction(), o && a && this.getPane(t.shadowPane).appendChild(this._shadow) }, _removeIcon: function () { this.options.riseOnHover && this.off({ mouseover: this._bringToFront, mouseout: this._resetZIndex }), se(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null }, _removeShadow: function () { this._shadow && se(this._shadow), this._shadow = null }, _setPos: function (t) { ve(this._icon, t), this._shadow && ve(this._shadow, t), this._zIndex = t.y + this.options.zIndexOffset, this._resetZIndex() }, _updateZIndex: function (t) { this._icon.style.zIndex = this._zIndex + t }, _animateZoom: function (t) { var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center).round(); this._setPos(e) }, _initInteraction: function () { if (this.options.interactive && (pe(this._icon, "leaflet-interactive"), this.addInteractiveTarget(this._icon), zn)) { var t = this.options.draggable; this.dragging && (t = this.dragging.enabled(), this.dragging.disable()), this.dragging = new zn(this), t && this.dragging.enable() } }, setOpacity: function (t) { return this.options.opacity = t, this._map && this._updateOpacity(), this }, _updateOpacity: function () { var t = this.options.opacity; this._icon && ge(this._icon, t), this._shadow && ge(this._shadow, t) }, _bringToFront: function () { this._updateZIndex(this.options.riseOffset) }, _resetZIndex: function () { this._updateZIndex(0) }, _getPopupAnchor: function () { return this.options.icon.options.popupAnchor }, _getTooltipAnchor: function () { return this.options.icon.options.tooltipAnchor } }); var In = Mn.extend({ options: { stroke: !0, color: "#3388ff", weight: 3, opacity: 1, lineCap: "round", lineJoin: "round", dashArray: null, dashOffset: null, fill: !1, fillColor: null, fillOpacity: .2, fillRule: "evenodd", interactive: !0, bubblingMouseEvents: !0 }, beforeAdd: function (t) { this._renderer = t.getRenderer(this) }, onAdd: function () { this._renderer._initPath(this), this._reset(), this._renderer._addPath(this) }, onRemove: function () { this._renderer._removePath(this) }, redraw: function () { return this._map && this._renderer._updatePath(this), this }, setStyle: function (t) { return h(this, t), this._renderer && (this._renderer._updateStyle(this), this.options.stroke && t.hasOwnProperty("weight") && this._updateBounds()), this }, bringToFront: function () { return this._renderer && this._renderer._bringToFront(this), this }, bringToBack: function () { return this._renderer && this._renderer._bringToBack(this), this }, getElement: function () { return this._path }, _reset: function () { this._project(), this._update() }, _clickTolerance: function () { return (this.options.stroke ? this.options.weight / 2 : 0) + this._renderer.options.tolerance } }), Nn = In.extend({ options: { fill: !0, radius: 10 }, initialize: function (t, e) { h(this, e), this._latlng = Z(t), this._radius = this.options.radius }, setLatLng: function (t) { return this._latlng = Z(t), this.redraw(), this.fire("move", { latlng: this._latlng }) }, getLatLng: function () { return this._latlng }, setRadius: function (t) { return this.options.radius = this._radius = t, this.redraw() }, getRadius: function () { return this._radius }, setStyle: function (t) { var e = t && t.radius || this._radius; return In.prototype.setStyle.call(this, t), this.setRadius(e), this }, _project: function () { this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds() }, _updateBounds: function () { var t = this._radius, e = this._radiusY || t, n = this._clickTolerance(), i = [t + n, e + n]; this._pxBounds = new I(this._point.subtract(i), this._point.add(i)) }, _update: function () { this._map && this._updatePath() }, _updatePath: function () { this._renderer._updateCircle(this) }, _empty: function () { return this._radius && !this._renderer._bounds.intersects(this._pxBounds) }, _containsPoint: function (t) { return t.distanceTo(this._point) <= this._radius + this._clickTolerance() } }); var Bn = Nn.extend({ initialize: function (t, e, i) { if ("number" == typeof e && (e = n({}, i, { radius: e })), h(this, e), this._latlng = Z(t), isNaN(this.options.radius)) throw new Error("Circle radius cannot be NaN"); this._mRadius = this.options.radius }, setRadius: function (t) { return this._mRadius = t, this.redraw() }, getRadius: function () { return this._mRadius }, getBounds: function () { var t = [this._radius, this._radiusY || this._radius]; return new B(this._map.layerPointToLatLng(this._point.subtract(t)), this._map.layerPointToLatLng(this._point.add(t))) }, setStyle: In.prototype.setStyle, _project: function () { var t = this._latlng.lng, e = this._latlng.lat, n = this._map, i = n.options.crs; if (i.distance === q.distance) { var o = Math.PI / 180, a = this._mRadius / q.R / o, r = n.project([e + a, t]), s = n.project([e - a, t]), l = r.add(s).divideBy(2), c = n.unproject(l).lat, u = Math.acos((Math.cos(a * o) - Math.sin(e * o) * Math.sin(c * o)) / (Math.cos(e * o) * Math.cos(c * o))) / o; (isNaN(u) || 0 === u) && (u = a / Math.cos(Math.PI / 180 * e)), this._point = l.subtract(n.getPixelOrigin()), this._radius = isNaN(u) ? 0 : l.x - n.project([c, t - u]).x, this._radiusY = l.y - r.y } else { var f = i.unproject(i.project(this._latlng).subtract([this._mRadius, 0])); this._point = n.latLngToLayerPoint(this._latlng), this._radius = this._point.x - n.latLngToLayerPoint(f).x } this._updateBounds() } }); var Fn = In.extend({ options: { smoothFactor: 1, noClip: !1 }, initialize: function (t, e) { h(this, e), this._setLatLngs(t) }, getLatLngs: function () { return this._latlngs }, setLatLngs: function (t) { return this._setLatLngs(t), this.redraw() }, isEmpty: function () { return !this._latlngs.length }, closestLayerPoint: function (t) { for (var e, n, i = 1 / 0, o = null, a = gn, r = 0, s = this._parts.length; r < s; r++)for (var l = this._parts[r], c = 1, u = l.length; c < u; c++) { var f = a(t, e = l[c - 1], n = l[c], !0); f < i && (i = f, o = a(t, e, n)) } return o && (o.distance = Math.sqrt(i)), o }, getCenter: function () { if (!this._map) throw new Error("Must add layer to map before using getCenter()"); var t, e, n, i, o, a, r, s = this._rings[0], l = s.length; if (!l) return null; for (t = 0, e = 0; t < l - 1; t++)e += s[t].distanceTo(s[t + 1]) / 2; if (0 === e) return this._map.layerPointToLatLng(s[0]); for (t = 0, i = 0; t < l - 1; t++)if (o = s[t], a = s[t + 1], (i += n = o.distanceTo(a)) > e) return r = (i - e) / n, this._map.layerPointToLatLng([a.x - r * (a.x - o.x), a.y - r * (a.y - o.y)]) }, getBounds: function () { return this._bounds }, addLatLng: function (t, e) { return e = e || this._defaultShape(), t = Z(t), e.push(t), this._bounds.extend(t), this.redraw() }, _setLatLngs: function (t) { this._bounds = new B, this._latlngs = this._convertLatLngs(t) }, _defaultShape: function () { return _n(this._latlngs) ? this._latlngs : this._latlngs[0] }, _convertLatLngs: function (t) { for (var e = [], n = _n(t), i = 0, o = t.length; i < o; i++)n ? (e[i] = Z(t[i]), this._bounds.extend(e[i])) : e[i] = this._convertLatLngs(t[i]); return e }, _project: function () { var t = new I; this._rings = [], this._projectLatlngs(this._latlngs, this._rings, t), this._bounds.isValid() && t.isValid() && (this._rawPxBounds = t, this._updateBounds()) }, _updateBounds: function () { var t = this._clickTolerance(), e = new j(t, t); this._pxBounds = new I([this._rawPxBounds.min.subtract(e), this._rawPxBounds.max.add(e)]) }, _projectLatlngs: function (t, e, n) { var i, o, a = t[0] instanceof D, r = t.length; if (a) { for (o = [], i = 0; i < r; i++)o[i] = this._map.latLngToLayerPoint(t[i]), n.extend(o[i]); e.push(o) } else for (i = 0; i < r; i++)this._projectLatlngs(t[i], e, n) }, _clipPoints: function () { var t = this._renderer._bounds; if (this._parts = [], this._pxBounds && this._pxBounds.intersects(t)) if (this.options.noClip) this._parts = this._rings; else { var e, n, i, o, a, r, s, l = this._parts; for (e = 0, i = 0, o = this._rings.length; e < o; e++)for (n = 0, a = (s = this._rings[e]).length; n < a - 1; n++)(r = pn(s[n], s[n + 1], t, n, !0)) && (l[i] = l[i] || [], l[i].push(r[0]), r[1] === s[n + 1] && n !== a - 2 || (l[i].push(r[1]), i++)) } }, _simplifyPoints: function () { for (var t = this._parts, e = this.options.smoothFactor, n = 0, i = t.length; n < i; n++)t[n] = un(t[n], e) }, _update: function () { this._map && (this._clipPoints(), this._simplifyPoints(), this._updatePath()) }, _updatePath: function () { this._renderer._updatePoly(this) }, _containsPoint: function (t, e) { var n, i, o, a, r, s, l = this._clickTolerance(); if (!this._pxBounds || !this._pxBounds.contains(t)) return !1; for (n = 0, a = this._parts.length; n < a; n++)for (i = 0, o = (r = (s = this._parts[n]).length) - 1; i < r; o = i++)if ((e || 0 !== i) && fn(t, s[o], s[i]) <= l) return !0; return !1 } }); Fn._flat = yn; var Dn = Fn.extend({ options: { fill: !0 }, isEmpty: function () { return !this._latlngs.length || !this._latlngs[0].length }, getCenter: function () { if (!this._map) throw new Error("Must add layer to map before using getCenter()"); var t, e, n, i, o, a, r, s, l, c = this._rings[0], u = c.length; if (!u) return null; for (a = r = s = 0, t = 0, e = u - 1; t < u; e = t++)n = c[t], i = c[e], o = n.y * i.x - i.y * n.x, r += (n.x + i.x) * o, s += (n.y + i.y) * o, a += 3 * o; return l = 0 === a ? c[0] : [r / a, s / a], this._map.layerPointToLatLng(l) }, _convertLatLngs: function (t) { var e = Fn.prototype._convertLatLngs.call(this, t), n = e.length; return n >= 2 && e[0] instanceof D && e[0].equals(e[n - 1]) && e.pop(), e }, _setLatLngs: function (t) { Fn.prototype._setLatLngs.call(this, t), _n(this._latlngs) && (this._latlngs = [this._latlngs]) }, _defaultShape: function () { return _n(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0] }, _clipPoints: function () { var t = this._renderer._bounds, e = this.options.weight, n = new j(e, e); if (t = new I(t.min.subtract(n), t.max.add(n)), this._parts = [], this._pxBounds && this._pxBounds.intersects(t)) if (this.options.noClip) this._parts = this._rings; else for (var i, o = 0, a = this._rings.length; o < a; o++)(i = wn(this._rings[o], t, !0)).length && this._parts.push(i) }, _updatePath: function () { this._renderer._updatePoly(this, !0) }, _containsPoint: function (t) { var e, n, i, o, a, r, s, l, c = !1; if (!this._pxBounds || !this._pxBounds.contains(t)) return !1; for (o = 0, s = this._parts.length; o < s; o++)for (a = 0, r = (l = (e = this._parts[o]).length) - 1; a < l; r = a++)n = e[a], i = e[r], n.y > t.y != i.y > t.y && t.x < (i.x - n.x) * (t.y - n.y) / (i.y - n.y) + n.x && (c = !c); return c || Fn.prototype._containsPoint.call(this, t, !0) } }); var Zn = Tn.extend({ initialize: function (t, e) { h(this, e), this._layers = {}, t && this.addData(t) }, addData: function (t) { var e, n, i, o = _(t) ? t : t.features; if (o) { for (e = 0, n = o.length; e < n; e++)((i = o[e]).geometries || i.geometry || i.features || i.coordinates) && this.addData(i); return this } var a = this.options; if (a.filter && !a.filter(t)) return this; var r = Rn(t, a); return r ? (r.feature = Vn(t), r.defaultOptions = r.options, this.resetStyle(r), a.onEachFeature && a.onEachFeature(t, r), this.addLayer(r)) : this }, resetStyle: function (t) { return t.options = n({}, t.defaultOptions), this._setLayerStyle(t, this.options.style), this }, setStyle: function (t) { return this.eachLayer((function (e) { this._setLayerStyle(e, t) }), this) }, _setLayerStyle: function (t, e) { t.setStyle && ("function" == typeof e && (e = e(t.feature)), t.setStyle(e)) } }); function Rn(t, e) { var n, i, o, a, r = "Feature" === t.type ? t.geometry : t, s = r ? r.coordinates : null, l = [], c = e && e.pointToLayer, u = e && e.coordsToLatLng || Hn; if (!s && !r) return null; switch (r.type) { case "Point": return n = u(s), c ? c(t, n) : new An(n); case "MultiPoint": for (o = 0, a = s.length; o < a; o++)n = u(s[o]), l.push(c ? c(t, n) : new An(n)); return new Tn(l); case "LineString": case "MultiLineString": return i = qn(s, "LineString" === r.type ? 0 : 1, u), new Fn(i, e); case "Polygon": case "MultiPolygon": return i = qn(s, "Polygon" === r.type ? 1 : 2, u), new Dn(i, e); case "GeometryCollection": for (o = 0, a = r.geometries.length; o < a; o++) { var f = Rn({ geometry: r.geometries[o], type: "Feature", properties: t.properties }, e); f && l.push(f) } return new Tn(l); default: throw new Error("Invalid GeoJSON object.") } } function Hn(t) { return new D(t[1], t[0], t[2]) } function qn(t, e, n) { for (var i, o = [], a = 0, r = t.length; a < r; a++)i = e ? qn(t[a], e - 1, n) : (n || Hn)(t[a]), o.push(i); return o } function Un(t, e) { return e = "number" == typeof e ? e : 6, void 0 !== t.alt ? [u(t.lng, e), u(t.lat, e), u(t.alt, e)] : [u(t.lng, e), u(t.lat, e)] } function Wn(t, e, n, i) { for (var o = [], a = 0, r = t.length; a < r; a++)o.push(e ? Wn(t[a], e - 1, n, i) : Un(t[a], i)); return !e && n && o.push(o[0]), o } function Gn(t, e) { return t.feature ? n({}, t.feature, { geometry: e }) : Vn(e) } function Vn(t) { return "Feature" === t.type || "FeatureCollection" === t.type ? t : { type: "Feature", properties: {}, geometry: t } } var Kn = { toGeoJSON: function (t) { return Gn(this, { type: "Point", coordinates: Un(this.getLatLng(), t) }) } }; function Yn(t, e) { return new Zn(t, e) } An.include(Kn), Bn.include(Kn), Nn.include(Kn), Fn.include({ toGeoJSON: function (t) { var e = !_n(this._latlngs); return Gn(this, { type: (e ? "Multi" : "") + "LineString", coordinates: Wn(this._latlngs, e ? 1 : 0, !1, t) }) } }), Dn.include({ toGeoJSON: function (t) { var e = !_n(this._latlngs), n = e && !_n(this._latlngs[0]), i = Wn(this._latlngs, n ? 2 : e ? 1 : 0, !0, t); return e || (i = [i]), Gn(this, { type: (n ? "Multi" : "") + "Polygon", coordinates: i }) } }), Sn.include({ toMultiPoint: function (t) { var e = []; return this.eachLayer((function (n) { e.push(n.toGeoJSON(t).geometry.coordinates) })), Gn(this, { type: "MultiPoint", coordinates: e }) }, toGeoJSON: function (t) { var e = this.feature && this.feature.geometry && this.feature.geometry.type; if ("MultiPoint" === e) return this.toMultiPoint(t); var n = "GeometryCollection" === e, i = []; return this.eachLayer((function (e) { if (e.toGeoJSON) { var o = e.toGeoJSON(t); if (n) i.push(o.geometry); else { var a = Vn(o); "FeatureCollection" === a.type ? i.push.apply(i, a.features) : i.push(a) } } })), n ? Gn(this, { geometries: i, type: "GeometryCollection" }) : { type: "FeatureCollection", features: i } } }); var Xn = Yn, Jn = Mn.extend({ options: { opacity: 1, alt: "", interactive: !1, crossOrigin: !1, errorOverlayUrl: "", zIndex: 1, className: "" }, initialize: function (t, e, n) { this._url = t, this._bounds = F(e), h(this, n) }, onAdd: function () { this._image || (this._initImage(), this.options.opacity < 1 && this._updateOpacity()), this.options.interactive && (pe(this._image, "leaflet-interactive"), this.addInteractiveTarget(this._image)), this.getPane().appendChild(this._image), this._reset() }, onRemove: function () { se(this._image), this.options.interactive && this.removeInteractiveTarget(this._image) }, setOpacity: function (t) { return this.options.opacity = t, this._image && this._updateOpacity(), this }, setStyle: function (t) { return t.opacity && this.setOpacity(t.opacity), this }, bringToFront: function () { return this._map && ce(this._image), this }, bringToBack: function () { return this._map && ue(this._image), this }, setUrl: function (t) { return this._url = t, this._image && (this._image.src = t), this }, setBounds: function (t) { return this._bounds = F(t), this._map && this._reset(), this }, getEvents: function () { var t = { zoom: this._reset, viewreset: this._reset }; return this._zoomAnimated && (t.zoomanim = this._animateZoom), t }, setZIndex: function (t) { return this.options.zIndex = t, this._updateZIndex(), this }, getBounds: function () { return this._bounds }, getElement: function () { return this._image }, _initImage: function () { var t = "IMG" === this._url.tagName, e = this._image = t ? this._url : re("img"); pe(e, "leaflet-image-layer"), this._zoomAnimated && pe(e, "leaflet-zoom-animated"), this.options.className && pe(e, this.options.className), e.onselectstart = c, e.onmousemove = c, e.onload = o(this.fire, this, "load"), e.onerror = o(this._overlayOnError, this, "error"), (this.options.crossOrigin || "" === this.options.crossOrigin) && (e.crossOrigin = !0 === this.options.crossOrigin ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), t ? this._url = e.src : (e.src = this._url, e.alt = this.options.alt) }, _animateZoom: function (t) { var e = this._map.getZoomScale(t.zoom), n = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min; ye(this._image, n, e) }, _reset: function () { var t = this._image, e = new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()), this._map.latLngToLayerPoint(this._bounds.getSouthEast())), n = e.getSize(); ve(t, e.min), t.style.width = n.x + "px", t.style.height = n.y + "px" }, _updateOpacity: function () { ge(this._image, this.options.opacity) }, _updateZIndex: function () { this._image && void 0 !== this.options.zIndex && null !== this.options.zIndex && (this._image.style.zIndex = this.options.zIndex) }, _overlayOnError: function () { this.fire("error"); var t = this.options.errorOverlayUrl; t && this._url !== t && (this._url = t, this._image.src = t) } }), $n = Jn.extend({ options: { autoplay: !0, loop: !0, keepAspectRatio: !0 }, _initImage: function () { var t = "VIDEO" === this._url.tagName, e = this._image = t ? this._url : re("video"); if (pe(e, "leaflet-image-layer"), this._zoomAnimated && pe(e, "leaflet-zoom-animated"), e.onselectstart = c, e.onmousemove = c, e.onloadeddata = o(this.fire, this, "load"), t) { for (var n = e.getElementsByTagName("source"), i = [], a = 0; a < n.length; a++)i.push(n[a].src); this._url = n.length > 0 ? i : [e.src] } else { _(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && e.style.hasOwnProperty("objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop; for (var r = 0; r < this._url.length; r++) { var s = re("source"); s.src = this._url[r], e.appendChild(s) } } } }); var Qn = Jn.extend({ _initImage: function () { var t = this._image = this._url; pe(t, "leaflet-image-layer"), this._zoomAnimated && pe(t, "leaflet-zoom-animated"), t.onselectstart = c, t.onmousemove = c } }); var ti = Mn.extend({ options: { offset: [0, 7], className: "", pane: "popupPane" }, initialize: function (t, e) { h(this, t), this._source = e }, onAdd: function (t) { this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && ge(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && ge(this._container, 1), this.bringToFront() }, onRemove: function (t) { t._fadeAnimated ? (ge(this._container, 0), this._removeTimeout = setTimeout(o(se, void 0, this._container), 200)) : se(this._container) }, getLatLng: function () { return this._latlng }, setLatLng: function (t) { return this._latlng = Z(t), this._map && (this._updatePosition(), this._adjustPan()), this }, getContent: function () { return this._content }, setContent: function (t) { return this._content = t, this.update(), this }, getElement: function () { return this._container }, update: function () { this._map && (this._container.style.visibility = "hidden", this._updateContent(), this._updateLayout(), this._updatePosition(), this._container.style.visibility = "", this._adjustPan()) }, getEvents: function () { var t = { zoom: this._updatePosition, viewreset: this._updatePosition }; return this._zoomAnimated && (t.zoomanim = this._animateZoom), t }, isOpen: function () { return !!this._map && this._map.hasLayer(this) }, bringToFront: function () { return this._map && ce(this._container), this }, bringToBack: function () { return this._map && ue(this._container), this }, _prepareOpen: function (t, e, n) { if (e instanceof Mn || (n = e, e = t), e instanceof Tn) for (var i in t._layers) { e = t._layers[i]; break } if (!n) if (e.getCenter) n = e.getCenter(); else { if (!e.getLatLng) throw new Error("Unable to get source layer LatLng."); n = e.getLatLng() } return this._source = e, this.update(), n }, _updateContent: function () { if (this._content) { var t = this._contentNode, e = "function" == typeof this._content ? this._content(this._source || this) : this._content; if ("string" == typeof e) t.innerHTML = e; else { for (; t.hasChildNodes();)t.removeChild(t.firstChild); t.appendChild(e) } this.fire("contentupdate") } }, _updatePosition: function () { if (this._map) { var t = this._map.latLngToLayerPoint(this._latlng), e = A(this.options.offset), n = this._getAnchor(); this._zoomAnimated ? ve(this._container, t.add(n)) : e = e.add(t).add(n); var i = this._containerBottom = -e.y, o = this._containerLeft = -Math.round(this._containerWidth / 2) + e.x; this._container.style.bottom = i + "px", this._container.style.left = o + "px" } }, _getAnchor: function () { return [0, 0] } }), ei = ti.extend({ options: { maxWidth: 300, minWidth: 50, maxHeight: null, autoPan: !0, autoPanPaddingTopLeft: null, autoPanPaddingBottomRight: null, autoPanPadding: [5, 5], keepInView: !1, closeButton: !0, autoClose: !0, closeOnEscapeKey: !0, className: "" }, openOn: function (t) { return t.openPopup(this), this }, onAdd: function (t) { ti.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof In || this._source.on("preclick", Ae)) }, onRemove: function (t) { ti.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof In || this._source.off("preclick", Ae)) }, getEvents: function () { var t = ti.prototype.getEvents.call(this); return (void 0 !== this.options.closeOnClick ? this.options.closeOnClick : this._map.options.closePopupOnClick) && (t.preclick = this._close), this.options.keepInView && (t.moveend = this._adjustPan), t }, _close: function () { this._map && this._map.closePopup(this) }, _initLayout: function () { var t = "leaflet-popup", e = this._container = re("div", t + " " + (this.options.className || "") + " leaflet-zoom-animated"), n = this._wrapper = re("div", t + "-content-wrapper", e); if (this._contentNode = re("div", t + "-content", n), Ne(n), Ie(this._contentNode), Se(n, "contextmenu", Ae), this._tipContainer = re("div", t + "-tip-container", e), this._tip = re("div", t + "-tip", this._tipContainer), this.options.closeButton) { var i = this._closeButton = re("a", t + "-close-button", e); i.href = "#close", i.innerHTML = "×", Se(i, "click", this._onCloseButtonClick, this) } }, _updateLayout: function () { var t = this._contentNode, e = t.style; e.width = "", e.whiteSpace = "nowrap"; var n = t.offsetWidth; n = Math.min(n, this.options.maxWidth), n = Math.max(n, this.options.minWidth), e.width = n + 1 + "px", e.whiteSpace = "", e.height = ""; var i = t.offsetHeight, o = this.options.maxHeight, a = "leaflet-popup-scrolled"; o && i > o ? (e.height = o + "px", pe(t, a)) : he(t, a), this._containerWidth = this._container.offsetWidth }, _animateZoom: function (t) { var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center), n = this._getAnchor(); ve(this._container, e.add(n)) }, _adjustPan: function () { if (this.options.autoPan) { this._map._panAnim && this._map._panAnim.stop(); var t = this._map, e = parseInt(ae(this._container, "marginBottom"), 10) || 0, n = this._container.offsetHeight + e, i = this._containerWidth, o = new j(this._containerLeft, -n - this._containerBottom); o._add(we(this._container)); var a = t.layerPointToContainerPoint(o), r = A(this.options.autoPanPadding), s = A(this.options.autoPanPaddingTopLeft || r), l = A(this.options.autoPanPaddingBottomRight || r), c = t.getSize(), u = 0, f = 0; a.x + i + l.x > c.x && (u = a.x + i - c.x + l.x), a.x - u - s.x < 0 && (u = a.x - s.x), a.y + n + l.y > c.y && (f = a.y + n - c.y + l.y), a.y - f - s.y < 0 && (f = a.y - s.y), (u || f) && t.fire("autopanstart").panBy([u, f]) } }, _onCloseButtonClick: function (t) { this._close(), Fe(t) }, _getAnchor: function () { return A(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]) } }); Ye.mergeOptions({ closePopupOnClick: !0 }), Ye.include({ openPopup: function (t, e, n) { return t instanceof ei || (t = new ei(n).setContent(t)), e && t.setLatLng(e), this.hasLayer(t) ? this : (this._popup && this._popup.options.autoClose && this.closePopup(), this._popup = t, this.addLayer(t)) }, closePopup: function (t) { return t && t !== this._popup || (t = this._popup, this._popup = null), t && this.removeLayer(t), this } }), Mn.include({ bindPopup: function (t, e) { return t instanceof ei ? (h(t, e), this._popup = t, t._source = this) : (this._popup && !e || (this._popup = new ei(e, this)), this._popup.setContent(t)), this._popupHandlersAdded || (this.on({ click: this._openPopup, keypress: this._onKeyPress, remove: this.closePopup, move: this._movePopup }), this._popupHandlersAdded = !0), this }, unbindPopup: function () { return this._popup && (this.off({ click: this._openPopup, keypress: this._onKeyPress, remove: this.closePopup, move: this._movePopup }), this._popupHandlersAdded = !1, this._popup = null), this }, openPopup: function (t, e) { return this._popup && this._map && (e = this._popup._prepareOpen(this, t, e), this._map.openPopup(this._popup, e)), this }, closePopup: function () { return this._popup && this._popup._close(), this }, togglePopup: function (t) { return this._popup && (this._popup._map ? this.closePopup() : this.openPopup(t)), this }, isPopupOpen: function () { return !!this._popup && this._popup.isOpen() }, setPopupContent: function (t) { return this._popup && this._popup.setContent(t), this }, getPopup: function () { return this._popup }, _openPopup: function (t) { var e = t.layer || t.target; this._popup && this._map && (Fe(t), e instanceof In ? this.openPopup(t.layer || t.target, t.latlng) : this._map.hasLayer(this._popup) && this._popup._source === e ? this.closePopup() : this.openPopup(e, t.latlng)) }, _movePopup: function (t) { this._popup.setLatLng(t.latlng) }, _onKeyPress: function (t) { 13 === t.originalEvent.keyCode && this._openPopup(t) } }); var ni = ti.extend({ options: { pane: "tooltipPane", offset: [0, 0], direction: "auto", permanent: !1, sticky: !1, interactive: !1, opacity: .9 }, onAdd: function (t) { ti.prototype.onAdd.call(this, t), this.setOpacity(this.options.opacity), t.fire("tooltipopen", { tooltip: this }), this._source && this._source.fire("tooltipopen", { tooltip: this }, !0) }, onRemove: function (t) { ti.prototype.onRemove.call(this, t), t.fire("tooltipclose", { tooltip: this }), this._source && this._source.fire("tooltipclose", { tooltip: this }, !0) }, getEvents: function () { var t = ti.prototype.getEvents.call(this); return Pt && !this.options.permanent && (t.preclick = this._close), t }, _close: function () { this._map && this._map.closeTooltip(this) }, _initLayout: function () { var t = "leaflet-tooltip " + (this.options.className || "") + " leaflet-zoom-" + (this._zoomAnimated ? "animated" : "hide"); this._contentNode = this._container = re("div", t) }, _updateLayout: function () { }, _adjustPan: function () { }, _setPosition: function (t) { var e = this._map, n = this._container, i = e.latLngToContainerPoint(e.getCenter()), o = e.layerPointToContainerPoint(t), a = this.options.direction, r = n.offsetWidth, s = n.offsetHeight, l = A(this.options.offset), c = this._getAnchor(); "top" === a ? t = t.add(A(-r / 2 + l.x, -s + l.y + c.y, !0)) : "bottom" === a ? t = t.subtract(A(r / 2 - l.x, -l.y, !0)) : "center" === a ? t = t.subtract(A(r / 2 + l.x, s / 2 - c.y + l.y, !0)) : "right" === a || "auto" === a && o.x < i.x ? (a = "right", t = t.add(A(l.x + c.x, c.y - s / 2 + l.y, !0))) : (a = "left", t = t.subtract(A(r + c.x - l.x, s / 2 - c.y - l.y, !0))), he(n, "leaflet-tooltip-right"), he(n, "leaflet-tooltip-left"), he(n, "leaflet-tooltip-top"), he(n, "leaflet-tooltip-bottom"), pe(n, "leaflet-tooltip-" + a), ve(n, t) }, _updatePosition: function () { var t = this._map.latLngToLayerPoint(this._latlng); this._setPosition(t) }, setOpacity: function (t) { this.options.opacity = t, this._container && ge(this._container, t) }, _animateZoom: function (t) { var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center); this._setPosition(e) }, _getAnchor: function () { return A(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]) } }); Ye.include({ openTooltip: function (t, e, n) { return t instanceof ni || (t = new ni(n).setContent(t)), e && t.setLatLng(e), this.hasLayer(t) ? this : this.addLayer(t) }, closeTooltip: function (t) { return t && this.removeLayer(t), this } }), Mn.include({ bindTooltip: function (t, e) { return t instanceof ni ? (h(t, e), this._tooltip = t, t._source = this) : (this._tooltip && !e || (this._tooltip = new ni(e, this)), this._tooltip.setContent(t)), this._initTooltipInteractions(), this._tooltip.options.permanent && this._map && this._map.hasLayer(this) && this.openTooltip(), this }, unbindTooltip: function () { return this._tooltip && (this._initTooltipInteractions(!0), this.closeTooltip(), this._tooltip = null), this }, _initTooltipInteractions: function (t) { if (t || !this._tooltipHandlersAdded) { var e = t ? "off" : "on", n = { remove: this.closeTooltip, move: this._moveTooltip }; this._tooltip.options.permanent ? n.add = this._openTooltip : (n.mouseover = this._openTooltip, n.mouseout = this.closeTooltip, this._tooltip.options.sticky && (n.mousemove = this._moveTooltip), Pt && (n.click = this._openTooltip)), this[e](n), this._tooltipHandlersAdded = !t } }, openTooltip: function (t, e) { return this._tooltip && this._map && (e = this._tooltip._prepareOpen(this, t, e), this._map.openTooltip(this._tooltip, e), this._tooltip.options.interactive && this._tooltip._container && (pe(this._tooltip._container, "leaflet-clickable"), this.addInteractiveTarget(this._tooltip._container))), this }, closeTooltip: function () { return this._tooltip && (this._tooltip._close(), this._tooltip.options.interactive && this._tooltip._container && (he(this._tooltip._container, "leaflet-clickable"), this.removeInteractiveTarget(this._tooltip._container))), this }, toggleTooltip: function (t) { return this._tooltip && (this._tooltip._map ? this.closeTooltip() : this.openTooltip(t)), this }, isTooltipOpen: function () { return this._tooltip.isOpen() }, setTooltipContent: function (t) { return this._tooltip && this._tooltip.setContent(t), this }, getTooltip: function () { return this._tooltip }, _openTooltip: function (t) { var e = t.layer || t.target; this._tooltip && this._map && this.openTooltip(e, this._tooltip.options.sticky ? t.latlng : void 0) }, _moveTooltip: function (t) { var e, n, i = t.latlng; this._tooltip.options.sticky && t.originalEvent && (e = this._map.mouseEventToContainerPoint(t.originalEvent), n = this._map.containerPointToLayerPoint(e), i = this._map.layerPointToLatLng(n)), this._tooltip.setLatLng(i) } }); var ii = En.extend({ options: { iconSize: [12, 12], html: !1, bgPos: null, className: "leaflet-div-icon" }, createIcon: function (t) { var e = t && "DIV" === t.tagName ? t : document.createElement("div"), n = this.options; if (n.html instanceof Element ? (le(e), e.appendChild(n.html)) : e.innerHTML = !1 !== n.html ? n.html : "", n.bgPos) { var i = A(n.bgPos); e.style.backgroundPosition = -i.x + "px " + -i.y + "px" } return this._setIconStyles(e, "icon"), e }, createShadow: function () { return null } }); En.Default = jn; var oi = Mn.extend({ options: { tileSize: 256, opacity: 1, updateWhenIdle: yt, updateWhenZooming: !0, updateInterval: 200, zIndex: 1, bounds: null, minZoom: 0, maxZoom: void 0, maxNativeZoom: void 0, minNativeZoom: void 0, noWrap: !1, pane: "tilePane", className: "", keepBuffer: 2 }, initialize: function (t) { h(this, t) }, onAdd: function () { this._initContainer(), this._levels = {}, this._tiles = {}, this._resetView(), this._update() }, beforeAdd: function (t) { t._addZoomLimit(this) }, onRemove: function (t) { this._removeAllTiles(), se(this._container), t._removeZoomLimit(this), this._container = null, this._tileZoom = void 0 }, bringToFront: function () { return this._map && (ce(this._container), this._setAutoZIndex(Math.max)), this }, bringToBack: function () { return this._map && (ue(this._container), this._setAutoZIndex(Math.min)), this }, getContainer: function () { return this._container }, setOpacity: function (t) { return this.options.opacity = t, this._updateOpacity(), this }, setZIndex: function (t) { return this.options.zIndex = t, this._updateZIndex(), this }, isLoading: function () { return this._loading }, redraw: function () { return this._map && (this._removeAllTiles(), this._update()), this }, getEvents: function () { var t = { viewprereset: this._invalidateAll, viewreset: this._resetView, zoom: this._resetView, moveend: this._onMoveEnd }; return this.options.updateWhenIdle || (this._onMove || (this._onMove = s(this._onMoveEnd, this.options.updateInterval, this)), t.move = this._onMove), this._zoomAnimated && (t.zoomanim = this._animateZoom), t }, createTile: function () { return document.createElement("div") }, getTileSize: function () { var t = this.options.tileSize; return t instanceof j ? t : new j(t, t) }, _updateZIndex: function () { this._container && void 0 !== this.options.zIndex && null !== this.options.zIndex && (this._container.style.zIndex = this.options.zIndex) }, _setAutoZIndex: function (t) { for (var e, n = this.getPane().children, i = -t(-1 / 0, 1 / 0), o = 0, a = n.length; o < a; o++)e = n[o].style.zIndex, n[o] !== this._container && e && (i = t(i, +e)); isFinite(i) && (this.options.zIndex = i + t(-1, 1), this._updateZIndex()) }, _updateOpacity: function () { if (this._map && !tt) { ge(this._container, this.options.opacity); var t = +new Date, e = !1, n = !1; for (var i in this._tiles) { var o = this._tiles[i]; if (o.current && o.loaded) { var a = Math.min(1, (t - o.loaded) / 200); ge(o.el, a), a < 1 ? e = !0 : (o.active ? n = !0 : this._onOpaqueTile(o), o.active = !0) } } n && !this._noPrune && this._pruneTiles(), e && (O(this._fadeFrame), this._fadeFrame = C(this._updateOpacity, this)) } }, _onOpaqueTile: c, _initContainer: function () { this._container || (this._container = re("div", "leaflet-layer " + (this.options.className || "")), this._updateZIndex(), this.options.opacity < 1 && this._updateOpacity(), this.getPane().appendChild(this._container)) }, _updateLevels: function () { var t = this._tileZoom, e = this.options.maxZoom; if (void 0 !== t) { for (var n in this._levels) this._levels[n].el.children.length || n === t ? (this._levels[n].el.style.zIndex = e - Math.abs(t - n), this._onUpdateLevel(n)) : (se(this._levels[n].el), this._removeTilesAtZoom(n), this._onRemoveLevel(n), delete this._levels[n]); var i = this._levels[t], o = this._map; return i || ((i = this._levels[t] = {}).el = re("div", "leaflet-tile-container leaflet-zoom-animated", this._container), i.el.style.zIndex = e, i.origin = o.project(o.unproject(o.getPixelOrigin()), t).round(), i.zoom = t, this._setZoomTransform(i, o.getCenter(), o.getZoom()), i.el.offsetWidth, this._onCreateLevel(i)), this._level = i, i } }, _onUpdateLevel: c, _onRemoveLevel: c, _onCreateLevel: c, _pruneTiles: function () { if (this._map) { var t, e, n = this._map.getZoom(); if (n > this.options.maxZoom || n < this.options.minZoom) this._removeAllTiles(); else { for (t in this._tiles) (e = this._tiles[t]).retain = e.current; for (t in this._tiles) if ((e = this._tiles[t]).current && !e.active) { var i = e.coords; this._retainParent(i.x, i.y, i.z, i.z - 5) || this._retainChildren(i.x, i.y, i.z, i.z + 2) } for (t in this._tiles) this._tiles[t].retain || this._removeTile(t) } } }, _removeTilesAtZoom: function (t) { for (var e in this._tiles) this._tiles[e].coords.z === t && this._removeTile(e) }, _removeAllTiles: function () { for (var t in this._tiles) this._removeTile(t) }, _invalidateAll: function () { for (var t in this._levels) se(this._levels[t].el), this._onRemoveLevel(t), delete this._levels[t]; this._removeAllTiles(), this._tileZoom = void 0 }, _retainParent: function (t, e, n, i) { var o = Math.floor(t / 2), a = Math.floor(e / 2), r = n - 1, s = new j(+o, +a); s.z = +r; var l = this._tileCoordsToKey(s), c = this._tiles[l]; return c && c.active ? (c.retain = !0, !0) : (c && c.loaded && (c.retain = !0), r > i && this._retainParent(o, a, r, i)) }, _retainChildren: function (t, e, n, i) { for (var o = 2 * t; o < 2 * t + 2; o++)for (var a = 2 * e; a < 2 * e + 2; a++) { var r = new j(o, a); r.z = n + 1; var s = this._tileCoordsToKey(r), l = this._tiles[s]; l && l.active ? l.retain = !0 : (l && l.loaded && (l.retain = !0), n + 1 < i && this._retainChildren(o, a, n + 1, i)) } }, _resetView: function (t) { var e = t && (t.pinch || t.flyTo); this._setView(this._map.getCenter(), this._map.getZoom(), e, e) }, _animateZoom: function (t) { this._setView(t.center, t.zoom, !0, t.noUpdate) }, _clampZoom: function (t) { var e = this.options; return void 0 !== e.minNativeZoom && t < e.minNativeZoom ? e.minNativeZoom : void 0 !== e.maxNativeZoom && e.maxNativeZoom < t ? e.maxNativeZoom : t }, _setView: function (t, e, n, i) { var o = this._clampZoom(Math.round(e)); (void 0 !== this.options.maxZoom && o > this.options.maxZoom || void 0 !== this.options.minZoom && o < this.options.minZoom) && (o = void 0); var a = this.options.updateWhenZooming && o !== this._tileZoom; i && !a || (this._tileZoom = o, this._abortLoading && this._abortLoading(), this._updateLevels(), this._resetGrid(), void 0 !== o && this._update(t), n || this._pruneTiles(), this._noPrune = !!n), this._setZoomTransforms(t, e) }, _setZoomTransforms: function (t, e) { for (var n in this._levels) this._setZoomTransform(this._levels[n], t, e) }, _setZoomTransform: function (t, e, n) { var i = this._map.getZoomScale(n, t.zoom), o = t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e, n)).round(); _t ? ye(t.el, o, i) : ve(t.el, o) }, _resetGrid: function () { var t = this._map, e = t.options.crs, n = this._tileSize = this.getTileSize(), i = this._tileZoom, o = this._map.getPixelWorldBounds(this._tileZoom); o && (this._globalTileRange = this._pxBoundsToTileRange(o)), this._wrapX = e.wrapLng && !this.options.noWrap && [Math.floor(t.project([0, e.wrapLng[0]], i).x / n.x), Math.ceil(t.project([0, e.wrapLng[1]], i).x / n.y)], this._wrapY = e.wrapLat && !this.options.noWrap && [Math.floor(t.project([e.wrapLat[0], 0], i).y / n.x), Math.ceil(t.project([e.wrapLat[1], 0], i).y / n.y)] }, _onMoveEnd: function () { this._map && !this._map._animatingZoom && this._update() }, _getTiledPixelBounds: function (t) { var e = this._map, n = e._animatingZoom ? Math.max(e._animateToZoom, e.getZoom()) : e.getZoom(), i = e.getZoomScale(n, this._tileZoom), o = e.project(t, this._tileZoom).floor(), a = e.getSize().divideBy(2 * i); return new I(o.subtract(a), o.add(a)) }, _update: function (t) { var e = this._map; if (e) { var n = this._clampZoom(e.getZoom()); if (void 0 === t && (t = e.getCenter()), void 0 !== this._tileZoom) { var i = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(i), a = o.getCenter(), r = [], s = this.options.keepBuffer, l = new I(o.getBottomLeft().subtract([s, -s]), o.getTopRight().add([s, -s])); if (!(isFinite(o.min.x) && isFinite(o.min.y) && isFinite(o.max.x) && isFinite(o.max.y))) throw new Error("Attempted to load an infinite number of tiles"); for (var c in this._tiles) { var u = this._tiles[c].coords; u.z === this._tileZoom && l.contains(new j(u.x, u.y)) || (this._tiles[c].current = !1) } if (Math.abs(n - this._tileZoom) > 1) this._setView(t, n); else { for (var f = o.min.y; f <= o.max.y; f++)for (var p = o.min.x; p <= o.max.x; p++) { var h = new j(p, f); if (h.z = this._tileZoom, this._isValidTile(h)) { var d = this._tiles[this._tileCoordsToKey(h)]; d ? d.current = !0 : r.push(h) } } if (r.sort((function (t, e) { return t.distanceTo(a) - e.distanceTo(a) })), 0 !== r.length) { this._loading || (this._loading = !0, this.fire("loading")); var m = document.createDocumentFragment(); for (p = 0; p < r.length; p++)this._addTile(r[p], m); this._level.el.appendChild(m) } } } } }, _isValidTile: function (t) { var e = this._map.options.crs; if (!e.infinite) { var n = this._globalTileRange; if (!e.wrapLng && (t.x < n.min.x || t.x > n.max.x) || !e.wrapLat && (t.y < n.min.y || t.y > n.max.y)) return !1 } if (!this.options.bounds) return !0; var i = this._tileCoordsToBounds(t); return F(this.options.bounds).overlaps(i) }, _keyToBounds: function (t) { return this._tileCoordsToBounds(this._keyToTileCoords(t)) }, _tileCoordsToNwSe: function (t) { var e = this._map, n = this.getTileSize(), i = t.scaleBy(n), o = i.add(n); return [e.unproject(i, t.z), e.unproject(o, t.z)] }, _tileCoordsToBounds: function (t) { var e = this._tileCoordsToNwSe(t), n = new B(e[0], e[1]); return this.options.noWrap || (n = this._map.wrapLatLngBounds(n)), n }, _tileCoordsToKey: function (t) { return t.x + ":" + t.y + ":" + t.z }, _keyToTileCoords: function (t) { var e = t.split(":"), n = new j(+e[0], +e[1]); return n.z = +e[2], n }, _removeTile: function (t) { var e = this._tiles[t]; e && (se(e.el), delete this._tiles[t], this.fire("tileunload", { tile: e.el, coords: this._keyToTileCoords(t) })) }, _initTile: function (t) { pe(t, "leaflet-tile"); var e = this.getTileSize(); t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = c, t.onmousemove = c, tt && this.options.opacity < 1 && ge(t, this.options.opacity), it && !ot && (t.style.WebkitBackfaceVisibility = "hidden") }, _addTile: function (t, e) { var n = this._getTilePos(t), i = this._tileCoordsToKey(t), a = this.createTile(this._wrapCoords(t), o(this._tileReady, this, t)); this._initTile(a), this.createTile.length < 2 && C(o(this._tileReady, this, t, null, a)), ve(a, n), this._tiles[i] = { el: a, coords: t, current: !0 }, e.appendChild(a), this.fire("tileloadstart", { tile: a, coords: t }) }, _tileReady: function (t, e, n) { e && this.fire("tileerror", { error: e, tile: n, coords: t }); var i = this._tileCoordsToKey(t); (n = this._tiles[i]) && (n.loaded = +new Date, this._map._fadeAnimated ? (ge(n.el, 0), O(this._fadeFrame), this._fadeFrame = C(this._updateOpacity, this)) : (n.active = !0, this._pruneTiles()), e || (pe(n.el, "leaflet-tile-loaded"), this.fire("tileload", { tile: n.el, coords: t })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), tt || !this._map._fadeAnimated ? C(this._pruneTiles, this) : setTimeout(o(this._pruneTiles, this), 250))) }, _getTilePos: function (t) { return t.scaleBy(this.getTileSize()).subtract(this._level.origin) }, _wrapCoords: function (t) { var e = new j(this._wrapX ? l(t.x, this._wrapX) : t.x, this._wrapY ? l(t.y, this._wrapY) : t.y); return e.z = t.z, e }, _pxBoundsToTileRange: function (t) { var e = this.getTileSize(); return new I(t.min.unscaleBy(e).floor(), t.max.unscaleBy(e).ceil().subtract([1, 1])) }, _noTilesToLoad: function () { for (var t in this._tiles) if (!this._tiles[t].loaded) return !1; return !0 } }); var ai = oi.extend({ options: { minZoom: 0, maxZoom: 18, subdomains: "abc", errorTileUrl: "", zoomOffset: 0, tms: !1, zoomReverse: !1, detectRetina: !1, crossOrigin: !1 }, initialize: function (t, e) { this._url = t, (e = h(this, e)).detectRetina && Ct && e.maxZoom > 0 && (e.tileSize = Math.floor(e.tileSize / 2), e.zoomReverse ? (e.zoomOffset--, e.minZoom++) : (e.zoomOffset++, e.maxZoom--), e.minZoom = Math.max(0, e.minZoom)), "string" == typeof e.subdomains && (e.subdomains = e.subdomains.split("")), it || this.on("tileunload", this._onTileRemove) }, setUrl: function (t, e) { return this._url === t && void 0 === e && (e = !0), this._url = t, e || this.redraw(), this }, createTile: function (t, e) { var n = document.createElement("img"); return Se(n, "load", o(this._tileOnLoad, this, e, n)), Se(n, "error", o(this._tileOnError, this, e, n)), (this.options.crossOrigin || "" === this.options.crossOrigin) && (n.crossOrigin = !0 === this.options.crossOrigin ? "" : this.options.crossOrigin), n.alt = "", n.setAttribute("role", "presentation"), n.src = this.getTileUrl(t), n }, getTileUrl: function (t) { var e = { r: Ct ? "@2x" : "", s: this._getSubdomain(t), x: t.x, y: t.y, z: this._getZoomForUrl() }; if (this._map && !this._map.options.crs.infinite) { var i = this._globalTileRange.max.y - t.y; this.options.tms && (e.y = i), e["-y"] = i } return g(this._url, n(e, this.options)) }, _tileOnLoad: function (t, e) { tt ? setTimeout(o(t, this, null, e), 0) : t(null, e) }, _tileOnError: function (t, e, n) { var i = this.options.errorTileUrl; i && e.getAttribute("src") !== i && (e.src = i), t(n, e) }, _onTileRemove: function (t) { t.tile.onload = null }, _getZoomForUrl: function () { var t = this._tileZoom, e = this.options.maxZoom; return this.options.zoomReverse && (t = e - t), t + this.options.zoomOffset }, _getSubdomain: function (t) { var e = Math.abs(t.x + t.y) % this.options.subdomains.length; return this.options.subdomains[e] }, _abortLoading: function () { var t, e; for (t in this._tiles) this._tiles[t].coords.z !== this._tileZoom && ((e = this._tiles[t].el).onload = c, e.onerror = c, e.complete || (e.src = v, se(e), delete this._tiles[t])) }, _removeTile: function (t) { var e = this._tiles[t]; if (e) return rt || e.el.setAttribute("src", v), oi.prototype._removeTile.call(this, t) }, _tileReady: function (t, e, n) { if (this._map && (!n || n.getAttribute("src") !== v)) return oi.prototype._tileReady.call(this, t, e, n) } }); function ri(t, e) { return new ai(t, e) } var si = ai.extend({ defaultWmsParams: { service: "WMS", request: "GetMap", layers: "", styles: "", format: "image/jpeg", transparent: !1, version: "1.1.1" }, options: { crs: null, uppercase: !1 }, initialize: function (t, e) { this._url = t; var i = n({}, this.defaultWmsParams); for (var o in e) o in this.options || (i[o] = e[o]); var a = (e = h(this, e)).detectRetina && Ct ? 2 : 1, r = this.getTileSize(); i.width = r.x * a, i.height = r.y * a, this.wmsParams = i }, onAdd: function (t) { this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version); var e = this._wmsVersion >= 1.3 ? "crs" : "srs"; this.wmsParams[e] = this._crs.code, ai.prototype.onAdd.call(this, t) }, getTileUrl: function (t) { var e = this._tileCoordsToNwSe(t), n = this._crs, i = N(n.project(e[0]), n.project(e[1])), o = i.min, a = i.max, r = (this._wmsVersion >= 1.3 && this._crs === Cn ? [o.y, o.x, a.y, a.x] : [o.x, o.y, a.x, a.y]).join(","), s = ai.prototype.getTileUrl.call(this, t); return s + d(this.wmsParams, s, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + r }, setParams: function (t, e) { return n(this.wmsParams, t), e || this.redraw(), this } }); ai.WMS = si, ri.wms = function (t, e) { return new si(t, e) }; var li = Mn.extend({ options: { padding: .1, tolerance: 0 }, initialize: function (t) { h(this, t), r(this), this._layers = this._layers || {} }, onAdd: function () { this._container || (this._initContainer(), this._zoomAnimated && pe(this._container, "leaflet-zoom-animated")), this.getPane().appendChild(this._container), this._update(), this.on("update", this._updatePaths, this) }, onRemove: function () { this.off("update", this._updatePaths, this), this._destroyContainer() }, getEvents: function () { var t = { viewreset: this._reset, zoom: this._onZoom, moveend: this._update, zoomend: this._onZoomEnd }; return this._zoomAnimated && (t.zoomanim = this._onAnimZoom), t }, _onAnimZoom: function (t) { this._updateTransform(t.center, t.zoom) }, _onZoom: function () { this._updateTransform(this._map.getCenter(), this._map.getZoom()) }, _updateTransform: function (t, e) { var n = this._map.getZoomScale(e, this._zoom), i = we(this._container), o = this._map.getSize().multiplyBy(.5 + this.options.padding), a = this._map.project(this._center, e), r = this._map.project(t, e).subtract(a), s = o.multiplyBy(-n).add(i).add(o).subtract(r); _t ? ye(this._container, s, n) : ve(this._container, s) }, _reset: function () { for (var t in this._update(), this._updateTransform(this._center, this._zoom), this._layers) this._layers[t]._reset() }, _onZoomEnd: function () { for (var t in this._layers) this._layers[t]._project() }, _updatePaths: function () { for (var t in this._layers) this._layers[t]._update() }, _update: function () { var t = this.options.padding, e = this._map.getSize(), n = this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round(); this._bounds = new I(n, n.add(e.multiplyBy(1 + 2 * t)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom() } }), ci = li.extend({ getEvents: function () { var t = li.prototype.getEvents.call(this); return t.viewprereset = this._onViewPreReset, t }, _onViewPreReset: function () { this._postponeUpdatePaths = !0 }, onAdd: function () { li.prototype.onAdd.call(this), this._draw() }, _initContainer: function () { var t = this._container = document.createElement("canvas"); Se(t, "mousemove", s(this._onMouseMove, 32, this), this), Se(t, "click dblclick mousedown mouseup contextmenu", this._onClick, this), Se(t, "mouseout", this._handleMouseOut, this), this._ctx = t.getContext("2d") }, _destroyContainer: function () { O(this._redrawRequest), delete this._ctx, se(this._container), Ee(this._container), delete this._container }, _updatePaths: function () { if (!this._postponeUpdatePaths) { for (var t in this._redrawBounds = null, this._layers) this._layers[t]._update(); this._redraw() } }, _update: function () { if (!this._map._animatingZoom || !this._bounds) { li.prototype._update.call(this); var t = this._bounds, e = this._container, n = t.getSize(), i = Ct ? 2 : 1; ve(e, t.min), e.width = i * n.x, e.height = i * n.y, e.style.width = n.x + "px", e.style.height = n.y + "px", Ct && this._ctx.scale(2, 2), this._ctx.translate(-t.min.x, -t.min.y), this.fire("update") } }, _reset: function () { li.prototype._reset.call(this), this._postponeUpdatePaths && (this._postponeUpdatePaths = !1, this._updatePaths()) }, _initPath: function (t) { this._updateDashArray(t), this._layers[r(t)] = t; var e = t._order = { layer: t, prev: this._drawLast, next: null }; this._drawLast && (this._drawLast.next = e), this._drawLast = e, this._drawFirst = this._drawFirst || this._drawLast }, _addPath: function (t) { this._requestRedraw(t) }, _removePath: function (t) { var e = t._order, n = e.next, i = e.prev; n ? n.prev = i : this._drawLast = i, i ? i.next = n : this._drawFirst = n, delete t._order, delete this._layers[r(t)], this._requestRedraw(t) }, _updatePath: function (t) { this._extendRedrawBounds(t), t._project(), t._update(), this._requestRedraw(t) }, _updateStyle: function (t) { this._updateDashArray(t), this._requestRedraw(t) }, _updateDashArray: function (t) { if ("string" == typeof t.options.dashArray) { var e, n, i = t.options.dashArray.split(/[, ]+/), o = []; for (n = 0; n < i.length; n++) { if (e = Number(i[n]), isNaN(e)) return; o.push(e) } t.options._dashArray = o } else t.options._dashArray = t.options.dashArray }, _requestRedraw: function (t) { this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest || C(this._redraw, this)) }, _extendRedrawBounds: function (t) { if (t._pxBounds) { var e = (t.options.weight || 0) + 1; this._redrawBounds = this._redrawBounds || new I, this._redrawBounds.extend(t._pxBounds.min.subtract([e, e])), this._redrawBounds.extend(t._pxBounds.max.add([e, e])) } }, _redraw: function () { this._redrawRequest = null, this._redrawBounds && (this._redrawBounds.min._floor(), this._redrawBounds.max._ceil()), this._clear(), this._draw(), this._redrawBounds = null }, _clear: function () { var t = this._redrawBounds; if (t) { var e = t.getSize(); this._ctx.clearRect(t.min.x, t.min.y, e.x, e.y) } else this._ctx.clearRect(0, 0, this._container.width, this._container.height) }, _draw: function () { var t, e = this._redrawBounds; if (this._ctx.save(), e) { var n = e.getSize(); this._ctx.beginPath(), this._ctx.rect(e.min.x, e.min.y, n.x, n.y), this._ctx.clip() } this._drawing = !0; for (var i = this._drawFirst; i; i = i.next)t = i.layer, (!e || t._pxBounds && t._pxBounds.intersects(e)) && t._updatePath(); this._drawing = !1, this._ctx.restore() }, _updatePoly: function (t, e) { if (this._drawing) { var n, i, o, a, r = t._parts, s = r.length, l = this._ctx; if (s) { for (l.beginPath(), n = 0; n < s; n++) { for (i = 0, o = r[n].length; i < o; i++)a = r[n][i], l[i ? "lineTo" : "moveTo"](a.x, a.y); e && l.closePath() } this._fillStroke(l, t) } } }, _updateCircle: function (t) { if (this._drawing && !t._empty()) { var e = t._point, n = this._ctx, i = Math.max(Math.round(t._radius), 1), o = (Math.max(Math.round(t._radiusY), 1) || i) / i; 1 !== o && (n.save(), n.scale(1, o)), n.beginPath(), n.arc(e.x, e.y / o, i, 0, 2 * Math.PI, !1), 1 !== o && n.restore(), this._fillStroke(n, t) } }, _fillStroke: function (t, e) { var n = e.options; n.fill && (t.globalAlpha = n.fillOpacity, t.fillStyle = n.fillColor || n.color, t.fill(n.fillRule || "evenodd")), n.stroke && 0 !== n.weight && (t.setLineDash && t.setLineDash(e.options && e.options._dashArray || []), t.globalAlpha = n.opacity, t.lineWidth = n.weight, t.strokeStyle = n.color, t.lineCap = n.lineCap, t.lineJoin = n.lineJoin, t.stroke()) }, _onClick: function (t) { for (var e, n, i = this._map.mouseEventToLayerPoint(t), o = this._drawFirst; o; o = o.next)(e = o.layer).options.interactive && e._containsPoint(i) && !this._map._draggableMoved(e) && (n = e); n && (Ue(t), this._fireEvent([n], t)) }, _onMouseMove: function (t) { if (this._map && !this._map.dragging.moving() && !this._map._animatingZoom) { var e = this._map.mouseEventToLayerPoint(t); this._handleMouseHover(t, e) } }, _handleMouseOut: function (t) { var e = this._hoveredLayer; e && (he(this._container, "leaflet-interactive"), this._fireEvent([e], t, "mouseout"), this._hoveredLayer = null) }, _handleMouseHover: function (t, e) { for (var n, i, o = this._drawFirst; o; o = o.next)(n = o.layer).options.interactive && n._containsPoint(e) && (i = n); i !== this._hoveredLayer && (this._handleMouseOut(t), i && (pe(this._container, "leaflet-interactive"), this._fireEvent([i], t, "mouseover"), this._hoveredLayer = i)), this._hoveredLayer && this._fireEvent([this._hoveredLayer], t) }, _fireEvent: function (t, e, n) { this._map._fireDOMEvent(e, n || e.type, t) }, _bringToFront: function (t) { var e = t._order; if (e) { var n = e.next, i = e.prev; n && (n.prev = i, i ? i.next = n : n && (this._drawFirst = n), e.prev = this._drawLast, this._drawLast.next = e, e.next = null, this._drawLast = e, this._requestRedraw(t)) } }, _bringToBack: function (t) { var e = t._order; if (e) { var n = e.next, i = e.prev; i && (i.next = n, n ? n.prev = i : i && (this._drawLast = i), e.prev = null, e.next = this._drawFirst, this._drawFirst.prev = e, this._drawFirst = e, this._requestRedraw(t)) } } }); function ui(t) { return Ot ? new ci(t) : null } var fi = function () { try { return document.namespaces.add("lvml", "urn:schemas-microsoft-com:vml"), function (t) { return document.createElement("') } } catch (t) { return function (t) { return document.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">') } } }(), pi = { _initContainer: function () { this._container = re("div", "leaflet-vml-container") }, _update: function () { this._map._animatingZoom || (li.prototype._update.call(this), this.fire("update")) }, _initPath: function (t) { var e = t._container = fi("shape"); pe(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path = fi("path"), e.appendChild(t._path), this._updateStyle(t), this._layers[r(t)] = t }, _addPath: function (t) { var e = t._container; this._container.appendChild(e), t.options.interactive && t.addInteractiveTarget(e) }, _removePath: function (t) { var e = t._container; se(e), t.removeInteractiveTarget(e), delete this._layers[r(t)] }, _updateStyle: function (t) { var e = t._stroke, n = t._fill, i = t.options, o = t._container; o.stroked = !!i.stroke, o.filled = !!i.fill, i.stroke ? (e || (e = t._stroke = fi("stroke")), o.appendChild(e), e.weight = i.weight + "px", e.color = i.color, e.opacity = i.opacity, i.dashArray ? e.dashStyle = _(i.dashArray) ? i.dashArray.join(" ") : i.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = i.lineCap.replace("butt", "flat"), e.joinstyle = i.lineJoin) : e && (o.removeChild(e), t._stroke = null), i.fill ? (n || (n = t._fill = fi("fill")), o.appendChild(n), n.color = i.fillColor || i.color, n.opacity = i.fillOpacity) : n && (o.removeChild(n), t._fill = null) }, _updateCircle: function (t) { var e = t._point.round(), n = Math.round(t._radius), i = Math.round(t._radiusY || n); this._setPath(t, t._empty() ? "M0 0" : "AL " + e.x + "," + e.y + " " + n + "," + i + " 0,23592600") }, _setPath: function (t, e) { t._path.v = e }, _bringToFront: function (t) { ce(t._container) }, _bringToBack: function (t) { ue(t._container) } }, hi = St ? fi : X, di = li.extend({ getEvents: function () { var t = li.prototype.getEvents.call(this); return t.zoomstart = this._onZoomStart, t }, _initContainer: function () { this._container = hi("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = hi("g"), this._container.appendChild(this._rootGroup) }, _destroyContainer: function () { se(this._container), Ee(this._container), delete this._container, delete this._rootGroup, delete this._svgSize }, _onZoomStart: function () { this._update() }, _update: function () { if (!this._map._animatingZoom || !this._bounds) { li.prototype._update.call(this); var t = this._bounds, e = t.getSize(), n = this._container; this._svgSize && this._svgSize.equals(e) || (this._svgSize = e, n.setAttribute("width", e.x), n.setAttribute("height", e.y)), ve(n, t.min), n.setAttribute("viewBox", [t.min.x, t.min.y, e.x, e.y].join(" ")), this.fire("update") } }, _initPath: function (t) { var e = t._path = hi("path"); t.options.className && pe(e, t.options.className), t.options.interactive && pe(e, "leaflet-interactive"), this._updateStyle(t), this._layers[r(t)] = t }, _addPath: function (t) { this._rootGroup || this._initContainer(), this._rootGroup.appendChild(t._path), t.addInteractiveTarget(t._path) }, _removePath: function (t) { se(t._path), t.removeInteractiveTarget(t._path), delete this._layers[r(t)] }, _updatePath: function (t) { t._project(), t._update() }, _updateStyle: function (t) { var e = t._path, n = t.options; e && (n.stroke ? (e.setAttribute("stroke", n.color), e.setAttribute("stroke-opacity", n.opacity), e.setAttribute("stroke-width", n.weight), e.setAttribute("stroke-linecap", n.lineCap), e.setAttribute("stroke-linejoin", n.lineJoin), n.dashArray ? e.setAttribute("stroke-dasharray", n.dashArray) : e.removeAttribute("stroke-dasharray"), n.dashOffset ? e.setAttribute("stroke-dashoffset", n.dashOffset) : e.removeAttribute("stroke-dashoffset")) : e.setAttribute("stroke", "none"), n.fill ? (e.setAttribute("fill", n.fillColor || n.color), e.setAttribute("fill-opacity", n.fillOpacity), e.setAttribute("fill-rule", n.fillRule || "evenodd")) : e.setAttribute("fill", "none")) }, _updatePoly: function (t, e) { this._setPath(t, J(t._parts, e)) }, _updateCircle: function (t) { var e = t._point, n = Math.max(Math.round(t._radius), 1), i = "a" + n + "," + (Math.max(Math.round(t._radiusY), 1) || n) + " 0 1,0 ", o = t._empty() ? "M0 0" : "M" + (e.x - n) + "," + e.y + i + 2 * n + ",0 " + i + 2 * -n + ",0 "; this._setPath(t, o) }, _setPath: function (t, e) { t._path.setAttribute("d", e) }, _bringToFront: function (t) { ce(t._path) }, _bringToBack: function (t) { ue(t._path) } }); function mi(t) { return Mt || St ? new di(t) : null } St && di.include(pi), Ye.include({ getRenderer: function (t) { var e = t.options.renderer || this._getPaneRenderer(t.options.pane) || this.options.renderer || this._renderer; return e || (e = this._renderer = this._createRenderer()), this.hasLayer(e) || this.addLayer(e), e }, _getPaneRenderer: function (t) { if ("overlayPane" === t || void 0 === t) return !1; var e = this._paneRenderers[t]; return void 0 === e && (e = this._createRenderer({ pane: t }), this._paneRenderers[t] = e), e }, _createRenderer: function (t) { return this.options.preferCanvas && ui(t) || mi(t) } }); var gi = Dn.extend({ initialize: function (t, e) { Dn.prototype.initialize.call(this, this._boundsToLatLngs(t), e) }, setBounds: function (t) { return this.setLatLngs(this._boundsToLatLngs(t)) }, _boundsToLatLngs: function (t) { return [(t = F(t)).getSouthWest(), t.getNorthWest(), t.getNorthEast(), t.getSouthEast()] } }); di.create = hi, di.pointsToPath = J, Zn.geometryToLayer = Rn, Zn.coordsToLatLng = Hn, Zn.coordsToLatLngs = qn, Zn.latLngToCoords = Un, Zn.latLngsToCoords = Wn, Zn.getFeature = Gn, Zn.asFeature = Vn, Ye.mergeOptions({ boxZoom: !0 }); var _i = nn.extend({ initialize: function (t) { this._map = t, this._container = t._container, this._pane = t._panes.overlayPane, this._resetStateTimeout = 0, t.on("unload", this._destroy, this) }, addHooks: function () { Se(this._container, "mousedown", this._onMouseDown, this) }, removeHooks: function () { Ee(this._container, "mousedown", this._onMouseDown, this) }, moved: function () { return this._moved }, _destroy: function () { se(this._pane), delete this._pane }, _resetState: function () { this._resetStateTimeout = 0, this._moved = !1 }, _clearDeferredResetState: function () { 0 !== this._resetStateTimeout && (clearTimeout(this._resetStateTimeout), this._resetStateTimeout = 0) }, _onMouseDown: function (t) { if (!t.shiftKey || 1 !== t.which && 1 !== t.button) return !1; this._clearDeferredResetState(), this._resetState(), Xt(), ke(), this._startPoint = this._map.mouseEventToContainerPoint(t), Se(document, { contextmenu: Fe, mousemove: this._onMouseMove, mouseup: this._onMouseUp, keydown: this._onKeyDown }, this) }, _onMouseMove: function (t) { this._moved || (this._moved = !0, this._box = re("div", "leaflet-zoom-box", this._container), pe(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(t); var e = new I(this._point, this._startPoint), n = e.getSize(); ve(this._box, e.min), this._box.style.width = n.x + "px", this._box.style.height = n.y + "px" }, _finish: function () { this._moved && (se(this._box), he(this._container, "leaflet-crosshair")), Jt(), Pe(), Ee(document, { contextmenu: Fe, mousemove: this._onMouseMove, mouseup: this._onMouseUp, keydown: this._onKeyDown }, this) }, _onMouseUp: function (t) { if ((1 === t.which || 1 === t.button) && (this._finish(), this._moved)) { this._clearDeferredResetState(), this._resetStateTimeout = setTimeout(o(this._resetState, this), 0); var e = new B(this._map.containerPointToLatLng(this._startPoint), this._map.containerPointToLatLng(this._point)); this._map.fitBounds(e).fire("boxzoomend", { boxZoomBounds: e }) } }, _onKeyDown: function (t) { 27 === t.keyCode && this._finish() } }); Ye.addInitHook("addHandler", "boxZoom", _i), Ye.mergeOptions({ doubleClickZoom: !0 }); var yi = nn.extend({ addHooks: function () { this._map.on("dblclick", this._onDoubleClick, this) }, removeHooks: function () { this._map.off("dblclick", this._onDoubleClick, this) }, _onDoubleClick: function (t) { var e = this._map, n = e.getZoom(), i = e.options.zoomDelta, o = t.originalEvent.shiftKey ? n - i : n + i; "center" === e.options.doubleClickZoom ? e.setZoom(o) : e.setZoomAround(t.containerPoint, o) } }); Ye.addInitHook("addHandler", "doubleClickZoom", yi), Ye.mergeOptions({ dragging: !0, inertia: !ot, inertiaDeceleration: 3400, inertiaMaxSpeed: 1 / 0, easeLinearity: .2, worldCopyJump: !1, maxBoundsViscosity: 0 }); var vi = nn.extend({ addHooks: function () { if (!this._draggable) { var t = this._map; this._draggable = new cn(t._mapPane, t._container), this._draggable.on({ dragstart: this._onDragStart, drag: this._onDrag, dragend: this._onDragEnd }, this), this._draggable.on("predrag", this._onPreDragLimit, this), t.options.worldCopyJump && (this._draggable.on("predrag", this._onPreDragWrap, this), t.on("zoomend", this._onZoomEnd, this), t.whenReady(this._onZoomEnd, this)) } pe(this._map._container, "leaflet-grab leaflet-touch-drag"), this._draggable.enable(), this._positions = [], this._times = [] }, removeHooks: function () { he(this._map._container, "leaflet-grab"), he(this._map._container, "leaflet-touch-drag"), this._draggable.disable() }, moved: function () { return this._draggable && this._draggable._moved }, moving: function () { return this._draggable && this._draggable._moving }, _onDragStart: function () { var t = this._map; if (t._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity) { var e = F(this._map.options.maxBounds); this._offsetLimit = N(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1), this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())), this._viscosity = Math.min(1, Math.max(0, this._map.options.maxBoundsViscosity)) } else this._offsetLimit = null; t.fire("movestart").fire("dragstart"), t.options.inertia && (this._positions = [], this._times = []) }, _onDrag: function (t) { if (this._map.options.inertia) { var e = this._lastTime = +new Date, n = this._lastPos = this._draggable._absPos || this._draggable._newPos; this._positions.push(n), this._times.push(e), this._prunePositions(e) } this._map.fire("move", t).fire("drag", t) }, _prunePositions: function (t) { for (; this._positions.length > 1 && t - this._times[0] > 50;)this._positions.shift(), this._times.shift() }, _onZoomEnd: function () { var t = this._map.getSize().divideBy(2), e = this._map.latLngToLayerPoint([0, 0]); this._initialWorldOffset = e.subtract(t).x, this._worldWidth = this._map.getPixelWorldBounds().getSize().x }, _viscousLimit: function (t, e) { return t - (t - e) * this._viscosity }, _onPreDragLimit: function () { if (this._viscosity && this._offsetLimit) { var t = this._draggable._newPos.subtract(this._draggable._startPos), e = this._offsetLimit; t.x < e.min.x && (t.x = this._viscousLimit(t.x, e.min.x)), t.y < e.min.y && (t.y = this._viscousLimit(t.y, e.min.y)), t.x > e.max.x && (t.x = this._viscousLimit(t.x, e.max.x)), t.y > e.max.y && (t.y = this._viscousLimit(t.y, e.max.y)), this._draggable._newPos = this._draggable._startPos.add(t) } }, _onPreDragWrap: function () { var t = this._worldWidth, e = Math.round(t / 2), n = this._initialWorldOffset, i = this._draggable._newPos.x, o = (i - e + n) % t + e - n, a = (i + e + n) % t - e - n, r = Math.abs(o + n) < Math.abs(a + n) ? o : a; this._draggable._absPos = this._draggable._newPos.clone(), this._draggable._newPos.x = r }, _onDragEnd: function (t) { var e = this._map, n = e.options, i = !n.inertia || this._times.length < 2; if (e.fire("dragend", t), i) e.fire("moveend"); else { this._prunePositions(+new Date); var o = this._lastPos.subtract(this._positions[0]), a = (this._lastTime - this._times[0]) / 1e3, r = n.easeLinearity, s = o.multiplyBy(r / a), l = s.distanceTo([0, 0]), c = Math.min(n.inertiaMaxSpeed, l), u = s.multiplyBy(c / l), f = c / (n.inertiaDeceleration * r), p = u.multiplyBy(-f / 2).round(); p.x || p.y ? (p = e._limitOffset(p, e.options.maxBounds), C((function () { e.panBy(p, { duration: f, easeLinearity: r, noMoveStart: !0, animate: !0 }) }))) : e.fire("moveend") } } }); Ye.addInitHook("addHandler", "dragging", vi), Ye.mergeOptions({ keyboard: !0, keyboardPanDelta: 80 }); var wi = nn.extend({ keyCodes: { left: [37], right: [39], down: [40], up: [38], zoomIn: [187, 107, 61, 171], zoomOut: [189, 109, 54, 173] }, initialize: function (t) { this._map = t, this._setPanDelta(t.options.keyboardPanDelta), this._setZoomDelta(t.options.zoomDelta) }, addHooks: function () { var t = this._map._container; t.tabIndex <= 0 && (t.tabIndex = "0"), Se(t, { focus: this._onFocus, blur: this._onBlur, mousedown: this._onMouseDown }, this), this._map.on({ focus: this._addHooks, blur: this._removeHooks }, this) }, removeHooks: function () { this._removeHooks(), Ee(this._map._container, { focus: this._onFocus, blur: this._onBlur, mousedown: this._onMouseDown }, this), this._map.off({ focus: this._addHooks, blur: this._removeHooks }, this) }, _onMouseDown: function () { if (!this._focused) { var t = document.body, e = document.documentElement, n = t.scrollTop || e.scrollTop, i = t.scrollLeft || e.scrollLeft; this._map._container.focus(), window.scrollTo(i, n) } }, _onFocus: function () { this._focused = !0, this._map.fire("focus") }, _onBlur: function () { this._focused = !1, this._map.fire("blur") }, _setPanDelta: function (t) { var e, n, i = this._panKeys = {}, o = this.keyCodes; for (e = 0, n = o.left.length; e < n; e++)i[o.left[e]] = [-1 * t, 0]; for (e = 0, n = o.right.length; e < n; e++)i[o.right[e]] = [t, 0]; for (e = 0, n = o.down.length; e < n; e++)i[o.down[e]] = [0, t]; for (e = 0, n = o.up.length; e < n; e++)i[o.up[e]] = [0, -1 * t] }, _setZoomDelta: function (t) { var e, n, i = this._zoomKeys = {}, o = this.keyCodes; for (e = 0, n = o.zoomIn.length; e < n; e++)i[o.zoomIn[e]] = t; for (e = 0, n = o.zoomOut.length; e < n; e++)i[o.zoomOut[e]] = -t }, _addHooks: function () { Se(document, "keydown", this._onKeyDown, this) }, _removeHooks: function () { Ee(document, "keydown", this._onKeyDown, this) }, _onKeyDown: function (t) { if (!(t.altKey || t.ctrlKey || t.metaKey)) { var e, n = t.keyCode, i = this._map; if (n in this._panKeys) i._panAnim && i._panAnim._inProgress || (e = this._panKeys[n], t.shiftKey && (e = A(e).multiplyBy(3)), i.panBy(e), i.options.maxBounds && i.panInsideBounds(i.options.maxBounds)); else if (n in this._zoomKeys) i.setZoom(i.getZoom() + (t.shiftKey ? 3 : 1) * this._zoomKeys[n]); else { if (27 !== n || !i._popup || !i._popup.options.closeOnEscapeKey) return; i.closePopup() } Fe(t) } } }); Ye.addInitHook("addHandler", "keyboard", wi), Ye.mergeOptions({ scrollWheelZoom: !0, wheelDebounceTime: 40, wheelPxPerZoomLevel: 60 }); var bi = nn.extend({ addHooks: function () { Se(this._map._container, "mousewheel", this._onWheelScroll, this), this._delta = 0 }, removeHooks: function () { Ee(this._map._container, "mousewheel", this._onWheelScroll, this) }, _onWheelScroll: function (t) { var e = Re(t), n = this._map.options.wheelDebounceTime; this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +new Date); var i = Math.max(n - (+new Date - this._startTime), 0); clearTimeout(this._timer), this._timer = setTimeout(o(this._performZoom, this), i), Fe(t) }, _performZoom: function () { var t = this._map, e = t.getZoom(), n = this._map.options.zoomSnap || 0; t._stop(); var i = this._delta / (4 * this._map.options.wheelPxPerZoomLevel), o = 4 * Math.log(2 / (1 + Math.exp(-Math.abs(i)))) / Math.LN2, a = n ? Math.ceil(o / n) * n : o, r = t._limitZoom(e + (this._delta > 0 ? a : -a)) - e; this._delta = 0, this._startTime = null, r && ("center" === t.options.scrollWheelZoom ? t.setZoom(e + r) : t.setZoomAround(this._lastMousePos, e + r)) } }); Ye.addInitHook("addHandler", "scrollWheelZoom", bi), Ye.mergeOptions({ tap: !0, tapTolerance: 15 }); var ki = nn.extend({ addHooks: function () { Se(this._map._container, "touchstart", this._onDown, this) }, removeHooks: function () { Ee(this._map._container, "touchstart", this._onDown, this) }, _onDown: function (t) { if (t.touches) { if (Be(t), this._fireClick = !0, t.touches.length > 1) return this._fireClick = !1, void clearTimeout(this._holdTimeout); var e = t.touches[0], n = e.target; this._startPos = this._newPos = new j(e.clientX, e.clientY), n.tagName && "a" === n.tagName.toLowerCase() && pe(n, "leaflet-active"), this._holdTimeout = setTimeout(o((function () { this._isTapValid() && (this._fireClick = !1, this._onUp(), this._simulateEvent("contextmenu", e)) }), this), 1e3), this._simulateEvent("mousedown", e), Se(document, { touchmove: this._onMove, touchend: this._onUp }, this) } }, _onUp: function (t) { if (clearTimeout(this._holdTimeout), Ee(document, { touchmove: this._onMove, touchend: this._onUp }, this), this._fireClick && t && t.changedTouches) { var e = t.changedTouches[0], n = e.target; n && n.tagName && "a" === n.tagName.toLowerCase() && he(n, "leaflet-active"), this._simulateEvent("mouseup", e), this._isTapValid() && this._simulateEvent("click", e) } }, _isTapValid: function () { return this._newPos.distanceTo(this._startPos) <= this._map.options.tapTolerance }, _onMove: function (t) { var e = t.touches[0]; this._newPos = new j(e.clientX, e.clientY), this._simulateEvent("mousemove", e) }, _simulateEvent: function (t, e) { var n = document.createEvent("MouseEvents"); n._simulated = !0, e.target._simulatedClick = !0, n.initMouseEvent(t, !0, !0, window, 1, e.screenX, e.screenY, e.clientX, e.clientY, !1, !1, !1, !1, 0, null), e.target.dispatchEvent(n) } }); Pt && !kt && Ye.addInitHook("addHandler", "tap", ki), Ye.mergeOptions({ touchZoom: Pt && !ot, bounceAtZoomLimits: !0 }); var Pi = nn.extend({ addHooks: function () { pe(this._map._container, "leaflet-touch-zoom"), Se(this._map._container, "touchstart", this._onTouchStart, this) }, removeHooks: function () { he(this._map._container, "leaflet-touch-zoom"), Ee(this._map._container, "touchstart", this._onTouchStart, this) }, _onTouchStart: function (t) { var e = this._map; if (t.touches && 2 === t.touches.length && !e._animatingZoom && !this._zooming) { var n = e.mouseEventToContainerPoint(t.touches[0]), i = e.mouseEventToContainerPoint(t.touches[1]); this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), "center" !== e.options.touchZoom && (this._pinchStartLatLng = e.containerPointToLatLng(n.add(i)._divideBy(2))), this._startDist = n.distanceTo(i), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), Se(document, "touchmove", this._onTouchMove, this), Se(document, "touchend", this._onTouchEnd, this), Be(t) } }, _onTouchMove: function (t) { if (t.touches && 2 === t.touches.length && this._zooming) { var e = this._map, n = e.mouseEventToContainerPoint(t.touches[0]), i = e.mouseEventToContainerPoint(t.touches[1]), a = n.distanceTo(i) / this._startDist; if (this._zoom = e.getScaleZoom(a, this._startZoom), !e.options.bounceAtZoomLimits && (this._zoom < e.getMinZoom() && a < 1 || this._zoom > e.getMaxZoom() && a > 1) && (this._zoom = e._limitZoom(this._zoom)), "center" === e.options.touchZoom) { if (this._center = this._startLatLng, 1 === a) return } else { var r = n._add(i)._divideBy(2)._subtract(this._centerPoint); if (1 === a && 0 === r.x && 0 === r.y) return; this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(r), this._zoom) } this._moved || (e._moveStart(!0, !1), this._moved = !0), O(this._animRequest); var s = o(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }); this._animRequest = C(s, this, !0), Be(t) } }, _onTouchEnd: function () { this._moved && this._zooming ? (this._zooming = !1, O(this._animRequest), Ee(document, "touchmove", this._onTouchMove), Ee(document, "touchend", this._onTouchEnd), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom))) : this._zooming = !1 } }); Ye.addInitHook("addHandler", "touchZoom", Pi), Ye.BoxZoom = _i, Ye.DoubleClickZoom = yi, Ye.Drag = vi, Ye.Keyboard = wi, Ye.ScrollWheelZoom = bi, Ye.Tap = ki, Ye.TouchZoom = Pi, Object.freeze = e, t.version = "1.5.1+build.2e3e0ffb", t.Control = Xe, t.control = Je, t.Browser = Et, t.Evented = E, t.Mixin = an, t.Util = M, t.Class = S, t.Handler = nn, t.extend = n, t.bind = o, t.stamp = r, t.setOptions = h, t.DomEvent = Ve, t.DomUtil = Me, t.PosAnimation = Ke, t.Draggable = cn, t.LineUtil = vn, t.PolyUtil = bn, t.Point = j, t.point = A, t.Bounds = I, t.bounds = N, t.Transformation = G, t.transformation = V, t.Projection = xn, t.LatLng = D, t.latLng = Z, t.LatLngBounds = B, t.latLngBounds = F, t.CRS = H, t.GeoJSON = Zn, t.geoJSON = Yn, t.geoJson = Xn, t.Layer = Mn, t.LayerGroup = Sn, t.layerGroup = function (t, e) { return new Sn(t, e) }, t.FeatureGroup = Tn, t.featureGroup = function (t) { return new Tn(t) }, t.ImageOverlay = Jn, t.imageOverlay = function (t, e, n) { return new Jn(t, e, n) }, t.VideoOverlay = $n, t.videoOverlay = function (t, e, n) { return new $n(t, e, n) }, t.SVGOverlay = Qn, t.svgOverlay = function (t, e, n) { return new Qn(t, e, n) }, t.DivOverlay = ti, t.Popup = ei, t.popup = function (t, e) { return new ei(t, e) }, t.Tooltip = ni, t.tooltip = function (t, e) { return new ni(t, e) }, t.Icon = En, t.icon = function (t) { return new En(t) }, t.DivIcon = ii, t.divIcon = function (t) { return new ii(t) }, t.Marker = An, t.marker = function (t, e) { return new An(t, e) }, t.TileLayer = ai, t.tileLayer = ri, t.GridLayer = oi, t.gridLayer = function (t) { return new oi(t) }, t.SVG = di, t.svg = mi, t.Renderer = li, t.Canvas = ci, t.canvas = ui, t.Path = In, t.CircleMarker = Nn, t.circleMarker = function (t, e) { return new Nn(t, e) }, t.Circle = Bn, t.circle = function (t, e, n) { return new Bn(t, e, n) }, t.Polyline = Fn, t.polyline = function (t, e) { return new Fn(t, e) }, t.Polygon = Dn, t.polygon = function (t, e) { return new Dn(t, e) }, t.Rectangle = gi, t.rectangle = function (t, e) { return new gi(t, e) }, t.Map = Ye, t.map = function (t, e) { return new Ye(t, e) }; var xi = window.L; t.noConflict = function () { return window.L = xi, this }, window.L = t }(e) }, function (t, e, n) { "use strict"; n.r(e), n.d(e, "localStorageHelpers", (function () { return a })); var i = n(4), o = n.n(i), a = { get: function (t) { if ("pl" === easyPackConfig.instance) return window.localStorage.getItem(t) }, getDecompressed: function (t) { return null }, put: function (t, e) { "pl" === easyPackConfig.instance && o()((function () { window.localStorage.setItem(t, e) }), 0) }, putCompressed: function (t, e) { easyPackConfig.instance }, remove: function (t) { "pl" === easyPackConfig.instance && window.localStorage.removeItem(t) } } }, function (t, e, n) { var i = n(32); t.exports = function (t) { return Object(i(t)) } }, function (t, e, n) { var i = n(5), o = n(22), a = n(21), r = n(39)("src"), s = n(188), l = "toString", c = ("" + s).split(l); n(12).inspectSource = function (t) { return s.call(t) }, (t.exports = function (t, e, n, s) { var l = "function" == typeof n; l && (a(n, "name") || o(n, "name", e)), t[e] !== n && (l && (a(n, r) || o(n, r, t[e] ? "" + t[e] : c.join(String(e)))), t === i ? t[e] = n : s ? t[e] ? t[e] = n : o(t, e, n) : (delete t[e], o(t, e, n))) })(Function.prototype, l, (function () { return "function" == typeof this && this[r] || s.call(this) })) }, function (t, e, n) { var i = n(2), o = n(6), a = n(32), r = /"/g, s = function (t, e, n, i) { var o = String(a(t)), s = "<" + e; return "" !== n && (s += " " + n + '="' + String(i).replace(r, """) + '"'), s + ">" + o + "" }; t.exports = function (t, e) { var n = {}; n[t] = e(s), i(i.P + i.F * o((function () { var e = ""[t]('"'); return e !== e.toLowerCase() || e.split('"').length > 3 })), "String", n) } }, function (t, e, n) { "use strict"; function i(t) { this.message = t } i.prototype = new Error, i.prototype.name = "InvalidCharacterError"; var o = "undefined" != typeof window && window.atob && window.atob.bind(window) || function (t) { var e = String(t).replace(/=+$/, ""); if (e.length % 4 == 1) throw new i("'atob' failed: The string to be decoded is not correctly encoded."); for (var n, o, a = 0, r = 0, s = ""; o = e.charAt(r++); ~o && (n = a % 4 ? 64 * n + o : o, a++ % 4) ? s += String.fromCharCode(255 & n >> (-2 * a & 6)) : 0)o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o); return s }; function a(t) { this.message = t } a.prototype = new Error, a.prototype.name = "InvalidTokenError"; var r = function (t, e) { if ("string" != typeof t) throw new a("Invalid token specified"); var n = !0 === (e = e || {}).header ? 0 : 1; try { return JSON.parse(function (t) { var e = t.replace(/-/g, "+").replace(/_/g, "/"); switch (e.length % 4) { case 0: break; case 2: e += "=="; break; case 3: e += "="; break; default: throw "Illegal base64url string!" }try { return function (t) { return decodeURIComponent(o(t).replace(/(.)/g, (function (t, e) { var n = e.charCodeAt(0).toString(16).toUpperCase(); return n.length < 2 && (n = "0" + n), "%" + n }))) }(e) } catch (t) { return o(e) } }(t.split(".")[n])) } catch (t) { throw new a("Invalid token specified: " + t.message) } }, s = n(1); n.d(e, "a", (function () { return l })); var l = { getParams: function (t) { var e = l.getContext(); return e.name ? (null !== e.partner_id && void 0 !== e.partner_id ? t.partner_id = e.partner_id.join(",") : delete t.partner_id, null !== e.status && void 0 !== e.status ? t.status = e.status.join(",") : delete t.status, null !== e.functions && void 0 !== e.functions ? t.functions = e.functions.join(",") : delete t.function, null !== e.type && void 0 !== e.type ? t.type = e.type.join(",") : delete t.type, null !== e.payment_available && void 0 !== e.payment_available ? t.payment_available = e.payment_available : delete t.payment_available, null !== e.location_247 && void 0 !== e.location_247 ? t.location_247 = e.location_247 : delete t.location_247, t) : t }, getHeaders: function (t) { return l.hasContext() ? (void 0 === t && (t = {}), t["app-referrer"] = window.origin, t.Authorization = "Bearer " + window.easyPackConfig.token, t) : t }, hasContext: function () { return !!l.getContext().name }, getContext: function () { return l.getContexts().length && l.getContextName() && l.getContexts().find((function (t) { return t.name === l.getContextName() })) || {} }, getContextName: function () { return window.easyPackConfig.context }, getContexts: function () { return window.easyPackConfig.contexts }, checkIsCorrectToken: function () { var t = {}; try { t = r(window.easyPackConfig.token) } catch (t) { return alert(Object(s.o)("token_incorrect_or_missing")), !1 } return t.scope ? t.scope.includes("api:shipx") ? (alert(Object(s.o)("token_incorrect_dangerous")), !1) : !!t.scope.includes("api:apipoints") || (alert(Object(s.o)("token_incorrect")), !1) : (alert(Object(s.o)("token_incorrect")), !1) } } }, function (t, e) { var n = {}.hasOwnProperty; t.exports = function (t, e) { return n.call(t, e) } }, function (t, e, n) { var i = n(14), o = n(38); t.exports = n(13) ? function (t, e, n) { return i.f(t, e, o(1, n)) } : function (t, e, n) { return t[e] = n, t } }, function (t, e, n) { var i = n(57), o = n(32); t.exports = function (t) { return i(o(t)) } }, function (t, e, n) { "use strict"; var i = n(6); t.exports = function (t, e) { return !!t && i((function () { e ? t.call(null, (function () { }), 1) : t.call(null) })) } }, function (t, e, n) { var i = n(26); t.exports = function (t, e, n) { if (i(t), void 0 === e) return t; switch (n) { case 1: return function (n) { return t.call(e, n) }; case 2: return function (n, i) { return t.call(e, n, i) }; case 3: return function (n, i, o) { return t.call(e, n, i, o) } }return function () { return t.apply(e, arguments) } } }, function (t, e) { t.exports = function (t) { if ("function" != typeof t) throw TypeError(t + " is not a function!"); return t } }, function (t, e) { var n = Math.ceil, i = Math.floor; t.exports = function (t) { return isNaN(t = +t) ? 0 : (t > 0 ? i : n)(t) } }, function (t, e, n) { var i = n(58), o = n(38), a = n(23), r = n(36), s = n(21), l = n(119), c = Object.getOwnPropertyDescriptor; e.f = n(13) ? c : function (t, e) { if (t = a(t), e = r(e, !0), l) try { return c(t, e) } catch (t) { } if (s(t, e)) return o(!i.f.call(t, e), t[e]) } }, function (t, e, n) { var i = n(2), o = n(12), a = n(6); t.exports = function (t, e) { var n = (o.Object || {})[t] || Object[t], r = {}; r[t] = e(n), i(i.S + i.F * a((function () { n(1) })), "Object", r) } }, function (t, e, n) { var i = n(25), o = n(57), a = n(17), r = n(11), s = n(135); t.exports = function (t, e) { var n = 1 == t, l = 2 == t, c = 3 == t, u = 4 == t, f = 6 == t, p = 5 == t || f, h = e || s; return function (e, s, d) { for (var m, g, _ = a(e), y = o(_), v = i(s, d, 3), w = r(y.length), b = 0, k = n ? h(e, w) : l ? h(e, 0) : void 0; w > b; b++)if ((p || b in y) && (g = v(m = y[b], b, _), t)) if (n) k[b] = g; else if (g) switch (t) { case 3: return !0; case 5: return m; case 6: return b; case 2: k.push(m) } else if (u) return !1; return f ? -1 : c || u ? u : k } } }, function (t, e) { var n = {}.toString; t.exports = function (t) { return n.call(t).slice(8, -1) } }, function (t, e) { t.exports = function (t) { if (null == t) throw TypeError("Can't call method on " + t); return t } }, function (t, e, n) { "use strict"; if (n(13)) { var i = n(40), o = n(5), a = n(6), r = n(2), s = n(74), l = n(100), c = n(25), u = n(53), f = n(38), p = n(22), h = n(54), d = n(27), m = n(11), g = n(146), _ = n(42), y = n(36), v = n(21), w = n(59), b = n(8), k = n(17), P = n(92), x = n(43), L = n(45), C = n(44).f, O = n(94), M = n(39), S = n(9), T = n(30), E = n(64), j = n(60), z = n(96), A = n(51), I = n(67), N = n(52), B = n(95), F = n(137), D = n(14), Z = n(28), R = D.f, H = Z.f, q = o.RangeError, U = o.TypeError, W = o.Uint8Array, G = "ArrayBuffer", V = "SharedArrayBuffer", K = "BYTES_PER_ELEMENT", Y = Array.prototype, X = l.ArrayBuffer, J = l.DataView, $ = T(0), Q = T(2), tt = T(3), et = T(4), nt = T(5), it = T(6), ot = E(!0), at = E(!1), rt = z.values, st = z.keys, lt = z.entries, ct = Y.lastIndexOf, ut = Y.reduce, ft = Y.reduceRight, pt = Y.join, ht = Y.sort, dt = Y.slice, mt = Y.toString, gt = Y.toLocaleString, _t = S("iterator"), yt = S("toStringTag"), vt = M("typed_constructor"), wt = M("def_constructor"), bt = s.CONSTR, kt = s.TYPED, Pt = s.VIEW, xt = "Wrong length!", Lt = T(1, (function (t, e) { return Tt(j(t, t[wt]), e) })), Ct = a((function () { return 1 === new W(new Uint16Array([1]).buffer)[0] })), Ot = !!W && !!W.prototype.set && a((function () { new W(1).set({}) })), Mt = function (t, e) { var n = d(t); if (n < 0 || n % e) throw q("Wrong offset!"); return n }, St = function (t) { if (b(t) && kt in t) return t; throw U(t + " is not a typed array!") }, Tt = function (t, e) { if (!b(t) || !(vt in t)) throw U("It is not a typed array constructor!"); return new t(e) }, Et = function (t, e) { return jt(j(t, t[wt]), e) }, jt = function (t, e) { for (var n = 0, i = e.length, o = Tt(t, i); i > n;)o[n] = e[n++]; return o }, zt = function (t, e, n) { R(t, e, { get: function () { return this._d[n] } }) }, At = function (t) { var e, n, i, o, a, r, s = k(t), l = arguments.length, u = l > 1 ? arguments[1] : void 0, f = void 0 !== u, p = O(s); if (null != p && !P(p)) { for (r = p.call(s), i = [], e = 0; !(a = r.next()).done; e++)i.push(a.value); s = i } for (f && l > 2 && (u = c(u, arguments[2], 2)), e = 0, n = m(s.length), o = Tt(this, n); n > e; e++)o[e] = f ? u(s[e], e) : s[e]; return o }, It = function () { for (var t = 0, e = arguments.length, n = Tt(this, e); e > t;)n[t] = arguments[t++]; return n }, Nt = !!W && a((function () { gt.call(new W(1)) })), Bt = function () { return gt.apply(Nt ? dt.call(St(this)) : St(this), arguments) }, Ft = { copyWithin: function (t, e) { return F.call(St(this), t, e, arguments.length > 2 ? arguments[2] : void 0) }, every: function (t) { return et(St(this), t, arguments.length > 1 ? arguments[1] : void 0) }, fill: function (t) { return B.apply(St(this), arguments) }, filter: function (t) { return Et(this, Q(St(this), t, arguments.length > 1 ? arguments[1] : void 0)) }, find: function (t) { return nt(St(this), t, arguments.length > 1 ? arguments[1] : void 0) }, findIndex: function (t) { return it(St(this), t, arguments.length > 1 ? arguments[1] : void 0) }, forEach: function (t) { $(St(this), t, arguments.length > 1 ? arguments[1] : void 0) }, indexOf: function (t) { return at(St(this), t, arguments.length > 1 ? arguments[1] : void 0) }, includes: function (t) { return ot(St(this), t, arguments.length > 1 ? arguments[1] : void 0) }, join: function (t) { return pt.apply(St(this), arguments) }, lastIndexOf: function (t) { return ct.apply(St(this), arguments) }, map: function (t) { return Lt(St(this), t, arguments.length > 1 ? arguments[1] : void 0) }, reduce: function (t) { return ut.apply(St(this), arguments) }, reduceRight: function (t) { return ft.apply(St(this), arguments) }, reverse: function () { for (var t, e = this, n = St(e).length, i = Math.floor(n / 2), o = 0; o < i;)t = e[o], e[o++] = e[--n], e[n] = t; return e }, some: function (t) { return tt(St(this), t, arguments.length > 1 ? arguments[1] : void 0) }, sort: function (t) { return ht.call(St(this), t) }, subarray: function (t, e) { var n = St(this), i = n.length, o = _(t, i); return new (j(n, n[wt]))(n.buffer, n.byteOffset + o * n.BYTES_PER_ELEMENT, m((void 0 === e ? i : _(e, i)) - o)) } }, Dt = function (t, e) { return Et(this, dt.call(St(this), t, e)) }, Zt = function (t) { St(this); var e = Mt(arguments[1], 1), n = this.length, i = k(t), o = m(i.length), a = 0; if (o + e > n) throw q(xt); for (; a < o;)this[e + a] = i[a++] }, Rt = { entries: function () { return lt.call(St(this)) }, keys: function () { return st.call(St(this)) }, values: function () { return rt.call(St(this)) } }, Ht = function (t, e) { return b(t) && t[kt] && "symbol" != typeof e && e in t && String(+e) == String(e) }, qt = function (t, e) { return Ht(t, e = y(e, !0)) ? f(2, t[e]) : H(t, e) }, Ut = function (t, e, n) { return !(Ht(t, e = y(e, !0)) && b(n) && v(n, "value")) || v(n, "get") || v(n, "set") || n.configurable || v(n, "writable") && !n.writable || v(n, "enumerable") && !n.enumerable ? R(t, e, n) : (t[e] = n.value, t) }; bt || (Z.f = qt, D.f = Ut), r(r.S + r.F * !bt, "Object", { getOwnPropertyDescriptor: qt, defineProperty: Ut }), a((function () { mt.call({}) })) && (mt = gt = function () { return pt.call(this) }); var Wt = h({}, Ft); h(Wt, Rt), p(Wt, _t, Rt.values), h(Wt, { slice: Dt, set: Zt, constructor: function () { }, toString: mt, toLocaleString: Bt }), zt(Wt, "buffer", "b"), zt(Wt, "byteOffset", "o"), zt(Wt, "byteLength", "l"), zt(Wt, "length", "e"), R(Wt, yt, { get: function () { return this[kt] } }), t.exports = function (t, e, n, l) { var c = t + ((l = !!l) ? "Clamped" : "") + "Array", f = "get" + t, h = "set" + t, d = o[c], _ = d || {}, y = d && L(d), v = !d || !s.ABV, k = {}, P = d && d.prototype, O = function (t, n) { R(t, n, { get: function () { return function (t, n) { var i = t._d; return i.v[f](n * e + i.o, Ct) }(this, n) }, set: function (t) { return function (t, n, i) { var o = t._d; l && (i = (i = Math.round(i)) < 0 ? 0 : i > 255 ? 255 : 255 & i), o.v[h](n * e + o.o, i, Ct) }(this, n, t) }, enumerable: !0 }) }; v ? (d = n((function (t, n, i, o) { u(t, d, c, "_d"); var a, r, s, l, f = 0, h = 0; if (b(n)) { if (!(n instanceof X || (l = w(n)) == G || l == V)) return kt in n ? jt(d, n) : At.call(d, n); a = n, h = Mt(i, e); var _ = n.byteLength; if (void 0 === o) { if (_ % e) throw q(xt); if ((r = _ - h) < 0) throw q(xt) } else if ((r = m(o) * e) + h > _) throw q(xt); s = r / e } else s = g(n), a = new X(r = s * e); for (p(t, "_d", { b: a, o: h, l: r, e: s, v: new J(a) }); f < s;)O(t, f++) })), P = d.prototype = x(Wt), p(P, "constructor", d)) : a((function () { d(1) })) && a((function () { new d(-1) })) && I((function (t) { new d, new d(null), new d(1.5), new d(t) }), !0) || (d = n((function (t, n, i, o) { var a; return u(t, d, c), b(n) ? n instanceof X || (a = w(n)) == G || a == V ? void 0 !== o ? new _(n, Mt(i, e), o) : void 0 !== i ? new _(n, Mt(i, e)) : new _(n) : kt in n ? jt(d, n) : At.call(d, n) : new _(g(n)) })), $(y !== Function.prototype ? C(_).concat(C(y)) : C(_), (function (t) { t in d || p(d, t, _[t]) })), d.prototype = P, i || (P.constructor = d)); var M = P[_t], S = !!M && ("values" == M.name || null == M.name), T = Rt.values; p(d, vt, !0), p(P, kt, c), p(P, Pt, !0), p(P, wt, d), (l ? new d(1)[yt] == c : yt in P) || R(P, yt, { get: function () { return c } }), k[c] = d, r(r.G + r.W + r.F * (d != _), k), r(r.S, c, { BYTES_PER_ELEMENT: e }), r(r.S + r.F * a((function () { _.of.call(d, 1) })), c, { from: At, of: It }), K in P || p(P, K, e), r(r.P, c, Ft), N(c), r(r.P + r.F * Ot, c, { set: Zt }), r(r.P + r.F * !S, c, Rt), i || P.toString == mt || (P.toString = mt), r(r.P + r.F * a((function () { new d(1).slice() })), c, { slice: Dt }), r(r.P + r.F * (a((function () { return [1, 2].toLocaleString() != new d([1, 2]).toLocaleString() })) || !a((function () { P.toLocaleString.call([1, 2]) }))), c, { toLocaleString: Bt }), A[c] = S ? M : T, i || S || p(P, _t, T) } } else t.exports = function () { } }, function (t, e, n) { "use strict"; n.r(e), n.d(e, "easyPackConfig", (function () { return i })); var i = { apiEndpoint: "https://api-pl-points.easypack24.net/v1", locales: ["pl"], defaultLocale: "pl", descriptionInWindow: !0, hideSelect: !1, paymentFilter: { visible: !1, defaultEnabled: !1, showOnlyWithPayment: !1 }, addressFormat: "{street} {building_number}
{post_code} {city}", assetsServer: "https://geowidget.easypack24.net", infoboxLibraryUrl: "/js/lib/infobox.min.js", markersUrl: "/images/desktop/markers/", iconsUrl: "/images/desktop/icons/", loadingIcon: "/images/desktop/icons/ajax-loader.gif", mobileSize: 768, closeTooltip: !0, langSelection: !1, formatOpenHours: !1, filters: !1, closeFullScreenModeOnPointSelect: !0, mobileFiltersAsCheckbox: !0, points: { types: ["parcel_locker", "pop"], subtypes: ["parcel_locker_superpop"], allowedToolTips: ["pok", "pop"], functions: [], showPoints: [], markerConditions: [{ type: "location_date", icon_name: "nowy_granatowy", params: { days: 60 } }, { type: "partner_id", icon_name: "inpost_zabka_pin_zolty", name: !1, params: { partner_id: 61 } }, { type: "partner_id", icon_name: "inpost_zabka_pin_zielony", name: "PaczkoPunkt w Żabce %name%", params: { partner_id: 60 } }], fields: ["name", "type", "location", "address", "address_details", "functions", "location_date", "location_description", "opening_hours", "location_247", "apm_doubled", "image_url", "easy_access_zone", "partner_id"] }, defaultParams: [{ source: "geov4_pl" }], showOverLoadedLockers: !1, showNonOperatingLockers: !0, searchPointsResultLimit: 5, customDetailsCallback: !1, customMapAndListInRow: { enabled: !1, itemsPerPage: 8 }, listItemFormat: ["{name}", "{address_details.street} {address_details.building_number}"], display: { showTypesFilters: !0, showSearchBar: !0 }, mapType: "osm", searchType: "osm", searchApiUrl: "https://osm.inpost.pl/nominatim/search", searchApiKey: "", map: { googleKey: "", gestureHandling: "greedy", clusterer: { gridSize: 140, fontSize: "10px", fontFamily: "Montserrat", maxZoom: 16, minimumClusterSize: 10, styles: [{ url: "/images/desktop/map-elements/cluster.png?4.12.8", height: 61, textColor: "#ffcb04", width: 61 }, { url: "/images/desktop/map-elements/cluster.png?4.12.8", height: 61, width: 61, textColor: "#ffcb04" }, { url: "/images/desktop/map-elements/cluster.png?4.12.8", height: 61, textColor: "#ffcb04", width: 61 }] }, leafletClusterer: { chunkedLoading: !0, disableClusteringAtZoom: 15, spiderfyOnMaxZoom: !1, removeOutsideVisibleBounds: !0, animate: !0 }, useGeolocation: !0, initialZoom: 13, detailsMinZoom: 15, autocompleteZoom: 14, autocompleteMinSearchPoint: 6, visiblePointsMinZoom: 13, defaultLocation: [52.229807, 21.011595], distanceMultiplier: 1e3, chunkLimit: 1e4, closestLimit: 200, preloadLimit: 1e3, timeOutPerChunkFromCache: 300, limitPointsOnList: 100, requestLimit: 4, defaultDistance: 2e3, initialTypes: ["pop", "parcel_locker"], reloadDelay: 250, country: "pl", typeSelectedIcon: "/images/desktop/icons/selected.png?4.12.8", typeSelectedRadio: "/images/mobile/radio.png?4.12.8", closeIcon: "/images/desktop/icons/close.png?4.12.8", pointIcon: "/images/desktop/icons/point.png?4.12.8", pointIconDark: "/images/desktop/icons/point-dark.png?4.12.8", detailsIcon: "/images/desktop/icons/info.png?4.12.8", selectIcon: "/images/desktop/icons/select.png?4.12.8", pointerIcon: "/images/desktop/icons/pointer.png?4.12.8", filtersIcon: "/images/desktop/icons/filters.png?4.12.8", tooltipPointerIcon: "/images/desktop/icons/half-pointer.png?4.12.8", photosUrl: "/uploads/{locale}/images/", mapIcon: "/images/mobile/map.png?4.12.8", listIcon: "/images/mobile/list.png?4.12.8" }, osm: { tiles: "https://osm.inpost.pl/osm_tiles/{z}/{x}/{y}.png" }, context: null, contexts: {} } }, function (t, e, n) { "use strict"; var i = n(1), o = n(3), a = n(20), r = "URLSearchParams" in self, s = "Symbol" in self && "iterator" in Symbol, l = "FileReader" in self && "Blob" in self && function () { try { return new Blob, !0 } catch (t) { return !1 } }(), c = "FormData" in self, u = "ArrayBuffer" in self; if (u) var f = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"], p = ArrayBuffer.isView || function (t) { return t && f.indexOf(Object.prototype.toString.call(t)) > -1 }; function h(t) { if ("string" != typeof t && (t = String(t)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t)) throw new TypeError("Invalid character in header field name"); return t.toLowerCase() } function d(t) { return "string" != typeof t && (t = String(t)), t } function m(t) { var e = { next: function () { var e = t.shift(); return { done: void 0 === e, value: e } } }; return s && (e[Symbol.iterator] = function () { return e }), e } function g(t) { this.map = {}, t instanceof g ? t.forEach((function (t, e) { this.append(e, t) }), this) : Array.isArray(t) ? t.forEach((function (t) { this.append(t[0], t[1]) }), this) : t && Object.getOwnPropertyNames(t).forEach((function (e) { this.append(e, t[e]) }), this) } function _(t) { if (t.bodyUsed) return Promise.reject(new TypeError("Already read")); t.bodyUsed = !0 } function y(t) { return new Promise((function (e, n) { t.onload = function () { e(t.result) }, t.onerror = function () { n(t.error) } })) } function v(t) { var e = new FileReader, n = y(e); return e.readAsArrayBuffer(t), n } function w(t) { if (t.slice) return t.slice(0); var e = new Uint8Array(t.byteLength); return e.set(new Uint8Array(t)), e.buffer } function b() { return this.bodyUsed = !1, this._initBody = function (t) { var e; this._bodyInit = t, t ? "string" == typeof t ? this._bodyText = t : l && Blob.prototype.isPrototypeOf(t) ? this._bodyBlob = t : c && FormData.prototype.isPrototypeOf(t) ? this._bodyFormData = t : r && URLSearchParams.prototype.isPrototypeOf(t) ? this._bodyText = t.toString() : u && l && (e = t) && DataView.prototype.isPrototypeOf(e) ? (this._bodyArrayBuffer = w(t.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : u && (ArrayBuffer.prototype.isPrototypeOf(t) || p(t)) ? this._bodyArrayBuffer = w(t) : this._bodyText = t = Object.prototype.toString.call(t) : this._bodyText = "", this.headers.get("content-type") || ("string" == typeof t ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : r && URLSearchParams.prototype.isPrototypeOf(t) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")) }, l && (this.blob = function () { var t = _(this); if (t) return t; if (this._bodyBlob) return Promise.resolve(this._bodyBlob); if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer])); if (this._bodyFormData) throw new Error("could not read FormData body as blob"); return Promise.resolve(new Blob([this._bodyText])) }, this.arrayBuffer = function () { return this._bodyArrayBuffer ? _(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(v) }), this.text = function () { var t, e, n, i = _(this); if (i) return i; if (this._bodyBlob) return t = this._bodyBlob, n = y(e = new FileReader), e.readAsText(t), n; if (this._bodyArrayBuffer) return Promise.resolve(function (t) { for (var e = new Uint8Array(t), n = new Array(e.length), i = 0; i < e.length; i++)n[i] = String.fromCharCode(e[i]); return n.join("") }(this._bodyArrayBuffer)); if (this._bodyFormData) throw new Error("could not read FormData body as text"); return Promise.resolve(this._bodyText) }, c && (this.formData = function () { return this.text().then(x) }), this.json = function () { return this.text().then(JSON.parse) }, this } g.prototype.append = function (t, e) { t = h(t), e = d(e); var n = this.map[t]; this.map[t] = n ? n + ", " + e : e }, g.prototype.delete = function (t) { delete this.map[h(t)] }, g.prototype.get = function (t) { return t = h(t), this.has(t) ? this.map[t] : null }, g.prototype.has = function (t) { return this.map.hasOwnProperty(h(t)) }, g.prototype.set = function (t, e) { this.map[h(t)] = d(e) }, g.prototype.forEach = function (t, e) { for (var n in this.map) this.map.hasOwnProperty(n) && t.call(e, this.map[n], n, this) }, g.prototype.keys = function () { var t = []; return this.forEach((function (e, n) { t.push(n) })), m(t) }, g.prototype.values = function () { var t = []; return this.forEach((function (e) { t.push(e) })), m(t) }, g.prototype.entries = function () { var t = []; return this.forEach((function (e, n) { t.push([n, e]) })), m(t) }, s && (g.prototype[Symbol.iterator] = g.prototype.entries); var k = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; function P(t, e) { var n, i, o = (e = e || {}).body; if (t instanceof P) { if (t.bodyUsed) throw new TypeError("Already read"); this.url = t.url, this.credentials = t.credentials, e.headers || (this.headers = new g(t.headers)), this.method = t.method, this.mode = t.mode, this.signal = t.signal, o || null == t._bodyInit || (o = t._bodyInit, t.bodyUsed = !0) } else this.url = String(t); if (this.credentials = e.credentials || this.credentials || "same-origin", !e.headers && this.headers || (this.headers = new g(e.headers)), this.method = (i = (n = e.method || this.method || "GET").toUpperCase(), k.indexOf(i) > -1 ? i : n), this.mode = e.mode || this.mode || null, this.signal = e.signal || this.signal, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && o) throw new TypeError("Body not allowed for GET or HEAD requests"); this._initBody(o) } function x(t) { var e = new FormData; return t.trim().split("&").forEach((function (t) { if (t) { var n = t.split("="), i = n.shift().replace(/\+/g, " "), o = n.join("=").replace(/\+/g, " "); e.append(decodeURIComponent(i), decodeURIComponent(o)) } })), e } function L(t, e) { e || (e = {}), this.type = "default", this.status = void 0 === e.status ? 200 : e.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in e ? e.statusText : "OK", this.headers = new g(e.headers), this.url = e.url || "", this._initBody(t) } P.prototype.clone = function () { return new P(this, { body: this._bodyInit }) }, b.call(P.prototype), b.call(L.prototype), L.prototype.clone = function () { return new L(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new g(this.headers), url: this.url }) }, L.error = function () { var t = new L(null, { status: 0, statusText: "" }); return t.type = "error", t }; var C = [301, 302, 303, 307, 308]; L.redirect = function (t, e) { if (-1 === C.indexOf(e)) throw new RangeError("Invalid status code"); return new L(null, { status: e, headers: { location: t } }) }; var O = self.DOMException; try { new O } catch (t) { (O = function (t, e) { this.message = t, this.name = e; var n = Error(t); this.stack = n.stack }).prototype = Object.create(Error.prototype), O.prototype.constructor = O } function M(t, e) { return new Promise((function (n, i) { var o = new P(t, e); if (o.signal && o.signal.aborted) return i(new O("Aborted", "AbortError")); var a = new XMLHttpRequest; function r() { a.abort() } a.onload = function () { var t, e, i = { status: a.status, statusText: a.statusText, headers: (t = a.getAllResponseHeaders() || "", e = new g, t.replace(/\r?\n[\t ]+/g, " ").split(/\r?\n/).forEach((function (t) { var n = t.split(":"), i = n.shift().trim(); if (i) { var o = n.join(":").trim(); e.append(i, o) } })), e) }; i.url = "responseURL" in a ? a.responseURL : i.headers.get("X-Request-URL"); var o = "response" in a ? a.response : a.responseText; n(new L(o, i)) }, a.onerror = function () { i(new TypeError("Network request failed")) }, a.ontimeout = function () { i(new TypeError("Network request failed")) }, a.onabort = function () { i(new O("Aborted", "AbortError")) }, a.open(o.method, o.url, !0), "include" === o.credentials ? a.withCredentials = !0 : "omit" === o.credentials && (a.withCredentials = !1), "responseType" in a && l && (a.responseType = "blob"), o.headers.forEach((function (t, e) { a.setRequestHeader(e, t) })), o.signal && (o.signal.addEventListener("abort", r), a.onreadystatechange = function () { 4 === a.readyState && o.signal.removeEventListener("abort", r) }), a.send(void 0 === o._bodyInit ? null : o._bodyInit) })) } function S(t) { for (var e = 1; e < arguments.length; e++) { var n = null != arguments[e] ? arguments[e] : {}, i = Object.keys(n); "function" == typeof Object.getOwnPropertySymbols && (i = i.concat(Object.getOwnPropertySymbols(n).filter((function (t) { return Object.getOwnPropertyDescriptor(n, t).enumerable })))), i.forEach((function (e) { T(t, e, n[e]) })) } return t } function T(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t } M.polyfill = !0, self.fetch || (self.fetch = M, self.Headers = g, self.Request = P, self.Response = L), n.d(e, "b", (function () { return I })), n.d(e, "c", (function () { return N })), n.d(e, "a", (function () { return B })); var E = "/points", j = "/functions"; function z(t, e) { var n = window.easyPackConfig.apiEndpoint; a.a.hasContext() && j !== t && (n = window.easyPackConfig.apiEndpointContext); var o = window.easyPackConfig.defaultLocale.split("-")[0], r = (n = n.replace("{locale}", o)) + t; return e && (r += "?" + i.e.serialize(e)), r } function A(t, e, n, r, s) { if (a.a.hasContext() && E === t && !a.a.checkIsCorrectToken()) return !1; i.e.checkArguments("module.api.request()", 5, arguments), n && n.type && (n.type = o.typesHelpers.getUniqueValues(n.type || [])), !window.easyPackConfig.paymentFilter || !0 !== window.easyPackConfig.paymentFilter.showOnlyWithPayment && !0 !== window.easyPackConfig.paymentFilter.defaultEnabled || (n.payment_available = "true", n.payment_type = "2"), window.easyPackConfig.defaultParams.length > 0 && window.easyPackConfig.defaultParams.forEach((function (t) { n = S({}, n, {}, t) })), AbortController && (window.abortController = new AbortController); var l = AbortController ? window.abortController.signal : null, c = { method: e, compress: !0, signal: l }; t.includes("functions") && (l = null, delete c.signal), n = a.a.getParams(n), c.headers = a.a.getHeaders(c.headers); var u = M(z(t, n), c).then((function (e) { if (a.a.hasContext() && E === t && 403 === e.status) return alert(Object(i.o)("token_incorrect")), !1; e.json().then((function (t) { r(t) })).catch((function (t) { return t })) })).catch((function (t) { return t })); u.onabort = function () { void 0 !== s && s(n.type[0]) }, window.pendingRequests.push(u) } function I(t, e, n, i) { window.easyPackConfig.defaultParams.length > 0 && window.easyPackConfig.defaultParams.forEach((function (t) { i = S({}, i, {}, t) })), i.status = ["Operating"], !0 === window.easyPackConfig.showOverLoadedLockers && i.status.push("Overloaded"), window.easyPackConfig.showNonOperatingLockers && i.status.push("NonOperating"), !window.easyPackConfig.paymentFilter || !0 !== window.easyPackConfig.paymentFilter.showOnlyWithPayment && !0 !== window.easyPackConfig.paymentFilter.defaultEnabled && !0 !== window.easyPackConfig.paymentFilter.state || (i.payment_available = "true", i.payment_type = "2"), i.filters && 0 === i.filters.length && delete i.filters, i.name = t, window.requestPath = "/point", A(E, "get", i, (function (t) { e(t.items[0] || null), window.requestPath = null }), (function (t) { window.requestPath = null, n(t) })) } function N(t, e, n) { A(E, "get", t, (function (t) { e(t), window.requestPath = null }), (function (t) { window.requestPath = null, n(t) })) } function B(t, e, n) { A(j, "get", t, (function (t) { e(t), window.requestPath = null }), (function (t) { window.requestPath = null, n(t) })) } window.pendingRequests = [] }, function (t, e, n) { var i = n(8); t.exports = function (t, e) { if (!i(t)) return t; var n, o; if (e && "function" == typeof (n = t.toString) && !i(o = n.call(t))) return o; if ("function" == typeof (n = t.valueOf) && !i(o = n.call(t))) return o; if (!e && "function" == typeof (n = t.toString) && !i(o = n.call(t))) return o; throw TypeError("Can't convert object to primitive value") } }, function (t, e, n) { var i = n(39)("meta"), o = n(8), a = n(21), r = n(14).f, s = 0, l = Object.isExtensible || function () { return !0 }, c = !n(6)((function () { return l(Object.preventExtensions({})) })), u = function (t) { r(t, i, { value: { i: "O" + ++s, w: {} } }) }, f = t.exports = { KEY: i, NEED: !1, fastKey: function (t, e) { if (!o(t)) return "symbol" == typeof t ? t : ("string" == typeof t ? "S" : "P") + t; if (!a(t, i)) { if (!l(t)) return "F"; if (!e) return "E"; u(t) } return t[i].i }, getWeak: function (t, e) { if (!a(t, i)) { if (!l(t)) return !0; if (!e) return !1; u(t) } return t[i].w }, onFreeze: function (t) { return c && f.NEED && l(t) && !a(t, i) && u(t), t } } }, function (t, e) { t.exports = function (t, e) { return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e } } }, function (t, e) { var n = 0, i = Math.random(); t.exports = function (t) { return "Symbol(".concat(void 0 === t ? "" : t, ")_", (++n + i).toString(36)) } }, function (t, e) { t.exports = !1 }, function (t, e, n) { var i = n(121), o = n(79); t.exports = Object.keys || function (t) { return i(t, o) } }, function (t, e, n) { var i = n(27), o = Math.max, a = Math.min; t.exports = function (t, e) { return (t = i(t)) < 0 ? o(t + e, 0) : a(t, e) } }, function (t, e, n) { var i = n(7), o = n(122), a = n(79), r = n(78)("IE_PROTO"), s = function () { }, l = function () { var t, e = n(76)("iframe"), i = a.length; for (e.style.display = "none", n(80).appendChild(e), e.src = "javascript:", (t = e.contentWindow.document).open(), t.write("