@mapsindoors/map-template 1.66.4 → 1.66.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_commonjsHelpers-ba3f0406-bdb05e00.mjs → _commonjsHelpers-ba3f0406-afa8131c.mjs} +2 -2
- package/dist/{combo-box-item.entry-2e5fdeb1.mjs → combo-box-item.entry-3f3dc738.mjs} +2 -2
- package/dist/{icon-b8d01d6f-28b7ae76.mjs → icon-b8d01d6f-1def7bbd.mjs} +2 -2
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +3 -3
- package/dist/mapsindoors-webcomponent.es.js +2550 -2550
- package/dist/mapsindoors-webcomponent.umd.js +5 -5
- package/dist/{mi-card_2.entry-fe4f19ca.mjs → mi-card_2.entry-c8ee8a10.mjs} +2 -2
- package/dist/{mi-chip.entry-93127f6e.mjs → mi-chip.entry-8d73bd48.mjs} +2 -2
- package/dist/{mi-column.entry-8e46117e.mjs → mi-column.entry-ae1847ec.mjs} +2 -2
- package/dist/{mi-combo-box.entry-e5f487d4.mjs → mi-combo-box.entry-a39dafe5.mjs} +4 -4
- package/dist/{mi-data-table.entry-59aebbc5.mjs → mi-data-table.entry-80563326.mjs} +3 -3
- package/dist/{mi-distance_2.entry-166e4d92.mjs → mi-distance_2.entry-5c053017.mjs} +3 -3
- package/dist/{mi-dropdown-item.entry-3568cc63.mjs → mi-dropdown-item.entry-b0e7e610.mjs} +2 -2
- package/dist/{mi-dropdown.entry-08428a3f.mjs → mi-dropdown.entry-cdfbc82f.mjs} +4 -4
- package/dist/{mi-floor-selector.entry-86e4791a.mjs → mi-floor-selector.entry-2568afdc.mjs} +2 -2
- package/dist/{mi-keyboard.entry-5b917936.mjs → mi-keyboard.entry-43aaf17d.mjs} +3 -3
- package/dist/{mi-list-item-category.entry-d25d3506.mjs → mi-list-item-category.entry-0fcb9117.mjs} +4 -4
- package/dist/{mi-list-item-location.entry-703778fc.mjs → mi-list-item-location.entry-a9746d4c.mjs} +4 -4
- package/dist/{mi-list.entry-380d88ec.mjs → mi-list.entry-9da32635.mjs} +2 -2
- package/dist/{mi-location-booking.entry-63398af7.mjs → mi-location-booking.entry-2ae8aefc.mjs} +3 -3
- package/dist/{mi-location-info.entry-fcb30a92.mjs → mi-location-info.entry-85980ec4.mjs} +2 -2
- package/dist/{mi-map-googlemaps.entry-244ae71e.mjs → mi-map-googlemaps.entry-b11e3b50.mjs} +3 -3
- package/dist/{mi-map-mapbox.entry-827c1d34.mjs → mi-map-mapbox.entry-7c1b9f54.mjs} +3 -3
- package/dist/{mi-metric-card.entry-53698136.mjs → mi-metric-card.entry-4cf7d69b.mjs} +3 -3
- package/dist/{mi-my-position.entry-9431b991.mjs → mi-my-position.entry-89e9acbc.mjs} +3 -3
- package/dist/{mi-notification.entry-62383bb4.mjs → mi-notification.entry-ed70a316.mjs} +2 -2
- package/dist/{mi-route-instructions-heading.entry-81a054aa.mjs → mi-route-instructions-heading.entry-7eca62a2.mjs} +4 -4
- package/dist/{mi-route-instructions-maneuver-legacy.entry-0ff12c59.mjs → mi-route-instructions-maneuver-legacy.entry-c2e34796.mjs} +3 -3
- package/dist/{mi-route-instructions-maneuver.entry-ff1b2fae.mjs → mi-route-instructions-maneuver.entry-0d107d20.mjs} +3 -3
- package/dist/{mi-route-instructions-step-legacy.entry-4f13e528.mjs → mi-route-instructions-step-legacy.entry-019fa63a.mjs} +4 -4
- package/dist/{mi-route-instructions-step.entry-d5168a8c.mjs → mi-route-instructions-step.entry-0aa56a52.mjs} +4 -4
- package/dist/{mi-route-instructions.entry-d2096b70.mjs → mi-route-instructions.entry-b588cca4.mjs} +5 -5
- package/dist/{mi-scroll-buttons.entry-3085daa5.mjs → mi-scroll-buttons.entry-212539f0.mjs} +2 -2
- package/dist/{mi-search.entry-218f5fb7.mjs → mi-search.entry-a23a89a9.mjs} +3 -3
- package/dist/{mi-share-sms.entry-87548862.mjs → mi-share-sms.entry-0412ce0c.mjs} +2 -2
- package/dist/{mi-step-switcher.entry-616fefd8.mjs → mi-step-switcher.entry-db85566f.mjs} +2 -2
- package/dist/{mi-tab-panel.entry-35c68dcd.mjs → mi-tab-panel.entry-b40924cd.mjs} +2 -2
- package/dist/{mi-tab.entry-7116c6cb.mjs → mi-tab.entry-dc3e9e97.mjs} +2 -2
- package/dist/{mi-tabs.entry-170a9c92.mjs → mi-tabs.entry-003c4496.mjs} +2 -2
- package/dist/{mi-time.entry-140c1561.mjs → mi-time.entry-289e38db.mjs} +2 -2
- package/dist/{mi-variables-9a6c8d4d-d780f3bf.mjs → mi-variables-9a6c8d4d-c5b98a19.mjs} +2 -2
- package/dist/{reactcomponent-334e0f37.mjs → reactcomponent-d1bf364b.mjs} +8 -8
- package/dist/{route-travel-mode.enum-7f4ce9c7-b0881e98.mjs → route-travel-mode.enum-7f4ce9c7-be06d87f.mjs} +2 -2
- package/dist/{sort-order.enum-64ce8998-b77ffc8d.mjs → sort-order.enum-64ce8998-b268a778.mjs} +3 -3
- package/dist/{unit-system.enum-eaefb53e-c1f64d11.mjs → unit-system.enum-eaefb53e-5dcaa424.mjs} +2 -2
- package/dist/{utils-ae714467-c887edba.mjs → utils-ae714467-40f316b9.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.mi-toggle{margin:0}.mi-toggle:disabled{cursor:not-allowed}.mi-toggle+.mi-label{margin-left:8px}@supports (appearance: none) or (-moz-appearance: none) or (-webkit-appearance: none){.mi-toggle{padding:2px;box-sizing:border-box;appearance:none;-moz-appearance:none;-webkit-appearance:none;width:48px;height:24px;border-radius:9999px;background-color:#6b7280;transition:background-color .3s ease}.mi-toggle:disabled{opacity:.48}.mi-toggle:checked{background-color:#22c55e}.mi-toggle:after{content:"";display:inline-block;width:20px;height:20px;transform:translate(0);border-radius:50%;background-color:#fcfcfc;box-shadow:0 2px 2px #0003,0 1px 1px #0003;transition:.3s ease}.mi-toggle:checked:after{transform:translate(24px)}}.mapsindoors-map{position:relative;width:100%;height:100%;overflow-y:hidden}.mapsindoors-map *{box-sizing:border-box;font-family:var(--font-family-system)}.mapsindoors-map--show-elements mi-floor-selector{visibility:visible}.mapsindoors-map--show-elements .venue-selector__button{display:block}.mapsindoors-map--show-elements .view-mode-switch{display:block;margin-top:68px}@media (max-width: 992px){.mapsindoors-map--show-elements .view-mode-switch{margin-top:62px}}.mapsindoors-map--hide-elements mi-floor-selector{visibility:hidden}.mapsindoors-map--hide-elements .venue-selector__button,.mapsindoors-map--hide-elements .view-mode-switch{display:none}.mapsindoors-map--show-my-position mi-my-position{display:block}.mapsindoors-map--hide-my-position mi-my-position{display:none}.mapsindoors-map--hide-venue-selector .view-mode-switch{margin-top:0}.mapsindoors-map .mi-floor-selector__list{box-sizing:unset}.map-container{width:100%;height:100%;position:relative}.map-container #mi_map_logo{z-index:var(--z-index-dropdown)!important}.prevent-scroll{-webkit-overflow-scrolling:touch;overscroll-behavior:none}.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom,.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-left,.mapboxgl-ctrl-right,.mapboxgl-ctrl-top,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top{left:50%;top:0;transform:translate(-50%)}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-right{right:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl-bottom{bottom:0;left:50%;transform:translate(-50%)}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-left{left:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,.mapboxgl-ctrl-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-bottom .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,.mapboxgl-ctrl-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid transparent;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid transparent;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:rgba(0,0,0,.7);color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}.mapbox-map-container{width:100%;height:100%}.mapboxgl-control-container .mapboxgl-ctrl-group{margin:10px var(--spacing-small) 10px 0!important;border-radius:var(--rounding-large);box-shadow:0 0 0 var(--spacing-xxx-small) #e5e7eb!important}.mapboxgl-control-container .mapboxgl-ctrl-group button{padding:var(--spacing-large)}.mapboxgl-control-container .mapboxgl-ctrl-zoom-in{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuODMzMzQ0IDEwQzAuODMzMzQ0IDEwLjMzMTUgMC45NjUwNCAxMC42NDk1IDEuMTk5NDYgMTAuODgzOUMxLjQzMzg4IDExLjExODMgMS43NTE4MiAxMS4yNSAyLjA4MzM0IDExLjI1SDguNTQxNjhDOC41OTY5MyAxMS4yNSA4LjY0OTkyIDExLjI3MTkgOC42ODg5OSAxMS4zMTFDOC43MjgwNiAxMS4zNTAxIDguNzUwMDEgMTEuNDAzMSA4Ljc1MDAxIDExLjQ1ODNWMTcuOTE2N0M4Ljc1MDAxIDE4LjI0ODIgOC44ODE3MSAxOC41NjYxIDkuMTE2MTMgMTguODAwNUM5LjM1MDU1IDE5LjAzNSA5LjY2ODQ5IDE5LjE2NjcgMTAgMTkuMTY2N0MxMC4zMzE1IDE5LjE2NjcgMTAuNjQ5NSAxOS4wMzUgMTAuODgzOSAxOC44MDA1QzExLjExODMgMTguNTY2MSAxMS4yNSAxOC4yNDgyIDExLjI1IDE3LjkxNjdWMTEuNDU4M0MxMS4yNSAxMS40MDMxIDExLjI3MiAxMS4zNTAxIDExLjMxMSAxMS4zMTFDMTEuMzUwMSAxMS4yNzE5IDExLjQwMzEgMTEuMjUgMTEuNDU4MyAxMS4yNUgxNy45MTY3QzE4LjI0ODIgMTEuMjUgMTguNTY2MSAxMS4xMTgzIDE4LjgwMDYgMTAuODgzOUMxOS4wMzUgMTAuNjQ5NSAxOS4xNjY3IDEwLjMzMTUgMTkuMTY2NyAxMEMxOS4xNjY3IDkuNjY4NDggMTkuMDM1IDkuMzUwNTQgMTguODAwNiA5LjExNjEyQzE4LjU2NjEgOC44ODE2OSAxOC4yNDgyIDguNzUgMTcuOTE2NyA4Ljc1SDExLjQ1ODNDMTEuNDAzMSA4Ljc1IDExLjM1MDEgOC43MjgwNSAxMS4zMTEgOC42ODg5OEMxMS4yNzIgOC42NDk5MSAxMS4yNSA4LjU5NjkyIDExLjI1IDguNTQxNjdWMi4wODMzM0MxMS4yNSAxLjc1MTgxIDExLjExODMgMS40MzM4NyAxMC44ODM5IDEuMTk5NDVDMTAuNjQ5NSAwLjk2NTAyOSAxMC4zMzE1IDAuODMzMzMzIDEwIDAuODMzMzMzQzkuNjY4NDkgMC44MzMzMzMgOS4zNTA1NSAwLjk2NTAyOSA5LjExNjEzIDEuMTk5NDVDOC44ODE3MSAxLjQzMzg3IDguNzUwMDEgMS43NTE4MSA4Ljc1MDAxIDIuMDgzMzNWOC41NDE2N0M4Ljc1MDAxIDguNTk2OTIgOC43MjgwNiA4LjY0OTkxIDguNjg4OTkgOC42ODg5OEM4LjY0OTkyIDguNzI4MDUgOC41OTY5MyA4Ljc1IDguNTQxNjggOC43NUgyLjA4MzM0QzEuNzUxODIgOC43NSAxLjQzMzg4IDguODgxNjkgMS4xOTk0NiA5LjExNjEyQzAuOTY1MDQgOS4zNTA1NCAwLjgzMzM0NCA5LjY2ODQ4IDAuODMzMzQ0IDEwWiIgZmlsbD0iIzc4NzE2QyIvPgo8L3N2Zz4K);background-repeat:no-repeat;background-size:20px 20px;background-position:center center}.mapboxgl-control-container .mapboxgl-ctrl-zoom-out{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDgzMzMgMTEuNjY2N0gxNy45MTY3QzE4LjI0ODIgMTEuNjY2NyAxOC41NjYxIDExLjUzNSAxOC44MDA1IDExLjMwMDZDMTkuMDM1IDExLjA2NjEgMTkuMTY2NyAxMC43NDgyIDE5LjE2NjcgMTAuNDE2N0MxOS4xNjY3IDEwLjA4NTEgMTkuMDM1IDkuNzY3MiAxOC44MDA1IDkuNTMyNzhDMTguNTY2MSA5LjI5ODM2IDE4LjI0ODIgOS4xNjY2NyAxNy45MTY3IDkuMTY2NjdIMi4wODMzM0MxLjc1MTgxIDkuMTY2NjcgMS40MzM4NyA5LjI5ODM2IDEuMTk5NDUgOS41MzI3OEMwLjk2NTAyOSA5Ljc2NzIgMC44MzMzMzMgMTAuMDg1MSAwLjgzMzMzMyAxMC40MTY3QzAuODMzMzMzIDEwLjc0ODIgMC45NjUwMjkgMTEuMDY2MSAxLjE5OTQ1IDExLjMwMDZDMS40MzM4NyAxMS41MzUgMS43NTE4MSAxMS42NjY3IDIuMDgzMzMgMTEuNjY2N1oiIGZpbGw9IiM3ODcxNkMiLz4KPC9zdmc+Cg==);background-repeat:no-repeat;background-size:20px 20px;background-position:center center}.mapboxgl-control-container .mapboxgl-ctrl-icon{background-image:none}.view-mode-switch{display:grid;background-color:#fff;height:fit-content;border-radius:var(--spacing-small);border:1px solid #E6E6E6;gap:var(--spacing-xx-small);padding:var(--spacing-xx-small);position:absolute;z-index:var(--z-index-sticky);top:var(--spacing-x-large);left:var(--spacing-x-large)}.view-mode-switch__button{border-radius:var(--rounding-large);width:var(--spacing-xx-large);height:var(--spacing-xx-large);display:grid;align-items:center;justify-content:center;border:none}@media (max-width: 992px){.view-mode-switch{top:var(--spacing-x-small);left:var(--spacing-x-small)}}.google-maps-map-container{width:100%;height:100%}.gm-style .gmnoprint{right:44px!important}.gm-style .gmnoprint div{border-radius:var(--rounding-large)!important}.mapsindoors-map{--z-index-top: 999999;--z-index-popup: 950;--z-index-modal: 900;--z-index-spinner: 800;--z-index-overlay: 700;--z-index-dropdown: 600;--z-index-toast: 500;--z-index-header: 400;--z-index-sticky: 300;--z-index-mask: 200;--z-index-masked: 100;--z-index-default: 1;--z-index-deep: -999999;--transition-slowly: .6s ease;--transition-quickly: .3s ease;--tailwind-colors-rose-900: #881337;--tailwind-colors-rose-800: #9f1239;--tailwind-colors-rose-700: #be123c;--tailwind-colors-rose-600: #e11d48;--tailwind-colors-rose-500: #f43f5e;--tailwind-colors-rose-400: #fb7185;--tailwind-colors-rose-300: #fda4af;--tailwind-colors-rose-200: #fecdd3;--tailwind-colors-rose-100: #ffe4e6;--tailwind-colors-rose-50: #fff1f2;--tailwind-colors-pink-900: #831843;--tailwind-colors-pink-800: #9d174d;--tailwind-colors-pink-700: #be185d;--tailwind-colors-pink-600: #db2777;--tailwind-colors-pink-500: #ec4899;--tailwind-colors-pink-400: #f472b6;--tailwind-colors-pink-300: #f9a8d4;--tailwind-colors-pink-200: #fbcfe8;--tailwind-colors-pink-100: #fce7f3;--tailwind-colors-pink-50: #fdf2f8;--tailwind-colors-fuchsia-900: #701a75;--tailwind-colors-fuchsia-800: #86198f;--tailwind-colors-fuchsia-700: #a21caf;--tailwind-colors-fuchsia-600: #c026d3;--tailwind-colors-fuchsia-500: #d946ef;--tailwind-colors-fuchsia-400: #e879f9;--tailwind-colors-fuchsia-300: #f0abfc;--tailwind-colors-fuchsia-200: #f5d0fe;--tailwind-colors-fuchsia-100: #fae8ff;--tailwind-colors-fuchsia-50: #fdf4ff;--tailwind-colors-purple-900: #581c87;--tailwind-colors-purple-800: #6b21a8;--tailwind-colors-purple-700: #7e22ce;--tailwind-colors-purple-600: #9333ea;--tailwind-colors-purple-500: #a855f7;--tailwind-colors-purple-400: #c084fc;--tailwind-colors-purple-300: #d8b4fe;--tailwind-colors-purple-200: #e9d5ff;--tailwind-colors-purple-100: #f3e8ff;--tailwind-colors-purple-50: #faf5ff;--tailwind-colors-violet-900: #4c1d95;--tailwind-colors-violet-800: #5b21b6;--tailwind-colors-violet-700: #6d28d9;--tailwind-colors-violet-600: #7c3aed;--tailwind-colors-violet-500: #8b5cf6;--tailwind-colors-violet-400: #a78bfa;--tailwind-colors-violet-300: #c4b5fd;--tailwind-colors-violet-200: #ddd6fe;--tailwind-colors-violet-100: #ede9fe;--tailwind-colors-violet-50: #f5f3ff;--tailwind-colors-indigo-900: #312e81;--tailwind-colors-indigo-800: #3730a3;--tailwind-colors-indigo-700: #4338ca;--tailwind-colors-indigo-600: #4f46e5;--tailwind-colors-indigo-500: #6366f1;--tailwind-colors-indigo-400: #818cf8;--tailwind-colors-indigo-300: #a5b4fc;--tailwind-colors-indigo-200: #c7d2fe;--tailwind-colors-indigo-100: #e0e7ff;--tailwind-colors-indigo-50: #eef2ff;--tailwind-colors-blue-900: #1e3a8a;--tailwind-colors-blue-800: #1e40af;--tailwind-colors-blue-700: #1d4ed8;--tailwind-colors-blue-600: #2563eb;--tailwind-colors-blue-500: #3b82f6;--tailwind-colors-blue-400: #60a5fa;--tailwind-colors-blue-300: #93c5fd;--tailwind-colors-blue-200: #bfdbfe;--tailwind-colors-blue-100: #dbeafe;--tailwind-colors-blue-50: #eff6ff;--tailwind-colors-sky-900: #0c4a6e;--tailwind-colors-sky-800: #075985;--tailwind-colors-sky-700: #0369a1;--tailwind-colors-sky-600: #0284c7;--tailwind-colors-sky-500: #0ea5e9;--tailwind-colors-sky-400: #38bdf8;--tailwind-colors-sky-300: #7dd3fc;--tailwind-colors-sky-200: #bae6fd;--tailwind-colors-sky-100: #e0f2fe;--tailwind-colors-sky-50: #f0f9ff;--tailwind-colors-cyan-900: #164e63;--tailwind-colors-cyan-800: #155e75;--tailwind-colors-cyan-700: #0e7490;--tailwind-colors-cyan-600: #0891b2;--tailwind-colors-cyan-500: #06b6d4;--tailwind-colors-cyan-400: #22d3ee;--tailwind-colors-cyan-300: #67e8f9;--tailwind-colors-cyan-200: #a5f3fc;--tailwind-colors-cyan-100: #cffafe;--tailwind-colors-cyan-50: #ecfeff;--tailwind-colors-teal-900: #134e4a;--tailwind-colors-teal-800: #115e59;--tailwind-colors-teal-700: #0f766e;--tailwind-colors-teal-600: #0d9488;--tailwind-colors-teal-500: #14b8a6;--tailwind-colors-teal-400: #2dd4bf;--tailwind-colors-teal-300: #5eead4;--tailwind-colors-teal-200: #99f6e4;--tailwind-colors-teal-100: #ccfbf1;--tailwind-colors-teal-50: #f0fdfa;--tailwind-colors-emerald-900: #064e3b;--tailwind-colors-emerald-800: #065f46;--tailwind-colors-emerald-700: #047857;--tailwind-colors-emerald-600: #059669;--tailwind-colors-emerald-500: #10b981;--tailwind-colors-emerald-400: #34d399;--tailwind-colors-emerald-300: #6ee7b7;--tailwind-colors-emerald-200: #a7f3d0;--tailwind-colors-emerald-100: #d1fae5;--tailwind-colors-emerald-50: #ecfdf5;--tailwind-colors-green-900: #14532d;--tailwind-colors-green-800: #166534;--tailwind-colors-green-700: #15803d;--tailwind-colors-green-600: #16a34a;--tailwind-colors-green-500: #22c55e;--tailwind-colors-green-400: #4ade80;--tailwind-colors-green-300: #86efac;--tailwind-colors-green-200: #bbf7d0;--tailwind-colors-green-100: #dcfce7;--tailwind-colors-green-50: #f0fdf4;--tailwind-colors-lime-900: #365314;--tailwind-colors-lime-800: #3f6212;--tailwind-colors-lime-700: #4d7c0f;--tailwind-colors-lime-600: #65a30d;--tailwind-colors-lime-500: #84cc16;--tailwind-colors-lime-400: #a3e635;--tailwind-colors-lime-300: #bef264;--tailwind-colors-lime-200: #d9f99d;--tailwind-colors-lime-100: #ecfccb;--tailwind-colors-lime-50: #f7fee7;--tailwind-colors-yellow-900: #713f12;--tailwind-colors-yellow-800: #854d0e;--tailwind-colors-yellow-700: #a16207;--tailwind-colors-yellow-600: #ca8a04;--tailwind-colors-yellow-500: #eab308;--tailwind-colors-yellow-400: #facc15;--tailwind-colors-yellow-300: #fde047;--tailwind-colors-yellow-200: #fef08a;--tailwind-colors-yellow-100: #fef9c3;--tailwind-colors-yellow-50: #fefce8;--tailwind-colors-amber-900: #78350f;--tailwind-colors-amber-800: #92400e;--tailwind-colors-amber-700: #b45309;--tailwind-colors-amber-600: #d97706;--tailwind-colors-amber-500: #f59e0b;--tailwind-colors-amber-400: #fbbf24;--tailwind-colors-amber-300: #fcd34d;--tailwind-colors-amber-200: #fde68a;--tailwind-colors-amber-100: #fef3c7;--tailwind-colors-amber-50: #fffbeb;--tailwind-colors-orange-900: #7c2d12;--tailwind-colors-orange-800: #9a3412;--tailwind-colors-orange-700: #c2410c;--tailwind-colors-orange-600: #ea580c;--tailwind-colors-orange-500: #f97316;--tailwind-colors-orange-400: #fb923c;--tailwind-colors-orange-300: #fdba74;--tailwind-colors-orange-200: #fed7aa;--tailwind-colors-orange-100: #ffedd5;--tailwind-colors-orange-50: #fff7ed;--tailwind-colors-red-900: #7f1d1d;--tailwind-colors-red-800: #991b1b;--tailwind-colors-red-700: #b91c1c;--tailwind-colors-red-600: #dc2626;--tailwind-colors-red-500: #ef4444;--tailwind-colors-red-400: #f87171;--tailwind-colors-red-300: #fca5a5;--tailwind-colors-red-200: #fecaca;--tailwind-colors-red-100: #fee2e2;--tailwind-colors-red-50: #fef2f2;--tailwind-colors-stone-900: #1c1917;--tailwind-colors-stone-800: #292524;--tailwind-colors-stone-700: #44403c;--tailwind-colors-stone-600: #57534e;--tailwind-colors-stone-500: #78716c;--tailwind-colors-stone-400: #a8a29e;--tailwind-colors-stone-300: #d6d3d1;--tailwind-colors-stone-200: #e7e5e4;--tailwind-colors-stone-100: #f5f5f4;--tailwind-colors-stone-50: #fafaf9;--tailwind-colors-neutral-900: #171717;--tailwind-colors-neutral-800: #262626;--tailwind-colors-neutral-700: #404040;--tailwind-colors-neutral-600: #525252;--tailwind-colors-neutral-500: #737373;--tailwind-colors-neutral-400: #a3a3a3;--tailwind-colors-neutral-300: #d4d4d4;--tailwind-colors-neutral-200: #e5e5e5;--tailwind-colors-neutral-100: #f5f5f5;--tailwind-colors-neutral-50: #fafafa;--tailwind-colors-zinc-900: #18181b;--tailwind-colors-zinc-800: #27272a;--tailwind-colors-zinc-700: #3f3f46;--tailwind-colors-zinc-600: #52525b;--tailwind-colors-zinc-500: #71717a;--tailwind-colors-zinc-400: #a1a1aa;--tailwind-colors-zinc-300: #d4d4d8;--tailwind-colors-zinc-200: #e4e4e7;--tailwind-colors-zinc-100: #f4f4f5;--tailwind-colors-zinc-50: #fafafa;--tailwind-colors-gray-900: #111827;--tailwind-colors-gray-800: #1f2937;--tailwind-colors-gray-700: #374151;--tailwind-colors-gray-600: #4b5563;--tailwind-colors-gray-500: #6b7280;--tailwind-colors-gray-400: #9ca3af;--tailwind-colors-gray-300: #d1d5db;--tailwind-colors-gray-200: #e5e7eb;--tailwind-colors-gray-100: #f3f4f6;--tailwind-colors-gray-50: #f9fafb;--tailwind-colors-slate-900: #0f172a;--tailwind-colors-slate-800: #1e293b;--tailwind-colors-slate-700: #334155;--tailwind-colors-slate-600: #475569;--tailwind-colors-slate-500: #64748b;--tailwind-colors-slate-400: #94a3b8;--tailwind-colors-slate-300: #cbd5e1;--tailwind-colors-slate-200: #e2e8f0;--tailwind-colors-slate-100: #f1f5f9;--tailwind-colors-slate-50: #f8fafc;--tailwind-colors-black: #000000;--tailwind-colors-white: #ffffff;--spacing-xxxx-large: 64px;--spacing-xxx-large: 48px;--spacing-xx-large: 40px;--spacing-x-large: 32px;--spacing-large: 24px;--spacing-medium: 16px;--spacing-small: 12px;--spacing-x-small: 8px;--spacing-xx-small: 4px;--spacing-xxx-small: 2px;--rounding-circle: 50%;--rounding-pill: 9999px;--rounding-x-large: 16px;--rounding-large: 8px;--rounding-medium: 4px;--rounding-small: 2px;--rounding-x-small: 1px;--rounding-xx-small: 0px;--opacity-xxx-large: 1;--opacity-xx-large: .88;--opacity-x-large: .72;--opacity-large: .48;--opacity-medium: .24;--opacity-small: .16;--opacity-x-small: .08;--opacity-xx-small: 0;--icon-size-xx-large: 64px;--icon-size-x-large: 48px;--icon-size-large: 32px;--icon-size-medium: 24px;--icon-size-small: 16px;--font-measure-large: 34rem;--font-measure-medium: 30rem;--font-measure-small: 20rem;--font-tracking-x-large: .25rem;--font-tracking-large: .1rem;--font-tracking-medium: normal;--font-tracking-small: -.05rem;--font-weight-xx-large: 700;--font-weight-x-large: 600;--font-weight-large: 500;--font-weight-medium: 400;--font-weight-small: 300;--font-size-xxxx-large: 4.5rem;--font-size-xxx-large: 3rem;--font-size-xx-large: 2.25rem;--font-size-x-large: 1.5rem;--font-size-large: 1.25rem;--font-size-medium: 1rem;--font-size-small: .875rem;--font-size-x-small: .75rem;--font-family-serif: Georgia, Times, Times New Roman, serif;--font-family-monospace: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;--font-family-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--elevation-x-large: 0px 20px 20px rgba(0, 0, 0, .2), 0px 16px 16px rgba(0, 0, 0, .16), 0px 2px 2px rgba(0, 0, 0, .2), 0px 4px 4px rgba(0, 0, 0, .16), 0px 8px 8px rgba(0, 0, 0, .12);--elevation-large: 0px 16px 16px rgba(0, 0, 0, .16), 0px 2px 2px rgba(0, 0, 0, .2), 0px 4px 4px rgba(0, 0, 0, .16), 0px 8px 8px rgba(0, 0, 0, .12);--elevation-medium: 0px 2px 2px rgba(0, 0, 0, .2), 0px 4px 4px rgba(0, 0, 0, .18), 0px 8px 8px rgba(0, 0, 0, .16);--elevation-small: 0px 4px 4px rgba(0, 0, 0, .16), 0px 2px 2px rgba(0, 0, 0, .18), 0px 1px 1px rgba(0, 0, 0, .2);--elevation-x-small: 0px 2px 2px rgba(0, 0, 0, .2), 0px 1px 1px rgba(0, 0, 0, .2);--color-transparent-base: rgba(0, 0, 0, 0);--color-white-base: #fcfcfc;--breakpoints-xx-large: only screen and (min-width: 1220px);--breakpoints-x-large: only screen and (min-width: 1025px);--breakpoints-large: only screen and (min-width: 992px);--breakpoints-medium: only screen and (min-width: 768px);--breakpoints-small: only screen and (min-width: 576px);--breakpoints-x-small: only screen and (max-width: 575px);--breakpoints-xx-small: only screen and (max-width: 360px);--brand-colors-black-100: #000000;--brand-colors-black-80: #323232;--brand-colors-black-60: #666666;--brand-colors-black-40: #999999;--brand-colors-black-20: #cccccc;--brand-colors-white-100: #ffffff;--brand-colors-dark-pine-100: #005655;--brand-colors-dark-pine-80: #327676;--brand-colors-dark-pine-60: #669999;--brand-colors-dark-pine-40: #99bbbb;--brand-colors-dark-pine-20: #ccdddd;--brand-colors-sky-blue-100: #abddff;--brand-colors-sky-blue-80: #c3e5ff;--brand-colors-sky-blue-60: #d2ebff;--brand-colors-sky-blue-40: #e1f2ff;--brand-colors-sky-blue-20: #f0f8ff;--brand-colors-sand-100: #ffefd7;--brand-colors-sand-80: #fff2df;--brand-colors-sand-60: #fff5e7;--brand-colors-brand-lime-100: #cdff00;--brand-colors-brand-lime-80: #d7ff32;--brand-colors-brand-lime-60: #e1ff66;--brand-colors-brand-lime-40: #ebff99;--brand-colors-brand-lime-20: #f5ffcc;--brand-colors-electric-purple-100: #7d49f3;--brand-colors-electric-purple-80: #976df5;--brand-colors-electric-purple-60: #b191f7;--brand-colors-electric-purple-40: #cbb6fa;--brand-colors-electric-purple-20: #e5dafc;--font-family-sans-serif: Figtree, var(--font-family-system);--color-dusk-base: var(--tailwind-colors-violet-500);--color-dusk-100: var(--tailwind-colors-violet-900);--color-dusk-90: var(--tailwind-colors-violet-800);--color-dusk-80: var(--tailwind-colors-violet-700);--color-dusk-70: var(--tailwind-colors-violet-600);--color-dusk-60: var(--tailwind-colors-violet-500);--color-dusk-50: var(--tailwind-colors-violet-400);--color-dusk-40: var(--tailwind-colors-violet-300);--color-dusk-30: var(--tailwind-colors-violet-200);--color-dusk-20: var(--tailwind-colors-violet-100);--color-dusk-10: var(--tailwind-colors-violet-50);--color-slate-base: var(--tailwind-colors-slate-500);--color-slate-100: var(--tailwind-colors-slate-900);--color-slate-90: var(--tailwind-colors-slate-800);--color-slate-80: var(--tailwind-colors-slate-700);--color-slate-70: var(--tailwind-colors-slate-600);--color-slate-60: var(--tailwind-colors-slate-500);--color-slate-50: var(--tailwind-colors-slate-400);--color-slate-40: var(--tailwind-colors-slate-300);--color-slate-30: var(--tailwind-colors-slate-200);--color-slate-20: var(--tailwind-colors-slate-100);--color-slate-10: var(--tailwind-colors-slate-50);--color-teal-base: var(--tailwind-colors-teal-500);--color-teal-100: var(--tailwind-colors-teal-900);--color-teal-90: var(--tailwind-colors-teal-800);--color-teal-80: var(--tailwind-colors-teal-700);--color-teal-70: var(--tailwind-colors-teal-600);--color-teal-60: var(--tailwind-colors-teal-500);--color-teal-50: var(--tailwind-colors-teal-400);--color-teal-40: var(--tailwind-colors-teal-300);--color-teal-30: var(--tailwind-colors-teal-200);--color-teal-20: var(--tailwind-colors-teal-100);--color-teal-10: var(--tailwind-colors-teal-50);--color-sky-base: var(--tailwind-colors-sky-500);--color-sky-100: var(--tailwind-colors-sky-900);--color-sky-90: var(--tailwind-colors-sky-800);--color-sky-80: var(--tailwind-colors-sky-700);--color-sky-70: var(--tailwind-colors-sky-600);--color-sky-60: var(--tailwind-colors-sky-500);--color-sky-50: var(--tailwind-colors-sky-400);--color-sky-40: var(--tailwind-colors-sky-300);--color-sky-30: var(--tailwind-colors-sky-200);--color-sky-20: var(--tailwind-colors-sky-100);--color-sky-10: var(--tailwind-colors-sky-50);--color-indigo-base: var(--tailwind-colors-indigo-500);--color-indigo-100: var(--tailwind-colors-indigo-900);--color-indigo-90: var(--tailwind-colors-indigo-800);--color-indigo-80: var(--tailwind-colors-indigo-700);--color-indigo-70: var(--tailwind-colors-indigo-600);--color-indigo-60: var(--tailwind-colors-indigo-500);--color-indigo-50: var(--tailwind-colors-indigo-400);--color-indigo-40: var(--tailwind-colors-indigo-300);--color-indigo-30: var(--tailwind-colors-indigo-200);--color-indigo-20: var(--tailwind-colors-indigo-100);--color-indigo-10: var(--tailwind-colors-indigo-50);--color-magenta-base: var(--tailwind-colors-pink-500);--color-magenta-100: var(--tailwind-colors-pink-900);--color-magenta-90: var(--tailwind-colors-pink-800);--color-magenta-80: var(--tailwind-colors-pink-700);--color-magenta-70: var(--tailwind-colors-pink-600);--color-magenta-60: var(--tailwind-colors-pink-500);--color-magenta-50: var(--tailwind-colors-pink-400);--color-magenta-40: var(--tailwind-colors-pink-300);--color-magenta-30: var(--tailwind-colors-pink-200);--color-magenta-20: var(--tailwind-colors-pink-100);--color-magenta-10: var(--tailwind-colors-pink-50);--color-purple-base: var(--tailwind-colors-purple-500);--color-purple-100: var(--tailwind-colors-purple-900);--color-purple-90: var(--tailwind-colors-purple-800);--color-purple-80: var(--tailwind-colors-purple-700);--color-purple-70: var(--tailwind-colors-purple-600);--color-purple-60: var(--tailwind-colors-purple-500);--color-purple-50: var(--tailwind-colors-purple-400);--color-purple-40: var(--tailwind-colors-purple-300);--color-purple-30: var(--tailwind-colors-purple-200);--color-purple-20: var(--tailwind-colors-purple-100);--color-purple-10: var(--tailwind-colors-purple-50);--color-bronze-base: var(--tailwind-colors-amber-500);--color-bronze-100: var(--tailwind-colors-amber-900);--color-bronze-90: var(--tailwind-colors-amber-800);--color-bronze-80: var(--tailwind-colors-amber-700);--color-bronze-70: var(--tailwind-colors-amber-600);--color-bronze-60: var(--tailwind-colors-amber-500);--color-bronze-50: var(--tailwind-colors-amber-400);--color-bronze-40: var(--tailwind-colors-amber-300);--color-bronze-30: var(--tailwind-colors-amber-200);--color-bronze-20: var(--tailwind-colors-amber-100);--color-bronze-10: var(--tailwind-colors-amber-50);--color-blue-base: var(--tailwind-colors-blue-500);--color-blue-100: var(--tailwind-colors-blue-900);--color-blue-90: var(--tailwind-colors-blue-800);--color-blue-80: var(--tailwind-colors-blue-700);--color-blue-70: var(--tailwind-colors-blue-600);--color-blue-60: var(--tailwind-colors-blue-500);--color-blue-50: var(--tailwind-colors-blue-400);--color-blue-40: var(--tailwind-colors-blue-300);--color-blue-30: var(--tailwind-colors-blue-200);--color-blue-20: var(--tailwind-colors-blue-100);--color-blue-10: var(--tailwind-colors-blue-50);--color-green-base: var(--tailwind-colors-green-500);--color-green-100: var(--tailwind-colors-green-900);--color-green-90: var(--tailwind-colors-green-800);--color-green-80: var(--tailwind-colors-green-700);--color-green-70: var(--tailwind-colors-green-600);--color-green-60: var(--tailwind-colors-green-500);--color-green-50: var(--tailwind-colors-green-400);--color-green-40: var(--tailwind-colors-green-300);--color-green-30: var(--tailwind-colors-green-200);--color-green-20: var(--tailwind-colors-green-100);--color-green-10: var(--tailwind-colors-green-50);--color-red-base: var(--tailwind-colors-red-500);--color-red-100: var(--tailwind-colors-red-900);--color-red-90: var(--tailwind-colors-red-800);--color-red-80: var(--tailwind-colors-red-700);--color-red-70: var(--tailwind-colors-red-600);--color-red-60: var(--tailwind-colors-red-500);--color-red-50: var(--tailwind-colors-red-400);--color-red-40: var(--tailwind-colors-red-300);--color-red-30: var(--tailwind-colors-red-200);--color-red-20: var(--tailwind-colors-red-100);--color-red-10: var(--tailwind-colors-red-50);--color-gray-base: var(--tailwind-colors-gray-500);--color-gray-100: var(--tailwind-colors-gray-900);--color-gray-90: var(--tailwind-colors-gray-800);--color-gray-80: var(--tailwind-colors-gray-700);--color-gray-70: var(--tailwind-colors-gray-600);--color-gray-60: var(--tailwind-colors-gray-500);--color-gray-50: var(--tailwind-colors-gray-400);--color-gray-40: var(--tailwind-colors-gray-300);--color-gray-30: var(--tailwind-colors-gray-200);--color-gray-20: var(--tailwind-colors-gray-100);--color-gray-10: var(--tailwind-colors-gray-50);--color-hotorchid-base: var(--tailwind-colors-pink-500);--color-white-white: var(--tailwind-colors-white);--color-black-black: var(--tailwind-colors-black);--color-black-base: var(--tailwind-colors-stone-900)}.splash-screen{will-change:transform,rotate;display:grid;width:100%;height:100%;position:absolute;z-index:var(--z-index-top);background-color:var(--brand-colors-white-100)}.splash-screen__logo{width:100%;max-height:100%}.splash-screen__loader{width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);border-radius:50%;position:relative;animation:loader 1s infinite linear}.splash-screen__container{display:grid;justify-self:center;grid-auto-flow:row;grid-auto-rows:300px min-content;align-content:center;grid-template-columns:300px;justify-items:center;align-items:center;gap:var(--spacing-xxx-large);animation:slideIn 1s}@keyframes loader{0%{rotate:0deg}to{rotate:360deg}}@keyframes slideIn{0%{transform:translateY(100%)}to{transform:translateY(0)}}.venue-selector__content{position:absolute;background-color:#fff;z-index:var(--z-index-popup);overflow-y:hidden;display:grid;grid-template-rows:var(--spacing-xxxx-large) 1fr}.venue-selector__content h1{color:var(--color-gray-90);font-size:var(--font-size-small);margin:0;height:calc(var(--spacing-xx-large) + 2 * var(--spacing-small));display:flex;align-items:center;justify-content:center}.venue-selector__content-enter{top:var(--spacing-small);bottom:calc(100% - var(--spacing-xxxx-large));left:var(--spacing-x-small);width:var(--spacing-xx-large);transition:all .4s ease;opacity:0}.venue-selector__content-enter-active,.venue-selector__content-enter-done{top:0;bottom:0;left:0;width:100%;opacity:1}.venue-selector__content-exit{top:var(--spacing-xxxx-large);bottom:0;left:0;width:100%;transition:all .4s ease;opacity:1}.venue-selector__content-exit-active{top:var(--spacing-small);bottom:calc(100% - var(--spacing-xxxx-large));left:var(--spacing-x-small);width:var(--spacing-xx-large);opacity:0}.venue-selector__list{overflow-y:auto}.venue-selector__button{background-color:var(--tailwind-colors-white);border-radius:var(--rounding-large);border:1px solid #E6E6E6;position:absolute;width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);top:var(--spacing-small);left:var(--spacing-x-small);z-index:var(--z-index-sticky)}.venue-selector__button--open{z-index:calc(var(--z-index-popup) + 1)}.venue-selector__button svg{display:block;margin:0 auto}.venue-selector__button:hover{background-color:var(--tailwind-colors-gray-100);border:1px solid var(--tailwind-colors-gray-200)}@media (min-width: 992px){.venue-selector__content{width:568px;left:var(--spacing-large);bottom:var(--spacing-large);top:var(--spacing-large);border-radius:var(--rounding-large)}.venue-selector__button{top:var(--spacing-x-large);left:var(--spacing-x-large)}}.venue{all:unset;width:calc(100% - var(--spacing-medium));margin:0 var(--spacing-x-small) var(--spacing-x-small) var(--spacing-x-small);border-radius:var(--rounding-x-large);color:var(--color-white-base);position:relative;background:linear-gradient(#b8b8b8,#5e5e5e)}.venue__image{position:relative;width:100%;aspect-ratio:16/9;background-repeat:no-repeat;background-size:cover;background-position:50% 50%;border-radius:var(--rounding-x-large)}.venue__image:hover{border:2px solid var(--brand-colors-dark-pine-100)}.venue__content{position:absolute;bottom:0;top:50%;padding:var(--spacing-medium);border-radius:var(--rounding-x-large);font-size:var(--font-size-small);background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.6));width:100%;display:flex;align-items:flex-end;justify-content:space-between;gap:var(--spacing-medium)}.venue__current{border:1px solid white;border-radius:var(--rounding-large);padding:var(--spacing-x-small)}@media (min-width: 992px){.venue{margin:0 72px var(--spacing-medium) 72px;width:calc(100% - 144px)}}.sheet{pointer-events:none;opacity:0;transition:all .25s;position:absolute;bottom:0;width:100%;max-height:100%;transform:translateY(100%);background-color:var(--color-white-white);border-top-left-radius:var(--rounding-large);border-top-right-radius:var(--rounding-large)}.sheet:before{position:absolute;content:" ";top:var(--spacing-xx-small);left:50%;transform:translate(-50%);width:28px;height:var(--spacing-xx-small);border-radius:var(--spacing-xx-small);background-color:var(--color-gray-20)}.sheet--active{pointer-events:all;opacity:1;transform:translateY(0)}.sheet--dragging{transition:none}.sheet--dragging *{user-select:none}.sheet__content{height:100%;overflow-y:auto}.bottom-sheets{pointer-events:none;position:absolute;inset:0;z-index:var(--z-index-overlay);overflow:hidden}.location-details{padding:var(--spacing-medium);color:var(--color-black-base);display:grid;height:100%;overflow-y:hidden;grid-template-rows:min-content 1fr 64px}.location-details--content-below{position:relative}.location-details--content-below:before{content:"";position:absolute;bottom:calc(64px + var(--spacing-medium));left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(rgba(255,255,255,0),white)}.location-details--content-above{position:relative}.location-details--content-above:after{content:"";position:absolute;top:56px;left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(white,rgba(255,255,255,0))}.location-details__details{display:flex;flex-direction:column;gap:var(--spacing-medium);overflow-y:auto}.location-details__details>*:first-child{margin-top:var(--spacing-medium)}.location-details__image{width:100%;border-radius:var(--rounding-large);object-fit:contain;margin:var(--spacing-medium) 0}.location-details__categories{font-size:var(--font-size-small);margin:0}.location-details__description{white-space:pre-wrap;overflow-wrap:break-word}.location-details__description div{font-size:var(--font-size-small);color:var(--color-gray-70);line-height:1.5;overflow-y:hidden;max-height:var(--spacing-xxxx-large)}.location-details__description button{all:unset;font-size:var(--font-size-small);color:var(--color-blue-base);margin-top:var(--spacing-x-small);cursor:pointer}.location-details__description--full div{max-height:none}.location-details__wayfinding{margin-top:var(--spacing-medium);color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;font-weight:var(--font-weight-x-large)}.location-details__wayfinding:hover{filter:brightness(90%)}.location-details--no-route{opacity:.5;cursor:not-allowed}.location-info{display:grid;align-items:center;font-size:var(--font-size-small);grid-template-columns:min-content 1fr var(--spacing-xx-large);gap:var(--spacing-x-small)}.location-info__icon{margin-right:var(--spacing-medium)}.location-info__icon img{height:var(--spacing-x-large);display:block}.location-info__close{background:none;border:1px solid var(--tailwind-colors-gray-200);margin-left:auto;width:var(--spacing-xx-large);height:var(--spacing-xx-large);border-radius:var(--rounding-large);display:grid;justify-content:center;align-items:center;align-self:start}.location-info__close:hover{background-color:var(--tailwind-colors-gray-50);cursor:pointer}.location-info__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.location-info__content{display:grid;gap:var(--spacing-xx-small)}.wayfinding{color:var(--brand-colors-black-100);display:grid;grid-template-rows:190px min-content;min-height:435px}.wayfinding__directions{background-color:var(--color-gray-20);border-bottom:1px solid var(--color-gray-30);padding:var(--spacing-medium);position:relative;border-radius:var(--rounding-large) var(--rounding-large) 0 0}.wayfinding__title{font-size:var(--font-size-small);text-align:center;font-weight:var(--font-weight-large);color:var(--color-gray-70);padding-bottom:var(--spacing-medium)}.wayfinding__close{position:absolute;top:var(--spacing-x-small);right:var(--spacing-x-small);background-color:var(--tailwind-colors-gray-100);border:1px solid var(--tailwind-colors-gray-200);margin-left:auto;width:var(--spacing-xx-large);height:var(--spacing-xx-large);border-radius:var(--rounding-large);display:grid;justify-content:center;align-items:center}.wayfinding__close:hover{background-color:var(--tailwind-colors-gray-200)}.wayfinding__locations{display:grid;gap:var(--spacing-medium);position:relative}.wayfinding__use-current-position{padding:var(--spacing-medium);font-size:var(--font-size-medium);font-weight:var(--font-weight-large);line-height:1rem;transition:all .3s ease 0s;border-radius:var(--rounding-large);background-color:#f9fafb;display:grid;grid-template-columns:var(--spacing-x-large) 1fr;align-items:center;cursor:pointer;gap:var(--spacing-medium);border:1px solid rgb(229,231,235);margin:var(--spacing-x-small) var(--spacing-x-small) 0 var(--spacing-x-small);height:fit-content;justify-items:start}.wayfinding__use-current-position svg{justify-self:center}.wayfinding__details{padding:var(--spacing-large) var(--spacing-medium) var(--spacing-medium) var(--spacing-medium)}.wayfinding__results{display:grid;gap:var(--spacing-x-small);padding:var(--spacing-x-small);grid-auto-rows:min-content}.wayfinding__results p{text-align:center}.wayfinding__info{display:grid;gap:var(--spacing-x-small)}.wayfinding__distance,.wayfinding__time{display:grid;grid-auto-flow:column;grid-template-columns:20px 1fr 1fr;gap:var(--spacing-x-small);align-items:center;color:var(--color-gray-70);width:fit-content}.wayfinding__distance svg{width:20px;height:20px}.wayfinding__time svg{width:var(--spacing-medium);height:var(--spacing-medium)}.wayfinding__minutes,.wayfinding__meters{font-weight:var(--font-weight-large)}.wayfinding hr{margin:var(--spacing-large) 0 var(--spacing-x-small) 0;background-color:var(--color-gray-30);border:none;height:1px}.wayfinding__button{color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;margin-top:var(--spacing-medium);font-weight:var(--font-weight-x-large)}.wayfinding__button:hover{filter:brightness(90%)}.wayfinding__button:disabled{opacity:.3;cursor:not-allowed}.wayfinding__scrollable{overflow:auto}.wayfinding__error{text-align:center}.wayfinding__switch{border:none;background:transparent;position:absolute;right:0;top:40px}.wayfinding__switch:hover{opacity:.8}.wayfinding__google{justify-self:center;width:110px}.wayfinding__settings{display:grid;grid-auto-flow:column;justify-content:space-between;width:100%;align-items:center}.wayfinding__label span{display:none}.wayfinding mi-dropdown::part(dropdown-container){overflow-y:auto;left:unset;right:var(--spacing-medium);top:unset;bottom:unset;min-width:160px;margin-top:0;margin-bottom:0}.wayfinding mi-dropdown::part(button){border-radius:var(--spacing-x-small);padding:0 var(--spacing-small);height:36px;background:var(--color-gray-10);border:1px solid var(--color-gray-30)}.wayfinding mi-search{width:calc(100% - 48px)}.non-selectable{pointer-events:none;opacity:.5}.accessibility{display:grid;grid-auto-flow:column;gap:var(--spacing-x-small);align-items:center;width:fit-content}.directions{color:var(--brand-colors-black-100);height:100%;grid-template-rows:1fr}.directions__details{padding:var(--spacing-medium) 0}.directions__cancel,.directions__finish{background-color:var(--tailwind-colors-gray-100);border:none;border-radius:var(--rounding-large);width:100%;height:fit-content;padding:var(--spacing-medium);text-transform:uppercase;font-weight:var(--font-weight-x-large);color:var(--color-gray-70)}.directions__cancel:hover,.directions__finish:hover{background-color:var(--tailwind-colors-gray-200)}.directions__finish{color:var(--color-white-white)}.directions__minutes{font-weight:var(--font-weight-large);color:var(--color-gray-60);position:sticky;top:0;background:var(--color-white-white);z-index:10000;padding-bottom:var(--spacing-medium);padding-top:var(--spacing-medium)}.directions__info{display:flex;align-items:center;font-size:var(--font-size-small)}.directions__icon{margin-right:var(--spacing-medium)}.directions__icon img{height:var(--spacing-x-large);display:block}.directions__name{display:grid;grid-auto-flow:column;gap:var(--spacing-xx-small);font-size:var(--font-size-small)}.directions mi-location-info{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.directions__content{display:grid;gap:var(--spacing-xx-small)}.directions__qr-code{width:fit-content;display:grid;gap:var(--spacing-medium);grid-auto-flow:column;align-items:center;padding:var(--spacing-medium);background-color:var(--tailwind-colors-gray-100);border:none;border-radius:var(--rounding-large);font-weight:var(--font-weight-x-large);color:var(--color-gray-90)}.directions__qr-code:hover{background-color:var(--tailwind-colors-gray-200)}.directions__kiosk{display:grid;grid-auto-flow:column;align-items:center;justify-content:space-between;padding:var(--spacing-x-small) var(--spacing-medium) var(--spacing-medium) var(--spacing-medium)}.directions hr{width:100%;background-color:var(--color-gray-30);height:1px;border:none}.directions__steps{padding:0 var(--spacing-medium)}.directions__actions{padding:0 var(--spacing-medium) var(--spacing-medium) var(--spacing-medium);position:sticky;bottom:0;background:var(--color-white-white);border-top:1px solid var(--color-gray-30)}@media (max-width: 992px){.directions{min-height:273px}}.route-instructions{height:100%;display:grid;grid-template-rows:1fr min-content}.route-instructions__footer{position:sticky;bottom:134px;background:white;padding-bottom:var(--spacing-medium)}.route-instructions__footer:before{content:"";position:absolute;pointer-events:none;bottom:var(--spacing-xx-large);left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(rgba(255,255,255,0),white)}.route-instructions__footer--kiosk:before{background:transparent}.route-instructions__actions{display:grid;grid-auto-flow:column;justify-content:space-between;align-items:center}.route-instructions__overview{color:var(--color-gray-90);font-weight:var(--font-weight-large)}.route-instructions__button{display:grid;justify-content:center;background:none;border:none;width:var(--icon-size-medium);height:var(--icon-size-medium);align-content:center}.route-instructions__button--kiosk{border-radius:var(--rounding-large);border:1px solid var(--color-gray-30);padding:18px}.route-instructions button:disabled,.route-instructions button[disabled]{cursor:not-allowed;opacity:.3}.route-instructions mi-route-instructions-step{height:100%}.search{padding:var(--spacing-medium)}.search__error{text-align:center}.search__results{display:grid;gap:var(--spacing-x-small);overflow:auto;flex:1 1 auto;margin-top:var(--spacing-x-small)}.search__results>*{height:fit-content}.search__scroll-buttons{position:fixed;left:calc(50% + 304px);bottom:var(--spacing-x-large)}.search__info{display:grid;grid-auto-flow:column;gap:var(--spacing-x-small)}.search__legend{width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);border:1px solid var(--color-gray-30);border-radius:var(--rounding-large);background-color:#fff}.search__label span{display:none}@media (max-width: 992px){.search{padding:var(--spacing-medium) var(--spacing-x-small) var(--spacing-medium) var(--spacing-x-small)}}.categories{overflow:auto hidden;flex-shrink:0;display:grid;grid-auto-flow:column;gap:var(--spacing-x-small);margin-top:var(--spacing-x-small);justify-content:space-between}.categories ::-webkit-scrollbar{width:0;height:0;background:transparent}.categories__list{display:grid;grid-auto-flow:column;gap:var(--spacing-x-small);overflow:auto hidden;grid-auto-columns:min-content;scrollbar-width:none}.categories__scroll-button{width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);background-color:var(--brand-colors-white-100);border:1px solid var(--color-gray-30);border-radius:var(--spacing-x-small)}.categories__scroll-button:disabled{cursor:not-allowed;opacity:.3}.locations-list{display:grid;grid-template-rows:50px 1fr;height:100%}.locations-list__header{padding:var(--spacing-medium)}.locations-list__title{font-size:var(--font-size-medium);text-align:center;font-weight:var(--font-weight-large);color:var(--color-gray-90)}.locations-list__close{position:absolute;top:var(--spacing-x-small);right:var(--spacing-x-small);background:none;border:none}.locations-list__list{display:grid;gap:var(--spacing-x-small);overflow:auto;grid-auto-rows:min-content;padding:var(--spacing-x-small)}.locations-list__scrollable{overflow:auto}@media (max-width: 992px){.locations-list{min-height:200px}}.modal{position:absolute;z-index:var(--z-index-overlay);width:568px;left:var(--spacing-x-large);bottom:var(--spacing-x-large);border-radius:var(--spacing-x-small);border:1px solid var(--color-gray-30);background:var(--color-white-white);transform:translateY(calc(100% + var(--spacing-large)));overflow:auto;display:none;max-height:80%}.modal--open{transform:translateY(0);display:block}.modal--full:not(.modal--kiosk){height:100%}.modal--full:not(.modal--kiosk) .modal__content{height:100%}.modal--substeps,.modal--substeps .modal__content{height:100%}.modal--kiosk{left:0;right:0;margin-left:auto;margin-right:auto;max-height:none}.notification{z-index:10000000;min-width:320px}.background{z-index:var(--z-index-spinner);background-color:var(--color-black-black);opacity:.5;position:fixed;width:100%;height:100%;top:0px;left:0px;overflow:hidden}.qr-code{position:absolute;background:white;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100;border-radius:var(--rounding-large);padding:var(--spacing-medium);z-index:var(--z-index-modal);display:grid}.qr-code__button{color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;margin-top:var(--spacing-medium);font-weight:var(--font-weight-x-large);text-transform:uppercase}.qr-code__button:hover{filter:brightness(90%)}.qr-code__image{justify-self:center;padding-top:var(--spacing-medium)}.qr-code p{font-weight:var(--font-weight-large)}.legend{position:absolute;background:white;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:var(--rounding-large);padding:var(--spacing-medium);z-index:var(--z-index-modal);display:grid;width:500px}.legend__background{z-index:var(--z-index-spinner);background-color:var(--color-black-black);opacity:.5;position:fixed;width:100%;height:100%;top:0px;left:0px;overflow:hidden}.legend__button{color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;margin-top:var(--spacing-medium);font-weight:var(--font-weight-x-large);text-transform:uppercase}.legend__button:hover{filter:brightness(90%)}.legend__heading{font-size:var(--spacing-x-large);font-weight:var(--font-weight-xx-large);color:var(--color-gray-90);padding-top:var(--spacing-medium)}.legend__section{display:grid;gap:var(--spacing-medium)}.legend__sections--scrollable:before{content:"";position:absolute;bottom:calc(56px + var(--spacing-small));left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(rgba(255,255,255,0),white)}.legend__sections--scrollable:after{content:"";position:absolute;top:0;left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(white,rgba(255,255,255,0))}.legend__content{padding-bottom:var(--spacing-medium);word-break:normal;overflow-wrap:break-word}.legend .scroll-buttons{position:fixed;left:520px;bottom:0}`)),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
(function(){try{var La=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ac=new La.Error().stack;Ac&&(La._sentryDebugIds=La._sentryDebugIds||{},La._sentryDebugIds[Ac]="
|
|
2
|
+
(function(){try{var La=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ac=new La.Error().stack;Ac&&(La._sentryDebugIds=La._sentryDebugIds||{},La._sentryDebugIds[Ac]="4b8a0b5e-52a4-4f70-9fec-69ff49b292a1",La._sentryDebugIdIdentifier="sentry-dbid-4b8a0b5e-52a4-4f70-9fec-69ff49b292a1")}catch{}})();(function(La,Ac){typeof exports=="object"&&typeof module<"u"?module.exports=Ac():typeof define=="function"&&define.amd?define(Ac):(La=typeof globalThis<"u"?globalThis:La||self,La.MapTemplate=Ac())})(this,function(){"use strict";var La=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};La.SENTRY_RELEASE={id:"faa57ea4792df7c9a72a97b4620e2c98b8ff6e2e"};var Ac=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q6={exports:{}},yy={},Y6={exports:{}},Hi={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
5
5
|
*
|
|
@@ -69,9 +69,9 @@ or you can use record.mirror to access the mirror instance during recording.`;le
|
|
|
69
69
|
`+l[g].replace(" at new "," at ");return e.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",e.displayName)),v}while(1<=g&&0<=s);break}}}finally{Xw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?cg(e):""}function pK(e){switch(e.tag){case 5:return cg(e.type);case 16:return cg("Lazy");case 13:return cg("Suspense");case 19:return cg("SuspenseList");case 0:case 2:case 15:return e=Jw(e.type,!1),e;case 11:return e=Jw(e.type.render,!1),e;case 1:return e=Jw(e.type,!0),e;default:return""}}function e4(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yf:return"Fragment";case gf:return"Portal";case Yw:return"Profiler";case Qw:return"StrictMode";case Zw:return"Suspense";case Ww:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qN:return(e.displayName||"Context")+".Consumer";case WN:return(e._context.displayName||"Context")+".Provider";case Gw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qw:return t=e.displayName||null,t!==null?t:e4(e.type)||"Memo";case Hc:t=e._payload,e=e._init;try{return e4(e(t))}catch{}}return null}function mK(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return e4(t);case 8:return t===Qw?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function JN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gK(e){var t=JN(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,d=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(g){o=""+g,d.call(this,g)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(g){o=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function C_(e){e._valueTracker||(e._valueTracker=gK(e))}function eL(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=JN(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function A_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function t4(e,t){var n=t.checked;return Br({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tL(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Qc(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nL(e,t){t=t.checked,t!=null&&Hw(e,"checked",t,!1)}function n4(e,t){nL(e,t);var n=Qc(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?i4(e,t.type,n):t.hasOwnProperty("defaultValue")&&i4(e,t.type,Qc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function iL(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function i4(e,t,n){(t!=="number"||A_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ug=Array.isArray;function _f(e,t,n,o){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Qc(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function r4(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(vn(91));return Br({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function rL(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(vn(92));if(ug(n)){if(1<n.length)throw Error(vn(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qc(n)}}function oL(e,t){var n=Qc(t.value),o=Qc(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function sL(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function aL(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function o4(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?aL(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var N_,lL=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(N_=N_||document.createElement("div"),N_.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=N_.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hg(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yK=["Webkit","ms","Moz","O"];Object.keys(dg).forEach(function(e){yK.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dg[t]=dg[e]})});function cL(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||dg.hasOwnProperty(e)&&dg[e]?(""+t).trim():t+"px"}function uL(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,l=cL(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,l):e[n]=l}}var _K=Br({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function s4(e,t){if(t){if(_K[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(vn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(vn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(vn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(vn(62))}}function a4(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var l4=null;function c4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var u4=null,vf=null,xf=null;function hL(e){if(e=kg(e)){if(typeof u4!="function")throw Error(vn(280));var t=e.stateNode;t&&(t=ev(t),u4(e.stateNode,e.type,t))}}function dL(e){vf?xf?xf.push(e):xf=[e]:vf=e}function fL(){if(vf){var e=vf,t=xf;if(xf=vf=null,hL(e),t)for(e=0;e<t.length;e++)hL(t[e])}}function pL(e,t){return e(t)}function mL(){}var h4=!1;function gL(e,t,n){if(h4)return e(t,n);h4=!0;try{return pL(e,t,n)}finally{h4=!1,(vf!==null||xf!==null)&&(mL(),fL())}}function fg(e,t){var n=e.stateNode;if(n===null)return null;var o=ev(n);if(o===null)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(vn(231,t,typeof n));return n}var d4=!1;if(Kl)try{var pg={};Object.defineProperty(pg,"passive",{get:function(){d4=!0}}),window.addEventListener("test",pg,pg),window.removeEventListener("test",pg,pg)}catch{d4=!1}function vK(e,t,n,o,l,d,g,s,v){var E=Array.prototype.slice.call(arguments,3);try{t.apply(n,E)}catch(z){this.onError(z)}}var mg=!1,L_=null,z_=!1,f4=null,xK={onError:function(e){mg=!0,L_=e}};function bK(e,t,n,o,l,d,g,s,v){mg=!1,L_=null,vK.apply(xK,arguments)}function MK(e,t,n,o,l,d,g,s,v){if(bK.apply(this,arguments),mg){if(mg){var E=L_;mg=!1,L_=null}else throw Error(vn(198));z_||(z_=!0,f4=E)}}function wh(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function yL(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _L(e){if(wh(e)!==e)throw Error(vn(188))}function wK(e){var t=e.alternate;if(!t){if(t=wh(e),t===null)throw Error(vn(188));return t!==e?null:e}for(var n=e,o=t;;){var l=n.return;if(l===null)break;var d=l.alternate;if(d===null){if(o=l.return,o!==null){n=o;continue}break}if(l.child===d.child){for(d=l.child;d;){if(d===n)return _L(l),e;if(d===o)return _L(l),t;d=d.sibling}throw Error(vn(188))}if(n.return!==o.return)n=l,o=d;else{for(var g=!1,s=l.child;s;){if(s===n){g=!0,n=l,o=d;break}if(s===o){g=!0,o=l,n=d;break}s=s.sibling}if(!g){for(s=d.child;s;){if(s===n){g=!0,n=d,o=l;break}if(s===o){g=!0,o=d,n=l;break}s=s.sibling}if(!g)throw Error(vn(189))}}if(n.alternate!==o)throw Error(vn(190))}if(n.tag!==3)throw Error(vn(188));return n.stateNode.current===n?e:t}function vL(e){return e=wK(e),e!==null?xL(e):null}function xL(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xL(e);if(t!==null)return t;e=e.sibling}return null}var bL=Fs.unstable_scheduleCallback,ML=Fs.unstable_cancelCallback,IK=Fs.unstable_shouldYield,TK=Fs.unstable_requestPaint,to=Fs.unstable_now,SK=Fs.unstable_getCurrentPriorityLevel,p4=Fs.unstable_ImmediatePriority,wL=Fs.unstable_UserBlockingPriority,k_=Fs.unstable_NormalPriority,EK=Fs.unstable_LowPriority,IL=Fs.unstable_IdlePriority,O_=null,dl=null;function DK(e){if(dl&&typeof dl.onCommitFiberRoot=="function")try{dl.onCommitFiberRoot(O_,e,void 0,(e.current.flags&128)===128)}catch{}}var Ra=Math.clz32?Math.clz32:NK,CK=Math.log,AK=Math.LN2;function NK(e){return e>>>=0,e===0?32:31-(CK(e)/AK|0)|0}var j_=64,R_=4194304;function gg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function P_(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,l=e.suspendedLanes,d=e.pingedLanes,g=n&268435455;if(g!==0){var s=g&~l;s!==0?o=gg(s):(d&=g,d!==0&&(o=gg(d)))}else g=n&~l,g!==0?o=gg(g):d!==0&&(o=gg(d));if(o===0)return 0;if(t!==0&&t!==o&&!(t&l)&&(l=o&-o,d=t&-t,l>=d||l===16&&(d&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-Ra(t),l=1<<n,o|=e[n],t&=~l;return o}function LK(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zK(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,d=e.pendingLanes;0<d;){var g=31-Ra(d),s=1<<g,v=l[g];v===-1?(!(s&n)||s&o)&&(l[g]=LK(s,t)):v<=t&&(e.expiredLanes|=s),d&=~s}}function m4(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function TL(){var e=j_;return j_<<=1,!(j_&4194240)&&(j_=64),e}function g4(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yg(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ra(t),e[t]=n}function kK(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ra(n),d=1<<l;t[l]=0,o[l]=-1,e[l]=-1,n&=~d}}function y4(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-Ra(n),l=1<<o;l&t|e[o]&t&&(e[o]|=t),n&=~l}}var cr=0;function SL(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var EL,_4,DL,CL,AL,v4=!1,U_=[],Yc=null,Gc=null,Zc=null,_g=new Map,vg=new Map,Wc=[],OK="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function NL(e,t){switch(e){case"focusin":case"focusout":Yc=null;break;case"dragenter":case"dragleave":Gc=null;break;case"mouseover":case"mouseout":Zc=null;break;case"pointerover":case"pointerout":_g.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vg.delete(t.pointerId)}}function xg(e,t,n,o,l,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:d,targetContainers:[l]},t!==null&&(t=kg(t),t!==null&&_4(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function jK(e,t,n,o,l){switch(t){case"focusin":return Yc=xg(Yc,e,t,n,o,l),!0;case"dragenter":return Gc=xg(Gc,e,t,n,o,l),!0;case"mouseover":return Zc=xg(Zc,e,t,n,o,l),!0;case"pointerover":var d=l.pointerId;return _g.set(d,xg(_g.get(d)||null,e,t,n,o,l)),!0;case"gotpointercapture":return d=l.pointerId,vg.set(d,xg(vg.get(d)||null,e,t,n,o,l)),!0}return!1}function LL(e){var t=Ih(e.target);if(t!==null){var n=wh(t);if(n!==null){if(t=n.tag,t===13){if(t=yL(n),t!==null){e.blockedOn=t,AL(e.priority,function(){DL(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function B_(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=b4(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);l4=o,n.target.dispatchEvent(o),l4=null}else return t=kg(n),t!==null&&_4(t),e.blockedOn=n,!1;t.shift()}return!0}function zL(e,t,n){B_(e)&&n.delete(t)}function RK(){v4=!1,Yc!==null&&B_(Yc)&&(Yc=null),Gc!==null&&B_(Gc)&&(Gc=null),Zc!==null&&B_(Zc)&&(Zc=null),_g.forEach(zL),vg.forEach(zL)}function bg(e,t){e.blockedOn===t&&(e.blockedOn=null,v4||(v4=!0,Fs.unstable_scheduleCallback(Fs.unstable_NormalPriority,RK)))}function Mg(e){function t(l){return bg(l,e)}if(0<U_.length){bg(U_[0],e);for(var n=1;n<U_.length;n++){var o=U_[n];o.blockedOn===e&&(o.blockedOn=null)}}for(Yc!==null&&bg(Yc,e),Gc!==null&&bg(Gc,e),Zc!==null&&bg(Zc,e),_g.forEach(t),vg.forEach(t),n=0;n<Wc.length;n++)o=Wc[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<Wc.length&&(n=Wc[0],n.blockedOn===null);)LL(n),n.blockedOn===null&&Wc.shift()}var bf=Xl.ReactCurrentBatchConfig,F_=!0;function PK(e,t,n,o){var l=cr,d=bf.transition;bf.transition=null;try{cr=1,x4(e,t,n,o)}finally{cr=l,bf.transition=d}}function UK(e,t,n,o){var l=cr,d=bf.transition;bf.transition=null;try{cr=4,x4(e,t,n,o)}finally{cr=l,bf.transition=d}}function x4(e,t,n,o){if(F_){var l=b4(e,t,n,o);if(l===null)P4(e,t,o,V_,n),NL(e,o);else if(jK(l,e,t,n,o))o.stopPropagation();else if(NL(e,o),t&4&&-1<OK.indexOf(e)){for(;l!==null;){var d=kg(l);if(d!==null&&EL(d),d=b4(e,t,n,o),d===null&&P4(e,t,o,V_,n),d===l)break;l=d}l!==null&&o.stopPropagation()}else P4(e,t,o,null,n)}}var V_=null;function b4(e,t,n,o){if(V_=null,e=c4(o),e=Ih(e),e!==null)if(t=wh(e),t===null)e=null;else if(n=t.tag,n===13){if(e=yL(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return V_=e,null}function kL(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(SK()){case p4:return 1;case wL:return 4;case k_:case EK:return 16;case IL:return 536870912;default:return 16}default:return 16}}var qc=null,M4=null,$_=null;function OL(){if($_)return $_;var e,t=M4,n=t.length,o,l="value"in qc?qc.value:qc.textContent,d=l.length;for(e=0;e<n&&t[e]===l[e];e++);var g=n-e;for(o=1;o<=g&&t[n-o]===l[d-o];o++);return $_=l.slice(e,1<o?1-o:void 0)}function H_(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Q_(){return!0}function jL(){return!1}function Vs(e){function t(n,o,l,d,g){this._reactName=n,this._targetInst=l,this.type=o,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(d):d[s]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Q_:jL,this.isPropagationStopped=jL,this}return Br(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Q_)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Q_)},persist:function(){},isPersistent:Q_}),t}var Mf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},w4=Vs(Mf),wg=Br({},Mf,{view:0,detail:0}),BK=Vs(wg),I4,T4,Ig,Y_=Br({},wg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:E4,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ig&&(Ig&&e.type==="mousemove"?(I4=e.screenX-Ig.screenX,T4=e.screenY-Ig.screenY):T4=I4=0,Ig=e),I4)},movementY:function(e){return"movementY"in e?e.movementY:T4}}),RL=Vs(Y_),FK=Br({},Y_,{dataTransfer:0}),VK=Vs(FK),$K=Br({},wg,{relatedTarget:0}),S4=Vs($K),HK=Br({},Mf,{animationName:0,elapsedTime:0,pseudoElement:0}),QK=Vs(HK),YK=Br({},Mf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),GK=Vs(YK),ZK=Br({},Mf,{data:0}),PL=Vs(ZK),WK={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qK={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},KK={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XK(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=KK[e])?!!t[e]:!1}function E4(){return XK}var JK=Br({},wg,{key:function(e){if(e.key){var t=WK[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=H_(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qK[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:E4,charCode:function(e){return e.type==="keypress"?H_(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?H_(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eX=Vs(JK),tX=Br({},Y_,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),UL=Vs(tX),nX=Br({},wg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:E4}),iX=Vs(nX),rX=Br({},Mf,{propertyName:0,elapsedTime:0,pseudoElement:0}),oX=Vs(rX),sX=Br({},Y_,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),aX=Vs(sX),lX=[9,13,27,32],D4=Kl&&"CompositionEvent"in window,Tg=null;Kl&&"documentMode"in document&&(Tg=document.documentMode);var cX=Kl&&"TextEvent"in window&&!Tg,BL=Kl&&(!D4||Tg&&8<Tg&&11>=Tg),FL=String.fromCharCode(32),VL=!1;function $L(e,t){switch(e){case"keyup":return lX.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function HL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wf=!1;function uX(e,t){switch(e){case"compositionend":return HL(t);case"keypress":return t.which!==32?null:(VL=!0,FL);case"textInput":return e=t.data,e===FL&&VL?null:e;default:return null}}function hX(e,t){if(wf)return e==="compositionend"||!D4&&$L(e,t)?(e=OL(),$_=M4=qc=null,wf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return BL&&t.locale!=="ko"?null:t.data;default:return null}}var dX={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function QL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dX[e.type]:t==="textarea"}function YL(e,t,n,o){dL(o),t=K_(t,"onChange"),0<t.length&&(n=new w4("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Sg=null,Eg=null;function fX(e){u8(e,0)}function G_(e){var t=Df(e);if(eL(t))return e}function pX(e,t){if(e==="change")return t}var GL=!1;if(Kl){var C4;if(Kl){var A4="oninput"in document;if(!A4){var ZL=document.createElement("div");ZL.setAttribute("oninput","return;"),A4=typeof ZL.oninput=="function"}C4=A4}else C4=!1;GL=C4&&(!document.documentMode||9<document.documentMode)}function WL(){Sg&&(Sg.detachEvent("onpropertychange",qL),Eg=Sg=null)}function qL(e){if(e.propertyName==="value"&&G_(Eg)){var t=[];YL(t,Eg,e,c4(e)),gL(fX,t)}}function mX(e,t,n){e==="focusin"?(WL(),Sg=t,Eg=n,Sg.attachEvent("onpropertychange",qL)):e==="focusout"&&WL()}function gX(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return G_(Eg)}function yX(e,t){if(e==="click")return G_(t)}function _X(e,t){if(e==="input"||e==="change")return G_(t)}function vX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pa=typeof Object.is=="function"?Object.is:vX;function Dg(e,t){if(Pa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var l=n[o];if(!Fw.call(t,l)||!Pa(e[l],t[l]))return!1}return!0}function KL(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function XL(e,t){var n=KL(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=KL(n)}}function JL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?JL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function e8(){for(var e=window,t=A_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=A_(e.document)}return t}function N4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xX(e){var t=e8(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&JL(n.ownerDocument.documentElement,n)){if(o!==null&&N4(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,d=Math.min(o.start,l);o=o.end===void 0?d:Math.min(o.end,l),!e.extend&&d>o&&(l=o,o=d,d=l),l=XL(n,d);var g=XL(n,o);l&&g&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),d>o?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var bX=Kl&&"documentMode"in document&&11>=document.documentMode,If=null,L4=null,Cg=null,z4=!1;function t8(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;z4||If==null||If!==A_(o)||(o=If,"selectionStart"in o&&N4(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Cg&&Dg(Cg,o)||(Cg=o,o=K_(L4,"onSelect"),0<o.length&&(t=new w4("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=If)))}function Z_(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tf={animationend:Z_("Animation","AnimationEnd"),animationiteration:Z_("Animation","AnimationIteration"),animationstart:Z_("Animation","AnimationStart"),transitionend:Z_("Transition","TransitionEnd")},k4={},n8={};Kl&&(n8=document.createElement("div").style,"AnimationEvent"in window||(delete Tf.animationend.animation,delete Tf.animationiteration.animation,delete Tf.animationstart.animation),"TransitionEvent"in window||delete Tf.transitionend.transition);function W_(e){if(k4[e])return k4[e];if(!Tf[e])return e;var t=Tf[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in n8)return k4[e]=t[n];return e}var i8=W_("animationend"),r8=W_("animationiteration"),o8=W_("animationstart"),s8=W_("transitionend"),a8=new Map,l8="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Kc(e,t){a8.set(e,t),Mh(t,[e])}for(var O4=0;O4<l8.length;O4++){var j4=l8[O4],MX=j4.toLowerCase(),wX=j4[0].toUpperCase()+j4.slice(1);Kc(MX,"on"+wX)}Kc(i8,"onAnimationEnd"),Kc(r8,"onAnimationIteration"),Kc(o8,"onAnimationStart"),Kc("dblclick","onDoubleClick"),Kc("focusin","onFocus"),Kc("focusout","onBlur"),Kc(s8,"onTransitionEnd"),mf("onMouseEnter",["mouseout","mouseover"]),mf("onMouseLeave",["mouseout","mouseover"]),mf("onPointerEnter",["pointerout","pointerover"]),mf("onPointerLeave",["pointerout","pointerover"]),Mh("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mh("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mh("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mh("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mh("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mh("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ag="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),IX=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ag));function c8(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,MK(o,t,void 0,e),e.currentTarget=null}function u8(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],l=o.event;o=o.listeners;e:{var d=void 0;if(t)for(var g=o.length-1;0<=g;g--){var s=o[g],v=s.instance,E=s.currentTarget;if(s=s.listener,v!==d&&l.isPropagationStopped())break e;c8(l,s,E),d=v}else for(g=0;g<o.length;g++){if(s=o[g],v=s.instance,E=s.currentTarget,s=s.listener,v!==d&&l.isPropagationStopped())break e;c8(l,s,E),d=v}}}if(z_)throw e=f4,z_=!1,f4=null,e}function Cr(e,t){var n=t[H4];n===void 0&&(n=t[H4]=new Set);var o=e+"__bubble";n.has(o)||(h8(t,e,2,!1),n.add(o))}function R4(e,t,n){var o=0;t&&(o|=4),h8(n,e,o,t)}var q_="_reactListening"+Math.random().toString(36).slice(2);function Ng(e){if(!e[q_]){e[q_]=!0,YN.forEach(function(n){n!=="selectionchange"&&(IX.has(n)||R4(n,!1,e),R4(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[q_]||(t[q_]=!0,R4("selectionchange",!1,t))}}function h8(e,t,n,o){switch(kL(t)){case 1:var l=PK;break;case 4:l=UK;break;default:l=x4}n=l.bind(null,t,n,e),l=void 0,!d4||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function P4(e,t,n,o,l){var d=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var g=o.tag;if(g===3||g===4){var s=o.stateNode.containerInfo;if(s===l||s.nodeType===8&&s.parentNode===l)break;if(g===4)for(g=o.return;g!==null;){var v=g.tag;if((v===3||v===4)&&(v=g.stateNode.containerInfo,v===l||v.nodeType===8&&v.parentNode===l))return;g=g.return}for(;s!==null;){if(g=Ih(s),g===null)return;if(v=g.tag,v===5||v===6){o=d=g;continue e}s=s.parentNode}}o=o.return}gL(function(){var E=d,z=c4(n),O=[];e:{var j=a8.get(e);if(j!==void 0){var F=w4,$=e;switch(e){case"keypress":if(H_(n)===0)break e;case"keydown":case"keyup":F=eX;break;case"focusin":$="focus",F=S4;break;case"focusout":$="blur",F=S4;break;case"beforeblur":case"afterblur":F=S4;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=RL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=VK;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=iX;break;case i8:case r8:case o8:F=QK;break;case s8:F=oX;break;case"scroll":F=BK;break;case"wheel":F=aX;break;case"copy":case"cut":case"paste":F=GK;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=UL}var Y=(t&4)!==0,ie=!Y&&e==="scroll",K=Y?j!==null?j+"Capture":null:j;Y=[];for(var J=E,te;J!==null;){te=J;var oe=te.stateNode;if(te.tag===5&&oe!==null&&(te=oe,K!==null&&(oe=fg(J,K),oe!=null&&Y.push(Lg(J,oe,te)))),ie)break;J=J.return}0<Y.length&&(j=new F(j,$,null,n,z),O.push({event:j,listeners:Y}))}}if(!(t&7)){e:{if(j=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",j&&n!==l4&&($=n.relatedTarget||n.fromElement)&&(Ih($)||$[Jl]))break e;if((F||j)&&(j=z.window===z?z:(j=z.ownerDocument)?j.defaultView||j.parentWindow:window,F?($=n.relatedTarget||n.toElement,F=E,$=$?Ih($):null,$!==null&&(ie=wh($),$!==ie||$.tag!==5&&$.tag!==6)&&($=null)):(F=null,$=E),F!==$)){if(Y=RL,oe="onMouseLeave",K="onMouseEnter",J="mouse",(e==="pointerout"||e==="pointerover")&&(Y=UL,oe="onPointerLeave",K="onPointerEnter",J="pointer"),ie=F==null?j:Df(F),te=$==null?j:Df($),j=new Y(oe,J+"leave",F,n,z),j.target=ie,j.relatedTarget=te,oe=null,Ih(z)===E&&(Y=new Y(K,J+"enter",$,n,z),Y.target=te,Y.relatedTarget=ie,oe=Y),ie=oe,F&&$)t:{for(Y=F,K=$,J=0,te=Y;te;te=Sf(te))J++;for(te=0,oe=K;oe;oe=Sf(oe))te++;for(;0<J-te;)Y=Sf(Y),J--;for(;0<te-J;)K=Sf(K),te--;for(;J--;){if(Y===K||K!==null&&Y===K.alternate)break t;Y=Sf(Y),K=Sf(K)}Y=null}else Y=null;F!==null&&d8(O,j,F,Y,!1),$!==null&&ie!==null&&d8(O,ie,$,Y,!0)}}e:{if(j=E?Df(E):window,F=j.nodeName&&j.nodeName.toLowerCase(),F==="select"||F==="input"&&j.type==="file")var pe=pX;else if(QL(j))if(GL)pe=_X;else{pe=gX;var me=mX}else(F=j.nodeName)&&F.toLowerCase()==="input"&&(j.type==="checkbox"||j.type==="radio")&&(pe=yX);if(pe&&(pe=pe(e,E))){YL(O,pe,n,z);break e}me&&me(e,j,E),e==="focusout"&&(me=j._wrapperState)&&me.controlled&&j.type==="number"&&i4(j,"number",j.value)}switch(me=E?Df(E):window,e){case"focusin":(QL(me)||me.contentEditable==="true")&&(If=me,L4=E,Cg=null);break;case"focusout":Cg=L4=If=null;break;case"mousedown":z4=!0;break;case"contextmenu":case"mouseup":case"dragend":z4=!1,t8(O,n,z);break;case"selectionchange":if(bX)break;case"keydown":case"keyup":t8(O,n,z)}var he;if(D4)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else wf?$L(e,n)&&(De="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(De="onCompositionStart");De&&(BL&&n.locale!=="ko"&&(wf||De!=="onCompositionStart"?De==="onCompositionEnd"&&wf&&(he=OL()):(qc=z,M4="value"in qc?qc.value:qc.textContent,wf=!0)),me=K_(E,De),0<me.length&&(De=new PL(De,e,null,n,z),O.push({event:De,listeners:me}),he?De.data=he:(he=HL(n),he!==null&&(De.data=he)))),(he=cX?uX(e,n):hX(e,n))&&(E=K_(E,"onBeforeInput"),0<E.length&&(z=new PL("onBeforeInput","beforeinput",null,n,z),O.push({event:z,listeners:E}),z.data=he))}u8(O,t)})}function Lg(e,t,n){return{instance:e,listener:t,currentTarget:n}}function K_(e,t){for(var n=t+"Capture",o=[];e!==null;){var l=e,d=l.stateNode;l.tag===5&&d!==null&&(l=d,d=fg(e,n),d!=null&&o.unshift(Lg(e,d,l)),d=fg(e,t),d!=null&&o.push(Lg(e,d,l))),e=e.return}return o}function Sf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function d8(e,t,n,o,l){for(var d=t._reactName,g=[];n!==null&&n!==o;){var s=n,v=s.alternate,E=s.stateNode;if(v!==null&&v===o)break;s.tag===5&&E!==null&&(s=E,l?(v=fg(n,d),v!=null&&g.unshift(Lg(n,v,s))):l||(v=fg(n,d),v!=null&&g.push(Lg(n,v,s)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var TX=/\r\n?/g,SX=/\u0000|\uFFFD/g;function f8(e){return(typeof e=="string"?e:""+e).replace(TX,`
|
|
70
70
|
`).replace(SX,"")}function X_(e,t,n){if(t=f8(t),f8(e)!==t&&n)throw Error(vn(425))}function J_(){}var U4=null,B4=null;function F4(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var V4=typeof setTimeout=="function"?setTimeout:void 0,EX=typeof clearTimeout=="function"?clearTimeout:void 0,p8=typeof Promise=="function"?Promise:void 0,DX=typeof queueMicrotask=="function"?queueMicrotask:typeof p8<"u"?function(e){return p8.resolve(null).then(e).catch(CX)}:V4;function CX(e){setTimeout(function(){throw e})}function $4(e,t){var n=t,o=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(o===0){e.removeChild(l),Mg(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=l}while(n);Mg(t)}function Xc(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function m8(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ef=Math.random().toString(36).slice(2),fl="__reactFiber$"+Ef,zg="__reactProps$"+Ef,Jl="__reactContainer$"+Ef,H4="__reactEvents$"+Ef,AX="__reactListeners$"+Ef,NX="__reactHandles$"+Ef;function Ih(e){var t=e[fl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jl]||n[fl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=m8(e);e!==null;){if(n=e[fl])return n;e=m8(e)}return t}e=n,n=e.parentNode}return null}function kg(e){return e=e[fl]||e[Jl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Df(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(vn(33))}function ev(e){return e[zg]||null}var Q4=[],Cf=-1;function Jc(e){return{current:e}}function Ar(e){0>Cf||(e.current=Q4[Cf],Q4[Cf]=null,Cf--)}function Tr(e,t){Cf++,Q4[Cf]=e.current,e.current=t}var eu={},Zo=Jc(eu),bs=Jc(!1),Th=eu;function Af(e,t){var n=e.type.contextTypes;if(!n)return eu;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var l={},d;for(d in n)l[d]=t[d];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ms(e){return e=e.childContextTypes,e!=null}function tv(){Ar(bs),Ar(Zo)}function g8(e,t,n){if(Zo.current!==eu)throw Error(vn(168));Tr(Zo,t),Tr(bs,n)}function y8(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var l in o)if(!(l in t))throw Error(vn(108,mK(e)||"Unknown",l));return Br({},n,o)}function nv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||eu,Th=Zo.current,Tr(Zo,e),Tr(bs,bs.current),!0}function _8(e,t,n){var o=e.stateNode;if(!o)throw Error(vn(169));n?(e=y8(e,t,Th),o.__reactInternalMemoizedMergedChildContext=e,Ar(bs),Ar(Zo),Tr(Zo,e)):Ar(bs),Tr(bs,n)}var ec=null,iv=!1,Y4=!1;function v8(e){ec===null?ec=[e]:ec.push(e)}function LX(e){iv=!0,v8(e)}function tu(){if(!Y4&&ec!==null){Y4=!0;var e=0,t=cr;try{var n=ec;for(cr=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}ec=null,iv=!1}catch(l){throw ec!==null&&(ec=ec.slice(e+1)),bL(p4,tu),l}finally{cr=t,Y4=!1}}return null}var Nf=[],Lf=0,rv=null,ov=0,ha=[],da=0,Sh=null,tc=1,nc="";function Eh(e,t){Nf[Lf++]=ov,Nf[Lf++]=rv,rv=e,ov=t}function x8(e,t,n){ha[da++]=tc,ha[da++]=nc,ha[da++]=Sh,Sh=e;var o=tc;e=nc;var l=32-Ra(o)-1;o&=~(1<<l),n+=1;var d=32-Ra(t)+l;if(30<d){var g=l-l%5;d=(o&(1<<g)-1).toString(32),o>>=g,l-=g,tc=1<<32-Ra(t)+l|n<<l|o,nc=d+e}else tc=1<<d|n<<l|o,nc=e}function G4(e){e.return!==null&&(Eh(e,1),x8(e,1,0))}function Z4(e){for(;e===rv;)rv=Nf[--Lf],Nf[Lf]=null,ov=Nf[--Lf],Nf[Lf]=null;for(;e===Sh;)Sh=ha[--da],ha[da]=null,nc=ha[--da],ha[da]=null,tc=ha[--da],ha[da]=null}var $s=null,Hs=null,jr=!1,Ua=null;function b8(e,t){var n=ga(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function M8(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,$s=e,Hs=Xc(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$s=e,Hs=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Sh!==null?{id:tc,overflow:nc}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ga(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,$s=e,Hs=null,!0):!1;default:return!1}}function W4(e){return(e.mode&1)!==0&&(e.flags&128)===0}function q4(e){if(jr){var t=Hs;if(t){var n=t;if(!M8(e,t)){if(W4(e))throw Error(vn(418));t=Xc(n.nextSibling);var o=$s;t&&M8(e,t)?b8(o,n):(e.flags=e.flags&-4097|2,jr=!1,$s=e)}}else{if(W4(e))throw Error(vn(418));e.flags=e.flags&-4097|2,jr=!1,$s=e}}}function w8(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$s=e}function sv(e){if(e!==$s)return!1;if(!jr)return w8(e),jr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!F4(e.type,e.memoizedProps)),t&&(t=Hs)){if(W4(e))throw I8(),Error(vn(418));for(;t;)b8(e,t),t=Xc(t.nextSibling)}if(w8(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(vn(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Hs=Xc(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Hs=null}}else Hs=$s?Xc(e.stateNode.nextSibling):null;return!0}function I8(){for(var e=Hs;e;)e=Xc(e.nextSibling)}function zf(){Hs=$s=null,jr=!1}function K4(e){Ua===null?Ua=[e]:Ua.push(e)}var zX=Xl.ReactCurrentBatchConfig;function Ba(e,t){if(e&&e.defaultProps){t=Br({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var av=Jc(null),lv=null,kf=null,X4=null;function J4(){X4=kf=lv=null}function e5(e){var t=av.current;Ar(av),e._currentValue=t}function t5(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Of(e,t){lv=e,X4=kf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ws=!0),e.firstContext=null)}function fa(e){var t=e._currentValue;if(X4!==e)if(e={context:e,memoizedValue:t,next:null},kf===null){if(lv===null)throw Error(vn(308));kf=e,lv.dependencies={lanes:0,firstContext:e}}else kf=kf.next=e;return t}var Dh=null;function n5(e){Dh===null?Dh=[e]:Dh.push(e)}function T8(e,t,n,o){var l=t.interleaved;return l===null?(n.next=n,n5(t)):(n.next=l.next,l.next=n),t.interleaved=n,ic(e,o)}function ic(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var nu=!1;function i5(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function S8(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function rc(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function iu(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,ir&2){var l=o.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,ic(e,n)}return l=o.interleaved,l===null?(t.next=t,n5(o)):(t.next=l.next,l.next=t),o.interleaved=t,ic(e,n)}function cv(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,y4(e,n)}}function E8(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var l=null,d=null;if(n=n.firstBaseUpdate,n!==null){do{var g={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};d===null?l=d=g:d=d.next=g,n=n.next}while(n!==null);d===null?l=d=t:d=d.next=t}else l=d=t;n={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:d,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uv(e,t,n,o){var l=e.updateQueue;nu=!1;var d=l.firstBaseUpdate,g=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var v=s,E=v.next;v.next=null,g===null?d=E:g.next=E,g=v;var z=e.alternate;z!==null&&(z=z.updateQueue,s=z.lastBaseUpdate,s!==g&&(s===null?z.firstBaseUpdate=E:s.next=E,z.lastBaseUpdate=v))}if(d!==null){var O=l.baseState;g=0,z=E=v=null,s=d;do{var j=s.lane,F=s.eventTime;if((o&j)===j){z!==null&&(z=z.next={eventTime:F,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var $=e,Y=s;switch(j=t,F=n,Y.tag){case 1:if($=Y.payload,typeof $=="function"){O=$.call(F,O,j);break e}O=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=Y.payload,j=typeof $=="function"?$.call(F,O,j):$,j==null)break e;O=Br({},O,j);break e;case 2:nu=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,j=l.effects,j===null?l.effects=[s]:j.push(s))}else F={eventTime:F,lane:j,tag:s.tag,payload:s.payload,callback:s.callback,next:null},z===null?(E=z=F,v=O):z=z.next=F,g|=j;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;j=s,s=j.next,j.next=null,l.lastBaseUpdate=j,l.shared.pending=null}}while(1);if(z===null&&(v=O),l.baseState=v,l.firstBaseUpdate=E,l.lastBaseUpdate=z,t=l.shared.interleaved,t!==null){l=t;do g|=l.lane,l=l.next;while(l!==t)}else d===null&&(l.shared.lanes=0);Nh|=g,e.lanes=g,e.memoizedState=O}}function D8(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],l=o.callback;if(l!==null){if(o.callback=null,o=n,typeof l!="function")throw Error(vn(191,l));l.call(o)}}}var C8=new QN.Component().refs;function r5(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:Br({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hv={isMounted:function(e){return(e=e._reactInternals)?wh(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=hs(),l=au(e),d=rc(o,l);d.payload=t,n!=null&&(d.callback=n),t=iu(e,d,l),t!==null&&($a(t,e,l,o),cv(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=hs(),l=au(e),d=rc(o,l);d.tag=1,d.payload=t,n!=null&&(d.callback=n),t=iu(e,d,l),t!==null&&($a(t,e,l,o),cv(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hs(),o=au(e),l=rc(n,o);l.tag=2,t!=null&&(l.callback=t),t=iu(e,l,o),t!==null&&($a(t,e,o,n),cv(t,e,o))}};function A8(e,t,n,o,l,d,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,g):t.prototype&&t.prototype.isPureReactComponent?!Dg(n,o)||!Dg(l,d):!0}function N8(e,t,n){var o=!1,l=eu,d=t.contextType;return typeof d=="object"&&d!==null?d=fa(d):(l=Ms(t)?Th:Zo.current,o=t.contextTypes,d=(o=o!=null)?Af(e,l):eu),t=new t(n,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=hv,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=d),t}function L8(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&hv.enqueueReplaceState(t,t.state,null)}function o5(e,t,n,o){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=C8,i5(e);var d=t.contextType;typeof d=="object"&&d!==null?l.context=fa(d):(d=Ms(t)?Th:Zo.current,l.context=Af(e,d)),l.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(r5(e,t,d,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&hv.enqueueReplaceState(l,l.state,null),uv(e,n,l,o),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Og(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(vn(309));var o=n.stateNode}if(!o)throw Error(vn(147,e));var l=o,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(g){var s=l.refs;s===C8&&(s=l.refs={}),g===null?delete s[d]:s[d]=g},t._stringRef=d,t)}if(typeof e!="string")throw Error(vn(284));if(!n._owner)throw Error(vn(290,e))}return e}function dv(e,t){throw e=Object.prototype.toString.call(t),Error(vn(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function z8(e){var t=e._init;return t(e._payload)}function k8(e){function t(K,J){if(e){var te=K.deletions;te===null?(K.deletions=[J],K.flags|=16):te.push(J)}}function n(K,J){if(!e)return null;for(;J!==null;)t(K,J),J=J.sibling;return null}function o(K,J){for(K=new Map;J!==null;)J.key!==null?K.set(J.key,J):K.set(J.index,J),J=J.sibling;return K}function l(K,J){return K=cu(K,J),K.index=0,K.sibling=null,K}function d(K,J,te){return K.index=te,e?(te=K.alternate,te!==null?(te=te.index,te<J?(K.flags|=2,J):te):(K.flags|=2,J)):(K.flags|=1048576,J)}function g(K){return e&&K.alternate===null&&(K.flags|=2),K}function s(K,J,te,oe){return J===null||J.tag!==6?(J=V5(te,K.mode,oe),J.return=K,J):(J=l(J,te),J.return=K,J)}function v(K,J,te,oe){var pe=te.type;return pe===yf?z(K,J,te.props.children,oe,te.key):J!==null&&(J.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Hc&&z8(pe)===J.type)?(oe=l(J,te.props),oe.ref=Og(K,J,te),oe.return=K,oe):(oe=Nv(te.type,te.key,te.props,null,K.mode,oe),oe.ref=Og(K,J,te),oe.return=K,oe)}function E(K,J,te,oe){return J===null||J.tag!==4||J.stateNode.containerInfo!==te.containerInfo||J.stateNode.implementation!==te.implementation?(J=$5(te,K.mode,oe),J.return=K,J):(J=l(J,te.children||[]),J.return=K,J)}function z(K,J,te,oe,pe){return J===null||J.tag!==7?(J=Oh(te,K.mode,oe,pe),J.return=K,J):(J=l(J,te),J.return=K,J)}function O(K,J,te){if(typeof J=="string"&&J!==""||typeof J=="number")return J=V5(""+J,K.mode,te),J.return=K,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case D_:return te=Nv(J.type,J.key,J.props,null,K.mode,te),te.ref=Og(K,null,J),te.return=K,te;case gf:return J=$5(J,K.mode,te),J.return=K,J;case Hc:var oe=J._init;return O(K,oe(J._payload),te)}if(ug(J)||lg(J))return J=Oh(J,K.mode,te,null),J.return=K,J;dv(K,J)}return null}function j(K,J,te,oe){var pe=J!==null?J.key:null;if(typeof te=="string"&&te!==""||typeof te=="number")return pe!==null?null:s(K,J,""+te,oe);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case D_:return te.key===pe?v(K,J,te,oe):null;case gf:return te.key===pe?E(K,J,te,oe):null;case Hc:return pe=te._init,j(K,J,pe(te._payload),oe)}if(ug(te)||lg(te))return pe!==null?null:z(K,J,te,oe,null);dv(K,te)}return null}function F(K,J,te,oe,pe){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return K=K.get(te)||null,s(J,K,""+oe,pe);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case D_:return K=K.get(oe.key===null?te:oe.key)||null,v(J,K,oe,pe);case gf:return K=K.get(oe.key===null?te:oe.key)||null,E(J,K,oe,pe);case Hc:var me=oe._init;return F(K,J,te,me(oe._payload),pe)}if(ug(oe)||lg(oe))return K=K.get(te)||null,z(J,K,oe,pe,null);dv(J,oe)}return null}function $(K,J,te,oe){for(var pe=null,me=null,he=J,De=J=0,qe=null;he!==null&&De<te.length;De++){he.index>De?(qe=he,he=null):qe=he.sibling;var Te=j(K,he,te[De],oe);if(Te===null){he===null&&(he=qe);break}e&&he&&Te.alternate===null&&t(K,he),J=d(Te,J,De),me===null?pe=Te:me.sibling=Te,me=Te,he=qe}if(De===te.length)return n(K,he),jr&&Eh(K,De),pe;if(he===null){for(;De<te.length;De++)he=O(K,te[De],oe),he!==null&&(J=d(he,J,De),me===null?pe=he:me.sibling=he,me=he);return jr&&Eh(K,De),pe}for(he=o(K,he);De<te.length;De++)qe=F(he,K,De,te[De],oe),qe!==null&&(e&&qe.alternate!==null&&he.delete(qe.key===null?De:qe.key),J=d(qe,J,De),me===null?pe=qe:me.sibling=qe,me=qe);return e&&he.forEach(function(ze){return t(K,ze)}),jr&&Eh(K,De),pe}function Y(K,J,te,oe){var pe=lg(te);if(typeof pe!="function")throw Error(vn(150));if(te=pe.call(te),te==null)throw Error(vn(151));for(var me=pe=null,he=J,De=J=0,qe=null,Te=te.next();he!==null&&!Te.done;De++,Te=te.next()){he.index>De?(qe=he,he=null):qe=he.sibling;var ze=j(K,he,Te.value,oe);if(ze===null){he===null&&(he=qe);break}e&&he&&ze.alternate===null&&t(K,he),J=d(ze,J,De),me===null?pe=ze:me.sibling=ze,me=ze,he=qe}if(Te.done)return n(K,he),jr&&Eh(K,De),pe;if(he===null){for(;!Te.done;De++,Te=te.next())Te=O(K,Te.value,oe),Te!==null&&(J=d(Te,J,De),me===null?pe=Te:me.sibling=Te,me=Te);return jr&&Eh(K,De),pe}for(he=o(K,he);!Te.done;De++,Te=te.next())Te=F(he,K,De,Te.value,oe),Te!==null&&(e&&Te.alternate!==null&&he.delete(Te.key===null?De:Te.key),J=d(Te,J,De),me===null?pe=Te:me.sibling=Te,me=Te);return e&&he.forEach(function(ht){return t(K,ht)}),jr&&Eh(K,De),pe}function ie(K,J,te,oe){if(typeof te=="object"&&te!==null&&te.type===yf&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case D_:e:{for(var pe=te.key,me=J;me!==null;){if(me.key===pe){if(pe=te.type,pe===yf){if(me.tag===7){n(K,me.sibling),J=l(me,te.props.children),J.return=K,K=J;break e}}else if(me.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Hc&&z8(pe)===me.type){n(K,me.sibling),J=l(me,te.props),J.ref=Og(K,me,te),J.return=K,K=J;break e}n(K,me);break}else t(K,me);me=me.sibling}te.type===yf?(J=Oh(te.props.children,K.mode,oe,te.key),J.return=K,K=J):(oe=Nv(te.type,te.key,te.props,null,K.mode,oe),oe.ref=Og(K,J,te),oe.return=K,K=oe)}return g(K);case gf:e:{for(me=te.key;J!==null;){if(J.key===me)if(J.tag===4&&J.stateNode.containerInfo===te.containerInfo&&J.stateNode.implementation===te.implementation){n(K,J.sibling),J=l(J,te.children||[]),J.return=K,K=J;break e}else{n(K,J);break}else t(K,J);J=J.sibling}J=$5(te,K.mode,oe),J.return=K,K=J}return g(K);case Hc:return me=te._init,ie(K,J,me(te._payload),oe)}if(ug(te))return $(K,J,te,oe);if(lg(te))return Y(K,J,te,oe);dv(K,te)}return typeof te=="string"&&te!==""||typeof te=="number"?(te=""+te,J!==null&&J.tag===6?(n(K,J.sibling),J=l(J,te),J.return=K,K=J):(n(K,J),J=V5(te,K.mode,oe),J.return=K,K=J),g(K)):n(K,J)}return ie}var jf=k8(!0),O8=k8(!1),jg={},pl=Jc(jg),Rg=Jc(jg),Pg=Jc(jg);function Ch(e){if(e===jg)throw Error(vn(174));return e}function s5(e,t){switch(Tr(Pg,t),Tr(Rg,e),Tr(pl,jg),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:o4(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=o4(t,e)}Ar(pl),Tr(pl,t)}function Rf(){Ar(pl),Ar(Rg),Ar(Pg)}function j8(e){Ch(Pg.current);var t=Ch(pl.current),n=o4(t,e.type);t!==n&&(Tr(Rg,e),Tr(pl,n))}function a5(e){Rg.current===e&&(Ar(pl),Ar(Rg))}var Fr=Jc(0);function fv(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var l5=[];function c5(){for(var e=0;e<l5.length;e++)l5[e]._workInProgressVersionPrimary=null;l5.length=0}var pv=Xl.ReactCurrentDispatcher,u5=Xl.ReactCurrentBatchConfig,Ah=0,Vr=null,po=null,wo=null,mv=!1,Ug=!1,Bg=0,kX=0;function Wo(){throw Error(vn(321))}function h5(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pa(e[n],t[n]))return!1;return!0}function d5(e,t,n,o,l,d){if(Ah=d,Vr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pv.current=e===null||e.memoizedState===null?PX:UX,e=n(o,l),Ug){d=0;do{if(Ug=!1,Bg=0,25<=d)throw Error(vn(301));d+=1,wo=po=null,t.updateQueue=null,pv.current=BX,e=n(o,l)}while(Ug)}if(pv.current=_v,t=po!==null&&po.next!==null,Ah=0,wo=po=Vr=null,mv=!1,t)throw Error(vn(300));return e}function f5(){var e=Bg!==0;return Bg=0,e}function ml(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wo===null?Vr.memoizedState=wo=e:wo=wo.next=e,wo}function pa(){if(po===null){var e=Vr.alternate;e=e!==null?e.memoizedState:null}else e=po.next;var t=wo===null?Vr.memoizedState:wo.next;if(t!==null)wo=t,po=e;else{if(e===null)throw Error(vn(310));po=e,e={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null},wo===null?Vr.memoizedState=wo=e:wo=wo.next=e}return wo}function Fg(e,t){return typeof t=="function"?t(e):t}function p5(e){var t=pa(),n=t.queue;if(n===null)throw Error(vn(311));n.lastRenderedReducer=e;var o=po,l=o.baseQueue,d=n.pending;if(d!==null){if(l!==null){var g=l.next;l.next=d.next,d.next=g}o.baseQueue=l=d,n.pending=null}if(l!==null){d=l.next,o=o.baseState;var s=g=null,v=null,E=d;do{var z=E.lane;if((Ah&z)===z)v!==null&&(v=v.next={lane:0,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),o=E.hasEagerState?E.eagerState:e(o,E.action);else{var O={lane:z,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};v===null?(s=v=O,g=o):v=v.next=O,Vr.lanes|=z,Nh|=z}E=E.next}while(E!==null&&E!==d);v===null?g=o:v.next=s,Pa(o,t.memoizedState)||(ws=!0),t.memoizedState=o,t.baseState=g,t.baseQueue=v,n.lastRenderedState=o}if(e=n.interleaved,e!==null){l=e;do d=l.lane,Vr.lanes|=d,Nh|=d,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function m5(e){var t=pa(),n=t.queue;if(n===null)throw Error(vn(311));n.lastRenderedReducer=e;var o=n.dispatch,l=n.pending,d=t.memoizedState;if(l!==null){n.pending=null;var g=l=l.next;do d=e(d,g.action),g=g.next;while(g!==l);Pa(d,t.memoizedState)||(ws=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),n.lastRenderedState=d}return[d,o]}function R8(){}function P8(e,t){var n=Vr,o=pa(),l=t(),d=!Pa(o.memoizedState,l);if(d&&(o.memoizedState=l,ws=!0),o=o.queue,g5(F8.bind(null,n,o,e),[e]),o.getSnapshot!==t||d||wo!==null&&wo.memoizedState.tag&1){if(n.flags|=2048,Vg(9,B8.bind(null,n,o,l,t),void 0,null),Io===null)throw Error(vn(349));Ah&30||U8(n,t,l)}return l}function U8(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vr.updateQueue,t===null?(t={lastEffect:null,stores:null},Vr.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function B8(e,t,n,o){t.value=n,t.getSnapshot=o,V8(t)&&$8(e)}function F8(e,t,n){return n(function(){V8(t)&&$8(e)})}function V8(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pa(e,n)}catch{return!0}}function $8(e){var t=ic(e,1);t!==null&&$a(t,e,1,-1)}function H8(e){var t=ml();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Fg,lastRenderedState:e},t.queue=e,e=e.dispatch=RX.bind(null,Vr,e),[t.memoizedState,e]}function Vg(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=Vr.updateQueue,t===null?(t={lastEffect:null,stores:null},Vr.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function Q8(){return pa().memoizedState}function gv(e,t,n,o){var l=ml();Vr.flags|=e,l.memoizedState=Vg(1|t,n,void 0,o===void 0?null:o)}function yv(e,t,n,o){var l=pa();o=o===void 0?null:o;var d=void 0;if(po!==null){var g=po.memoizedState;if(d=g.destroy,o!==null&&h5(o,g.deps)){l.memoizedState=Vg(t,n,d,o);return}}Vr.flags|=e,l.memoizedState=Vg(1|t,n,d,o)}function Y8(e,t){return gv(8390656,8,e,t)}function g5(e,t){return yv(2048,8,e,t)}function G8(e,t){return yv(4,2,e,t)}function Z8(e,t){return yv(4,4,e,t)}function W8(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function q8(e,t,n){return n=n!=null?n.concat([e]):null,yv(4,4,W8.bind(null,t,e),n)}function y5(){}function K8(e,t){var n=pa();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&h5(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function X8(e,t){var n=pa();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&h5(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function J8(e,t,n){return Ah&21?(Pa(n,t)||(n=TL(),Vr.lanes|=n,Nh|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n)}function OX(e,t){var n=cr;cr=n!==0&&4>n?n:4,e(!0);var o=u5.transition;u5.transition={};try{e(!1),t()}finally{cr=n,u5.transition=o}}function ez(){return pa().memoizedState}function jX(e,t,n){var o=au(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},tz(e))nz(t,n);else if(n=T8(e,t,n,o),n!==null){var l=hs();$a(n,e,o,l),iz(n,t,o)}}function RX(e,t,n){var o=au(e),l={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(tz(e))nz(t,l);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var g=t.lastRenderedState,s=d(g,n);if(l.hasEagerState=!0,l.eagerState=s,Pa(s,g)){var v=t.interleaved;v===null?(l.next=l,n5(t)):(l.next=v.next,v.next=l),t.interleaved=l;return}}catch{}finally{}n=T8(e,t,l,o),n!==null&&(l=hs(),$a(n,e,o,l),iz(n,t,o))}}function tz(e){var t=e.alternate;return e===Vr||t!==null&&t===Vr}function nz(e,t){Ug=mv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function iz(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,y4(e,n)}}var _v={readContext:fa,useCallback:Wo,useContext:Wo,useEffect:Wo,useImperativeHandle:Wo,useInsertionEffect:Wo,useLayoutEffect:Wo,useMemo:Wo,useReducer:Wo,useRef:Wo,useState:Wo,useDebugValue:Wo,useDeferredValue:Wo,useTransition:Wo,useMutableSource:Wo,useSyncExternalStore:Wo,useId:Wo,unstable_isNewReconciler:!1},PX={readContext:fa,useCallback:function(e,t){return ml().memoizedState=[e,t===void 0?null:t],e},useContext:fa,useEffect:Y8,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,gv(4194308,4,W8.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gv(4194308,4,e,t)},useInsertionEffect:function(e,t){return gv(4,2,e,t)},useMemo:function(e,t){var n=ml();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=ml();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=jX.bind(null,Vr,e),[o.memoizedState,e]},useRef:function(e){var t=ml();return e={current:e},t.memoizedState=e},useState:H8,useDebugValue:y5,useDeferredValue:function(e){return ml().memoizedState=e},useTransition:function(){var e=H8(!1),t=e[0];return e=OX.bind(null,e[1]),ml().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Vr,l=ml();if(jr){if(n===void 0)throw Error(vn(407));n=n()}else{if(n=t(),Io===null)throw Error(vn(349));Ah&30||U8(o,t,n)}l.memoizedState=n;var d={value:n,getSnapshot:t};return l.queue=d,Y8(F8.bind(null,o,d,e),[e]),o.flags|=2048,Vg(9,B8.bind(null,o,d,n,t),void 0,null),n},useId:function(){var e=ml(),t=Io.identifierPrefix;if(jr){var n=nc,o=tc;n=(o&~(1<<32-Ra(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bg++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=kX++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},UX={readContext:fa,useCallback:K8,useContext:fa,useEffect:g5,useImperativeHandle:q8,useInsertionEffect:G8,useLayoutEffect:Z8,useMemo:X8,useReducer:p5,useRef:Q8,useState:function(){return p5(Fg)},useDebugValue:y5,useDeferredValue:function(e){var t=pa();return J8(t,po.memoizedState,e)},useTransition:function(){var e=p5(Fg)[0],t=pa().memoizedState;return[e,t]},useMutableSource:R8,useSyncExternalStore:P8,useId:ez,unstable_isNewReconciler:!1},BX={readContext:fa,useCallback:K8,useContext:fa,useEffect:g5,useImperativeHandle:q8,useInsertionEffect:G8,useLayoutEffect:Z8,useMemo:X8,useReducer:m5,useRef:Q8,useState:function(){return m5(Fg)},useDebugValue:y5,useDeferredValue:function(e){var t=pa();return po===null?t.memoizedState=e:J8(t,po.memoizedState,e)},useTransition:function(){var e=m5(Fg)[0],t=pa().memoizedState;return[e,t]},useMutableSource:R8,useSyncExternalStore:P8,useId:ez,unstable_isNewReconciler:!1};function Pf(e,t){try{var n="",o=t;do n+=pK(o),o=o.return;while(o);var l=n}catch(d){l=`
|
|
71
71
|
Error generating stack: `+d.message+`
|
|
72
|
-
`+d.stack}return{value:e,source:t,stack:l,digest:null}}function _5(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function v5(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var FX=typeof WeakMap=="function"?WeakMap:Map;function rz(e,t,n){n=rc(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Tv||(Tv=!0,k5=o),v5(e,t)},n}function oz(e,t,n){n=rc(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var l=t.value;n.payload=function(){return o(l)},n.callback=function(){v5(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(n.callback=function(){v5(e,t),typeof o!="function"&&(ou===null?ou=new Set([this]):ou.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),n}function sz(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new FX;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(n)||(l.add(n),e=tJ.bind(null,e,t,n),t.then(e,e))}function az(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lz(e,t,n,o,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=rc(-1,1),t.tag=2,iu(n,t,1))),n.lanes|=1),e)}var VX=Xl.ReactCurrentOwner,ws=!1;function us(e,t,n,o){t.child=e===null?O8(t,null,n,o):jf(t,e.child,n,o)}function cz(e,t,n,o,l){n=n.render;var d=t.ref;return Of(t,l),o=d5(e,t,n,o,d,l),n=f5(),e!==null&&!ws?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,oc(e,t,l)):(jr&&n&&G4(t),t.flags|=1,us(e,t,o,l),t.child)}function uz(e,t,n,o,l){if(e===null){var d=n.type;return typeof d=="function"&&!F5(d)&&d.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=d,hz(e,t,d,o,l)):(e=Nv(n.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!(e.lanes&l)){var g=d.memoizedProps;if(n=n.compare,n=n!==null?n:Dg,n(g,o)&&e.ref===t.ref)return oc(e,t,l)}return t.flags|=1,e=cu(d,o),e.ref=t.ref,e.return=t,t.child=e}function hz(e,t,n,o,l){if(e!==null){var d=e.memoizedProps;if(Dg(d,o)&&e.ref===t.ref)if(ws=!1,t.pendingProps=o=d,(e.lanes&l)!==0)e.flags&131072&&(ws=!0);else return t.lanes=e.lanes,oc(e,t,l)}return x5(e,t,n,o,l)}function dz(e,t,n){var o=t.pendingProps,l=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tr(Bf,Qs),Qs|=n;else{if(!(n&1073741824))return e=d!==null?d.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tr(Bf,Qs),Qs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=d!==null?d.baseLanes:n,Tr(Bf,Qs),Qs|=o}else d!==null?(o=d.baseLanes|n,t.memoizedState=null):o=n,Tr(Bf,Qs),Qs|=o;return us(e,t,l,n),t.child}function fz(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function x5(e,t,n,o,l){var d=Ms(n)?Th:Zo.current;return d=Af(t,d),Of(t,l),n=d5(e,t,n,o,d,l),o=f5(),e!==null&&!ws?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,oc(e,t,l)):(jr&&o&&G4(t),t.flags|=1,us(e,t,n,l),t.child)}function pz(e,t,n,o,l){if(Ms(n)){var d=!0;nv(t)}else d=!1;if(Of(t,l),t.stateNode===null)xv(e,t),N8(t,n,o),o5(t,n,o,l),o=!0;else if(e===null){var g=t.stateNode,s=t.memoizedProps;g.props=s;var v=g.context,E=n.contextType;typeof E=="object"&&E!==null?E=fa(E):(E=Ms(n)?Th:Zo.current,E=Af(t,E));var z=n.getDerivedStateFromProps,O=typeof z=="function"||typeof g.getSnapshotBeforeUpdate=="function";O||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(s!==o||v!==E)&&L8(t,g,o,E),nu=!1;var j=t.memoizedState;g.state=j,uv(t,o,g,l),v=t.memoizedState,s!==o||j!==v||bs.current||nu?(typeof z=="function"&&(r5(t,n,z,o),v=t.memoizedState),(s=nu||A8(t,n,s,o,j,v,E))?(O||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=v),g.props=o,g.state=v,g.context=E,o=s):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{g=t.stateNode,S8(e,t),s=t.memoizedProps,E=t.type===t.elementType?s:Ba(t.type,s),g.props=E,O=t.pendingProps,j=g.context,v=n.contextType,typeof v=="object"&&v!==null?v=fa(v):(v=Ms(n)?Th:Zo.current,v=Af(t,v));var F=n.getDerivedStateFromProps;(z=typeof F=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(s!==O||j!==v)&&L8(t,g,o,v),nu=!1,j=t.memoizedState,g.state=j,uv(t,o,g,l);var $=t.memoizedState;s!==O||j!==$||bs.current||nu?(typeof F=="function"&&(r5(t,n,F,o),$=t.memoizedState),(E=nu||A8(t,n,E,o,j,$,v)||!1)?(z||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(o,$,v),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(o,$,v)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=$),g.props=o,g.state=$,g.context=v,o=E):(typeof g.componentDidUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),o=!1)}return b5(e,t,n,o,d,l)}function b5(e,t,n,o,l,d){fz(e,t);var g=(t.flags&128)!==0;if(!o&&!g)return l&&_8(t,n,!1),oc(e,t,d);o=t.stateNode,VX.current=t;var s=g&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&g?(t.child=jf(t,e.child,null,d),t.child=jf(t,null,s,d)):us(e,t,s,d),t.memoizedState=o.state,l&&_8(t,n,!0),t.child}function mz(e){var t=e.stateNode;t.pendingContext?g8(e,t.pendingContext,t.pendingContext!==t.context):t.context&&g8(e,t.context,!1),s5(e,t.containerInfo)}function gz(e,t,n,o,l){return zf(),K4(l),t.flags|=256,us(e,t,n,o),t.child}var M5={dehydrated:null,treeContext:null,retryLane:0};function w5(e){return{baseLanes:e,cachePool:null,transitions:null}}function yz(e,t,n){var o=t.pendingProps,l=Fr.current,d=!1,g=(t.flags&128)!==0,s;if((s=g)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Tr(Fr,l&1),e===null)return q4(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(g=o.children,e=o.fallback,d?(o=t.mode,d=t.child,g={mode:"hidden",children:g},!(o&1)&&d!==null?(d.childLanes=0,d.pendingProps=g):d=Lv(g,o,0,null),e=Oh(e,o,n,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=w5(n),t.memoizedState=M5,e):I5(t,g));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return $X(e,t,g,o,s,l,n);if(d){d=o.fallback,g=t.mode,l=e.child,s=l.sibling;var v={mode:"hidden",children:o.children};return!(g&1)&&t.child!==l?(o=t.child,o.childLanes=0,o.pendingProps=v,t.deletions=null):(o=cu(l,v),o.subtreeFlags=l.subtreeFlags&14680064),s!==null?d=cu(s,d):(d=Oh(d,g,n,null),d.flags|=2),d.return=t,o.return=t,o.sibling=d,t.child=o,o=d,d=t.child,g=e.child.memoizedState,g=g===null?w5(n):{baseLanes:g.baseLanes|n,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=e.childLanes&~n,t.memoizedState=M5,o}return d=e.child,e=d.sibling,o=cu(d,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function I5(e,t){return t=Lv({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vv(e,t,n,o){return o!==null&&K4(o),jf(t,e.child,null,n),e=I5(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $X(e,t,n,o,l,d,g){if(n)return t.flags&256?(t.flags&=-257,o=_5(Error(vn(422))),vv(e,t,g,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=o.fallback,l=t.mode,o=Lv({mode:"visible",children:o.children},l,0,null),d=Oh(d,l,g,null),d.flags|=2,o.return=t,d.return=t,o.sibling=d,t.child=o,t.mode&1&&jf(t,e.child,null,g),t.child.memoizedState=w5(g),t.memoizedState=M5,d);if(!(t.mode&1))return vv(e,t,g,null);if(l.data==="$!"){if(o=l.nextSibling&&l.nextSibling.dataset,o)var s=o.dgst;return o=s,d=Error(vn(419)),o=_5(d,o,void 0),vv(e,t,g,o)}if(s=(g&e.childLanes)!==0,ws||s){if(o=Io,o!==null){switch(g&-g){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(o.suspendedLanes|g)?0:l,l!==0&&l!==d.retryLane&&(d.retryLane=l,ic(e,l),$a(o,e,l,-1))}return B5(),o=_5(Error(vn(421))),vv(e,t,g,o)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=nJ.bind(null,e),l._reactRetry=t,null):(e=d.treeContext,Hs=Xc(l.nextSibling),$s=t,jr=!0,Ua=null,e!==null&&(ha[da++]=tc,ha[da++]=nc,ha[da++]=Sh,tc=e.id,nc=e.overflow,Sh=t),t=I5(t,o.children),t.flags|=4096,t)}function _z(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),t5(e.return,t,n)}function T5(e,t,n,o,l){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:l}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=n,d.tailMode=l)}function vz(e,t,n){var o=t.pendingProps,l=o.revealOrder,d=o.tail;if(us(e,t,o.children,n),o=Fr.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_z(e,n,t);else if(e.tag===19)_z(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Tr(Fr,o),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&fv(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),T5(t,!1,l,n,d);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&fv(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}T5(t,!0,n,null,d);break;case"together":T5(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function oc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nh|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(vn(153));if(t.child!==null){for(e=t.child,n=cu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=cu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function HX(e,t,n){switch(t.tag){case 3:mz(t),zf();break;case 5:j8(t);break;case 1:Ms(t.type)&&nv(t);break;case 4:s5(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,l=t.memoizedProps.value;Tr(av,o._currentValue),o._currentValue=l;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Tr(Fr,Fr.current&1),t.flags|=128,null):n&t.child.childLanes?yz(e,t,n):(Tr(Fr,Fr.current&1),e=oc(e,t,n),e!==null?e.sibling:null);Tr(Fr,Fr.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return vz(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Tr(Fr,Fr.current),o)break;return null;case 22:case 23:return t.lanes=0,dz(e,t,n)}return oc(e,t,n)}var xz,S5,bz,Mz;xz=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},S5=function(){},bz=function(e,t,n,o){var l=e.memoizedProps;if(l!==o){e=t.stateNode,Ch(pl.current);var d=null;switch(n){case"input":l=t4(e,l),o=t4(e,o),d=[];break;case"select":l=Br({},l,{value:void 0}),o=Br({},o,{value:void 0}),d=[];break;case"textarea":l=r4(e,l),o=r4(e,o),d=[];break;default:typeof l.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=J_)}s4(n,o);var g;n=null;for(E in l)if(!o.hasOwnProperty(E)&&l.hasOwnProperty(E)&&l[E]!=null)if(E==="style"){var s=l[E];for(g in s)s.hasOwnProperty(g)&&(n||(n={}),n[g]="")}else E!=="dangerouslySetInnerHTML"&&E!=="children"&&E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(ag.hasOwnProperty(E)?d||(d=[]):(d=d||[]).push(E,null));for(E in o){var v=o[E];if(s=l!=null?l[E]:void 0,o.hasOwnProperty(E)&&v!==s&&(v!=null||s!=null))if(E==="style")if(s){for(g in s)!s.hasOwnProperty(g)||v&&v.hasOwnProperty(g)||(n||(n={}),n[g]="");for(g in v)v.hasOwnProperty(g)&&s[g]!==v[g]&&(n||(n={}),n[g]=v[g])}else n||(d||(d=[]),d.push(E,n)),n=v;else E==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,s=s?s.__html:void 0,v!=null&&s!==v&&(d=d||[]).push(E,v)):E==="children"?typeof v!="string"&&typeof v!="number"||(d=d||[]).push(E,""+v):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&(ag.hasOwnProperty(E)?(v!=null&&E==="onScroll"&&Cr("scroll",e),d||s===v||(d=[])):(d=d||[]).push(E,v))}n&&(d=d||[]).push("style",n);var E=d;(t.updateQueue=E)&&(t.flags|=4)}},Mz=function(e,t,n,o){n!==o&&(t.flags|=4)};function $g(e,t){if(!jr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function qo(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,o|=l.subtreeFlags&14680064,o|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function QX(e,t,n){var o=t.pendingProps;switch(Z4(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qo(t),null;case 1:return Ms(t.type)&&tv(),qo(t),null;case 3:return o=t.stateNode,Rf(),Ar(bs),Ar(Zo),c5(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(sv(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ua!==null&&(R5(Ua),Ua=null))),S5(e,t),qo(t),null;case 5:a5(t);var l=Ch(Pg.current);if(n=t.type,e!==null&&t.stateNode!=null)bz(e,t,n,o,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(vn(166));return qo(t),null}if(e=Ch(pl.current),sv(t)){o=t.stateNode,n=t.type;var d=t.memoizedProps;switch(o[fl]=t,o[zg]=d,e=(t.mode&1)!==0,n){case"dialog":Cr("cancel",o),Cr("close",o);break;case"iframe":case"object":case"embed":Cr("load",o);break;case"video":case"audio":for(l=0;l<Ag.length;l++)Cr(Ag[l],o);break;case"source":Cr("error",o);break;case"img":case"image":case"link":Cr("error",o),Cr("load",o);break;case"details":Cr("toggle",o);break;case"input":tL(o,d),Cr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!d.multiple},Cr("invalid",o);break;case"textarea":rL(o,d),Cr("invalid",o)}s4(n,d),l=null;for(var g in d)if(d.hasOwnProperty(g)){var s=d[g];g==="children"?typeof s=="string"?o.textContent!==s&&(d.suppressHydrationWarning!==!0&&X_(o.textContent,s,e),l=["children",s]):typeof s=="number"&&o.textContent!==""+s&&(d.suppressHydrationWarning!==!0&&X_(o.textContent,s,e),l=["children",""+s]):ag.hasOwnProperty(g)&&s!=null&&g==="onScroll"&&Cr("scroll",o)}switch(n){case"input":C_(o),iL(o,d,!0);break;case"textarea":C_(o),sL(o);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(o.onclick=J_)}o=l,t.updateQueue=o,o!==null&&(t.flags|=4)}else{g=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=aL(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=g.createElement(n,{is:o.is}):(e=g.createElement(n),n==="select"&&(g=e,o.multiple?g.multiple=!0:o.size&&(g.size=o.size))):e=g.createElementNS(e,n),e[fl]=t,e[zg]=o,xz(e,t,!1,!1),t.stateNode=e;e:{switch(g=a4(n,o),n){case"dialog":Cr("cancel",e),Cr("close",e),l=o;break;case"iframe":case"object":case"embed":Cr("load",e),l=o;break;case"video":case"audio":for(l=0;l<Ag.length;l++)Cr(Ag[l],e);l=o;break;case"source":Cr("error",e),l=o;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),l=o;break;case"details":Cr("toggle",e),l=o;break;case"input":tL(e,o),l=t4(e,o),Cr("invalid",e);break;case"option":l=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=Br({},o,{value:void 0}),Cr("invalid",e);break;case"textarea":rL(e,o),l=r4(e,o),Cr("invalid",e);break;default:l=o}s4(n,l),s=l;for(d in s)if(s.hasOwnProperty(d)){var v=s[d];d==="style"?uL(e,v):d==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,v!=null&&lL(e,v)):d==="children"?typeof v=="string"?(n!=="textarea"||v!=="")&&hg(e,v):typeof v=="number"&&hg(e,""+v):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(ag.hasOwnProperty(d)?v!=null&&d==="onScroll"&&Cr("scroll",e):v!=null&&Hw(e,d,v,g))}switch(n){case"input":C_(e),iL(e,o,!1);break;case"textarea":C_(e),sL(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Qc(o.value));break;case"select":e.multiple=!!o.multiple,d=o.value,d!=null?_f(e,!!o.multiple,d,!1):o.defaultValue!=null&&_f(e,!!o.multiple,o.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=J_)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qo(t),null;case 6:if(e&&t.stateNode!=null)Mz(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(vn(166));if(n=Ch(Pg.current),Ch(pl.current),sv(t)){if(o=t.stateNode,n=t.memoizedProps,o[fl]=t,(d=o.nodeValue!==n)&&(e=$s,e!==null))switch(e.tag){case 3:X_(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&X_(o.nodeValue,n,(e.mode&1)!==0)}d&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[fl]=t,t.stateNode=o}return qo(t),null;case 13:if(Ar(Fr),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(jr&&Hs!==null&&t.mode&1&&!(t.flags&128))I8(),zf(),t.flags|=98560,d=!1;else if(d=sv(t),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(vn(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(vn(317));d[fl]=t}else zf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qo(t),d=!1}else Ua!==null&&(R5(Ua),Ua=null),d=!0;if(!d)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||Fr.current&1?mo===0&&(mo=3):B5())),t.updateQueue!==null&&(t.flags|=4),qo(t),null);case 4:return Rf(),S5(e,t),e===null&&Ng(t.stateNode.containerInfo),qo(t),null;case 10:return e5(t.type._context),qo(t),null;case 17:return Ms(t.type)&&tv(),qo(t),null;case 19:if(Ar(Fr),d=t.memoizedState,d===null)return qo(t),null;if(o=(t.flags&128)!==0,g=d.rendering,g===null)if(o)$g(d,!1);else{if(mo!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(g=fv(e),g!==null){for(t.flags|=128,$g(d,!1),o=g.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)d=n,e=o,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,e=g.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Tr(Fr,Fr.current&1|2),t.child}e=e.sibling}d.tail!==null&&to()>Ff&&(t.flags|=128,o=!0,$g(d,!1),t.lanes=4194304)}else{if(!o)if(e=fv(g),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$g(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!jr)return qo(t),null}else 2*to()-d.renderingStartTime>Ff&&n!==1073741824&&(t.flags|=128,o=!0,$g(d,!1),t.lanes=4194304);d.isBackwards?(g.sibling=t.child,t.child=g):(n=d.last,n!==null?n.sibling=g:t.child=g,d.last=g)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=to(),t.sibling=null,n=Fr.current,Tr(Fr,o?n&1|2:n&1),t):(qo(t),null);case 22:case 23:return U5(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?Qs&1073741824&&(qo(t),t.subtreeFlags&6&&(t.flags|=8192)):qo(t),null;case 24:return null;case 25:return null}throw Error(vn(156,t.tag))}function YX(e,t){switch(Z4(t),t.tag){case 1:return Ms(t.type)&&tv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rf(),Ar(bs),Ar(Zo),c5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return a5(t),null;case 13:if(Ar(Fr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(vn(340));zf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ar(Fr),null;case 4:return Rf(),null;case 10:return e5(t.type._context),null;case 22:case 23:return U5(),null;case 24:return null;default:return null}}var bv=!1,Ko=!1,GX=typeof WeakSet=="function"?WeakSet:Set,$n=null;function Uf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){qr(e,t,o)}else n.current=null}function E5(e,t,n){try{n()}catch(o){qr(e,t,o)}}var wz=!1;function ZX(e,t){if(U4=F_,e=e8(),N4(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var l=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{n.nodeType,d.nodeType}catch{n=null;break e}var g=0,s=-1,v=-1,E=0,z=0,O=e,j=null;t:for(;;){for(var F;O!==n||l!==0&&O.nodeType!==3||(s=g+l),O!==d||o!==0&&O.nodeType!==3||(v=g+o),O.nodeType===3&&(g+=O.nodeValue.length),(F=O.firstChild)!==null;)j=O,O=F;for(;;){if(O===e)break t;if(j===n&&++E===l&&(s=g),j===d&&++z===o&&(v=g),(F=O.nextSibling)!==null)break;O=j,j=O.parentNode}O=F}n=s===-1||v===-1?null:{start:s,end:v}}else n=null}n=n||{start:0,end:0}}else n=null;for(B4={focusedElem:e,selectionRange:n},F_=!1,$n=t;$n!==null;)if(t=$n,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$n=e;else for(;$n!==null;){t=$n;try{var $=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if($!==null){var Y=$.memoizedProps,ie=$.memoizedState,K=t.stateNode,J=K.getSnapshotBeforeUpdate(t.elementType===t.type?Y:Ba(t.type,Y),ie);K.__reactInternalSnapshotBeforeUpdate=J}break;case 3:var te=t.stateNode.containerInfo;te.nodeType===1?te.textContent="":te.nodeType===9&&te.documentElement&&te.removeChild(te.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(vn(163))}}catch(oe){qr(t,t.return,oe)}if(e=t.sibling,e!==null){e.return=t.return,$n=e;break}$n=t.return}return $=wz,wz=!1,$}function Hg(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&e)===e){var d=l.destroy;l.destroy=void 0,d!==void 0&&E5(t,n,d)}l=l.next}while(l!==o)}}function Mv(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function D5(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Iz(e){var t=e.alternate;t!==null&&(e.alternate=null,Iz(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[zg],delete t[H4],delete t[AX],delete t[NX])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tz(e){return e.tag===5||e.tag===3||e.tag===4}function Sz(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function C5(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=J_));else if(o!==4&&(e=e.child,e!==null))for(C5(e,t,n),e=e.sibling;e!==null;)C5(e,t,n),e=e.sibling}function A5(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(A5(e,t,n),e=e.sibling;e!==null;)A5(e,t,n),e=e.sibling}var Ro=null,Fa=!1;function ru(e,t,n){for(n=n.child;n!==null;)Ez(e,t,n),n=n.sibling}function Ez(e,t,n){if(dl&&typeof dl.onCommitFiberUnmount=="function")try{dl.onCommitFiberUnmount(O_,n)}catch{}switch(n.tag){case 5:Ko||Uf(n,t);case 6:var o=Ro,l=Fa;Ro=null,ru(e,t,n),Ro=o,Fa=l,Ro!==null&&(Fa?(e=Ro,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ro.removeChild(n.stateNode));break;case 18:Ro!==null&&(Fa?(e=Ro,n=n.stateNode,e.nodeType===8?$4(e.parentNode,n):e.nodeType===1&&$4(e,n),Mg(e)):$4(Ro,n.stateNode));break;case 4:o=Ro,l=Fa,Ro=n.stateNode.containerInfo,Fa=!0,ru(e,t,n),Ro=o,Fa=l;break;case 0:case 11:case 14:case 15:if(!Ko&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){l=o=o.next;do{var d=l,g=d.destroy;d=d.tag,g!==void 0&&(d&2||d&4)&&E5(n,t,g),l=l.next}while(l!==o)}ru(e,t,n);break;case 1:if(!Ko&&(Uf(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(s){qr(n,t,s)}ru(e,t,n);break;case 21:ru(e,t,n);break;case 22:n.mode&1?(Ko=(o=Ko)||n.memoizedState!==null,ru(e,t,n),Ko=o):ru(e,t,n);break;default:ru(e,t,n)}}function Dz(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GX),t.forEach(function(o){var l=iJ.bind(null,e,o);n.has(o)||(n.add(o),o.then(l,l))})}}function Va(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var l=n[o];try{var d=e,g=t,s=g;e:for(;s!==null;){switch(s.tag){case 5:Ro=s.stateNode,Fa=!1;break e;case 3:Ro=s.stateNode.containerInfo,Fa=!0;break e;case 4:Ro=s.stateNode.containerInfo,Fa=!0;break e}s=s.return}if(Ro===null)throw Error(vn(160));Ez(d,g,l),Ro=null,Fa=!1;var v=l.alternate;v!==null&&(v.return=null),l.return=null}catch(E){qr(l,t,E)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Cz(t,e),t=t.sibling}function Cz(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Va(t,e),gl(e),o&4){try{Hg(3,e,e.return),Mv(3,e)}catch(Y){qr(e,e.return,Y)}try{Hg(5,e,e.return)}catch(Y){qr(e,e.return,Y)}}break;case 1:Va(t,e),gl(e),o&512&&n!==null&&Uf(n,n.return);break;case 5:if(Va(t,e),gl(e),o&512&&n!==null&&Uf(n,n.return),e.flags&32){var l=e.stateNode;try{hg(l,"")}catch(Y){qr(e,e.return,Y)}}if(o&4&&(l=e.stateNode,l!=null)){var d=e.memoizedProps,g=n!==null?n.memoizedProps:d,s=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{s==="input"&&d.type==="radio"&&d.name!=null&&nL(l,d),a4(s,g);var E=a4(s,d);for(g=0;g<v.length;g+=2){var z=v[g],O=v[g+1];z==="style"?uL(l,O):z==="dangerouslySetInnerHTML"?lL(l,O):z==="children"?hg(l,O):Hw(l,z,O,E)}switch(s){case"input":n4(l,d);break;case"textarea":oL(l,d);break;case"select":var j=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!d.multiple;var F=d.value;F!=null?_f(l,!!d.multiple,F,!1):j!==!!d.multiple&&(d.defaultValue!=null?_f(l,!!d.multiple,d.defaultValue,!0):_f(l,!!d.multiple,d.multiple?[]:"",!1))}l[zg]=d}catch(Y){qr(e,e.return,Y)}}break;case 6:if(Va(t,e),gl(e),o&4){if(e.stateNode===null)throw Error(vn(162));l=e.stateNode,d=e.memoizedProps;try{l.nodeValue=d}catch(Y){qr(e,e.return,Y)}}break;case 3:if(Va(t,e),gl(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{Mg(t.containerInfo)}catch(Y){qr(e,e.return,Y)}break;case 4:Va(t,e),gl(e);break;case 13:Va(t,e),gl(e),l=e.child,l.flags&8192&&(d=l.memoizedState!==null,l.stateNode.isHidden=d,!d||l.alternate!==null&&l.alternate.memoizedState!==null||(z5=to())),o&4&&Dz(e);break;case 22:if(z=n!==null&&n.memoizedState!==null,e.mode&1?(Ko=(E=Ko)||z,Va(t,e),Ko=E):Va(t,e),gl(e),o&8192){if(E=e.memoizedState!==null,(e.stateNode.isHidden=E)&&!z&&e.mode&1)for($n=e,z=e.child;z!==null;){for(O=$n=z;$n!==null;){switch(j=$n,F=j.child,j.tag){case 0:case 11:case 14:case 15:Hg(4,j,j.return);break;case 1:Uf(j,j.return);var $=j.stateNode;if(typeof $.componentWillUnmount=="function"){o=j,n=j.return;try{t=o,$.props=t.memoizedProps,$.state=t.memoizedState,$.componentWillUnmount()}catch(Y){qr(o,n,Y)}}break;case 5:Uf(j,j.return);break;case 22:if(j.memoizedState!==null){Lz(O);continue}}F!==null?(F.return=j,$n=F):Lz(O)}z=z.sibling}e:for(z=null,O=e;;){if(O.tag===5){if(z===null){z=O;try{l=O.stateNode,E?(d=l.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(s=O.stateNode,v=O.memoizedProps.style,g=v!=null&&v.hasOwnProperty("display")?v.display:null,s.style.display=cL("display",g))}catch(Y){qr(e,e.return,Y)}}}else if(O.tag===6){if(z===null)try{O.stateNode.nodeValue=E?"":O.memoizedProps}catch(Y){qr(e,e.return,Y)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;z===O&&(z=null),O=O.return}z===O&&(z=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:Va(t,e),gl(e),o&4&&Dz(e);break;case 21:break;default:Va(t,e),gl(e)}}function gl(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Tz(n)){var o=n;break e}n=n.return}throw Error(vn(160))}switch(o.tag){case 5:var l=o.stateNode;o.flags&32&&(hg(l,""),o.flags&=-33);var d=Sz(e);A5(e,d,l);break;case 3:case 4:var g=o.stateNode.containerInfo,s=Sz(e);C5(e,s,g);break;default:throw Error(vn(161))}}catch(v){qr(e,e.return,v)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function WX(e,t,n){$n=e,Az(e)}function Az(e,t,n){for(var o=(e.mode&1)!==0;$n!==null;){var l=$n,d=l.child;if(l.tag===22&&o){var g=l.memoizedState!==null||bv;if(!g){var s=l.alternate,v=s!==null&&s.memoizedState!==null||Ko;s=bv;var E=Ko;if(bv=g,(Ko=v)&&!E)for($n=l;$n!==null;)g=$n,v=g.child,g.tag===22&&g.memoizedState!==null?zz(l):v!==null?(v.return=g,$n=v):zz(l);for(;d!==null;)$n=d,Az(d),d=d.sibling;$n=l,bv=s,Ko=E}Nz(e)}else l.subtreeFlags&8772&&d!==null?(d.return=l,$n=d):Nz(e)}}function Nz(e){for(;$n!==null;){var t=$n;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ko||Mv(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Ko)if(n===null)o.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ba(t.type,n.memoizedProps);o.componentDidUpdate(l,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&D8(t,d,o);break;case 3:var g=t.updateQueue;if(g!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}D8(t,g,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var v=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":v.autoFocus&&n.focus();break;case"img":v.src&&(n.src=v.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var E=t.alternate;if(E!==null){var z=E.memoizedState;if(z!==null){var O=z.dehydrated;O!==null&&Mg(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(vn(163))}Ko||t.flags&512&&D5(t)}catch(j){qr(t,t.return,j)}}if(t===e){$n=null;break}if(n=t.sibling,n!==null){n.return=t.return,$n=n;break}$n=t.return}}function Lz(e){for(;$n!==null;){var t=$n;if(t===e){$n=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$n=n;break}$n=t.return}}function zz(e){for(;$n!==null;){var t=$n;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Mv(4,t)}catch(v){qr(t,n,v)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var l=t.return;try{o.componentDidMount()}catch(v){qr(t,l,v)}}var d=t.return;try{D5(t)}catch(v){qr(t,d,v)}break;case 5:var g=t.return;try{D5(t)}catch(v){qr(t,g,v)}}}catch(v){qr(t,t.return,v)}if(t===e){$n=null;break}var s=t.sibling;if(s!==null){s.return=t.return,$n=s;break}$n=t.return}}var qX=Math.ceil,wv=Xl.ReactCurrentDispatcher,N5=Xl.ReactCurrentOwner,ma=Xl.ReactCurrentBatchConfig,ir=0,Io=null,so=null,Po=0,Qs=0,Bf=Jc(0),mo=0,Qg=null,Nh=0,Iv=0,L5=0,Yg=null,Is=null,z5=0,Ff=1/0,sc=null,Tv=!1,k5=null,ou=null,Sv=!1,su=null,Ev=0,Gg=0,O5=null,Dv=-1,Cv=0;function hs(){return ir&6?to():Dv!==-1?Dv:Dv=to()}function au(e){return e.mode&1?ir&2&&Po!==0?Po&-Po:zX.transition!==null?(Cv===0&&(Cv=TL()),Cv):(e=cr,e!==0||(e=window.event,e=e===void 0?16:kL(e.type)),e):1}function $a(e,t,n,o){if(50<Gg)throw Gg=0,O5=null,Error(vn(185));yg(e,n,o),(!(ir&2)||e!==Io)&&(e===Io&&(!(ir&2)&&(Iv|=n),mo===4&&lu(e,Po)),Ts(e,o),n===1&&ir===0&&!(t.mode&1)&&(Ff=to()+500,iv&&tu()))}function Ts(e,t){var n=e.callbackNode;zK(e,t);var o=P_(e,e===Io?Po:0);if(o===0)n!==null&&ML(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&ML(n),t===1)e.tag===0?LX(Oz.bind(null,e)):v8(Oz.bind(null,e)),DX(function(){!(ir&6)&&tu()}),n=null;else{switch(SL(o)){case 1:n=p4;break;case 4:n=wL;break;case 16:n=k_;break;case 536870912:n=IL;break;default:n=k_}n=$z(n,kz.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kz(e,t){if(Dv=-1,Cv=0,ir&6)throw Error(vn(327));var n=e.callbackNode;if(Vf()&&e.callbackNode!==n)return null;var o=P_(e,e===Io?Po:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=Av(e,o);else{t=o;var l=ir;ir|=2;var d=Rz();(Io!==e||Po!==t)&&(sc=null,Ff=to()+500,zh(e,t));do try{JX();break}catch(s){jz(e,s)}while(1);J4(),wv.current=d,ir=l,so!==null?t=0:(Io=null,Po=0,t=mo)}if(t!==0){if(t===2&&(l=m4(e),l!==0&&(o=l,t=j5(e,l))),t===1)throw n=Qg,zh(e,0),lu(e,o),Ts(e,to()),n;if(t===6)lu(e,o);else{if(l=e.current.alternate,!(o&30)&&!KX(l)&&(t=Av(e,o),t===2&&(d=m4(e),d!==0&&(o=d,t=j5(e,d))),t===1))throw n=Qg,zh(e,0),lu(e,o),Ts(e,to()),n;switch(e.finishedWork=l,e.finishedLanes=o,t){case 0:case 1:throw Error(vn(345));case 2:kh(e,Is,sc);break;case 3:if(lu(e,o),(o&130023424)===o&&(t=z5+500-to(),10<t)){if(P_(e,0)!==0)break;if(l=e.suspendedLanes,(l&o)!==o){hs(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=V4(kh.bind(null,e,Is,sc),t);break}kh(e,Is,sc);break;case 4:if(lu(e,o),(o&4194240)===o)break;for(t=e.eventTimes,l=-1;0<o;){var g=31-Ra(o);d=1<<g,g=t[g],g>l&&(l=g),o&=~d}if(o=l,o=to()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*qX(o/1960))-o,10<o){e.timeoutHandle=V4(kh.bind(null,e,Is,sc),o);break}kh(e,Is,sc);break;case 5:kh(e,Is,sc);break;default:throw Error(vn(329))}}}return Ts(e,to()),e.callbackNode===n?kz.bind(null,e):null}function j5(e,t){var n=Yg;return e.current.memoizedState.isDehydrated&&(zh(e,t).flags|=256),e=Av(e,t),e!==2&&(t=Is,Is=n,t!==null&&R5(t)),e}function R5(e){Is===null?Is=e:Is.push.apply(Is,e)}function KX(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var l=n[o],d=l.getSnapshot;l=l.value;try{if(!Pa(d(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function lu(e,t){for(t&=~L5,t&=~Iv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ra(t),o=1<<n;e[n]=-1,t&=~o}}function Oz(e){if(ir&6)throw Error(vn(327));Vf();var t=P_(e,0);if(!(t&1))return Ts(e,to()),null;var n=Av(e,t);if(e.tag!==0&&n===2){var o=m4(e);o!==0&&(t=o,n=j5(e,o))}if(n===1)throw n=Qg,zh(e,0),lu(e,t),Ts(e,to()),n;if(n===6)throw Error(vn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kh(e,Is,sc),Ts(e,to()),null}function P5(e,t){var n=ir;ir|=1;try{return e(t)}finally{ir=n,ir===0&&(Ff=to()+500,iv&&tu())}}function Lh(e){su!==null&&su.tag===0&&!(ir&6)&&Vf();var t=ir;ir|=1;var n=ma.transition,o=cr;try{if(ma.transition=null,cr=1,e)return e()}finally{cr=o,ma.transition=n,ir=t,!(ir&6)&&tu()}}function U5(){Qs=Bf.current,Ar(Bf)}function zh(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,EX(n)),so!==null)for(n=so.return;n!==null;){var o=n;switch(Z4(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&tv();break;case 3:Rf(),Ar(bs),Ar(Zo),c5();break;case 5:a5(o);break;case 4:Rf();break;case 13:Ar(Fr);break;case 19:Ar(Fr);break;case 10:e5(o.type._context);break;case 22:case 23:U5()}n=n.return}if(Io=e,so=e=cu(e.current,null),Po=Qs=t,mo=0,Qg=null,L5=Iv=Nh=0,Is=Yg=null,Dh!==null){for(t=0;t<Dh.length;t++)if(n=Dh[t],o=n.interleaved,o!==null){n.interleaved=null;var l=o.next,d=n.pending;if(d!==null){var g=d.next;d.next=l,o.next=g}n.pending=o}Dh=null}return e}function jz(e,t){do{var n=so;try{if(J4(),pv.current=_v,mv){for(var o=Vr.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}mv=!1}if(Ah=0,wo=po=Vr=null,Ug=!1,Bg=0,N5.current=null,n===null||n.return===null){mo=1,Qg=t,so=null;break}e:{var d=e,g=n.return,s=n,v=t;if(t=Po,s.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){var E=v,z=s,O=z.tag;if(!(z.mode&1)&&(O===0||O===11||O===15)){var j=z.alternate;j?(z.updateQueue=j.updateQueue,z.memoizedState=j.memoizedState,z.lanes=j.lanes):(z.updateQueue=null,z.memoizedState=null)}var F=az(g);if(F!==null){F.flags&=-257,lz(F,g,s,d,t),F.mode&1&&sz(d,E,t),t=F,v=E;var $=t.updateQueue;if($===null){var Y=new Set;Y.add(v),t.updateQueue=Y}else $.add(v);break e}else{if(!(t&1)){sz(d,E,t),B5();break e}v=Error(vn(426))}}else if(jr&&s.mode&1){var ie=az(g);if(ie!==null){!(ie.flags&65536)&&(ie.flags|=256),lz(ie,g,s,d,t),K4(Pf(v,s));break e}}d=v=Pf(v,s),mo!==4&&(mo=2),Yg===null?Yg=[d]:Yg.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var K=rz(d,v,t);E8(d,K);break e;case 1:s=v;var J=d.type,te=d.stateNode;if(!(d.flags&128)&&(typeof J.getDerivedStateFromError=="function"||te!==null&&typeof te.componentDidCatch=="function"&&(ou===null||!ou.has(te)))){d.flags|=65536,t&=-t,d.lanes|=t;var oe=oz(d,s,t);E8(d,oe);break e}}d=d.return}while(d!==null)}Uz(n)}catch(pe){t=pe,so===n&&n!==null&&(so=n=n.return);continue}break}while(1)}function Rz(){var e=wv.current;return wv.current=_v,e===null?_v:e}function B5(){(mo===0||mo===3||mo===2)&&(mo=4),Io===null||!(Nh&268435455)&&!(Iv&268435455)||lu(Io,Po)}function Av(e,t){var n=ir;ir|=2;var o=Rz();(Io!==e||Po!==t)&&(sc=null,zh(e,t));do try{XX();break}catch(l){jz(e,l)}while(1);if(J4(),ir=n,wv.current=o,so!==null)throw Error(vn(261));return Io=null,Po=0,mo}function XX(){for(;so!==null;)Pz(so)}function JX(){for(;so!==null&&!IK();)Pz(so)}function Pz(e){var t=Vz(e.alternate,e,Qs);e.memoizedProps=e.pendingProps,t===null?Uz(e):so=t,N5.current=null}function Uz(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=YX(n,t),n!==null){n.flags&=32767,so=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{mo=6,so=null;return}}else if(n=QX(n,t,Qs),n!==null){so=n;return}if(t=t.sibling,t!==null){so=t;return}so=t=e}while(t!==null);mo===0&&(mo=5)}function kh(e,t,n){var o=cr,l=ma.transition;try{ma.transition=null,cr=1,eJ(e,t,n,o)}finally{ma.transition=l,cr=o}return null}function eJ(e,t,n,o){do Vf();while(su!==null);if(ir&6)throw Error(vn(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(vn(177));e.callbackNode=null,e.callbackPriority=0;var d=n.lanes|n.childLanes;if(kK(e,d),e===Io&&(so=Io=null,Po=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Sv||(Sv=!0,$z(k_,function(){return Vf(),null})),d=(n.flags&15990)!==0,n.subtreeFlags&15990||d){d=ma.transition,ma.transition=null;var g=cr;cr=1;var s=ir;ir|=4,N5.current=null,ZX(e,n),Cz(n,e),xX(B4),F_=!!U4,B4=U4=null,e.current=n,WX(n),TK(),ir=s,cr=g,ma.transition=d}else e.current=n;if(Sv&&(Sv=!1,su=e,Ev=l),d=e.pendingLanes,d===0&&(ou=null),DK(n.stateNode),Ts(e,to()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],o(l.value,{componentStack:l.stack,digest:l.digest});if(Tv)throw Tv=!1,e=k5,k5=null,e;return Ev&1&&e.tag!==0&&Vf(),d=e.pendingLanes,d&1?e===O5?Gg++:(Gg=0,O5=e):Gg=0,tu(),null}function Vf(){if(su!==null){var e=SL(Ev),t=ma.transition,n=cr;try{if(ma.transition=null,cr=16>e?16:e,su===null)var o=!1;else{if(e=su,su=null,Ev=0,ir&6)throw Error(vn(331));var l=ir;for(ir|=4,$n=e.current;$n!==null;){var d=$n,g=d.child;if($n.flags&16){var s=d.deletions;if(s!==null){for(var v=0;v<s.length;v++){var E=s[v];for($n=E;$n!==null;){var z=$n;switch(z.tag){case 0:case 11:case 15:Hg(8,z,d)}var O=z.child;if(O!==null)O.return=z,$n=O;else for(;$n!==null;){z=$n;var j=z.sibling,F=z.return;if(Iz(z),z===E){$n=null;break}if(j!==null){j.return=F,$n=j;break}$n=F}}}var $=d.alternate;if($!==null){var Y=$.child;if(Y!==null){$.child=null;do{var ie=Y.sibling;Y.sibling=null,Y=ie}while(Y!==null)}}$n=d}}if(d.subtreeFlags&2064&&g!==null)g.return=d,$n=g;else e:for(;$n!==null;){if(d=$n,d.flags&2048)switch(d.tag){case 0:case 11:case 15:Hg(9,d,d.return)}var K=d.sibling;if(K!==null){K.return=d.return,$n=K;break e}$n=d.return}}var J=e.current;for($n=J;$n!==null;){g=$n;var te=g.child;if(g.subtreeFlags&2064&&te!==null)te.return=g,$n=te;else e:for(g=J;$n!==null;){if(s=$n,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Mv(9,s)}}catch(pe){qr(s,s.return,pe)}if(s===g){$n=null;break e}var oe=s.sibling;if(oe!==null){oe.return=s.return,$n=oe;break e}$n=s.return}}if(ir=l,tu(),dl&&typeof dl.onPostCommitFiberRoot=="function")try{dl.onPostCommitFiberRoot(O_,e)}catch{}o=!0}return o}finally{cr=n,ma.transition=t}}return!1}function Bz(e,t,n){t=Pf(n,t),t=rz(e,t,1),e=iu(e,t,1),t=hs(),e!==null&&(yg(e,1,t),Ts(e,t))}function qr(e,t,n){if(e.tag===3)Bz(e,e,n);else for(;t!==null;){if(t.tag===3){Bz(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ou===null||!ou.has(o))){e=Pf(n,e),e=oz(t,e,1),t=iu(t,e,1),e=hs(),t!==null&&(yg(t,1,e),Ts(t,e));break}}t=t.return}}function tJ(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=hs(),e.pingedLanes|=e.suspendedLanes&n,Io===e&&(Po&n)===n&&(mo===4||mo===3&&(Po&130023424)===Po&&500>to()-z5?zh(e,0):L5|=n),Ts(e,t)}function Fz(e,t){t===0&&(e.mode&1?(t=R_,R_<<=1,!(R_&130023424)&&(R_=4194304)):t=1);var n=hs();e=ic(e,t),e!==null&&(yg(e,t,n),Ts(e,n))}function nJ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fz(e,n)}function iJ(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(vn(314))}o!==null&&o.delete(t),Fz(e,n)}var Vz;Vz=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bs.current)ws=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ws=!1,HX(e,t,n);ws=!!(e.flags&131072)}else ws=!1,jr&&t.flags&1048576&&x8(t,ov,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;xv(e,t),e=t.pendingProps;var l=Af(t,Zo.current);Of(t,n),l=d5(null,t,o,e,l,n);var d=f5();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ms(o)?(d=!0,nv(t)):d=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,i5(t),l.updater=hv,t.stateNode=l,l._reactInternals=t,o5(t,o,e,n),t=b5(null,t,o,!0,d,n)):(t.tag=0,jr&&d&&G4(t),us(null,t,l,n),t=t.child),t;case 16:o=t.elementType;e:{switch(xv(e,t),e=t.pendingProps,l=o._init,o=l(o._payload),t.type=o,l=t.tag=oJ(o),e=Ba(o,e),l){case 0:t=x5(null,t,o,e,n);break e;case 1:t=pz(null,t,o,e,n);break e;case 11:t=cz(null,t,o,e,n);break e;case 14:t=uz(null,t,o,Ba(o.type,e),n);break e}throw Error(vn(306,o,""))}return t;case 0:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ba(o,l),x5(e,t,o,l,n);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ba(o,l),pz(e,t,o,l,n);case 3:e:{if(mz(t),e===null)throw Error(vn(387));o=t.pendingProps,d=t.memoizedState,l=d.element,S8(e,t),uv(t,o,null,n);var g=t.memoizedState;if(o=g.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){l=Pf(Error(vn(423)),t),t=gz(e,t,o,n,l);break e}else if(o!==l){l=Pf(Error(vn(424)),t),t=gz(e,t,o,n,l);break e}else for(Hs=Xc(t.stateNode.containerInfo.firstChild),$s=t,jr=!0,Ua=null,n=O8(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zf(),o===l){t=oc(e,t,n);break e}us(e,t,o,n)}t=t.child}return t;case 5:return j8(t),e===null&&q4(t),o=t.type,l=t.pendingProps,d=e!==null?e.memoizedProps:null,g=l.children,F4(o,l)?g=null:d!==null&&F4(o,d)&&(t.flags|=32),fz(e,t),us(e,t,g,n),t.child;case 6:return e===null&&q4(t),null;case 13:return yz(e,t,n);case 4:return s5(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=jf(t,null,o,n):us(e,t,o,n),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ba(o,l),cz(e,t,o,l,n);case 7:return us(e,t,t.pendingProps,n),t.child;case 8:return us(e,t,t.pendingProps.children,n),t.child;case 12:return us(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,l=t.pendingProps,d=t.memoizedProps,g=l.value,Tr(av,o._currentValue),o._currentValue=g,d!==null)if(Pa(d.value,g)){if(d.children===l.children&&!bs.current){t=oc(e,t,n);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var s=d.dependencies;if(s!==null){g=d.child;for(var v=s.firstContext;v!==null;){if(v.context===o){if(d.tag===1){v=rc(-1,n&-n),v.tag=2;var E=d.updateQueue;if(E!==null){E=E.shared;var z=E.pending;z===null?v.next=v:(v.next=z.next,z.next=v),E.pending=v}}d.lanes|=n,v=d.alternate,v!==null&&(v.lanes|=n),t5(d.return,n,t),s.lanes|=n;break}v=v.next}}else if(d.tag===10)g=d.type===t.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(vn(341));g.lanes|=n,s=g.alternate,s!==null&&(s.lanes|=n),t5(g,n,t),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===t){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}us(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,Of(t,n),l=fa(l),o=o(l),t.flags|=1,us(e,t,o,n),t.child;case 14:return o=t.type,l=Ba(o,t.pendingProps),l=Ba(o.type,l),uz(e,t,o,l,n);case 15:return hz(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ba(o,l),xv(e,t),t.tag=1,Ms(o)?(e=!0,nv(t)):e=!1,Of(t,n),N8(t,o,l),o5(t,o,l,n),b5(null,t,o,!0,e,n);case 19:return vz(e,t,n);case 22:return dz(e,t,n)}throw Error(vn(156,t.tag))};function $z(e,t){return bL(e,t)}function rJ(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ga(e,t,n,o){return new rJ(e,t,n,o)}function F5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oJ(e){if(typeof e=="function")return F5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gw)return 11;if(e===qw)return 14}return 2}function cu(e,t){var n=e.alternate;return n===null?(n=ga(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nv(e,t,n,o,l,d){var g=2;if(o=e,typeof e=="function")F5(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case yf:return Oh(n.children,l,d,t);case Qw:g=8,l|=8;break;case Yw:return e=ga(12,n,t,l|2),e.elementType=Yw,e.lanes=d,e;case Zw:return e=ga(13,n,t,l),e.elementType=Zw,e.lanes=d,e;case Ww:return e=ga(19,n,t,l),e.elementType=Ww,e.lanes=d,e;case KN:return Lv(n,l,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case WN:g=10;break e;case qN:g=9;break e;case Gw:g=11;break e;case qw:g=14;break e;case Hc:g=16,o=null;break e}throw Error(vn(130,e==null?e:typeof e,""))}return t=ga(g,n,t,l),t.elementType=e,t.type=o,t.lanes=d,t}function Oh(e,t,n,o){return e=ga(7,e,o,t),e.lanes=n,e}function Lv(e,t,n,o){return e=ga(22,e,o,t),e.elementType=KN,e.lanes=n,e.stateNode={isHidden:!1},e}function V5(e,t,n){return e=ga(6,e,null,t),e.lanes=n,e}function $5(e,t,n){return t=ga(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sJ(e,t,n,o,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=g4(0),this.expirationTimes=g4(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=g4(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function H5(e,t,n,o,l,d,g,s,v){return e=new sJ(e,t,n,s,v),t===1?(t=1,d===!0&&(t|=8)):t=0,d=ga(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},i5(d),e}function aJ(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gf,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Hz(e){if(!e)return eu;e=e._reactInternals;e:{if(wh(e)!==e||e.tag!==1)throw Error(vn(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ms(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(vn(171))}if(e.tag===1){var n=e.type;if(Ms(n))return y8(e,n,t)}return t}function Qz(e,t,n,o,l,d,g,s,v){return e=H5(n,o,!0,e,l,d,g,s,v),e.context=Hz(null),n=e.current,o=hs(),l=au(n),d=rc(o,l),d.callback=t??null,iu(n,d,l),e.current.lanes=l,yg(e,l,o),Ts(e,o),e}function zv(e,t,n,o){var l=t.current,d=hs(),g=au(l);return n=Hz(n),t.context===null?t.context=n:t.pendingContext=n,t=rc(d,g),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=iu(l,t,g),e!==null&&($a(e,l,g,d),cv(e,l,g)),g}function kv(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Yz(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Q5(e,t){Yz(e,t),(e=e.alternate)&&Yz(e,t)}function lJ(){return null}var Gz=typeof reportError=="function"?reportError:function(e){console.error(e)};function Y5(e){this._internalRoot=e}Ov.prototype.render=Y5.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(vn(409));zv(e,t,null,null)},Ov.prototype.unmount=Y5.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lh(function(){zv(null,e,null,null)}),t[Jl]=null}};function Ov(e){this._internalRoot=e}Ov.prototype.unstable_scheduleHydration=function(e){if(e){var t=CL();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wc.length&&t!==0&&t<Wc[n].priority;n++);Wc.splice(n,0,e),n===0&&LL(e)}};function G5(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Zz(){}function cJ(e,t,n,o,l){if(l){if(typeof o=="function"){var d=o;o=function(){var E=kv(g);d.call(E)}}var g=Qz(t,o,e,0,null,!1,!1,"",Zz);return e._reactRootContainer=g,e[Jl]=g.current,Ng(e.nodeType===8?e.parentNode:e),Lh(),g}for(;l=e.lastChild;)e.removeChild(l);if(typeof o=="function"){var s=o;o=function(){var E=kv(v);s.call(E)}}var v=H5(e,0,!1,null,null,!1,!1,"",Zz);return e._reactRootContainer=v,e[Jl]=v.current,Ng(e.nodeType===8?e.parentNode:e),Lh(function(){zv(t,v,n,o)}),v}function Rv(e,t,n,o,l){var d=n._reactRootContainer;if(d){var g=d;if(typeof l=="function"){var s=l;l=function(){var v=kv(g);s.call(v)}}zv(t,g,e,l)}else g=cJ(n,t,e,l,o);return kv(g)}EL=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gg(t.pendingLanes);n!==0&&(y4(t,n|1),Ts(t,to()),!(ir&6)&&(Ff=to()+500,tu()))}break;case 13:Lh(function(){var o=ic(e,1);if(o!==null){var l=hs();$a(o,e,1,l)}}),Q5(e,1)}},_4=function(e){if(e.tag===13){var t=ic(e,134217728);if(t!==null){var n=hs();$a(t,e,134217728,n)}Q5(e,134217728)}},DL=function(e){if(e.tag===13){var t=au(e),n=ic(e,t);if(n!==null){var o=hs();$a(n,e,t,o)}Q5(e,t)}},CL=function(){return cr},AL=function(e,t){var n=cr;try{return cr=e,t()}finally{cr=n}},u4=function(e,t,n){switch(t){case"input":if(n4(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var l=ev(o);if(!l)throw Error(vn(90));eL(o),n4(o,l)}}}break;case"textarea":oL(e,n);break;case"select":t=n.value,t!=null&&_f(e,!!n.multiple,t,!1)}},pL=P5,mL=Lh;var uJ={usingClientEntryPoint:!1,Events:[kg,Df,ev,dL,fL,P5]},Zg={findFiberByHostInstance:Ih,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},hJ={bundleType:Zg.bundleType,version:Zg.version,rendererPackageName:Zg.rendererPackageName,rendererConfig:Zg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vL(e),e===null?null:e.stateNode},findFiberByHostInstance:Zg.findFiberByHostInstance||lJ,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pv.isDisabled&&Pv.supportsFiber)try{O_=Pv.inject(hJ),dl=Pv}catch{}}Bs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uJ,Bs.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!G5(t))throw Error(vn(200));return aJ(e,t,null,n)},Bs.createRoot=function(e,t){if(!G5(e))throw Error(vn(299));var n=!1,o="",l=Gz;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=H5(e,1,!1,null,null,n,!1,o,l),e[Jl]=t.current,Ng(e.nodeType===8?e.parentNode:e),new Y5(t)},Bs.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(vn(188)):(e=Object.keys(e).join(","),Error(vn(268,e)));return e=vL(t),e=e===null?null:e.stateNode,e},Bs.flushSync=function(e){return Lh(e)},Bs.hydrate=function(e,t,n){if(!jv(t))throw Error(vn(200));return Rv(null,e,t,!0,n)},Bs.hydrateRoot=function(e,t,n){if(!G5(e))throw Error(vn(405));var o=n!=null&&n.hydratedSources||null,l=!1,d="",g=Gz;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(d=n.identifierPrefix),n.onRecoverableError!==void 0&&(g=n.onRecoverableError)),t=Qz(t,null,e,1,n??null,l,!1,d,g),e[Jl]=t.current,Ng(e),o)for(e=0;e<o.length;e++)n=o[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Ov(t)},Bs.render=function(e,t,n){if(!jv(t))throw Error(vn(200));return Rv(null,e,t,!1,n)},Bs.unmountComponentAtNode=function(e){if(!jv(e))throw Error(vn(40));return e._reactRootContainer?(Lh(function(){Rv(null,null,e,!1,function(){e._reactRootContainer=null,e[Jl]=null})}),!0):!1},Bs.unstable_batchedUpdates=P5,Bs.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!jv(n))throw Error(vn(200));if(e==null||e._reactInternals===void 0)throw Error(vn(38));return Rv(e,t,n,!1,o)},Bs.version="18.2.0-next-9e3b772b8-20220608";function Wz(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wz)}catch(e){console.error(e)}}Wz(),VN.exports=Bs;var Z5=VN.exports;const Wg=Ud(Z5);var qz,Kz=Z5;qz=pf.createRoot=Kz.createRoot,pf.hydrateRoot=Kz.hydrateRoot;function dJ(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var fJ=dJ,Li=fJ;function pJ(e){return!!e&&typeof e.then=="function"}var Nr=pJ;function mJ(e,t){if(e!=null)return e;throw Li(t??"Got unexpected null or undefined")}var Rr=mJ;function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Uv{getValue(){throw Li("BaseLoadable")}toPromise(){throw Li("BaseLoadable")}valueMaybe(){throw Li("BaseLoadable")}valueOrThrow(){throw Li(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw Li("BaseLoadable")}promiseOrThrow(){throw Li(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw Li("BaseLoadable")}errorOrThrow(){throw Li(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw Li("BaseLoadable")}}class gJ extends Uv{constructor(t){super(),Ei(this,"state","hasValue"),Ei(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return Nr(n)?jh(n):$f(n)?n:qg(n)}catch(n){return Nr(n)?jh(n.next(()=>this.map(t))):Bv(n)}}}class yJ extends Uv{constructor(t){super(),Ei(this,"state","hasError"),Ei(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class Xz extends Uv{constructor(t){super(),Ei(this,"state","loading"),Ei(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return jh(this.contents.then(n=>{const o=t(n);if($f(o)){const l=o;switch(l.state){case"hasValue":return l.contents;case"hasError":throw l.contents;case"loading":return l.contents}}return o}).catch(n=>{if(Nr(n))return n.then(()=>this.map(t).contents);throw n}))}}function qg(e){return Object.freeze(new gJ(e))}function Bv(e){return Object.freeze(new yJ(e))}function jh(e){return Object.freeze(new Xz(e))}function Jz(){return Object.freeze(new Xz(new Promise(()=>{})))}function _J(e){return e.every(t=>t.state==="hasValue")?qg(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Bv(Rr(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):jh(Promise.all(e.map(t=>t.contents)))}function ek(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(l=>e[l])).map(l=>$f(l)?l:Nr(l)?jh(l):qg(l)),o=_J(n);return Array.isArray(e)?o:o.map(l=>Object.getOwnPropertyNames(e).reduce((d,g,s)=>({...d,[g]:l[s]}),{}))}function $f(e){return e instanceof Uv}var Rh={loadableWithValue:qg,loadableWithError:Bv,loadableWithPromise:jh,loadableLoading:Jz,loadableAll:ek,isLoadable:$f,RecoilLoadable:{of:e=>Nr(e)?jh(e):$f(e)?e:qg(e),error:e=>Bv(e),loading:()=>Jz(),all:ek,isLoadable:$f}},vJ=Rh.loadableWithValue,xJ=Rh.loadableWithError,bJ=Rh.loadableWithPromise,MJ=Rh.loadableLoading,wJ=Rh.loadableAll,IJ=Rh.isLoadable,TJ=Rh.RecoilLoadable,Kg=Object.freeze({__proto__:null,loadableWithValue:vJ,loadableWithError:xJ,loadableWithPromise:bJ,loadableLoading:MJ,loadableAll:wJ,isLoadable:IJ,RecoilLoadable:TJ});const W5={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function SJ(e,t){var n,o;const l=(n=process.env[e])===null||n===void 0||(o=n.toLowerCase())===null||o===void 0?void 0:o.trim();if(l==null||l==="")return;if(!["true","false"].includes(l))throw Li(`process.env.${e} value must be 'true', 'false', or empty: ${l}`);t(l==="true")}function EJ(e,t){var n;const o=(n=process.env[e])===null||n===void 0?void 0:n.trim();o==null||o===""||t(o.split(/\s*,\s*|\s+/))}function DJ(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(SJ("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{W5.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),EJ("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{W5.RECOIL_GKS_ENABLED.add(n)})}))}DJ();var Hf=W5;function Fv(e){return Hf.RECOIL_GKS_ENABLED.has(e)}Fv.setPass=e=>{Hf.RECOIL_GKS_ENABLED.add(e)},Fv.setFail=e=>{Hf.RECOIL_GKS_ENABLED.delete(e)},Fv.clear=()=>{Hf.RECOIL_GKS_ENABLED.clear()};var gr=Fv;function CJ(e,t,{error:n}={}){return null}var AJ=CJ,q5=AJ,K5,X5,J5;const NJ=(K5=Yi.createMutableSource)!==null&&K5!==void 0?K5:Yi.unstable_createMutableSource,tk=(X5=Yi.useMutableSource)!==null&&X5!==void 0?X5:Yi.unstable_useMutableSource,nk=(J5=Yi.useSyncExternalStore)!==null&&J5!==void 0?J5:Yi.unstable_useSyncExternalStore;function LJ(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=Yi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function zJ(){return gr("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:gr("recoil_sync_external_store")&&nk!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:gr("recoil_mutable_source")&&tk!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?gr("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:gr("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function kJ(){return!1}var Xg={createMutableSource:NJ,useMutableSource:tk,useSyncExternalStore:nk,currentRendererSupportsUseSyncExternalStore:LJ,reactMode:zJ,isFastRefreshEnabled:kJ};class eI{constructor(t){Ei(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class ik extends eI{}class rk extends eI{}function OJ(e){return e instanceof ik||e instanceof rk}var Vv={AbstractRecoilValue:eI,RecoilState:ik,RecoilValueReadOnly:rk,isRecoilValue:OJ},jJ=Vv.AbstractRecoilValue,RJ=Vv.RecoilState,PJ=Vv.RecoilValueReadOnly,UJ=Vv.isRecoilValue,Qf=Object.freeze({__proto__:null,AbstractRecoilValue:jJ,RecoilState:RJ,RecoilValueReadOnly:PJ,isRecoilValue:UJ});function BJ(e,t){return function*(){let n=0;for(const o of e)yield t(o,n++)}()}var $v=BJ;class ok{}const FJ=new ok,Ph=new Map,tI=new Map;function VJ(e){return $v(e,t=>Rr(tI.get(t)))}function $J(e){if(Ph.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in
|
|
72
|
+
`+d.stack}return{value:e,source:t,stack:l,digest:null}}function _5(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function v5(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var FX=typeof WeakMap=="function"?WeakMap:Map;function rz(e,t,n){n=rc(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Tv||(Tv=!0,k5=o),v5(e,t)},n}function oz(e,t,n){n=rc(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var l=t.value;n.payload=function(){return o(l)},n.callback=function(){v5(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(n.callback=function(){v5(e,t),typeof o!="function"&&(ou===null?ou=new Set([this]):ou.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),n}function sz(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new FX;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(n)||(l.add(n),e=tJ.bind(null,e,t,n),t.then(e,e))}function az(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lz(e,t,n,o,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=rc(-1,1),t.tag=2,iu(n,t,1))),n.lanes|=1),e)}var VX=Xl.ReactCurrentOwner,ws=!1;function us(e,t,n,o){t.child=e===null?O8(t,null,n,o):jf(t,e.child,n,o)}function cz(e,t,n,o,l){n=n.render;var d=t.ref;return Of(t,l),o=d5(e,t,n,o,d,l),n=f5(),e!==null&&!ws?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,oc(e,t,l)):(jr&&n&&G4(t),t.flags|=1,us(e,t,o,l),t.child)}function uz(e,t,n,o,l){if(e===null){var d=n.type;return typeof d=="function"&&!F5(d)&&d.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=d,hz(e,t,d,o,l)):(e=Nv(n.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!(e.lanes&l)){var g=d.memoizedProps;if(n=n.compare,n=n!==null?n:Dg,n(g,o)&&e.ref===t.ref)return oc(e,t,l)}return t.flags|=1,e=cu(d,o),e.ref=t.ref,e.return=t,t.child=e}function hz(e,t,n,o,l){if(e!==null){var d=e.memoizedProps;if(Dg(d,o)&&e.ref===t.ref)if(ws=!1,t.pendingProps=o=d,(e.lanes&l)!==0)e.flags&131072&&(ws=!0);else return t.lanes=e.lanes,oc(e,t,l)}return x5(e,t,n,o,l)}function dz(e,t,n){var o=t.pendingProps,l=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tr(Bf,Qs),Qs|=n;else{if(!(n&1073741824))return e=d!==null?d.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tr(Bf,Qs),Qs|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=d!==null?d.baseLanes:n,Tr(Bf,Qs),Qs|=o}else d!==null?(o=d.baseLanes|n,t.memoizedState=null):o=n,Tr(Bf,Qs),Qs|=o;return us(e,t,l,n),t.child}function fz(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function x5(e,t,n,o,l){var d=Ms(n)?Th:Zo.current;return d=Af(t,d),Of(t,l),n=d5(e,t,n,o,d,l),o=f5(),e!==null&&!ws?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,oc(e,t,l)):(jr&&o&&G4(t),t.flags|=1,us(e,t,n,l),t.child)}function pz(e,t,n,o,l){if(Ms(n)){var d=!0;nv(t)}else d=!1;if(Of(t,l),t.stateNode===null)xv(e,t),N8(t,n,o),o5(t,n,o,l),o=!0;else if(e===null){var g=t.stateNode,s=t.memoizedProps;g.props=s;var v=g.context,E=n.contextType;typeof E=="object"&&E!==null?E=fa(E):(E=Ms(n)?Th:Zo.current,E=Af(t,E));var z=n.getDerivedStateFromProps,O=typeof z=="function"||typeof g.getSnapshotBeforeUpdate=="function";O||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(s!==o||v!==E)&&L8(t,g,o,E),nu=!1;var j=t.memoizedState;g.state=j,uv(t,o,g,l),v=t.memoizedState,s!==o||j!==v||bs.current||nu?(typeof z=="function"&&(r5(t,n,z,o),v=t.memoizedState),(s=nu||A8(t,n,s,o,j,v,E))?(O||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=v),g.props=o,g.state=v,g.context=E,o=s):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{g=t.stateNode,S8(e,t),s=t.memoizedProps,E=t.type===t.elementType?s:Ba(t.type,s),g.props=E,O=t.pendingProps,j=g.context,v=n.contextType,typeof v=="object"&&v!==null?v=fa(v):(v=Ms(n)?Th:Zo.current,v=Af(t,v));var F=n.getDerivedStateFromProps;(z=typeof F=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(s!==O||j!==v)&&L8(t,g,o,v),nu=!1,j=t.memoizedState,g.state=j,uv(t,o,g,l);var $=t.memoizedState;s!==O||j!==$||bs.current||nu?(typeof F=="function"&&(r5(t,n,F,o),$=t.memoizedState),(E=nu||A8(t,n,E,o,j,$,v)||!1)?(z||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(o,$,v),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(o,$,v)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=$),g.props=o,g.state=$,g.context=v,o=E):(typeof g.componentDidUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),o=!1)}return b5(e,t,n,o,d,l)}function b5(e,t,n,o,l,d){fz(e,t);var g=(t.flags&128)!==0;if(!o&&!g)return l&&_8(t,n,!1),oc(e,t,d);o=t.stateNode,VX.current=t;var s=g&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&g?(t.child=jf(t,e.child,null,d),t.child=jf(t,null,s,d)):us(e,t,s,d),t.memoizedState=o.state,l&&_8(t,n,!0),t.child}function mz(e){var t=e.stateNode;t.pendingContext?g8(e,t.pendingContext,t.pendingContext!==t.context):t.context&&g8(e,t.context,!1),s5(e,t.containerInfo)}function gz(e,t,n,o,l){return zf(),K4(l),t.flags|=256,us(e,t,n,o),t.child}var M5={dehydrated:null,treeContext:null,retryLane:0};function w5(e){return{baseLanes:e,cachePool:null,transitions:null}}function yz(e,t,n){var o=t.pendingProps,l=Fr.current,d=!1,g=(t.flags&128)!==0,s;if((s=g)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Tr(Fr,l&1),e===null)return q4(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(g=o.children,e=o.fallback,d?(o=t.mode,d=t.child,g={mode:"hidden",children:g},!(o&1)&&d!==null?(d.childLanes=0,d.pendingProps=g):d=Lv(g,o,0,null),e=Oh(e,o,n,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=w5(n),t.memoizedState=M5,e):I5(t,g));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return $X(e,t,g,o,s,l,n);if(d){d=o.fallback,g=t.mode,l=e.child,s=l.sibling;var v={mode:"hidden",children:o.children};return!(g&1)&&t.child!==l?(o=t.child,o.childLanes=0,o.pendingProps=v,t.deletions=null):(o=cu(l,v),o.subtreeFlags=l.subtreeFlags&14680064),s!==null?d=cu(s,d):(d=Oh(d,g,n,null),d.flags|=2),d.return=t,o.return=t,o.sibling=d,t.child=o,o=d,d=t.child,g=e.child.memoizedState,g=g===null?w5(n):{baseLanes:g.baseLanes|n,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=e.childLanes&~n,t.memoizedState=M5,o}return d=e.child,e=d.sibling,o=cu(d,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function I5(e,t){return t=Lv({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vv(e,t,n,o){return o!==null&&K4(o),jf(t,e.child,null,n),e=I5(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $X(e,t,n,o,l,d,g){if(n)return t.flags&256?(t.flags&=-257,o=_5(Error(vn(422))),vv(e,t,g,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=o.fallback,l=t.mode,o=Lv({mode:"visible",children:o.children},l,0,null),d=Oh(d,l,g,null),d.flags|=2,o.return=t,d.return=t,o.sibling=d,t.child=o,t.mode&1&&jf(t,e.child,null,g),t.child.memoizedState=w5(g),t.memoizedState=M5,d);if(!(t.mode&1))return vv(e,t,g,null);if(l.data==="$!"){if(o=l.nextSibling&&l.nextSibling.dataset,o)var s=o.dgst;return o=s,d=Error(vn(419)),o=_5(d,o,void 0),vv(e,t,g,o)}if(s=(g&e.childLanes)!==0,ws||s){if(o=Io,o!==null){switch(g&-g){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(o.suspendedLanes|g)?0:l,l!==0&&l!==d.retryLane&&(d.retryLane=l,ic(e,l),$a(o,e,l,-1))}return B5(),o=_5(Error(vn(421))),vv(e,t,g,o)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=nJ.bind(null,e),l._reactRetry=t,null):(e=d.treeContext,Hs=Xc(l.nextSibling),$s=t,jr=!0,Ua=null,e!==null&&(ha[da++]=tc,ha[da++]=nc,ha[da++]=Sh,tc=e.id,nc=e.overflow,Sh=t),t=I5(t,o.children),t.flags|=4096,t)}function _z(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),t5(e.return,t,n)}function T5(e,t,n,o,l){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:l}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=n,d.tailMode=l)}function vz(e,t,n){var o=t.pendingProps,l=o.revealOrder,d=o.tail;if(us(e,t,o.children,n),o=Fr.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_z(e,n,t);else if(e.tag===19)_z(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Tr(Fr,o),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&fv(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),T5(t,!1,l,n,d);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&fv(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}T5(t,!0,n,null,d);break;case"together":T5(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function oc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nh|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(vn(153));if(t.child!==null){for(e=t.child,n=cu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=cu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function HX(e,t,n){switch(t.tag){case 3:mz(t),zf();break;case 5:j8(t);break;case 1:Ms(t.type)&&nv(t);break;case 4:s5(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,l=t.memoizedProps.value;Tr(av,o._currentValue),o._currentValue=l;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Tr(Fr,Fr.current&1),t.flags|=128,null):n&t.child.childLanes?yz(e,t,n):(Tr(Fr,Fr.current&1),e=oc(e,t,n),e!==null?e.sibling:null);Tr(Fr,Fr.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return vz(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Tr(Fr,Fr.current),o)break;return null;case 22:case 23:return t.lanes=0,dz(e,t,n)}return oc(e,t,n)}var xz,S5,bz,Mz;xz=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},S5=function(){},bz=function(e,t,n,o){var l=e.memoizedProps;if(l!==o){e=t.stateNode,Ch(pl.current);var d=null;switch(n){case"input":l=t4(e,l),o=t4(e,o),d=[];break;case"select":l=Br({},l,{value:void 0}),o=Br({},o,{value:void 0}),d=[];break;case"textarea":l=r4(e,l),o=r4(e,o),d=[];break;default:typeof l.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=J_)}s4(n,o);var g;n=null;for(E in l)if(!o.hasOwnProperty(E)&&l.hasOwnProperty(E)&&l[E]!=null)if(E==="style"){var s=l[E];for(g in s)s.hasOwnProperty(g)&&(n||(n={}),n[g]="")}else E!=="dangerouslySetInnerHTML"&&E!=="children"&&E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(ag.hasOwnProperty(E)?d||(d=[]):(d=d||[]).push(E,null));for(E in o){var v=o[E];if(s=l!=null?l[E]:void 0,o.hasOwnProperty(E)&&v!==s&&(v!=null||s!=null))if(E==="style")if(s){for(g in s)!s.hasOwnProperty(g)||v&&v.hasOwnProperty(g)||(n||(n={}),n[g]="");for(g in v)v.hasOwnProperty(g)&&s[g]!==v[g]&&(n||(n={}),n[g]=v[g])}else n||(d||(d=[]),d.push(E,n)),n=v;else E==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,s=s?s.__html:void 0,v!=null&&s!==v&&(d=d||[]).push(E,v)):E==="children"?typeof v!="string"&&typeof v!="number"||(d=d||[]).push(E,""+v):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&(ag.hasOwnProperty(E)?(v!=null&&E==="onScroll"&&Cr("scroll",e),d||s===v||(d=[])):(d=d||[]).push(E,v))}n&&(d=d||[]).push("style",n);var E=d;(t.updateQueue=E)&&(t.flags|=4)}},Mz=function(e,t,n,o){n!==o&&(t.flags|=4)};function $g(e,t){if(!jr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function qo(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,o|=l.subtreeFlags&14680064,o|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function QX(e,t,n){var o=t.pendingProps;switch(Z4(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qo(t),null;case 1:return Ms(t.type)&&tv(),qo(t),null;case 3:return o=t.stateNode,Rf(),Ar(bs),Ar(Zo),c5(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(sv(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ua!==null&&(R5(Ua),Ua=null))),S5(e,t),qo(t),null;case 5:a5(t);var l=Ch(Pg.current);if(n=t.type,e!==null&&t.stateNode!=null)bz(e,t,n,o,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(vn(166));return qo(t),null}if(e=Ch(pl.current),sv(t)){o=t.stateNode,n=t.type;var d=t.memoizedProps;switch(o[fl]=t,o[zg]=d,e=(t.mode&1)!==0,n){case"dialog":Cr("cancel",o),Cr("close",o);break;case"iframe":case"object":case"embed":Cr("load",o);break;case"video":case"audio":for(l=0;l<Ag.length;l++)Cr(Ag[l],o);break;case"source":Cr("error",o);break;case"img":case"image":case"link":Cr("error",o),Cr("load",o);break;case"details":Cr("toggle",o);break;case"input":tL(o,d),Cr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!d.multiple},Cr("invalid",o);break;case"textarea":rL(o,d),Cr("invalid",o)}s4(n,d),l=null;for(var g in d)if(d.hasOwnProperty(g)){var s=d[g];g==="children"?typeof s=="string"?o.textContent!==s&&(d.suppressHydrationWarning!==!0&&X_(o.textContent,s,e),l=["children",s]):typeof s=="number"&&o.textContent!==""+s&&(d.suppressHydrationWarning!==!0&&X_(o.textContent,s,e),l=["children",""+s]):ag.hasOwnProperty(g)&&s!=null&&g==="onScroll"&&Cr("scroll",o)}switch(n){case"input":C_(o),iL(o,d,!0);break;case"textarea":C_(o),sL(o);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(o.onclick=J_)}o=l,t.updateQueue=o,o!==null&&(t.flags|=4)}else{g=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=aL(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=g.createElement(n,{is:o.is}):(e=g.createElement(n),n==="select"&&(g=e,o.multiple?g.multiple=!0:o.size&&(g.size=o.size))):e=g.createElementNS(e,n),e[fl]=t,e[zg]=o,xz(e,t,!1,!1),t.stateNode=e;e:{switch(g=a4(n,o),n){case"dialog":Cr("cancel",e),Cr("close",e),l=o;break;case"iframe":case"object":case"embed":Cr("load",e),l=o;break;case"video":case"audio":for(l=0;l<Ag.length;l++)Cr(Ag[l],e);l=o;break;case"source":Cr("error",e),l=o;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),l=o;break;case"details":Cr("toggle",e),l=o;break;case"input":tL(e,o),l=t4(e,o),Cr("invalid",e);break;case"option":l=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=Br({},o,{value:void 0}),Cr("invalid",e);break;case"textarea":rL(e,o),l=r4(e,o),Cr("invalid",e);break;default:l=o}s4(n,l),s=l;for(d in s)if(s.hasOwnProperty(d)){var v=s[d];d==="style"?uL(e,v):d==="dangerouslySetInnerHTML"?(v=v?v.__html:void 0,v!=null&&lL(e,v)):d==="children"?typeof v=="string"?(n!=="textarea"||v!=="")&&hg(e,v):typeof v=="number"&&hg(e,""+v):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(ag.hasOwnProperty(d)?v!=null&&d==="onScroll"&&Cr("scroll",e):v!=null&&Hw(e,d,v,g))}switch(n){case"input":C_(e),iL(e,o,!1);break;case"textarea":C_(e),sL(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Qc(o.value));break;case"select":e.multiple=!!o.multiple,d=o.value,d!=null?_f(e,!!o.multiple,d,!1):o.defaultValue!=null&&_f(e,!!o.multiple,o.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=J_)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qo(t),null;case 6:if(e&&t.stateNode!=null)Mz(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(vn(166));if(n=Ch(Pg.current),Ch(pl.current),sv(t)){if(o=t.stateNode,n=t.memoizedProps,o[fl]=t,(d=o.nodeValue!==n)&&(e=$s,e!==null))switch(e.tag){case 3:X_(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&X_(o.nodeValue,n,(e.mode&1)!==0)}d&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[fl]=t,t.stateNode=o}return qo(t),null;case 13:if(Ar(Fr),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(jr&&Hs!==null&&t.mode&1&&!(t.flags&128))I8(),zf(),t.flags|=98560,d=!1;else if(d=sv(t),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(vn(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(vn(317));d[fl]=t}else zf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qo(t),d=!1}else Ua!==null&&(R5(Ua),Ua=null),d=!0;if(!d)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||Fr.current&1?mo===0&&(mo=3):B5())),t.updateQueue!==null&&(t.flags|=4),qo(t),null);case 4:return Rf(),S5(e,t),e===null&&Ng(t.stateNode.containerInfo),qo(t),null;case 10:return e5(t.type._context),qo(t),null;case 17:return Ms(t.type)&&tv(),qo(t),null;case 19:if(Ar(Fr),d=t.memoizedState,d===null)return qo(t),null;if(o=(t.flags&128)!==0,g=d.rendering,g===null)if(o)$g(d,!1);else{if(mo!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(g=fv(e),g!==null){for(t.flags|=128,$g(d,!1),o=g.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)d=n,e=o,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,e=g.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Tr(Fr,Fr.current&1|2),t.child}e=e.sibling}d.tail!==null&&to()>Ff&&(t.flags|=128,o=!0,$g(d,!1),t.lanes=4194304)}else{if(!o)if(e=fv(g),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$g(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!jr)return qo(t),null}else 2*to()-d.renderingStartTime>Ff&&n!==1073741824&&(t.flags|=128,o=!0,$g(d,!1),t.lanes=4194304);d.isBackwards?(g.sibling=t.child,t.child=g):(n=d.last,n!==null?n.sibling=g:t.child=g,d.last=g)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=to(),t.sibling=null,n=Fr.current,Tr(Fr,o?n&1|2:n&1),t):(qo(t),null);case 22:case 23:return U5(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?Qs&1073741824&&(qo(t),t.subtreeFlags&6&&(t.flags|=8192)):qo(t),null;case 24:return null;case 25:return null}throw Error(vn(156,t.tag))}function YX(e,t){switch(Z4(t),t.tag){case 1:return Ms(t.type)&&tv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rf(),Ar(bs),Ar(Zo),c5(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return a5(t),null;case 13:if(Ar(Fr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(vn(340));zf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ar(Fr),null;case 4:return Rf(),null;case 10:return e5(t.type._context),null;case 22:case 23:return U5(),null;case 24:return null;default:return null}}var bv=!1,Ko=!1,GX=typeof WeakSet=="function"?WeakSet:Set,$n=null;function Uf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){qr(e,t,o)}else n.current=null}function E5(e,t,n){try{n()}catch(o){qr(e,t,o)}}var wz=!1;function ZX(e,t){if(U4=F_,e=e8(),N4(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var l=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{n.nodeType,d.nodeType}catch{n=null;break e}var g=0,s=-1,v=-1,E=0,z=0,O=e,j=null;t:for(;;){for(var F;O!==n||l!==0&&O.nodeType!==3||(s=g+l),O!==d||o!==0&&O.nodeType!==3||(v=g+o),O.nodeType===3&&(g+=O.nodeValue.length),(F=O.firstChild)!==null;)j=O,O=F;for(;;){if(O===e)break t;if(j===n&&++E===l&&(s=g),j===d&&++z===o&&(v=g),(F=O.nextSibling)!==null)break;O=j,j=O.parentNode}O=F}n=s===-1||v===-1?null:{start:s,end:v}}else n=null}n=n||{start:0,end:0}}else n=null;for(B4={focusedElem:e,selectionRange:n},F_=!1,$n=t;$n!==null;)if(t=$n,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$n=e;else for(;$n!==null;){t=$n;try{var $=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if($!==null){var Y=$.memoizedProps,ie=$.memoizedState,K=t.stateNode,J=K.getSnapshotBeforeUpdate(t.elementType===t.type?Y:Ba(t.type,Y),ie);K.__reactInternalSnapshotBeforeUpdate=J}break;case 3:var te=t.stateNode.containerInfo;te.nodeType===1?te.textContent="":te.nodeType===9&&te.documentElement&&te.removeChild(te.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(vn(163))}}catch(oe){qr(t,t.return,oe)}if(e=t.sibling,e!==null){e.return=t.return,$n=e;break}$n=t.return}return $=wz,wz=!1,$}function Hg(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&e)===e){var d=l.destroy;l.destroy=void 0,d!==void 0&&E5(t,n,d)}l=l.next}while(l!==o)}}function Mv(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function D5(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Iz(e){var t=e.alternate;t!==null&&(e.alternate=null,Iz(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fl],delete t[zg],delete t[H4],delete t[AX],delete t[NX])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tz(e){return e.tag===5||e.tag===3||e.tag===4}function Sz(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function C5(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=J_));else if(o!==4&&(e=e.child,e!==null))for(C5(e,t,n),e=e.sibling;e!==null;)C5(e,t,n),e=e.sibling}function A5(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(A5(e,t,n),e=e.sibling;e!==null;)A5(e,t,n),e=e.sibling}var Ro=null,Fa=!1;function ru(e,t,n){for(n=n.child;n!==null;)Ez(e,t,n),n=n.sibling}function Ez(e,t,n){if(dl&&typeof dl.onCommitFiberUnmount=="function")try{dl.onCommitFiberUnmount(O_,n)}catch{}switch(n.tag){case 5:Ko||Uf(n,t);case 6:var o=Ro,l=Fa;Ro=null,ru(e,t,n),Ro=o,Fa=l,Ro!==null&&(Fa?(e=Ro,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ro.removeChild(n.stateNode));break;case 18:Ro!==null&&(Fa?(e=Ro,n=n.stateNode,e.nodeType===8?$4(e.parentNode,n):e.nodeType===1&&$4(e,n),Mg(e)):$4(Ro,n.stateNode));break;case 4:o=Ro,l=Fa,Ro=n.stateNode.containerInfo,Fa=!0,ru(e,t,n),Ro=o,Fa=l;break;case 0:case 11:case 14:case 15:if(!Ko&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){l=o=o.next;do{var d=l,g=d.destroy;d=d.tag,g!==void 0&&(d&2||d&4)&&E5(n,t,g),l=l.next}while(l!==o)}ru(e,t,n);break;case 1:if(!Ko&&(Uf(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(s){qr(n,t,s)}ru(e,t,n);break;case 21:ru(e,t,n);break;case 22:n.mode&1?(Ko=(o=Ko)||n.memoizedState!==null,ru(e,t,n),Ko=o):ru(e,t,n);break;default:ru(e,t,n)}}function Dz(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GX),t.forEach(function(o){var l=iJ.bind(null,e,o);n.has(o)||(n.add(o),o.then(l,l))})}}function Va(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var l=n[o];try{var d=e,g=t,s=g;e:for(;s!==null;){switch(s.tag){case 5:Ro=s.stateNode,Fa=!1;break e;case 3:Ro=s.stateNode.containerInfo,Fa=!0;break e;case 4:Ro=s.stateNode.containerInfo,Fa=!0;break e}s=s.return}if(Ro===null)throw Error(vn(160));Ez(d,g,l),Ro=null,Fa=!1;var v=l.alternate;v!==null&&(v.return=null),l.return=null}catch(E){qr(l,t,E)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Cz(t,e),t=t.sibling}function Cz(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Va(t,e),gl(e),o&4){try{Hg(3,e,e.return),Mv(3,e)}catch(Y){qr(e,e.return,Y)}try{Hg(5,e,e.return)}catch(Y){qr(e,e.return,Y)}}break;case 1:Va(t,e),gl(e),o&512&&n!==null&&Uf(n,n.return);break;case 5:if(Va(t,e),gl(e),o&512&&n!==null&&Uf(n,n.return),e.flags&32){var l=e.stateNode;try{hg(l,"")}catch(Y){qr(e,e.return,Y)}}if(o&4&&(l=e.stateNode,l!=null)){var d=e.memoizedProps,g=n!==null?n.memoizedProps:d,s=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{s==="input"&&d.type==="radio"&&d.name!=null&&nL(l,d),a4(s,g);var E=a4(s,d);for(g=0;g<v.length;g+=2){var z=v[g],O=v[g+1];z==="style"?uL(l,O):z==="dangerouslySetInnerHTML"?lL(l,O):z==="children"?hg(l,O):Hw(l,z,O,E)}switch(s){case"input":n4(l,d);break;case"textarea":oL(l,d);break;case"select":var j=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!d.multiple;var F=d.value;F!=null?_f(l,!!d.multiple,F,!1):j!==!!d.multiple&&(d.defaultValue!=null?_f(l,!!d.multiple,d.defaultValue,!0):_f(l,!!d.multiple,d.multiple?[]:"",!1))}l[zg]=d}catch(Y){qr(e,e.return,Y)}}break;case 6:if(Va(t,e),gl(e),o&4){if(e.stateNode===null)throw Error(vn(162));l=e.stateNode,d=e.memoizedProps;try{l.nodeValue=d}catch(Y){qr(e,e.return,Y)}}break;case 3:if(Va(t,e),gl(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{Mg(t.containerInfo)}catch(Y){qr(e,e.return,Y)}break;case 4:Va(t,e),gl(e);break;case 13:Va(t,e),gl(e),l=e.child,l.flags&8192&&(d=l.memoizedState!==null,l.stateNode.isHidden=d,!d||l.alternate!==null&&l.alternate.memoizedState!==null||(z5=to())),o&4&&Dz(e);break;case 22:if(z=n!==null&&n.memoizedState!==null,e.mode&1?(Ko=(E=Ko)||z,Va(t,e),Ko=E):Va(t,e),gl(e),o&8192){if(E=e.memoizedState!==null,(e.stateNode.isHidden=E)&&!z&&e.mode&1)for($n=e,z=e.child;z!==null;){for(O=$n=z;$n!==null;){switch(j=$n,F=j.child,j.tag){case 0:case 11:case 14:case 15:Hg(4,j,j.return);break;case 1:Uf(j,j.return);var $=j.stateNode;if(typeof $.componentWillUnmount=="function"){o=j,n=j.return;try{t=o,$.props=t.memoizedProps,$.state=t.memoizedState,$.componentWillUnmount()}catch(Y){qr(o,n,Y)}}break;case 5:Uf(j,j.return);break;case 22:if(j.memoizedState!==null){Lz(O);continue}}F!==null?(F.return=j,$n=F):Lz(O)}z=z.sibling}e:for(z=null,O=e;;){if(O.tag===5){if(z===null){z=O;try{l=O.stateNode,E?(d=l.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(s=O.stateNode,v=O.memoizedProps.style,g=v!=null&&v.hasOwnProperty("display")?v.display:null,s.style.display=cL("display",g))}catch(Y){qr(e,e.return,Y)}}}else if(O.tag===6){if(z===null)try{O.stateNode.nodeValue=E?"":O.memoizedProps}catch(Y){qr(e,e.return,Y)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;z===O&&(z=null),O=O.return}z===O&&(z=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:Va(t,e),gl(e),o&4&&Dz(e);break;case 21:break;default:Va(t,e),gl(e)}}function gl(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Tz(n)){var o=n;break e}n=n.return}throw Error(vn(160))}switch(o.tag){case 5:var l=o.stateNode;o.flags&32&&(hg(l,""),o.flags&=-33);var d=Sz(e);A5(e,d,l);break;case 3:case 4:var g=o.stateNode.containerInfo,s=Sz(e);C5(e,s,g);break;default:throw Error(vn(161))}}catch(v){qr(e,e.return,v)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function WX(e,t,n){$n=e,Az(e)}function Az(e,t,n){for(var o=(e.mode&1)!==0;$n!==null;){var l=$n,d=l.child;if(l.tag===22&&o){var g=l.memoizedState!==null||bv;if(!g){var s=l.alternate,v=s!==null&&s.memoizedState!==null||Ko;s=bv;var E=Ko;if(bv=g,(Ko=v)&&!E)for($n=l;$n!==null;)g=$n,v=g.child,g.tag===22&&g.memoizedState!==null?zz(l):v!==null?(v.return=g,$n=v):zz(l);for(;d!==null;)$n=d,Az(d),d=d.sibling;$n=l,bv=s,Ko=E}Nz(e)}else l.subtreeFlags&8772&&d!==null?(d.return=l,$n=d):Nz(e)}}function Nz(e){for(;$n!==null;){var t=$n;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ko||Mv(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Ko)if(n===null)o.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ba(t.type,n.memoizedProps);o.componentDidUpdate(l,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&D8(t,d,o);break;case 3:var g=t.updateQueue;if(g!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}D8(t,g,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var v=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":v.autoFocus&&n.focus();break;case"img":v.src&&(n.src=v.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var E=t.alternate;if(E!==null){var z=E.memoizedState;if(z!==null){var O=z.dehydrated;O!==null&&Mg(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(vn(163))}Ko||t.flags&512&&D5(t)}catch(j){qr(t,t.return,j)}}if(t===e){$n=null;break}if(n=t.sibling,n!==null){n.return=t.return,$n=n;break}$n=t.return}}function Lz(e){for(;$n!==null;){var t=$n;if(t===e){$n=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$n=n;break}$n=t.return}}function zz(e){for(;$n!==null;){var t=$n;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Mv(4,t)}catch(v){qr(t,n,v)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var l=t.return;try{o.componentDidMount()}catch(v){qr(t,l,v)}}var d=t.return;try{D5(t)}catch(v){qr(t,d,v)}break;case 5:var g=t.return;try{D5(t)}catch(v){qr(t,g,v)}}}catch(v){qr(t,t.return,v)}if(t===e){$n=null;break}var s=t.sibling;if(s!==null){s.return=t.return,$n=s;break}$n=t.return}}var qX=Math.ceil,wv=Xl.ReactCurrentDispatcher,N5=Xl.ReactCurrentOwner,ma=Xl.ReactCurrentBatchConfig,ir=0,Io=null,so=null,Po=0,Qs=0,Bf=Jc(0),mo=0,Qg=null,Nh=0,Iv=0,L5=0,Yg=null,Is=null,z5=0,Ff=1/0,sc=null,Tv=!1,k5=null,ou=null,Sv=!1,su=null,Ev=0,Gg=0,O5=null,Dv=-1,Cv=0;function hs(){return ir&6?to():Dv!==-1?Dv:Dv=to()}function au(e){return e.mode&1?ir&2&&Po!==0?Po&-Po:zX.transition!==null?(Cv===0&&(Cv=TL()),Cv):(e=cr,e!==0||(e=window.event,e=e===void 0?16:kL(e.type)),e):1}function $a(e,t,n,o){if(50<Gg)throw Gg=0,O5=null,Error(vn(185));yg(e,n,o),(!(ir&2)||e!==Io)&&(e===Io&&(!(ir&2)&&(Iv|=n),mo===4&&lu(e,Po)),Ts(e,o),n===1&&ir===0&&!(t.mode&1)&&(Ff=to()+500,iv&&tu()))}function Ts(e,t){var n=e.callbackNode;zK(e,t);var o=P_(e,e===Io?Po:0);if(o===0)n!==null&&ML(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&ML(n),t===1)e.tag===0?LX(Oz.bind(null,e)):v8(Oz.bind(null,e)),DX(function(){!(ir&6)&&tu()}),n=null;else{switch(SL(o)){case 1:n=p4;break;case 4:n=wL;break;case 16:n=k_;break;case 536870912:n=IL;break;default:n=k_}n=$z(n,kz.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kz(e,t){if(Dv=-1,Cv=0,ir&6)throw Error(vn(327));var n=e.callbackNode;if(Vf()&&e.callbackNode!==n)return null;var o=P_(e,e===Io?Po:0);if(o===0)return null;if(o&30||o&e.expiredLanes||t)t=Av(e,o);else{t=o;var l=ir;ir|=2;var d=Rz();(Io!==e||Po!==t)&&(sc=null,Ff=to()+500,zh(e,t));do try{JX();break}catch(s){jz(e,s)}while(1);J4(),wv.current=d,ir=l,so!==null?t=0:(Io=null,Po=0,t=mo)}if(t!==0){if(t===2&&(l=m4(e),l!==0&&(o=l,t=j5(e,l))),t===1)throw n=Qg,zh(e,0),lu(e,o),Ts(e,to()),n;if(t===6)lu(e,o);else{if(l=e.current.alternate,!(o&30)&&!KX(l)&&(t=Av(e,o),t===2&&(d=m4(e),d!==0&&(o=d,t=j5(e,d))),t===1))throw n=Qg,zh(e,0),lu(e,o),Ts(e,to()),n;switch(e.finishedWork=l,e.finishedLanes=o,t){case 0:case 1:throw Error(vn(345));case 2:kh(e,Is,sc);break;case 3:if(lu(e,o),(o&130023424)===o&&(t=z5+500-to(),10<t)){if(P_(e,0)!==0)break;if(l=e.suspendedLanes,(l&o)!==o){hs(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=V4(kh.bind(null,e,Is,sc),t);break}kh(e,Is,sc);break;case 4:if(lu(e,o),(o&4194240)===o)break;for(t=e.eventTimes,l=-1;0<o;){var g=31-Ra(o);d=1<<g,g=t[g],g>l&&(l=g),o&=~d}if(o=l,o=to()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*qX(o/1960))-o,10<o){e.timeoutHandle=V4(kh.bind(null,e,Is,sc),o);break}kh(e,Is,sc);break;case 5:kh(e,Is,sc);break;default:throw Error(vn(329))}}}return Ts(e,to()),e.callbackNode===n?kz.bind(null,e):null}function j5(e,t){var n=Yg;return e.current.memoizedState.isDehydrated&&(zh(e,t).flags|=256),e=Av(e,t),e!==2&&(t=Is,Is=n,t!==null&&R5(t)),e}function R5(e){Is===null?Is=e:Is.push.apply(Is,e)}function KX(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var l=n[o],d=l.getSnapshot;l=l.value;try{if(!Pa(d(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function lu(e,t){for(t&=~L5,t&=~Iv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ra(t),o=1<<n;e[n]=-1,t&=~o}}function Oz(e){if(ir&6)throw Error(vn(327));Vf();var t=P_(e,0);if(!(t&1))return Ts(e,to()),null;var n=Av(e,t);if(e.tag!==0&&n===2){var o=m4(e);o!==0&&(t=o,n=j5(e,o))}if(n===1)throw n=Qg,zh(e,0),lu(e,t),Ts(e,to()),n;if(n===6)throw Error(vn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kh(e,Is,sc),Ts(e,to()),null}function P5(e,t){var n=ir;ir|=1;try{return e(t)}finally{ir=n,ir===0&&(Ff=to()+500,iv&&tu())}}function Lh(e){su!==null&&su.tag===0&&!(ir&6)&&Vf();var t=ir;ir|=1;var n=ma.transition,o=cr;try{if(ma.transition=null,cr=1,e)return e()}finally{cr=o,ma.transition=n,ir=t,!(ir&6)&&tu()}}function U5(){Qs=Bf.current,Ar(Bf)}function zh(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,EX(n)),so!==null)for(n=so.return;n!==null;){var o=n;switch(Z4(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&tv();break;case 3:Rf(),Ar(bs),Ar(Zo),c5();break;case 5:a5(o);break;case 4:Rf();break;case 13:Ar(Fr);break;case 19:Ar(Fr);break;case 10:e5(o.type._context);break;case 22:case 23:U5()}n=n.return}if(Io=e,so=e=cu(e.current,null),Po=Qs=t,mo=0,Qg=null,L5=Iv=Nh=0,Is=Yg=null,Dh!==null){for(t=0;t<Dh.length;t++)if(n=Dh[t],o=n.interleaved,o!==null){n.interleaved=null;var l=o.next,d=n.pending;if(d!==null){var g=d.next;d.next=l,o.next=g}n.pending=o}Dh=null}return e}function jz(e,t){do{var n=so;try{if(J4(),pv.current=_v,mv){for(var o=Vr.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}mv=!1}if(Ah=0,wo=po=Vr=null,Ug=!1,Bg=0,N5.current=null,n===null||n.return===null){mo=1,Qg=t,so=null;break}e:{var d=e,g=n.return,s=n,v=t;if(t=Po,s.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){var E=v,z=s,O=z.tag;if(!(z.mode&1)&&(O===0||O===11||O===15)){var j=z.alternate;j?(z.updateQueue=j.updateQueue,z.memoizedState=j.memoizedState,z.lanes=j.lanes):(z.updateQueue=null,z.memoizedState=null)}var F=az(g);if(F!==null){F.flags&=-257,lz(F,g,s,d,t),F.mode&1&&sz(d,E,t),t=F,v=E;var $=t.updateQueue;if($===null){var Y=new Set;Y.add(v),t.updateQueue=Y}else $.add(v);break e}else{if(!(t&1)){sz(d,E,t),B5();break e}v=Error(vn(426))}}else if(jr&&s.mode&1){var ie=az(g);if(ie!==null){!(ie.flags&65536)&&(ie.flags|=256),lz(ie,g,s,d,t),K4(Pf(v,s));break e}}d=v=Pf(v,s),mo!==4&&(mo=2),Yg===null?Yg=[d]:Yg.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var K=rz(d,v,t);E8(d,K);break e;case 1:s=v;var J=d.type,te=d.stateNode;if(!(d.flags&128)&&(typeof J.getDerivedStateFromError=="function"||te!==null&&typeof te.componentDidCatch=="function"&&(ou===null||!ou.has(te)))){d.flags|=65536,t&=-t,d.lanes|=t;var oe=oz(d,s,t);E8(d,oe);break e}}d=d.return}while(d!==null)}Uz(n)}catch(pe){t=pe,so===n&&n!==null&&(so=n=n.return);continue}break}while(1)}function Rz(){var e=wv.current;return wv.current=_v,e===null?_v:e}function B5(){(mo===0||mo===3||mo===2)&&(mo=4),Io===null||!(Nh&268435455)&&!(Iv&268435455)||lu(Io,Po)}function Av(e,t){var n=ir;ir|=2;var o=Rz();(Io!==e||Po!==t)&&(sc=null,zh(e,t));do try{XX();break}catch(l){jz(e,l)}while(1);if(J4(),ir=n,wv.current=o,so!==null)throw Error(vn(261));return Io=null,Po=0,mo}function XX(){for(;so!==null;)Pz(so)}function JX(){for(;so!==null&&!IK();)Pz(so)}function Pz(e){var t=Vz(e.alternate,e,Qs);e.memoizedProps=e.pendingProps,t===null?Uz(e):so=t,N5.current=null}function Uz(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=YX(n,t),n!==null){n.flags&=32767,so=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{mo=6,so=null;return}}else if(n=QX(n,t,Qs),n!==null){so=n;return}if(t=t.sibling,t!==null){so=t;return}so=t=e}while(t!==null);mo===0&&(mo=5)}function kh(e,t,n){var o=cr,l=ma.transition;try{ma.transition=null,cr=1,eJ(e,t,n,o)}finally{ma.transition=l,cr=o}return null}function eJ(e,t,n,o){do Vf();while(su!==null);if(ir&6)throw Error(vn(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(vn(177));e.callbackNode=null,e.callbackPriority=0;var d=n.lanes|n.childLanes;if(kK(e,d),e===Io&&(so=Io=null,Po=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Sv||(Sv=!0,$z(k_,function(){return Vf(),null})),d=(n.flags&15990)!==0,n.subtreeFlags&15990||d){d=ma.transition,ma.transition=null;var g=cr;cr=1;var s=ir;ir|=4,N5.current=null,ZX(e,n),Cz(n,e),xX(B4),F_=!!U4,B4=U4=null,e.current=n,WX(n),TK(),ir=s,cr=g,ma.transition=d}else e.current=n;if(Sv&&(Sv=!1,su=e,Ev=l),d=e.pendingLanes,d===0&&(ou=null),DK(n.stateNode),Ts(e,to()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],o(l.value,{componentStack:l.stack,digest:l.digest});if(Tv)throw Tv=!1,e=k5,k5=null,e;return Ev&1&&e.tag!==0&&Vf(),d=e.pendingLanes,d&1?e===O5?Gg++:(Gg=0,O5=e):Gg=0,tu(),null}function Vf(){if(su!==null){var e=SL(Ev),t=ma.transition,n=cr;try{if(ma.transition=null,cr=16>e?16:e,su===null)var o=!1;else{if(e=su,su=null,Ev=0,ir&6)throw Error(vn(331));var l=ir;for(ir|=4,$n=e.current;$n!==null;){var d=$n,g=d.child;if($n.flags&16){var s=d.deletions;if(s!==null){for(var v=0;v<s.length;v++){var E=s[v];for($n=E;$n!==null;){var z=$n;switch(z.tag){case 0:case 11:case 15:Hg(8,z,d)}var O=z.child;if(O!==null)O.return=z,$n=O;else for(;$n!==null;){z=$n;var j=z.sibling,F=z.return;if(Iz(z),z===E){$n=null;break}if(j!==null){j.return=F,$n=j;break}$n=F}}}var $=d.alternate;if($!==null){var Y=$.child;if(Y!==null){$.child=null;do{var ie=Y.sibling;Y.sibling=null,Y=ie}while(Y!==null)}}$n=d}}if(d.subtreeFlags&2064&&g!==null)g.return=d,$n=g;else e:for(;$n!==null;){if(d=$n,d.flags&2048)switch(d.tag){case 0:case 11:case 15:Hg(9,d,d.return)}var K=d.sibling;if(K!==null){K.return=d.return,$n=K;break e}$n=d.return}}var J=e.current;for($n=J;$n!==null;){g=$n;var te=g.child;if(g.subtreeFlags&2064&&te!==null)te.return=g,$n=te;else e:for(g=J;$n!==null;){if(s=$n,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Mv(9,s)}}catch(pe){qr(s,s.return,pe)}if(s===g){$n=null;break e}var oe=s.sibling;if(oe!==null){oe.return=s.return,$n=oe;break e}$n=s.return}}if(ir=l,tu(),dl&&typeof dl.onPostCommitFiberRoot=="function")try{dl.onPostCommitFiberRoot(O_,e)}catch{}o=!0}return o}finally{cr=n,ma.transition=t}}return!1}function Bz(e,t,n){t=Pf(n,t),t=rz(e,t,1),e=iu(e,t,1),t=hs(),e!==null&&(yg(e,1,t),Ts(e,t))}function qr(e,t,n){if(e.tag===3)Bz(e,e,n);else for(;t!==null;){if(t.tag===3){Bz(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ou===null||!ou.has(o))){e=Pf(n,e),e=oz(t,e,1),t=iu(t,e,1),e=hs(),t!==null&&(yg(t,1,e),Ts(t,e));break}}t=t.return}}function tJ(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=hs(),e.pingedLanes|=e.suspendedLanes&n,Io===e&&(Po&n)===n&&(mo===4||mo===3&&(Po&130023424)===Po&&500>to()-z5?zh(e,0):L5|=n),Ts(e,t)}function Fz(e,t){t===0&&(e.mode&1?(t=R_,R_<<=1,!(R_&130023424)&&(R_=4194304)):t=1);var n=hs();e=ic(e,t),e!==null&&(yg(e,t,n),Ts(e,n))}function nJ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fz(e,n)}function iJ(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(vn(314))}o!==null&&o.delete(t),Fz(e,n)}var Vz;Vz=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bs.current)ws=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ws=!1,HX(e,t,n);ws=!!(e.flags&131072)}else ws=!1,jr&&t.flags&1048576&&x8(t,ov,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;xv(e,t),e=t.pendingProps;var l=Af(t,Zo.current);Of(t,n),l=d5(null,t,o,e,l,n);var d=f5();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ms(o)?(d=!0,nv(t)):d=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,i5(t),l.updater=hv,t.stateNode=l,l._reactInternals=t,o5(t,o,e,n),t=b5(null,t,o,!0,d,n)):(t.tag=0,jr&&d&&G4(t),us(null,t,l,n),t=t.child),t;case 16:o=t.elementType;e:{switch(xv(e,t),e=t.pendingProps,l=o._init,o=l(o._payload),t.type=o,l=t.tag=oJ(o),e=Ba(o,e),l){case 0:t=x5(null,t,o,e,n);break e;case 1:t=pz(null,t,o,e,n);break e;case 11:t=cz(null,t,o,e,n);break e;case 14:t=uz(null,t,o,Ba(o.type,e),n);break e}throw Error(vn(306,o,""))}return t;case 0:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ba(o,l),x5(e,t,o,l,n);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ba(o,l),pz(e,t,o,l,n);case 3:e:{if(mz(t),e===null)throw Error(vn(387));o=t.pendingProps,d=t.memoizedState,l=d.element,S8(e,t),uv(t,o,null,n);var g=t.memoizedState;if(o=g.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){l=Pf(Error(vn(423)),t),t=gz(e,t,o,n,l);break e}else if(o!==l){l=Pf(Error(vn(424)),t),t=gz(e,t,o,n,l);break e}else for(Hs=Xc(t.stateNode.containerInfo.firstChild),$s=t,jr=!0,Ua=null,n=O8(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zf(),o===l){t=oc(e,t,n);break e}us(e,t,o,n)}t=t.child}return t;case 5:return j8(t),e===null&&q4(t),o=t.type,l=t.pendingProps,d=e!==null?e.memoizedProps:null,g=l.children,F4(o,l)?g=null:d!==null&&F4(o,d)&&(t.flags|=32),fz(e,t),us(e,t,g,n),t.child;case 6:return e===null&&q4(t),null;case 13:return yz(e,t,n);case 4:return s5(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=jf(t,null,o,n):us(e,t,o,n),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ba(o,l),cz(e,t,o,l,n);case 7:return us(e,t,t.pendingProps,n),t.child;case 8:return us(e,t,t.pendingProps.children,n),t.child;case 12:return us(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,l=t.pendingProps,d=t.memoizedProps,g=l.value,Tr(av,o._currentValue),o._currentValue=g,d!==null)if(Pa(d.value,g)){if(d.children===l.children&&!bs.current){t=oc(e,t,n);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var s=d.dependencies;if(s!==null){g=d.child;for(var v=s.firstContext;v!==null;){if(v.context===o){if(d.tag===1){v=rc(-1,n&-n),v.tag=2;var E=d.updateQueue;if(E!==null){E=E.shared;var z=E.pending;z===null?v.next=v:(v.next=z.next,z.next=v),E.pending=v}}d.lanes|=n,v=d.alternate,v!==null&&(v.lanes|=n),t5(d.return,n,t),s.lanes|=n;break}v=v.next}}else if(d.tag===10)g=d.type===t.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(vn(341));g.lanes|=n,s=g.alternate,s!==null&&(s.lanes|=n),t5(g,n,t),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===t){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}us(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,Of(t,n),l=fa(l),o=o(l),t.flags|=1,us(e,t,o,n),t.child;case 14:return o=t.type,l=Ba(o,t.pendingProps),l=Ba(o.type,l),uz(e,t,o,l,n);case 15:return hz(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Ba(o,l),xv(e,t),t.tag=1,Ms(o)?(e=!0,nv(t)):e=!1,Of(t,n),N8(t,o,l),o5(t,o,l,n),b5(null,t,o,!0,e,n);case 19:return vz(e,t,n);case 22:return dz(e,t,n)}throw Error(vn(156,t.tag))};function $z(e,t){return bL(e,t)}function rJ(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ga(e,t,n,o){return new rJ(e,t,n,o)}function F5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oJ(e){if(typeof e=="function")return F5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gw)return 11;if(e===qw)return 14}return 2}function cu(e,t){var n=e.alternate;return n===null?(n=ga(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nv(e,t,n,o,l,d){var g=2;if(o=e,typeof e=="function")F5(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case yf:return Oh(n.children,l,d,t);case Qw:g=8,l|=8;break;case Yw:return e=ga(12,n,t,l|2),e.elementType=Yw,e.lanes=d,e;case Zw:return e=ga(13,n,t,l),e.elementType=Zw,e.lanes=d,e;case Ww:return e=ga(19,n,t,l),e.elementType=Ww,e.lanes=d,e;case KN:return Lv(n,l,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case WN:g=10;break e;case qN:g=9;break e;case Gw:g=11;break e;case qw:g=14;break e;case Hc:g=16,o=null;break e}throw Error(vn(130,e==null?e:typeof e,""))}return t=ga(g,n,t,l),t.elementType=e,t.type=o,t.lanes=d,t}function Oh(e,t,n,o){return e=ga(7,e,o,t),e.lanes=n,e}function Lv(e,t,n,o){return e=ga(22,e,o,t),e.elementType=KN,e.lanes=n,e.stateNode={isHidden:!1},e}function V5(e,t,n){return e=ga(6,e,null,t),e.lanes=n,e}function $5(e,t,n){return t=ga(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sJ(e,t,n,o,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=g4(0),this.expirationTimes=g4(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=g4(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function H5(e,t,n,o,l,d,g,s,v){return e=new sJ(e,t,n,s,v),t===1?(t=1,d===!0&&(t|=8)):t=0,d=ga(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},i5(d),e}function aJ(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gf,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Hz(e){if(!e)return eu;e=e._reactInternals;e:{if(wh(e)!==e||e.tag!==1)throw Error(vn(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ms(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(vn(171))}if(e.tag===1){var n=e.type;if(Ms(n))return y8(e,n,t)}return t}function Qz(e,t,n,o,l,d,g,s,v){return e=H5(n,o,!0,e,l,d,g,s,v),e.context=Hz(null),n=e.current,o=hs(),l=au(n),d=rc(o,l),d.callback=t??null,iu(n,d,l),e.current.lanes=l,yg(e,l,o),Ts(e,o),e}function zv(e,t,n,o){var l=t.current,d=hs(),g=au(l);return n=Hz(n),t.context===null?t.context=n:t.pendingContext=n,t=rc(d,g),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=iu(l,t,g),e!==null&&($a(e,l,g,d),cv(e,l,g)),g}function kv(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Yz(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Q5(e,t){Yz(e,t),(e=e.alternate)&&Yz(e,t)}function lJ(){return null}var Gz=typeof reportError=="function"?reportError:function(e){console.error(e)};function Y5(e){this._internalRoot=e}Ov.prototype.render=Y5.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(vn(409));zv(e,t,null,null)},Ov.prototype.unmount=Y5.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lh(function(){zv(null,e,null,null)}),t[Jl]=null}};function Ov(e){this._internalRoot=e}Ov.prototype.unstable_scheduleHydration=function(e){if(e){var t=CL();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wc.length&&t!==0&&t<Wc[n].priority;n++);Wc.splice(n,0,e),n===0&&LL(e)}};function G5(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function jv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Zz(){}function cJ(e,t,n,o,l){if(l){if(typeof o=="function"){var d=o;o=function(){var E=kv(g);d.call(E)}}var g=Qz(t,o,e,0,null,!1,!1,"",Zz);return e._reactRootContainer=g,e[Jl]=g.current,Ng(e.nodeType===8?e.parentNode:e),Lh(),g}for(;l=e.lastChild;)e.removeChild(l);if(typeof o=="function"){var s=o;o=function(){var E=kv(v);s.call(E)}}var v=H5(e,0,!1,null,null,!1,!1,"",Zz);return e._reactRootContainer=v,e[Jl]=v.current,Ng(e.nodeType===8?e.parentNode:e),Lh(function(){zv(t,v,n,o)}),v}function Rv(e,t,n,o,l){var d=n._reactRootContainer;if(d){var g=d;if(typeof l=="function"){var s=l;l=function(){var v=kv(g);s.call(v)}}zv(t,g,e,l)}else g=cJ(n,t,e,l,o);return kv(g)}EL=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gg(t.pendingLanes);n!==0&&(y4(t,n|1),Ts(t,to()),!(ir&6)&&(Ff=to()+500,tu()))}break;case 13:Lh(function(){var o=ic(e,1);if(o!==null){var l=hs();$a(o,e,1,l)}}),Q5(e,1)}},_4=function(e){if(e.tag===13){var t=ic(e,134217728);if(t!==null){var n=hs();$a(t,e,134217728,n)}Q5(e,134217728)}},DL=function(e){if(e.tag===13){var t=au(e),n=ic(e,t);if(n!==null){var o=hs();$a(n,e,t,o)}Q5(e,t)}},CL=function(){return cr},AL=function(e,t){var n=cr;try{return cr=e,t()}finally{cr=n}},u4=function(e,t,n){switch(t){case"input":if(n4(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var l=ev(o);if(!l)throw Error(vn(90));eL(o),n4(o,l)}}}break;case"textarea":oL(e,n);break;case"select":t=n.value,t!=null&&_f(e,!!n.multiple,t,!1)}},pL=P5,mL=Lh;var uJ={usingClientEntryPoint:!1,Events:[kg,Df,ev,dL,fL,P5]},Zg={findFiberByHostInstance:Ih,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},hJ={bundleType:Zg.bundleType,version:Zg.version,rendererPackageName:Zg.rendererPackageName,rendererConfig:Zg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vL(e),e===null?null:e.stateNode},findFiberByHostInstance:Zg.findFiberByHostInstance||lJ,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pv.isDisabled&&Pv.supportsFiber)try{O_=Pv.inject(hJ),dl=Pv}catch{}}Bs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uJ,Bs.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!G5(t))throw Error(vn(200));return aJ(e,t,null,n)},Bs.createRoot=function(e,t){if(!G5(e))throw Error(vn(299));var n=!1,o="",l=Gz;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=H5(e,1,!1,null,null,n,!1,o,l),e[Jl]=t.current,Ng(e.nodeType===8?e.parentNode:e),new Y5(t)},Bs.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(vn(188)):(e=Object.keys(e).join(","),Error(vn(268,e)));return e=vL(t),e=e===null?null:e.stateNode,e},Bs.flushSync=function(e){return Lh(e)},Bs.hydrate=function(e,t,n){if(!jv(t))throw Error(vn(200));return Rv(null,e,t,!0,n)},Bs.hydrateRoot=function(e,t,n){if(!G5(e))throw Error(vn(405));var o=n!=null&&n.hydratedSources||null,l=!1,d="",g=Gz;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(d=n.identifierPrefix),n.onRecoverableError!==void 0&&(g=n.onRecoverableError)),t=Qz(t,null,e,1,n??null,l,!1,d,g),e[Jl]=t.current,Ng(e),o)for(e=0;e<o.length;e++)n=o[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Ov(t)},Bs.render=function(e,t,n){if(!jv(t))throw Error(vn(200));return Rv(null,e,t,!1,n)},Bs.unmountComponentAtNode=function(e){if(!jv(e))throw Error(vn(40));return e._reactRootContainer?(Lh(function(){Rv(null,null,e,!1,function(){e._reactRootContainer=null,e[Jl]=null})}),!0):!1},Bs.unstable_batchedUpdates=P5,Bs.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!jv(n))throw Error(vn(200));if(e==null||e._reactInternals===void 0)throw Error(vn(38));return Rv(e,t,n,!1,o)},Bs.version="18.2.0-next-9e3b772b8-20220608";function Wz(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wz)}catch(e){console.error(e)}}Wz(),VN.exports=Bs;var Z5=VN.exports;const Wg=Ud(Z5);var qz,Kz=Z5;qz=pf.createRoot=Kz.createRoot,pf.hydrateRoot=Kz.hydrateRoot;function dJ(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var fJ=dJ,Li=fJ;function pJ(e){return!!e&&typeof e.then=="function"}var Nr=pJ;function mJ(e,t){if(e!=null)return e;throw Li(t??"Got unexpected null or undefined")}var Rr=mJ;function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Uv{getValue(){throw Li("BaseLoadable")}toPromise(){throw Li("BaseLoadable")}valueMaybe(){throw Li("BaseLoadable")}valueOrThrow(){throw Li(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw Li("BaseLoadable")}promiseOrThrow(){throw Li(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw Li("BaseLoadable")}errorOrThrow(){throw Li(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw Li("BaseLoadable")}}class gJ extends Uv{constructor(t){super(),Ei(this,"state","hasValue"),Ei(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return Nr(n)?jh(n):$f(n)?n:qg(n)}catch(n){return Nr(n)?jh(n.next(()=>this.map(t))):Bv(n)}}}class yJ extends Uv{constructor(t){super(),Ei(this,"state","hasError"),Ei(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class Xz extends Uv{constructor(t){super(),Ei(this,"state","loading"),Ei(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return jh(this.contents.then(n=>{const o=t(n);if($f(o)){const l=o;switch(l.state){case"hasValue":return l.contents;case"hasError":throw l.contents;case"loading":return l.contents}}return o}).catch(n=>{if(Nr(n))return n.then(()=>this.map(t).contents);throw n}))}}function qg(e){return Object.freeze(new gJ(e))}function Bv(e){return Object.freeze(new yJ(e))}function jh(e){return Object.freeze(new Xz(e))}function Jz(){return Object.freeze(new Xz(new Promise(()=>{})))}function _J(e){return e.every(t=>t.state==="hasValue")?qg(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Bv(Rr(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):jh(Promise.all(e.map(t=>t.contents)))}function e9(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(l=>e[l])).map(l=>$f(l)?l:Nr(l)?jh(l):qg(l)),o=_J(n);return Array.isArray(e)?o:o.map(l=>Object.getOwnPropertyNames(e).reduce((d,g,s)=>({...d,[g]:l[s]}),{}))}function $f(e){return e instanceof Uv}var Rh={loadableWithValue:qg,loadableWithError:Bv,loadableWithPromise:jh,loadableLoading:Jz,loadableAll:e9,isLoadable:$f,RecoilLoadable:{of:e=>Nr(e)?jh(e):$f(e)?e:qg(e),error:e=>Bv(e),loading:()=>Jz(),all:e9,isLoadable:$f}},vJ=Rh.loadableWithValue,xJ=Rh.loadableWithError,bJ=Rh.loadableWithPromise,MJ=Rh.loadableLoading,wJ=Rh.loadableAll,IJ=Rh.isLoadable,TJ=Rh.RecoilLoadable,Kg=Object.freeze({__proto__:null,loadableWithValue:vJ,loadableWithError:xJ,loadableWithPromise:bJ,loadableLoading:MJ,loadableAll:wJ,isLoadable:IJ,RecoilLoadable:TJ});const W5={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function SJ(e,t){var n,o;const l=(n=process.env[e])===null||n===void 0||(o=n.toLowerCase())===null||o===void 0?void 0:o.trim();if(l==null||l==="")return;if(!["true","false"].includes(l))throw Li(`process.env.${e} value must be 'true', 'false', or empty: ${l}`);t(l==="true")}function EJ(e,t){var n;const o=(n=process.env[e])===null||n===void 0?void 0:n.trim();o==null||o===""||t(o.split(/\s*,\s*|\s+/))}function DJ(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(SJ("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{W5.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),EJ("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{W5.RECOIL_GKS_ENABLED.add(n)})}))}DJ();var Hf=W5;function Fv(e){return Hf.RECOIL_GKS_ENABLED.has(e)}Fv.setPass=e=>{Hf.RECOIL_GKS_ENABLED.add(e)},Fv.setFail=e=>{Hf.RECOIL_GKS_ENABLED.delete(e)},Fv.clear=()=>{Hf.RECOIL_GKS_ENABLED.clear()};var gr=Fv;function CJ(e,t,{error:n}={}){return null}var AJ=CJ,q5=AJ,K5,X5,J5;const NJ=(K5=Yi.createMutableSource)!==null&&K5!==void 0?K5:Yi.unstable_createMutableSource,t9=(X5=Yi.useMutableSource)!==null&&X5!==void 0?X5:Yi.unstable_useMutableSource,n9=(J5=Yi.useSyncExternalStore)!==null&&J5!==void 0?J5:Yi.unstable_useSyncExternalStore;function LJ(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=Yi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function zJ(){return gr("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:gr("recoil_sync_external_store")&&n9!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:gr("recoil_mutable_source")&&t9!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?gr("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:gr("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function kJ(){return!1}var Xg={createMutableSource:NJ,useMutableSource:t9,useSyncExternalStore:n9,currentRendererSupportsUseSyncExternalStore:LJ,reactMode:zJ,isFastRefreshEnabled:kJ};class eI{constructor(t){Ei(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class i9 extends eI{}class r9 extends eI{}function OJ(e){return e instanceof i9||e instanceof r9}var Vv={AbstractRecoilValue:eI,RecoilState:i9,RecoilValueReadOnly:r9,isRecoilValue:OJ},jJ=Vv.AbstractRecoilValue,RJ=Vv.RecoilState,PJ=Vv.RecoilValueReadOnly,UJ=Vv.isRecoilValue,Qf=Object.freeze({__proto__:null,AbstractRecoilValue:jJ,RecoilState:RJ,RecoilValueReadOnly:PJ,isRecoilValue:UJ});function BJ(e,t){return function*(){let n=0;for(const o of e)yield t(o,n++)}()}var $v=BJ;class o9{}const FJ=new o9,Ph=new Map,tI=new Map;function VJ(e){return $v(e,t=>Rr(tI.get(t)))}function $J(e){if(Ph.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in
|
|
73
73
|
production. But it is safe to ignore this warning if it occurred because of
|
|
74
|
-
hot module replacement.`;console.warn(t)}}function HJ(e){Hf.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&$J(e.key),Ph.set(e.key,e);const t=e.set==null?new Qf.RecoilValueReadOnly(e.key):new Qf.RecoilState(e.key);return tI.set(e.key,t),t}class sk extends Error{}function QJ(e){const t=Ph.get(e);if(t==null)throw new sk(`Missing definition for RecoilValue: "${e}""`);return t}function YJ(e){return Ph.get(e)}const Hv=new Map;function GJ(e){var t;if(!gr("recoil_memory_managament_2020"))return;const n=Ph.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var o;Ph.delete(e),(o=ak(e))===null||o===void 0||o(),Hv.delete(e)}}function ZJ(e,t){gr("recoil_memory_managament_2020")&&(t===void 0?Hv.delete(e):Hv.set(e,t))}function ak(e){return Hv.get(e)}var Ss={nodes:Ph,recoilValues:tI,registerNode:HJ,getNode:QJ,getNodeMaybe:YJ,deleteNodeConfigIfPossible:GJ,setConfigDeletionHandler:ZJ,getConfigDeletionHandler:ak,recoilValuesForKeys:VJ,NodeMissingError:sk,DefaultValue:ok,DEFAULT_VALUE:FJ};function WJ(e,t){t()}var qJ={enqueueExecution:WJ};function KJ(e,t){return t={exports:{}},e(t,t.exports),t.exports}var XJ=KJ(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Lt){return typeof Lt}:function(Lt){return Lt&&typeof Symbol=="function"&&Lt.constructor===Symbol&&Lt!==Symbol.prototype?"symbol":typeof Lt},n={},o=5,l=Math.pow(2,o),d=l-1,g=l/2,s=l/4,v={},E=function(xt){return function(){return xt}},z=n.hash=function(Lt){var xt=typeof Lt>"u"?"undefined":t(Lt);if(xt==="number")return Lt;xt!=="string"&&(Lt+="");for(var ln=0,Wt=0,Qt=Lt.length;Wt<Qt;++Wt){var an=Lt.charCodeAt(Wt);ln=(ln<<5)-ln+an|0}return ln},O=function(xt){return xt-=xt>>1&1431655765,xt=(xt&858993459)+(xt>>2&858993459),xt=xt+(xt>>4)&252645135,xt+=xt>>8,xt+=xt>>16,xt&127},j=function(xt,ln){return ln>>>xt&d},F=function(xt){return 1<<xt},$=function(xt,ln){return O(xt&ln-1)},Y=function(xt,ln,Wt,Qt){var an=Qt;if(!xt){var yn=Qt.length;an=new Array(yn);for(var bn=0;bn<yn;++bn)an[bn]=Qt[bn]}return an[ln]=Wt,an},ie=function(xt,ln,Wt){var Qt=Wt.length-1,an=0,yn=0,bn=Wt;if(xt)an=yn=ln;else for(bn=new Array(Qt);an<ln;)bn[yn++]=Wt[an++];for(++an;an<=Qt;)bn[yn++]=Wt[an++];return xt&&(bn.length=Qt),bn},K=function(xt,ln,Wt,Qt){var an=Qt.length;if(xt){for(var yn=an;yn>=ln;)Qt[yn--]=Qt[yn];return Qt[ln]=Wt,Qt}for(var bn=0,An=0,ai=new Array(an+1);bn<ln;)ai[An++]=Qt[bn++];for(ai[ln]=Wt;bn<an;)ai[++An]=Qt[bn++];return ai},J=1,te=2,oe=3,pe=4,me={__hamt_isEmpty:!0},he=function(xt){return xt===me||xt&&xt.__hamt_isEmpty},De=function(xt,ln,Wt,Qt){return{type:J,edit:xt,hash:ln,key:Wt,value:Qt,_modify:Je}},qe=function(xt,ln,Wt){return{type:te,edit:xt,hash:ln,children:Wt,_modify:He}},Te=function(xt,ln,Wt){return{type:oe,edit:xt,mask:ln,children:Wt,_modify:Ae}},ze=function(xt,ln,Wt){return{type:pe,edit:xt,size:ln,children:Wt,_modify:je}},ht=function(xt){return xt===me||xt.type===J||xt.type===te},mt=function(xt,ln,Wt,Qt,an){for(var yn=[],bn=Qt,An=0,ai=0;bn;++ai)bn&1&&(yn[ai]=an[An++]),bn>>>=1;return yn[ln]=Wt,ze(xt,An+1,yn)},vt=function(xt,ln,Wt,Qt){for(var an=new Array(ln-1),yn=0,bn=0,An=0,ai=Qt.length;An<ai;++An)if(An!==Wt){var Pi=Qt[An];Pi&&!he(Pi)&&(an[yn++]=Pi,bn|=1<<An)}return Te(xt,bn,an)},Qe=function Lt(xt,ln,Wt,Qt,an,yn){if(Wt===an)return qe(xt,Wt,[yn,Qt]);var bn=j(ln,Wt),An=j(ln,an);return Te(xt,F(bn)|F(An),bn===An?[Lt(xt,ln+o,Wt,Qt,an,yn)]:bn<An?[Qt,yn]:[yn,Qt])},Fe=function(xt,ln,Wt,Qt,an,yn,bn,An){for(var ai=an.length,Pi=0;Pi<ai;++Pi){var _r=an[Pi];if(Wt(bn,_r.key)){var gt=_r.value,le=yn(gt);return le===gt?an:le===v?(--An.value,ie(xt,Pi,an)):Y(xt,Pi,De(ln,Qt,bn,le),an)}}var ge=yn();return ge===v?an:(++An.value,Y(xt,ai,De(ln,Qt,bn,ge),an))},ot=function(xt,ln){return xt===ln.edit},Je=function(xt,ln,Wt,Qt,an,yn,bn){if(ln(yn,this.key)){var An=Qt(this.value);return An===this.value?this:An===v?(--bn.value,me):ot(xt,this)?(this.value=An,this):De(xt,an,yn,An)}var ai=Qt();return ai===v?this:(++bn.value,Qe(xt,Wt,this.hash,this,an,De(xt,an,yn,ai)))},He=function(xt,ln,Wt,Qt,an,yn,bn){if(an===this.hash){var An=ot(xt,this),ai=Fe(An,xt,ln,this.hash,this.children,Qt,yn,bn);return ai===this.children?this:ai.length>1?qe(xt,this.hash,ai):ai[0]}var Pi=Qt();return Pi===v?this:(++bn.value,Qe(xt,Wt,this.hash,this,an,De(xt,an,yn,Pi)))},Ae=function(xt,ln,Wt,Qt,an,yn,bn){var An=this.mask,ai=this.children,Pi=j(Wt,an),_r=F(Pi),gt=$(An,_r),le=An&_r,ge=le?ai[gt]:me,Le=ge._modify(xt,ln,Wt+o,Qt,an,yn,bn);if(ge===Le)return this;var $e=ot(xt,this),Ue=An,rt=void 0;if(le&&he(Le)){if(Ue&=~_r,!Ue)return me;if(ai.length<=2&&ht(ai[gt^1]))return ai[gt^1];rt=ie($e,gt,ai)}else if(!le&&!he(Le)){if(ai.length>=g)return mt(xt,Pi,Le,An,ai);Ue|=_r,rt=K($e,gt,Le,ai)}else rt=Y($e,gt,Le,ai);return $e?(this.mask=Ue,this.children=rt,this):Te(xt,Ue,rt)},je=function(xt,ln,Wt,Qt,an,yn,bn){var An=this.size,ai=this.children,Pi=j(Wt,an),_r=ai[Pi],gt=(_r||me)._modify(xt,ln,Wt+o,Qt,an,yn,bn);if(_r===gt)return this;var le=ot(xt,this),ge=void 0;if(he(_r)&&!he(gt))++An,ge=Y(le,Pi,gt,ai);else if(!he(_r)&&he(gt)){if(--An,An<=s)return vt(xt,An,Pi,ai);ge=Y(le,Pi,me,ai)}else ge=Y(le,Pi,gt,ai);return le?(this.size=An,this.children=ge,this):ze(xt,An,ge)};me._modify=function(Lt,xt,ln,Wt,Qt,an,yn){var bn=Wt();return bn===v?me:(++yn.value,De(Lt,Qt,an,bn))};function ye(Lt,xt,ln,Wt,Qt){this._editable=Lt,this._edit=xt,this._config=ln,this._root=Wt,this._size=Qt}ye.prototype.setTree=function(Lt,xt){return this._editable?(this._root=Lt,this._size=xt,this):Lt===this._root?this:new ye(this._editable,this._edit,this._config,Lt,xt)};var ee=n.tryGetHash=function(Lt,xt,ln,Wt){for(var Qt=Wt._root,an=0,yn=Wt._config.keyEq;;)switch(Qt.type){case J:return yn(ln,Qt.key)?Qt.value:Lt;case te:{if(xt===Qt.hash)for(var bn=Qt.children,An=0,ai=bn.length;An<ai;++An){var Pi=bn[An];if(yn(ln,Pi.key))return Pi.value}return Lt}case oe:{var _r=j(an,xt),gt=F(_r);if(Qt.mask>){Qt=Qt.children[$(Qt.mask,gt)],an+=o;break}return Lt}case pe:{if(Qt=Qt.children[j(an,xt)],Qt){an+=o;break}return Lt}default:return Lt}};ye.prototype.tryGetHash=function(Lt,xt,ln){return ee(Lt,xt,ln,this)};var fe=n.tryGet=function(Lt,xt,ln){return ee(Lt,ln._config.hash(xt),xt,ln)};ye.prototype.tryGet=function(Lt,xt){return fe(Lt,xt,this)};var Ne=n.getHash=function(Lt,xt,ln){return ee(void 0,Lt,xt,ln)};ye.prototype.getHash=function(Lt,xt){return Ne(Lt,xt,this)},n.get=function(Lt,xt){return ee(void 0,xt._config.hash(Lt),Lt,xt)},ye.prototype.get=function(Lt,xt){return fe(xt,Lt,this)};var Ee=n.has=function(Lt,xt,ln){return ee(v,Lt,xt,ln)!==v};ye.prototype.hasHash=function(Lt,xt){return Ee(Lt,xt,this)};var Xe=n.has=function(Lt,xt){return Ee(xt._config.hash(Lt),Lt,xt)};ye.prototype.has=function(Lt){return Xe(Lt,this)};var ft=function(xt,ln){return xt===ln};n.make=function(Lt){return new ye(0,0,{keyEq:Lt&&Lt.keyEq||ft,hash:Lt&&Lt.hash||z},me,0)},n.empty=n.make();var it=n.isEmpty=function(Lt){return Lt&&!!he(Lt._root)};ye.prototype.isEmpty=function(){return it(this)};var ue=n.modifyHash=function(Lt,xt,ln,Wt){var Qt={value:Wt._size},an=Wt._root._modify(Wt._editable?Wt._edit:NaN,Wt._config.keyEq,0,Lt,xt,ln,Qt);return Wt.setTree(an,Qt.value)};ye.prototype.modifyHash=function(Lt,xt,ln){return ue(ln,Lt,xt,this)};var Dt=n.modify=function(Lt,xt,ln){return ue(Lt,ln._config.hash(xt),xt,ln)};ye.prototype.modify=function(Lt,xt){return Dt(xt,Lt,this)};var Gt=n.setHash=function(Lt,xt,ln,Wt){return ue(E(ln),Lt,xt,Wt)};ye.prototype.setHash=function(Lt,xt,ln){return Gt(Lt,xt,ln,this)};var Et=n.set=function(Lt,xt,ln){return Gt(ln._config.hash(Lt),Lt,xt,ln)};ye.prototype.set=function(Lt,xt){return Et(Lt,xt,this)};var We=E(v),Ut=n.removeHash=function(Lt,xt,ln){return ue(We,Lt,xt,ln)};ye.prototype.removeHash=ye.prototype.deleteHash=function(Lt,xt){return Ut(Lt,xt,this)};var wt=n.remove=function(Lt,xt){return Ut(xt._config.hash(Lt),Lt,xt)};ye.prototype.remove=ye.prototype.delete=function(Lt){return wt(Lt,this)};var en=n.beginMutation=function(Lt){return new ye(Lt._editable+1,Lt._edit+1,Lt._config,Lt._root,Lt._size)};ye.prototype.beginMutation=function(){return en(this)};var Jt=n.endMutation=function(Lt){return Lt._editable=Lt._editable&&Lt._editable-1,Lt};ye.prototype.endMutation=function(){return Jt(this)};var Nn=n.mutate=function(Lt,xt){var ln=en(xt);return Lt(ln),Jt(ln)};ye.prototype.mutate=function(Lt){return Nn(Lt,this)};var xn=function(xt){return xt&&dn(xt[0],xt[1],xt[2],xt[3],xt[4])},dn=function(xt,ln,Wt,Qt,an){for(;Wt<xt;){var yn=ln[Wt++];if(yn&&!he(yn))return mn(yn,Qt,[xt,ln,Wt,Qt,an])}return xn(an)},mn=function(xt,ln,Wt){switch(xt.type){case J:return{value:ln(xt),rest:Wt};case te:case pe:case oe:var Qt=xt.children;return dn(Qt.length,Qt,0,ln,Wt);default:return xn(Wt)}},ti={done:!0};function Yt(Lt){this.v=Lt}Yt.prototype.next=function(){if(!this.v)return ti;var Lt=this.v;return this.v=xn(Lt.rest),Lt},Yt.prototype[Symbol.iterator]=function(){return this};var jn=function(xt,ln){return new Yt(mn(xt._root,ln))},On=function(xt){return[xt.key,xt.value]},fn=n.entries=function(Lt){return jn(Lt,On)};ye.prototype.entries=ye.prototype[Symbol.iterator]=function(){return fn(this)};var ei=function(xt){return xt.key},vi=n.keys=function(Lt){return jn(Lt,ei)};ye.prototype.keys=function(){return vi(this)};var Zi=function(xt){return xt.value},ii=n.values=ye.prototype.values=function(Lt){return jn(Lt,Zi)};ye.prototype.values=function(){return ii(this)};var Hn=n.fold=function(Lt,xt,ln){var Wt=ln._root;if(Wt.type===J)return Lt(xt,Wt.value,Wt.key);for(var Qt=[Wt.children],an=void 0;an=Qt.pop();)for(var yn=0,bn=an.length;yn<bn;){var An=an[yn++];An&&An.type&&(An.type===J?xt=Lt(xt,An.value,An.key):Qt.push(An.children))}return xt};ye.prototype.fold=function(Lt,xt){return Hn(Lt,xt,this)};var Wi=n.forEach=function(Lt,xt){return Hn(function(ln,Wt,Qt){return Lt(Wt,Qt,xt)},null,xt)};ye.prototype.forEach=function(Lt){return Wi(Lt,this)};var yr=n.count=function(Lt){return Lt._size};ye.prototype.count=function(){return yr(this)},Object.defineProperty(ye.prototype,"size",{get:ye.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class JJ{constructor(t){Ei(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this._map.set(t,n),this}delete(t){return this._map.delete(t),this}clone(){return iI(this)}toMap(){return new Map(this._map)}}class nI{constructor(t){if(Ei(this,"_hamt",XJ.empty.beginMutation()),t instanceof nI){const n=t._hamt.endMutation();t._hamt=n.beginMutation(),this._hamt=n.beginMutation()}else if(t)for(const[n,o]of t.entries())this._hamt.set(n,o)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,n){return this._hamt.set(t,n),this}delete(t){return this._hamt.delete(t),this}clone(){return iI(this)}toMap(){return new Map(this._hamt)}}function iI(e){return gr("recoil_hamt_2020")?new nI(e):new JJ(e)}var eee={persistentMap:iI},tee=eee.persistentMap,nee=Object.freeze({__proto__:null,persistentMap:tee});function iee(e,...t){const n=new Set;e:for(const o of e){for(const l of t)if(l.has(o))continue e;n.add(o)}return n}var Jg=iee;function ree(e,t){const n=new Map;return e.forEach((o,l)=>{n.set(l,t(o,l))}),n}var Qv=ree;function oee(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function see(e){return{nodeDeps:Qv(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Qv(e.nodeToNodeSubscriptions,t=>new Set(t))}}function rI(e,t,n,o){const{nodeDeps:l,nodeToNodeSubscriptions:d}=n,g=l.get(e);if(g&&o&&g!==o.nodeDeps.get(e))return;l.set(e,t);const s=g==null?t:Jg(t,g);for(const v of s)d.has(v)||d.set(v,new Set),Rr(d.get(v)).add(e);if(g){const v=Jg(g,t);for(const E of v){if(!d.has(E))return;const z=Rr(d.get(E));z.delete(e),z.size===0&&d.delete(E)}}}function aee(e,t,n,o){var l,d,g,s;const v=n.getState();o===v.currentTree.version||o===((l=v.nextTree)===null||l===void 0?void 0:l.version)||((d=v.previousTree)===null||d===void 0||d.version);const E=n.getGraph(o);if(rI(e,t,E),o===((g=v.previousTree)===null||g===void 0?void 0:g.version)){const O=n.getGraph(v.currentTree.version);rI(e,t,O,E)}if(o===((s=v.previousTree)===null||s===void 0?void 0:s.version)||o===v.currentTree.version){var z;const O=(z=v.nextTree)===null||z===void 0?void 0:z.version;if(O!==void 0){const j=n.getGraph(O);rI(e,t,j,E)}}}var e1={cloneGraph:see,graph:oee,saveDepsToStore:aee};let lee=0;const cee=()=>lee++;let uee=0;const hee=()=>uee++;let dee=0;var Yv={getNextTreeStateVersion:cee,getNextStoreID:hee,getNextComponentID:()=>dee++};const{persistentMap:lk}=nee,{graph:fee}=e1,{getNextTreeStateVersion:ck}=Yv;function uk(){const e=ck();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:lk(),nonvalidatedAtoms:lk()}}function pee(){const e=uk();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,fee()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var hk={makeEmptyTreeState:uk,makeEmptyStoreState:pee,getNextTreeStateVersion:ck};class dk{}function mee(){return new dk}var Gv={RetentionZone:dk,retentionZone:mee};function gee(e,t){const n=new Set(e);return n.add(t),n}function yee(e,t){const n=new Set(e);return n.delete(t),n}function _ee(e,t,n){const o=new Map(e);return o.set(t,n),o}function vee(e,t,n){const o=new Map(e);return o.set(t,n(o.get(t))),o}function xee(e,t){const n=new Map(e);return n.delete(t),n}function bee(e,t){const n=new Map(e);return t.forEach(o=>n.delete(o)),n}var fk={setByAddingToSet:gee,setByDeletingFromSet:yee,mapBySettingInMap:_ee,mapByUpdatingInMap:vee,mapByDeletingFromMap:xee,mapByDeletingMultipleFromMap:bee};function*Mee(e,t){let n=0;for(const o of e)t(o,n++)&&(yield o)}var oI=Mee;function wee(e,t){return new Proxy(e,{get:(o,l)=>(!(l in o)&&l in t&&(o[l]=t[l]()),o[l]),ownKeys:o=>Object.keys(o)})}var pk=wee;const{getNode:t1,getNodeMaybe:Iee,recoilValuesForKeys:mk}=Ss,{RetentionZone:gk}=Gv,{setByAddingToSet:Tee}=fk,See=Object.freeze(new Set);class Eee extends Error{}function Dee(e,t,n){if(!gr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:o}=e.getState().retention;function l(d){let g=o.get(d);g||o.set(d,g=new Set),g.add(t)}if(n instanceof gk)l(n);else if(Array.isArray(n))for(const d of n)l(d);return()=>{if(!gr("recoil_memory_managament_2020"))return;const{retention:d}=e.getState();function g(s){const v=d.nodesRetainedByZone.get(s);v==null||v.delete(t),v&&v.size===0&&d.nodesRetainedByZone.delete(s)}if(n instanceof gk)g(n);else if(Array.isArray(n))for(const s of n)g(s)}}function sI(e,t,n,o){const l=e.getState();if(l.nodeCleanupFunctions.has(n))return;const d=t1(n),g=Dee(e,n,d.retainedBy),s=d.init(e,t,o);l.nodeCleanupFunctions.set(n,()=>{s(),g()})}function Cee(e,t,n){sI(e,e.getState().currentTree,t,n)}function Aee(e,t){var n;const o=e.getState();(n=o.nodeCleanupFunctions.get(t))===null||n===void 0||n(),o.nodeCleanupFunctions.delete(t)}function Nee(e,t,n){return sI(e,t,n,"get"),t1(n).get(e,t)}function yk(e,t,n){return t1(n).peek(e,t)}function Lee(e,t,n){var o;const l=Iee(t);return l==null||(o=l.invalidate)===null||o===void 0||o.call(l,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Tee(e.dirtyAtoms,t)}}function zee(e,t,n,o){const l=t1(n);if(l.set==null)throw new Eee(`Attempt to set read-only RecoilValue: ${n}`);const d=l.set;return sI(e,t,n,"set"),d(e,t,o)}function kee(e,t,n){const o=e.getState(),l=e.getGraph(t.version),d=t1(n).nodeType;return pk({type:d},{loadable:()=>yk(e,t,n),isActive:()=>o.knownAtoms.has(n)||o.knownSelectors.has(n),isSet:()=>d==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var g;return mk((g=l.nodeDeps.get(n))!==null&&g!==void 0?g:[])},subscribers:()=>{var g,s;return{nodes:mk(oI(_k(e,t,new Set([n])),v=>v!==n)),components:$v((g=(s=o.nodeToComponentSubscriptions.get(n))===null||s===void 0?void 0:s.values())!==null&&g!==void 0?g:[],([v])=>({name:v}))}}})}function _k(e,t,n){const o=new Set,l=Array.from(n),d=e.getGraph(t.version);for(let s=l.pop();s;s=l.pop()){var g;o.add(s);const v=(g=d.nodeToNodeSubscriptions.get(s))!==null&&g!==void 0?g:See;for(const E of v)o.has(E)||l.push(E)}return o}var uu={getNodeLoadable:Nee,peekNodeLoadable:yk,setNodeValue:zee,initializeNode:Cee,cleanUpNode:Aee,setUnvalidatedAtomValue_DEPRECATED:Lee,peekNodeInfo:kee,getDownstreamNodes:_k};let vk=null;function Oee(e){vk=e}function jee(){var e;(e=vk)===null||e===void 0||e()}var xk={setInvalidateMemoizedSnapshot:Oee,invalidateMemoizedSnapshot:jee};const{getDownstreamNodes:Ree,getNodeLoadable:bk,setNodeValue:Pee}=uu,{getNextComponentID:Uee}=Yv,{getNode:Bee,getNodeMaybe:Mk}=Ss,{DefaultValue:aI}=Ss,{reactMode:Fee}=Xg,{AbstractRecoilValue:Vee,RecoilState:$ee,RecoilValueReadOnly:Hee,isRecoilValue:Qee}=Qf,{invalidateMemoizedSnapshot:Yee}=xk;function Gee(e,{key:t},n=e.getState().currentTree){var o,l;const d=e.getState();n.version===d.currentTree.version||n.version===((o=d.nextTree)===null||o===void 0?void 0:o.version)||(n.version,(l=d.previousTree)===null||l===void 0||l.version);const g=bk(e,n,t);return g.state==="loading"&&g.contents.catch(()=>{}),g}function Zee(e,t){const n=e.clone();return t.forEach((o,l)=>{o.state==="hasValue"&&o.contents instanceof aI?n.delete(l):n.set(l,o)}),n}function Wee(e,t,{key:n},o){if(typeof o=="function"){const l=bk(e,t,n);if(l.state==="loading"){const d=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw Li(d)}else if(l.state==="hasError")throw l.contents;return o(l.contents)}else return o}function qee(e,t,n){if(n.type==="set"){const{recoilValue:l,valueOrUpdater:d}=n,g=Wee(e,t,l,d),s=Pee(e,t,l.key,g);for(const[v,E]of s.entries())lI(t,v,E)}else if(n.type==="setLoadable"){const{recoilValue:{key:l},loadable:d}=n;lI(t,l,d)}else if(n.type==="markModified"){const{recoilValue:{key:l}}=n;t.dirtyAtoms.add(l)}else if(n.type==="setUnvalidated"){var o;const{recoilValue:{key:l},unvalidatedValue:d}=n,g=Mk(l);g==null||(o=g.invalidate)===null||o===void 0||o.call(g,t),t.atomValues.delete(l),t.nonvalidatedAtoms.set(l,d),t.dirtyAtoms.add(l)}else q5(`Unknown action ${n.type}`)}function lI(e,t,n){n.state==="hasValue"&&n.contents instanceof aI?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function wk(e,t){e.replaceState(n=>{const o=Ik(n);for(const l of t)qee(e,o,l);return Tk(e,o),Yee(),o})}function Zv(e,t){if(n1.length){const n=n1[n1.length-1];let o=n.get(e);o||n.set(e,o=[]),o.push(t)}else wk(e,[t])}const n1=[];function Kee(){const e=new Map;return n1.push(e),()=>{for(const[t,n]of e)wk(t,n);n1.pop()}}function Ik(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Tk(e,t){const n=Ree(e,t,t.dirtyAtoms);for(const d of n){var o,l;(o=Mk(d))===null||o===void 0||(l=o.invalidate)===null||l===void 0||l.call(o,t)}}function Sk(e,t,n){Zv(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function Xee(e,t,n){if(n instanceof aI)return Sk(e,t,n);Zv(e,{type:"setLoadable",recoilValue:t,loadable:n})}function Jee(e,t){Zv(e,{type:"markModified",recoilValue:t})}function ete(e,t,n){Zv(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function tte(e,{key:t},n,o=null){const l=Uee(),d=e.getState();d.nodeToComponentSubscriptions.has(t)||d.nodeToComponentSubscriptions.set(t,new Map),Rr(d.nodeToComponentSubscriptions.get(t)).set(l,[o??"<not captured>",n]);const g=Fee();if(g.early&&(g.mode==="LEGACY"||g.mode==="MUTABLE_SOURCE")){const s=e.getState().nextTree;s&&s.dirtyAtoms.has(t)&&n(s)}return{release:()=>{const s=e.getState(),v=s.nodeToComponentSubscriptions.get(t);v===void 0||!v.has(l)||(v.delete(l),v.size===0&&s.nodeToComponentSubscriptions.delete(t))}}}function nte(e,t){var n;const{currentTree:o}=e.getState(),l=Bee(t.key);(n=l.clearCache)===null||n===void 0||n.call(l,e,o)}var yl={RecoilValueReadOnly:Hee,AbstractRecoilValue:Vee,RecoilState:$ee,getRecoilValueAsLoadable:Gee,setRecoilValue:Sk,setRecoilValueLoadable:Xee,markRecoilValueModified:Jee,setUnvalidatedRecoilValue:ete,subscribeToRecoilValue:tte,isRecoilValue:Qee,applyAtomValueWrites:Zee,batchStart:Kee,writeLoadableToTreeState:lI,invalidateDownstreams:Tk,copyTreeState:Ik,refreshRecoilValue:nte};function ite(e,t,n){const o=e.entries();let l=o.next();for(;!l.done;){const d=l.value;if(t.call(n,d[1],d[0],e))return!0;l=o.next()}return!1}var rte=ite;const{cleanUpNode:ote}=uu,{deleteNodeConfigIfPossible:ste,getNode:Ek}=Ss,{RetentionZone:Dk}=Gv,ate=12e4,Ck=new Set;function Ak(e,t){const n=e.getState(),o=n.currentTree;if(n.nextTree)return;const l=new Set;for(const g of t)if(g instanceof Dk)for(const s of hte(n,g))l.add(s);else l.add(g);const d=lte(e,l);for(const g of d)ute(e,o,g)}function lte(e,t){const n=e.getState(),o=n.currentTree,l=e.getGraph(o.version),d=new Set,g=new Set;return s(t),d;function s(v){const E=new Set,z=cte(e,o,v,d,g);for(const $ of z){var O;if(Ek($).retainedBy==="recoilRoot"){g.add($);continue}if(((O=n.retention.referenceCounts.get($))!==null&&O!==void 0?O:0)>0){g.add($);continue}if(Nk($).some(ie=>n.retention.referenceCounts.get(ie))){g.add($);continue}const Y=l.nodeToNodeSubscriptions.get($);if(Y&&rte(Y,ie=>g.has(ie))){g.add($);continue}d.add($),E.add($)}const j=new Set;for(const $ of E)for(const Y of(F=l.nodeDeps.get($))!==null&&F!==void 0?F:Ck){var F;d.has(Y)||j.add(Y)}j.size&&s(j)}}function cte(e,t,n,o,l){const d=e.getGraph(t.version),g=[],s=new Set;for(;n.size>0;)v(Rr(n.values().next().value));return g;function v(E){if(o.has(E)||l.has(E)){n.delete(E);return}if(s.has(E))return;const z=d.nodeToNodeSubscriptions.get(E);if(z)for(const O of z)v(O);s.add(E),n.delete(E),g.push(E)}}function ute(e,t,n){if(!gr("recoil_memory_managament_2020"))return;ote(e,n);const o=e.getState();o.knownAtoms.delete(n),o.knownSelectors.delete(n),o.nodeTransactionSubscriptions.delete(n),o.retention.referenceCounts.delete(n);const l=Nk(n);for(const v of l){var d;(d=o.retention.nodesRetainedByZone.get(v))===null||d===void 0||d.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const g=o.graphsByVersion.get(t.version);if(g){const v=g.nodeDeps.get(n);if(v!==void 0){g.nodeDeps.delete(n);for(const E of v){var s;(s=g.nodeToNodeSubscriptions.get(E))===null||s===void 0||s.delete(n)}}g.nodeToNodeSubscriptions.delete(n)}ste(n)}function hte(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:Ck}function Nk(e){const t=Ek(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Dk?[t]:t}function dte(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Ak(e,new Set([t]))}function fte(e,t,n){var o;if(!gr("recoil_memory_managament_2020"))return;const l=e.getState().retention.referenceCounts,d=((o=l.get(t))!==null&&o!==void 0?o:0)+n;d===0?Lk(e,t):l.set(t,d)}function Lk(e,t){if(!gr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),dte(e,t)}function pte(e){if(!gr("recoil_memory_managament_2020"))return;const t=e.getState();Ak(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function mte(e){return e===void 0?"recoilRoot":e}var Uh={SUSPENSE_TIMEOUT_MS:ate,updateRetainCount:fte,updateRetainCountToZero:Lk,releaseScheduledRetainablesNow:pte,retainedByOptionWithDefault:mte};const{unstable_batchedUpdates:gte}=Wg;var yte={unstable_batchedUpdates:gte};const{unstable_batchedUpdates:_te}=yte;var vte={unstable_batchedUpdates:_te};const{batchStart:xte}=yl,{unstable_batchedUpdates:bte}=vte;let cI=bte||(e=>e());var Wv={getBatcher:()=>cI,setBatcher:e=>{cI=e},batchUpdates:e=>{cI(()=>{let t=()=>{};try{t=xte(),e()}finally{t()}})}};function*Mte(e){for(const t of e)for(const n of t)yield n}var zk=Mte;const kk=typeof Window>"u"||typeof window>"u",wte=e=>!kk&&(e===window||e instanceof Window),Ite=typeof navigator<"u"&&navigator.product==="ReactNative";var qv={isSSR:kk,isReactNative:Ite,isWindow:wte};function Tte(e,t){let n;return(...o)=>{n||(n={});const l=t(...o);return Object.hasOwnProperty.call(n,l)||(n[l]=e(...o)),n[l]}}function Ste(e,t){let n,o;return(...l)=>{const d=t(...l);return n===d||(n=d,o=e(...l)),o}}function Ete(e,t){let n,o;return[(...g)=>{const s=t(...g);return n===s||(n=s,o=e(...g)),o},()=>{n=null}]}var Dte={memoizeWithArgsHash:Tte,memoizeOneWithArgsHash:Ste,memoizeOneWithArgsHashAndInvalidation:Ete};const{batchUpdates:uI}=Wv,{initializeNode:Cte,peekNodeInfo:Ate}=uu,{graph:Nte}=e1,{getNextStoreID:Lte}=Yv,{DEFAULT_VALUE:zte,recoilValues:Ok,recoilValuesForKeys:jk}=Ss,{AbstractRecoilValue:kte,getRecoilValueAsLoadable:Ote,setRecoilValue:Rk,setUnvalidatedRecoilValue:jte}=yl,{updateRetainCount:Kv}=Uh,{setInvalidateMemoizedSnapshot:Rte}=xk,{getNextTreeStateVersion:Pte,makeEmptyStoreState:Ute}=hk,{isSSR:Bte}=qv,{memoizeOneWithArgsHashAndInvalidation:Fte}=Dte;class Xv{constructor(t,n){Ei(this,"_store",void 0),Ei(this,"_refCount",1),Ei(this,"getLoadable",o=>(this.checkRefCount_INTERNAL(),Ote(this._store,o))),Ei(this,"getPromise",o=>(this.checkRefCount_INTERNAL(),this.getLoadable(o).toPromise())),Ei(this,"getNodes_UNSTABLE",o=>{if(this.checkRefCount_INTERNAL(),(o==null?void 0:o.isModified)===!0){if((o==null?void 0:o.isInitialized)===!1)return[];const g=this._store.getState().currentTree;return jk(g.dirtyAtoms)}const l=this._store.getState().knownAtoms,d=this._store.getState().knownSelectors;return(o==null?void 0:o.isInitialized)==null?Ok.values():o.isInitialized===!0?jk(zk([l,d])):oI(Ok.values(),({key:g})=>!l.has(g)&&!d.has(g))}),Ei(this,"getInfo_UNSTABLE",({key:o})=>(this.checkRefCount_INTERNAL(),Ate(this._store,this._store.getState().currentTree,o))),Ei(this,"map",o=>{this.checkRefCount_INTERNAL();const l=new hI(this,uI);return o(l),l}),Ei(this,"asyncMap",async o=>{this.checkRefCount_INTERNAL();const l=new hI(this,uI);return l.retain(),await o(l),l.autoRelease_INTERNAL(),l}),this._store={storeID:Lte(),parentStoreID:n,getState:()=>t,replaceState:o=>{t.currentTree=o(t.currentTree)},getGraph:o=>{const l=t.graphsByVersion;if(l.has(o))return Rr(l.get(o));const d=Nte();return l.set(o,d),d},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Li("Cannot subscribe to Snapshots")}};for(const o of this._store.getState().knownAtoms)Cte(this._store,o,"get"),Kv(this._store,o,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){Bte||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!gr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){gr("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function Pk(e,t,n=!1){const o=e.getState(),l=n?Pte():t.version;return{currentTree:{version:n?l:t.version,stateID:n?l:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(o.knownAtoms),knownSelectors:new Set(o.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(l,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map($v(o.nodeCleanupFunctions.entries(),([d])=>[d,()=>{}]))}}function Vte(e){const t=new Xv(Ute());return e!=null?t.map(e):t}const[Uk,Bk]=Fte((e,t)=>{var n;const o=e.getState(),l=t==="latest"?(n=o.nextTree)!==null&&n!==void 0?n:o.currentTree:Rr(o.previousTree);return new Xv(Pk(e,l),e.storeID)},(e,t)=>{var n,o;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((o=e.getState().previousTree)===null||o===void 0?void 0:o.version)});Rte(Bk);function $te(e,t="latest"){const n=Uk(e,t);return n.isRetained()?n:(Bk(),Uk(e,t))}class hI extends Xv{constructor(t,n){super(Pk(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Ei(this,"_batch",void 0),Ei(this,"set",(o,l)=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();this._batch(()=>{Kv(d,o.key,1),Rk(this.getStore_INTERNAL(),o,l)})}),Ei(this,"reset",o=>{this.checkRefCount_INTERNAL();const l=this.getStore_INTERNAL();this._batch(()=>{Kv(l,o.key,1),Rk(this.getStore_INTERNAL(),o,zte)})}),Ei(this,"setUnvalidatedAtomValues_DEPRECATED",o=>{this.checkRefCount_INTERNAL();const l=this.getStore_INTERNAL();uI(()=>{for(const[d,g]of o.entries())Kv(l,d,1),jte(l,new kte(d),g)})}),this._batch=n}}var Jv={Snapshot:Xv,MutableSnapshot:hI,freshSnapshot:Vte,cloneSnapshot:$te},Hte=Jv.Snapshot,Qte=Jv.MutableSnapshot,Yte=Jv.freshSnapshot,Gte=Jv.cloneSnapshot,ex=Object.freeze({__proto__:null,Snapshot:Hte,MutableSnapshot:Qte,freshSnapshot:Yte,cloneSnapshot:Gte});function Zte(...e){const t=new Set;for(const n of e)for(const o of n)t.add(o);return t}var Wte=Zte;const{useRef:qte}=Yi;function Kte(e){const t=qte(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Fk=Kte;const{getNextTreeStateVersion:Xte,makeEmptyStoreState:Vk}=hk,{cleanUpNode:Jte,getDownstreamNodes:ene,initializeNode:tne,setNodeValue:nne,setUnvalidatedAtomValue_DEPRECATED:ine}=uu,{graph:rne}=e1,{cloneGraph:one}=e1,{getNextStoreID:$k}=Yv,{createMutableSource:dI,reactMode:Hk}=Xg,{applyAtomValueWrites:sne}=yl,{releaseScheduledRetainablesNow:Qk}=Uh,{freshSnapshot:ane}=ex,{useCallback:lne,useContext:Yk,useEffect:fI,useMemo:cne,useRef:une,useState:hne}=Yi;function i1(){throw Li("This component must be used inside a <RecoilRoot> component.")}const Gk=Object.freeze({storeID:$k(),getState:i1,replaceState:i1,getGraph:i1,subscribeToTransactions:i1,addTransactionMetadata:i1});let pI=!1;function Zk(e){if(pI)throw Li("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){gr("recoil_memory_managament_2020")&&gr("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Qk(e);const n=t.currentTree.version,o=Xte();t.nextTree={...t.currentTree,version:o,stateID:o,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(o,one(Rr(t.graphsByVersion.get(n))))}}const Wk=Yi.createContext({current:Gk}),tx=()=>Yk(Wk),qk=Yi.createContext(null);function dne(){return Yk(qk)}function mI(e,t,n){const o=ene(e,n,n.dirtyAtoms);for(const l of o){const d=t.nodeToComponentSubscriptions.get(l);if(d)for(const[g,[s,v]]of d)v(n)}}function Kk(e){const t=e.getState(),n=t.currentTree,o=n.dirtyAtoms;if(o.size){for(const[l,d]of t.nodeTransactionSubscriptions)if(o.has(l))for(const[g,s]of d)s(e);for(const[l,d]of t.transactionSubscriptions)d(e);(!Hk().early||t.suspendedComponentResolvers.size>0)&&(mI(e,t,n),t.suspendedComponentResolvers.forEach(l=>l()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(l=>l(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function fne(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Kk(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):q5("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,gr("recoil_memory_managament_2020")&&n==null&&Qk(e)}finally{t.commitDepth--}}function pne({setNotifyBatcherOfChange:e}){const t=tx(),[,n]=hne([]);return e(()=>n({})),fI(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),fI(()=>{qJ.enqueueExecution("Batcher",()=>{fne(t.current)})}),null}function mne(e,t){const n=Vk();return t({set:(o,l)=>{const d=n.currentTree,g=nne(e,d,o.key,l),s=new Set(g.keys()),v=d.nonvalidatedAtoms.clone();for(const E of s)v.delete(E);n.currentTree={...d,dirtyAtoms:Wte(d.dirtyAtoms,s),atomValues:sne(d.atomValues,g),nonvalidatedAtoms:v}},setUnvalidatedAtomValues:o=>{o.forEach((l,d)=>{n.currentTree=ine(n.currentTree,d,l)})}}),n}function gne(e){const t=ane(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(o=>o()),n.nodeCleanupFunctions.clear(),n}let Xk=0;function yne({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:o}){let l;const d=F=>{const $=l.current.graphsByVersion;if($.has(F))return Rr($.get(F));const Y=rne();return $.set(F,Y),Y},g=(F,$)=>{if($==null){const{transactionSubscriptions:Y}=O.current.getState(),ie=Xk++;return Y.set(ie,F),{release:()=>{Y.delete(ie)}}}else{const{nodeTransactionSubscriptions:Y}=O.current.getState();Y.has($)||Y.set($,new Map);const ie=Xk++;return Rr(Y.get($)).set(ie,F),{release:()=>{const K=Y.get($);K&&(K.delete(ie),K.size===0&&Y.delete($))}}}},s=F=>{Zk(O.current);for(const $ of Object.keys(F))Rr(O.current.getState().nextTree).transactionMetadata[$]=F[$]},v=F=>{Zk(O.current);const $=Rr(l.current.nextTree);let Y;try{pI=!0,Y=F($)}finally{pI=!1}Y!==$&&(l.current.nextTree=Y,Hk().early&&mI(O.current,l.current,Y),Rr(E.current)())},E=une(null),z=lne(F=>{E.current=F},[E]),O=Fk(()=>n??{storeID:$k(),getState:()=>l.current,replaceState:v,getGraph:d,subscribeToTransactions:g,addTransactionMetadata:s});n!=null&&(O.current=n),l=Fk(()=>e!=null?mne(O.current,e):t!=null?gne(t):Vk());const j=cne(()=>dI==null?void 0:dI(l,()=>l.current.currentTree.version),[l]);return fI(()=>{const F=O.current;for(const $ of new Set(F.getState().knownAtoms))tne(F,$,"get");return()=>{for(const $ of F.getState().knownAtoms)Jte(F,$)}},[O]),Yi.createElement(Wk.Provider,{value:O},Yi.createElement(qk.Provider,{value:j},Yi.createElement(pne,{setNotifyBatcherOfChange:z}),o))}function _ne(e){const{override:t,...n}=e,o=tx();return t===!1&&o.current!==Gk?e.children:Yi.createElement(yne,n)}function vne(){return tx().current.storeID}var ac={RecoilRoot:_ne,useStoreRef:tx,useRecoilMutableSource:dne,useRecoilStoreID:vne,notifyComponents_FOR_TESTING:mI,sendEndOfBatchNotifications_FOR_TESTING:Kk};function xne(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!1;return!0}var bne=xne;const{useEffect:Mne,useRef:wne}=Yi;function Ine(e){const t=wne();return Mne(()=>{t.current=e}),t.current}var Jk=Ine;const{useStoreRef:Tne}=ac,{SUSPENSE_TIMEOUT_MS:Sne}=Uh,{updateRetainCount:r1}=Uh,{RetentionZone:Ene}=Gv,{useEffect:Dne,useRef:Cne}=Yi,{isSSR:e9}=qv;function Ane(e){if(gr("recoil_memory_managament_2020"))return Nne(e)}function Nne(e){const n=(Array.isArray(e)?e:[e]).map(g=>g instanceof Ene?g:g.key),o=Tne();Dne(()=>{if(!gr("recoil_memory_managament_2020"))return;const g=o.current;if(l.current&&!e9)window.clearTimeout(l.current),l.current=null;else for(const s of n)r1(g,s,1);return()=>{for(const s of n)r1(g,s,-1)}},[o,...n]);const l=Cne(),d=Jk(n);if(!e9&&(d===void 0||!bne(d,n))){const g=o.current;for(const s of n)r1(g,s,1);if(d)for(const s of d)r1(g,s,-1);l.current&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>{l.current=null;for(const s of n)r1(g,s,-1)},Sne)}}var gI=Ane;function Lne(){return"<component name not available>"}var o1=Lne;const{batchUpdates:zne}=Wv,{DEFAULT_VALUE:t9}=Ss,{currentRendererSupportsUseSyncExternalStore:kne,reactMode:Yf,useMutableSource:One,useSyncExternalStore:jne}=Xg,{useRecoilMutableSource:Rne,useStoreRef:_l}=ac,{AbstractRecoilValue:yI,getRecoilValueAsLoadable:s1,setRecoilValue:nx,setUnvalidatedRecoilValue:Pne,subscribeToRecoilValue:Gf}=yl,{useCallback:Es,useEffect:Zf,useMemo:n9,useRef:a1,useState:_I}=Yi,{setByAddingToSet:Une}=fk,{isSSR:Bne}=qv;function vI(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(l=>{const d=n.current.getState().suspendedComponentResolvers;d.add(l),Bne&&Nr(e.contents)&&e.contents.finally(()=>{d.delete(l)})}):e.state==="hasError"?e.contents:Li(`Invalid value of loadable atom "${t.key}"`)}function Fne(){const e=o1(),t=_l(),[,n]=_I([]),o=a1(new Set);o.current=new Set;const l=a1(new Set),d=a1(new Map),g=Es(v=>{const E=d.current.get(v);E&&(E.release(),d.current.delete(v))},[d]),s=Es((v,E)=>{d.current.has(E)&&n([])},[]);return Zf(()=>{const v=t.current;Jg(o.current,l.current).forEach(E=>{if(d.current.has(E))return;const z=Gf(v,new yI(E),j=>s(j,E),e);d.current.set(E,z),v.getState().nextTree?v.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s(v.getState(),E)}):s(v.getState(),E)}),Jg(l.current,o.current).forEach(E=>{g(E)}),l.current=o.current}),Zf(()=>{const v=d.current;return Jg(o.current,new Set(v.keys())).forEach(E=>{const z=Gf(t.current,new yI(E),O=>s(O,E),e);v.set(E,z)}),()=>v.forEach((E,z)=>g(z))},[e,t,g,s]),n9(()=>{function v($){return Y=>{nx(t.current,$,Y)}}function E($){return()=>nx(t.current,$,t9)}function z($){var Y;o.current.has($.key)||(o.current=Une(o.current,$.key));const ie=t.current.getState();return s1(t.current,$,Yf().early&&(Y=ie.nextTree)!==null&&Y!==void 0?Y:ie.currentTree)}function O($){const Y=z($);return vI(Y,$,t)}function j($){return[O($),v($)]}function F($){return[z($),v($)]}return{getRecoilValue:O,getRecoilValueLoadable:z,getRecoilState:j,getRecoilStateLoadable:F,getSetRecoilState:v,getResetRecoilState:E}},[o,t])}const Vne={current:0};function $ne(e){const t=_l(),n=o1(),o=Es(()=>{var s;const v=t.current,E=v.getState(),z=Yf().early&&(s=E.nextTree)!==null&&s!==void 0?s:E.currentTree;return{loadable:s1(v,e,z),key:e.key}},[t,e]),l=Es(s=>{let v;return()=>{var E,z;const O=s();return(E=v)!==null&&E!==void 0&&E.loadable.is(O.loadable)&&((z=v)===null||z===void 0?void 0:z.key)===O.key?v:(v=O,O)}},[]),d=n9(()=>l(o),[o,l]),g=Es(s=>{const v=t.current;return Gf(v,e,s,n).release},[t,e,n]);return jne(g,d,d).loadable}function Hne(e){const t=_l(),n=Es(()=>{var E;const z=t.current,O=z.getState(),j=Yf().early&&(E=O.nextTree)!==null&&E!==void 0?E:O.currentTree;return s1(z,e,j)},[t,e]),o=Es(()=>n(),[n]),l=o1(),d=Es((E,z)=>{const O=t.current;return Gf(O,e,()=>{if(!gr("recoil_suppress_rerender_in_callback"))return z();const F=n();v.current.is(F)||z(),v.current=F},l).release},[t,e,l,n]),g=Rne();if(g==null)throw Li("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const s=One(g,o,d),v=a1(s);return Zf(()=>{v.current=s}),s}function xI(e){const t=_l(),n=o1(),o=Es(()=>{var v;const E=t.current,z=E.getState(),O=Yf().early&&(v=z.nextTree)!==null&&v!==void 0?v:z.currentTree;return s1(E,e,O)},[t,e]),l=Es(()=>({loadable:o(),key:e.key}),[o,e.key]),d=Es(v=>{const E=l();return v.loadable.is(E.loadable)&&v.key===E.key?v:E},[l]);Zf(()=>{const v=Gf(t.current,e,E=>{s(d)},n);return s(d),v.release},[n,e,t,d]);const[g,s]=_I(l);return g.key!==e.key?l().loadable:g.loadable}function Qne(e){const t=_l(),[,n]=_I([]),o=o1(),l=Es(()=>{var s;const v=t.current,E=v.getState(),z=Yf().early&&(s=E.nextTree)!==null&&s!==void 0?s:E.currentTree;return s1(v,e,z)},[t,e]),d=l(),g=a1(d);return Zf(()=>{g.current=d}),Zf(()=>{const s=t.current,v=s.getState(),E=Gf(s,e,O=>{var j;if(!gr("recoil_suppress_rerender_in_callback"))return n([]);const F=l();(j=g.current)!==null&&j!==void 0&&j.is(F)||n(F),g.current=F},o);if(v.nextTree)s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{g.current=null,n([])});else{var z;if(!gr("recoil_suppress_rerender_in_callback"))return n([]);const O=l();(z=g.current)!==null&&z!==void 0&&z.is(O)||n(O),g.current=O}return E.release},[o,l,e,t]),d}function bI(e){return gr("recoil_memory_managament_2020")&&gI(e),{TRANSITION_SUPPORT:xI,SYNC_EXTERNAL_STORE:kne()?$ne:xI,MUTABLE_SOURCE:Hne,LEGACY:Qne}[Yf().mode](e)}function i9(e){const t=_l(),n=bI(e);return vI(n,e,t)}function ix(e){const t=_l();return Es(n=>{nx(t.current,e,n)},[t,e])}function Yne(e){const t=_l();return Es(()=>{nx(t.current,e,t9)},[t,e])}function Gne(e){return[i9(e),ix(e)]}function Zne(e){return[bI(e),ix(e)]}function Wne(){const e=_l();return(t,n={})=>{zne(()=>{e.current.addTransactionMetadata(n),t.forEach((o,l)=>Pne(e.current,new yI(l),o))})}}function r9(e){return gr("recoil_memory_managament_2020")&&gI(e),xI(e)}function o9(e){const t=_l(),n=r9(e);return vI(n,e,t)}function qne(e){return[o9(e),ix(e)]}var Kne={recoilComponentGetRecoilValueCount_FOR_TESTING:Vne,useRecoilInterface:Fne,useRecoilState:Gne,useRecoilStateLoadable:Zne,useRecoilValue:i9,useRecoilValueLoadable:bI,useResetRecoilState:Yne,useSetRecoilState:ix,useSetUnvalidatedAtomValues:Wne,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:r9,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:o9,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:qne};function Xne(e,t){const n=new Map;for(const[o,l]of e)t(l,o)&&n.set(o,l);return n}var Jne=Xne;function eie(e,t){const n=new Set;for(const o of e)t(o)&&n.add(o);return n}var tie=eie;function nie(...e){const t=new Map;for(let n=0;n<e.length;n++){const o=e[n].keys();let l;for(;!(l=o.next()).done;)t.set(l.value,e[n].get(l.value))}return t}var iie=nie;const{batchUpdates:rie}=Wv,{DEFAULT_VALUE:oie,getNode:s9,nodes:sie}=Ss,{useStoreRef:MI}=ac,{AbstractRecoilValue:aie,setRecoilValueLoadable:lie}=yl,{SUSPENSE_TIMEOUT_MS:cie}=Uh,{cloneSnapshot:rx}=ex,{useCallback:ox,useEffect:a9,useRef:l9,useState:uie}=Yi,{isSSR:c9}=qv;function sx(e){const t=MI();a9(()=>t.current.subscribeToTransactions(e).release,[e,t])}function u9(e){const t=e.atomValues.toMap(),n=Qv(Jne(t,(o,l)=>{const g=s9(l).persistence_UNSTABLE;return g!=null&&g.type!=="none"&&o.state==="hasValue"}),o=>o.contents);return iie(e.nonvalidatedAtoms.toMap(),n)}function hie(e){sx(ox(t=>{let n=t.getState().previousTree;const o=t.getState().currentTree;n||(n=t.getState().currentTree);const l=u9(o),d=u9(n),g=Qv(sie,v=>{var E,z,O,j;return{persistence_UNSTABLE:{type:(E=(z=v.persistence_UNSTABLE)===null||z===void 0?void 0:z.type)!==null&&E!==void 0?E:"none",backButton:(O=(j=v.persistence_UNSTABLE)===null||j===void 0?void 0:j.backButton)!==null&&O!==void 0?O:!1}}}),s=tie(o.dirtyAtoms,v=>l.has(v)||d.has(v));e({atomValues:l,previousAtomValues:d,atomInfo:g,modifiedAtoms:s,transactionMetadata:{...o.transactionMetadata}})},[e]))}function die(e){sx(ox(t=>{const n=rx(t,"latest"),o=rx(t,"previous");e({snapshot:n,previousSnapshot:o})},[e]))}function fie(){const e=MI(),[t,n]=uie(()=>rx(e.current)),o=Jk(t),l=l9(),d=l9();if(sx(ox(s=>n(rx(s)),[])),a9(()=>{const s=t.retain();if(l.current&&!c9){var v;window.clearTimeout(l.current),l.current=null,(v=d.current)===null||v===void 0||v.call(d),d.current=null}return()=>{window.setTimeout(s,10)}},[t]),o!==t&&!c9){if(l.current){var g;window.clearTimeout(l.current),l.current=null,(g=d.current)===null||g===void 0||g.call(d),d.current=null}d.current=t.retain(),l.current=window.setTimeout(()=>{var s;l.current=null,(s=d.current)===null||s===void 0||s.call(d),d.current=null},cie)}return t}function h9(e,t){var n;const o=e.getState(),l=(n=o.nextTree)!==null&&n!==void 0?n:o.currentTree,d=t.getStore_INTERNAL().getState().currentTree;rie(()=>{const g=new Set;for(const E of[l.atomValues.keys(),d.atomValues.keys()])for(const z of E){var s,v;((s=l.atomValues.get(z))===null||s===void 0?void 0:s.contents)!==((v=d.atomValues.get(z))===null||v===void 0?void 0:v.contents)&&s9(z).shouldRestoreFromSnapshots&&g.add(z)}g.forEach(E=>{lie(e,new aie(E),d.atomValues.has(E)?Rr(d.atomValues.get(E)):oie)}),e.replaceState(E=>({...E,stateID:t.getID()}))})}function pie(){const e=MI();return ox(t=>h9(e.current,t),[e])}var d9={useRecoilSnapshot:fie,gotoSnapshot:h9,useGotoRecoilSnapshot:pie,useRecoilTransactionObserver:die,useTransactionObservation_DEPRECATED:hie,useTransactionSubscription_DEPRECATED:sx};const{peekNodeInfo:mie}=uu,{useStoreRef:gie}=ac;function yie(){const e=gie();return({key:t})=>mie(e.current,e.current.getState().currentTree,t)}var _ie=yie;const{reactMode:vie}=Xg,{RecoilRoot:xie,useStoreRef:bie}=ac,{useMemo:Mie}=Yi;function wie(){vie().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=bie().current;return Mie(()=>{function t({children:n}){return Yi.createElement(xie,{store_INTERNAL:e},n)}return t},[e])}var Iie=wie;const{loadableWithValue:Tie}=Kg,{initializeNode:Sie}=uu,{DEFAULT_VALUE:Eie,getNode:Die}=Ss,{copyTreeState:Cie,getRecoilValueAsLoadable:Aie,invalidateDownstreams:Nie,writeLoadableToTreeState:Lie}=yl;function f9(e){return Die(e.key).nodeType==="atom"}class zie{constructor(t,n){Ei(this,"_store",void 0),Ei(this,"_treeState",void 0),Ei(this,"_changes",void 0),Ei(this,"get",o=>{if(this._changes.has(o.key))return this._changes.get(o.key);if(!f9(o))throw Li("Reading selectors within atomicUpdate is not supported");const l=Aie(this._store,o,this._treeState);if(l.state==="hasValue")return l.contents;throw l.state==="hasError"?l.contents:Li(`Expected Recoil atom ${o.key} to have a value, but it is in a loading state.`)}),Ei(this,"set",(o,l)=>{if(!f9(o))throw Li("Setting selectors within atomicUpdate is not supported");if(typeof l=="function"){const d=this.get(o);this._changes.set(o.key,l(d))}else Sie(this._store,o.key,"set"),this._changes.set(o.key,l)}),Ei(this,"reset",o=>{this.set(o,Eie)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=Cie(this._treeState);for(const[n,o]of this._changes)Lie(t,n,Tie(o));return Nie(this._store,t),t}}function kie(e){return t=>{e.replaceState(n=>{const o=new zie(e,n);return t(o),o.newTreeState_INTERNAL()})}}var Oie={atomicUpdater:kie},jie=Oie.atomicUpdater,p9=Object.freeze({__proto__:null,atomicUpdater:jie});function Rie(e,t){if(!e)throw new Error(t)}var Pie=Rie,l1=Pie;const{atomicUpdater:Uie}=p9,{batchUpdates:Bie}=Wv,{DEFAULT_VALUE:Fie}=Ss,{useStoreRef:Vie}=ac,{refreshRecoilValue:$ie,setRecoilValue:m9}=yl,{cloneSnapshot:Hie}=ex,{gotoSnapshot:Qie}=d9,{useCallback:Yie}=Yi;class g9{}const Gie=new g9;function y9(e,t,n,o){let l=Gie,d;if(Bie(()=>{const s="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw Li(s);const v=pk({...o??{},set:(z,O)=>m9(e,z,O),reset:z=>m9(e,z,Fie),refresh:z=>$ie(e,z),gotoSnapshot:z=>Qie(e,z),transact_UNSTABLE:z=>Uie(e)(z)},{snapshot:()=>{const z=Hie(e);return d=z.retain(),z}}),E=t(v);if(typeof E!="function")throw Li(s);l=E(...n)}),l instanceof g9&&l1(!1),Nr(l))l=l.finally(()=>{var s;(s=d)===null||s===void 0||s()});else{var g;(g=d)===null||g===void 0||g()}return l}function Zie(e,t){const n=Vie();return Yie((...o)=>y9(n.current,e,o),t!=null?[...t,n]:void 0)}var _9={recoilCallback:y9,useRecoilCallback:Zie};const{useStoreRef:Wie}=ac,{refreshRecoilValue:qie}=yl,{useCallback:Kie}=Yi;function Xie(e){const t=Wie();return Kie(()=>{const n=t.current;qie(n,e)},[e,t])}var Jie=Xie;const{atomicUpdater:ere}=p9,{useStoreRef:tre}=ac,{useMemo:nre}=Yi;function ire(e,t){const n=tre();return nre(()=>(...o)=>{ere(n.current)(d=>{e(d)(...o)})},t!=null?[...t,n]:void 0)}var rre=ire;class ore{constructor(t){Ei(this,"value",void 0),this.value=t}}var sre={WrappedValue:ore},are=sre.WrappedValue,v9=Object.freeze({__proto__:null,WrappedValue:are});const{isFastRefreshEnabled:lre}=Xg;class x9 extends Error{}class cre{constructor(t){var n,o,l;Ei(this,"_name",void 0),Ei(this,"_numLeafs",void 0),Ei(this,"_root",void 0),Ei(this,"_onHit",void 0),Ei(this,"_onSet",void 0),Ei(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(o=t==null?void 0:t.onSet)!==null&&o!==void 0?o:()=>{},this._mapNodeValue=(l=t==null?void 0:t.mapNodeValue)!==null&&l!==void 0?l:d=>d}size(){return this._numLeafs}root(){return this._root}get(t,n){var o;return(o=this.getLeafNode(t,n))===null||o===void 0?void 0:o.value}getLeafNode(t,n){if(this._root==null)return;let o=this._root;for(;o;){if(n==null||n.onNodeVisit(o),o.type==="leaf")return this._onHit(o),o;const l=this._mapNodeValue(t(o.nodeKey));o=o.branches.get(l)}}set(t,n,o){const l=()=>{var d,g,s,v;let E,z;for(const[ie,K]of t){var O,j,F;const J=this._root;if((J==null?void 0:J.type)==="leaf")throw this.invalidCacheError();const te=E;if(E=te?te.branches.get(z):J,E=(O=E)!==null&&O!==void 0?O:{type:"branch",nodeKey:ie,parent:te,branches:new Map,branchKey:z},E.type!=="branch"||E.nodeKey!==ie)throw this.invalidCacheError();te==null||te.branches.set(z,E),o==null||(j=o.onNodeVisit)===null||j===void 0||j.call(o,E),z=this._mapNodeValue(K),this._root=(F=this._root)!==null&&F!==void 0?F:E}const $=E?(d=E)===null||d===void 0?void 0:d.branches.get(z):this._root;if($!=null&&($.type!=="leaf"||$.branchKey!==z))throw this.invalidCacheError();const Y={type:"leaf",value:n,parent:E,branchKey:z};(g=E)===null||g===void 0||g.branches.set(z,Y),this._root=(s=this._root)!==null&&s!==void 0?s:Y,this._numLeafs++,this._onSet(Y),o==null||(v=o.onNodeVisit)===null||v===void 0||v.call(o,Y)};try{l()}catch(d){if(d instanceof x9)this.clear(),l();else throw d}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let o=t.parent,l=t.branchKey;for(;o;){var d;if(o.branches.delete(l),o===n)return o.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(o.branches.size>0)break;l=(d=o)===null||d===void 0?void 0:d.branchKey,o=o.parent}for(;o!==n;o=o.parent)if(o==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=lre()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw q5(t+(this._name!=null?` - ${this._name}`:"")),new x9}}var ure={TreeCache:cre},hre=ure.TreeCache,b9=Object.freeze({__proto__:null,TreeCache:hre});class dre{constructor(t){var n;Ei(this,"_maxSize",void 0),Ei(this,"_size",void 0),Ei(this,"_head",void 0),Ei(this,"_tail",void 0),Ei(this,"_map",void 0),Ei(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:o=>o}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),o=this._map.get(n);if(o)return this.set(t,o.value),o.value}set(t,n){const o=this._keyMapper(t);this._map.get(o)&&this.delete(t);const d=this.head(),g={key:t,right:d,left:null,value:n};d?d.left=g:this._tail=g,this._map.set(o,g),this._head=g,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const o=Rr(this._map.get(n)),l=o.right,d=o.left;l&&(l.left=o.left),d&&(d.right=o.right),o===this.head()&&(this._head=l),o===this.tail()&&(this._tail=d),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var fre={LRUCache:dre},pre=fre.LRUCache,M9=Object.freeze({__proto__:null,LRUCache:pre});const{LRUCache:mre}=M9,{TreeCache:gre}=b9;function yre({name:e,maxSize:t,mapNodeValue:n=o=>o}){const o=new mre({maxSize:t}),l=new gre({name:e,mapNodeValue:n,onHit:d=>{o.set(d,!0)},onSet:d=>{const g=o.tail();o.set(d,!0),g&&l.size()>t&&l.delete(g.key)}});return l}var w9=yre;function Ha(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw Li("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var o;return(o=JSON.stringify(e))!==null&&o!==void 0?o:""}if(Nr(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((l,d)=>Ha(l,t,d.toString()))}]`;if(typeof e.toJSON=="function")return Ha(e.toJSON(n),t,n);if(e instanceof Map){const l={};for(const[d,g]of e)l[typeof d=="string"?d:Ha(d,t)]=g;return Ha(l,t,n)}return e instanceof Set?Ha(Array.from(e).sort((l,d)=>Ha(l,t).localeCompare(Ha(d,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Ha(Array.from(e),t,n):`{${Object.keys(e).filter(l=>e[l]!==void 0).sort().map(l=>`${Ha(l,t)}:${Ha(e[l],t,l)}`).join(",")}}`}function _re(e,t={allowFunctions:!1}){return Ha(e,t)}var ax=_re;const{TreeCache:vre}=b9,lx={equality:"reference",eviction:"keep-all",maxSize:1/0};function xre({equality:e=lx.equality,eviction:t=lx.eviction,maxSize:n=lx.maxSize}=lx,o){const l=bre(e);return Mre(t,n,l,o)}function bre(e){switch(e){case"reference":return t=>t;case"value":return t=>ax(t)}throw Li(`Unrecognized equality policy ${e}`)}function Mre(e,t,n,o){switch(e){case"keep-all":return new vre({name:o,mapNodeValue:n});case"lru":return w9({name:o,maxSize:Rr(t),mapNodeValue:n});case"most-recent":return w9({name:o,maxSize:1,mapNodeValue:n})}throw Li(`Unrecognized eviction policy ${e}`)}var wre=xre;function Ire(e){return()=>null}var Tre={startPerfBlock:Ire};const{isLoadable:Sre,loadableWithError:cx,loadableWithPromise:Ere,loadableWithValue:wI}=Kg,{WrappedValue:I9}=v9,{getNodeLoadable:ux,peekNodeLoadable:Dre,setNodeValue:Cre}=uu,{saveDepsToStore:Are}=e1,{DEFAULT_VALUE:Nre,getConfigDeletionHandler:Lre,getNode:zre,registerNode:T9}=Ss,{isRecoilValue:kre}=Qf,{markRecoilValueModified:S9}=yl,{retainedByOptionWithDefault:Ore}=Uh,{recoilCallback:jre}=_9,{startPerfBlock:Rre}=Tre;class E9{}const c1=new E9,u1=[],hx=new Map,Pre=(()=>{let e=0;return()=>e++})();function D9(e){let t=null;const{key:n,get:o,cachePolicy_UNSTABLE:l}=e,d=e.set!=null?e.set:void 0,g=new Set,s=wre(l??{equality:"reference",eviction:"keep-all"},n),v=Ore(e.retainedBy_UNSTABLE),E=new Map;let z=0;function O(){return!gr("recoil_memory_managament_2020")||z>0}function j(ye){return ye.getState().knownSelectors.add(n),z++,()=>{z--}}function F(){return Lre(n)!==void 0&&!O()}function $(ye,ee,fe,Ne,Ee){Fe(ee,Ne,Ee),Y(ye,fe)}function Y(ye,ee){vt(ye,ee)&&mt(ye),K(ee,!0)}function ie(ye,ee){vt(ye,ee)&&(Rr(Te(ye)).stateVersions.clear(),K(ee,!1))}function K(ye,ee){const fe=hx.get(ye);if(fe!=null){for(const Ne of fe)S9(Ne,Rr(t));ee&&hx.delete(ye)}}function J(ye,ee){let fe=hx.get(ee);fe==null&&hx.set(ee,fe=new Set),fe.add(ye)}function te(ye,ee,fe,Ne,Ee,Xe){return ee.then(ft=>{if(!O())throw mt(ye),c1;const it=wI(ft);return $(ye,fe,Ee,it,Ne),ft}).catch(ft=>{if(!O())throw mt(ye),c1;if(Nr(ft))return oe(ye,ft,fe,Ne,Ee,Xe);const it=cx(ft);throw $(ye,fe,Ee,it,Ne),ft})}function oe(ye,ee,fe,Ne,Ee,Xe){return ee.then(ft=>{if(!O())throw mt(ye),c1;Xe.loadingDepKey!=null&&Xe.loadingDepPromise===ee?fe.atomValues.set(Xe.loadingDepKey,wI(ft)):ye.getState().knownSelectors.forEach(Gt=>{fe.atomValues.delete(Gt)});const it=he(ye,fe);if(it&&it.state!=="loading"){if((vt(ye,Ee)||Te(ye)==null)&&Y(ye,Ee),it.state==="hasValue")return it.contents;throw it.contents}if(!vt(ye,Ee)){const Gt=qe(ye,fe);if(Gt!=null)return Gt.loadingLoadable.contents}const[ue,Dt]=me(ye,fe,Ee);if(ue.state!=="loading"&&$(ye,fe,Ee,ue,Dt),ue.state==="hasError")throw ue.contents;return ue.contents}).catch(ft=>{if(ft instanceof E9)throw c1;if(!O())throw mt(ye),c1;const it=cx(ft);throw $(ye,fe,Ee,it,Ne),ft})}function pe(ye,ee,fe,Ne){var Ee,Xe,ft,it;if(vt(ye,Ne)||ee.version===((Ee=ye.getState())===null||Ee===void 0||(Xe=Ee.currentTree)===null||Xe===void 0?void 0:Xe.version)||ee.version===((ft=ye.getState())===null||ft===void 0||(it=ft.nextTree)===null||it===void 0?void 0:it.version)){var ue,Dt,Gt;Are(n,fe,ye,(ue=(Dt=ye.getState())===null||Dt===void 0||(Gt=Dt.nextTree)===null||Gt===void 0?void 0:Gt.version)!==null&&ue!==void 0?ue:ye.getState().currentTree.version)}for(const Et of fe)g.add(Et)}function me(ye,ee,fe){const Ne=Rre(n);let Ee=!0,Xe=!0;const ft=()=>{Ne(),Xe=!1};let it,ue=!1,Dt;const Gt={loadingDepKey:null,loadingDepPromise:null},Et=new Map;function We({key:wt}){const en=ux(ye,ee,wt);switch(Et.set(wt,en),Ee||(pe(ye,ee,new Set(Et.keys()),fe),ie(ye,fe)),en.state){case"hasValue":return en.contents;case"hasError":throw en.contents;case"loading":throw Gt.loadingDepKey=wt,Gt.loadingDepPromise=en.contents,en.contents}throw Li("Invalid Loadable state")}const Ut=wt=>(...en)=>{if(Xe)throw Li("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&l1(!1),jre(ye,wt,en,{node:t})};try{it=o({get:We,getCallback:Ut}),it=kre(it)?We(it):it,Sre(it)&&(it.state==="hasError"&&(ue=!0),it=it.contents),Nr(it)?it=te(ye,it,ee,Et,fe,Gt).finally(ft):ft(),it=it instanceof I9?it.value:it}catch(wt){it=wt,Nr(it)?it=oe(ye,it,ee,Et,fe,Gt).finally(ft):(ue=!0,ft())}return ue?Dt=cx(it):Nr(it)?Dt=Ere(it):Dt=wI(it),Ee=!1,ht(ye,fe,Et),pe(ye,ee,new Set(Et.keys()),fe),[Dt,Et]}function he(ye,ee){let fe=ee.atomValues.get(n);if(fe!=null)return fe;const Ne=new Set;try{fe=s.get(Xe=>(typeof Xe!="string"&&l1(!1),ux(ye,ee,Xe).contents),{onNodeVisit:Xe=>{Xe.type==="branch"&&Xe.nodeKey!==n&&Ne.add(Xe.nodeKey)}})}catch(Xe){throw Li(`Problem with cache lookup for selector "${n}": ${Xe.message}`)}if(fe){var Ee;ee.atomValues.set(n,fe),pe(ye,ee,Ne,(Ee=Te(ye))===null||Ee===void 0?void 0:Ee.executionID)}return fe}function De(ye,ee){const fe=he(ye,ee);if(fe!=null)return mt(ye),fe;const Ne=qe(ye,ee);if(Ne!=null){var Ee;return((Ee=Ne.loadingLoadable)===null||Ee===void 0?void 0:Ee.state)==="loading"&&J(ye,Ne.executionID),Ne.loadingLoadable}const Xe=Pre(),[ft,it]=me(ye,ee,Xe);return ft.state==="loading"?(ze(ye,Xe,ft,it,ee),J(ye,Xe)):(mt(ye),Fe(ee,ft,it)),ft}function qe(ye,ee){const fe=zk([E.has(ye)?[Rr(E.get(ye))]:[],$v(oI(E,([Ee])=>Ee!==ye),([,Ee])=>Ee)]);function Ne(Ee){for(const[Xe,ft]of Ee)if(!ux(ye,ee,Xe).is(ft))return!0;return!1}for(const Ee of fe){if(Ee.stateVersions.get(ee.version)||!Ne(Ee.depValuesDiscoveredSoFarDuringAsyncWork))return Ee.stateVersions.set(ee.version,!0),Ee;Ee.stateVersions.set(ee.version,!1)}}function Te(ye){return E.get(ye)}function ze(ye,ee,fe,Ne,Ee){E.set(ye,{depValuesDiscoveredSoFarDuringAsyncWork:Ne,executionID:ee,loadingLoadable:fe,stateVersions:new Map([[Ee.version,!0]])})}function ht(ye,ee,fe){if(vt(ye,ee)){const Ne=Te(ye);Ne!=null&&(Ne.depValuesDiscoveredSoFarDuringAsyncWork=fe)}}function mt(ye){E.delete(ye)}function vt(ye,ee){var fe;return ee===((fe=Te(ye))===null||fe===void 0?void 0:fe.executionID)}function Qe(ye){return Array.from(ye.entries()).map(([ee,fe])=>[ee,fe.contents])}function Fe(ye,ee,fe){ye.atomValues.set(n,ee);try{s.set(Qe(fe),ee)}catch(Ne){throw Li(`Problem with setting cache for selector "${n}": ${Ne.message}`)}}function ot(ye){if(u1.includes(n)){const ee=`Recoil selector has circular dependencies: ${u1.slice(u1.indexOf(n)).join(" → ")}`;return cx(Li(ee))}u1.push(n);try{return ye()}finally{u1.pop()}}function Je(ye,ee){const fe=ee.atomValues.get(n);return fe??s.get(Ne=>{var Ee;return typeof Ne!="string"&&l1(!1),(Ee=Dre(ye,ee,Ne))===null||Ee===void 0?void 0:Ee.contents})}function He(ye,ee){return ot(()=>De(ye,ee))}function Ae(ye){ye.atomValues.delete(n)}function je(ye,ee){t==null&&l1(!1);for(const Ne of g){var fe;const Ee=zre(Ne);(fe=Ee.clearCache)===null||fe===void 0||fe.call(Ee,ye,ee)}g.clear(),Ae(ee),s.clear(),S9(ye,t)}return d!=null?t=T9({key:n,nodeType:"selector",peek:Je,get:He,set:(ee,fe,Ne)=>{let Ee=!1;const Xe=new Map;function ft({key:Gt}){if(Ee)throw Li("Recoil: Async selector sets are not currently supported.");const Et=ux(ee,fe,Gt);if(Et.state==="hasValue")return Et.contents;if(Et.state==="loading"){const We=`Getting value of asynchronous atom or selector "${Gt}" in a pending state while setting selector "${n}" is not yet supported.`;throw Li(We)}else throw Et.contents}function it(Gt,Et){if(Ee)throw Li("Recoil: Async selector sets are not currently supported.");const We=typeof Et=="function"?Et(ft(Gt)):Et;Cre(ee,fe,Gt.key,We).forEach((wt,en)=>Xe.set(en,wt))}function ue(Gt){it(Gt,Nre)}const Dt=d({set:it,get:ft,reset:ue},Ne);if(Dt!==void 0)throw Nr(Dt)?Li("Recoil: Async selector sets are not currently supported."):Li("Recoil: selector set should be a void function.");return Ee=!0,Xe},init:j,invalidate:Ae,clearCache:je,shouldDeleteConfigOnRelease:F,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v}):t=T9({key:n,nodeType:"selector",peek:Je,get:He,init:j,invalidate:Ae,clearCache:je,shouldDeleteConfigOnRelease:F,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v})}D9.value=e=>new I9(e);var Wf=D9;const{isLoadable:Ure,loadableWithError:II,loadableWithPromise:TI,loadableWithValue:qf}=Kg,{WrappedValue:C9}=v9,{peekNodeInfo:Bre}=uu,{DEFAULT_VALUE:Bh,DefaultValue:hu,getConfigDeletionHandler:A9,registerNode:Fre,setConfigDeletionHandler:Vre}=Ss,{isRecoilValue:$re}=Qf,{getRecoilValueAsLoadable:Hre,markRecoilValueModified:Qre,setRecoilValue:N9,setRecoilValueLoadable:Yre}=yl,{retainedByOptionWithDefault:Gre}=Uh,h1=e=>e instanceof C9?e.value:e;function Zre(e){const{key:t,persistence_UNSTABLE:n}=e,o=Gre(e.retainedBy_UNSTABLE);let l=0;function d(J){return TI(J.then(te=>(g=qf(te),te)).catch(te=>{throw g=II(te),te}))}let g=Nr(e.default)?d(e.default):Ure(e.default)?e.default.state==="loading"?d(e.default.contents):e.default:qf(h1(e.default));g.contents;let s;const v=new Map;function E(J){return J}function z(J,te){const oe=te.then(pe=>{var me,he;return((he=((me=J.getState().nextTree)!==null&&me!==void 0?me:J.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===oe&&N9(J,K,pe),pe}).catch(pe=>{var me,he;throw((he=((me=J.getState().nextTree)!==null&&me!==void 0?me:J.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===oe&&Yre(J,K,II(pe)),pe});return oe}function O(J,te,oe){var pe;l++;const me=()=>{var Te;l--,(Te=v.get(J))===null||Te===void 0||Te.forEach(ze=>ze()),v.delete(J)};if(J.getState().knownAtoms.add(t),g.state==="loading"){const Te=()=>{var ze;((ze=J.getState().nextTree)!==null&&ze!==void 0?ze:J.getState().currentTree).atomValues.has(t)||Qre(J,K)};g.contents.finally(Te)}const he=(pe=e.effects)!==null&&pe!==void 0?pe:e.effects_UNSTABLE;if(he!=null){let vt=function(Ae){if(ze&&Ae.key===t){const je=Te;return je instanceof hu?j(J,te):Nr(je)?TI(je.then(ye=>ye instanceof hu?g.toPromise():ye)):qf(je)}return Hre(J,Ae)},Qe=function(Ae){return vt(Ae).toPromise()},Fe=function(Ae){var je;const ye=Bre(J,(je=J.getState().nextTree)!==null&&je!==void 0?je:J.getState().currentTree,Ae.key);return ze&&Ae.key===t&&!(Te instanceof hu)?{...ye,isSet:!0,loadable:vt(Ae)}:ye},Te=Bh,ze=!0,ht=!1,mt=null;const ot=Ae=>je=>{if(ze){const ye=vt(K),ee=ye.state==="hasValue"?ye.contents:Bh;Te=typeof je=="function"?je(ee):je,Nr(Te)&&(Te=Te.then(fe=>(mt={effect:Ae,value:fe},fe)))}else{if(Nr(je))throw Li("Setting atoms to async values is not implemented.");typeof je!="function"&&(mt={effect:Ae,value:h1(je)}),N9(J,K,typeof je=="function"?ye=>{const ee=h1(je(ye));return mt={effect:Ae,value:ee},ee}:h1(je))}},Je=Ae=>()=>ot(Ae)(Bh),He=Ae=>je=>{var ye;const{release:ee}=J.subscribeToTransactions(fe=>{var Ne;let{currentTree:Ee,previousTree:Xe}=fe.getState();Xe||(Xe=Ee);const ft=(Ne=Ee.atomValues.get(t))!==null&&Ne!==void 0?Ne:g;if(ft.state==="hasValue"){var it,ue,Dt,Gt;const Et=ft.contents,We=(it=Xe.atomValues.get(t))!==null&&it!==void 0?it:g,Ut=We.state==="hasValue"?We.contents:Bh;((ue=mt)===null||ue===void 0?void 0:ue.effect)!==Ae||((Dt=mt)===null||Dt===void 0?void 0:Dt.value)!==Et?je(Et,Ut,!Ee.atomValues.has(t)):((Gt=mt)===null||Gt===void 0?void 0:Gt.effect)===Ae&&(mt=null)}},t);v.set(J,[...(ye=v.get(J))!==null&&ye!==void 0?ye:[],ee])};for(const Ae of he)try{const je=Ae({node:K,storeID:J.storeID,parentStoreID_UNSTABLE:J.parentStoreID,trigger:oe,setSelf:ot(Ae),resetSelf:Je(Ae),onSet:He(Ae),getPromise:Qe,getLoadable:vt,getInfo_UNSTABLE:Fe});if(je!=null){var De;v.set(J,[...(De=v.get(J))!==null&&De!==void 0?De:[],je])}}catch(je){Te=je,ht=!0}if(ze=!1,!(Te instanceof hu)){var qe;const Ae=ht?II(Te):Nr(Te)?TI(z(J,Te)):qf(h1(Te));Ae.contents,te.atomValues.set(t,Ae),(qe=J.getState().nextTree)===null||qe===void 0||qe.atomValues.set(t,Ae)}}return me}function j(J,te){var oe,pe;return(oe=(pe=te.atomValues.get(t))!==null&&pe!==void 0?pe:s)!==null&&oe!==void 0?oe:g}function F(J,te){if(te.atomValues.has(t))return Rr(te.atomValues.get(t));if(te.nonvalidatedAtoms.has(t)){if(s!=null)return s;if(n==null)return g;const oe=te.nonvalidatedAtoms.get(t),pe=n.validator(oe,Bh);return s=pe instanceof hu?g:qf(pe),s}else return g}function $(){s=void 0}function Y(J,te,oe){if(te.atomValues.has(t)){const pe=Rr(te.atomValues.get(t));if(pe.state==="hasValue"&&oe===pe.contents)return new Map}else if(!te.nonvalidatedAtoms.has(t)&&oe instanceof hu)return new Map;return s=void 0,new Map().set(t,qf(oe))}function ie(){return A9(t)!==void 0&&l<=0}const K=Fre({key:t,nodeType:"atom",peek:j,get:F,set:Y,init:O,invalidate:$,shouldDeleteConfigOnRelease:ie,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:o});return K}function SI(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return $re(n)?Wre({...t,default:n}):Zre({...t,default:n})}function Wre(e){const t=SI({...e,default:Bh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:o=>o instanceof hu?o:Rr(e.persistence_UNSTABLE).validator(o,Bh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Wf({key:`${e.key}__withFallback`,get:({get:o})=>{const l=o(t);return l instanceof hu?e.default:l},set:({set:o},l)=>o(t,l),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return Vre(n.key,A9(e.key)),n}SI.value=e=>new C9(e);var L9=SI;class qre{constructor(t){var n;Ei(this,"_map",void 0),Ei(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:o=>o}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var Kre={MapCache:qre},Xre=Kre.MapCache,Jre=Object.freeze({__proto__:null,MapCache:Xre});const{LRUCache:z9}=M9,{MapCache:eoe}=Jre,dx={equality:"reference",eviction:"none",maxSize:1/0};function toe({equality:e=dx.equality,eviction:t=dx.eviction,maxSize:n=dx.maxSize}=dx){const o=noe(e);return ioe(t,n,o)}function noe(e){switch(e){case"reference":return t=>t;case"value":return t=>ax(t)}throw Li(`Unrecognized equality policy ${e}`)}function ioe(e,t,n){switch(e){case"keep-all":return new eoe({mapKey:n});case"lru":return new z9({mapKey:n,maxSize:Rr(t)});case"most-recent":return new z9({mapKey:n,maxSize:1})}throw Li(`Unrecognized eviction policy ${e}`)}var k9=toe;const{setConfigDeletionHandler:roe}=Ss;function ooe(e){var t,n;const o=k9({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return l=>{var d,g;const s=o.get(l);if(s!=null)return s;const{cachePolicyForParams_UNSTABLE:v,...E}=e,z="default"in e?e.default:new Promise(()=>{}),O=L9({...E,key:`${e.key}__${(d=ax(l))!==null&&d!==void 0?d:"void"}`,default:typeof z=="function"?z(l):z,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(l):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(l):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(l):(g=e.effects)!==null&&g!==void 0?g:e.effects_UNSTABLE});return o.set(l,O),roe(O.key,()=>{o.delete(l)}),O}}var soe=ooe;const{setConfigDeletionHandler:aoe}=Ss;let loe=0;function coe(e){var t,n;const o=k9({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return l=>{var d;let g;try{g=o.get(l)}catch(j){throw Li(`Problem with cache lookup for selector ${e.key}: ${j.message}`)}if(g!=null)return g;const s=`${e.key}__selectorFamily/${(d=ax(l,{allowFunctions:!0}))!==null&&d!==void 0?d:"void"}/${loe++}`,v=j=>e.get(l)(j),E=e.cachePolicy_UNSTABLE,z=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(l):e.retainedBy_UNSTABLE;let O;if(e.set!=null){const j=e.set;O=Wf({key:s,get:v,set:($,Y)=>j(l)($,Y),cachePolicy_UNSTABLE:E,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:z})}else O=Wf({key:s,get:v,cachePolicy_UNSTABLE:E,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:z});return o.set(l,O),aoe(O.key,()=>{o.delete(l)}),O}}var du=coe;const uoe=du({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function hoe(e){return uoe(e)}var doe=hoe;const foe=du({key:"__error",get:e=>()=>{throw Li(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function poe(e){return foe(e)}var moe=poe;function goe(e){return e}var yoe=goe;const{loadableWithError:O9,loadableWithPromise:j9,loadableWithValue:R9}=Kg;function fx(e,t){const n=Array(t.length).fill(void 0),o=Array(t.length).fill(void 0);for(const[l,d]of t.entries())try{n[l]=e(d)}catch(g){o[l]=g}return[n,o]}function _oe(e){return e!=null&&!Nr(e)}function px(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function EI(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,o,l)=>({...n,[o]:t[l]}),{})}function Kf(e,t,n){const o=n.map((l,d)=>l==null?R9(t[d]):Nr(l)?j9(l):O9(l));return EI(e,o)}function voe(e,t){return t.map((n,o)=>n===void 0?e[o]:n)}const xoe=du({key:"__waitForNone",get:e=>({get:t})=>{const n=px(e),[o,l]=fx(t,n);return Kf(e,o,l)},dangerouslyAllowMutability:!0}),boe=du({key:"__waitForAny",get:e=>({get:t})=>{const n=px(e),[o,l]=fx(t,n);return l.some(d=>!Nr(d))?Kf(e,o,l):new Promise(d=>{for(const[g,s]of l.entries())Nr(s)&&s.then(v=>{o[g]=v,l[g]=void 0,d(Kf(e,o,l))}).catch(v=>{l[g]=v,d(Kf(e,o,l))})})},dangerouslyAllowMutability:!0}),Moe=du({key:"__waitForAll",get:e=>({get:t})=>{const n=px(e),[o,l]=fx(t,n);if(l.every(g=>g==null))return EI(e,o);const d=l.find(_oe);if(d!=null)throw d;return Promise.all(l).then(g=>EI(e,voe(o,g)))},dangerouslyAllowMutability:!0}),woe=du({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=px(e),[o,l]=fx(t,n);return l.every(d=>!Nr(d))?Kf(e,o,l):Promise.all(l.map((d,g)=>Nr(d)?d.then(s=>{o[g]=s,l[g]=void 0}).catch(s=>{o[g]=void 0,l[g]=s}):null)).then(()=>Kf(e,o,l))},dangerouslyAllowMutability:!0}),Ioe=du({key:"__noWait",get:e=>({get:t})=>{try{return Wf.value(R9(t(e)))}catch(n){return Wf.value(Nr(n)?j9(n):O9(n))}},dangerouslyAllowMutability:!0});var Toe={waitForNone:xoe,waitForAny:boe,waitForAll:Moe,waitForAllSettled:woe,noWait:Ioe};const{RecoilLoadable:Soe}=Kg,{DefaultValue:Eoe}=Ss,{RecoilRoot:Doe,useRecoilStoreID:Coe}=ac,{isRecoilValue:Aoe}=Qf,{retentionZone:Noe}=Gv,{freshSnapshot:Loe}=ex,{useRecoilState:zoe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:koe,useRecoilStateLoadable:Ooe,useRecoilValue:joe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Roe,useRecoilValueLoadable:Poe,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Uoe,useResetRecoilState:Boe,useSetRecoilState:Foe}=Kne,{useGotoRecoilSnapshot:Voe,useRecoilSnapshot:$oe,useRecoilTransactionObserver:Hoe}=d9,{useRecoilCallback:Qoe}=_9,{noWait:Yoe,waitForAll:Goe,waitForAllSettled:Zoe,waitForAny:Woe,waitForNone:qoe}=Toe;var Xf={DefaultValue:Eoe,isRecoilValue:Aoe,RecoilLoadable:Soe,RecoilEnv:Hf,RecoilRoot:Doe,useRecoilStoreID:Coe,useRecoilBridgeAcrossReactRoots_UNSTABLE:Iie,atom:L9,selector:Wf,atomFamily:soe,selectorFamily:du,constSelector:doe,errorSelector:moe,readOnlySelector:yoe,noWait:Yoe,waitForNone:qoe,waitForAny:Woe,waitForAll:Goe,waitForAllSettled:Zoe,useRecoilValue:joe,useRecoilValueLoadable:Poe,useRecoilState:zoe,useRecoilStateLoadable:Ooe,useSetRecoilState:Foe,useResetRecoilState:Boe,useGetRecoilValueInfo_UNSTABLE:_ie,useRecoilRefresher_UNSTABLE:Jie,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Uoe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Roe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:koe,useRecoilCallback:Qoe,useRecoilTransaction_UNSTABLE:rre,useGotoRecoilSnapshot:Voe,useRecoilSnapshot:$oe,useRecoilTransactionObserver_UNSTABLE:Hoe,snapshot_UNSTABLE:Loe,useRetain:gI,retentionZone:Noe},Koe=Xf.RecoilRoot,Jn=Xf.atom,DI=Xf.selector,rn=Xf.useRecoilValue,Dn=Xf.useRecoilState,Ds=Xf.useResetRecoilState;const Xoe=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((o,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Joe="mi-components";let mx,P9,Ys=!1,CI=!1;const lc=(e,t="")=>()=>{},ese=(e,t)=>()=>{},tse="{visibility:hidden}.hydrated{visibility:inherit}",U9="http://www.w3.org/1999/xlink",B9={},nse="http://www.w3.org/2000/svg",ise="http://www.w3.org/1999/xhtml",rse=e=>e!=null,AI=e=>(e=typeof e,e==="object"||e==="function");function F9(e){var t,n,o;return(o=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&o!==void 0?o:void 0}const Ke=(e,t,...n)=>{let o=null,l=null,d=!1,g=!1;const s=[],v=z=>{for(let O=0;O<z.length;O++)o=z[O],Array.isArray(o)?v(o):o!=null&&typeof o!="boolean"&&((d=typeof e!="function"&&!AI(o))&&(o=String(o)),d&&g?s[s.length-1].$text$+=o:s.push(d?NI(null,o):o),g=d)};if(v(n),t){t.key&&(l=t.key);{const z=t.className||t.class;z&&(t.class=typeof z!="object"?z:Object.keys(z).filter(O=>z[O]).join(" "))}}const E=NI(e,null);return E.$attrs$=t,s.length>0&&(E.$children$=s),E.$key$=l,E},NI=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},ao={},ose=e=>e&&e.$tag$===ao,sse=(e,t)=>e!=null&&!AI(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,cc=e=>fu(e).$hostElement$,ur=(e,t,n)=>{const o=cc(e);return{emit:l=>V9(o,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:l})}},V9=(e,t,n)=>{const o=To.ce(t,n);return e.dispatchEvent(o),o},$9=new WeakMap,ase=(e,t,n)=>{let o=vx.get(e);Dse&&n?(o=o||new CSSStyleSheet,typeof o=="string"?o=t:o.replaceSync(t)):o=t,vx.set(e,o)},lse=(e,t,n,o)=>{var l;let d=H9(t);const g=vx.get(d);if(e=e.nodeType===11?e:vl,g)if(typeof g=="string"){e=e.head||e;let s=$9.get(e),v;if(s||$9.set(e,s=new Set),!s.has(d)){{v=vl.createElement("style"),v.innerHTML=g;const E=(l=To.$nonce$)!==null&&l!==void 0?l:F9(vl);E!=null&&v.setAttribute("nonce",E),e.insertBefore(v,e.querySelector("link"))}s&&s.add(d)}}else e.adoptedStyleSheets.includes(g)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,g]);return d},cse=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,o=t.$flags$,l=lc("attachStyles",t.$tagName$),d=lse(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);o&10&&(n["s-sc"]=d,n.classList.add(d+"-h")),l()},H9=(e,t)=>"sc-"+e.$tagName$,Q9=(e,t,n,o,l,d)=>{if(n!==o){let g=rO(e,t),s=t.toLowerCase();if(t==="class"){const v=e.classList,E=Y9(n),z=Y9(o);v.remove(...E.filter(O=>O&&!z.includes(O))),v.add(...z.filter(O=>O&&!E.includes(O)))}else if(t==="style"){for(const v in n)(!o||o[v]==null)&&(v.includes("-")?e.style.removeProperty(v):e.style[v]="");for(const v in o)(!n||o[v]!==n[v])&&(v.includes("-")?e.style.setProperty(v,o[v]):e.style[v]=o[v])}else if(t!=="key")if(t==="ref")o&&o(e);else if(!g&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):rO(d1,s)?t=s.slice(2):t=s[2]+t.slice(3),n&&To.rel(e,t,n,!1),o&&To.ael(e,t,o,!1);else{const v=AI(o);if((g||v&&o!==null)&&!l)try{if(e.tagName.includes("-"))e[t]=o;else{const z=o??"";t==="list"?g=!1:(n==null||e[t]!=z)&&(e[t]=z)}}catch{}let E=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,E=!0),o==null||o===!1?(o!==!1||e.getAttribute(t)==="")&&(E?e.removeAttributeNS(U9,t):e.removeAttribute(t)):(!g||d&4||l)&&!v&&(o=o===!0?"":o,E?e.setAttributeNS(U9,t,o):e.setAttribute(t,o))}}},use=/\s/,Y9=e=>e?e.split(use):[],G9=(e,t,n,o)=>{const l=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,d=e&&e.$attrs$||B9,g=t.$attrs$||B9;for(o in d)o in g||Q9(l,o,d[o],void 0,n,t.$flags$);for(o in g)Q9(l,o,d[o],g[o],n,t.$flags$)},gx=(e,t,n,o)=>{const l=t.$children$[n];let d=0,g,s;if(l.$text$!==null)g=l.$elm$=vl.createTextNode(l.$text$);else{if(Ys||(Ys=l.$tag$==="svg"),g=l.$elm$=vl.createElementNS(Ys?nse:ise,l.$tag$),Ys&&l.$tag$==="foreignObject"&&(Ys=!1),G9(null,l,Ys),rse(mx)&&g["s-si"]!==mx&&g.classList.add(g["s-si"]=mx),l.$children$)for(d=0;d<l.$children$.length;++d)s=gx(e,l,d),s&&g.appendChild(s);l.$tag$==="svg"?Ys=!1:g.tagName==="foreignObject"&&(Ys=!0)}return g},Z9=(e,t,n,o,l,d)=>{let g=e,s;for(g.shadowRoot&&g.tagName===P9&&(g=g.shadowRoot);l<=d;++l)o[l]&&(s=gx(null,n,l),s&&(o[l].$elm$=s,g.insertBefore(s,t)))},W9=(e,t,n,o,l)=>{for(;t<=n;++t)(o=e[t])&&(l=o.$elm$,q9(o),l.remove())},hse=(e,t,n,o)=>{let l=0,d=0,g=0,s=0,v=t.length-1,E=t[0],z=t[v],O=o.length-1,j=o[0],F=o[O],$,Y;for(;l<=v&&d<=O;)if(E==null)E=t[++l];else if(z==null)z=t[--v];else if(j==null)j=o[++d];else if(F==null)F=o[--O];else if(yx(E,j))Jf(E,j),E=t[++l],j=o[++d];else if(yx(z,F))Jf(z,F),z=t[--v],F=o[--O];else if(yx(E,F))Jf(E,F),e.insertBefore(E.$elm$,z.$elm$.nextSibling),E=t[++l],F=o[--O];else if(yx(z,j))Jf(z,j),e.insertBefore(z.$elm$,E.$elm$),z=t[--v],j=o[++d];else{for(g=-1,s=l;s<=v;++s)if(t[s]&&t[s].$key$!==null&&t[s].$key$===j.$key$){g=s;break}g>=0?(Y=t[g],Y.$tag$!==j.$tag$?$=gx(t&&t[d],n,g):(Jf(Y,j),t[g]=void 0,$=Y.$elm$),j=o[++d]):($=gx(t&&t[d],n,d),j=o[++d]),$&&E.$elm$.parentNode.insertBefore($,E.$elm$)}l>v?Z9(e,o[O+1]==null?null:o[O+1].$elm$,n,o,d,O):d>O&&W9(t,l,v)},yx=(e,t)=>e.$tag$===t.$tag$?e.$key$===t.$key$:!1,Jf=(e,t)=>{const n=t.$elm$=e.$elm$,o=e.$children$,l=t.$children$,d=t.$tag$,g=t.$text$;g===null?(Ys=d==="svg"?!0:d==="foreignObject"?!1:Ys,d==="slot"||G9(e,t,Ys),o!==null&&l!==null?hse(n,o,t,l):l!==null?(e.$text$!==null&&(n.textContent=""),Z9(n,null,t,l,0,l.length-1)):o!==null&&W9(o,0,o.length-1),Ys&&d==="svg"&&(Ys=!1)):e.$text$!==g&&(n.data=g)},q9=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(q9)},dse=(e,t)=>{const n=e.$hostElement$,o=e.$cmpMeta$,l=e.$vnode$||NI(null,null),d=ose(t)?t:Ke(null,null,t);P9=n.tagName,o.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},o.$attrsToReflect$.map(([g,s])=>d.$attrs$[s]=n[g])),d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=l.$elm$=n.shadowRoot||n,mx=n["s-sc"],Jf(l,d)},K9=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},_x=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return K9(e,e.$ancestorComponent$),Ase(()=>fse(e,t))},fse=(e,t)=>{const n=lc("scheduleUpdate",e.$cmpMeta$.$tagName$),o=e.$lazyInstance$;let l;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([d,g])=>Fh(o,d,g)),e.$queuedListeners$=null),l=Fh(o,"componentWillLoad")),l=J9(l,()=>Fh(o,"componentWillRender")),n(),J9(l,()=>pse(e,o,t))},pse=async(e,t,n)=>{const o=e.$hostElement$,l=lc("update",e.$cmpMeta$.$tagName$),d=o["s-rc"];n&&cse(e);const g=lc("render",e.$cmpMeta$.$tagName$);mse(e,t),d&&(d.map(s=>s()),o["s-rc"]=void 0),g(),l();{const s=o["s-p"],v=()=>gse(e);s.length===0?v():(Promise.all(s).then(v),e.$flags$|=4,s.length=0)}},mse=(e,t,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,dse(e,t)}catch(o){Vh(o,e.$hostElement$)}return null},gse=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,o=lc("postUpdate",t),l=e.$lazyInstance$,d=e.$ancestorComponent$;Fh(l,"componentDidRender"),e.$flags$&64?o():(e.$flags$|=64,eO(n),Fh(l,"componentDidLoad"),o(),e.$onReadyResolve$(n),d||X9()),e.$onInstanceResolve$(n),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&OI(()=>_x(e,!1)),e.$flags$&=-517},LI=e=>{{const t=fu(e),n=t.$hostElement$.isConnected;return n&&(t.$flags$&18)===2&&_x(t,!1),n}},X9=e=>{eO(vl.documentElement),OI(()=>V9(d1,"appload",{detail:{namespace:Joe}}))},Fh=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(o){Vh(o)}},J9=(e,t)=>e&&e.then?e.then(t):t(),eO=e=>e.classList.add("hydrated"),yse=(e,t)=>fu(e).$instanceValues$.get(t),_se=(e,t,n,o)=>{const l=fu(e),d=l.$hostElement$,g=l.$instanceValues$.get(t),s=l.$flags$,v=l.$lazyInstance$;n=sse(n,o.$members$[t][0]);const E=Number.isNaN(g)&&Number.isNaN(n),z=n!==g&&!E;if((!(s&8)||g===void 0)&&z&&(l.$instanceValues$.set(t,n),v)){if(o.$watchers$&&s&128){const O=o.$watchers$[t];O&&O.map(j=>{try{v[j](n,g,t)}catch(F){Vh(F,d)}})}(s&18)===2&&_x(l,!1)}},tO=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const o=Object.entries(t.$members$),l=e.prototype;if(o.map(([d,[g]])=>{g&31||n&2&&g&32?Object.defineProperty(l,d,{get(){return yse(this,d)},set(s){_se(this,d,s,t)},configurable:!0,enumerable:!0}):n&1&&g&64&&Object.defineProperty(l,d,{value(...s){const v=fu(this);return v.$onInstancePromise$.then(()=>v.$lazyInstance$[d](...s))}})}),n&1){const d=new Map;l.attributeChangedCallback=function(g,s,v){To.jmp(()=>{const E=d.get(g);if(this.hasOwnProperty(E))v=this[E],delete this[E];else if(l.hasOwnProperty(E)&&typeof this[E]=="number"&&this[E]==v)return;this[E]=v===null&&typeof this[E]=="boolean"?!1:v})},e.observedAttributes=o.filter(([g,s])=>s[0]&15).map(([g,s])=>{const v=s[1]||g;return d.set(v,g),s[0]&512&&t.$attrsToReflect$.push([g,v]),v})}}return e},vse=async(e,t,n,o,l)=>{if(!(t.$flags$&32)){{if(t.$flags$|=32,l=Ese(n),l.then){const v=ese();l=await l,v()}l.isProxied||(n.$watchers$=l.watchers,tO(l,n,2),l.isProxied=!0);const s=lc("createInstance",n.$tagName$);t.$flags$|=8;try{new l(t)}catch(v){Vh(v)}t.$flags$&=-9,t.$flags$|=128,s(),nO(t.$lazyInstance$)}if(l.style){let s=l.style;const v=H9(n);if(!vx.has(v)){const E=lc("registerStyles",n.$tagName$);ase(v,s,!!(n.$flags$&1)),E()}}}const d=t.$ancestorComponent$,g=()=>_x(t,!0);d&&d["s-rc"]?d["s-rc"].push(g):g()},nO=e=>{Fh(e,"connectedCallback")},xse=e=>{if(!(To.$flags$&1)){const t=fu(e),n=t.$cmpMeta$,o=lc("connectedCallback",n.$tagName$);if(t.$flags$&1)iO(e,t,n.$listeners$),nO(t.$lazyInstance$);else{t.$flags$|=1;{let l=e;for(;l=l.parentNode||l.host;)if(l["s-p"]){K9(t,t.$ancestorComponent$=l);break}}n.$members$&&Object.entries(n.$members$).map(([l,[d]])=>{if(d&31&&e.hasOwnProperty(l)){const g=e[l];delete e[l],e[l]=g}}),vse(e,t,n)}o()}},bse=e=>{if(!(To.$flags$&1)){const t=fu(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(o=>o()),t.$rmListeners$=void 0),Fh(n,"disconnectedCallback")}},Mse=(e,t={})=>{var n;const o=lc(),l=[],d=t.exclude||[],g=d1.customElements,s=vl.head,v=s.querySelector("meta[charset]"),E=vl.createElement("style"),z=[];let O,j=!0;Object.assign(To,t),To.$resourcesUrl$=new URL(t.resourcesUrl||"./",vl.baseURI).href,e.map(F=>{F[1].map($=>{const Y={$flags$:$[0],$tagName$:$[1],$members$:$[2],$listeners$:$[3]};Y.$members$=$[2],Y.$listeners$=$[3],Y.$attrsToReflect$=[],Y.$watchers$={};const ie=Y.$tagName$,K=class extends HTMLElement{constructor(J){super(J),J=this,Sse(J,Y),Y.$flags$&1&&J.attachShadow({mode:"open"})}connectedCallback(){O&&(clearTimeout(O),O=null),j?z.push(this):To.jmp(()=>xse(this))}disconnectedCallback(){To.jmp(()=>bse(this))}componentOnReady(){return fu(this).$onReadyPromise$}};Y.$lazyBundleId$=F[0],!d.includes(ie)&&!g.get(ie)&&(l.push(ie),g.define(ie,tO(K,Y,1)))})});{E.innerHTML=l+tse,E.setAttribute("data-styles","");const F=(n=To.$nonce$)!==null&&n!==void 0?n:F9(vl);F!=null&&E.setAttribute("nonce",F),s.insertBefore(E,v?v.nextSibling:s.firstChild)}j=!1,z.length?z.map(F=>F.connectedCallback()):To.jmp(()=>O=setTimeout(X9,30)),o()},iO=(e,t,n,o)=>{n&&n.map(([l,d,g])=>{const s=Ise(e,l),v=wse(t,g),E=Tse(l);To.ael(s,d,v,E),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>To.rel(s,d,v,E))})},wse=(e,t)=>n=>{try{e.$flags$&256?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(o){Vh(o)}},Ise=(e,t)=>t&8?d1:e,Tse=e=>(e&2)!==0,zI=new WeakMap,fu=e=>zI.get(e),Bi=(e,t)=>zI.set(t.$lazyInstance$=e,t),Sse=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(o=>n.$onInstanceResolve$=o),n.$onReadyPromise$=new Promise(o=>n.$onReadyResolve$=o),e["s-p"]=[],e["s-rc"]=[],iO(e,n,t.$listeners$),zI.set(e,n)},rO=(e,t)=>t in e,Vh=(e,t)=>(0,console.error)(e,t),oO=new Map,Ese=(e,t,n)=>{const o=e.$tagName$.replace(/-/g,"_"),l=e.$lazyBundleId$,d=oO.get(l);if(d)return d[o];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return Xoe(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>Hce),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>Gce),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>Wce),"./mi-column.entry.js":()=>Promise.resolve().then(()=>qce),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Jce),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>aue),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>uue),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>hue),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>fue),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>mue),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>Sue),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>Due),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>Aue),"./mi-list.entry.js":()=>Promise.resolve().then(()=>Lue),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>ige),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>oge),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>lge),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>dge),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>pge),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>Nge),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>zge),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>Oge),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>Rge),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>Uge),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>Fge),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>$ge),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>Qge),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Gge),"./mi-search.entry.js":()=>Promise.resolve().then(()=>Xge),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>e1e),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>n1e),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>r1e),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>o1e),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>a1e),"./mi-time.entry.js":()=>Promise.resolve().then(()=>l1e)}),`./${l}.entry.js`).then(g=>(oO.set(l,g),g[o]),Vh)},vx=new Map,d1=typeof window<"u"?window:{},vl=d1.document||{head:{}},To={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},sO=e=>Promise.resolve(e),Dse=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),aO=[],lO=[],Cse=(e,t)=>n=>{e.push(n),CI||(CI=!0,t&&To.$flags$&4?OI(kI):To.raf(kI))},cO=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){Vh(n)}e.length=0},kI=()=>{cO(aO),cO(lO),(CI=aO.length>0)&&To.raf(kI)},OI=e=>sO().then(e),Ase=Cse(lO,!0),Nse=()=>sO(),uO=(e,t)=>typeof window>"u"?Promise.resolve():Nse().then(()=>Mse([["mi-route-instructions",[[1,"mi-route-instructions",{activeStep:[1040],unit:[1],route:[16],hideIndoorSubsteps:[4,"hide-indoor-substeps"],travelMode:[1,"travel-mode"],originLocation:[16],originName:[1,"origin-name"],destinationLocation:[16],destinationName:[1,"destination-name"],translations:[16]}]]],["mi-route-instructions-step",[[1,"mi-route-instructions-step",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],destinationLocation:[1,"destination-location"],unit:[1],showToggleButton:[4,"show-toggle-button"],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32],openSubsteps:[64],closeSubsteps:[64]}]]],["mi-route-instructions-heading",[[1,"mi-route-instructions-heading",{originName:[1,"origin-name"],destinationName:[1,"destination-name"],totalTravelTime:[2,"total-travel-time"],totalWalkingDistance:[2,"total-walking-distance"],travelMode:[1,"travel-mode"],unit:[1],translations:[16]}]]],["mi-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["mi-list-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[1],level:[1],iconBadge:[1,"icon-badge"],iconBadgeValue:[1,"icon-badge-value"],iconURLToRender:[32]}]]],["mi-metric-card",[[1,"mi-metric-card",{label:[1],value:[1],tip:[1],spinner:[4],error:[1],showToolTip:[32]}]]],["mi-location-booking",[[1,"mi-location-booking",{location:[16],duration:[2],translations:[16],show:[2],startHour:[2,"start-hour"],stopHour:[2,"stop-hour"],bookingTitle:[1,"booking-title"],timeSlots:[32]}]]],["mi-share-sms",[[0,"mi-share-sms",{venueId:[1,"venue"],originLocationId:[1,"origin"],destinationLocationId:[1,"destination"],countryCode:[1,"country-code"],phoneNumberInputPlaceholder:[1,"input-placeholder"],submitButtonLabel:[1,"submit-button-label"]}]]],["combo-box-item",[[0,"combo-box-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-chip",[[0,"mi-chip",{icon:[1],content:[1],backgroundColor:[1,"background-color"],active:[4]}]]],["mi-column",[[1,"mi-column",{monospace:[4],alignContent:[1,"align-content"],label:[1],sortable:[1],sort:[1],binding:[1],fitContent:[4,"fit-content"],width:[1]},[[0,"cellContentClicked","cellContentClickedHandler"]]]]],["mi-combo-box",[[1,"mi-combo-box",{open:[4],items:[16],itemsOrder:[1,"items-order"],filterable:[4],selected:[16],noResultsMessage:[1,"no-results-message"],disabled:[4],currentItems:[32]},[[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-data-table",[[1,"mi-data-table",{rows:[16],maxRows:[2,"max-rows"],page:[2],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[32],currentPage:[32],sortByColumn:[32]}]]],["mi-dropdown",[[1,"mi-dropdown",{open:[4],items:[16],itemsOrder:[1,"items-order"],label:[1],filterable:[4],placeholder:[1],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],dropdownAlignment:[1,"alignment"],disabled:[4],currentItems:[32],clearFilter:[64]},[[8,"keydown","handleKeyDown"],[10,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-dropdown-item",[[0,"mi-dropdown-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-floor-selector",[[0,"mi-floor-selector",{mapsindoors:[8],primaryColor:[1,"primary-color"],floors:[32],currentFloor:[32],floorSelectorClosed:[32],fadeFloorSelectorOnTop:[32],fadeFloorSelectorOnBottom:[32]}]]],["mi-list-item-category",[[1,"mi-list-item-category",{category:[8],orientation:[513]}]]],["mi-map-googlemaps",[[1,"mi-map-googlemaps",{gmApiKey:[1,"gm-api-key"],miApiKey:[1,"mi-api-key"],gmOptions:[16],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],language:[1],polylineOptions:[16],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-map-mapbox",[[1,"mi-map-mapbox",{accessToken:[1,"access-token"],miApiKey:[1,"mi-api-key"],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],polylineOptions:[16],zoom:[1537],maxPitch:[1538,"max-pitch"],maxZoom:[1537,"max-zoom"],bearing:[1537],pitch:[1537],language:[1],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-my-position",[[0,"mi-my-position",{mapsindoors:[8],myPositionOptions:[8,"my-position-options"],positionState:[32],watchPosition:[64]}]]],["mi-notification",[[1,"mi-notification",{position:[1],duration:[2],push:[64],clearAll:[64]}]]],["mi-search",[[0,"mi-search",{placeholder:[1],idAttribute:[1,"id-attribute"],dataAttributes:[16],mapsindoors:[4],google:[4],mapbox:[4],language:[1],miFields:[1,"mi-fields"],miTake:[2,"mi-take"],miSkip:[2,"mi-skip"],miOrder:[1,"mi-order"],miCategories:[1,"mi-categories"],miNear:[1,"mi-near"],miVenue:[1,"mi-venue"],gmCountryCode:[1,"gm-country-code"],value:[1537],disabled:[4],sessionToken:[1,"session-token"],userPosition:[1,"user-position"],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[64],getInputField:[64]}]]],["mi-step-switcher",[[1,"mi-step-switcher",{heading:[1],steps:[16],stepIndex:[514,"step-index"]}]]],["mi-tab",[[1,"mi-tab",{label:[1],tabFor:[1,"tab-for"]}]]],["mi-tab-panel",[[1,"mi-tab-panel",{isActive:[32],active:[64]}]]],["mi-tabs",[[1,"mi-tabs",{active:[2],bordered:[4],tabs:[32]}]]],["mi-distance_2",[[1,"mi-distance",{meters:[2],unit:[1]}],[1,"mi-icon",{iconName:[1,"icon-name"]}]]],["mi-route-instructions-step-legacy",[[1,"mi-route-instructions-step-legacy",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32]}]]],["mi-route-instructions-maneuver",[[1,"mi-route-instructions-maneuver",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtons:[64],updateScrollButtonsState:[64]}]]],["mi-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1],language:[1],clearInputField:[64]}]]],["mi-route-instructions-maneuver-legacy",[[1,"mi-route-instructions-maneuver-legacy",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-card_2",[[1,"mi-card"],[1,"mi-spinner",{inverse:[4]}]]],["mi-location-info",[[1,"mi-location-info",{location:[8],level:[1],showExternalId:[4,"show-external-id"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],t)),Lse={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class xx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Lse,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,o,l){return l&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${o}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new xx(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new xx(this.logger,t)}}var xl=new xx;class bx{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(o=>{this.observers[o]=this.observers[o]||[],this.observers[o].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(o=>o!==n)}}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),l=1;l<n;l++)o[l-1]=arguments[l];this.observers[t]&&[].concat(this.observers[t]).forEach(g=>{g(...o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(g=>{g.apply(g,[t,...o])})}}function f1(){let e,t;const n=new Promise((o,l)=>{e=o,t=l});return n.resolve=e,n.reject=t,n}function hO(e){return e==null?"":""+e}function zse(e,t,n){e.forEach(o=>{t[o]&&(n[o]=t[o])})}function jI(e,t,n){function o(g){return g&&g.indexOf("###")>-1?g.replace(/###/g,"."):g}function l(){return!e||typeof e=="string"}const d=typeof t!="string"?[].concat(t):t.split(".");for(;d.length>1;){if(l())return{};const g=o(d.shift());!e[g]&&n&&(e[g]=new n),Object.prototype.hasOwnProperty.call(e,g)?e=e[g]:e={}}return l()?{}:{obj:e,k:o(d.shift())}}function dO(e,t,n){const{obj:o,k:l}=jI(e,t,Object);o[l]=n}function kse(e,t,n,o){const{obj:l,k:d}=jI(e,t,Object);l[d]=l[d]||[],o&&(l[d]=l[d].concat(n)),o||l[d].push(n)}function Mx(e,t){const{obj:n,k:o}=jI(e,t);if(n)return n[o]}function Ose(e,t,n){const o=Mx(e,n);return o!==void 0?o:Mx(t,n)}function fO(e,t,n){for(const o in t)o!=="__proto__"&&o!=="constructor"&&(o in e?typeof e[o]=="string"||e[o]instanceof String||typeof t[o]=="string"||t[o]instanceof String?n&&(e[o]=t[o]):fO(e[o],t[o],n):e[o]=t[o]);return e}function ep(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var jse={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Rse(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>jse[t]):e}const Pse=[" ",",","?","!",";"];function Use(e,t,n){t=t||"",n=n||"";const o=Pse.filter(g=>t.indexOf(g)<0&&n.indexOf(g)<0);if(o.length===0)return!0;const l=new RegExp(`(${o.map(g=>g==="?"?"\\?":g).join("|")})`);let d=!l.test(e);if(!d){const g=e.indexOf(n);g>0&&!l.test(e.substring(0,g))&&(d=!0)}return d}function wx(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const o=t.split(n);let l=e;for(let d=0;d<o.length;++d){if(!l||typeof l[o[d]]=="string"&&d+1<o.length)return;if(l[o[d]]===void 0){let g=2,s=o.slice(d,d+g).join(n),v=l[s];for(;v===void 0&&o.length>d+g;)g++,s=o.slice(d,d+g).join(n),v=l[s];if(v===void 0)return;if(v===null)return null;if(t.endsWith(s)){if(typeof v=="string")return v;if(s&&typeof v[s]=="string")return v[s]}const E=o.slice(d+g).join(n);return E?wx(v,E,n):void 0}l=l[o[d]]}return l}function Ix(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class pO extends bx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const d=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,g=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[t,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(d?o.split(d):o)),t.indexOf(".")>-1&&(s=t.split("."));const v=Mx(this.data,s);return v||!g||typeof o!="string"?v:wx(this.data&&this.data[t]&&this.data[t][n],o,d)}addResource(t,n,o,l){let d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const g=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let s=[t,n];o&&(s=s.concat(g?o.split(g):o)),t.indexOf(".")>-1&&(s=t.split("."),l=n,n=s[1]),this.addNamespaces(n),dO(this.data,s,l),d.silent||this.emit("added",t,n,o,l)}addResources(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const d in o)(typeof o[d]=="string"||Object.prototype.toString.apply(o[d])==="[object Array]")&&this.addResource(t,n,d,o[d],{silent:!0});l.silent||this.emit("added",t,n,o)}addResourceBundle(t,n,o,l,d){let g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),l=o,o=n,n=s[1]),this.addNamespaces(n);let v=Mx(this.data,s)||{};l?fO(v,o,d):v={...v,...o},dO(this.data,s,v),g.silent||this.emit("added",t,n,o)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(l=>n[l]&&Object.keys(n[l]).length>0)}toJSON(){return this.data}}var mO={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,l){return e.forEach(d=>{this.processors[d]&&(t=this.processors[d].process(t,n,o,l))}),t}};const gO={};class Tx extends bx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),zse(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xl.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const o=this.resolve(t,n);return o&&o.res!==void 0}extractFromKey(t,n){let o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const l=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let d=n.ns||this.options.defaultNS||[];const g=o&&t.indexOf(o)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Use(t,o,l);if(g&&!s){const v=t.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:t,namespaces:d};const E=t.split(o);(o!==l||o===l&&this.options.ns.indexOf(E[0])>-1)&&(d=E.shift()),t=E.join(l)}return typeof d=="string"&&(d=[d]),{key:t,namespaces:d}}translate(t,n,o){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const l=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,d=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:g,namespaces:s}=this.extractFromKey(t[t.length-1],n),v=s[s.length-1],E=n.lng||this.language,z=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(E&&E.toLowerCase()==="cimode"){if(z){const oe=n.nsSeparator||this.options.nsSeparator;return l?{res:`${v}${oe}${g}`,usedKey:g,exactUsedKey:g,usedLng:E,usedNS:v,usedParams:this.getUsedParamsDetails(n)}:`${v}${oe}${g}`}return l?{res:g,usedKey:g,exactUsedKey:g,usedLng:E,usedNS:v,usedParams:this.getUsedParamsDetails(n)}:g}const O=this.resolve(t,n);let j=O&&O.res;const F=O&&O.usedKey||g,$=O&&O.exactUsedKey||g,Y=Object.prototype.toString.apply(j),ie=["[object Number]","[object Function]","[object RegExp]"],K=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,J=!this.i18nFormat||this.i18nFormat.handleAsObject;if(J&&j&&(typeof j!="string"&&typeof j!="boolean"&&typeof j!="number")&&ie.indexOf(Y)<0&&!(typeof K=="string"&&Y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const oe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(F,j,{...n,ns:s}):`key '${g} (${this.language})' returned an object instead of string.`;return l?(O.res=oe,O.usedParams=this.getUsedParamsDetails(n),O):oe}if(d){const oe=Y==="[object Array]",pe=oe?[]:{},me=oe?$:F;for(const he in j)if(Object.prototype.hasOwnProperty.call(j,he)){const De=`${me}${d}${he}`;pe[he]=this.translate(De,{...n,joinArrays:!1,ns:s}),pe[he]===De&&(pe[he]=j[he])}j=pe}}else if(J&&typeof K=="string"&&Y==="[object Array]")j=j.join(K),j&&(j=this.extendTranslation(j,t,n,o));else{let oe=!1,pe=!1;const me=n.count!==void 0&&typeof n.count!="string",he=Tx.hasDefaultValue(n),De=me?this.pluralResolver.getSuffix(E,n.count,n):"",qe=n.ordinal&&me?this.pluralResolver.getSuffix(E,n.count,{ordinal:!1}):"",Te=n[`defaultValue${De}`]||n[`defaultValue${qe}`]||n.defaultValue;!this.isValidLookup(j)&&he&&(oe=!0,j=Te),this.isValidLookup(j)||(pe=!0,j=g);const ht=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&pe?void 0:j,mt=he&&Te!==j&&this.options.updateMissing;if(pe||oe||mt){if(this.logger.log(mt?"updateKey":"missingKey",E,v,g,mt?Te:j),d){const ot=this.resolve(g,{...n,keySeparator:!1});ot&&ot.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let vt=[];const Qe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Qe&&Qe[0])for(let ot=0;ot<Qe.length;ot++)vt.push(Qe[ot]);else this.options.saveMissingTo==="all"?vt=this.languageUtils.toResolveHierarchy(n.lng||this.language):vt.push(n.lng||this.language);const Fe=(ot,Je,He)=>{const Ae=he&&He!==j?He:ht;this.options.missingKeyHandler?this.options.missingKeyHandler(ot,v,Je,Ae,mt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ot,v,Je,Ae,mt,n),this.emit("missingKey",ot,v,Je,j)};this.options.saveMissing&&(this.options.saveMissingPlurals&&me?vt.forEach(ot=>{this.pluralResolver.getSuffixes(ot,n).forEach(Je=>{Fe([ot],g+Je,n[`defaultValue${Je}`]||Te)})}):Fe(vt,g,Te))}j=this.extendTranslation(j,t,n,O,o),pe&&j===g&&this.options.appendNamespaceToMissingKey&&(j=`${v}:${g}`),(pe||oe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?j=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}:${g}`:g,oe?j:void 0):j=this.options.parseMissingKeyHandler(j))}return l?(O.res=j,O.usedParams=this.getUsedParamsDetails(n),O):j}extendTranslation(t,n,o,l,d){var g=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const E=typeof t=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let z;if(E){const j=t.match(this.interpolator.nestingRegexp);z=j&&j.length}let O=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(O={...this.options.interpolation.defaultVariables,...O}),t=this.interpolator.interpolate(t,O,o.lng||this.language,o),E){const j=t.match(this.interpolator.nestingRegexp),F=j&&j.length;z<F&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(o.lng=l.usedLng),o.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var j=arguments.length,F=new Array(j),$=0;$<j;$++)F[$]=arguments[$];return d&&d[0]===F[0]&&!o.context?(g.logger.warn(`It seems you are nesting recursively key: ${F[0]} in key: ${n[0]}`),null):g.translate(...F,n)},o)),o.interpolation&&this.interpolator.reset()}const s=o.postProcess||this.options.postProcess,v=typeof s=="string"?[s]:s;return t!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(t=mO.handle(v,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,l,d,g,s;return typeof t=="string"&&(t=[t]),t.forEach(v=>{if(this.isValidLookup(o))return;const E=this.extractFromKey(v,n),z=E.key;l=z;let O=E.namespaces;this.options.fallbackNS&&(O=O.concat(this.options.fallbackNS));const j=n.count!==void 0&&typeof n.count!="string",F=j&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",Y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);O.forEach(ie=>{this.isValidLookup(o)||(s=ie,!gO[`${Y[0]}-${ie}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(gO[`${Y[0]}-${ie}`]=!0,this.logger.warn(`key "${l}" for languages "${Y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),Y.forEach(K=>{if(this.isValidLookup(o))return;g=K;const J=[z];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(J,z,K,ie,n);else{let oe;j&&(oe=this.pluralResolver.getSuffix(K,n.count,n));const pe=`${this.options.pluralSeparator}zero`,me=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(j&&(J.push(z+oe),n.ordinal&&oe.indexOf(me)===0&&J.push(z+oe.replace(me,this.options.pluralSeparator)),F&&J.push(z+pe)),$){const he=`${z}${this.options.contextSeparator}${n.context}`;J.push(he),j&&(J.push(he+oe),n.ordinal&&oe.indexOf(me)===0&&J.push(he+oe.replace(me,this.options.pluralSeparator)),F&&J.push(he+pe))}}let te;for(;te=J.pop();)this.isValidLookup(o)||(d=te,o=this.getResource(K,ie,te,n))}))})}),{res:o,usedKey:l,exactUsedKey:d,usedLng:g,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,o,l):this.resourceStore.getResource(t,n,o,l)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=t.replace&&typeof t.replace!="string";let l=o?t.replace:t;if(o&&typeof t.count<"u"&&(l.count=t.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!o){l={...l};for(const d of n)delete l[d]}return l}static hasDefaultValue(t){const n="defaultValue";for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&n===o.substring(0,n.length)&&t[o]!==void 0)return!0;return!1}}function RI(e){return e.charAt(0).toUpperCase()+e.slice(1)}class yO{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xl.create("languageUtils")}getScriptPartFromCode(t){if(t=Ix(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ix(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let o=t.split("-");return this.options.lowerCaseLng?o=o.map(l=>l.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=RI(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=RI(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=RI(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(o=>{if(n)return;const l=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(l))&&(n=l)}),!n&&this.options.supportedLngs&&t.forEach(o=>{if(n)return;const l=this.getLanguagePartFromCode(o);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(d=>{if(d===l)return d;if(!(d.indexOf("-")<0&&l.indexOf("-")<0)&&d.indexOf(l)===0)return d})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let o=t[n];return o||(o=t[this.getScriptPartFromCode(n)]),o||(o=t[this.formatLanguageCode(n)]),o||(o=t[this.getLanguagePartFromCode(n)]),o||(o=t.default),o||[]}toResolveHierarchy(t,n){const o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),l=[],d=g=>{g&&(this.isSupportedCode(g)?l.push(g):this.logger.warn(`rejecting language code not found in supportedLngs: ${g}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(t))):typeof t=="string"&&d(this.formatLanguageCode(t)),o.forEach(g=>{l.indexOf(g)<0&&d(this.formatLanguageCode(g))}),l}}let Bse=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Fse={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Vse=["v1","v2","v3"],$se=["v4"],_O={zero:0,one:1,two:2,few:3,many:4,other:5};function Hse(){const e={};return Bse.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Fse[t.fc]}})}),e}class Qse{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=xl.create("pluralResolver"),(!this.options.compatibilityJSON||$se.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Hse()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Ix(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(t,n);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(t,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,o).map(l=>`${n}${l}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((l,d)=>_O[l]-_O[d]).map(l=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${l}`):o.numbers.map(l=>this.getSuffix(t,l,n)):[]}getSuffix(t,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const l=this.getRule(t,o);return l?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${l.select(n)}`:this.getSuffixRetroCompatible(l,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const o=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let l=t.numbers[o];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));const d=()=>this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString();return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?`_plural_${l.toString()}`:d():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?d():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!Vse.includes(this.options.compatibilityJSON)}}function vO(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,d=Ose(e,t,n);return!d&&l&&typeof n=="string"&&(d=wx(e,n,o),d===void 0&&(d=wx(t,n,o))),d}class Yse{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xl.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:Rse,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ep(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ep(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ep(n.nestingPrefix):n.nestingPrefixEscaped||ep("$t("),this.nestingSuffix=n.nestingSuffix?ep(n.nestingSuffix):n.nestingSuffixEscaped||ep(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const o=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(o,"g")}interpolate(t,n,o,l){let d,g,s;const v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function E($){return $.replace(/\$/g,"$$$$")}const z=$=>{if($.indexOf(this.formatSeparator)<0){const J=vO(n,v,$,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(J,void 0,o,{...l,...n,interpolationkey:$}):J}const Y=$.split(this.formatSeparator),ie=Y.shift().trim(),K=Y.join(this.formatSeparator).trim();return this.format(vO(n,v,ie,this.options.keySeparator,this.options.ignoreJSONStructure),K,o,{...l,...n,interpolationkey:ie})};this.resetRegExp();const O=l&&l.missingInterpolationHandler||this.options.missingInterpolationHandler,j=l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:$=>E($)},{regex:this.regexp,safeValue:$=>this.escapeValue?E(this.escape($)):E($)}].forEach($=>{for(s=0;d=$.regex.exec(t);){const Y=d[1].trim();if(g=z(Y),g===void 0)if(typeof O=="function"){const K=O(t,d,l);g=typeof K=="string"?K:""}else if(l&&Object.prototype.hasOwnProperty.call(l,Y))g="";else if(j){g=d[0];continue}else this.logger.warn(`missed to pass in variable ${Y} for interpolating ${t}`),g="";else typeof g!="string"&&!this.useRawValueToEscape&&(g=hO(g));const ie=$.safeValue(g);if(t=t.replace(d[0],ie),j?($.regex.lastIndex+=g.length,$.regex.lastIndex-=d[0].length):$.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,d,g;function s(v,E){const z=this.nestingOptionsSeparator;if(v.indexOf(z)<0)return v;const O=v.split(new RegExp(`${z}[ ]*{`));let j=`{${O[1]}`;v=O[0],j=this.interpolate(j,g);const F=j.match(/'/g),$=j.match(/"/g);(F&&F.length%2===0&&!$||$.length%2!==0)&&(j=j.replace(/'/g,'"'));try{g=JSON.parse(j),E&&(g={...E,...g})}catch(Y){return this.logger.warn(`failed parsing options string in nesting for key ${v}`,Y),`${v}${z}${j}`}return delete g.defaultValue,v}for(;l=this.nestingRegexp.exec(t);){let v=[];g={...o},g=g.replace&&typeof g.replace!="string"?g.replace:g,g.applyPostProcessor=!1,delete g.defaultValue;let E=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){const z=l[1].split(this.formatSeparator).map(O=>O.trim());l[1]=z.shift(),v=z,E=!0}if(d=n(s.call(this,l[1].trim(),g),g),d&&l[0]===t&&typeof d!="string")return d;typeof d!="string"&&(d=hO(d)),d||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${t}`),d=""),E&&(d=v.reduce((z,O)=>this.format(z,O,o.lng,{...o,interpolationkey:l[1].trim()}),d.trim())),t=t.replace(l[0],d),this.regexp.lastIndex=0}return t}}function Gse(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const o=e.split("(");t=o[0].toLowerCase().trim();const l=o[1].substring(0,o[1].length-1);t==="currency"&&l.indexOf(":")<0?n.currency||(n.currency=l.trim()):t==="relativetime"&&l.indexOf(":")<0?n.range||(n.range=l.trim()):l.split(";").forEach(g=>{if(!g)return;const[s,...v]=g.split(":"),E=v.join(":").trim().replace(/^'+|'+$/g,"");n[s.trim()]||(n[s.trim()]=E),E==="false"&&(n[s.trim()]=!1),E==="true"&&(n[s.trim()]=!0),isNaN(E)||(n[s.trim()]=parseInt(E,10))})}return{formatName:t,formatOptions:n}}function tp(e){const t={};return function(o,l,d){const g=l+JSON.stringify(d);let s=t[g];return s||(s=e(Ix(l),d),t[g]=s),s(o)}}class Zse{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xl.create("formatter"),this.options=t,this.formats={number:tp((n,o)=>{const l=new Intl.NumberFormat(n,{...o});return d=>l.format(d)}),currency:tp((n,o)=>{const l=new Intl.NumberFormat(n,{...o,style:"currency"});return d=>l.format(d)}),datetime:tp((n,o)=>{const l=new Intl.DateTimeFormat(n,{...o});return d=>l.format(d)}),relativetime:tp((n,o)=>{const l=new Intl.RelativeTimeFormat(n,{...o});return d=>l.format(d,o.range||"day")}),list:tp((n,o)=>{const l=new Intl.ListFormat(n,{...o});return d=>l.format(d)})},this.init(t)}init(t){const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=tp(n)}format(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((s,v)=>{const{formatName:E,formatOptions:z}=Gse(v);if(this.formats[E]){let O=s;try{const j=l&&l.formatParams&&l.formatParams[l.interpolationkey]||{},F=j.locale||j.lng||l.locale||l.lng||o;O=this.formats[E](s,F,{...z,...l,...j})}catch(j){this.logger.warn(j)}return O}else this.logger.warn(`there was no format function for ${E}`);return s},t)}}function Wse(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class qse extends bx{constructor(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=o,this.languageUtils=o.languageUtils,this.options=l,this.logger=xl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,l.backend,l)}queueLoad(t,n,o,l){const d={},g={},s={},v={};return t.forEach(E=>{let z=!0;n.forEach(O=>{const j=`${E}|${O}`;!o.reload&&this.store.hasResourceBundle(E,O)?this.state[j]=2:this.state[j]<0||(this.state[j]===1?g[j]===void 0&&(g[j]=!0):(this.state[j]=1,z=!1,g[j]===void 0&&(g[j]=!0),d[j]===void 0&&(d[j]=!0),v[O]===void 0&&(v[O]=!0)))}),z||(s[E]=!0)}),(Object.keys(d).length||Object.keys(g).length)&&this.queue.push({pending:g,pendingCount:Object.keys(g).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(g),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(v)}}loaded(t,n,o){const l=t.split("|"),d=l[0],g=l[1];n&&this.emit("failedLoading",d,g,n),o&&this.store.addResourceBundle(d,g,o),this.state[t]=n?-1:2;const s={};this.queue.forEach(v=>{kse(v.loaded,[d],g),Wse(v,t),n&&v.errors.push(n),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(E=>{s[E]||(s[E]={});const z=v.loaded[E];z.length&&z.forEach(O=>{s[E][O]===void 0&&(s[E][O]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(v=>!v.done)}read(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,g=arguments.length>5?arguments[5]:void 0;if(!t.length)return g(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:o,tried:l,wait:d,callback:g});return}this.readingCalls++;const s=(E,z)=>{if(this.readingCalls--,this.waitingReads.length>0){const O=this.waitingReads.shift();this.read(O.lng,O.ns,O.fcName,O.tried,O.wait,O.callback)}if(E&&z&&l<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,o,l+1,d*2,g)},d);return}g(E,z)},v=this.backend[o].bind(this.backend);if(v.length===2){try{const E=v(t,n);E&&typeof E.then=="function"?E.then(z=>s(null,z)).catch(s):s(null,E)}catch(E){s(E)}return}return v(t,n,s)}prepareLoading(t,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const d=this.queueLoad(t,n,o,l);if(!d.toLoad.length)return d.pending.length||l(),null;d.toLoad.forEach(g=>{this.loadOne(g)})}load(t,n,o){this.prepareLoading(t,n,{},o)}reload(t,n,o){this.prepareLoading(t,n,{reload:!0},o)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=t.split("|"),l=o[0],d=o[1];this.read(l,d,"read",void 0,void 0,(g,s)=>{g&&this.logger.warn(`${n}loading namespace ${d} for language ${l} failed`,g),!g&&s&&this.logger.log(`${n}loaded namespace ${d} for language ${l}`,s),this.loaded(t,g,s)})}saveMissing(t,n,o,l,d){let g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${o}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){const v={...g,isUpdate:d},E=this.backend.create.bind(this.backend);if(E.length<6)try{let z;E.length===5?z=E(t,n,o,l,v):z=E(t,n,o,l),z&&typeof z.then=="function"?z.then(O=>s(null,O)).catch(s):s(null,z)}catch(z){s(z)}else E(t,n,o,l,s,v)}!t||!t[0]||this.store.addResource(t[0],n,o,l)}}}function xO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const o=t[3]||t[2];Object.keys(o).forEach(l=>{n[l]=o[l]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,o)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function bO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Sx(){}function Kse(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class p1 extends bx{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=bO(t),this.services={},this.logger=xl,this.modules={external:[]},Kse(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(o=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const l=xO();this.options={...l,...this.options,...bO(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...l.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function d(z){return z?typeof z=="function"?new z:z:null}if(!this.options.isClone){this.modules.logger?xl.init(d(this.modules.logger),this.options):xl.init(null,this.options);let z;this.modules.formatter?z=this.modules.formatter:typeof Intl<"u"&&(z=Zse);const O=new yO(this.options);this.store=new pO(this.options.resources,this.options);const j=this.services;j.logger=xl,j.resourceStore=this.store,j.languageUtils=O,j.pluralResolver=new Qse(O,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),z&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(j.formatter=d(z),j.formatter.init(j,this.options),this.options.interpolation.format=j.formatter.format.bind(j.formatter)),j.interpolator=new Yse(this.options),j.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},j.backendConnector=new qse(d(this.modules.backend),j.resourceStore,j,this.options),j.backendConnector.on("*",function(F){for(var $=arguments.length,Y=new Array($>1?$-1:0),ie=1;ie<$;ie++)Y[ie-1]=arguments[ie];t.emit(F,...Y)}),this.modules.languageDetector&&(j.languageDetector=d(this.modules.languageDetector),j.languageDetector.init&&j.languageDetector.init(j,this.options.detection,this.options)),this.modules.i18nFormat&&(j.i18nFormat=d(this.modules.i18nFormat),j.i18nFormat.init&&j.i18nFormat.init(this)),this.translator=new Tx(this.services,this.options),this.translator.on("*",function(F){for(var $=arguments.length,Y=new Array($>1?$-1:0),ie=1;ie<$;ie++)Y[ie-1]=arguments[ie];t.emit(F,...Y)}),this.modules.external.forEach(F=>{F.init&&F.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Sx),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const z=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);z.length>0&&z[0]!=="dev"&&(this.options.lng=z[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(z=>{this[z]=function(){return t.store[z](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(z=>{this[z]=function(){return t.store[z](...arguments),t}});const v=f1(),E=()=>{const z=(O,j)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),v.resolve(j),o(O,j)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return z(null,this.t.bind(this));this.changeLanguage(this.options.lng,z)};return this.options.resources||!this.options.initImmediate?E():setTimeout(E,0),v}loadResources(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sx;const l=typeof t=="string"?t:this.language;if(typeof t=="function"&&(o=t),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const d=[],g=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(E=>{E!=="cimode"&&d.indexOf(E)<0&&d.push(E)})};l?g(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>g(v)),this.options.preload&&this.options.preload.forEach(s=>g(s)),this.services.backendConnector.load(d,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(s)})}else o(null)}reloadResources(t,n,o){const l=f1();return t||(t=this.languages),n||(n=this.options.ns),o||(o=Sx),this.services.backendConnector.reload(t,n,d=>{l.resolve(),o(d)}),l}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&mO.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const o=this.languages[n];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(t,n){var o=this;this.isLanguageChangingTo=t;const l=f1();this.emit("languageChanging",t);const d=v=>{this.language=v,this.languages=this.services.languageUtils.toResolveHierarchy(v),this.resolvedLanguage=void 0,this.setResolvedLanguage(v)},g=(v,E)=>{E?(d(E),this.translator.changeLanguage(E),this.isLanguageChangingTo=void 0,this.emit("languageChanged",E),this.logger.log("languageChanged",E)):this.isLanguageChangingTo=void 0,l.resolve(function(){return o.t(...arguments)}),n&&n(v,function(){return o.t(...arguments)})},s=v=>{!t&&!v&&this.services.languageDetector&&(v=[]);const E=typeof v=="string"?v:this.services.languageUtils.getBestMatchFromCodes(v);E&&(this.language||d(E),this.translator.language||this.translator.changeLanguage(E),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(E)),this.loadResources(E,z=>{g(z,E)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),l}getFixedT(t,n,o){var l=this;const d=function(g,s){let v;if(typeof s!="object"){for(var E=arguments.length,z=new Array(E>2?E-2:0),O=2;O<E;O++)z[O-2]=arguments[O];v=l.options.overloadTranslationOptionHandler([g,s].concat(z))}else v={...s};v.lng=v.lng||d.lng,v.lngs=v.lngs||d.lngs,v.ns=v.ns||d.ns,v.keyPrefix=v.keyPrefix||o||d.keyPrefix;const j=l.options.keySeparator||".";let F;return v.keyPrefix&&Array.isArray(g)?F=g.map($=>`${v.keyPrefix}${j}${$}`):F=v.keyPrefix?`${v.keyPrefix}${j}${g}`:g,l.t(F,v)};return typeof t=="string"?d.lng=t:d.lngs=t,d.ns=n,d.keyPrefix=o,d}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=n.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const g=(s,v)=>{const E=this.services.backendConnector.state[`${s}|${v}`];return E===-1||E===2};if(n.precheck){const s=n.precheck(this,g);if(s!==void 0)return s}return!!(this.hasResourceBundle(o,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||g(o,t)&&(!l||g(d,t)))}loadNamespaces(t,n){const o=f1();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{o.resolve(),n&&n(l)}),o):(n&&n(),Promise.resolve())}loadLanguages(t,n){const o=f1();typeof t=="string"&&(t=[t]);const l=this.options.preload||[],d=t.filter(g=>l.indexOf(g)<0);return d.length?(this.options.preload=l.concat(d),this.loadResources(g=>{o.resolve(),n&&n(g)}),o):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new yO(xO());return n.indexOf(o.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new p1(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sx;const o=t.forkResourceStore;o&&delete t.forkResourceStore;const l={...this.options,...t,isClone:!0},d=new p1(l);return(t.debug!==void 0||t.prefix!==void 0)&&(d.logger=d.logger.clone(t)),["store","services","language"].forEach(s=>{d[s]=this[s]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},o&&(d.store=new pO(this.store.data,l),d.services.resourceStore=d.store),d.translator=new Tx(d.services,l),d.translator.on("*",function(s){for(var v=arguments.length,E=new Array(v>1?v-1:0),z=1;z<v;z++)E[z-1]=arguments[z];d.emit(s,...E)}),d.init(l,n),d.translator.options=l,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Uo=p1.createInstance();Uo.createInstance=p1.createInstance,Uo.createInstance,Uo.dir,Uo.init,Uo.loadResources,Uo.reloadResources,Uo.use,Uo.changeLanguage,Uo.getFixedT;const MO=Uo.t;Uo.exists,Uo.setDefaultNamespace,Uo.hasLoadedNamespace,Uo.loadNamespaces,Uo.loadLanguages;function PI(){return PI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},PI.apply(this,arguments)}function Xse(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const wO={};function UI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&wO[t[0]]||(typeof t[0]=="string"&&(wO[t[0]]=new Date),Xse(...t))}const IO=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function TO(e,t,n){e.loadNamespaces(t,IO(e,n))}function SO(e,t,n,o){typeof n=="string"&&(n=[n]),n.forEach(l=>{e.options.ns.indexOf(l)<0&&e.options.ns.push(l)}),e.loadLanguages(t,IO(e,o))}function Jse(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=t.languages[0],l=t.options?t.options.fallbackLng:!1,d=t.languages[t.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const g=(s,v)=>{const E=t.services.backendConnector.state[`${s}|${v}`];return E===-1||E===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!g(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(o,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||g(o,e)&&(!l||g(d,e)))}function eae(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(UI("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(l,d)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!d(l.isLanguageChangingTo,e))return!1}}):Jse(e,t,n)}const tae=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,nae={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},iae=e=>nae[e];let BI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(tae,iae)};function rae(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};BI={...BI,...e}}function oae(){return BI}let EO;function sae(e){EO=e}function aae(){return EO}const lae={type:"3rdParty",init(e){rae(e.options.react),sae(e)}},cae=Re.createContext();class uae{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const hae=(e,t)=>{const n=Re.useRef();return Re.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function ya(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:o,defaultNS:l}=Re.useContext(cae)||{},d=n||o||aae();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new uae),!d){UI("You will need to pass in an i18next instance by using initReactI18next");const te=(pe,me)=>typeof me=="string"?me:me&&typeof me=="object"&&typeof me.defaultValue=="string"?me.defaultValue:Array.isArray(pe)?pe[pe.length-1]:pe,oe=[te,{},!1];return oe.t=te,oe.i18n={},oe.ready=!1,oe}d.options.react&&d.options.react.wait!==void 0&&UI("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const g={...oae(),...d.options.react,...t},{useSuspense:s,keyPrefix:v}=g;let E=e||l||d.options&&d.options.defaultNS;E=typeof E=="string"?[E]:E||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(E);const z=(d.isInitialized||d.initializedStoreOnce)&&E.every(te=>eae(te,d,g));function O(){return d.getFixedT(t.lng||null,g.nsMode==="fallback"?E:E[0],v)}const[j,F]=Re.useState(O);let $=E.join();t.lng&&($=`${t.lng}${$}`);const Y=hae($),ie=Re.useRef(!0);Re.useEffect(()=>{const{bindI18n:te,bindI18nStore:oe}=g;ie.current=!0,!z&&!s&&(t.lng?SO(d,t.lng,E,()=>{ie.current&&F(O)}):TO(d,E,()=>{ie.current&&F(O)})),z&&Y&&Y!==$&&ie.current&&F(O);function pe(){ie.current&&F(O)}return te&&d&&d.on(te,pe),oe&&d&&d.store.on(oe,pe),()=>{ie.current=!1,te&&d&&te.split(" ").forEach(me=>d.off(me,pe)),oe&&d&&oe.split(" ").forEach(me=>d.store.off(me,pe))}},[d,$]);const K=Re.useRef(!0);Re.useEffect(()=>{ie.current&&!K.current&&F(O),K.current=!1},[d,v]);const J=[j,d,z];if(J.t=j,J.i18n=d,J.ready=z,z||!z&&!s)return J;throw new Promise(te=>{t.lng?SO(d,t.lng,E,()=>te()):TO(d,E,()=>te())})}const dae={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch","Avoid stairs and escalators":"Avoid stairs and escalators","No route found":"No route found","My position":"My position","Go!":"Go!",Directions:"Directions","Choose departure":"Choose departure","Choose destination":"Choose destination",Venues:"Venues","Select venue":"Select venue",Current:"Current","Scan QR code":"Scan QR code","Scan the QR code to see the route on your phone":"Scan the QR code to see the route on your phone",Done:"Done","Cancel route":"Cancel route","Finish route":"Finish route"},fae={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift","Avoid stairs and escalators":"Undgå trapper og rulletrapper","No route found":"Ingen rute fundet","My position":"Min position","Go!":"Go!",Directions:"Rutevejledning","Choose departure":"Vælg startpunkt","Choose destination":"Vælg destination",Venues:"Venues","Select venue":"Vælg venue",Current:"Valgt","Scan QR code":"Scan QR-kode","Scan the QR code to see the route on your phone":"Scan QR-koden for at se ruten på din mobil",Done:"Afslut","Cancel route":"Annullér ruten","Finish route":"Afslut ruten"},pae={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Suche nach Name, Kategorie, Gebäude...","Nothing was found":"Keine Suchtreffer",d:"d",h:"h",min:"min",Walk:"Zu Fuß",Bike:"Fahrrad",Transit:"Öffentliche Verkehrsmittel",Drive:"Auto","Start wayfinding":"Starte Navigation","Read full description":"Öffne vollständige Beschreibung",Locations:"Locations","Directions not available":"Beschreibung nicht verfügbar","Start directions":"Starte Beschreibung",Previous:"Zurück",Next:"Weiter",StepYofX:"Schritt {{activeStep}} von {{totalSteps}}","You have arrived":"Sie haben ihr Ziel erreicht",Leave:"Verlassen",Park:"Parken",at:"bei",Building:"Gebäude",Venue:"Standort","Take staircase to level":"Nutzen Sie die Treppe zur Etage","Take the ladder to level":"Nutzen Sie die Leiter zur Etage","Take elevator to level":"Nutzen Sie den Aufzug zur Etage","Take escalator to level":"Nutzen Sie die Rolltreppe zur Etage","Take wheelchair lift to level":"Nutzen Sie den Rollstuhllift zur Etage","Take wheelchair ramp to level":"Nutzen Sie die Rollstuhlrampe zur Etage",Exit:"Verlasse das",Enter:"Gehe in das",stops:"Zwischenstopps","and continue":"und Weg fortsetzen","Continue straight ahead":"Weiter geradeaus","Go left":"Links abbiegen","Go sharp left":"Scharf links abbiegen","Go slight left":"Leicht links abbiegen","Go right":"Rechts abbiegen","Go sharp right":"Scharf rechts abbiegen","Go slight right":"Leicht rechts abbiegen","Turn around":"Umdrehen",Switch:"Umkehren","Avoid stairs and escalators":"Vermeide Treppen und Rolltreppen","No route found":"Keine Route gefunden","My position":"Meine Position","Go!":"Start!",Directions:"Wegbeschreibung","Choose departure":"Abfahrt wählen","Choose destination":"Ziel wählen",Venues:"Standorte","Select venue":"Wähle Standort",Current:"Aktuell","Scan QR code":"QR-Code scannen","Scan the QR code to see the route on your phone":"Scannen Sie den QR-Code, um die Route auf Ihrem Smartphone anzuzeigen",Done:"Schließen","Cancel route":"Route abbrechen","Finish route":"Route beenden"},mae={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer","Avoid stairs and escalators":"Éviter les escaliers et les escalators","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Go!":"C'est parti!",Directions:"Instructions","Choose departure":"Choisir le départ","Choose destination":"Choisir la destination",Venues:"Lieux","Select venue":"Sélectionner le lieu",Current:"Actuel","Scan QR code":"Scanne le code QR","Scan the QR code to see the route on your phone":"Scannez le code QR pour voir l'itinéraire sur votre téléphone",Done:"Fini","Cancel route":"Annuler l'itinéraire","Finish route":"Terminer l'itinéraire"},gae={Close:"Chiudi",From:"Da",To:"A",Distance:"Distanza","Estimated time":"Tempo stimato",Level:"Piano","Search by name, category, building...":"Cerca per nome, categoria, edificio...","Nothing was found":"Non è stato trovato nulla",d:"g",h:"o",min:"min",Walk:"A piedi",Bike:"Bicicletta",Transit:"Trasporto pubblico",Drive:"In auto","Start wayfinding":"Inizia percorso","Read full description":"Leggi la descrizione completa",Locations:"Luoghi","Directions not available":"Indicazioni non disponibili","Start directions":"Calcola il Percorso",Previous:"Precedente",Next:"Prossimo",StepYofX:"Passaggio {{activeStep}} di {{totalSteps}}","You have arrived":"Sei a destinazione",Leave:"Parti",Park:"Parcheggia",at:"a",Building:"Edificio",Venue:"Luogo","Take staircase to level":"Prendi le scale fino al piano","Take the ladder to level":"Prendi la scala fino al piano","Take elevator to level":"Prendi l'ascensore fino al piano","Take escalator to level":"Prendi la scala mobile fino al piano","Take wheelchair lift to level":"Prendi il montascale fino al piano","Take wheelchair ramp to level":"Prendi la rampa per sedie a rotelle fino al piano",Exit:"Esci",Enter:"Entra in",stops:"fermate","and continue":"e continua","Continue straight ahead":"Continua dritto","Go left":"Gira a sinistra","Go sharp left":"Svolta a sinistra","Go slight left":"Gira leggermente a sinistra","Go right":"Gira a destra","Go sharp right":"Svolta a destra","Go slight right":"Gira leggermente a destra","Turn around":"Girati",Switch:"Inverti","Avoid stairs and escalators":"Evita scale e scale mobili","No route found":"Nessun percorso trovato","My position":"La mia posizione","Go!":"Vai!",Directions:"Indicazioni","Choose departure":"Scegli la partenza","Choose destination":"Scegli destinazione",Venues:"Luoghi","Select venue":"Seleziona luogo",Current:"Attuale","Scan QR code":"Scansiona il codice QR","Scan the QR code to see the route on your phone":"Scansiona il codice QR per vedere il percorso sul tuo telefono",Done:"Fatto","Cancel route":"Annulla percorso","Finish route":"Termina percorso"},yae={Close:"Cerca",From:"Desde",To:"A",Distance:"Distancia","Estimated time":"Hora Prevista",Level:"Nivel","Search by name, category, building...":"Busca por nombre, categoría, edificio...","Nothing was found":"No se encontró nada",d:"d",h:"h",min:"mín",Walk:"Caminar",Bike:"Bicicleta",Transit:"Transporte público",Drive:"Conducir","Start wayfinding":"Iniciar la navegación","Read full description":"Leer descripción completa",Locations:"Ubicaciones","Directions not available":"Direcciones no disponibles","Start directions":"Comenzar direcciones",Previous:"Previo",Next:"Próximo",StepYofX:"Paso {{activeStep}} de {{totalSteps}}","You have arrived":"Has llegado",Leave:"Dejar",Park:"Estacionar",at:"en",Building:"Edificio",Venue:"Evento","Take staircase to level":"Tome la escaleras al nivel","Take the ladder to level":"Tome la escalera al nivel","Take elevator to level":"Tome el ascensor hasta el nivel","Take escalator to level":"Tome la escalera mecánica al nivel","Take wheelchair lift to level":"Tome el elevador de sillas de ruedas hasta el nivel","Take wheelchair ramp to level":"Tome la rampa para sillas de ruedas hasta nivelar",Exit:"Salida",Enter:"Ingresar",stops:"paradas","and continue":"y continuar","Continue straight ahead":"Continúe recto","Go left":"Ve a la izquierda","Go sharp left":"Vaya bruscamente a la izquierda","Go slight left":"Vaya ligeramente a la izquierda","Go right":"Ve a la derecha","Go sharp right":"Vaya bruscamente a la derecha","Go slight right":"Vaya ligeramente a la derecha","Turn around":"Giro de vuelta",Switch:"Cambiar","Avoid stairs and escalators":"Evitar escaleras y escaleras mecánicas","No route found":"No se encontró ninguna ruta","My position":"Mi posición","Go!":"¡Ir!",Directions:"Instrucciones","Choose departure":"Elige la salida","Choose destination":"Elige destino",Venues:"Lugares","Select venue":"Seleccionar lugar",Current:"Actual","Scan QR code":"Escanear código QR","Scan the QR code to see the route on your phone":"Escanea el código QR para ver la ruta en tu teléfono",Done:"Finalizado","Cancel route":"Cancelar ruta","Finish route":"Finalizar ruta"},_ae={Close:"Sluit",From:"Van",To:"Naar",Distance:"Afstand","Estimated time":"Geschatte tijd",Level:"Niveau","Search by name, category, building...":"Zoeken op naam, categorie, gebouw…","Nothing was found":"Er is niets gevonden",d:"d",h:"u",min:"min",Walk:"Wandelen",Bike:"Fietsen",Transit:"Overgang",Drive:"Rijden","Start wayfinding":"Begin met navigeren ","Read full description":"Lees de volledige beschrijving",Locations:"Locaties","Directions not available":"Routebeschrijving niet beschikbaar","Start directions":"Start routebeschrijving",Previous:"Vorig",Next:"Volgende",StepYofX:"Stap {{activeStep}} van {{totalSteps}}","You have arrived":"Je bent aangekomen",Leave:"Verlaat",Park:"Parkeer",at:"bij",Building:"Gebouw",Venue:"Locatie","Take staircase to level":"Neem de trap naar niveau","Take the ladder to level":"Neem de ladder naar niveau","Take elevator to level":"Neem de lift naar niveau","Take escalator to level":"Neem de roltrap naar niveau","Take wheelchair lift to level":"Neem de rolstoellift naar niveau ","Take wheelchair ramp to level":"Neem de rolstoelhelling naar niveau",Exit:"Verlaat",Enter:"Binnengaan",stops:"stopt","and continue":"en doorgaan","Continue straight ahead":"Ga rechtdoor","Go left":"Ga links","Go sharp left":"Ga scherp naar links","Go slight left":"Ga lichtjes naar links","Go right":"Ga rechts","Go sharp right":"Ga scherp naar rechts","Go slight right":"Ga lichtjes naar rechts","Turn around":"Draai je om",Switch:"Schakelaar","Avoid stairs and escalators":"Vermijd trappen en roltrappen","No route found":"Geen route gevonden","My position":"Mijn positie","Go!":"Gaan!",Directions:"Richtingen","Choose departure":"Kies vertrek","Choose destination":"Kies bestemming",Venues:"Locaties","Select venue":"Kies locatie",Current:"Huidige","Scan QR code":"QR-code scannen","Scan the QR code to see the route on your phone":"Scan de QR-code om de route op jouw telefoon te bekijken",Done:"Klaar","Cancel route":"Route annuleren","Finish route":"Route voltooien "};function vae(e){Uo.use(lae).init({resources:{en:{translation:dae},da:{translation:fae},de:{translation:pae},fr:{translation:mae},it:{translation:gae},es:{translation:yae},nl:{translation:_ae}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const s_e="";var DO={exports:{}},xae="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bae=xae,Mae=bae;function CO(){}function AO(){}AO.resetWarningCache=CO;var wae=function(){function e(o,l,d,g,s,v){if(v!==Mae){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:AO,resetWarningCache:CO};return n.PropTypes=n,n};DO.exports=wae();var Iae=DO.exports;const Ri=Ud(Iae);var NO={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ac,function(){var n,o,l;function d(s,v){if(!n)n=v;else if(!o)o=v;else{var E="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+n+")(sharedChunk); ("+o+")(sharedChunk); self.onerror = null;",z={};n(z),l=v(z),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(l.workerUrl=window.URL.createObjectURL(new Blob([E],{type:"text/javascript"})))}}d(["exports"],function(s){function v(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var E,z={},O={};function j(){if(E)return O;E=1,Object.defineProperty(O,"__esModule",{value:!0}),O.setMatrixArrayType=function(y){O.ARRAY_TYPE=i=y},O.toRadian=function(y){return y*h},O.equals=function(y,f){return Math.abs(y-f)<=u*Math.max(1,Math.abs(y),Math.abs(f))},O.RANDOM=O.ARRAY_TYPE=O.EPSILON=void 0;var u=1e-6;O.EPSILON=u;var i=typeof Float32Array<"u"?Float32Array:Array;O.ARRAY_TYPE=i;var a=Math.random;O.RANDOM=a;var h=Math.PI/180;return Math.hypot||(Math.hypot=function(){for(var y=0,f=arguments.length;f--;)y+=arguments[f]*arguments[f];return Math.sqrt(y)}),O}var F,$={};function Y(){if(F)return $;function u(f){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u(f)}F=1,Object.defineProperty($,"__esModule",{value:!0}),$.create=function(){var f=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(f[1]=0,f[2]=0),f[0]=1,f[3]=1,f},$.clone=function(f){var _=new i.ARRAY_TYPE(4);return _[0]=f[0],_[1]=f[1],_[2]=f[2],_[3]=f[3],_},$.copy=function(f,_){return f[0]=_[0],f[1]=_[1],f[2]=_[2],f[3]=_[3],f},$.identity=function(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=1,f},$.fromValues=function(f,_,w,D){var N=new i.ARRAY_TYPE(4);return N[0]=f,N[1]=_,N[2]=w,N[3]=D,N},$.set=function(f,_,w,D,N){return f[0]=_,f[1]=w,f[2]=D,f[3]=N,f},$.transpose=function(f,_){if(f===_){var w=_[1];f[1]=_[2],f[2]=w}else f[0]=_[0],f[1]=_[2],f[2]=_[1],f[3]=_[3];return f},$.invert=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=w*b-N*D;return T?(f[0]=b*(T=1/T),f[1]=-D*T,f[2]=-N*T,f[3]=w*T,f):null},$.adjoint=function(f,_){var w=_[0];return f[0]=_[3],f[1]=-_[1],f[2]=-_[2],f[3]=w,f},$.determinant=function(f){return f[0]*f[3]-f[2]*f[1]},$.multiply=h,$.rotate=function(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=Math.sin(w),S=Math.cos(w);return f[0]=D*S+b*A,f[1]=N*S+T*A,f[2]=D*-A+b*S,f[3]=N*-A+T*S,f},$.scale=function(f,_,w){var D=_[1],N=_[2],b=_[3],T=w[0],A=w[1];return f[0]=_[0]*T,f[1]=D*T,f[2]=N*A,f[3]=b*A,f},$.fromRotation=function(f,_){var w=Math.sin(_),D=Math.cos(_);return f[0]=D,f[1]=w,f[2]=-w,f[3]=D,f},$.fromScaling=function(f,_){return f[0]=_[0],f[1]=0,f[2]=0,f[3]=_[1],f},$.str=function(f){return"mat2("+f[0]+", "+f[1]+", "+f[2]+", "+f[3]+")"},$.frob=function(f){return Math.hypot(f[0],f[1],f[2],f[3])},$.LDU=function(f,_,w,D){return f[2]=D[2]/D[0],w[0]=D[0],w[1]=D[1],w[3]=D[3]-f[2]*w[1],[f,_,w]},$.add=function(f,_,w){return f[0]=_[0]+w[0],f[1]=_[1]+w[1],f[2]=_[2]+w[2],f[3]=_[3]+w[3],f},$.subtract=y,$.exactEquals=function(f,_){return f[0]===_[0]&&f[1]===_[1]&&f[2]===_[2]&&f[3]===_[3]},$.equals=function(f,_){var w=f[0],D=f[1],N=f[2],b=f[3],T=_[0],A=_[1],S=_[2],C=_[3];return Math.abs(w-T)<=i.EPSILON*Math.max(1,Math.abs(w),Math.abs(T))&&Math.abs(D-A)<=i.EPSILON*Math.max(1,Math.abs(D),Math.abs(A))&&Math.abs(N-S)<=i.EPSILON*Math.max(1,Math.abs(N),Math.abs(S))&&Math.abs(b-C)<=i.EPSILON*Math.max(1,Math.abs(b),Math.abs(C))},$.multiplyScalar=function(f,_,w){return f[0]=_[0]*w,f[1]=_[1]*w,f[2]=_[2]*w,f[3]=_[3]*w,f},$.multiplyScalarAndAdd=function(f,_,w,D){return f[0]=_[0]+w[0]*D,f[1]=_[1]+w[1]*D,f[2]=_[2]+w[2]*D,f[3]=_[3]+w[3]*D,f},$.sub=$.mul=void 0;var i=function(f,_){if(f&&f.__esModule)return f;if(f===null||u(f)!=="object"&&typeof f!="function")return{default:f};var w=a(void 0);if(w&&w.has(f))return w.get(f);var D={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var T=N?Object.getOwnPropertyDescriptor(f,b):null;T&&(T.get||T.set)?Object.defineProperty(D,b,T):D[b]=f[b]}return D.default=f,w&&w.set(f,D),D}(j());function a(f){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(a=function(D){return D?w:_})(f)}function h(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=w[0],S=w[1],C=w[2],k=w[3];return f[0]=D*A+b*S,f[1]=N*A+T*S,f[2]=D*C+b*k,f[3]=N*C+T*k,f}function y(f,_,w){return f[0]=_[0]-w[0],f[1]=_[1]-w[1],f[2]=_[2]-w[2],f[3]=_[3]-w[3],f}return $.mul=h,$.sub=y,$}var ie,K={};function J(){if(ie)return K;function u(f){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u(f)}ie=1,Object.defineProperty(K,"__esModule",{value:!0}),K.create=function(){var f=new i.ARRAY_TYPE(6);return i.ARRAY_TYPE!=Float32Array&&(f[1]=0,f[2]=0,f[4]=0,f[5]=0),f[0]=1,f[3]=1,f},K.clone=function(f){var _=new i.ARRAY_TYPE(6);return _[0]=f[0],_[1]=f[1],_[2]=f[2],_[3]=f[3],_[4]=f[4],_[5]=f[5],_},K.copy=function(f,_){return f[0]=_[0],f[1]=_[1],f[2]=_[2],f[3]=_[3],f[4]=_[4],f[5]=_[5],f},K.identity=function(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=1,f[4]=0,f[5]=0,f},K.fromValues=function(f,_,w,D,N,b){var T=new i.ARRAY_TYPE(6);return T[0]=f,T[1]=_,T[2]=w,T[3]=D,T[4]=N,T[5]=b,T},K.set=function(f,_,w,D,N,b,T){return f[0]=_,f[1]=w,f[2]=D,f[3]=N,f[4]=b,f[5]=T,f},K.invert=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=_[4],A=_[5],S=w*b-D*N;return S?(f[0]=b*(S=1/S),f[1]=-D*S,f[2]=-N*S,f[3]=w*S,f[4]=(N*A-b*T)*S,f[5]=(D*T-w*A)*S,f):null},K.determinant=function(f){return f[0]*f[3]-f[1]*f[2]},K.multiply=h,K.rotate=function(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=Math.sin(w),k=Math.cos(w);return f[0]=D*k+b*C,f[1]=N*k+T*C,f[2]=D*-C+b*k,f[3]=N*-C+T*k,f[4]=A,f[5]=S,f},K.scale=function(f,_,w){var D=_[1],N=_[2],b=_[3],T=_[4],A=_[5],S=w[0],C=w[1];return f[0]=_[0]*S,f[1]=D*S,f[2]=N*C,f[3]=b*C,f[4]=T,f[5]=A,f},K.translate=function(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=w[0],k=w[1];return f[0]=D,f[1]=N,f[2]=b,f[3]=T,f[4]=D*C+b*k+A,f[5]=N*C+T*k+S,f},K.fromRotation=function(f,_){var w=Math.sin(_),D=Math.cos(_);return f[0]=D,f[1]=w,f[2]=-w,f[3]=D,f[4]=0,f[5]=0,f},K.fromScaling=function(f,_){return f[0]=_[0],f[1]=0,f[2]=0,f[3]=_[1],f[4]=0,f[5]=0,f},K.fromTranslation=function(f,_){return f[0]=1,f[1]=0,f[2]=0,f[3]=1,f[4]=_[0],f[5]=_[1],f},K.str=function(f){return"mat2d("+f[0]+", "+f[1]+", "+f[2]+", "+f[3]+", "+f[4]+", "+f[5]+")"},K.frob=function(f){return Math.hypot(f[0],f[1],f[2],f[3],f[4],f[5],1)},K.add=function(f,_,w){return f[0]=_[0]+w[0],f[1]=_[1]+w[1],f[2]=_[2]+w[2],f[3]=_[3]+w[3],f[4]=_[4]+w[4],f[5]=_[5]+w[5],f},K.subtract=y,K.multiplyScalar=function(f,_,w){return f[0]=_[0]*w,f[1]=_[1]*w,f[2]=_[2]*w,f[3]=_[3]*w,f[4]=_[4]*w,f[5]=_[5]*w,f},K.multiplyScalarAndAdd=function(f,_,w,D){return f[0]=_[0]+w[0]*D,f[1]=_[1]+w[1]*D,f[2]=_[2]+w[2]*D,f[3]=_[3]+w[3]*D,f[4]=_[4]+w[4]*D,f[5]=_[5]+w[5]*D,f},K.exactEquals=function(f,_){return f[0]===_[0]&&f[1]===_[1]&&f[2]===_[2]&&f[3]===_[3]&&f[4]===_[4]&&f[5]===_[5]},K.equals=function(f,_){var w=f[0],D=f[1],N=f[2],b=f[3],T=f[4],A=f[5],S=_[0],C=_[1],k=_[2],P=_[3],V=_[4],Z=_[5];return Math.abs(w-S)<=i.EPSILON*Math.max(1,Math.abs(w),Math.abs(S))&&Math.abs(D-C)<=i.EPSILON*Math.max(1,Math.abs(D),Math.abs(C))&&Math.abs(N-k)<=i.EPSILON*Math.max(1,Math.abs(N),Math.abs(k))&&Math.abs(b-P)<=i.EPSILON*Math.max(1,Math.abs(b),Math.abs(P))&&Math.abs(T-V)<=i.EPSILON*Math.max(1,Math.abs(T),Math.abs(V))&&Math.abs(A-Z)<=i.EPSILON*Math.max(1,Math.abs(A),Math.abs(Z))},K.sub=K.mul=void 0;var i=function(f,_){if(f&&f.__esModule)return f;if(f===null||u(f)!=="object"&&typeof f!="function")return{default:f};var w=a(void 0);if(w&&w.has(f))return w.get(f);var D={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var T=N?Object.getOwnPropertyDescriptor(f,b):null;T&&(T.get||T.set)?Object.defineProperty(D,b,T):D[b]=f[b]}return D.default=f,w&&w.set(f,D),D}(j());function a(f){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(a=function(D){return D?w:_})(f)}function h(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=w[0],k=w[1],P=w[2],V=w[3],Z=w[4],q=w[5];return f[0]=D*C+b*k,f[1]=N*C+T*k,f[2]=D*P+b*V,f[3]=N*P+T*V,f[4]=D*Z+b*q+A,f[5]=N*Z+T*q+S,f}function y(f,_,w){return f[0]=_[0]-w[0],f[1]=_[1]-w[1],f[2]=_[2]-w[2],f[3]=_[3]-w[3],f[4]=_[4]-w[4],f[5]=_[5]-w[5],f}return K.mul=h,K.sub=y,K}var te,oe={};function pe(){if(te)return oe;function u(f){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u(f)}te=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.create=function(){var f=new i.ARRAY_TYPE(9);return i.ARRAY_TYPE!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[5]=0,f[6]=0,f[7]=0),f[0]=1,f[4]=1,f[8]=1,f},oe.fromMat4=function(f,_){return f[0]=_[0],f[1]=_[1],f[2]=_[2],f[3]=_[4],f[4]=_[5],f[5]=_[6],f[6]=_[8],f[7]=_[9],f[8]=_[10],f},oe.clone=function(f){var _=new i.ARRAY_TYPE(9);return _[0]=f[0],_[1]=f[1],_[2]=f[2],_[3]=f[3],_[4]=f[4],_[5]=f[5],_[6]=f[6],_[7]=f[7],_[8]=f[8],_},oe.copy=function(f,_){return f[0]=_[0],f[1]=_[1],f[2]=_[2],f[3]=_[3],f[4]=_[4],f[5]=_[5],f[6]=_[6],f[7]=_[7],f[8]=_[8],f},oe.fromValues=function(f,_,w,D,N,b,T,A,S){var C=new i.ARRAY_TYPE(9);return C[0]=f,C[1]=_,C[2]=w,C[3]=D,C[4]=N,C[5]=b,C[6]=T,C[7]=A,C[8]=S,C},oe.set=function(f,_,w,D,N,b,T,A,S,C){return f[0]=_,f[1]=w,f[2]=D,f[3]=N,f[4]=b,f[5]=T,f[6]=A,f[7]=S,f[8]=C,f},oe.identity=function(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=1,f[5]=0,f[6]=0,f[7]=0,f[8]=1,f},oe.transpose=function(f,_){if(f===_){var w=_[1],D=_[2],N=_[5];f[1]=_[3],f[2]=_[6],f[3]=w,f[5]=_[7],f[6]=D,f[7]=N}else f[0]=_[0],f[1]=_[3],f[2]=_[6],f[3]=_[1],f[4]=_[4],f[5]=_[7],f[6]=_[2],f[7]=_[5],f[8]=_[8];return f},oe.invert=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=_[4],A=_[5],S=_[6],C=_[7],k=_[8],P=k*T-A*C,V=-k*b+A*S,Z=C*b-T*S,q=w*P+D*V+N*Z;return q?(f[0]=P*(q=1/q),f[1]=(-k*D+N*C)*q,f[2]=(A*D-N*T)*q,f[3]=V*q,f[4]=(k*w-N*S)*q,f[5]=(-A*w+N*b)*q,f[6]=Z*q,f[7]=(-C*w+D*S)*q,f[8]=(T*w-D*b)*q,f):null},oe.adjoint=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=_[4],A=_[5],S=_[6],C=_[7],k=_[8];return f[0]=T*k-A*C,f[1]=N*C-D*k,f[2]=D*A-N*T,f[3]=A*S-b*k,f[4]=w*k-N*S,f[5]=N*b-w*A,f[6]=b*C-T*S,f[7]=D*S-w*C,f[8]=w*T-D*b,f},oe.determinant=function(f){var _=f[3],w=f[4],D=f[5],N=f[6],b=f[7],T=f[8];return f[0]*(T*w-D*b)+f[1]*(-T*_+D*N)+f[2]*(b*_-w*N)},oe.multiply=h,oe.translate=function(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=_[6],k=_[7],P=_[8],V=w[0],Z=w[1];return f[0]=D,f[1]=N,f[2]=b,f[3]=T,f[4]=A,f[5]=S,f[6]=V*D+Z*T+C,f[7]=V*N+Z*A+k,f[8]=V*b+Z*S+P,f},oe.rotate=function(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=_[6],k=_[7],P=_[8],V=Math.sin(w),Z=Math.cos(w);return f[0]=Z*D+V*T,f[1]=Z*N+V*A,f[2]=Z*b+V*S,f[3]=Z*T-V*D,f[4]=Z*A-V*N,f[5]=Z*S-V*b,f[6]=C,f[7]=k,f[8]=P,f},oe.scale=function(f,_,w){var D=w[0],N=w[1];return f[0]=D*_[0],f[1]=D*_[1],f[2]=D*_[2],f[3]=N*_[3],f[4]=N*_[4],f[5]=N*_[5],f[6]=_[6],f[7]=_[7],f[8]=_[8],f},oe.fromTranslation=function(f,_){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=1,f[5]=0,f[6]=_[0],f[7]=_[1],f[8]=1,f},oe.fromRotation=function(f,_){var w=Math.sin(_),D=Math.cos(_);return f[0]=D,f[1]=w,f[2]=0,f[3]=-w,f[4]=D,f[5]=0,f[6]=0,f[7]=0,f[8]=1,f},oe.fromScaling=function(f,_){return f[0]=_[0],f[1]=0,f[2]=0,f[3]=0,f[4]=_[1],f[5]=0,f[6]=0,f[7]=0,f[8]=1,f},oe.fromMat2d=function(f,_){return f[0]=_[0],f[1]=_[1],f[2]=0,f[3]=_[2],f[4]=_[3],f[5]=0,f[6]=_[4],f[7]=_[5],f[8]=1,f},oe.fromQuat=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=w+w,A=D+D,S=N+N,C=w*T,k=D*T,P=D*A,V=N*T,Z=N*A,q=N*S,H=b*T,X=b*A,ne=b*S;return f[0]=1-P-q,f[3]=k-ne,f[6]=V+X,f[1]=k+ne,f[4]=1-C-q,f[7]=Z-H,f[2]=V-X,f[5]=Z+H,f[8]=1-C-P,f},oe.normalFromMat4=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=_[4],A=_[5],S=_[6],C=_[7],k=_[8],P=_[9],V=_[10],Z=_[11],q=_[12],H=_[13],X=_[14],ne=_[15],de=w*A-D*T,xe=w*S-N*T,Me=w*C-b*T,_e=D*S-N*A,ke=D*C-b*A,Ie=N*C-b*S,Pe=k*H-P*q,Ze=k*X-V*q,tt=k*ne-Z*q,nt=P*X-V*H,st=P*ne-Z*H,_t=V*ne-Z*X,at=de*_t-xe*st+Me*nt+_e*tt-ke*Ze+Ie*Pe;return at?(f[0]=(A*_t-S*st+C*nt)*(at=1/at),f[1]=(S*tt-T*_t-C*Ze)*at,f[2]=(T*st-A*tt+C*Pe)*at,f[3]=(N*st-D*_t-b*nt)*at,f[4]=(w*_t-N*tt+b*Ze)*at,f[5]=(D*tt-w*st-b*Pe)*at,f[6]=(H*Ie-X*ke+ne*_e)*at,f[7]=(X*Me-q*Ie-ne*xe)*at,f[8]=(q*ke-H*Me+ne*de)*at,f):null},oe.projection=function(f,_,w){return f[0]=2/_,f[1]=0,f[2]=0,f[3]=0,f[4]=-2/w,f[5]=0,f[6]=-1,f[7]=1,f[8]=1,f},oe.str=function(f){return"mat3("+f[0]+", "+f[1]+", "+f[2]+", "+f[3]+", "+f[4]+", "+f[5]+", "+f[6]+", "+f[7]+", "+f[8]+")"},oe.frob=function(f){return Math.hypot(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8])},oe.add=function(f,_,w){return f[0]=_[0]+w[0],f[1]=_[1]+w[1],f[2]=_[2]+w[2],f[3]=_[3]+w[3],f[4]=_[4]+w[4],f[5]=_[5]+w[5],f[6]=_[6]+w[6],f[7]=_[7]+w[7],f[8]=_[8]+w[8],f},oe.subtract=y,oe.multiplyScalar=function(f,_,w){return f[0]=_[0]*w,f[1]=_[1]*w,f[2]=_[2]*w,f[3]=_[3]*w,f[4]=_[4]*w,f[5]=_[5]*w,f[6]=_[6]*w,f[7]=_[7]*w,f[8]=_[8]*w,f},oe.multiplyScalarAndAdd=function(f,_,w,D){return f[0]=_[0]+w[0]*D,f[1]=_[1]+w[1]*D,f[2]=_[2]+w[2]*D,f[3]=_[3]+w[3]*D,f[4]=_[4]+w[4]*D,f[5]=_[5]+w[5]*D,f[6]=_[6]+w[6]*D,f[7]=_[7]+w[7]*D,f[8]=_[8]+w[8]*D,f},oe.exactEquals=function(f,_){return f[0]===_[0]&&f[1]===_[1]&&f[2]===_[2]&&f[3]===_[3]&&f[4]===_[4]&&f[5]===_[5]&&f[6]===_[6]&&f[7]===_[7]&&f[8]===_[8]},oe.equals=function(f,_){var w=f[0],D=f[1],N=f[2],b=f[3],T=f[4],A=f[5],S=f[6],C=f[7],k=f[8],P=_[0],V=_[1],Z=_[2],q=_[3],H=_[4],X=_[5],ne=_[6],de=_[7],xe=_[8];return Math.abs(w-P)<=i.EPSILON*Math.max(1,Math.abs(w),Math.abs(P))&&Math.abs(D-V)<=i.EPSILON*Math.max(1,Math.abs(D),Math.abs(V))&&Math.abs(N-Z)<=i.EPSILON*Math.max(1,Math.abs(N),Math.abs(Z))&&Math.abs(b-q)<=i.EPSILON*Math.max(1,Math.abs(b),Math.abs(q))&&Math.abs(T-H)<=i.EPSILON*Math.max(1,Math.abs(T),Math.abs(H))&&Math.abs(A-X)<=i.EPSILON*Math.max(1,Math.abs(A),Math.abs(X))&&Math.abs(S-ne)<=i.EPSILON*Math.max(1,Math.abs(S),Math.abs(ne))&&Math.abs(C-de)<=i.EPSILON*Math.max(1,Math.abs(C),Math.abs(de))&&Math.abs(k-xe)<=i.EPSILON*Math.max(1,Math.abs(k),Math.abs(xe))},oe.sub=oe.mul=void 0;var i=function(f,_){if(f&&f.__esModule)return f;if(f===null||u(f)!=="object"&&typeof f!="function")return{default:f};var w=a(void 0);if(w&&w.has(f))return w.get(f);var D={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var T=N?Object.getOwnPropertyDescriptor(f,b):null;T&&(T.get||T.set)?Object.defineProperty(D,b,T):D[b]=f[b]}return D.default=f,w&&w.set(f,D),D}(j());function a(f){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(a=function(D){return D?w:_})(f)}function h(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=_[6],k=_[7],P=_[8],V=w[0],Z=w[1],q=w[2],H=w[3],X=w[4],ne=w[5],de=w[6],xe=w[7],Me=w[8];return f[0]=V*D+Z*T+q*C,f[1]=V*N+Z*A+q*k,f[2]=V*b+Z*S+q*P,f[3]=H*D+X*T+ne*C,f[4]=H*N+X*A+ne*k,f[5]=H*b+X*S+ne*P,f[6]=de*D+xe*T+Me*C,f[7]=de*N+xe*A+Me*k,f[8]=de*b+xe*S+Me*P,f}function y(f,_,w){return f[0]=_[0]-w[0],f[1]=_[1]-w[1],f[2]=_[2]-w[2],f[3]=_[3]-w[3],f[4]=_[4]-w[4],f[5]=_[5]-w[5],f[6]=_[6]-w[6],f[7]=_[7]-w[7],f[8]=_[8]-w[8],f}return oe.mul=h,oe.sub=y,oe}var me,he={};function De(){if(me)return he;function u(b){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},u(b)}me=1,Object.defineProperty(he,"__esModule",{value:!0}),he.create=function(){var b=new i.ARRAY_TYPE(16);return i.ARRAY_TYPE!=Float32Array&&(b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[11]=0,b[12]=0,b[13]=0,b[14]=0),b[0]=1,b[5]=1,b[10]=1,b[15]=1,b},he.clone=function(b){var T=new i.ARRAY_TYPE(16);return T[0]=b[0],T[1]=b[1],T[2]=b[2],T[3]=b[3],T[4]=b[4],T[5]=b[5],T[6]=b[6],T[7]=b[7],T[8]=b[8],T[9]=b[9],T[10]=b[10],T[11]=b[11],T[12]=b[12],T[13]=b[13],T[14]=b[14],T[15]=b[15],T},he.copy=function(b,T){return b[0]=T[0],b[1]=T[1],b[2]=T[2],b[3]=T[3],b[4]=T[4],b[5]=T[5],b[6]=T[6],b[7]=T[7],b[8]=T[8],b[9]=T[9],b[10]=T[10],b[11]=T[11],b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15],b},he.fromValues=function(b,T,A,S,C,k,P,V,Z,q,H,X,ne,de,xe,Me){var _e=new i.ARRAY_TYPE(16);return _e[0]=b,_e[1]=T,_e[2]=A,_e[3]=S,_e[4]=C,_e[5]=k,_e[6]=P,_e[7]=V,_e[8]=Z,_e[9]=q,_e[10]=H,_e[11]=X,_e[12]=ne,_e[13]=de,_e[14]=xe,_e[15]=Me,_e},he.set=function(b,T,A,S,C,k,P,V,Z,q,H,X,ne,de,xe,Me,_e){return b[0]=T,b[1]=A,b[2]=S,b[3]=C,b[4]=k,b[5]=P,b[6]=V,b[7]=Z,b[8]=q,b[9]=H,b[10]=X,b[11]=ne,b[12]=de,b[13]=xe,b[14]=Me,b[15]=_e,b},he.identity=h,he.transpose=function(b,T){if(b===T){var A=T[1],S=T[2],C=T[3],k=T[6],P=T[7],V=T[11];b[1]=T[4],b[2]=T[8],b[3]=T[12],b[4]=A,b[6]=T[9],b[7]=T[13],b[8]=S,b[9]=k,b[11]=T[14],b[12]=C,b[13]=P,b[14]=V}else b[0]=T[0],b[1]=T[4],b[2]=T[8],b[3]=T[12],b[4]=T[1],b[5]=T[5],b[6]=T[9],b[7]=T[13],b[8]=T[2],b[9]=T[6],b[10]=T[10],b[11]=T[14],b[12]=T[3],b[13]=T[7],b[14]=T[11],b[15]=T[15];return b},he.invert=function(b,T){var A=T[0],S=T[1],C=T[2],k=T[3],P=T[4],V=T[5],Z=T[6],q=T[7],H=T[8],X=T[9],ne=T[10],de=T[11],xe=T[12],Me=T[13],_e=T[14],ke=T[15],Ie=A*V-S*P,Pe=A*Z-C*P,Ze=A*q-k*P,tt=S*Z-C*V,nt=S*q-k*V,st=C*q-k*Z,_t=H*Me-X*xe,at=H*_e-ne*xe,Ct=H*ke-de*xe,jt=X*_e-ne*Me,Mt=X*ke-de*Me,sn=ne*ke-de*_e,Kt=Ie*sn-Pe*Mt+Ze*jt+tt*Ct-nt*at+st*_t;return Kt?(b[0]=(V*sn-Z*Mt+q*jt)*(Kt=1/Kt),b[1]=(C*Mt-S*sn-k*jt)*Kt,b[2]=(Me*st-_e*nt+ke*tt)*Kt,b[3]=(ne*nt-X*st-de*tt)*Kt,b[4]=(Z*Ct-P*sn-q*at)*Kt,b[5]=(A*sn-C*Ct+k*at)*Kt,b[6]=(_e*Ze-xe*st-ke*Pe)*Kt,b[7]=(H*st-ne*Ze+de*Pe)*Kt,b[8]=(P*Mt-V*Ct+q*_t)*Kt,b[9]=(S*Ct-A*Mt-k*_t)*Kt,b[10]=(xe*nt-Me*Ze+ke*Ie)*Kt,b[11]=(X*Ze-H*nt-de*Ie)*Kt,b[12]=(V*at-P*jt-Z*_t)*Kt,b[13]=(A*jt-S*at+C*_t)*Kt,b[14]=(Me*Pe-xe*tt-_e*Ie)*Kt,b[15]=(H*tt-X*Pe+ne*Ie)*Kt,b):null},he.adjoint=function(b,T){var A=T[0],S=T[1],C=T[2],k=T[3],P=T[4],V=T[5],Z=T[6],q=T[7],H=T[8],X=T[9],ne=T[10],de=T[11],xe=T[12],Me=T[13],_e=T[14],ke=T[15];return b[0]=V*(ne*ke-de*_e)-X*(Z*ke-q*_e)+Me*(Z*de-q*ne),b[1]=-(S*(ne*ke-de*_e)-X*(C*ke-k*_e)+Me*(C*de-k*ne)),b[2]=S*(Z*ke-q*_e)-V*(C*ke-k*_e)+Me*(C*q-k*Z),b[3]=-(S*(Z*de-q*ne)-V*(C*de-k*ne)+X*(C*q-k*Z)),b[4]=-(P*(ne*ke-de*_e)-H*(Z*ke-q*_e)+xe*(Z*de-q*ne)),b[5]=A*(ne*ke-de*_e)-H*(C*ke-k*_e)+xe*(C*de-k*ne),b[6]=-(A*(Z*ke-q*_e)-P*(C*ke-k*_e)+xe*(C*q-k*Z)),b[7]=A*(Z*de-q*ne)-P*(C*de-k*ne)+H*(C*q-k*Z),b[8]=P*(X*ke-de*Me)-H*(V*ke-q*Me)+xe*(V*de-q*X),b[9]=-(A*(X*ke-de*Me)-H*(S*ke-k*Me)+xe*(S*de-k*X)),b[10]=A*(V*ke-q*Me)-P*(S*ke-k*Me)+xe*(S*q-k*V),b[11]=-(A*(V*de-q*X)-P*(S*de-k*X)+H*(S*q-k*V)),b[12]=-(P*(X*_e-ne*Me)-H*(V*_e-Z*Me)+xe*(V*ne-Z*X)),b[13]=A*(X*_e-ne*Me)-H*(S*_e-C*Me)+xe*(S*ne-C*X),b[14]=-(A*(V*_e-Z*Me)-P*(S*_e-C*Me)+xe*(S*Z-C*V)),b[15]=A*(V*ne-Z*X)-P*(S*ne-C*X)+H*(S*Z-C*V),b},he.determinant=function(b){var T=b[0],A=b[1],S=b[2],C=b[3],k=b[4],P=b[5],V=b[6],Z=b[7],q=b[8],H=b[9],X=b[10],ne=b[11],de=b[12],xe=b[13],Me=b[14],_e=b[15];return(T*P-A*k)*(X*_e-ne*Me)-(T*V-S*k)*(H*_e-ne*xe)+(T*Z-C*k)*(H*Me-X*xe)+(A*V-S*P)*(q*_e-ne*de)-(A*Z-C*P)*(q*Me-X*de)+(S*Z-C*V)*(q*xe-H*de)},he.multiply=y,he.translate=function(b,T,A){var S,C,k,P,V,Z,q,H,X,ne,de,xe,Me=A[0],_e=A[1],ke=A[2];return T===b?(b[12]=T[0]*Me+T[4]*_e+T[8]*ke+T[12],b[13]=T[1]*Me+T[5]*_e+T[9]*ke+T[13],b[14]=T[2]*Me+T[6]*_e+T[10]*ke+T[14],b[15]=T[3]*Me+T[7]*_e+T[11]*ke+T[15]):(C=T[1],k=T[2],P=T[3],V=T[4],Z=T[5],q=T[6],H=T[7],X=T[8],ne=T[9],de=T[10],xe=T[11],b[0]=S=T[0],b[1]=C,b[2]=k,b[3]=P,b[4]=V,b[5]=Z,b[6]=q,b[7]=H,b[8]=X,b[9]=ne,b[10]=de,b[11]=xe,b[12]=S*Me+V*_e+X*ke+T[12],b[13]=C*Me+Z*_e+ne*ke+T[13],b[14]=k*Me+q*_e+de*ke+T[14],b[15]=P*Me+H*_e+xe*ke+T[15]),b},he.scale=function(b,T,A){var S=A[0],C=A[1],k=A[2];return b[0]=T[0]*S,b[1]=T[1]*S,b[2]=T[2]*S,b[3]=T[3]*S,b[4]=T[4]*C,b[5]=T[5]*C,b[6]=T[6]*C,b[7]=T[7]*C,b[8]=T[8]*k,b[9]=T[9]*k,b[10]=T[10]*k,b[11]=T[11]*k,b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15],b},he.rotate=function(b,T,A,S){var C,k,P,V,Z,q,H,X,ne,de,xe,Me,_e,ke,Ie,Pe,Ze,tt,nt,st,_t,at,Ct,jt,Mt=S[0],sn=S[1],Kt=S[2],$t=Math.hypot(Mt,sn,Kt);return $t<i.EPSILON?null:(Mt*=$t=1/$t,sn*=$t,Kt*=$t,C=Math.sin(A),k=Math.cos(A),Z=T[1],q=T[2],H=T[3],ne=T[5],de=T[6],xe=T[7],_e=T[9],ke=T[10],Ie=T[11],Pe=Mt*Mt*(P=1-k)+k,nt=Mt*sn*P-Kt*C,st=sn*sn*P+k,_t=Kt*sn*P+Mt*C,at=Mt*Kt*P+sn*C,Ct=sn*Kt*P-Mt*C,jt=Kt*Kt*P+k,b[0]=(V=T[0])*Pe+(X=T[4])*(Ze=sn*Mt*P+Kt*C)+(Me=T[8])*(tt=Kt*Mt*P-sn*C),b[1]=Z*Pe+ne*Ze+_e*tt,b[2]=q*Pe+de*Ze+ke*tt,b[3]=H*Pe+xe*Ze+Ie*tt,b[4]=V*nt+X*st+Me*_t,b[5]=Z*nt+ne*st+_e*_t,b[6]=q*nt+de*st+ke*_t,b[7]=H*nt+xe*st+Ie*_t,b[8]=V*at+X*Ct+Me*jt,b[9]=Z*at+ne*Ct+_e*jt,b[10]=q*at+de*Ct+ke*jt,b[11]=H*at+xe*Ct+Ie*jt,T!==b&&(b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15]),b)},he.rotateX=function(b,T,A){var S=Math.sin(A),C=Math.cos(A),k=T[4],P=T[5],V=T[6],Z=T[7],q=T[8],H=T[9],X=T[10],ne=T[11];return T!==b&&(b[0]=T[0],b[1]=T[1],b[2]=T[2],b[3]=T[3],b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15]),b[4]=k*C+q*S,b[5]=P*C+H*S,b[6]=V*C+X*S,b[7]=Z*C+ne*S,b[8]=q*C-k*S,b[9]=H*C-P*S,b[10]=X*C-V*S,b[11]=ne*C-Z*S,b},he.rotateY=function(b,T,A){var S=Math.sin(A),C=Math.cos(A),k=T[0],P=T[1],V=T[2],Z=T[3],q=T[8],H=T[9],X=T[10],ne=T[11];return T!==b&&(b[4]=T[4],b[5]=T[5],b[6]=T[6],b[7]=T[7],b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15]),b[0]=k*C-q*S,b[1]=P*C-H*S,b[2]=V*C-X*S,b[3]=Z*C-ne*S,b[8]=k*S+q*C,b[9]=P*S+H*C,b[10]=V*S+X*C,b[11]=Z*S+ne*C,b},he.rotateZ=function(b,T,A){var S=Math.sin(A),C=Math.cos(A),k=T[0],P=T[1],V=T[2],Z=T[3],q=T[4],H=T[5],X=T[6],ne=T[7];return T!==b&&(b[8]=T[8],b[9]=T[9],b[10]=T[10],b[11]=T[11],b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15]),b[0]=k*C+q*S,b[1]=P*C+H*S,b[2]=V*C+X*S,b[3]=Z*C+ne*S,b[4]=q*C-k*S,b[5]=H*C-P*S,b[6]=X*C-V*S,b[7]=ne*C-Z*S,b},he.fromTranslation=function(b,T){return b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=T[0],b[13]=T[1],b[14]=T[2],b[15]=1,b},he.fromScaling=function(b,T){return b[0]=T[0],b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=T[1],b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=T[2],b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b},he.fromRotation=function(b,T,A){var S,C,k,P=A[0],V=A[1],Z=A[2],q=Math.hypot(P,V,Z);return q<i.EPSILON?null:(P*=q=1/q,V*=q,Z*=q,S=Math.sin(T),C=Math.cos(T),b[0]=P*P*(k=1-C)+C,b[1]=V*P*k+Z*S,b[2]=Z*P*k-V*S,b[3]=0,b[4]=P*V*k-Z*S,b[5]=V*V*k+C,b[6]=Z*V*k+P*S,b[7]=0,b[8]=P*Z*k+V*S,b[9]=V*Z*k-P*S,b[10]=Z*Z*k+C,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b)},he.fromXRotation=function(b,T){var A=Math.sin(T),S=Math.cos(T);return b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=S,b[6]=A,b[7]=0,b[8]=0,b[9]=-A,b[10]=S,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b},he.fromYRotation=function(b,T){var A=Math.sin(T),S=Math.cos(T);return b[0]=S,b[1]=0,b[2]=-A,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=A,b[9]=0,b[10]=S,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b},he.fromZRotation=function(b,T){var A=Math.sin(T),S=Math.cos(T);return b[0]=S,b[1]=A,b[2]=0,b[3]=0,b[4]=-A,b[5]=S,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b},he.fromRotationTranslation=f,he.fromQuat2=function(b,T){var A=new i.ARRAY_TYPE(3),S=-T[0],C=-T[1],k=-T[2],P=T[3],V=T[4],Z=T[5],q=T[6],H=T[7],X=S*S+C*C+k*k+P*P;return X>0?(A[0]=2*(V*P+H*S+Z*k-q*C)/X,A[1]=2*(Z*P+H*C+q*S-V*k)/X,A[2]=2*(q*P+H*k+V*C-Z*S)/X):(A[0]=2*(V*P+H*S+Z*k-q*C),A[1]=2*(Z*P+H*C+q*S-V*k),A[2]=2*(q*P+H*k+V*C-Z*S)),f(b,T,A),b},he.getTranslation=function(b,T){return b[0]=T[12],b[1]=T[13],b[2]=T[14],b},he.getScaling=_,he.getRotation=function(b,T){var A=new i.ARRAY_TYPE(3);_(A,T);var S=1/A[0],C=1/A[1],k=1/A[2],P=T[0]*S,V=T[1]*C,Z=T[2]*k,q=T[4]*S,H=T[5]*C,X=T[6]*k,ne=T[8]*S,de=T[9]*C,xe=T[10]*k,Me=P+H+xe,_e=0;return Me>0?(_e=2*Math.sqrt(Me+1),b[3]=.25*_e,b[0]=(X-de)/_e,b[1]=(ne-Z)/_e,b[2]=(V-q)/_e):P>H&&P>xe?(_e=2*Math.sqrt(1+P-H-xe),b[3]=(X-de)/_e,b[0]=.25*_e,b[1]=(V+q)/_e,b[2]=(ne+Z)/_e):H>xe?(_e=2*Math.sqrt(1+H-P-xe),b[3]=(ne-Z)/_e,b[0]=(V+q)/_e,b[1]=.25*_e,b[2]=(X+de)/_e):(_e=2*Math.sqrt(1+xe-P-H),b[3]=(V-q)/_e,b[0]=(ne+Z)/_e,b[1]=(X+de)/_e,b[2]=.25*_e),b},he.fromRotationTranslationScale=function(b,T,A,S){var C=T[0],k=T[1],P=T[2],V=T[3],Z=C+C,q=k+k,H=P+P,X=C*Z,ne=C*q,de=C*H,xe=k*q,Me=k*H,_e=P*H,ke=V*Z,Ie=V*q,Pe=V*H,Ze=S[0],tt=S[1],nt=S[2];return b[0]=(1-(xe+_e))*Ze,b[1]=(ne+Pe)*Ze,b[2]=(de-Ie)*Ze,b[3]=0,b[4]=(ne-Pe)*tt,b[5]=(1-(X+_e))*tt,b[6]=(Me+ke)*tt,b[7]=0,b[8]=(de+Ie)*nt,b[9]=(Me-ke)*nt,b[10]=(1-(X+xe))*nt,b[11]=0,b[12]=A[0],b[13]=A[1],b[14]=A[2],b[15]=1,b},he.fromRotationTranslationScaleOrigin=function(b,T,A,S,C){var k=T[0],P=T[1],V=T[2],Z=T[3],q=k+k,H=P+P,X=V+V,ne=k*q,de=k*H,xe=k*X,Me=P*H,_e=P*X,ke=V*X,Ie=Z*q,Pe=Z*H,Ze=Z*X,tt=S[0],nt=S[1],st=S[2],_t=C[0],at=C[1],Ct=C[2],jt=(1-(Me+ke))*tt,Mt=(de+Ze)*tt,sn=(xe-Pe)*tt,Kt=(de-Ze)*nt,$t=(1-(ne+ke))*nt,Pt=(_e+Ie)*nt,Tn=(xe+Pe)*st,nn=(_e-Ie)*st,hn=(1-(ne+Me))*st;return b[0]=jt,b[1]=Mt,b[2]=sn,b[3]=0,b[4]=Kt,b[5]=$t,b[6]=Pt,b[7]=0,b[8]=Tn,b[9]=nn,b[10]=hn,b[11]=0,b[12]=A[0]+_t-(jt*_t+Kt*at+Tn*Ct),b[13]=A[1]+at-(Mt*_t+$t*at+nn*Ct),b[14]=A[2]+Ct-(sn*_t+Pt*at+hn*Ct),b[15]=1,b},he.fromQuat=function(b,T){var A=T[0],S=T[1],C=T[2],k=T[3],P=A+A,V=S+S,Z=C+C,q=A*P,H=S*P,X=S*V,ne=C*P,de=C*V,xe=C*Z,Me=k*P,_e=k*V,ke=k*Z;return b[0]=1-X-xe,b[1]=H+ke,b[2]=ne-_e,b[3]=0,b[4]=H-ke,b[5]=1-q-xe,b[6]=de+Me,b[7]=0,b[8]=ne+_e,b[9]=de-Me,b[10]=1-q-X,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b},he.frustum=function(b,T,A,S,C,k,P){var V=1/(A-T),Z=1/(C-S),q=1/(k-P);return b[0]=2*k*V,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=2*k*Z,b[6]=0,b[7]=0,b[8]=(A+T)*V,b[9]=(C+S)*Z,b[10]=(P+k)*q,b[11]=-1,b[12]=0,b[13]=0,b[14]=P*k*2*q,b[15]=0,b},he.perspectiveNO=w,he.perspectiveZO=function(b,T,A,S,C){var k,P=1/Math.tan(T/2);return b[0]=P/A,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=P,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[11]=-1,b[12]=0,b[13]=0,b[15]=0,C!=null&&C!==1/0?(b[10]=C*(k=1/(S-C)),b[14]=C*S*k):(b[10]=-1,b[14]=-S),b},he.perspectiveFromFieldOfView=function(b,T,A,S){var C=Math.tan(T.upDegrees*Math.PI/180),k=Math.tan(T.downDegrees*Math.PI/180),P=Math.tan(T.leftDegrees*Math.PI/180),V=Math.tan(T.rightDegrees*Math.PI/180),Z=2/(P+V),q=2/(C+k);return b[0]=Z,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=q,b[6]=0,b[7]=0,b[8]=-(P-V)*Z*.5,b[9]=(C-k)*q*.5,b[10]=S/(A-S),b[11]=-1,b[12]=0,b[13]=0,b[14]=S*A/(A-S),b[15]=0,b},he.orthoNO=D,he.orthoZO=function(b,T,A,S,C,k,P){var V=1/(T-A),Z=1/(S-C),q=1/(k-P);return b[0]=-2*V,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=-2*Z,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=q,b[11]=0,b[12]=(T+A)*V,b[13]=(C+S)*Z,b[14]=k*q,b[15]=1,b},he.lookAt=function(b,T,A,S){var C,k,P,V,Z,q,H,X,ne,de,xe=T[0],Me=T[1],_e=T[2],ke=S[0],Ie=S[1],Pe=S[2],Ze=A[0],tt=A[1],nt=A[2];return Math.abs(xe-Ze)<i.EPSILON&&Math.abs(Me-tt)<i.EPSILON&&Math.abs(_e-nt)<i.EPSILON?h(b):(H=xe-Ze,X=Me-tt,ne=_e-nt,C=Ie*(ne*=de=1/Math.hypot(H,X,ne))-Pe*(X*=de),k=Pe*(H*=de)-ke*ne,P=ke*X-Ie*H,(de=Math.hypot(C,k,P))?(C*=de=1/de,k*=de,P*=de):(C=0,k=0,P=0),V=X*P-ne*k,Z=ne*C-H*P,q=H*k-X*C,(de=Math.hypot(V,Z,q))?(V*=de=1/de,Z*=de,q*=de):(V=0,Z=0,q=0),b[0]=C,b[1]=V,b[2]=H,b[3]=0,b[4]=k,b[5]=Z,b[6]=X,b[7]=0,b[8]=P,b[9]=q,b[10]=ne,b[11]=0,b[12]=-(C*xe+k*Me+P*_e),b[13]=-(V*xe+Z*Me+q*_e),b[14]=-(H*xe+X*Me+ne*_e),b[15]=1,b)},he.targetTo=function(b,T,A,S){var C=T[0],k=T[1],P=T[2],V=S[0],Z=S[1],q=S[2],H=C-A[0],X=k-A[1],ne=P-A[2],de=H*H+X*X+ne*ne;de>0&&(H*=de=1/Math.sqrt(de),X*=de,ne*=de);var xe=Z*ne-q*X,Me=q*H-V*ne,_e=V*X-Z*H;return(de=xe*xe+Me*Me+_e*_e)>0&&(xe*=de=1/Math.sqrt(de),Me*=de,_e*=de),b[0]=xe,b[1]=Me,b[2]=_e,b[3]=0,b[4]=X*_e-ne*Me,b[5]=ne*xe-H*_e,b[6]=H*Me-X*xe,b[7]=0,b[8]=H,b[9]=X,b[10]=ne,b[11]=0,b[12]=C,b[13]=k,b[14]=P,b[15]=1,b},he.str=function(b){return"mat4("+b[0]+", "+b[1]+", "+b[2]+", "+b[3]+", "+b[4]+", "+b[5]+", "+b[6]+", "+b[7]+", "+b[8]+", "+b[9]+", "+b[10]+", "+b[11]+", "+b[12]+", "+b[13]+", "+b[14]+", "+b[15]+")"},he.frob=function(b){return Math.hypot(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15])},he.add=function(b,T,A){return b[0]=T[0]+A[0],b[1]=T[1]+A[1],b[2]=T[2]+A[2],b[3]=T[3]+A[3],b[4]=T[4]+A[4],b[5]=T[5]+A[5],b[6]=T[6]+A[6],b[7]=T[7]+A[7],b[8]=T[8]+A[8],b[9]=T[9]+A[9],b[10]=T[10]+A[10],b[11]=T[11]+A[11],b[12]=T[12]+A[12],b[13]=T[13]+A[13],b[14]=T[14]+A[14],b[15]=T[15]+A[15],b},he.subtract=N,he.multiplyScalar=function(b,T,A){return b[0]=T[0]*A,b[1]=T[1]*A,b[2]=T[2]*A,b[3]=T[3]*A,b[4]=T[4]*A,b[5]=T[5]*A,b[6]=T[6]*A,b[7]=T[7]*A,b[8]=T[8]*A,b[9]=T[9]*A,b[10]=T[10]*A,b[11]=T[11]*A,b[12]=T[12]*A,b[13]=T[13]*A,b[14]=T[14]*A,b[15]=T[15]*A,b},he.multiplyScalarAndAdd=function(b,T,A,S){return b[0]=T[0]+A[0]*S,b[1]=T[1]+A[1]*S,b[2]=T[2]+A[2]*S,b[3]=T[3]+A[3]*S,b[4]=T[4]+A[4]*S,b[5]=T[5]+A[5]*S,b[6]=T[6]+A[6]*S,b[7]=T[7]+A[7]*S,b[8]=T[8]+A[8]*S,b[9]=T[9]+A[9]*S,b[10]=T[10]+A[10]*S,b[11]=T[11]+A[11]*S,b[12]=T[12]+A[12]*S,b[13]=T[13]+A[13]*S,b[14]=T[14]+A[14]*S,b[15]=T[15]+A[15]*S,b},he.exactEquals=function(b,T){return b[0]===T[0]&&b[1]===T[1]&&b[2]===T[2]&&b[3]===T[3]&&b[4]===T[4]&&b[5]===T[5]&&b[6]===T[6]&&b[7]===T[7]&&b[8]===T[8]&&b[9]===T[9]&&b[10]===T[10]&&b[11]===T[11]&&b[12]===T[12]&&b[13]===T[13]&&b[14]===T[14]&&b[15]===T[15]},he.equals=function(b,T){var A=b[0],S=b[1],C=b[2],k=b[3],P=b[4],V=b[5],Z=b[6],q=b[7],H=b[8],X=b[9],ne=b[10],de=b[11],xe=b[12],Me=b[13],_e=b[14],ke=b[15],Ie=T[0],Pe=T[1],Ze=T[2],tt=T[3],nt=T[4],st=T[5],_t=T[6],at=T[7],Ct=T[8],jt=T[9],Mt=T[10],sn=T[11],Kt=T[12],$t=T[13],Pt=T[14],Tn=T[15];return Math.abs(A-Ie)<=i.EPSILON*Math.max(1,Math.abs(A),Math.abs(Ie))&&Math.abs(S-Pe)<=i.EPSILON*Math.max(1,Math.abs(S),Math.abs(Pe))&&Math.abs(C-Ze)<=i.EPSILON*Math.max(1,Math.abs(C),Math.abs(Ze))&&Math.abs(k-tt)<=i.EPSILON*Math.max(1,Math.abs(k),Math.abs(tt))&&Math.abs(P-nt)<=i.EPSILON*Math.max(1,Math.abs(P),Math.abs(nt))&&Math.abs(V-st)<=i.EPSILON*Math.max(1,Math.abs(V),Math.abs(st))&&Math.abs(Z-_t)<=i.EPSILON*Math.max(1,Math.abs(Z),Math.abs(_t))&&Math.abs(q-at)<=i.EPSILON*Math.max(1,Math.abs(q),Math.abs(at))&&Math.abs(H-Ct)<=i.EPSILON*Math.max(1,Math.abs(H),Math.abs(Ct))&&Math.abs(X-jt)<=i.EPSILON*Math.max(1,Math.abs(X),Math.abs(jt))&&Math.abs(ne-Mt)<=i.EPSILON*Math.max(1,Math.abs(ne),Math.abs(Mt))&&Math.abs(de-sn)<=i.EPSILON*Math.max(1,Math.abs(de),Math.abs(sn))&&Math.abs(xe-Kt)<=i.EPSILON*Math.max(1,Math.abs(xe),Math.abs(Kt))&&Math.abs(Me-$t)<=i.EPSILON*Math.max(1,Math.abs(Me),Math.abs($t))&&Math.abs(_e-Pt)<=i.EPSILON*Math.max(1,Math.abs(_e),Math.abs(Pt))&&Math.abs(ke-Tn)<=i.EPSILON*Math.max(1,Math.abs(ke),Math.abs(Tn))},he.sub=he.mul=he.ortho=he.perspective=void 0;var i=function(b,T){if(b&&b.__esModule)return b;if(b===null||u(b)!=="object"&&typeof b!="function")return{default:b};var A=a(void 0);if(A&&A.has(b))return A.get(b);var S={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in b)if(k!=="default"&&Object.prototype.hasOwnProperty.call(b,k)){var P=C?Object.getOwnPropertyDescriptor(b,k):null;P&&(P.get||P.set)?Object.defineProperty(S,k,P):S[k]=b[k]}return S.default=b,A&&A.set(b,S),S}(j());function a(b){if(typeof WeakMap!="function")return null;var T=new WeakMap,A=new WeakMap;return(a=function(S){return S?A:T})(b)}function h(b){return b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b}function y(b,T,A){var S=T[0],C=T[1],k=T[2],P=T[3],V=T[4],Z=T[5],q=T[6],H=T[7],X=T[8],ne=T[9],de=T[10],xe=T[11],Me=T[12],_e=T[13],ke=T[14],Ie=T[15],Pe=A[0],Ze=A[1],tt=A[2],nt=A[3];return b[0]=Pe*S+Ze*V+tt*X+nt*Me,b[1]=Pe*C+Ze*Z+tt*ne+nt*_e,b[2]=Pe*k+Ze*q+tt*de+nt*ke,b[3]=Pe*P+Ze*H+tt*xe+nt*Ie,b[4]=(Pe=A[4])*S+(Ze=A[5])*V+(tt=A[6])*X+(nt=A[7])*Me,b[5]=Pe*C+Ze*Z+tt*ne+nt*_e,b[6]=Pe*k+Ze*q+tt*de+nt*ke,b[7]=Pe*P+Ze*H+tt*xe+nt*Ie,b[8]=(Pe=A[8])*S+(Ze=A[9])*V+(tt=A[10])*X+(nt=A[11])*Me,b[9]=Pe*C+Ze*Z+tt*ne+nt*_e,b[10]=Pe*k+Ze*q+tt*de+nt*ke,b[11]=Pe*P+Ze*H+tt*xe+nt*Ie,b[12]=(Pe=A[12])*S+(Ze=A[13])*V+(tt=A[14])*X+(nt=A[15])*Me,b[13]=Pe*C+Ze*Z+tt*ne+nt*_e,b[14]=Pe*k+Ze*q+tt*de+nt*ke,b[15]=Pe*P+Ze*H+tt*xe+nt*Ie,b}function f(b,T,A){var S=T[0],C=T[1],k=T[2],P=T[3],V=S+S,Z=C+C,q=k+k,H=S*V,X=S*Z,ne=S*q,de=C*Z,xe=C*q,Me=k*q,_e=P*V,ke=P*Z,Ie=P*q;return b[0]=1-(de+Me),b[1]=X+Ie,b[2]=ne-ke,b[3]=0,b[4]=X-Ie,b[5]=1-(H+Me),b[6]=xe+_e,b[7]=0,b[8]=ne+ke,b[9]=xe-_e,b[10]=1-(H+de),b[11]=0,b[12]=A[0],b[13]=A[1],b[14]=A[2],b[15]=1,b}function _(b,T){var A=T[4],S=T[5],C=T[6],k=T[8],P=T[9],V=T[10];return b[0]=Math.hypot(T[0],T[1],T[2]),b[1]=Math.hypot(A,S,C),b[2]=Math.hypot(k,P,V),b}function w(b,T,A,S,C){var k,P=1/Math.tan(T/2);return b[0]=P/A,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=P,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[11]=-1,b[12]=0,b[13]=0,b[15]=0,C!=null&&C!==1/0?(b[10]=(C+S)*(k=1/(S-C)),b[14]=2*C*S*k):(b[10]=-1,b[14]=-2*S),b}function D(b,T,A,S,C,k,P){var V=1/(T-A),Z=1/(S-C),q=1/(k-P);return b[0]=-2*V,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=-2*Z,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=2*q,b[11]=0,b[12]=(T+A)*V,b[13]=(C+S)*Z,b[14]=(P+k)*q,b[15]=1,b}function N(b,T,A){return b[0]=T[0]-A[0],b[1]=T[1]-A[1],b[2]=T[2]-A[2],b[3]=T[3]-A[3],b[4]=T[4]-A[4],b[5]=T[5]-A[5],b[6]=T[6]-A[6],b[7]=T[7]-A[7],b[8]=T[8]-A[8],b[9]=T[9]-A[9],b[10]=T[10]-A[10],b[11]=T[11]-A[11],b[12]=T[12]-A[12],b[13]=T[13]-A[13],b[14]=T[14]-A[14],b[15]=T[15]-A[15],b}return he.perspective=w,he.ortho=D,he.mul=y,he.sub=N,he}var qe,Te={},ze={};function ht(){if(qe)return ze;function u(C){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},u(C)}qe=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.create=h,ze.clone=function(C){var k=new i.ARRAY_TYPE(3);return k[0]=C[0],k[1]=C[1],k[2]=C[2],k},ze.length=y,ze.fromValues=function(C,k,P){var V=new i.ARRAY_TYPE(3);return V[0]=C,V[1]=k,V[2]=P,V},ze.copy=function(C,k){return C[0]=k[0],C[1]=k[1],C[2]=k[2],C},ze.set=function(C,k,P,V){return C[0]=k,C[1]=P,C[2]=V,C},ze.add=function(C,k,P){return C[0]=k[0]+P[0],C[1]=k[1]+P[1],C[2]=k[2]+P[2],C},ze.subtract=f,ze.multiply=_,ze.divide=w,ze.ceil=function(C,k){return C[0]=Math.ceil(k[0]),C[1]=Math.ceil(k[1]),C[2]=Math.ceil(k[2]),C},ze.floor=function(C,k){return C[0]=Math.floor(k[0]),C[1]=Math.floor(k[1]),C[2]=Math.floor(k[2]),C},ze.min=function(C,k,P){return C[0]=Math.min(k[0],P[0]),C[1]=Math.min(k[1],P[1]),C[2]=Math.min(k[2],P[2]),C},ze.max=function(C,k,P){return C[0]=Math.max(k[0],P[0]),C[1]=Math.max(k[1],P[1]),C[2]=Math.max(k[2],P[2]),C},ze.round=function(C,k){return C[0]=Math.round(k[0]),C[1]=Math.round(k[1]),C[2]=Math.round(k[2]),C},ze.scale=function(C,k,P){return C[0]=k[0]*P,C[1]=k[1]*P,C[2]=k[2]*P,C},ze.scaleAndAdd=function(C,k,P,V){return C[0]=k[0]+P[0]*V,C[1]=k[1]+P[1]*V,C[2]=k[2]+P[2]*V,C},ze.distance=D,ze.squaredDistance=N,ze.squaredLength=b,ze.negate=function(C,k){return C[0]=-k[0],C[1]=-k[1],C[2]=-k[2],C},ze.inverse=function(C,k){return C[0]=1/k[0],C[1]=1/k[1],C[2]=1/k[2],C},ze.normalize=function(C,k){var P=k[0],V=k[1],Z=k[2],q=P*P+V*V+Z*Z;return q>0&&(q=1/Math.sqrt(q)),C[0]=k[0]*q,C[1]=k[1]*q,C[2]=k[2]*q,C},ze.dot=T,ze.cross=function(C,k,P){var V=k[0],Z=k[1],q=k[2],H=P[0],X=P[1],ne=P[2];return C[0]=Z*ne-q*X,C[1]=q*H-V*ne,C[2]=V*X-Z*H,C},ze.lerp=function(C,k,P,V){var Z=k[0],q=k[1],H=k[2];return C[0]=Z+V*(P[0]-Z),C[1]=q+V*(P[1]-q),C[2]=H+V*(P[2]-H),C},ze.hermite=function(C,k,P,V,Z,q){var H=q*q,X=H*(2*q-3)+1,ne=H*(q-2)+q,de=H*(q-1),xe=H*(3-2*q);return C[0]=k[0]*X+P[0]*ne+V[0]*de+Z[0]*xe,C[1]=k[1]*X+P[1]*ne+V[1]*de+Z[1]*xe,C[2]=k[2]*X+P[2]*ne+V[2]*de+Z[2]*xe,C},ze.bezier=function(C,k,P,V,Z,q){var H=1-q,X=H*H,ne=q*q,de=X*H,xe=3*q*X,Me=3*ne*H,_e=ne*q;return C[0]=k[0]*de+P[0]*xe+V[0]*Me+Z[0]*_e,C[1]=k[1]*de+P[1]*xe+V[1]*Me+Z[1]*_e,C[2]=k[2]*de+P[2]*xe+V[2]*Me+Z[2]*_e,C},ze.random=function(C,k){k=k||1;var P=2*i.RANDOM()*Math.PI,V=2*i.RANDOM()-1,Z=Math.sqrt(1-V*V)*k;return C[0]=Math.cos(P)*Z,C[1]=Math.sin(P)*Z,C[2]=V*k,C},ze.transformMat4=function(C,k,P){var V=k[0],Z=k[1],q=k[2],H=P[3]*V+P[7]*Z+P[11]*q+P[15];return C[0]=(P[0]*V+P[4]*Z+P[8]*q+P[12])/(H=H||1),C[1]=(P[1]*V+P[5]*Z+P[9]*q+P[13])/H,C[2]=(P[2]*V+P[6]*Z+P[10]*q+P[14])/H,C},ze.transformMat3=function(C,k,P){var V=k[0],Z=k[1],q=k[2];return C[0]=V*P[0]+Z*P[3]+q*P[6],C[1]=V*P[1]+Z*P[4]+q*P[7],C[2]=V*P[2]+Z*P[5]+q*P[8],C},ze.transformQuat=function(C,k,P){var V=P[0],Z=P[1],q=P[2],H=k[0],X=k[1],ne=k[2],de=Z*ne-q*X,xe=q*H-V*ne,Me=V*X-Z*H,_e=Z*Me-q*xe,ke=q*de-V*Me,Ie=V*xe-Z*de,Pe=2*P[3];return xe*=Pe,Me*=Pe,ke*=2,Ie*=2,C[0]=H+(de*=Pe)+(_e*=2),C[1]=X+xe+ke,C[2]=ne+Me+Ie,C},ze.rotateX=function(C,k,P,V){var Z=[],q=[];return Z[0]=k[0]-P[0],Z[1]=k[1]-P[1],Z[2]=k[2]-P[2],q[0]=Z[0],q[1]=Z[1]*Math.cos(V)-Z[2]*Math.sin(V),q[2]=Z[1]*Math.sin(V)+Z[2]*Math.cos(V),C[0]=q[0]+P[0],C[1]=q[1]+P[1],C[2]=q[2]+P[2],C},ze.rotateY=function(C,k,P,V){var Z=[],q=[];return Z[0]=k[0]-P[0],Z[1]=k[1]-P[1],Z[2]=k[2]-P[2],q[0]=Z[2]*Math.sin(V)+Z[0]*Math.cos(V),q[1]=Z[1],q[2]=Z[2]*Math.cos(V)-Z[0]*Math.sin(V),C[0]=q[0]+P[0],C[1]=q[1]+P[1],C[2]=q[2]+P[2],C},ze.rotateZ=function(C,k,P,V){var Z=[],q=[];return Z[0]=k[0]-P[0],Z[1]=k[1]-P[1],Z[2]=k[2]-P[2],q[0]=Z[0]*Math.cos(V)-Z[1]*Math.sin(V),q[1]=Z[0]*Math.sin(V)+Z[1]*Math.cos(V),q[2]=Z[2],C[0]=q[0]+P[0],C[1]=q[1]+P[1],C[2]=q[2]+P[2],C},ze.angle=function(C,k){var P=C[0],V=C[1],Z=C[2],q=k[0],H=k[1],X=k[2],ne=Math.sqrt(P*P+V*V+Z*Z)*Math.sqrt(q*q+H*H+X*X),de=ne&&T(C,k)/ne;return Math.acos(Math.min(Math.max(de,-1),1))},ze.zero=function(C){return C[0]=0,C[1]=0,C[2]=0,C},ze.str=function(C){return"vec3("+C[0]+", "+C[1]+", "+C[2]+")"},ze.exactEquals=function(C,k){return C[0]===k[0]&&C[1]===k[1]&&C[2]===k[2]},ze.equals=function(C,k){var P=C[0],V=C[1],Z=C[2],q=k[0],H=k[1],X=k[2];return Math.abs(P-q)<=i.EPSILON*Math.max(1,Math.abs(P),Math.abs(q))&&Math.abs(V-H)<=i.EPSILON*Math.max(1,Math.abs(V),Math.abs(H))&&Math.abs(Z-X)<=i.EPSILON*Math.max(1,Math.abs(Z),Math.abs(X))},ze.forEach=ze.sqrLen=ze.len=ze.sqrDist=ze.dist=ze.div=ze.mul=ze.sub=void 0;var i=function(C,k){if(C&&C.__esModule)return C;if(C===null||u(C)!=="object"&&typeof C!="function")return{default:C};var P=a(void 0);if(P&&P.has(C))return P.get(C);var V={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if(q!=="default"&&Object.prototype.hasOwnProperty.call(C,q)){var H=Z?Object.getOwnPropertyDescriptor(C,q):null;H&&(H.get||H.set)?Object.defineProperty(V,q,H):V[q]=C[q]}return V.default=C,P&&P.set(C,V),V}(j());function a(C){if(typeof WeakMap!="function")return null;var k=new WeakMap,P=new WeakMap;return(a=function(V){return V?P:k})(C)}function h(){var C=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(C[0]=0,C[1]=0,C[2]=0),C}function y(C){return Math.hypot(C[0],C[1],C[2])}function f(C,k,P){return C[0]=k[0]-P[0],C[1]=k[1]-P[1],C[2]=k[2]-P[2],C}function _(C,k,P){return C[0]=k[0]*P[0],C[1]=k[1]*P[1],C[2]=k[2]*P[2],C}function w(C,k,P){return C[0]=k[0]/P[0],C[1]=k[1]/P[1],C[2]=k[2]/P[2],C}function D(C,k){return Math.hypot(k[0]-C[0],k[1]-C[1],k[2]-C[2])}function N(C,k){var P=k[0]-C[0],V=k[1]-C[1],Z=k[2]-C[2];return P*P+V*V+Z*Z}function b(C){var k=C[0],P=C[1],V=C[2];return k*k+P*P+V*V}function T(C,k){return C[0]*k[0]+C[1]*k[1]+C[2]*k[2]}ze.sub=f,ze.mul=_,ze.div=w,ze.dist=D,ze.sqrDist=N,ze.len=y,ze.sqrLen=b;var A,S=(A=h(),function(C,k,P,V,Z,q){var H,X;for(k||(k=3),P||(P=0),X=V?Math.min(V*k+P,C.length):C.length,H=P;H<X;H+=k)A[0]=C[H],A[1]=C[H+1],A[2]=C[H+2],Z(A,A,q),C[H]=A[0],C[H+1]=A[1],C[H+2]=A[2];return C});return ze.forEach=S,ze}var mt,vt,Qe={};function Fe(){if(mt)return Qe;function u(S){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},u(S)}mt=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.create=h,Qe.clone=function(S){var C=new i.ARRAY_TYPE(4);return C[0]=S[0],C[1]=S[1],C[2]=S[2],C[3]=S[3],C},Qe.fromValues=function(S,C,k,P){var V=new i.ARRAY_TYPE(4);return V[0]=S,V[1]=C,V[2]=k,V[3]=P,V},Qe.copy=function(S,C){return S[0]=C[0],S[1]=C[1],S[2]=C[2],S[3]=C[3],S},Qe.set=function(S,C,k,P,V){return S[0]=C,S[1]=k,S[2]=P,S[3]=V,S},Qe.add=function(S,C,k){return S[0]=C[0]+k[0],S[1]=C[1]+k[1],S[2]=C[2]+k[2],S[3]=C[3]+k[3],S},Qe.subtract=y,Qe.multiply=f,Qe.divide=_,Qe.ceil=function(S,C){return S[0]=Math.ceil(C[0]),S[1]=Math.ceil(C[1]),S[2]=Math.ceil(C[2]),S[3]=Math.ceil(C[3]),S},Qe.floor=function(S,C){return S[0]=Math.floor(C[0]),S[1]=Math.floor(C[1]),S[2]=Math.floor(C[2]),S[3]=Math.floor(C[3]),S},Qe.min=function(S,C,k){return S[0]=Math.min(C[0],k[0]),S[1]=Math.min(C[1],k[1]),S[2]=Math.min(C[2],k[2]),S[3]=Math.min(C[3],k[3]),S},Qe.max=function(S,C,k){return S[0]=Math.max(C[0],k[0]),S[1]=Math.max(C[1],k[1]),S[2]=Math.max(C[2],k[2]),S[3]=Math.max(C[3],k[3]),S},Qe.round=function(S,C){return S[0]=Math.round(C[0]),S[1]=Math.round(C[1]),S[2]=Math.round(C[2]),S[3]=Math.round(C[3]),S},Qe.scale=function(S,C,k){return S[0]=C[0]*k,S[1]=C[1]*k,S[2]=C[2]*k,S[3]=C[3]*k,S},Qe.scaleAndAdd=function(S,C,k,P){return S[0]=C[0]+k[0]*P,S[1]=C[1]+k[1]*P,S[2]=C[2]+k[2]*P,S[3]=C[3]+k[3]*P,S},Qe.distance=w,Qe.squaredDistance=D,Qe.length=N,Qe.squaredLength=b,Qe.negate=function(S,C){return S[0]=-C[0],S[1]=-C[1],S[2]=-C[2],S[3]=-C[3],S},Qe.inverse=function(S,C){return S[0]=1/C[0],S[1]=1/C[1],S[2]=1/C[2],S[3]=1/C[3],S},Qe.normalize=function(S,C){var k=C[0],P=C[1],V=C[2],Z=C[3],q=k*k+P*P+V*V+Z*Z;return q>0&&(q=1/Math.sqrt(q)),S[0]=k*q,S[1]=P*q,S[2]=V*q,S[3]=Z*q,S},Qe.dot=function(S,C){return S[0]*C[0]+S[1]*C[1]+S[2]*C[2]+S[3]*C[3]},Qe.cross=function(S,C,k,P){var V=k[0]*P[1]-k[1]*P[0],Z=k[0]*P[2]-k[2]*P[0],q=k[0]*P[3]-k[3]*P[0],H=k[1]*P[2]-k[2]*P[1],X=k[1]*P[3]-k[3]*P[1],ne=k[2]*P[3]-k[3]*P[2],de=C[0],xe=C[1],Me=C[2],_e=C[3];return S[0]=xe*ne-Me*X+_e*H,S[1]=-de*ne+Me*q-_e*Z,S[2]=de*X-xe*q+_e*V,S[3]=-de*H+xe*Z-Me*V,S},Qe.lerp=function(S,C,k,P){var V=C[0],Z=C[1],q=C[2],H=C[3];return S[0]=V+P*(k[0]-V),S[1]=Z+P*(k[1]-Z),S[2]=q+P*(k[2]-q),S[3]=H+P*(k[3]-H),S},Qe.random=function(S,C){var k,P,V,Z,q,H;C=C||1;do q=(k=2*i.RANDOM()-1)*k+(P=2*i.RANDOM()-1)*P;while(q>=1);do H=(V=2*i.RANDOM()-1)*V+(Z=2*i.RANDOM()-1)*Z;while(H>=1);var X=Math.sqrt((1-q)/H);return S[0]=C*k,S[1]=C*P,S[2]=C*V*X,S[3]=C*Z*X,S},Qe.transformMat4=function(S,C,k){var P=C[0],V=C[1],Z=C[2],q=C[3];return S[0]=k[0]*P+k[4]*V+k[8]*Z+k[12]*q,S[1]=k[1]*P+k[5]*V+k[9]*Z+k[13]*q,S[2]=k[2]*P+k[6]*V+k[10]*Z+k[14]*q,S[3]=k[3]*P+k[7]*V+k[11]*Z+k[15]*q,S},Qe.transformQuat=function(S,C,k){var P=C[0],V=C[1],Z=C[2],q=k[0],H=k[1],X=k[2],ne=k[3],de=ne*P+H*Z-X*V,xe=ne*V+X*P-q*Z,Me=ne*Z+q*V-H*P,_e=-q*P-H*V-X*Z;return S[0]=de*ne+_e*-q+xe*-X-Me*-H,S[1]=xe*ne+_e*-H+Me*-q-de*-X,S[2]=Me*ne+_e*-X+de*-H-xe*-q,S[3]=C[3],S},Qe.zero=function(S){return S[0]=0,S[1]=0,S[2]=0,S[3]=0,S},Qe.str=function(S){return"vec4("+S[0]+", "+S[1]+", "+S[2]+", "+S[3]+")"},Qe.exactEquals=function(S,C){return S[0]===C[0]&&S[1]===C[1]&&S[2]===C[2]&&S[3]===C[3]},Qe.equals=function(S,C){var k=S[0],P=S[1],V=S[2],Z=S[3],q=C[0],H=C[1],X=C[2],ne=C[3];return Math.abs(k-q)<=i.EPSILON*Math.max(1,Math.abs(k),Math.abs(q))&&Math.abs(P-H)<=i.EPSILON*Math.max(1,Math.abs(P),Math.abs(H))&&Math.abs(V-X)<=i.EPSILON*Math.max(1,Math.abs(V),Math.abs(X))&&Math.abs(Z-ne)<=i.EPSILON*Math.max(1,Math.abs(Z),Math.abs(ne))},Qe.forEach=Qe.sqrLen=Qe.len=Qe.sqrDist=Qe.dist=Qe.div=Qe.mul=Qe.sub=void 0;var i=function(S,C){if(S&&S.__esModule)return S;if(S===null||u(S)!=="object"&&typeof S!="function")return{default:S};var k=a(void 0);if(k&&k.has(S))return k.get(S);var P={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Z in S)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(S,Z)){var q=V?Object.getOwnPropertyDescriptor(S,Z):null;q&&(q.get||q.set)?Object.defineProperty(P,Z,q):P[Z]=S[Z]}return P.default=S,k&&k.set(S,P),P}(j());function a(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,k=new WeakMap;return(a=function(P){return P?k:C})(S)}function h(){var S=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(S[0]=0,S[1]=0,S[2]=0,S[3]=0),S}function y(S,C,k){return S[0]=C[0]-k[0],S[1]=C[1]-k[1],S[2]=C[2]-k[2],S[3]=C[3]-k[3],S}function f(S,C,k){return S[0]=C[0]*k[0],S[1]=C[1]*k[1],S[2]=C[2]*k[2],S[3]=C[3]*k[3],S}function _(S,C,k){return S[0]=C[0]/k[0],S[1]=C[1]/k[1],S[2]=C[2]/k[2],S[3]=C[3]/k[3],S}function w(S,C){return Math.hypot(C[0]-S[0],C[1]-S[1],C[2]-S[2],C[3]-S[3])}function D(S,C){var k=C[0]-S[0],P=C[1]-S[1],V=C[2]-S[2],Z=C[3]-S[3];return k*k+P*P+V*V+Z*Z}function N(S){return Math.hypot(S[0],S[1],S[2],S[3])}function b(S){var C=S[0],k=S[1],P=S[2],V=S[3];return C*C+k*k+P*P+V*V}Qe.sub=y,Qe.mul=f,Qe.div=_,Qe.dist=w,Qe.sqrDist=D,Qe.len=N,Qe.sqrLen=b;var T,A=(T=h(),function(S,C,k,P,V,Z){var q,H;for(C||(C=4),k||(k=0),H=P?Math.min(P*C+k,S.length):S.length,q=k;q<H;q+=C)T[0]=S[q],T[1]=S[q+1],T[2]=S[q+2],T[3]=S[q+3],V(T,T,Z),S[q]=T[0],S[q+1]=T[1],S[q+2]=T[2],S[q+3]=T[3];return S});return Qe.forEach=A,Qe}function ot(){if(vt)return Te;function u(Ie){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pe){return typeof Pe}:function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},u(Ie)}vt=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.create=w,Te.identity=function(Ie){return Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,Ie},Te.setAxisAngle=D,Te.getAxisAngle=function(Ie,Pe){var Ze=2*Math.acos(Pe[3]),tt=Math.sin(Ze/2);return tt>i.EPSILON?(Ie[0]=Pe[0]/tt,Ie[1]=Pe[1]/tt,Ie[2]=Pe[2]/tt):(Ie[0]=1,Ie[1]=0,Ie[2]=0),Ze},Te.getAngle=function(Ie,Pe){var Ze=k(Ie,Pe);return Math.acos(2*Ze*Ze-1)},Te.multiply=N,Te.rotateX=function(Ie,Pe,Ze){Ze*=.5;var tt=Pe[0],nt=Pe[1],st=Pe[2],_t=Pe[3],at=Math.sin(Ze),Ct=Math.cos(Ze);return Ie[0]=tt*Ct+_t*at,Ie[1]=nt*Ct+st*at,Ie[2]=st*Ct-nt*at,Ie[3]=_t*Ct-tt*at,Ie},Te.rotateY=function(Ie,Pe,Ze){Ze*=.5;var tt=Pe[0],nt=Pe[1],st=Pe[2],_t=Pe[3],at=Math.sin(Ze),Ct=Math.cos(Ze);return Ie[0]=tt*Ct-st*at,Ie[1]=nt*Ct+_t*at,Ie[2]=st*Ct+tt*at,Ie[3]=_t*Ct-nt*at,Ie},Te.rotateZ=function(Ie,Pe,Ze){Ze*=.5;var tt=Pe[0],nt=Pe[1],st=Pe[2],_t=Pe[3],at=Math.sin(Ze),Ct=Math.cos(Ze);return Ie[0]=tt*Ct+nt*at,Ie[1]=nt*Ct-tt*at,Ie[2]=st*Ct+_t*at,Ie[3]=_t*Ct-st*at,Ie},Te.calculateW=function(Ie,Pe){var Ze=Pe[0],tt=Pe[1],nt=Pe[2];return Ie[0]=Ze,Ie[1]=tt,Ie[2]=nt,Ie[3]=Math.sqrt(Math.abs(1-Ze*Ze-tt*tt-nt*nt)),Ie},Te.exp=b,Te.ln=T,Te.pow=function(Ie,Pe,Ze){return T(Ie,Pe),C(Ie,Ie,Ze),b(Ie,Ie),Ie},Te.slerp=A,Te.random=function(Ie){var Pe=i.RANDOM(),Ze=i.RANDOM(),tt=i.RANDOM(),nt=Math.sqrt(1-Pe),st=Math.sqrt(Pe);return Ie[0]=nt*Math.sin(2*Math.PI*Ze),Ie[1]=nt*Math.cos(2*Math.PI*Ze),Ie[2]=st*Math.sin(2*Math.PI*tt),Ie[3]=st*Math.cos(2*Math.PI*tt),Ie},Te.invert=function(Ie,Pe){var Ze=Pe[0],tt=Pe[1],nt=Pe[2],st=Pe[3],_t=Ze*Ze+tt*tt+nt*nt+st*st,at=_t?1/_t:0;return Ie[0]=-Ze*at,Ie[1]=-tt*at,Ie[2]=-nt*at,Ie[3]=st*at,Ie},Te.conjugate=function(Ie,Pe){return Ie[0]=-Pe[0],Ie[1]=-Pe[1],Ie[2]=-Pe[2],Ie[3]=Pe[3],Ie},Te.fromMat3=S,Te.fromEuler=function(Ie,Pe,Ze,tt){var nt=.5*Math.PI/180;Pe*=nt,Ze*=nt,tt*=nt;var st=Math.sin(Pe),_t=Math.cos(Pe),at=Math.sin(Ze),Ct=Math.cos(Ze),jt=Math.sin(tt),Mt=Math.cos(tt);return Ie[0]=st*Ct*Mt-_t*at*jt,Ie[1]=_t*at*Mt+st*Ct*jt,Ie[2]=_t*Ct*jt-st*at*Mt,Ie[3]=_t*Ct*Mt+st*at*jt,Ie},Te.str=function(Ie){return"quat("+Ie[0]+", "+Ie[1]+", "+Ie[2]+", "+Ie[3]+")"},Te.setAxes=Te.sqlerp=Te.rotationTo=Te.equals=Te.exactEquals=Te.normalize=Te.sqrLen=Te.squaredLength=Te.len=Te.length=Te.lerp=Te.dot=Te.scale=Te.mul=Te.add=Te.set=Te.copy=Te.fromValues=Te.clone=void 0;var i=_(j()),a=_(pe()),h=_(ht()),y=_(Fe());function f(Ie){if(typeof WeakMap!="function")return null;var Pe=new WeakMap,Ze=new WeakMap;return(f=function(tt){return tt?Ze:Pe})(Ie)}function _(Ie,Pe){if(Ie&&Ie.__esModule)return Ie;if(Ie===null||u(Ie)!=="object"&&typeof Ie!="function")return{default:Ie};var Ze=f(Pe);if(Ze&&Ze.has(Ie))return Ze.get(Ie);var tt={},nt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var st in Ie)if(st!=="default"&&Object.prototype.hasOwnProperty.call(Ie,st)){var _t=nt?Object.getOwnPropertyDescriptor(Ie,st):null;_t&&(_t.get||_t.set)?Object.defineProperty(tt,st,_t):tt[st]=Ie[st]}return tt.default=Ie,Ze&&Ze.set(Ie,tt),tt}function w(){var Ie=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(Ie[0]=0,Ie[1]=0,Ie[2]=0),Ie[3]=1,Ie}function D(Ie,Pe,Ze){Ze*=.5;var tt=Math.sin(Ze);return Ie[0]=tt*Pe[0],Ie[1]=tt*Pe[1],Ie[2]=tt*Pe[2],Ie[3]=Math.cos(Ze),Ie}function N(Ie,Pe,Ze){var tt=Pe[0],nt=Pe[1],st=Pe[2],_t=Pe[3],at=Ze[0],Ct=Ze[1],jt=Ze[2],Mt=Ze[3];return Ie[0]=tt*Mt+_t*at+nt*jt-st*Ct,Ie[1]=nt*Mt+_t*Ct+st*at-tt*jt,Ie[2]=st*Mt+_t*jt+tt*Ct-nt*at,Ie[3]=_t*Mt-tt*at-nt*Ct-st*jt,Ie}function b(Ie,Pe){var Ze=Pe[0],tt=Pe[1],nt=Pe[2],st=Pe[3],_t=Math.sqrt(Ze*Ze+tt*tt+nt*nt),at=Math.exp(st),Ct=_t>0?at*Math.sin(_t)/_t:0;return Ie[0]=Ze*Ct,Ie[1]=tt*Ct,Ie[2]=nt*Ct,Ie[3]=at*Math.cos(_t),Ie}function T(Ie,Pe){var Ze=Pe[0],tt=Pe[1],nt=Pe[2],st=Pe[3],_t=Math.sqrt(Ze*Ze+tt*tt+nt*nt),at=_t>0?Math.atan2(_t,st)/_t:0;return Ie[0]=Ze*at,Ie[1]=tt*at,Ie[2]=nt*at,Ie[3]=.5*Math.log(Ze*Ze+tt*tt+nt*nt+st*st),Ie}function A(Ie,Pe,Ze,tt){var nt,st,_t,at,Ct,jt=Pe[0],Mt=Pe[1],sn=Pe[2],Kt=Pe[3],$t=Ze[0],Pt=Ze[1],Tn=Ze[2],nn=Ze[3];return(st=jt*$t+Mt*Pt+sn*Tn+Kt*nn)<0&&(st=-st,$t=-$t,Pt=-Pt,Tn=-Tn,nn=-nn),1-st>i.EPSILON?(nt=Math.acos(st),_t=Math.sin(nt),at=Math.sin((1-tt)*nt)/_t,Ct=Math.sin(tt*nt)/_t):(at=1-tt,Ct=tt),Ie[0]=at*jt+Ct*$t,Ie[1]=at*Mt+Ct*Pt,Ie[2]=at*sn+Ct*Tn,Ie[3]=at*Kt+Ct*nn,Ie}function S(Ie,Pe){var Ze,tt=Pe[0]+Pe[4]+Pe[8];if(tt>0)Ze=Math.sqrt(tt+1),Ie[3]=.5*Ze,Ie[0]=(Pe[5]-Pe[7])*(Ze=.5/Ze),Ie[1]=(Pe[6]-Pe[2])*Ze,Ie[2]=(Pe[1]-Pe[3])*Ze;else{var nt=0;Pe[4]>Pe[0]&&(nt=1),Pe[8]>Pe[3*nt+nt]&&(nt=2);var st=(nt+1)%3,_t=(nt+2)%3;Ze=Math.sqrt(Pe[3*nt+nt]-Pe[3*st+st]-Pe[3*_t+_t]+1),Ie[nt]=.5*Ze,Ie[3]=(Pe[3*st+_t]-Pe[3*_t+st])*(Ze=.5/Ze),Ie[st]=(Pe[3*st+nt]+Pe[3*nt+st])*Ze,Ie[_t]=(Pe[3*_t+nt]+Pe[3*nt+_t])*Ze}return Ie}Te.clone=y.clone,Te.fromValues=y.fromValues,Te.copy=y.copy,Te.set=y.set,Te.add=y.add,Te.mul=N;var C=y.scale;Te.scale=C;var k=y.dot;Te.dot=k,Te.lerp=y.lerp;var P=y.length;Te.length=P,Te.len=P;var V=y.squaredLength;Te.squaredLength=V,Te.sqrLen=V;var Z=y.normalize;Te.normalize=Z,Te.exactEquals=y.exactEquals,Te.equals=y.equals;var q,H,X,ne=(q=h.create(),H=h.fromValues(1,0,0),X=h.fromValues(0,1,0),function(Ie,Pe,Ze){var tt=h.dot(Pe,Ze);return tt<-.999999?(h.cross(q,H,Pe),h.len(q)<1e-6&&h.cross(q,X,Pe),h.normalize(q,q),D(Ie,q,Math.PI),Ie):tt>.999999?(Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,Ie):(h.cross(q,Pe,Ze),Ie[0]=q[0],Ie[1]=q[1],Ie[2]=q[2],Ie[3]=1+tt,Z(Ie,Ie))});Te.rotationTo=ne;var de,xe,Me=(de=w(),xe=w(),function(Ie,Pe,Ze,tt,nt,st){return A(de,Pe,nt,st),A(xe,Ze,tt,st),A(Ie,de,xe,2*st*(1-st)),Ie});Te.sqlerp=Me;var _e,ke=(_e=a.create(),function(Ie,Pe,Ze,tt){return _e[0]=Ze[0],_e[3]=Ze[1],_e[6]=Ze[2],_e[1]=tt[0],_e[4]=tt[1],_e[7]=tt[2],_e[2]=-Pe[0],_e[5]=-Pe[1],_e[8]=-Pe[2],Z(Ie,S(Ie,_e))});return Te.setAxes=ke,Te}var Je,He={};function Ae(){if(Je)return He;function u(A){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},u(A)}Je=1,Object.defineProperty(He,"__esModule",{value:!0}),He.create=function(){var A=new i.ARRAY_TYPE(8);return i.ARRAY_TYPE!=Float32Array&&(A[0]=0,A[1]=0,A[2]=0,A[4]=0,A[5]=0,A[6]=0,A[7]=0),A[3]=1,A},He.clone=function(A){var S=new i.ARRAY_TYPE(8);return S[0]=A[0],S[1]=A[1],S[2]=A[2],S[3]=A[3],S[4]=A[4],S[5]=A[5],S[6]=A[6],S[7]=A[7],S},He.fromValues=function(A,S,C,k,P,V,Z,q){var H=new i.ARRAY_TYPE(8);return H[0]=A,H[1]=S,H[2]=C,H[3]=k,H[4]=P,H[5]=V,H[6]=Z,H[7]=q,H},He.fromRotationTranslationValues=function(A,S,C,k,P,V,Z){var q=new i.ARRAY_TYPE(8);q[0]=A,q[1]=S,q[2]=C,q[3]=k;var H=.5*P,X=.5*V,ne=.5*Z;return q[4]=H*k+X*C-ne*S,q[5]=X*k+ne*A-H*C,q[6]=ne*k+H*S-X*A,q[7]=-H*A-X*S-ne*C,q},He.fromRotationTranslation=_,He.fromTranslation=function(A,S){return A[0]=0,A[1]=0,A[2]=0,A[3]=1,A[4]=.5*S[0],A[5]=.5*S[1],A[6]=.5*S[2],A[7]=0,A},He.fromRotation=function(A,S){return A[0]=S[0],A[1]=S[1],A[2]=S[2],A[3]=S[3],A[4]=0,A[5]=0,A[6]=0,A[7]=0,A},He.fromMat4=function(A,S){var C=a.create();h.getRotation(C,S);var k=new i.ARRAY_TYPE(3);return h.getTranslation(k,S),_(A,C,k),A},He.copy=w,He.identity=function(A){return A[0]=0,A[1]=0,A[2]=0,A[3]=1,A[4]=0,A[5]=0,A[6]=0,A[7]=0,A},He.set=function(A,S,C,k,P,V,Z,q,H){return A[0]=S,A[1]=C,A[2]=k,A[3]=P,A[4]=V,A[5]=Z,A[6]=q,A[7]=H,A},He.getDual=function(A,S){return A[0]=S[4],A[1]=S[5],A[2]=S[6],A[3]=S[7],A},He.setDual=function(A,S){return A[4]=S[0],A[5]=S[1],A[6]=S[2],A[7]=S[3],A},He.getTranslation=function(A,S){var C=S[4],k=S[5],P=S[6],V=S[7],Z=-S[0],q=-S[1],H=-S[2],X=S[3];return A[0]=2*(C*X+V*Z+k*H-P*q),A[1]=2*(k*X+V*q+P*Z-C*H),A[2]=2*(P*X+V*H+C*q-k*Z),A},He.translate=function(A,S,C){var k=S[0],P=S[1],V=S[2],Z=S[3],q=.5*C[0],H=.5*C[1],X=.5*C[2],ne=S[4],de=S[5],xe=S[6],Me=S[7];return A[0]=k,A[1]=P,A[2]=V,A[3]=Z,A[4]=Z*q+P*X-V*H+ne,A[5]=Z*H+V*q-k*X+de,A[6]=Z*X+k*H-P*q+xe,A[7]=-k*q-P*H-V*X+Me,A},He.rotateX=function(A,S,C){var k=-S[0],P=-S[1],V=-S[2],Z=S[3],q=S[4],H=S[5],X=S[6],ne=S[7],de=q*Z+ne*k+H*V-X*P,xe=H*Z+ne*P+X*k-q*V,Me=X*Z+ne*V+q*P-H*k,_e=ne*Z-q*k-H*P-X*V;return a.rotateX(A,S,C),A[4]=de*(Z=A[3])+_e*(k=A[0])+xe*(V=A[2])-Me*(P=A[1]),A[5]=xe*Z+_e*P+Me*k-de*V,A[6]=Me*Z+_e*V+de*P-xe*k,A[7]=_e*Z-de*k-xe*P-Me*V,A},He.rotateY=function(A,S,C){var k=-S[0],P=-S[1],V=-S[2],Z=S[3],q=S[4],H=S[5],X=S[6],ne=S[7],de=q*Z+ne*k+H*V-X*P,xe=H*Z+ne*P+X*k-q*V,Me=X*Z+ne*V+q*P-H*k,_e=ne*Z-q*k-H*P-X*V;return a.rotateY(A,S,C),A[4]=de*(Z=A[3])+_e*(k=A[0])+xe*(V=A[2])-Me*(P=A[1]),A[5]=xe*Z+_e*P+Me*k-de*V,A[6]=Me*Z+_e*V+de*P-xe*k,A[7]=_e*Z-de*k-xe*P-Me*V,A},He.rotateZ=function(A,S,C){var k=-S[0],P=-S[1],V=-S[2],Z=S[3],q=S[4],H=S[5],X=S[6],ne=S[7],de=q*Z+ne*k+H*V-X*P,xe=H*Z+ne*P+X*k-q*V,Me=X*Z+ne*V+q*P-H*k,_e=ne*Z-q*k-H*P-X*V;return a.rotateZ(A,S,C),A[4]=de*(Z=A[3])+_e*(k=A[0])+xe*(V=A[2])-Me*(P=A[1]),A[5]=xe*Z+_e*P+Me*k-de*V,A[6]=Me*Z+_e*V+de*P-xe*k,A[7]=_e*Z-de*k-xe*P-Me*V,A},He.rotateByQuatAppend=function(A,S,C){var k=C[0],P=C[1],V=C[2],Z=C[3],q=S[0],H=S[1],X=S[2],ne=S[3];return A[0]=q*Z+ne*k+H*V-X*P,A[1]=H*Z+ne*P+X*k-q*V,A[2]=X*Z+ne*V+q*P-H*k,A[3]=ne*Z-q*k-H*P-X*V,A[4]=(q=S[4])*Z+(ne=S[7])*k+(H=S[5])*V-(X=S[6])*P,A[5]=H*Z+ne*P+X*k-q*V,A[6]=X*Z+ne*V+q*P-H*k,A[7]=ne*Z-q*k-H*P-X*V,A},He.rotateByQuatPrepend=function(A,S,C){var k=S[0],P=S[1],V=S[2],Z=S[3],q=C[0],H=C[1],X=C[2],ne=C[3];return A[0]=k*ne+Z*q+P*X-V*H,A[1]=P*ne+Z*H+V*q-k*X,A[2]=V*ne+Z*X+k*H-P*q,A[3]=Z*ne-k*q-P*H-V*X,A[4]=k*(ne=C[7])+Z*(q=C[4])+P*(X=C[6])-V*(H=C[5]),A[5]=P*ne+Z*H+V*q-k*X,A[6]=V*ne+Z*X+k*H-P*q,A[7]=Z*ne-k*q-P*H-V*X,A},He.rotateAroundAxis=function(A,S,C,k){if(Math.abs(k)<i.EPSILON)return w(A,S);var P=Math.hypot(C[0],C[1],C[2]);k*=.5;var V=Math.sin(k),Z=V*C[0]/P,q=V*C[1]/P,H=V*C[2]/P,X=Math.cos(k),ne=S[0],de=S[1],xe=S[2],Me=S[3];A[0]=ne*X+Me*Z+de*H-xe*q,A[1]=de*X+Me*q+xe*Z-ne*H,A[2]=xe*X+Me*H+ne*q-de*Z,A[3]=Me*X-ne*Z-de*q-xe*H;var _e=S[4],ke=S[5],Ie=S[6],Pe=S[7];return A[4]=_e*X+Pe*Z+ke*H-Ie*q,A[5]=ke*X+Pe*q+Ie*Z-_e*H,A[6]=Ie*X+Pe*H+_e*q-ke*Z,A[7]=Pe*X-_e*Z-ke*q-Ie*H,A},He.add=function(A,S,C){return A[0]=S[0]+C[0],A[1]=S[1]+C[1],A[2]=S[2]+C[2],A[3]=S[3]+C[3],A[4]=S[4]+C[4],A[5]=S[5]+C[5],A[6]=S[6]+C[6],A[7]=S[7]+C[7],A},He.multiply=D,He.scale=function(A,S,C){return A[0]=S[0]*C,A[1]=S[1]*C,A[2]=S[2]*C,A[3]=S[3]*C,A[4]=S[4]*C,A[5]=S[5]*C,A[6]=S[6]*C,A[7]=S[7]*C,A},He.lerp=function(A,S,C,k){var P=1-k;return N(S,C)<0&&(k=-k),A[0]=S[0]*P+C[0]*k,A[1]=S[1]*P+C[1]*k,A[2]=S[2]*P+C[2]*k,A[3]=S[3]*P+C[3]*k,A[4]=S[4]*P+C[4]*k,A[5]=S[5]*P+C[5]*k,A[6]=S[6]*P+C[6]*k,A[7]=S[7]*P+C[7]*k,A},He.invert=function(A,S){var C=T(S);return A[0]=-S[0]/C,A[1]=-S[1]/C,A[2]=-S[2]/C,A[3]=S[3]/C,A[4]=-S[4]/C,A[5]=-S[5]/C,A[6]=-S[6]/C,A[7]=S[7]/C,A},He.conjugate=function(A,S){return A[0]=-S[0],A[1]=-S[1],A[2]=-S[2],A[3]=S[3],A[4]=-S[4],A[5]=-S[5],A[6]=-S[6],A[7]=S[7],A},He.normalize=function(A,S){var C=T(S);if(C>0){C=Math.sqrt(C);var k=S[0]/C,P=S[1]/C,V=S[2]/C,Z=S[3]/C,q=S[4],H=S[5],X=S[6],ne=S[7],de=k*q+P*H+V*X+Z*ne;A[0]=k,A[1]=P,A[2]=V,A[3]=Z,A[4]=(q-k*de)/C,A[5]=(H-P*de)/C,A[6]=(X-V*de)/C,A[7]=(ne-Z*de)/C}return A},He.str=function(A){return"quat2("+A[0]+", "+A[1]+", "+A[2]+", "+A[3]+", "+A[4]+", "+A[5]+", "+A[6]+", "+A[7]+")"},He.exactEquals=function(A,S){return A[0]===S[0]&&A[1]===S[1]&&A[2]===S[2]&&A[3]===S[3]&&A[4]===S[4]&&A[5]===S[5]&&A[6]===S[6]&&A[7]===S[7]},He.equals=function(A,S){var C=A[0],k=A[1],P=A[2],V=A[3],Z=A[4],q=A[5],H=A[6],X=A[7],ne=S[0],de=S[1],xe=S[2],Me=S[3],_e=S[4],ke=S[5],Ie=S[6],Pe=S[7];return Math.abs(C-ne)<=i.EPSILON*Math.max(1,Math.abs(C),Math.abs(ne))&&Math.abs(k-de)<=i.EPSILON*Math.max(1,Math.abs(k),Math.abs(de))&&Math.abs(P-xe)<=i.EPSILON*Math.max(1,Math.abs(P),Math.abs(xe))&&Math.abs(V-Me)<=i.EPSILON*Math.max(1,Math.abs(V),Math.abs(Me))&&Math.abs(Z-_e)<=i.EPSILON*Math.max(1,Math.abs(Z),Math.abs(_e))&&Math.abs(q-ke)<=i.EPSILON*Math.max(1,Math.abs(q),Math.abs(ke))&&Math.abs(H-Ie)<=i.EPSILON*Math.max(1,Math.abs(H),Math.abs(Ie))&&Math.abs(X-Pe)<=i.EPSILON*Math.max(1,Math.abs(X),Math.abs(Pe))},He.sqrLen=He.squaredLength=He.len=He.length=He.dot=He.mul=He.setReal=He.getReal=void 0;var i=f(j()),a=f(ot()),h=f(De());function y(A){if(typeof WeakMap!="function")return null;var S=new WeakMap,C=new WeakMap;return(y=function(k){return k?C:S})(A)}function f(A,S){if(A&&A.__esModule)return A;if(A===null||u(A)!=="object"&&typeof A!="function")return{default:A};var C=y(S);if(C&&C.has(A))return C.get(A);var k={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in A)if(V!=="default"&&Object.prototype.hasOwnProperty.call(A,V)){var Z=P?Object.getOwnPropertyDescriptor(A,V):null;Z&&(Z.get||Z.set)?Object.defineProperty(k,V,Z):k[V]=A[V]}return k.default=A,C&&C.set(A,k),k}function _(A,S,C){var k=.5*C[0],P=.5*C[1],V=.5*C[2],Z=S[0],q=S[1],H=S[2],X=S[3];return A[0]=Z,A[1]=q,A[2]=H,A[3]=X,A[4]=k*X+P*H-V*q,A[5]=P*X+V*Z-k*H,A[6]=V*X+k*q-P*Z,A[7]=-k*Z-P*q-V*H,A}function w(A,S){return A[0]=S[0],A[1]=S[1],A[2]=S[2],A[3]=S[3],A[4]=S[4],A[5]=S[5],A[6]=S[6],A[7]=S[7],A}function D(A,S,C){var k=S[0],P=S[1],V=S[2],Z=S[3],q=C[4],H=C[5],X=C[6],ne=C[7],de=S[4],xe=S[5],Me=S[6],_e=S[7],ke=C[0],Ie=C[1],Pe=C[2],Ze=C[3];return A[0]=k*Ze+Z*ke+P*Pe-V*Ie,A[1]=P*Ze+Z*Ie+V*ke-k*Pe,A[2]=V*Ze+Z*Pe+k*Ie-P*ke,A[3]=Z*Ze-k*ke-P*Ie-V*Pe,A[4]=k*ne+Z*q+P*X-V*H+de*Ze+_e*ke+xe*Pe-Me*Ie,A[5]=P*ne+Z*H+V*q-k*X+xe*Ze+_e*Ie+Me*ke-de*Pe,A[6]=V*ne+Z*X+k*H-P*q+Me*Ze+_e*Pe+de*Ie-xe*ke,A[7]=Z*ne-k*q-P*H-V*X+_e*Ze-de*ke-xe*Ie-Me*Pe,A}He.getReal=a.copy,He.setReal=a.copy,He.mul=D;var N=a.dot;He.dot=N;var b=a.length;He.length=b,He.len=b;var T=a.squaredLength;return He.squaredLength=T,He.sqrLen=T,He}var je,ye,ee={};function fe(){if(je)return ee;function u(S){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},u(S)}je=1,Object.defineProperty(ee,"__esModule",{value:!0}),ee.create=h,ee.clone=function(S){var C=new i.ARRAY_TYPE(2);return C[0]=S[0],C[1]=S[1],C},ee.fromValues=function(S,C){var k=new i.ARRAY_TYPE(2);return k[0]=S,k[1]=C,k},ee.copy=function(S,C){return S[0]=C[0],S[1]=C[1],S},ee.set=function(S,C,k){return S[0]=C,S[1]=k,S},ee.add=function(S,C,k){return S[0]=C[0]+k[0],S[1]=C[1]+k[1],S},ee.subtract=y,ee.multiply=f,ee.divide=_,ee.ceil=function(S,C){return S[0]=Math.ceil(C[0]),S[1]=Math.ceil(C[1]),S},ee.floor=function(S,C){return S[0]=Math.floor(C[0]),S[1]=Math.floor(C[1]),S},ee.min=function(S,C,k){return S[0]=Math.min(C[0],k[0]),S[1]=Math.min(C[1],k[1]),S},ee.max=function(S,C,k){return S[0]=Math.max(C[0],k[0]),S[1]=Math.max(C[1],k[1]),S},ee.round=function(S,C){return S[0]=Math.round(C[0]),S[1]=Math.round(C[1]),S},ee.scale=function(S,C,k){return S[0]=C[0]*k,S[1]=C[1]*k,S},ee.scaleAndAdd=function(S,C,k,P){return S[0]=C[0]+k[0]*P,S[1]=C[1]+k[1]*P,S},ee.distance=w,ee.squaredDistance=D,ee.length=N,ee.squaredLength=b,ee.negate=function(S,C){return S[0]=-C[0],S[1]=-C[1],S},ee.inverse=function(S,C){return S[0]=1/C[0],S[1]=1/C[1],S},ee.normalize=function(S,C){var k=C[0],P=C[1],V=k*k+P*P;return V>0&&(V=1/Math.sqrt(V)),S[0]=C[0]*V,S[1]=C[1]*V,S},ee.dot=function(S,C){return S[0]*C[0]+S[1]*C[1]},ee.cross=function(S,C,k){var P=C[0]*k[1]-C[1]*k[0];return S[0]=S[1]=0,S[2]=P,S},ee.lerp=function(S,C,k,P){var V=C[0],Z=C[1];return S[0]=V+P*(k[0]-V),S[1]=Z+P*(k[1]-Z),S},ee.random=function(S,C){C=C||1;var k=2*i.RANDOM()*Math.PI;return S[0]=Math.cos(k)*C,S[1]=Math.sin(k)*C,S},ee.transformMat2=function(S,C,k){var P=C[0],V=C[1];return S[0]=k[0]*P+k[2]*V,S[1]=k[1]*P+k[3]*V,S},ee.transformMat2d=function(S,C,k){var P=C[0],V=C[1];return S[0]=k[0]*P+k[2]*V+k[4],S[1]=k[1]*P+k[3]*V+k[5],S},ee.transformMat3=function(S,C,k){var P=C[0],V=C[1];return S[0]=k[0]*P+k[3]*V+k[6],S[1]=k[1]*P+k[4]*V+k[7],S},ee.transformMat4=function(S,C,k){var P=C[0],V=C[1];return S[0]=k[0]*P+k[4]*V+k[12],S[1]=k[1]*P+k[5]*V+k[13],S},ee.rotate=function(S,C,k,P){var V=C[0]-k[0],Z=C[1]-k[1],q=Math.sin(P),H=Math.cos(P);return S[0]=V*H-Z*q+k[0],S[1]=V*q+Z*H+k[1],S},ee.angle=function(S,C){var k=S[0],P=S[1],V=C[0],Z=C[1],q=Math.sqrt(k*k+P*P)*Math.sqrt(V*V+Z*Z);return Math.acos(Math.min(Math.max(q&&(k*V+P*Z)/q,-1),1))},ee.zero=function(S){return S[0]=0,S[1]=0,S},ee.str=function(S){return"vec2("+S[0]+", "+S[1]+")"},ee.exactEquals=function(S,C){return S[0]===C[0]&&S[1]===C[1]},ee.equals=function(S,C){var k=S[0],P=S[1],V=C[0],Z=C[1];return Math.abs(k-V)<=i.EPSILON*Math.max(1,Math.abs(k),Math.abs(V))&&Math.abs(P-Z)<=i.EPSILON*Math.max(1,Math.abs(P),Math.abs(Z))},ee.forEach=ee.sqrLen=ee.sqrDist=ee.dist=ee.div=ee.mul=ee.sub=ee.len=void 0;var i=function(S,C){if(S&&S.__esModule)return S;if(S===null||u(S)!=="object"&&typeof S!="function")return{default:S};var k=a(void 0);if(k&&k.has(S))return k.get(S);var P={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Z in S)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(S,Z)){var q=V?Object.getOwnPropertyDescriptor(S,Z):null;q&&(q.get||q.set)?Object.defineProperty(P,Z,q):P[Z]=S[Z]}return P.default=S,k&&k.set(S,P),P}(j());function a(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,k=new WeakMap;return(a=function(P){return P?k:C})(S)}function h(){var S=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(S[0]=0,S[1]=0),S}function y(S,C,k){return S[0]=C[0]-k[0],S[1]=C[1]-k[1],S}function f(S,C,k){return S[0]=C[0]*k[0],S[1]=C[1]*k[1],S}function _(S,C,k){return S[0]=C[0]/k[0],S[1]=C[1]/k[1],S}function w(S,C){return Math.hypot(C[0]-S[0],C[1]-S[1])}function D(S,C){var k=C[0]-S[0],P=C[1]-S[1];return k*k+P*P}function N(S){return Math.hypot(S[0],S[1])}function b(S){var C=S[0],k=S[1];return C*C+k*k}ee.len=N,ee.sub=y,ee.mul=f,ee.div=_,ee.dist=w,ee.sqrDist=D,ee.sqrLen=b;var T,A=(T=h(),function(S,C,k,P,V,Z){var q,H;for(C||(C=2),k||(k=0),H=P?Math.min(P*C+k,S.length):S.length,q=k;q<H;q+=C)T[0]=S[q],T[1]=S[q+1],V(T,T,Z),S[q]=T[0],S[q+1]=T[1];return S});return ee.forEach=A,ee}function Ne(){if(ye)return z;function u(S){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},u(S)}ye=1,Object.defineProperty(z,"__esModule",{value:!0}),z.vec4=z.vec3=z.vec2=z.quat2=z.quat=z.mat4=z.mat3=z.mat2d=z.mat2=z.glMatrix=void 0;var i=A(j());z.glMatrix=i;var a=A(Y());z.mat2=a;var h=A(J());z.mat2d=h;var y=A(pe());z.mat3=y;var f=A(De());z.mat4=f;var _=A(ot());z.quat=_;var w=A(Ae());z.quat2=w;var D=A(fe());z.vec2=D;var N=A(ht());z.vec3=N;var b=A(Fe());function T(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,k=new WeakMap;return(T=function(P){return P?k:C})(S)}function A(S,C){if(S&&S.__esModule)return S;if(S===null||u(S)!=="object"&&typeof S!="function")return{default:S};var k=T(C);if(k&&k.has(S))return k.get(S);var P={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Z in S)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(S,Z)){var q=V?Object.getOwnPropertyDescriptor(S,Z):null;q&&(q.get||q.set)?Object.defineProperty(P,Z,q):P[Z]=S[Z]}return P.default=S,k&&k.set(S,P),P}return z.vec4=b,z}var Ee,Xe,ft,it,ue=Ne(),Dt=function(){if(Xe)return Ee;function u(i,a,h,y){this.cx=3*i,this.bx=3*(h-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*a,this.by=3*(y-a)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=a,this.p2x=h,this.p2y=y}return Xe=1,Ee=u,u.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,a){if(a===void 0&&(a=1e-6),i<0)return 0;if(i>1)return 1;for(var h=i,y=0;y<8;y++){var f=this.sampleCurveX(h)-i;if(Math.abs(f)<a)return h;var _=this.sampleCurveDerivativeX(h);if(Math.abs(_)<1e-6)break;h-=f/_}var w=0,D=1;for(h=i,y=0;y<20&&(f=this.sampleCurveX(h),!(Math.abs(f-i)<a));y++)i>f?w=h:D=h,h=.5*(D-w)+w;return h},solve:function(i,a){return this.sampleCurveY(this.solveCurveX(i,a))}},Ee}(),Gt=v(Dt);function Et(){if(it)return ft;function u(i,a){this.x=i,this.y=a}return it=1,ft=u,u.prototype={clone:function(){return new u(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,a){return this.clone()._rotateAround(i,a)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var a=i.x-this.x,h=i.y-this.y;return a*a+h*h},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,a){return Math.atan2(this.x*a-this.y*i,this.x*i+this.y*a)},_matMult:function(i){var a=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=a,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var a=Math.cos(i),h=Math.sin(i),y=h*this.x+a*this.y;return this.x=a*this.x-h*this.y,this.y=y,this},_rotateAround:function(i,a){var h=Math.cos(i),y=Math.sin(i),f=a.y+y*(this.x-a.x)+h*(this.y-a.y);return this.x=a.x+h*(this.x-a.x)-y*(this.y-a.y),this.y=f,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(i){return i instanceof u?i:Array.isArray(i)?new u(i[0],i[1]):i},ft}var We=v(Et());function Ut(u,i){if(Array.isArray(u)){if(!Array.isArray(i)||u.length!==i.length)return!1;for(let a=0;a<u.length;a++)if(!Ut(u[a],i[a]))return!1;return!0}if(typeof u=="object"&&u!==null&&i!==null){if(typeof i!="object"||Object.keys(u).length!==Object.keys(i).length)return!1;for(const a in u)if(!Ut(u[a],i[a]))return!1;return!0}return u===i}const wt=Math.PI/180,en=180/Math.PI;function Jt(u){return u*wt}function Nn(u){return u*en}const xn=[[0,0],[1,0],[1,1],[0,1]];function dn(u){if(u<=0)return 0;if(u>=1)return 1;const i=u*u,a=i*u;return 4*(u<.5?a:3*(u-i)+a-.75)}function mn(u,i,a,h){const y=new Gt(u,i,a,h);return function(f){return y.solve(f)}}const ti=mn(.25,.1,.25,1);function Yt(u,i,a){return Math.min(a,Math.max(i,u))}function jn(u,i,a){return(a=Yt((a-u)/(i-u),0,1))*a*(3-2*a)}function On(u,i,a){const h=a-i,y=((u-i)%h+h)%h+i;return y===i?a:y}function fn(u,i,a){if(!u.length)return a(null,[]);let h=u.length;const y=new Array(u.length);let f=null;u.forEach((_,w)=>{i(_,(D,N)=>{D&&(f=D),y[w]=N,--h==0&&a(f,y)})})}function ei(u,...i){for(const a of i)for(const h in a)u[h]=a[h];return u}let vi=1;function Zi(){return vi++}function ii(u){return u<=1?1:Math.pow(2,Math.ceil(Math.log(u)/Math.LN2))}function Hn(u,i){u.forEach(a=>{i[a]&&(i[a]=i[a].bind(i))})}function Wi(u,i){return u.indexOf(i,u.length-i.length)!==-1}function yr(u,i,a){const h={};for(const y in u)h[y]=i.call(this,u[y],y,u);return h}function Lt(u,i,a){const h={};for(const y in u)i.call(this,u[y],y,u)&&(h[y]=u[y]);return h}function xt(u){return Array.isArray(u)?u.map(xt):typeof u=="object"&&u?yr(u,xt):u}const ln={};function Wt(u){ln[u]||(typeof console<"u"&&console.warn(u),ln[u]=!0)}function Qt(u,i,a){return(a.y-u.y)*(i.x-u.x)>(i.y-u.y)*(a.x-u.x)}function an(u){let i=0;for(let a,h,y=0,f=u.length,_=f-1;y<f;_=y++)a=u[y],h=u[_],i+=(h.x-a.x)*(a.y+h.y);return i}function yn([u,i,a]){const h=Jt(i+90),y=Jt(a);return{x:u*Math.cos(h)*Math.sin(y),y:u*Math.sin(h)*Math.sin(y),z:u*Math.cos(y),azimuthal:i,polar:a}}function bn(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function An(u){const i={};if(u.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(a,h,y,f)=>{const _=y||f;return i[h]=!_||_.toLowerCase(),""}),i["max-age"]){const a=parseInt(i["max-age"],10);isNaN(a)?delete i["max-age"]:i["max-age"]=a}return i}let ai,Pi=null;function _r(u,i){return[u[4*i],u[4*i+1],u[4*i+2],u[4*i+3]]}function gt(u,i,a,h){for(;i<a;){const y=i+a>>1;u[y]<h?i=y+1:a=y}return i}function le(u,i,a,h){for(;i<a;){const y=i+a>>1;u[y]<=h?i=y+1:a=y}return i}function ge(u){return u>0?1/(1.001-u):1+u}function Le(u){return u>0?1-1/(1.001-u):-u}const $e={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(ai==null){const u=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{ai=process.env.API_URL_REGEX!=null?new RegExp(process.env.API_URL_REGEX):u}catch{ai=u}}return ai},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!$e.API_URL)return null;try{const u=new URL($e.API_URL);return u.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":u.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function Ue(u){return $e.API_URL_REGEX.test(u)}function rt(u){return $e.API_SPRITE_REGEX.test(u)}let bt,lt,pt,At,St,Bt;function tn(){return bt==null&&(bt=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),bt}const on={now:()=>At!==void 0?At:performance.now(),setNow(u){At=u},restoreNow(){At=void 0},frame(u){const i=requestAnimationFrame(u);return{cancel:()=>cancelAnimationFrame(i)}},getImageData(u,i=0){const{width:a,height:h}=u;St||(St=document.createElement("canvas"));const y=St.getContext("2d",{willReadFrequently:!0});if(!y)throw new Error("failed to create canvas 2d context");return(a>St.width||h>St.height)&&(St.width=a,St.height=h),y.clearRect(-i,-i,a+2*i,h+2*i),y.drawImage(u,0,0,a,h),y.getImageData(-i,-i,a+2*i,h+2*i)},resolveURL:u=>(lt||(lt=document.createElement("a")),lt.href=u,lt.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(pt==null&&(pt=window.matchMedia("(prefers-reduced-motion: reduce)")),pt.matches)},hasCanvasFingerprintNoise(){if(Bt!==void 0)return Bt;if(!tn())return Bt=!1,!1;const u=new OffscreenCanvas(85,1),i=u.getContext("2d",{willReadFrequently:!0});let a=0;for(let y=0;y<u.width;++y)i.fillStyle=`rgba(${a++},${a++},${a++}, 255)`,i.fillRect(y,0,1,1);const h=i.getImageData(0,0,u.width,u.height);a=0;for(let y=0;y<h.data.length;++y)if(y%4!=3&&a++!==h.data[y])return Bt=!0,!0;return Bt=!1,!1}};function zn(u,i){const a=u.indexOf("?");if(a<0)return`${u}?${new URLSearchParams(i).toString()}`;const h=new URLSearchParams(u.slice(a));for(const y in i)h.set(y,i[y]);return`${u.slice(0,a)}?${h.toString()}`}function Rn(u,i={persistentParams:[]}){const a=u.indexOf("?");if(a<0)return u;const h=new URLSearchParams,y=new URLSearchParams(u.slice(a));for(const _ of i.persistentParams){const w=y.get(_);w&&h.set(_,w)}const f=h.toString();return`${u.slice(0,a)}${f.length>0?`?${f}`:""}`}const Fn="mapbox-tiles";let Pn=500,wi=50;const Ii=["language","worldview","jobid"];let cn,Zn;function zi(){try{return caches}catch{}}function Pr(){const u=zi();u&&cn==null&&(cn=u.open(Fn))}let Hr=1/0;const co={supported:!1,testSupport:function(u){!xp&&Qa&&(Kh?bp(u):qs=u)}};let qs,Qa,xp=!1,Kh=!1;const _u=typeof self<"u"?self:{};function bp(u){const i=u.createTexture();u.bindTexture(u.TEXTURE_2D,i);try{if(u.texImage2D(u.TEXTURE_2D,0,u.RGBA,u.RGBA,u.UNSIGNED_BYTE,Qa),u.isContextLost())return;co.supported=!0}catch{}u.deleteTexture(i),xp=!0}_u.document&&(Qa=_u.document.createElement("img"),Qa.onload=function(){qs&&bp(qs),qs=null,Kh=!0},Qa.onerror=function(){xp=!0,qs=null},Qa.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const vu={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(vu);class N1 extends Error{constructor(i,a,h){a===401&&Ue(h)&&(i+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(i),this.status=a,this.url=h}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const L1=bn()?()=>self.worker&&self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Xh=function(u,i){if(!(/^file:/.test(a=u.url)||/^file:/.test(L1())&&!/^\w+:/.test(a))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(h,y){const f=new AbortController,_=new Request(h.url,{method:h.method||"GET",body:h.body,credentials:h.credentials,headers:h.headers,referrer:L1(),referrerPolicy:h.referrerPolicy,signal:f.signal});let w=!1,D=!1;const N=(b=_.url).indexOf("sku=")>0&&Ue(b);var b;h.type==="json"&&_.headers.set("Accept","application/json");const T=(S,C,k)=>{if(D)return;if(S&&S.message!=="SecurityError"&&Wt(S.toString()),C&&k)return A(C);const P=Date.now();fetch(_).then(V=>{if(V.ok){const Z=N?V.clone():null;return A(V,Z,P)}return y(new N1(V.statusText,V.status,h.url))}).catch(V=>{V.name!=="AbortError"&&y(new Error(`${V.message} ${h.url}`))})},A=(S,C,k)=>{(h.type==="arrayBuffer"?S.arrayBuffer():h.type==="json"?S.json():S.text()).then(P=>{D||(C&&k&&function(V,Z,q){if(Pr(),cn==null)return;const H=An(Z.headers.get("Cache-Control")||"");if(H["no-store"])return;const X={status:Z.status,statusText:Z.statusText,headers:new Headers};Z.headers.forEach((xe,Me)=>X.headers.set(Me,xe)),H["max-age"]&&X.headers.set("Expires",new Date(q+1e3*H["max-age"]).toUTCString());const ne=X.headers.get("Expires");if(!ne||new Date(ne).getTime()-q<42e4)return;let de=Rn(V.url,{persistentParams:Ii});if(Z.status===206){const xe=V.headers.get("Range");if(!xe)return;X.status=200,de=zn(de,{range:xe})}(function(xe,Me){if(Zn===void 0)try{new Response(new ReadableStream),Zn=!0}catch{Zn=!1}Zn?Me(xe.body):xe.blob().then(Me)})(Z,xe=>{const Me=new Response((_e=Z.status)!==200&&_e!==404&&[101,103,204,205,304].includes(_e)?null:xe,X);var _e;Pr(),cn!=null&&cn.then(ke=>ke.put(de,Me)).catch(ke=>Wt(ke.message))})}(_,C,k),w=!0,y(null,P,S.headers.get("Cache-Control"),S.headers.get("Expires")))}).catch(P=>{D||y(new Error(P.message))})};return N?function(S,C){if(Pr(),cn==null)return C(null);cn.then(k=>{let P=Rn(S.url,{persistentParams:Ii});const V=S.headers.get("Range");V&&(P=zn(P,{range:V})),k.match(P).then(Z=>{const q=function(H){if(!H)return!1;const X=new Date(H.headers.get("Expires")||0),ne=An(H.headers.get("Cache-Control")||"");return X>Date.now()&&!ne["no-cache"]}(Z);k.delete(P),q&&k.put(P,Z.clone()),C(null,Z,q)}).catch(C)}).catch(C)}(_,T):T(null,null),{cancel:()=>{D=!0,w||f.abort()}}}(u,i);if(bn()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",u,i,void 0,!0)}var a;return function(h,y){const f=new XMLHttpRequest;f.open(h.method||"GET",h.url,!0),h.type==="arrayBuffer"&&(f.responseType="arraybuffer");for(const _ in h.headers)f.setRequestHeader(_,h.headers[_]);return h.type==="json"&&(f.responseType="text",f.setRequestHeader("Accept","application/json")),f.withCredentials=h.credentials==="include",f.onerror=()=>{y(new Error(f.statusText))},f.onload=()=>{if((f.status>=200&&f.status<300||f.status===0)&&f.response!==null){let _=f.response;if(h.type==="json")try{_=JSON.parse(f.response)}catch(w){return y(w)}y(null,_,f.getResponseHeader("Cache-Control"),f.getResponseHeader("Expires"))}else y(new N1(f.statusText,f.status,h.url))},f.send(h.body),{cancel:()=>f.abort()}}(u,i)},xu=function(u,i){return Xh(ei(u,{type:"arrayBuffer"}),i)};function As(u){const i=document.createElement("a");return i.href=u,i.protocol===location.protocol&&i.host===location.host}const Ks="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Xs,Xo;Xs=[],Xo=0;const xa=function(u,i){if(co.supported&&(u.headers||(u.headers={}),u.headers.accept="image/webp,*/*"),Xo>=$e.MAX_PARALLEL_IMAGE_REQUESTS){const f={requestParameters:u,callback:i,cancelled:!1,cancel(){this.cancelled=!0}};return Xs.push(f),f}Xo++;let a=!1;const h=()=>{if(!a)for(a=!0,Xo--;Xs.length&&Xo<$e.MAX_PARALLEL_IMAGE_REQUESTS;){const f=Xs.shift(),{requestParameters:_,callback:w,cancelled:D}=f;D||(f.cancel=xa(_,w).cancel)}},y=xu(u,(f,_,w,D)=>{h(),f?i(f):_&&(self.createImageBitmap?function(N,b){const T=new Blob([new Uint8Array(N)],{type:"image/png"});createImageBitmap(T).then(A=>{b(null,A)}).catch(A=>{b(new Error(`Could not load image because of ${A.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(_,(N,b)=>i(N,b,w,D)):function(N,b){const T=new Image;T.onload=()=>{b(null,T),URL.revokeObjectURL(T.src),T.onload=null,requestAnimationFrame(()=>{T.src=Ks})},T.onerror=()=>b(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const A=new Blob([new Uint8Array(N)],{type:"image/png"});T.src=N.byteLength?URL.createObjectURL(A):Ks}(_,(N,b)=>i(N,b,w,D)))});return{cancel:()=>{y.cancel(),h()}}};var Jh,z1,k1,ba={exports:{}},Mp={exports:{}},_b={exports:{}},nE=function(){if(k1)return ba.exports;k1=1;var u=(Jh||(Jh=1,Mp.exports=function(a,h){var y,f,_,w,D,N,b,T;for(f=a.length-(y=3&a.length),_=h,D=3432918353,N=461845907,T=0;T<f;)b=255&a.charCodeAt(T)|(255&a.charCodeAt(++T))<<8|(255&a.charCodeAt(++T))<<16|(255&a.charCodeAt(++T))<<24,++T,_=27492+(65535&(w=5*(65535&(_=(_^=b=(65535&(b=(b=(65535&b)*D+(((b>>>16)*D&65535)<<16)&4294967295)<<15|b>>>17))*N+(((b>>>16)*N&65535)<<16)&4294967295)<<13|_>>>19))+((5*(_>>>16)&65535)<<16)&4294967295))+((58964+(w>>>16)&65535)<<16);switch(b=0,y){case 3:b^=(255&a.charCodeAt(T+2))<<16;case 2:b^=(255&a.charCodeAt(T+1))<<8;case 1:_^=b=(65535&(b=(b=(65535&(b^=255&a.charCodeAt(T)))*D+(((b>>>16)*D&65535)<<16)&4294967295)<<15|b>>>17))*N+(((b>>>16)*N&65535)<<16)&4294967295}return _^=a.length,_=2246822507*(65535&(_^=_>>>16))+((2246822507*(_>>>16)&65535)<<16)&4294967295,_=3266489909*(65535&(_^=_>>>13))+((3266489909*(_>>>16)&65535)<<16)&4294967295,(_^=_>>>16)>>>0}),Mp.exports),i=(z1||(z1=1,_b.exports=function(a,h){for(var y,f=a.length,_=h^f,w=0;f>=4;)y=1540483477*(65535&(y=255&a.charCodeAt(w)|(255&a.charCodeAt(++w))<<8|(255&a.charCodeAt(++w))<<16|(255&a.charCodeAt(++w))<<24))+((1540483477*(y>>>16)&65535)<<16),_=1540483477*(65535&_)+((1540483477*(_>>>16)&65535)<<16)^(y=1540483477*(65535&(y^=y>>>24))+((1540483477*(y>>>16)&65535)<<16)),f-=4,++w;switch(f){case 3:_^=(255&a.charCodeAt(w+2))<<16;case 2:_^=(255&a.charCodeAt(w+1))<<8;case 1:_=1540483477*(65535&(_^=255&a.charCodeAt(w)))+((1540483477*(_>>>16)&65535)<<16)}return _=1540483477*(65535&(_^=_>>>13))+((1540483477*(_>>>16)&65535)<<16),(_^=_>>>15)>>>0}),_b.exports);return ba.exports=u,ba.exports.murmur3=u,ba.exports.murmur2=i,ba.exports}(),Jo=v(nE);class Tl{constructor(i,...a){ei(this,a[0]||{}),this.type=i}}class ed extends Tl{constructor(i,a={}){super("error",ei({error:i},a))}}function bu(u,i,a){a[u]&&a[u].indexOf(i)!==-1||(a[u]=a[u]||[],a[u].push(i))}function O1(u,i,a){if(a&&a[u]){const h=a[u].indexOf(i);h!==-1&&a[u].splice(h,1)}}class Mu{on(i,a){return this._listeners=this._listeners||{},bu(i,a,this._listeners),this}off(i,a){return O1(i,a,this._listeners),O1(i,a,this._oneTimeListeners),this}once(i,a){return a?(this._oneTimeListeners=this._oneTimeListeners||{},bu(i,a,this._oneTimeListeners),this):new Promise(h=>this.once(i,h))}fire(i,a){const h=typeof i=="string"?new Tl(i,a):i,y=h.type;if(this.listens(y)){h.target=this;const f=this._listeners&&this._listeners[y]?this._listeners[y].slice():[];for(const D of f)D.call(this,h);const _=this._oneTimeListeners&&this._oneTimeListeners[y]?this._oneTimeListeners[y].slice():[];for(const D of _)O1(y,D,this._oneTimeListeners),D.call(this,h);const w=this._eventedParent;w&&(ei(h,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),w.fire(h))}else h instanceof ed&&console.error(h.error);return this}listens(i){return!!(this._listeners&&this._listeners[i]&&this._listeners[i].length>0||this._oneTimeListeners&&this._oneTimeListeners[i]&&this._oneTimeListeners[i].length>0||this._eventedParent&&this._eventedParent.listens(i))}setEventedParent(i,a){return this._eventedParent=i,this._eventedParentData=a,this}}var j1,yi={},R1=function(){if(j1)return yi;j1=1;var u={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function i(f){return(f=Math.round(f))<0?0:f>255?255:f}function a(f){return i(f[f.length-1]==="%"?parseFloat(f)/100*255:parseInt(f))}function h(f){return(_=f[f.length-1]==="%"?parseFloat(f)/100:parseFloat(f))<0?0:_>1?1:_;var _}function y(f,_,w){return w<0?w+=1:w>1&&(w-=1),6*w<1?f+(_-f)*w*6:2*w<1?_:3*w<2?f+(_-f)*(2/3-w)*6:f}try{yi.parseCSSColor=function(f){var _,w=f.replace(/ /g,"").toLowerCase();if(w in u)return u[w].slice();if(w[0]==="#")return w.length===4?(_=parseInt(w.substr(1),16))>=0&&_<=4095?[(3840&_)>>4|(3840&_)>>8,240&_|(240&_)>>4,15&_|(15&_)<<4,1]:null:w.length===7&&(_=parseInt(w.substr(1),16))>=0&&_<=16777215?[(16711680&_)>>16,(65280&_)>>8,255&_,1]:null;var D=w.indexOf("("),N=w.indexOf(")");if(D!==-1&&N+1===w.length){var b=w.substr(0,D),T=w.substr(D+1,N-(D+1)).split(","),A=1;switch(b){case"rgba":if(T.length!==4)return null;A=h(T.pop());case"rgb":return T.length!==3?null:[a(T[0]),a(T[1]),a(T[2]),A];case"hsla":if(T.length!==4)return null;A=h(T.pop());case"hsl":if(T.length!==3)return null;var S=(parseFloat(T[0])%360+360)%360/360,C=h(T[1]),k=h(T[2]),P=k<=.5?k*(C+1):k+C-k*C,V=2*k-P;return[i(255*y(V,P,S+1/3)),i(255*y(V,P,S)),i(255*y(V,P,S-1/3)),A];default:return null}}return null}}catch{}return yi}();class Ci{constructor(i,a,h,y=1){this.r=i,this.g=a,this.b=h,this.a=y}static parse(i){if(!i)return;if(i instanceof Ci)return i;if(typeof i!="string")return;const a=R1.parseCSSColor(i);return a?new Ci(a[0]/255*a[3],a[1]/255*a[3],a[2]/255*a[3],a[3]):void 0}toString(){const[i,a,h,y]=this.a===0?[0,0,0,0]:[255*this.r/this.a,255*this.g/this.a,255*this.b/this.a,this.a];return`rgba(${Math.round(i)},${Math.round(a)},${Math.round(h)},${y})`}toRenderColor(i){const{r:a,g:h,b:y,a:f}=this;return new iE(i,a,h,y,f)}}class iE{constructor(i,a,h,y,f){if(i){const _=i.image.height,w=_*_;a=f===0?0:a/f*(_-1),h=f===0?0:h/f*(_-1),y=f===0?0:y/f*(_-1);const D=Math.floor(a),N=Math.floor(h),b=Math.floor(y),T=Math.ceil(a),A=Math.ceil(h),S=Math.ceil(y),C=a-D,k=h-N,P=y-b,V=i.image.data,Z=4*(D+N*w+b*_),q=4*(D+N*w+S*_),H=4*(D+A*w+b*_),X=4*(D+A*w+S*_),ne=4*(T+N*w+b*_),de=4*(T+N*w+S*_),xe=4*(T+A*w+b*_),Me=4*(T+A*w+S*_);if(Z<0||Me>=V.length)throw new Error("out of range");this.r=Ln(Ln(Ln(V[Z],V[q],P),Ln(V[H],V[X],P),k),Ln(Ln(V[ne],V[de],P),Ln(V[xe],V[Me],P),k),C)/255*f,this.g=Ln(Ln(Ln(V[Z+1],V[q+1],P),Ln(V[H+1],V[X+1],P),k),Ln(Ln(V[ne+1],V[de+1],P),Ln(V[xe+1],V[Me+1],P),k),C)/255*f,this.b=Ln(Ln(Ln(V[Z+2],V[q+2],P),Ln(V[H+2],V[X+2],P),k),Ln(Ln(V[ne+2],V[de+2],P),Ln(V[xe+2],V[Me+2],P),k),C)/255*f,this.a=f}else this.r=a,this.g=h,this.b=y,this.a=f}toArray(){const{r:i,g:a,b:h,a:y}=this;return y===0?[0,0,0,0]:[255*i/y,255*a/y,255*h/y,y]}toArray01(){const{r:i,g:a,b:h,a:y}=this;return y===0?[0,0,0,0]:[i/y,a/y,h/y,y]}toArray01Scaled(i){const{r:a,g:h,b:y,a:f}=this;return f===0?[0,0,0]:[a/f*i,h/f*i,y/f*i]}toArray01PremultipliedAlpha(){const{r:i,g:a,b:h,a:y}=this;return[i,a,h,y]}toArray01Linear(){const{r:i,g:a,b:h,a:y}=this;return y===0?[0,0,0,0]:[Math.pow(i/y,2.2),Math.pow(a/y,2.2),Math.pow(h/y,2.2),y]}}function Ln(u,i,a){return u*(1-a)+i*a}function td(u,i,a){return u.map((h,y)=>Ln(h,i[y],a))}Ci.black=new Ci(0,0,0,1),Ci.white=new Ci(1,1,1,1),Ci.transparent=new Ci(0,0,0,0),Ci.red=new Ci(1,0,0,1),Ci.blue=new Ci(0,0,1,1);var pc=Object.freeze({__proto__:null,array:td,color:function(u,i,a){return new Ci(Ln(u.r,i.r,a),Ln(u.g,i.g,a),Ln(u.b,i.b,a),Ln(u.a,i.a,a))},number:Ln});function wu(u,...i){for(const a of i)for(const h in a)u[h]=a[h];return u}class Ma extends Error{constructor(i,a){super(a),this.message=a,this.key=i}}class wp{constructor(i,a=[]){this.parent=i,this.bindings={};for(const[h,y]of a)this.bindings[h]=y}concat(i){return new wp(this,i)}get(i){if(this.bindings[i])return this.bindings[i];if(this.parent)return this.parent.get(i);throw new Error(`${i} not found in scope.`)}has(i){return!!this.bindings[i]||!!this.parent&&this.parent.has(i)}}const Js={kind:"null"},gn={kind:"number"},ci={kind:"string"},ui={kind:"boolean"},es={kind:"color"},Do={kind:"object"},fi={kind:"value"},Ip={kind:"collator"},Iu={kind:"formatted"},Tu={kind:"resolvedImage"};function Fo(u,i){return{kind:"array",itemType:u,N:i}}function vr(u){if(u.kind==="array"){const i=vr(u.itemType);return typeof u.N=="number"?`array<${i}, ${u.N}>`:u.itemType.kind==="value"?"array":`array<${i}>`}return u.kind}const vb=[Js,gn,ci,ui,es,Iu,Do,Fo(fi),Tu];function Su(u,i){if(i.kind==="error")return null;if(u.kind==="array"){if(i.kind==="array"&&(i.N===0&&i.itemType.kind==="value"||!Su(u.itemType,i.itemType))&&(typeof u.N!="number"||u.N===i.N))return null}else{if(u.kind===i.kind)return null;if(u.kind==="value"){for(const a of vb)if(!Su(a,i))return null}}return`Expected ${vr(u)} but found ${vr(i)} instead.`}function Eu(u,i){return i.some(a=>a.kind===u.kind)}function wa(u,i){return i.some(a=>a==="null"?u===null:a==="array"?Array.isArray(u):a==="object"?u&&!Array.isArray(u)&&typeof u=="object":a===typeof u)}class Tp{constructor(i,a,h){this.sensitivity=i?a?"variant":"case":a?"accent":"base",this.locale=h,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(i,a){return this.collator.compare(i,a)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class ds{constructor(i,a,h,y,f){this.text=i.normalize?i.normalize():i,this.image=a,this.scale=h,this.fontStack=y,this.textColor=f}}class Co{constructor(i){this.sections=i}static fromString(i){return new Co([new ds(i,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(i=>i.text.length!==0||i.image&&i.image.namePrimary.length!==0)}static factory(i){return i instanceof Co?i:Co.fromString(i)}toString(){return this.sections.length===0?"":this.sections.map(i=>i.text).join("")}serialize(){const i=["format"];for(const a of this.sections){if(a.image){i.push(["image",a.image.namePrimary]);continue}i.push(a.text);const h={};a.fontStack&&(h["text-font"]=["literal",a.fontStack.split(",")]),a.scale&&(h["font-scale"]=a.scale),a.textColor&&(h["text-color"]=["rgba"].concat(a.textColor.toRenderColor(null).toArray())),i.push(h)}return i}}class Vo{constructor(i){this.namePrimary=i.namePrimary,i.nameSecondary&&(this.nameSecondary=i.nameSecondary),this.available=i.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(i,a){return i?new Vo({namePrimary:i,nameSecondary:a,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function xb(u,i,a,h){return typeof u=="number"&&u>=0&&u<=255&&typeof i=="number"&&i>=0&&i<=255&&typeof a=="number"&&a>=0&&a<=255?h===void 0||typeof h=="number"&&h>=0&&h<=1?null:`Invalid rgba value [${[u,i,a,h].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof h=="number"?[u,i,a,h]:[u,i,a]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Sl(u){if(u===null||typeof u=="string"||typeof u=="boolean"||typeof u=="number"||u instanceof Ci||u instanceof Tp||u instanceof Co||u instanceof Vo)return!0;if(Array.isArray(u)){for(const i of u)if(!Sl(i))return!1;return!0}if(typeof u=="object"){for(const i in u)if(!Sl(u[i]))return!1;return!0}return!1}function Lr(u){if(u===null)return Js;if(typeof u=="string")return ci;if(typeof u=="boolean")return ui;if(typeof u=="number")return gn;if(u instanceof Ci)return es;if(u instanceof Tp)return Ip;if(u instanceof Co)return Iu;if(u instanceof Vo)return Tu;if(Array.isArray(u)){const i=u.length;let a;for(const h of u){const y=Lr(h);if(a){if(a===y)continue;a=fi;break}a=y}return Fo(a||fi,i)}return Do}function $o(u){const i=typeof u;return u===null?"":i==="string"||i==="number"||i==="boolean"?String(u):u instanceof Ci||u instanceof Co||u instanceof Vo?u.toString():JSON.stringify(u)}class ea{constructor(i,a){this.type=i,this.value=a}static parse(i,a){if(i.length!==2)return a.error(`'literal' expression requires exactly one argument, but found ${i.length-1} instead.`);if(!Sl(i[1]))return a.error("invalid value");const h=i[1];let y=Lr(h);const f=a.expectedType;return y.kind!=="array"||y.N!==0||!f||f.kind!=="array"||typeof f.N=="number"&&f.N!==0||(y=f),new ea(y,h)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Ci?["rgba"].concat(this.value.toRenderColor(null).toArray()):this.value instanceof Co?this.value.serialize():this.value}}class Xr{constructor(i){this.name="ExpressionEvaluationError",this.message=i}toJSON(){return this.message}}const P1={string:ci,number:gn,boolean:ui,object:Do};class ta{constructor(i,a){this.type=i,this.args=a}static parse(i,a){if(i.length<2)return a.error("Expected at least one argument.");let h,y=1;const f=i[0];if(f==="array"){let w,D;if(i.length>2){const N=i[1];if(typeof N!="string"||!(N in P1)||N==="object")return a.error('The item type argument of "array" must be one of string, number, boolean',1);w=P1[N],y++}else w=fi;if(i.length>3){if(i[2]!==null&&(typeof i[2]!="number"||i[2]<0||i[2]!==Math.floor(i[2])))return a.error('The length argument to "array" must be a positive integer literal',2);D=i[2],y++}h=Fo(w,D)}else h=P1[f];const _=[];for(;y<i.length;y++){const w=a.parse(i[y],y,fi);if(!w)return null;_.push(w)}return new ta(h,_)}evaluate(i){for(let a=0;a<this.args.length;a++){const h=this.args[a].evaluate(i);if(!Su(this.type,Lr(h)))return h;if(a===this.args.length-1)throw new Xr(`The expression ${JSON.stringify(this.args[a].serialize())} evaluated to ${vr(Lr(h))} but was expected to be of type ${vr(this.type)}.`)}return null}eachChild(i){this.args.forEach(i)}outputDefined(){return this.args.every(i=>i.outputDefined())}serialize(){const i=this.type,a=[i.kind];if(i.kind==="array"){const h=i.itemType;if(h.kind==="string"||h.kind==="number"||h.kind==="boolean"){a.push(h.kind);const y=i.N;(typeof y=="number"||this.args.length>1)&&a.push(y)}}return a.concat(this.args.map(h=>h.serialize()))}}class Du{constructor(i){this.type=Iu,this.sections=i}static parse(i,a){if(i.length<2)return a.error("Expected at least one argument.");const h=i[1];if(!Array.isArray(h)&&typeof h=="object")return a.error("First argument must be an image or text section.");const y=[];let f=!1;for(let _=1;_<=i.length-1;++_){const w=i[_];if(f&&typeof w=="object"&&!Array.isArray(w)){f=!1;let D=null;if(w["font-scale"]&&(D=a.parseObjectValue(w["font-scale"],_,"font-scale",gn),!D))return null;let N=null;if(w["text-font"]&&(N=a.parseObjectValue(w["text-font"],_,"text-font",Fo(ci)),!N))return null;let b=null;if(w["text-color"]&&(b=a.parseObjectValue(w["text-color"],_,"text-color",es),!b))return null;const T=y[y.length-1];T.scale=D,T.font=N,T.textColor=b}else{const D=a.parse(i[_],_,fi);if(!D)return null;const N=D.type.kind;if(N!=="string"&&N!=="value"&&N!=="null"&&N!=="resolvedImage")return a.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");f=!0,y.push({content:D,scale:null,font:null,textColor:null})}}return new Du(y)}evaluate(i){return new Co(this.sections.map(a=>{const h=a.content.evaluate(i);return Lr(h)===Tu?new ds("",h,null,null,null):new ds($o(h),null,a.scale?a.scale.evaluate(i):null,a.font?a.font.evaluate(i).join(","):null,a.textColor?a.textColor.evaluate(i):null)}))}eachChild(i){for(const a of this.sections)i(a.content),a.scale&&i(a.scale),a.font&&i(a.font),a.textColor&&i(a.textColor)}outputDefined(){return!1}serialize(){const i=["format"];for(const a of this.sections){i.push(a.content.serialize());const h={};a.scale&&(h["font-scale"]=a.scale.serialize()),a.font&&(h["text-font"]=a.font.serialize()),a.textColor&&(h["text-color"]=a.textColor.serialize()),i.push(h)}return i}}class mc{constructor(i,a){this.type=Tu,this.inputPrimary=i,this.inputSecondary=a}static parse(i,a){if(i.length<2)return a.error("Expected two or more arguments.");const h=a.parse(i[1],1,ci);if(!h)return a.error("No image name provided.");if(i.length===2)return new mc(h);const y=a.parse(i[2],1,ci);return y?new mc(h,y):a.error("Secondary image variant is not a string.")}evaluate(i){const a=Vo.fromString(this.inputPrimary.evaluate(i),this.inputSecondary?this.inputSecondary.evaluate(i):void 0);return a&&i.availableImages&&(a.available=i.availableImages.indexOf(a.namePrimary)>-1,a.nameSecondary&&a.available&&i.availableImages&&(a.available=i.availableImages.indexOf(a.nameSecondary)>-1)),a}eachChild(i){i(this.inputPrimary),this.inputSecondary&&i(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function gc(u){return u instanceof Number?"number":u instanceof String?"string":u instanceof Boolean?"boolean":Array.isArray(u)?"array":u===null?"null":typeof u}const Sp={"to-boolean":ui,"to-color":es,"to-number":gn,"to-string":ci};class Ya{constructor(i,a){this.type=i,this.args=a}static parse(i,a){if(i.length<2)return a.error("Expected at least one argument.");const h=i[0],y=[];let f=Js;if(h==="to-array"){if(!Array.isArray(i[1]))return null;const _=i[1].length;if(a.expectedType){if(a.expectedType.kind!=="array")return a.error(`Expected ${a.expectedType.kind} but found array.`);f=Fo(a.expectedType.itemType,_)}else{if(!(_>0&&Sl(i[1][0])))return null;f=Fo(Lr(i[1][0]),_)}for(let w=0;w<_;w++){const D=i[1][w];let N;if(gc(D)==="array")N=a.parse(D,void 0,f.itemType);else{const b=gc(D);if(b!==f.itemType.kind)return a.error(`Expected ${f.itemType.kind} but found ${b}.`);N=a.registry.literal.parse(["literal",D===void 0?null:D],a)}if(!N)return null;y.push(N)}}else{if((h==="to-boolean"||h==="to-string")&&i.length!==2)return a.error("Expected one argument.");f=Sp[h];for(let _=1;_<i.length;_++){const w=a.parse(i[_],_,fi);if(!w)return null;y.push(w)}}return new Ya(f,y)}evaluate(i){if(this.type.kind==="boolean")return!!this.args[0].evaluate(i);if(this.type.kind==="color"){let a,h;for(const y of this.args){if(a=y.evaluate(i),h=null,a instanceof Ci)return a;if(typeof a=="string"){const f=i.parseColor(a);if(f)return f}else if(Array.isArray(a)&&(h=a.length<3||a.length>4?`Invalid rbga value ${JSON.stringify(a)}: expected an array containing either three or four numeric values.`:xb(a[0],a[1],a[2],a[3]),!h))return new Ci(a[0]/255,a[1]/255,a[2]/255,a[3])}throw new Xr(h||`Could not parse color from value '${typeof a=="string"?a:String(JSON.stringify(a))}'`)}if(this.type.kind==="number"){let a=null;for(const h of this.args){if(a=h.evaluate(i),a===null)return 0;const y=Number(a);if(!isNaN(y))return y}throw new Xr(`Could not convert ${JSON.stringify(a)} to number.`)}return this.type.kind==="formatted"?Co.fromString($o(this.args[0].evaluate(i))):this.type.kind==="resolvedImage"?Vo.fromString($o(this.args[0].evaluate(i))):this.type.kind==="array"?this.args.map(a=>a.evaluate(i)):$o(this.args[0].evaluate(i))}eachChild(i){this.args.forEach(i)}outputDefined(){return this.args.every(i=>i.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Du([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new mc(this.args[0]).serialize();const i=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(a=>{i.push(a.serialize())}),i}}const rE=["Unknown","Point","LineString","Polygon"];class bb{constructor(i,a){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=i,this.options=a}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?rE[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(i){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const i=this.featureDistanceData.center,a=this.featureDistanceData.scale,{x:h,y}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(h*a-i[0])+this.featureDistanceData.bearing[1]*(y*a-i[1])}return 0}parseColor(i){let a=this._parseColorCache[i];return a||(a=this._parseColorCache[i]=Ci.parse(i)),a}getConfig(i){return this.options?this.options.get(i):null}}class ts{constructor(i,a,h,y,f){this.name=i,this.type=a,this._evaluate=h,this.args=y,this._overloadIndex=f}evaluate(i){if(!this._evaluate){const a=ts.definitions[this.name];this._evaluate=Array.isArray(a)?a[2]:a.overloads[this._overloadIndex][1]}return this._evaluate(i,this.args)}eachChild(i){this.args.forEach(i)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(i=>i.serialize()))}static parse(i,a){const h=i[0],y=ts.definitions[h];if(!y)return a.error(`Unknown expression "${h}". If you wanted a literal array, use ["literal", [...]].`,0);const f=Array.isArray(y)?y[0]:y.type,_=Array.isArray(y)?[[y[1],y[2]]]:y.overloads,w=[];let D=null,N=-1;for(const[b,T]of _){if(Array.isArray(b)&&b.length!==i.length-1)continue;w.push(b),N++,D=new zb(a.registry,a.path,null,a.scope,void 0,a._scope,a.options);const A=[];let S=!1;for(let C=1;C<i.length;C++){const k=i[C],P=Array.isArray(b)?b[C-1]:b.type,V=D.parse(k,1+A.length,P);if(!V){S=!0;break}A.push(V)}if(!S)if(Array.isArray(b)&&b.length!==A.length)D.error(`Expected ${b.length} arguments, but found ${A.length} instead.`);else{for(let C=0;C<A.length;C++){const k=Array.isArray(b)?b[C]:b.type,P=A[C];D.concat(C+1).checkSubtype(k,P.type)}if(D.errors.length===0)return new ts(h,f,T,A,N)}}if(w.length===1)a.errors.push(...D.errors);else{const b=(w.length?w:_.map(([A])=>A)).map(oE).join(" | "),T=[];for(let A=1;A<i.length;A++){const S=a.parse(i[A],1+T.length);if(!S)return null;T.push(vr(S.type))}a.error(`Expected arguments of type ${b}, but found (${T.join(", ")}) instead.`)}return null}static register(i,a){ts.definitions=a;for(const h in a)i[h]=ts}}function oE(u){return Array.isArray(u)?`(${u.map(vr).join(", ")})`:`(${vr(u.type)}...)`}class Ep{constructor(i,a,h){this.type=Ip,this.locale=h,this.caseSensitive=i,this.diacriticSensitive=a}static parse(i,a){if(i.length!==2)return a.error("Expected one argument.");const h=i[1];if(typeof h!="object"||Array.isArray(h))return a.error("Collator options argument must be an object.");const y=h["case-sensitive"]===void 0?a.parse(!1,1,ui):a.parseObjectValue(h["case-sensitive"],1,"case-sensitive",ui);if(!y)return null;const f=h["diacritic-sensitive"]===void 0?a.parse(!1,1,ui):a.parseObjectValue(h["diacritic-sensitive"],1,"diacritic-sensitive",ui);if(!f)return null;let _=null;return h.locale&&(_=a.parseObjectValue(h.locale,1,"locale",ci),!_)?null:new Ep(y,f,_)}evaluate(i){return new Tp(this.caseSensitive.evaluate(i),this.diacriticSensitive.evaluate(i),this.locale?this.locale.evaluate(i):null)}eachChild(i){i(this.caseSensitive),i(this.diacriticSensitive),this.locale&&i(this.locale)}outputDefined(){return!1}serialize(){const i={};return i["case-sensitive"]=this.caseSensitive.serialize(),i["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(i.locale=this.locale.serialize()),["collator",i]}}function Mb(u,i,a=0,h=u.length-1,y=Au){for(;h>a;){if(h-a>600){const D=h-a+1,N=i-a+1,b=Math.log(D),T=.5*Math.exp(2*b/3),A=.5*Math.sqrt(b*T*(D-T)/D)*(N-D/2<0?-1:1);Mb(u,i,Math.max(a,Math.floor(i-N*T/D+A)),Math.min(h,Math.floor(i+(D-N)*T/D+A)),y)}const f=u[i];let _=a,w=h;for(Cu(u,a,i),y(u[h],f)>0&&Cu(u,a,h);_<w;){for(Cu(u,_,w),_++,w--;y(u[_],f)<0;)_++;for(;y(u[w],f)>0;)w--}y(u[a],f)===0?Cu(u,a,w):(w++,Cu(u,w,h)),w<=i&&(a=w+1),i<=w&&(h=w-1)}}function Cu(u,i,a){const h=u[i];u[i]=u[a],u[a]=h}function Au(u,i){return u<i?-1:u>i?1:0}function sE(u){let i=0;for(let a,h,y=0,f=u.length,_=f-1;y<f;_=y++)a=u[y],h=u[_],i+=(h.x-a.x)*(a.y+h.y);return i}function nd(u,i){u[0]=Math.min(u[0],i[0]),u[1]=Math.min(u[1],i[1]),u[2]=Math.max(u[2],i[0]),u[3]=Math.max(u[3],i[1])}function yc(u,i){return!(u[0]<=i[0]||u[2]>=i[2]||u[1]<=i[1]||u[3]>=i[3])}function aE(u,i,a){const h=u[0]-i[0],y=u[1]-i[1],f=u[0]-a[0],_=u[1]-a[1];return h*_-f*y==0&&h*f<=0&&y*_<=0}function Nu(u,i,a=!1){let h=!1;for(let w=0,D=i.length;w<D;w++){const N=i[w];for(let b=0,T=N.length,A=T-1;b<T;A=b++){const S=N[A],C=N[b];if(aE(u,S,C))return a;(f=S)[1]>(y=u)[1]!=(_=C)[1]>y[1]&&y[0]<(_[0]-f[0])*(y[1]-f[1])/(_[1]-f[1])+f[0]&&(h=!h)}}var y,f,_;return h}function wb(u,i,a,h){const y=h[0]-a[0],f=h[1]-a[1],_=(u[0]-a[0])*f-y*(u[1]-a[1]),w=(i[0]-a[0])*f-y*(i[1]-a[1]);return _>0&&w<0||_<0&&w>0}function Dp(u,i,a,h){return(y=[h[0]-a[0],h[1]-a[1]])[0]*(f=[i[0]-u[0],i[1]-u[1]])[1]-y[1]*f[0]!=0&&!(!wb(u,i,a,h)||!wb(a,h,u,i));var y,f}const fs=8192;function oi(u,i){const a=(180+u[0])/360,h=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+u[1]*Math.PI/360)))/360,y=Math.pow(2,i.z);return[Math.round(a*y*fs),Math.round(h*y*fs)]}function En(u,i){for(let a=0;a<i.length;a++)if(Nu(u,i[a]))return!0;return!1}function U1(u,i,a){for(const h of a)for(let y=0,f=h.length,_=f-1;y<f;_=y++)if(Dp(u,i,h[_],h[y]))return!0;return!1}function Qn(u,i){for(let a=0;a<u.length;++a)if(!Nu(u[a],i))return!1;for(let a=0;a<u.length-1;++a)if(U1(u[a],u[a+1],i))return!1;return!0}function B1(u,i){for(let a=0;a<i.length;a++)if(Qn(u,i[a]))return!0;return!1}function id(u,i,a){const h=[];for(let y=0;y<u.length;y++){const f=[];for(let _=0;_<u[y].length;_++){const w=oi(u[y][_],a);nd(i,w),f.push(w)}h.push(f)}return h}function Un(u,i,a){const h=[];for(let y=0;y<u.length;y++){const f=id(u[y],i,a);h.push(f)}return h}function F1(u,i,a,h){if(u[0]<a[0]||u[0]>a[2]){const y=.5*h;let f=u[0]-a[0]>y?-h:a[0]-u[0]>y?h:0;f===0&&(f=u[0]-a[2]>y?-h:a[2]-u[0]>y?h:0),u[0]+=f}nd(i,u)}function Cp(u,i,a,h){const y=Math.pow(2,h.z)*fs,f=[h.x*fs,h.y*fs],_=[];if(!u)return _;for(const w of u)for(const D of w){const N=[D.x+f[0],D.y+f[1]];F1(N,i,a,y),_.push(N)}return _}function V1(u,i,a,h){const y=Math.pow(2,h.z)*fs,f=[h.x*fs,h.y*fs],_=[];if(!u)return _;for(const D of u){const N=[];for(const b of D){const T=[b.x+f[0],b.y+f[1]];nd(i,T),N.push(T)}_.push(N)}if(i[2]-i[0]<=y/2){(w=i)[0]=w[1]=1/0,w[2]=w[3]=-1/0;for(const D of _)for(const N of D)F1(N,i,a,y)}var w;return _}class El{constructor(i,a){this.type=ui,this.geojson=i,this.geometries=a}static parse(i,a){if(i.length!==2)return a.error(`'within' expression requires exactly one argument, but found ${i.length-1} instead.`);if(Sl(i[1])){const h=i[1];if(h.type==="FeatureCollection")for(let y=0;y<h.features.length;++y){const f=h.features[y].geometry.type;if(f==="Polygon"||f==="MultiPolygon")return new El(h,h.features[y].geometry)}else if(h.type==="Feature"){const y=h.geometry.type;if(y==="Polygon"||y==="MultiPolygon")return new El(h,h.geometry)}else if(h.type==="Polygon"||h.type==="MultiPolygon")return new El(h,h)}return a.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(i){if(i.geometry()!=null&&i.canonicalID()!=null){if(i.geometryType()==="Point")return function(a,h){const y=[1/0,1/0,-1/0,-1/0],f=[1/0,1/0,-1/0,-1/0],_=a.canonicalID();if(!_)return!1;if(h.type==="Polygon"){const w=id(h.coordinates,f,_),D=Cp(a.geometry(),y,f,_);if(!yc(y,f))return!1;for(const N of D)if(!Nu(N,w))return!1}if(h.type==="MultiPolygon"){const w=Un(h.coordinates,f,_),D=Cp(a.geometry(),y,f,_);if(!yc(y,f))return!1;for(const N of D)if(!En(N,w))return!1}return!0}(i,this.geometries);if(i.geometryType()==="LineString")return function(a,h){const y=[1/0,1/0,-1/0,-1/0],f=[1/0,1/0,-1/0,-1/0],_=a.canonicalID();if(!_)return!1;if(h.type==="Polygon"){const w=id(h.coordinates,f,_),D=V1(a.geometry(),y,f,_);if(!yc(y,f))return!1;for(const N of D)if(!Qn(N,w))return!1}if(h.type==="MultiPolygon"){const w=Un(h.coordinates,f,_),D=V1(a.geometry(),y,f,_);if(!yc(y,f))return!1;for(const N of D)if(!B1(N,w))return!1}return!0}(i,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const _c={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},_o=1/298.257223563,Ap=_o*(2-_o),Lu=Math.PI/180;class zu{static fromTile(i,a,h){const y=Math.PI*(1-2*(i+.5)/Math.pow(2,a)),f=Math.atan(.5*(Math.exp(y)-Math.exp(-y)))/Lu;return new zu(f,h)}static get units(){return _c}constructor(i,a){if(i===void 0)throw new Error("No latitude given.");if(a&&!_c[a])throw new Error(`Unknown unit ${a}. Use one of: ${Object.keys(_c).join(", ")}`);const h=6378.137*Lu*(a?_c[a]:1),y=Math.cos(i*Lu),f=1/(1-Ap*(1-y*y)),_=Math.sqrt(f);this.kx=h*_*y,this.ky=h*_*f*(1-Ap)}distance(i,a){const h=hr(i[0]-a[0])*this.kx,y=(i[1]-a[1])*this.ky;return Math.sqrt(h*h+y*y)}bearing(i,a){const h=hr(a[0]-i[0])*this.kx;return Math.atan2(h,(a[1]-i[1])*this.ky)/Lu}destination(i,a,h){const y=h*Lu;return this.offset(i,Math.sin(y)*a,Math.cos(y)*a)}offset(i,a,h){return[i[0]+a/this.kx,i[1]+h/this.ky]}lineDistance(i){let a=0;for(let h=0;h<i.length-1;h++)a+=this.distance(i[h],i[h+1]);return a}area(i){let a=0;for(let h=0;h<i.length;h++){const y=i[h];for(let f=0,_=y.length,w=_-1;f<_;w=f++)a+=hr(y[f][0]-y[w][0])*(y[f][1]+y[w][1])*(h?-1:1)}return Math.abs(a)/2*this.kx*this.ky}along(i,a){let h=0;if(a<=0)return i[0];for(let y=0;y<i.length-1;y++){const f=i[y],_=i[y+1],w=this.distance(f,_);if(h+=w,h>a)return Ga(f,_,(a-(h-w))/w)}return i[i.length-1]}pointToSegmentDistance(i,a,h){let[y,f]=a,_=hr(h[0]-y)*this.kx,w=(h[1]-f)*this.ky;if(_!==0||w!==0){const D=(hr(i[0]-y)*this.kx*_+(i[1]-f)*this.ky*w)/(_*_+w*w);D>1?(y=h[0],f=h[1]):D>0&&(y+=_/this.kx*D,f+=w/this.ky*D)}return _=hr(i[0]-y)*this.kx,w=(i[1]-f)*this.ky,Math.sqrt(_*_+w*w)}pointOnLine(i,a){let h=1/0,y=i[0][0],f=i[0][1],_=0,w=0;for(let D=0;D<i.length-1;D++){let N=i[D][0],b=i[D][1],T=hr(i[D+1][0]-N)*this.kx,A=(i[D+1][1]-b)*this.ky,S=0;T===0&&A===0||(S=(hr(a[0]-N)*this.kx*T+(a[1]-b)*this.ky*A)/(T*T+A*A),S>1?(N=i[D+1][0],b=i[D+1][1]):S>0&&(N+=T/this.kx*S,b+=A/this.ky*S)),T=hr(a[0]-N)*this.kx,A=(a[1]-b)*this.ky;const C=T*T+A*A;C<h&&(h=C,y=N,f=b,_=D,w=S)}return{point:[y,f],index:_,t:Math.max(0,Math.min(1,w))}}lineSlice(i,a,h){let y=this.pointOnLine(h,i),f=this.pointOnLine(h,a);if(y.index>f.index||y.index===f.index&&y.t>f.t){const N=y;y=f,f=N}const _=[y.point],w=y.index+1,D=f.index;!Np(h[w],_[0])&&w<=D&&_.push(h[w]);for(let N=w+1;N<=D;N++)_.push(h[N]);return Np(h[D],f.point)||_.push(f.point),_}lineSliceAlong(i,a,h){let y=0;const f=[];for(let _=0;_<h.length-1;_++){const w=h[_],D=h[_+1],N=this.distance(w,D);if(y+=N,y>i&&f.length===0&&f.push(Ga(w,D,(i-(y-N))/N)),y>=a)return f.push(Ga(w,D,(a-(y-N))/N)),f;y>i&&f.push(D)}return f}bufferPoint(i,a){const h=a/this.ky,y=a/this.kx;return[i[0]-y,i[1]-h,i[0]+y,i[1]+h]}bufferBBox(i,a){const h=a/this.ky,y=a/this.kx;return[i[0]-y,i[1]-h,i[2]+y,i[3]+h]}insideBBox(i,a){return hr(i[0]-a[0])>=0&&hr(i[0]-a[2])<=0&&i[1]>=a[1]&&i[1]<=a[3]}}function Np(u,i){return u[0]===i[0]&&u[1]===i[1]}function Ga(u,i,a){const h=hr(i[0]-u[0]);return[u[0]+h*a,u[1]+(i[1]-u[1])*a]}function hr(u){for(;u<-180;)u+=360;for(;u>180;)u-=360;return u}class $1{constructor(i=[],a=(h,y)=>h<y?-1:h>y?1:0){if(this.data=i,this.length=this.data.length,this.compare=a,this.length>0)for(let h=(this.length>>1)-1;h>=0;h--)this._down(h)}push(i){this.data.push(i),this._up(this.length++)}pop(){if(this.length===0)return;const i=this.data[0],a=this.data.pop();return--this.length>0&&(this.data[0]=a,this._down(0)),i}peek(){return this.data[0]}_up(i){const{data:a,compare:h}=this,y=a[i];for(;i>0;){const f=i-1>>1,_=a[f];if(h(y,_)>=0)break;a[i]=_,i=f}a[i]=y}_down(i){const{data:a,compare:h}=this,y=this.length>>1,f=a[i];for(;i<y;){let _=1+(i<<1);const w=_+1;if(w<this.length&&h(a[w],a[_])<0&&(_=w),h(a[_],f)>=0)break;a[i]=a[_],i=_}a[i]=f}}var Xt=8192;function Ib(u,i){return i.dist-u.dist}const ku=100,Lp=50;function zp(u){const i=[1/0,1/0,-1/0,-1/0];if(i.length!==u.length)return!1;for(let a=0;a<i.length;a++)if(i[a]!==u[a])return!1;return!0}function kp(u){return u[1]-u[0]+1}function Za(u,i){const a=u[1]>=u[0]&&u[1]<i;return a||console.warn("Distance Expression: Index is out of range"),a}function H1(u,i){if(u[0]>u[1])return[null,null];const a=kp(u);if(i){if(a===2)return[u,null];const h=Math.floor(a/2);return[[u[0],u[0]+h],[u[0]+h,u[1]]]}{if(a===1)return[u,null];const h=Math.floor(a/2)-1;return[[u[0],u[0]+h],[u[0]+h+1,u[1]]]}}function ps(u,i){const a=[1/0,1/0,-1/0,-1/0];if(!Za(i,u.length))return a;for(let h=i[0];h<=i[1];++h)nd(a,u[h]);return a}function Op(u){const i=[1/0,1/0,-1/0,-1/0];for(let a=0;a<u.length;++a)for(let h=0;h<u[a].length;++h)nd(i,u[a][h]);return i}function Ou(u,i,a){if(zp(u)||zp(i))return NaN;let h=0,y=0;return u[2]<i[0]&&(h=i[0]-u[2]),u[0]>i[2]&&(h=u[0]-i[2]),u[1]>i[3]&&(y=u[1]-i[3]),u[3]<i[1]&&(y=i[1]-u[3]),a.distance([0,0],[h,y])}function Tb(u){return 360*u-180}function Sb(u){return 360/Math.PI*Math.atan(Math.exp((180-360*u)*Math.PI/180))-90}function ms(u,i){const a=Math.pow(2,i.z),h=(u.y/Xt+i.y)/a;return[Tb((u.x/Xt+i.x)/a),Sb(h)]}function Eb(u,i){const a=[];for(let h=0;h<u.length;++h)a.push(ms(u[h],i));return a}function Q1(u,i,a){const h=a.pointOnLine(i,u).point;return a.distance(u,h)}function Y1(u,i,a,h,y){const f=a.slice(h[0],h[1]+1);let _=1/0;for(let w=i[0];w<=i[1];++w)if((_=Math.min(_,Q1(u[w],f,y)))===0)return 0;return _}function jp(u,i,a,h,y){const f=Math.min(y.pointToSegmentDistance(u,a,h),y.pointToSegmentDistance(i,a,h)),_=Math.min(y.pointToSegmentDistance(a,u,i),y.pointToSegmentDistance(h,u,i));return Math.min(f,_)}function Db(u,i,a,h,y){if(!Za(i,u.length)||!Za(h,a.length))return NaN;let f=1/0;for(let _=i[0];_<i[1];++_)for(let w=h[0];w<h[1];++w){if(Dp(u[_],u[_+1],a[w],a[w+1]))return 0;f=Math.min(f,jp(u[_],u[_+1],a[w],a[w+1],y))}return f}function Cb(u,i,a,h,y){if(!Za(i,u.length)||!Za(h,a.length))return NaN;let f=1/0;for(let _=i[0];_<=i[1];++_)for(let w=h[0];w<=h[1];++w)if((f=Math.min(f,y.distance(u[_],a[w])))===0)return f;return f}function Ab(u,i,a){if(Nu(u,i,!0))return 0;let h=1/0;for(const y of i){const f=y.length;if(f<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(y[0]!==y[f-1]&&(h=Math.min(h,a.pointToSegmentDistance(u,y[f-1],y[0])))===0||(h=Math.min(h,Q1(u,y,a)))===0)return h}return h}function Nb(u,i,a,h){if(!Za(i,u.length))return NaN;for(let f=i[0];f<=i[1];++f)if(Nu(u[f],a,!0))return 0;let y=1/0;for(let f=i[0];f<i[1];++f)for(const _ of a)for(let w=0,D=_.length,N=D-1;w<D;N=w++){if(Dp(u[f],u[f+1],_[N],_[w]))return 0;y=Math.min(y,jp(u[f],u[f+1],_[N],_[w],h))}return y}function G1(u,i){for(const a of u)for(let h=0;h<=a.length-1;++h)if(Nu(a[h],i,!0))return!0;return!1}function Lb(u,i,a,h=1/0){const y=Op(u),f=Op(i);if(h!==1/0&&Ou(y,f,a)>=h)return h;if(yc(y,f)){if(G1(u,i))return 0}else if(G1(i,u))return 0;let _=h;for(const w of u)for(let D=0,N=w.length,b=N-1;D<N;b=D++)for(const T of i)for(let A=0,S=T.length,C=S-1;A<S;C=A++){if(Dp(w[b],w[D],T[C],T[A]))return 0;_=Math.min(_,jp(w[b],w[D],T[C],T[A],a))}return _}function rd(u,i,a,h,y,f,_){if(f===null||_===null)return;const w=Ou(ps(h,f),ps(y,_),a);w<i&&u.push({dist:w,range1:f,range2:_})}function Rp(u,i,a,h,y=1/0){let f=Math.min(h.distance(u[0],a[0][0]),y);if(f===0)return f;const _=new $1([{dist:0,range1:[0,u.length-1],range2:[0,0]}],Ib),w=i?Lp:ku,D=Op(a);for(;_.length;){const N=_.pop();if(N.dist>=f)continue;const b=N.range1;if(kp(b)<=w){if(!Za(b,u.length))return NaN;if(i){const T=Nb(u,b,a,h);if((f=Math.min(f,T))===0)return f}else for(let T=b[0];T<=b[1];++T){const A=Ab(u[T],a,h);if((f=Math.min(f,A))===0)return f}}else{const T=H1(b,i);if(T[0]!==null){const A=Ou(ps(u,T[0]),D,h);A<f&&_.push({dist:A,range1:T[0],range2:[0,0]})}if(T[1]!==null){const A=Ou(ps(u,T[1]),D,h);A<f&&_.push({dist:A,range1:T[1],range2:[0,0]})}}}return f}function od(u,i,a,h,y,f=1/0){let _=Math.min(f,y.distance(u[0],a[0]));if(_===0)return _;const w=new $1([{dist:0,range1:[0,u.length-1],range2:[0,a.length-1]}],Ib),D=i?Lp:ku,N=h?Lp:ku;for(;w.length;){const b=w.pop();if(b.dist>=_)continue;const T=b.range1,A=b.range2;if(kp(T)<=D&&kp(A)<=N){if(!Za(T,u.length)||!Za(A,a.length))return NaN;if(i&&h?_=Math.min(_,Db(u,T,a,A,y)):i||h?i&&!h?_=Math.min(_,Y1(a,A,u,T,y)):!i&&h&&(_=Math.min(_,Y1(u,T,a,A,y))):_=Math.min(_,Cb(u,T,a,A,y)),_===0)return _}else{const S=H1(T,i),C=H1(A,h);rd(w,_,y,u,a,S[0],C[0]),rd(w,_,y,u,a,S[0],C[1]),rd(w,_,y,u,a,S[1],C[0]),rd(w,_,y,u,a,S[1],C[1])}}return _}function ju(u,i,a,h,y=1/0){let f=y;const _=ps(u,[0,u.length-1]);for(const w of a)if(!(f!==1/0&&Ou(_,ps(w,[0,w.length-1]),h)>=f)&&(f=Math.min(f,od(u,i,w,!0,h,f)),f===0))return f;return f}function sd(u,i,a,h,y=1/0){let f=y;const _=ps(u,[0,u.length-1]);for(const w of a){if(f!==1/0&&Ou(_,Op(w),h)>=f)continue;const D=Rp(u,i,w,h,f);if(isNaN(D))return D;if((f=Math.min(f,D))===0)return f}return f}function Pp(u){return u==="Point"||u==="MultiPoint"||u==="LineString"||u==="MultiLineString"||u==="Polygon"||u==="MultiPolygon"}class Dl{constructor(i,a){this.type=gn,this.geojson=i,this.geometries=a}static parse(i,a){if(i.length!==2)return a.error(`'distance' expression requires either one argument, but found ' ${i.length-1} instead.`);if(Sl(i[1])){const h=i[1];if(h.type==="FeatureCollection"){for(let y=0;y<h.features.length;++y)if(Pp(h.features[y].geometry.type))return new Dl(h,h.features[y].geometry)}else if(h.type==="Feature"){if(Pp(h.geometry.type))return new Dl(h,h.geometry)}else if(Pp(h.type))return new Dl(h,h)}return a.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(i){const a=i.geometry(),h=i.canonicalID();if(a!=null&&h!=null){if(i.geometryType()==="Point")return function(y,f,_){const w=[];for(const N of y)for(const b of N)w.push(ms(b,f));const D=new zu(w[0][1],"meters");return _.type==="Point"||_.type==="MultiPoint"||_.type==="LineString"?od(w,!1,_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",D):_.type==="MultiLineString"?ju(w,!1,_.coordinates,D):_.type==="Polygon"||_.type==="MultiPolygon"?sd(w,!1,_.type==="Polygon"?[_.coordinates]:_.coordinates,D):null}(a,h,this.geometries);if(i.geometryType()==="LineString")return function(y,f,_){const w=[];for(const N of y){const b=[];for(const T of N)b.push(ms(T,f));w.push(b)}const D=new zu(w[0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return ju(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",w,D);if(_.type==="MultiLineString"){let N=1/0;for(let b=0;b<_.coordinates.length;b++){const T=ju(_.coordinates[b],!0,w,D,N);if(isNaN(T))return T;if((N=Math.min(N,T))===0)return N}return N}if(_.type==="Polygon"||_.type==="MultiPolygon"){let N=1/0;for(let b=0;b<w.length;b++){const T=sd(w[b],!0,_.type==="Polygon"?[_.coordinates]:_.coordinates,D,N);if(isNaN(T))return T;if((N=Math.min(N,T))===0)return N}return N}return null}(a,h,this.geometries);if(i.geometryType()==="Polygon")return function(y,f,_){const w=[];for(const N of function(b,T){const A=b.length;if(A<=1)return[b];const S=[];let C,k;for(let P=0;P<A;P++){const V=sE(b[P]);V!==0&&(b[P].area=Math.abs(V),k===void 0&&(k=V<0),k===V<0?(C&&S.push(C),C=[b[P]]):C.push(b[P]))}return C&&S.push(C),S}(y)){const b=[];for(let T=0;T<N.length;++T)b.push(Eb(N[T],f));w.push(b)}const D=new zu(w[0][0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return sd(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",w,D);if(_.type==="MultiLineString"){let N=1/0;for(let b=0;b<_.coordinates.length;b++){const T=sd(_.coordinates[b],!0,w,D,N);if(isNaN(T))return T;if((N=Math.min(N,T))===0)return N}return N}return _.type==="Polygon"||_.type==="MultiPolygon"?function(N,b,T){let A=1/0;for(const S of N)for(const C of b){const k=Lb(S,C,T,A);if(isNaN(k))return k;if((A=Math.min(A,k))===0)return A}return A}(_.type==="Polygon"?[_.coordinates]:_.coordinates,w,D):null}(a,h,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function Cl(u,i){switch(u){case"string":return $o(i);case"number":return+i;case"boolean":return!!i;case"color":return Ci.parse(i);case"formatted":return Co.fromString($o(i));case"resolvedImage":return Vo.fromString($o(i))}return i}function hi(u,i,a,h){return h!==void 0&&(u=h*Math.round(u/h)),i!==void 0&&u<i&&(u=i),a!==void 0&&u>a&&(u=a),u}class Ru{constructor(i,a,h){this.type=i,this.key=a,this.scope=h}static parse(i,a){let h=a.expectedType;if(h==null&&(h=fi),i.length<2||i.length>3)return a.error("Invalid number of arguments for 'config' expression.");const y=a.parse(i[1],1);if(!(y instanceof ea))return a.error("Key name of 'config' expression must be a string literal.");if(i.length>=3){const f=a.parse(i[2],2);return f instanceof ea?new Ru(h,$o(y.value),$o(f.value)):a.error("Scope of 'config' expression must be a string literal.")}return new Ru(h,$o(y.value))}evaluate(i){const a=[this.key,this.scope,i.scope].filter(Boolean).join(""),h=i.getConfig(a);if(!h)return null;const{type:y,value:f,values:_,minValue:w,maxValue:D,stepValue:N}=h,b=h.default.evaluate(i);let T=b;if(f){const A=i.scope;i.scope=(A||"").split("").slice(1).join(""),T=f.evaluate(i),i.scope=A}return y&&(T=Cl(y,T)),T===void 0||w===void 0&&D===void 0&&N===void 0||(typeof T=="number"?T=hi(T,w,D,N):Array.isArray(T)&&(T=T.map(A=>typeof A=="number"?hi(A,w,D,N):A))),f!==void 0&&T!==void 0&&_&&!_.includes(T)&&(T=b,y&&(T=Cl(y,T))),(y&&y!==this.type||T!==void 0&&Lr(T)!==this.type)&&(T=Cl(this.type.kind,T)),T}eachChild(){}outputDefined(){return!1}serialize(){const i=["config",this.key];return this.scope&&i.concat(this.key),i}}function ad(u){if(u instanceof ts&&(u.name==="get"&&u.args.length===1||u.name==="feature-state"||u.name==="has"&&u.args.length===1||u.name==="properties"||u.name==="geometry-type"||u.name==="id"||/^filter-/.test(u.name))||u instanceof El||u instanceof Dl)return!1;let i=!0;return u.eachChild(a=>{i&&!ad(a)&&(i=!1)}),i}function Up(u){if(u instanceof ts&&u.name==="feature-state")return!1;let i=!0;return u.eachChild(a=>{i&&!Up(a)&&(i=!1)}),i}function Bp(u){if(u instanceof Ru)return new Set([u.key]);let i=new Set;return u.eachChild(a=>{i=new Set([...i,...Bp(a)])}),i}function ld(u,i){if(u instanceof ts&&i.indexOf(u.name)>=0)return!1;let a=!0;return u.eachChild(h=>{a&&!ld(h,i)&&(a=!1)}),a}class Fi{constructor(i,a){this.type=a.type,this.name=i,this.boundExpression=a}static parse(i,a){if(i.length!==2||typeof i[1]!="string")return a.error("'var' expression requires exactly one string literal argument.");const h=i[1];return a.scope.has(h)?new Fi(h,a.scope.get(h)):a.error(`Unknown variable "${h}". Make sure "${h}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(i){return this.boundExpression.evaluate(i)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Z1{constructor(i,a=[],h,y=new wp,f=[],_,w){this.registry=i,this.path=a,this.key=a.map(D=>typeof D=="string"?`['${D}']`:`[${D}]`).join(""),this.scope=y,this.errors=f,this.expectedType=h,this._scope=_,this.options=w}parse(i,a,h,y,f={}){return a||h?this.concat(a,null,h,y)._parse(i,f):this._parse(i,f)}parseObjectValue(i,a,h,y,f,_={}){return this.concat(a,h,y,f)._parse(i,_)}_parse(i,a){function h(y,f,_){return _==="assert"?new ta(f,[y]):_==="coerce"?new Ya(f,[y]):y}if(i!==null&&typeof i!="string"&&typeof i!="boolean"&&typeof i!="number"||(i=["literal",i]),Array.isArray(i)){if(i.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const y=typeof i[0]=="string"?this.registry[i[0]]:void 0;if(y){let f=y.parse(i,this);if(!f)return null;if(this.expectedType){const _=this.expectedType,w=f.type;if(_.kind!=="string"&&_.kind!=="number"&&_.kind!=="boolean"&&_.kind!=="object"&&_.kind!=="array"||w.kind!=="value")if(_.kind!=="color"&&_.kind!=="formatted"&&_.kind!=="resolvedImage"||w.kind!=="value"&&w.kind!=="string"){if(this.checkSubtype(_,w))return null}else f=h(f,_,a.typeAnnotation||"coerce");else f=h(f,_,a.typeAnnotation||"assert")}if(!(f instanceof ea)&&f.type.kind!=="resolvedImage"&&W1(f)){const _=new bb(this._scope,this.options);try{f=new ea(f.type,f.evaluate(_))}catch(w){return this.error(w.message),null}}return f}return Ya.parse(["to-array",i],this)}return this.error(i===void 0?"'undefined' value invalid. Use null instead.":typeof i=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof i} instead.`)}concat(i,a,h,y){let f=typeof i=="number"?this.path.concat(i):this.path;f=typeof a=="string"?f.concat(a):f;const _=y?this.scope.concat(y):this.scope;return new Z1(this.registry,f,h||null,_,this.errors,this._scope,this.options)}error(i,...a){const h=`${this.key}${a.map(y=>`[${y}]`).join("")}`;this.errors.push(new Ma(h,i))}checkSubtype(i,a){const h=Su(i,a);return h&&this.error(h),h}}var zb=Z1;function W1(u){if(u instanceof Fi)return W1(u.boundExpression);if(u instanceof ts&&u.name==="error"||u instanceof Ep||u instanceof El||u instanceof Dl||u instanceof Ru)return!1;const i=u instanceof Ya||u instanceof ta;let a=!0;return u.eachChild(h=>{a=i?a&&W1(h):a&&h instanceof ea}),!!a&&ad(u)&&ld(u,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function Fp(u,i){const a=u.length-1;let h,y,f=0,_=a,w=0;for(;f<=_;)if(w=Math.floor((f+_)/2),h=u[w],y=u[w+1],h<=i){if(w===a||i<y)return w;f=w+1}else{if(!(h>i))throw new Xr("Input is not a number.");_=w-1}return 0}class cd{constructor(i,a,h){this.type=i,this.input=a,this.labels=[],this.outputs=[];for(const[y,f]of h)this.labels.push(y),this.outputs.push(f)}static parse(i,a){if(i.length-1<4)return a.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if((i.length-1)%2!=0)return a.error("Expected an even number of arguments.");const h=a.parse(i[1],1,gn);if(!h)return null;const y=[];let f=null;a.expectedType&&a.expectedType.kind!=="value"&&(f=a.expectedType);for(let _=1;_<i.length;_+=2){const w=_===1?-1/0:i[_],D=i[_+1],N=_,b=_+1;if(typeof w!="number")return a.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',N);if(y.length&&y[y.length-1][0]>=w)return a.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',N);const T=a.parse(D,b,f);if(!T)return null;f=f||T.type,y.push([w,T])}return new cd(f,h,y)}evaluate(i){const a=this.labels,h=this.outputs;if(a.length===1)return h[0].evaluate(i);const y=this.input.evaluate(i);if(y<=a[0])return h[0].evaluate(i);const f=a.length;return y>=a[f-1]?h[f-1].evaluate(i):h[Fp(a,y)].evaluate(i)}eachChild(i){i(this.input);for(const a of this.outputs)i(a)}outputDefined(){return this.outputs.every(i=>i.outputDefined())}serialize(){const i=["step",this.input.serialize()];for(let a=0;a<this.labels.length;a++)a>0&&i.push(this.labels[a]),i.push(this.outputs[a].serialize());return i}}const kb=.95047,Ob=1.08883,jb=4/29,Pu=6/29,Rb=3*Pu*Pu,lE=Pu*Pu*Pu,cE=Math.PI/180,uE=180/Math.PI;function q1(u){return u>lE?Math.pow(u,1/3):u/Rb+jb}function K1(u){return u>Pu?u*u*u:Rb*(u-jb)}function X1(u){return 255*(u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055)}function J1(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}function Pb(u){const i=J1(u.r),a=J1(u.g),h=J1(u.b),y=q1((.4124564*i+.3575761*a+.1804375*h)/kb),f=q1((.2126729*i+.7151522*a+.072175*h)/1);return{l:116*f-16,a:500*(y-f),b:200*(f-q1((.0193339*i+.119192*a+.9503041*h)/Ob)),alpha:u.a}}function Ub(u){let i=(u.l+16)/116,a=isNaN(u.a)?i:i+u.a/500,h=isNaN(u.b)?i:i-u.b/200;return i=1*K1(i),a=kb*K1(a),h=Ob*K1(h),new Ci(X1(3.2404542*a-1.5371385*i-.4985314*h),X1(-.969266*a+1.8760108*i+.041556*h),X1(.0556434*a-.2040259*i+1.0572252*h),u.alpha)}function hE(u,i,a){const h=i-u;return u+a*(h>180||h<-180?h-360*Math.round(h/360):h)}const ud={forward:Pb,reverse:Ub,interpolate:function(u,i,a){return{l:Ln(u.l,i.l,a),a:Ln(u.a,i.a,a),b:Ln(u.b,i.b,a),alpha:Ln(u.alpha,i.alpha,a)}}},hd={forward:function(u){const{l:i,a,b:h}=Pb(u),y=Math.atan2(h,a)*uE;return{h:y<0?y+360:y,c:Math.sqrt(a*a+h*h),l:i,alpha:u.a}},reverse:function(u){const i=u.h*cE,a=u.c;return Ub({l:u.l,a:Math.cos(i)*a,b:Math.sin(i)*a,alpha:u.alpha})},interpolate:function(u,i,a){return{h:hE(u.h,i.h,a),c:Ln(u.c,i.c,a),l:Ln(u.l,i.l,a),alpha:Ln(u.alpha,i.alpha,a)}}};var Bb=Object.freeze({__proto__:null,hcl:hd,lab:ud});class gs{constructor(i,a,h,y,f){this.type=i,this.operator=a,this.interpolation=h,this.input=y,this.labels=[],this.outputs=[];for(const[_,w]of f)this.labels.push(_),this.outputs.push(w)}static interpolationFactor(i,a,h,y){let f=0;if(i.name==="exponential")f=e0(a,i.base,h,y);else if(i.name==="linear")f=e0(a,1,h,y);else if(i.name==="cubic-bezier"){const _=i.controlPoints;f=new Gt(_[0],_[1],_[2],_[3]).solve(e0(a,1,h,y))}return f}static parse(i,a){let[h,y,f,..._]=i;if(!Array.isArray(y)||y.length===0)return a.error("Expected an interpolation type expression.",1);if(y[0]==="linear")y={name:"linear"};else if(y[0]==="exponential"){const N=y[1];if(typeof N!="number")return a.error("Exponential interpolation requires a numeric base.",1,1);y={name:"exponential",base:N}}else{if(y[0]!=="cubic-bezier")return a.error(`Unknown interpolation type ${String(y[0])}`,1,0);{const N=y.slice(1);if(N.length!==4||N.some(b=>typeof b!="number"||b<0||b>1))return a.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);y={name:"cubic-bezier",controlPoints:N}}}if(i.length-1<4)return a.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if((i.length-1)%2!=0)return a.error("Expected an even number of arguments.");if(f=a.parse(f,2,gn),!f)return null;const w=[];let D=null;h==="interpolate-hcl"||h==="interpolate-lab"?D=es:a.expectedType&&a.expectedType.kind!=="value"&&(D=a.expectedType);for(let N=0;N<_.length;N+=2){const b=_[N],T=_[N+1],A=N+3,S=N+4;if(typeof b!="number")return a.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',A);if(w.length&&w[w.length-1][0]>=b)return a.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',A);const C=a.parse(T,S,D);if(!C)return null;D=D||C.type,w.push([b,C])}return D.kind==="number"||D.kind==="color"||D.kind==="array"&&D.itemType.kind==="number"&&typeof D.N=="number"?new gs(D,h,y,f,w):a.error(`Type ${vr(D)} is not interpolatable.`)}evaluate(i){const a=this.labels,h=this.outputs;if(a.length===1)return h[0].evaluate(i);const y=this.input.evaluate(i);if(y<=a[0])return h[0].evaluate(i);const f=a.length;if(y>=a[f-1])return h[f-1].evaluate(i);const _=Fp(a,y),w=gs.interpolationFactor(this.interpolation,y,a[_],a[_+1]),D=h[_].evaluate(i),N=h[_+1].evaluate(i);return this.operator==="interpolate"?pc[this.type.kind.toLowerCase()](D,N,w):this.operator==="interpolate-hcl"?hd.reverse(hd.interpolate(hd.forward(D),hd.forward(N),w)):ud.reverse(ud.interpolate(ud.forward(D),ud.forward(N),w))}eachChild(i){i(this.input);for(const a of this.outputs)i(a)}outputDefined(){return this.outputs.every(i=>i.outputDefined())}serialize(){let i;i=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const a=[this.operator,i,this.input.serialize()];for(let h=0;h<this.labels.length;h++)a.push(this.labels[h],this.outputs[h].serialize());return a}}function e0(u,i,a,h){const y=h-a,f=u-a;return y===0?0:i===1?f/y:(Math.pow(i,f)-1)/(Math.pow(i,y)-1)}class Vp{constructor(i,a){this.type=i,this.args=a}static parse(i,a){if(i.length<2)return a.error("Expectected at least one argument.");let h=null;const y=a.expectedType;y&&y.kind!=="value"&&(h=y);const f=[];for(const w of i.slice(1)){const D=a.parse(w,1+f.length,h,void 0,{typeAnnotation:"omit"});if(!D)return null;h=h||D.type,f.push(D)}const _=y&&f.some(w=>Su(y,w.type));return new Vp(_?fi:h,f)}evaluate(i){let a,h=null,y=0;for(const f of this.args){if(y++,h=f.evaluate(i),h&&h instanceof Vo&&!h.available&&(a||(a=h),h=null,y===this.args.length))return a;if(h!==null)break}return h}eachChild(i){this.args.forEach(i)}outputDefined(){return this.args.every(i=>i.outputDefined())}serialize(){const i=["coalesce"];return this.eachChild(a=>{i.push(a.serialize())}),i}}class $p{constructor(i,a){this.type=a.type,this.bindings=[].concat(i),this.result=a}evaluate(i){return this.result.evaluate(i)}eachChild(i){for(const a of this.bindings)i(a[1]);i(this.result)}static parse(i,a){if(i.length<4)return a.error(`Expected at least 3 arguments, but found ${i.length-1} instead.`);const h=[];for(let f=1;f<i.length-1;f+=2){const _=i[f];if(typeof _!="string")return a.error(`Expected string, but found ${typeof _} instead.`,f);if(/[^a-zA-Z0-9_]/.test(_))return a.error("Variable names must contain only alphanumeric characters or '_'.",f);const w=a.parse(i[f+1],f+1);if(!w)return null;h.push([_,w])}const y=a.parse(i[i.length-1],i.length-1,a.expectedType,h);return y?new $p(h,y):null}outputDefined(){return this.result.outputDefined()}serialize(){const i=["let"];for(const[a,h]of this.bindings)i.push(a,h.serialize());return i.push(this.result.serialize()),i}}class t0{constructor(i,a,h){this.type=i,this.index=a,this.input=h}static parse(i,a){if(i.length!==3)return a.error(`Expected 2 arguments, but found ${i.length-1} instead.`);const h=a.parse(i[1],1,gn),y=a.parse(i[2],2,Fo(a.expectedType||fi));return h&&y?new t0(y.type.itemType,h,y):null}evaluate(i){const a=this.index.evaluate(i),h=this.input.evaluate(i);if(a<0)throw new Xr(`Array index out of bounds: ${a} < 0.`);if(a>=h.length)throw new Xr(`Array index out of bounds: ${a} > ${h.length-1}.`);if(a!==Math.floor(a))throw new Xr(`Array index must be an integer, but found ${a} instead.`);return h[a]}eachChild(i){i(this.index),i(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class n0{constructor(i,a){this.type=ui,this.needle=i,this.haystack=a}static parse(i,a){if(i.length!==3)return a.error(`Expected 2 arguments, but found ${i.length-1} instead.`);const h=a.parse(i[1],1,fi),y=a.parse(i[2],2,fi);return h&&y?Eu(h.type,[ui,ci,gn,Js,fi])?new n0(h,y):a.error(`Expected first argument to be of type boolean, string, number or null, but found ${vr(h.type)} instead`):null}evaluate(i){const a=this.needle.evaluate(i),h=this.haystack.evaluate(i);if(h==null)return!1;if(!wa(a,["boolean","string","number","null"]))throw new Xr(`Expected first argument to be of type boolean, string, number or null, but found ${vr(Lr(a))} instead.`);if(!wa(h,["string","array"]))throw new Xr(`Expected second argument to be of type array or string, but found ${vr(Lr(h))} instead.`);return h.indexOf(a)>=0}eachChild(i){i(this.needle),i(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Hp{constructor(i,a,h){this.type=gn,this.needle=i,this.haystack=a,this.fromIndex=h}static parse(i,a){if(i.length<=2||i.length>=5)return a.error(`Expected 3 or 4 arguments, but found ${i.length-1} instead.`);const h=a.parse(i[1],1,fi),y=a.parse(i[2],2,fi);if(!h||!y)return null;if(!Eu(h.type,[ui,ci,gn,Js,fi]))return a.error(`Expected first argument to be of type boolean, string, number or null, but found ${vr(h.type)} instead`);if(i.length===4){const f=a.parse(i[3],3,gn);return f?new Hp(h,y,f):null}return new Hp(h,y)}evaluate(i){const a=this.needle.evaluate(i),h=this.haystack.evaluate(i);if(!wa(a,["boolean","string","number","null"]))throw new Xr(`Expected first argument to be of type boolean, string, number or null, but found ${vr(Lr(a))} instead.`);if(!wa(h,["string","array"]))throw new Xr(`Expected second argument to be of type array or string, but found ${vr(Lr(h))} instead.`);if(this.fromIndex){const y=this.fromIndex.evaluate(i);return h.indexOf(a,y)}return h.indexOf(a)}eachChild(i){i(this.needle),i(this.haystack),this.fromIndex&&i(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const i=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),i]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class i0{constructor(i,a,h,y,f,_){this.inputType=i,this.type=a,this.input=h,this.cases=y,this.outputs=f,this.otherwise=_}static parse(i,a){if(i.length<5)return a.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if(i.length%2!=1)return a.error("Expected an even number of arguments.");let h,y;a.expectedType&&a.expectedType.kind!=="value"&&(y=a.expectedType);const f={},_=[];for(let N=2;N<i.length-1;N+=2){let b=i[N];const T=i[N+1];Array.isArray(b)||(b=[b]);const A=a.concat(N);if(b.length===0)return A.error("Expected at least one branch label.");for(const C of b){if(typeof C!="number"&&typeof C!="string")return A.error("Branch labels must be numbers or strings.");if(typeof C=="number"&&Math.abs(C)>Number.MAX_SAFE_INTEGER)return A.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof C=="number"&&Math.floor(C)!==C)return A.error("Numeric branch labels must be integer values.");if(h){if(A.checkSubtype(h,Lr(C)))return null}else h=Lr(C);if(f[String(C)]!==void 0)return A.error("Branch labels must be unique.");f[String(C)]=_.length}const S=a.parse(T,N,y);if(!S)return null;y=y||S.type,_.push(S)}const w=a.parse(i[1],1,fi);if(!w)return null;const D=a.parse(i[i.length-1],i.length-1,y);return D?w.type.kind!=="value"&&a.concat(1).checkSubtype(h,w.type)?null:new i0(h,y,w,f,_,D):null}evaluate(i){const a=this.input.evaluate(i);return(Lr(a)===this.inputType&&this.outputs[this.cases[a]]||this.otherwise).evaluate(i)}eachChild(i){i(this.input),this.outputs.forEach(i),i(this.otherwise)}outputDefined(){return this.outputs.every(i=>i.outputDefined())&&this.otherwise.outputDefined()}serialize(){const i=["match",this.input.serialize()],a=Object.keys(this.cases).sort(),h=[],y={};for(const _ of a){const w=y[this.cases[_]];w===void 0?(y[this.cases[_]]=h.length,h.push([this.cases[_],[_]])):h[w][1].push(_)}const f=_=>this.inputType.kind==="number"?Number(_):_;for(const[_,w]of h)i.push(w.length===1?f(w[0]):w.map(f)),i.push(this.outputs[_].serialize());return i.push(this.otherwise.serialize()),i}}class dd{constructor(i,a,h){this.type=i,this.branches=a,this.otherwise=h}static parse(i,a){if(i.length<4)return a.error(`Expected at least 3 arguments, but found only ${i.length-1}.`);if(i.length%2!=0)return a.error("Expected an odd number of arguments.");let h;a.expectedType&&a.expectedType.kind!=="value"&&(h=a.expectedType);const y=[];for(let _=1;_<i.length-1;_+=2){const w=a.parse(i[_],_,ui);if(!w)return null;const D=a.parse(i[_+1],_+1,h);if(!D)return null;y.push([w,D]),h=h||D.type}const f=a.parse(i[i.length-1],i.length-1,h);return f?new dd(h,y,f):null}evaluate(i){for(const[a,h]of this.branches)if(a.evaluate(i))return h.evaluate(i);return this.otherwise.evaluate(i)}eachChild(i){for(const[a,h]of this.branches)i(a),i(h);i(this.otherwise)}outputDefined(){return this.branches.every(([i,a])=>a.outputDefined())&&this.otherwise.outputDefined()}serialize(){const i=["case"];return this.eachChild(a=>{i.push(a.serialize())}),i}}class Qp{constructor(i,a,h,y){this.type=i,this.input=a,this.beginIndex=h,this.endIndex=y}static parse(i,a){if(i.length<=2||i.length>=5)return a.error(`Expected 3 or 4 arguments, but found ${i.length-1} instead.`);const h=a.parse(i[1],1,fi),y=a.parse(i[2],2,gn);if(!h||!y)return null;if(!Eu(h.type,[Fo(fi),ci,fi]))return a.error(`Expected first argument to be of type array or string, but found ${vr(h.type)} instead`);if(i.length===4){const f=a.parse(i[3],3,gn);return f?new Qp(h.type,h,y,f):null}return new Qp(h.type,h,y)}evaluate(i){const a=this.input.evaluate(i),h=this.beginIndex.evaluate(i);if(!wa(a,["string","array"]))throw new Xr(`Expected first argument to be of type array or string, but found ${vr(Lr(a))} instead.`);if(this.endIndex){const y=this.endIndex.evaluate(i);return a.slice(h,y)}return a.slice(h)}eachChild(i){i(this.input),i(this.beginIndex),this.endIndex&&i(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const i=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),i]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function r0(u,i){return u==="=="||u==="!="?i.kind==="boolean"||i.kind==="string"||i.kind==="number"||i.kind==="null"||i.kind==="value":i.kind==="string"||i.kind==="number"||i.kind==="value"}function Fb(u,i,a,h){return h.compare(i,a)===0}function Uu(u,i,a){const h=u!=="=="&&u!=="!=";return class xF{constructor(f,_,w){this.type=ui,this.lhs=f,this.rhs=_,this.collator=w,this.hasUntypedArgument=f.type.kind==="value"||_.type.kind==="value"}static parse(f,_){if(f.length!==3&&f.length!==4)return _.error("Expected two or three arguments.");const w=f[0];let D=_.parse(f[1],1,fi);if(!D)return null;if(!r0(w,D.type))return _.concat(1).error(`"${w}" comparisons are not supported for type '${vr(D.type)}'.`);let N=_.parse(f[2],2,fi);if(!N)return null;if(!r0(w,N.type))return _.concat(2).error(`"${w}" comparisons are not supported for type '${vr(N.type)}'.`);if(D.type.kind!==N.type.kind&&D.type.kind!=="value"&&N.type.kind!=="value")return _.error(`Cannot compare types '${vr(D.type)}' and '${vr(N.type)}'.`);h&&(D.type.kind==="value"&&N.type.kind!=="value"?D=new ta(N.type,[D]):D.type.kind!=="value"&&N.type.kind==="value"&&(N=new ta(D.type,[N])));let b=null;if(f.length===4){if(D.type.kind!=="string"&&N.type.kind!=="string"&&D.type.kind!=="value"&&N.type.kind!=="value")return _.error("Cannot use collator to compare non-string types.");if(b=_.parse(f[3],3,Ip),!b)return null}return new xF(D,N,b)}evaluate(f){const _=this.lhs.evaluate(f),w=this.rhs.evaluate(f);if(h&&this.hasUntypedArgument){const D=Lr(_),N=Lr(w);if(D.kind!==N.kind||D.kind!=="string"&&D.kind!=="number")throw new Xr(`Expected arguments for "${u}" to be (string, string) or (number, number), but found (${D.kind}, ${N.kind}) instead.`)}if(this.collator&&!h&&this.hasUntypedArgument){const D=Lr(_),N=Lr(w);if(D.kind!=="string"||N.kind!=="string")return i(f,_,w)}return this.collator?a(f,_,w,this.collator.evaluate(f)):i(f,_,w)}eachChild(f){f(this.lhs),f(this.rhs),this.collator&&f(this.collator)}outputDefined(){return!0}serialize(){const f=[u];return this.eachChild(_=>{f.push(_.serialize())}),f}}}const dE=Uu("==",function(u,i,a){return i===a},Fb),Vb=Uu("!=",function(u,i,a){return i!==a},function(u,i,a,h){return!Fb(0,i,a,h)}),$b=Uu("<",function(u,i,a){return i<a},function(u,i,a,h){return h.compare(i,a)<0}),Bu=Uu(">",function(u,i,a){return i>a},function(u,i,a,h){return h.compare(i,a)>0}),Hb=Uu("<=",function(u,i,a){return i<=a},function(u,i,a,h){return h.compare(i,a)<=0}),Qb=Uu(">=",function(u,i,a){return i>=a},function(u,i,a,h){return h.compare(i,a)>=0});class o0{constructor(i,a,h,y,f,_){this.type=ci,this.number=i,this.locale=a,this.currency=h,this.unit=y,this.minFractionDigits=f,this.maxFractionDigits=_}static parse(i,a){if(i.length!==3)return a.error("Expected two arguments.");const h=a.parse(i[1],1,gn);if(!h)return null;const y=i[2];if(typeof y!="object"||Array.isArray(y))return a.error("NumberFormat options argument must be an object.");let f=null;if(y.locale&&(f=a.parseObjectValue(y.locale,2,"locale",ci),!f))return null;let _=null;if(y.currency&&(_=a.parseObjectValue(y.currency,2,"currency",ci),!_))return null;let w=null;if(y.unit&&(w=a.parseObjectValue(y.unit,2,"unit",ci),!w))return null;let D=null;if(y["min-fraction-digits"]&&(D=a.parseObjectValue(y["min-fraction-digits"],2,"min-fraction-digits",gn),!D))return null;let N=null;return y["max-fraction-digits"]&&(N=a.parseObjectValue(y["max-fraction-digits"],2,"max-fraction-digits",gn),!N)?null:new o0(h,f,_,w,D,N)}evaluate(i){return new Intl.NumberFormat(this.locale?this.locale.evaluate(i):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(i):void 0,unit:this.unit?this.unit.evaluate(i):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(i):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(i):void 0}).format(this.number.evaluate(i))}eachChild(i){i(this.number),this.locale&&i(this.locale),this.currency&&i(this.currency),this.unit&&i(this.unit),this.minFractionDigits&&i(this.minFractionDigits),this.maxFractionDigits&&i(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const i={};return this.locale&&(i.locale=this.locale.serialize()),this.currency&&(i.currency=this.currency.serialize()),this.unit&&(i.unit=this.unit.serialize()),this.minFractionDigits&&(i["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(i["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),i]}}class fd{constructor(i){this.type=gn,this.input=i}static parse(i,a){if(i.length!==2)return a.error(`Expected 1 argument, but found ${i.length-1} instead.`);const h=a.parse(i[1],1);return h?h.type.kind!=="array"&&h.type.kind!=="string"&&h.type.kind!=="value"?a.error(`Expected argument of type string or array, but found ${vr(h.type)} instead.`):new fd(h):null}evaluate(i){const a=this.input.evaluate(i);if(typeof a=="string"||Array.isArray(a))return a.length;throw new Xr(`Expected value to be of type string or array, but found ${vr(Lr(a))} instead.`)}eachChild(i){i(this.input)}outputDefined(){return!1}serialize(){const i=["length"];return this.eachChild(a=>{i.push(a.serialize())}),i}}function Yp(u){return function(){u=1831565813+(u|=0)|0;let i=Math.imul(u^u>>>15,1|u);return i=i+Math.imul(i^i>>>7,61|i)^i,((i^i>>>14)>>>0)/4294967296}}const Fu={"==":dE,"!=":Vb,">":Bu,"<":$b,">=":Qb,"<=":Hb,array:ta,at:t0,boolean:ta,case:dd,coalesce:Vp,collator:Ep,format:Du,image:mc,in:n0,"index-of":Hp,interpolate:gs,"interpolate-hcl":gs,"interpolate-lab":gs,length:fd,let:$p,literal:ea,match:i0,number:ta,"number-format":o0,object:ta,slice:Qp,step:cd,string:ta,"to-boolean":Ya,"to-color":Ya,"to-number":Ya,"to-string":Ya,var:Fi,within:El,distance:Dl,config:Ru};function Yb(u,[i,a,h,y]){i=i.evaluate(u),a=a.evaluate(u),h=h.evaluate(u);const f=y?y.evaluate(u):1,_=xb(i,a,h,f);if(_)throw new Xr(_);return new Ci(i/255*f,a/255*f,h/255*f,f)}function s0(u,[i,a,h,y]){i=i.evaluate(u),a=a.evaluate(u),h=h.evaluate(u);const f=y?y.evaluate(u):1,_=function(N,b,T,A){return typeof N=="number"&&N>=0&&N<=360?typeof b=="number"&&b>=0&&b<=100&&typeof T=="number"&&T>=0&&T<=100?A===void 0||typeof A=="number"&&A>=0&&A<=1?null:`Invalid hsla value [${[N,b,T,A].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof A=="number"?[N,b,T,A]:[N,b,T]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof A=="number"?[N,b,T,A]:[N,b,T]).join(", ")}]: 'h' must be between 0 and 360.`}(i,a,h,f);if(_)throw new Xr(_);const w=`hsla(${i}, ${a}%, ${h}%, ${f})`,D=Ci.parse(w);if(!D)throw new Xr(`Failed to parse HSLA color: ${w}`);return D}function a0(u,i){return u in i}function l0(u,i){const a=i[u];return a===void 0?null:a}function vc(u){return{type:u}}function Gb(u){return{result:"success",value:u}}function Al(u){return{result:"error",value:u}}function c0(u,i){return!!u&&!!u.parameters&&u.parameters.indexOf(i)>-1}function Gp(u){return u["property-type"]==="data-driven"}function u0(u){return c0(u.expression,"measure-light")}function Zb(u){return c0(u.expression,"zoom")}function h0(u){return!!u.expression&&u.expression.interpolated}function Zp(u){return typeof u=="object"&&u!==null&&!Array.isArray(u)}function Wb(u){return u}function qb(u,i){const a=i.type==="color",h=u.stops&&typeof u.stops[0][0]=="object",y=h||!(h||u.property!==void 0),f=u.type||(h0(i)?"exponential":"interval");if(a&&((u=wu({},u)).stops&&(u.stops=u.stops.map(N=>[N[0],Ci.parse(N[1])])),u.default=Ci.parse(u.default?u.default:i.default)),u.colorSpace&&u.colorSpace!=="rgb"&&!Bb[u.colorSpace])throw new Error(`Unknown color space: ${u.colorSpace}`);let _,w,D;if(f==="exponential")_=Xb;else if(f==="interval")_=Kb;else if(f==="categorical"){_=fE,w=Object.create(null);for(const N of u.stops)w[N[0]]=N[1];D=typeof u.stops[0][0]}else{if(f!=="identity")throw new Error(`Unknown function type "${f}"`);_=pE}if(h){const N={},b=[];for(let S=0;S<u.stops.length;S++){const C=u.stops[S],k=C[0].zoom;N[k]===void 0&&(N[k]={zoom:k,type:u.type,property:u.property,default:u.default,stops:[]},b.push(k)),N[k].stops.push([C[0].value,C[1]])}const T=[];for(const S of b)T.push([N[S].zoom,qb(N[S],i)]);const A={name:"linear"};return{kind:"composite",interpolationType:A,interpolationFactor:gs.interpolationFactor.bind(void 0,A),zoomStops:T.map(S=>S[0]),evaluate:({zoom:S},C)=>Xb({stops:T,base:u.base},i,S).evaluate(S,C)}}if(y){const N=f==="exponential"?{name:"exponential",base:u.base!==void 0?u.base:1}:null;return{kind:"camera",interpolationType:N,interpolationFactor:gs.interpolationFactor.bind(void 0,N),zoomStops:u.stops.map(b=>b[0]),evaluate:({zoom:b})=>_(u,i,b,w,D)}}return{kind:"source",evaluate(N,b){const T=b&&b.properties?b.properties[u.property]:void 0;return T===void 0?pd(u.default,i.default):_(u,i,T,w,D)}}}function pd(u,i,a){return u!==void 0?u:i!==void 0?i:a!==void 0?a:void 0}function fE(u,i,a,h,y){return pd(typeof a===y?h[a]:void 0,u.default,i.default)}function Kb(u,i,a){if(gc(a)!=="number")return pd(u.default,i.default);const h=u.stops.length;if(h===1||a<=u.stops[0][0])return u.stops[0][1];if(a>=u.stops[h-1][0])return u.stops[h-1][1];const y=Fp(u.stops.map(f=>f[0]),a);return u.stops[y][1]}function Xb(u,i,a){const h=u.base!==void 0?u.base:1;if(gc(a)!=="number")return pd(u.default,i.default);const y=u.stops.length;if(y===1||a<=u.stops[0][0])return u.stops[0][1];if(a>=u.stops[y-1][0])return u.stops[y-1][1];const f=Fp(u.stops.map(b=>b[0]),a),_=function(b,T,A,S){const C=S-A,k=b-A;return C===0?0:T===1?k/C:(Math.pow(T,k)-1)/(Math.pow(T,C)-1)}(a,h,u.stops[f][0],u.stops[f+1][0]),w=u.stops[f][1],D=u.stops[f+1][1];let N=pc[i.type]||Wb;if(u.colorSpace&&u.colorSpace!=="rgb"){const b=Bb[u.colorSpace];N=(T,A)=>b.reverse(b.interpolate(b.forward(T),b.forward(A),_))}return typeof w.evaluate=="function"?{evaluate(...b){const T=w.evaluate.apply(void 0,b),A=D.evaluate.apply(void 0,b);if(T!==void 0&&A!==void 0)return N(T,A,_)}}:N(w,D,_)}function pE(u,i,a){return i.type==="color"?a=Ci.parse(a):i.type==="formatted"?a=Co.fromString(a.toString()):i.type==="resolvedImage"?a=Vo.fromString(a.toString()):gc(a)===i.type||i.type==="enum"&&i.values[a]||(a=void 0),pd(a,u.default,i.default)}ts.register(Fu,{error:[{kind:"error"},[ci],(u,[i])=>{throw new Xr(i.evaluate(u))}],typeof:[ci,[fi],(u,[i])=>vr(Lr(i.evaluate(u)))],"to-rgba":[Fo(gn,4),[es],(u,[i])=>i.evaluate(u).toRenderColor(null).toArray()],rgb:[es,[gn,gn,gn],Yb],rgba:[es,[gn,gn,gn,gn],Yb],hsl:[es,[gn,gn,gn],s0],hsla:[es,[gn,gn,gn,gn],s0],has:{type:ui,overloads:[[[ci],(u,[i])=>a0(i.evaluate(u),u.properties())],[[ci,Do],(u,[i,a])=>a0(i.evaluate(u),a.evaluate(u))]]},get:{type:fi,overloads:[[[ci],(u,[i])=>l0(i.evaluate(u),u.properties())],[[ci,Do],(u,[i,a])=>l0(i.evaluate(u),a.evaluate(u))]]},"feature-state":[fi,[ci],(u,[i])=>l0(i.evaluate(u),u.featureState||{})],properties:[Do,[],u=>u.properties()],"geometry-type":[ci,[],u=>u.geometryType()],id:[fi,[],u=>u.id()],zoom:[gn,[],u=>u.globals.zoom],pitch:[gn,[],u=>u.globals.pitch||0],"distance-from-center":[gn,[],u=>u.distanceFromCenter()],"measure-light":[gn,[ci],(u,[i])=>u.measureLight(i.evaluate(u))],"heatmap-density":[gn,[],u=>u.globals.heatmapDensity||0],"line-progress":[gn,[],u=>u.globals.lineProgress||0],"raster-value":[gn,[],u=>u.globals.rasterValue||0],"raster-particle-speed":[gn,[],u=>u.globals.rasterParticleSpeed||0],"sky-radial-progress":[gn,[],u=>u.globals.skyRadialProgress||0],accumulated:[fi,[],u=>u.globals.accumulated===void 0?null:u.globals.accumulated],"+":[gn,vc(gn),(u,i)=>{let a=0;for(const h of i)a+=h.evaluate(u);return a}],"*":[gn,vc(gn),(u,i)=>{let a=1;for(const h of i)a*=h.evaluate(u);return a}],"-":{type:gn,overloads:[[[gn,gn],(u,[i,a])=>i.evaluate(u)-a.evaluate(u)],[[gn],(u,[i])=>-i.evaluate(u)]]},"/":[gn,[gn,gn],(u,[i,a])=>i.evaluate(u)/a.evaluate(u)],"%":[gn,[gn,gn],(u,[i,a])=>i.evaluate(u)%a.evaluate(u)],ln2:[gn,[],()=>Math.LN2],pi:[gn,[],()=>Math.PI],e:[gn,[],()=>Math.E],"^":[gn,[gn,gn],(u,[i,a])=>Math.pow(i.evaluate(u),a.evaluate(u))],sqrt:[gn,[gn],(u,[i])=>Math.sqrt(i.evaluate(u))],log10:[gn,[gn],(u,[i])=>Math.log(i.evaluate(u))/Math.LN10],ln:[gn,[gn],(u,[i])=>Math.log(i.evaluate(u))],log2:[gn,[gn],(u,[i])=>Math.log(i.evaluate(u))/Math.LN2],sin:[gn,[gn],(u,[i])=>Math.sin(i.evaluate(u))],cos:[gn,[gn],(u,[i])=>Math.cos(i.evaluate(u))],tan:[gn,[gn],(u,[i])=>Math.tan(i.evaluate(u))],asin:[gn,[gn],(u,[i])=>Math.asin(i.evaluate(u))],acos:[gn,[gn],(u,[i])=>Math.acos(i.evaluate(u))],atan:[gn,[gn],(u,[i])=>Math.atan(i.evaluate(u))],min:[gn,vc(gn),(u,i)=>Math.min(...i.map(a=>a.evaluate(u)))],max:[gn,vc(gn),(u,i)=>Math.max(...i.map(a=>a.evaluate(u)))],abs:[gn,[gn],(u,[i])=>Math.abs(i.evaluate(u))],round:[gn,[gn],(u,[i])=>{const a=i.evaluate(u);return a<0?-Math.round(-a):Math.round(a)}],floor:[gn,[gn],(u,[i])=>Math.floor(i.evaluate(u))],ceil:[gn,[gn],(u,[i])=>Math.ceil(i.evaluate(u))],"filter-==":[ui,[ci,fi],(u,[i,a])=>u.properties()[i.value]===a.value],"filter-id-==":[ui,[fi],(u,[i])=>u.id()===i.value],"filter-type-==":[ui,[ci],(u,[i])=>u.geometryType()===i.value],"filter-<":[ui,[ci,fi],(u,[i,a])=>{const h=u.properties()[i.value],y=a.value;return typeof h==typeof y&&h<y}],"filter-id-<":[ui,[fi],(u,[i])=>{const a=u.id(),h=i.value;return typeof a==typeof h&&a<h}],"filter->":[ui,[ci,fi],(u,[i,a])=>{const h=u.properties()[i.value],y=a.value;return typeof h==typeof y&&h>y}],"filter-id->":[ui,[fi],(u,[i])=>{const a=u.id(),h=i.value;return typeof a==typeof h&&a>h}],"filter-<=":[ui,[ci,fi],(u,[i,a])=>{const h=u.properties()[i.value],y=a.value;return typeof h==typeof y&&h<=y}],"filter-id-<=":[ui,[fi],(u,[i])=>{const a=u.id(),h=i.value;return typeof a==typeof h&&a<=h}],"filter->=":[ui,[ci,fi],(u,[i,a])=>{const h=u.properties()[i.value],y=a.value;return typeof h==typeof y&&h>=y}],"filter-id->=":[ui,[fi],(u,[i])=>{const a=u.id(),h=i.value;return typeof a==typeof h&&a>=h}],"filter-has":[ui,[fi],(u,[i])=>i.value in u.properties()],"filter-has-id":[ui,[],u=>u.id()!==null&&u.id()!==void 0],"filter-type-in":[ui,[Fo(ci)],(u,[i])=>i.value.indexOf(u.geometryType())>=0],"filter-id-in":[ui,[Fo(fi)],(u,[i])=>i.value.indexOf(u.id())>=0],"filter-in-small":[ui,[ci,Fo(fi)],(u,[i,a])=>a.value.indexOf(u.properties()[i.value])>=0],"filter-in-large":[ui,[ci,Fo(fi)],(u,[i,a])=>function(h,y,f,_){for(;f<=_;){const w=f+_>>1;if(y[w]===h)return!0;y[w]>h?_=w-1:f=w+1}return!1}(u.properties()[i.value],a.value,0,a.value.length-1)],all:{type:ui,overloads:[[[ui,ui],(u,[i,a])=>i.evaluate(u)&&a.evaluate(u)],[vc(ui),(u,i)=>{for(const a of i)if(!a.evaluate(u))return!1;return!0}]]},any:{type:ui,overloads:[[[ui,ui],(u,[i,a])=>i.evaluate(u)||a.evaluate(u)],[vc(ui),(u,i)=>{for(const a of i)if(a.evaluate(u))return!0;return!1}]]},"!":[ui,[ui],(u,[i])=>!i.evaluate(u)],"is-supported-script":[ui,[ci],(u,[i])=>{const a=u.globals&&u.globals.isSupportedScript;return!a||a(i.evaluate(u))}],upcase:[ci,[ci],(u,[i])=>i.evaluate(u).toUpperCase()],downcase:[ci,[ci],(u,[i])=>i.evaluate(u).toLowerCase()],concat:[ci,vc(fi),(u,i)=>i.map(a=>$o(a.evaluate(u))).join("")],"resolved-locale":[ci,[Ip],(u,[i])=>i.evaluate(u).resolvedLocale()],random:[gn,[gn,gn,fi],(u,i)=>{const[a,h,y]=i.map(_=>_.evaluate(u));if(a>h||a===h)return a;let f;if(typeof y=="string")f=function(_){let w=0;if(_.length===0)return w;for(let D=0;D<_.length;D++)w=(w<<5)-w+_.charCodeAt(D),w|=0;return w}(y);else{if(typeof y!="number")throw new Xr(`Invalid seed input: ${y}`);f=y}return a+Yp(f)()*(h-a)}]});class Wp{constructor(i,a,h,y){this.expression=i,this._warningHistory={},this._evaluator=new bb(h,y),this._defaultValue=a?function(f){return f.type==="color"&&(Zp(f.default)||Array.isArray(f.default))?new Ci(0,0,0,0):f.type==="color"?Ci.parse(f.default)||null:f.default===void 0?null:f.default}(a):null,this._enumValues=a&&a.type==="enum"?a.values:null}evaluateWithoutErrorHandling(i,a,h,y,f,_,w,D){return this._evaluator.globals=i,this._evaluator.feature=a,this._evaluator.featureState=h,this._evaluator.canonical=y||null,this._evaluator.availableImages=f||null,this._evaluator.formattedSection=_,this._evaluator.featureTileCoord=w||null,this._evaluator.featureDistanceData=D||null,this.expression.evaluate(this._evaluator)}evaluate(i,a,h,y,f,_,w,D){this._evaluator.globals=i,this._evaluator.feature=a||null,this._evaluator.featureState=h||null,this._evaluator.canonical=y||null,this._evaluator.availableImages=f||null,this._evaluator.formattedSection=_||null,this._evaluator.featureTileCoord=w||null,this._evaluator.featureDistanceData=D||null;try{const N=this.expression.evaluate(this._evaluator);if(N==null||typeof N=="number"&&N!=N)return this._defaultValue;if(this._enumValues&&!(N in this._enumValues))throw new Xr(`Expected value to be one of ${Object.keys(this._enumValues).map(b=>JSON.stringify(b)).join(", ")}, but found ${JSON.stringify(N)} instead.`);return N}catch(N){return this._warningHistory[N.message]||(this._warningHistory[N.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${N.message}`)),this._defaultValue}}}function qp(u){return Array.isArray(u)&&u.length>0&&typeof u[0]=="string"&&u[0]in Fu}function md(u,i,a,h){const y=new zb(Fu,[],i?function(_){const w={color:es,string:ci,number:gn,enum:ci,boolean:ui,formatted:Iu,resolvedImage:Tu};return _.type==="array"?Fo(w[_.value]||fi,_.length):w[_.type]}(i):void 0,void 0,void 0,a,h),f=y.parse(u,void 0,void 0,void 0,i&&i.type==="string"?{typeAnnotation:"coerce"}:void 0);return f?Gb(new Wp(f,i,a,h)):Al(y.errors)}class d0{constructor(i,a,h){this.kind=i,this._styleExpression=a,this.isLightConstant=h,this.isStateDependent=i!=="constant"&&!Up(a.expression),this.configDependencies=Bp(a.expression)}evaluateWithoutErrorHandling(i,a,h,y,f,_){return this._styleExpression.evaluateWithoutErrorHandling(i,a,h,y,f,_)}evaluate(i,a,h,y,f,_){return this._styleExpression.evaluate(i,a,h,y,f,_)}}class Ia{constructor(i,a,h,y,f){this.kind=i,this.zoomStops=h,this._styleExpression=a,this.isStateDependent=i!=="camera"&&!Up(a.expression),this.isLightConstant=f,this.configDependencies=Bp(a.expression),this.interpolationType=y}evaluateWithoutErrorHandling(i,a,h,y,f,_){return this._styleExpression.evaluateWithoutErrorHandling(i,a,h,y,f,_)}evaluate(i,a,h,y,f,_){return this._styleExpression.evaluate(i,a,h,y,f,_)}interpolationFactor(i,a,h){return this.interpolationType?gs.interpolationFactor(this.interpolationType,i,a,h):0}}function Jb(u,i,a,h){if((u=md(u,i,a,h)).result==="error")return u;const y=u.value.expression,f=ad(y);if(!f&&!Gp(i))return Al([new Ma("","data expressions not supported")]);const _=ld(y,["zoom","pitch","distance-from-center"]);if(!_&&!Zb(i))return Al([new Ma("","zoom expressions not supported")]);const w=ld(y,["measure-light"]);if(!w&&!u0(i))return Al([new Ma("","measure-light expression not supported")]);const D=i.expression&&i.expression.relaxZoomRestriction,N=Xp(y);return N||_||D?N instanceof Ma?Al([N]):N instanceof gs&&!h0(i)?Al([new Ma("",'"interpolate" expressions cannot be used with this property')]):Gb(N?new Ia(f?"camera":"composite",u.value,N.labels,N instanceof gs?N.interpolation:void 0,w):new d0(f?"constant":"source",u.value,w)):Al([new Ma("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class Kp{constructor(i,a){this._parameters=i,this._specification=a,wu(this,qb(this._parameters,this._specification))}static deserialize(i){return new Kp(i._parameters,i._specification)}static serialize(i){return{_parameters:i._parameters,_specification:i._specification}}}function Xp(u){let i=null;if(u instanceof $p)i=Xp(u.result);else if(u instanceof Vp){for(const a of u.args)if(i=Xp(a),i)break}else(u instanceof cd||u instanceof gs)&&u.input instanceof ts&&u.input.name==="zoom"&&(i=u);return i instanceof Ma||u.eachChild(a=>{const h=Xp(a);h instanceof Ma?i=h:i&&h&&i!==h&&(i=new Ma("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),i}var Jp,f0,eM=function(){if(f0)return Jp;f0=1,Jp=i;var u=3;function i(a,h,y){var f=this.cells=[];if(a instanceof ArrayBuffer){this.arrayBuffer=a;var _=new Int32Array(this.arrayBuffer);a=_[0],this.d=(h=_[1])+2*(y=_[2]);for(var w=0;w<this.d*this.d;w++){var D=_[u+w],N=_[u+w+1];f.push(D===N?null:_.subarray(D,N))}var b=_[u+f.length+1];this.keys=_.subarray(_[u+f.length],b),this.bboxes=_.subarray(b),this.insert=this._insertReadonly}else{this.d=h+2*y;for(var T=0;T<this.d*this.d;T++)f.push([]);this.keys=[],this.bboxes=[]}this.n=h,this.extent=a,this.padding=y,this.scale=h/a,this.uid=0;var A=y/h*a;this.min=-A,this.max=a+A}return i.prototype.insert=function(a,h,y,f,_){this._forEachCell(h,y,f,_,this._insertCell,this.uid++),this.keys.push(a),this.bboxes.push(h),this.bboxes.push(y),this.bboxes.push(f),this.bboxes.push(_)},i.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},i.prototype._insertCell=function(a,h,y,f,_,w){this.cells[_].push(w)},i.prototype.query=function(a,h,y,f,_){var w=this.min,D=this.max;if(a<=w&&h<=w&&D<=y&&D<=f&&!_)return Array.prototype.slice.call(this.keys);var N=[];return this._forEachCell(a,h,y,f,this._queryCell,N,{},_),N},i.prototype._queryCell=function(a,h,y,f,_,w,D,N){var b=this.cells[_];if(b!==null)for(var T=this.keys,A=this.bboxes,S=0;S<b.length;S++){var C=b[S];if(D[C]===void 0){var k=4*C;(N?N(A[k+0],A[k+1],A[k+2],A[k+3]):a<=A[k+2]&&h<=A[k+3]&&y>=A[k+0]&&f>=A[k+1])?(D[C]=!0,w.push(T[C])):D[C]=!1}}},i.prototype._forEachCell=function(a,h,y,f,_,w,D,N){for(var b=this._convertToCellCoord(a),T=this._convertToCellCoord(h),A=this._convertToCellCoord(y),S=this._convertToCellCoord(f),C=b;C<=A;C++)for(var k=T;k<=S;k++){var P=this.d*k+C;if((!N||N(this._convertFromCellCoord(C),this._convertFromCellCoord(k),this._convertFromCellCoord(C+1),this._convertFromCellCoord(k+1)))&&_.call(this,a,h,y,f,P,w,D,N))return}},i.prototype._convertFromCellCoord=function(a){return(a-this.padding)/this.scale},i.prototype._convertToCellCoord=function(a){return Math.max(0,Math.min(this.d-1,Math.floor(a*this.scale)+this.padding))},i.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var a=this.cells,h=u+this.cells.length+1+1,y=0,f=0;f<this.cells.length;f++)y+=this.cells[f].length;var _=new Int32Array(h+y+this.keys.length+this.bboxes.length);_[0]=this.extent,_[1]=this.n,_[2]=this.padding;for(var w=h,D=0;D<a.length;D++){var N=a[D];_[u+D]=w,_.set(N,w),w+=N.length}return _[u+a.length]=w,_.set(this.keys,w),_[u+a.length+1]=w+=this.keys.length,_.set(this.bboxes,w),w+=this.bboxes.length,_.buffer},Jp}(),xc=v(eM);const Vu={};function pn(u,i,a={}){Object.defineProperty(u,"_classRegistryKey",{value:i,writable:!1}),Vu[i]={klass:u,omit:a.omit||[]}}pn(Object,"Object"),xc.serialize=function(u,i){const a=u.toArrayBuffer();return i&&i.add(a),{buffer:a}},xc.deserialize=function(u){return new xc(u.buffer)},Object.defineProperty(xc,"name",{value:"Grid"}),pn(xc,"Grid"),pn(Ci,"Color"),pn(Error,"Error"),pn(Co,"Formatted"),pn(ds,"FormattedSection"),pn(N1,"AJAXError"),pn(Vo,"ResolvedImage"),pn(Kp,"StylePropertyFunction"),pn(Wp,"StyleExpression",{omit:["_evaluator"]}),pn(Ia,"ZoomDependentExpression"),pn(d0,"ZoomConstantExpression"),pn(ts,"CompoundExpression",{omit:["_evaluate"]});for(const u in Fu)Vu[Fu[u]._classRegistryKey]||pn(Fu[u],`Expression${u}`);function p0(u){return u&&typeof ArrayBuffer<"u"&&(u instanceof ArrayBuffer||u.constructor&&u.constructor.name==="ArrayBuffer")}function tM(u){return self.ImageBitmap&&u instanceof ImageBitmap}function ns(u,i){if(u==null||typeof u=="boolean"||typeof u=="number"||typeof u=="string"||u instanceof Boolean||u instanceof Number||u instanceof String||u instanceof Date||u instanceof RegExp)return u;if(p0(u)||tM(u))return i&&i.add(u),u;if(ArrayBuffer.isView(u)){const a=u;return i&&i.add(a.buffer),a}if(u instanceof ImageData)return i&&i.add(u.data.buffer),u;if(Array.isArray(u)){const a=[];for(const h of u)a.push(ns(h,i));return a}if(u instanceof Map){const a={$name:"Map"};for(const[h,y]of u.entries())a[h]=ns(y);return a}if(u instanceof Set){const a={$name:"Set"};let h=0;for(const y of u.values())a[++h]=ns(y);return a}if(typeof u=="object"){const a=u.constructor,h=a._classRegistryKey;if(!h)throw new Error(`can't serialize object of unregistered class ${h}`);const y=a.serialize?a.serialize(u,i):{};if(!a.serialize){for(const f in u)u.hasOwnProperty(f)&&(Vu[h].omit.indexOf(f)>=0||(y[f]=ns(u[f],i)));u instanceof Error&&(y.message=u.message)}if(y.$name)throw new Error("$name property is reserved for worker serialization logic.");return h!=="Object"&&(y.$name=h),y}throw new Error("can't serialize object of type "+typeof u)}function bc(u){if(u==null||typeof u=="boolean"||typeof u=="number"||typeof u=="string"||u instanceof Boolean||u instanceof Number||u instanceof String||u instanceof Date||u instanceof RegExp||p0(u)||tM(u)||ArrayBuffer.isView(u)||u instanceof ImageData)return u;if(Array.isArray(u))return u.map(bc);if(typeof u=="object"){const i=u.$name||"Object";if(i==="Map"){const y=new Map;for(const f of Object.keys(u))f!=="$name"&&y.set(f,bc(u[f]));return y}if(i==="Set"){const y=new Set;for(const f of Object.keys(u))f!=="$name"&&y.add(bc(u[f]));return y}const{klass:a}=Vu[i];if(!a)throw new Error(`can't deserialize unregistered class ${i}`);if(a.deserialize)return a.deserialize(u);const h=Object.create(a.prototype);for(const y of Object.keys(u))y!=="$name"&&(h[y]=bc(u[y]));return h}throw new Error("can't deserialize object of type "+typeof u)}const Mn={"Latin-1 Supplement":u=>u>=128&&u<=255,Arabic:u=>u>=1536&&u<=1791,"Arabic Supplement":u=>u>=1872&&u<=1919,"Arabic Extended-A":u=>u>=2208&&u<=2303,"Hangul Jamo":u=>u>=4352&&u<=4607,"Unified Canadian Aboriginal Syllabics":u=>u>=5120&&u<=5759,Khmer:u=>u>=6016&&u<=6143,"Unified Canadian Aboriginal Syllabics Extended":u=>u>=6320&&u<=6399,"General Punctuation":u=>u>=8192&&u<=8303,"Letterlike Symbols":u=>u>=8448&&u<=8527,"Number Forms":u=>u>=8528&&u<=8591,"Miscellaneous Technical":u=>u>=8960&&u<=9215,"Control Pictures":u=>u>=9216&&u<=9279,"Optical Character Recognition":u=>u>=9280&&u<=9311,"Enclosed Alphanumerics":u=>u>=9312&&u<=9471,"Geometric Shapes":u=>u>=9632&&u<=9727,"Miscellaneous Symbols":u=>u>=9728&&u<=9983,"Miscellaneous Symbols and Arrows":u=>u>=11008&&u<=11263,"CJK Radicals Supplement":u=>u>=11904&&u<=12031,"Kangxi Radicals":u=>u>=12032&&u<=12255,"Ideographic Description Characters":u=>u>=12272&&u<=12287,"CJK Symbols and Punctuation":u=>u>=12288&&u<=12351,Hiragana:u=>u>=12352&&u<=12447,Katakana:u=>u>=12448&&u<=12543,Bopomofo:u=>u>=12544&&u<=12591,"Hangul Compatibility Jamo":u=>u>=12592&&u<=12687,Kanbun:u=>u>=12688&&u<=12703,"Bopomofo Extended":u=>u>=12704&&u<=12735,"CJK Strokes":u=>u>=12736&&u<=12783,"Katakana Phonetic Extensions":u=>u>=12784&&u<=12799,"Enclosed CJK Letters and Months":u=>u>=12800&&u<=13055,"CJK Compatibility":u=>u>=13056&&u<=13311,"CJK Unified Ideographs Extension A":u=>u>=13312&&u<=19903,"Yijing Hexagram Symbols":u=>u>=19904&&u<=19967,"CJK Unified Ideographs":u=>u>=19968&&u<=40959,"Yi Syllables":u=>u>=40960&&u<=42127,"Yi Radicals":u=>u>=42128&&u<=42191,"Hangul Jamo Extended-A":u=>u>=43360&&u<=43391,"Hangul Syllables":u=>u>=44032&&u<=55215,"Hangul Jamo Extended-B":u=>u>=55216&&u<=55295,"Private Use Area":u=>u>=57344&&u<=63743,"CJK Compatibility Ideographs":u=>u>=63744&&u<=64255,"Arabic Presentation Forms-A":u=>u>=64336&&u<=65023,"Vertical Forms":u=>u>=65040&&u<=65055,"CJK Compatibility Forms":u=>u>=65072&&u<=65103,"Small Form Variants":u=>u>=65104&&u<=65135,"Arabic Presentation Forms-B":u=>u>=65136&&u<=65279,"Halfwidth and Fullwidth Forms":u=>u>=65280&&u<=65519,"CJK Unified Ideographs Extension B":u=>u>=131072&&u<=173791};function em(u){for(const i of u)if(nm(i.charCodeAt(0)))return!0;return!1}function mE(u){for(const i of u)if(!tm(i.charCodeAt(0)))return!1;return!0}function tm(u){return!(Mn.Arabic(u)||Mn["Arabic Supplement"](u)||Mn["Arabic Extended-A"](u)||Mn["Arabic Presentation Forms-A"](u)||Mn["Arabic Presentation Forms-B"](u))}function nm(u){return!(u!==746&&u!==747&&(u<4352||!(Mn["Bopomofo Extended"](u)||Mn.Bopomofo(u)||Mn["CJK Compatibility Forms"](u)&&!(u>=65097&&u<=65103)||Mn["CJK Compatibility Ideographs"](u)||Mn["CJK Compatibility"](u)||Mn["CJK Radicals Supplement"](u)||Mn["CJK Strokes"](u)||!(!Mn["CJK Symbols and Punctuation"](u)||u>=12296&&u<=12305||u>=12308&&u<=12319||u===12336)||Mn["CJK Unified Ideographs Extension A"](u)||Mn["CJK Unified Ideographs"](u)||Mn["Enclosed CJK Letters and Months"](u)||Mn["Hangul Compatibility Jamo"](u)||Mn["Hangul Jamo Extended-A"](u)||Mn["Hangul Jamo Extended-B"](u)||Mn["Hangul Jamo"](u)||Mn["Hangul Syllables"](u)||Mn.Hiragana(u)||Mn["Ideographic Description Characters"](u)||Mn.Kanbun(u)||Mn["Kangxi Radicals"](u)||Mn["Katakana Phonetic Extensions"](u)||Mn.Katakana(u)&&u!==12540||!(!Mn["Halfwidth and Fullwidth Forms"](u)||u===65288||u===65289||u===65293||u>=65306&&u<=65310||u===65339||u===65341||u===65343||u>=65371&&u<=65503||u===65507||u>=65512&&u<=65519)||!(!Mn["Small Form Variants"](u)||u>=65112&&u<=65118||u>=65123&&u<=65126)||Mn["Unified Canadian Aboriginal Syllabics"](u)||Mn["Unified Canadian Aboriginal Syllabics Extended"](u)||Mn["Vertical Forms"](u)||Mn["Yijing Hexagram Symbols"](u)||Mn["Yi Syllables"](u)||Mn["Yi Radicals"](u))))}function gd(u){return!(nm(u)||function(i){return!!(Mn["Latin-1 Supplement"](i)&&(i===167||i===169||i===174||i===177||i===188||i===189||i===190||i===215||i===247)||Mn["General Punctuation"](i)&&(i===8214||i===8224||i===8225||i===8240||i===8241||i===8251||i===8252||i===8258||i===8263||i===8264||i===8265||i===8273)||Mn["Letterlike Symbols"](i)||Mn["Number Forms"](i)||Mn["Miscellaneous Technical"](i)&&(i>=8960&&i<=8967||i>=8972&&i<=8991||i>=8996&&i<=9e3||i===9003||i>=9085&&i<=9114||i>=9150&&i<=9165||i===9167||i>=9169&&i<=9179||i>=9186&&i<=9215)||Mn["Control Pictures"](i)&&i!==9251||Mn["Optical Character Recognition"](i)||Mn["Enclosed Alphanumerics"](i)||Mn["Geometric Shapes"](i)||Mn["Miscellaneous Symbols"](i)&&!(i>=9754&&i<=9759)||Mn["Miscellaneous Symbols and Arrows"](i)&&(i>=11026&&i<=11055||i>=11088&&i<=11097||i>=11192&&i<=11243)||Mn["CJK Symbols and Punctuation"](i)||Mn.Katakana(i)||Mn["Private Use Area"](i)||Mn["CJK Compatibility Forms"](i)||Mn["Small Form Variants"](i)||Mn["Halfwidth and Fullwidth Forms"](i)||i===8734||i===8756||i===8757||i>=9984&&i<=10087||i>=10102&&i<=10131||i===65532||i===65533)}(u))}function m0(u){return u>=1424&&u<=2303||Mn["Arabic Presentation Forms-A"](u)||Mn["Arabic Presentation Forms-B"](u)}function gE(u,i){return!(!i&&m0(u)||u>=2304&&u<=3583||u>=3840&&u<=4255||Mn.Khmer(u))}function yE(u){for(const i of u)if(m0(i.charCodeAt(0)))return!0;return!1}const yd="deferred",_d="loading",im="loaded";let $u=null,ro="unavailable",Nl=null;const nM=function(u){u&&typeof u=="string"&&u.indexOf("NetworkError")>-1&&(ro="error"),$u&&$u(u)};function g0(){y0.fire(new Tl("pluginStateChange",{pluginStatus:ro,pluginURL:Nl}))}const y0=new Mu,_0=function(){return ro},v0=function(){if(ro!==yd||!Nl)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ro=_d,g0(),Nl&&xu({url:Nl},u=>{u?nM(u):(ro=im,g0())})},is={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>ro===im||is.applyArabicShaping!=null,isLoading:()=>ro===_d,setState(u){ro=u.pluginStatus,Nl=u.pluginURL},isParsed:()=>is.applyArabicShaping!=null&&is.processBidirectionalText!=null&&is.processStyledBidirectionalText!=null,getPluginURL:()=>Nl};class fr{constructor(i,a){this.zoom=i,a?(this.now=a.now,this.fadeDuration=a.fadeDuration,this.transition=a.transition,this.pitch=a.pitch,this.brightness=a.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(i){return function(a,h){for(const y of a)if(!gE(y.charCodeAt(0),h))return!1;return!0}(i,is.isLoaded())}}class rm{constructor(i,a,h,y){this.property=i,this.value=a,this.expression=function(f,_,w,D){if(Zp(f))return new Kp(f,_);if(qp(f)||Array.isArray(f)&&f.length>0){const N=Jb(f,_,w,D);if(N.result==="error")throw new Error(N.value.map(b=>`${b.key}: ${b.message}`).join(", "));return N.value}{let N=f;return typeof f=="string"&&_.type==="color"&&(N=Ci.parse(f)),{kind:"constant",configDependencies:new Set,evaluate:()=>N}}}(a===void 0?i.specification.default:a,i.specification,h,y)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(i,a,h){return this.property.possiblyEvaluate(this,i,a,h)}}class x0{constructor(i,a,h){this.property=i,this.value=new rm(i,void 0,a,h)}transitioned(i,a){return new rM(this.property,this.value,a,ei({},i.transition,this.transition),i.now)}untransitioned(){return new rM(this.property,this.value,null,{},0)}}class iM{constructor(i,a,h){this._properties=i,this._values=Object.create(i.defaultTransitionablePropertyValues),this._scope=a,this._options=h,this.configDependencies=new Set}getValue(i){return xt(this._values[i].value.value)}setValue(i,a){this._values.hasOwnProperty(i)||(this._values[i]=new x0(this._values[i].property,this._scope,this._options)),this._values[i].value=new rm(this._values[i].property,a===null?void 0:xt(a),this._scope,this._options),this._values[i].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[i].value.expression.configDependencies]))}setTransitionOrValue(i,a){a&&(this._options=a);const h=this._properties.properties;if(i)for(const y in i){const f=i[y];if(Wi(y,"-transition")){const _=y.slice(0,-11);h[_]&&this.setTransition(_,f)}else h.hasOwnProperty(y)&&this.setValue(y,f)}}getTransition(i){return xt(this._values[i].transition)}setTransition(i,a){this._values.hasOwnProperty(i)||(this._values[i]=new x0(this._values[i].property)),this._values[i].transition=xt(a)||void 0}serialize(){const i={};for(const a of Object.keys(this._values)){const h=this.getValue(a);h!==void 0&&(i[a]=h);const y=this.getTransition(a);y!==void 0&&(i[`${a}-transition`]=y)}return i}transitioned(i,a){const h=new oM(this._properties);for(const y of Object.keys(this._values))h._values[y]=this._values[y].transitioned(i,a._values[y]);return h}untransitioned(){const i=new oM(this._properties);for(const a of Object.keys(this._values))i._values[a]=this._values[a].untransitioned();return i}}class rM{constructor(i,a,h,y,f){const _=y.delay||0,w=y.duration||0;f=f||0,this.property=i,this.value=a,this.begin=f+_,this.end=this.begin+w,i.specification.transition&&(y.delay||y.duration)&&(this.prior=h)}possiblyEvaluate(i,a,h){const y=i.now||0,f=this.value.possiblyEvaluate(i,a,h),_=this.prior;if(_){if(y>this.end)return this.prior=null,f;if(this.value.isDataDriven())return this.prior=null,f;if(y<this.begin)return _.possiblyEvaluate(i,a,h);{const w=(y-this.begin)/(this.end-this.begin);return this.property.interpolate(_.possiblyEvaluate(i,a,h),f,dn(w))}}return f}}class oM{constructor(i){this._properties=i,this._values=Object.create(i.defaultTransitioningPropertyValues)}possiblyEvaluate(i,a,h){const y=new Qu(this._properties);for(const f of Object.keys(this._values))y._values[f]=this._values[f].possiblyEvaluate(i,a,h);return y}hasTransition(){for(const i of Object.keys(this._values))if(this._values[i].prior)return!0;return!1}}class _E{constructor(i,a,h){this._properties=i,this._values=Object.create(i.defaultPropertyValues),this._scope=a,this._options=h,this.configDependencies=new Set}getValue(i){return xt(this._values[i].value)}setValue(i,a){this._values[i]=new rm(this._values[i].property,a===null?void 0:xt(a),this._scope,this._options),this._values[i].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[i].expression.configDependencies]))}serialize(){const i={};for(const a of Object.keys(this._values)){const h=this.getValue(a);h!==void 0&&(i[a]=h)}return i}possiblyEvaluate(i,a,h){const y=new Qu(this._properties);for(const f of Object.keys(this._values))y._values[f]=this._values[f].possiblyEvaluate(i,a,h);return y}}class Hu{constructor(i,a,h){this.property=i,this.value=a,this.parameters=h}isConstant(){return this.value.kind==="constant"}constantOr(i){return this.value.kind==="constant"?this.value.value:i}evaluate(i,a,h,y){return this.property.evaluate(this.value,this.parameters,i,a,h,y)}}class Qu{constructor(i){this._properties=i,this._values=Object.create(i.defaultPossiblyEvaluatedValues)}get(i){return this._values[i]}}class Zt{constructor(i){this.specification=i}possiblyEvaluate(i,a){return i.expression.evaluate(a)}interpolate(i,a,h){const y=pc[this.specification.type];return y?y(i,a,h):i}}class wn{constructor(i,a){this.specification=i,this.overrides=a}possiblyEvaluate(i,a,h,y){return new Hu(this,i.expression.kind==="constant"||i.expression.kind==="camera"?{kind:"constant",value:i.expression.evaluate(a,null,{},h,y)}:i.expression,a)}interpolate(i,a,h){if(i.value.kind!=="constant"||a.value.kind!=="constant")return i;if(i.value.value===void 0||a.value.value===void 0)return new Hu(this,{kind:"constant",value:void 0},i.parameters);const y=pc[this.specification.type];return y?new Hu(this,{kind:"constant",value:y(i.value.value,a.value.value,h)},i.parameters):i}evaluate(i,a,h,y,f,_){return i.kind==="constant"?i.value:i.evaluate(a,h,y,f,_)}}class na{constructor(i){this.specification=i}possiblyEvaluate(i,a,h,y){return!!i.expression.evaluate(a,null,{},h,y)}interpolate(){return!1}}class sr{constructor(i){this.properties=i,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const a=new fr(0,{});for(const h in i){const y=i[h];y.specification.overridable&&this.overridableProperties.push(h);const f=this.defaultPropertyValues[h]=new rm(y,void 0),_=this.defaultTransitionablePropertyValues[h]=new x0(y);this.defaultTransitioningPropertyValues[h]=_.untransitioned(),this.defaultPossiblyEvaluatedValues[h]=f.possiblyEvaluate(a)}}}pn(wn,"DataDrivenProperty"),pn(Zt,"DataConstantProperty"),pn(na,"ColorRampProperty");var yt=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"required":false,"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"imports":{"type":"array","value":"import"},"schema":{"type":"schema"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"experimental":true,"type":"featuresets"}},"featuresets":{"experimental":true,"*":{"type":"featureset"}},"featureset":{"experimental":true,"selectors":{"type":"array","value":"selector"}},"selector":{"experimental":true,"layer":{"type":"string","required":true},"properties":{"type":"selectorProperty","required":false},"featureNamespace":{"type":"string","required":false}},"selectorProperty":{"experimental":true,"*":{"type":"*"}},"model":{"type":"string","required":true},"import":{"id":{"type":"string","required":true},"url":{"type":"string","required":true},"config":{"type":"config"},"data":{"type":"$root"}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","property-type":"data-constant","expression":{},"required":true},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string","required":true},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false,"property-type":"data-constant"},"shadow-intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"experimental":true,"type":{"required":true,"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":1}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":1}},"url":{"required":false,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"required":true,"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"raster-particle":{"experimental":true},"hillshade":{},"model":{"experimental":true},"background":{},"sky":{},"slot":{},"clip":{"experimental":true}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{},"property-type":"data-constant","experimental":true},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{},"property-type":"data-constant","experimental":true}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","experimental":true,"default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","experimental":true,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"colorTheme":{"data":{"type":"string","property-type":"data-constant","expression":{}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","experimental":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","experimental":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","experimental":true,"default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","experimental":true,"default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","experimental":true,"default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","experimental":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","experimental":true,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","experimental":true,"default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","experimental":true,"default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"experimental":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true,"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-trim-fade-range":{"type":"array","value":"number","experimental":true,"length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-trim-color":{"type":"color","experimental":true,"default":"transparent","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"property-type":"data-constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1},"default":"ground","experimental":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"experimental":true,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-particle-count":{"type":"number","default":512,"minimum":1,"property-type":"data-constant"},"raster-particle-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-particle-speed"]},"property-type":"color-ramp"},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1,"property-type":"data-constant"},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1,"property-type":"data-constant"},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]},"property-type":"data-constant"},"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"model-front-cutoff":{"type":"array","private":true,"value":"number","property-type":"data-constant","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function vd(u){return u instanceof Number||u instanceof String||u instanceof Boolean?u.valueOf():u}function om(u){if(Array.isArray(u))return u.map(om);if(u instanceof Object&&!(u instanceof Number||u instanceof String||u instanceof Boolean)){const i={};for(const a in u)i[a]=om(u[a]);return i}return vd(u)}function b0(u){if(u===!0||u===!1)return!0;if(!Array.isArray(u)||u.length===0)return!1;switch(u[0]){case"has":return u.length>=2&&u[1]!=="$id"&&u[1]!=="$type";case"in":return u.length>=3&&(typeof u[1]!="string"||Array.isArray(u[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return u.length!==3||Array.isArray(u[1])||Array.isArray(u[2]);case"any":case"all":for(const i of u.slice(1))if(!b0(i)&&typeof i!="boolean")return!1;return!0;default:return!0}}function ia(u,i="",a=null,h="fill"){if(u==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};b0(u)||(u=sm(u));const y=u;let f=!0;try{f=function(T){if(!Yu(T))return T;let A=om(T);return Mc(A),A=M0(A),A}(y)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
|
|
74
|
+
hot module replacement.`;console.warn(t)}}function HJ(e){Hf.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&$J(e.key),Ph.set(e.key,e);const t=e.set==null?new Qf.RecoilValueReadOnly(e.key):new Qf.RecoilState(e.key);return tI.set(e.key,t),t}class s9 extends Error{}function QJ(e){const t=Ph.get(e);if(t==null)throw new s9(`Missing definition for RecoilValue: "${e}""`);return t}function YJ(e){return Ph.get(e)}const Hv=new Map;function GJ(e){var t;if(!gr("recoil_memory_managament_2020"))return;const n=Ph.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var o;Ph.delete(e),(o=a9(e))===null||o===void 0||o(),Hv.delete(e)}}function ZJ(e,t){gr("recoil_memory_managament_2020")&&(t===void 0?Hv.delete(e):Hv.set(e,t))}function a9(e){return Hv.get(e)}var Ss={nodes:Ph,recoilValues:tI,registerNode:HJ,getNode:QJ,getNodeMaybe:YJ,deleteNodeConfigIfPossible:GJ,setConfigDeletionHandler:ZJ,getConfigDeletionHandler:a9,recoilValuesForKeys:VJ,NodeMissingError:s9,DefaultValue:o9,DEFAULT_VALUE:FJ};function WJ(e,t){t()}var qJ={enqueueExecution:WJ};function KJ(e,t){return t={exports:{}},e(t,t.exports),t.exports}var XJ=KJ(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Lt){return typeof Lt}:function(Lt){return Lt&&typeof Symbol=="function"&&Lt.constructor===Symbol&&Lt!==Symbol.prototype?"symbol":typeof Lt},n={},o=5,l=Math.pow(2,o),d=l-1,g=l/2,s=l/4,v={},E=function(xt){return function(){return xt}},z=n.hash=function(Lt){var xt=typeof Lt>"u"?"undefined":t(Lt);if(xt==="number")return Lt;xt!=="string"&&(Lt+="");for(var ln=0,Wt=0,Qt=Lt.length;Wt<Qt;++Wt){var an=Lt.charCodeAt(Wt);ln=(ln<<5)-ln+an|0}return ln},O=function(xt){return xt-=xt>>1&1431655765,xt=(xt&858993459)+(xt>>2&858993459),xt=xt+(xt>>4)&252645135,xt+=xt>>8,xt+=xt>>16,xt&127},j=function(xt,ln){return ln>>>xt&d},F=function(xt){return 1<<xt},$=function(xt,ln){return O(xt&ln-1)},Y=function(xt,ln,Wt,Qt){var an=Qt;if(!xt){var yn=Qt.length;an=new Array(yn);for(var bn=0;bn<yn;++bn)an[bn]=Qt[bn]}return an[ln]=Wt,an},ie=function(xt,ln,Wt){var Qt=Wt.length-1,an=0,yn=0,bn=Wt;if(xt)an=yn=ln;else for(bn=new Array(Qt);an<ln;)bn[yn++]=Wt[an++];for(++an;an<=Qt;)bn[yn++]=Wt[an++];return xt&&(bn.length=Qt),bn},K=function(xt,ln,Wt,Qt){var an=Qt.length;if(xt){for(var yn=an;yn>=ln;)Qt[yn--]=Qt[yn];return Qt[ln]=Wt,Qt}for(var bn=0,An=0,ai=new Array(an+1);bn<ln;)ai[An++]=Qt[bn++];for(ai[ln]=Wt;bn<an;)ai[++An]=Qt[bn++];return ai},J=1,te=2,oe=3,pe=4,me={__hamt_isEmpty:!0},he=function(xt){return xt===me||xt&&xt.__hamt_isEmpty},De=function(xt,ln,Wt,Qt){return{type:J,edit:xt,hash:ln,key:Wt,value:Qt,_modify:Je}},qe=function(xt,ln,Wt){return{type:te,edit:xt,hash:ln,children:Wt,_modify:He}},Te=function(xt,ln,Wt){return{type:oe,edit:xt,mask:ln,children:Wt,_modify:Ae}},ze=function(xt,ln,Wt){return{type:pe,edit:xt,size:ln,children:Wt,_modify:je}},ht=function(xt){return xt===me||xt.type===J||xt.type===te},mt=function(xt,ln,Wt,Qt,an){for(var yn=[],bn=Qt,An=0,ai=0;bn;++ai)bn&1&&(yn[ai]=an[An++]),bn>>>=1;return yn[ln]=Wt,ze(xt,An+1,yn)},vt=function(xt,ln,Wt,Qt){for(var an=new Array(ln-1),yn=0,bn=0,An=0,ai=Qt.length;An<ai;++An)if(An!==Wt){var Pi=Qt[An];Pi&&!he(Pi)&&(an[yn++]=Pi,bn|=1<<An)}return Te(xt,bn,an)},Qe=function Lt(xt,ln,Wt,Qt,an,yn){if(Wt===an)return qe(xt,Wt,[yn,Qt]);var bn=j(ln,Wt),An=j(ln,an);return Te(xt,F(bn)|F(An),bn===An?[Lt(xt,ln+o,Wt,Qt,an,yn)]:bn<An?[Qt,yn]:[yn,Qt])},Fe=function(xt,ln,Wt,Qt,an,yn,bn,An){for(var ai=an.length,Pi=0;Pi<ai;++Pi){var _r=an[Pi];if(Wt(bn,_r.key)){var gt=_r.value,le=yn(gt);return le===gt?an:le===v?(--An.value,ie(xt,Pi,an)):Y(xt,Pi,De(ln,Qt,bn,le),an)}}var ge=yn();return ge===v?an:(++An.value,Y(xt,ai,De(ln,Qt,bn,ge),an))},ot=function(xt,ln){return xt===ln.edit},Je=function(xt,ln,Wt,Qt,an,yn,bn){if(ln(yn,this.key)){var An=Qt(this.value);return An===this.value?this:An===v?(--bn.value,me):ot(xt,this)?(this.value=An,this):De(xt,an,yn,An)}var ai=Qt();return ai===v?this:(++bn.value,Qe(xt,Wt,this.hash,this,an,De(xt,an,yn,ai)))},He=function(xt,ln,Wt,Qt,an,yn,bn){if(an===this.hash){var An=ot(xt,this),ai=Fe(An,xt,ln,this.hash,this.children,Qt,yn,bn);return ai===this.children?this:ai.length>1?qe(xt,this.hash,ai):ai[0]}var Pi=Qt();return Pi===v?this:(++bn.value,Qe(xt,Wt,this.hash,this,an,De(xt,an,yn,Pi)))},Ae=function(xt,ln,Wt,Qt,an,yn,bn){var An=this.mask,ai=this.children,Pi=j(Wt,an),_r=F(Pi),gt=$(An,_r),le=An&_r,ge=le?ai[gt]:me,Le=ge._modify(xt,ln,Wt+o,Qt,an,yn,bn);if(ge===Le)return this;var $e=ot(xt,this),Ue=An,rt=void 0;if(le&&he(Le)){if(Ue&=~_r,!Ue)return me;if(ai.length<=2&&ht(ai[gt^1]))return ai[gt^1];rt=ie($e,gt,ai)}else if(!le&&!he(Le)){if(ai.length>=g)return mt(xt,Pi,Le,An,ai);Ue|=_r,rt=K($e,gt,Le,ai)}else rt=Y($e,gt,Le,ai);return $e?(this.mask=Ue,this.children=rt,this):Te(xt,Ue,rt)},je=function(xt,ln,Wt,Qt,an,yn,bn){var An=this.size,ai=this.children,Pi=j(Wt,an),_r=ai[Pi],gt=(_r||me)._modify(xt,ln,Wt+o,Qt,an,yn,bn);if(_r===gt)return this;var le=ot(xt,this),ge=void 0;if(he(_r)&&!he(gt))++An,ge=Y(le,Pi,gt,ai);else if(!he(_r)&&he(gt)){if(--An,An<=s)return vt(xt,An,Pi,ai);ge=Y(le,Pi,me,ai)}else ge=Y(le,Pi,gt,ai);return le?(this.size=An,this.children=ge,this):ze(xt,An,ge)};me._modify=function(Lt,xt,ln,Wt,Qt,an,yn){var bn=Wt();return bn===v?me:(++yn.value,De(Lt,Qt,an,bn))};function ye(Lt,xt,ln,Wt,Qt){this._editable=Lt,this._edit=xt,this._config=ln,this._root=Wt,this._size=Qt}ye.prototype.setTree=function(Lt,xt){return this._editable?(this._root=Lt,this._size=xt,this):Lt===this._root?this:new ye(this._editable,this._edit,this._config,Lt,xt)};var ee=n.tryGetHash=function(Lt,xt,ln,Wt){for(var Qt=Wt._root,an=0,yn=Wt._config.keyEq;;)switch(Qt.type){case J:return yn(ln,Qt.key)?Qt.value:Lt;case te:{if(xt===Qt.hash)for(var bn=Qt.children,An=0,ai=bn.length;An<ai;++An){var Pi=bn[An];if(yn(ln,Pi.key))return Pi.value}return Lt}case oe:{var _r=j(an,xt),gt=F(_r);if(Qt.mask>){Qt=Qt.children[$(Qt.mask,gt)],an+=o;break}return Lt}case pe:{if(Qt=Qt.children[j(an,xt)],Qt){an+=o;break}return Lt}default:return Lt}};ye.prototype.tryGetHash=function(Lt,xt,ln){return ee(Lt,xt,ln,this)};var fe=n.tryGet=function(Lt,xt,ln){return ee(Lt,ln._config.hash(xt),xt,ln)};ye.prototype.tryGet=function(Lt,xt){return fe(Lt,xt,this)};var Ne=n.getHash=function(Lt,xt,ln){return ee(void 0,Lt,xt,ln)};ye.prototype.getHash=function(Lt,xt){return Ne(Lt,xt,this)},n.get=function(Lt,xt){return ee(void 0,xt._config.hash(Lt),Lt,xt)},ye.prototype.get=function(Lt,xt){return fe(xt,Lt,this)};var Ee=n.has=function(Lt,xt,ln){return ee(v,Lt,xt,ln)!==v};ye.prototype.hasHash=function(Lt,xt){return Ee(Lt,xt,this)};var Xe=n.has=function(Lt,xt){return Ee(xt._config.hash(Lt),Lt,xt)};ye.prototype.has=function(Lt){return Xe(Lt,this)};var ft=function(xt,ln){return xt===ln};n.make=function(Lt){return new ye(0,0,{keyEq:Lt&&Lt.keyEq||ft,hash:Lt&&Lt.hash||z},me,0)},n.empty=n.make();var it=n.isEmpty=function(Lt){return Lt&&!!he(Lt._root)};ye.prototype.isEmpty=function(){return it(this)};var ue=n.modifyHash=function(Lt,xt,ln,Wt){var Qt={value:Wt._size},an=Wt._root._modify(Wt._editable?Wt._edit:NaN,Wt._config.keyEq,0,Lt,xt,ln,Qt);return Wt.setTree(an,Qt.value)};ye.prototype.modifyHash=function(Lt,xt,ln){return ue(ln,Lt,xt,this)};var Dt=n.modify=function(Lt,xt,ln){return ue(Lt,ln._config.hash(xt),xt,ln)};ye.prototype.modify=function(Lt,xt){return Dt(xt,Lt,this)};var Gt=n.setHash=function(Lt,xt,ln,Wt){return ue(E(ln),Lt,xt,Wt)};ye.prototype.setHash=function(Lt,xt,ln){return Gt(Lt,xt,ln,this)};var Et=n.set=function(Lt,xt,ln){return Gt(ln._config.hash(Lt),Lt,xt,ln)};ye.prototype.set=function(Lt,xt){return Et(Lt,xt,this)};var We=E(v),Ut=n.removeHash=function(Lt,xt,ln){return ue(We,Lt,xt,ln)};ye.prototype.removeHash=ye.prototype.deleteHash=function(Lt,xt){return Ut(Lt,xt,this)};var wt=n.remove=function(Lt,xt){return Ut(xt._config.hash(Lt),Lt,xt)};ye.prototype.remove=ye.prototype.delete=function(Lt){return wt(Lt,this)};var en=n.beginMutation=function(Lt){return new ye(Lt._editable+1,Lt._edit+1,Lt._config,Lt._root,Lt._size)};ye.prototype.beginMutation=function(){return en(this)};var Jt=n.endMutation=function(Lt){return Lt._editable=Lt._editable&&Lt._editable-1,Lt};ye.prototype.endMutation=function(){return Jt(this)};var Nn=n.mutate=function(Lt,xt){var ln=en(xt);return Lt(ln),Jt(ln)};ye.prototype.mutate=function(Lt){return Nn(Lt,this)};var xn=function(xt){return xt&&dn(xt[0],xt[1],xt[2],xt[3],xt[4])},dn=function(xt,ln,Wt,Qt,an){for(;Wt<xt;){var yn=ln[Wt++];if(yn&&!he(yn))return mn(yn,Qt,[xt,ln,Wt,Qt,an])}return xn(an)},mn=function(xt,ln,Wt){switch(xt.type){case J:return{value:ln(xt),rest:Wt};case te:case pe:case oe:var Qt=xt.children;return dn(Qt.length,Qt,0,ln,Wt);default:return xn(Wt)}},ti={done:!0};function Yt(Lt){this.v=Lt}Yt.prototype.next=function(){if(!this.v)return ti;var Lt=this.v;return this.v=xn(Lt.rest),Lt},Yt.prototype[Symbol.iterator]=function(){return this};var jn=function(xt,ln){return new Yt(mn(xt._root,ln))},On=function(xt){return[xt.key,xt.value]},fn=n.entries=function(Lt){return jn(Lt,On)};ye.prototype.entries=ye.prototype[Symbol.iterator]=function(){return fn(this)};var ei=function(xt){return xt.key},vi=n.keys=function(Lt){return jn(Lt,ei)};ye.prototype.keys=function(){return vi(this)};var Zi=function(xt){return xt.value},ii=n.values=ye.prototype.values=function(Lt){return jn(Lt,Zi)};ye.prototype.values=function(){return ii(this)};var Hn=n.fold=function(Lt,xt,ln){var Wt=ln._root;if(Wt.type===J)return Lt(xt,Wt.value,Wt.key);for(var Qt=[Wt.children],an=void 0;an=Qt.pop();)for(var yn=0,bn=an.length;yn<bn;){var An=an[yn++];An&&An.type&&(An.type===J?xt=Lt(xt,An.value,An.key):Qt.push(An.children))}return xt};ye.prototype.fold=function(Lt,xt){return Hn(Lt,xt,this)};var Wi=n.forEach=function(Lt,xt){return Hn(function(ln,Wt,Qt){return Lt(Wt,Qt,xt)},null,xt)};ye.prototype.forEach=function(Lt){return Wi(Lt,this)};var yr=n.count=function(Lt){return Lt._size};ye.prototype.count=function(){return yr(this)},Object.defineProperty(ye.prototype,"size",{get:ye.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class JJ{constructor(t){Ei(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this._map.set(t,n),this}delete(t){return this._map.delete(t),this}clone(){return iI(this)}toMap(){return new Map(this._map)}}class nI{constructor(t){if(Ei(this,"_hamt",XJ.empty.beginMutation()),t instanceof nI){const n=t._hamt.endMutation();t._hamt=n.beginMutation(),this._hamt=n.beginMutation()}else if(t)for(const[n,o]of t.entries())this._hamt.set(n,o)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,n){return this._hamt.set(t,n),this}delete(t){return this._hamt.delete(t),this}clone(){return iI(this)}toMap(){return new Map(this._hamt)}}function iI(e){return gr("recoil_hamt_2020")?new nI(e):new JJ(e)}var eee={persistentMap:iI},tee=eee.persistentMap,nee=Object.freeze({__proto__:null,persistentMap:tee});function iee(e,...t){const n=new Set;e:for(const o of e){for(const l of t)if(l.has(o))continue e;n.add(o)}return n}var Jg=iee;function ree(e,t){const n=new Map;return e.forEach((o,l)=>{n.set(l,t(o,l))}),n}var Qv=ree;function oee(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function see(e){return{nodeDeps:Qv(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Qv(e.nodeToNodeSubscriptions,t=>new Set(t))}}function rI(e,t,n,o){const{nodeDeps:l,nodeToNodeSubscriptions:d}=n,g=l.get(e);if(g&&o&&g!==o.nodeDeps.get(e))return;l.set(e,t);const s=g==null?t:Jg(t,g);for(const v of s)d.has(v)||d.set(v,new Set),Rr(d.get(v)).add(e);if(g){const v=Jg(g,t);for(const E of v){if(!d.has(E))return;const z=Rr(d.get(E));z.delete(e),z.size===0&&d.delete(E)}}}function aee(e,t,n,o){var l,d,g,s;const v=n.getState();o===v.currentTree.version||o===((l=v.nextTree)===null||l===void 0?void 0:l.version)||((d=v.previousTree)===null||d===void 0||d.version);const E=n.getGraph(o);if(rI(e,t,E),o===((g=v.previousTree)===null||g===void 0?void 0:g.version)){const O=n.getGraph(v.currentTree.version);rI(e,t,O,E)}if(o===((s=v.previousTree)===null||s===void 0?void 0:s.version)||o===v.currentTree.version){var z;const O=(z=v.nextTree)===null||z===void 0?void 0:z.version;if(O!==void 0){const j=n.getGraph(O);rI(e,t,j,E)}}}var e1={cloneGraph:see,graph:oee,saveDepsToStore:aee};let lee=0;const cee=()=>lee++;let uee=0;const hee=()=>uee++;let dee=0;var Yv={getNextTreeStateVersion:cee,getNextStoreID:hee,getNextComponentID:()=>dee++};const{persistentMap:l9}=nee,{graph:fee}=e1,{getNextTreeStateVersion:c9}=Yv;function u9(){const e=c9();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:l9(),nonvalidatedAtoms:l9()}}function pee(){const e=u9();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,fee()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var h9={makeEmptyTreeState:u9,makeEmptyStoreState:pee,getNextTreeStateVersion:c9};class d9{}function mee(){return new d9}var Gv={RetentionZone:d9,retentionZone:mee};function gee(e,t){const n=new Set(e);return n.add(t),n}function yee(e,t){const n=new Set(e);return n.delete(t),n}function _ee(e,t,n){const o=new Map(e);return o.set(t,n),o}function vee(e,t,n){const o=new Map(e);return o.set(t,n(o.get(t))),o}function xee(e,t){const n=new Map(e);return n.delete(t),n}function bee(e,t){const n=new Map(e);return t.forEach(o=>n.delete(o)),n}var f9={setByAddingToSet:gee,setByDeletingFromSet:yee,mapBySettingInMap:_ee,mapByUpdatingInMap:vee,mapByDeletingFromMap:xee,mapByDeletingMultipleFromMap:bee};function*Mee(e,t){let n=0;for(const o of e)t(o,n++)&&(yield o)}var oI=Mee;function wee(e,t){return new Proxy(e,{get:(o,l)=>(!(l in o)&&l in t&&(o[l]=t[l]()),o[l]),ownKeys:o=>Object.keys(o)})}var p9=wee;const{getNode:t1,getNodeMaybe:Iee,recoilValuesForKeys:m9}=Ss,{RetentionZone:g9}=Gv,{setByAddingToSet:Tee}=f9,See=Object.freeze(new Set);class Eee extends Error{}function Dee(e,t,n){if(!gr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:o}=e.getState().retention;function l(d){let g=o.get(d);g||o.set(d,g=new Set),g.add(t)}if(n instanceof g9)l(n);else if(Array.isArray(n))for(const d of n)l(d);return()=>{if(!gr("recoil_memory_managament_2020"))return;const{retention:d}=e.getState();function g(s){const v=d.nodesRetainedByZone.get(s);v==null||v.delete(t),v&&v.size===0&&d.nodesRetainedByZone.delete(s)}if(n instanceof g9)g(n);else if(Array.isArray(n))for(const s of n)g(s)}}function sI(e,t,n,o){const l=e.getState();if(l.nodeCleanupFunctions.has(n))return;const d=t1(n),g=Dee(e,n,d.retainedBy),s=d.init(e,t,o);l.nodeCleanupFunctions.set(n,()=>{s(),g()})}function Cee(e,t,n){sI(e,e.getState().currentTree,t,n)}function Aee(e,t){var n;const o=e.getState();(n=o.nodeCleanupFunctions.get(t))===null||n===void 0||n(),o.nodeCleanupFunctions.delete(t)}function Nee(e,t,n){return sI(e,t,n,"get"),t1(n).get(e,t)}function y9(e,t,n){return t1(n).peek(e,t)}function Lee(e,t,n){var o;const l=Iee(t);return l==null||(o=l.invalidate)===null||o===void 0||o.call(l,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Tee(e.dirtyAtoms,t)}}function zee(e,t,n,o){const l=t1(n);if(l.set==null)throw new Eee(`Attempt to set read-only RecoilValue: ${n}`);const d=l.set;return sI(e,t,n,"set"),d(e,t,o)}function kee(e,t,n){const o=e.getState(),l=e.getGraph(t.version),d=t1(n).nodeType;return p9({type:d},{loadable:()=>y9(e,t,n),isActive:()=>o.knownAtoms.has(n)||o.knownSelectors.has(n),isSet:()=>d==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var g;return m9((g=l.nodeDeps.get(n))!==null&&g!==void 0?g:[])},subscribers:()=>{var g,s;return{nodes:m9(oI(_9(e,t,new Set([n])),v=>v!==n)),components:$v((g=(s=o.nodeToComponentSubscriptions.get(n))===null||s===void 0?void 0:s.values())!==null&&g!==void 0?g:[],([v])=>({name:v}))}}})}function _9(e,t,n){const o=new Set,l=Array.from(n),d=e.getGraph(t.version);for(let s=l.pop();s;s=l.pop()){var g;o.add(s);const v=(g=d.nodeToNodeSubscriptions.get(s))!==null&&g!==void 0?g:See;for(const E of v)o.has(E)||l.push(E)}return o}var uu={getNodeLoadable:Nee,peekNodeLoadable:y9,setNodeValue:zee,initializeNode:Cee,cleanUpNode:Aee,setUnvalidatedAtomValue_DEPRECATED:Lee,peekNodeInfo:kee,getDownstreamNodes:_9};let v9=null;function Oee(e){v9=e}function jee(){var e;(e=v9)===null||e===void 0||e()}var x9={setInvalidateMemoizedSnapshot:Oee,invalidateMemoizedSnapshot:jee};const{getDownstreamNodes:Ree,getNodeLoadable:b9,setNodeValue:Pee}=uu,{getNextComponentID:Uee}=Yv,{getNode:Bee,getNodeMaybe:M9}=Ss,{DefaultValue:aI}=Ss,{reactMode:Fee}=Xg,{AbstractRecoilValue:Vee,RecoilState:$ee,RecoilValueReadOnly:Hee,isRecoilValue:Qee}=Qf,{invalidateMemoizedSnapshot:Yee}=x9;function Gee(e,{key:t},n=e.getState().currentTree){var o,l;const d=e.getState();n.version===d.currentTree.version||n.version===((o=d.nextTree)===null||o===void 0?void 0:o.version)||(n.version,(l=d.previousTree)===null||l===void 0||l.version);const g=b9(e,n,t);return g.state==="loading"&&g.contents.catch(()=>{}),g}function Zee(e,t){const n=e.clone();return t.forEach((o,l)=>{o.state==="hasValue"&&o.contents instanceof aI?n.delete(l):n.set(l,o)}),n}function Wee(e,t,{key:n},o){if(typeof o=="function"){const l=b9(e,t,n);if(l.state==="loading"){const d=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw Li(d)}else if(l.state==="hasError")throw l.contents;return o(l.contents)}else return o}function qee(e,t,n){if(n.type==="set"){const{recoilValue:l,valueOrUpdater:d}=n,g=Wee(e,t,l,d),s=Pee(e,t,l.key,g);for(const[v,E]of s.entries())lI(t,v,E)}else if(n.type==="setLoadable"){const{recoilValue:{key:l},loadable:d}=n;lI(t,l,d)}else if(n.type==="markModified"){const{recoilValue:{key:l}}=n;t.dirtyAtoms.add(l)}else if(n.type==="setUnvalidated"){var o;const{recoilValue:{key:l},unvalidatedValue:d}=n,g=M9(l);g==null||(o=g.invalidate)===null||o===void 0||o.call(g,t),t.atomValues.delete(l),t.nonvalidatedAtoms.set(l,d),t.dirtyAtoms.add(l)}else q5(`Unknown action ${n.type}`)}function lI(e,t,n){n.state==="hasValue"&&n.contents instanceof aI?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function w9(e,t){e.replaceState(n=>{const o=I9(n);for(const l of t)qee(e,o,l);return T9(e,o),Yee(),o})}function Zv(e,t){if(n1.length){const n=n1[n1.length-1];let o=n.get(e);o||n.set(e,o=[]),o.push(t)}else w9(e,[t])}const n1=[];function Kee(){const e=new Map;return n1.push(e),()=>{for(const[t,n]of e)w9(t,n);n1.pop()}}function I9(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function T9(e,t){const n=Ree(e,t,t.dirtyAtoms);for(const d of n){var o,l;(o=M9(d))===null||o===void 0||(l=o.invalidate)===null||l===void 0||l.call(o,t)}}function S9(e,t,n){Zv(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function Xee(e,t,n){if(n instanceof aI)return S9(e,t,n);Zv(e,{type:"setLoadable",recoilValue:t,loadable:n})}function Jee(e,t){Zv(e,{type:"markModified",recoilValue:t})}function ete(e,t,n){Zv(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function tte(e,{key:t},n,o=null){const l=Uee(),d=e.getState();d.nodeToComponentSubscriptions.has(t)||d.nodeToComponentSubscriptions.set(t,new Map),Rr(d.nodeToComponentSubscriptions.get(t)).set(l,[o??"<not captured>",n]);const g=Fee();if(g.early&&(g.mode==="LEGACY"||g.mode==="MUTABLE_SOURCE")){const s=e.getState().nextTree;s&&s.dirtyAtoms.has(t)&&n(s)}return{release:()=>{const s=e.getState(),v=s.nodeToComponentSubscriptions.get(t);v===void 0||!v.has(l)||(v.delete(l),v.size===0&&s.nodeToComponentSubscriptions.delete(t))}}}function nte(e,t){var n;const{currentTree:o}=e.getState(),l=Bee(t.key);(n=l.clearCache)===null||n===void 0||n.call(l,e,o)}var yl={RecoilValueReadOnly:Hee,AbstractRecoilValue:Vee,RecoilState:$ee,getRecoilValueAsLoadable:Gee,setRecoilValue:S9,setRecoilValueLoadable:Xee,markRecoilValueModified:Jee,setUnvalidatedRecoilValue:ete,subscribeToRecoilValue:tte,isRecoilValue:Qee,applyAtomValueWrites:Zee,batchStart:Kee,writeLoadableToTreeState:lI,invalidateDownstreams:T9,copyTreeState:I9,refreshRecoilValue:nte};function ite(e,t,n){const o=e.entries();let l=o.next();for(;!l.done;){const d=l.value;if(t.call(n,d[1],d[0],e))return!0;l=o.next()}return!1}var rte=ite;const{cleanUpNode:ote}=uu,{deleteNodeConfigIfPossible:ste,getNode:E9}=Ss,{RetentionZone:D9}=Gv,ate=12e4,C9=new Set;function A9(e,t){const n=e.getState(),o=n.currentTree;if(n.nextTree)return;const l=new Set;for(const g of t)if(g instanceof D9)for(const s of hte(n,g))l.add(s);else l.add(g);const d=lte(e,l);for(const g of d)ute(e,o,g)}function lte(e,t){const n=e.getState(),o=n.currentTree,l=e.getGraph(o.version),d=new Set,g=new Set;return s(t),d;function s(v){const E=new Set,z=cte(e,o,v,d,g);for(const $ of z){var O;if(E9($).retainedBy==="recoilRoot"){g.add($);continue}if(((O=n.retention.referenceCounts.get($))!==null&&O!==void 0?O:0)>0){g.add($);continue}if(N9($).some(ie=>n.retention.referenceCounts.get(ie))){g.add($);continue}const Y=l.nodeToNodeSubscriptions.get($);if(Y&&rte(Y,ie=>g.has(ie))){g.add($);continue}d.add($),E.add($)}const j=new Set;for(const $ of E)for(const Y of(F=l.nodeDeps.get($))!==null&&F!==void 0?F:C9){var F;d.has(Y)||j.add(Y)}j.size&&s(j)}}function cte(e,t,n,o,l){const d=e.getGraph(t.version),g=[],s=new Set;for(;n.size>0;)v(Rr(n.values().next().value));return g;function v(E){if(o.has(E)||l.has(E)){n.delete(E);return}if(s.has(E))return;const z=d.nodeToNodeSubscriptions.get(E);if(z)for(const O of z)v(O);s.add(E),n.delete(E),g.push(E)}}function ute(e,t,n){if(!gr("recoil_memory_managament_2020"))return;ote(e,n);const o=e.getState();o.knownAtoms.delete(n),o.knownSelectors.delete(n),o.nodeTransactionSubscriptions.delete(n),o.retention.referenceCounts.delete(n);const l=N9(n);for(const v of l){var d;(d=o.retention.nodesRetainedByZone.get(v))===null||d===void 0||d.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const g=o.graphsByVersion.get(t.version);if(g){const v=g.nodeDeps.get(n);if(v!==void 0){g.nodeDeps.delete(n);for(const E of v){var s;(s=g.nodeToNodeSubscriptions.get(E))===null||s===void 0||s.delete(n)}}g.nodeToNodeSubscriptions.delete(n)}ste(n)}function hte(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:C9}function N9(e){const t=E9(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof D9?[t]:t}function dte(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):A9(e,new Set([t]))}function fte(e,t,n){var o;if(!gr("recoil_memory_managament_2020"))return;const l=e.getState().retention.referenceCounts,d=((o=l.get(t))!==null&&o!==void 0?o:0)+n;d===0?L9(e,t):l.set(t,d)}function L9(e,t){if(!gr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),dte(e,t)}function pte(e){if(!gr("recoil_memory_managament_2020"))return;const t=e.getState();A9(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function mte(e){return e===void 0?"recoilRoot":e}var Uh={SUSPENSE_TIMEOUT_MS:ate,updateRetainCount:fte,updateRetainCountToZero:L9,releaseScheduledRetainablesNow:pte,retainedByOptionWithDefault:mte};const{unstable_batchedUpdates:gte}=Wg;var yte={unstable_batchedUpdates:gte};const{unstable_batchedUpdates:_te}=yte;var vte={unstable_batchedUpdates:_te};const{batchStart:xte}=yl,{unstable_batchedUpdates:bte}=vte;let cI=bte||(e=>e());var Wv={getBatcher:()=>cI,setBatcher:e=>{cI=e},batchUpdates:e=>{cI(()=>{let t=()=>{};try{t=xte(),e()}finally{t()}})}};function*Mte(e){for(const t of e)for(const n of t)yield n}var z9=Mte;const k9=typeof Window>"u"||typeof window>"u",wte=e=>!k9&&(e===window||e instanceof Window),Ite=typeof navigator<"u"&&navigator.product==="ReactNative";var qv={isSSR:k9,isReactNative:Ite,isWindow:wte};function Tte(e,t){let n;return(...o)=>{n||(n={});const l=t(...o);return Object.hasOwnProperty.call(n,l)||(n[l]=e(...o)),n[l]}}function Ste(e,t){let n,o;return(...l)=>{const d=t(...l);return n===d||(n=d,o=e(...l)),o}}function Ete(e,t){let n,o;return[(...g)=>{const s=t(...g);return n===s||(n=s,o=e(...g)),o},()=>{n=null}]}var Dte={memoizeWithArgsHash:Tte,memoizeOneWithArgsHash:Ste,memoizeOneWithArgsHashAndInvalidation:Ete};const{batchUpdates:uI}=Wv,{initializeNode:Cte,peekNodeInfo:Ate}=uu,{graph:Nte}=e1,{getNextStoreID:Lte}=Yv,{DEFAULT_VALUE:zte,recoilValues:O9,recoilValuesForKeys:j9}=Ss,{AbstractRecoilValue:kte,getRecoilValueAsLoadable:Ote,setRecoilValue:R9,setUnvalidatedRecoilValue:jte}=yl,{updateRetainCount:Kv}=Uh,{setInvalidateMemoizedSnapshot:Rte}=x9,{getNextTreeStateVersion:Pte,makeEmptyStoreState:Ute}=h9,{isSSR:Bte}=qv,{memoizeOneWithArgsHashAndInvalidation:Fte}=Dte;class Xv{constructor(t,n){Ei(this,"_store",void 0),Ei(this,"_refCount",1),Ei(this,"getLoadable",o=>(this.checkRefCount_INTERNAL(),Ote(this._store,o))),Ei(this,"getPromise",o=>(this.checkRefCount_INTERNAL(),this.getLoadable(o).toPromise())),Ei(this,"getNodes_UNSTABLE",o=>{if(this.checkRefCount_INTERNAL(),(o==null?void 0:o.isModified)===!0){if((o==null?void 0:o.isInitialized)===!1)return[];const g=this._store.getState().currentTree;return j9(g.dirtyAtoms)}const l=this._store.getState().knownAtoms,d=this._store.getState().knownSelectors;return(o==null?void 0:o.isInitialized)==null?O9.values():o.isInitialized===!0?j9(z9([l,d])):oI(O9.values(),({key:g})=>!l.has(g)&&!d.has(g))}),Ei(this,"getInfo_UNSTABLE",({key:o})=>(this.checkRefCount_INTERNAL(),Ate(this._store,this._store.getState().currentTree,o))),Ei(this,"map",o=>{this.checkRefCount_INTERNAL();const l=new hI(this,uI);return o(l),l}),Ei(this,"asyncMap",async o=>{this.checkRefCount_INTERNAL();const l=new hI(this,uI);return l.retain(),await o(l),l.autoRelease_INTERNAL(),l}),this._store={storeID:Lte(),parentStoreID:n,getState:()=>t,replaceState:o=>{t.currentTree=o(t.currentTree)},getGraph:o=>{const l=t.graphsByVersion;if(l.has(o))return Rr(l.get(o));const d=Nte();return l.set(o,d),d},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Li("Cannot subscribe to Snapshots")}};for(const o of this._store.getState().knownAtoms)Cte(this._store,o,"get"),Kv(this._store,o,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){Bte||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!gr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){gr("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function P9(e,t,n=!1){const o=e.getState(),l=n?Pte():t.version;return{currentTree:{version:n?l:t.version,stateID:n?l:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(o.knownAtoms),knownSelectors:new Set(o.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(l,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map($v(o.nodeCleanupFunctions.entries(),([d])=>[d,()=>{}]))}}function Vte(e){const t=new Xv(Ute());return e!=null?t.map(e):t}const[U9,B9]=Fte((e,t)=>{var n;const o=e.getState(),l=t==="latest"?(n=o.nextTree)!==null&&n!==void 0?n:o.currentTree:Rr(o.previousTree);return new Xv(P9(e,l),e.storeID)},(e,t)=>{var n,o;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((o=e.getState().previousTree)===null||o===void 0?void 0:o.version)});Rte(B9);function $te(e,t="latest"){const n=U9(e,t);return n.isRetained()?n:(B9(),U9(e,t))}class hI extends Xv{constructor(t,n){super(P9(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Ei(this,"_batch",void 0),Ei(this,"set",(o,l)=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();this._batch(()=>{Kv(d,o.key,1),R9(this.getStore_INTERNAL(),o,l)})}),Ei(this,"reset",o=>{this.checkRefCount_INTERNAL();const l=this.getStore_INTERNAL();this._batch(()=>{Kv(l,o.key,1),R9(this.getStore_INTERNAL(),o,zte)})}),Ei(this,"setUnvalidatedAtomValues_DEPRECATED",o=>{this.checkRefCount_INTERNAL();const l=this.getStore_INTERNAL();uI(()=>{for(const[d,g]of o.entries())Kv(l,d,1),jte(l,new kte(d),g)})}),this._batch=n}}var Jv={Snapshot:Xv,MutableSnapshot:hI,freshSnapshot:Vte,cloneSnapshot:$te},Hte=Jv.Snapshot,Qte=Jv.MutableSnapshot,Yte=Jv.freshSnapshot,Gte=Jv.cloneSnapshot,ex=Object.freeze({__proto__:null,Snapshot:Hte,MutableSnapshot:Qte,freshSnapshot:Yte,cloneSnapshot:Gte});function Zte(...e){const t=new Set;for(const n of e)for(const o of n)t.add(o);return t}var Wte=Zte;const{useRef:qte}=Yi;function Kte(e){const t=qte(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var F9=Kte;const{getNextTreeStateVersion:Xte,makeEmptyStoreState:V9}=h9,{cleanUpNode:Jte,getDownstreamNodes:ene,initializeNode:tne,setNodeValue:nne,setUnvalidatedAtomValue_DEPRECATED:ine}=uu,{graph:rne}=e1,{cloneGraph:one}=e1,{getNextStoreID:$9}=Yv,{createMutableSource:dI,reactMode:H9}=Xg,{applyAtomValueWrites:sne}=yl,{releaseScheduledRetainablesNow:Q9}=Uh,{freshSnapshot:ane}=ex,{useCallback:lne,useContext:Y9,useEffect:fI,useMemo:cne,useRef:une,useState:hne}=Yi;function i1(){throw Li("This component must be used inside a <RecoilRoot> component.")}const G9=Object.freeze({storeID:$9(),getState:i1,replaceState:i1,getGraph:i1,subscribeToTransactions:i1,addTransactionMetadata:i1});let pI=!1;function Z9(e){if(pI)throw Li("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){gr("recoil_memory_managament_2020")&&gr("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Q9(e);const n=t.currentTree.version,o=Xte();t.nextTree={...t.currentTree,version:o,stateID:o,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(o,one(Rr(t.graphsByVersion.get(n))))}}const W9=Yi.createContext({current:G9}),tx=()=>Y9(W9),q9=Yi.createContext(null);function dne(){return Y9(q9)}function mI(e,t,n){const o=ene(e,n,n.dirtyAtoms);for(const l of o){const d=t.nodeToComponentSubscriptions.get(l);if(d)for(const[g,[s,v]]of d)v(n)}}function K9(e){const t=e.getState(),n=t.currentTree,o=n.dirtyAtoms;if(o.size){for(const[l,d]of t.nodeTransactionSubscriptions)if(o.has(l))for(const[g,s]of d)s(e);for(const[l,d]of t.transactionSubscriptions)d(e);(!H9().early||t.suspendedComponentResolvers.size>0)&&(mI(e,t,n),t.suspendedComponentResolvers.forEach(l=>l()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(l=>l(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function fne(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,K9(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):q5("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,gr("recoil_memory_managament_2020")&&n==null&&Q9(e)}finally{t.commitDepth--}}function pne({setNotifyBatcherOfChange:e}){const t=tx(),[,n]=hne([]);return e(()=>n({})),fI(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),fI(()=>{qJ.enqueueExecution("Batcher",()=>{fne(t.current)})}),null}function mne(e,t){const n=V9();return t({set:(o,l)=>{const d=n.currentTree,g=nne(e,d,o.key,l),s=new Set(g.keys()),v=d.nonvalidatedAtoms.clone();for(const E of s)v.delete(E);n.currentTree={...d,dirtyAtoms:Wte(d.dirtyAtoms,s),atomValues:sne(d.atomValues,g),nonvalidatedAtoms:v}},setUnvalidatedAtomValues:o=>{o.forEach((l,d)=>{n.currentTree=ine(n.currentTree,d,l)})}}),n}function gne(e){const t=ane(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(o=>o()),n.nodeCleanupFunctions.clear(),n}let X9=0;function yne({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:o}){let l;const d=F=>{const $=l.current.graphsByVersion;if($.has(F))return Rr($.get(F));const Y=rne();return $.set(F,Y),Y},g=(F,$)=>{if($==null){const{transactionSubscriptions:Y}=O.current.getState(),ie=X9++;return Y.set(ie,F),{release:()=>{Y.delete(ie)}}}else{const{nodeTransactionSubscriptions:Y}=O.current.getState();Y.has($)||Y.set($,new Map);const ie=X9++;return Rr(Y.get($)).set(ie,F),{release:()=>{const K=Y.get($);K&&(K.delete(ie),K.size===0&&Y.delete($))}}}},s=F=>{Z9(O.current);for(const $ of Object.keys(F))Rr(O.current.getState().nextTree).transactionMetadata[$]=F[$]},v=F=>{Z9(O.current);const $=Rr(l.current.nextTree);let Y;try{pI=!0,Y=F($)}finally{pI=!1}Y!==$&&(l.current.nextTree=Y,H9().early&&mI(O.current,l.current,Y),Rr(E.current)())},E=une(null),z=lne(F=>{E.current=F},[E]),O=F9(()=>n??{storeID:$9(),getState:()=>l.current,replaceState:v,getGraph:d,subscribeToTransactions:g,addTransactionMetadata:s});n!=null&&(O.current=n),l=F9(()=>e!=null?mne(O.current,e):t!=null?gne(t):V9());const j=cne(()=>dI==null?void 0:dI(l,()=>l.current.currentTree.version),[l]);return fI(()=>{const F=O.current;for(const $ of new Set(F.getState().knownAtoms))tne(F,$,"get");return()=>{for(const $ of F.getState().knownAtoms)Jte(F,$)}},[O]),Yi.createElement(W9.Provider,{value:O},Yi.createElement(q9.Provider,{value:j},Yi.createElement(pne,{setNotifyBatcherOfChange:z}),o))}function _ne(e){const{override:t,...n}=e,o=tx();return t===!1&&o.current!==G9?e.children:Yi.createElement(yne,n)}function vne(){return tx().current.storeID}var ac={RecoilRoot:_ne,useStoreRef:tx,useRecoilMutableSource:dne,useRecoilStoreID:vne,notifyComponents_FOR_TESTING:mI,sendEndOfBatchNotifications_FOR_TESTING:K9};function xne(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!1;return!0}var bne=xne;const{useEffect:Mne,useRef:wne}=Yi;function Ine(e){const t=wne();return Mne(()=>{t.current=e}),t.current}var J9=Ine;const{useStoreRef:Tne}=ac,{SUSPENSE_TIMEOUT_MS:Sne}=Uh,{updateRetainCount:r1}=Uh,{RetentionZone:Ene}=Gv,{useEffect:Dne,useRef:Cne}=Yi,{isSSR:ek}=qv;function Ane(e){if(gr("recoil_memory_managament_2020"))return Nne(e)}function Nne(e){const n=(Array.isArray(e)?e:[e]).map(g=>g instanceof Ene?g:g.key),o=Tne();Dne(()=>{if(!gr("recoil_memory_managament_2020"))return;const g=o.current;if(l.current&&!ek)window.clearTimeout(l.current),l.current=null;else for(const s of n)r1(g,s,1);return()=>{for(const s of n)r1(g,s,-1)}},[o,...n]);const l=Cne(),d=J9(n);if(!ek&&(d===void 0||!bne(d,n))){const g=o.current;for(const s of n)r1(g,s,1);if(d)for(const s of d)r1(g,s,-1);l.current&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>{l.current=null;for(const s of n)r1(g,s,-1)},Sne)}}var gI=Ane;function Lne(){return"<component name not available>"}var o1=Lne;const{batchUpdates:zne}=Wv,{DEFAULT_VALUE:tk}=Ss,{currentRendererSupportsUseSyncExternalStore:kne,reactMode:Yf,useMutableSource:One,useSyncExternalStore:jne}=Xg,{useRecoilMutableSource:Rne,useStoreRef:_l}=ac,{AbstractRecoilValue:yI,getRecoilValueAsLoadable:s1,setRecoilValue:nx,setUnvalidatedRecoilValue:Pne,subscribeToRecoilValue:Gf}=yl,{useCallback:Es,useEffect:Zf,useMemo:nk,useRef:a1,useState:_I}=Yi,{setByAddingToSet:Une}=f9,{isSSR:Bne}=qv;function vI(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(l=>{const d=n.current.getState().suspendedComponentResolvers;d.add(l),Bne&&Nr(e.contents)&&e.contents.finally(()=>{d.delete(l)})}):e.state==="hasError"?e.contents:Li(`Invalid value of loadable atom "${t.key}"`)}function Fne(){const e=o1(),t=_l(),[,n]=_I([]),o=a1(new Set);o.current=new Set;const l=a1(new Set),d=a1(new Map),g=Es(v=>{const E=d.current.get(v);E&&(E.release(),d.current.delete(v))},[d]),s=Es((v,E)=>{d.current.has(E)&&n([])},[]);return Zf(()=>{const v=t.current;Jg(o.current,l.current).forEach(E=>{if(d.current.has(E))return;const z=Gf(v,new yI(E),j=>s(j,E),e);d.current.set(E,z),v.getState().nextTree?v.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s(v.getState(),E)}):s(v.getState(),E)}),Jg(l.current,o.current).forEach(E=>{g(E)}),l.current=o.current}),Zf(()=>{const v=d.current;return Jg(o.current,new Set(v.keys())).forEach(E=>{const z=Gf(t.current,new yI(E),O=>s(O,E),e);v.set(E,z)}),()=>v.forEach((E,z)=>g(z))},[e,t,g,s]),nk(()=>{function v($){return Y=>{nx(t.current,$,Y)}}function E($){return()=>nx(t.current,$,tk)}function z($){var Y;o.current.has($.key)||(o.current=Une(o.current,$.key));const ie=t.current.getState();return s1(t.current,$,Yf().early&&(Y=ie.nextTree)!==null&&Y!==void 0?Y:ie.currentTree)}function O($){const Y=z($);return vI(Y,$,t)}function j($){return[O($),v($)]}function F($){return[z($),v($)]}return{getRecoilValue:O,getRecoilValueLoadable:z,getRecoilState:j,getRecoilStateLoadable:F,getSetRecoilState:v,getResetRecoilState:E}},[o,t])}const Vne={current:0};function $ne(e){const t=_l(),n=o1(),o=Es(()=>{var s;const v=t.current,E=v.getState(),z=Yf().early&&(s=E.nextTree)!==null&&s!==void 0?s:E.currentTree;return{loadable:s1(v,e,z),key:e.key}},[t,e]),l=Es(s=>{let v;return()=>{var E,z;const O=s();return(E=v)!==null&&E!==void 0&&E.loadable.is(O.loadable)&&((z=v)===null||z===void 0?void 0:z.key)===O.key?v:(v=O,O)}},[]),d=nk(()=>l(o),[o,l]),g=Es(s=>{const v=t.current;return Gf(v,e,s,n).release},[t,e,n]);return jne(g,d,d).loadable}function Hne(e){const t=_l(),n=Es(()=>{var E;const z=t.current,O=z.getState(),j=Yf().early&&(E=O.nextTree)!==null&&E!==void 0?E:O.currentTree;return s1(z,e,j)},[t,e]),o=Es(()=>n(),[n]),l=o1(),d=Es((E,z)=>{const O=t.current;return Gf(O,e,()=>{if(!gr("recoil_suppress_rerender_in_callback"))return z();const F=n();v.current.is(F)||z(),v.current=F},l).release},[t,e,l,n]),g=Rne();if(g==null)throw Li("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const s=One(g,o,d),v=a1(s);return Zf(()=>{v.current=s}),s}function xI(e){const t=_l(),n=o1(),o=Es(()=>{var v;const E=t.current,z=E.getState(),O=Yf().early&&(v=z.nextTree)!==null&&v!==void 0?v:z.currentTree;return s1(E,e,O)},[t,e]),l=Es(()=>({loadable:o(),key:e.key}),[o,e.key]),d=Es(v=>{const E=l();return v.loadable.is(E.loadable)&&v.key===E.key?v:E},[l]);Zf(()=>{const v=Gf(t.current,e,E=>{s(d)},n);return s(d),v.release},[n,e,t,d]);const[g,s]=_I(l);return g.key!==e.key?l().loadable:g.loadable}function Qne(e){const t=_l(),[,n]=_I([]),o=o1(),l=Es(()=>{var s;const v=t.current,E=v.getState(),z=Yf().early&&(s=E.nextTree)!==null&&s!==void 0?s:E.currentTree;return s1(v,e,z)},[t,e]),d=l(),g=a1(d);return Zf(()=>{g.current=d}),Zf(()=>{const s=t.current,v=s.getState(),E=Gf(s,e,O=>{var j;if(!gr("recoil_suppress_rerender_in_callback"))return n([]);const F=l();(j=g.current)!==null&&j!==void 0&&j.is(F)||n(F),g.current=F},o);if(v.nextTree)s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{g.current=null,n([])});else{var z;if(!gr("recoil_suppress_rerender_in_callback"))return n([]);const O=l();(z=g.current)!==null&&z!==void 0&&z.is(O)||n(O),g.current=O}return E.release},[o,l,e,t]),d}function bI(e){return gr("recoil_memory_managament_2020")&&gI(e),{TRANSITION_SUPPORT:xI,SYNC_EXTERNAL_STORE:kne()?$ne:xI,MUTABLE_SOURCE:Hne,LEGACY:Qne}[Yf().mode](e)}function ik(e){const t=_l(),n=bI(e);return vI(n,e,t)}function ix(e){const t=_l();return Es(n=>{nx(t.current,e,n)},[t,e])}function Yne(e){const t=_l();return Es(()=>{nx(t.current,e,tk)},[t,e])}function Gne(e){return[ik(e),ix(e)]}function Zne(e){return[bI(e),ix(e)]}function Wne(){const e=_l();return(t,n={})=>{zne(()=>{e.current.addTransactionMetadata(n),t.forEach((o,l)=>Pne(e.current,new yI(l),o))})}}function rk(e){return gr("recoil_memory_managament_2020")&&gI(e),xI(e)}function ok(e){const t=_l(),n=rk(e);return vI(n,e,t)}function qne(e){return[ok(e),ix(e)]}var Kne={recoilComponentGetRecoilValueCount_FOR_TESTING:Vne,useRecoilInterface:Fne,useRecoilState:Gne,useRecoilStateLoadable:Zne,useRecoilValue:ik,useRecoilValueLoadable:bI,useResetRecoilState:Yne,useSetRecoilState:ix,useSetUnvalidatedAtomValues:Wne,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:rk,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:ok,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:qne};function Xne(e,t){const n=new Map;for(const[o,l]of e)t(l,o)&&n.set(o,l);return n}var Jne=Xne;function eie(e,t){const n=new Set;for(const o of e)t(o)&&n.add(o);return n}var tie=eie;function nie(...e){const t=new Map;for(let n=0;n<e.length;n++){const o=e[n].keys();let l;for(;!(l=o.next()).done;)t.set(l.value,e[n].get(l.value))}return t}var iie=nie;const{batchUpdates:rie}=Wv,{DEFAULT_VALUE:oie,getNode:sk,nodes:sie}=Ss,{useStoreRef:MI}=ac,{AbstractRecoilValue:aie,setRecoilValueLoadable:lie}=yl,{SUSPENSE_TIMEOUT_MS:cie}=Uh,{cloneSnapshot:rx}=ex,{useCallback:ox,useEffect:ak,useRef:lk,useState:uie}=Yi,{isSSR:ck}=qv;function sx(e){const t=MI();ak(()=>t.current.subscribeToTransactions(e).release,[e,t])}function uk(e){const t=e.atomValues.toMap(),n=Qv(Jne(t,(o,l)=>{const g=sk(l).persistence_UNSTABLE;return g!=null&&g.type!=="none"&&o.state==="hasValue"}),o=>o.contents);return iie(e.nonvalidatedAtoms.toMap(),n)}function hie(e){sx(ox(t=>{let n=t.getState().previousTree;const o=t.getState().currentTree;n||(n=t.getState().currentTree);const l=uk(o),d=uk(n),g=Qv(sie,v=>{var E,z,O,j;return{persistence_UNSTABLE:{type:(E=(z=v.persistence_UNSTABLE)===null||z===void 0?void 0:z.type)!==null&&E!==void 0?E:"none",backButton:(O=(j=v.persistence_UNSTABLE)===null||j===void 0?void 0:j.backButton)!==null&&O!==void 0?O:!1}}}),s=tie(o.dirtyAtoms,v=>l.has(v)||d.has(v));e({atomValues:l,previousAtomValues:d,atomInfo:g,modifiedAtoms:s,transactionMetadata:{...o.transactionMetadata}})},[e]))}function die(e){sx(ox(t=>{const n=rx(t,"latest"),o=rx(t,"previous");e({snapshot:n,previousSnapshot:o})},[e]))}function fie(){const e=MI(),[t,n]=uie(()=>rx(e.current)),o=J9(t),l=lk(),d=lk();if(sx(ox(s=>n(rx(s)),[])),ak(()=>{const s=t.retain();if(l.current&&!ck){var v;window.clearTimeout(l.current),l.current=null,(v=d.current)===null||v===void 0||v.call(d),d.current=null}return()=>{window.setTimeout(s,10)}},[t]),o!==t&&!ck){if(l.current){var g;window.clearTimeout(l.current),l.current=null,(g=d.current)===null||g===void 0||g.call(d),d.current=null}d.current=t.retain(),l.current=window.setTimeout(()=>{var s;l.current=null,(s=d.current)===null||s===void 0||s.call(d),d.current=null},cie)}return t}function hk(e,t){var n;const o=e.getState(),l=(n=o.nextTree)!==null&&n!==void 0?n:o.currentTree,d=t.getStore_INTERNAL().getState().currentTree;rie(()=>{const g=new Set;for(const E of[l.atomValues.keys(),d.atomValues.keys()])for(const z of E){var s,v;((s=l.atomValues.get(z))===null||s===void 0?void 0:s.contents)!==((v=d.atomValues.get(z))===null||v===void 0?void 0:v.contents)&&sk(z).shouldRestoreFromSnapshots&&g.add(z)}g.forEach(E=>{lie(e,new aie(E),d.atomValues.has(E)?Rr(d.atomValues.get(E)):oie)}),e.replaceState(E=>({...E,stateID:t.getID()}))})}function pie(){const e=MI();return ox(t=>hk(e.current,t),[e])}var dk={useRecoilSnapshot:fie,gotoSnapshot:hk,useGotoRecoilSnapshot:pie,useRecoilTransactionObserver:die,useTransactionObservation_DEPRECATED:hie,useTransactionSubscription_DEPRECATED:sx};const{peekNodeInfo:mie}=uu,{useStoreRef:gie}=ac;function yie(){const e=gie();return({key:t})=>mie(e.current,e.current.getState().currentTree,t)}var _ie=yie;const{reactMode:vie}=Xg,{RecoilRoot:xie,useStoreRef:bie}=ac,{useMemo:Mie}=Yi;function wie(){vie().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=bie().current;return Mie(()=>{function t({children:n}){return Yi.createElement(xie,{store_INTERNAL:e},n)}return t},[e])}var Iie=wie;const{loadableWithValue:Tie}=Kg,{initializeNode:Sie}=uu,{DEFAULT_VALUE:Eie,getNode:Die}=Ss,{copyTreeState:Cie,getRecoilValueAsLoadable:Aie,invalidateDownstreams:Nie,writeLoadableToTreeState:Lie}=yl;function fk(e){return Die(e.key).nodeType==="atom"}class zie{constructor(t,n){Ei(this,"_store",void 0),Ei(this,"_treeState",void 0),Ei(this,"_changes",void 0),Ei(this,"get",o=>{if(this._changes.has(o.key))return this._changes.get(o.key);if(!fk(o))throw Li("Reading selectors within atomicUpdate is not supported");const l=Aie(this._store,o,this._treeState);if(l.state==="hasValue")return l.contents;throw l.state==="hasError"?l.contents:Li(`Expected Recoil atom ${o.key} to have a value, but it is in a loading state.`)}),Ei(this,"set",(o,l)=>{if(!fk(o))throw Li("Setting selectors within atomicUpdate is not supported");if(typeof l=="function"){const d=this.get(o);this._changes.set(o.key,l(d))}else Sie(this._store,o.key,"set"),this._changes.set(o.key,l)}),Ei(this,"reset",o=>{this.set(o,Eie)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=Cie(this._treeState);for(const[n,o]of this._changes)Lie(t,n,Tie(o));return Nie(this._store,t),t}}function kie(e){return t=>{e.replaceState(n=>{const o=new zie(e,n);return t(o),o.newTreeState_INTERNAL()})}}var Oie={atomicUpdater:kie},jie=Oie.atomicUpdater,pk=Object.freeze({__proto__:null,atomicUpdater:jie});function Rie(e,t){if(!e)throw new Error(t)}var Pie=Rie,l1=Pie;const{atomicUpdater:Uie}=pk,{batchUpdates:Bie}=Wv,{DEFAULT_VALUE:Fie}=Ss,{useStoreRef:Vie}=ac,{refreshRecoilValue:$ie,setRecoilValue:mk}=yl,{cloneSnapshot:Hie}=ex,{gotoSnapshot:Qie}=dk,{useCallback:Yie}=Yi;class gk{}const Gie=new gk;function yk(e,t,n,o){let l=Gie,d;if(Bie(()=>{const s="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw Li(s);const v=p9({...o??{},set:(z,O)=>mk(e,z,O),reset:z=>mk(e,z,Fie),refresh:z=>$ie(e,z),gotoSnapshot:z=>Qie(e,z),transact_UNSTABLE:z=>Uie(e)(z)},{snapshot:()=>{const z=Hie(e);return d=z.retain(),z}}),E=t(v);if(typeof E!="function")throw Li(s);l=E(...n)}),l instanceof gk&&l1(!1),Nr(l))l=l.finally(()=>{var s;(s=d)===null||s===void 0||s()});else{var g;(g=d)===null||g===void 0||g()}return l}function Zie(e,t){const n=Vie();return Yie((...o)=>yk(n.current,e,o),t!=null?[...t,n]:void 0)}var _k={recoilCallback:yk,useRecoilCallback:Zie};const{useStoreRef:Wie}=ac,{refreshRecoilValue:qie}=yl,{useCallback:Kie}=Yi;function Xie(e){const t=Wie();return Kie(()=>{const n=t.current;qie(n,e)},[e,t])}var Jie=Xie;const{atomicUpdater:ere}=pk,{useStoreRef:tre}=ac,{useMemo:nre}=Yi;function ire(e,t){const n=tre();return nre(()=>(...o)=>{ere(n.current)(d=>{e(d)(...o)})},t!=null?[...t,n]:void 0)}var rre=ire;class ore{constructor(t){Ei(this,"value",void 0),this.value=t}}var sre={WrappedValue:ore},are=sre.WrappedValue,vk=Object.freeze({__proto__:null,WrappedValue:are});const{isFastRefreshEnabled:lre}=Xg;class xk extends Error{}class cre{constructor(t){var n,o,l;Ei(this,"_name",void 0),Ei(this,"_numLeafs",void 0),Ei(this,"_root",void 0),Ei(this,"_onHit",void 0),Ei(this,"_onSet",void 0),Ei(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(o=t==null?void 0:t.onSet)!==null&&o!==void 0?o:()=>{},this._mapNodeValue=(l=t==null?void 0:t.mapNodeValue)!==null&&l!==void 0?l:d=>d}size(){return this._numLeafs}root(){return this._root}get(t,n){var o;return(o=this.getLeafNode(t,n))===null||o===void 0?void 0:o.value}getLeafNode(t,n){if(this._root==null)return;let o=this._root;for(;o;){if(n==null||n.onNodeVisit(o),o.type==="leaf")return this._onHit(o),o;const l=this._mapNodeValue(t(o.nodeKey));o=o.branches.get(l)}}set(t,n,o){const l=()=>{var d,g,s,v;let E,z;for(const[ie,K]of t){var O,j,F;const J=this._root;if((J==null?void 0:J.type)==="leaf")throw this.invalidCacheError();const te=E;if(E=te?te.branches.get(z):J,E=(O=E)!==null&&O!==void 0?O:{type:"branch",nodeKey:ie,parent:te,branches:new Map,branchKey:z},E.type!=="branch"||E.nodeKey!==ie)throw this.invalidCacheError();te==null||te.branches.set(z,E),o==null||(j=o.onNodeVisit)===null||j===void 0||j.call(o,E),z=this._mapNodeValue(K),this._root=(F=this._root)!==null&&F!==void 0?F:E}const $=E?(d=E)===null||d===void 0?void 0:d.branches.get(z):this._root;if($!=null&&($.type!=="leaf"||$.branchKey!==z))throw this.invalidCacheError();const Y={type:"leaf",value:n,parent:E,branchKey:z};(g=E)===null||g===void 0||g.branches.set(z,Y),this._root=(s=this._root)!==null&&s!==void 0?s:Y,this._numLeafs++,this._onSet(Y),o==null||(v=o.onNodeVisit)===null||v===void 0||v.call(o,Y)};try{l()}catch(d){if(d instanceof xk)this.clear(),l();else throw d}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let o=t.parent,l=t.branchKey;for(;o;){var d;if(o.branches.delete(l),o===n)return o.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(o.branches.size>0)break;l=(d=o)===null||d===void 0?void 0:d.branchKey,o=o.parent}for(;o!==n;o=o.parent)if(o==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=lre()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw q5(t+(this._name!=null?` - ${this._name}`:"")),new xk}}var ure={TreeCache:cre},hre=ure.TreeCache,bk=Object.freeze({__proto__:null,TreeCache:hre});class dre{constructor(t){var n;Ei(this,"_maxSize",void 0),Ei(this,"_size",void 0),Ei(this,"_head",void 0),Ei(this,"_tail",void 0),Ei(this,"_map",void 0),Ei(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:o=>o}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),o=this._map.get(n);if(o)return this.set(t,o.value),o.value}set(t,n){const o=this._keyMapper(t);this._map.get(o)&&this.delete(t);const d=this.head(),g={key:t,right:d,left:null,value:n};d?d.left=g:this._tail=g,this._map.set(o,g),this._head=g,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const o=Rr(this._map.get(n)),l=o.right,d=o.left;l&&(l.left=o.left),d&&(d.right=o.right),o===this.head()&&(this._head=l),o===this.tail()&&(this._tail=d),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var fre={LRUCache:dre},pre=fre.LRUCache,Mk=Object.freeze({__proto__:null,LRUCache:pre});const{LRUCache:mre}=Mk,{TreeCache:gre}=bk;function yre({name:e,maxSize:t,mapNodeValue:n=o=>o}){const o=new mre({maxSize:t}),l=new gre({name:e,mapNodeValue:n,onHit:d=>{o.set(d,!0)},onSet:d=>{const g=o.tail();o.set(d,!0),g&&l.size()>t&&l.delete(g.key)}});return l}var wk=yre;function Ha(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw Li("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var o;return(o=JSON.stringify(e))!==null&&o!==void 0?o:""}if(Nr(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((l,d)=>Ha(l,t,d.toString()))}]`;if(typeof e.toJSON=="function")return Ha(e.toJSON(n),t,n);if(e instanceof Map){const l={};for(const[d,g]of e)l[typeof d=="string"?d:Ha(d,t)]=g;return Ha(l,t,n)}return e instanceof Set?Ha(Array.from(e).sort((l,d)=>Ha(l,t).localeCompare(Ha(d,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Ha(Array.from(e),t,n):`{${Object.keys(e).filter(l=>e[l]!==void 0).sort().map(l=>`${Ha(l,t)}:${Ha(e[l],t,l)}`).join(",")}}`}function _re(e,t={allowFunctions:!1}){return Ha(e,t)}var ax=_re;const{TreeCache:vre}=bk,lx={equality:"reference",eviction:"keep-all",maxSize:1/0};function xre({equality:e=lx.equality,eviction:t=lx.eviction,maxSize:n=lx.maxSize}=lx,o){const l=bre(e);return Mre(t,n,l,o)}function bre(e){switch(e){case"reference":return t=>t;case"value":return t=>ax(t)}throw Li(`Unrecognized equality policy ${e}`)}function Mre(e,t,n,o){switch(e){case"keep-all":return new vre({name:o,mapNodeValue:n});case"lru":return wk({name:o,maxSize:Rr(t),mapNodeValue:n});case"most-recent":return wk({name:o,maxSize:1,mapNodeValue:n})}throw Li(`Unrecognized eviction policy ${e}`)}var wre=xre;function Ire(e){return()=>null}var Tre={startPerfBlock:Ire};const{isLoadable:Sre,loadableWithError:cx,loadableWithPromise:Ere,loadableWithValue:wI}=Kg,{WrappedValue:Ik}=vk,{getNodeLoadable:ux,peekNodeLoadable:Dre,setNodeValue:Cre}=uu,{saveDepsToStore:Are}=e1,{DEFAULT_VALUE:Nre,getConfigDeletionHandler:Lre,getNode:zre,registerNode:Tk}=Ss,{isRecoilValue:kre}=Qf,{markRecoilValueModified:Sk}=yl,{retainedByOptionWithDefault:Ore}=Uh,{recoilCallback:jre}=_k,{startPerfBlock:Rre}=Tre;class Ek{}const c1=new Ek,u1=[],hx=new Map,Pre=(()=>{let e=0;return()=>e++})();function Dk(e){let t=null;const{key:n,get:o,cachePolicy_UNSTABLE:l}=e,d=e.set!=null?e.set:void 0,g=new Set,s=wre(l??{equality:"reference",eviction:"keep-all"},n),v=Ore(e.retainedBy_UNSTABLE),E=new Map;let z=0;function O(){return!gr("recoil_memory_managament_2020")||z>0}function j(ye){return ye.getState().knownSelectors.add(n),z++,()=>{z--}}function F(){return Lre(n)!==void 0&&!O()}function $(ye,ee,fe,Ne,Ee){Fe(ee,Ne,Ee),Y(ye,fe)}function Y(ye,ee){vt(ye,ee)&&mt(ye),K(ee,!0)}function ie(ye,ee){vt(ye,ee)&&(Rr(Te(ye)).stateVersions.clear(),K(ee,!1))}function K(ye,ee){const fe=hx.get(ye);if(fe!=null){for(const Ne of fe)Sk(Ne,Rr(t));ee&&hx.delete(ye)}}function J(ye,ee){let fe=hx.get(ee);fe==null&&hx.set(ee,fe=new Set),fe.add(ye)}function te(ye,ee,fe,Ne,Ee,Xe){return ee.then(ft=>{if(!O())throw mt(ye),c1;const it=wI(ft);return $(ye,fe,Ee,it,Ne),ft}).catch(ft=>{if(!O())throw mt(ye),c1;if(Nr(ft))return oe(ye,ft,fe,Ne,Ee,Xe);const it=cx(ft);throw $(ye,fe,Ee,it,Ne),ft})}function oe(ye,ee,fe,Ne,Ee,Xe){return ee.then(ft=>{if(!O())throw mt(ye),c1;Xe.loadingDepKey!=null&&Xe.loadingDepPromise===ee?fe.atomValues.set(Xe.loadingDepKey,wI(ft)):ye.getState().knownSelectors.forEach(Gt=>{fe.atomValues.delete(Gt)});const it=he(ye,fe);if(it&&it.state!=="loading"){if((vt(ye,Ee)||Te(ye)==null)&&Y(ye,Ee),it.state==="hasValue")return it.contents;throw it.contents}if(!vt(ye,Ee)){const Gt=qe(ye,fe);if(Gt!=null)return Gt.loadingLoadable.contents}const[ue,Dt]=me(ye,fe,Ee);if(ue.state!=="loading"&&$(ye,fe,Ee,ue,Dt),ue.state==="hasError")throw ue.contents;return ue.contents}).catch(ft=>{if(ft instanceof Ek)throw c1;if(!O())throw mt(ye),c1;const it=cx(ft);throw $(ye,fe,Ee,it,Ne),ft})}function pe(ye,ee,fe,Ne){var Ee,Xe,ft,it;if(vt(ye,Ne)||ee.version===((Ee=ye.getState())===null||Ee===void 0||(Xe=Ee.currentTree)===null||Xe===void 0?void 0:Xe.version)||ee.version===((ft=ye.getState())===null||ft===void 0||(it=ft.nextTree)===null||it===void 0?void 0:it.version)){var ue,Dt,Gt;Are(n,fe,ye,(ue=(Dt=ye.getState())===null||Dt===void 0||(Gt=Dt.nextTree)===null||Gt===void 0?void 0:Gt.version)!==null&&ue!==void 0?ue:ye.getState().currentTree.version)}for(const Et of fe)g.add(Et)}function me(ye,ee,fe){const Ne=Rre(n);let Ee=!0,Xe=!0;const ft=()=>{Ne(),Xe=!1};let it,ue=!1,Dt;const Gt={loadingDepKey:null,loadingDepPromise:null},Et=new Map;function We({key:wt}){const en=ux(ye,ee,wt);switch(Et.set(wt,en),Ee||(pe(ye,ee,new Set(Et.keys()),fe),ie(ye,fe)),en.state){case"hasValue":return en.contents;case"hasError":throw en.contents;case"loading":throw Gt.loadingDepKey=wt,Gt.loadingDepPromise=en.contents,en.contents}throw Li("Invalid Loadable state")}const Ut=wt=>(...en)=>{if(Xe)throw Li("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&l1(!1),jre(ye,wt,en,{node:t})};try{it=o({get:We,getCallback:Ut}),it=kre(it)?We(it):it,Sre(it)&&(it.state==="hasError"&&(ue=!0),it=it.contents),Nr(it)?it=te(ye,it,ee,Et,fe,Gt).finally(ft):ft(),it=it instanceof Ik?it.value:it}catch(wt){it=wt,Nr(it)?it=oe(ye,it,ee,Et,fe,Gt).finally(ft):(ue=!0,ft())}return ue?Dt=cx(it):Nr(it)?Dt=Ere(it):Dt=wI(it),Ee=!1,ht(ye,fe,Et),pe(ye,ee,new Set(Et.keys()),fe),[Dt,Et]}function he(ye,ee){let fe=ee.atomValues.get(n);if(fe!=null)return fe;const Ne=new Set;try{fe=s.get(Xe=>(typeof Xe!="string"&&l1(!1),ux(ye,ee,Xe).contents),{onNodeVisit:Xe=>{Xe.type==="branch"&&Xe.nodeKey!==n&&Ne.add(Xe.nodeKey)}})}catch(Xe){throw Li(`Problem with cache lookup for selector "${n}": ${Xe.message}`)}if(fe){var Ee;ee.atomValues.set(n,fe),pe(ye,ee,Ne,(Ee=Te(ye))===null||Ee===void 0?void 0:Ee.executionID)}return fe}function De(ye,ee){const fe=he(ye,ee);if(fe!=null)return mt(ye),fe;const Ne=qe(ye,ee);if(Ne!=null){var Ee;return((Ee=Ne.loadingLoadable)===null||Ee===void 0?void 0:Ee.state)==="loading"&&J(ye,Ne.executionID),Ne.loadingLoadable}const Xe=Pre(),[ft,it]=me(ye,ee,Xe);return ft.state==="loading"?(ze(ye,Xe,ft,it,ee),J(ye,Xe)):(mt(ye),Fe(ee,ft,it)),ft}function qe(ye,ee){const fe=z9([E.has(ye)?[Rr(E.get(ye))]:[],$v(oI(E,([Ee])=>Ee!==ye),([,Ee])=>Ee)]);function Ne(Ee){for(const[Xe,ft]of Ee)if(!ux(ye,ee,Xe).is(ft))return!0;return!1}for(const Ee of fe){if(Ee.stateVersions.get(ee.version)||!Ne(Ee.depValuesDiscoveredSoFarDuringAsyncWork))return Ee.stateVersions.set(ee.version,!0),Ee;Ee.stateVersions.set(ee.version,!1)}}function Te(ye){return E.get(ye)}function ze(ye,ee,fe,Ne,Ee){E.set(ye,{depValuesDiscoveredSoFarDuringAsyncWork:Ne,executionID:ee,loadingLoadable:fe,stateVersions:new Map([[Ee.version,!0]])})}function ht(ye,ee,fe){if(vt(ye,ee)){const Ne=Te(ye);Ne!=null&&(Ne.depValuesDiscoveredSoFarDuringAsyncWork=fe)}}function mt(ye){E.delete(ye)}function vt(ye,ee){var fe;return ee===((fe=Te(ye))===null||fe===void 0?void 0:fe.executionID)}function Qe(ye){return Array.from(ye.entries()).map(([ee,fe])=>[ee,fe.contents])}function Fe(ye,ee,fe){ye.atomValues.set(n,ee);try{s.set(Qe(fe),ee)}catch(Ne){throw Li(`Problem with setting cache for selector "${n}": ${Ne.message}`)}}function ot(ye){if(u1.includes(n)){const ee=`Recoil selector has circular dependencies: ${u1.slice(u1.indexOf(n)).join(" → ")}`;return cx(Li(ee))}u1.push(n);try{return ye()}finally{u1.pop()}}function Je(ye,ee){const fe=ee.atomValues.get(n);return fe??s.get(Ne=>{var Ee;return typeof Ne!="string"&&l1(!1),(Ee=Dre(ye,ee,Ne))===null||Ee===void 0?void 0:Ee.contents})}function He(ye,ee){return ot(()=>De(ye,ee))}function Ae(ye){ye.atomValues.delete(n)}function je(ye,ee){t==null&&l1(!1);for(const Ne of g){var fe;const Ee=zre(Ne);(fe=Ee.clearCache)===null||fe===void 0||fe.call(Ee,ye,ee)}g.clear(),Ae(ee),s.clear(),Sk(ye,t)}return d!=null?t=Tk({key:n,nodeType:"selector",peek:Je,get:He,set:(ee,fe,Ne)=>{let Ee=!1;const Xe=new Map;function ft({key:Gt}){if(Ee)throw Li("Recoil: Async selector sets are not currently supported.");const Et=ux(ee,fe,Gt);if(Et.state==="hasValue")return Et.contents;if(Et.state==="loading"){const We=`Getting value of asynchronous atom or selector "${Gt}" in a pending state while setting selector "${n}" is not yet supported.`;throw Li(We)}else throw Et.contents}function it(Gt,Et){if(Ee)throw Li("Recoil: Async selector sets are not currently supported.");const We=typeof Et=="function"?Et(ft(Gt)):Et;Cre(ee,fe,Gt.key,We).forEach((wt,en)=>Xe.set(en,wt))}function ue(Gt){it(Gt,Nre)}const Dt=d({set:it,get:ft,reset:ue},Ne);if(Dt!==void 0)throw Nr(Dt)?Li("Recoil: Async selector sets are not currently supported."):Li("Recoil: selector set should be a void function.");return Ee=!0,Xe},init:j,invalidate:Ae,clearCache:je,shouldDeleteConfigOnRelease:F,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v}):t=Tk({key:n,nodeType:"selector",peek:Je,get:He,init:j,invalidate:Ae,clearCache:je,shouldDeleteConfigOnRelease:F,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v})}Dk.value=e=>new Ik(e);var Wf=Dk;const{isLoadable:Ure,loadableWithError:II,loadableWithPromise:TI,loadableWithValue:qf}=Kg,{WrappedValue:Ck}=vk,{peekNodeInfo:Bre}=uu,{DEFAULT_VALUE:Bh,DefaultValue:hu,getConfigDeletionHandler:Ak,registerNode:Fre,setConfigDeletionHandler:Vre}=Ss,{isRecoilValue:$re}=Qf,{getRecoilValueAsLoadable:Hre,markRecoilValueModified:Qre,setRecoilValue:Nk,setRecoilValueLoadable:Yre}=yl,{retainedByOptionWithDefault:Gre}=Uh,h1=e=>e instanceof Ck?e.value:e;function Zre(e){const{key:t,persistence_UNSTABLE:n}=e,o=Gre(e.retainedBy_UNSTABLE);let l=0;function d(J){return TI(J.then(te=>(g=qf(te),te)).catch(te=>{throw g=II(te),te}))}let g=Nr(e.default)?d(e.default):Ure(e.default)?e.default.state==="loading"?d(e.default.contents):e.default:qf(h1(e.default));g.contents;let s;const v=new Map;function E(J){return J}function z(J,te){const oe=te.then(pe=>{var me,he;return((he=((me=J.getState().nextTree)!==null&&me!==void 0?me:J.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===oe&&Nk(J,K,pe),pe}).catch(pe=>{var me,he;throw((he=((me=J.getState().nextTree)!==null&&me!==void 0?me:J.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===oe&&Yre(J,K,II(pe)),pe});return oe}function O(J,te,oe){var pe;l++;const me=()=>{var Te;l--,(Te=v.get(J))===null||Te===void 0||Te.forEach(ze=>ze()),v.delete(J)};if(J.getState().knownAtoms.add(t),g.state==="loading"){const Te=()=>{var ze;((ze=J.getState().nextTree)!==null&&ze!==void 0?ze:J.getState().currentTree).atomValues.has(t)||Qre(J,K)};g.contents.finally(Te)}const he=(pe=e.effects)!==null&&pe!==void 0?pe:e.effects_UNSTABLE;if(he!=null){let vt=function(Ae){if(ze&&Ae.key===t){const je=Te;return je instanceof hu?j(J,te):Nr(je)?TI(je.then(ye=>ye instanceof hu?g.toPromise():ye)):qf(je)}return Hre(J,Ae)},Qe=function(Ae){return vt(Ae).toPromise()},Fe=function(Ae){var je;const ye=Bre(J,(je=J.getState().nextTree)!==null&&je!==void 0?je:J.getState().currentTree,Ae.key);return ze&&Ae.key===t&&!(Te instanceof hu)?{...ye,isSet:!0,loadable:vt(Ae)}:ye},Te=Bh,ze=!0,ht=!1,mt=null;const ot=Ae=>je=>{if(ze){const ye=vt(K),ee=ye.state==="hasValue"?ye.contents:Bh;Te=typeof je=="function"?je(ee):je,Nr(Te)&&(Te=Te.then(fe=>(mt={effect:Ae,value:fe},fe)))}else{if(Nr(je))throw Li("Setting atoms to async values is not implemented.");typeof je!="function"&&(mt={effect:Ae,value:h1(je)}),Nk(J,K,typeof je=="function"?ye=>{const ee=h1(je(ye));return mt={effect:Ae,value:ee},ee}:h1(je))}},Je=Ae=>()=>ot(Ae)(Bh),He=Ae=>je=>{var ye;const{release:ee}=J.subscribeToTransactions(fe=>{var Ne;let{currentTree:Ee,previousTree:Xe}=fe.getState();Xe||(Xe=Ee);const ft=(Ne=Ee.atomValues.get(t))!==null&&Ne!==void 0?Ne:g;if(ft.state==="hasValue"){var it,ue,Dt,Gt;const Et=ft.contents,We=(it=Xe.atomValues.get(t))!==null&&it!==void 0?it:g,Ut=We.state==="hasValue"?We.contents:Bh;((ue=mt)===null||ue===void 0?void 0:ue.effect)!==Ae||((Dt=mt)===null||Dt===void 0?void 0:Dt.value)!==Et?je(Et,Ut,!Ee.atomValues.has(t)):((Gt=mt)===null||Gt===void 0?void 0:Gt.effect)===Ae&&(mt=null)}},t);v.set(J,[...(ye=v.get(J))!==null&&ye!==void 0?ye:[],ee])};for(const Ae of he)try{const je=Ae({node:K,storeID:J.storeID,parentStoreID_UNSTABLE:J.parentStoreID,trigger:oe,setSelf:ot(Ae),resetSelf:Je(Ae),onSet:He(Ae),getPromise:Qe,getLoadable:vt,getInfo_UNSTABLE:Fe});if(je!=null){var De;v.set(J,[...(De=v.get(J))!==null&&De!==void 0?De:[],je])}}catch(je){Te=je,ht=!0}if(ze=!1,!(Te instanceof hu)){var qe;const Ae=ht?II(Te):Nr(Te)?TI(z(J,Te)):qf(h1(Te));Ae.contents,te.atomValues.set(t,Ae),(qe=J.getState().nextTree)===null||qe===void 0||qe.atomValues.set(t,Ae)}}return me}function j(J,te){var oe,pe;return(oe=(pe=te.atomValues.get(t))!==null&&pe!==void 0?pe:s)!==null&&oe!==void 0?oe:g}function F(J,te){if(te.atomValues.has(t))return Rr(te.atomValues.get(t));if(te.nonvalidatedAtoms.has(t)){if(s!=null)return s;if(n==null)return g;const oe=te.nonvalidatedAtoms.get(t),pe=n.validator(oe,Bh);return s=pe instanceof hu?g:qf(pe),s}else return g}function $(){s=void 0}function Y(J,te,oe){if(te.atomValues.has(t)){const pe=Rr(te.atomValues.get(t));if(pe.state==="hasValue"&&oe===pe.contents)return new Map}else if(!te.nonvalidatedAtoms.has(t)&&oe instanceof hu)return new Map;return s=void 0,new Map().set(t,qf(oe))}function ie(){return Ak(t)!==void 0&&l<=0}const K=Fre({key:t,nodeType:"atom",peek:j,get:F,set:Y,init:O,invalidate:$,shouldDeleteConfigOnRelease:ie,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:o});return K}function SI(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return $re(n)?Wre({...t,default:n}):Zre({...t,default:n})}function Wre(e){const t=SI({...e,default:Bh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:o=>o instanceof hu?o:Rr(e.persistence_UNSTABLE).validator(o,Bh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Wf({key:`${e.key}__withFallback`,get:({get:o})=>{const l=o(t);return l instanceof hu?e.default:l},set:({set:o},l)=>o(t,l),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return Vre(n.key,Ak(e.key)),n}SI.value=e=>new Ck(e);var Lk=SI;class qre{constructor(t){var n;Ei(this,"_map",void 0),Ei(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:o=>o}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var Kre={MapCache:qre},Xre=Kre.MapCache,Jre=Object.freeze({__proto__:null,MapCache:Xre});const{LRUCache:zk}=Mk,{MapCache:eoe}=Jre,dx={equality:"reference",eviction:"none",maxSize:1/0};function toe({equality:e=dx.equality,eviction:t=dx.eviction,maxSize:n=dx.maxSize}=dx){const o=noe(e);return ioe(t,n,o)}function noe(e){switch(e){case"reference":return t=>t;case"value":return t=>ax(t)}throw Li(`Unrecognized equality policy ${e}`)}function ioe(e,t,n){switch(e){case"keep-all":return new eoe({mapKey:n});case"lru":return new zk({mapKey:n,maxSize:Rr(t)});case"most-recent":return new zk({mapKey:n,maxSize:1})}throw Li(`Unrecognized eviction policy ${e}`)}var kk=toe;const{setConfigDeletionHandler:roe}=Ss;function ooe(e){var t,n;const o=kk({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return l=>{var d,g;const s=o.get(l);if(s!=null)return s;const{cachePolicyForParams_UNSTABLE:v,...E}=e,z="default"in e?e.default:new Promise(()=>{}),O=Lk({...E,key:`${e.key}__${(d=ax(l))!==null&&d!==void 0?d:"void"}`,default:typeof z=="function"?z(l):z,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(l):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(l):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(l):(g=e.effects)!==null&&g!==void 0?g:e.effects_UNSTABLE});return o.set(l,O),roe(O.key,()=>{o.delete(l)}),O}}var soe=ooe;const{setConfigDeletionHandler:aoe}=Ss;let loe=0;function coe(e){var t,n;const o=kk({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return l=>{var d;let g;try{g=o.get(l)}catch(j){throw Li(`Problem with cache lookup for selector ${e.key}: ${j.message}`)}if(g!=null)return g;const s=`${e.key}__selectorFamily/${(d=ax(l,{allowFunctions:!0}))!==null&&d!==void 0?d:"void"}/${loe++}`,v=j=>e.get(l)(j),E=e.cachePolicy_UNSTABLE,z=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(l):e.retainedBy_UNSTABLE;let O;if(e.set!=null){const j=e.set;O=Wf({key:s,get:v,set:($,Y)=>j(l)($,Y),cachePolicy_UNSTABLE:E,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:z})}else O=Wf({key:s,get:v,cachePolicy_UNSTABLE:E,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:z});return o.set(l,O),aoe(O.key,()=>{o.delete(l)}),O}}var du=coe;const uoe=du({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function hoe(e){return uoe(e)}var doe=hoe;const foe=du({key:"__error",get:e=>()=>{throw Li(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function poe(e){return foe(e)}var moe=poe;function goe(e){return e}var yoe=goe;const{loadableWithError:Ok,loadableWithPromise:jk,loadableWithValue:Rk}=Kg;function fx(e,t){const n=Array(t.length).fill(void 0),o=Array(t.length).fill(void 0);for(const[l,d]of t.entries())try{n[l]=e(d)}catch(g){o[l]=g}return[n,o]}function _oe(e){return e!=null&&!Nr(e)}function px(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function EI(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,o,l)=>({...n,[o]:t[l]}),{})}function Kf(e,t,n){const o=n.map((l,d)=>l==null?Rk(t[d]):Nr(l)?jk(l):Ok(l));return EI(e,o)}function voe(e,t){return t.map((n,o)=>n===void 0?e[o]:n)}const xoe=du({key:"__waitForNone",get:e=>({get:t})=>{const n=px(e),[o,l]=fx(t,n);return Kf(e,o,l)},dangerouslyAllowMutability:!0}),boe=du({key:"__waitForAny",get:e=>({get:t})=>{const n=px(e),[o,l]=fx(t,n);return l.some(d=>!Nr(d))?Kf(e,o,l):new Promise(d=>{for(const[g,s]of l.entries())Nr(s)&&s.then(v=>{o[g]=v,l[g]=void 0,d(Kf(e,o,l))}).catch(v=>{l[g]=v,d(Kf(e,o,l))})})},dangerouslyAllowMutability:!0}),Moe=du({key:"__waitForAll",get:e=>({get:t})=>{const n=px(e),[o,l]=fx(t,n);if(l.every(g=>g==null))return EI(e,o);const d=l.find(_oe);if(d!=null)throw d;return Promise.all(l).then(g=>EI(e,voe(o,g)))},dangerouslyAllowMutability:!0}),woe=du({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=px(e),[o,l]=fx(t,n);return l.every(d=>!Nr(d))?Kf(e,o,l):Promise.all(l.map((d,g)=>Nr(d)?d.then(s=>{o[g]=s,l[g]=void 0}).catch(s=>{o[g]=void 0,l[g]=s}):null)).then(()=>Kf(e,o,l))},dangerouslyAllowMutability:!0}),Ioe=du({key:"__noWait",get:e=>({get:t})=>{try{return Wf.value(Rk(t(e)))}catch(n){return Wf.value(Nr(n)?jk(n):Ok(n))}},dangerouslyAllowMutability:!0});var Toe={waitForNone:xoe,waitForAny:boe,waitForAll:Moe,waitForAllSettled:woe,noWait:Ioe};const{RecoilLoadable:Soe}=Kg,{DefaultValue:Eoe}=Ss,{RecoilRoot:Doe,useRecoilStoreID:Coe}=ac,{isRecoilValue:Aoe}=Qf,{retentionZone:Noe}=Gv,{freshSnapshot:Loe}=ex,{useRecoilState:zoe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:koe,useRecoilStateLoadable:Ooe,useRecoilValue:joe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Roe,useRecoilValueLoadable:Poe,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Uoe,useResetRecoilState:Boe,useSetRecoilState:Foe}=Kne,{useGotoRecoilSnapshot:Voe,useRecoilSnapshot:$oe,useRecoilTransactionObserver:Hoe}=dk,{useRecoilCallback:Qoe}=_k,{noWait:Yoe,waitForAll:Goe,waitForAllSettled:Zoe,waitForAny:Woe,waitForNone:qoe}=Toe;var Xf={DefaultValue:Eoe,isRecoilValue:Aoe,RecoilLoadable:Soe,RecoilEnv:Hf,RecoilRoot:Doe,useRecoilStoreID:Coe,useRecoilBridgeAcrossReactRoots_UNSTABLE:Iie,atom:Lk,selector:Wf,atomFamily:soe,selectorFamily:du,constSelector:doe,errorSelector:moe,readOnlySelector:yoe,noWait:Yoe,waitForNone:qoe,waitForAny:Woe,waitForAll:Goe,waitForAllSettled:Zoe,useRecoilValue:joe,useRecoilValueLoadable:Poe,useRecoilState:zoe,useRecoilStateLoadable:Ooe,useSetRecoilState:Foe,useResetRecoilState:Boe,useGetRecoilValueInfo_UNSTABLE:_ie,useRecoilRefresher_UNSTABLE:Jie,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Uoe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Roe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:koe,useRecoilCallback:Qoe,useRecoilTransaction_UNSTABLE:rre,useGotoRecoilSnapshot:Voe,useRecoilSnapshot:$oe,useRecoilTransactionObserver_UNSTABLE:Hoe,snapshot_UNSTABLE:Loe,useRetain:gI,retentionZone:Noe},Koe=Xf.RecoilRoot,Jn=Xf.atom,DI=Xf.selector,rn=Xf.useRecoilValue,Dn=Xf.useRecoilState,Ds=Xf.useResetRecoilState;const Xoe=(e,t)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((o,l)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(l.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Joe="mi-components";let mx,Pk,Ys=!1,CI=!1;const lc=(e,t="")=>()=>{},ese=(e,t)=>()=>{},tse="{visibility:hidden}.hydrated{visibility:inherit}",Uk="http://www.w3.org/1999/xlink",Bk={},nse="http://www.w3.org/2000/svg",ise="http://www.w3.org/1999/xhtml",rse=e=>e!=null,AI=e=>(e=typeof e,e==="object"||e==="function");function Fk(e){var t,n,o;return(o=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&o!==void 0?o:void 0}const Ke=(e,t,...n)=>{let o=null,l=null,d=!1,g=!1;const s=[],v=z=>{for(let O=0;O<z.length;O++)o=z[O],Array.isArray(o)?v(o):o!=null&&typeof o!="boolean"&&((d=typeof e!="function"&&!AI(o))&&(o=String(o)),d&&g?s[s.length-1].$text$+=o:s.push(d?NI(null,o):o),g=d)};if(v(n),t){t.key&&(l=t.key);{const z=t.className||t.class;z&&(t.class=typeof z!="object"?z:Object.keys(z).filter(O=>z[O]).join(" "))}}const E=NI(e,null);return E.$attrs$=t,s.length>0&&(E.$children$=s),E.$key$=l,E},NI=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},ao={},ose=e=>e&&e.$tag$===ao,sse=(e,t)=>e!=null&&!AI(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,cc=e=>fu(e).$hostElement$,ur=(e,t,n)=>{const o=cc(e);return{emit:l=>Vk(o,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:l})}},Vk=(e,t,n)=>{const o=To.ce(t,n);return e.dispatchEvent(o),o},$k=new WeakMap,ase=(e,t,n)=>{let o=vx.get(e);Dse&&n?(o=o||new CSSStyleSheet,typeof o=="string"?o=t:o.replaceSync(t)):o=t,vx.set(e,o)},lse=(e,t,n,o)=>{var l;let d=Hk(t);const g=vx.get(d);if(e=e.nodeType===11?e:vl,g)if(typeof g=="string"){e=e.head||e;let s=$k.get(e),v;if(s||$k.set(e,s=new Set),!s.has(d)){{v=vl.createElement("style"),v.innerHTML=g;const E=(l=To.$nonce$)!==null&&l!==void 0?l:Fk(vl);E!=null&&v.setAttribute("nonce",E),e.insertBefore(v,e.querySelector("link"))}s&&s.add(d)}}else e.adoptedStyleSheets.includes(g)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,g]);return d},cse=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,o=t.$flags$,l=lc("attachStyles",t.$tagName$),d=lse(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);o&10&&(n["s-sc"]=d,n.classList.add(d+"-h")),l()},Hk=(e,t)=>"sc-"+e.$tagName$,Qk=(e,t,n,o,l,d)=>{if(n!==o){let g=rO(e,t),s=t.toLowerCase();if(t==="class"){const v=e.classList,E=Yk(n),z=Yk(o);v.remove(...E.filter(O=>O&&!z.includes(O))),v.add(...z.filter(O=>O&&!E.includes(O)))}else if(t==="style"){for(const v in n)(!o||o[v]==null)&&(v.includes("-")?e.style.removeProperty(v):e.style[v]="");for(const v in o)(!n||o[v]!==n[v])&&(v.includes("-")?e.style.setProperty(v,o[v]):e.style[v]=o[v])}else if(t!=="key")if(t==="ref")o&&o(e);else if(!g&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):rO(d1,s)?t=s.slice(2):t=s[2]+t.slice(3),n&&To.rel(e,t,n,!1),o&&To.ael(e,t,o,!1);else{const v=AI(o);if((g||v&&o!==null)&&!l)try{if(e.tagName.includes("-"))e[t]=o;else{const z=o??"";t==="list"?g=!1:(n==null||e[t]!=z)&&(e[t]=z)}}catch{}let E=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,E=!0),o==null||o===!1?(o!==!1||e.getAttribute(t)==="")&&(E?e.removeAttributeNS(Uk,t):e.removeAttribute(t)):(!g||d&4||l)&&!v&&(o=o===!0?"":o,E?e.setAttributeNS(Uk,t,o):e.setAttribute(t,o))}}},use=/\s/,Yk=e=>e?e.split(use):[],Gk=(e,t,n,o)=>{const l=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,d=e&&e.$attrs$||Bk,g=t.$attrs$||Bk;for(o in d)o in g||Qk(l,o,d[o],void 0,n,t.$flags$);for(o in g)Qk(l,o,d[o],g[o],n,t.$flags$)},gx=(e,t,n,o)=>{const l=t.$children$[n];let d=0,g,s;if(l.$text$!==null)g=l.$elm$=vl.createTextNode(l.$text$);else{if(Ys||(Ys=l.$tag$==="svg"),g=l.$elm$=vl.createElementNS(Ys?nse:ise,l.$tag$),Ys&&l.$tag$==="foreignObject"&&(Ys=!1),Gk(null,l,Ys),rse(mx)&&g["s-si"]!==mx&&g.classList.add(g["s-si"]=mx),l.$children$)for(d=0;d<l.$children$.length;++d)s=gx(e,l,d),s&&g.appendChild(s);l.$tag$==="svg"?Ys=!1:g.tagName==="foreignObject"&&(Ys=!0)}return g},Zk=(e,t,n,o,l,d)=>{let g=e,s;for(g.shadowRoot&&g.tagName===Pk&&(g=g.shadowRoot);l<=d;++l)o[l]&&(s=gx(null,n,l),s&&(o[l].$elm$=s,g.insertBefore(s,t)))},Wk=(e,t,n,o,l)=>{for(;t<=n;++t)(o=e[t])&&(l=o.$elm$,qk(o),l.remove())},hse=(e,t,n,o)=>{let l=0,d=0,g=0,s=0,v=t.length-1,E=t[0],z=t[v],O=o.length-1,j=o[0],F=o[O],$,Y;for(;l<=v&&d<=O;)if(E==null)E=t[++l];else if(z==null)z=t[--v];else if(j==null)j=o[++d];else if(F==null)F=o[--O];else if(yx(E,j))Jf(E,j),E=t[++l],j=o[++d];else if(yx(z,F))Jf(z,F),z=t[--v],F=o[--O];else if(yx(E,F))Jf(E,F),e.insertBefore(E.$elm$,z.$elm$.nextSibling),E=t[++l],F=o[--O];else if(yx(z,j))Jf(z,j),e.insertBefore(z.$elm$,E.$elm$),z=t[--v],j=o[++d];else{for(g=-1,s=l;s<=v;++s)if(t[s]&&t[s].$key$!==null&&t[s].$key$===j.$key$){g=s;break}g>=0?(Y=t[g],Y.$tag$!==j.$tag$?$=gx(t&&t[d],n,g):(Jf(Y,j),t[g]=void 0,$=Y.$elm$),j=o[++d]):($=gx(t&&t[d],n,d),j=o[++d]),$&&E.$elm$.parentNode.insertBefore($,E.$elm$)}l>v?Zk(e,o[O+1]==null?null:o[O+1].$elm$,n,o,d,O):d>O&&Wk(t,l,v)},yx=(e,t)=>e.$tag$===t.$tag$?e.$key$===t.$key$:!1,Jf=(e,t)=>{const n=t.$elm$=e.$elm$,o=e.$children$,l=t.$children$,d=t.$tag$,g=t.$text$;g===null?(Ys=d==="svg"?!0:d==="foreignObject"?!1:Ys,d==="slot"||Gk(e,t,Ys),o!==null&&l!==null?hse(n,o,t,l):l!==null?(e.$text$!==null&&(n.textContent=""),Zk(n,null,t,l,0,l.length-1)):o!==null&&Wk(o,0,o.length-1),Ys&&d==="svg"&&(Ys=!1)):e.$text$!==g&&(n.data=g)},qk=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(qk)},dse=(e,t)=>{const n=e.$hostElement$,o=e.$cmpMeta$,l=e.$vnode$||NI(null,null),d=ose(t)?t:Ke(null,null,t);Pk=n.tagName,o.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},o.$attrsToReflect$.map(([g,s])=>d.$attrs$[s]=n[g])),d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=l.$elm$=n.shadowRoot||n,mx=n["s-sc"],Jf(l,d)},Kk=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},_x=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Kk(e,e.$ancestorComponent$),Ase(()=>fse(e,t))},fse=(e,t)=>{const n=lc("scheduleUpdate",e.$cmpMeta$.$tagName$),o=e.$lazyInstance$;let l;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([d,g])=>Fh(o,d,g)),e.$queuedListeners$=null),l=Fh(o,"componentWillLoad")),l=Jk(l,()=>Fh(o,"componentWillRender")),n(),Jk(l,()=>pse(e,o,t))},pse=async(e,t,n)=>{const o=e.$hostElement$,l=lc("update",e.$cmpMeta$.$tagName$),d=o["s-rc"];n&&cse(e);const g=lc("render",e.$cmpMeta$.$tagName$);mse(e,t),d&&(d.map(s=>s()),o["s-rc"]=void 0),g(),l();{const s=o["s-p"],v=()=>gse(e);s.length===0?v():(Promise.all(s).then(v),e.$flags$|=4,s.length=0)}},mse=(e,t,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,dse(e,t)}catch(o){Vh(o,e.$hostElement$)}return null},gse=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,o=lc("postUpdate",t),l=e.$lazyInstance$,d=e.$ancestorComponent$;Fh(l,"componentDidRender"),e.$flags$&64?o():(e.$flags$|=64,eO(n),Fh(l,"componentDidLoad"),o(),e.$onReadyResolve$(n),d||Xk()),e.$onInstanceResolve$(n),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&OI(()=>_x(e,!1)),e.$flags$&=-517},LI=e=>{{const t=fu(e),n=t.$hostElement$.isConnected;return n&&(t.$flags$&18)===2&&_x(t,!1),n}},Xk=e=>{eO(vl.documentElement),OI(()=>Vk(d1,"appload",{detail:{namespace:Joe}}))},Fh=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(o){Vh(o)}},Jk=(e,t)=>e&&e.then?e.then(t):t(),eO=e=>e.classList.add("hydrated"),yse=(e,t)=>fu(e).$instanceValues$.get(t),_se=(e,t,n,o)=>{const l=fu(e),d=l.$hostElement$,g=l.$instanceValues$.get(t),s=l.$flags$,v=l.$lazyInstance$;n=sse(n,o.$members$[t][0]);const E=Number.isNaN(g)&&Number.isNaN(n),z=n!==g&&!E;if((!(s&8)||g===void 0)&&z&&(l.$instanceValues$.set(t,n),v)){if(o.$watchers$&&s&128){const O=o.$watchers$[t];O&&O.map(j=>{try{v[j](n,g,t)}catch(F){Vh(F,d)}})}(s&18)===2&&_x(l,!1)}},tO=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const o=Object.entries(t.$members$),l=e.prototype;if(o.map(([d,[g]])=>{g&31||n&2&&g&32?Object.defineProperty(l,d,{get(){return yse(this,d)},set(s){_se(this,d,s,t)},configurable:!0,enumerable:!0}):n&1&&g&64&&Object.defineProperty(l,d,{value(...s){const v=fu(this);return v.$onInstancePromise$.then(()=>v.$lazyInstance$[d](...s))}})}),n&1){const d=new Map;l.attributeChangedCallback=function(g,s,v){To.jmp(()=>{const E=d.get(g);if(this.hasOwnProperty(E))v=this[E],delete this[E];else if(l.hasOwnProperty(E)&&typeof this[E]=="number"&&this[E]==v)return;this[E]=v===null&&typeof this[E]=="boolean"?!1:v})},e.observedAttributes=o.filter(([g,s])=>s[0]&15).map(([g,s])=>{const v=s[1]||g;return d.set(v,g),s[0]&512&&t.$attrsToReflect$.push([g,v]),v})}}return e},vse=async(e,t,n,o,l)=>{if(!(t.$flags$&32)){{if(t.$flags$|=32,l=Ese(n),l.then){const v=ese();l=await l,v()}l.isProxied||(n.$watchers$=l.watchers,tO(l,n,2),l.isProxied=!0);const s=lc("createInstance",n.$tagName$);t.$flags$|=8;try{new l(t)}catch(v){Vh(v)}t.$flags$&=-9,t.$flags$|=128,s(),nO(t.$lazyInstance$)}if(l.style){let s=l.style;const v=Hk(n);if(!vx.has(v)){const E=lc("registerStyles",n.$tagName$);ase(v,s,!!(n.$flags$&1)),E()}}}const d=t.$ancestorComponent$,g=()=>_x(t,!0);d&&d["s-rc"]?d["s-rc"].push(g):g()},nO=e=>{Fh(e,"connectedCallback")},xse=e=>{if(!(To.$flags$&1)){const t=fu(e),n=t.$cmpMeta$,o=lc("connectedCallback",n.$tagName$);if(t.$flags$&1)iO(e,t,n.$listeners$),nO(t.$lazyInstance$);else{t.$flags$|=1;{let l=e;for(;l=l.parentNode||l.host;)if(l["s-p"]){Kk(t,t.$ancestorComponent$=l);break}}n.$members$&&Object.entries(n.$members$).map(([l,[d]])=>{if(d&31&&e.hasOwnProperty(l)){const g=e[l];delete e[l],e[l]=g}}),vse(e,t,n)}o()}},bse=e=>{if(!(To.$flags$&1)){const t=fu(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(o=>o()),t.$rmListeners$=void 0),Fh(n,"disconnectedCallback")}},Mse=(e,t={})=>{var n;const o=lc(),l=[],d=t.exclude||[],g=d1.customElements,s=vl.head,v=s.querySelector("meta[charset]"),E=vl.createElement("style"),z=[];let O,j=!0;Object.assign(To,t),To.$resourcesUrl$=new URL(t.resourcesUrl||"./",vl.baseURI).href,e.map(F=>{F[1].map($=>{const Y={$flags$:$[0],$tagName$:$[1],$members$:$[2],$listeners$:$[3]};Y.$members$=$[2],Y.$listeners$=$[3],Y.$attrsToReflect$=[],Y.$watchers$={};const ie=Y.$tagName$,K=class extends HTMLElement{constructor(J){super(J),J=this,Sse(J,Y),Y.$flags$&1&&J.attachShadow({mode:"open"})}connectedCallback(){O&&(clearTimeout(O),O=null),j?z.push(this):To.jmp(()=>xse(this))}disconnectedCallback(){To.jmp(()=>bse(this))}componentOnReady(){return fu(this).$onReadyPromise$}};Y.$lazyBundleId$=F[0],!d.includes(ie)&&!g.get(ie)&&(l.push(ie),g.define(ie,tO(K,Y,1)))})});{E.innerHTML=l+tse,E.setAttribute("data-styles","");const F=(n=To.$nonce$)!==null&&n!==void 0?n:Fk(vl);F!=null&&E.setAttribute("nonce",F),s.insertBefore(E,v?v.nextSibling:s.firstChild)}j=!1,z.length?z.map(F=>F.connectedCallback()):To.jmp(()=>O=setTimeout(Xk,30)),o()},iO=(e,t,n,o)=>{n&&n.map(([l,d,g])=>{const s=Ise(e,l),v=wse(t,g),E=Tse(l);To.ael(s,d,v,E),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>To.rel(s,d,v,E))})},wse=(e,t)=>n=>{try{e.$flags$&256?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(o){Vh(o)}},Ise=(e,t)=>t&8?d1:e,Tse=e=>(e&2)!==0,zI=new WeakMap,fu=e=>zI.get(e),Bi=(e,t)=>zI.set(t.$lazyInstance$=e,t),Sse=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(o=>n.$onInstanceResolve$=o),n.$onReadyPromise$=new Promise(o=>n.$onReadyResolve$=o),e["s-p"]=[],e["s-rc"]=[],iO(e,n,t.$listeners$),zI.set(e,n)},rO=(e,t)=>t in e,Vh=(e,t)=>(0,console.error)(e,t),oO=new Map,Ese=(e,t,n)=>{const o=e.$tagName$.replace(/-/g,"_"),l=e.$lazyBundleId$,d=oO.get(l);if(d)return d[o];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return Xoe(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>Hce),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>Gce),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>Wce),"./mi-column.entry.js":()=>Promise.resolve().then(()=>qce),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Jce),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>aue),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>uue),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>hue),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>fue),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>mue),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>Sue),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>Due),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>Aue),"./mi-list.entry.js":()=>Promise.resolve().then(()=>Lue),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>ige),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>oge),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>lge),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>dge),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>pge),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>Nge),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>zge),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>Oge),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>Rge),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>Uge),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>Fge),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>$ge),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>Qge),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Gge),"./mi-search.entry.js":()=>Promise.resolve().then(()=>Xge),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>e1e),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>n1e),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>r1e),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>o1e),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>a1e),"./mi-time.entry.js":()=>Promise.resolve().then(()=>l1e)}),`./${l}.entry.js`).then(g=>(oO.set(l,g),g[o]),Vh)},vx=new Map,d1=typeof window<"u"?window:{},vl=d1.document||{head:{}},To={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},sO=e=>Promise.resolve(e),Dse=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),aO=[],lO=[],Cse=(e,t)=>n=>{e.push(n),CI||(CI=!0,t&&To.$flags$&4?OI(kI):To.raf(kI))},cO=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){Vh(n)}e.length=0},kI=()=>{cO(aO),cO(lO),(CI=aO.length>0)&&To.raf(kI)},OI=e=>sO().then(e),Ase=Cse(lO,!0),Nse=()=>sO(),uO=(e,t)=>typeof window>"u"?Promise.resolve():Nse().then(()=>Mse([["mi-route-instructions",[[1,"mi-route-instructions",{activeStep:[1040],unit:[1],route:[16],hideIndoorSubsteps:[4,"hide-indoor-substeps"],travelMode:[1,"travel-mode"],originLocation:[16],originName:[1,"origin-name"],destinationLocation:[16],destinationName:[1,"destination-name"],translations:[16]}]]],["mi-route-instructions-step",[[1,"mi-route-instructions-step",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],destinationLocation:[1,"destination-location"],unit:[1],showToggleButton:[4,"show-toggle-button"],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32],openSubsteps:[64],closeSubsteps:[64]}]]],["mi-route-instructions-heading",[[1,"mi-route-instructions-heading",{originName:[1,"origin-name"],destinationName:[1,"destination-name"],totalTravelTime:[2,"total-travel-time"],totalWalkingDistance:[2,"total-walking-distance"],travelMode:[1,"travel-mode"],unit:[1],translations:[16]}]]],["mi-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["mi-list-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[1],level:[1],iconBadge:[1,"icon-badge"],iconBadgeValue:[1,"icon-badge-value"],iconURLToRender:[32]}]]],["mi-metric-card",[[1,"mi-metric-card",{label:[1],value:[1],tip:[1],spinner:[4],error:[1],showToolTip:[32]}]]],["mi-location-booking",[[1,"mi-location-booking",{location:[16],duration:[2],translations:[16],show:[2],startHour:[2,"start-hour"],stopHour:[2,"stop-hour"],bookingTitle:[1,"booking-title"],timeSlots:[32]}]]],["mi-share-sms",[[0,"mi-share-sms",{venueId:[1,"venue"],originLocationId:[1,"origin"],destinationLocationId:[1,"destination"],countryCode:[1,"country-code"],phoneNumberInputPlaceholder:[1,"input-placeholder"],submitButtonLabel:[1,"submit-button-label"]}]]],["combo-box-item",[[0,"combo-box-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-chip",[[0,"mi-chip",{icon:[1],content:[1],backgroundColor:[1,"background-color"],active:[4]}]]],["mi-column",[[1,"mi-column",{monospace:[4],alignContent:[1,"align-content"],label:[1],sortable:[1],sort:[1],binding:[1],fitContent:[4,"fit-content"],width:[1]},[[0,"cellContentClicked","cellContentClickedHandler"]]]]],["mi-combo-box",[[1,"mi-combo-box",{open:[4],items:[16],itemsOrder:[1,"items-order"],filterable:[4],selected:[16],noResultsMessage:[1,"no-results-message"],disabled:[4],currentItems:[32]},[[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-data-table",[[1,"mi-data-table",{rows:[16],maxRows:[2,"max-rows"],page:[2],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[32],currentPage:[32],sortByColumn:[32]}]]],["mi-dropdown",[[1,"mi-dropdown",{open:[4],items:[16],itemsOrder:[1,"items-order"],label:[1],filterable:[4],placeholder:[1],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],dropdownAlignment:[1,"alignment"],disabled:[4],currentItems:[32],clearFilter:[64]},[[8,"keydown","handleKeyDown"],[10,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-dropdown-item",[[0,"mi-dropdown-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-floor-selector",[[0,"mi-floor-selector",{mapsindoors:[8],primaryColor:[1,"primary-color"],floors:[32],currentFloor:[32],floorSelectorClosed:[32],fadeFloorSelectorOnTop:[32],fadeFloorSelectorOnBottom:[32]}]]],["mi-list-item-category",[[1,"mi-list-item-category",{category:[8],orientation:[513]}]]],["mi-map-googlemaps",[[1,"mi-map-googlemaps",{gmApiKey:[1,"gm-api-key"],miApiKey:[1,"mi-api-key"],gmOptions:[16],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],language:[1],polylineOptions:[16],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-map-mapbox",[[1,"mi-map-mapbox",{accessToken:[1,"access-token"],miApiKey:[1,"mi-api-key"],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],polylineOptions:[16],zoom:[1537],maxPitch:[1538,"max-pitch"],maxZoom:[1537,"max-zoom"],bearing:[1537],pitch:[1537],language:[1],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-my-position",[[0,"mi-my-position",{mapsindoors:[8],myPositionOptions:[8,"my-position-options"],positionState:[32],watchPosition:[64]}]]],["mi-notification",[[1,"mi-notification",{position:[1],duration:[2],push:[64],clearAll:[64]}]]],["mi-search",[[0,"mi-search",{placeholder:[1],idAttribute:[1,"id-attribute"],dataAttributes:[16],mapsindoors:[4],google:[4],mapbox:[4],language:[1],miFields:[1,"mi-fields"],miTake:[2,"mi-take"],miSkip:[2,"mi-skip"],miOrder:[1,"mi-order"],miCategories:[1,"mi-categories"],miNear:[1,"mi-near"],miVenue:[1,"mi-venue"],gmCountryCode:[1,"gm-country-code"],value:[1537],disabled:[4],sessionToken:[1,"session-token"],userPosition:[1,"user-position"],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[64],getInputField:[64]}]]],["mi-step-switcher",[[1,"mi-step-switcher",{heading:[1],steps:[16],stepIndex:[514,"step-index"]}]]],["mi-tab",[[1,"mi-tab",{label:[1],tabFor:[1,"tab-for"]}]]],["mi-tab-panel",[[1,"mi-tab-panel",{isActive:[32],active:[64]}]]],["mi-tabs",[[1,"mi-tabs",{active:[2],bordered:[4],tabs:[32]}]]],["mi-distance_2",[[1,"mi-distance",{meters:[2],unit:[1]}],[1,"mi-icon",{iconName:[1,"icon-name"]}]]],["mi-route-instructions-step-legacy",[[1,"mi-route-instructions-step-legacy",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32]}]]],["mi-route-instructions-maneuver",[[1,"mi-route-instructions-maneuver",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtons:[64],updateScrollButtonsState:[64]}]]],["mi-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1],language:[1],clearInputField:[64]}]]],["mi-route-instructions-maneuver-legacy",[[1,"mi-route-instructions-maneuver-legacy",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-card_2",[[1,"mi-card"],[1,"mi-spinner",{inverse:[4]}]]],["mi-location-info",[[1,"mi-location-info",{location:[8],level:[1],showExternalId:[4,"show-external-id"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],t)),Lse={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class xx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Lse,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,o,l){return l&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${o}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new xx(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new xx(this.logger,t)}}var xl=new xx;class bx{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(o=>{this.observers[o]=this.observers[o]||[],this.observers[o].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(o=>o!==n)}}emit(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),l=1;l<n;l++)o[l-1]=arguments[l];this.observers[t]&&[].concat(this.observers[t]).forEach(g=>{g(...o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(g=>{g.apply(g,[t,...o])})}}function f1(){let e,t;const n=new Promise((o,l)=>{e=o,t=l});return n.resolve=e,n.reject=t,n}function hO(e){return e==null?"":""+e}function zse(e,t,n){e.forEach(o=>{t[o]&&(n[o]=t[o])})}function jI(e,t,n){function o(g){return g&&g.indexOf("###")>-1?g.replace(/###/g,"."):g}function l(){return!e||typeof e=="string"}const d=typeof t!="string"?[].concat(t):t.split(".");for(;d.length>1;){if(l())return{};const g=o(d.shift());!e[g]&&n&&(e[g]=new n),Object.prototype.hasOwnProperty.call(e,g)?e=e[g]:e={}}return l()?{}:{obj:e,k:o(d.shift())}}function dO(e,t,n){const{obj:o,k:l}=jI(e,t,Object);o[l]=n}function kse(e,t,n,o){const{obj:l,k:d}=jI(e,t,Object);l[d]=l[d]||[],o&&(l[d]=l[d].concat(n)),o||l[d].push(n)}function Mx(e,t){const{obj:n,k:o}=jI(e,t);if(n)return n[o]}function Ose(e,t,n){const o=Mx(e,n);return o!==void 0?o:Mx(t,n)}function fO(e,t,n){for(const o in t)o!=="__proto__"&&o!=="constructor"&&(o in e?typeof e[o]=="string"||e[o]instanceof String||typeof t[o]=="string"||t[o]instanceof String?n&&(e[o]=t[o]):fO(e[o],t[o],n):e[o]=t[o]);return e}function ep(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var jse={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Rse(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>jse[t]):e}const Pse=[" ",",","?","!",";"];function Use(e,t,n){t=t||"",n=n||"";const o=Pse.filter(g=>t.indexOf(g)<0&&n.indexOf(g)<0);if(o.length===0)return!0;const l=new RegExp(`(${o.map(g=>g==="?"?"\\?":g).join("|")})`);let d=!l.test(e);if(!d){const g=e.indexOf(n);g>0&&!l.test(e.substring(0,g))&&(d=!0)}return d}function wx(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const o=t.split(n);let l=e;for(let d=0;d<o.length;++d){if(!l||typeof l[o[d]]=="string"&&d+1<o.length)return;if(l[o[d]]===void 0){let g=2,s=o.slice(d,d+g).join(n),v=l[s];for(;v===void 0&&o.length>d+g;)g++,s=o.slice(d,d+g).join(n),v=l[s];if(v===void 0)return;if(v===null)return null;if(t.endsWith(s)){if(typeof v=="string")return v;if(s&&typeof v[s]=="string")return v[s]}const E=o.slice(d+g).join(n);return E?wx(v,E,n):void 0}l=l[o[d]]}return l}function Ix(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class pO extends bx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const d=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,g=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[t,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(d?o.split(d):o)),t.indexOf(".")>-1&&(s=t.split("."));const v=Mx(this.data,s);return v||!g||typeof o!="string"?v:wx(this.data&&this.data[t]&&this.data[t][n],o,d)}addResource(t,n,o,l){let d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const g=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let s=[t,n];o&&(s=s.concat(g?o.split(g):o)),t.indexOf(".")>-1&&(s=t.split("."),l=n,n=s[1]),this.addNamespaces(n),dO(this.data,s,l),d.silent||this.emit("added",t,n,o,l)}addResources(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const d in o)(typeof o[d]=="string"||Object.prototype.toString.apply(o[d])==="[object Array]")&&this.addResource(t,n,d,o[d],{silent:!0});l.silent||this.emit("added",t,n,o)}addResourceBundle(t,n,o,l,d){let g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),l=o,o=n,n=s[1]),this.addNamespaces(n);let v=Mx(this.data,s)||{};l?fO(v,o,d):v={...v,...o},dO(this.data,s,v),g.silent||this.emit("added",t,n,o)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(l=>n[l]&&Object.keys(n[l]).length>0)}toJSON(){return this.data}}var mO={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,l){return e.forEach(d=>{this.processors[d]&&(t=this.processors[d].process(t,n,o,l))}),t}};const gO={};class Tx extends bx{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),zse(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xl.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const o=this.resolve(t,n);return o&&o.res!==void 0}extractFromKey(t,n){let o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const l=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let d=n.ns||this.options.defaultNS||[];const g=o&&t.indexOf(o)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Use(t,o,l);if(g&&!s){const v=t.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:t,namespaces:d};const E=t.split(o);(o!==l||o===l&&this.options.ns.indexOf(E[0])>-1)&&(d=E.shift()),t=E.join(l)}return typeof d=="string"&&(d=[d]),{key:t,namespaces:d}}translate(t,n,o){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const l=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,d=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:g,namespaces:s}=this.extractFromKey(t[t.length-1],n),v=s[s.length-1],E=n.lng||this.language,z=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(E&&E.toLowerCase()==="cimode"){if(z){const oe=n.nsSeparator||this.options.nsSeparator;return l?{res:`${v}${oe}${g}`,usedKey:g,exactUsedKey:g,usedLng:E,usedNS:v,usedParams:this.getUsedParamsDetails(n)}:`${v}${oe}${g}`}return l?{res:g,usedKey:g,exactUsedKey:g,usedLng:E,usedNS:v,usedParams:this.getUsedParamsDetails(n)}:g}const O=this.resolve(t,n);let j=O&&O.res;const F=O&&O.usedKey||g,$=O&&O.exactUsedKey||g,Y=Object.prototype.toString.apply(j),ie=["[object Number]","[object Function]","[object RegExp]"],K=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,J=!this.i18nFormat||this.i18nFormat.handleAsObject;if(J&&j&&(typeof j!="string"&&typeof j!="boolean"&&typeof j!="number")&&ie.indexOf(Y)<0&&!(typeof K=="string"&&Y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const oe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(F,j,{...n,ns:s}):`key '${g} (${this.language})' returned an object instead of string.`;return l?(O.res=oe,O.usedParams=this.getUsedParamsDetails(n),O):oe}if(d){const oe=Y==="[object Array]",pe=oe?[]:{},me=oe?$:F;for(const he in j)if(Object.prototype.hasOwnProperty.call(j,he)){const De=`${me}${d}${he}`;pe[he]=this.translate(De,{...n,joinArrays:!1,ns:s}),pe[he]===De&&(pe[he]=j[he])}j=pe}}else if(J&&typeof K=="string"&&Y==="[object Array]")j=j.join(K),j&&(j=this.extendTranslation(j,t,n,o));else{let oe=!1,pe=!1;const me=n.count!==void 0&&typeof n.count!="string",he=Tx.hasDefaultValue(n),De=me?this.pluralResolver.getSuffix(E,n.count,n):"",qe=n.ordinal&&me?this.pluralResolver.getSuffix(E,n.count,{ordinal:!1}):"",Te=n[`defaultValue${De}`]||n[`defaultValue${qe}`]||n.defaultValue;!this.isValidLookup(j)&&he&&(oe=!0,j=Te),this.isValidLookup(j)||(pe=!0,j=g);const ht=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&pe?void 0:j,mt=he&&Te!==j&&this.options.updateMissing;if(pe||oe||mt){if(this.logger.log(mt?"updateKey":"missingKey",E,v,g,mt?Te:j),d){const ot=this.resolve(g,{...n,keySeparator:!1});ot&&ot.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let vt=[];const Qe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Qe&&Qe[0])for(let ot=0;ot<Qe.length;ot++)vt.push(Qe[ot]);else this.options.saveMissingTo==="all"?vt=this.languageUtils.toResolveHierarchy(n.lng||this.language):vt.push(n.lng||this.language);const Fe=(ot,Je,He)=>{const Ae=he&&He!==j?He:ht;this.options.missingKeyHandler?this.options.missingKeyHandler(ot,v,Je,Ae,mt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ot,v,Je,Ae,mt,n),this.emit("missingKey",ot,v,Je,j)};this.options.saveMissing&&(this.options.saveMissingPlurals&&me?vt.forEach(ot=>{this.pluralResolver.getSuffixes(ot,n).forEach(Je=>{Fe([ot],g+Je,n[`defaultValue${Je}`]||Te)})}):Fe(vt,g,Te))}j=this.extendTranslation(j,t,n,O,o),pe&&j===g&&this.options.appendNamespaceToMissingKey&&(j=`${v}:${g}`),(pe||oe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?j=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}:${g}`:g,oe?j:void 0):j=this.options.parseMissingKeyHandler(j))}return l?(O.res=j,O.usedParams=this.getUsedParamsDetails(n),O):j}extendTranslation(t,n,o,l,d){var g=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const E=typeof t=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let z;if(E){const j=t.match(this.interpolator.nestingRegexp);z=j&&j.length}let O=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(O={...this.options.interpolation.defaultVariables,...O}),t=this.interpolator.interpolate(t,O,o.lng||this.language,o),E){const j=t.match(this.interpolator.nestingRegexp),F=j&&j.length;z<F&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(o.lng=l.usedLng),o.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var j=arguments.length,F=new Array(j),$=0;$<j;$++)F[$]=arguments[$];return d&&d[0]===F[0]&&!o.context?(g.logger.warn(`It seems you are nesting recursively key: ${F[0]} in key: ${n[0]}`),null):g.translate(...F,n)},o)),o.interpolation&&this.interpolator.reset()}const s=o.postProcess||this.options.postProcess,v=typeof s=="string"?[s]:s;return t!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(t=mO.handle(v,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,l,d,g,s;return typeof t=="string"&&(t=[t]),t.forEach(v=>{if(this.isValidLookup(o))return;const E=this.extractFromKey(v,n),z=E.key;l=z;let O=E.namespaces;this.options.fallbackNS&&(O=O.concat(this.options.fallbackNS));const j=n.count!==void 0&&typeof n.count!="string",F=j&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",Y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);O.forEach(ie=>{this.isValidLookup(o)||(s=ie,!gO[`${Y[0]}-${ie}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(gO[`${Y[0]}-${ie}`]=!0,this.logger.warn(`key "${l}" for languages "${Y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),Y.forEach(K=>{if(this.isValidLookup(o))return;g=K;const J=[z];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(J,z,K,ie,n);else{let oe;j&&(oe=this.pluralResolver.getSuffix(K,n.count,n));const pe=`${this.options.pluralSeparator}zero`,me=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(j&&(J.push(z+oe),n.ordinal&&oe.indexOf(me)===0&&J.push(z+oe.replace(me,this.options.pluralSeparator)),F&&J.push(z+pe)),$){const he=`${z}${this.options.contextSeparator}${n.context}`;J.push(he),j&&(J.push(he+oe),n.ordinal&&oe.indexOf(me)===0&&J.push(he+oe.replace(me,this.options.pluralSeparator)),F&&J.push(he+pe))}}let te;for(;te=J.pop();)this.isValidLookup(o)||(d=te,o=this.getResource(K,ie,te,n))}))})}),{res:o,usedKey:l,exactUsedKey:d,usedLng:g,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,o,l):this.resourceStore.getResource(t,n,o,l)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=t.replace&&typeof t.replace!="string";let l=o?t.replace:t;if(o&&typeof t.count<"u"&&(l.count=t.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!o){l={...l};for(const d of n)delete l[d]}return l}static hasDefaultValue(t){const n="defaultValue";for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&n===o.substring(0,n.length)&&t[o]!==void 0)return!0;return!1}}function RI(e){return e.charAt(0).toUpperCase()+e.slice(1)}class yO{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xl.create("languageUtils")}getScriptPartFromCode(t){if(t=Ix(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ix(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let o=t.split("-");return this.options.lowerCaseLng?o=o.map(l=>l.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=RI(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=RI(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=RI(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(o=>{if(n)return;const l=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(l))&&(n=l)}),!n&&this.options.supportedLngs&&t.forEach(o=>{if(n)return;const l=this.getLanguagePartFromCode(o);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(d=>{if(d===l)return d;if(!(d.indexOf("-")<0&&l.indexOf("-")<0)&&d.indexOf(l)===0)return d})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let o=t[n];return o||(o=t[this.getScriptPartFromCode(n)]),o||(o=t[this.formatLanguageCode(n)]),o||(o=t[this.getLanguagePartFromCode(n)]),o||(o=t.default),o||[]}toResolveHierarchy(t,n){const o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),l=[],d=g=>{g&&(this.isSupportedCode(g)?l.push(g):this.logger.warn(`rejecting language code not found in supportedLngs: ${g}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(t))):typeof t=="string"&&d(this.formatLanguageCode(t)),o.forEach(g=>{l.indexOf(g)<0&&d(this.formatLanguageCode(g))}),l}}let Bse=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Fse={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Vse=["v1","v2","v3"],$se=["v4"],_O={zero:0,one:1,two:2,few:3,many:4,other:5};function Hse(){const e={};return Bse.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Fse[t.fc]}})}),e}class Qse{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=xl.create("pluralResolver"),(!this.options.compatibilityJSON||$se.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Hse()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Ix(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(t,n);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(t,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,o).map(l=>`${n}${l}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((l,d)=>_O[l]-_O[d]).map(l=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${l}`):o.numbers.map(l=>this.getSuffix(t,l,n)):[]}getSuffix(t,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const l=this.getRule(t,o);return l?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${l.select(n)}`:this.getSuffixRetroCompatible(l,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const o=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let l=t.numbers[o];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));const d=()=>this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString();return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?`_plural_${l.toString()}`:d():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?d():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!Vse.includes(this.options.compatibilityJSON)}}function vO(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,d=Ose(e,t,n);return!d&&l&&typeof n=="string"&&(d=wx(e,n,o),d===void 0&&(d=wx(t,n,o))),d}class Yse{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xl.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:Rse,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ep(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ep(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ep(n.nestingPrefix):n.nestingPrefixEscaped||ep("$t("),this.nestingSuffix=n.nestingSuffix?ep(n.nestingSuffix):n.nestingSuffixEscaped||ep(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const o=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(o,"g")}interpolate(t,n,o,l){let d,g,s;const v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function E($){return $.replace(/\$/g,"$$$$")}const z=$=>{if($.indexOf(this.formatSeparator)<0){const J=vO(n,v,$,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(J,void 0,o,{...l,...n,interpolationkey:$}):J}const Y=$.split(this.formatSeparator),ie=Y.shift().trim(),K=Y.join(this.formatSeparator).trim();return this.format(vO(n,v,ie,this.options.keySeparator,this.options.ignoreJSONStructure),K,o,{...l,...n,interpolationkey:ie})};this.resetRegExp();const O=l&&l.missingInterpolationHandler||this.options.missingInterpolationHandler,j=l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:$=>E($)},{regex:this.regexp,safeValue:$=>this.escapeValue?E(this.escape($)):E($)}].forEach($=>{for(s=0;d=$.regex.exec(t);){const Y=d[1].trim();if(g=z(Y),g===void 0)if(typeof O=="function"){const K=O(t,d,l);g=typeof K=="string"?K:""}else if(l&&Object.prototype.hasOwnProperty.call(l,Y))g="";else if(j){g=d[0];continue}else this.logger.warn(`missed to pass in variable ${Y} for interpolating ${t}`),g="";else typeof g!="string"&&!this.useRawValueToEscape&&(g=hO(g));const ie=$.safeValue(g);if(t=t.replace(d[0],ie),j?($.regex.lastIndex+=g.length,$.regex.lastIndex-=d[0].length):$.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,d,g;function s(v,E){const z=this.nestingOptionsSeparator;if(v.indexOf(z)<0)return v;const O=v.split(new RegExp(`${z}[ ]*{`));let j=`{${O[1]}`;v=O[0],j=this.interpolate(j,g);const F=j.match(/'/g),$=j.match(/"/g);(F&&F.length%2===0&&!$||$.length%2!==0)&&(j=j.replace(/'/g,'"'));try{g=JSON.parse(j),E&&(g={...E,...g})}catch(Y){return this.logger.warn(`failed parsing options string in nesting for key ${v}`,Y),`${v}${z}${j}`}return delete g.defaultValue,v}for(;l=this.nestingRegexp.exec(t);){let v=[];g={...o},g=g.replace&&typeof g.replace!="string"?g.replace:g,g.applyPostProcessor=!1,delete g.defaultValue;let E=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){const z=l[1].split(this.formatSeparator).map(O=>O.trim());l[1]=z.shift(),v=z,E=!0}if(d=n(s.call(this,l[1].trim(),g),g),d&&l[0]===t&&typeof d!="string")return d;typeof d!="string"&&(d=hO(d)),d||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${t}`),d=""),E&&(d=v.reduce((z,O)=>this.format(z,O,o.lng,{...o,interpolationkey:l[1].trim()}),d.trim())),t=t.replace(l[0],d),this.regexp.lastIndex=0}return t}}function Gse(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const o=e.split("(");t=o[0].toLowerCase().trim();const l=o[1].substring(0,o[1].length-1);t==="currency"&&l.indexOf(":")<0?n.currency||(n.currency=l.trim()):t==="relativetime"&&l.indexOf(":")<0?n.range||(n.range=l.trim()):l.split(";").forEach(g=>{if(!g)return;const[s,...v]=g.split(":"),E=v.join(":").trim().replace(/^'+|'+$/g,"");n[s.trim()]||(n[s.trim()]=E),E==="false"&&(n[s.trim()]=!1),E==="true"&&(n[s.trim()]=!0),isNaN(E)||(n[s.trim()]=parseInt(E,10))})}return{formatName:t,formatOptions:n}}function tp(e){const t={};return function(o,l,d){const g=l+JSON.stringify(d);let s=t[g];return s||(s=e(Ix(l),d),t[g]=s),s(o)}}class Zse{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xl.create("formatter"),this.options=t,this.formats={number:tp((n,o)=>{const l=new Intl.NumberFormat(n,{...o});return d=>l.format(d)}),currency:tp((n,o)=>{const l=new Intl.NumberFormat(n,{...o,style:"currency"});return d=>l.format(d)}),datetime:tp((n,o)=>{const l=new Intl.DateTimeFormat(n,{...o});return d=>l.format(d)}),relativetime:tp((n,o)=>{const l=new Intl.RelativeTimeFormat(n,{...o});return d=>l.format(d,o.range||"day")}),list:tp((n,o)=>{const l=new Intl.ListFormat(n,{...o});return d=>l.format(d)})},this.init(t)}init(t){const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=tp(n)}format(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((s,v)=>{const{formatName:E,formatOptions:z}=Gse(v);if(this.formats[E]){let O=s;try{const j=l&&l.formatParams&&l.formatParams[l.interpolationkey]||{},F=j.locale||j.lng||l.locale||l.lng||o;O=this.formats[E](s,F,{...z,...l,...j})}catch(j){this.logger.warn(j)}return O}else this.logger.warn(`there was no format function for ${E}`);return s},t)}}function Wse(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class qse extends bx{constructor(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=o,this.languageUtils=o.languageUtils,this.options=l,this.logger=xl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,l.backend,l)}queueLoad(t,n,o,l){const d={},g={},s={},v={};return t.forEach(E=>{let z=!0;n.forEach(O=>{const j=`${E}|${O}`;!o.reload&&this.store.hasResourceBundle(E,O)?this.state[j]=2:this.state[j]<0||(this.state[j]===1?g[j]===void 0&&(g[j]=!0):(this.state[j]=1,z=!1,g[j]===void 0&&(g[j]=!0),d[j]===void 0&&(d[j]=!0),v[O]===void 0&&(v[O]=!0)))}),z||(s[E]=!0)}),(Object.keys(d).length||Object.keys(g).length)&&this.queue.push({pending:g,pendingCount:Object.keys(g).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(g),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(v)}}loaded(t,n,o){const l=t.split("|"),d=l[0],g=l[1];n&&this.emit("failedLoading",d,g,n),o&&this.store.addResourceBundle(d,g,o),this.state[t]=n?-1:2;const s={};this.queue.forEach(v=>{kse(v.loaded,[d],g),Wse(v,t),n&&v.errors.push(n),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(E=>{s[E]||(s[E]={});const z=v.loaded[E];z.length&&z.forEach(O=>{s[E][O]===void 0&&(s[E][O]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(v=>!v.done)}read(t,n,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,g=arguments.length>5?arguments[5]:void 0;if(!t.length)return g(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:o,tried:l,wait:d,callback:g});return}this.readingCalls++;const s=(E,z)=>{if(this.readingCalls--,this.waitingReads.length>0){const O=this.waitingReads.shift();this.read(O.lng,O.ns,O.fcName,O.tried,O.wait,O.callback)}if(E&&z&&l<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,o,l+1,d*2,g)},d);return}g(E,z)},v=this.backend[o].bind(this.backend);if(v.length===2){try{const E=v(t,n);E&&typeof E.then=="function"?E.then(z=>s(null,z)).catch(s):s(null,E)}catch(E){s(E)}return}return v(t,n,s)}prepareLoading(t,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const d=this.queueLoad(t,n,o,l);if(!d.toLoad.length)return d.pending.length||l(),null;d.toLoad.forEach(g=>{this.loadOne(g)})}load(t,n,o){this.prepareLoading(t,n,{},o)}reload(t,n,o){this.prepareLoading(t,n,{reload:!0},o)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=t.split("|"),l=o[0],d=o[1];this.read(l,d,"read",void 0,void 0,(g,s)=>{g&&this.logger.warn(`${n}loading namespace ${d} for language ${l} failed`,g),!g&&s&&this.logger.log(`${n}loaded namespace ${d} for language ${l}`,s),this.loaded(t,g,s)})}saveMissing(t,n,o,l,d){let g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${o}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){const v={...g,isUpdate:d},E=this.backend.create.bind(this.backend);if(E.length<6)try{let z;E.length===5?z=E(t,n,o,l,v):z=E(t,n,o,l),z&&typeof z.then=="function"?z.then(O=>s(null,O)).catch(s):s(null,z)}catch(z){s(z)}else E(t,n,o,l,s,v)}!t||!t[0]||this.store.addResource(t[0],n,o,l)}}}function xO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const o=t[3]||t[2];Object.keys(o).forEach(l=>{n[l]=o[l]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,o)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function bO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Sx(){}function Kse(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class p1 extends bx{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=bO(t),this.services={},this.logger=xl,this.modules={external:[]},Kse(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(o=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const l=xO();this.options={...l,...this.options,...bO(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...l.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function d(z){return z?typeof z=="function"?new z:z:null}if(!this.options.isClone){this.modules.logger?xl.init(d(this.modules.logger),this.options):xl.init(null,this.options);let z;this.modules.formatter?z=this.modules.formatter:typeof Intl<"u"&&(z=Zse);const O=new yO(this.options);this.store=new pO(this.options.resources,this.options);const j=this.services;j.logger=xl,j.resourceStore=this.store,j.languageUtils=O,j.pluralResolver=new Qse(O,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),z&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(j.formatter=d(z),j.formatter.init(j,this.options),this.options.interpolation.format=j.formatter.format.bind(j.formatter)),j.interpolator=new Yse(this.options),j.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},j.backendConnector=new qse(d(this.modules.backend),j.resourceStore,j,this.options),j.backendConnector.on("*",function(F){for(var $=arguments.length,Y=new Array($>1?$-1:0),ie=1;ie<$;ie++)Y[ie-1]=arguments[ie];t.emit(F,...Y)}),this.modules.languageDetector&&(j.languageDetector=d(this.modules.languageDetector),j.languageDetector.init&&j.languageDetector.init(j,this.options.detection,this.options)),this.modules.i18nFormat&&(j.i18nFormat=d(this.modules.i18nFormat),j.i18nFormat.init&&j.i18nFormat.init(this)),this.translator=new Tx(this.services,this.options),this.translator.on("*",function(F){for(var $=arguments.length,Y=new Array($>1?$-1:0),ie=1;ie<$;ie++)Y[ie-1]=arguments[ie];t.emit(F,...Y)}),this.modules.external.forEach(F=>{F.init&&F.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Sx),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const z=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);z.length>0&&z[0]!=="dev"&&(this.options.lng=z[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(z=>{this[z]=function(){return t.store[z](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(z=>{this[z]=function(){return t.store[z](...arguments),t}});const v=f1(),E=()=>{const z=(O,j)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),v.resolve(j),o(O,j)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return z(null,this.t.bind(this));this.changeLanguage(this.options.lng,z)};return this.options.resources||!this.options.initImmediate?E():setTimeout(E,0),v}loadResources(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sx;const l=typeof t=="string"?t:this.language;if(typeof t=="function"&&(o=t),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const d=[],g=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(E=>{E!=="cimode"&&d.indexOf(E)<0&&d.push(E)})};l?g(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>g(v)),this.options.preload&&this.options.preload.forEach(s=>g(s)),this.services.backendConnector.load(d,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(s)})}else o(null)}reloadResources(t,n,o){const l=f1();return t||(t=this.languages),n||(n=this.options.ns),o||(o=Sx),this.services.backendConnector.reload(t,n,d=>{l.resolve(),o(d)}),l}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&mO.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const o=this.languages[n];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(t,n){var o=this;this.isLanguageChangingTo=t;const l=f1();this.emit("languageChanging",t);const d=v=>{this.language=v,this.languages=this.services.languageUtils.toResolveHierarchy(v),this.resolvedLanguage=void 0,this.setResolvedLanguage(v)},g=(v,E)=>{E?(d(E),this.translator.changeLanguage(E),this.isLanguageChangingTo=void 0,this.emit("languageChanged",E),this.logger.log("languageChanged",E)):this.isLanguageChangingTo=void 0,l.resolve(function(){return o.t(...arguments)}),n&&n(v,function(){return o.t(...arguments)})},s=v=>{!t&&!v&&this.services.languageDetector&&(v=[]);const E=typeof v=="string"?v:this.services.languageUtils.getBestMatchFromCodes(v);E&&(this.language||d(E),this.translator.language||this.translator.changeLanguage(E),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(E)),this.loadResources(E,z=>{g(z,E)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),l}getFixedT(t,n,o){var l=this;const d=function(g,s){let v;if(typeof s!="object"){for(var E=arguments.length,z=new Array(E>2?E-2:0),O=2;O<E;O++)z[O-2]=arguments[O];v=l.options.overloadTranslationOptionHandler([g,s].concat(z))}else v={...s};v.lng=v.lng||d.lng,v.lngs=v.lngs||d.lngs,v.ns=v.ns||d.ns,v.keyPrefix=v.keyPrefix||o||d.keyPrefix;const j=l.options.keySeparator||".";let F;return v.keyPrefix&&Array.isArray(g)?F=g.map($=>`${v.keyPrefix}${j}${$}`):F=v.keyPrefix?`${v.keyPrefix}${j}${g}`:g,l.t(F,v)};return typeof t=="string"?d.lng=t:d.lngs=t,d.ns=n,d.keyPrefix=o,d}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=n.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const g=(s,v)=>{const E=this.services.backendConnector.state[`${s}|${v}`];return E===-1||E===2};if(n.precheck){const s=n.precheck(this,g);if(s!==void 0)return s}return!!(this.hasResourceBundle(o,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||g(o,t)&&(!l||g(d,t)))}loadNamespaces(t,n){const o=f1();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{o.resolve(),n&&n(l)}),o):(n&&n(),Promise.resolve())}loadLanguages(t,n){const o=f1();typeof t=="string"&&(t=[t]);const l=this.options.preload||[],d=t.filter(g=>l.indexOf(g)<0);return d.length?(this.options.preload=l.concat(d),this.loadResources(g=>{o.resolve(),n&&n(g)}),o):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new yO(xO());return n.indexOf(o.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new p1(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sx;const o=t.forkResourceStore;o&&delete t.forkResourceStore;const l={...this.options,...t,isClone:!0},d=new p1(l);return(t.debug!==void 0||t.prefix!==void 0)&&(d.logger=d.logger.clone(t)),["store","services","language"].forEach(s=>{d[s]=this[s]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},o&&(d.store=new pO(this.store.data,l),d.services.resourceStore=d.store),d.translator=new Tx(d.services,l),d.translator.on("*",function(s){for(var v=arguments.length,E=new Array(v>1?v-1:0),z=1;z<v;z++)E[z-1]=arguments[z];d.emit(s,...E)}),d.init(l,n),d.translator.options=l,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Uo=p1.createInstance();Uo.createInstance=p1.createInstance,Uo.createInstance,Uo.dir,Uo.init,Uo.loadResources,Uo.reloadResources,Uo.use,Uo.changeLanguage,Uo.getFixedT;const MO=Uo.t;Uo.exists,Uo.setDefaultNamespace,Uo.hasLoadedNamespace,Uo.loadNamespaces,Uo.loadLanguages;function PI(){return PI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},PI.apply(this,arguments)}function Xse(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const wO={};function UI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&wO[t[0]]||(typeof t[0]=="string"&&(wO[t[0]]=new Date),Xse(...t))}const IO=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function TO(e,t,n){e.loadNamespaces(t,IO(e,n))}function SO(e,t,n,o){typeof n=="string"&&(n=[n]),n.forEach(l=>{e.options.ns.indexOf(l)<0&&e.options.ns.push(l)}),e.loadLanguages(t,IO(e,o))}function Jse(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=t.languages[0],l=t.options?t.options.fallbackLng:!1,d=t.languages[t.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const g=(s,v)=>{const E=t.services.backendConnector.state[`${s}|${v}`];return E===-1||E===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!g(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(o,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||g(o,e)&&(!l||g(d,e)))}function eae(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(UI("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(l,d)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!d(l.isLanguageChangingTo,e))return!1}}):Jse(e,t,n)}const tae=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,nae={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},iae=e=>nae[e];let BI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(tae,iae)};function rae(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};BI={...BI,...e}}function oae(){return BI}let EO;function sae(e){EO=e}function aae(){return EO}const lae={type:"3rdParty",init(e){rae(e.options.react),sae(e)}},cae=Re.createContext();class uae{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const hae=(e,t)=>{const n=Re.useRef();return Re.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function ya(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:o,defaultNS:l}=Re.useContext(cae)||{},d=n||o||aae();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new uae),!d){UI("You will need to pass in an i18next instance by using initReactI18next");const te=(pe,me)=>typeof me=="string"?me:me&&typeof me=="object"&&typeof me.defaultValue=="string"?me.defaultValue:Array.isArray(pe)?pe[pe.length-1]:pe,oe=[te,{},!1];return oe.t=te,oe.i18n={},oe.ready=!1,oe}d.options.react&&d.options.react.wait!==void 0&&UI("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const g={...oae(),...d.options.react,...t},{useSuspense:s,keyPrefix:v}=g;let E=e||l||d.options&&d.options.defaultNS;E=typeof E=="string"?[E]:E||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(E);const z=(d.isInitialized||d.initializedStoreOnce)&&E.every(te=>eae(te,d,g));function O(){return d.getFixedT(t.lng||null,g.nsMode==="fallback"?E:E[0],v)}const[j,F]=Re.useState(O);let $=E.join();t.lng&&($=`${t.lng}${$}`);const Y=hae($),ie=Re.useRef(!0);Re.useEffect(()=>{const{bindI18n:te,bindI18nStore:oe}=g;ie.current=!0,!z&&!s&&(t.lng?SO(d,t.lng,E,()=>{ie.current&&F(O)}):TO(d,E,()=>{ie.current&&F(O)})),z&&Y&&Y!==$&&ie.current&&F(O);function pe(){ie.current&&F(O)}return te&&d&&d.on(te,pe),oe&&d&&d.store.on(oe,pe),()=>{ie.current=!1,te&&d&&te.split(" ").forEach(me=>d.off(me,pe)),oe&&d&&oe.split(" ").forEach(me=>d.store.off(me,pe))}},[d,$]);const K=Re.useRef(!0);Re.useEffect(()=>{ie.current&&!K.current&&F(O),K.current=!1},[d,v]);const J=[j,d,z];if(J.t=j,J.i18n=d,J.ready=z,z||!z&&!s)return J;throw new Promise(te=>{t.lng?SO(d,t.lng,E,()=>te()):TO(d,E,()=>te())})}const dae={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch","Avoid stairs and escalators":"Avoid stairs and escalators","No route found":"No route found","My position":"My position","Go!":"Go!",Directions:"Directions","Choose departure":"Choose departure","Choose destination":"Choose destination",Venues:"Venues","Select venue":"Select venue",Current:"Current","Scan QR code":"Scan QR code","Scan the QR code to see the route on your phone":"Scan the QR code to see the route on your phone",Done:"Done","Cancel route":"Cancel route","Finish route":"Finish route"},fae={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift","Avoid stairs and escalators":"Undgå trapper og rulletrapper","No route found":"Ingen rute fundet","My position":"Min position","Go!":"Go!",Directions:"Rutevejledning","Choose departure":"Vælg startpunkt","Choose destination":"Vælg destination",Venues:"Venues","Select venue":"Vælg venue",Current:"Valgt","Scan QR code":"Scan QR-kode","Scan the QR code to see the route on your phone":"Scan QR-koden for at se ruten på din mobil",Done:"Afslut","Cancel route":"Annullér ruten","Finish route":"Afslut ruten"},pae={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Suche nach Name, Kategorie, Gebäude...","Nothing was found":"Keine Suchtreffer",d:"d",h:"h",min:"min",Walk:"Zu Fuß",Bike:"Fahrrad",Transit:"Öffentliche Verkehrsmittel",Drive:"Auto","Start wayfinding":"Starte Navigation","Read full description":"Öffne vollständige Beschreibung",Locations:"Locations","Directions not available":"Beschreibung nicht verfügbar","Start directions":"Starte Beschreibung",Previous:"Zurück",Next:"Weiter",StepYofX:"Schritt {{activeStep}} von {{totalSteps}}","You have arrived":"Sie haben ihr Ziel erreicht",Leave:"Verlassen",Park:"Parken",at:"bei",Building:"Gebäude",Venue:"Standort","Take staircase to level":"Nutzen Sie die Treppe zur Etage","Take the ladder to level":"Nutzen Sie die Leiter zur Etage","Take elevator to level":"Nutzen Sie den Aufzug zur Etage","Take escalator to level":"Nutzen Sie die Rolltreppe zur Etage","Take wheelchair lift to level":"Nutzen Sie den Rollstuhllift zur Etage","Take wheelchair ramp to level":"Nutzen Sie die Rollstuhlrampe zur Etage",Exit:"Verlasse das",Enter:"Gehe in das",stops:"Zwischenstopps","and continue":"und Weg fortsetzen","Continue straight ahead":"Weiter geradeaus","Go left":"Links abbiegen","Go sharp left":"Scharf links abbiegen","Go slight left":"Leicht links abbiegen","Go right":"Rechts abbiegen","Go sharp right":"Scharf rechts abbiegen","Go slight right":"Leicht rechts abbiegen","Turn around":"Umdrehen",Switch:"Umkehren","Avoid stairs and escalators":"Vermeide Treppen und Rolltreppen","No route found":"Keine Route gefunden","My position":"Meine Position","Go!":"Start!",Directions:"Wegbeschreibung","Choose departure":"Abfahrt wählen","Choose destination":"Ziel wählen",Venues:"Standorte","Select venue":"Wähle Standort",Current:"Aktuell","Scan QR code":"QR-Code scannen","Scan the QR code to see the route on your phone":"Scannen Sie den QR-Code, um die Route auf Ihrem Smartphone anzuzeigen",Done:"Schließen","Cancel route":"Route abbrechen","Finish route":"Route beenden"},mae={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer","Avoid stairs and escalators":"Éviter les escaliers et les escalators","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Go!":"C'est parti!",Directions:"Instructions","Choose departure":"Choisir le départ","Choose destination":"Choisir la destination",Venues:"Lieux","Select venue":"Sélectionner le lieu",Current:"Actuel","Scan QR code":"Scanne le code QR","Scan the QR code to see the route on your phone":"Scannez le code QR pour voir l'itinéraire sur votre téléphone",Done:"Fini","Cancel route":"Annuler l'itinéraire","Finish route":"Terminer l'itinéraire"},gae={Close:"Chiudi",From:"Da",To:"A",Distance:"Distanza","Estimated time":"Tempo stimato",Level:"Piano","Search by name, category, building...":"Cerca per nome, categoria, edificio...","Nothing was found":"Non è stato trovato nulla",d:"g",h:"o",min:"min",Walk:"A piedi",Bike:"Bicicletta",Transit:"Trasporto pubblico",Drive:"In auto","Start wayfinding":"Inizia percorso","Read full description":"Leggi la descrizione completa",Locations:"Luoghi","Directions not available":"Indicazioni non disponibili","Start directions":"Calcola il Percorso",Previous:"Precedente",Next:"Prossimo",StepYofX:"Passaggio {{activeStep}} di {{totalSteps}}","You have arrived":"Sei a destinazione",Leave:"Parti",Park:"Parcheggia",at:"a",Building:"Edificio",Venue:"Luogo","Take staircase to level":"Prendi le scale fino al piano","Take the ladder to level":"Prendi la scala fino al piano","Take elevator to level":"Prendi l'ascensore fino al piano","Take escalator to level":"Prendi la scala mobile fino al piano","Take wheelchair lift to level":"Prendi il montascale fino al piano","Take wheelchair ramp to level":"Prendi la rampa per sedie a rotelle fino al piano",Exit:"Esci",Enter:"Entra in",stops:"fermate","and continue":"e continua","Continue straight ahead":"Continua dritto","Go left":"Gira a sinistra","Go sharp left":"Svolta a sinistra","Go slight left":"Gira leggermente a sinistra","Go right":"Gira a destra","Go sharp right":"Svolta a destra","Go slight right":"Gira leggermente a destra","Turn around":"Girati",Switch:"Inverti","Avoid stairs and escalators":"Evita scale e scale mobili","No route found":"Nessun percorso trovato","My position":"La mia posizione","Go!":"Vai!",Directions:"Indicazioni","Choose departure":"Scegli la partenza","Choose destination":"Scegli destinazione",Venues:"Luoghi","Select venue":"Seleziona luogo",Current:"Attuale","Scan QR code":"Scansiona il codice QR","Scan the QR code to see the route on your phone":"Scansiona il codice QR per vedere il percorso sul tuo telefono",Done:"Fatto","Cancel route":"Annulla percorso","Finish route":"Termina percorso"},yae={Close:"Cerca",From:"Desde",To:"A",Distance:"Distancia","Estimated time":"Hora Prevista",Level:"Nivel","Search by name, category, building...":"Busca por nombre, categoría, edificio...","Nothing was found":"No se encontró nada",d:"d",h:"h",min:"mín",Walk:"Caminar",Bike:"Bicicleta",Transit:"Transporte público",Drive:"Conducir","Start wayfinding":"Iniciar la navegación","Read full description":"Leer descripción completa",Locations:"Ubicaciones","Directions not available":"Direcciones no disponibles","Start directions":"Comenzar direcciones",Previous:"Previo",Next:"Próximo",StepYofX:"Paso {{activeStep}} de {{totalSteps}}","You have arrived":"Has llegado",Leave:"Dejar",Park:"Estacionar",at:"en",Building:"Edificio",Venue:"Evento","Take staircase to level":"Tome la escaleras al nivel","Take the ladder to level":"Tome la escalera al nivel","Take elevator to level":"Tome el ascensor hasta el nivel","Take escalator to level":"Tome la escalera mecánica al nivel","Take wheelchair lift to level":"Tome el elevador de sillas de ruedas hasta el nivel","Take wheelchair ramp to level":"Tome la rampa para sillas de ruedas hasta nivelar",Exit:"Salida",Enter:"Ingresar",stops:"paradas","and continue":"y continuar","Continue straight ahead":"Continúe recto","Go left":"Ve a la izquierda","Go sharp left":"Vaya bruscamente a la izquierda","Go slight left":"Vaya ligeramente a la izquierda","Go right":"Ve a la derecha","Go sharp right":"Vaya bruscamente a la derecha","Go slight right":"Vaya ligeramente a la derecha","Turn around":"Giro de vuelta",Switch:"Cambiar","Avoid stairs and escalators":"Evitar escaleras y escaleras mecánicas","No route found":"No se encontró ninguna ruta","My position":"Mi posición","Go!":"¡Ir!",Directions:"Instrucciones","Choose departure":"Elige la salida","Choose destination":"Elige destino",Venues:"Lugares","Select venue":"Seleccionar lugar",Current:"Actual","Scan QR code":"Escanear código QR","Scan the QR code to see the route on your phone":"Escanea el código QR para ver la ruta en tu teléfono",Done:"Finalizado","Cancel route":"Cancelar ruta","Finish route":"Finalizar ruta"},_ae={Close:"Sluit",From:"Van",To:"Naar",Distance:"Afstand","Estimated time":"Geschatte tijd",Level:"Niveau","Search by name, category, building...":"Zoeken op naam, categorie, gebouw…","Nothing was found":"Er is niets gevonden",d:"d",h:"u",min:"min",Walk:"Wandelen",Bike:"Fietsen",Transit:"Overgang",Drive:"Rijden","Start wayfinding":"Begin met navigeren ","Read full description":"Lees de volledige beschrijving",Locations:"Locaties","Directions not available":"Routebeschrijving niet beschikbaar","Start directions":"Start routebeschrijving",Previous:"Vorig",Next:"Volgende",StepYofX:"Stap {{activeStep}} van {{totalSteps}}","You have arrived":"Je bent aangekomen",Leave:"Verlaat",Park:"Parkeer",at:"bij",Building:"Gebouw",Venue:"Locatie","Take staircase to level":"Neem de trap naar niveau","Take the ladder to level":"Neem de ladder naar niveau","Take elevator to level":"Neem de lift naar niveau","Take escalator to level":"Neem de roltrap naar niveau","Take wheelchair lift to level":"Neem de rolstoellift naar niveau ","Take wheelchair ramp to level":"Neem de rolstoelhelling naar niveau",Exit:"Verlaat",Enter:"Binnengaan",stops:"stopt","and continue":"en doorgaan","Continue straight ahead":"Ga rechtdoor","Go left":"Ga links","Go sharp left":"Ga scherp naar links","Go slight left":"Ga lichtjes naar links","Go right":"Ga rechts","Go sharp right":"Ga scherp naar rechts","Go slight right":"Ga lichtjes naar rechts","Turn around":"Draai je om",Switch:"Schakelaar","Avoid stairs and escalators":"Vermijd trappen en roltrappen","No route found":"Geen route gevonden","My position":"Mijn positie","Go!":"Gaan!",Directions:"Richtingen","Choose departure":"Kies vertrek","Choose destination":"Kies bestemming",Venues:"Locaties","Select venue":"Kies locatie",Current:"Huidige","Scan QR code":"QR-code scannen","Scan the QR code to see the route on your phone":"Scan de QR-code om de route op jouw telefoon te bekijken",Done:"Klaar","Cancel route":"Route annuleren","Finish route":"Route voltooien "};function vae(e){Uo.use(lae).init({resources:{en:{translation:dae},da:{translation:fae},de:{translation:pae},fr:{translation:mae},it:{translation:gae},es:{translation:yae},nl:{translation:_ae}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const s_e="";var DO={exports:{}},xae="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bae=xae,Mae=bae;function CO(){}function AO(){}AO.resetWarningCache=CO;var wae=function(){function e(o,l,d,g,s,v){if(v!==Mae){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:AO,resetWarningCache:CO};return n.PropTypes=n,n};DO.exports=wae();var Iae=DO.exports;const Ri=Ud(Iae);var NO={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Ac,function(){var n,o,l;function d(s,v){if(!n)n=v;else if(!o)o=v;else{var E="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+n+")(sharedChunk); ("+o+")(sharedChunk); self.onerror = null;",z={};n(z),l=v(z),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(l.workerUrl=window.URL.createObjectURL(new Blob([E],{type:"text/javascript"})))}}d(["exports"],function(s){function v(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var E,z={},O={};function j(){if(E)return O;E=1,Object.defineProperty(O,"__esModule",{value:!0}),O.setMatrixArrayType=function(y){O.ARRAY_TYPE=i=y},O.toRadian=function(y){return y*h},O.equals=function(y,f){return Math.abs(y-f)<=u*Math.max(1,Math.abs(y),Math.abs(f))},O.RANDOM=O.ARRAY_TYPE=O.EPSILON=void 0;var u=1e-6;O.EPSILON=u;var i=typeof Float32Array<"u"?Float32Array:Array;O.ARRAY_TYPE=i;var a=Math.random;O.RANDOM=a;var h=Math.PI/180;return Math.hypot||(Math.hypot=function(){for(var y=0,f=arguments.length;f--;)y+=arguments[f]*arguments[f];return Math.sqrt(y)}),O}var F,$={};function Y(){if(F)return $;function u(f){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u(f)}F=1,Object.defineProperty($,"__esModule",{value:!0}),$.create=function(){var f=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(f[1]=0,f[2]=0),f[0]=1,f[3]=1,f},$.clone=function(f){var _=new i.ARRAY_TYPE(4);return _[0]=f[0],_[1]=f[1],_[2]=f[2],_[3]=f[3],_},$.copy=function(f,_){return f[0]=_[0],f[1]=_[1],f[2]=_[2],f[3]=_[3],f},$.identity=function(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=1,f},$.fromValues=function(f,_,w,D){var N=new i.ARRAY_TYPE(4);return N[0]=f,N[1]=_,N[2]=w,N[3]=D,N},$.set=function(f,_,w,D,N){return f[0]=_,f[1]=w,f[2]=D,f[3]=N,f},$.transpose=function(f,_){if(f===_){var w=_[1];f[1]=_[2],f[2]=w}else f[0]=_[0],f[1]=_[2],f[2]=_[1],f[3]=_[3];return f},$.invert=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=w*b-N*D;return T?(f[0]=b*(T=1/T),f[1]=-D*T,f[2]=-N*T,f[3]=w*T,f):null},$.adjoint=function(f,_){var w=_[0];return f[0]=_[3],f[1]=-_[1],f[2]=-_[2],f[3]=w,f},$.determinant=function(f){return f[0]*f[3]-f[2]*f[1]},$.multiply=h,$.rotate=function(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=Math.sin(w),S=Math.cos(w);return f[0]=D*S+b*A,f[1]=N*S+T*A,f[2]=D*-A+b*S,f[3]=N*-A+T*S,f},$.scale=function(f,_,w){var D=_[1],N=_[2],b=_[3],T=w[0],A=w[1];return f[0]=_[0]*T,f[1]=D*T,f[2]=N*A,f[3]=b*A,f},$.fromRotation=function(f,_){var w=Math.sin(_),D=Math.cos(_);return f[0]=D,f[1]=w,f[2]=-w,f[3]=D,f},$.fromScaling=function(f,_){return f[0]=_[0],f[1]=0,f[2]=0,f[3]=_[1],f},$.str=function(f){return"mat2("+f[0]+", "+f[1]+", "+f[2]+", "+f[3]+")"},$.frob=function(f){return Math.hypot(f[0],f[1],f[2],f[3])},$.LDU=function(f,_,w,D){return f[2]=D[2]/D[0],w[0]=D[0],w[1]=D[1],w[3]=D[3]-f[2]*w[1],[f,_,w]},$.add=function(f,_,w){return f[0]=_[0]+w[0],f[1]=_[1]+w[1],f[2]=_[2]+w[2],f[3]=_[3]+w[3],f},$.subtract=y,$.exactEquals=function(f,_){return f[0]===_[0]&&f[1]===_[1]&&f[2]===_[2]&&f[3]===_[3]},$.equals=function(f,_){var w=f[0],D=f[1],N=f[2],b=f[3],T=_[0],A=_[1],S=_[2],C=_[3];return Math.abs(w-T)<=i.EPSILON*Math.max(1,Math.abs(w),Math.abs(T))&&Math.abs(D-A)<=i.EPSILON*Math.max(1,Math.abs(D),Math.abs(A))&&Math.abs(N-S)<=i.EPSILON*Math.max(1,Math.abs(N),Math.abs(S))&&Math.abs(b-C)<=i.EPSILON*Math.max(1,Math.abs(b),Math.abs(C))},$.multiplyScalar=function(f,_,w){return f[0]=_[0]*w,f[1]=_[1]*w,f[2]=_[2]*w,f[3]=_[3]*w,f},$.multiplyScalarAndAdd=function(f,_,w,D){return f[0]=_[0]+w[0]*D,f[1]=_[1]+w[1]*D,f[2]=_[2]+w[2]*D,f[3]=_[3]+w[3]*D,f},$.sub=$.mul=void 0;var i=function(f,_){if(f&&f.__esModule)return f;if(f===null||u(f)!=="object"&&typeof f!="function")return{default:f};var w=a(void 0);if(w&&w.has(f))return w.get(f);var D={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var T=N?Object.getOwnPropertyDescriptor(f,b):null;T&&(T.get||T.set)?Object.defineProperty(D,b,T):D[b]=f[b]}return D.default=f,w&&w.set(f,D),D}(j());function a(f){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(a=function(D){return D?w:_})(f)}function h(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=w[0],S=w[1],C=w[2],k=w[3];return f[0]=D*A+b*S,f[1]=N*A+T*S,f[2]=D*C+b*k,f[3]=N*C+T*k,f}function y(f,_,w){return f[0]=_[0]-w[0],f[1]=_[1]-w[1],f[2]=_[2]-w[2],f[3]=_[3]-w[3],f}return $.mul=h,$.sub=y,$}var ie,K={};function J(){if(ie)return K;function u(f){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u(f)}ie=1,Object.defineProperty(K,"__esModule",{value:!0}),K.create=function(){var f=new i.ARRAY_TYPE(6);return i.ARRAY_TYPE!=Float32Array&&(f[1]=0,f[2]=0,f[4]=0,f[5]=0),f[0]=1,f[3]=1,f},K.clone=function(f){var _=new i.ARRAY_TYPE(6);return _[0]=f[0],_[1]=f[1],_[2]=f[2],_[3]=f[3],_[4]=f[4],_[5]=f[5],_},K.copy=function(f,_){return f[0]=_[0],f[1]=_[1],f[2]=_[2],f[3]=_[3],f[4]=_[4],f[5]=_[5],f},K.identity=function(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=1,f[4]=0,f[5]=0,f},K.fromValues=function(f,_,w,D,N,b){var T=new i.ARRAY_TYPE(6);return T[0]=f,T[1]=_,T[2]=w,T[3]=D,T[4]=N,T[5]=b,T},K.set=function(f,_,w,D,N,b,T){return f[0]=_,f[1]=w,f[2]=D,f[3]=N,f[4]=b,f[5]=T,f},K.invert=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=_[4],A=_[5],S=w*b-D*N;return S?(f[0]=b*(S=1/S),f[1]=-D*S,f[2]=-N*S,f[3]=w*S,f[4]=(N*A-b*T)*S,f[5]=(D*T-w*A)*S,f):null},K.determinant=function(f){return f[0]*f[3]-f[1]*f[2]},K.multiply=h,K.rotate=function(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=Math.sin(w),k=Math.cos(w);return f[0]=D*k+b*C,f[1]=N*k+T*C,f[2]=D*-C+b*k,f[3]=N*-C+T*k,f[4]=A,f[5]=S,f},K.scale=function(f,_,w){var D=_[1],N=_[2],b=_[3],T=_[4],A=_[5],S=w[0],C=w[1];return f[0]=_[0]*S,f[1]=D*S,f[2]=N*C,f[3]=b*C,f[4]=T,f[5]=A,f},K.translate=function(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=w[0],k=w[1];return f[0]=D,f[1]=N,f[2]=b,f[3]=T,f[4]=D*C+b*k+A,f[5]=N*C+T*k+S,f},K.fromRotation=function(f,_){var w=Math.sin(_),D=Math.cos(_);return f[0]=D,f[1]=w,f[2]=-w,f[3]=D,f[4]=0,f[5]=0,f},K.fromScaling=function(f,_){return f[0]=_[0],f[1]=0,f[2]=0,f[3]=_[1],f[4]=0,f[5]=0,f},K.fromTranslation=function(f,_){return f[0]=1,f[1]=0,f[2]=0,f[3]=1,f[4]=_[0],f[5]=_[1],f},K.str=function(f){return"mat2d("+f[0]+", "+f[1]+", "+f[2]+", "+f[3]+", "+f[4]+", "+f[5]+")"},K.frob=function(f){return Math.hypot(f[0],f[1],f[2],f[3],f[4],f[5],1)},K.add=function(f,_,w){return f[0]=_[0]+w[0],f[1]=_[1]+w[1],f[2]=_[2]+w[2],f[3]=_[3]+w[3],f[4]=_[4]+w[4],f[5]=_[5]+w[5],f},K.subtract=y,K.multiplyScalar=function(f,_,w){return f[0]=_[0]*w,f[1]=_[1]*w,f[2]=_[2]*w,f[3]=_[3]*w,f[4]=_[4]*w,f[5]=_[5]*w,f},K.multiplyScalarAndAdd=function(f,_,w,D){return f[0]=_[0]+w[0]*D,f[1]=_[1]+w[1]*D,f[2]=_[2]+w[2]*D,f[3]=_[3]+w[3]*D,f[4]=_[4]+w[4]*D,f[5]=_[5]+w[5]*D,f},K.exactEquals=function(f,_){return f[0]===_[0]&&f[1]===_[1]&&f[2]===_[2]&&f[3]===_[3]&&f[4]===_[4]&&f[5]===_[5]},K.equals=function(f,_){var w=f[0],D=f[1],N=f[2],b=f[3],T=f[4],A=f[5],S=_[0],C=_[1],k=_[2],P=_[3],V=_[4],Z=_[5];return Math.abs(w-S)<=i.EPSILON*Math.max(1,Math.abs(w),Math.abs(S))&&Math.abs(D-C)<=i.EPSILON*Math.max(1,Math.abs(D),Math.abs(C))&&Math.abs(N-k)<=i.EPSILON*Math.max(1,Math.abs(N),Math.abs(k))&&Math.abs(b-P)<=i.EPSILON*Math.max(1,Math.abs(b),Math.abs(P))&&Math.abs(T-V)<=i.EPSILON*Math.max(1,Math.abs(T),Math.abs(V))&&Math.abs(A-Z)<=i.EPSILON*Math.max(1,Math.abs(A),Math.abs(Z))},K.sub=K.mul=void 0;var i=function(f,_){if(f&&f.__esModule)return f;if(f===null||u(f)!=="object"&&typeof f!="function")return{default:f};var w=a(void 0);if(w&&w.has(f))return w.get(f);var D={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var T=N?Object.getOwnPropertyDescriptor(f,b):null;T&&(T.get||T.set)?Object.defineProperty(D,b,T):D[b]=f[b]}return D.default=f,w&&w.set(f,D),D}(j());function a(f){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(a=function(D){return D?w:_})(f)}function h(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=w[0],k=w[1],P=w[2],V=w[3],Z=w[4],q=w[5];return f[0]=D*C+b*k,f[1]=N*C+T*k,f[2]=D*P+b*V,f[3]=N*P+T*V,f[4]=D*Z+b*q+A,f[5]=N*Z+T*q+S,f}function y(f,_,w){return f[0]=_[0]-w[0],f[1]=_[1]-w[1],f[2]=_[2]-w[2],f[3]=_[3]-w[3],f[4]=_[4]-w[4],f[5]=_[5]-w[5],f}return K.mul=h,K.sub=y,K}var te,oe={};function pe(){if(te)return oe;function u(f){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},u(f)}te=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.create=function(){var f=new i.ARRAY_TYPE(9);return i.ARRAY_TYPE!=Float32Array&&(f[1]=0,f[2]=0,f[3]=0,f[5]=0,f[6]=0,f[7]=0),f[0]=1,f[4]=1,f[8]=1,f},oe.fromMat4=function(f,_){return f[0]=_[0],f[1]=_[1],f[2]=_[2],f[3]=_[4],f[4]=_[5],f[5]=_[6],f[6]=_[8],f[7]=_[9],f[8]=_[10],f},oe.clone=function(f){var _=new i.ARRAY_TYPE(9);return _[0]=f[0],_[1]=f[1],_[2]=f[2],_[3]=f[3],_[4]=f[4],_[5]=f[5],_[6]=f[6],_[7]=f[7],_[8]=f[8],_},oe.copy=function(f,_){return f[0]=_[0],f[1]=_[1],f[2]=_[2],f[3]=_[3],f[4]=_[4],f[5]=_[5],f[6]=_[6],f[7]=_[7],f[8]=_[8],f},oe.fromValues=function(f,_,w,D,N,b,T,A,S){var C=new i.ARRAY_TYPE(9);return C[0]=f,C[1]=_,C[2]=w,C[3]=D,C[4]=N,C[5]=b,C[6]=T,C[7]=A,C[8]=S,C},oe.set=function(f,_,w,D,N,b,T,A,S,C){return f[0]=_,f[1]=w,f[2]=D,f[3]=N,f[4]=b,f[5]=T,f[6]=A,f[7]=S,f[8]=C,f},oe.identity=function(f){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=1,f[5]=0,f[6]=0,f[7]=0,f[8]=1,f},oe.transpose=function(f,_){if(f===_){var w=_[1],D=_[2],N=_[5];f[1]=_[3],f[2]=_[6],f[3]=w,f[5]=_[7],f[6]=D,f[7]=N}else f[0]=_[0],f[1]=_[3],f[2]=_[6],f[3]=_[1],f[4]=_[4],f[5]=_[7],f[6]=_[2],f[7]=_[5],f[8]=_[8];return f},oe.invert=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=_[4],A=_[5],S=_[6],C=_[7],k=_[8],P=k*T-A*C,V=-k*b+A*S,Z=C*b-T*S,q=w*P+D*V+N*Z;return q?(f[0]=P*(q=1/q),f[1]=(-k*D+N*C)*q,f[2]=(A*D-N*T)*q,f[3]=V*q,f[4]=(k*w-N*S)*q,f[5]=(-A*w+N*b)*q,f[6]=Z*q,f[7]=(-C*w+D*S)*q,f[8]=(T*w-D*b)*q,f):null},oe.adjoint=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=_[4],A=_[5],S=_[6],C=_[7],k=_[8];return f[0]=T*k-A*C,f[1]=N*C-D*k,f[2]=D*A-N*T,f[3]=A*S-b*k,f[4]=w*k-N*S,f[5]=N*b-w*A,f[6]=b*C-T*S,f[7]=D*S-w*C,f[8]=w*T-D*b,f},oe.determinant=function(f){var _=f[3],w=f[4],D=f[5],N=f[6],b=f[7],T=f[8];return f[0]*(T*w-D*b)+f[1]*(-T*_+D*N)+f[2]*(b*_-w*N)},oe.multiply=h,oe.translate=function(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=_[6],k=_[7],P=_[8],V=w[0],Z=w[1];return f[0]=D,f[1]=N,f[2]=b,f[3]=T,f[4]=A,f[5]=S,f[6]=V*D+Z*T+C,f[7]=V*N+Z*A+k,f[8]=V*b+Z*S+P,f},oe.rotate=function(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=_[6],k=_[7],P=_[8],V=Math.sin(w),Z=Math.cos(w);return f[0]=Z*D+V*T,f[1]=Z*N+V*A,f[2]=Z*b+V*S,f[3]=Z*T-V*D,f[4]=Z*A-V*N,f[5]=Z*S-V*b,f[6]=C,f[7]=k,f[8]=P,f},oe.scale=function(f,_,w){var D=w[0],N=w[1];return f[0]=D*_[0],f[1]=D*_[1],f[2]=D*_[2],f[3]=N*_[3],f[4]=N*_[4],f[5]=N*_[5],f[6]=_[6],f[7]=_[7],f[8]=_[8],f},oe.fromTranslation=function(f,_){return f[0]=1,f[1]=0,f[2]=0,f[3]=0,f[4]=1,f[5]=0,f[6]=_[0],f[7]=_[1],f[8]=1,f},oe.fromRotation=function(f,_){var w=Math.sin(_),D=Math.cos(_);return f[0]=D,f[1]=w,f[2]=0,f[3]=-w,f[4]=D,f[5]=0,f[6]=0,f[7]=0,f[8]=1,f},oe.fromScaling=function(f,_){return f[0]=_[0],f[1]=0,f[2]=0,f[3]=0,f[4]=_[1],f[5]=0,f[6]=0,f[7]=0,f[8]=1,f},oe.fromMat2d=function(f,_){return f[0]=_[0],f[1]=_[1],f[2]=0,f[3]=_[2],f[4]=_[3],f[5]=0,f[6]=_[4],f[7]=_[5],f[8]=1,f},oe.fromQuat=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=w+w,A=D+D,S=N+N,C=w*T,k=D*T,P=D*A,V=N*T,Z=N*A,q=N*S,H=b*T,X=b*A,ne=b*S;return f[0]=1-P-q,f[3]=k-ne,f[6]=V+X,f[1]=k+ne,f[4]=1-C-q,f[7]=Z-H,f[2]=V-X,f[5]=Z+H,f[8]=1-C-P,f},oe.normalFromMat4=function(f,_){var w=_[0],D=_[1],N=_[2],b=_[3],T=_[4],A=_[5],S=_[6],C=_[7],k=_[8],P=_[9],V=_[10],Z=_[11],q=_[12],H=_[13],X=_[14],ne=_[15],de=w*A-D*T,xe=w*S-N*T,Me=w*C-b*T,_e=D*S-N*A,ke=D*C-b*A,Ie=N*C-b*S,Pe=k*H-P*q,Ze=k*X-V*q,tt=k*ne-Z*q,nt=P*X-V*H,st=P*ne-Z*H,_t=V*ne-Z*X,at=de*_t-xe*st+Me*nt+_e*tt-ke*Ze+Ie*Pe;return at?(f[0]=(A*_t-S*st+C*nt)*(at=1/at),f[1]=(S*tt-T*_t-C*Ze)*at,f[2]=(T*st-A*tt+C*Pe)*at,f[3]=(N*st-D*_t-b*nt)*at,f[4]=(w*_t-N*tt+b*Ze)*at,f[5]=(D*tt-w*st-b*Pe)*at,f[6]=(H*Ie-X*ke+ne*_e)*at,f[7]=(X*Me-q*Ie-ne*xe)*at,f[8]=(q*ke-H*Me+ne*de)*at,f):null},oe.projection=function(f,_,w){return f[0]=2/_,f[1]=0,f[2]=0,f[3]=0,f[4]=-2/w,f[5]=0,f[6]=-1,f[7]=1,f[8]=1,f},oe.str=function(f){return"mat3("+f[0]+", "+f[1]+", "+f[2]+", "+f[3]+", "+f[4]+", "+f[5]+", "+f[6]+", "+f[7]+", "+f[8]+")"},oe.frob=function(f){return Math.hypot(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8])},oe.add=function(f,_,w){return f[0]=_[0]+w[0],f[1]=_[1]+w[1],f[2]=_[2]+w[2],f[3]=_[3]+w[3],f[4]=_[4]+w[4],f[5]=_[5]+w[5],f[6]=_[6]+w[6],f[7]=_[7]+w[7],f[8]=_[8]+w[8],f},oe.subtract=y,oe.multiplyScalar=function(f,_,w){return f[0]=_[0]*w,f[1]=_[1]*w,f[2]=_[2]*w,f[3]=_[3]*w,f[4]=_[4]*w,f[5]=_[5]*w,f[6]=_[6]*w,f[7]=_[7]*w,f[8]=_[8]*w,f},oe.multiplyScalarAndAdd=function(f,_,w,D){return f[0]=_[0]+w[0]*D,f[1]=_[1]+w[1]*D,f[2]=_[2]+w[2]*D,f[3]=_[3]+w[3]*D,f[4]=_[4]+w[4]*D,f[5]=_[5]+w[5]*D,f[6]=_[6]+w[6]*D,f[7]=_[7]+w[7]*D,f[8]=_[8]+w[8]*D,f},oe.exactEquals=function(f,_){return f[0]===_[0]&&f[1]===_[1]&&f[2]===_[2]&&f[3]===_[3]&&f[4]===_[4]&&f[5]===_[5]&&f[6]===_[6]&&f[7]===_[7]&&f[8]===_[8]},oe.equals=function(f,_){var w=f[0],D=f[1],N=f[2],b=f[3],T=f[4],A=f[5],S=f[6],C=f[7],k=f[8],P=_[0],V=_[1],Z=_[2],q=_[3],H=_[4],X=_[5],ne=_[6],de=_[7],xe=_[8];return Math.abs(w-P)<=i.EPSILON*Math.max(1,Math.abs(w),Math.abs(P))&&Math.abs(D-V)<=i.EPSILON*Math.max(1,Math.abs(D),Math.abs(V))&&Math.abs(N-Z)<=i.EPSILON*Math.max(1,Math.abs(N),Math.abs(Z))&&Math.abs(b-q)<=i.EPSILON*Math.max(1,Math.abs(b),Math.abs(q))&&Math.abs(T-H)<=i.EPSILON*Math.max(1,Math.abs(T),Math.abs(H))&&Math.abs(A-X)<=i.EPSILON*Math.max(1,Math.abs(A),Math.abs(X))&&Math.abs(S-ne)<=i.EPSILON*Math.max(1,Math.abs(S),Math.abs(ne))&&Math.abs(C-de)<=i.EPSILON*Math.max(1,Math.abs(C),Math.abs(de))&&Math.abs(k-xe)<=i.EPSILON*Math.max(1,Math.abs(k),Math.abs(xe))},oe.sub=oe.mul=void 0;var i=function(f,_){if(f&&f.__esModule)return f;if(f===null||u(f)!=="object"&&typeof f!="function")return{default:f};var w=a(void 0);if(w&&w.has(f))return w.get(f);var D={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var T=N?Object.getOwnPropertyDescriptor(f,b):null;T&&(T.get||T.set)?Object.defineProperty(D,b,T):D[b]=f[b]}return D.default=f,w&&w.set(f,D),D}(j());function a(f){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(a=function(D){return D?w:_})(f)}function h(f,_,w){var D=_[0],N=_[1],b=_[2],T=_[3],A=_[4],S=_[5],C=_[6],k=_[7],P=_[8],V=w[0],Z=w[1],q=w[2],H=w[3],X=w[4],ne=w[5],de=w[6],xe=w[7],Me=w[8];return f[0]=V*D+Z*T+q*C,f[1]=V*N+Z*A+q*k,f[2]=V*b+Z*S+q*P,f[3]=H*D+X*T+ne*C,f[4]=H*N+X*A+ne*k,f[5]=H*b+X*S+ne*P,f[6]=de*D+xe*T+Me*C,f[7]=de*N+xe*A+Me*k,f[8]=de*b+xe*S+Me*P,f}function y(f,_,w){return f[0]=_[0]-w[0],f[1]=_[1]-w[1],f[2]=_[2]-w[2],f[3]=_[3]-w[3],f[4]=_[4]-w[4],f[5]=_[5]-w[5],f[6]=_[6]-w[6],f[7]=_[7]-w[7],f[8]=_[8]-w[8],f}return oe.mul=h,oe.sub=y,oe}var me,he={};function De(){if(me)return he;function u(b){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},u(b)}me=1,Object.defineProperty(he,"__esModule",{value:!0}),he.create=function(){var b=new i.ARRAY_TYPE(16);return i.ARRAY_TYPE!=Float32Array&&(b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[11]=0,b[12]=0,b[13]=0,b[14]=0),b[0]=1,b[5]=1,b[10]=1,b[15]=1,b},he.clone=function(b){var T=new i.ARRAY_TYPE(16);return T[0]=b[0],T[1]=b[1],T[2]=b[2],T[3]=b[3],T[4]=b[4],T[5]=b[5],T[6]=b[6],T[7]=b[7],T[8]=b[8],T[9]=b[9],T[10]=b[10],T[11]=b[11],T[12]=b[12],T[13]=b[13],T[14]=b[14],T[15]=b[15],T},he.copy=function(b,T){return b[0]=T[0],b[1]=T[1],b[2]=T[2],b[3]=T[3],b[4]=T[4],b[5]=T[5],b[6]=T[6],b[7]=T[7],b[8]=T[8],b[9]=T[9],b[10]=T[10],b[11]=T[11],b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15],b},he.fromValues=function(b,T,A,S,C,k,P,V,Z,q,H,X,ne,de,xe,Me){var _e=new i.ARRAY_TYPE(16);return _e[0]=b,_e[1]=T,_e[2]=A,_e[3]=S,_e[4]=C,_e[5]=k,_e[6]=P,_e[7]=V,_e[8]=Z,_e[9]=q,_e[10]=H,_e[11]=X,_e[12]=ne,_e[13]=de,_e[14]=xe,_e[15]=Me,_e},he.set=function(b,T,A,S,C,k,P,V,Z,q,H,X,ne,de,xe,Me,_e){return b[0]=T,b[1]=A,b[2]=S,b[3]=C,b[4]=k,b[5]=P,b[6]=V,b[7]=Z,b[8]=q,b[9]=H,b[10]=X,b[11]=ne,b[12]=de,b[13]=xe,b[14]=Me,b[15]=_e,b},he.identity=h,he.transpose=function(b,T){if(b===T){var A=T[1],S=T[2],C=T[3],k=T[6],P=T[7],V=T[11];b[1]=T[4],b[2]=T[8],b[3]=T[12],b[4]=A,b[6]=T[9],b[7]=T[13],b[8]=S,b[9]=k,b[11]=T[14],b[12]=C,b[13]=P,b[14]=V}else b[0]=T[0],b[1]=T[4],b[2]=T[8],b[3]=T[12],b[4]=T[1],b[5]=T[5],b[6]=T[9],b[7]=T[13],b[8]=T[2],b[9]=T[6],b[10]=T[10],b[11]=T[14],b[12]=T[3],b[13]=T[7],b[14]=T[11],b[15]=T[15];return b},he.invert=function(b,T){var A=T[0],S=T[1],C=T[2],k=T[3],P=T[4],V=T[5],Z=T[6],q=T[7],H=T[8],X=T[9],ne=T[10],de=T[11],xe=T[12],Me=T[13],_e=T[14],ke=T[15],Ie=A*V-S*P,Pe=A*Z-C*P,Ze=A*q-k*P,tt=S*Z-C*V,nt=S*q-k*V,st=C*q-k*Z,_t=H*Me-X*xe,at=H*_e-ne*xe,Ct=H*ke-de*xe,jt=X*_e-ne*Me,Mt=X*ke-de*Me,sn=ne*ke-de*_e,Kt=Ie*sn-Pe*Mt+Ze*jt+tt*Ct-nt*at+st*_t;return Kt?(b[0]=(V*sn-Z*Mt+q*jt)*(Kt=1/Kt),b[1]=(C*Mt-S*sn-k*jt)*Kt,b[2]=(Me*st-_e*nt+ke*tt)*Kt,b[3]=(ne*nt-X*st-de*tt)*Kt,b[4]=(Z*Ct-P*sn-q*at)*Kt,b[5]=(A*sn-C*Ct+k*at)*Kt,b[6]=(_e*Ze-xe*st-ke*Pe)*Kt,b[7]=(H*st-ne*Ze+de*Pe)*Kt,b[8]=(P*Mt-V*Ct+q*_t)*Kt,b[9]=(S*Ct-A*Mt-k*_t)*Kt,b[10]=(xe*nt-Me*Ze+ke*Ie)*Kt,b[11]=(X*Ze-H*nt-de*Ie)*Kt,b[12]=(V*at-P*jt-Z*_t)*Kt,b[13]=(A*jt-S*at+C*_t)*Kt,b[14]=(Me*Pe-xe*tt-_e*Ie)*Kt,b[15]=(H*tt-X*Pe+ne*Ie)*Kt,b):null},he.adjoint=function(b,T){var A=T[0],S=T[1],C=T[2],k=T[3],P=T[4],V=T[5],Z=T[6],q=T[7],H=T[8],X=T[9],ne=T[10],de=T[11],xe=T[12],Me=T[13],_e=T[14],ke=T[15];return b[0]=V*(ne*ke-de*_e)-X*(Z*ke-q*_e)+Me*(Z*de-q*ne),b[1]=-(S*(ne*ke-de*_e)-X*(C*ke-k*_e)+Me*(C*de-k*ne)),b[2]=S*(Z*ke-q*_e)-V*(C*ke-k*_e)+Me*(C*q-k*Z),b[3]=-(S*(Z*de-q*ne)-V*(C*de-k*ne)+X*(C*q-k*Z)),b[4]=-(P*(ne*ke-de*_e)-H*(Z*ke-q*_e)+xe*(Z*de-q*ne)),b[5]=A*(ne*ke-de*_e)-H*(C*ke-k*_e)+xe*(C*de-k*ne),b[6]=-(A*(Z*ke-q*_e)-P*(C*ke-k*_e)+xe*(C*q-k*Z)),b[7]=A*(Z*de-q*ne)-P*(C*de-k*ne)+H*(C*q-k*Z),b[8]=P*(X*ke-de*Me)-H*(V*ke-q*Me)+xe*(V*de-q*X),b[9]=-(A*(X*ke-de*Me)-H*(S*ke-k*Me)+xe*(S*de-k*X)),b[10]=A*(V*ke-q*Me)-P*(S*ke-k*Me)+xe*(S*q-k*V),b[11]=-(A*(V*de-q*X)-P*(S*de-k*X)+H*(S*q-k*V)),b[12]=-(P*(X*_e-ne*Me)-H*(V*_e-Z*Me)+xe*(V*ne-Z*X)),b[13]=A*(X*_e-ne*Me)-H*(S*_e-C*Me)+xe*(S*ne-C*X),b[14]=-(A*(V*_e-Z*Me)-P*(S*_e-C*Me)+xe*(S*Z-C*V)),b[15]=A*(V*ne-Z*X)-P*(S*ne-C*X)+H*(S*Z-C*V),b},he.determinant=function(b){var T=b[0],A=b[1],S=b[2],C=b[3],k=b[4],P=b[5],V=b[6],Z=b[7],q=b[8],H=b[9],X=b[10],ne=b[11],de=b[12],xe=b[13],Me=b[14],_e=b[15];return(T*P-A*k)*(X*_e-ne*Me)-(T*V-S*k)*(H*_e-ne*xe)+(T*Z-C*k)*(H*Me-X*xe)+(A*V-S*P)*(q*_e-ne*de)-(A*Z-C*P)*(q*Me-X*de)+(S*Z-C*V)*(q*xe-H*de)},he.multiply=y,he.translate=function(b,T,A){var S,C,k,P,V,Z,q,H,X,ne,de,xe,Me=A[0],_e=A[1],ke=A[2];return T===b?(b[12]=T[0]*Me+T[4]*_e+T[8]*ke+T[12],b[13]=T[1]*Me+T[5]*_e+T[9]*ke+T[13],b[14]=T[2]*Me+T[6]*_e+T[10]*ke+T[14],b[15]=T[3]*Me+T[7]*_e+T[11]*ke+T[15]):(C=T[1],k=T[2],P=T[3],V=T[4],Z=T[5],q=T[6],H=T[7],X=T[8],ne=T[9],de=T[10],xe=T[11],b[0]=S=T[0],b[1]=C,b[2]=k,b[3]=P,b[4]=V,b[5]=Z,b[6]=q,b[7]=H,b[8]=X,b[9]=ne,b[10]=de,b[11]=xe,b[12]=S*Me+V*_e+X*ke+T[12],b[13]=C*Me+Z*_e+ne*ke+T[13],b[14]=k*Me+q*_e+de*ke+T[14],b[15]=P*Me+H*_e+xe*ke+T[15]),b},he.scale=function(b,T,A){var S=A[0],C=A[1],k=A[2];return b[0]=T[0]*S,b[1]=T[1]*S,b[2]=T[2]*S,b[3]=T[3]*S,b[4]=T[4]*C,b[5]=T[5]*C,b[6]=T[6]*C,b[7]=T[7]*C,b[8]=T[8]*k,b[9]=T[9]*k,b[10]=T[10]*k,b[11]=T[11]*k,b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15],b},he.rotate=function(b,T,A,S){var C,k,P,V,Z,q,H,X,ne,de,xe,Me,_e,ke,Ie,Pe,Ze,tt,nt,st,_t,at,Ct,jt,Mt=S[0],sn=S[1],Kt=S[2],$t=Math.hypot(Mt,sn,Kt);return $t<i.EPSILON?null:(Mt*=$t=1/$t,sn*=$t,Kt*=$t,C=Math.sin(A),k=Math.cos(A),Z=T[1],q=T[2],H=T[3],ne=T[5],de=T[6],xe=T[7],_e=T[9],ke=T[10],Ie=T[11],Pe=Mt*Mt*(P=1-k)+k,nt=Mt*sn*P-Kt*C,st=sn*sn*P+k,_t=Kt*sn*P+Mt*C,at=Mt*Kt*P+sn*C,Ct=sn*Kt*P-Mt*C,jt=Kt*Kt*P+k,b[0]=(V=T[0])*Pe+(X=T[4])*(Ze=sn*Mt*P+Kt*C)+(Me=T[8])*(tt=Kt*Mt*P-sn*C),b[1]=Z*Pe+ne*Ze+_e*tt,b[2]=q*Pe+de*Ze+ke*tt,b[3]=H*Pe+xe*Ze+Ie*tt,b[4]=V*nt+X*st+Me*_t,b[5]=Z*nt+ne*st+_e*_t,b[6]=q*nt+de*st+ke*_t,b[7]=H*nt+xe*st+Ie*_t,b[8]=V*at+X*Ct+Me*jt,b[9]=Z*at+ne*Ct+_e*jt,b[10]=q*at+de*Ct+ke*jt,b[11]=H*at+xe*Ct+Ie*jt,T!==b&&(b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15]),b)},he.rotateX=function(b,T,A){var S=Math.sin(A),C=Math.cos(A),k=T[4],P=T[5],V=T[6],Z=T[7],q=T[8],H=T[9],X=T[10],ne=T[11];return T!==b&&(b[0]=T[0],b[1]=T[1],b[2]=T[2],b[3]=T[3],b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15]),b[4]=k*C+q*S,b[5]=P*C+H*S,b[6]=V*C+X*S,b[7]=Z*C+ne*S,b[8]=q*C-k*S,b[9]=H*C-P*S,b[10]=X*C-V*S,b[11]=ne*C-Z*S,b},he.rotateY=function(b,T,A){var S=Math.sin(A),C=Math.cos(A),k=T[0],P=T[1],V=T[2],Z=T[3],q=T[8],H=T[9],X=T[10],ne=T[11];return T!==b&&(b[4]=T[4],b[5]=T[5],b[6]=T[6],b[7]=T[7],b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15]),b[0]=k*C-q*S,b[1]=P*C-H*S,b[2]=V*C-X*S,b[3]=Z*C-ne*S,b[8]=k*S+q*C,b[9]=P*S+H*C,b[10]=V*S+X*C,b[11]=Z*S+ne*C,b},he.rotateZ=function(b,T,A){var S=Math.sin(A),C=Math.cos(A),k=T[0],P=T[1],V=T[2],Z=T[3],q=T[4],H=T[5],X=T[6],ne=T[7];return T!==b&&(b[8]=T[8],b[9]=T[9],b[10]=T[10],b[11]=T[11],b[12]=T[12],b[13]=T[13],b[14]=T[14],b[15]=T[15]),b[0]=k*C+q*S,b[1]=P*C+H*S,b[2]=V*C+X*S,b[3]=Z*C+ne*S,b[4]=q*C-k*S,b[5]=H*C-P*S,b[6]=X*C-V*S,b[7]=ne*C-Z*S,b},he.fromTranslation=function(b,T){return b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=T[0],b[13]=T[1],b[14]=T[2],b[15]=1,b},he.fromScaling=function(b,T){return b[0]=T[0],b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=T[1],b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=T[2],b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b},he.fromRotation=function(b,T,A){var S,C,k,P=A[0],V=A[1],Z=A[2],q=Math.hypot(P,V,Z);return q<i.EPSILON?null:(P*=q=1/q,V*=q,Z*=q,S=Math.sin(T),C=Math.cos(T),b[0]=P*P*(k=1-C)+C,b[1]=V*P*k+Z*S,b[2]=Z*P*k-V*S,b[3]=0,b[4]=P*V*k-Z*S,b[5]=V*V*k+C,b[6]=Z*V*k+P*S,b[7]=0,b[8]=P*Z*k+V*S,b[9]=V*Z*k-P*S,b[10]=Z*Z*k+C,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b)},he.fromXRotation=function(b,T){var A=Math.sin(T),S=Math.cos(T);return b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=S,b[6]=A,b[7]=0,b[8]=0,b[9]=-A,b[10]=S,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b},he.fromYRotation=function(b,T){var A=Math.sin(T),S=Math.cos(T);return b[0]=S,b[1]=0,b[2]=-A,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=A,b[9]=0,b[10]=S,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b},he.fromZRotation=function(b,T){var A=Math.sin(T),S=Math.cos(T);return b[0]=S,b[1]=A,b[2]=0,b[3]=0,b[4]=-A,b[5]=S,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b},he.fromRotationTranslation=f,he.fromQuat2=function(b,T){var A=new i.ARRAY_TYPE(3),S=-T[0],C=-T[1],k=-T[2],P=T[3],V=T[4],Z=T[5],q=T[6],H=T[7],X=S*S+C*C+k*k+P*P;return X>0?(A[0]=2*(V*P+H*S+Z*k-q*C)/X,A[1]=2*(Z*P+H*C+q*S-V*k)/X,A[2]=2*(q*P+H*k+V*C-Z*S)/X):(A[0]=2*(V*P+H*S+Z*k-q*C),A[1]=2*(Z*P+H*C+q*S-V*k),A[2]=2*(q*P+H*k+V*C-Z*S)),f(b,T,A),b},he.getTranslation=function(b,T){return b[0]=T[12],b[1]=T[13],b[2]=T[14],b},he.getScaling=_,he.getRotation=function(b,T){var A=new i.ARRAY_TYPE(3);_(A,T);var S=1/A[0],C=1/A[1],k=1/A[2],P=T[0]*S,V=T[1]*C,Z=T[2]*k,q=T[4]*S,H=T[5]*C,X=T[6]*k,ne=T[8]*S,de=T[9]*C,xe=T[10]*k,Me=P+H+xe,_e=0;return Me>0?(_e=2*Math.sqrt(Me+1),b[3]=.25*_e,b[0]=(X-de)/_e,b[1]=(ne-Z)/_e,b[2]=(V-q)/_e):P>H&&P>xe?(_e=2*Math.sqrt(1+P-H-xe),b[3]=(X-de)/_e,b[0]=.25*_e,b[1]=(V+q)/_e,b[2]=(ne+Z)/_e):H>xe?(_e=2*Math.sqrt(1+H-P-xe),b[3]=(ne-Z)/_e,b[0]=(V+q)/_e,b[1]=.25*_e,b[2]=(X+de)/_e):(_e=2*Math.sqrt(1+xe-P-H),b[3]=(V-q)/_e,b[0]=(ne+Z)/_e,b[1]=(X+de)/_e,b[2]=.25*_e),b},he.fromRotationTranslationScale=function(b,T,A,S){var C=T[0],k=T[1],P=T[2],V=T[3],Z=C+C,q=k+k,H=P+P,X=C*Z,ne=C*q,de=C*H,xe=k*q,Me=k*H,_e=P*H,ke=V*Z,Ie=V*q,Pe=V*H,Ze=S[0],tt=S[1],nt=S[2];return b[0]=(1-(xe+_e))*Ze,b[1]=(ne+Pe)*Ze,b[2]=(de-Ie)*Ze,b[3]=0,b[4]=(ne-Pe)*tt,b[5]=(1-(X+_e))*tt,b[6]=(Me+ke)*tt,b[7]=0,b[8]=(de+Ie)*nt,b[9]=(Me-ke)*nt,b[10]=(1-(X+xe))*nt,b[11]=0,b[12]=A[0],b[13]=A[1],b[14]=A[2],b[15]=1,b},he.fromRotationTranslationScaleOrigin=function(b,T,A,S,C){var k=T[0],P=T[1],V=T[2],Z=T[3],q=k+k,H=P+P,X=V+V,ne=k*q,de=k*H,xe=k*X,Me=P*H,_e=P*X,ke=V*X,Ie=Z*q,Pe=Z*H,Ze=Z*X,tt=S[0],nt=S[1],st=S[2],_t=C[0],at=C[1],Ct=C[2],jt=(1-(Me+ke))*tt,Mt=(de+Ze)*tt,sn=(xe-Pe)*tt,Kt=(de-Ze)*nt,$t=(1-(ne+ke))*nt,Pt=(_e+Ie)*nt,Tn=(xe+Pe)*st,nn=(_e-Ie)*st,hn=(1-(ne+Me))*st;return b[0]=jt,b[1]=Mt,b[2]=sn,b[3]=0,b[4]=Kt,b[5]=$t,b[6]=Pt,b[7]=0,b[8]=Tn,b[9]=nn,b[10]=hn,b[11]=0,b[12]=A[0]+_t-(jt*_t+Kt*at+Tn*Ct),b[13]=A[1]+at-(Mt*_t+$t*at+nn*Ct),b[14]=A[2]+Ct-(sn*_t+Pt*at+hn*Ct),b[15]=1,b},he.fromQuat=function(b,T){var A=T[0],S=T[1],C=T[2],k=T[3],P=A+A,V=S+S,Z=C+C,q=A*P,H=S*P,X=S*V,ne=C*P,de=C*V,xe=C*Z,Me=k*P,_e=k*V,ke=k*Z;return b[0]=1-X-xe,b[1]=H+ke,b[2]=ne-_e,b[3]=0,b[4]=H-ke,b[5]=1-q-xe,b[6]=de+Me,b[7]=0,b[8]=ne+_e,b[9]=de-Me,b[10]=1-q-X,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b},he.frustum=function(b,T,A,S,C,k,P){var V=1/(A-T),Z=1/(C-S),q=1/(k-P);return b[0]=2*k*V,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=2*k*Z,b[6]=0,b[7]=0,b[8]=(A+T)*V,b[9]=(C+S)*Z,b[10]=(P+k)*q,b[11]=-1,b[12]=0,b[13]=0,b[14]=P*k*2*q,b[15]=0,b},he.perspectiveNO=w,he.perspectiveZO=function(b,T,A,S,C){var k,P=1/Math.tan(T/2);return b[0]=P/A,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=P,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[11]=-1,b[12]=0,b[13]=0,b[15]=0,C!=null&&C!==1/0?(b[10]=C*(k=1/(S-C)),b[14]=C*S*k):(b[10]=-1,b[14]=-S),b},he.perspectiveFromFieldOfView=function(b,T,A,S){var C=Math.tan(T.upDegrees*Math.PI/180),k=Math.tan(T.downDegrees*Math.PI/180),P=Math.tan(T.leftDegrees*Math.PI/180),V=Math.tan(T.rightDegrees*Math.PI/180),Z=2/(P+V),q=2/(C+k);return b[0]=Z,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=q,b[6]=0,b[7]=0,b[8]=-(P-V)*Z*.5,b[9]=(C-k)*q*.5,b[10]=S/(A-S),b[11]=-1,b[12]=0,b[13]=0,b[14]=S*A/(A-S),b[15]=0,b},he.orthoNO=D,he.orthoZO=function(b,T,A,S,C,k,P){var V=1/(T-A),Z=1/(S-C),q=1/(k-P);return b[0]=-2*V,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=-2*Z,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=q,b[11]=0,b[12]=(T+A)*V,b[13]=(C+S)*Z,b[14]=k*q,b[15]=1,b},he.lookAt=function(b,T,A,S){var C,k,P,V,Z,q,H,X,ne,de,xe=T[0],Me=T[1],_e=T[2],ke=S[0],Ie=S[1],Pe=S[2],Ze=A[0],tt=A[1],nt=A[2];return Math.abs(xe-Ze)<i.EPSILON&&Math.abs(Me-tt)<i.EPSILON&&Math.abs(_e-nt)<i.EPSILON?h(b):(H=xe-Ze,X=Me-tt,ne=_e-nt,C=Ie*(ne*=de=1/Math.hypot(H,X,ne))-Pe*(X*=de),k=Pe*(H*=de)-ke*ne,P=ke*X-Ie*H,(de=Math.hypot(C,k,P))?(C*=de=1/de,k*=de,P*=de):(C=0,k=0,P=0),V=X*P-ne*k,Z=ne*C-H*P,q=H*k-X*C,(de=Math.hypot(V,Z,q))?(V*=de=1/de,Z*=de,q*=de):(V=0,Z=0,q=0),b[0]=C,b[1]=V,b[2]=H,b[3]=0,b[4]=k,b[5]=Z,b[6]=X,b[7]=0,b[8]=P,b[9]=q,b[10]=ne,b[11]=0,b[12]=-(C*xe+k*Me+P*_e),b[13]=-(V*xe+Z*Me+q*_e),b[14]=-(H*xe+X*Me+ne*_e),b[15]=1,b)},he.targetTo=function(b,T,A,S){var C=T[0],k=T[1],P=T[2],V=S[0],Z=S[1],q=S[2],H=C-A[0],X=k-A[1],ne=P-A[2],de=H*H+X*X+ne*ne;de>0&&(H*=de=1/Math.sqrt(de),X*=de,ne*=de);var xe=Z*ne-q*X,Me=q*H-V*ne,_e=V*X-Z*H;return(de=xe*xe+Me*Me+_e*_e)>0&&(xe*=de=1/Math.sqrt(de),Me*=de,_e*=de),b[0]=xe,b[1]=Me,b[2]=_e,b[3]=0,b[4]=X*_e-ne*Me,b[5]=ne*xe-H*_e,b[6]=H*Me-X*xe,b[7]=0,b[8]=H,b[9]=X,b[10]=ne,b[11]=0,b[12]=C,b[13]=k,b[14]=P,b[15]=1,b},he.str=function(b){return"mat4("+b[0]+", "+b[1]+", "+b[2]+", "+b[3]+", "+b[4]+", "+b[5]+", "+b[6]+", "+b[7]+", "+b[8]+", "+b[9]+", "+b[10]+", "+b[11]+", "+b[12]+", "+b[13]+", "+b[14]+", "+b[15]+")"},he.frob=function(b){return Math.hypot(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15])},he.add=function(b,T,A){return b[0]=T[0]+A[0],b[1]=T[1]+A[1],b[2]=T[2]+A[2],b[3]=T[3]+A[3],b[4]=T[4]+A[4],b[5]=T[5]+A[5],b[6]=T[6]+A[6],b[7]=T[7]+A[7],b[8]=T[8]+A[8],b[9]=T[9]+A[9],b[10]=T[10]+A[10],b[11]=T[11]+A[11],b[12]=T[12]+A[12],b[13]=T[13]+A[13],b[14]=T[14]+A[14],b[15]=T[15]+A[15],b},he.subtract=N,he.multiplyScalar=function(b,T,A){return b[0]=T[0]*A,b[1]=T[1]*A,b[2]=T[2]*A,b[3]=T[3]*A,b[4]=T[4]*A,b[5]=T[5]*A,b[6]=T[6]*A,b[7]=T[7]*A,b[8]=T[8]*A,b[9]=T[9]*A,b[10]=T[10]*A,b[11]=T[11]*A,b[12]=T[12]*A,b[13]=T[13]*A,b[14]=T[14]*A,b[15]=T[15]*A,b},he.multiplyScalarAndAdd=function(b,T,A,S){return b[0]=T[0]+A[0]*S,b[1]=T[1]+A[1]*S,b[2]=T[2]+A[2]*S,b[3]=T[3]+A[3]*S,b[4]=T[4]+A[4]*S,b[5]=T[5]+A[5]*S,b[6]=T[6]+A[6]*S,b[7]=T[7]+A[7]*S,b[8]=T[8]+A[8]*S,b[9]=T[9]+A[9]*S,b[10]=T[10]+A[10]*S,b[11]=T[11]+A[11]*S,b[12]=T[12]+A[12]*S,b[13]=T[13]+A[13]*S,b[14]=T[14]+A[14]*S,b[15]=T[15]+A[15]*S,b},he.exactEquals=function(b,T){return b[0]===T[0]&&b[1]===T[1]&&b[2]===T[2]&&b[3]===T[3]&&b[4]===T[4]&&b[5]===T[5]&&b[6]===T[6]&&b[7]===T[7]&&b[8]===T[8]&&b[9]===T[9]&&b[10]===T[10]&&b[11]===T[11]&&b[12]===T[12]&&b[13]===T[13]&&b[14]===T[14]&&b[15]===T[15]},he.equals=function(b,T){var A=b[0],S=b[1],C=b[2],k=b[3],P=b[4],V=b[5],Z=b[6],q=b[7],H=b[8],X=b[9],ne=b[10],de=b[11],xe=b[12],Me=b[13],_e=b[14],ke=b[15],Ie=T[0],Pe=T[1],Ze=T[2],tt=T[3],nt=T[4],st=T[5],_t=T[6],at=T[7],Ct=T[8],jt=T[9],Mt=T[10],sn=T[11],Kt=T[12],$t=T[13],Pt=T[14],Tn=T[15];return Math.abs(A-Ie)<=i.EPSILON*Math.max(1,Math.abs(A),Math.abs(Ie))&&Math.abs(S-Pe)<=i.EPSILON*Math.max(1,Math.abs(S),Math.abs(Pe))&&Math.abs(C-Ze)<=i.EPSILON*Math.max(1,Math.abs(C),Math.abs(Ze))&&Math.abs(k-tt)<=i.EPSILON*Math.max(1,Math.abs(k),Math.abs(tt))&&Math.abs(P-nt)<=i.EPSILON*Math.max(1,Math.abs(P),Math.abs(nt))&&Math.abs(V-st)<=i.EPSILON*Math.max(1,Math.abs(V),Math.abs(st))&&Math.abs(Z-_t)<=i.EPSILON*Math.max(1,Math.abs(Z),Math.abs(_t))&&Math.abs(q-at)<=i.EPSILON*Math.max(1,Math.abs(q),Math.abs(at))&&Math.abs(H-Ct)<=i.EPSILON*Math.max(1,Math.abs(H),Math.abs(Ct))&&Math.abs(X-jt)<=i.EPSILON*Math.max(1,Math.abs(X),Math.abs(jt))&&Math.abs(ne-Mt)<=i.EPSILON*Math.max(1,Math.abs(ne),Math.abs(Mt))&&Math.abs(de-sn)<=i.EPSILON*Math.max(1,Math.abs(de),Math.abs(sn))&&Math.abs(xe-Kt)<=i.EPSILON*Math.max(1,Math.abs(xe),Math.abs(Kt))&&Math.abs(Me-$t)<=i.EPSILON*Math.max(1,Math.abs(Me),Math.abs($t))&&Math.abs(_e-Pt)<=i.EPSILON*Math.max(1,Math.abs(_e),Math.abs(Pt))&&Math.abs(ke-Tn)<=i.EPSILON*Math.max(1,Math.abs(ke),Math.abs(Tn))},he.sub=he.mul=he.ortho=he.perspective=void 0;var i=function(b,T){if(b&&b.__esModule)return b;if(b===null||u(b)!=="object"&&typeof b!="function")return{default:b};var A=a(void 0);if(A&&A.has(b))return A.get(b);var S={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in b)if(k!=="default"&&Object.prototype.hasOwnProperty.call(b,k)){var P=C?Object.getOwnPropertyDescriptor(b,k):null;P&&(P.get||P.set)?Object.defineProperty(S,k,P):S[k]=b[k]}return S.default=b,A&&A.set(b,S),S}(j());function a(b){if(typeof WeakMap!="function")return null;var T=new WeakMap,A=new WeakMap;return(a=function(S){return S?A:T})(b)}function h(b){return b[0]=1,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=1,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=1,b[11]=0,b[12]=0,b[13]=0,b[14]=0,b[15]=1,b}function y(b,T,A){var S=T[0],C=T[1],k=T[2],P=T[3],V=T[4],Z=T[5],q=T[6],H=T[7],X=T[8],ne=T[9],de=T[10],xe=T[11],Me=T[12],_e=T[13],ke=T[14],Ie=T[15],Pe=A[0],Ze=A[1],tt=A[2],nt=A[3];return b[0]=Pe*S+Ze*V+tt*X+nt*Me,b[1]=Pe*C+Ze*Z+tt*ne+nt*_e,b[2]=Pe*k+Ze*q+tt*de+nt*ke,b[3]=Pe*P+Ze*H+tt*xe+nt*Ie,b[4]=(Pe=A[4])*S+(Ze=A[5])*V+(tt=A[6])*X+(nt=A[7])*Me,b[5]=Pe*C+Ze*Z+tt*ne+nt*_e,b[6]=Pe*k+Ze*q+tt*de+nt*ke,b[7]=Pe*P+Ze*H+tt*xe+nt*Ie,b[8]=(Pe=A[8])*S+(Ze=A[9])*V+(tt=A[10])*X+(nt=A[11])*Me,b[9]=Pe*C+Ze*Z+tt*ne+nt*_e,b[10]=Pe*k+Ze*q+tt*de+nt*ke,b[11]=Pe*P+Ze*H+tt*xe+nt*Ie,b[12]=(Pe=A[12])*S+(Ze=A[13])*V+(tt=A[14])*X+(nt=A[15])*Me,b[13]=Pe*C+Ze*Z+tt*ne+nt*_e,b[14]=Pe*k+Ze*q+tt*de+nt*ke,b[15]=Pe*P+Ze*H+tt*xe+nt*Ie,b}function f(b,T,A){var S=T[0],C=T[1],k=T[2],P=T[3],V=S+S,Z=C+C,q=k+k,H=S*V,X=S*Z,ne=S*q,de=C*Z,xe=C*q,Me=k*q,_e=P*V,ke=P*Z,Ie=P*q;return b[0]=1-(de+Me),b[1]=X+Ie,b[2]=ne-ke,b[3]=0,b[4]=X-Ie,b[5]=1-(H+Me),b[6]=xe+_e,b[7]=0,b[8]=ne+ke,b[9]=xe-_e,b[10]=1-(H+de),b[11]=0,b[12]=A[0],b[13]=A[1],b[14]=A[2],b[15]=1,b}function _(b,T){var A=T[4],S=T[5],C=T[6],k=T[8],P=T[9],V=T[10];return b[0]=Math.hypot(T[0],T[1],T[2]),b[1]=Math.hypot(A,S,C),b[2]=Math.hypot(k,P,V),b}function w(b,T,A,S,C){var k,P=1/Math.tan(T/2);return b[0]=P/A,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=P,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[11]=-1,b[12]=0,b[13]=0,b[15]=0,C!=null&&C!==1/0?(b[10]=(C+S)*(k=1/(S-C)),b[14]=2*C*S*k):(b[10]=-1,b[14]=-2*S),b}function D(b,T,A,S,C,k,P){var V=1/(T-A),Z=1/(S-C),q=1/(k-P);return b[0]=-2*V,b[1]=0,b[2]=0,b[3]=0,b[4]=0,b[5]=-2*Z,b[6]=0,b[7]=0,b[8]=0,b[9]=0,b[10]=2*q,b[11]=0,b[12]=(T+A)*V,b[13]=(C+S)*Z,b[14]=(P+k)*q,b[15]=1,b}function N(b,T,A){return b[0]=T[0]-A[0],b[1]=T[1]-A[1],b[2]=T[2]-A[2],b[3]=T[3]-A[3],b[4]=T[4]-A[4],b[5]=T[5]-A[5],b[6]=T[6]-A[6],b[7]=T[7]-A[7],b[8]=T[8]-A[8],b[9]=T[9]-A[9],b[10]=T[10]-A[10],b[11]=T[11]-A[11],b[12]=T[12]-A[12],b[13]=T[13]-A[13],b[14]=T[14]-A[14],b[15]=T[15]-A[15],b}return he.perspective=w,he.ortho=D,he.mul=y,he.sub=N,he}var qe,Te={},ze={};function ht(){if(qe)return ze;function u(C){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},u(C)}qe=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.create=h,ze.clone=function(C){var k=new i.ARRAY_TYPE(3);return k[0]=C[0],k[1]=C[1],k[2]=C[2],k},ze.length=y,ze.fromValues=function(C,k,P){var V=new i.ARRAY_TYPE(3);return V[0]=C,V[1]=k,V[2]=P,V},ze.copy=function(C,k){return C[0]=k[0],C[1]=k[1],C[2]=k[2],C},ze.set=function(C,k,P,V){return C[0]=k,C[1]=P,C[2]=V,C},ze.add=function(C,k,P){return C[0]=k[0]+P[0],C[1]=k[1]+P[1],C[2]=k[2]+P[2],C},ze.subtract=f,ze.multiply=_,ze.divide=w,ze.ceil=function(C,k){return C[0]=Math.ceil(k[0]),C[1]=Math.ceil(k[1]),C[2]=Math.ceil(k[2]),C},ze.floor=function(C,k){return C[0]=Math.floor(k[0]),C[1]=Math.floor(k[1]),C[2]=Math.floor(k[2]),C},ze.min=function(C,k,P){return C[0]=Math.min(k[0],P[0]),C[1]=Math.min(k[1],P[1]),C[2]=Math.min(k[2],P[2]),C},ze.max=function(C,k,P){return C[0]=Math.max(k[0],P[0]),C[1]=Math.max(k[1],P[1]),C[2]=Math.max(k[2],P[2]),C},ze.round=function(C,k){return C[0]=Math.round(k[0]),C[1]=Math.round(k[1]),C[2]=Math.round(k[2]),C},ze.scale=function(C,k,P){return C[0]=k[0]*P,C[1]=k[1]*P,C[2]=k[2]*P,C},ze.scaleAndAdd=function(C,k,P,V){return C[0]=k[0]+P[0]*V,C[1]=k[1]+P[1]*V,C[2]=k[2]+P[2]*V,C},ze.distance=D,ze.squaredDistance=N,ze.squaredLength=b,ze.negate=function(C,k){return C[0]=-k[0],C[1]=-k[1],C[2]=-k[2],C},ze.inverse=function(C,k){return C[0]=1/k[0],C[1]=1/k[1],C[2]=1/k[2],C},ze.normalize=function(C,k){var P=k[0],V=k[1],Z=k[2],q=P*P+V*V+Z*Z;return q>0&&(q=1/Math.sqrt(q)),C[0]=k[0]*q,C[1]=k[1]*q,C[2]=k[2]*q,C},ze.dot=T,ze.cross=function(C,k,P){var V=k[0],Z=k[1],q=k[2],H=P[0],X=P[1],ne=P[2];return C[0]=Z*ne-q*X,C[1]=q*H-V*ne,C[2]=V*X-Z*H,C},ze.lerp=function(C,k,P,V){var Z=k[0],q=k[1],H=k[2];return C[0]=Z+V*(P[0]-Z),C[1]=q+V*(P[1]-q),C[2]=H+V*(P[2]-H),C},ze.hermite=function(C,k,P,V,Z,q){var H=q*q,X=H*(2*q-3)+1,ne=H*(q-2)+q,de=H*(q-1),xe=H*(3-2*q);return C[0]=k[0]*X+P[0]*ne+V[0]*de+Z[0]*xe,C[1]=k[1]*X+P[1]*ne+V[1]*de+Z[1]*xe,C[2]=k[2]*X+P[2]*ne+V[2]*de+Z[2]*xe,C},ze.bezier=function(C,k,P,V,Z,q){var H=1-q,X=H*H,ne=q*q,de=X*H,xe=3*q*X,Me=3*ne*H,_e=ne*q;return C[0]=k[0]*de+P[0]*xe+V[0]*Me+Z[0]*_e,C[1]=k[1]*de+P[1]*xe+V[1]*Me+Z[1]*_e,C[2]=k[2]*de+P[2]*xe+V[2]*Me+Z[2]*_e,C},ze.random=function(C,k){k=k||1;var P=2*i.RANDOM()*Math.PI,V=2*i.RANDOM()-1,Z=Math.sqrt(1-V*V)*k;return C[0]=Math.cos(P)*Z,C[1]=Math.sin(P)*Z,C[2]=V*k,C},ze.transformMat4=function(C,k,P){var V=k[0],Z=k[1],q=k[2],H=P[3]*V+P[7]*Z+P[11]*q+P[15];return C[0]=(P[0]*V+P[4]*Z+P[8]*q+P[12])/(H=H||1),C[1]=(P[1]*V+P[5]*Z+P[9]*q+P[13])/H,C[2]=(P[2]*V+P[6]*Z+P[10]*q+P[14])/H,C},ze.transformMat3=function(C,k,P){var V=k[0],Z=k[1],q=k[2];return C[0]=V*P[0]+Z*P[3]+q*P[6],C[1]=V*P[1]+Z*P[4]+q*P[7],C[2]=V*P[2]+Z*P[5]+q*P[8],C},ze.transformQuat=function(C,k,P){var V=P[0],Z=P[1],q=P[2],H=k[0],X=k[1],ne=k[2],de=Z*ne-q*X,xe=q*H-V*ne,Me=V*X-Z*H,_e=Z*Me-q*xe,ke=q*de-V*Me,Ie=V*xe-Z*de,Pe=2*P[3];return xe*=Pe,Me*=Pe,ke*=2,Ie*=2,C[0]=H+(de*=Pe)+(_e*=2),C[1]=X+xe+ke,C[2]=ne+Me+Ie,C},ze.rotateX=function(C,k,P,V){var Z=[],q=[];return Z[0]=k[0]-P[0],Z[1]=k[1]-P[1],Z[2]=k[2]-P[2],q[0]=Z[0],q[1]=Z[1]*Math.cos(V)-Z[2]*Math.sin(V),q[2]=Z[1]*Math.sin(V)+Z[2]*Math.cos(V),C[0]=q[0]+P[0],C[1]=q[1]+P[1],C[2]=q[2]+P[2],C},ze.rotateY=function(C,k,P,V){var Z=[],q=[];return Z[0]=k[0]-P[0],Z[1]=k[1]-P[1],Z[2]=k[2]-P[2],q[0]=Z[2]*Math.sin(V)+Z[0]*Math.cos(V),q[1]=Z[1],q[2]=Z[2]*Math.cos(V)-Z[0]*Math.sin(V),C[0]=q[0]+P[0],C[1]=q[1]+P[1],C[2]=q[2]+P[2],C},ze.rotateZ=function(C,k,P,V){var Z=[],q=[];return Z[0]=k[0]-P[0],Z[1]=k[1]-P[1],Z[2]=k[2]-P[2],q[0]=Z[0]*Math.cos(V)-Z[1]*Math.sin(V),q[1]=Z[0]*Math.sin(V)+Z[1]*Math.cos(V),q[2]=Z[2],C[0]=q[0]+P[0],C[1]=q[1]+P[1],C[2]=q[2]+P[2],C},ze.angle=function(C,k){var P=C[0],V=C[1],Z=C[2],q=k[0],H=k[1],X=k[2],ne=Math.sqrt(P*P+V*V+Z*Z)*Math.sqrt(q*q+H*H+X*X),de=ne&&T(C,k)/ne;return Math.acos(Math.min(Math.max(de,-1),1))},ze.zero=function(C){return C[0]=0,C[1]=0,C[2]=0,C},ze.str=function(C){return"vec3("+C[0]+", "+C[1]+", "+C[2]+")"},ze.exactEquals=function(C,k){return C[0]===k[0]&&C[1]===k[1]&&C[2]===k[2]},ze.equals=function(C,k){var P=C[0],V=C[1],Z=C[2],q=k[0],H=k[1],X=k[2];return Math.abs(P-q)<=i.EPSILON*Math.max(1,Math.abs(P),Math.abs(q))&&Math.abs(V-H)<=i.EPSILON*Math.max(1,Math.abs(V),Math.abs(H))&&Math.abs(Z-X)<=i.EPSILON*Math.max(1,Math.abs(Z),Math.abs(X))},ze.forEach=ze.sqrLen=ze.len=ze.sqrDist=ze.dist=ze.div=ze.mul=ze.sub=void 0;var i=function(C,k){if(C&&C.__esModule)return C;if(C===null||u(C)!=="object"&&typeof C!="function")return{default:C};var P=a(void 0);if(P&&P.has(C))return P.get(C);var V={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in C)if(q!=="default"&&Object.prototype.hasOwnProperty.call(C,q)){var H=Z?Object.getOwnPropertyDescriptor(C,q):null;H&&(H.get||H.set)?Object.defineProperty(V,q,H):V[q]=C[q]}return V.default=C,P&&P.set(C,V),V}(j());function a(C){if(typeof WeakMap!="function")return null;var k=new WeakMap,P=new WeakMap;return(a=function(V){return V?P:k})(C)}function h(){var C=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(C[0]=0,C[1]=0,C[2]=0),C}function y(C){return Math.hypot(C[0],C[1],C[2])}function f(C,k,P){return C[0]=k[0]-P[0],C[1]=k[1]-P[1],C[2]=k[2]-P[2],C}function _(C,k,P){return C[0]=k[0]*P[0],C[1]=k[1]*P[1],C[2]=k[2]*P[2],C}function w(C,k,P){return C[0]=k[0]/P[0],C[1]=k[1]/P[1],C[2]=k[2]/P[2],C}function D(C,k){return Math.hypot(k[0]-C[0],k[1]-C[1],k[2]-C[2])}function N(C,k){var P=k[0]-C[0],V=k[1]-C[1],Z=k[2]-C[2];return P*P+V*V+Z*Z}function b(C){var k=C[0],P=C[1],V=C[2];return k*k+P*P+V*V}function T(C,k){return C[0]*k[0]+C[1]*k[1]+C[2]*k[2]}ze.sub=f,ze.mul=_,ze.div=w,ze.dist=D,ze.sqrDist=N,ze.len=y,ze.sqrLen=b;var A,S=(A=h(),function(C,k,P,V,Z,q){var H,X;for(k||(k=3),P||(P=0),X=V?Math.min(V*k+P,C.length):C.length,H=P;H<X;H+=k)A[0]=C[H],A[1]=C[H+1],A[2]=C[H+2],Z(A,A,q),C[H]=A[0],C[H+1]=A[1],C[H+2]=A[2];return C});return ze.forEach=S,ze}var mt,vt,Qe={};function Fe(){if(mt)return Qe;function u(S){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},u(S)}mt=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.create=h,Qe.clone=function(S){var C=new i.ARRAY_TYPE(4);return C[0]=S[0],C[1]=S[1],C[2]=S[2],C[3]=S[3],C},Qe.fromValues=function(S,C,k,P){var V=new i.ARRAY_TYPE(4);return V[0]=S,V[1]=C,V[2]=k,V[3]=P,V},Qe.copy=function(S,C){return S[0]=C[0],S[1]=C[1],S[2]=C[2],S[3]=C[3],S},Qe.set=function(S,C,k,P,V){return S[0]=C,S[1]=k,S[2]=P,S[3]=V,S},Qe.add=function(S,C,k){return S[0]=C[0]+k[0],S[1]=C[1]+k[1],S[2]=C[2]+k[2],S[3]=C[3]+k[3],S},Qe.subtract=y,Qe.multiply=f,Qe.divide=_,Qe.ceil=function(S,C){return S[0]=Math.ceil(C[0]),S[1]=Math.ceil(C[1]),S[2]=Math.ceil(C[2]),S[3]=Math.ceil(C[3]),S},Qe.floor=function(S,C){return S[0]=Math.floor(C[0]),S[1]=Math.floor(C[1]),S[2]=Math.floor(C[2]),S[3]=Math.floor(C[3]),S},Qe.min=function(S,C,k){return S[0]=Math.min(C[0],k[0]),S[1]=Math.min(C[1],k[1]),S[2]=Math.min(C[2],k[2]),S[3]=Math.min(C[3],k[3]),S},Qe.max=function(S,C,k){return S[0]=Math.max(C[0],k[0]),S[1]=Math.max(C[1],k[1]),S[2]=Math.max(C[2],k[2]),S[3]=Math.max(C[3],k[3]),S},Qe.round=function(S,C){return S[0]=Math.round(C[0]),S[1]=Math.round(C[1]),S[2]=Math.round(C[2]),S[3]=Math.round(C[3]),S},Qe.scale=function(S,C,k){return S[0]=C[0]*k,S[1]=C[1]*k,S[2]=C[2]*k,S[3]=C[3]*k,S},Qe.scaleAndAdd=function(S,C,k,P){return S[0]=C[0]+k[0]*P,S[1]=C[1]+k[1]*P,S[2]=C[2]+k[2]*P,S[3]=C[3]+k[3]*P,S},Qe.distance=w,Qe.squaredDistance=D,Qe.length=N,Qe.squaredLength=b,Qe.negate=function(S,C){return S[0]=-C[0],S[1]=-C[1],S[2]=-C[2],S[3]=-C[3],S},Qe.inverse=function(S,C){return S[0]=1/C[0],S[1]=1/C[1],S[2]=1/C[2],S[3]=1/C[3],S},Qe.normalize=function(S,C){var k=C[0],P=C[1],V=C[2],Z=C[3],q=k*k+P*P+V*V+Z*Z;return q>0&&(q=1/Math.sqrt(q)),S[0]=k*q,S[1]=P*q,S[2]=V*q,S[3]=Z*q,S},Qe.dot=function(S,C){return S[0]*C[0]+S[1]*C[1]+S[2]*C[2]+S[3]*C[3]},Qe.cross=function(S,C,k,P){var V=k[0]*P[1]-k[1]*P[0],Z=k[0]*P[2]-k[2]*P[0],q=k[0]*P[3]-k[3]*P[0],H=k[1]*P[2]-k[2]*P[1],X=k[1]*P[3]-k[3]*P[1],ne=k[2]*P[3]-k[3]*P[2],de=C[0],xe=C[1],Me=C[2],_e=C[3];return S[0]=xe*ne-Me*X+_e*H,S[1]=-de*ne+Me*q-_e*Z,S[2]=de*X-xe*q+_e*V,S[3]=-de*H+xe*Z-Me*V,S},Qe.lerp=function(S,C,k,P){var V=C[0],Z=C[1],q=C[2],H=C[3];return S[0]=V+P*(k[0]-V),S[1]=Z+P*(k[1]-Z),S[2]=q+P*(k[2]-q),S[3]=H+P*(k[3]-H),S},Qe.random=function(S,C){var k,P,V,Z,q,H;C=C||1;do q=(k=2*i.RANDOM()-1)*k+(P=2*i.RANDOM()-1)*P;while(q>=1);do H=(V=2*i.RANDOM()-1)*V+(Z=2*i.RANDOM()-1)*Z;while(H>=1);var X=Math.sqrt((1-q)/H);return S[0]=C*k,S[1]=C*P,S[2]=C*V*X,S[3]=C*Z*X,S},Qe.transformMat4=function(S,C,k){var P=C[0],V=C[1],Z=C[2],q=C[3];return S[0]=k[0]*P+k[4]*V+k[8]*Z+k[12]*q,S[1]=k[1]*P+k[5]*V+k[9]*Z+k[13]*q,S[2]=k[2]*P+k[6]*V+k[10]*Z+k[14]*q,S[3]=k[3]*P+k[7]*V+k[11]*Z+k[15]*q,S},Qe.transformQuat=function(S,C,k){var P=C[0],V=C[1],Z=C[2],q=k[0],H=k[1],X=k[2],ne=k[3],de=ne*P+H*Z-X*V,xe=ne*V+X*P-q*Z,Me=ne*Z+q*V-H*P,_e=-q*P-H*V-X*Z;return S[0]=de*ne+_e*-q+xe*-X-Me*-H,S[1]=xe*ne+_e*-H+Me*-q-de*-X,S[2]=Me*ne+_e*-X+de*-H-xe*-q,S[3]=C[3],S},Qe.zero=function(S){return S[0]=0,S[1]=0,S[2]=0,S[3]=0,S},Qe.str=function(S){return"vec4("+S[0]+", "+S[1]+", "+S[2]+", "+S[3]+")"},Qe.exactEquals=function(S,C){return S[0]===C[0]&&S[1]===C[1]&&S[2]===C[2]&&S[3]===C[3]},Qe.equals=function(S,C){var k=S[0],P=S[1],V=S[2],Z=S[3],q=C[0],H=C[1],X=C[2],ne=C[3];return Math.abs(k-q)<=i.EPSILON*Math.max(1,Math.abs(k),Math.abs(q))&&Math.abs(P-H)<=i.EPSILON*Math.max(1,Math.abs(P),Math.abs(H))&&Math.abs(V-X)<=i.EPSILON*Math.max(1,Math.abs(V),Math.abs(X))&&Math.abs(Z-ne)<=i.EPSILON*Math.max(1,Math.abs(Z),Math.abs(ne))},Qe.forEach=Qe.sqrLen=Qe.len=Qe.sqrDist=Qe.dist=Qe.div=Qe.mul=Qe.sub=void 0;var i=function(S,C){if(S&&S.__esModule)return S;if(S===null||u(S)!=="object"&&typeof S!="function")return{default:S};var k=a(void 0);if(k&&k.has(S))return k.get(S);var P={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Z in S)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(S,Z)){var q=V?Object.getOwnPropertyDescriptor(S,Z):null;q&&(q.get||q.set)?Object.defineProperty(P,Z,q):P[Z]=S[Z]}return P.default=S,k&&k.set(S,P),P}(j());function a(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,k=new WeakMap;return(a=function(P){return P?k:C})(S)}function h(){var S=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(S[0]=0,S[1]=0,S[2]=0,S[3]=0),S}function y(S,C,k){return S[0]=C[0]-k[0],S[1]=C[1]-k[1],S[2]=C[2]-k[2],S[3]=C[3]-k[3],S}function f(S,C,k){return S[0]=C[0]*k[0],S[1]=C[1]*k[1],S[2]=C[2]*k[2],S[3]=C[3]*k[3],S}function _(S,C,k){return S[0]=C[0]/k[0],S[1]=C[1]/k[1],S[2]=C[2]/k[2],S[3]=C[3]/k[3],S}function w(S,C){return Math.hypot(C[0]-S[0],C[1]-S[1],C[2]-S[2],C[3]-S[3])}function D(S,C){var k=C[0]-S[0],P=C[1]-S[1],V=C[2]-S[2],Z=C[3]-S[3];return k*k+P*P+V*V+Z*Z}function N(S){return Math.hypot(S[0],S[1],S[2],S[3])}function b(S){var C=S[0],k=S[1],P=S[2],V=S[3];return C*C+k*k+P*P+V*V}Qe.sub=y,Qe.mul=f,Qe.div=_,Qe.dist=w,Qe.sqrDist=D,Qe.len=N,Qe.sqrLen=b;var T,A=(T=h(),function(S,C,k,P,V,Z){var q,H;for(C||(C=4),k||(k=0),H=P?Math.min(P*C+k,S.length):S.length,q=k;q<H;q+=C)T[0]=S[q],T[1]=S[q+1],T[2]=S[q+2],T[3]=S[q+3],V(T,T,Z),S[q]=T[0],S[q+1]=T[1],S[q+2]=T[2],S[q+3]=T[3];return S});return Qe.forEach=A,Qe}function ot(){if(vt)return Te;function u(Ie){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Pe){return typeof Pe}:function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},u(Ie)}vt=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.create=w,Te.identity=function(Ie){return Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,Ie},Te.setAxisAngle=D,Te.getAxisAngle=function(Ie,Pe){var Ze=2*Math.acos(Pe[3]),tt=Math.sin(Ze/2);return tt>i.EPSILON?(Ie[0]=Pe[0]/tt,Ie[1]=Pe[1]/tt,Ie[2]=Pe[2]/tt):(Ie[0]=1,Ie[1]=0,Ie[2]=0),Ze},Te.getAngle=function(Ie,Pe){var Ze=k(Ie,Pe);return Math.acos(2*Ze*Ze-1)},Te.multiply=N,Te.rotateX=function(Ie,Pe,Ze){Ze*=.5;var tt=Pe[0],nt=Pe[1],st=Pe[2],_t=Pe[3],at=Math.sin(Ze),Ct=Math.cos(Ze);return Ie[0]=tt*Ct+_t*at,Ie[1]=nt*Ct+st*at,Ie[2]=st*Ct-nt*at,Ie[3]=_t*Ct-tt*at,Ie},Te.rotateY=function(Ie,Pe,Ze){Ze*=.5;var tt=Pe[0],nt=Pe[1],st=Pe[2],_t=Pe[3],at=Math.sin(Ze),Ct=Math.cos(Ze);return Ie[0]=tt*Ct-st*at,Ie[1]=nt*Ct+_t*at,Ie[2]=st*Ct+tt*at,Ie[3]=_t*Ct-nt*at,Ie},Te.rotateZ=function(Ie,Pe,Ze){Ze*=.5;var tt=Pe[0],nt=Pe[1],st=Pe[2],_t=Pe[3],at=Math.sin(Ze),Ct=Math.cos(Ze);return Ie[0]=tt*Ct+nt*at,Ie[1]=nt*Ct-tt*at,Ie[2]=st*Ct+_t*at,Ie[3]=_t*Ct-st*at,Ie},Te.calculateW=function(Ie,Pe){var Ze=Pe[0],tt=Pe[1],nt=Pe[2];return Ie[0]=Ze,Ie[1]=tt,Ie[2]=nt,Ie[3]=Math.sqrt(Math.abs(1-Ze*Ze-tt*tt-nt*nt)),Ie},Te.exp=b,Te.ln=T,Te.pow=function(Ie,Pe,Ze){return T(Ie,Pe),C(Ie,Ie,Ze),b(Ie,Ie),Ie},Te.slerp=A,Te.random=function(Ie){var Pe=i.RANDOM(),Ze=i.RANDOM(),tt=i.RANDOM(),nt=Math.sqrt(1-Pe),st=Math.sqrt(Pe);return Ie[0]=nt*Math.sin(2*Math.PI*Ze),Ie[1]=nt*Math.cos(2*Math.PI*Ze),Ie[2]=st*Math.sin(2*Math.PI*tt),Ie[3]=st*Math.cos(2*Math.PI*tt),Ie},Te.invert=function(Ie,Pe){var Ze=Pe[0],tt=Pe[1],nt=Pe[2],st=Pe[3],_t=Ze*Ze+tt*tt+nt*nt+st*st,at=_t?1/_t:0;return Ie[0]=-Ze*at,Ie[1]=-tt*at,Ie[2]=-nt*at,Ie[3]=st*at,Ie},Te.conjugate=function(Ie,Pe){return Ie[0]=-Pe[0],Ie[1]=-Pe[1],Ie[2]=-Pe[2],Ie[3]=Pe[3],Ie},Te.fromMat3=S,Te.fromEuler=function(Ie,Pe,Ze,tt){var nt=.5*Math.PI/180;Pe*=nt,Ze*=nt,tt*=nt;var st=Math.sin(Pe),_t=Math.cos(Pe),at=Math.sin(Ze),Ct=Math.cos(Ze),jt=Math.sin(tt),Mt=Math.cos(tt);return Ie[0]=st*Ct*Mt-_t*at*jt,Ie[1]=_t*at*Mt+st*Ct*jt,Ie[2]=_t*Ct*jt-st*at*Mt,Ie[3]=_t*Ct*Mt+st*at*jt,Ie},Te.str=function(Ie){return"quat("+Ie[0]+", "+Ie[1]+", "+Ie[2]+", "+Ie[3]+")"},Te.setAxes=Te.sqlerp=Te.rotationTo=Te.equals=Te.exactEquals=Te.normalize=Te.sqrLen=Te.squaredLength=Te.len=Te.length=Te.lerp=Te.dot=Te.scale=Te.mul=Te.add=Te.set=Te.copy=Te.fromValues=Te.clone=void 0;var i=_(j()),a=_(pe()),h=_(ht()),y=_(Fe());function f(Ie){if(typeof WeakMap!="function")return null;var Pe=new WeakMap,Ze=new WeakMap;return(f=function(tt){return tt?Ze:Pe})(Ie)}function _(Ie,Pe){if(Ie&&Ie.__esModule)return Ie;if(Ie===null||u(Ie)!=="object"&&typeof Ie!="function")return{default:Ie};var Ze=f(Pe);if(Ze&&Ze.has(Ie))return Ze.get(Ie);var tt={},nt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var st in Ie)if(st!=="default"&&Object.prototype.hasOwnProperty.call(Ie,st)){var _t=nt?Object.getOwnPropertyDescriptor(Ie,st):null;_t&&(_t.get||_t.set)?Object.defineProperty(tt,st,_t):tt[st]=Ie[st]}return tt.default=Ie,Ze&&Ze.set(Ie,tt),tt}function w(){var Ie=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(Ie[0]=0,Ie[1]=0,Ie[2]=0),Ie[3]=1,Ie}function D(Ie,Pe,Ze){Ze*=.5;var tt=Math.sin(Ze);return Ie[0]=tt*Pe[0],Ie[1]=tt*Pe[1],Ie[2]=tt*Pe[2],Ie[3]=Math.cos(Ze),Ie}function N(Ie,Pe,Ze){var tt=Pe[0],nt=Pe[1],st=Pe[2],_t=Pe[3],at=Ze[0],Ct=Ze[1],jt=Ze[2],Mt=Ze[3];return Ie[0]=tt*Mt+_t*at+nt*jt-st*Ct,Ie[1]=nt*Mt+_t*Ct+st*at-tt*jt,Ie[2]=st*Mt+_t*jt+tt*Ct-nt*at,Ie[3]=_t*Mt-tt*at-nt*Ct-st*jt,Ie}function b(Ie,Pe){var Ze=Pe[0],tt=Pe[1],nt=Pe[2],st=Pe[3],_t=Math.sqrt(Ze*Ze+tt*tt+nt*nt),at=Math.exp(st),Ct=_t>0?at*Math.sin(_t)/_t:0;return Ie[0]=Ze*Ct,Ie[1]=tt*Ct,Ie[2]=nt*Ct,Ie[3]=at*Math.cos(_t),Ie}function T(Ie,Pe){var Ze=Pe[0],tt=Pe[1],nt=Pe[2],st=Pe[3],_t=Math.sqrt(Ze*Ze+tt*tt+nt*nt),at=_t>0?Math.atan2(_t,st)/_t:0;return Ie[0]=Ze*at,Ie[1]=tt*at,Ie[2]=nt*at,Ie[3]=.5*Math.log(Ze*Ze+tt*tt+nt*nt+st*st),Ie}function A(Ie,Pe,Ze,tt){var nt,st,_t,at,Ct,jt=Pe[0],Mt=Pe[1],sn=Pe[2],Kt=Pe[3],$t=Ze[0],Pt=Ze[1],Tn=Ze[2],nn=Ze[3];return(st=jt*$t+Mt*Pt+sn*Tn+Kt*nn)<0&&(st=-st,$t=-$t,Pt=-Pt,Tn=-Tn,nn=-nn),1-st>i.EPSILON?(nt=Math.acos(st),_t=Math.sin(nt),at=Math.sin((1-tt)*nt)/_t,Ct=Math.sin(tt*nt)/_t):(at=1-tt,Ct=tt),Ie[0]=at*jt+Ct*$t,Ie[1]=at*Mt+Ct*Pt,Ie[2]=at*sn+Ct*Tn,Ie[3]=at*Kt+Ct*nn,Ie}function S(Ie,Pe){var Ze,tt=Pe[0]+Pe[4]+Pe[8];if(tt>0)Ze=Math.sqrt(tt+1),Ie[3]=.5*Ze,Ie[0]=(Pe[5]-Pe[7])*(Ze=.5/Ze),Ie[1]=(Pe[6]-Pe[2])*Ze,Ie[2]=(Pe[1]-Pe[3])*Ze;else{var nt=0;Pe[4]>Pe[0]&&(nt=1),Pe[8]>Pe[3*nt+nt]&&(nt=2);var st=(nt+1)%3,_t=(nt+2)%3;Ze=Math.sqrt(Pe[3*nt+nt]-Pe[3*st+st]-Pe[3*_t+_t]+1),Ie[nt]=.5*Ze,Ie[3]=(Pe[3*st+_t]-Pe[3*_t+st])*(Ze=.5/Ze),Ie[st]=(Pe[3*st+nt]+Pe[3*nt+st])*Ze,Ie[_t]=(Pe[3*_t+nt]+Pe[3*nt+_t])*Ze}return Ie}Te.clone=y.clone,Te.fromValues=y.fromValues,Te.copy=y.copy,Te.set=y.set,Te.add=y.add,Te.mul=N;var C=y.scale;Te.scale=C;var k=y.dot;Te.dot=k,Te.lerp=y.lerp;var P=y.length;Te.length=P,Te.len=P;var V=y.squaredLength;Te.squaredLength=V,Te.sqrLen=V;var Z=y.normalize;Te.normalize=Z,Te.exactEquals=y.exactEquals,Te.equals=y.equals;var q,H,X,ne=(q=h.create(),H=h.fromValues(1,0,0),X=h.fromValues(0,1,0),function(Ie,Pe,Ze){var tt=h.dot(Pe,Ze);return tt<-.999999?(h.cross(q,H,Pe),h.len(q)<1e-6&&h.cross(q,X,Pe),h.normalize(q,q),D(Ie,q,Math.PI),Ie):tt>.999999?(Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=1,Ie):(h.cross(q,Pe,Ze),Ie[0]=q[0],Ie[1]=q[1],Ie[2]=q[2],Ie[3]=1+tt,Z(Ie,Ie))});Te.rotationTo=ne;var de,xe,Me=(de=w(),xe=w(),function(Ie,Pe,Ze,tt,nt,st){return A(de,Pe,nt,st),A(xe,Ze,tt,st),A(Ie,de,xe,2*st*(1-st)),Ie});Te.sqlerp=Me;var _e,ke=(_e=a.create(),function(Ie,Pe,Ze,tt){return _e[0]=Ze[0],_e[3]=Ze[1],_e[6]=Ze[2],_e[1]=tt[0],_e[4]=tt[1],_e[7]=tt[2],_e[2]=-Pe[0],_e[5]=-Pe[1],_e[8]=-Pe[2],Z(Ie,S(Ie,_e))});return Te.setAxes=ke,Te}var Je,He={};function Ae(){if(Je)return He;function u(A){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},u(A)}Je=1,Object.defineProperty(He,"__esModule",{value:!0}),He.create=function(){var A=new i.ARRAY_TYPE(8);return i.ARRAY_TYPE!=Float32Array&&(A[0]=0,A[1]=0,A[2]=0,A[4]=0,A[5]=0,A[6]=0,A[7]=0),A[3]=1,A},He.clone=function(A){var S=new i.ARRAY_TYPE(8);return S[0]=A[0],S[1]=A[1],S[2]=A[2],S[3]=A[3],S[4]=A[4],S[5]=A[5],S[6]=A[6],S[7]=A[7],S},He.fromValues=function(A,S,C,k,P,V,Z,q){var H=new i.ARRAY_TYPE(8);return H[0]=A,H[1]=S,H[2]=C,H[3]=k,H[4]=P,H[5]=V,H[6]=Z,H[7]=q,H},He.fromRotationTranslationValues=function(A,S,C,k,P,V,Z){var q=new i.ARRAY_TYPE(8);q[0]=A,q[1]=S,q[2]=C,q[3]=k;var H=.5*P,X=.5*V,ne=.5*Z;return q[4]=H*k+X*C-ne*S,q[5]=X*k+ne*A-H*C,q[6]=ne*k+H*S-X*A,q[7]=-H*A-X*S-ne*C,q},He.fromRotationTranslation=_,He.fromTranslation=function(A,S){return A[0]=0,A[1]=0,A[2]=0,A[3]=1,A[4]=.5*S[0],A[5]=.5*S[1],A[6]=.5*S[2],A[7]=0,A},He.fromRotation=function(A,S){return A[0]=S[0],A[1]=S[1],A[2]=S[2],A[3]=S[3],A[4]=0,A[5]=0,A[6]=0,A[7]=0,A},He.fromMat4=function(A,S){var C=a.create();h.getRotation(C,S);var k=new i.ARRAY_TYPE(3);return h.getTranslation(k,S),_(A,C,k),A},He.copy=w,He.identity=function(A){return A[0]=0,A[1]=0,A[2]=0,A[3]=1,A[4]=0,A[5]=0,A[6]=0,A[7]=0,A},He.set=function(A,S,C,k,P,V,Z,q,H){return A[0]=S,A[1]=C,A[2]=k,A[3]=P,A[4]=V,A[5]=Z,A[6]=q,A[7]=H,A},He.getDual=function(A,S){return A[0]=S[4],A[1]=S[5],A[2]=S[6],A[3]=S[7],A},He.setDual=function(A,S){return A[4]=S[0],A[5]=S[1],A[6]=S[2],A[7]=S[3],A},He.getTranslation=function(A,S){var C=S[4],k=S[5],P=S[6],V=S[7],Z=-S[0],q=-S[1],H=-S[2],X=S[3];return A[0]=2*(C*X+V*Z+k*H-P*q),A[1]=2*(k*X+V*q+P*Z-C*H),A[2]=2*(P*X+V*H+C*q-k*Z),A},He.translate=function(A,S,C){var k=S[0],P=S[1],V=S[2],Z=S[3],q=.5*C[0],H=.5*C[1],X=.5*C[2],ne=S[4],de=S[5],xe=S[6],Me=S[7];return A[0]=k,A[1]=P,A[2]=V,A[3]=Z,A[4]=Z*q+P*X-V*H+ne,A[5]=Z*H+V*q-k*X+de,A[6]=Z*X+k*H-P*q+xe,A[7]=-k*q-P*H-V*X+Me,A},He.rotateX=function(A,S,C){var k=-S[0],P=-S[1],V=-S[2],Z=S[3],q=S[4],H=S[5],X=S[6],ne=S[7],de=q*Z+ne*k+H*V-X*P,xe=H*Z+ne*P+X*k-q*V,Me=X*Z+ne*V+q*P-H*k,_e=ne*Z-q*k-H*P-X*V;return a.rotateX(A,S,C),A[4]=de*(Z=A[3])+_e*(k=A[0])+xe*(V=A[2])-Me*(P=A[1]),A[5]=xe*Z+_e*P+Me*k-de*V,A[6]=Me*Z+_e*V+de*P-xe*k,A[7]=_e*Z-de*k-xe*P-Me*V,A},He.rotateY=function(A,S,C){var k=-S[0],P=-S[1],V=-S[2],Z=S[3],q=S[4],H=S[5],X=S[6],ne=S[7],de=q*Z+ne*k+H*V-X*P,xe=H*Z+ne*P+X*k-q*V,Me=X*Z+ne*V+q*P-H*k,_e=ne*Z-q*k-H*P-X*V;return a.rotateY(A,S,C),A[4]=de*(Z=A[3])+_e*(k=A[0])+xe*(V=A[2])-Me*(P=A[1]),A[5]=xe*Z+_e*P+Me*k-de*V,A[6]=Me*Z+_e*V+de*P-xe*k,A[7]=_e*Z-de*k-xe*P-Me*V,A},He.rotateZ=function(A,S,C){var k=-S[0],P=-S[1],V=-S[2],Z=S[3],q=S[4],H=S[5],X=S[6],ne=S[7],de=q*Z+ne*k+H*V-X*P,xe=H*Z+ne*P+X*k-q*V,Me=X*Z+ne*V+q*P-H*k,_e=ne*Z-q*k-H*P-X*V;return a.rotateZ(A,S,C),A[4]=de*(Z=A[3])+_e*(k=A[0])+xe*(V=A[2])-Me*(P=A[1]),A[5]=xe*Z+_e*P+Me*k-de*V,A[6]=Me*Z+_e*V+de*P-xe*k,A[7]=_e*Z-de*k-xe*P-Me*V,A},He.rotateByQuatAppend=function(A,S,C){var k=C[0],P=C[1],V=C[2],Z=C[3],q=S[0],H=S[1],X=S[2],ne=S[3];return A[0]=q*Z+ne*k+H*V-X*P,A[1]=H*Z+ne*P+X*k-q*V,A[2]=X*Z+ne*V+q*P-H*k,A[3]=ne*Z-q*k-H*P-X*V,A[4]=(q=S[4])*Z+(ne=S[7])*k+(H=S[5])*V-(X=S[6])*P,A[5]=H*Z+ne*P+X*k-q*V,A[6]=X*Z+ne*V+q*P-H*k,A[7]=ne*Z-q*k-H*P-X*V,A},He.rotateByQuatPrepend=function(A,S,C){var k=S[0],P=S[1],V=S[2],Z=S[3],q=C[0],H=C[1],X=C[2],ne=C[3];return A[0]=k*ne+Z*q+P*X-V*H,A[1]=P*ne+Z*H+V*q-k*X,A[2]=V*ne+Z*X+k*H-P*q,A[3]=Z*ne-k*q-P*H-V*X,A[4]=k*(ne=C[7])+Z*(q=C[4])+P*(X=C[6])-V*(H=C[5]),A[5]=P*ne+Z*H+V*q-k*X,A[6]=V*ne+Z*X+k*H-P*q,A[7]=Z*ne-k*q-P*H-V*X,A},He.rotateAroundAxis=function(A,S,C,k){if(Math.abs(k)<i.EPSILON)return w(A,S);var P=Math.hypot(C[0],C[1],C[2]);k*=.5;var V=Math.sin(k),Z=V*C[0]/P,q=V*C[1]/P,H=V*C[2]/P,X=Math.cos(k),ne=S[0],de=S[1],xe=S[2],Me=S[3];A[0]=ne*X+Me*Z+de*H-xe*q,A[1]=de*X+Me*q+xe*Z-ne*H,A[2]=xe*X+Me*H+ne*q-de*Z,A[3]=Me*X-ne*Z-de*q-xe*H;var _e=S[4],ke=S[5],Ie=S[6],Pe=S[7];return A[4]=_e*X+Pe*Z+ke*H-Ie*q,A[5]=ke*X+Pe*q+Ie*Z-_e*H,A[6]=Ie*X+Pe*H+_e*q-ke*Z,A[7]=Pe*X-_e*Z-ke*q-Ie*H,A},He.add=function(A,S,C){return A[0]=S[0]+C[0],A[1]=S[1]+C[1],A[2]=S[2]+C[2],A[3]=S[3]+C[3],A[4]=S[4]+C[4],A[5]=S[5]+C[5],A[6]=S[6]+C[6],A[7]=S[7]+C[7],A},He.multiply=D,He.scale=function(A,S,C){return A[0]=S[0]*C,A[1]=S[1]*C,A[2]=S[2]*C,A[3]=S[3]*C,A[4]=S[4]*C,A[5]=S[5]*C,A[6]=S[6]*C,A[7]=S[7]*C,A},He.lerp=function(A,S,C,k){var P=1-k;return N(S,C)<0&&(k=-k),A[0]=S[0]*P+C[0]*k,A[1]=S[1]*P+C[1]*k,A[2]=S[2]*P+C[2]*k,A[3]=S[3]*P+C[3]*k,A[4]=S[4]*P+C[4]*k,A[5]=S[5]*P+C[5]*k,A[6]=S[6]*P+C[6]*k,A[7]=S[7]*P+C[7]*k,A},He.invert=function(A,S){var C=T(S);return A[0]=-S[0]/C,A[1]=-S[1]/C,A[2]=-S[2]/C,A[3]=S[3]/C,A[4]=-S[4]/C,A[5]=-S[5]/C,A[6]=-S[6]/C,A[7]=S[7]/C,A},He.conjugate=function(A,S){return A[0]=-S[0],A[1]=-S[1],A[2]=-S[2],A[3]=S[3],A[4]=-S[4],A[5]=-S[5],A[6]=-S[6],A[7]=S[7],A},He.normalize=function(A,S){var C=T(S);if(C>0){C=Math.sqrt(C);var k=S[0]/C,P=S[1]/C,V=S[2]/C,Z=S[3]/C,q=S[4],H=S[5],X=S[6],ne=S[7],de=k*q+P*H+V*X+Z*ne;A[0]=k,A[1]=P,A[2]=V,A[3]=Z,A[4]=(q-k*de)/C,A[5]=(H-P*de)/C,A[6]=(X-V*de)/C,A[7]=(ne-Z*de)/C}return A},He.str=function(A){return"quat2("+A[0]+", "+A[1]+", "+A[2]+", "+A[3]+", "+A[4]+", "+A[5]+", "+A[6]+", "+A[7]+")"},He.exactEquals=function(A,S){return A[0]===S[0]&&A[1]===S[1]&&A[2]===S[2]&&A[3]===S[3]&&A[4]===S[4]&&A[5]===S[5]&&A[6]===S[6]&&A[7]===S[7]},He.equals=function(A,S){var C=A[0],k=A[1],P=A[2],V=A[3],Z=A[4],q=A[5],H=A[6],X=A[7],ne=S[0],de=S[1],xe=S[2],Me=S[3],_e=S[4],ke=S[5],Ie=S[6],Pe=S[7];return Math.abs(C-ne)<=i.EPSILON*Math.max(1,Math.abs(C),Math.abs(ne))&&Math.abs(k-de)<=i.EPSILON*Math.max(1,Math.abs(k),Math.abs(de))&&Math.abs(P-xe)<=i.EPSILON*Math.max(1,Math.abs(P),Math.abs(xe))&&Math.abs(V-Me)<=i.EPSILON*Math.max(1,Math.abs(V),Math.abs(Me))&&Math.abs(Z-_e)<=i.EPSILON*Math.max(1,Math.abs(Z),Math.abs(_e))&&Math.abs(q-ke)<=i.EPSILON*Math.max(1,Math.abs(q),Math.abs(ke))&&Math.abs(H-Ie)<=i.EPSILON*Math.max(1,Math.abs(H),Math.abs(Ie))&&Math.abs(X-Pe)<=i.EPSILON*Math.max(1,Math.abs(X),Math.abs(Pe))},He.sqrLen=He.squaredLength=He.len=He.length=He.dot=He.mul=He.setReal=He.getReal=void 0;var i=f(j()),a=f(ot()),h=f(De());function y(A){if(typeof WeakMap!="function")return null;var S=new WeakMap,C=new WeakMap;return(y=function(k){return k?C:S})(A)}function f(A,S){if(A&&A.__esModule)return A;if(A===null||u(A)!=="object"&&typeof A!="function")return{default:A};var C=y(S);if(C&&C.has(A))return C.get(A);var k={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var V in A)if(V!=="default"&&Object.prototype.hasOwnProperty.call(A,V)){var Z=P?Object.getOwnPropertyDescriptor(A,V):null;Z&&(Z.get||Z.set)?Object.defineProperty(k,V,Z):k[V]=A[V]}return k.default=A,C&&C.set(A,k),k}function _(A,S,C){var k=.5*C[0],P=.5*C[1],V=.5*C[2],Z=S[0],q=S[1],H=S[2],X=S[3];return A[0]=Z,A[1]=q,A[2]=H,A[3]=X,A[4]=k*X+P*H-V*q,A[5]=P*X+V*Z-k*H,A[6]=V*X+k*q-P*Z,A[7]=-k*Z-P*q-V*H,A}function w(A,S){return A[0]=S[0],A[1]=S[1],A[2]=S[2],A[3]=S[3],A[4]=S[4],A[5]=S[5],A[6]=S[6],A[7]=S[7],A}function D(A,S,C){var k=S[0],P=S[1],V=S[2],Z=S[3],q=C[4],H=C[5],X=C[6],ne=C[7],de=S[4],xe=S[5],Me=S[6],_e=S[7],ke=C[0],Ie=C[1],Pe=C[2],Ze=C[3];return A[0]=k*Ze+Z*ke+P*Pe-V*Ie,A[1]=P*Ze+Z*Ie+V*ke-k*Pe,A[2]=V*Ze+Z*Pe+k*Ie-P*ke,A[3]=Z*Ze-k*ke-P*Ie-V*Pe,A[4]=k*ne+Z*q+P*X-V*H+de*Ze+_e*ke+xe*Pe-Me*Ie,A[5]=P*ne+Z*H+V*q-k*X+xe*Ze+_e*Ie+Me*ke-de*Pe,A[6]=V*ne+Z*X+k*H-P*q+Me*Ze+_e*Pe+de*Ie-xe*ke,A[7]=Z*ne-k*q-P*H-V*X+_e*Ze-de*ke-xe*Ie-Me*Pe,A}He.getReal=a.copy,He.setReal=a.copy,He.mul=D;var N=a.dot;He.dot=N;var b=a.length;He.length=b,He.len=b;var T=a.squaredLength;return He.squaredLength=T,He.sqrLen=T,He}var je,ye,ee={};function fe(){if(je)return ee;function u(S){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},u(S)}je=1,Object.defineProperty(ee,"__esModule",{value:!0}),ee.create=h,ee.clone=function(S){var C=new i.ARRAY_TYPE(2);return C[0]=S[0],C[1]=S[1],C},ee.fromValues=function(S,C){var k=new i.ARRAY_TYPE(2);return k[0]=S,k[1]=C,k},ee.copy=function(S,C){return S[0]=C[0],S[1]=C[1],S},ee.set=function(S,C,k){return S[0]=C,S[1]=k,S},ee.add=function(S,C,k){return S[0]=C[0]+k[0],S[1]=C[1]+k[1],S},ee.subtract=y,ee.multiply=f,ee.divide=_,ee.ceil=function(S,C){return S[0]=Math.ceil(C[0]),S[1]=Math.ceil(C[1]),S},ee.floor=function(S,C){return S[0]=Math.floor(C[0]),S[1]=Math.floor(C[1]),S},ee.min=function(S,C,k){return S[0]=Math.min(C[0],k[0]),S[1]=Math.min(C[1],k[1]),S},ee.max=function(S,C,k){return S[0]=Math.max(C[0],k[0]),S[1]=Math.max(C[1],k[1]),S},ee.round=function(S,C){return S[0]=Math.round(C[0]),S[1]=Math.round(C[1]),S},ee.scale=function(S,C,k){return S[0]=C[0]*k,S[1]=C[1]*k,S},ee.scaleAndAdd=function(S,C,k,P){return S[0]=C[0]+k[0]*P,S[1]=C[1]+k[1]*P,S},ee.distance=w,ee.squaredDistance=D,ee.length=N,ee.squaredLength=b,ee.negate=function(S,C){return S[0]=-C[0],S[1]=-C[1],S},ee.inverse=function(S,C){return S[0]=1/C[0],S[1]=1/C[1],S},ee.normalize=function(S,C){var k=C[0],P=C[1],V=k*k+P*P;return V>0&&(V=1/Math.sqrt(V)),S[0]=C[0]*V,S[1]=C[1]*V,S},ee.dot=function(S,C){return S[0]*C[0]+S[1]*C[1]},ee.cross=function(S,C,k){var P=C[0]*k[1]-C[1]*k[0];return S[0]=S[1]=0,S[2]=P,S},ee.lerp=function(S,C,k,P){var V=C[0],Z=C[1];return S[0]=V+P*(k[0]-V),S[1]=Z+P*(k[1]-Z),S},ee.random=function(S,C){C=C||1;var k=2*i.RANDOM()*Math.PI;return S[0]=Math.cos(k)*C,S[1]=Math.sin(k)*C,S},ee.transformMat2=function(S,C,k){var P=C[0],V=C[1];return S[0]=k[0]*P+k[2]*V,S[1]=k[1]*P+k[3]*V,S},ee.transformMat2d=function(S,C,k){var P=C[0],V=C[1];return S[0]=k[0]*P+k[2]*V+k[4],S[1]=k[1]*P+k[3]*V+k[5],S},ee.transformMat3=function(S,C,k){var P=C[0],V=C[1];return S[0]=k[0]*P+k[3]*V+k[6],S[1]=k[1]*P+k[4]*V+k[7],S},ee.transformMat4=function(S,C,k){var P=C[0],V=C[1];return S[0]=k[0]*P+k[4]*V+k[12],S[1]=k[1]*P+k[5]*V+k[13],S},ee.rotate=function(S,C,k,P){var V=C[0]-k[0],Z=C[1]-k[1],q=Math.sin(P),H=Math.cos(P);return S[0]=V*H-Z*q+k[0],S[1]=V*q+Z*H+k[1],S},ee.angle=function(S,C){var k=S[0],P=S[1],V=C[0],Z=C[1],q=Math.sqrt(k*k+P*P)*Math.sqrt(V*V+Z*Z);return Math.acos(Math.min(Math.max(q&&(k*V+P*Z)/q,-1),1))},ee.zero=function(S){return S[0]=0,S[1]=0,S},ee.str=function(S){return"vec2("+S[0]+", "+S[1]+")"},ee.exactEquals=function(S,C){return S[0]===C[0]&&S[1]===C[1]},ee.equals=function(S,C){var k=S[0],P=S[1],V=C[0],Z=C[1];return Math.abs(k-V)<=i.EPSILON*Math.max(1,Math.abs(k),Math.abs(V))&&Math.abs(P-Z)<=i.EPSILON*Math.max(1,Math.abs(P),Math.abs(Z))},ee.forEach=ee.sqrLen=ee.sqrDist=ee.dist=ee.div=ee.mul=ee.sub=ee.len=void 0;var i=function(S,C){if(S&&S.__esModule)return S;if(S===null||u(S)!=="object"&&typeof S!="function")return{default:S};var k=a(void 0);if(k&&k.has(S))return k.get(S);var P={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Z in S)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(S,Z)){var q=V?Object.getOwnPropertyDescriptor(S,Z):null;q&&(q.get||q.set)?Object.defineProperty(P,Z,q):P[Z]=S[Z]}return P.default=S,k&&k.set(S,P),P}(j());function a(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,k=new WeakMap;return(a=function(P){return P?k:C})(S)}function h(){var S=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(S[0]=0,S[1]=0),S}function y(S,C,k){return S[0]=C[0]-k[0],S[1]=C[1]-k[1],S}function f(S,C,k){return S[0]=C[0]*k[0],S[1]=C[1]*k[1],S}function _(S,C,k){return S[0]=C[0]/k[0],S[1]=C[1]/k[1],S}function w(S,C){return Math.hypot(C[0]-S[0],C[1]-S[1])}function D(S,C){var k=C[0]-S[0],P=C[1]-S[1];return k*k+P*P}function N(S){return Math.hypot(S[0],S[1])}function b(S){var C=S[0],k=S[1];return C*C+k*k}ee.len=N,ee.sub=y,ee.mul=f,ee.div=_,ee.dist=w,ee.sqrDist=D,ee.sqrLen=b;var T,A=(T=h(),function(S,C,k,P,V,Z){var q,H;for(C||(C=2),k||(k=0),H=P?Math.min(P*C+k,S.length):S.length,q=k;q<H;q+=C)T[0]=S[q],T[1]=S[q+1],V(T,T,Z),S[q]=T[0],S[q+1]=T[1];return S});return ee.forEach=A,ee}function Ne(){if(ye)return z;function u(S){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},u(S)}ye=1,Object.defineProperty(z,"__esModule",{value:!0}),z.vec4=z.vec3=z.vec2=z.quat2=z.quat=z.mat4=z.mat3=z.mat2d=z.mat2=z.glMatrix=void 0;var i=A(j());z.glMatrix=i;var a=A(Y());z.mat2=a;var h=A(J());z.mat2d=h;var y=A(pe());z.mat3=y;var f=A(De());z.mat4=f;var _=A(ot());z.quat=_;var w=A(Ae());z.quat2=w;var D=A(fe());z.vec2=D;var N=A(ht());z.vec3=N;var b=A(Fe());function T(S){if(typeof WeakMap!="function")return null;var C=new WeakMap,k=new WeakMap;return(T=function(P){return P?k:C})(S)}function A(S,C){if(S&&S.__esModule)return S;if(S===null||u(S)!=="object"&&typeof S!="function")return{default:S};var k=T(C);if(k&&k.has(S))return k.get(S);var P={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Z in S)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(S,Z)){var q=V?Object.getOwnPropertyDescriptor(S,Z):null;q&&(q.get||q.set)?Object.defineProperty(P,Z,q):P[Z]=S[Z]}return P.default=S,k&&k.set(S,P),P}return z.vec4=b,z}var Ee,Xe,ft,it,ue=Ne(),Dt=function(){if(Xe)return Ee;function u(i,a,h,y){this.cx=3*i,this.bx=3*(h-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*a,this.by=3*(y-a)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=a,this.p2x=h,this.p2y=y}return Xe=1,Ee=u,u.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,a){if(a===void 0&&(a=1e-6),i<0)return 0;if(i>1)return 1;for(var h=i,y=0;y<8;y++){var f=this.sampleCurveX(h)-i;if(Math.abs(f)<a)return h;var _=this.sampleCurveDerivativeX(h);if(Math.abs(_)<1e-6)break;h-=f/_}var w=0,D=1;for(h=i,y=0;y<20&&(f=this.sampleCurveX(h),!(Math.abs(f-i)<a));y++)i>f?w=h:D=h,h=.5*(D-w)+w;return h},solve:function(i,a){return this.sampleCurveY(this.solveCurveX(i,a))}},Ee}(),Gt=v(Dt);function Et(){if(it)return ft;function u(i,a){this.x=i,this.y=a}return it=1,ft=u,u.prototype={clone:function(){return new u(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,a){return this.clone()._rotateAround(i,a)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var a=i.x-this.x,h=i.y-this.y;return a*a+h*h},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,a){return Math.atan2(this.x*a-this.y*i,this.x*i+this.y*a)},_matMult:function(i){var a=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=a,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var a=Math.cos(i),h=Math.sin(i),y=h*this.x+a*this.y;return this.x=a*this.x-h*this.y,this.y=y,this},_rotateAround:function(i,a){var h=Math.cos(i),y=Math.sin(i),f=a.y+y*(this.x-a.x)+h*(this.y-a.y);return this.x=a.x+h*(this.x-a.x)-y*(this.y-a.y),this.y=f,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},u.convert=function(i){return i instanceof u?i:Array.isArray(i)?new u(i[0],i[1]):i},ft}var We=v(Et());function Ut(u,i){if(Array.isArray(u)){if(!Array.isArray(i)||u.length!==i.length)return!1;for(let a=0;a<u.length;a++)if(!Ut(u[a],i[a]))return!1;return!0}if(typeof u=="object"&&u!==null&&i!==null){if(typeof i!="object"||Object.keys(u).length!==Object.keys(i).length)return!1;for(const a in u)if(!Ut(u[a],i[a]))return!1;return!0}return u===i}const wt=Math.PI/180,en=180/Math.PI;function Jt(u){return u*wt}function Nn(u){return u*en}const xn=[[0,0],[1,0],[1,1],[0,1]];function dn(u){if(u<=0)return 0;if(u>=1)return 1;const i=u*u,a=i*u;return 4*(u<.5?a:3*(u-i)+a-.75)}function mn(u,i,a,h){const y=new Gt(u,i,a,h);return function(f){return y.solve(f)}}const ti=mn(.25,.1,.25,1);function Yt(u,i,a){return Math.min(a,Math.max(i,u))}function jn(u,i,a){return(a=Yt((a-u)/(i-u),0,1))*a*(3-2*a)}function On(u,i,a){const h=a-i,y=((u-i)%h+h)%h+i;return y===i?a:y}function fn(u,i,a){if(!u.length)return a(null,[]);let h=u.length;const y=new Array(u.length);let f=null;u.forEach((_,w)=>{i(_,(D,N)=>{D&&(f=D),y[w]=N,--h==0&&a(f,y)})})}function ei(u,...i){for(const a of i)for(const h in a)u[h]=a[h];return u}let vi=1;function Zi(){return vi++}function ii(u){return u<=1?1:Math.pow(2,Math.ceil(Math.log(u)/Math.LN2))}function Hn(u,i){u.forEach(a=>{i[a]&&(i[a]=i[a].bind(i))})}function Wi(u,i){return u.indexOf(i,u.length-i.length)!==-1}function yr(u,i,a){const h={};for(const y in u)h[y]=i.call(this,u[y],y,u);return h}function Lt(u,i,a){const h={};for(const y in u)i.call(this,u[y],y,u)&&(h[y]=u[y]);return h}function xt(u){return Array.isArray(u)?u.map(xt):typeof u=="object"&&u?yr(u,xt):u}const ln={};function Wt(u){ln[u]||(typeof console<"u"&&console.warn(u),ln[u]=!0)}function Qt(u,i,a){return(a.y-u.y)*(i.x-u.x)>(i.y-u.y)*(a.x-u.x)}function an(u){let i=0;for(let a,h,y=0,f=u.length,_=f-1;y<f;_=y++)a=u[y],h=u[_],i+=(h.x-a.x)*(a.y+h.y);return i}function yn([u,i,a]){const h=Jt(i+90),y=Jt(a);return{x:u*Math.cos(h)*Math.sin(y),y:u*Math.sin(h)*Math.sin(y),z:u*Math.cos(y),azimuthal:i,polar:a}}function bn(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function An(u){const i={};if(u.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(a,h,y,f)=>{const _=y||f;return i[h]=!_||_.toLowerCase(),""}),i["max-age"]){const a=parseInt(i["max-age"],10);isNaN(a)?delete i["max-age"]:i["max-age"]=a}return i}let ai,Pi=null;function _r(u,i){return[u[4*i],u[4*i+1],u[4*i+2],u[4*i+3]]}function gt(u,i,a,h){for(;i<a;){const y=i+a>>1;u[y]<h?i=y+1:a=y}return i}function le(u,i,a,h){for(;i<a;){const y=i+a>>1;u[y]<=h?i=y+1:a=y}return i}function ge(u){return u>0?1/(1.001-u):1+u}function Le(u){return u>0?1-1/(1.001-u):-u}const $e={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(ai==null){const u=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{ai=process.env.API_URL_REGEX!=null?new RegExp(process.env.API_URL_REGEX):u}catch{ai=u}}return ai},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!$e.API_URL)return null;try{const u=new URL($e.API_URL);return u.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":u.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function Ue(u){return $e.API_URL_REGEX.test(u)}function rt(u){return $e.API_SPRITE_REGEX.test(u)}let bt,lt,pt,At,St,Bt;function tn(){return bt==null&&(bt=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),bt}const on={now:()=>At!==void 0?At:performance.now(),setNow(u){At=u},restoreNow(){At=void 0},frame(u){const i=requestAnimationFrame(u);return{cancel:()=>cancelAnimationFrame(i)}},getImageData(u,i=0){const{width:a,height:h}=u;St||(St=document.createElement("canvas"));const y=St.getContext("2d",{willReadFrequently:!0});if(!y)throw new Error("failed to create canvas 2d context");return(a>St.width||h>St.height)&&(St.width=a,St.height=h),y.clearRect(-i,-i,a+2*i,h+2*i),y.drawImage(u,0,0,a,h),y.getImageData(-i,-i,a+2*i,h+2*i)},resolveURL:u=>(lt||(lt=document.createElement("a")),lt.href=u,lt.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(pt==null&&(pt=window.matchMedia("(prefers-reduced-motion: reduce)")),pt.matches)},hasCanvasFingerprintNoise(){if(Bt!==void 0)return Bt;if(!tn())return Bt=!1,!1;const u=new OffscreenCanvas(85,1),i=u.getContext("2d",{willReadFrequently:!0});let a=0;for(let y=0;y<u.width;++y)i.fillStyle=`rgba(${a++},${a++},${a++}, 255)`,i.fillRect(y,0,1,1);const h=i.getImageData(0,0,u.width,u.height);a=0;for(let y=0;y<h.data.length;++y)if(y%4!=3&&a++!==h.data[y])return Bt=!0,!0;return Bt=!1,!1}};function zn(u,i){const a=u.indexOf("?");if(a<0)return`${u}?${new URLSearchParams(i).toString()}`;const h=new URLSearchParams(u.slice(a));for(const y in i)h.set(y,i[y]);return`${u.slice(0,a)}?${h.toString()}`}function Rn(u,i={persistentParams:[]}){const a=u.indexOf("?");if(a<0)return u;const h=new URLSearchParams,y=new URLSearchParams(u.slice(a));for(const _ of i.persistentParams){const w=y.get(_);w&&h.set(_,w)}const f=h.toString();return`${u.slice(0,a)}${f.length>0?`?${f}`:""}`}const Fn="mapbox-tiles";let Pn=500,wi=50;const Ii=["language","worldview","jobid"];let cn,Zn;function zi(){try{return caches}catch{}}function Pr(){const u=zi();u&&cn==null&&(cn=u.open(Fn))}let Hr=1/0;const co={supported:!1,testSupport:function(u){!xp&&Qa&&(Kh?bp(u):qs=u)}};let qs,Qa,xp=!1,Kh=!1;const _u=typeof self<"u"?self:{};function bp(u){const i=u.createTexture();u.bindTexture(u.TEXTURE_2D,i);try{if(u.texImage2D(u.TEXTURE_2D,0,u.RGBA,u.RGBA,u.UNSIGNED_BYTE,Qa),u.isContextLost())return;co.supported=!0}catch{}u.deleteTexture(i),xp=!0}_u.document&&(Qa=_u.document.createElement("img"),Qa.onload=function(){qs&&bp(qs),qs=null,Kh=!0},Qa.onerror=function(){xp=!0,qs=null},Qa.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const vu={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(vu);class N1 extends Error{constructor(i,a,h){a===401&&Ue(h)&&(i+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(i),this.status=a,this.url=h}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const L1=bn()?()=>self.worker&&self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Xh=function(u,i){if(!(/^file:/.test(a=u.url)||/^file:/.test(L1())&&!/^\w+:/.test(a))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(h,y){const f=new AbortController,_=new Request(h.url,{method:h.method||"GET",body:h.body,credentials:h.credentials,headers:h.headers,referrer:L1(),referrerPolicy:h.referrerPolicy,signal:f.signal});let w=!1,D=!1;const N=(b=_.url).indexOf("sku=")>0&&Ue(b);var b;h.type==="json"&&_.headers.set("Accept","application/json");const T=(S,C,k)=>{if(D)return;if(S&&S.message!=="SecurityError"&&Wt(S.toString()),C&&k)return A(C);const P=Date.now();fetch(_).then(V=>{if(V.ok){const Z=N?V.clone():null;return A(V,Z,P)}return y(new N1(V.statusText,V.status,h.url))}).catch(V=>{V.name!=="AbortError"&&y(new Error(`${V.message} ${h.url}`))})},A=(S,C,k)=>{(h.type==="arrayBuffer"?S.arrayBuffer():h.type==="json"?S.json():S.text()).then(P=>{D||(C&&k&&function(V,Z,q){if(Pr(),cn==null)return;const H=An(Z.headers.get("Cache-Control")||"");if(H["no-store"])return;const X={status:Z.status,statusText:Z.statusText,headers:new Headers};Z.headers.forEach((xe,Me)=>X.headers.set(Me,xe)),H["max-age"]&&X.headers.set("Expires",new Date(q+1e3*H["max-age"]).toUTCString());const ne=X.headers.get("Expires");if(!ne||new Date(ne).getTime()-q<42e4)return;let de=Rn(V.url,{persistentParams:Ii});if(Z.status===206){const xe=V.headers.get("Range");if(!xe)return;X.status=200,de=zn(de,{range:xe})}(function(xe,Me){if(Zn===void 0)try{new Response(new ReadableStream),Zn=!0}catch{Zn=!1}Zn?Me(xe.body):xe.blob().then(Me)})(Z,xe=>{const Me=new Response((_e=Z.status)!==200&&_e!==404&&[101,103,204,205,304].includes(_e)?null:xe,X);var _e;Pr(),cn!=null&&cn.then(ke=>ke.put(de,Me)).catch(ke=>Wt(ke.message))})}(_,C,k),w=!0,y(null,P,S.headers.get("Cache-Control"),S.headers.get("Expires")))}).catch(P=>{D||y(new Error(P.message))})};return N?function(S,C){if(Pr(),cn==null)return C(null);cn.then(k=>{let P=Rn(S.url,{persistentParams:Ii});const V=S.headers.get("Range");V&&(P=zn(P,{range:V})),k.match(P).then(Z=>{const q=function(H){if(!H)return!1;const X=new Date(H.headers.get("Expires")||0),ne=An(H.headers.get("Cache-Control")||"");return X>Date.now()&&!ne["no-cache"]}(Z);k.delete(P),q&&k.put(P,Z.clone()),C(null,Z,q)}).catch(C)}).catch(C)}(_,T):T(null,null),{cancel:()=>{D=!0,w||f.abort()}}}(u,i);if(bn()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",u,i,void 0,!0)}var a;return function(h,y){const f=new XMLHttpRequest;f.open(h.method||"GET",h.url,!0),h.type==="arrayBuffer"&&(f.responseType="arraybuffer");for(const _ in h.headers)f.setRequestHeader(_,h.headers[_]);return h.type==="json"&&(f.responseType="text",f.setRequestHeader("Accept","application/json")),f.withCredentials=h.credentials==="include",f.onerror=()=>{y(new Error(f.statusText))},f.onload=()=>{if((f.status>=200&&f.status<300||f.status===0)&&f.response!==null){let _=f.response;if(h.type==="json")try{_=JSON.parse(f.response)}catch(w){return y(w)}y(null,_,f.getResponseHeader("Cache-Control"),f.getResponseHeader("Expires"))}else y(new N1(f.statusText,f.status,h.url))},f.send(h.body),{cancel:()=>f.abort()}}(u,i)},xu=function(u,i){return Xh(ei(u,{type:"arrayBuffer"}),i)};function As(u){const i=document.createElement("a");return i.href=u,i.protocol===location.protocol&&i.host===location.host}const Ks="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Xs,Xo;Xs=[],Xo=0;const xa=function(u,i){if(co.supported&&(u.headers||(u.headers={}),u.headers.accept="image/webp,*/*"),Xo>=$e.MAX_PARALLEL_IMAGE_REQUESTS){const f={requestParameters:u,callback:i,cancelled:!1,cancel(){this.cancelled=!0}};return Xs.push(f),f}Xo++;let a=!1;const h=()=>{if(!a)for(a=!0,Xo--;Xs.length&&Xo<$e.MAX_PARALLEL_IMAGE_REQUESTS;){const f=Xs.shift(),{requestParameters:_,callback:w,cancelled:D}=f;D||(f.cancel=xa(_,w).cancel)}},y=xu(u,(f,_,w,D)=>{h(),f?i(f):_&&(self.createImageBitmap?function(N,b){const T=new Blob([new Uint8Array(N)],{type:"image/png"});createImageBitmap(T).then(A=>{b(null,A)}).catch(A=>{b(new Error(`Could not load image because of ${A.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(_,(N,b)=>i(N,b,w,D)):function(N,b){const T=new Image;T.onload=()=>{b(null,T),URL.revokeObjectURL(T.src),T.onload=null,requestAnimationFrame(()=>{T.src=Ks})},T.onerror=()=>b(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const A=new Blob([new Uint8Array(N)],{type:"image/png"});T.src=N.byteLength?URL.createObjectURL(A):Ks}(_,(N,b)=>i(N,b,w,D)))});return{cancel:()=>{y.cancel(),h()}}};var Jh,z1,k1,ba={exports:{}},Mp={exports:{}},_b={exports:{}},nE=function(){if(k1)return ba.exports;k1=1;var u=(Jh||(Jh=1,Mp.exports=function(a,h){var y,f,_,w,D,N,b,T;for(f=a.length-(y=3&a.length),_=h,D=3432918353,N=461845907,T=0;T<f;)b=255&a.charCodeAt(T)|(255&a.charCodeAt(++T))<<8|(255&a.charCodeAt(++T))<<16|(255&a.charCodeAt(++T))<<24,++T,_=27492+(65535&(w=5*(65535&(_=(_^=b=(65535&(b=(b=(65535&b)*D+(((b>>>16)*D&65535)<<16)&4294967295)<<15|b>>>17))*N+(((b>>>16)*N&65535)<<16)&4294967295)<<13|_>>>19))+((5*(_>>>16)&65535)<<16)&4294967295))+((58964+(w>>>16)&65535)<<16);switch(b=0,y){case 3:b^=(255&a.charCodeAt(T+2))<<16;case 2:b^=(255&a.charCodeAt(T+1))<<8;case 1:_^=b=(65535&(b=(b=(65535&(b^=255&a.charCodeAt(T)))*D+(((b>>>16)*D&65535)<<16)&4294967295)<<15|b>>>17))*N+(((b>>>16)*N&65535)<<16)&4294967295}return _^=a.length,_=2246822507*(65535&(_^=_>>>16))+((2246822507*(_>>>16)&65535)<<16)&4294967295,_=3266489909*(65535&(_^=_>>>13))+((3266489909*(_>>>16)&65535)<<16)&4294967295,(_^=_>>>16)>>>0}),Mp.exports),i=(z1||(z1=1,_b.exports=function(a,h){for(var y,f=a.length,_=h^f,w=0;f>=4;)y=1540483477*(65535&(y=255&a.charCodeAt(w)|(255&a.charCodeAt(++w))<<8|(255&a.charCodeAt(++w))<<16|(255&a.charCodeAt(++w))<<24))+((1540483477*(y>>>16)&65535)<<16),_=1540483477*(65535&_)+((1540483477*(_>>>16)&65535)<<16)^(y=1540483477*(65535&(y^=y>>>24))+((1540483477*(y>>>16)&65535)<<16)),f-=4,++w;switch(f){case 3:_^=(255&a.charCodeAt(w+2))<<16;case 2:_^=(255&a.charCodeAt(w+1))<<8;case 1:_=1540483477*(65535&(_^=255&a.charCodeAt(w)))+((1540483477*(_>>>16)&65535)<<16)}return _=1540483477*(65535&(_^=_>>>13))+((1540483477*(_>>>16)&65535)<<16),(_^=_>>>15)>>>0}),_b.exports);return ba.exports=u,ba.exports.murmur3=u,ba.exports.murmur2=i,ba.exports}(),Jo=v(nE);class Tl{constructor(i,...a){ei(this,a[0]||{}),this.type=i}}class ed extends Tl{constructor(i,a={}){super("error",ei({error:i},a))}}function bu(u,i,a){a[u]&&a[u].indexOf(i)!==-1||(a[u]=a[u]||[],a[u].push(i))}function O1(u,i,a){if(a&&a[u]){const h=a[u].indexOf(i);h!==-1&&a[u].splice(h,1)}}class Mu{on(i,a){return this._listeners=this._listeners||{},bu(i,a,this._listeners),this}off(i,a){return O1(i,a,this._listeners),O1(i,a,this._oneTimeListeners),this}once(i,a){return a?(this._oneTimeListeners=this._oneTimeListeners||{},bu(i,a,this._oneTimeListeners),this):new Promise(h=>this.once(i,h))}fire(i,a){const h=typeof i=="string"?new Tl(i,a):i,y=h.type;if(this.listens(y)){h.target=this;const f=this._listeners&&this._listeners[y]?this._listeners[y].slice():[];for(const D of f)D.call(this,h);const _=this._oneTimeListeners&&this._oneTimeListeners[y]?this._oneTimeListeners[y].slice():[];for(const D of _)O1(y,D,this._oneTimeListeners),D.call(this,h);const w=this._eventedParent;w&&(ei(h,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),w.fire(h))}else h instanceof ed&&console.error(h.error);return this}listens(i){return!!(this._listeners&&this._listeners[i]&&this._listeners[i].length>0||this._oneTimeListeners&&this._oneTimeListeners[i]&&this._oneTimeListeners[i].length>0||this._eventedParent&&this._eventedParent.listens(i))}setEventedParent(i,a){return this._eventedParent=i,this._eventedParentData=a,this}}var j1,yi={},R1=function(){if(j1)return yi;j1=1;var u={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function i(f){return(f=Math.round(f))<0?0:f>255?255:f}function a(f){return i(f[f.length-1]==="%"?parseFloat(f)/100*255:parseInt(f))}function h(f){return(_=f[f.length-1]==="%"?parseFloat(f)/100:parseFloat(f))<0?0:_>1?1:_;var _}function y(f,_,w){return w<0?w+=1:w>1&&(w-=1),6*w<1?f+(_-f)*w*6:2*w<1?_:3*w<2?f+(_-f)*(2/3-w)*6:f}try{yi.parseCSSColor=function(f){var _,w=f.replace(/ /g,"").toLowerCase();if(w in u)return u[w].slice();if(w[0]==="#")return w.length===4?(_=parseInt(w.substr(1),16))>=0&&_<=4095?[(3840&_)>>4|(3840&_)>>8,240&_|(240&_)>>4,15&_|(15&_)<<4,1]:null:w.length===7&&(_=parseInt(w.substr(1),16))>=0&&_<=16777215?[(16711680&_)>>16,(65280&_)>>8,255&_,1]:null;var D=w.indexOf("("),N=w.indexOf(")");if(D!==-1&&N+1===w.length){var b=w.substr(0,D),T=w.substr(D+1,N-(D+1)).split(","),A=1;switch(b){case"rgba":if(T.length!==4)return null;A=h(T.pop());case"rgb":return T.length!==3?null:[a(T[0]),a(T[1]),a(T[2]),A];case"hsla":if(T.length!==4)return null;A=h(T.pop());case"hsl":if(T.length!==3)return null;var S=(parseFloat(T[0])%360+360)%360/360,C=h(T[1]),k=h(T[2]),P=k<=.5?k*(C+1):k+C-k*C,V=2*k-P;return[i(255*y(V,P,S+1/3)),i(255*y(V,P,S)),i(255*y(V,P,S-1/3)),A];default:return null}}return null}}catch{}return yi}();class Ci{constructor(i,a,h,y=1){this.r=i,this.g=a,this.b=h,this.a=y}static parse(i){if(!i)return;if(i instanceof Ci)return i;if(typeof i!="string")return;const a=R1.parseCSSColor(i);return a?new Ci(a[0]/255*a[3],a[1]/255*a[3],a[2]/255*a[3],a[3]):void 0}toString(){const[i,a,h,y]=this.a===0?[0,0,0,0]:[255*this.r/this.a,255*this.g/this.a,255*this.b/this.a,this.a];return`rgba(${Math.round(i)},${Math.round(a)},${Math.round(h)},${y})`}toRenderColor(i){const{r:a,g:h,b:y,a:f}=this;return new iE(i,a,h,y,f)}}class iE{constructor(i,a,h,y,f){if(i){const _=i.image.height,w=_*_;a=f===0?0:a/f*(_-1),h=f===0?0:h/f*(_-1),y=f===0?0:y/f*(_-1);const D=Math.floor(a),N=Math.floor(h),b=Math.floor(y),T=Math.ceil(a),A=Math.ceil(h),S=Math.ceil(y),C=a-D,k=h-N,P=y-b,V=i.image.data,Z=4*(D+N*w+b*_),q=4*(D+N*w+S*_),H=4*(D+A*w+b*_),X=4*(D+A*w+S*_),ne=4*(T+N*w+b*_),de=4*(T+N*w+S*_),xe=4*(T+A*w+b*_),Me=4*(T+A*w+S*_);if(Z<0||Me>=V.length)throw new Error("out of range");this.r=Ln(Ln(Ln(V[Z],V[q],P),Ln(V[H],V[X],P),k),Ln(Ln(V[ne],V[de],P),Ln(V[xe],V[Me],P),k),C)/255*f,this.g=Ln(Ln(Ln(V[Z+1],V[q+1],P),Ln(V[H+1],V[X+1],P),k),Ln(Ln(V[ne+1],V[de+1],P),Ln(V[xe+1],V[Me+1],P),k),C)/255*f,this.b=Ln(Ln(Ln(V[Z+2],V[q+2],P),Ln(V[H+2],V[X+2],P),k),Ln(Ln(V[ne+2],V[de+2],P),Ln(V[xe+2],V[Me+2],P),k),C)/255*f,this.a=f}else this.r=a,this.g=h,this.b=y,this.a=f}toArray(){const{r:i,g:a,b:h,a:y}=this;return y===0?[0,0,0,0]:[255*i/y,255*a/y,255*h/y,y]}toArray01(){const{r:i,g:a,b:h,a:y}=this;return y===0?[0,0,0,0]:[i/y,a/y,h/y,y]}toArray01Scaled(i){const{r:a,g:h,b:y,a:f}=this;return f===0?[0,0,0]:[a/f*i,h/f*i,y/f*i]}toArray01PremultipliedAlpha(){const{r:i,g:a,b:h,a:y}=this;return[i,a,h,y]}toArray01Linear(){const{r:i,g:a,b:h,a:y}=this;return y===0?[0,0,0,0]:[Math.pow(i/y,2.2),Math.pow(a/y,2.2),Math.pow(h/y,2.2),y]}}function Ln(u,i,a){return u*(1-a)+i*a}function td(u,i,a){return u.map((h,y)=>Ln(h,i[y],a))}Ci.black=new Ci(0,0,0,1),Ci.white=new Ci(1,1,1,1),Ci.transparent=new Ci(0,0,0,0),Ci.red=new Ci(1,0,0,1),Ci.blue=new Ci(0,0,1,1);var pc=Object.freeze({__proto__:null,array:td,color:function(u,i,a){return new Ci(Ln(u.r,i.r,a),Ln(u.g,i.g,a),Ln(u.b,i.b,a),Ln(u.a,i.a,a))},number:Ln});function wu(u,...i){for(const a of i)for(const h in a)u[h]=a[h];return u}class Ma extends Error{constructor(i,a){super(a),this.message=a,this.key=i}}class wp{constructor(i,a=[]){this.parent=i,this.bindings={};for(const[h,y]of a)this.bindings[h]=y}concat(i){return new wp(this,i)}get(i){if(this.bindings[i])return this.bindings[i];if(this.parent)return this.parent.get(i);throw new Error(`${i} not found in scope.`)}has(i){return!!this.bindings[i]||!!this.parent&&this.parent.has(i)}}const Js={kind:"null"},gn={kind:"number"},ci={kind:"string"},ui={kind:"boolean"},es={kind:"color"},Do={kind:"object"},fi={kind:"value"},Ip={kind:"collator"},Iu={kind:"formatted"},Tu={kind:"resolvedImage"};function Fo(u,i){return{kind:"array",itemType:u,N:i}}function vr(u){if(u.kind==="array"){const i=vr(u.itemType);return typeof u.N=="number"?`array<${i}, ${u.N}>`:u.itemType.kind==="value"?"array":`array<${i}>`}return u.kind}const vb=[Js,gn,ci,ui,es,Iu,Do,Fo(fi),Tu];function Su(u,i){if(i.kind==="error")return null;if(u.kind==="array"){if(i.kind==="array"&&(i.N===0&&i.itemType.kind==="value"||!Su(u.itemType,i.itemType))&&(typeof u.N!="number"||u.N===i.N))return null}else{if(u.kind===i.kind)return null;if(u.kind==="value"){for(const a of vb)if(!Su(a,i))return null}}return`Expected ${vr(u)} but found ${vr(i)} instead.`}function Eu(u,i){return i.some(a=>a.kind===u.kind)}function wa(u,i){return i.some(a=>a==="null"?u===null:a==="array"?Array.isArray(u):a==="object"?u&&!Array.isArray(u)&&typeof u=="object":a===typeof u)}class Tp{constructor(i,a,h){this.sensitivity=i?a?"variant":"case":a?"accent":"base",this.locale=h,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(i,a){return this.collator.compare(i,a)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class ds{constructor(i,a,h,y,f){this.text=i.normalize?i.normalize():i,this.image=a,this.scale=h,this.fontStack=y,this.textColor=f}}class Co{constructor(i){this.sections=i}static fromString(i){return new Co([new ds(i,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(i=>i.text.length!==0||i.image&&i.image.namePrimary.length!==0)}static factory(i){return i instanceof Co?i:Co.fromString(i)}toString(){return this.sections.length===0?"":this.sections.map(i=>i.text).join("")}serialize(){const i=["format"];for(const a of this.sections){if(a.image){i.push(["image",a.image.namePrimary]);continue}i.push(a.text);const h={};a.fontStack&&(h["text-font"]=["literal",a.fontStack.split(",")]),a.scale&&(h["font-scale"]=a.scale),a.textColor&&(h["text-color"]=["rgba"].concat(a.textColor.toRenderColor(null).toArray())),i.push(h)}return i}}class Vo{constructor(i){this.namePrimary=i.namePrimary,i.nameSecondary&&(this.nameSecondary=i.nameSecondary),this.available=i.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(i,a){return i?new Vo({namePrimary:i,nameSecondary:a,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function xb(u,i,a,h){return typeof u=="number"&&u>=0&&u<=255&&typeof i=="number"&&i>=0&&i<=255&&typeof a=="number"&&a>=0&&a<=255?h===void 0||typeof h=="number"&&h>=0&&h<=1?null:`Invalid rgba value [${[u,i,a,h].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof h=="number"?[u,i,a,h]:[u,i,a]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Sl(u){if(u===null||typeof u=="string"||typeof u=="boolean"||typeof u=="number"||u instanceof Ci||u instanceof Tp||u instanceof Co||u instanceof Vo)return!0;if(Array.isArray(u)){for(const i of u)if(!Sl(i))return!1;return!0}if(typeof u=="object"){for(const i in u)if(!Sl(u[i]))return!1;return!0}return!1}function Lr(u){if(u===null)return Js;if(typeof u=="string")return ci;if(typeof u=="boolean")return ui;if(typeof u=="number")return gn;if(u instanceof Ci)return es;if(u instanceof Tp)return Ip;if(u instanceof Co)return Iu;if(u instanceof Vo)return Tu;if(Array.isArray(u)){const i=u.length;let a;for(const h of u){const y=Lr(h);if(a){if(a===y)continue;a=fi;break}a=y}return Fo(a||fi,i)}return Do}function $o(u){const i=typeof u;return u===null?"":i==="string"||i==="number"||i==="boolean"?String(u):u instanceof Ci||u instanceof Co||u instanceof Vo?u.toString():JSON.stringify(u)}class ea{constructor(i,a){this.type=i,this.value=a}static parse(i,a){if(i.length!==2)return a.error(`'literal' expression requires exactly one argument, but found ${i.length-1} instead.`);if(!Sl(i[1]))return a.error("invalid value");const h=i[1];let y=Lr(h);const f=a.expectedType;return y.kind!=="array"||y.N!==0||!f||f.kind!=="array"||typeof f.N=="number"&&f.N!==0||(y=f),new ea(y,h)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Ci?["rgba"].concat(this.value.toRenderColor(null).toArray()):this.value instanceof Co?this.value.serialize():this.value}}class Xr{constructor(i){this.name="ExpressionEvaluationError",this.message=i}toJSON(){return this.message}}const P1={string:ci,number:gn,boolean:ui,object:Do};class ta{constructor(i,a){this.type=i,this.args=a}static parse(i,a){if(i.length<2)return a.error("Expected at least one argument.");let h,y=1;const f=i[0];if(f==="array"){let w,D;if(i.length>2){const N=i[1];if(typeof N!="string"||!(N in P1)||N==="object")return a.error('The item type argument of "array" must be one of string, number, boolean',1);w=P1[N],y++}else w=fi;if(i.length>3){if(i[2]!==null&&(typeof i[2]!="number"||i[2]<0||i[2]!==Math.floor(i[2])))return a.error('The length argument to "array" must be a positive integer literal',2);D=i[2],y++}h=Fo(w,D)}else h=P1[f];const _=[];for(;y<i.length;y++){const w=a.parse(i[y],y,fi);if(!w)return null;_.push(w)}return new ta(h,_)}evaluate(i){for(let a=0;a<this.args.length;a++){const h=this.args[a].evaluate(i);if(!Su(this.type,Lr(h)))return h;if(a===this.args.length-1)throw new Xr(`The expression ${JSON.stringify(this.args[a].serialize())} evaluated to ${vr(Lr(h))} but was expected to be of type ${vr(this.type)}.`)}return null}eachChild(i){this.args.forEach(i)}outputDefined(){return this.args.every(i=>i.outputDefined())}serialize(){const i=this.type,a=[i.kind];if(i.kind==="array"){const h=i.itemType;if(h.kind==="string"||h.kind==="number"||h.kind==="boolean"){a.push(h.kind);const y=i.N;(typeof y=="number"||this.args.length>1)&&a.push(y)}}return a.concat(this.args.map(h=>h.serialize()))}}class Du{constructor(i){this.type=Iu,this.sections=i}static parse(i,a){if(i.length<2)return a.error("Expected at least one argument.");const h=i[1];if(!Array.isArray(h)&&typeof h=="object")return a.error("First argument must be an image or text section.");const y=[];let f=!1;for(let _=1;_<=i.length-1;++_){const w=i[_];if(f&&typeof w=="object"&&!Array.isArray(w)){f=!1;let D=null;if(w["font-scale"]&&(D=a.parseObjectValue(w["font-scale"],_,"font-scale",gn),!D))return null;let N=null;if(w["text-font"]&&(N=a.parseObjectValue(w["text-font"],_,"text-font",Fo(ci)),!N))return null;let b=null;if(w["text-color"]&&(b=a.parseObjectValue(w["text-color"],_,"text-color",es),!b))return null;const T=y[y.length-1];T.scale=D,T.font=N,T.textColor=b}else{const D=a.parse(i[_],_,fi);if(!D)return null;const N=D.type.kind;if(N!=="string"&&N!=="value"&&N!=="null"&&N!=="resolvedImage")return a.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");f=!0,y.push({content:D,scale:null,font:null,textColor:null})}}return new Du(y)}evaluate(i){return new Co(this.sections.map(a=>{const h=a.content.evaluate(i);return Lr(h)===Tu?new ds("",h,null,null,null):new ds($o(h),null,a.scale?a.scale.evaluate(i):null,a.font?a.font.evaluate(i).join(","):null,a.textColor?a.textColor.evaluate(i):null)}))}eachChild(i){for(const a of this.sections)i(a.content),a.scale&&i(a.scale),a.font&&i(a.font),a.textColor&&i(a.textColor)}outputDefined(){return!1}serialize(){const i=["format"];for(const a of this.sections){i.push(a.content.serialize());const h={};a.scale&&(h["font-scale"]=a.scale.serialize()),a.font&&(h["text-font"]=a.font.serialize()),a.textColor&&(h["text-color"]=a.textColor.serialize()),i.push(h)}return i}}class mc{constructor(i,a){this.type=Tu,this.inputPrimary=i,this.inputSecondary=a}static parse(i,a){if(i.length<2)return a.error("Expected two or more arguments.");const h=a.parse(i[1],1,ci);if(!h)return a.error("No image name provided.");if(i.length===2)return new mc(h);const y=a.parse(i[2],1,ci);return y?new mc(h,y):a.error("Secondary image variant is not a string.")}evaluate(i){const a=Vo.fromString(this.inputPrimary.evaluate(i),this.inputSecondary?this.inputSecondary.evaluate(i):void 0);return a&&i.availableImages&&(a.available=i.availableImages.indexOf(a.namePrimary)>-1,a.nameSecondary&&a.available&&i.availableImages&&(a.available=i.availableImages.indexOf(a.nameSecondary)>-1)),a}eachChild(i){i(this.inputPrimary),this.inputSecondary&&i(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function gc(u){return u instanceof Number?"number":u instanceof String?"string":u instanceof Boolean?"boolean":Array.isArray(u)?"array":u===null?"null":typeof u}const Sp={"to-boolean":ui,"to-color":es,"to-number":gn,"to-string":ci};class Ya{constructor(i,a){this.type=i,this.args=a}static parse(i,a){if(i.length<2)return a.error("Expected at least one argument.");const h=i[0],y=[];let f=Js;if(h==="to-array"){if(!Array.isArray(i[1]))return null;const _=i[1].length;if(a.expectedType){if(a.expectedType.kind!=="array")return a.error(`Expected ${a.expectedType.kind} but found array.`);f=Fo(a.expectedType.itemType,_)}else{if(!(_>0&&Sl(i[1][0])))return null;f=Fo(Lr(i[1][0]),_)}for(let w=0;w<_;w++){const D=i[1][w];let N;if(gc(D)==="array")N=a.parse(D,void 0,f.itemType);else{const b=gc(D);if(b!==f.itemType.kind)return a.error(`Expected ${f.itemType.kind} but found ${b}.`);N=a.registry.literal.parse(["literal",D===void 0?null:D],a)}if(!N)return null;y.push(N)}}else{if((h==="to-boolean"||h==="to-string")&&i.length!==2)return a.error("Expected one argument.");f=Sp[h];for(let _=1;_<i.length;_++){const w=a.parse(i[_],_,fi);if(!w)return null;y.push(w)}}return new Ya(f,y)}evaluate(i){if(this.type.kind==="boolean")return!!this.args[0].evaluate(i);if(this.type.kind==="color"){let a,h;for(const y of this.args){if(a=y.evaluate(i),h=null,a instanceof Ci)return a;if(typeof a=="string"){const f=i.parseColor(a);if(f)return f}else if(Array.isArray(a)&&(h=a.length<3||a.length>4?`Invalid rbga value ${JSON.stringify(a)}: expected an array containing either three or four numeric values.`:xb(a[0],a[1],a[2],a[3]),!h))return new Ci(a[0]/255,a[1]/255,a[2]/255,a[3])}throw new Xr(h||`Could not parse color from value '${typeof a=="string"?a:String(JSON.stringify(a))}'`)}if(this.type.kind==="number"){let a=null;for(const h of this.args){if(a=h.evaluate(i),a===null)return 0;const y=Number(a);if(!isNaN(y))return y}throw new Xr(`Could not convert ${JSON.stringify(a)} to number.`)}return this.type.kind==="formatted"?Co.fromString($o(this.args[0].evaluate(i))):this.type.kind==="resolvedImage"?Vo.fromString($o(this.args[0].evaluate(i))):this.type.kind==="array"?this.args.map(a=>a.evaluate(i)):$o(this.args[0].evaluate(i))}eachChild(i){this.args.forEach(i)}outputDefined(){return this.args.every(i=>i.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Du([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new mc(this.args[0]).serialize();const i=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(a=>{i.push(a.serialize())}),i}}const rE=["Unknown","Point","LineString","Polygon"];class bb{constructor(i,a){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=i,this.options=a}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?rE[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(i){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const i=this.featureDistanceData.center,a=this.featureDistanceData.scale,{x:h,y}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(h*a-i[0])+this.featureDistanceData.bearing[1]*(y*a-i[1])}return 0}parseColor(i){let a=this._parseColorCache[i];return a||(a=this._parseColorCache[i]=Ci.parse(i)),a}getConfig(i){return this.options?this.options.get(i):null}}class ts{constructor(i,a,h,y,f){this.name=i,this.type=a,this._evaluate=h,this.args=y,this._overloadIndex=f}evaluate(i){if(!this._evaluate){const a=ts.definitions[this.name];this._evaluate=Array.isArray(a)?a[2]:a.overloads[this._overloadIndex][1]}return this._evaluate(i,this.args)}eachChild(i){this.args.forEach(i)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(i=>i.serialize()))}static parse(i,a){const h=i[0],y=ts.definitions[h];if(!y)return a.error(`Unknown expression "${h}". If you wanted a literal array, use ["literal", [...]].`,0);const f=Array.isArray(y)?y[0]:y.type,_=Array.isArray(y)?[[y[1],y[2]]]:y.overloads,w=[];let D=null,N=-1;for(const[b,T]of _){if(Array.isArray(b)&&b.length!==i.length-1)continue;w.push(b),N++,D=new zb(a.registry,a.path,null,a.scope,void 0,a._scope,a.options);const A=[];let S=!1;for(let C=1;C<i.length;C++){const k=i[C],P=Array.isArray(b)?b[C-1]:b.type,V=D.parse(k,1+A.length,P);if(!V){S=!0;break}A.push(V)}if(!S)if(Array.isArray(b)&&b.length!==A.length)D.error(`Expected ${b.length} arguments, but found ${A.length} instead.`);else{for(let C=0;C<A.length;C++){const k=Array.isArray(b)?b[C]:b.type,P=A[C];D.concat(C+1).checkSubtype(k,P.type)}if(D.errors.length===0)return new ts(h,f,T,A,N)}}if(w.length===1)a.errors.push(...D.errors);else{const b=(w.length?w:_.map(([A])=>A)).map(oE).join(" | "),T=[];for(let A=1;A<i.length;A++){const S=a.parse(i[A],1+T.length);if(!S)return null;T.push(vr(S.type))}a.error(`Expected arguments of type ${b}, but found (${T.join(", ")}) instead.`)}return null}static register(i,a){ts.definitions=a;for(const h in a)i[h]=ts}}function oE(u){return Array.isArray(u)?`(${u.map(vr).join(", ")})`:`(${vr(u.type)}...)`}class Ep{constructor(i,a,h){this.type=Ip,this.locale=h,this.caseSensitive=i,this.diacriticSensitive=a}static parse(i,a){if(i.length!==2)return a.error("Expected one argument.");const h=i[1];if(typeof h!="object"||Array.isArray(h))return a.error("Collator options argument must be an object.");const y=h["case-sensitive"]===void 0?a.parse(!1,1,ui):a.parseObjectValue(h["case-sensitive"],1,"case-sensitive",ui);if(!y)return null;const f=h["diacritic-sensitive"]===void 0?a.parse(!1,1,ui):a.parseObjectValue(h["diacritic-sensitive"],1,"diacritic-sensitive",ui);if(!f)return null;let _=null;return h.locale&&(_=a.parseObjectValue(h.locale,1,"locale",ci),!_)?null:new Ep(y,f,_)}evaluate(i){return new Tp(this.caseSensitive.evaluate(i),this.diacriticSensitive.evaluate(i),this.locale?this.locale.evaluate(i):null)}eachChild(i){i(this.caseSensitive),i(this.diacriticSensitive),this.locale&&i(this.locale)}outputDefined(){return!1}serialize(){const i={};return i["case-sensitive"]=this.caseSensitive.serialize(),i["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(i.locale=this.locale.serialize()),["collator",i]}}function Mb(u,i,a=0,h=u.length-1,y=Au){for(;h>a;){if(h-a>600){const D=h-a+1,N=i-a+1,b=Math.log(D),T=.5*Math.exp(2*b/3),A=.5*Math.sqrt(b*T*(D-T)/D)*(N-D/2<0?-1:1);Mb(u,i,Math.max(a,Math.floor(i-N*T/D+A)),Math.min(h,Math.floor(i+(D-N)*T/D+A)),y)}const f=u[i];let _=a,w=h;for(Cu(u,a,i),y(u[h],f)>0&&Cu(u,a,h);_<w;){for(Cu(u,_,w),_++,w--;y(u[_],f)<0;)_++;for(;y(u[w],f)>0;)w--}y(u[a],f)===0?Cu(u,a,w):(w++,Cu(u,w,h)),w<=i&&(a=w+1),i<=w&&(h=w-1)}}function Cu(u,i,a){const h=u[i];u[i]=u[a],u[a]=h}function Au(u,i){return u<i?-1:u>i?1:0}function sE(u){let i=0;for(let a,h,y=0,f=u.length,_=f-1;y<f;_=y++)a=u[y],h=u[_],i+=(h.x-a.x)*(a.y+h.y);return i}function nd(u,i){u[0]=Math.min(u[0],i[0]),u[1]=Math.min(u[1],i[1]),u[2]=Math.max(u[2],i[0]),u[3]=Math.max(u[3],i[1])}function yc(u,i){return!(u[0]<=i[0]||u[2]>=i[2]||u[1]<=i[1]||u[3]>=i[3])}function aE(u,i,a){const h=u[0]-i[0],y=u[1]-i[1],f=u[0]-a[0],_=u[1]-a[1];return h*_-f*y==0&&h*f<=0&&y*_<=0}function Nu(u,i,a=!1){let h=!1;for(let w=0,D=i.length;w<D;w++){const N=i[w];for(let b=0,T=N.length,A=T-1;b<T;A=b++){const S=N[A],C=N[b];if(aE(u,S,C))return a;(f=S)[1]>(y=u)[1]!=(_=C)[1]>y[1]&&y[0]<(_[0]-f[0])*(y[1]-f[1])/(_[1]-f[1])+f[0]&&(h=!h)}}var y,f,_;return h}function wb(u,i,a,h){const y=h[0]-a[0],f=h[1]-a[1],_=(u[0]-a[0])*f-y*(u[1]-a[1]),w=(i[0]-a[0])*f-y*(i[1]-a[1]);return _>0&&w<0||_<0&&w>0}function Dp(u,i,a,h){return(y=[h[0]-a[0],h[1]-a[1]])[0]*(f=[i[0]-u[0],i[1]-u[1]])[1]-y[1]*f[0]!=0&&!(!wb(u,i,a,h)||!wb(a,h,u,i));var y,f}const fs=8192;function oi(u,i){const a=(180+u[0])/360,h=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+u[1]*Math.PI/360)))/360,y=Math.pow(2,i.z);return[Math.round(a*y*fs),Math.round(h*y*fs)]}function En(u,i){for(let a=0;a<i.length;a++)if(Nu(u,i[a]))return!0;return!1}function U1(u,i,a){for(const h of a)for(let y=0,f=h.length,_=f-1;y<f;_=y++)if(Dp(u,i,h[_],h[y]))return!0;return!1}function Qn(u,i){for(let a=0;a<u.length;++a)if(!Nu(u[a],i))return!1;for(let a=0;a<u.length-1;++a)if(U1(u[a],u[a+1],i))return!1;return!0}function B1(u,i){for(let a=0;a<i.length;a++)if(Qn(u,i[a]))return!0;return!1}function id(u,i,a){const h=[];for(let y=0;y<u.length;y++){const f=[];for(let _=0;_<u[y].length;_++){const w=oi(u[y][_],a);nd(i,w),f.push(w)}h.push(f)}return h}function Un(u,i,a){const h=[];for(let y=0;y<u.length;y++){const f=id(u[y],i,a);h.push(f)}return h}function F1(u,i,a,h){if(u[0]<a[0]||u[0]>a[2]){const y=.5*h;let f=u[0]-a[0]>y?-h:a[0]-u[0]>y?h:0;f===0&&(f=u[0]-a[2]>y?-h:a[2]-u[0]>y?h:0),u[0]+=f}nd(i,u)}function Cp(u,i,a,h){const y=Math.pow(2,h.z)*fs,f=[h.x*fs,h.y*fs],_=[];if(!u)return _;for(const w of u)for(const D of w){const N=[D.x+f[0],D.y+f[1]];F1(N,i,a,y),_.push(N)}return _}function V1(u,i,a,h){const y=Math.pow(2,h.z)*fs,f=[h.x*fs,h.y*fs],_=[];if(!u)return _;for(const D of u){const N=[];for(const b of D){const T=[b.x+f[0],b.y+f[1]];nd(i,T),N.push(T)}_.push(N)}if(i[2]-i[0]<=y/2){(w=i)[0]=w[1]=1/0,w[2]=w[3]=-1/0;for(const D of _)for(const N of D)F1(N,i,a,y)}var w;return _}class El{constructor(i,a){this.type=ui,this.geojson=i,this.geometries=a}static parse(i,a){if(i.length!==2)return a.error(`'within' expression requires exactly one argument, but found ${i.length-1} instead.`);if(Sl(i[1])){const h=i[1];if(h.type==="FeatureCollection")for(let y=0;y<h.features.length;++y){const f=h.features[y].geometry.type;if(f==="Polygon"||f==="MultiPolygon")return new El(h,h.features[y].geometry)}else if(h.type==="Feature"){const y=h.geometry.type;if(y==="Polygon"||y==="MultiPolygon")return new El(h,h.geometry)}else if(h.type==="Polygon"||h.type==="MultiPolygon")return new El(h,h)}return a.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(i){if(i.geometry()!=null&&i.canonicalID()!=null){if(i.geometryType()==="Point")return function(a,h){const y=[1/0,1/0,-1/0,-1/0],f=[1/0,1/0,-1/0,-1/0],_=a.canonicalID();if(!_)return!1;if(h.type==="Polygon"){const w=id(h.coordinates,f,_),D=Cp(a.geometry(),y,f,_);if(!yc(y,f))return!1;for(const N of D)if(!Nu(N,w))return!1}if(h.type==="MultiPolygon"){const w=Un(h.coordinates,f,_),D=Cp(a.geometry(),y,f,_);if(!yc(y,f))return!1;for(const N of D)if(!En(N,w))return!1}return!0}(i,this.geometries);if(i.geometryType()==="LineString")return function(a,h){const y=[1/0,1/0,-1/0,-1/0],f=[1/0,1/0,-1/0,-1/0],_=a.canonicalID();if(!_)return!1;if(h.type==="Polygon"){const w=id(h.coordinates,f,_),D=V1(a.geometry(),y,f,_);if(!yc(y,f))return!1;for(const N of D)if(!Qn(N,w))return!1}if(h.type==="MultiPolygon"){const w=Un(h.coordinates,f,_),D=V1(a.geometry(),y,f,_);if(!yc(y,f))return!1;for(const N of D)if(!B1(N,w))return!1}return!0}(i,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const _c={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},_o=1/298.257223563,Ap=_o*(2-_o),Lu=Math.PI/180;class zu{static fromTile(i,a,h){const y=Math.PI*(1-2*(i+.5)/Math.pow(2,a)),f=Math.atan(.5*(Math.exp(y)-Math.exp(-y)))/Lu;return new zu(f,h)}static get units(){return _c}constructor(i,a){if(i===void 0)throw new Error("No latitude given.");if(a&&!_c[a])throw new Error(`Unknown unit ${a}. Use one of: ${Object.keys(_c).join(", ")}`);const h=6378.137*Lu*(a?_c[a]:1),y=Math.cos(i*Lu),f=1/(1-Ap*(1-y*y)),_=Math.sqrt(f);this.kx=h*_*y,this.ky=h*_*f*(1-Ap)}distance(i,a){const h=hr(i[0]-a[0])*this.kx,y=(i[1]-a[1])*this.ky;return Math.sqrt(h*h+y*y)}bearing(i,a){const h=hr(a[0]-i[0])*this.kx;return Math.atan2(h,(a[1]-i[1])*this.ky)/Lu}destination(i,a,h){const y=h*Lu;return this.offset(i,Math.sin(y)*a,Math.cos(y)*a)}offset(i,a,h){return[i[0]+a/this.kx,i[1]+h/this.ky]}lineDistance(i){let a=0;for(let h=0;h<i.length-1;h++)a+=this.distance(i[h],i[h+1]);return a}area(i){let a=0;for(let h=0;h<i.length;h++){const y=i[h];for(let f=0,_=y.length,w=_-1;f<_;w=f++)a+=hr(y[f][0]-y[w][0])*(y[f][1]+y[w][1])*(h?-1:1)}return Math.abs(a)/2*this.kx*this.ky}along(i,a){let h=0;if(a<=0)return i[0];for(let y=0;y<i.length-1;y++){const f=i[y],_=i[y+1],w=this.distance(f,_);if(h+=w,h>a)return Ga(f,_,(a-(h-w))/w)}return i[i.length-1]}pointToSegmentDistance(i,a,h){let[y,f]=a,_=hr(h[0]-y)*this.kx,w=(h[1]-f)*this.ky;if(_!==0||w!==0){const D=(hr(i[0]-y)*this.kx*_+(i[1]-f)*this.ky*w)/(_*_+w*w);D>1?(y=h[0],f=h[1]):D>0&&(y+=_/this.kx*D,f+=w/this.ky*D)}return _=hr(i[0]-y)*this.kx,w=(i[1]-f)*this.ky,Math.sqrt(_*_+w*w)}pointOnLine(i,a){let h=1/0,y=i[0][0],f=i[0][1],_=0,w=0;for(let D=0;D<i.length-1;D++){let N=i[D][0],b=i[D][1],T=hr(i[D+1][0]-N)*this.kx,A=(i[D+1][1]-b)*this.ky,S=0;T===0&&A===0||(S=(hr(a[0]-N)*this.kx*T+(a[1]-b)*this.ky*A)/(T*T+A*A),S>1?(N=i[D+1][0],b=i[D+1][1]):S>0&&(N+=T/this.kx*S,b+=A/this.ky*S)),T=hr(a[0]-N)*this.kx,A=(a[1]-b)*this.ky;const C=T*T+A*A;C<h&&(h=C,y=N,f=b,_=D,w=S)}return{point:[y,f],index:_,t:Math.max(0,Math.min(1,w))}}lineSlice(i,a,h){let y=this.pointOnLine(h,i),f=this.pointOnLine(h,a);if(y.index>f.index||y.index===f.index&&y.t>f.t){const N=y;y=f,f=N}const _=[y.point],w=y.index+1,D=f.index;!Np(h[w],_[0])&&w<=D&&_.push(h[w]);for(let N=w+1;N<=D;N++)_.push(h[N]);return Np(h[D],f.point)||_.push(f.point),_}lineSliceAlong(i,a,h){let y=0;const f=[];for(let _=0;_<h.length-1;_++){const w=h[_],D=h[_+1],N=this.distance(w,D);if(y+=N,y>i&&f.length===0&&f.push(Ga(w,D,(i-(y-N))/N)),y>=a)return f.push(Ga(w,D,(a-(y-N))/N)),f;y>i&&f.push(D)}return f}bufferPoint(i,a){const h=a/this.ky,y=a/this.kx;return[i[0]-y,i[1]-h,i[0]+y,i[1]+h]}bufferBBox(i,a){const h=a/this.ky,y=a/this.kx;return[i[0]-y,i[1]-h,i[2]+y,i[3]+h]}insideBBox(i,a){return hr(i[0]-a[0])>=0&&hr(i[0]-a[2])<=0&&i[1]>=a[1]&&i[1]<=a[3]}}function Np(u,i){return u[0]===i[0]&&u[1]===i[1]}function Ga(u,i,a){const h=hr(i[0]-u[0]);return[u[0]+h*a,u[1]+(i[1]-u[1])*a]}function hr(u){for(;u<-180;)u+=360;for(;u>180;)u-=360;return u}class $1{constructor(i=[],a=(h,y)=>h<y?-1:h>y?1:0){if(this.data=i,this.length=this.data.length,this.compare=a,this.length>0)for(let h=(this.length>>1)-1;h>=0;h--)this._down(h)}push(i){this.data.push(i),this._up(this.length++)}pop(){if(this.length===0)return;const i=this.data[0],a=this.data.pop();return--this.length>0&&(this.data[0]=a,this._down(0)),i}peek(){return this.data[0]}_up(i){const{data:a,compare:h}=this,y=a[i];for(;i>0;){const f=i-1>>1,_=a[f];if(h(y,_)>=0)break;a[i]=_,i=f}a[i]=y}_down(i){const{data:a,compare:h}=this,y=this.length>>1,f=a[i];for(;i<y;){let _=1+(i<<1);const w=_+1;if(w<this.length&&h(a[w],a[_])<0&&(_=w),h(a[_],f)>=0)break;a[i]=a[_],i=_}a[i]=f}}var Xt=8192;function Ib(u,i){return i.dist-u.dist}const ku=100,Lp=50;function zp(u){const i=[1/0,1/0,-1/0,-1/0];if(i.length!==u.length)return!1;for(let a=0;a<i.length;a++)if(i[a]!==u[a])return!1;return!0}function kp(u){return u[1]-u[0]+1}function Za(u,i){const a=u[1]>=u[0]&&u[1]<i;return a||console.warn("Distance Expression: Index is out of range"),a}function H1(u,i){if(u[0]>u[1])return[null,null];const a=kp(u);if(i){if(a===2)return[u,null];const h=Math.floor(a/2);return[[u[0],u[0]+h],[u[0]+h,u[1]]]}{if(a===1)return[u,null];const h=Math.floor(a/2)-1;return[[u[0],u[0]+h],[u[0]+h+1,u[1]]]}}function ps(u,i){const a=[1/0,1/0,-1/0,-1/0];if(!Za(i,u.length))return a;for(let h=i[0];h<=i[1];++h)nd(a,u[h]);return a}function Op(u){const i=[1/0,1/0,-1/0,-1/0];for(let a=0;a<u.length;++a)for(let h=0;h<u[a].length;++h)nd(i,u[a][h]);return i}function Ou(u,i,a){if(zp(u)||zp(i))return NaN;let h=0,y=0;return u[2]<i[0]&&(h=i[0]-u[2]),u[0]>i[2]&&(h=u[0]-i[2]),u[1]>i[3]&&(y=u[1]-i[3]),u[3]<i[1]&&(y=i[1]-u[3]),a.distance([0,0],[h,y])}function Tb(u){return 360*u-180}function Sb(u){return 360/Math.PI*Math.atan(Math.exp((180-360*u)*Math.PI/180))-90}function ms(u,i){const a=Math.pow(2,i.z),h=(u.y/Xt+i.y)/a;return[Tb((u.x/Xt+i.x)/a),Sb(h)]}function Eb(u,i){const a=[];for(let h=0;h<u.length;++h)a.push(ms(u[h],i));return a}function Q1(u,i,a){const h=a.pointOnLine(i,u).point;return a.distance(u,h)}function Y1(u,i,a,h,y){const f=a.slice(h[0],h[1]+1);let _=1/0;for(let w=i[0];w<=i[1];++w)if((_=Math.min(_,Q1(u[w],f,y)))===0)return 0;return _}function jp(u,i,a,h,y){const f=Math.min(y.pointToSegmentDistance(u,a,h),y.pointToSegmentDistance(i,a,h)),_=Math.min(y.pointToSegmentDistance(a,u,i),y.pointToSegmentDistance(h,u,i));return Math.min(f,_)}function Db(u,i,a,h,y){if(!Za(i,u.length)||!Za(h,a.length))return NaN;let f=1/0;for(let _=i[0];_<i[1];++_)for(let w=h[0];w<h[1];++w){if(Dp(u[_],u[_+1],a[w],a[w+1]))return 0;f=Math.min(f,jp(u[_],u[_+1],a[w],a[w+1],y))}return f}function Cb(u,i,a,h,y){if(!Za(i,u.length)||!Za(h,a.length))return NaN;let f=1/0;for(let _=i[0];_<=i[1];++_)for(let w=h[0];w<=h[1];++w)if((f=Math.min(f,y.distance(u[_],a[w])))===0)return f;return f}function Ab(u,i,a){if(Nu(u,i,!0))return 0;let h=1/0;for(const y of i){const f=y.length;if(f<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(y[0]!==y[f-1]&&(h=Math.min(h,a.pointToSegmentDistance(u,y[f-1],y[0])))===0||(h=Math.min(h,Q1(u,y,a)))===0)return h}return h}function Nb(u,i,a,h){if(!Za(i,u.length))return NaN;for(let f=i[0];f<=i[1];++f)if(Nu(u[f],a,!0))return 0;let y=1/0;for(let f=i[0];f<i[1];++f)for(const _ of a)for(let w=0,D=_.length,N=D-1;w<D;N=w++){if(Dp(u[f],u[f+1],_[N],_[w]))return 0;y=Math.min(y,jp(u[f],u[f+1],_[N],_[w],h))}return y}function G1(u,i){for(const a of u)for(let h=0;h<=a.length-1;++h)if(Nu(a[h],i,!0))return!0;return!1}function Lb(u,i,a,h=1/0){const y=Op(u),f=Op(i);if(h!==1/0&&Ou(y,f,a)>=h)return h;if(yc(y,f)){if(G1(u,i))return 0}else if(G1(i,u))return 0;let _=h;for(const w of u)for(let D=0,N=w.length,b=N-1;D<N;b=D++)for(const T of i)for(let A=0,S=T.length,C=S-1;A<S;C=A++){if(Dp(w[b],w[D],T[C],T[A]))return 0;_=Math.min(_,jp(w[b],w[D],T[C],T[A],a))}return _}function rd(u,i,a,h,y,f,_){if(f===null||_===null)return;const w=Ou(ps(h,f),ps(y,_),a);w<i&&u.push({dist:w,range1:f,range2:_})}function Rp(u,i,a,h,y=1/0){let f=Math.min(h.distance(u[0],a[0][0]),y);if(f===0)return f;const _=new $1([{dist:0,range1:[0,u.length-1],range2:[0,0]}],Ib),w=i?Lp:ku,D=Op(a);for(;_.length;){const N=_.pop();if(N.dist>=f)continue;const b=N.range1;if(kp(b)<=w){if(!Za(b,u.length))return NaN;if(i){const T=Nb(u,b,a,h);if((f=Math.min(f,T))===0)return f}else for(let T=b[0];T<=b[1];++T){const A=Ab(u[T],a,h);if((f=Math.min(f,A))===0)return f}}else{const T=H1(b,i);if(T[0]!==null){const A=Ou(ps(u,T[0]),D,h);A<f&&_.push({dist:A,range1:T[0],range2:[0,0]})}if(T[1]!==null){const A=Ou(ps(u,T[1]),D,h);A<f&&_.push({dist:A,range1:T[1],range2:[0,0]})}}}return f}function od(u,i,a,h,y,f=1/0){let _=Math.min(f,y.distance(u[0],a[0]));if(_===0)return _;const w=new $1([{dist:0,range1:[0,u.length-1],range2:[0,a.length-1]}],Ib),D=i?Lp:ku,N=h?Lp:ku;for(;w.length;){const b=w.pop();if(b.dist>=_)continue;const T=b.range1,A=b.range2;if(kp(T)<=D&&kp(A)<=N){if(!Za(T,u.length)||!Za(A,a.length))return NaN;if(i&&h?_=Math.min(_,Db(u,T,a,A,y)):i||h?i&&!h?_=Math.min(_,Y1(a,A,u,T,y)):!i&&h&&(_=Math.min(_,Y1(u,T,a,A,y))):_=Math.min(_,Cb(u,T,a,A,y)),_===0)return _}else{const S=H1(T,i),C=H1(A,h);rd(w,_,y,u,a,S[0],C[0]),rd(w,_,y,u,a,S[0],C[1]),rd(w,_,y,u,a,S[1],C[0]),rd(w,_,y,u,a,S[1],C[1])}}return _}function ju(u,i,a,h,y=1/0){let f=y;const _=ps(u,[0,u.length-1]);for(const w of a)if(!(f!==1/0&&Ou(_,ps(w,[0,w.length-1]),h)>=f)&&(f=Math.min(f,od(u,i,w,!0,h,f)),f===0))return f;return f}function sd(u,i,a,h,y=1/0){let f=y;const _=ps(u,[0,u.length-1]);for(const w of a){if(f!==1/0&&Ou(_,Op(w),h)>=f)continue;const D=Rp(u,i,w,h,f);if(isNaN(D))return D;if((f=Math.min(f,D))===0)return f}return f}function Pp(u){return u==="Point"||u==="MultiPoint"||u==="LineString"||u==="MultiLineString"||u==="Polygon"||u==="MultiPolygon"}class Dl{constructor(i,a){this.type=gn,this.geojson=i,this.geometries=a}static parse(i,a){if(i.length!==2)return a.error(`'distance' expression requires either one argument, but found ' ${i.length-1} instead.`);if(Sl(i[1])){const h=i[1];if(h.type==="FeatureCollection"){for(let y=0;y<h.features.length;++y)if(Pp(h.features[y].geometry.type))return new Dl(h,h.features[y].geometry)}else if(h.type==="Feature"){if(Pp(h.geometry.type))return new Dl(h,h.geometry)}else if(Pp(h.type))return new Dl(h,h)}return a.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(i){const a=i.geometry(),h=i.canonicalID();if(a!=null&&h!=null){if(i.geometryType()==="Point")return function(y,f,_){const w=[];for(const N of y)for(const b of N)w.push(ms(b,f));const D=new zu(w[0][1],"meters");return _.type==="Point"||_.type==="MultiPoint"||_.type==="LineString"?od(w,!1,_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",D):_.type==="MultiLineString"?ju(w,!1,_.coordinates,D):_.type==="Polygon"||_.type==="MultiPolygon"?sd(w,!1,_.type==="Polygon"?[_.coordinates]:_.coordinates,D):null}(a,h,this.geometries);if(i.geometryType()==="LineString")return function(y,f,_){const w=[];for(const N of y){const b=[];for(const T of N)b.push(ms(T,f));w.push(b)}const D=new zu(w[0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return ju(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",w,D);if(_.type==="MultiLineString"){let N=1/0;for(let b=0;b<_.coordinates.length;b++){const T=ju(_.coordinates[b],!0,w,D,N);if(isNaN(T))return T;if((N=Math.min(N,T))===0)return N}return N}if(_.type==="Polygon"||_.type==="MultiPolygon"){let N=1/0;for(let b=0;b<w.length;b++){const T=sd(w[b],!0,_.type==="Polygon"?[_.coordinates]:_.coordinates,D,N);if(isNaN(T))return T;if((N=Math.min(N,T))===0)return N}return N}return null}(a,h,this.geometries);if(i.geometryType()==="Polygon")return function(y,f,_){const w=[];for(const N of function(b,T){const A=b.length;if(A<=1)return[b];const S=[];let C,k;for(let P=0;P<A;P++){const V=sE(b[P]);V!==0&&(b[P].area=Math.abs(V),k===void 0&&(k=V<0),k===V<0?(C&&S.push(C),C=[b[P]]):C.push(b[P]))}return C&&S.push(C),S}(y)){const b=[];for(let T=0;T<N.length;++T)b.push(Eb(N[T],f));w.push(b)}const D=new zu(w[0][0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return sd(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",w,D);if(_.type==="MultiLineString"){let N=1/0;for(let b=0;b<_.coordinates.length;b++){const T=sd(_.coordinates[b],!0,w,D,N);if(isNaN(T))return T;if((N=Math.min(N,T))===0)return N}return N}return _.type==="Polygon"||_.type==="MultiPolygon"?function(N,b,T){let A=1/0;for(const S of N)for(const C of b){const k=Lb(S,C,T,A);if(isNaN(k))return k;if((A=Math.min(A,k))===0)return A}return A}(_.type==="Polygon"?[_.coordinates]:_.coordinates,w,D):null}(a,h,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function Cl(u,i){switch(u){case"string":return $o(i);case"number":return+i;case"boolean":return!!i;case"color":return Ci.parse(i);case"formatted":return Co.fromString($o(i));case"resolvedImage":return Vo.fromString($o(i))}return i}function hi(u,i,a,h){return h!==void 0&&(u=h*Math.round(u/h)),i!==void 0&&u<i&&(u=i),a!==void 0&&u>a&&(u=a),u}class Ru{constructor(i,a,h){this.type=i,this.key=a,this.scope=h}static parse(i,a){let h=a.expectedType;if(h==null&&(h=fi),i.length<2||i.length>3)return a.error("Invalid number of arguments for 'config' expression.");const y=a.parse(i[1],1);if(!(y instanceof ea))return a.error("Key name of 'config' expression must be a string literal.");if(i.length>=3){const f=a.parse(i[2],2);return f instanceof ea?new Ru(h,$o(y.value),$o(f.value)):a.error("Scope of 'config' expression must be a string literal.")}return new Ru(h,$o(y.value))}evaluate(i){const a=[this.key,this.scope,i.scope].filter(Boolean).join(""),h=i.getConfig(a);if(!h)return null;const{type:y,value:f,values:_,minValue:w,maxValue:D,stepValue:N}=h,b=h.default.evaluate(i);let T=b;if(f){const A=i.scope;i.scope=(A||"").split("").slice(1).join(""),T=f.evaluate(i),i.scope=A}return y&&(T=Cl(y,T)),T===void 0||w===void 0&&D===void 0&&N===void 0||(typeof T=="number"?T=hi(T,w,D,N):Array.isArray(T)&&(T=T.map(A=>typeof A=="number"?hi(A,w,D,N):A))),f!==void 0&&T!==void 0&&_&&!_.includes(T)&&(T=b,y&&(T=Cl(y,T))),(y&&y!==this.type||T!==void 0&&Lr(T)!==this.type)&&(T=Cl(this.type.kind,T)),T}eachChild(){}outputDefined(){return!1}serialize(){const i=["config",this.key];return this.scope&&i.concat(this.key),i}}function ad(u){if(u instanceof ts&&(u.name==="get"&&u.args.length===1||u.name==="feature-state"||u.name==="has"&&u.args.length===1||u.name==="properties"||u.name==="geometry-type"||u.name==="id"||/^filter-/.test(u.name))||u instanceof El||u instanceof Dl)return!1;let i=!0;return u.eachChild(a=>{i&&!ad(a)&&(i=!1)}),i}function Up(u){if(u instanceof ts&&u.name==="feature-state")return!1;let i=!0;return u.eachChild(a=>{i&&!Up(a)&&(i=!1)}),i}function Bp(u){if(u instanceof Ru)return new Set([u.key]);let i=new Set;return u.eachChild(a=>{i=new Set([...i,...Bp(a)])}),i}function ld(u,i){if(u instanceof ts&&i.indexOf(u.name)>=0)return!1;let a=!0;return u.eachChild(h=>{a&&!ld(h,i)&&(a=!1)}),a}class Fi{constructor(i,a){this.type=a.type,this.name=i,this.boundExpression=a}static parse(i,a){if(i.length!==2||typeof i[1]!="string")return a.error("'var' expression requires exactly one string literal argument.");const h=i[1];return a.scope.has(h)?new Fi(h,a.scope.get(h)):a.error(`Unknown variable "${h}". Make sure "${h}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(i){return this.boundExpression.evaluate(i)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Z1{constructor(i,a=[],h,y=new wp,f=[],_,w){this.registry=i,this.path=a,this.key=a.map(D=>typeof D=="string"?`['${D}']`:`[${D}]`).join(""),this.scope=y,this.errors=f,this.expectedType=h,this._scope=_,this.options=w}parse(i,a,h,y,f={}){return a||h?this.concat(a,null,h,y)._parse(i,f):this._parse(i,f)}parseObjectValue(i,a,h,y,f,_={}){return this.concat(a,h,y,f)._parse(i,_)}_parse(i,a){function h(y,f,_){return _==="assert"?new ta(f,[y]):_==="coerce"?new Ya(f,[y]):y}if(i!==null&&typeof i!="string"&&typeof i!="boolean"&&typeof i!="number"||(i=["literal",i]),Array.isArray(i)){if(i.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const y=typeof i[0]=="string"?this.registry[i[0]]:void 0;if(y){let f=y.parse(i,this);if(!f)return null;if(this.expectedType){const _=this.expectedType,w=f.type;if(_.kind!=="string"&&_.kind!=="number"&&_.kind!=="boolean"&&_.kind!=="object"&&_.kind!=="array"||w.kind!=="value")if(_.kind!=="color"&&_.kind!=="formatted"&&_.kind!=="resolvedImage"||w.kind!=="value"&&w.kind!=="string"){if(this.checkSubtype(_,w))return null}else f=h(f,_,a.typeAnnotation||"coerce");else f=h(f,_,a.typeAnnotation||"assert")}if(!(f instanceof ea)&&f.type.kind!=="resolvedImage"&&W1(f)){const _=new bb(this._scope,this.options);try{f=new ea(f.type,f.evaluate(_))}catch(w){return this.error(w.message),null}}return f}return Ya.parse(["to-array",i],this)}return this.error(i===void 0?"'undefined' value invalid. Use null instead.":typeof i=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof i} instead.`)}concat(i,a,h,y){let f=typeof i=="number"?this.path.concat(i):this.path;f=typeof a=="string"?f.concat(a):f;const _=y?this.scope.concat(y):this.scope;return new Z1(this.registry,f,h||null,_,this.errors,this._scope,this.options)}error(i,...a){const h=`${this.key}${a.map(y=>`[${y}]`).join("")}`;this.errors.push(new Ma(h,i))}checkSubtype(i,a){const h=Su(i,a);return h&&this.error(h),h}}var zb=Z1;function W1(u){if(u instanceof Fi)return W1(u.boundExpression);if(u instanceof ts&&u.name==="error"||u instanceof Ep||u instanceof El||u instanceof Dl||u instanceof Ru)return!1;const i=u instanceof Ya||u instanceof ta;let a=!0;return u.eachChild(h=>{a=i?a&&W1(h):a&&h instanceof ea}),!!a&&ad(u)&&ld(u,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function Fp(u,i){const a=u.length-1;let h,y,f=0,_=a,w=0;for(;f<=_;)if(w=Math.floor((f+_)/2),h=u[w],y=u[w+1],h<=i){if(w===a||i<y)return w;f=w+1}else{if(!(h>i))throw new Xr("Input is not a number.");_=w-1}return 0}class cd{constructor(i,a,h){this.type=i,this.input=a,this.labels=[],this.outputs=[];for(const[y,f]of h)this.labels.push(y),this.outputs.push(f)}static parse(i,a){if(i.length-1<4)return a.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if((i.length-1)%2!=0)return a.error("Expected an even number of arguments.");const h=a.parse(i[1],1,gn);if(!h)return null;const y=[];let f=null;a.expectedType&&a.expectedType.kind!=="value"&&(f=a.expectedType);for(let _=1;_<i.length;_+=2){const w=_===1?-1/0:i[_],D=i[_+1],N=_,b=_+1;if(typeof w!="number")return a.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',N);if(y.length&&y[y.length-1][0]>=w)return a.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',N);const T=a.parse(D,b,f);if(!T)return null;f=f||T.type,y.push([w,T])}return new cd(f,h,y)}evaluate(i){const a=this.labels,h=this.outputs;if(a.length===1)return h[0].evaluate(i);const y=this.input.evaluate(i);if(y<=a[0])return h[0].evaluate(i);const f=a.length;return y>=a[f-1]?h[f-1].evaluate(i):h[Fp(a,y)].evaluate(i)}eachChild(i){i(this.input);for(const a of this.outputs)i(a)}outputDefined(){return this.outputs.every(i=>i.outputDefined())}serialize(){const i=["step",this.input.serialize()];for(let a=0;a<this.labels.length;a++)a>0&&i.push(this.labels[a]),i.push(this.outputs[a].serialize());return i}}const kb=.95047,Ob=1.08883,jb=4/29,Pu=6/29,Rb=3*Pu*Pu,lE=Pu*Pu*Pu,cE=Math.PI/180,uE=180/Math.PI;function q1(u){return u>lE?Math.pow(u,1/3):u/Rb+jb}function K1(u){return u>Pu?u*u*u:Rb*(u-jb)}function X1(u){return 255*(u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055)}function J1(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}function Pb(u){const i=J1(u.r),a=J1(u.g),h=J1(u.b),y=q1((.4124564*i+.3575761*a+.1804375*h)/kb),f=q1((.2126729*i+.7151522*a+.072175*h)/1);return{l:116*f-16,a:500*(y-f),b:200*(f-q1((.0193339*i+.119192*a+.9503041*h)/Ob)),alpha:u.a}}function Ub(u){let i=(u.l+16)/116,a=isNaN(u.a)?i:i+u.a/500,h=isNaN(u.b)?i:i-u.b/200;return i=1*K1(i),a=kb*K1(a),h=Ob*K1(h),new Ci(X1(3.2404542*a-1.5371385*i-.4985314*h),X1(-.969266*a+1.8760108*i+.041556*h),X1(.0556434*a-.2040259*i+1.0572252*h),u.alpha)}function hE(u,i,a){const h=i-u;return u+a*(h>180||h<-180?h-360*Math.round(h/360):h)}const ud={forward:Pb,reverse:Ub,interpolate:function(u,i,a){return{l:Ln(u.l,i.l,a),a:Ln(u.a,i.a,a),b:Ln(u.b,i.b,a),alpha:Ln(u.alpha,i.alpha,a)}}},hd={forward:function(u){const{l:i,a,b:h}=Pb(u),y=Math.atan2(h,a)*uE;return{h:y<0?y+360:y,c:Math.sqrt(a*a+h*h),l:i,alpha:u.a}},reverse:function(u){const i=u.h*cE,a=u.c;return Ub({l:u.l,a:Math.cos(i)*a,b:Math.sin(i)*a,alpha:u.alpha})},interpolate:function(u,i,a){return{h:hE(u.h,i.h,a),c:Ln(u.c,i.c,a),l:Ln(u.l,i.l,a),alpha:Ln(u.alpha,i.alpha,a)}}};var Bb=Object.freeze({__proto__:null,hcl:hd,lab:ud});class gs{constructor(i,a,h,y,f){this.type=i,this.operator=a,this.interpolation=h,this.input=y,this.labels=[],this.outputs=[];for(const[_,w]of f)this.labels.push(_),this.outputs.push(w)}static interpolationFactor(i,a,h,y){let f=0;if(i.name==="exponential")f=e0(a,i.base,h,y);else if(i.name==="linear")f=e0(a,1,h,y);else if(i.name==="cubic-bezier"){const _=i.controlPoints;f=new Gt(_[0],_[1],_[2],_[3]).solve(e0(a,1,h,y))}return f}static parse(i,a){let[h,y,f,..._]=i;if(!Array.isArray(y)||y.length===0)return a.error("Expected an interpolation type expression.",1);if(y[0]==="linear")y={name:"linear"};else if(y[0]==="exponential"){const N=y[1];if(typeof N!="number")return a.error("Exponential interpolation requires a numeric base.",1,1);y={name:"exponential",base:N}}else{if(y[0]!=="cubic-bezier")return a.error(`Unknown interpolation type ${String(y[0])}`,1,0);{const N=y.slice(1);if(N.length!==4||N.some(b=>typeof b!="number"||b<0||b>1))return a.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);y={name:"cubic-bezier",controlPoints:N}}}if(i.length-1<4)return a.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if((i.length-1)%2!=0)return a.error("Expected an even number of arguments.");if(f=a.parse(f,2,gn),!f)return null;const w=[];let D=null;h==="interpolate-hcl"||h==="interpolate-lab"?D=es:a.expectedType&&a.expectedType.kind!=="value"&&(D=a.expectedType);for(let N=0;N<_.length;N+=2){const b=_[N],T=_[N+1],A=N+3,S=N+4;if(typeof b!="number")return a.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',A);if(w.length&&w[w.length-1][0]>=b)return a.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',A);const C=a.parse(T,S,D);if(!C)return null;D=D||C.type,w.push([b,C])}return D.kind==="number"||D.kind==="color"||D.kind==="array"&&D.itemType.kind==="number"&&typeof D.N=="number"?new gs(D,h,y,f,w):a.error(`Type ${vr(D)} is not interpolatable.`)}evaluate(i){const a=this.labels,h=this.outputs;if(a.length===1)return h[0].evaluate(i);const y=this.input.evaluate(i);if(y<=a[0])return h[0].evaluate(i);const f=a.length;if(y>=a[f-1])return h[f-1].evaluate(i);const _=Fp(a,y),w=gs.interpolationFactor(this.interpolation,y,a[_],a[_+1]),D=h[_].evaluate(i),N=h[_+1].evaluate(i);return this.operator==="interpolate"?pc[this.type.kind.toLowerCase()](D,N,w):this.operator==="interpolate-hcl"?hd.reverse(hd.interpolate(hd.forward(D),hd.forward(N),w)):ud.reverse(ud.interpolate(ud.forward(D),ud.forward(N),w))}eachChild(i){i(this.input);for(const a of this.outputs)i(a)}outputDefined(){return this.outputs.every(i=>i.outputDefined())}serialize(){let i;i=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const a=[this.operator,i,this.input.serialize()];for(let h=0;h<this.labels.length;h++)a.push(this.labels[h],this.outputs[h].serialize());return a}}function e0(u,i,a,h){const y=h-a,f=u-a;return y===0?0:i===1?f/y:(Math.pow(i,f)-1)/(Math.pow(i,y)-1)}class Vp{constructor(i,a){this.type=i,this.args=a}static parse(i,a){if(i.length<2)return a.error("Expectected at least one argument.");let h=null;const y=a.expectedType;y&&y.kind!=="value"&&(h=y);const f=[];for(const w of i.slice(1)){const D=a.parse(w,1+f.length,h,void 0,{typeAnnotation:"omit"});if(!D)return null;h=h||D.type,f.push(D)}const _=y&&f.some(w=>Su(y,w.type));return new Vp(_?fi:h,f)}evaluate(i){let a,h=null,y=0;for(const f of this.args){if(y++,h=f.evaluate(i),h&&h instanceof Vo&&!h.available&&(a||(a=h),h=null,y===this.args.length))return a;if(h!==null)break}return h}eachChild(i){this.args.forEach(i)}outputDefined(){return this.args.every(i=>i.outputDefined())}serialize(){const i=["coalesce"];return this.eachChild(a=>{i.push(a.serialize())}),i}}class $p{constructor(i,a){this.type=a.type,this.bindings=[].concat(i),this.result=a}evaluate(i){return this.result.evaluate(i)}eachChild(i){for(const a of this.bindings)i(a[1]);i(this.result)}static parse(i,a){if(i.length<4)return a.error(`Expected at least 3 arguments, but found ${i.length-1} instead.`);const h=[];for(let f=1;f<i.length-1;f+=2){const _=i[f];if(typeof _!="string")return a.error(`Expected string, but found ${typeof _} instead.`,f);if(/[^a-zA-Z0-9_]/.test(_))return a.error("Variable names must contain only alphanumeric characters or '_'.",f);const w=a.parse(i[f+1],f+1);if(!w)return null;h.push([_,w])}const y=a.parse(i[i.length-1],i.length-1,a.expectedType,h);return y?new $p(h,y):null}outputDefined(){return this.result.outputDefined()}serialize(){const i=["let"];for(const[a,h]of this.bindings)i.push(a,h.serialize());return i.push(this.result.serialize()),i}}class t0{constructor(i,a,h){this.type=i,this.index=a,this.input=h}static parse(i,a){if(i.length!==3)return a.error(`Expected 2 arguments, but found ${i.length-1} instead.`);const h=a.parse(i[1],1,gn),y=a.parse(i[2],2,Fo(a.expectedType||fi));return h&&y?new t0(y.type.itemType,h,y):null}evaluate(i){const a=this.index.evaluate(i),h=this.input.evaluate(i);if(a<0)throw new Xr(`Array index out of bounds: ${a} < 0.`);if(a>=h.length)throw new Xr(`Array index out of bounds: ${a} > ${h.length-1}.`);if(a!==Math.floor(a))throw new Xr(`Array index must be an integer, but found ${a} instead.`);return h[a]}eachChild(i){i(this.index),i(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class n0{constructor(i,a){this.type=ui,this.needle=i,this.haystack=a}static parse(i,a){if(i.length!==3)return a.error(`Expected 2 arguments, but found ${i.length-1} instead.`);const h=a.parse(i[1],1,fi),y=a.parse(i[2],2,fi);return h&&y?Eu(h.type,[ui,ci,gn,Js,fi])?new n0(h,y):a.error(`Expected first argument to be of type boolean, string, number or null, but found ${vr(h.type)} instead`):null}evaluate(i){const a=this.needle.evaluate(i),h=this.haystack.evaluate(i);if(h==null)return!1;if(!wa(a,["boolean","string","number","null"]))throw new Xr(`Expected first argument to be of type boolean, string, number or null, but found ${vr(Lr(a))} instead.`);if(!wa(h,["string","array"]))throw new Xr(`Expected second argument to be of type array or string, but found ${vr(Lr(h))} instead.`);return h.indexOf(a)>=0}eachChild(i){i(this.needle),i(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Hp{constructor(i,a,h){this.type=gn,this.needle=i,this.haystack=a,this.fromIndex=h}static parse(i,a){if(i.length<=2||i.length>=5)return a.error(`Expected 3 or 4 arguments, but found ${i.length-1} instead.`);const h=a.parse(i[1],1,fi),y=a.parse(i[2],2,fi);if(!h||!y)return null;if(!Eu(h.type,[ui,ci,gn,Js,fi]))return a.error(`Expected first argument to be of type boolean, string, number or null, but found ${vr(h.type)} instead`);if(i.length===4){const f=a.parse(i[3],3,gn);return f?new Hp(h,y,f):null}return new Hp(h,y)}evaluate(i){const a=this.needle.evaluate(i),h=this.haystack.evaluate(i);if(!wa(a,["boolean","string","number","null"]))throw new Xr(`Expected first argument to be of type boolean, string, number or null, but found ${vr(Lr(a))} instead.`);if(!wa(h,["string","array"]))throw new Xr(`Expected second argument to be of type array or string, but found ${vr(Lr(h))} instead.`);if(this.fromIndex){const y=this.fromIndex.evaluate(i);return h.indexOf(a,y)}return h.indexOf(a)}eachChild(i){i(this.needle),i(this.haystack),this.fromIndex&&i(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const i=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),i]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class i0{constructor(i,a,h,y,f,_){this.inputType=i,this.type=a,this.input=h,this.cases=y,this.outputs=f,this.otherwise=_}static parse(i,a){if(i.length<5)return a.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if(i.length%2!=1)return a.error("Expected an even number of arguments.");let h,y;a.expectedType&&a.expectedType.kind!=="value"&&(y=a.expectedType);const f={},_=[];for(let N=2;N<i.length-1;N+=2){let b=i[N];const T=i[N+1];Array.isArray(b)||(b=[b]);const A=a.concat(N);if(b.length===0)return A.error("Expected at least one branch label.");for(const C of b){if(typeof C!="number"&&typeof C!="string")return A.error("Branch labels must be numbers or strings.");if(typeof C=="number"&&Math.abs(C)>Number.MAX_SAFE_INTEGER)return A.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof C=="number"&&Math.floor(C)!==C)return A.error("Numeric branch labels must be integer values.");if(h){if(A.checkSubtype(h,Lr(C)))return null}else h=Lr(C);if(f[String(C)]!==void 0)return A.error("Branch labels must be unique.");f[String(C)]=_.length}const S=a.parse(T,N,y);if(!S)return null;y=y||S.type,_.push(S)}const w=a.parse(i[1],1,fi);if(!w)return null;const D=a.parse(i[i.length-1],i.length-1,y);return D?w.type.kind!=="value"&&a.concat(1).checkSubtype(h,w.type)?null:new i0(h,y,w,f,_,D):null}evaluate(i){const a=this.input.evaluate(i);return(Lr(a)===this.inputType&&this.outputs[this.cases[a]]||this.otherwise).evaluate(i)}eachChild(i){i(this.input),this.outputs.forEach(i),i(this.otherwise)}outputDefined(){return this.outputs.every(i=>i.outputDefined())&&this.otherwise.outputDefined()}serialize(){const i=["match",this.input.serialize()],a=Object.keys(this.cases).sort(),h=[],y={};for(const _ of a){const w=y[this.cases[_]];w===void 0?(y[this.cases[_]]=h.length,h.push([this.cases[_],[_]])):h[w][1].push(_)}const f=_=>this.inputType.kind==="number"?Number(_):_;for(const[_,w]of h)i.push(w.length===1?f(w[0]):w.map(f)),i.push(this.outputs[_].serialize());return i.push(this.otherwise.serialize()),i}}class dd{constructor(i,a,h){this.type=i,this.branches=a,this.otherwise=h}static parse(i,a){if(i.length<4)return a.error(`Expected at least 3 arguments, but found only ${i.length-1}.`);if(i.length%2!=0)return a.error("Expected an odd number of arguments.");let h;a.expectedType&&a.expectedType.kind!=="value"&&(h=a.expectedType);const y=[];for(let _=1;_<i.length-1;_+=2){const w=a.parse(i[_],_,ui);if(!w)return null;const D=a.parse(i[_+1],_+1,h);if(!D)return null;y.push([w,D]),h=h||D.type}const f=a.parse(i[i.length-1],i.length-1,h);return f?new dd(h,y,f):null}evaluate(i){for(const[a,h]of this.branches)if(a.evaluate(i))return h.evaluate(i);return this.otherwise.evaluate(i)}eachChild(i){for(const[a,h]of this.branches)i(a),i(h);i(this.otherwise)}outputDefined(){return this.branches.every(([i,a])=>a.outputDefined())&&this.otherwise.outputDefined()}serialize(){const i=["case"];return this.eachChild(a=>{i.push(a.serialize())}),i}}class Qp{constructor(i,a,h,y){this.type=i,this.input=a,this.beginIndex=h,this.endIndex=y}static parse(i,a){if(i.length<=2||i.length>=5)return a.error(`Expected 3 or 4 arguments, but found ${i.length-1} instead.`);const h=a.parse(i[1],1,fi),y=a.parse(i[2],2,gn);if(!h||!y)return null;if(!Eu(h.type,[Fo(fi),ci,fi]))return a.error(`Expected first argument to be of type array or string, but found ${vr(h.type)} instead`);if(i.length===4){const f=a.parse(i[3],3,gn);return f?new Qp(h.type,h,y,f):null}return new Qp(h.type,h,y)}evaluate(i){const a=this.input.evaluate(i),h=this.beginIndex.evaluate(i);if(!wa(a,["string","array"]))throw new Xr(`Expected first argument to be of type array or string, but found ${vr(Lr(a))} instead.`);if(this.endIndex){const y=this.endIndex.evaluate(i);return a.slice(h,y)}return a.slice(h)}eachChild(i){i(this.input),i(this.beginIndex),this.endIndex&&i(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const i=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),i]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function r0(u,i){return u==="=="||u==="!="?i.kind==="boolean"||i.kind==="string"||i.kind==="number"||i.kind==="null"||i.kind==="value":i.kind==="string"||i.kind==="number"||i.kind==="value"}function Fb(u,i,a,h){return h.compare(i,a)===0}function Uu(u,i,a){const h=u!=="=="&&u!=="!=";return class xF{constructor(f,_,w){this.type=ui,this.lhs=f,this.rhs=_,this.collator=w,this.hasUntypedArgument=f.type.kind==="value"||_.type.kind==="value"}static parse(f,_){if(f.length!==3&&f.length!==4)return _.error("Expected two or three arguments.");const w=f[0];let D=_.parse(f[1],1,fi);if(!D)return null;if(!r0(w,D.type))return _.concat(1).error(`"${w}" comparisons are not supported for type '${vr(D.type)}'.`);let N=_.parse(f[2],2,fi);if(!N)return null;if(!r0(w,N.type))return _.concat(2).error(`"${w}" comparisons are not supported for type '${vr(N.type)}'.`);if(D.type.kind!==N.type.kind&&D.type.kind!=="value"&&N.type.kind!=="value")return _.error(`Cannot compare types '${vr(D.type)}' and '${vr(N.type)}'.`);h&&(D.type.kind==="value"&&N.type.kind!=="value"?D=new ta(N.type,[D]):D.type.kind!=="value"&&N.type.kind==="value"&&(N=new ta(D.type,[N])));let b=null;if(f.length===4){if(D.type.kind!=="string"&&N.type.kind!=="string"&&D.type.kind!=="value"&&N.type.kind!=="value")return _.error("Cannot use collator to compare non-string types.");if(b=_.parse(f[3],3,Ip),!b)return null}return new xF(D,N,b)}evaluate(f){const _=this.lhs.evaluate(f),w=this.rhs.evaluate(f);if(h&&this.hasUntypedArgument){const D=Lr(_),N=Lr(w);if(D.kind!==N.kind||D.kind!=="string"&&D.kind!=="number")throw new Xr(`Expected arguments for "${u}" to be (string, string) or (number, number), but found (${D.kind}, ${N.kind}) instead.`)}if(this.collator&&!h&&this.hasUntypedArgument){const D=Lr(_),N=Lr(w);if(D.kind!=="string"||N.kind!=="string")return i(f,_,w)}return this.collator?a(f,_,w,this.collator.evaluate(f)):i(f,_,w)}eachChild(f){f(this.lhs),f(this.rhs),this.collator&&f(this.collator)}outputDefined(){return!0}serialize(){const f=[u];return this.eachChild(_=>{f.push(_.serialize())}),f}}}const dE=Uu("==",function(u,i,a){return i===a},Fb),Vb=Uu("!=",function(u,i,a){return i!==a},function(u,i,a,h){return!Fb(0,i,a,h)}),$b=Uu("<",function(u,i,a){return i<a},function(u,i,a,h){return h.compare(i,a)<0}),Bu=Uu(">",function(u,i,a){return i>a},function(u,i,a,h){return h.compare(i,a)>0}),Hb=Uu("<=",function(u,i,a){return i<=a},function(u,i,a,h){return h.compare(i,a)<=0}),Qb=Uu(">=",function(u,i,a){return i>=a},function(u,i,a,h){return h.compare(i,a)>=0});class o0{constructor(i,a,h,y,f,_){this.type=ci,this.number=i,this.locale=a,this.currency=h,this.unit=y,this.minFractionDigits=f,this.maxFractionDigits=_}static parse(i,a){if(i.length!==3)return a.error("Expected two arguments.");const h=a.parse(i[1],1,gn);if(!h)return null;const y=i[2];if(typeof y!="object"||Array.isArray(y))return a.error("NumberFormat options argument must be an object.");let f=null;if(y.locale&&(f=a.parseObjectValue(y.locale,2,"locale",ci),!f))return null;let _=null;if(y.currency&&(_=a.parseObjectValue(y.currency,2,"currency",ci),!_))return null;let w=null;if(y.unit&&(w=a.parseObjectValue(y.unit,2,"unit",ci),!w))return null;let D=null;if(y["min-fraction-digits"]&&(D=a.parseObjectValue(y["min-fraction-digits"],2,"min-fraction-digits",gn),!D))return null;let N=null;return y["max-fraction-digits"]&&(N=a.parseObjectValue(y["max-fraction-digits"],2,"max-fraction-digits",gn),!N)?null:new o0(h,f,_,w,D,N)}evaluate(i){return new Intl.NumberFormat(this.locale?this.locale.evaluate(i):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(i):void 0,unit:this.unit?this.unit.evaluate(i):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(i):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(i):void 0}).format(this.number.evaluate(i))}eachChild(i){i(this.number),this.locale&&i(this.locale),this.currency&&i(this.currency),this.unit&&i(this.unit),this.minFractionDigits&&i(this.minFractionDigits),this.maxFractionDigits&&i(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const i={};return this.locale&&(i.locale=this.locale.serialize()),this.currency&&(i.currency=this.currency.serialize()),this.unit&&(i.unit=this.unit.serialize()),this.minFractionDigits&&(i["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(i["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),i]}}class fd{constructor(i){this.type=gn,this.input=i}static parse(i,a){if(i.length!==2)return a.error(`Expected 1 argument, but found ${i.length-1} instead.`);const h=a.parse(i[1],1);return h?h.type.kind!=="array"&&h.type.kind!=="string"&&h.type.kind!=="value"?a.error(`Expected argument of type string or array, but found ${vr(h.type)} instead.`):new fd(h):null}evaluate(i){const a=this.input.evaluate(i);if(typeof a=="string"||Array.isArray(a))return a.length;throw new Xr(`Expected value to be of type string or array, but found ${vr(Lr(a))} instead.`)}eachChild(i){i(this.input)}outputDefined(){return!1}serialize(){const i=["length"];return this.eachChild(a=>{i.push(a.serialize())}),i}}function Yp(u){return function(){u=1831565813+(u|=0)|0;let i=Math.imul(u^u>>>15,1|u);return i=i+Math.imul(i^i>>>7,61|i)^i,((i^i>>>14)>>>0)/4294967296}}const Fu={"==":dE,"!=":Vb,">":Bu,"<":$b,">=":Qb,"<=":Hb,array:ta,at:t0,boolean:ta,case:dd,coalesce:Vp,collator:Ep,format:Du,image:mc,in:n0,"index-of":Hp,interpolate:gs,"interpolate-hcl":gs,"interpolate-lab":gs,length:fd,let:$p,literal:ea,match:i0,number:ta,"number-format":o0,object:ta,slice:Qp,step:cd,string:ta,"to-boolean":Ya,"to-color":Ya,"to-number":Ya,"to-string":Ya,var:Fi,within:El,distance:Dl,config:Ru};function Yb(u,[i,a,h,y]){i=i.evaluate(u),a=a.evaluate(u),h=h.evaluate(u);const f=y?y.evaluate(u):1,_=xb(i,a,h,f);if(_)throw new Xr(_);return new Ci(i/255*f,a/255*f,h/255*f,f)}function s0(u,[i,a,h,y]){i=i.evaluate(u),a=a.evaluate(u),h=h.evaluate(u);const f=y?y.evaluate(u):1,_=function(N,b,T,A){return typeof N=="number"&&N>=0&&N<=360?typeof b=="number"&&b>=0&&b<=100&&typeof T=="number"&&T>=0&&T<=100?A===void 0||typeof A=="number"&&A>=0&&A<=1?null:`Invalid hsla value [${[N,b,T,A].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof A=="number"?[N,b,T,A]:[N,b,T]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof A=="number"?[N,b,T,A]:[N,b,T]).join(", ")}]: 'h' must be between 0 and 360.`}(i,a,h,f);if(_)throw new Xr(_);const w=`hsla(${i}, ${a}%, ${h}%, ${f})`,D=Ci.parse(w);if(!D)throw new Xr(`Failed to parse HSLA color: ${w}`);return D}function a0(u,i){return u in i}function l0(u,i){const a=i[u];return a===void 0?null:a}function vc(u){return{type:u}}function Gb(u){return{result:"success",value:u}}function Al(u){return{result:"error",value:u}}function c0(u,i){return!!u&&!!u.parameters&&u.parameters.indexOf(i)>-1}function Gp(u){return u["property-type"]==="data-driven"}function u0(u){return c0(u.expression,"measure-light")}function Zb(u){return c0(u.expression,"zoom")}function h0(u){return!!u.expression&&u.expression.interpolated}function Zp(u){return typeof u=="object"&&u!==null&&!Array.isArray(u)}function Wb(u){return u}function qb(u,i){const a=i.type==="color",h=u.stops&&typeof u.stops[0][0]=="object",y=h||!(h||u.property!==void 0),f=u.type||(h0(i)?"exponential":"interval");if(a&&((u=wu({},u)).stops&&(u.stops=u.stops.map(N=>[N[0],Ci.parse(N[1])])),u.default=Ci.parse(u.default?u.default:i.default)),u.colorSpace&&u.colorSpace!=="rgb"&&!Bb[u.colorSpace])throw new Error(`Unknown color space: ${u.colorSpace}`);let _,w,D;if(f==="exponential")_=Xb;else if(f==="interval")_=Kb;else if(f==="categorical"){_=fE,w=Object.create(null);for(const N of u.stops)w[N[0]]=N[1];D=typeof u.stops[0][0]}else{if(f!=="identity")throw new Error(`Unknown function type "${f}"`);_=pE}if(h){const N={},b=[];for(let S=0;S<u.stops.length;S++){const C=u.stops[S],k=C[0].zoom;N[k]===void 0&&(N[k]={zoom:k,type:u.type,property:u.property,default:u.default,stops:[]},b.push(k)),N[k].stops.push([C[0].value,C[1]])}const T=[];for(const S of b)T.push([N[S].zoom,qb(N[S],i)]);const A={name:"linear"};return{kind:"composite",interpolationType:A,interpolationFactor:gs.interpolationFactor.bind(void 0,A),zoomStops:T.map(S=>S[0]),evaluate:({zoom:S},C)=>Xb({stops:T,base:u.base},i,S).evaluate(S,C)}}if(y){const N=f==="exponential"?{name:"exponential",base:u.base!==void 0?u.base:1}:null;return{kind:"camera",interpolationType:N,interpolationFactor:gs.interpolationFactor.bind(void 0,N),zoomStops:u.stops.map(b=>b[0]),evaluate:({zoom:b})=>_(u,i,b,w,D)}}return{kind:"source",evaluate(N,b){const T=b&&b.properties?b.properties[u.property]:void 0;return T===void 0?pd(u.default,i.default):_(u,i,T,w,D)}}}function pd(u,i,a){return u!==void 0?u:i!==void 0?i:a!==void 0?a:void 0}function fE(u,i,a,h,y){return pd(typeof a===y?h[a]:void 0,u.default,i.default)}function Kb(u,i,a){if(gc(a)!=="number")return pd(u.default,i.default);const h=u.stops.length;if(h===1||a<=u.stops[0][0])return u.stops[0][1];if(a>=u.stops[h-1][0])return u.stops[h-1][1];const y=Fp(u.stops.map(f=>f[0]),a);return u.stops[y][1]}function Xb(u,i,a){const h=u.base!==void 0?u.base:1;if(gc(a)!=="number")return pd(u.default,i.default);const y=u.stops.length;if(y===1||a<=u.stops[0][0])return u.stops[0][1];if(a>=u.stops[y-1][0])return u.stops[y-1][1];const f=Fp(u.stops.map(b=>b[0]),a),_=function(b,T,A,S){const C=S-A,k=b-A;return C===0?0:T===1?k/C:(Math.pow(T,k)-1)/(Math.pow(T,C)-1)}(a,h,u.stops[f][0],u.stops[f+1][0]),w=u.stops[f][1],D=u.stops[f+1][1];let N=pc[i.type]||Wb;if(u.colorSpace&&u.colorSpace!=="rgb"){const b=Bb[u.colorSpace];N=(T,A)=>b.reverse(b.interpolate(b.forward(T),b.forward(A),_))}return typeof w.evaluate=="function"?{evaluate(...b){const T=w.evaluate.apply(void 0,b),A=D.evaluate.apply(void 0,b);if(T!==void 0&&A!==void 0)return N(T,A,_)}}:N(w,D,_)}function pE(u,i,a){return i.type==="color"?a=Ci.parse(a):i.type==="formatted"?a=Co.fromString(a.toString()):i.type==="resolvedImage"?a=Vo.fromString(a.toString()):gc(a)===i.type||i.type==="enum"&&i.values[a]||(a=void 0),pd(a,u.default,i.default)}ts.register(Fu,{error:[{kind:"error"},[ci],(u,[i])=>{throw new Xr(i.evaluate(u))}],typeof:[ci,[fi],(u,[i])=>vr(Lr(i.evaluate(u)))],"to-rgba":[Fo(gn,4),[es],(u,[i])=>i.evaluate(u).toRenderColor(null).toArray()],rgb:[es,[gn,gn,gn],Yb],rgba:[es,[gn,gn,gn,gn],Yb],hsl:[es,[gn,gn,gn],s0],hsla:[es,[gn,gn,gn,gn],s0],has:{type:ui,overloads:[[[ci],(u,[i])=>a0(i.evaluate(u),u.properties())],[[ci,Do],(u,[i,a])=>a0(i.evaluate(u),a.evaluate(u))]]},get:{type:fi,overloads:[[[ci],(u,[i])=>l0(i.evaluate(u),u.properties())],[[ci,Do],(u,[i,a])=>l0(i.evaluate(u),a.evaluate(u))]]},"feature-state":[fi,[ci],(u,[i])=>l0(i.evaluate(u),u.featureState||{})],properties:[Do,[],u=>u.properties()],"geometry-type":[ci,[],u=>u.geometryType()],id:[fi,[],u=>u.id()],zoom:[gn,[],u=>u.globals.zoom],pitch:[gn,[],u=>u.globals.pitch||0],"distance-from-center":[gn,[],u=>u.distanceFromCenter()],"measure-light":[gn,[ci],(u,[i])=>u.measureLight(i.evaluate(u))],"heatmap-density":[gn,[],u=>u.globals.heatmapDensity||0],"line-progress":[gn,[],u=>u.globals.lineProgress||0],"raster-value":[gn,[],u=>u.globals.rasterValue||0],"raster-particle-speed":[gn,[],u=>u.globals.rasterParticleSpeed||0],"sky-radial-progress":[gn,[],u=>u.globals.skyRadialProgress||0],accumulated:[fi,[],u=>u.globals.accumulated===void 0?null:u.globals.accumulated],"+":[gn,vc(gn),(u,i)=>{let a=0;for(const h of i)a+=h.evaluate(u);return a}],"*":[gn,vc(gn),(u,i)=>{let a=1;for(const h of i)a*=h.evaluate(u);return a}],"-":{type:gn,overloads:[[[gn,gn],(u,[i,a])=>i.evaluate(u)-a.evaluate(u)],[[gn],(u,[i])=>-i.evaluate(u)]]},"/":[gn,[gn,gn],(u,[i,a])=>i.evaluate(u)/a.evaluate(u)],"%":[gn,[gn,gn],(u,[i,a])=>i.evaluate(u)%a.evaluate(u)],ln2:[gn,[],()=>Math.LN2],pi:[gn,[],()=>Math.PI],e:[gn,[],()=>Math.E],"^":[gn,[gn,gn],(u,[i,a])=>Math.pow(i.evaluate(u),a.evaluate(u))],sqrt:[gn,[gn],(u,[i])=>Math.sqrt(i.evaluate(u))],log10:[gn,[gn],(u,[i])=>Math.log(i.evaluate(u))/Math.LN10],ln:[gn,[gn],(u,[i])=>Math.log(i.evaluate(u))],log2:[gn,[gn],(u,[i])=>Math.log(i.evaluate(u))/Math.LN2],sin:[gn,[gn],(u,[i])=>Math.sin(i.evaluate(u))],cos:[gn,[gn],(u,[i])=>Math.cos(i.evaluate(u))],tan:[gn,[gn],(u,[i])=>Math.tan(i.evaluate(u))],asin:[gn,[gn],(u,[i])=>Math.asin(i.evaluate(u))],acos:[gn,[gn],(u,[i])=>Math.acos(i.evaluate(u))],atan:[gn,[gn],(u,[i])=>Math.atan(i.evaluate(u))],min:[gn,vc(gn),(u,i)=>Math.min(...i.map(a=>a.evaluate(u)))],max:[gn,vc(gn),(u,i)=>Math.max(...i.map(a=>a.evaluate(u)))],abs:[gn,[gn],(u,[i])=>Math.abs(i.evaluate(u))],round:[gn,[gn],(u,[i])=>{const a=i.evaluate(u);return a<0?-Math.round(-a):Math.round(a)}],floor:[gn,[gn],(u,[i])=>Math.floor(i.evaluate(u))],ceil:[gn,[gn],(u,[i])=>Math.ceil(i.evaluate(u))],"filter-==":[ui,[ci,fi],(u,[i,a])=>u.properties()[i.value]===a.value],"filter-id-==":[ui,[fi],(u,[i])=>u.id()===i.value],"filter-type-==":[ui,[ci],(u,[i])=>u.geometryType()===i.value],"filter-<":[ui,[ci,fi],(u,[i,a])=>{const h=u.properties()[i.value],y=a.value;return typeof h==typeof y&&h<y}],"filter-id-<":[ui,[fi],(u,[i])=>{const a=u.id(),h=i.value;return typeof a==typeof h&&a<h}],"filter->":[ui,[ci,fi],(u,[i,a])=>{const h=u.properties()[i.value],y=a.value;return typeof h==typeof y&&h>y}],"filter-id->":[ui,[fi],(u,[i])=>{const a=u.id(),h=i.value;return typeof a==typeof h&&a>h}],"filter-<=":[ui,[ci,fi],(u,[i,a])=>{const h=u.properties()[i.value],y=a.value;return typeof h==typeof y&&h<=y}],"filter-id-<=":[ui,[fi],(u,[i])=>{const a=u.id(),h=i.value;return typeof a==typeof h&&a<=h}],"filter->=":[ui,[ci,fi],(u,[i,a])=>{const h=u.properties()[i.value],y=a.value;return typeof h==typeof y&&h>=y}],"filter-id->=":[ui,[fi],(u,[i])=>{const a=u.id(),h=i.value;return typeof a==typeof h&&a>=h}],"filter-has":[ui,[fi],(u,[i])=>i.value in u.properties()],"filter-has-id":[ui,[],u=>u.id()!==null&&u.id()!==void 0],"filter-type-in":[ui,[Fo(ci)],(u,[i])=>i.value.indexOf(u.geometryType())>=0],"filter-id-in":[ui,[Fo(fi)],(u,[i])=>i.value.indexOf(u.id())>=0],"filter-in-small":[ui,[ci,Fo(fi)],(u,[i,a])=>a.value.indexOf(u.properties()[i.value])>=0],"filter-in-large":[ui,[ci,Fo(fi)],(u,[i,a])=>function(h,y,f,_){for(;f<=_;){const w=f+_>>1;if(y[w]===h)return!0;y[w]>h?_=w-1:f=w+1}return!1}(u.properties()[i.value],a.value,0,a.value.length-1)],all:{type:ui,overloads:[[[ui,ui],(u,[i,a])=>i.evaluate(u)&&a.evaluate(u)],[vc(ui),(u,i)=>{for(const a of i)if(!a.evaluate(u))return!1;return!0}]]},any:{type:ui,overloads:[[[ui,ui],(u,[i,a])=>i.evaluate(u)||a.evaluate(u)],[vc(ui),(u,i)=>{for(const a of i)if(a.evaluate(u))return!0;return!1}]]},"!":[ui,[ui],(u,[i])=>!i.evaluate(u)],"is-supported-script":[ui,[ci],(u,[i])=>{const a=u.globals&&u.globals.isSupportedScript;return!a||a(i.evaluate(u))}],upcase:[ci,[ci],(u,[i])=>i.evaluate(u).toUpperCase()],downcase:[ci,[ci],(u,[i])=>i.evaluate(u).toLowerCase()],concat:[ci,vc(fi),(u,i)=>i.map(a=>$o(a.evaluate(u))).join("")],"resolved-locale":[ci,[Ip],(u,[i])=>i.evaluate(u).resolvedLocale()],random:[gn,[gn,gn,fi],(u,i)=>{const[a,h,y]=i.map(_=>_.evaluate(u));if(a>h||a===h)return a;let f;if(typeof y=="string")f=function(_){let w=0;if(_.length===0)return w;for(let D=0;D<_.length;D++)w=(w<<5)-w+_.charCodeAt(D),w|=0;return w}(y);else{if(typeof y!="number")throw new Xr(`Invalid seed input: ${y}`);f=y}return a+Yp(f)()*(h-a)}]});class Wp{constructor(i,a,h,y){this.expression=i,this._warningHistory={},this._evaluator=new bb(h,y),this._defaultValue=a?function(f){return f.type==="color"&&(Zp(f.default)||Array.isArray(f.default))?new Ci(0,0,0,0):f.type==="color"?Ci.parse(f.default)||null:f.default===void 0?null:f.default}(a):null,this._enumValues=a&&a.type==="enum"?a.values:null}evaluateWithoutErrorHandling(i,a,h,y,f,_,w,D){return this._evaluator.globals=i,this._evaluator.feature=a,this._evaluator.featureState=h,this._evaluator.canonical=y||null,this._evaluator.availableImages=f||null,this._evaluator.formattedSection=_,this._evaluator.featureTileCoord=w||null,this._evaluator.featureDistanceData=D||null,this.expression.evaluate(this._evaluator)}evaluate(i,a,h,y,f,_,w,D){this._evaluator.globals=i,this._evaluator.feature=a||null,this._evaluator.featureState=h||null,this._evaluator.canonical=y||null,this._evaluator.availableImages=f||null,this._evaluator.formattedSection=_||null,this._evaluator.featureTileCoord=w||null,this._evaluator.featureDistanceData=D||null;try{const N=this.expression.evaluate(this._evaluator);if(N==null||typeof N=="number"&&N!=N)return this._defaultValue;if(this._enumValues&&!(N in this._enumValues))throw new Xr(`Expected value to be one of ${Object.keys(this._enumValues).map(b=>JSON.stringify(b)).join(", ")}, but found ${JSON.stringify(N)} instead.`);return N}catch(N){return this._warningHistory[N.message]||(this._warningHistory[N.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${N.message}`)),this._defaultValue}}}function qp(u){return Array.isArray(u)&&u.length>0&&typeof u[0]=="string"&&u[0]in Fu}function md(u,i,a,h){const y=new zb(Fu,[],i?function(_){const w={color:es,string:ci,number:gn,enum:ci,boolean:ui,formatted:Iu,resolvedImage:Tu};return _.type==="array"?Fo(w[_.value]||fi,_.length):w[_.type]}(i):void 0,void 0,void 0,a,h),f=y.parse(u,void 0,void 0,void 0,i&&i.type==="string"?{typeAnnotation:"coerce"}:void 0);return f?Gb(new Wp(f,i,a,h)):Al(y.errors)}class d0{constructor(i,a,h){this.kind=i,this._styleExpression=a,this.isLightConstant=h,this.isStateDependent=i!=="constant"&&!Up(a.expression),this.configDependencies=Bp(a.expression)}evaluateWithoutErrorHandling(i,a,h,y,f,_){return this._styleExpression.evaluateWithoutErrorHandling(i,a,h,y,f,_)}evaluate(i,a,h,y,f,_){return this._styleExpression.evaluate(i,a,h,y,f,_)}}class Ia{constructor(i,a,h,y,f){this.kind=i,this.zoomStops=h,this._styleExpression=a,this.isStateDependent=i!=="camera"&&!Up(a.expression),this.isLightConstant=f,this.configDependencies=Bp(a.expression),this.interpolationType=y}evaluateWithoutErrorHandling(i,a,h,y,f,_){return this._styleExpression.evaluateWithoutErrorHandling(i,a,h,y,f,_)}evaluate(i,a,h,y,f,_){return this._styleExpression.evaluate(i,a,h,y,f,_)}interpolationFactor(i,a,h){return this.interpolationType?gs.interpolationFactor(this.interpolationType,i,a,h):0}}function Jb(u,i,a,h){if((u=md(u,i,a,h)).result==="error")return u;const y=u.value.expression,f=ad(y);if(!f&&!Gp(i))return Al([new Ma("","data expressions not supported")]);const _=ld(y,["zoom","pitch","distance-from-center"]);if(!_&&!Zb(i))return Al([new Ma("","zoom expressions not supported")]);const w=ld(y,["measure-light"]);if(!w&&!u0(i))return Al([new Ma("","measure-light expression not supported")]);const D=i.expression&&i.expression.relaxZoomRestriction,N=Xp(y);return N||_||D?N instanceof Ma?Al([N]):N instanceof gs&&!h0(i)?Al([new Ma("",'"interpolate" expressions cannot be used with this property')]):Gb(N?new Ia(f?"camera":"composite",u.value,N.labels,N instanceof gs?N.interpolation:void 0,w):new d0(f?"constant":"source",u.value,w)):Al([new Ma("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class Kp{constructor(i,a){this._parameters=i,this._specification=a,wu(this,qb(this._parameters,this._specification))}static deserialize(i){return new Kp(i._parameters,i._specification)}static serialize(i){return{_parameters:i._parameters,_specification:i._specification}}}function Xp(u){let i=null;if(u instanceof $p)i=Xp(u.result);else if(u instanceof Vp){for(const a of u.args)if(i=Xp(a),i)break}else(u instanceof cd||u instanceof gs)&&u.input instanceof ts&&u.input.name==="zoom"&&(i=u);return i instanceof Ma||u.eachChild(a=>{const h=Xp(a);h instanceof Ma?i=h:i&&h&&i!==h&&(i=new Ma("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),i}var Jp,f0,eM=function(){if(f0)return Jp;f0=1,Jp=i;var u=3;function i(a,h,y){var f=this.cells=[];if(a instanceof ArrayBuffer){this.arrayBuffer=a;var _=new Int32Array(this.arrayBuffer);a=_[0],this.d=(h=_[1])+2*(y=_[2]);for(var w=0;w<this.d*this.d;w++){var D=_[u+w],N=_[u+w+1];f.push(D===N?null:_.subarray(D,N))}var b=_[u+f.length+1];this.keys=_.subarray(_[u+f.length],b),this.bboxes=_.subarray(b),this.insert=this._insertReadonly}else{this.d=h+2*y;for(var T=0;T<this.d*this.d;T++)f.push([]);this.keys=[],this.bboxes=[]}this.n=h,this.extent=a,this.padding=y,this.scale=h/a,this.uid=0;var A=y/h*a;this.min=-A,this.max=a+A}return i.prototype.insert=function(a,h,y,f,_){this._forEachCell(h,y,f,_,this._insertCell,this.uid++),this.keys.push(a),this.bboxes.push(h),this.bboxes.push(y),this.bboxes.push(f),this.bboxes.push(_)},i.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},i.prototype._insertCell=function(a,h,y,f,_,w){this.cells[_].push(w)},i.prototype.query=function(a,h,y,f,_){var w=this.min,D=this.max;if(a<=w&&h<=w&&D<=y&&D<=f&&!_)return Array.prototype.slice.call(this.keys);var N=[];return this._forEachCell(a,h,y,f,this._queryCell,N,{},_),N},i.prototype._queryCell=function(a,h,y,f,_,w,D,N){var b=this.cells[_];if(b!==null)for(var T=this.keys,A=this.bboxes,S=0;S<b.length;S++){var C=b[S];if(D[C]===void 0){var k=4*C;(N?N(A[k+0],A[k+1],A[k+2],A[k+3]):a<=A[k+2]&&h<=A[k+3]&&y>=A[k+0]&&f>=A[k+1])?(D[C]=!0,w.push(T[C])):D[C]=!1}}},i.prototype._forEachCell=function(a,h,y,f,_,w,D,N){for(var b=this._convertToCellCoord(a),T=this._convertToCellCoord(h),A=this._convertToCellCoord(y),S=this._convertToCellCoord(f),C=b;C<=A;C++)for(var k=T;k<=S;k++){var P=this.d*k+C;if((!N||N(this._convertFromCellCoord(C),this._convertFromCellCoord(k),this._convertFromCellCoord(C+1),this._convertFromCellCoord(k+1)))&&_.call(this,a,h,y,f,P,w,D,N))return}},i.prototype._convertFromCellCoord=function(a){return(a-this.padding)/this.scale},i.prototype._convertToCellCoord=function(a){return Math.max(0,Math.min(this.d-1,Math.floor(a*this.scale)+this.padding))},i.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var a=this.cells,h=u+this.cells.length+1+1,y=0,f=0;f<this.cells.length;f++)y+=this.cells[f].length;var _=new Int32Array(h+y+this.keys.length+this.bboxes.length);_[0]=this.extent,_[1]=this.n,_[2]=this.padding;for(var w=h,D=0;D<a.length;D++){var N=a[D];_[u+D]=w,_.set(N,w),w+=N.length}return _[u+a.length]=w,_.set(this.keys,w),_[u+a.length+1]=w+=this.keys.length,_.set(this.bboxes,w),w+=this.bboxes.length,_.buffer},Jp}(),xc=v(eM);const Vu={};function pn(u,i,a={}){Object.defineProperty(u,"_classRegistryKey",{value:i,writable:!1}),Vu[i]={klass:u,omit:a.omit||[]}}pn(Object,"Object"),xc.serialize=function(u,i){const a=u.toArrayBuffer();return i&&i.add(a),{buffer:a}},xc.deserialize=function(u){return new xc(u.buffer)},Object.defineProperty(xc,"name",{value:"Grid"}),pn(xc,"Grid"),pn(Ci,"Color"),pn(Error,"Error"),pn(Co,"Formatted"),pn(ds,"FormattedSection"),pn(N1,"AJAXError"),pn(Vo,"ResolvedImage"),pn(Kp,"StylePropertyFunction"),pn(Wp,"StyleExpression",{omit:["_evaluator"]}),pn(Ia,"ZoomDependentExpression"),pn(d0,"ZoomConstantExpression"),pn(ts,"CompoundExpression",{omit:["_evaluate"]});for(const u in Fu)Vu[Fu[u]._classRegistryKey]||pn(Fu[u],`Expression${u}`);function p0(u){return u&&typeof ArrayBuffer<"u"&&(u instanceof ArrayBuffer||u.constructor&&u.constructor.name==="ArrayBuffer")}function tM(u){return self.ImageBitmap&&u instanceof ImageBitmap}function ns(u,i){if(u==null||typeof u=="boolean"||typeof u=="number"||typeof u=="string"||u instanceof Boolean||u instanceof Number||u instanceof String||u instanceof Date||u instanceof RegExp)return u;if(p0(u)||tM(u))return i&&i.add(u),u;if(ArrayBuffer.isView(u)){const a=u;return i&&i.add(a.buffer),a}if(u instanceof ImageData)return i&&i.add(u.data.buffer),u;if(Array.isArray(u)){const a=[];for(const h of u)a.push(ns(h,i));return a}if(u instanceof Map){const a={$name:"Map"};for(const[h,y]of u.entries())a[h]=ns(y);return a}if(u instanceof Set){const a={$name:"Set"};let h=0;for(const y of u.values())a[++h]=ns(y);return a}if(typeof u=="object"){const a=u.constructor,h=a._classRegistryKey;if(!h)throw new Error(`can't serialize object of unregistered class ${h}`);const y=a.serialize?a.serialize(u,i):{};if(!a.serialize){for(const f in u)u.hasOwnProperty(f)&&(Vu[h].omit.indexOf(f)>=0||(y[f]=ns(u[f],i)));u instanceof Error&&(y.message=u.message)}if(y.$name)throw new Error("$name property is reserved for worker serialization logic.");return h!=="Object"&&(y.$name=h),y}throw new Error("can't serialize object of type "+typeof u)}function bc(u){if(u==null||typeof u=="boolean"||typeof u=="number"||typeof u=="string"||u instanceof Boolean||u instanceof Number||u instanceof String||u instanceof Date||u instanceof RegExp||p0(u)||tM(u)||ArrayBuffer.isView(u)||u instanceof ImageData)return u;if(Array.isArray(u))return u.map(bc);if(typeof u=="object"){const i=u.$name||"Object";if(i==="Map"){const y=new Map;for(const f of Object.keys(u))f!=="$name"&&y.set(f,bc(u[f]));return y}if(i==="Set"){const y=new Set;for(const f of Object.keys(u))f!=="$name"&&y.add(bc(u[f]));return y}const{klass:a}=Vu[i];if(!a)throw new Error(`can't deserialize unregistered class ${i}`);if(a.deserialize)return a.deserialize(u);const h=Object.create(a.prototype);for(const y of Object.keys(u))y!=="$name"&&(h[y]=bc(u[y]));return h}throw new Error("can't deserialize object of type "+typeof u)}const Mn={"Latin-1 Supplement":u=>u>=128&&u<=255,Arabic:u=>u>=1536&&u<=1791,"Arabic Supplement":u=>u>=1872&&u<=1919,"Arabic Extended-A":u=>u>=2208&&u<=2303,"Hangul Jamo":u=>u>=4352&&u<=4607,"Unified Canadian Aboriginal Syllabics":u=>u>=5120&&u<=5759,Khmer:u=>u>=6016&&u<=6143,"Unified Canadian Aboriginal Syllabics Extended":u=>u>=6320&&u<=6399,"General Punctuation":u=>u>=8192&&u<=8303,"Letterlike Symbols":u=>u>=8448&&u<=8527,"Number Forms":u=>u>=8528&&u<=8591,"Miscellaneous Technical":u=>u>=8960&&u<=9215,"Control Pictures":u=>u>=9216&&u<=9279,"Optical Character Recognition":u=>u>=9280&&u<=9311,"Enclosed Alphanumerics":u=>u>=9312&&u<=9471,"Geometric Shapes":u=>u>=9632&&u<=9727,"Miscellaneous Symbols":u=>u>=9728&&u<=9983,"Miscellaneous Symbols and Arrows":u=>u>=11008&&u<=11263,"CJK Radicals Supplement":u=>u>=11904&&u<=12031,"Kangxi Radicals":u=>u>=12032&&u<=12255,"Ideographic Description Characters":u=>u>=12272&&u<=12287,"CJK Symbols and Punctuation":u=>u>=12288&&u<=12351,Hiragana:u=>u>=12352&&u<=12447,Katakana:u=>u>=12448&&u<=12543,Bopomofo:u=>u>=12544&&u<=12591,"Hangul Compatibility Jamo":u=>u>=12592&&u<=12687,Kanbun:u=>u>=12688&&u<=12703,"Bopomofo Extended":u=>u>=12704&&u<=12735,"CJK Strokes":u=>u>=12736&&u<=12783,"Katakana Phonetic Extensions":u=>u>=12784&&u<=12799,"Enclosed CJK Letters and Months":u=>u>=12800&&u<=13055,"CJK Compatibility":u=>u>=13056&&u<=13311,"CJK Unified Ideographs Extension A":u=>u>=13312&&u<=19903,"Yijing Hexagram Symbols":u=>u>=19904&&u<=19967,"CJK Unified Ideographs":u=>u>=19968&&u<=40959,"Yi Syllables":u=>u>=40960&&u<=42127,"Yi Radicals":u=>u>=42128&&u<=42191,"Hangul Jamo Extended-A":u=>u>=43360&&u<=43391,"Hangul Syllables":u=>u>=44032&&u<=55215,"Hangul Jamo Extended-B":u=>u>=55216&&u<=55295,"Private Use Area":u=>u>=57344&&u<=63743,"CJK Compatibility Ideographs":u=>u>=63744&&u<=64255,"Arabic Presentation Forms-A":u=>u>=64336&&u<=65023,"Vertical Forms":u=>u>=65040&&u<=65055,"CJK Compatibility Forms":u=>u>=65072&&u<=65103,"Small Form Variants":u=>u>=65104&&u<=65135,"Arabic Presentation Forms-B":u=>u>=65136&&u<=65279,"Halfwidth and Fullwidth Forms":u=>u>=65280&&u<=65519,"CJK Unified Ideographs Extension B":u=>u>=131072&&u<=173791};function em(u){for(const i of u)if(nm(i.charCodeAt(0)))return!0;return!1}function mE(u){for(const i of u)if(!tm(i.charCodeAt(0)))return!1;return!0}function tm(u){return!(Mn.Arabic(u)||Mn["Arabic Supplement"](u)||Mn["Arabic Extended-A"](u)||Mn["Arabic Presentation Forms-A"](u)||Mn["Arabic Presentation Forms-B"](u))}function nm(u){return!(u!==746&&u!==747&&(u<4352||!(Mn["Bopomofo Extended"](u)||Mn.Bopomofo(u)||Mn["CJK Compatibility Forms"](u)&&!(u>=65097&&u<=65103)||Mn["CJK Compatibility Ideographs"](u)||Mn["CJK Compatibility"](u)||Mn["CJK Radicals Supplement"](u)||Mn["CJK Strokes"](u)||!(!Mn["CJK Symbols and Punctuation"](u)||u>=12296&&u<=12305||u>=12308&&u<=12319||u===12336)||Mn["CJK Unified Ideographs Extension A"](u)||Mn["CJK Unified Ideographs"](u)||Mn["Enclosed CJK Letters and Months"](u)||Mn["Hangul Compatibility Jamo"](u)||Mn["Hangul Jamo Extended-A"](u)||Mn["Hangul Jamo Extended-B"](u)||Mn["Hangul Jamo"](u)||Mn["Hangul Syllables"](u)||Mn.Hiragana(u)||Mn["Ideographic Description Characters"](u)||Mn.Kanbun(u)||Mn["Kangxi Radicals"](u)||Mn["Katakana Phonetic Extensions"](u)||Mn.Katakana(u)&&u!==12540||!(!Mn["Halfwidth and Fullwidth Forms"](u)||u===65288||u===65289||u===65293||u>=65306&&u<=65310||u===65339||u===65341||u===65343||u>=65371&&u<=65503||u===65507||u>=65512&&u<=65519)||!(!Mn["Small Form Variants"](u)||u>=65112&&u<=65118||u>=65123&&u<=65126)||Mn["Unified Canadian Aboriginal Syllabics"](u)||Mn["Unified Canadian Aboriginal Syllabics Extended"](u)||Mn["Vertical Forms"](u)||Mn["Yijing Hexagram Symbols"](u)||Mn["Yi Syllables"](u)||Mn["Yi Radicals"](u))))}function gd(u){return!(nm(u)||function(i){return!!(Mn["Latin-1 Supplement"](i)&&(i===167||i===169||i===174||i===177||i===188||i===189||i===190||i===215||i===247)||Mn["General Punctuation"](i)&&(i===8214||i===8224||i===8225||i===8240||i===8241||i===8251||i===8252||i===8258||i===8263||i===8264||i===8265||i===8273)||Mn["Letterlike Symbols"](i)||Mn["Number Forms"](i)||Mn["Miscellaneous Technical"](i)&&(i>=8960&&i<=8967||i>=8972&&i<=8991||i>=8996&&i<=9e3||i===9003||i>=9085&&i<=9114||i>=9150&&i<=9165||i===9167||i>=9169&&i<=9179||i>=9186&&i<=9215)||Mn["Control Pictures"](i)&&i!==9251||Mn["Optical Character Recognition"](i)||Mn["Enclosed Alphanumerics"](i)||Mn["Geometric Shapes"](i)||Mn["Miscellaneous Symbols"](i)&&!(i>=9754&&i<=9759)||Mn["Miscellaneous Symbols and Arrows"](i)&&(i>=11026&&i<=11055||i>=11088&&i<=11097||i>=11192&&i<=11243)||Mn["CJK Symbols and Punctuation"](i)||Mn.Katakana(i)||Mn["Private Use Area"](i)||Mn["CJK Compatibility Forms"](i)||Mn["Small Form Variants"](i)||Mn["Halfwidth and Fullwidth Forms"](i)||i===8734||i===8756||i===8757||i>=9984&&i<=10087||i>=10102&&i<=10131||i===65532||i===65533)}(u))}function m0(u){return u>=1424&&u<=2303||Mn["Arabic Presentation Forms-A"](u)||Mn["Arabic Presentation Forms-B"](u)}function gE(u,i){return!(!i&&m0(u)||u>=2304&&u<=3583||u>=3840&&u<=4255||Mn.Khmer(u))}function yE(u){for(const i of u)if(m0(i.charCodeAt(0)))return!0;return!1}const yd="deferred",_d="loading",im="loaded";let $u=null,ro="unavailable",Nl=null;const nM=function(u){u&&typeof u=="string"&&u.indexOf("NetworkError")>-1&&(ro="error"),$u&&$u(u)};function g0(){y0.fire(new Tl("pluginStateChange",{pluginStatus:ro,pluginURL:Nl}))}const y0=new Mu,_0=function(){return ro},v0=function(){if(ro!==yd||!Nl)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ro=_d,g0(),Nl&&xu({url:Nl},u=>{u?nM(u):(ro=im,g0())})},is={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>ro===im||is.applyArabicShaping!=null,isLoading:()=>ro===_d,setState(u){ro=u.pluginStatus,Nl=u.pluginURL},isParsed:()=>is.applyArabicShaping!=null&&is.processBidirectionalText!=null&&is.processStyledBidirectionalText!=null,getPluginURL:()=>Nl};class fr{constructor(i,a){this.zoom=i,a?(this.now=a.now,this.fadeDuration=a.fadeDuration,this.transition=a.transition,this.pitch=a.pitch,this.brightness=a.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(i){return function(a,h){for(const y of a)if(!gE(y.charCodeAt(0),h))return!1;return!0}(i,is.isLoaded())}}class rm{constructor(i,a,h,y){this.property=i,this.value=a,this.expression=function(f,_,w,D){if(Zp(f))return new Kp(f,_);if(qp(f)||Array.isArray(f)&&f.length>0){const N=Jb(f,_,w,D);if(N.result==="error")throw new Error(N.value.map(b=>`${b.key}: ${b.message}`).join(", "));return N.value}{let N=f;return typeof f=="string"&&_.type==="color"&&(N=Ci.parse(f)),{kind:"constant",configDependencies:new Set,evaluate:()=>N}}}(a===void 0?i.specification.default:a,i.specification,h,y)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(i,a,h){return this.property.possiblyEvaluate(this,i,a,h)}}class x0{constructor(i,a,h){this.property=i,this.value=new rm(i,void 0,a,h)}transitioned(i,a){return new rM(this.property,this.value,a,ei({},i.transition,this.transition),i.now)}untransitioned(){return new rM(this.property,this.value,null,{},0)}}class iM{constructor(i,a,h){this._properties=i,this._values=Object.create(i.defaultTransitionablePropertyValues),this._scope=a,this._options=h,this.configDependencies=new Set}getValue(i){return xt(this._values[i].value.value)}setValue(i,a){this._values.hasOwnProperty(i)||(this._values[i]=new x0(this._values[i].property,this._scope,this._options)),this._values[i].value=new rm(this._values[i].property,a===null?void 0:xt(a),this._scope,this._options),this._values[i].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[i].value.expression.configDependencies]))}setTransitionOrValue(i,a){a&&(this._options=a);const h=this._properties.properties;if(i)for(const y in i){const f=i[y];if(Wi(y,"-transition")){const _=y.slice(0,-11);h[_]&&this.setTransition(_,f)}else h.hasOwnProperty(y)&&this.setValue(y,f)}}getTransition(i){return xt(this._values[i].transition)}setTransition(i,a){this._values.hasOwnProperty(i)||(this._values[i]=new x0(this._values[i].property)),this._values[i].transition=xt(a)||void 0}serialize(){const i={};for(const a of Object.keys(this._values)){const h=this.getValue(a);h!==void 0&&(i[a]=h);const y=this.getTransition(a);y!==void 0&&(i[`${a}-transition`]=y)}return i}transitioned(i,a){const h=new oM(this._properties);for(const y of Object.keys(this._values))h._values[y]=this._values[y].transitioned(i,a._values[y]);return h}untransitioned(){const i=new oM(this._properties);for(const a of Object.keys(this._values))i._values[a]=this._values[a].untransitioned();return i}}class rM{constructor(i,a,h,y,f){const _=y.delay||0,w=y.duration||0;f=f||0,this.property=i,this.value=a,this.begin=f+_,this.end=this.begin+w,i.specification.transition&&(y.delay||y.duration)&&(this.prior=h)}possiblyEvaluate(i,a,h){const y=i.now||0,f=this.value.possiblyEvaluate(i,a,h),_=this.prior;if(_){if(y>this.end)return this.prior=null,f;if(this.value.isDataDriven())return this.prior=null,f;if(y<this.begin)return _.possiblyEvaluate(i,a,h);{const w=(y-this.begin)/(this.end-this.begin);return this.property.interpolate(_.possiblyEvaluate(i,a,h),f,dn(w))}}return f}}class oM{constructor(i){this._properties=i,this._values=Object.create(i.defaultTransitioningPropertyValues)}possiblyEvaluate(i,a,h){const y=new Qu(this._properties);for(const f of Object.keys(this._values))y._values[f]=this._values[f].possiblyEvaluate(i,a,h);return y}hasTransition(){for(const i of Object.keys(this._values))if(this._values[i].prior)return!0;return!1}}class _E{constructor(i,a,h){this._properties=i,this._values=Object.create(i.defaultPropertyValues),this._scope=a,this._options=h,this.configDependencies=new Set}getValue(i){return xt(this._values[i].value)}setValue(i,a){this._values[i]=new rm(this._values[i].property,a===null?void 0:xt(a),this._scope,this._options),this._values[i].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[i].expression.configDependencies]))}serialize(){const i={};for(const a of Object.keys(this._values)){const h=this.getValue(a);h!==void 0&&(i[a]=h)}return i}possiblyEvaluate(i,a,h){const y=new Qu(this._properties);for(const f of Object.keys(this._values))y._values[f]=this._values[f].possiblyEvaluate(i,a,h);return y}}class Hu{constructor(i,a,h){this.property=i,this.value=a,this.parameters=h}isConstant(){return this.value.kind==="constant"}constantOr(i){return this.value.kind==="constant"?this.value.value:i}evaluate(i,a,h,y){return this.property.evaluate(this.value,this.parameters,i,a,h,y)}}class Qu{constructor(i){this._properties=i,this._values=Object.create(i.defaultPossiblyEvaluatedValues)}get(i){return this._values[i]}}class Zt{constructor(i){this.specification=i}possiblyEvaluate(i,a){return i.expression.evaluate(a)}interpolate(i,a,h){const y=pc[this.specification.type];return y?y(i,a,h):i}}class wn{constructor(i,a){this.specification=i,this.overrides=a}possiblyEvaluate(i,a,h,y){return new Hu(this,i.expression.kind==="constant"||i.expression.kind==="camera"?{kind:"constant",value:i.expression.evaluate(a,null,{},h,y)}:i.expression,a)}interpolate(i,a,h){if(i.value.kind!=="constant"||a.value.kind!=="constant")return i;if(i.value.value===void 0||a.value.value===void 0)return new Hu(this,{kind:"constant",value:void 0},i.parameters);const y=pc[this.specification.type];return y?new Hu(this,{kind:"constant",value:y(i.value.value,a.value.value,h)},i.parameters):i}evaluate(i,a,h,y,f,_){return i.kind==="constant"?i.value:i.evaluate(a,h,y,f,_)}}class na{constructor(i){this.specification=i}possiblyEvaluate(i,a,h,y){return!!i.expression.evaluate(a,null,{},h,y)}interpolate(){return!1}}class sr{constructor(i){this.properties=i,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const a=new fr(0,{});for(const h in i){const y=i[h];y.specification.overridable&&this.overridableProperties.push(h);const f=this.defaultPropertyValues[h]=new rm(y,void 0),_=this.defaultTransitionablePropertyValues[h]=new x0(y);this.defaultTransitioningPropertyValues[h]=_.untransitioned(),this.defaultPossiblyEvaluatedValues[h]=f.possiblyEvaluate(a)}}}pn(wn,"DataDrivenProperty"),pn(Zt,"DataConstantProperty"),pn(na,"ColorRampProperty");var yt=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"required":false,"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"imports":{"type":"array","value":"import"},"schema":{"type":"schema"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"experimental":true,"type":"featuresets"}},"featuresets":{"experimental":true,"*":{"type":"featureset"}},"featureset":{"experimental":true,"selectors":{"type":"array","value":"selector"}},"selector":{"experimental":true,"layer":{"type":"string","required":true},"properties":{"type":"selectorProperty","required":false},"featureNamespace":{"type":"string","required":false}},"selectorProperty":{"experimental":true,"*":{"type":"*"}},"model":{"type":"string","required":true},"import":{"id":{"type":"string","required":true},"url":{"type":"string","required":true},"config":{"type":"config"},"data":{"type":"$root"}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","property-type":"data-constant","expression":{},"required":true},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string","required":true},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false,"property-type":"data-constant"},"shadow-intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"experimental":true,"type":{"required":true,"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":1}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":1}},"url":{"required":false,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"required":true,"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"raster-particle":{"experimental":true},"hillshade":{},"model":{"experimental":true},"background":{},"sky":{},"slot":{},"clip":{"experimental":true}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{},"property-type":"data-constant","experimental":true},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{},"property-type":"data-constant","experimental":true}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","experimental":true,"default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","experimental":true,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"colorTheme":{"data":{"type":"string","property-type":"data-constant","expression":{}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","experimental":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","experimental":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","experimental":true,"default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","experimental":true,"default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","experimental":true,"default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","experimental":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","experimental":true,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","experimental":true,"default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","experimental":true,"default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"experimental":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true,"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-trim-fade-range":{"type":"array","value":"number","experimental":true,"length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-trim-color":{"type":"color","experimental":true,"default":"transparent","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"property-type":"data-constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1},"default":"ground","experimental":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"experimental":true,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-particle-count":{"type":"number","default":512,"minimum":1,"property-type":"data-constant"},"raster-particle-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-particle-speed"]},"property-type":"color-ramp"},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1,"property-type":"data-constant"},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1,"property-type":"data-constant"},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]},"property-type":"data-constant"},"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"model-front-cutoff":{"type":"array","private":true,"value":"number","property-type":"data-constant","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function vd(u){return u instanceof Number||u instanceof String||u instanceof Boolean?u.valueOf():u}function om(u){if(Array.isArray(u))return u.map(om);if(u instanceof Object&&!(u instanceof Number||u instanceof String||u instanceof Boolean)){const i={};for(const a in u)i[a]=om(u[a]);return i}return vd(u)}function b0(u){if(u===!0||u===!1)return!0;if(!Array.isArray(u)||u.length===0)return!1;switch(u[0]){case"has":return u.length>=2&&u[1]!=="$id"&&u[1]!=="$type";case"in":return u.length>=3&&(typeof u[1]!="string"||Array.isArray(u[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return u.length!==3||Array.isArray(u[1])||Array.isArray(u[2]);case"any":case"all":for(const i of u.slice(1))if(!b0(i)&&typeof i!="boolean")return!1;return!0;default:return!0}}function ia(u,i="",a=null,h="fill"){if(u==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};b0(u)||(u=sm(u));const y=u;let f=!0;try{f=function(T){if(!Yu(T))return T;let A=om(T);return Mc(A),A=M0(A),A}(y)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
|
|
75
75
|
This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
|
|
76
76
|
and paste the contents of this message in the report.
|
|
77
77
|
Thank you!
|
|
@@ -2222,14 +2222,14 @@ ${m.vertexSource}`;const re=L.createShader(L.FRAGMENT_SHADER);if(L.isContextLost
|
|
|
2222
2222
|
translate(${c.x}px,${c.y}px)
|
|
2223
2223
|
`}_calculateXYTransform(){const r=this._pos,c=this._map,m=this.getPitchAlignment();if(!c||!r||m!=="map")return"";if(!c._showingGlobe()){const R=c.getPitch();return R?`rotateX(${R}deg)`:""}const x=s.c0(s.dA(c.transform,this._lngLat)),M=r.sub(s.dB(c.transform)),I=Math.abs(M.x)+Math.abs(M.y);if(I===0)return"";const L=x/I;return`rotateX(${-M.y*L}deg) rotateY(${M.x*L}deg)`}_calculateZTransform(){const r=this._pos,c=this._map;if(!c||!r)return"";let m=0;const x=this.getRotationAlignment();if(x==="map")if(c._showingGlobe()){const M=c.project(new s.bK(this._lngLat.lng,this._lngLat.lat+.001)),I=c.project(new s.bK(this._lngLat.lng,this._lngLat.lat-.001)).sub(M);m=s.c0(Math.atan2(I.y,I.x))-90}else m=-c.getBearing();else if(x==="horizon"){const M=s.a7(4,6,c.getZoom()),I=s.dB(c.transform);I.y+=M*c.transform.height;const L=r.sub(I),R=s.c0(Math.atan2(L.y,L.x));m=(R>90?R-270:R+90)*(1-M)}return m+=this._rotation,m?`rotateZ(${m}deg)`:""}_update(r){cancelAnimationFrame(this._updateFrameId);const c=this._map;c&&(c.transform.renderWorldCopies&&(this._lngLat=Sa(this._lngLat,this._pos,c.transform)),this._pos=c.project(this._lngLat),r===!0?this._updateFrameId=requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),c._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(c._showingGlobe()||c.getTerrain()||c.getFog())&&!this._fadeTimer&&(this._fadeTimer=window.setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(r){return this._offset=s.P.convert(r),this._update(),this}addClassName(r){return this._element.classList.add(r),this}removeClassName(r){return this._element.classList.remove(r),this}toggleClassName(r){return this._element.classList.toggle(r)}_onMove(r){const c=this._map;if(!c)return;const m=this._pointerdownPos,x=this._positionDelta;if(m&&x){if(!this._isDragging){const M=this._clickTolerance||c._clickTolerance;if(r.point.dist(m)<M)return;this._isDragging=!0}this._pos=r.point.sub(x),this._lngLat=c.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new s.x("dragstart"))),this.fire(new s.x("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const r=this._map;r&&(r.off("mousemove",this._onMove),r.off("touchmove",this._onMove)),this._state==="active"&&this.fire(new s.x("dragend")),this._state="inactive"}_addDragHandler(r){const c=this._map,m=this._pos;c&&m&&this._element.contains(r.originalEvent.target)&&(r.preventDefault(),this._positionDelta=r.point.sub(m),this._pointerdownPos=r.point,this._state="pending",c.on("mousemove",this._onMove),c.on("touchmove",this._onMove),c.once("mouseup",this._onUp),c.once("touchend",this._onUp))}setDraggable(r){this._draggable=!!r;const c=this._map;return c&&(r?(c.on("mousedown",this._addDragHandler),c.on("touchstart",this._addDragHandler)):(c.off("mousedown",this._addDragHandler),c.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(r){return this._rotation=r||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(r){return this._rotationAlignment=r||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment==="auto"||this._rotationAlignment==="horizon"&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(r){return this._pitchAlignment=r||"auto",this._update(),this}getPitchAlignment(){return this._pitchAlignment==="auto"?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(r){return this._occludedOpacity=r||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const Sc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},jl={maxWidth:100,unit:"metric"},CE={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},AE={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},NE=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function vM(p=new s.P(0,0),r="bottom"){if(typeof p=="number"){const c=Math.round(Math.sqrt(.5*Math.pow(p,2)));switch(r){case"top":return new s.P(0,p);case"top-left":return new s.P(c,c);case"top-right":return new s.P(-c,c);case"bottom":return new s.P(0,-p);case"bottom-left":return new s.P(c,-c);case"bottom-right":return new s.P(-c,-c);case"left":return new s.P(p,0);case"right":return new s.P(-p,0)}return new s.P(0,0)}return p instanceof s.P||Array.isArray(p)?s.P.convert(p):s.P.convert(p[r]||[0,0])}return{version:v,supported:$.supported,setRTLTextPlugin:s.dC,getRTLTextPluginStatus:s.dD,Map:class extends k0{constructor(p){z.mark(E.create);const r=p;if((p=s.l({},R0,p)).minZoom!=null&&p.maxZoom!=null&&p.minZoom>p.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(p.minPitch!=null&&p.maxPitch!=null&&p.minPitch>p.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(p.minPitch!=null&&p.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(p.maxPitch!=null&&p.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(p.antialias&&s.dx(window)&&(p.antialias=!1,s.w("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Np(p.minZoom,p.maxZoom,p.minPitch,p.maxPitch,p.renderWorldCopies),p),this._repaint=!!p.repaint,this._interactive=p.interactive,this._minTileCacheSize=p.minTileCacheSize,this._maxTileCacheSize=p.maxTileCacheSize,this._failIfMajorPerformanceCaveat=p.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=p.preserveDrawingBuffer,this._antialias=p.antialias,this._trackResize=p.trackResize,this._bearingSnap=p.bearingSnap,this._refreshExpiredTiles=p.refreshExpiredTiles,this._fadeDuration=p.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=p.crossSourceCollisions,this._collectResourceTiming=p.collectResourceTiming,this._language=this._parseLanguage(p.language),this._worldview=p.worldview,this._renderTaskQueue=new _M,this._domRenderTaskQueue=new _M,this._controls=[],this._markers=[],this._popups=[],this._mapId=s.aP(),this._locale=s.l({},EE,p.locale),this._clickTolerance=p.clickTolerance,this._cooperativeGestures=p.cooperativeGestures,this._performanceMetricsCollection=p.performanceMetricsCollection,this._tessellationStep=p.tessellationStep,this._containerWidth=0,this._containerHeight=0,this._showParseStatus=!0,this._precompilePrograms=p.precompilePrograms,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new Dd(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._frameId=0,this._requestManager=new vt(p.transformRequest,p.accessToken,p.testMode),this._silenceAuthErrors=!!p.testMode,this._contextCreateOptions=p.contextCreateOptions?{...p.contextCreateOptions}:{},typeof p.container=="string"){const c=document.getElementById(p.container);if(!c)throw new Error(`Container '${p.container.toString()}' not found.`);this._container=c}else{if(!(p.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=p.container}if(this._container.childNodes.length>0&&s.w("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),p.maxBounds&&this.setMaxBounds(p.maxBounds),s.aJ(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._tp||(this._tp=new DE),this._tp.registerParameter(this,["Debug"],"showOverdrawInspector"),this._tp.registerParameter(this,["Debug"],"showTileBoundaries"),this._tp.registerParameter(this,["Debug"],"showParseStatus"),this._tp.registerParameter(this,["Debug"],"repaint"),this._tp.registerParameter(this,["Debug"],"showTileAABBs"),this._tp.registerParameter(this,["Debug"],"showPadding"),this._tp.registerParameter(this,["Debug"],"showCollisionBoxes",{noSave:!0}),this._tp.registerParameter(this.transform,["Debug"],"freezeTileCoverage",{noSave:!0},()=>{this._update()}),this._tp.registerParameter(this,["Debug","Wireframe"],"showTerrainWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers2DWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers3DWireframe"),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");if(this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this._fullscreenchangeEvent="onfullscreenchange"in document?"fullscreenchange":"webkitfullscreenchange",window.addEventListener("online",this._onWindowOnline,!1),window.addEventListener("resize",this._onWindowResize,!1),window.addEventListener("orientationchange",this._onWindowResize,!1),window.addEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.addEventListener("visibilitychange",this._onVisibilityChange,!1),this.handlers=new No(this,p),this._localFontFamily=p.localFontFamily,this._localIdeographFontFamily=p.localIdeographFontFamily,(p.style||!p.testMode)&&this.setStyle(p.style||s.e.DEFAULT_STYLE,{config:p.config,localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),p.projection&&this.setProjection(p.projection),p.hash&&(this._hash=new kl(typeof p.hash=="string"&&p.hash||void 0).addTo(this)),!this._hash||!this._hash._onHashChange()){r.center==null&&r.zoom==null||(this.transform._unmodified=!1),this.jumpTo({center:p.center,zoom:p.zoom,bearing:p.bearing,pitch:p.pitch});const c=p.bounds;c&&(this.resize(),this.fitBounds(c,s.l({},p.fitBoundsOptions,{duration:0})))}this.resize(),p.attributionControl&&this.addControl(new _m({customAttribution:p.customAttribution})),this._logoControl=new O0,this.addControl(this._logoControl,p.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet),this._postStyleLoadEvent()}),this.on("data",c=>{this._update(c.dataType==="style"),this.fire(new s.x(`${c.dataType}data`,c))}),this.on("dataloading",c=>{this.fire(new s.x(`${c.dataType}dataloading`,c))}),this._interactions=new j0(this)}_getMapId(){return this._mapId}addControl(p,r){if(r===void 0&&(r=p.getDefaultPosition?p.getDefaultPosition():"top-right"),!p||!p.onAdd)return this.fire(new s.t(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const c=p.onAdd(this);this._controls.push(p);const m=this._controlPositions[r];return r.indexOf("bottom")!==-1?m.insertBefore(c,m.firstChild):m.appendChild(c),this}removeControl(p){if(!p||!p.onRemove)return this.fire(new s.t(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const r=this._controls.indexOf(p);return r>-1&&this._controls.splice(r,1),p.onRemove(this),this}hasControl(p){return this._controls.indexOf(p)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(p){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const r=!this._moving;return r&&this.fire(new s.x("movestart",p)).fire(new s.x("move",p)),this.fire(new s.x("resize",p)),r&&this.fire(new s.x("moveend",p)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(p){return this.transform.setMaxBounds(s.as.convert(p)),this._update()}setMinZoom(p){if((p=p??-2)>=-2&&p<=this.transform.maxZoom)return this.transform.minZoom=p,this._update(),this.getZoom()<p?this.setZoom(p):this.fire(new s.x("zoomstart")).fire(new s.x("zoom")).fire(new s.x("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(p){if((p=p??22)>=this.transform.minZoom)return this.transform.maxZoom=p,this._update(),this.getZoom()>p?this.setZoom(p):this.fire(new s.x("zoomstart")).fire(new s.x("zoom")).fire(new s.x("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(p){if((p=p??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(p>=0&&p<=this.transform.maxPitch)return this.transform.minPitch=p,this._update(),this.getPitch()<p?this.setPitch(p):this.fire(new s.x("pitchstart")).fire(new s.x("pitch")).fire(new s.x("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(p){if((p=p??85)>85)throw new Error("maxPitch must be less than or equal to 85");if(p>=this.transform.minPitch)return this.transform.maxPitch=p,this._update(),this.getPitch()>p?this.setPitch(p):this.fire(new s.x("pitchstart")).fire(new s.x("pitch")).fire(new s.x("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(p){return this.transform.renderWorldCopies=p,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(p){return p==="auto"?navigator.language:Array.isArray(p)?p.length===0?void 0:p.map(r=>r==="auto"?navigator.language:r):p}setLanguage(p){const r=this._parseLanguage(p);if(!this.style||r===this._language)return this;this._language=r,this.style.reloadSources();for(const c of this._controls)c._setLanguage&&c._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(p){return this.style&&p!==this._worldview?(this._worldview=p,this.style.reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return this.transform.projection.name==="globe"}setProjection(p){return this._lazyInitEmptyStyle(),p?typeof p=="string"&&(p={name:p}):p=null,this._useExplicitProjection=!!p,this._prioritizeAndUpdateProjection(p,this.style.projection)}_updateProjectionTransition(){if(this.getProjection().name!=="globe")return;const p=this.transform,r=p.projection.name;let c;r==="globe"&&p.zoom>=s.bU?(p.setMercatorFromTransition(),c=!0):r==="mercator"&&p.zoom<s.bU&&(p.setProjection({name:"globe"}),c=!0),c&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayerUpdate())}_prioritizeAndUpdateProjection(p,r){return this._updateProjection(p||r||{name:"mercator"})}_updateProjection(p){let r;return r=p.name==="globe"&&this.transform.zoom>=s.bU?this.transform.setMercatorFromTransition():this.transform.setProjection(p),this.style.applyProjectionUpdate(),r&&(this.painter.clearBackgroundTiles(),this.style.clearSources(),this._update(!0),this._forceMarkerAndPopupUpdate(!0)),this}project(p){return this.transform.locationPoint3D(s.bK.convert(p))}unproject(p){return this.transform.pointLocation3D(s.P.convert(p))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(p,r,c){if(p==="mouseenter"||p==="mouseover"){let m=!1;const x=I=>{const L=r.filter(U=>this.getLayer(U)),R=L.length?this.queryRenderedFeatures(I.point,{layers:L}):[];R.length?m||(m=!0,c.call(this,new Ho(p,this,I.originalEvent,{features:R}))):m=!1},M=()=>{m=!1};return{layers:new Set(r),listener:c,delegates:{mousemove:x,mouseout:M}}}if(p==="mouseleave"||p==="mouseout"){let m=!1;const x=I=>{const L=r.filter(R=>this.getLayer(R));(L.length?this.queryRenderedFeatures(I.point,{layers:L}):[]).length?m=!0:m&&(m=!1,c.call(this,new Ho(p,this,I.originalEvent)))},M=I=>{m&&(m=!1,c.call(this,new Ho(p,this,I.originalEvent)))};return{layers:new Set(r),listener:c,delegates:{mousemove:x,mouseout:M}}}{const m=x=>{const M=r.filter(L=>this.getLayer(L)),I=M.length?this.queryRenderedFeatures(x.point,{layers:M}):[];I.length&&(x.features=I,c.call(this,x),delete x.features)};return{layers:new Set(r),listener:c,delegates:{[p]:m}}}}on(p,r,c){if(typeof r=="function"||c===void 0)return super.on(p,r);if(Array.isArray(r)||(r=[r]),r){for(const x of r)if(!this._isValidId(x))return this}const m=this._createDelegatedListener(p,r,c);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[p]=this._delegatedListeners[p]||[],this._delegatedListeners[p].push(m);for(const x in m.delegates)this.on(x,m.delegates[x]);return this}once(p,r,c){if(typeof r=="function"||c===void 0)return super.once(p,r);if(Array.isArray(r)||(r=[r]),r){for(const x of r)if(!this._isValidId(x))return this}const m=this._createDelegatedListener(p,r,c);for(const x in m.delegates)this.once(x,m.delegates[x]);return this}off(p,r,c){if(typeof r=="function"||c===void 0)return super.off(p,r);const m=new Set(Array.isArray(r)?r:[r]);for(const I of m)if(!this._isValidId(I))return this;const x=(I,L)=>{if(I.size!==L.size)return!1;for(const R of I)if(!L.has(R))return!1;return!0},M=this._delegatedListeners?this._delegatedListeners[p]:void 0;return M&&(I=>{for(let L=0;L<I.length;L++){const R=I[L];if(R.listener===c&&x(R.layers,m)){for(const U in R.delegates)this.off(U,R.delegates[U]);return I.splice(L,1),this}}})(M),this}queryRenderedFeatures(p,r){if(!this.style)return[];if(r!==void 0||p===void 0||p instanceof s.P||Array.isArray(p)||(r=p,p=void 0),p=p||[[0,0],[this.transform.width,this.transform.height]],(r=r||{}).layers&&Array.isArray(r.layers)){for(const c of r.layers)if(!this._isValidId(c))return[]}return this.style.queryRenderedFeatures(p,r,this.transform)}querySourceFeatures(p,r){return this._isValidId(p)?this.style.querySourceFeatures(p,r):[]}isPointOnSurface(p){const{name:r}=this.transform.projection;return r!=="globe"&&r!=="mercator"&&s.w(`${r} projection does not support isPointOnSurface, this API may behave unexpectedly.`),this.transform.isPointOnSurface(s.P.convert(p))}addInteraction(p,r){return this._interactions.add(p,r),this}removeInteraction(p){return this._interactions.remove(p),this}setStyle(p,r){return r=s.l({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},r),this.style&&p&&r.diff!==!1&&r.localFontFamily===this._localFontFamily&&r.localIdeographFontFamily===this._localIdeographFontFamily&&!r.config?(this.style._diffStyle(p,(c,m)=>{c?(s.w(`Unable to perform style diff: ${String(c.message||c.error||c)}. Rebuilding the style from scratch.`),this._updateStyle(p,r)):m&&this._update(!0)},()=>{this._postStyleLoadEvent()}),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._localFontFamily=r.localFontFamily,this._updateStyle(p,r))}_getUIString(p){const r=this._locale[p];if(r==null)throw new Error(`Missing UI string '${p}'`);return r}_updateStyle(p,r){if(this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),p){const c=s.l({},r);r&&r.config&&(c.initialConfig=r.config,delete c.config),this.style=new ms(this,c).load(p),this.style.setEventedParent(this,{style:this.style})}return this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new ms(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(s.w("There is no style added to the map."),!1)}_isValidId(p){return p==null?(this.fire(new s.t(new Error("IDs can't be empty."))),!1):!s.cn(p)||(this.fire(new s.t(new Error(`IDs can't contain special symbols: "${p}".`))),!1)}addSource(p,r){return this._isValidId(p)?(this._lazyInitEmptyStyle(),this.style.addSource(p,r),this._update(!0)):this}isSourceLoaded(p){return!!this._isValidId(p)&&!!this.style&&this.style._isSourceCacheLoaded(p)}areTilesLoaded(){return this.style.areTilesLoaded()}addSourceType(p,r,c){this._lazyInitEmptyStyle(),this.style.addSourceType(p,r,c)}removeSource(p){return this._isValidId(p)?(this.style.removeSource(p),this._updateTerrain(),this._update(!0)):this}getSource(p){return this._isValidId(p)?this.style.getOwnSource(p):null}addImage(p,r,{pixelRatio:c=1,sdf:m=!1,stretchX:x,stretchY:M,content:I}={}){if(this._lazyInitEmptyStyle(),r instanceof HTMLImageElement||ImageBitmap&&r instanceof ImageBitmap){const{width:L,height:R,data:U}=s.q.getImageData(r);this.style.addImage(p,{data:new s.r({width:L,height:R},U),pixelRatio:c,stretchX:x,stretchY:M,content:I,sdf:m,version:0})}else if(r.width===void 0||r.height===void 0)this.fire(new s.t(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:L,height:R}=r,U=r;this.style.addImage(p,{data:new s.r({width:L,height:R},new Uint8Array(U.data)),pixelRatio:c,stretchX:x,stretchY:M,content:I,sdf:m,version:0,userImage:U}),U.onAdd&&U.onAdd(this,p)}}updateImage(p,r){this._lazyInitEmptyStyle();const c=this.style.getImage(p);if(!c)return void this.fire(new s.t(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const m=r instanceof HTMLImageElement||ImageBitmap&&r instanceof ImageBitmap?s.q.getImageData(r):r,{width:x,height:M,data:I}=m;if(x===void 0||M===void 0)return void this.fire(new s.t(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(x!==c.data.width||M!==c.data.height)return void this.fire(new s.t(new Error(`The width and height of the updated image (${x}, ${M})
|
|
2224
2224
|
must be that same as the previous version of the image
|
|
2225
|
-
(${c.data.width}, ${c.data.height})`)));const L=!(r instanceof HTMLImageElement||ImageBitmap&&r instanceof ImageBitmap);c.data.replace(I,L),this.style.updateImage(p,c)}hasImage(p){return p?!!this.style&&!!this.style.getImage(p):(this.fire(new s.t(new Error("Missing required image id"))),!1)}removeImage(p){this.style.removeImage(p)}loadImage(p,r){s.o(this._requestManager.transformRequest(p,s.R.Image),(c,m)=>{r(c,m instanceof HTMLImageElement?s.q.getImageData(m):m)})}listImages(){return this.style.listImages()}addModel(p,r){this._lazyInitEmptyStyle(),this.style.addModel(p,r)}hasModel(p){return p?this.style.hasModel(p):(this.fire(new s.t(new Error("Missing required model id"))),!1)}removeModel(p){this.style.removeModel(p)}listModels(){return this.style.listModels()}addLayer(p,r){return this._isValidId(p.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(p,r),this._update(!0)):this}getSlot(p){const r=this.getLayer(p);return r&&r.slot||null}setSlot(p,r){return this.style.setSlot(p,r),this.style.mergeLayers(),this._update(!0)}addImport(p,r){return this.style.addImport(p,r),this}updateImport(p,r){return typeof r!="string"&&r.id!==p?(this.removeImport(p),this.addImport(r)):(this.style.updateImport(p,r),this._update(!0))}removeImport(p){return this.style.removeImport(p),this}moveImport(p,r){return this.style.moveImport(p,r),this._update(!0)}moveLayer(p,r){return this._isValidId(p)?(this.style.moveLayer(p,r),this._update(!0)):this}removeLayer(p){return this._isValidId(p)?(this.style.removeLayer(p),this._update(!0)):this}getLayer(p){if(!this._isValidId(p))return null;const r=this.style.getOwnLayer(p);return r?r.type==="custom"?r.implementation:r.serialize():void 0}getSlots(){return this.style.getSlots()}setLayerZoomRange(p,r,c){return this._isValidId(p)?(this.style.setLayerZoomRange(p,r,c),this._update(!0)):this}setFilter(p,r,c={}){return this._isValidId(p)?(this.style.setFilter(p,r,c),this._update(!0)):this}getFilter(p){return this._isValidId(p)?this.style.getFilter(p):null}setPaintProperty(p,r,c,m={}){return this._isValidId(p)?(this.style.setPaintProperty(p,r,c,m),this._update(!0)):this}getPaintProperty(p,r){return this._isValidId(p)?this.style.getPaintProperty(p,r):null}setLayoutProperty(p,r,c,m={}){return this._isValidId(p)?(this.style.setLayoutProperty(p,r,c,m),this._update(!0)):this}getLayoutProperty(p,r){return this._isValidId(p)?this.style.getLayoutProperty(p,r):null}getSchema(p){return this.style.getSchema(p)}setSchema(p,r){return this.style.setSchema(p,r),this._update(!0)}getConfig(p){return this.style.getConfig(p)}setConfig(p,r){return this.style.setConfig(p,r),this._update(!0)}getConfigProperty(p,r){return this.style.getConfigProperty(p,r)}setConfigProperty(p,r,c){return this.style.setConfigProperty(p,r,c),this._update(!0)}setLights(p){if(this._lazyInitEmptyStyle(),p&&p.length===1&&p[0].type==="flat"){const r=p[0];r.properties?this.style.setFlatLight(r.properties,r.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(p),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const p=this.style.getLights()||[];return p.length===0&&p.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),p}setLight(p,r={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:p}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(p){return this._lazyInitEmptyStyle(),!p&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(p),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(p){return this._lazyInitEmptyStyle(),this.style.setFog(p),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setColorTheme(p){return this._lazyInitEmptyStyle(),this.style.setColorTheme(p),this._update(!0)}setCamera(p){return this.style.setCamera(p),this._triggerCameraUpdate(p)}_triggerCameraUpdate(p){return this._update(this.transform.setOrthographicProjectionAtLowPitch(p["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(p){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(s.bK.convert(p),this.transform):0}setFeatureState(p,r){return this._isValidId(p.source)?(this.style.setFeatureState(p,r),this._update()):this}removeFeatureState(p,r){return this._isValidId(p.source)?(this.style.removeFeatureState(p,r),this._update()):this}getFeatureState(p){return this._isValidId(p.source)?this.style.getFeatureState(p):null}_updateContainerDimensions(){if(!this._container)return;const p=this._container.getBoundingClientRect().width||400,r=this._container.getBoundingClientRect().height||300;let c,m,x,M=this._container;for(;M&&(!m||!x);){const I=window.getComputedStyle(M).transform;I&&I!=="none"&&(c=I.match(/matrix.*\((.+)\)/)[1].split(", "),c[0]&&c[0]!=="0"&&c[0]!=="1"&&(m=c[0]),c[3]&&c[3]!=="0"&&c[3]!=="1"&&(x=c[3])),M=M.parentElement}this._containerWidth=m?Math.abs(p/m):p,this._containerHeight=x?Math.abs(r/x):r}_detectMissingCSS(){window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&s.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const p=this._container;p.classList.add("mapboxgl-map"),(this._missingCSSCanary=Y("div","mapboxgl-canary",p)).style.visibility="hidden",this._detectMissingCSS();const r=this._canvasContainer=Y("div","mapboxgl-canvas-container",p);this._canvas=Y("canvas","mapboxgl-canvas",r),this._interactive&&(r.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const c=this._controlContainer=Y("div","mapboxgl-control-container",p),m=this._controlPositions={};["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"].forEach(x=>{m[x]=Y("div",`mapboxgl-ctrl-${x}`,c)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(p,r){const c=s.q.devicePixelRatio||1;this._canvas.width=c*Math.ceil(p),this._canvas.height=c*Math.ceil(r),this._canvas.style.width=`${p}px`,this._canvas.style.height=`${r}px`}_addMarker(p){this._markers.push(p)}_removeMarker(p){const r=this._markers.indexOf(p);r!==-1&&this._markers.splice(r,1)}_addPopup(p){this._popups.push(p)}_removePopup(p){const r=this._popups.indexOf(p);r!==-1&&this._popups.splice(r,1)}_setupPainter(){const p=s.l({},$.supported.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl2",p);r?(Gt(r,!0),this.painter=new w0(r,this._contextCreateOptions,this.transform,this._tp),this.on("data",c=>{c.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),s.m.testSupport(r)):this.fire(new s.t(new Error("Failed to initialize WebGL")))}_contextLost(p){p.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new s.x("webglcontextlost",{originalEvent:p}))}_contextRestored(p){this._setupPainter(),this.resize(),this._update(),this.fire(new s.x("webglcontextrestored",{originalEvent:p}))}_onMapScroll(p){if(p.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}idle(){return!this.isMoving()&&this.loaded()}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}frameReady(){return this.loaded()&&!this._placementDirty}_update(p){return this.style?(this._styleDirty=this._styleDirty||p,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(p){return this._update(),this._renderTaskQueue.add(p)}_cancelRenderFrame(p){this._renderTaskQueue.remove(p)}_requestDomTask(p){!this.loaded()||this.loaded()&&!this.isMoving()?p():this._domRenderTaskQueue.add(p)}_render(p){let r;this.fire(new s.x("renderstart")),++this._frameId;const c=this.painter.context.extTimerQuery,m=s.q.now(),x=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(r=x.createQuery(),x.beginQuery(c.TIME_ELAPSED_EXT,r)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(p),this._domRenderTaskQueue.run(p),this._removed)return;this._updateProjectionTransition();const M=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const U=this.transform.zoom,B=this.transform.pitch,Q=s.q.now(),G=new s.a3(U,{now:Q,fadeDuration:M,pitch:B,transition:this.style.transition});this.style.update(G)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let I=!1;this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),I=this._updateAverageElevation(m),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):I=this._updateAverageElevation(m);const L=this.style&&this.style._updatePlacement(this.painter,this.painter.transform,this.showCollisionBoxes,M,this._crossSourceCollisions,this.painter.replacementSource);if(L&&(this._placementDirty=L.needsRerender),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showParseStatus:this.showParseStatus,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:M,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new s.x("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,z.mark(E.load),this.fire(new s.x("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),r){const U=s.q.now()-m;x.endQuery(c.TIME_ELAPSED_EXT),setTimeout(()=>{const B=x.getQueryParameter(r,x.QUERY_RESULT)/1e6;x.deleteQuery(r),this.fire(new s.x("gpu-timing-frame",{cpuTime:U,gpuTime:B}))},50)}if(this.listens("gpu-timing-layer")){const U=this.painter.collectGpuTimers();setTimeout(()=>{const B=this.painter.queryGpuTimers(U);this.fire(new s.x("gpu-timing-layer",{layerTimes:B}))},50)}if(this.listens("gpu-timing-deferred-render")){const U=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const B=this.painter.queryGpuTimeDeferredRender(U);this.fire(new s.x("gpu-timing-deferred-render",{gpuTime:B}))},50)}const R=this._sourcesDirty||this._styleDirty||this._placementDirty||I;if(R||this._repaint)this.triggerRepaint();else{const U=this.idle();if(U&&(I=this._updateAverageElevation(m,!0)),I)this.triggerRepaint();else if(this._triggerFrame(!1),U&&(this.fire(new s.x("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const B=this._calculateSpeedIndex();this.fire(new s.x("speedindexcompleted",{speedIndex:B})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||R||(this._fullyLoaded=!0,z.mark(E.fullLoad),this._performanceMetricsCollection&&ft(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(p){for(const r of this._markers)p&&!this.getRenderWorldCopies()&&(r._lngLat=r._lngLat.wrap()),r._update();for(const r of this._popups)!p||this.getRenderWorldCopies()||r._trackPointer||(r._lngLat=r._lngLat.wrap()),r._update()}_updateAverageElevation(p,r=!1){const c=x=>(this.transform.averageElevation=x,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&c(0);const m=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(m||(r||p-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(p)){const x=this.transform.averageElevation;let M=this.transform.sampleAverageElevation();this.transform.elevation!=null&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(M)?M=0:this._averageElevationLastSampledAt=p;const I=Math.abs(x-M);if(I>1){if(this._isInitialLoad||m)return this._averageElevation.jumpTo(M),c(M);this._averageElevation.easeTo(M,p,300)}else if(I>1e-4)return this._averageElevation.jumpTo(M),c(M)}return!!this._averageElevation.isEasing(p)&&c(this._averageElevation.getValue(p))}_authenticate(){ue(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,p=>{if(p&&(p.message===mt||p.status===401)){const r=this.painter.context.gl;Gt(r,!1),this._logoControl instanceof O0&&this._logoControl._updateLogo(),r&&r.clear(r.DEPTH_BUFFER_BIT|r.COLOR_BUFFER_BIT|r.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new s.t(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),fe(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_postStyleLoadEvent(){this.style.globalId&&Ee(this._requestManager._customAccessToken,{map:this,skuToken:this._requestManager._skuToken,style:this.style.globalId,importedStyles:this.style.getImportGlobalIds()})}_updateTerrain(){const p=this._isDragging();this.painter.updateTerrain(this.style,p)}_calculateSpeedIndex(){const p=this.painter.canvasCopy(),r=this.painter.getCanvasCopiesAndTimestamps();r.timeStamps.push(performance.now());const c=this.painter.context.gl,m=c.createFramebuffer();function x(M){c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,M,0);const I=new Uint8Array(c.drawingBufferWidth*c.drawingBufferHeight*4);return c.readPixels(0,0,c.drawingBufferWidth,c.drawingBufferHeight,c.RGBA,c.UNSIGNED_BYTE,I),I}return c.bindFramebuffer(c.FRAMEBUFFER,m),this._canvasPixelComparison(x(p),r.canvasCopies.map(x),r.timeStamps)}_canvasPixelComparison(p,r,c){let m=c[1]-c[0];const x=p.length/4;for(let M=0;M<r.length;M++){const I=r[M];let L=0;for(let R=0;R<I.length;R+=4)I[R]===p[R]&&I[R+1]===p[R+1]&&I[R+2]===p[R+2]&&I[R+3]===p[R+3]&&(L+=1);m+=(c[M+2]-c[M+1])*(1-L/x)}return m}remove(){this._hash&&this._hash.remove();for(const r of this._controls)r.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("orientationchange",this._onWindowResize,!1),window.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1),window.removeEventListener("visibilitychange",this._onVisibilityChange,!1);const p=this.painter.context.gl.getExtension("WEBGL_lose_context");p&&p.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),Dt.delete(this.painter.context.gl),it.remove(),ee.remove(),this._removed=!0,this.fire(new s.x("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(p){this._renderNextFrame=this._renderNextFrame||p,this.style&&!this._frame&&(this._frame=s.q.frame(r=>{const c=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,c&&this._render(r)}))}_preloadTiles(p){const r=this.style?this.style.getSourceCaches():[];return s.bf(r,(c,m)=>c._preloadTiles(p,m),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(p){this._trackResize&&this.resize({originalEvent:p})._update()}_onVisibilityChange(){document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(p){this._showTileBoundaries!==p&&(this._showTileBoundaries=p,this._tp.refreshUI(),this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(p){this._showParseStatus!==p&&(this._showParseStatus=p,this._tp.refreshUI(),this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(p){this._showTerrainWireframe!==p&&(this._showTerrainWireframe=p,this._tp.refreshUI(),this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(p){this._showLayers2DWireframe!==p&&(this._showLayers2DWireframe=p,this._tp.refreshUI(),this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(p){this._showLayers3DWireframe!==p&&(this._showLayers3DWireframe=p,this._tp.refreshUI(),this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(p){this._speedIndexTiming!==p&&(this._speedIndexTiming=p,this._update())}get showPadding(){return!!this._showPadding}set showPadding(p){this._showPadding!==p&&(this._showPadding=p,this._tp.refreshUI(),this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(p){this._showCollisionBoxes!==p&&(this._showCollisionBoxes=p,this._tp.refreshUI(),p?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(p){this._showOverdrawInspector!==p&&(this._showOverdrawInspector=p,this._tp.refreshUI(),this._update())}get repaint(){return!!this._repaint}set repaint(p){this._repaint!==p&&(this._repaint=p,this._tp.refreshUI(),this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(p){this._vertices=p,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(p){this._showTileAABBs!==p&&(this._showTileAABBs=p,this._tp.refreshUI(),p&&this._update())}_setCacheLimits(p,r){s.dy(p,r)}get version(){return v}},NavigationControl:class{constructor(p={}){this.options=s.l({},Cd,p),this._container=Y("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",r=>r.preventDefault()),this.options.showZoom&&(s.aJ(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",r=>{this._map&&this._map.zoomIn({},{originalEvent:r})}),Y("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",r=>{this._map&&this._map.zoomOut({},{originalEvent:r})}),Y("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(s.aJ(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",r=>{const c=this._map;c&&(this.options.visualizePitch?c.resetNorthPitch({},{originalEvent:r}):c.resetNorth({},{originalEvent:r}))}),this._compassIcon=Y("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const p=this._map;if(!p)return;const r=p.getZoom(),c=r===p.getMaxZoom(),m=r===p.getMinZoom();this._zoomInButton.disabled=c,this._zoomOutButton.disabled=m,this._zoomInButton.setAttribute("aria-disabled",c.toString()),this._zoomOutButton.setAttribute("aria-disabled",m.toString())}_rotateCompassArrow(){const p=this._map;if(!p)return;const r=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(p.transform.pitch*(Math.PI/180)),.5)}) rotateX(${p.transform.pitch}deg) rotateZ(${p.transform.angle*(180/Math.PI)}deg)`:`rotate(${p.transform.angle*(180/Math.PI)}deg)`;p._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=r)})}onAdd(p){return this._map=p,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),p.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&p.on("pitch",this._rotateCompassArrow),p.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Xu(p,this._compass,this.options.visualizePitch)),this._container}onRemove(){const p=this._map;p&&(this._container.remove(),this.options.showZoom&&p.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&p.off("pitch",this._rotateCompassArrow),p.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(p,r){const c=Y("button",p,this._container);return c.type="button",c.addEventListener("click",r),c}_setButtonTitle(p,r){if(!this._map)return;const c=this._map._getUIString(`NavigationControl.${r}`);p.setAttribute("aria-label",c),p.firstElementChild&&p.firstElementChild.setAttribute("title",c)}},GeolocateControl:class extends s.E{constructor(p={}){super();const r=navigator.geolocation;this.options=s.l({geolocation:r},Sc,p),s.aJ(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Wa(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(p){return this._map=p,this._container=Y("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(p){const r=(c=!!this.options.geolocation)=>{this._supportsGeolocation=c,p(c)};this._supportsGeolocation!==void 0?p(this._supportsGeolocation):navigator.permissions!==void 0?navigator.permissions.query({name:"geolocation"}).then(c=>r(c.state!=="denied")).catch(()=>r()):r()}_isOutOfMapMaxBounds(p){const r=this._map.getMaxBounds(),c=p.coords;return!!r&&(c.longitude<r.getWest()||c.longitude>r.getEast()||c.latitude<r.getSouth()||c.latitude>r.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(p){if(this._map){if(this._isOutOfMapMaxBounds(p))return this._setErrorState(),this.fire(new s.x("outofmaxbounds",p)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=p,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(p),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(p),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new s.x("geolocate",p)),this._finish()}}_updateCamera(p){const r=new s.bK(p.coords.longitude,p.coords.latitude),c=p.coords.accuracy,m=this._map.getBearing(),x=s.l({bearing:m},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(c),x,{geolocateSource:!0})}_updateMarker(p){if(p){const r=new s.bK(p.coords.longitude,p.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=p.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const p=this._map.transform,r=s.bD(1,p._center.lat)*p.worldSize,c=Math.ceil(2*this._accuracy*r);this._circleElement.style.width=`${c}px`,this._circleElement.style.height=`${c}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(p){if(this._map){if(this.options.trackUserLocation)if(p.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",r),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",r),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(p.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new s.x("error",p)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(p){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",r=>r.preventDefault()),this._geolocateButton=Y("button","mapboxgl-ctrl-geolocate",this._container),Y("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",p===!1){s.w("Geolocation support is not available so the GeolocateControl will be disabled.");const r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",r),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",r)}else{const r=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",r),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",r)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Y("div","mapboxgl-user-location"),this._dotElement.appendChild(Y("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(Y("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new Ea({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=Y("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ea({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",r=>{r.geolocateSource||this._watchState!=="ACTIVE_LOCK"||r.originalEvent&&r.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new s.x("trackuserlocationend")))})}}_onDeviceOrientation(p){this._userLocationDotMarker&&(p.webkitCompassHeading?this._heading=p.webkitCompassHeading:p.absolute===!0&&(this._heading=-1*p.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return s.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new s.x("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new s.x("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new s.x("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let p;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(p={maximumAge:6e5,timeout:0},this._noTimeout=!0):(p=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,p),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=window.setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const p=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(r=>{r==="granted"&&p()}).catch(console.error):p()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:_m,ScaleControl:class{constructor(p={}){this.options=s.l({},jl,p),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),s.aJ(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const p=this.options.maxWidth||100,r=this._map,c=r._containerHeight/2,m=r._containerWidth/2-p/2,x=r.unproject([m,c]),M=r.unproject([m+p,c]),I=x.distanceTo(M);if(this.options.unit==="imperial"){const L=3.2808*I;L>5280?this._setScale(p,L/5280,"mile"):this._setScale(p,L,"foot")}else this.options.unit==="nautical"?this._setScale(p,I/1852,"nautical-mile"):I>=1e3?this._setScale(p,I/1e3,"kilometer"):this._setScale(p,I,"meter")}_setScale(p,r,c){this._map._requestDomTask(()=>{const m=function(M){const I=Math.pow(10,`${Math.floor(M)}`.length-1);let L=M/I;return L=L>=10?10:L>=5?5:L>=3?3:L>=2?2:L>=1?1:function(R){const U=Math.pow(10,Math.ceil(-Math.log(R)/Math.LN10));return Math.round(R*U)/U}(L),I*L}(r),x=m/r;this._container.innerHTML=this._isNumberFormatSupported&&c!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:c}).format(m):`${m} ${CE[c]}`,this._container.style.width=p*x+"px"})}onAdd(p){return this._map=p,this._language=p.getLanguage(),this._container=Y("div","mapboxgl-ctrl mapboxgl-ctrl-scale",p.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(p){this._language=p,this._update()}setUnit(p){this.options.unit=p,this._update()}},FullscreenControl:class{constructor(p={}){this._fullscreen=!1,p&&p.container&&(p.container instanceof HTMLElement?this._container=p.container:s.w("Full screen control 'container' must be a DOM element.")),s.aJ(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(p){return this._map=p,this._container||(this._container=this._map.getContainer()),this._controlContainer=Y("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",s.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const p=this._fullscreenButton=Y("button","mapboxgl-ctrl-fullscreen",this._controlContainer);Y("span","mapboxgl-ctrl-icon",p).setAttribute("aria-hidden","true"),p.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const p=this._getTitle();this._fullscreenButton.setAttribute("aria-label",p),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",p)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends s.E{constructor(p){super(),this.options=s.l(Object.create(AE),p),s.aJ(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(p&&p.className?p.className.trim().split(/\s+/):[])}addTo(p){return this._map&&this.remove(),this._map=p,this.options.closeOnClick&&p.on("preclick",this._onClose),this.options.closeOnMove&&p.on("move",this._onClose),p.on("remove",this.remove),this._update(),p._addPopup(this),this._focusFirstElement(),this._trackPointer?(p.on("mousemove",this._onMouseEvent),p.on("mouseup",this._onMouseEvent),p._canvasContainer.classList.add("mapboxgl-track-pointer")):p.on("move",this._update),this.fire(new s.x("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const p=this._map;return p&&(p.off("move",this._update),p.off("move",this._onClose),p.off("preclick",this._onClose),p.off("click",this._onClose),p.off("remove",this.remove),p.off("mousemove",this._onMouseEvent),p.off("mouseup",this._onMouseEvent),p.off("drag",this._onMouseEvent),p._canvasContainer&&p._canvasContainer.classList.remove("mapboxgl-track-pointer"),p._removePopup(this),this._map=void 0),this.fire(new s.x("close")),this}getLngLat(){return this._lngLat}setLngLat(p){this._lngLat=s.bK.convert(p),this._pos=null,this._trackPointer=!1,this._update();const r=this._map;return r&&(r.on("move",this._update),r.off("mousemove",this._onMouseEvent),r._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const p=this._map;return p&&(p.off("move",this._update),p.on("mousemove",this._onMouseEvent),p.on("drag",this._onMouseEvent),p._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(p){return this.setDOMContent(document.createTextNode(p))}setHTML(p){const r=document.createDocumentFragment(),c=document.createElement("body");let m;for(c.innerHTML=p;m=c.firstChild,m;)r.appendChild(m);return this.setDOMContent(r)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(p){return this.options.maxWidth=p,this._update(),this}setDOMContent(p){let r=this._content;if(r)for(;r.hasChildNodes();)r.firstChild&&r.removeChild(r.firstChild);else r=this._content=Y("div","mapboxgl-popup-content",this._container||void 0);if(r.appendChild(p),this.options.closeButton){const c=this._closeButton=Y("button","mapboxgl-popup-close-button",r);c.type="button",c.setAttribute("aria-label","Close popup"),c.setAttribute("aria-hidden","true"),c.innerHTML="×",c.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(p){return this._classList.add(p),this._updateClassList(),this}removeClassName(p){return this._classList.delete(p),this._updateClassList(),this}setOffset(p){return this.options.offset=p,this._update(),this}toggleClassName(p){let r;return this._classList.delete(p)?r=!1:(this._classList.add(p),r=!0),this._updateClassList(),r}_onMouseEvent(p){this._update(p.point)}_getAnchor(p){if(this.options.anchor)return this.options.anchor;const r=this._map,c=this._container,m=this._pos;if(!r||!c||!m)return"bottom";const x=c.offsetWidth,M=c.offsetHeight,I=m.x<x/2,L=m.x>r.transform.width-x/2;if(m.y+p<M)return I?"top-left":L?"top-right":"top";if(m.y>r.transform.height-M){if(I)return"bottom-left";if(L)return"bottom-right"}return I?"left":L?"right":"bottom"}_updateClassList(){const p=this._container;if(!p)return;const r=[...this._classList];r.push("mapboxgl-popup"),this._anchor&&r.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&r.push("mapboxgl-popup-track-pointer"),p.className=r.join(" ")}_update(p){const r=this._map,c=this._content;if(!r||!this._lngLat&&!this._trackPointer||!c)return;let m=this._container;if(m||(m=this._container=Y("div","mapboxgl-popup",r.getContainer()),this._tip=Y("div","mapboxgl-popup-tip",m),m.appendChild(c)),this.options.maxWidth&&m.style.maxWidth!==this.options.maxWidth&&(m.style.maxWidth=this.options.maxWidth),r.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Sa(this._lngLat,this._pos,r.transform)),!this._trackPointer||p){const x=this._pos=this._trackPointer&&p instanceof s.P?p:r.project(this._lngLat),M=vM(this.options.offset),I=this._anchor=this._getAnchor(M.y),L=vM(this.options.offset,I),R=x.add(L).round();r._requestDomTask(()=>{this._container&&I&&(this._container.style.transform=`${ys[I]} translate(${R.x}px,${R.y}px)`)})}if(!this._marker&&r._showingGlobe()){const x=s.dz(r.transform,this._lngLat)?0:1;this._setOpacity(x)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const p=this._container.querySelector(NE);p&&p.focus()}_onClose(){this.remove()}_setOpacity(p){this._container&&(this._container.style.opacity=`${p}`),this._content&&(this._content.style.pointerEvents=p?"auto":"none")}},Marker:Ea,Style:ms,LngLat:s.bK,LngLatBounds:s.as,Point:s.P,MercatorCoordinate:s.a5,FreeCameraOptions:El,Evented:s.E,config:s.e,prewarm:s.dE,clearPrewarmedResources:s.dF,get accessToken(){return s.e.ACCESS_TOKEN},set accessToken(p){s.e.ACCESS_TOKEN=p},get baseApiUrl(){return s.e.API_URL},set baseApiUrl(p){s.e.API_URL=p},get workerCount(){return s.dG.workerCount},set workerCount(p){s.dG.workerCount=p},get maxParallelImageRequests(){return s.e.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(p){s.e.MAX_PARALLEL_IMAGE_REQUESTS=p},clearStorage(p){s.dH(p)},get workerUrl(){return s.dI.workerUrl},set workerUrl(p){s.dI.workerUrl=p},get workerClass(){return s.dI.workerClass},set workerClass(p){s.dI.workerClass=p},get workerParams(){return s.dI.workerParams},set workerParams(p){s.dI.workerParams=p},get dracoUrl(){return s.dJ()},set dracoUrl(p){s.dK(p)},get meshoptUrl(){return s.dL()},set meshoptUrl(p){s.dM(p)},setNow:s.q.setNow,restoreNow:s.q.restoreNow}});var g=l;return g})})(NO);var Tae=NO.exports;const LO=Ud(Tae),a_e="",l_e="",c_e="";function So(e){return e==null}const Sae=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{opacity:.12,d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",fill:"white",style:{fill:"white",fillOpacity:1}}),Re.createElement("path",{d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Eae=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{opacity:.12,d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",fill:"#6B7280",style:{fill:"#6B7280",fill:"color(display-p3 0.4196 0.4471 0.5020)",fillOpacity:1}}),Re.createElement("path",{d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",stroke:"#6B7280",style:{stroke:"#6B7280",stroke:"color(display-p3 0.4196 0.4471 0.5020)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Dae=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{opacity:.12,d:"M12 12L21 7V16.0586C21 16.4012 21 16.5725 20.9495 16.7253C20.9049 16.8605 20.8318 16.9846 20.7354 17.0893C20.6263 17.2076 20.4766 17.2908 20.177 17.4572L12.777 21.5683C12.4934 21.7259 12.3516 21.8047 12.2015 21.8355C12.0685 21.8629 11.9315 21.8629 11.7986 21.8355C11.6484 21.8047 11.5066 21.7259 11.223 21.5683L3.82297 17.4572C3.52345 17.2908 3.37369 17.2076 3.26463 17.0893C3.16816 16.9846 3.09515 16.8605 3.05048 16.7253C3 16.5725 3 16.4012 3 16.0586V7L12 12Z",fill:"white",style:{fill:"white",fillOpacity:1}}),Re.createElement("path",{d:"M20.5 7.27783L12 12.0001M12 12.0001L3.49997 7.27783M12 12.0001V21.5001M21 16.0586V7.94153C21 7.59889 21 7.42757 20.9495 7.27477C20.9049 7.13959 20.8318 7.01551 20.7354 6.91082C20.6263 6.79248 20.4766 6.70928 20.177 6.54288L12.777 2.43177C12.4934 2.27421 12.3516 2.19543 12.2015 2.16454C12.0685 2.13721 11.9315 2.13721 11.7986 2.16454C11.6484 2.19543 11.5066 2.27421 11.223 2.43177L3.82297 6.54288C3.52345 6.70928 3.37369 6.79248 3.26463 6.91082C3.16816 7.01551 3.09515 7.13959 3.05048 7.27477C3 7.42757 3 7.59889 3 7.94153V16.0586C3 16.4013 3 16.5726 3.05048 16.7254C3.09515 16.8606 3.16816 16.9847 3.26463 17.0893C3.37369 17.2077 3.52345 17.2909 3.82297 17.4573L11.223 21.5684C11.5066 21.726 11.6484 21.8047 11.7986 21.8356C11.9315 21.863 12.0685 21.863 12.2015 21.8356C12.3516 21.8047 12.4934 21.726 12.777 21.5684L20.177 17.4573C20.4766 17.2909 20.6263 17.2077 20.7354 17.0893C20.8318 16.9847 20.9049 16.8606 20.9495 16.7254C21 16.5726 21 16.4013 21 16.0586Z",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Cae=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{opacity:.12,d:"M12 12L21 7V16.0586C21 16.4012 21 16.5725 20.9495 16.7253C20.9049 16.8605 20.8318 16.9846 20.7354 17.0893C20.6263 17.2076 20.4766 17.2908 20.177 17.4572L12.777 21.5683C12.4934 21.7259 12.3516 21.8047 12.2015 21.8355C12.0685 21.8629 11.9315 21.8629 11.7986 21.8355C11.6484 21.8047 11.5066 21.7259 11.223 21.5683L3.82297 17.4572C3.52345 17.2908 3.37369 17.2076 3.26463 17.0893C3.16816 16.9846 3.09515 16.8605 3.05048 16.7253C3 16.5725 3 16.4012 3 16.0586V7L12 12Z",fill:"#6B7280",style:{fill:"#6B7280",fill:"color(display-p3 0.4196 0.4471 0.5020)",fillOpacity:1}}),Re.createElement("path",{d:"M20.5 7.27783L12 12.0001M12 12.0001L3.49997 7.27783M12 12.0001V21.5001M21 16.0586V7.94153C21 7.59889 21 7.42757 20.9495 7.27477C20.9049 7.13959 20.8318 7.01551 20.7354 6.91082C20.6263 6.79248 20.4766 6.70928 20.177 6.54288L12.777 2.43177C12.4934 2.27421 12.3516 2.19543 12.2015 2.16454C12.0685 2.13721 11.9315 2.13721 11.7986 2.16454C11.6484 2.19543 11.5066 2.27421 11.223 2.43177L3.82297 6.54288C3.52345 6.70928 3.37369 6.79248 3.26463 6.91082C3.16816 7.01551 3.09515 7.13959 3.05048 7.27477C3 7.42757 3 7.59889 3 7.94153V16.0586C3 16.4013 3 16.5726 3.05048 16.7254C3.09515 16.8606 3.16816 16.9847 3.26463 17.0893C3.37369 17.2077 3.52345 17.2909 3.82297 17.4573L11.223 21.5684C11.5066 21.726 11.6484 21.8047 11.7986 21.8356C11.9315 21.863 12.0685 21.863 12.2015 21.8356C12.3516 21.8047 12.4934 21.726 12.777 21.5684L20.177 17.4573C20.4766 17.2909 20.6263 17.2077 20.7354 17.0893C20.8318 16.9847 20.9049 16.8606 20.9495 16.7254C21 16.5726 21 16.4013 21 16.0586Z",stroke:"#6B7280",style:{stroke:"#6B7280",stroke:"color(display-p3 0.4196 0.4471 0.5020)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Gs=Object.freeze({initial3D:"initial3D",clicked3D:"clicked3D",clicked2D:"clicked2D"});zO.propTypes={mapView:Ri.object,pitch:Ri.number,solution:Ri.object,reset:Ri.number,activeColor:Ri.string};function zO({mapView:e,pitch:t,reset:n,activeColor:o="#005655"}){const[l,d]=Re.useState(Gs.initial3D);return Re.useEffect(()=>{n&&d(Gs.initial3D)},[n]),Re.useEffect(()=>{e&&new Promise(s=>{e.isReady?s():e.on("ready",()=>{s()})}).then(()=>{switch(l){case Gs.clicked2D:e.tilt(0,2e3),e.hideFeatures([e.FeatureType.MODEL3D,e.FeatureType.WALLS3D,e.FeatureType.EXTRUSION3D,e.FeatureType.EXTRUDEDBUILDINGS]);break;case Gs.initial3D:e.tilt(So(t)?45:t,2e3),e.hideFeatures([e.FeatureType.MODEL2D,e.FeatureType.WALLS2D]);break;case Gs.clicked3D:e.tilt(45,2e3),e.hideFeatures([e.FeatureType.MODEL2D,e.FeatureType.WALLS2D]);break}})},[l,e]),dt.jsxs("div",{className:"view-mode-switch","data-sentry-component":"ViewModeSwitch","data-sentry-source-file":"ViewModeSwitch.jsx",children:[dt.jsx("button",{className:"view-mode-switch__button",onClick:()=>d(Gs.clicked2D),style:{backgroundColor:l===Gs.clicked2D?o:"white"},children:l===Gs.clicked2D?dt.jsx(Sae,{}):dt.jsx(Eae,{})}),dt.jsx("button",{className:"view-mode-switch__button",onClick:()=>d(Gs.clicked3D),style:{backgroundColor:[Gs.initial3D,Gs.clicked3D].includes(l)?o:"white"},children:[Gs.initial3D,Gs.clicked3D].includes(l)?dt.jsx(Dae,{}):dt.jsx(Cae,{})})]})}const Aae=e=>{const[t,n]=Re.useState(!1);return Re.useEffect(()=>{const o=window.matchMedia(e);o.matches!==t&&n(o.matches);const l=()=>n(o.matches);return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[t,e]),t},kO=()=>Aae("(min-width: 992px)");OO.propTypes={accessToken:Ri.string.isRequired,onInitialized:Ri.func.isRequired,onPositionControl:Ri.func.isRequired,center:Ri.object,zoom:Ri.number,bounds:Ri.object,bearing:Ri.number,pitch:Ri.number,resetViewMode:Ri.number,mapsIndoorsInstance:Ri.object,viewModeSwitchVisible:Ri.bool,mapOptions:Ri.object};function OO({accessToken:e,onInitialized:t,onPositionControl:n,center:o,zoom:l,bounds:d,bearing:g,pitch:s,resetViewMode:v,mapsIndoorsInstance:E,viewModeSwitchVisible:z,mapOptions:O}){const[j,F]=Re.useState(),[$,Y]=Re.useState(!1),[ie,K]=Re.useState(!1),[J,te]=Re.useState(!1),oe=kO();return Re.useEffect(()=>{j&&(So(d)?(So(o)||j.getMap().setCenter(o),So(l)||j.getMap().setZoom(l),So(g)||j.getMap().setBearing(g),So(s)||j.getMap().setPitch(s)):j.getMap().fitBounds([d.west,d.south,d.east,d.north],{pitch:s||0,bearing:g||0,animate:!1,padding:O==null?void 0:O.fitBoundsPadding}))},[j,o,l,g,s,d,O]),Re.useEffect(()=>{if(E&&j&&!ie){const pe=document.createElement("mi-my-position");pe.mapsindoors=E,j.getMap().addControl({onAdd:()=>pe,onRemove:function(){}},"top-right"),K(!0),n(pe)}if(E&&j&&!J&&oe&&(j.getMap().addControl(new LO.NavigationControl({showCompass:!1}),"top-right"),te(!0)),E&&j&&!$){const pe=document.createElement("mi-floor-selector");pe.mapsindoors=E,O!=null&&O.brandingColor&&(pe.primaryColor=O.brandingColor),j.getMap().addControl({onAdd:()=>pe,onRemove:function(){pe.parentNode.removeChild(pe)}},"top-right"),Y(!0)}},[E,j,$,ie,J]),Re.useEffect(()=>{window.mapboxgl=LO;const pe={accessToken:e,element:document.getElementById("map"),center:o??{lat:0,lng:0},zoom:l??15,bounds:d?[d.west,d.south,d.east,d.north]:void 0,bearing:g??0,pitch:s??0,...O};O!=null&&O.miTransitionLevel&&!isNaN(parseInt(O==null?void 0:O.miTransitionLevel))&&(pe.mapsIndoorsTransitionLevel=parseInt(O.miTransitionLevel));const me=new window.mapsindoors.mapView.MapboxV3View(pe);F(me),t(me)},[]),dt.jsx("div",{className:"mapsindoors-map mapbox-map-container",id:"map","data-sentry-component":"MapboxMap","data-sentry-source-file":"MapboxMap.jsx",children:z&&dt.jsx(zO,{reset:v,mapView:j,pitch:s,activeColor:O==null?void 0:O.brandingColor})})}var Nae=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,l,d;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(l=o;l--!==0;)if(!e(t[l],n[l]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(d=Object.keys(t),o=d.length,o!==Object.keys(n).length)return!1;for(l=o;l--!==0;)if(!Object.prototype.hasOwnProperty.call(n,d[l]))return!1;for(l=o;l--!==0;){var g=d[l];if(!e(t[g],n[g]))return!1}return!0}return t!==t&&n!==n};const jO="__googleMapsScriptId";var np;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(np||(np={}));let Lae=class km{constructor({apiKey:t,authReferrerPolicy:n,channel:o,client:l,id:d=jO,language:g,libraries:s=[],mapIds:v,nonce:E,region:z,retries:O=3,url:j="https://maps.googleapis.com/maps/api/js",version:F}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=o,this.client=l,this.id=d||jO,this.language=g,this.libraries=s,this.mapIds=v,this.nonce=E,this.region=z,this.retries=O,this.url=j,this.version=F,km.instance){if(!Nae(this.options,km.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(km.instance.options)}`);return km.instance}km.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?np.FAILURE:this.done?np.SUCCESS:this.loading?np.LOADING:np.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(o=>{o?n(o.error):t(window.google)})})}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const t=this.createUrl(),n=document.createElement("script");n.id=this.id,n.type="text/javascript",n.src=t,n.onerror=this.loadErrorCallback.bind(this),n.defer=!0,n.async=!0,this.nonce&&(n.nonce=this.nonce),document.head.appendChild(n)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}};const u_e="";RO.propTypes={apiKey:Ri.string.isRequired,onInitialized:Ri.func.isRequired,onPositionControl:Ri.func.isRequired,center:Ri.object,zoom:Ri.number,bounds:Ri.object,heading:Ri.number,tilt:Ri.number,mapsIndoorsInstance:Ri.object,mapOptions:Ri.object};function RO({apiKey:e,onInitialized:t,onPositionControl:n,center:o,zoom:l,bounds:d,heading:g,tilt:s,mapsIndoorsInstance:v,mapOptions:E}){const[z,O]=Re.useState(),[j,F]=Re.useState(),[$,Y]=Re.useState(!1),[ie,K]=Re.useState(!1),[J,te]=Re.useState(!1),oe=kO();return Re.useEffect(()=>{j&&(So(d)||v.getMapView().fitBounds(d,E==null?void 0:E.fitBoundsPadding),!So(o)&&So(d)&&j.getMap().setCenter(o),!So(l)&&So(d)&&j.getMap().setZoom(l),So(g)||j.getMap().setHeading(g),So(s)||j.getMap().setTilt(s))},[j,o,l,g,s,d,E]),Re.useEffect(()=>{if(v&&j&&z&&!ie){const pe=document.createElement("mi-my-position");pe.mapsindoors=v,j.getMap().controls[z.maps.ControlPosition.RIGHT_TOP].push(pe),K(!0),n(pe)}if(v&&j&&z&&!$){const pe=document.createElement("mi-floor-selector");pe.mapsindoors=v,E!=null&&E.brandingColor&&(pe.primaryColor=E.brandingColor),j.getMap().controls[z.maps.ControlPosition.RIGHT_TOP].push(pe),Y(!0)}v&&j&&z&&!J&&oe&&(j.getMap().setOptions({zoomControl:!0,zoomControlOptions:{style:z.maps.ZoomControlStyle.DEFAULT,position:z.maps.ControlPosition.RIGHT_TOP}}),te(!0))},[v,j,z,$,ie]),Re.useEffect(()=>{new Lae({apiKey:e,version:"quarterly",libraries:["geometry","places"]}).load().then(me=>{O(me);const he={element:document.getElementById("map"),disableDefaultUI:!0,center:o??{lat:0,lng:0},zoom:l??21,heading:g??0,tilt:s??0,...E},De=new window.mapsindoors.mapView.GoogleMapsView(he);F(De),t(De)})},[]),dt.jsx("div",{className:"mapsindoors-map google-maps-map-container",id:"map","data-sentry-component":"GoogleMapsMap","data-sentry-source-file":"GoogleMapsMap.jsx"})}const h_e="",ip={Google:"google",Mapbox:"mapbox"};PO.propTypes={apiKey:Ri.string.isRequired,gmApiKey:Ri.string,mapboxAccessToken:Ri.string,center:Ri.object,zoom:Ri.number,bounds:Ri.object,bearing:Ri.number,pitch:Ri.number,resetUICounter:Ri.number,mapOptions:Ri.object,onInitialized:Ri.func};function PO({apiKey:e,gmApiKey:t,mapboxAccessToken:n,center:o,zoom:l,bounds:d,bearing:g,pitch:s,resetUICounter:v,mapOptions:E,onInitialized:z}){const[O,j]=Re.useState(),[F,$]=Re.useState(),[Y,ie]=Re.useState(),[K,J]=Re.useState(),[te,oe]=Re.useState();Re.useEffect(()=>{window.customElements.get("mi-floor-selector")||uO()},[]),Re.useEffect(()=>{e&&(window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),O===ip.Mapbox&&window.mapsindoors.services.SolutionsService.getSolution().then(me=>{oe(me)}))},[e,O]);const pe=me=>{const he=new window.mapsindoors.MapsIndoors({mapView:me});he.once("building_changed",De=>{const qe=he.getVenue();De&&qe&&De.venueId!==qe.id&&he.setVenue(De.venueId)}),he.on("mouseenter",()=>{var qe;const De=he.getHoveredLocation();((qe=De==null?void 0:De.properties.locationSettings)==null?void 0:qe.selectable)===!1&&he.unhoverLocation()}),he.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),$(he)};return Re.useEffect(()=>{typeof z=="function"&&F&&Y&&typeof K=="boolean"&&z(F,Y,K)},[F,Y,K]),Re.useEffect(()=>{te&&O===ip.Mapbox&&["mapbox","3dwalls","floorplan"].every(me=>te.modules.map(he=>he.toLowerCase()).includes(me))?J(!0):J(!1)},[te,O]),Re.useEffect(()=>{n?j(ip.Mapbox):t&&j(ip.Google)},[t,n]),dt.jsxs(dt.Fragment,{children:[O===ip.Google&&dt.jsx(RO,{mapsIndoorsInstance:F,apiKey:t,onInitialized:pe,onPositionControl:ie,center:o,zoom:l,mapOptions:E,heading:g,tilt:s,bounds:d}),O===ip.Mapbox&&dt.jsx(OO,{mapsIndoorsInstance:F,accessToken:n,onInitialized:pe,onPositionControl:ie,center:o,zoom:l,mapOptions:E,bearing:g,pitch:s,bounds:d,resetViewMode:v,viewModeSwitchVisible:K})]})}const Bo={Google:"google",Mapbox:"mapbox"},Zs=Jn({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),zae=e=>{const t=rn(Zs),n=Re.useRef(),[o,l]=Re.useState([]);Re.useEffect(()=>{(async()=>{if(t&&e){for(const s of o)n.current.disableLiveData(s);n.current=new window.mapsindoors.LiveDataManager(t);const g=await n.current.LiveDataInfo.activeDomainTypes();for(const s of g)await n.current.enableLiveData(s);l(g)}})()},[e,t])},Ex=Jn({key:"userPosition",default:null}),FI=Jn({key:"directionsService",default:null}),VI=Jn({key:"mapType",default:void 0}),$I=Jn({key:"apiKey",default:null}),HI=Jn({key:"gmApiKey",default:null}),Dx=Jn({key:"mapboxAccessToken",default:null}),Cx=Jn({key:"filteredLocations",default:void 0}),Ax=Jn({key:"filteredLocationsByExternalID",default:void 0}),UO=Jn({key:"tileStyle",default:null}),BO=Jn({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),QI=Jn({key:"bearing",default:0}),Nx=Jn({key:"pitch",default:null}),YI=Jn({key:"solution",default:null,dangerouslyAllowMutability:!0}),GI=Jn({key:"notificationMessage",default:null});function ZI(){return new Promise(e=>{const t=document.querySelector(".modal--open"),n=document.querySelector(".mapsindoors-map");if(t)e(n.offsetHeight-(t==null?void 0:t.offsetTop));else{const o=new MutationObserver(()=>{const l=document.querySelector(".modal--open");l&&(o.disconnect(),e(n.offsetHeight-(l==null?void 0:l.offsetTop)))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const rp=Jn({key:"categories",default:[]}),FO=Jn({key:"kioskOriginLocationId",default:void 0}),Lx=Jn({key:"locationId",default:void 0}),VO=Jn({key:"startZoomLevel",default:null}),op=Jn({key:"currentVenueName",default:null}),m1=Jn({key:"venues",default:[]}),WI=Jn({key:"venueWasSelected",default:!1});function $O(){return new Promise(e=>{const t=document.querySelector(".sheet--active"),n=document.querySelector(".mapsindoors-map");if(t)e(n.offsetHeight-t.offsetTop);else{const o=new MutationObserver(()=>{const l=document.querySelector(".sheet--active");l&&(o.disconnect(),e(n.offsetHeight-l.offsetTop))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function qI(){return new Promise(e=>{const t=document.querySelector(".modal--open");if(t)e((t==null?void 0:t.offsetWidth)+(t==null?void 0:t.offsetLeft)*2);else{const n=new MutationObserver(()=>{const o=document.querySelector(".modal--open");o&&(n.disconnect(),e((o==null?void 0:o.offsetWidth)+(o==null?void 0:o.offsetLeft)*2))});n.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const KI=Jn({key:"isMapReady",default:!1}),HO=Jn({key:"timeout",default:void 0});function QO(){const[e,t]=Re.useState(!1),n=rn(KI),o=rn(HO);return Re.useEffect(()=>{if(!n||!o)return;let l;const d=s=>{t(!1),window.clearTimeout(l),l=window.setTimeout(g,o*1e3)},g=()=>{t(!0)};return l=window.setTimeout(g,o*1e3),window.addEventListener("mousemove",d),window.addEventListener("mousedown",d),window.addEventListener("resize",d),window.addEventListener("keydown",d),window.addEventListener("touchstart",d),window.addEventListener("wheel",d),()=>{window.removeEventListener("mousemove",d),window.removeEventListener("mousedown",d),window.removeEventListener("resize",d),window.removeEventListener("keydown",d),window.removeEventListener("touchstart",d),window.removeEventListener("wheel",d),window.clearTimeout(l)}},[o,n]),e}const YO=e=>{const[t,n]=Re.useState(window.matchMedia(e).matches);return Re.useEffect(()=>{const o=window.matchMedia(e);o.matches!==t&&n(o.matches);const l=()=>n(o.matches);return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[t,e]),t},$h=()=>YO("(min-width: 992px)"),GO=Jn({key:"mapboxViewMode",default:null}),XI=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),kae=DI({key:"currentPitch",get:({get:e})=>{const t=e(Nx),n=e(GO);let o;switch(n){case XI.initial3D:o=t??45;break;case XI.clicked3D:o=45;break;case XI.clicked2D:o=0;break;default:o=t}return o}}),Oae=()=>{const[e,t]=Re.useState(!1),[n,o]=Re.useState(!1),l=$h(),d=QO(),g=rn(QI),s=rn(rp),v=rn(FO),E=rn(Lx),z=rn(Zs),O=rn(Nx),j=rn(VO),F=rn(op),$=rn(m1),Y=rn(kae),ie=rn(WI),[K,J]=Re.useState(!1);Re.useEffect(()=>{d&&te()},[d]),Re.useEffect(()=>{te()},[z,F,E,v,O,g,j,s]);function te(){const pe=$.find(me=>me.name.toLowerCase()===F.toLowerCase());z&&pe&&(t(!0),v&&l?window.mapsindoors.services.LocationsService.getLocation(v).then(me=>{if(me){const he=me.properties.floor;z.setFloor(he),oe(me),ZI().then(De=>{o(me.geometry),zx(me.geometry,z,De,0,j,Y,g)})}}):E&&!ie?window.mapsindoors.services.LocationsService.getLocation(E).then(me=>{if(me){const he=me.properties.floor;z.setFloor(he),l?qI().then(De=>{o(me.geometry),zx(me.geometry,z,0,De,j,Y,g)}):$O().then(De=>{o(me.geometry),zx(me.geometry,z,De,0,j,Y,g)})}}):pe&&(o(pe.geometry),zx(pe.geometry,z,0,0,j,Y,g)))}function oe(pe){if(K)return;const me=z.getDisplayRule(pe);me.visible=!0,me.iconSize={width:me.iconSize.width*2,height:me.iconSize.height*2},me.iconVisible=!0,me.zoomFrom=0,me.zoomTo=999,me.clickable=!1,z.setDisplayRule(pe.id,me),J(!0)}return[e,n]};function zx(e,t,n,o,l,d,g){t.getMapView().tilt(d||0),t.getMapView().rotate(g||0),t.goTo({type:"Feature",geometry:e,properties:{}},{maxZoom:l??22,padding:{top:0,right:0,bottom:n,left:o}}).then(()=>{l&&t.setZoom(l)})}const ZO=Jn({key:"hideNonMatches",default:!1}),WO=Jn({key:"miTransitionLevel",default:void 0});let JI;function jae({onLocationClick:e,onMapPositionKnown:t,useMapProviderModule:n,onMapPositionInvestigating:o,onViewModeSwitchKnown:l,resetCount:d}){const g=rn($I),s=rn(HI),v=rn(Dx),[E,z]=Dn(VI),[O,j]=Dn(Zs),[,F]=Dn(Ex),[,$]=Dn(FI),Y=rn(Cx),ie=rn(Ax),K=rn(UO),J=rn(QI),te=rn(Nx),[,oe]=Dn(BO),pe=rn(YI),[,me]=Dn(GI),he=rn(ZO),[De,qe]=Re.useState({}),Te=rn(WO);zae(g);const[ze,ht]=Oae();Re.useEffect(()=>{if(!pe||s===null&&v===null)return;let Fe;const ot=pe.modules.map(Je=>Je.toLowerCase()).includes("mapbox");n?ot?v&&(Fe=Bo.Mapbox):s&&(Fe=Bo.Google):v?Fe=Bo.Mapbox:Fe=Bo.Google,Fe?z(Fe):(me({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),z(void 0))},[s,v,pe]),Re.useEffect(()=>{ze&&o()},[ze]),Re.useEffect(()=>{ht&&t()},[ht]),Re.useEffect(()=>{if(!O)return;const Fe=Y||ie;if(!Fe)return;const ot=Fe.map(Je=>Je.id);he||!O.highlight?O.filter(ot):O.highlight(ot)},[Y,ie,O,he]),Re.useEffect(()=>{O&&(isNaN(parseInt(te))||O.getMapView().tilt(parseInt(te)),isNaN(parseInt(J))||O.getMapView().rotate(parseInt(J)))},[J,te,O]);const mt=Fe=>{vt(Fe)},vt=Fe=>{if(Fe&&JI){let ot=Fe.getTileURL();if(ot){ot=Fe.getTileURL().replace("default",JI);const Je=ot==null?void 0:ot.replace("{floor}",Fe.getFloor());Fe.getMapView().setMapsIndoorsTileURL(Je)}}},Qe=(Fe,ot,Je)=>{Fe.on("mouseenter",()=>{var ee;const ye=Fe.getHoveredLocation();((ee=ye==null?void 0:ye.properties.locationSettings)==null?void 0:ee.selectable)===!1&&Fe.unhoverLocation()}),Fe.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),Fe.on("click",ye=>e(ye)),Fe.once("building_changed",()=>mt(Fe)),Fe.on("floor_changed",()=>vt(Fe)),j(Fe),window.mapsIndoorsInstance=Fe;const He=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(He);let Ae;E===Bo.Google?Ae=new window.mapsindoors.directions.GoogleMapsProvider:E===Bo.Mapbox&&(Ae=new window.mapsindoors.directions.MapboxProvider(v));const je=new window.mapsindoors.services.DirectionsService(Ae);$(je),j(Fe),ot.nodeName==="MI-MY-POSITION"?ot.addEventListener("position_received",ye=>{ye.detail.accurate===!0&&F(ye.detail.position)}):ot.on("position_received",ye=>{ye.accurate===!0&&F(ye.position)}),oe(ot),l(Je)};return Re.useEffect(()=>{JI=K||"default",vt(O)},[K]),Re.useEffect(()=>{isNaN(parseInt(Te))||qe({miTransitionLevel:Te})},[Te]),dt.jsx(dt.Fragment,{children:g&&dt.jsx(PO,{apiKey:g,mapboxAccessToken:E===Bo.Mapbox?v:void 0,gmApiKey:E===Bo.Google?s:void 0,onInitialized:Qe,resetUICounter:d,mapOptions:De})})}const uc=Jn({key:"primaryColor",default:"#005655"}),d_e="",eT=Jn({key:"logo",default:void 0});function Rae(){const e=rn(uc),t=rn(eT);return dt.jsx("div",{className:"splash-screen","data-sentry-component":"SplashScreen","data-sentry-source-file":"SplashScreen.jsx",children:dt.jsxs("div",{className:"splash-screen__container",children:[dt.jsx("img",{className:"splash-screen__logo",src:t,alt:"logo"}),dt.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}const Pae=sK(Rae,{name:"SplashScreen"});function qO(e,t){if(e==null)return{};var n={},o=Object.keys(e),l,d;for(d=0;d<o.length;d++)l=o[d],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function tT(e,t){return tT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,l){return o.__proto__=l,o},tT(e,t)}function KO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tT(e,t)}function Uae(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Bae(e,t){e.classList?e.classList.add(t):Uae(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function XO(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Fae(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=XO(e.className,t):e.setAttribute("class",XO(e.className&&e.className.baseVal||"",t))}const JO={disabled:!1},e7=Yi.createContext(null);var t7=function(t){return t.scrollTop},g1="unmounted",Hh="exited",Qh="entering",sp="entered",nT="exiting",hc=function(e){KO(t,e);function t(o,l){var d;d=e.call(this,o,l)||this;var g=l,s=g&&!g.isMounting?o.enter:o.appear,v;return d.appearStatus=null,o.in?s?(v=Hh,d.appearStatus=Qh):v=sp:o.unmountOnExit||o.mountOnEnter?v=g1:v=Hh,d.state={status:v},d.nextCallback=null,d}t.getDerivedStateFromProps=function(l,d){var g=l.in;return g&&d.status===g1?{status:Hh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(l){var d=null;if(l!==this.props){var g=this.state.status;this.props.in?g!==Qh&&g!==sp&&(d=Qh):(g===Qh||g===sp)&&(d=nT)}this.updateStatus(!1,d)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var l=this.props.timeout,d,g,s;return d=g=s=l,l!=null&&typeof l!="number"&&(d=l.exit,g=l.enter,s=l.appear!==void 0?l.appear:g),{exit:d,enter:g,appear:s}},n.updateStatus=function(l,d){if(l===void 0&&(l=!1),d!==null)if(this.cancelNextCallback(),d===Qh){if(this.props.unmountOnExit||this.props.mountOnEnter){var g=this.props.nodeRef?this.props.nodeRef.current:Wg.findDOMNode(this);g&&t7(g)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Hh&&this.setState({status:g1})},n.performEnter=function(l){var d=this,g=this.props.enter,s=this.context?this.context.isMounting:l,v=this.props.nodeRef?[s]:[Wg.findDOMNode(this),s],E=v[0],z=v[1],O=this.getTimeouts(),j=s?O.appear:O.enter;if(!l&&!g||JO.disabled){this.safeSetState({status:sp},function(){d.props.onEntered(E)});return}this.props.onEnter(E,z),this.safeSetState({status:Qh},function(){d.props.onEntering(E,z),d.onTransitionEnd(j,function(){d.safeSetState({status:sp},function(){d.props.onEntered(E,z)})})})},n.performExit=function(){var l=this,d=this.props.exit,g=this.getTimeouts(),s=this.props.nodeRef?void 0:Wg.findDOMNode(this);if(!d||JO.disabled){this.safeSetState({status:Hh},function(){l.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:nT},function(){l.props.onExiting(s),l.onTransitionEnd(g.exit,function(){l.safeSetState({status:Hh},function(){l.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(l,d){d=this.setNextCallback(d),this.setState(l,d)},n.setNextCallback=function(l){var d=this,g=!0;return this.nextCallback=function(s){g&&(g=!1,d.nextCallback=null,l(s))},this.nextCallback.cancel=function(){g=!1},this.nextCallback},n.onTransitionEnd=function(l,d){this.setNextCallback(d);var g=this.props.nodeRef?this.props.nodeRef.current:Wg.findDOMNode(this),s=l==null&&!this.props.addEndListener;if(!g||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[g,this.nextCallback],E=v[0],z=v[1];this.props.addEndListener(E,z)}l!=null&&setTimeout(this.nextCallback,l)},n.render=function(){var l=this.state.status;if(l===g1)return null;var d=this.props,g=d.children;d.in,d.mountOnEnter,d.unmountOnExit,d.appear,d.enter,d.exit,d.timeout,d.addEndListener,d.onEnter,d.onEntering,d.onEntered,d.onExit,d.onExiting,d.onExited,d.nodeRef;var s=qO(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Yi.createElement(e7.Provider,{value:null},typeof g=="function"?g(l,s):Yi.cloneElement(Yi.Children.only(g),s))},t}(Yi.Component);hc.contextType=e7,hc.propTypes={};function ap(){}hc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ap,onEntering:ap,onEntered:ap,onExit:ap,onExiting:ap,onExited:ap},hc.UNMOUNTED=g1,hc.EXITED=Hh,hc.ENTERING=Qh,hc.ENTERED=sp,hc.EXITING=nT;const Vae=hc;var $ae=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return Bae(t,o)})},iT=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return Fae(t,o)})},rT=function(e){KO(t,e);function t(){for(var o,l=arguments.length,d=new Array(l),g=0;g<l;g++)d[g]=arguments[g];return o=e.call.apply(e,[this].concat(d))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(s,v){var E=o.resolveArguments(s,v),z=E[0],O=E[1];o.removeClasses(z,"exit"),o.addClass(z,O?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(s,v)},o.onEntering=function(s,v){var E=o.resolveArguments(s,v),z=E[0],O=E[1],j=O?"appear":"enter";o.addClass(z,j,"active"),o.props.onEntering&&o.props.onEntering(s,v)},o.onEntered=function(s,v){var E=o.resolveArguments(s,v),z=E[0],O=E[1],j=O?"appear":"enter";o.removeClasses(z,j),o.addClass(z,j,"done"),o.props.onEntered&&o.props.onEntered(s,v)},o.onExit=function(s){var v=o.resolveArguments(s),E=v[0];o.removeClasses(E,"appear"),o.removeClasses(E,"enter"),o.addClass(E,"exit","base"),o.props.onExit&&o.props.onExit(s)},o.onExiting=function(s){var v=o.resolveArguments(s),E=v[0];o.addClass(E,"exit","active"),o.props.onExiting&&o.props.onExiting(s)},o.onExited=function(s){var v=o.resolveArguments(s),E=v[0];o.removeClasses(E,"exit"),o.addClass(E,"exit","done"),o.props.onExited&&o.props.onExited(s)},o.resolveArguments=function(s,v){return o.props.nodeRef?[o.props.nodeRef.current,s]:[s,v]},o.getClassNames=function(s){var v=o.props.classNames,E=typeof v=="string",z=E&&v?v+"-":"",O=E?""+z+s:v[s],j=E?O+"-active":v[s+"Active"],F=E?O+"-done":v[s+"Done"];return{baseClassName:O,activeClassName:j,doneClassName:F}},o}var n=t.prototype;return n.addClass=function(l,d,g){var s=this.getClassNames(d)[g+"ClassName"],v=this.getClassNames("enter"),E=v.doneClassName;d==="appear"&&g==="done"&&E&&(s+=" "+E),g==="active"&&l&&t7(l),s&&(this.appliedClasses[d][g]=s,$ae(l,s))},n.removeClasses=function(l,d){var g=this.appliedClasses[d],s=g.base,v=g.active,E=g.done;this.appliedClasses[d]={},s&&iT(l,s),v&&iT(l,v),E&&iT(l,E)},n.render=function(){var l=this.props;l.classNames;var d=qO(l,["classNames"]);return Yi.createElement(Vae,PI({},d,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Yi.Component);rT.defaultProps={classNames:""},rT.propTypes={};const Hae=rT,f_e="",Qae=e=>Re.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.66667C0 0.746192 0.746193 0 1.66667 0H11.6667C12.5872 0 13.3333 0.746193 13.3333 1.66667V20H8.33333V17.5C8.33333 16.5795 7.58714 15.8333 6.66667 15.8333C5.74619 15.8333 5 16.5795 5 17.5V20H0V1.66667ZM14.5833 8.33333H18.3333C19.2538 8.33333 20 9.0795 20 10V20H14.5833V8.33333ZM3.33333 2.5C2.8731 2.5 2.5 2.8731 2.5 3.33333V5.41667C2.5 5.8769 2.8731 6.25 3.33333 6.25H4.58333C5.04357 6.25 5.41667 5.8769 5.41667 5.41667V3.33333C5.41667 2.8731 5.04357 2.5 4.58333 2.5H3.33333ZM7.91667 3.33333C7.91667 2.8731 8.28977 2.5 8.75 2.5H10C10.4602 2.5 10.8333 2.8731 10.8333 3.33333V5.41667C10.8333 5.8769 10.4602 6.25 10 6.25H8.75C8.28976 6.25 7.91667 5.8769 7.91667 5.41667V3.33333ZM3.33333 9.58333C2.8731 9.58333 2.5 9.95642 2.5 10.4167V12.5C2.5 12.9602 2.8731 13.3333 3.33333 13.3333H4.58333C5.04357 13.3333 5.41667 12.9602 5.41667 12.5V10.4167C5.41667 9.95642 5.04357 9.58333 4.58333 9.58333H3.33333ZM7.91667 10.4167C7.91667 9.95642 8.28977 9.58333 8.75 9.58333H10C10.4602 9.58333 10.8333 9.95642 10.8333 10.4167V12.5C10.8333 12.9602 10.4602 13.3333 10 13.3333H8.75C8.28976 13.3333 7.91667 12.9602 7.91667 12.5V10.4167Z",fill:"#707070"})),kx=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Re.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),p_e="";function Yae({venue:e,isCurrent:t,onVenueClicked:n}){const{t:o}=ya(),[l,d]=Re.useState({});return Re.useEffect(()=>()=>{d({})},[]),Re.useEffect(()=>{const g={};e.image&&(g.backgroundImage=`url('${e.image}')`),d(g)},[e]),dt.jsxs("button",{className:"venue",onClick:()=>n(),"data-sentry-component":"Venue","data-sentry-source-file":"Venue.jsx",children:[dt.jsx("div",{className:"venue__image",style:l}),dt.jsxs("div",{className:"venue__content",children:[dt.jsx("div",{children:e.venueInfo.name}),t&&dt.jsx("div",{className:"venue__current",children:o("Current")})]})]})}const oT=Jn({key:"isLocationClicked",default:!1});function Gae({onOpen:e,onClose:t,active:n}){const{t:o}=ya(),l=Re.useRef(null),d=rn(m1),[,g]=Dn(WI),[s,v]=Dn(op),[,E]=Dn(oT),z=F=>{g(!0),v(F.name),O()},O=()=>{n?t():e()};function j(F){z(F),E(!1)}return dt.jsxs(dt.Fragment,{children:[dt.jsx("button",{className:`venue-selector__button ${n?"venue-selector__button--open":""}`,onClick:()=>O(),"aria-label":o("Venues"),children:n?dt.jsx(kx,{}):dt.jsx(Qae,{})}),dt.jsx(Hae,{unmountOnExit:!0,in:n,nodeRef:l,timeout:400,classNames:"venue-selector__content","data-sentry-element":"CSSTransition","data-sentry-source-file":"VenueSelector.jsx",children:dt.jsxs("div",{className:"venue-selector__content",ref:l,children:[dt.jsx("h1",{children:o("Select venue")}),dt.jsx("div",{className:"venue-selector__list",children:d.map(F=>dt.jsx(Yae,{isCurrent:(s==null?void 0:s.toLowerCase())===F.name.toLowerCase(),venue:F,onVenueClicked:()=>j(F)},F.id))})]})})]})}const n7=Re.createContext(),pu=Jn({key:"currentLocation",default:null}),Zae="Left",Wae="Right",qae="Up",Kae="Down",lp={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},sT={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},i7="mousemove",r7="mouseup",Xae="touchend",Jae="touchmove",ele="touchstart";function tle(e,t,n,o){return e>t?n>0?Wae:Zae:o>0?Kae:qae}function o7(e,t){if(t===0)return e;const n=Math.PI/180*t,o=e[0]*Math.cos(n)+e[1]*Math.sin(n),l=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[o,l]}function nle(e,t){const n=z=>{const O="touches"in z;O&&z.touches.length>1||e((j,F)=>{F.trackMouse&&!O&&(document.addEventListener(i7,o),document.addEventListener(r7,g));const{clientX:$,clientY:Y}=O?z.touches[0]:z,ie=o7([$,Y],F.rotationAngle);return F.onTouchStartOrOnMouseDown&&F.onTouchStartOrOnMouseDown({event:z}),Object.assign(Object.assign(Object.assign({},j),sT),{initial:ie.slice(),xy:ie,start:z.timeStamp||0})})},o=z=>{e((O,j)=>{const F="touches"in z;if(F&&z.touches.length>1)return O;if(z.timeStamp-O.start>j.swipeDuration)return O.swiping?Object.assign(Object.assign({},O),{swiping:!1}):O;const{clientX:$,clientY:Y}=F?z.touches[0]:z,[ie,K]=o7([$,Y],j.rotationAngle),J=ie-O.xy[0],te=K-O.xy[1],oe=Math.abs(J),pe=Math.abs(te),me=(z.timeStamp||0)-O.start,he=Math.sqrt(oe*oe+pe*pe)/(me||1),De=[J/(me||1),te/(me||1)],qe=tle(oe,pe,J,te),Te=typeof j.delta=="number"?j.delta:j.delta[qe.toLowerCase()]||lp.delta;if(oe<Te&&pe<Te&&!O.swiping)return O;const ze={absX:oe,absY:pe,deltaX:J,deltaY:te,dir:qe,event:z,first:O.first,initial:O.initial,velocity:he,vxvy:De};ze.first&&j.onSwipeStart&&j.onSwipeStart(ze),j.onSwiping&&j.onSwiping(ze);let ht=!1;return(j.onSwiping||j.onSwiped||j[`onSwiped${qe}`])&&(ht=!0),ht&&j.preventScrollOnSwipe&&j.trackTouch&&z.cancelable&&z.preventDefault(),Object.assign(Object.assign({},O),{first:!1,eventData:ze,swiping:!0})})},l=z=>{e((O,j)=>{let F;if(O.swiping&&O.eventData){if(z.timeStamp-O.start<j.swipeDuration){F=Object.assign(Object.assign({},O.eventData),{event:z}),j.onSwiped&&j.onSwiped(F);const $=j[`onSwiped${F.dir}`];$&&$(F)}}else j.onTap&&j.onTap({event:z});return j.onTouchEndOrOnMouseUp&&j.onTouchEndOrOnMouseUp({event:z}),Object.assign(Object.assign(Object.assign({},O),sT),{eventData:F})})},d=()=>{document.removeEventListener(i7,o),document.removeEventListener(r7,g)},g=z=>{d(),l(z)},s=(z,O)=>{let j=()=>{};if(z&&z.addEventListener){const F=Object.assign(Object.assign({},lp.touchEventOptions),O.touchEventOptions),$=[[ele,n,F],[Jae,o,Object.assign(Object.assign({},F),O.preventScrollOnSwipe?{passive:!1}:{})],[Xae,l,F]];$.forEach(([Y,ie,K])=>z.addEventListener(Y,ie,K)),j=()=>$.forEach(([Y,ie])=>z.removeEventListener(Y,ie))}return j},E={ref:z=>{z!==null&&e((O,j)=>{if(O.el===z)return O;const F={};return O.el&&O.el!==z&&O.cleanUpTouch&&(O.cleanUpTouch(),F.cleanUpTouch=void 0),j.trackTouch&&z&&(F.cleanUpTouch=s(z,j)),Object.assign(Object.assign(Object.assign({},O),{el:z}),F)})}};return t.trackMouse&&(E.onMouseDown=n),[E,s]}function ile(e,t,n,o){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:o(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:o(e.el,t)})}function s7(e){const{trackMouse:t}=e,n=Re.useRef(Object.assign({},sT)),o=Re.useRef(Object.assign({},lp)),l=Re.useRef(Object.assign({},o.current));l.current=Object.assign({},o.current),o.current=Object.assign(Object.assign({},lp),e);let d;for(d in lp)o.current[d]===void 0&&(o.current[d]=lp[d]);const[g,s]=Re.useMemo(()=>nle(v=>n.current=v(n.current,o.current),{trackMouse:t}),[t]);return n.current=ile(n.current,o.current,l.current,s),g}const Sr={MIN:1,FIT:2,MAX:3},m_e="",a7=Jn({key:"isBottomSheetLoaded",default:!1});let aT;function y1({children:e,isOpen:t,minHeight:n,preferredSizeSnapPoint:o,onSwipedToSnapPoint:l}){const d=Re.useRef(),g=Re.useRef(),[s,v]=Re.useState(Sr.FIT),[E,z]=Re.useState(!1),[O,j]=Re.useState(),F=Re.useContext(n7),[$,Y]=Re.useState(),[ie,K]=Re.useState({}),[,J]=Dn(a7);function te(me){me===Sr.MIN&&$<=n||(s===Sr.FIT&&(d.current.style.height=`${$}px`),requestAnimationFrame(()=>{switch(me){case Sr.MAX:K({height:`${F.current.clientHeight}px`});break;case Sr.FIT:K({height:`${$}px`});break;case Sr.MIN:K({height:`${n}px`});break}v(me)}),typeof l=="function"&&d.current.addEventListener("transitionend",()=>{l(me)},{once:!0}))}Re.useEffect(()=>{d.current.addEventListener("transitionend",()=>{J(!0)},{once:!0})},[]),Re.useEffect(()=>{o!==void 0&&(d.current.style.height=`${d.current.clientHeight}px`,requestAnimationFrame(()=>{te(o)}))},[o]);const oe=s7({onSwipeStart:me=>{z(!0),j(me.dir),aT=d.current.clientHeight},onSwiping:me=>{const he=Math.max(aT-me.deltaY,n);K({height:`${he}px`})},onSwiped:me=>{z(!1);const he=Math.max(aT-me.deltaY,n);let De,qe;O.toUpperCase()==="DOWN"?(De=$-60,qe=F.current.clientHeight-60):(De=parseInt(n)+60,qe=$+60);let Te;he<=De?Te=Sr.MIN:he<=qe?Te=Sr.FIT:Te=Sr.MAX,te(Te)},trackMouse:!0,preventScrollOnSwipe:!0});Re.useEffect(()=>{t===!1?(Y(),d.current.style.height=""):Y(g.current.clientHeight)},[e.length,t]);const pe=me=>{oe.ref(me),d.current=me};return dt.jsx("div",{...oe,ref:pe,style:ie,className:`sheet ${t?"sheet--active":""} ${E?"sheet--dragging":""}`,"data-sentry-component":"Sheet","data-sentry-source-file":"Sheet.jsx",children:dt.jsx("div",{ref:g,className:"sheet__content",style:ie,children:e})})}const g_e="",y_e="",rle=(e,t)=>{const[n,o]=Re.useState(void 0),[l,d]=Re.useState(void 0);return Re.useEffect(()=>{const g=(s=!1)=>{var E,z;const v=((E=t.current)==null?void 0:E.scrollHeight)>((z=t.current)==null?void 0:z.clientHeight);o(v),s===!0&&d(v)};g(!0),t.current&&new ResizeObserver(g).observe(t.current)},[e,t]),[n,l]},cp=()=>s7({onSwiping:({event:e})=>e.stopPropagation()});function l7(e){const t=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:t[1],lng:t[0],floor:e.properties.floor}}const Ox=Jn({key:"directionsResponse",default:null}),lT=Jn({key:"hasFoundRoute",default:!0}),c7=(e,t,n,o,l)=>{const[d,g]=Re.useState(),[s,v]=Re.useState(),[E,z]=Dn(lT),[,O]=Dn(Ox),[j,F]=Re.useState();return Re.useEffect(()=>{F(!1),e!=null&&e.geometry&&(t!=null&&t.geometry)&&n.getRoute({origin:l7(e),destination:l7(t),travelMode:o,avoidStairs:l}).then($=>{if($&&$.legs){const Y=$.legs.reduce((K,J)=>K+J.distance.value,0),ie=$.legs.reduce((K,J)=>K+J.duration.value,0);g(Y),v(ie),O({originLocation:e,destinationLocation:t,totalDistance:Y,totalTime:ie,directionsResult:$}),F(!0)}else z(!1)},()=>{z(!1)})},[e,t,n,l,o]),[d,s,E,j]},Yh={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},jx=Jn({key:"travelMode",default:Yh.WALKING}),dc=Jn({key:"kioskLocation",default:null}),Rx=Jn({key:"accessibilityOn",default:!1}),Px=Jn({key:"showExternalIDs",default:!1});function u7(e,t){const n=rn(VI),[o,l]=Re.useState(!1),d=e.getMap();Re.useEffect(()=>{t&&l(!1)},[t]);function g(v,E,z,O){const j=F=>{if(!z)return;E.getMap().queryRenderedFeatures(F.point).length?O(!1):O(!0)};return v.on("click",j),()=>{v.off("click",j)}}function s(v,E,z,O){const j=Y=>{z&&O(!1)},F=Y=>{z&&O(!0)};E.addListener("click",j);const $=v.addListener("click",F);return()=>{E.removeListener("click",j),$.remove()}}return Re.useEffect(()=>{let v;return n===Bo.Mapbox&&(v=g(d,e,t,l)),n===Bo.Google&&(v=s(d,e,t,l)),()=>v==null?void 0:v()},[e,t]),o}function h7({onBack:e,onStartWayfinding:t,onSetSize:n,snapPointSwiped:o,onStartDirections:l,isOpen:d}){const{t:g}=ya(),s=Re.useRef(null),v=Re.useRef(null),E=Re.useRef(null),[z,O]=Re.useState(!1),[j,F]=Re.useState(!1),[$,Y]=Re.useState(!1),[ie,K]=Re.useState(null),J=rn(Zs),te=rn(pu),[oe,pe]=rle(te,E),me=cp(),he=rn(uc),De=rn(dc),qe=rn(FI),[Te,ze]=Re.useState(),[ht,mt]=Re.useState(),vt=$h(),Qe=rn(jx),Fe=rn(Rx),[,,ot]=c7(ht,Te,qe,Qe,Fe),Je=rn(Px),He=u7(J,d);Re.useEffect(()=>()=>{K(null),ze(),mt()},[]),Re.useEffect(()=>{O(!1),F(!1),Y(!1),K(null),te&&(s.current.location=te,K(J.getDisplayRule(te)),ze(te)),De&&mt(De)},[te,J,De]);function Ae(it){typeof n=="function"&&n(it)}Re.useEffect(()=>{o!==void 0&&(O(o===Sr.MAX),o===Sr.MAX?ye():ee())},[o]),Re.useEffect(()=>{He&&e()},[He]);function je(){z===!1?(Ae(Sr.MAX),ye()):(Ae(Sr.FIT),ee())}function ye(){requestAnimationFrame(()=>{O(!0),fe()})}function ee(){O(!1),Ne()}function fe(){requestAnimationFrame(()=>{F(v.current.scrollTop>0),Y(v.current.scrollTop<v.current.scrollHeight-v.current.offsetHeight-1)})}function Ne(){F(!1),Y(!1)}function Ee(){O(!1),F(!1),Y(!1),Ae(Sr.FIT),t()}function Xe(){O(!1),F(!1),Y(!1),Ae(Sr.FIT),l()}function ft(){O(!1),F(!1),Y(!1),Ae(Sr.FIT),e()}return dt.jsx("div",{className:`location-details ${j?"location-details--content-above":""} ${$?"location-details--content-below":""}`,"data-sentry-component":"LocationDetails","data-sentry-source-file":"LocationDetails.jsx",children:te&&dt.jsxs(dt.Fragment,{children:[dt.jsxs("div",{className:"location-info",children:[dt.jsx("div",{className:"location-info__icon",children:ie&&dt.jsx("img",{alt:"",src:ie.icon.src?ie.icon.src:ie.icon})}),dt.jsxs("div",{className:"location-info__content",children:[dt.jsx("div",{className:"location-info__name",children:te.properties.name}),dt.jsx("mi-location-info",{level:g("Level"),ref:s,"show-external-id":Je})]}),dt.jsx("button",{className:"location-info__close",onClick:()=>ft(),children:dt.jsx(kx,{})})]}),dt.jsxs("div",{ref:v,onScroll:it=>fe(),className:"location-details__details",children:[te.properties.imageURL&&dt.jsx("img",{alt:"",src:te.properties.imageURL,className:"location-details__image"}),Object.keys(te.properties.categories).length>0&&dt.jsx("p",{className:"location-details__categories",children:Object.values(te.properties.categories).map((it,ue,Dt)=>dt.jsxs(Yi.Fragment,{children:[it,ue<Dt.length-1&&dt.jsx(dt.Fragment,{children:"・"})]},it))}),te.properties.description&&!z&&dt.jsxs("section",{className:"location-details__description",children:[dt.jsx("div",{ref:E,children:te.properties.description}),(oe||pe)&&dt.jsx("button",{onClick:()=>je(),children:g("Read full description")})]}),te.properties.description&&z&&dt.jsxs("section",{className:"location-details__description location-details__description--full prevent-scroll",...me,children:[dt.jsx("div",{children:te.properties.description}),pe&&dt.jsx("button",{onClick:()=>je(),children:g("Close")})]})]}),De&&vt?dt.jsx("button",{disabled:!ot,onClick:()=>Xe(),className:`location-details__wayfinding ${ot?"":"location-details--no-route"}`,style:{background:he},children:g(ot?"Start directions":"Directions not available")}):dt.jsx("button",{onClick:()=>Ee(),style:{background:he},className:"location-details__wayfinding",children:g("Start wayfinding")})]})})}const __e="",ole=e=>Re.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("g",{clipPath:"url(#clip0_1663_3931)"},Re.createElement("path",{d:"M8 0.5C6.41775 0.5 4.87104 0.969192 3.55544 1.84824C2.23985 2.72729 1.21447 3.97672 0.608967 5.43853C0.00346629 6.90034 -0.15496 8.50887 0.153721 10.0607C0.462403 11.6126 1.22433 13.038 2.34315 14.1569C3.46197 15.2757 4.88743 16.0376 6.43928 16.3463C7.99113 16.655 9.59966 16.4965 11.0615 15.891C12.5233 15.2855 13.7727 14.2602 14.6518 12.9446C15.5308 11.629 16 10.0823 16 8.5C16 6.37827 15.1571 4.34344 13.6569 2.84315C12.1566 1.34285 10.1217 0.5 8 0.5ZM11.4667 11.98C11.4074 12.0452 11.3358 12.098 11.2559 12.1353C11.1761 12.1726 11.0897 12.1937 11.0017 12.1974C10.9136 12.2012 10.8258 12.1874 10.7431 12.1569C10.6604 12.1265 10.5846 12.0799 10.52 12.02L7.18667 8.99333C7.12364 8.92813 7.07457 8.85074 7.04247 8.76591C7.01038 8.68109 6.99592 8.5906 7 8.5V4.83333C7 4.65652 7.07024 4.48695 7.19527 4.36193C7.32029 4.23691 7.48986 4.16667 7.66667 4.16667C7.84348 4.16667 8.01305 4.23691 8.13807 4.36193C8.2631 4.48695 8.33334 4.65652 8.33334 4.83333V8.20667L11.42 11.04C11.5506 11.1586 11.6288 11.3242 11.6375 11.5004C11.6463 11.6765 11.5848 11.849 11.4667 11.98Z",fill:"#707070"})),Re.createElement("defs",null,Re.createElement("clipPath",{id:"clip0_1663_3931"},Re.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),d7=e=>Re.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M9.61194 2.82846C9.61194 3.93033 8.7187 4.82357 7.61683 4.82357C6.51495 4.82357 5.62171 3.93033 5.62171 2.82846C5.62171 1.72659 6.51495 0.833344 7.61683 0.833344C8.7187 0.833344 9.61194 1.72659 9.61194 2.82846Z",fill:"#4B5563"}),Re.createElement("path",{d:"M3.85618 7.89573L2.70342 8.26942C2.51461 8.33063 2.38005 8.49797 2.36081 8.69552L2.15675 10.7898C2.10483 11.3227 1.64157 11.7195 1.10705 11.6891C0.529883 11.6562 0.101401 11.1412 0.174055 10.5677L0.562276 7.5031C0.609594 7.12957 0.863193 6.8145 1.21798 6.68846L5.43314 5.19101C5.91287 4.94642 6.49458 4.90944 7.02868 5.14168C7.58278 5.38261 7.96247 5.86074 8.09808 6.40693C8.10564 6.42543 8.11266 6.44417 8.11911 6.46314L8.13434 6.50792C8.1531 6.56308 8.17666 6.6165 8.20475 6.66755L9.12944 8.34823C9.24374 8.55597 9.4283 8.71621 9.65003 8.80021L11.6264 9.54897C12.2431 9.78262 12.4674 10.5397 12.0776 11.0716C11.8078 11.4397 11.3226 11.5778 10.8994 11.4069L8.27831 10.3486C8.07383 10.266 7.90247 10.118 7.79102 9.92774L7.36282 9.1966L6.28886 11.8906C6.2887 11.8929 6.2885 11.8952 6.28824 11.8974C6.28503 11.9259 6.28989 11.9548 6.30227 11.9807L6.30571 11.9879L9.7205 18.1483C10.0544 18.7506 9.83675 19.5096 9.23443 19.8434C8.6321 20.1773 7.87316 19.9597 7.53929 19.3574L4.94329 14.6741L2.97868 19.1924C2.70407 19.8239 1.96948 20.1133 1.33793 19.8387C0.706382 19.5641 0.417021 18.8295 0.691627 18.1979L3.26686 12.2753L3.30923 12.1729C3.31648 12.1479 3.31685 12.1215 3.3104 12.0965C2.88761 11.4405 2.77915 10.5975 3.08907 9.82005L3.85618 7.89573Z",fill:"#4B5563"})),sle=e=>Re.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M4.48045 5.12001C4.0861 5.12526 3.70969 5.28562 3.4327 5.56636C3.15571 5.84709 3.00042 6.22562 3.00045 6.62001V16.73C3.00045 16.7963 2.97411 16.8599 2.92723 16.9068C2.88035 16.9537 2.81676 16.98 2.75045 16.98H1.48045C1.30245 16.979 1.1274 17.0255 0.973367 17.1147C0.819338 17.2039 0.691916 17.3326 0.60426 17.4876C0.516604 17.6425 0.471891 17.818 0.474737 17.996C0.477584 18.174 0.527887 18.348 0.620453 18.5L3.62045 23.5C3.709 23.6492 3.83484 23.7728 3.98563 23.8587C4.13641 23.9446 4.30694 23.9897 4.48045 23.9897C4.65397 23.9897 4.8245 23.9446 4.97528 23.8587C5.12606 23.7728 5.25191 23.6492 5.34045 23.5L8.34045 18.5C8.42797 18.3484 8.47417 18.1765 8.47444 18.0015C8.4747 17.8265 8.42903 17.6544 8.34197 17.5026C8.25491 17.3508 8.12953 17.2244 7.97834 17.1362C7.82716 17.048 7.65548 17.0011 7.48045 17H6.23045C6.19758 16.9975 6.16554 16.9885 6.13616 16.9735C6.10679 16.9586 6.08066 16.938 6.05928 16.9129C6.03791 16.8878 6.0217 16.8587 6.01161 16.8273C6.00151 16.7959 5.99772 16.7629 6.00045 16.73V6.62001C6.00047 6.42133 5.96102 6.22463 5.88439 6.04132C5.80776 5.85802 5.69548 5.69176 5.55407 5.55221C5.41265 5.41266 5.24493 5.30259 5.06062 5.2284C4.87632 5.1542 4.67911 5.11736 4.48045 5.12001Z",fill:"#707070"}),Re.createElement("path",{d:"M15.5203 18.84C15.9182 18.84 16.2997 18.6819 16.581 18.4006C16.8623 18.1193 17.0203 17.7378 17.0203 17.34V7.22995C17.0254 7.16717 17.0539 7.10861 17.1003 7.06597C17.1466 7.02332 17.2074 6.99975 17.2703 6.99995H18.5203C18.6968 6.99992 18.8702 6.95317 19.0228 6.86446C19.1754 6.77574 19.3018 6.64822 19.3891 6.49485C19.4765 6.34148 19.5217 6.16771 19.5201 5.99122C19.5186 5.81472 19.4704 5.64177 19.3803 5.48995L16.3803 0.48995C16.2918 0.340728 16.1659 0.217112 16.0152 0.131252C15.8644 0.0453926 15.6938 0.000244141 15.5203 0.000244141C15.3468 0.000244141 15.1763 0.0453926 15.0255 0.131252C14.8747 0.217112 14.7489 0.340728 14.6603 0.48995L11.6603 5.48995C11.5703 5.64177 11.5221 5.81472 11.5205 5.99122C11.519 6.16771 11.5642 6.34148 11.6516 6.49485C11.7389 6.64822 11.8653 6.77574 12.0179 6.86446C12.1705 6.95317 12.3438 6.99992 12.5203 6.99995H13.7703C13.8366 6.99995 13.9002 7.02629 13.9471 7.07317C13.994 7.12006 14.0203 7.18365 14.0203 7.24995V17.34C14.0203 17.7378 14.1784 18.1193 14.4597 18.4006C14.741 18.6819 15.1225 18.84 15.5203 18.84Z",fill:"#707070"})),v_e="";function cT({location:e,locationClicked:t,icon:n,isHovered:o}){const{t:l}=ya(),d=Re.useRef(),g=rn(Zs),s=rn(Px);return Re.useEffect(()=>{var j;const v=F=>t(F.detail),E=()=>{var F;((F=e.properties.locationSettings)==null?void 0:F.selectable)!==!1&&g.hoverLocation(e)},z=()=>{var F;(F=e.properties.locationSettings)!=null&&F.selectable||g.unhoverLocation(e)};((j=e.properties.locationSettings)==null?void 0:j.selectable)===!1&&d.current.classList.add("non-selectable");const{current:O}=d;return O.location=e,O.icon=n||g.getDisplayRule(e).icon,O.addEventListener("locationClicked",v),O.addEventListener("mouseover",E),O.addEventListener("mouseout",z),o?d.current.classList.add("hovered"):d.current.classList.remove("hovered"),()=>{O.removeEventListener("locationClicked",v),O.removeEventListener("mouseover",E),O.removeEventListener("mouseout",z)}},[e,t,o]),dt.jsx("mi-list-item-location",{level:l("Level"),ref:d,"show-external-id":s,"data-sentry-element":"mi-list-item-location","data-sentry-component":"ListItemLocation","data-sentry-source-file":"ListItemLocation.jsx"})}const ale=()=>{const[e,t]=Re.useState(),n=rn(Zs),o=rn(KI);return Re.useEffect(()=>{function l(){const d=n.getMapView().getCenter();t(d.lat+","+d.lng)}return n&&o?(n.getMapView().addListener("idle",l),l()):n&&n.getMapView().removeListener("idle",l),()=>{n&&n.getMapView().removeListener("idle",l)}},[n,o]),e},up=Jn({key:"language",default:void 0}),uT=Jn({key:"searchInput",default:void 0}),Ux=Jn({key:"searchAllVenues",default:!1}),hT=Re.forwardRef(({placeholder:e,mapsindoors:t,results:n,clicked:o,cleared:l,changed:d,category:g,google:s,mapbox:v,disabled:E=!1},z)=>{const O=Re.useRef(),j=rn(Ex),F=rn(up),[,$]=Dn(uT),Y=sessionStorage.getItem("mapboxPlacesSessionToken"),ie={longitude:j==null?void 0:j.coords.longitude,latitude:j==null?void 0:j.coords.latitude},K=ale(),J=rn(op),te=rn(Ux);return Re.useImperativeHandle(z,()=>({triggerSearch(){O.current.triggerSearch()},getValue(){return O.current.value},setDisplayText(oe){O.current.setDisplayText(oe)},focusInput(){O.current.focusInput()},clear(){O.current.clear()},getInputField(){return O.current.getInputField().then(oe=>$(oe))}})),Re.useEffect(()=>{const{current:oe}=O;oe.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{oe.triggerSearch()})},[F]),Re.useEffect(()=>{const oe=he=>n(he.detail),{current:pe}=O;t===!0&&(pe.mapsindoors="true");function me(){pe.getValue||pe.focusInput(),l()}return pe.addEventListener("results",oe),pe.addEventListener("click",o),pe.addEventListener("cleared",me),pe.addEventListener("changed",d),()=>{pe.removeEventListener("results",oe),pe.removeEventListener("click",o),pe.removeEventListener("cleared",me),pe.removeEventListener("changed",d)}},[e,t,n,o,l,s,v,d]),dt.jsx("mi-search",{ref:O,"id-attribute":"search",placeholder:e,"session-token":Y,"user-position":ie.latitude!==void 0&&ie.longitude!==void 0?Object.values(ie).join(","):null,"mi-near":K,"mi-categories":g,disabled:E,mapbox:v,google:s,"mi-venue":te?void 0:J,language:F})});function dT(e){const t={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:t,properties:{name:MO("My position"),anchor:t},type:"Feature"}}let fT;function lle(e){return new Promise((t,n)=>{fT||(fT=new window.google.maps.Geocoder),fT.geocode({placeId:e.properties.placeId},o=>{o.length>0?(e.geometry={type:"Point",coordinates:[o[0].geometry.location.lng(),o[0].geometry.location.lat()]},t(e)):n()})})}const cle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAAkCAYAAAApZeciAAARjUlEQVR4Ae2dBXTb2vL1x6GmzJehzBjbKb/YcsrMfJkZyvDS1HbgMTMzM7d9zMzMGCjaTrnxt+e7zvqPpwLLdUpLe62fnFqSZak5W3PmzFHI0/UoT7Nf2t49XJeaY8RT24xY6jXhWPJt+Pn1+Hl3KNa2dE7N8X6Ariwe19XJeHhE6k5OM6KpD4eiidMwnLQVWH/eiCc/F44mDUBXBo/r4iQ8PIxY262Icj7J5uIW7PdZ3h+QBwCBD65YW/GB5ec78H9wxf2ACg0vrmk8PCLRZHUonjri1ngUrdXRxExAHgkKfGjVusCHVqY7qPjQqgcAFRpeXLN4eOBuvdyIJs5e3MVKHcbrq7F+caTuxIjqxrZbquqOD4vUpeYh4mkMxRL/0fuE46kdgMIengHlhwc0ETRmmEvu9ZzYv4SuYnHEEoonzqjczmlONC+qSXcDZMXqmnSZEUs+g/3bXuiGpfYCYjw8A7LFwzOgqppjfWAe/84yn3iqOVzf5geUK5H9yfFIRj8NKIMH8AzIBg/PgHhoXZoPRr4SbCaAPC4dz4A8LPAMiPM5Ou+D3M7dgDwKg2dAHhZ4BoQk6Z6s6CeW+DGl0z5AHoXBMyAPCzwDQu7nJ9kGlLoH0OXmb1VV5S2RyoXNkWBtsxF8c0sk8Ea8bm8OB6ana6gIkCu+RuXnvlK88NyB0tpzB4vfjNc3nj1Ysv3soZK8Pm/qy9u7GvG2ZRj1i4fiyTcit1OH6GaR/83pUkDTG1t7ci4NgOYegDK4NqB/R4L9cd6bWyLBl/J1aDGCdU1GcPk/p07tCsgKyxVQEbgRDAIDgI/cqxzcBAaDG0ERXX0qATeDweAWUEr5qQj0Bj2AL8fj3ZxnIy8S1/UmdV07y4DKwe1gEOhzJadYwIAuZHe/TvQHdLlIrx5T1hwJ7GwO+4+gwaXNaAr7/9hiVK5OE/kA2fIRKjt7oGTnmYOlR84dLE2bU/zH84fKViM48QGyY/VH0sWojXrOqjYqFE3+xYgnZiFy/LnIoX0dUIacDejwvMpeON/XNoeDZ0yvhRFsAQ9YXQdesB7OcCMoBwvBPtAo2A2qc2ygI8BDoF59Ri1YCfoBrfHie0wlawXFdrPJWuPEdn6g1QesBjH1HevAZnALmSugrlcZmAdqxGdsBlr9wFqT48XBRnBjjoY+Xx2L2QcWZtZPKJQBCaO7x+T/8lkwycRsbxXXZzU5SF3PWeQg3MUnZDeoxN8BOTEnevJ2HrZ3AzdkQJL/VPkHtBiB71kZjwZRwNvTVVUlgEz5Gg2AwXwPpHOj+O3YpwSQGRzJoAbqK86Fl4lTMKgTl2JAR6v9d7DR5nYtAm+UJqQNqDHDeLANNNrwvM0dsBisBo0OxMAEIDVArH+arPWUanjFZK7NYrvbTAxyv8N3rLcwwtlim5HgGZN9teGNBlGH49WZ7Kevz3aHz9gKggUyoBgYA+IOx9yg/g+K1Pe8hazlA1v1/5ODAYWzu1/J7wNygosMeXs3cOEioA64O9EUCf7kosYVDqYQAfywJeL/eVPEf06vbzb8bwGkaf8udUWX6yfaZBAJpfD6w3MHin9+5iul50xM6C2ANGyYiGq+bGo20dQv8POf9bp8Dah1+vSeuBa/1+eK6/APXI8DuBa/1uvAHkASXkgDerFofBvBDDAdrAV1YrttoNzkl2k9aBQ8AkJgClgIdot1DWA0kHpWrO9lEUU0KkaaGaEwmJ3qLn2balTPAAMEM69PqM8fa2VAwgwbMvvdAx5TUeIgUKf2CYEgiChDbbA4n+5ghzLw1WAqmA42iAilpkAGVCdMcw9YCCpBFXhYXaM1QGqmWLeSrDVUbPcYILcGhNzGDwA5kJcBherapgDqAF2Jl2Q3KP8p5H+e5FwQIIYjJLz3Kt34YExLAUlgJi+RxgKzOYWu2JOcCwKUYQByQa+6yIQOlC0FJOHCyuxrkzgTrkttkUWZ1ftPDFcmlZcBId/zcnUtmvC6SEY5hw1/Jc7zX6Jbev6wUTkGUAe8kAbE7AQ3A63+YIvYbjmQmqQayDigVQpWie1qQFeLxl0JtF4EGhWrHH6xF8u7s+pizAdFJkY6VWyzB5Tq7yjYYtN9KlYRZTXw6eOp89phEtWtUV2fvkDrZrALNBbCgAQbQRnQmqCMdYzqKu4XvwvlZK6NYv8JgNx2wcLxxD8BOePegMLRE9MBMf+dN2kg7uyn/68xBS80VQcjgMxorg7uUFHSL2XjbP8CDUSkc1pEPRcQDUUAmQFj2qGioF/KfBAnnDPTTzKGkmgPxVILAWmqatIlbEL5GtCxqol9YDgnhbkm8DoCkISNGWb8Snkd8O8PAOqAFyS7HQ4hcz+Rw6gDPUUjkuY02SHsvl9sa8hGJN6/G2g9Lu6WjwsT0w12oficwTLPJN6/zyFZvMrkfLQBRR0SspPFtpscjrdBdYU71Bc0iBya3fFuAQ0FNKCn9LVVmia2fQJILRbrZgCtHsLAdoHiPJPQIHkjIDs4muFowA41ugYSYwAxyOU8ohrSmwBZwaNW3CXLjoIqxgNiMLr1SJahfKX0TYCs4M/jLpmKmMYDAhz9rFbf/d2ArJgdPTWYr2M+BtQaCW5UEd5eaTz/q5oyCDmfxpaw/7BJd/V0c9WYHoAYXpDqzztpsUmUcqPq0jiNmN1qke/xiYghqkZh+oh9XqSihuFA6nnQCPaCIos77hCy151i2/UWBrSc7HW32PZWstdwi6hulorYnLSxgAY0OofRuJ1iexmZ9RNmuMXkdyIk9guRC3HdT/bjNNoeAnSpwKi+JyMINjtAgBvWe7LNJDgNkB3opmyR+7Qa/ocBAY5o3iPNBP+eBsiWQyVb5D4wsYcBMboyHOZSBcgORIXfyseAdFTDxsoGiffn4Zw/i3Nvv3hUMHicu6atc/yjAHXwwkInT50biu7fB1z+0vtEPqhBGc188VkjLPIK/VQ+aIXYTr8vtV0lfeM21ElTlQbk4nrtcXs8HU2ovNogclagQAZUn2OJwEoduQndJdYNVf//20UXrRu5EBrMLtV9+JUesXILPyGRH1ImZsb/FlAHLYb/oGxQGAHqDcgOjJbNz05GB6KAGHS5DkozSR+g3oDsQLdrvtwHRAExMM9PZSXQaxIDANmBfd6clwGFgx9S0WAtXv8E0hpO2qMc4f7/zZ7QHZCGeOEiKtCjVfeY3M0qKTc9JvbpLd6/Xby/RLz/qEnE9LRInhepboE2MBLdR7fskgbkIm/RkOfxtoEOPSTe70POGlogA9qdqx+I400HUkNUF7RDI9RNzJVmxVI3XzQLPpZ4DFC+IILYria2vhJQhqvfgGLJT7utjUKB4psKYEAm+E+1hAPv4iS0Qx1UZqG6Mg66Uf9SqW7CNNJyHk7vKe+OIpm6Hfgy6xtMckYRE/O812aIfr/IpQRcMMHCgMaTverEdwm4QH7u/Sryc9LIAhnQi8lZ+npMMYl0nxYRVS+TEokbgWuxQeihZiPWVgnILTwyxJNZs7p19amJgDqAmbw7y0xm+2cAssWo3JbVBYsEHgLEoNv07qzu1JdLZgCyA/tsy+62lT4EiOHnXavrMQuQPalvuDUgPQKm+FOrEXyeq6IB5QIvpAHNJGdNMBlhmuAiL6KHyWMm+YEl4vMGgmnq3x26Qby/DJSKIfa1No2rAXQh93JrQNtE4yuj/LRS5WScNKuAOaDu5KxNKuLU8qtRwJ6iZOABylPVDUd78wiYGrk6hgrgEKCcwcPKjGjyb/oRrYAkbB7Z3Y7A2wBZkV69urg54v+N3Od/4eBYQAybR3YSuvhtgKxAtXQxXn+TlYQ+VDoWEBOOJzeoc3gbIAtw/U7ewV3OvAzI8K9SEc//msOVcyynixD5rKZk8EIa0OPA5yKxOgaweoj39jpUS+vRqPuB1mCZcBbdkOeA1vNiuHyUqt/RWiHWB8heXUD5JRrQGqeRQaHyDFoVLgYJfODJAhrQDLJXN1ErVGfx/UvAXtGtm60NNV9Vxdqm6ofP88gOktQvzcxxImvSJZy8ltXAGZLh6PGhgCR8V88eeg62c9IVkAW12VMS/D/LGoY/QP0xenVSjGi1Y5RrHiBzSmvVMPzP5DB8pgL6uEyi818FAaTJDMN/Pt9heM7n4PyPyfNjAwJkRiYS/DNyQbMASXih64CCZK0xNvUx94p1S4WRORXVTQJaReKX9hnR/ZoDtOaaFAbGQKnDyNZu0IOstQREwXLQOx8DUvmYnQ4RxXIQBctAL2WEtTrKsFBlgeuAamzyTj5lsBtJy7yrXC/yXD66RIXr2pZkP5pDGEks8S4kWjdF6tqCHOlE6lOT+RGubFAwrn+Y/aUMrF8MyAyYSlxV/Z7hkS6ZYG2ZW3EzVz5fPPzsXwBIAlOJqwroMzzS1f5l6g7o//NFupkrn3l9FoeKFwCS6DwWmzMXJ8pCRDZXmPQXLrUQ0aTOqY3nfPE8OUAA12PaDTxPLMu0jeArpBHrHBBTD0KgRBnCNDVSM1XXoKj1q00a3CBVev+kSB5bRisOZf23mGy3KccIbpvJyFKZGomLgp55GpCuedoC7tDHU3VL+0EPmwLMGAiq61YCQqChEwoRd4Ahyiy6g3VqPttAslYPkykdM6hA4m4XGk0LN6R84UezspkBsiAz+z34fbOkK/g5aoV+ZzYEDV4HSMMVzzCh72tz4YroF2p+in/HkZFej31eB0jDkQ1G7L52sbkkTiLn8zOs+2OhpmKk/f5SFCB+w+Rckxhy/yl3P7lY02k6hp6K8ZiaOPoAuB/UmMz/8eVwB64Hj4F7lfEwexySqiPU9tv1MfWQrkNUJRvPNpM5VHeDh0DU4bOUATmqp4r4mC0Wx2sAEy0iwnvUZ+wF94H71cThxwpkQPuUGW0F94BH1I2GCZCzVqnfrS5UQFW9JHUT/z2wvAwIdUXh/cmxgJw4Pmdqv6ZI4JuqUVljBN7A+SBAZrR/ifqh0PCb0mAceAPngwCZwbkxUxMyMSXZZctzMmpvRIFfc7wGYrhej4rpCGgUWA4aLWgASxweqzFezCmz4jHQ1ylRrRrWQlLSlc8qF+FkCg84fMdabQZ5GhCrF3jY6XgOw/olKiFtxipwZ4EMaBfooyfbKqIOZi81Sg9edIaQFwqEo6n3hqLJlLP5JL8D1rmtIeLZ7Yh4ngVNNkPRv241AosBOcGz21Fo+CyinSZL4/lK8a/PHSxbDMgJjoRwftvAMYtz/zNPM+EJqqLu6Wt5/FWMzLUIPgdaba7Fz2Ha1YA0xAuTBjUIrAPbwT6wBawAt7p4DtBM8ADYAWrBNrABjHbR9x8vqp77k7X6i+0mU27ygRFgLdgKajPG+SgwbPI1d4CZGQYAcnG8kWCdyfHCLorx7gRrwHZQC3aA9aIMoae4FoPIvSrATFApbgSV4EGwF+wDT4O5oCflrnXiJtaPOllohOVcDcwPnIchvYwfyMVD9+FYaifngdT0jbzgbgjPB0OUs4u7WU1G4NX4+ZkWo6JC3+lz4sdUyvPBMNy+i7tZMJ5X4+dnkBuqkAnnXOFKbowUrkAeqB68BdTLB5LBeH5vMfIHA1oexB8nfFMH/o+sngnIij/OG9aF655ADT+cja8H58cwehjU18LpcRyePBVafUXy+W7qXHlKp338Z4cAWTHv1e1d1Aji6wFdbnjR2QbkydNiPSXDU+HFj1hFdPcIulC/5LlhgKzgyCirbqgudS+gyw0WnWZAnjzpWqFngY86RV7Ug5zOH7LqgOLJNYA0s2uSN+D1r2Lbs/weoMsNLzrTgDx5MlSNWSfJE/Jb95kk2t/MU1R4cipPOUHk86j+g46Z/BBdCbDoNAPy5KlUFJTWgFLqVHlREBdfuitDSPxdTVy9rPCiswzIk6cpqiSgc+UpM8Uk9bpczIe7bBwVAbpSYNFpBuTJU28wMEMZebpsCkeTBgoKD+qnRzI8+ZbLEcQUjSsGLwgKZRhInjx5um40s/54X340B08zwZSV6qr6U4Oupr8i+/8Adnj5PFwBRDQAAAAASUVORK5CYII=",f7=e=>Re.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M18.5329 7.19049C18.5118 7.16682 18.4958 7.13909 18.4857 7.109C18.4757 7.07891 18.4719 7.04709 18.4746 7.01549C18.481 6.98424 18.4939 6.9547 18.5126 6.92884C18.5313 6.90298 18.5553 6.88139 18.5829 6.86549L19.2496 6.47383C19.4034 6.39827 19.54 6.29191 19.6509 6.16135C19.7619 6.03079 19.8448 5.87881 19.8945 5.71485C19.9443 5.5509 19.9598 5.37846 19.9401 5.20826C19.9204 5.03806 19.8659 4.87372 19.7801 4.72545C19.6942 4.57719 19.5788 4.44816 19.4409 4.34637C19.3031 4.24459 19.1458 4.17223 18.9789 4.13379C18.8119 4.09534 18.6388 4.09163 18.4703 4.12289C18.3019 4.15415 18.1416 4.21971 17.9996 4.31549L17.1079 4.82383C17.0788 4.84065 17.0457 4.8495 17.0121 4.8495C16.9784 4.8495 16.9454 4.84065 16.9163 4.82383C16.8885 4.81108 16.8638 4.79261 16.8437 4.76963C16.8236 4.74665 16.8085 4.71968 16.7996 4.69049L16.4663 2.69883C16.3686 2.10879 16.0627 1.5733 15.604 1.18953C15.1453 0.805757 14.5643 0.599136 13.9663 0.607159H5.99125C5.39796 0.609722 4.82491 0.823205 4.37454 1.20945C3.92418 1.59569 3.62587 2.12951 3.53292 2.71549L3.19959 4.69049C3.19282 4.72272 3.17879 4.75297 3.15858 4.77896C3.13836 4.80496 3.11249 4.826 3.08292 4.84049C3.05378 4.85731 3.02073 4.86617 2.98709 4.86617C2.95344 4.86617 2.92039 4.85731 2.89125 4.84049L1.99959 4.34049C1.85752 4.24471 1.69729 4.17915 1.52882 4.14789C1.36036 4.11663 1.18727 4.12034 1.0203 4.15879C0.853336 4.19723 0.696054 4.26959 0.558225 4.37137C0.420396 4.47316 0.304963 4.60219 0.219094 4.75045C0.133225 4.89872 0.078754 5.06306 0.0590634 5.23326C0.0393727 5.40346 0.0548829 5.5759 0.104631 5.73985C0.154378 5.90381 0.237302 6.05579 0.348251 6.18635C0.4592 6.31691 0.595806 6.42327 0.749587 6.49883L1.41625 6.89049C1.44391 6.90639 1.46788 6.92798 1.48655 6.95384C1.50523 6.9797 1.51819 7.00924 1.52459 7.04049C1.52727 7.07209 1.52348 7.10391 1.51345 7.134C1.50342 7.16409 1.48736 7.19182 1.46625 7.21549C0.79248 7.90316 0.415458 8.82776 0.416253 9.79049V11.4572C0.416532 11.8754 0.543199 12.2838 0.779646 12.6288C1.01609 12.9738 1.35128 13.2393 1.74125 13.3905C1.78008 13.4055 1.81353 13.4317 1.83729 13.4659C1.86106 13.5001 1.87405 13.5405 1.87459 13.5822V15.2072C1.87459 15.7044 2.07213 16.1814 2.42376 16.533C2.77539 16.8846 3.25231 17.0822 3.74959 17.0822C4.24687 17.0822 4.72378 16.8846 5.07541 16.533C5.42704 16.1814 5.62459 15.7044 5.62459 15.2072V13.7572C5.62455 13.7011 5.64622 13.6472 5.68507 13.6068C5.72392 13.5664 5.77691 13.5426 5.83292 13.5405H14.1663C14.2223 13.5426 14.2753 13.5664 14.3141 13.6068C14.3529 13.6472 14.3746 13.7011 14.3746 13.7572V15.2072C14.3746 15.7044 14.5721 16.1814 14.9238 16.533C15.2754 16.8846 15.7523 17.0822 16.2496 17.0822C16.7469 17.0822 17.2238 16.8846 17.5754 16.533C17.927 16.1814 18.1246 15.7044 18.1246 15.2072V13.5822C18.1251 13.5405 18.1381 13.5001 18.1619 13.4659C18.1856 13.4317 18.2191 13.4055 18.2579 13.3905C18.6479 13.2393 18.9831 12.9738 19.2195 12.6288C19.456 12.2838 19.5826 11.8754 19.5829 11.4572V9.79049C19.5903 8.81911 19.2128 7.88433 18.5329 7.19049ZM6.03292 2.26549H14.0496C14.2493 2.26292 14.4433 2.33219 14.5963 2.46067C14.7493 2.58915 14.851 2.7683 14.8829 2.96549L15.2829 5.35716C15.2878 5.38821 15.2858 5.41994 15.2772 5.45016C15.2686 5.48038 15.2534 5.50836 15.2329 5.53216C15.2131 5.55434 15.1887 5.57183 15.1613 5.58336C15.1339 5.59489 15.1043 5.60017 15.0746 5.59883H4.99959C4.9654 5.60054 4.93125 5.59471 4.89957 5.58175C4.86788 5.56878 4.83944 5.54901 4.81625 5.52383C4.79517 5.4674 4.79517 5.40525 4.81625 5.34883L5.17459 3.02383C5.19879 2.82341 5.29493 2.63859 5.44514 2.50372C5.59534 2.36884 5.7894 2.29307 5.99125 2.29049L6.03292 2.26549ZM16.2913 11.4322C16.044 11.4322 15.8024 11.3588 15.5968 11.2215C15.3912 11.0841 15.231 10.8889 15.1364 10.6605C15.0418 10.4321 15.017 10.1808 15.0653 9.9383C15.1135 9.69582 15.2326 9.47309 15.4074 9.29827C15.5822 9.12346 15.8049 9.00441 16.0474 8.95618C16.2899 8.90795 16.5412 8.9327 16.7696 9.02731C16.998 9.12192 17.1932 9.28213 17.3306 9.4877C17.4679 9.69326 17.5413 9.93493 17.5413 10.1822C17.5447 10.352 17.5136 10.5207 17.4497 10.6781C17.3858 10.8355 17.2905 10.9781 17.1696 11.0975C17.0488 11.2168 16.9048 11.3102 16.7467 11.3721C16.5885 11.4339 16.4193 11.4629 16.2496 11.4572L16.2913 11.4322ZM2.49959 10.2072C2.49959 9.95993 2.5729 9.71826 2.71025 9.5127C2.8476 9.30713 3.04282 9.14692 3.27123 9.05231C3.49964 8.9577 3.75097 8.93295 3.99345 8.98118C4.23593 9.02941 4.45865 9.14846 4.63347 9.32327C4.80829 9.49809 4.92734 9.72082 4.97557 9.9633C5.0238 10.2058 4.99905 10.4571 4.90444 10.6855C4.80983 10.9139 4.64961 11.1091 4.44405 11.2465C4.23849 11.3838 3.99681 11.4572 3.74959 11.4572C3.41807 11.4572 3.10012 11.3255 2.8657 11.091C2.63128 10.8566 2.49959 10.5387 2.49959 10.2072Z",fill:"#4B5563"})),p7=e=>Re.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("g",{clipPath:"url(#clip0_1697_57490)"},Re.createElement("path",{d:"M12.0829 5.05834C13.1783 5.05834 14.0663 4.17037 14.0663 3.07501C14.0663 1.97964 13.1783 1.09167 12.0829 1.09167C10.9876 1.09167 10.0996 1.97964 10.0996 3.07501C10.0996 4.17037 10.9876 5.05834 12.0829 5.05834Z",fill:"#4B5563"}),Re.createElement("path",{d:"M3.75 11.4083C3.00832 11.4083 2.2833 11.6283 1.66661 12.0403C1.04993 12.4524 0.569282 13.038 0.285453 13.7233C0.00162482 14.4085 -0.0726377 15.1625 0.0720569 15.8899C0.216751 16.6173 0.573904 17.2855 1.09835 17.81C1.6228 18.3344 2.29098 18.6916 3.01841 18.8363C3.74584 18.981 4.49984 18.9067 5.18506 18.6229C5.87029 18.339 6.45596 17.8584 6.86801 17.2417C7.28007 16.625 7.5 15.9 7.5 15.1583C7.4978 14.1644 7.10201 13.2119 6.39922 12.5091C5.69644 11.8063 4.74389 11.4105 3.75 11.4083ZM3.75 17.2417C3.33796 17.2417 2.93517 17.1195 2.59256 16.8906C2.24996 16.6616 1.98294 16.3363 1.82525 15.9556C1.66757 15.5749 1.62631 15.156 1.7067 14.7519C1.78708 14.3478 1.9855 13.9765 2.27686 13.6852C2.56822 13.3938 2.93944 13.1954 3.34356 13.115C3.74769 13.0346 4.16658 13.0759 4.54726 13.2336C4.92794 13.3913 5.25331 13.6583 5.48223 14.0009C5.71115 14.3435 5.83333 14.7463 5.83333 15.1583C5.83333 15.4319 5.77945 15.7028 5.67475 15.9556C5.57005 16.2083 5.4166 16.438 5.22314 16.6315C5.02969 16.8249 4.80002 16.9784 4.54726 17.0831C4.2945 17.1878 4.02359 17.2417 3.75 17.2417Z",fill:"#4B5563"}),Re.createElement("path",{d:"M16.25 11.4083C15.5083 11.4083 14.7833 11.6283 14.1666 12.0403C13.5499 12.4524 13.0693 13.038 12.7855 13.7233C12.5016 14.4085 12.4274 15.1625 12.5721 15.8899C12.7168 16.6173 13.0739 17.2855 13.5984 17.81C14.1228 18.3344 14.791 18.6916 15.5184 18.8363C16.2458 18.981 16.9998 18.9067 17.6851 18.6229C18.3703 18.339 18.956 17.8584 19.368 17.2417C19.7801 16.625 20 15.9 20 15.1583C19.9978 14.1644 19.602 13.2119 18.8992 12.5091C18.1964 11.8063 17.2439 11.4105 16.25 11.4083ZM16.25 17.2417C15.838 17.2417 15.4352 17.1195 15.0926 16.8906C14.75 16.6616 14.4829 16.3363 14.3253 15.9556C14.1676 15.5749 14.1263 15.156 14.2067 14.7519C14.2871 14.3478 14.4855 13.9765 14.7769 13.6852C15.0682 13.3938 15.4394 13.1954 15.8436 13.115C16.2477 13.0346 16.6666 13.0759 17.0473 13.2336C17.4279 13.3913 17.7533 13.6583 17.9822 14.0009C18.2112 14.3435 18.3333 14.7463 18.3333 15.1583C18.3333 15.4319 18.2794 15.7028 18.1748 15.9556C18.0701 16.2083 17.9166 16.438 17.7231 16.6315C17.5297 16.8249 17.3 16.9784 17.0473 17.0831C16.7945 17.1878 16.5236 17.2417 16.25 17.2417Z",fill:"#4B5563"}),Re.createElement("path",{d:"M8.93421 9.52501L10.1425 8.14168C11.2897 8.9152 12.6423 9.32736 14.0259 9.32501H14.5842C14.9157 9.32501 15.2337 9.19331 15.4681 8.95889C15.7025 8.72447 15.8342 8.40653 15.8342 8.07501C15.8342 7.74349 15.7025 7.42555 15.4681 7.19113C15.2337 6.95671 14.9157 6.82501 14.5842 6.82501H14.0259C12.8486 6.82097 11.7201 6.35403 10.8842 5.52501C10.7716 5.40452 10.6345 5.30949 10.4821 5.24625C10.3298 5.18302 10.1657 5.15305 10.0009 5.15834C9.82975 5.16377 9.66156 5.2043 9.50675 5.2774C9.35193 5.35051 9.21378 5.45464 9.10087 5.58334L6.18421 8.91668C6.05958 9.04818 5.96401 9.20443 5.90372 9.37528C5.84342 9.54613 5.81973 9.72775 5.83421 9.90834C5.8651 10.0771 5.92973 10.2379 6.02424 10.3811C6.11874 10.5243 6.24118 10.6469 6.38421 10.7417L6.93421 11.1083C7.66321 11.5976 8.22851 12.2944 8.55687 13.1086C8.88523 13.9229 8.96153 14.8169 8.77587 15.675C8.72593 15.8397 8.71053 16.0129 8.73063 16.1838C8.75074 16.3547 8.80592 16.5196 8.89272 16.6682C8.97951 16.8168 9.09606 16.9459 9.23505 17.0474C9.37404 17.1489 9.53249 17.2205 9.70047 17.2579C9.86845 17.2953 10.0423 17.2976 10.2112 17.2647C10.3802 17.2318 10.5404 17.1643 10.6821 17.0666C10.8237 16.9688 10.9436 16.8429 11.0343 16.6966C11.125 16.5504 11.1846 16.387 11.2092 16.2167C11.4704 14.9998 11.3968 13.7349 10.9961 12.5566C10.5955 11.3782 9.88295 10.3305 8.93421 9.52501Z",fill:"#4B5563"})),Re.createElement("defs",null,Re.createElement("clipPath",{id:"clip0_1697_57490"},Re.createElement("rect",{width:20,height:20,fill:"white"})))),ule=e=>Re.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("g",{clipPath:"url(#clip0_3407_1703)"},Re.createElement("path",{d:"M11.3752 20.0001H11.2169C10.9704 19.965 10.7399 19.8576 10.5545 19.6915C10.369 19.5254 10.2371 19.308 10.1752 19.0668L8.33357 11.6668L0.941907 9.82512C0.699196 9.76473 0.479985 9.63338 0.312261 9.44785C0.144536 9.26231 0.0359065 9.031 0.000240204 8.78345C-0.034478 8.53494 0.0136427 8.28191 0.137161 8.06349C0.26068 7.84508 0.452715 7.67344 0.683574 7.57512L18.3336 0.0917817C18.5568 0.00128909 18.802 -0.0208838 19.0378 0.0280732C19.2737 0.0770302 19.4898 0.194913 19.6586 0.366782C19.8232 0.535068 19.9346 0.74804 19.9791 0.979189C20.0235 1.21034 19.999 1.44946 19.9086 1.66678L12.4086 19.2834C12.3263 19.4916 12.1843 19.6707 12.0004 19.7982C11.8165 19.9258 11.599 19.996 11.3752 20.0001Z",fill:"#525252"})),Re.createElement("defs",null,Re.createElement("clipPath",{id:"clip0_3407_1703"},Re.createElement("rect",{width:20,height:20,fill:"white"}))));function hle({selectionChanged:e,children:t}){const n=Re.useRef();return Re.useEffect(()=>{const o=d=>e(d.detail),{current:l}=n;return l.addEventListener("change",o),()=>l.removeEventListener("change",o)},[e]),dt.jsx("mi-dropdown",{ref:n,"data-sentry-element":"mi-dropdown","data-sentry-component":"Dropdown","data-sentry-source-file":"Dropdown.jsx",children:t})}function dle(e,t){const n=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((o,l)=>{const d=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${n}&access_token=${t}`;fetch(d).then(g=>g.status!==200?l():g.json()).then(g=>{e.geometry={type:"Point",coordinates:[g.features[0].geometry.coordinates[0],g.features[0].geometry.coordinates[1]]},o(e)}).catch(()=>{l()})})}const fle=DI({key:"unitSystem",get:({get:e})=>e(up)==="en-US"?"imperial":"metric"}),x_e="";function m7({onAccessibilityChanged:e}){const t=rn(uc),[n,o]=Dn(Rx);function l(d){o(d.target.checked),e&&e()}return dt.jsxs("div",{className:"accessibility","data-sentry-component":"Accessibility","data-sentry-source-file":"Accessibility.jsx",children:[dt.jsx("input",{className:"mi-toggle",type:"checkbox",checked:n,onChange:d=>l(d),style:{backgroundColor:n?t:""}}),dt.jsx("div",{children:MO("Avoid stairs and escalators")})]})}const pT=Jn({key:"searchExternalLocations",default:!0}),go={TO:"TO",FROM:"FROM"},ple="data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";function g7({onStartDirections:e,onBack:t,directionsToLocation:n,directionsFromLocation:o,onSetSize:l,isActive:d}){const{t:g}=ya(),s=Re.useRef(),v=Re.useRef(),E=Re.useRef(),z=Re.useRef(),O=rn(FI),j=rn(Ex),F=rn(pu),$=rn(VI),Y=rn(uc),[ie,K]=Re.useState(),[,J]=Dn(lT),[te,oe]=Re.useState(!0),[pe,me]=Re.useState(!1),[he,De]=Re.useState([]),[qe,Te]=Re.useState(),[ze,ht]=Re.useState(),mt=rn(Rx),vt=cp(),[Qe,Fe]=Re.useState(!1),[ot,Je]=Dn(jx),[He,Ae]=Re.useState(!1),je=rn(Dx),ye=rn(fle),[ee,fe,Ne,Ee]=c7(ze,qe,O,ot,mt),Xe=rn(pT);function ft(dn){return $===Bo.Google&&dn.properties.type==="google_places"?lle(dn):$===Bo.Mapbox&&dn.properties.type==="mapbox_places"?dle(dn,je):Promise.resolve(dn)}function it(dn){ie===go.TO?ft(dn).then(mn=>{Te(mn),E.current.setDisplayText(mn.properties.name)},()=>J(!1)):ie===go.FROM&&ft(dn).then(mn=>{ht(mn),z.current.setDisplayText(mn.properties.name)},()=>J(!1)),Fe(!1),me(!1),De([]),Ae(!1)}function ue(dn,mn){if(K(mn),J(!0),dn.length===0)oe(!1),Fe(!1),De([]);else{oe(!0),De(dn);const ti=dn.filter(Yt=>Yt.properties.type==="google_places").length>0;Fe(ti)}}function Dt(dn){typeof l=="function"&&l(dn)}function Gt(){const dn=dT(j);ie===go.TO?(E.current.setDisplayText(dn.properties.name),Te(dn)):ie===go.FROM&&(z.current.setDisplayText(dn.properties.name),ht(dn)),De([]),J(!0),oe(!0),Fe(!1),me(!1),Ae(!1)}function Et(dn){(ze==null?void 0:ze.id)==="USER_POSITION"&&dn===go.TO||(qe==null?void 0:qe.id)==="USER_POSITION"&&dn===go.FROM?Ae(!1):Ae(!0)}function We(dn){Et(dn)}function Ut(dn){K(dn),Jt(dn),J(!0),Fe(!1),Et(dn)}function wt(dn){Ae(!0),K(dn),en(dn),De([]),J(!0),Fe(!1),oe(!0)}function en(dn){dn===go.TO?Te():dn===go.FROM&&ht()}function Jt(dn){dn===go.TO?(De([]),E.current.getValue()&&(me(!0),E.current.triggerSearch())):dn===go.FROM&&(De([]),z.current.getValue()&&(me(!0),z.current.triggerSearch()))}function Nn(){(qe||ze)&&(ze?E.current.setDisplayText(ze.properties.name):E.current.clear(),qe?z.current.setDisplayText(qe.properties.name):z.current.clear(),Te(ze),ht(qe))}function xn(){ht(),z.current.setDisplayText(""),t()}return Re.useEffect(()=>()=>{De([]),Te(),ht()},[]),Re.useEffect(()=>{var mn;Dt(Sr.MAX);let dn=!1;if((o==null?void 0:o.id)==="USER_POSITION"&&(n==null?void 0:n.id)==="USER_POSITION"&&(n=void 0),n!=null&&n.properties&&!F&&(E.current.setDisplayText(n.properties.name),Te(n)),o!=null&&o.properties?ze||(z.current.setDisplayText(o.properties.name),ht(o),dn=!0):K(go.FROM),d&&!((mn=z.current)!=null&&mn.getValue())){const ti=s.current.closest(".sheet");if(ti?ti.addEventListener("transitionend",()=>{o!=="USER_POSITION_PENDING"&&(n==null?void 0:n.id)!=="USER_POSITION"&&z.current.focusInput()},{once:!0}):o!=="USER_POSITION_PENDING"&&(n==null?void 0:n.id)!=="USER_POSITION"&&z.current.focusInput(),j&&!ze&&(n==null?void 0:n.id)!=="USER_POSITION"&&!dn){const Yt=dT(j);z.current.setDisplayText(Yt.properties.name),ht(Yt),J(!0),oe(!0),De([])}}},[d,n,o]),Re.useEffect(()=>{$===Bo.Mapbox&&(Fe(!1),De(he.filter(dn=>dn.properties.type!=="google_places")))},[$]),Re.useEffect(()=>{F&&(Te(F),E.current.setDisplayText(F.properties.name))},[F]),dt.jsxs("div",{className:"wayfinding",ref:s,"data-sentry-component":"Wayfinding","data-sentry-source-file":"Wayfinding.jsx",children:[dt.jsxs("div",{className:"wayfinding__directions",children:[dt.jsx("div",{className:"wayfinding__title",children:g("Directions")}),dt.jsx("button",{className:"wayfinding__close",onClick:()=>xn(),"aria-label":"Close",children:dt.jsx(kx,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"Wayfinding.jsx"})}),dt.jsxs("div",{className:"wayfinding__locations",children:[dt.jsxs("label",{className:"wayfinding__label",children:[dt.jsx("span",{children:g("Choose departure")}),dt.jsx(hT,{ref:z,mapsindoors:!0,google:$===Bo.Google&&Xe,mapbox:$===Bo.Mapbox&&Xe,placeholder:g("Choose departure"),results:dn=>ue(dn,go.FROM),clicked:()=>Ut(go.FROM),cleared:()=>wt(go.FROM),changed:()=>We(go.FROM),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]}),dt.jsx("button",{onClick:()=>Nn(),"aria-label":g("Switch"),className:"wayfinding__switch",children:dt.jsx(sle,{"data-sentry-element":"SwitchIcon","data-sentry-source-file":"Wayfinding.jsx"})}),dt.jsxs("label",{className:"wayfinding__label",children:[dt.jsx("span",{children:g("Choose destination")}),dt.jsx(hT,{ref:E,mapsindoors:!0,google:$===Bo.Google&&Xe,mapbox:$===Bo.Mapbox&&Xe,placeholder:g("Choose destination"),results:dn=>ue(dn,go.TO),clicked:()=>Ut(go.TO),cleared:()=>wt(go.TO),changed:()=>We(go.TO),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]})]})]}),!Ne&&dt.jsx("p",{className:"wayfinding__error",children:g("No route found")}),!te&&!He&&dt.jsx("p",{className:"wayfinding__error",children:g("Nothing was found")}),j&&He&&dt.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Gt(),children:[dt.jsx(ule,{}),g("My position")]}),he.length>0&&dt.jsx("div",{className:"wayfinding__scrollable",...vt,children:dt.jsxs("div",{className:"wayfinding__results",children:[he.map(dn=>dt.jsx(cT,{icon:dn.properties.type==="google_places"||dn.properties.type==="mapbox_places"?ple:void 0,location:dn,locationClicked:mn=>it(mn)},dn.id)),Qe&&dt.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:cle})]})}),!pe&&!He&&Ne&&!Qe&&ze&&qe&&dt.jsxs("div",{className:"wayfinding__details",ref:v,children:[dt.jsxs("div",{className:"wayfinding__settings",children:[dt.jsx(m7,{}),dt.jsx("div",{className:"wayfinding__travel",children:dt.jsxs(hle,{selectionChanged:dn=>Je(dn[0].value),children:[dt.jsxs("mi-dropdown-item",{selected:!0,value:Yh.WALKING,children:[dt.jsx(d7,{}),g("Walk")]}),dt.jsxs("mi-dropdown-item",{value:Yh.DRIVING,children:[dt.jsx(f7,{}),g("Drive")]}),dt.jsxs("mi-dropdown-item",{value:Yh.BICYCLING,children:[dt.jsx(p7,{}),g("Bike")]})]})})]}),dt.jsx("hr",{}),dt.jsxs("div",{className:"wayfinding__info",children:[dt.jsxs("div",{className:"wayfinding__distance",children:[ot===Yh.WALKING&&dt.jsx(d7,{}),ot===Yh.DRIVING&&dt.jsx(f7,{}),ot===Yh.BICYCLING&&dt.jsx(p7,{}),dt.jsxs("div",{children:[g("Distance"),":"]}),dt.jsx("div",{className:"wayfinding__meters",children:ee&&Ee&&dt.jsx("mi-distance",{unit:ye,meters:ee})})]}),dt.jsxs("div",{className:"wayfinding__time",children:[dt.jsx(ole,{}),dt.jsxs("div",{children:[g("Estimated time"),":"]}),dt.jsx("div",{className:"wayfinding__minutes",children:fe&&Ee&&dt.jsx("mi-time",{translations:JSON.stringify({days:g("d"),hours:g("h"),minutes:g("min")}),seconds:fe})})]})]}),dt.jsx("button",{className:"wayfinding__button",style:{background:Y},onClick:()=>e(),disabled:!Ee,children:g("Go!")})]})]})}const b_e="",mle=e=>Re.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("g",{opacity:.12},Re.createElement("path",{d:"M16.3335 5.36667C16.3335 4.71327 16.3335 4.38657 16.4607 4.13701C16.5725 3.91749 16.7509 3.73901 16.9705 3.62715C17.22 3.5 17.5467 3.5 18.2002 3.5H22.6335C23.2869 3.5 23.6136 3.5 23.8632 3.62715C24.0827 3.73901 24.2611 3.91749 24.373 4.13701C24.5002 4.38657 24.5002 4.71327 24.5002 5.36667V9.8C24.5002 10.4534 24.5002 10.7801 24.373 11.0297C24.2611 11.2492 24.0827 11.4277 23.8632 11.5395C23.6136 11.6667 23.2869 11.6667 22.6335 11.6667H18.2002C17.5467 11.6667 17.22 11.6667 16.9705 11.5395C16.7509 11.4277 16.5725 11.2492 16.4607 11.0297C16.3335 10.7801 16.3335 10.4534 16.3335 9.8V5.36667Z",fill:"#1F2937"}),Re.createElement("path",{d:"M3.5 5.36667C3.5 4.71327 3.5 4.38657 3.62715 4.13701C3.73901 3.91749 3.91749 3.73901 4.13701 3.62715C4.38657 3.5 4.71327 3.5 5.36667 3.5H9.8C10.4534 3.5 10.7801 3.5 11.0297 3.62715C11.2492 3.73901 11.4277 3.91749 11.5395 4.13701C11.6667 4.38657 11.6667 4.71327 11.6667 5.36667V9.8C11.6667 10.4534 11.6667 10.7801 11.5395 11.0297C11.4277 11.2492 11.2492 11.4277 11.0297 11.5395C10.7801 11.6667 10.4534 11.6667 9.8 11.6667H5.36667C4.71327 11.6667 4.38657 11.6667 4.13701 11.5395C3.91749 11.4277 3.73901 11.2492 3.62715 11.0297C3.5 10.7801 3.5 10.4534 3.5 9.8V5.36667Z",fill:"#1F2937"}),Re.createElement("path",{d:"M3.5 18.2C3.5 17.5466 3.5 17.2199 3.62715 16.9704C3.73901 16.7508 3.91749 16.5724 4.13701 16.4605C4.38657 16.3334 4.71327 16.3334 5.36667 16.3334H9.8C10.4534 16.3334 10.7801 16.3334 11.0297 16.4605C11.2492 16.5724 11.4277 16.7508 11.5395 16.9704C11.6667 17.2199 11.6667 17.5466 11.6667 18.2V22.6334C11.6667 23.2868 11.6667 23.6135 11.5395 23.863C11.4277 24.0826 11.2492 24.261 11.0297 24.3729C10.7801 24.5 10.4534 24.5 9.8 24.5H5.36667C4.71327 24.5 4.38657 24.5 4.13701 24.3729C3.91749 24.261 3.73901 24.0826 3.62715 23.863C3.5 23.6135 3.5 23.2868 3.5 22.6334V18.2Z",fill:"#1F2937"})),Re.createElement("path",{d:"M7.58333 7.58333H7.595M20.4167 7.58333H20.4283M7.58333 20.4167H7.595M15.1667 15.1667H15.1783M20.4167 20.4167H20.4283M19.8333 24.5H24.5V19.8333M16.3333 19.25V24.5M24.5 16.3333H19.25M18.2 11.6667H22.6333C23.2868 11.6667 23.6134 11.6667 23.863 11.5395C24.0826 11.4277 24.261 11.2492 24.3728 11.0297C24.5 10.7801 24.5 10.4534 24.5 9.8V5.36667C24.5 4.71327 24.5 4.38657 24.3728 4.13701C24.261 3.91749 24.0826 3.73901 23.863 3.62715C23.6134 3.5 23.2868 3.5 22.6333 3.5H18.2C17.5465 3.5 17.2199 3.5 16.9703 3.62715C16.7508 3.73901 16.5724 3.91749 16.4605 4.13701C16.3333 4.38657 16.3333 4.71327 16.3333 5.36667V9.8C16.3333 10.4534 16.3333 10.7801 16.4605 11.0297C16.5724 11.2492 16.7508 11.4277 16.9703 11.5395C17.2199 11.6667 17.5465 11.6667 18.2 11.6667ZM5.36667 11.6667H9.8C10.4534 11.6667 10.7801 11.6667 11.0297 11.5395C11.2492 11.4277 11.4277 11.2492 11.5395 11.0297C11.6667 10.7801 11.6667 10.4534 11.6667 9.8V5.36667C11.6667 4.71327 11.6667 4.38657 11.5395 4.13701C11.4277 3.91749 11.2492 3.73901 11.0297 3.62715C10.7801 3.5 10.4534 3.5 9.8 3.5H5.36667C4.71327 3.5 4.38657 3.5 4.13701 3.62715C3.91749 3.73901 3.73901 3.91749 3.62715 4.13701C3.5 4.38657 3.5 4.71327 3.5 5.36667V9.8C3.5 10.4534 3.5 10.7801 3.62715 11.0297C3.73901 11.2492 3.91749 11.4277 4.13701 11.5395C4.38657 11.6667 4.71327 11.6667 5.36667 11.6667ZM5.36667 24.5H9.8C10.4534 24.5 10.7801 24.5 11.0297 24.3728C11.2492 24.261 11.4277 24.0826 11.5395 23.863C11.6667 23.6134 11.6667 23.2868 11.6667 22.6333V18.2C11.6667 17.5465 11.6667 17.2199 11.5395 16.9703C11.4277 16.7508 11.2492 16.5724 11.0297 16.4605C10.7801 16.3333 10.4534 16.3333 9.8 16.3333H5.36667C4.71327 16.3333 4.38657 16.3333 4.13701 16.4605C3.91749 16.5724 3.73901 16.7508 3.62715 16.9703C3.5 17.2199 3.5 17.5465 3.5 18.2V22.6333C3.5 23.2868 3.5 23.6134 3.62715 23.863C3.73901 24.0826 3.91749 24.261 4.13701 24.3728C4.38657 24.5 4.71327 24.5 5.36667 24.5Z",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),M_e="",gle=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),yle=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),mT=Jn({key:"activeStep",default:0}),_1=Jn({key:"substepsToggled",default:!1}),_le=Jn({key:"triggerSubsteps",default:!1}),v1=()=>{const e=rn(dc),t=$h();return!(!e||e&&!t)},vle=Re.forwardRef(({totalSteps:e,activeStep:t,previous:n,originLocation:o,directions:l},d)=>{var F;const g=Re.useRef(),{t:s}=ya(),[v,E]=Dn(_1),[,z]=Dn(_le),O=v1();Re.useImperativeHandle(d,()=>({openSubsteps(){g.current.openSubsteps()},closeSubsteps(){g.current.closeSubsteps()}}));const j={walk:s("Walk"),bike:s("Bike"),transit:s("Transit"),drive:s("Drive"),destination:s("You have arrived"),leave:s("Leave"),from:s("From"),park:s("Park"),at:s("at"),building:s("Building"),venue:s("Venue"),takeStaircaseToLevel:s("Take staircase to level"),takeLadderToLevel:s("Take the ladder to level"),takeElevatorToLevel:s("Take elevator to level"),takeEscalatorToLevel:s("Take escalator to level"),takeWheelchairLiftToLevel:s("Take wheelchair lift to level"),takeWheelchairRampToLevel:s("Take wheelchair ramp to level"),exit:s("Exit"),enter:s("Enter"),stops:s("stops"),andContinue:s("and continue"),continueStraightAhead:s("Continue straight ahead"),goLeft:s("Go left"),goSharpLeft:s("Go sharp left"),goSlightLeft:s("Go slight left"),goRight:s("Go right"),goSharpRight:s("Go sharp right"),goSlightRight:s("Go slight right"),turnAround:s("Turn around"),days:s("d"),hours:s("h"),minutes:s("min")};return Re.useEffect(()=>{const{current:$}=g;function Y(){z(!0),E(!v)}return $.addEventListener("substepsToggled",Y),()=>{$.removeEventListener("substepsToggled",Y)}},[v]),dt.jsx("mi-route-instructions-step",{ref:g,"show-toggle-button":!O,step:JSON.stringify(e[t]),translations:JSON.stringify(j),"destination-location":l==null?void 0:l.destinationLocation.properties.name,"from-travel-mode":(n==null?void 0:n.travel_mode)??"","from-route-context":(n==null?void 0:n.route_context)??((F=o==null?void 0:o.properties)==null?void 0:F.name)??""})}),xle=()=>{const e=rn(Zs),t=rn(YI);return()=>{if(e&&t){const o=t.modules.map(l=>l.toLowerCase()).includes("z22");e.setZoom(o?22:21)}}},y7=Jn({key:"isDestinationStep",default:!1});function ble({steps:e,onNextStep:t,onPreviousStep:n,originLocation:o,isOpen:l,onFitCurrentDirections:d}){const{t:g}=ya(),s=cp(),v=Re.useRef(),[E,z]=Re.useState(),[O,j]=Dn(mT),[F,$]=Re.useState(),Y=rn(Ox),ie=rn(Zs),K=rn(_1),[,J]=Dn(y7),te=xle(),oe=v1();Re.useEffect(()=>{const De={...e[e.length-1]};De.travel_mode="DESTINATION",De.steps=null,e.push(De),$(e)},[e]),Re.useEffect(()=>{var he,De;if(l){if(O===(F==null?void 0:F.length)-1&&(Y!=null&&Y.destinationLocation)){J(!0);const qe=Y==null?void 0:Y.destinationLocation,Te=(qe==null?void 0:qe.geometry.type)==="Point"?qe==null?void 0:qe.geometry.coordinates:qe==null?void 0:qe.properties.anchor.coordinates;ie.getMapView().setCenter({lat:Te[1],lng:Te[0]}),te()}else J(!1);K===!1?(he=v.current)==null||he.closeSubsteps():K===!0&&((De=v.current)==null||De.openSubsteps())}},[l,O,F,K]);function pe(){z(F[O]),j(O+1),t()}function me(){z(F[O-2]),j(O-1),O===(F==null?void 0:F.length)-1?d():n()}return dt.jsx("div",{className:"route-instructions prevent-scroll",...s,"data-sentry-component":"RouteInstructions","data-sentry-source-file":"RouteInstructions.jsx",children:F&&dt.jsxs(dt.Fragment,{children:[dt.jsx(vle,{totalSteps:F,activeStep:O,previous:E,directions:Y,originLocation:o,ref:v}),dt.jsx("div",{className:`route-instructions__footer ${oe?"route-instructions__footer--kiosk":""}`,children:dt.jsxs("div",{className:"route-instructions__actions",children:[dt.jsx("button",{className:`route-instructions__button ${oe?"route-instructions__button--kiosk":""}`,onClick:()=>me(),"aria-label":g("Previous"),disabled:O===0,children:dt.jsx(yle,{})}),dt.jsx("div",{className:"route-instructions__overview",children:g("StepYofX",{activeStep:O+1,totalSteps:F.length})}),dt.jsx("button",{className:`route-instructions__button ${oe?"route-instructions__button--kiosk":""}`,onClick:()=>pe(),"aria-label":g("Next"),disabled:O===F.length-1,children:dt.jsx(gle,{})})]})})]})})}const Bx=Jn({key:"showQRCodeDialog",default:!1});let lo;function _7({isOpen:e,onBack:t,onSetSize:n,snapPointSwiped:o,onRouteFinished:l}){const{t:d}=ya(),[g,s]=Re.useState(null),v=Re.useRef(null),[E,z]=Re.useState(),O=rn(Zs),j=rn(jx),F=rn(Ox),[,$]=Dn(mT),[Y,ie]=Dn(_1),K=rn(dc),J=$h(),[,te]=Dn(Bx),oe=rn(y7),pe=rn(uc),me=v1(),he=rn(Px);Re.useEffect(()=>()=>{s(null)},[]),Re.useEffect(()=>{if(s(null),e&&F){z(F.totalTime);const Je=Math.min(window.innerHeight,window.innerWidth)*.06;lo==null||lo.setRoute(null),lo=null,Promise.all([De(Je),qe(Je)]).then(([He,Ae])=>{lo=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:O,fitBoundsPadding:{top:Je,bottom:He,left:Ae,right:Je}}),lo.setRoute(F.directionsResult).then(()=>{lo.setStepIndex(0)}),v.current.location=F.destinationLocation,F.destinationLocation.id==="USER_POSITION"?s(null):s(O.getDisplayRule(F.destinationLocation))})}},[e,F,O,j]);function De(Je){return new Promise(He=>{if(J)K?ZI().then(Ae=>He(Ae)):He(Je);else return $O().then(Ae=>He(Ae))})}function qe(Je){return new Promise(He=>{J?K?He(Je):qI().then(Ae=>He(Ae)):He(Je)})}Re.useEffect(()=>{!e&&lo&&vt()},[e]);function Te(){return F?F.directionsResult.legs.reduce((Je,He)=>{for(const Ae in He.steps){const je=He.steps[Ae];Je.push(je)}return Je},[]):[]}function ze(){lo&&lo.nextStep()}function ht(){lo&&lo.previousStep()}function mt(){lo&&lo.setStepIndex(lo.getStepIndex(),lo.getLegIndex())}function vt(){lo==null||lo.setRoute(null),lo=null}function Qe(){$(0),ie(!1),ot(Sr.FIT)}function Fe(){Qe(),vt(),t()}function ot(Je){typeof n=="function"&&n(Je)}return Re.useEffect(()=>{ot(Y?Sr.MAX:Sr.FIT)},[Y]),Re.useEffect(()=>{e&&o&&ie(o===Sr.MAX)},[e,o]),dt.jsxs("div",{className:"directions",style:{display:me?"block":"grid"},"data-sentry-component":"Directions","data-sentry-source-file":"Directions.jsx",children:[dt.jsxs("div",{className:"directions__steps",children:[dt.jsx("div",{className:"directions__minutes",children:E&&dt.jsx("mi-time",{translations:JSON.stringify({days:d("d"),hours:d("h"),minutes:d("min")}),seconds:E})}),dt.jsx(ble,{steps:Te(),originLocation:F==null?void 0:F.originLocation,onNextStep:()=>ze(),isOpen:e,onPreviousStep:()=>ht(),onFitCurrentDirections:()=>mt(),"data-sentry-element":"RouteInstructions","data-sentry-source-file":"Directions.jsx"})]}),me&&dt.jsxs(dt.Fragment,{children:[dt.jsx("hr",{}),dt.jsxs("div",{className:"directions__kiosk",children:[dt.jsx(m7,{onAccessibilityChanged:()=>Qe()}),dt.jsxs("button",{className:"directions__qr-code",onClick:()=>te(!0),children:[dt.jsx(mle,{}),d("Scan QR code")]})]})]}),dt.jsxs("div",{className:"directions__actions",children:[dt.jsx("div",{className:"directions__details",children:(F==null?void 0:F.destinationLocation)&&dt.jsxs("div",{className:"directions__info",children:[g&&F.destinationLocation.id!=="USER_POSITION"&&dt.jsx("div",{className:"directions__icon",children:dt.jsx("img",{alt:"",src:g.icon.src?g.icon.src:g.icon})}),dt.jsxs("div",{className:"directions__content",children:[dt.jsx("div",{className:"directions__name",children:F==null?void 0:F.destinationLocation.properties.name}),dt.jsx("mi-location-info",{ref:v,"show-external-id":he})]})]})}),oe?dt.jsx("button",{className:"directions__finish",onClick:()=>l(),style:{background:pe},children:d("Finish route")}):dt.jsx("button",{className:"directions__cancel",onClick:()=>Fe(),children:d("Cancel route")})]})]})}const w_e="",v7=Jn({key:"useKeyboard",default:!1}),Mle=Re.forwardRef(({searchInputElement:e},t)=>{const n=Re.useRef(),o=rn(up);return Re.useImperativeHandle(t,()=>({clearInputField(){n.current.clearInputField()}})),Re.useEffect(()=>{const{current:l}=n;e&&(l.inputElement=e)},[e]),dt.jsx("mi-keyboard",{language:o,ref:n})}),Fx=Jn({key:"searchResults",default:[]}),gT=Jn({key:"selectedCategory",default:void 0}),I_e="",wle=e=>Re.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),Ile=e=>Re.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));function Tle(){return new Promise(e=>{const t=document.querySelector(".chip--active");if(t)e(t);else{const n=new MutationObserver(()=>{const o=document.querySelector(".chip--active");o&&(n.disconnect(),e(o))});n.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const x7=Jn({key:"category",default:void 0});function Sle({onSetSize:e,getFilteredLocations:t,searchFieldRef:n,isOpen:o}){const l=Re.useRef(),d=rn(rp),g=$h(),[s,v]=Re.useState(!0),[E,z]=Re.useState(!1),O=rn(uc),[j,F]=Dn(gT),[,$]=Dn(Fx),[,Y]=Dn(Cx),ie=cp(),[K,J]=Re.useState(),te=rn(a7),oe=rn(x7),pe=rn(Zs),me=u7(pe,o);function he(ze){typeof e=="function"&&e(ze)}function De(ze){F(ze),he(Sr.MAX),j===ze?($([]),F(null),Y([]),n.current.getValue()&&n.current.triggerSearch()):n.current.getValue()?n.current.triggerSearch():t(ze)}function qe(){const{scrollLeft:ze,scrollWidth:ht,clientWidth:mt}=(l==null?void 0:l.current)||{};ze===0?v(!0):s&&v(!1),ht-ze===mt?z(!0):ht-ze>mt&&z(!1)}function Te(ze){l==null||l.current.scroll({left:(l==null?void 0:l.current.scrollLeft)+ze,behavior:"smooth"})}return Re.useEffect(()=>{var ze;me&&j&&(F(null),$([]),Y([]),he(Sr.FIT),(ze=n.current)!=null&&ze.getValue()&&n.current.clear())},[me]),Re.useEffect(()=>{const ze=()=>{qe()};let ht;return l.current&&(ht=new ResizeObserver(ze),ht.observe(l.current),l.current.addEventListener("scroll",qe)),()=>{var mt;J(),ht==null||ht.disconnect(),(mt=l.current)==null||mt.removeEventListener("scroll",qe)}},[]),Re.useEffect(()=>{j&&(Tle().then(ze=>J(ze)),he(Sr.MAX))},[j]),Re.useEffect(()=>{K&&oe!==void 0&&(g||!g&&te)&&K.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[K,oe,te]),dt.jsx("div",{className:"categories prevent-scroll",...ie,"data-sentry-component":"Categories","data-sentry-source-file":"Categories.jsx",children:d.length>0&&dt.jsxs(dt.Fragment,{children:[g&&dt.jsx("button",{className:"categories__scroll-button",onClick:()=>Te(-300),disabled:s,children:dt.jsx(Ile,{})}),dt.jsx("div",{ref:l,className:"categories__list",children:d==null?void 0:d.map(([ze,ht])=>dt.jsx("mi-chip",{icon:ht.iconUrl,"background-color":O,content:ht.displayName,active:j===ze,onClick:()=>De(ze)},ze))}),g&&dt.jsx("button",{className:"categories__scroll-button",onClick:()=>Te(300),disabled:E,children:dt.jsx(wle,{})})]})})}const Ele=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{opacity:.12,d:"M3 7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8Z",fill:"#111827",style:{fill:"#111827",fill:"color(display-p3 0.0667 0.0941 0.1529)",fillOpacity:1}}),Re.createElement("path",{d:"M12 16V12M12 8H12.01M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#111827",style:{stroke:"#111827",stroke:"color(display-p3 0.0667 0.0941 0.1529)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Vx=Jn({key:"isLegendDialogVisible",default:!1}),b7=DI({key:"legendFields",get:({get:e})=>{const t=e(dc);if(!(t!=null&&t.properties.fields))return;const n=[];for(const l of Object.keys(t.properties.fields)){const d=parseInt(l.charAt(0));if(!Number.isInteger(d))continue;const g=n.find(E=>E.index===d),s=l.toLowerCase().includes("legendheading"),v=l.toLowerCase().includes("legendcontent");if(g)s?g.heading=t.properties.fields[l].value:v&&(g.content=t.properties.fields[l].value);else{const E={index:d,heading:s?t.properties.fields[l].value:null,content:v?t.properties.fields[l].value:null};n.push(E)}}return n.sort((l,d)=>l.index-d.index)}}),yT=Jn({key:"initialVenueName",default:null});function M7({onSetSize:e,isOpen:t}){const{t:n}=ya(),o=Re.useRef(),l=Re.useRef(),d=Re.useRef(),g=Re.useRef(),s=100,[v,E]=Re.useState(!0),[z,O]=Dn(Fx),j=rn(rp),F=rn(v7),[$,Y]=Re.useState(!1),[ie,K]=Dn(gT),J=cp(),[te,oe]=Re.useState(),pe=rn(Zs),[,me]=Dn(Cx),[,he]=Dn(pu),[,De]=Dn(oT),[qe,Te]=Dn(op),ze=rn(up),ht=$h(),mt=rn(dc),[vt,Qe]=Re.useState(!1),Fe=rn(uT),ot=v1(),[,Je]=Dn(Vx),[He,Ae]=Re.useState(!1),je=rn(b7),ye=rn(Ux),ee=rn(m1),fe=rn(yT);function Ne(wt){var en;window.mapsindoors.services.LocationsService.getLocations({categories:wt,venue:ye||(en=ee.find(Jt=>Jt.name.toLowerCase()===qe.toLowerCase()))==null?void 0:en.name}).then(Jt=>Xe(Jt,!0))}function Ee(wt){typeof e=="function"&&e(wt)}function Xe(wt,en=!1){var Nn;const Jt=wt.slice(0,s);O(Jt),me(Jt),Y(Jt.length===0),wt&&en&&ft(wt),ot&&((Nn=o.current)==null||Nn.addEventListener("transitionend",()=>{var xn;(xn=l==null?void 0:l.current)==null||xn.updateScrollButtons()},{once:!0}))}function ft(wt){if(!pe.goTo)return;const en=pe.getFloor(),Jt={type:"FeatureCollection",features:wt.filter(Nn=>parseInt(Nn.properties.floor,10)===parseInt(en,10)).filter(Nn=>Nn.properties.venueId.toLowerCase()===qe.toLowerCase()).map(Nn=>({type:"Feature",geometry:Nn.geometry,properties:Nn.properties}))};Jt.features.length>0&&Promise.all([Et(),We()]).then(([Nn,xn])=>{pe.goTo(Jt,{maxZoom:22,padding:{bottom:Nn,left:xn,top:0,right:0}})})}function it(){O([]),Y(!1),ie&&Ne(ie),me([]),So(g.current)||g.current.clearInputField()}function ue(){Ee(Sr.MAX),E(!1),d.current.getInputField();const wt=o.current.closest(".sheet");wt?wt.addEventListener("transitionend",()=>{d.current.focusInput()},{once:!0}):d.current.focusInput()}function Dt(wt){oe(wt)}function Gt(wt){he(wt),wt.properties.venueId.toLowerCase()!==qe.toLowerCase()&&(Te(wt.properties.venueId),De(!0));const en=pe.getFloor(),Jt=wt.properties.floor;Jt!==en&&pe.setFloor(Jt),Promise.all([Et(),We()]).then(([Nn,xn])=>{pe.goTo(wt,{maxZoom:22,padding:{bottom:Nn,left:xn,top:0,right:0}})})}function Et(){return new Promise(wt=>{ht?mt?ZI().then(en=>wt(en)):wt(0):wt(200)})}function We(){return new Promise(wt=>{ht?mt?wt(0):qI().then(en=>wt(en)):wt(0)})}function Ut(){if(z.length>0){let wt;return ht?wt=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":wt="100%",{display:"flex",flexDirection:"column",maxHeight:wt,overflow:"hidden"}}else return{minHeight:j.length>0?"136px":"80px"}}return Re.useEffect(()=>()=>{oe()},[]),Re.useEffect(()=>{ie&&qe!==fe&&(O([]),K(null))},[qe]),Re.useEffect(()=>{ie&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{d.current.triggerSearch()})},[ze]),Re.useEffect(()=>(pe==null||pe.on("mouseenter",Dt),()=>{pe==null||pe.off("mouseenter",Dt)}),[pe]),Re.useEffect(()=>{if(t&&ot&&z.length>0){const wt=document.querySelector(".mapsindoors-map .search__results");l.current.scrollContainerElementRef=wt}},[z,t]),Re.useEffect(()=>{if(F){const wt=en=>{en.target.closest("mi-keyboard")||en.target.tagName.toUpperCase()==="MI-SEARCH"||en.target.tagName.toUpperCase()==="INPUT"?Qe(!0):Qe(!1)};return window.addEventListener("click",wt,!1),()=>{window.removeEventListener("click",wt,!1)}}},[F]),Re.useEffect(()=>{ie&&Ne(ie)},[ie]),Re.useEffect(()=>{mt&&Ae(je.length>0)},[mt]),dt.jsxs("div",{className:"search",ref:o,style:Ut(),"data-sentry-component":"Search","data-sentry-source-file":"Search.jsx",children:[dt.jsxs("div",{className:"search__info",style:{gridTemplateColumns:ot&&He?"min-content 1fr":"auto"},children:[ot&&He&&dt.jsx("button",{className:"search__legend",onClick:()=>Je(!0),children:dt.jsx(Ele,{})}),dt.jsxs("label",{className:"search__label",children:[dt.jsx("span",{children:n("Search by name, category, building...")}),dt.jsx(hT,{ref:d,mapsindoors:!0,placeholder:n("Search by name, category, building..."),results:wt=>Xe(wt),clicked:()=>ue(),cleared:()=>it(),category:ie,disabled:v,"data-sentry-element":"SearchField","data-sentry-source-file":"Search.jsx"})]})]}),j.length>0&&dt.jsx(Sle,{onSetSize:e,searchFieldRef:d,getFilteredLocations:wt=>Ne(wt),isOpen:!!ie}),$&&dt.jsxs("p",{className:"search__error",children:[" ",n("Nothing was found")]}),z.length>0&&dt.jsx("div",{className:"search__results prevent-scroll",...J,children:z.map(wt=>dt.jsx(cT,{location:wt,locationClicked:()=>Gt(wt),isHovered:(wt==null?void 0:wt.id)===(te==null?void 0:te.id)},wt.id))}),vt&&ht&&dt.jsx(Mle,{ref:g,searchInputElement:Fe}),t&&ot&&z.length>0&&Z5.createPortal(dt.jsx("div",{className:"search__scroll-buttons",children:dt.jsx("mi-scroll-buttons",{ref:l})}),document.querySelector(".mapsindoors-map"))]})}const T_e="";function w7({onBack:e,onLocationClick:t,locations:n,onSetSize:o}){const{t:l}=ya(),d=cp();function g(s){typeof o=="function"&&o(s)}return Re.useEffect(()=>{g(Sr.FIT)},[]),dt.jsxs("div",{className:"locations-list","data-sentry-component":"LocationsList","data-sentry-source-file":"LocationsList.jsx",children:[dt.jsxs("div",{className:"locations-list__header",children:[dt.jsxs("div",{className:"locations-list__title",children:[n==null?void 0:n.length," ",l("Locations")]}),dt.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":l("Close"),children:dt.jsx(kx,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"LocationsList.jsx"})})]}),dt.jsx("div",{className:"locations-list__scrollable prevent-scroll",...d,children:dt.jsx("div",{className:"locations-list__list",children:n==null?void 0:n.map(s=>dt.jsx(cT,{location:s,locationClicked:v=>t(v)},s.id))})})]})}function Dle({directionsFromLocation:e,directionsToLocation:t,pushAppView:n,currentAppView:o,appViews:l,onRouteFinished:d}){const g=Re.useRef(),[s,v]=Re.useState(),[E,z]=Re.useState(),[O,j]=Re.useState(),[F,$]=Re.useState(),[Y,ie]=Re.useState(),[K,J]=Re.useState(),[te,oe]=Re.useState(),pe=rn(rp),[me,he]=Dn(pu),[De,qe]=Dn(Ax),[,Te]=Dn(Lx);Re.useEffect(()=>{e&&t&&o===l.DIRECTIONS||(e&&t||e?n(l.WAYFINDING):me?n(l.LOCATION_DETAILS,me):(De==null?void 0:De.length)>1?n(l.EXTERNALIDS):(De==null?void 0:De.length)===1?(he(De[0]),Te(De[0].id)):n(l.SEARCH))},[me,e,t,De]);function ze(){(De==null?void 0:De.length)>1?(n(l.EXTERNALIDS),he()):(De==null?void 0:De.length)===1?(n(l.SEARCH),he(),qe([])):(n(l.SEARCH),he())}function ht(){n(l.SEARCH),he(),qe([])}const mt=[dt.jsx(y1,{minHeight:pe.length>0?"136":"80",preferredSizeSnapPoint:K,isOpen:o===l.SEARCH,children:dt.jsx(M7,{onSetSize:vt=>J(vt)})},"A"),dt.jsx(y1,{minHeight:"200",isOpen:o===l.EXTERNALIDS,preferredSizeSnapPoint:te,children:dt.jsx(w7,{onSetSize:vt=>oe(vt),onBack:()=>ht(),locations:De,onLocationClick:vt=>he(vt),onLocationsFiltered:vt=>qe(vt)})},"B"),dt.jsx(y1,{minHeight:"128",preferredSizeSnapPoint:s,isOpen:o===l.LOCATION_DETAILS,onSwipedToSnapPoint:vt=>z(vt),children:dt.jsx(h7,{onSetSize:vt=>v(vt),onStartWayfinding:()=>n(l.WAYFINDING),onBack:()=>ze(),snapPointSwiped:E,onStartDirections:()=>n(l.DIRECTIONS),isOpen:o===l.LOCATION_DETAILS})},"C"),dt.jsx(y1,{minHeight:"238",isOpen:o===l.WAYFINDING,preferredSizeSnapPoint:Y,children:dt.jsx(g7,{onSetSize:vt=>ie(vt),onStartDirections:()=>n(l.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>n(me?l.LOCATION_DETAILS:l.SEARCH),isActive:o===l.WAYFINDING})},"D"),dt.jsx(y1,{minHeight:"220",isOpen:o===l.DIRECTIONS,preferredSizeSnapPoint:O,onSwipedToSnapPoint:vt=>$(vt),children:dt.jsx(_7,{onSetSize:vt=>j(vt),isOpen:o===l.DIRECTIONS,onBack:()=>n(l.WAYFINDING),snapPointSwiped:F,onRouteFinished:()=>d()})},"E")];return dt.jsx("div",{ref:g,className:"bottom-sheets","data-sentry-component":"BottomSheet","data-sentry-source-file":"BottomSheet.jsx",children:dt.jsx(n7.Provider,{value:g,"data-sentry-element":"unknown","data-sentry-source-file":"BottomSheet.jsx",children:mt})})}const Cle={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},Ale=()=>{const[e,t]=Re.useState(void 0),[n,o]=Re.useState(),[l,d]=Re.useState(null);Re.useEffect(()=>{function E(z){var O,j;t((O=z.state)==null?void 0:O.value),o((j=z.state)==null?void 0:j.payload)}return window.addEventListener("popstate",E),()=>{window.removeEventListener("popstate",E)}},[]);const g=(E,z)=>{window.history.pushState({value:E,payload:z},""),t(E),l===null&&d({value:E,payload:z})};return[g,()=>{window.history.back()},e,n,Cle,()=>{g(l.value,l.payload)}]};function Nle(){const e=rn(yT),[,t]=Dn(op),n=Ds(mT),o=Ds(pu),l=Ds(Ox),d=Ds(lT),g=Ds(oT),s=Ds(GI),v=Ds(Bx),E=Ds(_1),z=Ds(jx),O=Ds(Fx),j=Ds(Rx),F=Ds(Vx),$=Ds(GO),Y=Ds(WI);return()=>{n(),o(),l(),d(),g(),s(),v(),E(),z(),O(),j(),F(),$(),Y(),e&&t(e)}}const S_e="";function x1({children:e,isOpen:t}){const[n,o]=Re.useState(!1),l=rn(_1),d=rn(dc),g=Re.useRef(),s=Re.useRef();return Re.useEffect(()=>{if(!s)return;const v=new MutationObserver(()=>{var O;const E=s.current.clientHeight,z=(O=g.current)==null?void 0:O.clientHeight;o(E>z)});return v.observe(s.current,{childList:!0,subtree:!0}),()=>{v.disconnect()}},[s]),dt.jsx("div",{ref:g,className:`modal ${t?"modal--open":""} ${n?"modal--full":""} ${l?"modal--substeps":""} ${d?"modal--kiosk":""}`,"data-sentry-component":"Modal","data-sentry-source-file":"Modal.jsx",children:dt.jsx("div",{ref:s,className:"modal__content",children:e})})}function Lle({directionsFromLocation:e,directionsToLocation:t,pushAppView:n,currentAppView:o,appViews:l,onRouteFinished:d}){const[g,s]=Dn(pu),[v,E]=Dn(Ax),[,z]=Dn(Lx),O=rn(dc);Re.useEffect(()=>{e&&t&&o===l.DIRECTIONS||(e&&t||e?n(l.WAYFINDING):g?n(l.LOCATION_DETAILS,g):(v==null?void 0:v.length)>1?n(l.EXTERNALIDS):(v==null?void 0:v.length)===1?(s(v[0]),z(v[0].id)):n(l.SEARCH))},[g,e,t,v]);function j(){(v==null?void 0:v.length)>1?(n(l.EXTERNALIDS),s()):(v==null?void 0:v.length)===1?(n(l.SEARCH),s(),E([])):(n(l.SEARCH),s())}function F(){n(l.SEARCH),s(),E([])}function $(){n(O?l.LOCATION_DETAILS:l.WAYFINDING)}const Y=[dt.jsx(x1,{isOpen:o===l.SEARCH,children:dt.jsx(M7,{isOpen:o===l.SEARCH})},"A"),dt.jsx(x1,{isOpen:o===l.EXTERNALIDS,children:dt.jsx(w7,{onBack:()=>F(),locations:v,onLocationClick:ie=>s(ie),onLocationsFiltered:ie=>E(ie)})},"B"),dt.jsx(x1,{isOpen:o===l.LOCATION_DETAILS,children:dt.jsx(h7,{onStartWayfinding:()=>n(l.WAYFINDING),onBack:()=>j(),onStartDirections:()=>n(l.DIRECTIONS),isOpen:o===l.LOCATION_DETAILS})},"C"),dt.jsx(x1,{isOpen:o===l.WAYFINDING,children:dt.jsx(g7,{onStartDirections:()=>n(l.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>n(g?l.LOCATION_DETAILS:l.SEARCH),isActive:o===l.WAYFINDING})},"D"),dt.jsx(x1,{isOpen:o===l.DIRECTIONS,children:dt.jsx(_7,{isOpen:o===l.DIRECTIONS,onBack:()=>$(),onRouteFinished:()=>d()})},"E")];return dt.jsx("div",{"data-sentry-component":"Sidebar","data-sentry-source-file":"Sidebar.jsx",children:Y})}const I7=e=>{const[t,n]=Re.useState(),o=rn(Ex),l=rn(BO);return Re.useEffect(()=>{l&&e&&(e==="USER_POSITION"&&!o?(n("USER_POSITION_PENDING"),l.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(d=>n(d)),o&&e==="USER_POSITION"&&n(dT(o)))},[e,o,l]),t},zle=Jn({key:"gmMapId",default:null}),E_e="";function kle(){const e=rn(GI),t=Re.useRef();return Re.useEffect(()=>{var n;(n=t.current)==null||n.classList.add("notification"),e?t.current.push(e.text,e.type,!0):t.current.clearAll()},[e]),dt.jsx("mi-notification",{ref:t,position:"top-center","data-sentry-element":"mi-notification","data-sentry-component":"Notification","data-sentry-source-file":"Notification.jsx"})}const D_e="";var b1={},Ole=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},T7={},Ws={};let _T;const jle=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ws.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},Ws.getSymbolTotalCodewords=function(t){return jle[t]},Ws.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},Ws.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');_T=t},Ws.isKanjiModeEnabled=function(){return typeof _T<"u"},Ws.toSJIS=function(t){return _T(t)};var $x={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,l){if(e.isValid(o))return o;try{return t(o)}catch{return l}}})($x);function S7(){this.buffer=[],this.length=0}S7.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Rle=S7;function M1(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}M1.prototype.set=function(e,t,n,o){const l=e*this.size+t;this.data[l]=n,o&&(this.reservedBit[l]=!0)},M1.prototype.get=function(e,t){return this.data[e*this.size+t]},M1.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},M1.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ple=M1,E7={};(function(e){const t=Ws.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const l=Math.floor(o/7)+2,d=t(o),g=d===145?26:Math.ceil((d-13)/(2*l-2))*2,s=[d-7];for(let v=1;v<l-1;v++)s[v]=s[v-1]-g;return s.push(6),s.reverse()},e.getPositions=function(o){const l=[],d=e.getRowColCoords(o),g=d.length;for(let s=0;s<g;s++)for(let v=0;v<g;v++)s===0&&v===0||s===0&&v===g-1||s===g-1&&v===0||l.push([d[s],d[v]]);return l}})(E7);var D7={};const Ule=Ws.getSymbolSize,C7=7;D7.getPositions=function(t){const n=Ule(t);return[[0,0],[n-C7,0],[0,n-C7]]};var A7={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(l){return l!=null&&l!==""&&!isNaN(l)&&l>=0&&l<=7},e.from=function(l){return e.isValid(l)?parseInt(l,10):void 0},e.getPenaltyN1=function(l){const d=l.size;let g=0,s=0,v=0,E=null,z=null;for(let O=0;O<d;O++){s=v=0,E=z=null;for(let j=0;j<d;j++){let F=l.get(O,j);F===E?s++:(s>=5&&(g+=t.N1+(s-5)),E=F,s=1),F=l.get(j,O),F===z?v++:(v>=5&&(g+=t.N1+(v-5)),z=F,v=1)}s>=5&&(g+=t.N1+(s-5)),v>=5&&(g+=t.N1+(v-5))}return g},e.getPenaltyN2=function(l){const d=l.size;let g=0;for(let s=0;s<d-1;s++)for(let v=0;v<d-1;v++){const E=l.get(s,v)+l.get(s,v+1)+l.get(s+1,v)+l.get(s+1,v+1);(E===4||E===0)&&g++}return g*t.N2},e.getPenaltyN3=function(l){const d=l.size;let g=0,s=0,v=0;for(let E=0;E<d;E++){s=v=0;for(let z=0;z<d;z++)s=s<<1&2047|l.get(E,z),z>=10&&(s===1488||s===93)&&g++,v=v<<1&2047|l.get(z,E),z>=10&&(v===1488||v===93)&&g++}return g*t.N3},e.getPenaltyN4=function(l){let d=0;const g=l.data.length;for(let v=0;v<g;v++)d+=l.data[v];return Math.abs(Math.ceil(d*100/g/5)-10)*t.N4};function n(o,l,d){switch(o){case e.Patterns.PATTERN000:return(l+d)%2===0;case e.Patterns.PATTERN001:return l%2===0;case e.Patterns.PATTERN010:return d%3===0;case e.Patterns.PATTERN011:return(l+d)%3===0;case e.Patterns.PATTERN100:return(Math.floor(l/2)+Math.floor(d/3))%2===0;case e.Patterns.PATTERN101:return l*d%2+l*d%3===0;case e.Patterns.PATTERN110:return(l*d%2+l*d%3)%2===0;case e.Patterns.PATTERN111:return(l*d%3+(l+d)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(l,d){const g=d.size;for(let s=0;s<g;s++)for(let v=0;v<g;v++)d.isReserved(v,s)||d.xor(v,s,n(l,v,s))},e.getBestMask=function(l,d){const g=Object.keys(e.Patterns).length;let s=0,v=1/0;for(let E=0;E<g;E++){d(E),e.applyMask(E,l);const z=e.getPenaltyN1(l)+e.getPenaltyN2(l)+e.getPenaltyN3(l)+e.getPenaltyN4(l);e.applyMask(E,l),z<v&&(v=z,s=E)}return s}})(A7);var Hx={};const mu=$x,Qx=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Yx=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Hx.getBlocksCount=function(t,n){switch(n){case mu.L:return Qx[(t-1)*4+0];case mu.M:return Qx[(t-1)*4+1];case mu.Q:return Qx[(t-1)*4+2];case mu.H:return Qx[(t-1)*4+3];default:return}},Hx.getTotalCodewordsCount=function(t,n){switch(n){case mu.L:return Yx[(t-1)*4+0];case mu.M:return Yx[(t-1)*4+1];case mu.Q:return Yx[(t-1)*4+2];case mu.H:return Yx[(t-1)*4+3];default:return}};var N7={},Gx={};const w1=new Uint8Array(512),Zx=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)w1[n]=t,Zx[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)w1[n]=w1[n-255]})(),Gx.log=function(t){if(t<1)throw new Error("log("+t+")");return Zx[t]},Gx.exp=function(t){return w1[t]},Gx.mul=function(t,n){return t===0||n===0?0:w1[Zx[t]+Zx[n]]},function(e){const t=Gx;e.mul=function(o,l){const d=new Uint8Array(o.length+l.length-1);for(let g=0;g<o.length;g++)for(let s=0;s<l.length;s++)d[g+s]^=t.mul(o[g],l[s]);return d},e.mod=function(o,l){let d=new Uint8Array(o);for(;d.length-l.length>=0;){const g=d[0];for(let v=0;v<l.length;v++)d[v]^=t.mul(l[v],g);let s=0;for(;s<d.length&&d[s]===0;)s++;d=d.slice(s)}return d},e.generateECPolynomial=function(o){let l=new Uint8Array([1]);for(let d=0;d<o;d++)l=e.mul(l,new Uint8Array([1,t.exp(d)]));return l}}(N7);const L7=N7;function vT(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}vT.prototype.initialize=function(t){this.degree=t,this.genPoly=L7.generateECPolynomial(this.degree)},vT.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const o=L7.mod(n,this.genPoly),l=this.degree-o.length;if(l>0){const d=new Uint8Array(this.degree);return d.set(o,l),d}return o};var Ble=vT,z7={},gu={},xT={};xT.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var bl={};const k7="[0-9]+",Fle="[A-Z $%*+\\-./:]+";let I1="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";I1=I1.replace(/u/g,"\\u");const Vle="(?:(?![A-Z0-9 $%*+\\-./:]|"+I1+`)(?:.|[\r
|
|
2225
|
+
(${c.data.width}, ${c.data.height})`)));const L=!(r instanceof HTMLImageElement||ImageBitmap&&r instanceof ImageBitmap);c.data.replace(I,L),this.style.updateImage(p,c)}hasImage(p){return p?!!this.style&&!!this.style.getImage(p):(this.fire(new s.t(new Error("Missing required image id"))),!1)}removeImage(p){this.style.removeImage(p)}loadImage(p,r){s.o(this._requestManager.transformRequest(p,s.R.Image),(c,m)=>{r(c,m instanceof HTMLImageElement?s.q.getImageData(m):m)})}listImages(){return this.style.listImages()}addModel(p,r){this._lazyInitEmptyStyle(),this.style.addModel(p,r)}hasModel(p){return p?this.style.hasModel(p):(this.fire(new s.t(new Error("Missing required model id"))),!1)}removeModel(p){this.style.removeModel(p)}listModels(){return this.style.listModels()}addLayer(p,r){return this._isValidId(p.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(p,r),this._update(!0)):this}getSlot(p){const r=this.getLayer(p);return r&&r.slot||null}setSlot(p,r){return this.style.setSlot(p,r),this.style.mergeLayers(),this._update(!0)}addImport(p,r){return this.style.addImport(p,r),this}updateImport(p,r){return typeof r!="string"&&r.id!==p?(this.removeImport(p),this.addImport(r)):(this.style.updateImport(p,r),this._update(!0))}removeImport(p){return this.style.removeImport(p),this}moveImport(p,r){return this.style.moveImport(p,r),this._update(!0)}moveLayer(p,r){return this._isValidId(p)?(this.style.moveLayer(p,r),this._update(!0)):this}removeLayer(p){return this._isValidId(p)?(this.style.removeLayer(p),this._update(!0)):this}getLayer(p){if(!this._isValidId(p))return null;const r=this.style.getOwnLayer(p);return r?r.type==="custom"?r.implementation:r.serialize():void 0}getSlots(){return this.style.getSlots()}setLayerZoomRange(p,r,c){return this._isValidId(p)?(this.style.setLayerZoomRange(p,r,c),this._update(!0)):this}setFilter(p,r,c={}){return this._isValidId(p)?(this.style.setFilter(p,r,c),this._update(!0)):this}getFilter(p){return this._isValidId(p)?this.style.getFilter(p):null}setPaintProperty(p,r,c,m={}){return this._isValidId(p)?(this.style.setPaintProperty(p,r,c,m),this._update(!0)):this}getPaintProperty(p,r){return this._isValidId(p)?this.style.getPaintProperty(p,r):null}setLayoutProperty(p,r,c,m={}){return this._isValidId(p)?(this.style.setLayoutProperty(p,r,c,m),this._update(!0)):this}getLayoutProperty(p,r){return this._isValidId(p)?this.style.getLayoutProperty(p,r):null}getSchema(p){return this.style.getSchema(p)}setSchema(p,r){return this.style.setSchema(p,r),this._update(!0)}getConfig(p){return this.style.getConfig(p)}setConfig(p,r){return this.style.setConfig(p,r),this._update(!0)}getConfigProperty(p,r){return this.style.getConfigProperty(p,r)}setConfigProperty(p,r,c){return this.style.setConfigProperty(p,r,c),this._update(!0)}setLights(p){if(this._lazyInitEmptyStyle(),p&&p.length===1&&p[0].type==="flat"){const r=p[0];r.properties?this.style.setFlatLight(r.properties,r.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(p),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const p=this.style.getLights()||[];return p.length===0&&p.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),p}setLight(p,r={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:p}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(p){return this._lazyInitEmptyStyle(),!p&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(p),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(p){return this._lazyInitEmptyStyle(),this.style.setFog(p),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setColorTheme(p){return this._lazyInitEmptyStyle(),this.style.setColorTheme(p),this._update(!0)}setCamera(p){return this.style.setCamera(p),this._triggerCameraUpdate(p)}_triggerCameraUpdate(p){return this._update(this.transform.setOrthographicProjectionAtLowPitch(p["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(p){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(s.bK.convert(p),this.transform):0}setFeatureState(p,r){return this._isValidId(p.source)?(this.style.setFeatureState(p,r),this._update()):this}removeFeatureState(p,r){return this._isValidId(p.source)?(this.style.removeFeatureState(p,r),this._update()):this}getFeatureState(p){return this._isValidId(p.source)?this.style.getFeatureState(p):null}_updateContainerDimensions(){if(!this._container)return;const p=this._container.getBoundingClientRect().width||400,r=this._container.getBoundingClientRect().height||300;let c,m,x,M=this._container;for(;M&&(!m||!x);){const I=window.getComputedStyle(M).transform;I&&I!=="none"&&(c=I.match(/matrix.*\((.+)\)/)[1].split(", "),c[0]&&c[0]!=="0"&&c[0]!=="1"&&(m=c[0]),c[3]&&c[3]!=="0"&&c[3]!=="1"&&(x=c[3])),M=M.parentElement}this._containerWidth=m?Math.abs(p/m):p,this._containerHeight=x?Math.abs(r/x):r}_detectMissingCSS(){window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&s.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const p=this._container;p.classList.add("mapboxgl-map"),(this._missingCSSCanary=Y("div","mapboxgl-canary",p)).style.visibility="hidden",this._detectMissingCSS();const r=this._canvasContainer=Y("div","mapboxgl-canvas-container",p);this._canvas=Y("canvas","mapboxgl-canvas",r),this._interactive&&(r.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const c=this._controlContainer=Y("div","mapboxgl-control-container",p),m=this._controlPositions={};["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"].forEach(x=>{m[x]=Y("div",`mapboxgl-ctrl-${x}`,c)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(p,r){const c=s.q.devicePixelRatio||1;this._canvas.width=c*Math.ceil(p),this._canvas.height=c*Math.ceil(r),this._canvas.style.width=`${p}px`,this._canvas.style.height=`${r}px`}_addMarker(p){this._markers.push(p)}_removeMarker(p){const r=this._markers.indexOf(p);r!==-1&&this._markers.splice(r,1)}_addPopup(p){this._popups.push(p)}_removePopup(p){const r=this._popups.indexOf(p);r!==-1&&this._popups.splice(r,1)}_setupPainter(){const p=s.l({},$.supported.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl2",p);r?(Gt(r,!0),this.painter=new w0(r,this._contextCreateOptions,this.transform,this._tp),this.on("data",c=>{c.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),s.m.testSupport(r)):this.fire(new s.t(new Error("Failed to initialize WebGL")))}_contextLost(p){p.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new s.x("webglcontextlost",{originalEvent:p}))}_contextRestored(p){this._setupPainter(),this.resize(),this._update(),this.fire(new s.x("webglcontextrestored",{originalEvent:p}))}_onMapScroll(p){if(p.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}idle(){return!this.isMoving()&&this.loaded()}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}frameReady(){return this.loaded()&&!this._placementDirty}_update(p){return this.style?(this._styleDirty=this._styleDirty||p,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(p){return this._update(),this._renderTaskQueue.add(p)}_cancelRenderFrame(p){this._renderTaskQueue.remove(p)}_requestDomTask(p){!this.loaded()||this.loaded()&&!this.isMoving()?p():this._domRenderTaskQueue.add(p)}_render(p){let r;this.fire(new s.x("renderstart")),++this._frameId;const c=this.painter.context.extTimerQuery,m=s.q.now(),x=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(r=x.createQuery(),x.beginQuery(c.TIME_ELAPSED_EXT,r)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(p),this._domRenderTaskQueue.run(p),this._removed)return;this._updateProjectionTransition();const M=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const U=this.transform.zoom,B=this.transform.pitch,Q=s.q.now(),G=new s.a3(U,{now:Q,fadeDuration:M,pitch:B,transition:this.style.transition});this.style.update(G)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let I=!1;this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),I=this._updateAverageElevation(m),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):I=this._updateAverageElevation(m);const L=this.style&&this.style._updatePlacement(this.painter,this.painter.transform,this.showCollisionBoxes,M,this._crossSourceCollisions,this.painter.replacementSource);if(L&&(this._placementDirty=L.needsRerender),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showParseStatus:this.showParseStatus,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:M,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new s.x("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,z.mark(E.load),this.fire(new s.x("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),r){const U=s.q.now()-m;x.endQuery(c.TIME_ELAPSED_EXT),setTimeout(()=>{const B=x.getQueryParameter(r,x.QUERY_RESULT)/1e6;x.deleteQuery(r),this.fire(new s.x("gpu-timing-frame",{cpuTime:U,gpuTime:B}))},50)}if(this.listens("gpu-timing-layer")){const U=this.painter.collectGpuTimers();setTimeout(()=>{const B=this.painter.queryGpuTimers(U);this.fire(new s.x("gpu-timing-layer",{layerTimes:B}))},50)}if(this.listens("gpu-timing-deferred-render")){const U=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const B=this.painter.queryGpuTimeDeferredRender(U);this.fire(new s.x("gpu-timing-deferred-render",{gpuTime:B}))},50)}const R=this._sourcesDirty||this._styleDirty||this._placementDirty||I;if(R||this._repaint)this.triggerRepaint();else{const U=this.idle();if(U&&(I=this._updateAverageElevation(m,!0)),I)this.triggerRepaint();else if(this._triggerFrame(!1),U&&(this.fire(new s.x("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const B=this._calculateSpeedIndex();this.fire(new s.x("speedindexcompleted",{speedIndex:B})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||R||(this._fullyLoaded=!0,z.mark(E.fullLoad),this._performanceMetricsCollection&&ft(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(p){for(const r of this._markers)p&&!this.getRenderWorldCopies()&&(r._lngLat=r._lngLat.wrap()),r._update();for(const r of this._popups)!p||this.getRenderWorldCopies()||r._trackPointer||(r._lngLat=r._lngLat.wrap()),r._update()}_updateAverageElevation(p,r=!1){const c=x=>(this.transform.averageElevation=x,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&c(0);const m=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(m||(r||p-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(p)){const x=this.transform.averageElevation;let M=this.transform.sampleAverageElevation();this.transform.elevation!=null&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(M)?M=0:this._averageElevationLastSampledAt=p;const I=Math.abs(x-M);if(I>1){if(this._isInitialLoad||m)return this._averageElevation.jumpTo(M),c(M);this._averageElevation.easeTo(M,p,300)}else if(I>1e-4)return this._averageElevation.jumpTo(M),c(M)}return!!this._averageElevation.isEasing(p)&&c(this._averageElevation.getValue(p))}_authenticate(){ue(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,p=>{if(p&&(p.message===mt||p.status===401)){const r=this.painter.context.gl;Gt(r,!1),this._logoControl instanceof O0&&this._logoControl._updateLogo(),r&&r.clear(r.DEPTH_BUFFER_BIT|r.COLOR_BUFFER_BIT|r.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new s.t(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),fe(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_postStyleLoadEvent(){this.style.globalId&&Ee(this._requestManager._customAccessToken,{map:this,skuToken:this._requestManager._skuToken,style:this.style.globalId,importedStyles:this.style.getImportGlobalIds()})}_updateTerrain(){const p=this._isDragging();this.painter.updateTerrain(this.style,p)}_calculateSpeedIndex(){const p=this.painter.canvasCopy(),r=this.painter.getCanvasCopiesAndTimestamps();r.timeStamps.push(performance.now());const c=this.painter.context.gl,m=c.createFramebuffer();function x(M){c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,M,0);const I=new Uint8Array(c.drawingBufferWidth*c.drawingBufferHeight*4);return c.readPixels(0,0,c.drawingBufferWidth,c.drawingBufferHeight,c.RGBA,c.UNSIGNED_BYTE,I),I}return c.bindFramebuffer(c.FRAMEBUFFER,m),this._canvasPixelComparison(x(p),r.canvasCopies.map(x),r.timeStamps)}_canvasPixelComparison(p,r,c){let m=c[1]-c[0];const x=p.length/4;for(let M=0;M<r.length;M++){const I=r[M];let L=0;for(let R=0;R<I.length;R+=4)I[R]===p[R]&&I[R+1]===p[R+1]&&I[R+2]===p[R+2]&&I[R+3]===p[R+3]&&(L+=1);m+=(c[M+2]-c[M+1])*(1-L/x)}return m}remove(){this._hash&&this._hash.remove();for(const r of this._controls)r.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("orientationchange",this._onWindowResize,!1),window.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1),window.removeEventListener("visibilitychange",this._onVisibilityChange,!1);const p=this.painter.context.gl.getExtension("WEBGL_lose_context");p&&p.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),Dt.delete(this.painter.context.gl),it.remove(),ee.remove(),this._removed=!0,this.fire(new s.x("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(p){this._renderNextFrame=this._renderNextFrame||p,this.style&&!this._frame&&(this._frame=s.q.frame(r=>{const c=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,c&&this._render(r)}))}_preloadTiles(p){const r=this.style?this.style.getSourceCaches():[];return s.bf(r,(c,m)=>c._preloadTiles(p,m),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(p){this._trackResize&&this.resize({originalEvent:p})._update()}_onVisibilityChange(){document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(p){this._showTileBoundaries!==p&&(this._showTileBoundaries=p,this._tp.refreshUI(),this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(p){this._showParseStatus!==p&&(this._showParseStatus=p,this._tp.refreshUI(),this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(p){this._showTerrainWireframe!==p&&(this._showTerrainWireframe=p,this._tp.refreshUI(),this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(p){this._showLayers2DWireframe!==p&&(this._showLayers2DWireframe=p,this._tp.refreshUI(),this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(p){this._showLayers3DWireframe!==p&&(this._showLayers3DWireframe=p,this._tp.refreshUI(),this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(p){this._speedIndexTiming!==p&&(this._speedIndexTiming=p,this._update())}get showPadding(){return!!this._showPadding}set showPadding(p){this._showPadding!==p&&(this._showPadding=p,this._tp.refreshUI(),this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(p){this._showCollisionBoxes!==p&&(this._showCollisionBoxes=p,this._tp.refreshUI(),p?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(p){this._showOverdrawInspector!==p&&(this._showOverdrawInspector=p,this._tp.refreshUI(),this._update())}get repaint(){return!!this._repaint}set repaint(p){this._repaint!==p&&(this._repaint=p,this._tp.refreshUI(),this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(p){this._vertices=p,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(p){this._showTileAABBs!==p&&(this._showTileAABBs=p,this._tp.refreshUI(),p&&this._update())}_setCacheLimits(p,r){s.dy(p,r)}get version(){return v}},NavigationControl:class{constructor(p={}){this.options=s.l({},Cd,p),this._container=Y("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",r=>r.preventDefault()),this.options.showZoom&&(s.aJ(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",r=>{this._map&&this._map.zoomIn({},{originalEvent:r})}),Y("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",r=>{this._map&&this._map.zoomOut({},{originalEvent:r})}),Y("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(s.aJ(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",r=>{const c=this._map;c&&(this.options.visualizePitch?c.resetNorthPitch({},{originalEvent:r}):c.resetNorth({},{originalEvent:r}))}),this._compassIcon=Y("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const p=this._map;if(!p)return;const r=p.getZoom(),c=r===p.getMaxZoom(),m=r===p.getMinZoom();this._zoomInButton.disabled=c,this._zoomOutButton.disabled=m,this._zoomInButton.setAttribute("aria-disabled",c.toString()),this._zoomOutButton.setAttribute("aria-disabled",m.toString())}_rotateCompassArrow(){const p=this._map;if(!p)return;const r=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(p.transform.pitch*(Math.PI/180)),.5)}) rotateX(${p.transform.pitch}deg) rotateZ(${p.transform.angle*(180/Math.PI)}deg)`:`rotate(${p.transform.angle*(180/Math.PI)}deg)`;p._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=r)})}onAdd(p){return this._map=p,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),p.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&p.on("pitch",this._rotateCompassArrow),p.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Xu(p,this._compass,this.options.visualizePitch)),this._container}onRemove(){const p=this._map;p&&(this._container.remove(),this.options.showZoom&&p.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&p.off("pitch",this._rotateCompassArrow),p.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(p,r){const c=Y("button",p,this._container);return c.type="button",c.addEventListener("click",r),c}_setButtonTitle(p,r){if(!this._map)return;const c=this._map._getUIString(`NavigationControl.${r}`);p.setAttribute("aria-label",c),p.firstElementChild&&p.firstElementChild.setAttribute("title",c)}},GeolocateControl:class extends s.E{constructor(p={}){super();const r=navigator.geolocation;this.options=s.l({geolocation:r},Sc,p),s.aJ(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Wa(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(p){return this._map=p,this._container=Y("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(p){const r=(c=!!this.options.geolocation)=>{this._supportsGeolocation=c,p(c)};this._supportsGeolocation!==void 0?p(this._supportsGeolocation):navigator.permissions!==void 0?navigator.permissions.query({name:"geolocation"}).then(c=>r(c.state!=="denied")).catch(()=>r()):r()}_isOutOfMapMaxBounds(p){const r=this._map.getMaxBounds(),c=p.coords;return!!r&&(c.longitude<r.getWest()||c.longitude>r.getEast()||c.latitude<r.getSouth()||c.latitude>r.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(p){if(this._map){if(this._isOutOfMapMaxBounds(p))return this._setErrorState(),this.fire(new s.x("outofmaxbounds",p)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=p,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(p),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(p),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new s.x("geolocate",p)),this._finish()}}_updateCamera(p){const r=new s.bK(p.coords.longitude,p.coords.latitude),c=p.coords.accuracy,m=this._map.getBearing(),x=s.l({bearing:m},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(c),x,{geolocateSource:!0})}_updateMarker(p){if(p){const r=new s.bK(p.coords.longitude,p.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=p.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const p=this._map.transform,r=s.bD(1,p._center.lat)*p.worldSize,c=Math.ceil(2*this._accuracy*r);this._circleElement.style.width=`${c}px`,this._circleElement.style.height=`${c}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(p){if(this._map){if(this.options.trackUserLocation)if(p.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",r),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",r),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(p.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new s.x("error",p)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(p){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",r=>r.preventDefault()),this._geolocateButton=Y("button","mapboxgl-ctrl-geolocate",this._container),Y("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",p===!1){s.w("Geolocation support is not available so the GeolocateControl will be disabled.");const r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",r),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",r)}else{const r=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",r),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",r)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Y("div","mapboxgl-user-location"),this._dotElement.appendChild(Y("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(Y("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new Ea({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=Y("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ea({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",r=>{r.geolocateSource||this._watchState!=="ACTIVE_LOCK"||r.originalEvent&&r.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new s.x("trackuserlocationend")))})}}_onDeviceOrientation(p){this._userLocationDotMarker&&(p.webkitCompassHeading?this._heading=p.webkitCompassHeading:p.absolute===!0&&(this._heading=-1*p.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return s.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new s.x("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new s.x("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new s.x("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let p;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(p={maximumAge:6e5,timeout:0},this._noTimeout=!0):(p=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,p),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=window.setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const p=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(r=>{r==="granted"&&p()}).catch(console.error):p()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:_m,ScaleControl:class{constructor(p={}){this.options=s.l({},jl,p),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),s.aJ(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const p=this.options.maxWidth||100,r=this._map,c=r._containerHeight/2,m=r._containerWidth/2-p/2,x=r.unproject([m,c]),M=r.unproject([m+p,c]),I=x.distanceTo(M);if(this.options.unit==="imperial"){const L=3.2808*I;L>5280?this._setScale(p,L/5280,"mile"):this._setScale(p,L,"foot")}else this.options.unit==="nautical"?this._setScale(p,I/1852,"nautical-mile"):I>=1e3?this._setScale(p,I/1e3,"kilometer"):this._setScale(p,I,"meter")}_setScale(p,r,c){this._map._requestDomTask(()=>{const m=function(M){const I=Math.pow(10,`${Math.floor(M)}`.length-1);let L=M/I;return L=L>=10?10:L>=5?5:L>=3?3:L>=2?2:L>=1?1:function(R){const U=Math.pow(10,Math.ceil(-Math.log(R)/Math.LN10));return Math.round(R*U)/U}(L),I*L}(r),x=m/r;this._container.innerHTML=this._isNumberFormatSupported&&c!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:c}).format(m):`${m} ${CE[c]}`,this._container.style.width=p*x+"px"})}onAdd(p){return this._map=p,this._language=p.getLanguage(),this._container=Y("div","mapboxgl-ctrl mapboxgl-ctrl-scale",p.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(p){this._language=p,this._update()}setUnit(p){this.options.unit=p,this._update()}},FullscreenControl:class{constructor(p={}){this._fullscreen=!1,p&&p.container&&(p.container instanceof HTMLElement?this._container=p.container:s.w("Full screen control 'container' must be a DOM element.")),s.aJ(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(p){return this._map=p,this._container||(this._container=this._map.getContainer()),this._controlContainer=Y("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",s.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const p=this._fullscreenButton=Y("button","mapboxgl-ctrl-fullscreen",this._controlContainer);Y("span","mapboxgl-ctrl-icon",p).setAttribute("aria-hidden","true"),p.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const p=this._getTitle();this._fullscreenButton.setAttribute("aria-label",p),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",p)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends s.E{constructor(p){super(),this.options=s.l(Object.create(AE),p),s.aJ(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(p&&p.className?p.className.trim().split(/\s+/):[])}addTo(p){return this._map&&this.remove(),this._map=p,this.options.closeOnClick&&p.on("preclick",this._onClose),this.options.closeOnMove&&p.on("move",this._onClose),p.on("remove",this.remove),this._update(),p._addPopup(this),this._focusFirstElement(),this._trackPointer?(p.on("mousemove",this._onMouseEvent),p.on("mouseup",this._onMouseEvent),p._canvasContainer.classList.add("mapboxgl-track-pointer")):p.on("move",this._update),this.fire(new s.x("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const p=this._map;return p&&(p.off("move",this._update),p.off("move",this._onClose),p.off("preclick",this._onClose),p.off("click",this._onClose),p.off("remove",this.remove),p.off("mousemove",this._onMouseEvent),p.off("mouseup",this._onMouseEvent),p.off("drag",this._onMouseEvent),p._canvasContainer&&p._canvasContainer.classList.remove("mapboxgl-track-pointer"),p._removePopup(this),this._map=void 0),this.fire(new s.x("close")),this}getLngLat(){return this._lngLat}setLngLat(p){this._lngLat=s.bK.convert(p),this._pos=null,this._trackPointer=!1,this._update();const r=this._map;return r&&(r.on("move",this._update),r.off("mousemove",this._onMouseEvent),r._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const p=this._map;return p&&(p.off("move",this._update),p.on("mousemove",this._onMouseEvent),p.on("drag",this._onMouseEvent),p._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(p){return this.setDOMContent(document.createTextNode(p))}setHTML(p){const r=document.createDocumentFragment(),c=document.createElement("body");let m;for(c.innerHTML=p;m=c.firstChild,m;)r.appendChild(m);return this.setDOMContent(r)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(p){return this.options.maxWidth=p,this._update(),this}setDOMContent(p){let r=this._content;if(r)for(;r.hasChildNodes();)r.firstChild&&r.removeChild(r.firstChild);else r=this._content=Y("div","mapboxgl-popup-content",this._container||void 0);if(r.appendChild(p),this.options.closeButton){const c=this._closeButton=Y("button","mapboxgl-popup-close-button",r);c.type="button",c.setAttribute("aria-label","Close popup"),c.setAttribute("aria-hidden","true"),c.innerHTML="×",c.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(p){return this._classList.add(p),this._updateClassList(),this}removeClassName(p){return this._classList.delete(p),this._updateClassList(),this}setOffset(p){return this.options.offset=p,this._update(),this}toggleClassName(p){let r;return this._classList.delete(p)?r=!1:(this._classList.add(p),r=!0),this._updateClassList(),r}_onMouseEvent(p){this._update(p.point)}_getAnchor(p){if(this.options.anchor)return this.options.anchor;const r=this._map,c=this._container,m=this._pos;if(!r||!c||!m)return"bottom";const x=c.offsetWidth,M=c.offsetHeight,I=m.x<x/2,L=m.x>r.transform.width-x/2;if(m.y+p<M)return I?"top-left":L?"top-right":"top";if(m.y>r.transform.height-M){if(I)return"bottom-left";if(L)return"bottom-right"}return I?"left":L?"right":"bottom"}_updateClassList(){const p=this._container;if(!p)return;const r=[...this._classList];r.push("mapboxgl-popup"),this._anchor&&r.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&r.push("mapboxgl-popup-track-pointer"),p.className=r.join(" ")}_update(p){const r=this._map,c=this._content;if(!r||!this._lngLat&&!this._trackPointer||!c)return;let m=this._container;if(m||(m=this._container=Y("div","mapboxgl-popup",r.getContainer()),this._tip=Y("div","mapboxgl-popup-tip",m),m.appendChild(c)),this.options.maxWidth&&m.style.maxWidth!==this.options.maxWidth&&(m.style.maxWidth=this.options.maxWidth),r.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Sa(this._lngLat,this._pos,r.transform)),!this._trackPointer||p){const x=this._pos=this._trackPointer&&p instanceof s.P?p:r.project(this._lngLat),M=vM(this.options.offset),I=this._anchor=this._getAnchor(M.y),L=vM(this.options.offset,I),R=x.add(L).round();r._requestDomTask(()=>{this._container&&I&&(this._container.style.transform=`${ys[I]} translate(${R.x}px,${R.y}px)`)})}if(!this._marker&&r._showingGlobe()){const x=s.dz(r.transform,this._lngLat)?0:1;this._setOpacity(x)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const p=this._container.querySelector(NE);p&&p.focus()}_onClose(){this.remove()}_setOpacity(p){this._container&&(this._container.style.opacity=`${p}`),this._content&&(this._content.style.pointerEvents=p?"auto":"none")}},Marker:Ea,Style:ms,LngLat:s.bK,LngLatBounds:s.as,Point:s.P,MercatorCoordinate:s.a5,FreeCameraOptions:El,Evented:s.E,config:s.e,prewarm:s.dE,clearPrewarmedResources:s.dF,get accessToken(){return s.e.ACCESS_TOKEN},set accessToken(p){s.e.ACCESS_TOKEN=p},get baseApiUrl(){return s.e.API_URL},set baseApiUrl(p){s.e.API_URL=p},get workerCount(){return s.dG.workerCount},set workerCount(p){s.dG.workerCount=p},get maxParallelImageRequests(){return s.e.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(p){s.e.MAX_PARALLEL_IMAGE_REQUESTS=p},clearStorage(p){s.dH(p)},get workerUrl(){return s.dI.workerUrl},set workerUrl(p){s.dI.workerUrl=p},get workerClass(){return s.dI.workerClass},set workerClass(p){s.dI.workerClass=p},get workerParams(){return s.dI.workerParams},set workerParams(p){s.dI.workerParams=p},get dracoUrl(){return s.dJ()},set dracoUrl(p){s.dK(p)},get meshoptUrl(){return s.dL()},set meshoptUrl(p){s.dM(p)},setNow:s.q.setNow,restoreNow:s.q.restoreNow}});var g=l;return g})})(NO);var Tae=NO.exports;const LO=Ud(Tae),a_e="",l_e="",c_e="";function So(e){return e==null}const Sae=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{opacity:.12,d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",fill:"white",style:{fill:"white",fillOpacity:1}}),Re.createElement("path",{d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Eae=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{opacity:.12,d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",fill:"#6B7280",style:{fill:"#6B7280",fill:"color(display-p3 0.4196 0.4471 0.5020)",fillOpacity:1}}),Re.createElement("path",{d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",stroke:"#6B7280",style:{stroke:"#6B7280",stroke:"color(display-p3 0.4196 0.4471 0.5020)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Dae=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{opacity:.12,d:"M12 12L21 7V16.0586C21 16.4012 21 16.5725 20.9495 16.7253C20.9049 16.8605 20.8318 16.9846 20.7354 17.0893C20.6263 17.2076 20.4766 17.2908 20.177 17.4572L12.777 21.5683C12.4934 21.7259 12.3516 21.8047 12.2015 21.8355C12.0685 21.8629 11.9315 21.8629 11.7986 21.8355C11.6484 21.8047 11.5066 21.7259 11.223 21.5683L3.82297 17.4572C3.52345 17.2908 3.37369 17.2076 3.26463 17.0893C3.16816 16.9846 3.09515 16.8605 3.05048 16.7253C3 16.5725 3 16.4012 3 16.0586V7L12 12Z",fill:"white",style:{fill:"white",fillOpacity:1}}),Re.createElement("path",{d:"M20.5 7.27783L12 12.0001M12 12.0001L3.49997 7.27783M12 12.0001V21.5001M21 16.0586V7.94153C21 7.59889 21 7.42757 20.9495 7.27477C20.9049 7.13959 20.8318 7.01551 20.7354 6.91082C20.6263 6.79248 20.4766 6.70928 20.177 6.54288L12.777 2.43177C12.4934 2.27421 12.3516 2.19543 12.2015 2.16454C12.0685 2.13721 11.9315 2.13721 11.7986 2.16454C11.6484 2.19543 11.5066 2.27421 11.223 2.43177L3.82297 6.54288C3.52345 6.70928 3.37369 6.79248 3.26463 6.91082C3.16816 7.01551 3.09515 7.13959 3.05048 7.27477C3 7.42757 3 7.59889 3 7.94153V16.0586C3 16.4013 3 16.5726 3.05048 16.7254C3.09515 16.8606 3.16816 16.9847 3.26463 17.0893C3.37369 17.2077 3.52345 17.2909 3.82297 17.4573L11.223 21.5684C11.5066 21.726 11.6484 21.8047 11.7986 21.8356C11.9315 21.863 12.0685 21.863 12.2015 21.8356C12.3516 21.8047 12.4934 21.726 12.777 21.5684L20.177 17.4573C20.4766 17.2909 20.6263 17.2077 20.7354 17.0893C20.8318 16.9847 20.9049 16.8606 20.9495 16.7254C21 16.5726 21 16.4013 21 16.0586Z",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Cae=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{opacity:.12,d:"M12 12L21 7V16.0586C21 16.4012 21 16.5725 20.9495 16.7253C20.9049 16.8605 20.8318 16.9846 20.7354 17.0893C20.6263 17.2076 20.4766 17.2908 20.177 17.4572L12.777 21.5683C12.4934 21.7259 12.3516 21.8047 12.2015 21.8355C12.0685 21.8629 11.9315 21.8629 11.7986 21.8355C11.6484 21.8047 11.5066 21.7259 11.223 21.5683L3.82297 17.4572C3.52345 17.2908 3.37369 17.2076 3.26463 17.0893C3.16816 16.9846 3.09515 16.8605 3.05048 16.7253C3 16.5725 3 16.4012 3 16.0586V7L12 12Z",fill:"#6B7280",style:{fill:"#6B7280",fill:"color(display-p3 0.4196 0.4471 0.5020)",fillOpacity:1}}),Re.createElement("path",{d:"M20.5 7.27783L12 12.0001M12 12.0001L3.49997 7.27783M12 12.0001V21.5001M21 16.0586V7.94153C21 7.59889 21 7.42757 20.9495 7.27477C20.9049 7.13959 20.8318 7.01551 20.7354 6.91082C20.6263 6.79248 20.4766 6.70928 20.177 6.54288L12.777 2.43177C12.4934 2.27421 12.3516 2.19543 12.2015 2.16454C12.0685 2.13721 11.9315 2.13721 11.7986 2.16454C11.6484 2.19543 11.5066 2.27421 11.223 2.43177L3.82297 6.54288C3.52345 6.70928 3.37369 6.79248 3.26463 6.91082C3.16816 7.01551 3.09515 7.13959 3.05048 7.27477C3 7.42757 3 7.59889 3 7.94153V16.0586C3 16.4013 3 16.5726 3.05048 16.7254C3.09515 16.8606 3.16816 16.9847 3.26463 17.0893C3.37369 17.2077 3.52345 17.2909 3.82297 17.4573L11.223 21.5684C11.5066 21.726 11.6484 21.8047 11.7986 21.8356C11.9315 21.863 12.0685 21.863 12.2015 21.8356C12.3516 21.8047 12.4934 21.726 12.777 21.5684L20.177 17.4573C20.4766 17.2909 20.6263 17.2077 20.7354 17.0893C20.8318 16.9847 20.9049 16.8606 20.9495 16.7254C21 16.5726 21 16.4013 21 16.0586Z",stroke:"#6B7280",style:{stroke:"#6B7280",stroke:"color(display-p3 0.4196 0.4471 0.5020)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Gs=Object.freeze({initial3D:"initial3D",clicked3D:"clicked3D",clicked2D:"clicked2D"});zO.propTypes={mapView:Ri.object,pitch:Ri.number,solution:Ri.object,reset:Ri.number,activeColor:Ri.string};function zO({mapView:e,pitch:t,reset:n,activeColor:o="#005655"}){const[l,d]=Re.useState(Gs.initial3D);return Re.useEffect(()=>{n&&d(Gs.initial3D)},[n]),Re.useEffect(()=>{e&&new Promise(s=>{e.isReady?s():e.on("ready",()=>{s()})}).then(()=>{switch(l){case Gs.clicked2D:e.tilt(0,2e3),e.hideFeatures([e.FeatureType.MODEL3D,e.FeatureType.WALLS3D,e.FeatureType.EXTRUSION3D,e.FeatureType.EXTRUDEDBUILDINGS]);break;case Gs.initial3D:e.tilt(So(t)?45:t,2e3),e.hideFeatures([e.FeatureType.MODEL2D,e.FeatureType.WALLS2D]);break;case Gs.clicked3D:e.tilt(45,2e3),e.hideFeatures([e.FeatureType.MODEL2D,e.FeatureType.WALLS2D]);break}})},[l,e]),dt.jsxs("div",{className:"view-mode-switch","data-sentry-component":"ViewModeSwitch","data-sentry-source-file":"ViewModeSwitch.jsx",children:[dt.jsx("button",{className:"view-mode-switch__button",onClick:()=>d(Gs.clicked2D),style:{backgroundColor:l===Gs.clicked2D?o:"white"},children:l===Gs.clicked2D?dt.jsx(Sae,{}):dt.jsx(Eae,{})}),dt.jsx("button",{className:"view-mode-switch__button",onClick:()=>d(Gs.clicked3D),style:{backgroundColor:[Gs.initial3D,Gs.clicked3D].includes(l)?o:"white"},children:[Gs.initial3D,Gs.clicked3D].includes(l)?dt.jsx(Dae,{}):dt.jsx(Cae,{})})]})}const Aae=e=>{const[t,n]=Re.useState(!1);return Re.useEffect(()=>{const o=window.matchMedia(e);o.matches!==t&&n(o.matches);const l=()=>n(o.matches);return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[t,e]),t},kO=()=>Aae("(min-width: 992px)");OO.propTypes={accessToken:Ri.string.isRequired,onInitialized:Ri.func.isRequired,onPositionControl:Ri.func.isRequired,center:Ri.object,zoom:Ri.number,bounds:Ri.object,bearing:Ri.number,pitch:Ri.number,resetViewMode:Ri.number,mapsIndoorsInstance:Ri.object,viewModeSwitchVisible:Ri.bool,mapOptions:Ri.object};function OO({accessToken:e,onInitialized:t,onPositionControl:n,center:o,zoom:l,bounds:d,bearing:g,pitch:s,resetViewMode:v,mapsIndoorsInstance:E,viewModeSwitchVisible:z,mapOptions:O}){const[j,F]=Re.useState(),[$,Y]=Re.useState(!1),[ie,K]=Re.useState(!1),[J,te]=Re.useState(!1),oe=kO();return Re.useEffect(()=>{j&&(So(d)?(So(o)||j.getMap().setCenter(o),So(l)||j.getMap().setZoom(l),So(g)||j.getMap().setBearing(g),So(s)||j.getMap().setPitch(s)):j.getMap().fitBounds([d.west,d.south,d.east,d.north],{pitch:s||0,bearing:g||0,animate:!1,padding:O==null?void 0:O.fitBoundsPadding}))},[j,o,l,g,s,d,O]),Re.useEffect(()=>{if(E&&j&&!ie){const pe=document.createElement("mi-my-position");pe.mapsindoors=E,j.getMap().addControl({onAdd:()=>pe,onRemove:function(){}},"top-right"),K(!0),n(pe)}if(E&&j&&!J&&oe&&(j.getMap().addControl(new LO.NavigationControl({showCompass:!1}),"top-right"),te(!0)),E&&j&&!$){const pe=document.createElement("mi-floor-selector");pe.mapsindoors=E,O!=null&&O.brandingColor&&(pe.primaryColor=O.brandingColor),j.getMap().addControl({onAdd:()=>pe,onRemove:function(){pe.parentNode.removeChild(pe)}},"top-right"),Y(!0)}},[E,j,$,ie,J]),Re.useEffect(()=>{window.mapboxgl=LO;const pe={accessToken:e,element:document.getElementById("map"),center:o??{lat:0,lng:0},zoom:l??15,bounds:d?[d.west,d.south,d.east,d.north]:void 0,bearing:g??0,pitch:s??0,...O};O!=null&&O.miTransitionLevel&&!isNaN(parseInt(O==null?void 0:O.miTransitionLevel))&&(pe.mapsIndoorsTransitionLevel=parseInt(O.miTransitionLevel));const me=new window.mapsindoors.mapView.MapboxV3View(pe);F(me),t(me)},[]),dt.jsx("div",{className:"mapsindoors-map mapbox-map-container",id:"map","data-sentry-component":"MapboxMap","data-sentry-source-file":"MapboxMap.jsx",children:z&&dt.jsx(zO,{reset:v,mapView:j,pitch:s,activeColor:O==null?void 0:O.brandingColor})})}var Nae=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,l,d;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(l=o;l--!==0;)if(!e(t[l],n[l]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(d=Object.keys(t),o=d.length,o!==Object.keys(n).length)return!1;for(l=o;l--!==0;)if(!Object.prototype.hasOwnProperty.call(n,d[l]))return!1;for(l=o;l--!==0;){var g=d[l];if(!e(t[g],n[g]))return!1}return!0}return t!==t&&n!==n};const jO="__googleMapsScriptId";var np;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(np||(np={}));let Lae=class km{constructor({apiKey:t,authReferrerPolicy:n,channel:o,client:l,id:d=jO,language:g,libraries:s=[],mapIds:v,nonce:E,region:z,retries:O=3,url:j="https://maps.googleapis.com/maps/api/js",version:F}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=o,this.client=l,this.id=d||jO,this.language=g,this.libraries=s,this.mapIds=v,this.nonce=E,this.region=z,this.retries=O,this.url=j,this.version=F,km.instance){if(!Nae(this.options,km.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(km.instance.options)}`);return km.instance}km.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?np.FAILURE:this.done?np.SUCCESS:this.loading?np.LOADING:np.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(o=>{o?n(o.error):t(window.google)})})}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const t=this.createUrl(),n=document.createElement("script");n.id=this.id,n.type="text/javascript",n.src=t,n.onerror=this.loadErrorCallback.bind(this),n.defer=!0,n.async=!0,this.nonce&&(n.nonce=this.nonce),document.head.appendChild(n)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}};const u_e="";RO.propTypes={apiKey:Ri.string.isRequired,onInitialized:Ri.func.isRequired,onPositionControl:Ri.func.isRequired,center:Ri.object,zoom:Ri.number,bounds:Ri.object,heading:Ri.number,tilt:Ri.number,mapsIndoorsInstance:Ri.object,mapOptions:Ri.object};function RO({apiKey:e,onInitialized:t,onPositionControl:n,center:o,zoom:l,bounds:d,heading:g,tilt:s,mapsIndoorsInstance:v,mapOptions:E}){const[z,O]=Re.useState(),[j,F]=Re.useState(),[$,Y]=Re.useState(!1),[ie,K]=Re.useState(!1),[J,te]=Re.useState(!1),oe=kO();return Re.useEffect(()=>{j&&(So(d)||v.getMapView().fitBounds(d,E==null?void 0:E.fitBoundsPadding),!So(o)&&So(d)&&j.getMap().setCenter(o),!So(l)&&So(d)&&j.getMap().setZoom(l),So(g)||j.getMap().setHeading(g),So(s)||j.getMap().setTilt(s))},[j,o,l,g,s,d,E]),Re.useEffect(()=>{if(v&&j&&z&&!ie){const pe=document.createElement("mi-my-position");pe.mapsindoors=v,j.getMap().controls[z.maps.ControlPosition.RIGHT_TOP].push(pe),K(!0),n(pe)}if(v&&j&&z&&!$){const pe=document.createElement("mi-floor-selector");pe.mapsindoors=v,E!=null&&E.brandingColor&&(pe.primaryColor=E.brandingColor),j.getMap().controls[z.maps.ControlPosition.RIGHT_TOP].push(pe),Y(!0)}v&&j&&z&&!J&&oe&&(j.getMap().setOptions({zoomControl:!0,zoomControlOptions:{style:z.maps.ZoomControlStyle.DEFAULT,position:z.maps.ControlPosition.RIGHT_TOP}}),te(!0))},[v,j,z,$,ie]),Re.useEffect(()=>{new Lae({apiKey:e,version:"quarterly",libraries:["geometry","places"]}).load().then(me=>{O(me);const he={element:document.getElementById("map"),disableDefaultUI:!0,center:o??{lat:0,lng:0},zoom:l??21,heading:g??0,tilt:s??0,...E},De=new window.mapsindoors.mapView.GoogleMapsView(he);F(De),t(De)})},[]),dt.jsx("div",{className:"mapsindoors-map google-maps-map-container",id:"map","data-sentry-component":"GoogleMapsMap","data-sentry-source-file":"GoogleMapsMap.jsx"})}const h_e="",ip={Google:"google",Mapbox:"mapbox"};PO.propTypes={apiKey:Ri.string.isRequired,gmApiKey:Ri.string,mapboxAccessToken:Ri.string,center:Ri.object,zoom:Ri.number,bounds:Ri.object,bearing:Ri.number,pitch:Ri.number,resetUICounter:Ri.number,mapOptions:Ri.object,onInitialized:Ri.func};function PO({apiKey:e,gmApiKey:t,mapboxAccessToken:n,center:o,zoom:l,bounds:d,bearing:g,pitch:s,resetUICounter:v,mapOptions:E,onInitialized:z}){const[O,j]=Re.useState(),[F,$]=Re.useState(),[Y,ie]=Re.useState(),[K,J]=Re.useState(),[te,oe]=Re.useState();Re.useEffect(()=>{window.customElements.get("mi-floor-selector")||uO()},[]),Re.useEffect(()=>{e&&(window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),O===ip.Mapbox&&window.mapsindoors.services.SolutionsService.getSolution().then(me=>{oe(me)}))},[e,O]);const pe=me=>{const he=new window.mapsindoors.MapsIndoors({mapView:me});he.once("building_changed",De=>{const qe=he.getVenue();De&&qe&&De.venueId!==qe.id&&he.setVenue(De.venueId)}),he.on("mouseenter",()=>{var qe;const De=he.getHoveredLocation();((qe=De==null?void 0:De.properties.locationSettings)==null?void 0:qe.selectable)===!1&&he.unhoverLocation()}),he.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),$(he)};return Re.useEffect(()=>{typeof z=="function"&&F&&Y&&typeof K=="boolean"&&z(F,Y,K)},[F,Y,K]),Re.useEffect(()=>{te&&O===ip.Mapbox&&["mapbox","3dwalls","floorplan"].every(me=>te.modules.map(he=>he.toLowerCase()).includes(me))?J(!0):J(!1)},[te,O]),Re.useEffect(()=>{n?j(ip.Mapbox):t&&j(ip.Google)},[t,n]),dt.jsxs(dt.Fragment,{children:[O===ip.Google&&dt.jsx(RO,{mapsIndoorsInstance:F,apiKey:t,onInitialized:pe,onPositionControl:ie,center:o,zoom:l,mapOptions:E,heading:g,tilt:s,bounds:d}),O===ip.Mapbox&&dt.jsx(OO,{mapsIndoorsInstance:F,accessToken:n,onInitialized:pe,onPositionControl:ie,center:o,zoom:l,mapOptions:E,bearing:g,pitch:s,bounds:d,resetViewMode:v,viewModeSwitchVisible:K})]})}const Bo={Google:"google",Mapbox:"mapbox"},Zs=Jn({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),zae=e=>{const t=rn(Zs),n=Re.useRef(),[o,l]=Re.useState([]);Re.useEffect(()=>{(async()=>{if(t&&e){for(const s of o)n.current.disableLiveData(s);n.current=new window.mapsindoors.LiveDataManager(t);const g=await n.current.LiveDataInfo.activeDomainTypes();for(const s of g)await n.current.enableLiveData(s);l(g)}})()},[e,t])},Ex=Jn({key:"userPosition",default:null}),FI=Jn({key:"directionsService",default:null}),VI=Jn({key:"mapType",default:void 0}),$I=Jn({key:"apiKey",default:null}),HI=Jn({key:"gmApiKey",default:null}),Dx=Jn({key:"mapboxAccessToken",default:null}),Cx=Jn({key:"filteredLocations",default:void 0}),Ax=Jn({key:"filteredLocationsByExternalID",default:void 0}),UO=Jn({key:"tileStyle",default:null}),BO=Jn({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),QI=Jn({key:"bearing",default:0}),Nx=Jn({key:"pitch",default:null}),YI=Jn({key:"solution",default:null,dangerouslyAllowMutability:!0}),GI=Jn({key:"notificationMessage",default:null});function ZI(){return new Promise(e=>{const t=document.querySelector(".modal--open"),n=document.querySelector(".mapsindoors-map");if(t)e(n.offsetHeight-(t==null?void 0:t.offsetTop));else{const o=new MutationObserver(()=>{const l=document.querySelector(".modal--open");l&&(o.disconnect(),e(n.offsetHeight-(l==null?void 0:l.offsetTop)))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const rp=Jn({key:"categories",default:[]}),FO=Jn({key:"kioskOriginLocationId",default:void 0}),Lx=Jn({key:"locationId",default:void 0}),VO=Jn({key:"startZoomLevel",default:null}),op=Jn({key:"currentVenueName",default:null}),m1=Jn({key:"venues",default:[]}),WI=Jn({key:"venueWasSelected",default:!1});function $O(){return new Promise(e=>{const t=document.querySelector(".sheet--active"),n=document.querySelector(".mapsindoors-map");if(t)e(n.offsetHeight-t.offsetTop);else{const o=new MutationObserver(()=>{const l=document.querySelector(".sheet--active");l&&(o.disconnect(),e(n.offsetHeight-l.offsetTop))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function qI(){return new Promise(e=>{const t=document.querySelector(".modal--open");if(t)e((t==null?void 0:t.offsetWidth)+(t==null?void 0:t.offsetLeft)*2);else{const n=new MutationObserver(()=>{const o=document.querySelector(".modal--open");o&&(n.disconnect(),e((o==null?void 0:o.offsetWidth)+(o==null?void 0:o.offsetLeft)*2))});n.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const KI=Jn({key:"isMapReady",default:!1}),HO=Jn({key:"timeout",default:void 0});function QO(){const[e,t]=Re.useState(!1),n=rn(KI),o=rn(HO);return Re.useEffect(()=>{if(!n||!o)return;let l;const d=s=>{t(!1),window.clearTimeout(l),l=window.setTimeout(g,o*1e3)},g=()=>{t(!0)};return l=window.setTimeout(g,o*1e3),window.addEventListener("mousemove",d),window.addEventListener("mousedown",d),window.addEventListener("resize",d),window.addEventListener("keydown",d),window.addEventListener("touchstart",d),window.addEventListener("wheel",d),()=>{window.removeEventListener("mousemove",d),window.removeEventListener("mousedown",d),window.removeEventListener("resize",d),window.removeEventListener("keydown",d),window.removeEventListener("touchstart",d),window.removeEventListener("wheel",d),window.clearTimeout(l)}},[o,n]),e}const YO=e=>{const[t,n]=Re.useState(window.matchMedia(e).matches);return Re.useEffect(()=>{const o=window.matchMedia(e);o.matches!==t&&n(o.matches);const l=()=>n(o.matches);return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[t,e]),t},$h=()=>YO("(min-width: 992px)"),GO=Jn({key:"mapboxViewMode",default:null}),XI=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),kae=DI({key:"currentPitch",get:({get:e})=>{const t=e(Nx),n=e(GO);let o;switch(n){case XI.initial3D:o=t??45;break;case XI.clicked3D:o=45;break;case XI.clicked2D:o=0;break;default:o=t}return o}}),Oae=()=>{const[e,t]=Re.useState(!1),[n,o]=Re.useState(!1),l=$h(),d=QO(),g=rn(QI),s=rn(rp),v=rn(FO),E=rn(Lx),z=rn(Zs),O=rn(Nx),j=rn(VO),F=rn(op),$=rn(m1),Y=rn(kae),ie=rn(WI),[K,J]=Re.useState(!1);Re.useEffect(()=>{d&&te()},[d]),Re.useEffect(()=>{te()},[z,F,E,v,O,g,j,s]);function te(){const pe=$.find(me=>me.name.toLowerCase()===F.toLowerCase());z&&pe&&(t(!0),v&&l?window.mapsindoors.services.LocationsService.getLocation(v).then(me=>{if(me){const he=me.properties.floor;z.setFloor(he),oe(me),ZI().then(De=>{o(me.geometry),zx(me.geometry,z,De,0,j,Y,g)})}}):E&&!ie?window.mapsindoors.services.LocationsService.getLocation(E).then(me=>{if(me){const he=me.properties.floor;z.setFloor(he),l?qI().then(De=>{o(me.geometry),zx(me.geometry,z,0,De,j,Y,g)}):$O().then(De=>{o(me.geometry),zx(me.geometry,z,De,0,j,Y,g)})}}):pe&&(o(pe.geometry),zx(pe.geometry,z,0,0,j,Y,g,n)))}function oe(pe){if(K)return;const me=z.getDisplayRule(pe);me.visible=!0,me.iconSize={width:me.iconSize.width*2,height:me.iconSize.height*2},me.iconVisible=!0,me.zoomFrom=0,me.zoomTo=999,me.clickable=!1,z.setDisplayRule(pe.id,me),J(!0)}return[e,n]};function zx(e,t,n,o,l,d,g,s){t.getMapView().tilt(d||0),t.getMapView().rotate(g||0),t.goTo({type:"Feature",geometry:e,properties:{}},{maxZoom:l??22,padding:{top:0,right:0,bottom:n,left:o}}).then(()=>{l&&s!==!1&&t.setZoom(l)})}const ZO=Jn({key:"hideNonMatches",default:!1}),WO=Jn({key:"miTransitionLevel",default:void 0});let JI;function jae({onLocationClick:e,onMapPositionKnown:t,useMapProviderModule:n,onMapPositionInvestigating:o,onViewModeSwitchKnown:l,resetCount:d}){const g=rn($I),s=rn(HI),v=rn(Dx),[E,z]=Dn(VI),[O,j]=Dn(Zs),[,F]=Dn(Ex),[,$]=Dn(FI),Y=rn(Cx),ie=rn(Ax),K=rn(UO),J=rn(QI),te=rn(Nx),[,oe]=Dn(BO),pe=rn(YI),[,me]=Dn(GI),he=rn(ZO),[De,qe]=Re.useState({}),Te=rn(WO);zae(g);const[ze,ht]=Oae();Re.useEffect(()=>{if(!pe||s===null&&v===null)return;let Fe;const ot=pe.modules.map(Je=>Je.toLowerCase()).includes("mapbox");n?ot?v&&(Fe=Bo.Mapbox):s&&(Fe=Bo.Google):v?Fe=Bo.Mapbox:Fe=Bo.Google,Fe?z(Fe):(me({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),z(void 0))},[s,v,pe]),Re.useEffect(()=>{ze&&o()},[ze]),Re.useEffect(()=>{ht&&t()},[ht]),Re.useEffect(()=>{if(!O)return;const Fe=Y||ie;if(!Fe)return;const ot=Fe.map(Je=>Je.id);he||!O.highlight?O.filter(ot):O.highlight(ot)},[Y,ie,O,he]),Re.useEffect(()=>{O&&(isNaN(parseInt(te))||O.getMapView().tilt(parseInt(te)),isNaN(parseInt(J))||O.getMapView().rotate(parseInt(J)))},[J,te,O]);const mt=Fe=>{vt(Fe)},vt=Fe=>{if(Fe&&JI){let ot=Fe.getTileURL();if(ot){ot=Fe.getTileURL().replace("default",JI);const Je=ot==null?void 0:ot.replace("{floor}",Fe.getFloor());Fe.getMapView().setMapsIndoorsTileURL(Je)}}},Qe=(Fe,ot,Je)=>{Fe.on("mouseenter",()=>{var ee;const ye=Fe.getHoveredLocation();((ee=ye==null?void 0:ye.properties.locationSettings)==null?void 0:ee.selectable)===!1&&Fe.unhoverLocation()}),Fe.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),Fe.on("click",ye=>e(ye)),Fe.once("building_changed",()=>mt(Fe)),Fe.on("floor_changed",()=>vt(Fe)),j(Fe),window.mapsIndoorsInstance=Fe;const He=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(He);let Ae;E===Bo.Google?Ae=new window.mapsindoors.directions.GoogleMapsProvider:E===Bo.Mapbox&&(Ae=new window.mapsindoors.directions.MapboxProvider(v));const je=new window.mapsindoors.services.DirectionsService(Ae);$(je),j(Fe),ot.nodeName==="MI-MY-POSITION"?ot.addEventListener("position_received",ye=>{ye.detail.accurate===!0&&F(ye.detail.position)}):ot.on("position_received",ye=>{ye.accurate===!0&&F(ye.position)}),oe(ot),l(Je)};return Re.useEffect(()=>{JI=K||"default",vt(O)},[K]),Re.useEffect(()=>{isNaN(parseInt(Te))||qe({miTransitionLevel:Te})},[Te]),dt.jsx(dt.Fragment,{children:g&&dt.jsx(PO,{apiKey:g,mapboxAccessToken:E===Bo.Mapbox?v:void 0,gmApiKey:E===Bo.Google?s:void 0,onInitialized:Qe,resetUICounter:d,mapOptions:De})})}const uc=Jn({key:"primaryColor",default:"#005655"}),d_e="",eT=Jn({key:"logo",default:void 0});function Rae(){const e=rn(uc),t=rn(eT);return dt.jsx("div",{className:"splash-screen","data-sentry-component":"SplashScreen","data-sentry-source-file":"SplashScreen.jsx",children:dt.jsxs("div",{className:"splash-screen__container",children:[dt.jsx("img",{className:"splash-screen__logo",src:t,alt:"logo"}),dt.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}const Pae=sK(Rae,{name:"SplashScreen"});function qO(e,t){if(e==null)return{};var n={},o=Object.keys(e),l,d;for(d=0;d<o.length;d++)l=o[d],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function tT(e,t){return tT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,l){return o.__proto__=l,o},tT(e,t)}function KO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tT(e,t)}function Uae(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Bae(e,t){e.classList?e.classList.add(t):Uae(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function XO(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Fae(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=XO(e.className,t):e.setAttribute("class",XO(e.className&&e.className.baseVal||"",t))}const JO={disabled:!1},e7=Yi.createContext(null);var t7=function(t){return t.scrollTop},g1="unmounted",Hh="exited",Qh="entering",sp="entered",nT="exiting",hc=function(e){KO(t,e);function t(o,l){var d;d=e.call(this,o,l)||this;var g=l,s=g&&!g.isMounting?o.enter:o.appear,v;return d.appearStatus=null,o.in?s?(v=Hh,d.appearStatus=Qh):v=sp:o.unmountOnExit||o.mountOnEnter?v=g1:v=Hh,d.state={status:v},d.nextCallback=null,d}t.getDerivedStateFromProps=function(l,d){var g=l.in;return g&&d.status===g1?{status:Hh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(l){var d=null;if(l!==this.props){var g=this.state.status;this.props.in?g!==Qh&&g!==sp&&(d=Qh):(g===Qh||g===sp)&&(d=nT)}this.updateStatus(!1,d)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var l=this.props.timeout,d,g,s;return d=g=s=l,l!=null&&typeof l!="number"&&(d=l.exit,g=l.enter,s=l.appear!==void 0?l.appear:g),{exit:d,enter:g,appear:s}},n.updateStatus=function(l,d){if(l===void 0&&(l=!1),d!==null)if(this.cancelNextCallback(),d===Qh){if(this.props.unmountOnExit||this.props.mountOnEnter){var g=this.props.nodeRef?this.props.nodeRef.current:Wg.findDOMNode(this);g&&t7(g)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Hh&&this.setState({status:g1})},n.performEnter=function(l){var d=this,g=this.props.enter,s=this.context?this.context.isMounting:l,v=this.props.nodeRef?[s]:[Wg.findDOMNode(this),s],E=v[0],z=v[1],O=this.getTimeouts(),j=s?O.appear:O.enter;if(!l&&!g||JO.disabled){this.safeSetState({status:sp},function(){d.props.onEntered(E)});return}this.props.onEnter(E,z),this.safeSetState({status:Qh},function(){d.props.onEntering(E,z),d.onTransitionEnd(j,function(){d.safeSetState({status:sp},function(){d.props.onEntered(E,z)})})})},n.performExit=function(){var l=this,d=this.props.exit,g=this.getTimeouts(),s=this.props.nodeRef?void 0:Wg.findDOMNode(this);if(!d||JO.disabled){this.safeSetState({status:Hh},function(){l.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:nT},function(){l.props.onExiting(s),l.onTransitionEnd(g.exit,function(){l.safeSetState({status:Hh},function(){l.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(l,d){d=this.setNextCallback(d),this.setState(l,d)},n.setNextCallback=function(l){var d=this,g=!0;return this.nextCallback=function(s){g&&(g=!1,d.nextCallback=null,l(s))},this.nextCallback.cancel=function(){g=!1},this.nextCallback},n.onTransitionEnd=function(l,d){this.setNextCallback(d);var g=this.props.nodeRef?this.props.nodeRef.current:Wg.findDOMNode(this),s=l==null&&!this.props.addEndListener;if(!g||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[g,this.nextCallback],E=v[0],z=v[1];this.props.addEndListener(E,z)}l!=null&&setTimeout(this.nextCallback,l)},n.render=function(){var l=this.state.status;if(l===g1)return null;var d=this.props,g=d.children;d.in,d.mountOnEnter,d.unmountOnExit,d.appear,d.enter,d.exit,d.timeout,d.addEndListener,d.onEnter,d.onEntering,d.onEntered,d.onExit,d.onExiting,d.onExited,d.nodeRef;var s=qO(d,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Yi.createElement(e7.Provider,{value:null},typeof g=="function"?g(l,s):Yi.cloneElement(Yi.Children.only(g),s))},t}(Yi.Component);hc.contextType=e7,hc.propTypes={};function ap(){}hc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ap,onEntering:ap,onEntered:ap,onExit:ap,onExiting:ap,onExited:ap},hc.UNMOUNTED=g1,hc.EXITED=Hh,hc.ENTERING=Qh,hc.ENTERED=sp,hc.EXITING=nT;const Vae=hc;var $ae=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return Bae(t,o)})},iT=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return Fae(t,o)})},rT=function(e){KO(t,e);function t(){for(var o,l=arguments.length,d=new Array(l),g=0;g<l;g++)d[g]=arguments[g];return o=e.call.apply(e,[this].concat(d))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(s,v){var E=o.resolveArguments(s,v),z=E[0],O=E[1];o.removeClasses(z,"exit"),o.addClass(z,O?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(s,v)},o.onEntering=function(s,v){var E=o.resolveArguments(s,v),z=E[0],O=E[1],j=O?"appear":"enter";o.addClass(z,j,"active"),o.props.onEntering&&o.props.onEntering(s,v)},o.onEntered=function(s,v){var E=o.resolveArguments(s,v),z=E[0],O=E[1],j=O?"appear":"enter";o.removeClasses(z,j),o.addClass(z,j,"done"),o.props.onEntered&&o.props.onEntered(s,v)},o.onExit=function(s){var v=o.resolveArguments(s),E=v[0];o.removeClasses(E,"appear"),o.removeClasses(E,"enter"),o.addClass(E,"exit","base"),o.props.onExit&&o.props.onExit(s)},o.onExiting=function(s){var v=o.resolveArguments(s),E=v[0];o.addClass(E,"exit","active"),o.props.onExiting&&o.props.onExiting(s)},o.onExited=function(s){var v=o.resolveArguments(s),E=v[0];o.removeClasses(E,"exit"),o.addClass(E,"exit","done"),o.props.onExited&&o.props.onExited(s)},o.resolveArguments=function(s,v){return o.props.nodeRef?[o.props.nodeRef.current,s]:[s,v]},o.getClassNames=function(s){var v=o.props.classNames,E=typeof v=="string",z=E&&v?v+"-":"",O=E?""+z+s:v[s],j=E?O+"-active":v[s+"Active"],F=E?O+"-done":v[s+"Done"];return{baseClassName:O,activeClassName:j,doneClassName:F}},o}var n=t.prototype;return n.addClass=function(l,d,g){var s=this.getClassNames(d)[g+"ClassName"],v=this.getClassNames("enter"),E=v.doneClassName;d==="appear"&&g==="done"&&E&&(s+=" "+E),g==="active"&&l&&t7(l),s&&(this.appliedClasses[d][g]=s,$ae(l,s))},n.removeClasses=function(l,d){var g=this.appliedClasses[d],s=g.base,v=g.active,E=g.done;this.appliedClasses[d]={},s&&iT(l,s),v&&iT(l,v),E&&iT(l,E)},n.render=function(){var l=this.props;l.classNames;var d=qO(l,["classNames"]);return Yi.createElement(Vae,PI({},d,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Yi.Component);rT.defaultProps={classNames:""},rT.propTypes={};const Hae=rT,f_e="",Qae=e=>Re.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.66667C0 0.746192 0.746193 0 1.66667 0H11.6667C12.5872 0 13.3333 0.746193 13.3333 1.66667V20H8.33333V17.5C8.33333 16.5795 7.58714 15.8333 6.66667 15.8333C5.74619 15.8333 5 16.5795 5 17.5V20H0V1.66667ZM14.5833 8.33333H18.3333C19.2538 8.33333 20 9.0795 20 10V20H14.5833V8.33333ZM3.33333 2.5C2.8731 2.5 2.5 2.8731 2.5 3.33333V5.41667C2.5 5.8769 2.8731 6.25 3.33333 6.25H4.58333C5.04357 6.25 5.41667 5.8769 5.41667 5.41667V3.33333C5.41667 2.8731 5.04357 2.5 4.58333 2.5H3.33333ZM7.91667 3.33333C7.91667 2.8731 8.28977 2.5 8.75 2.5H10C10.4602 2.5 10.8333 2.8731 10.8333 3.33333V5.41667C10.8333 5.8769 10.4602 6.25 10 6.25H8.75C8.28976 6.25 7.91667 5.8769 7.91667 5.41667V3.33333ZM3.33333 9.58333C2.8731 9.58333 2.5 9.95642 2.5 10.4167V12.5C2.5 12.9602 2.8731 13.3333 3.33333 13.3333H4.58333C5.04357 13.3333 5.41667 12.9602 5.41667 12.5V10.4167C5.41667 9.95642 5.04357 9.58333 4.58333 9.58333H3.33333ZM7.91667 10.4167C7.91667 9.95642 8.28977 9.58333 8.75 9.58333H10C10.4602 9.58333 10.8333 9.95642 10.8333 10.4167V12.5C10.8333 12.9602 10.4602 13.3333 10 13.3333H8.75C8.28976 13.3333 7.91667 12.9602 7.91667 12.5V10.4167Z",fill:"#707070"})),kx=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Re.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),p_e="";function Yae({venue:e,isCurrent:t,onVenueClicked:n}){const{t:o}=ya(),[l,d]=Re.useState({});return Re.useEffect(()=>()=>{d({})},[]),Re.useEffect(()=>{const g={};e.image&&(g.backgroundImage=`url('${e.image}')`),d(g)},[e]),dt.jsxs("button",{className:"venue",onClick:()=>n(),"data-sentry-component":"Venue","data-sentry-source-file":"Venue.jsx",children:[dt.jsx("div",{className:"venue__image",style:l}),dt.jsxs("div",{className:"venue__content",children:[dt.jsx("div",{children:e.venueInfo.name}),t&&dt.jsx("div",{className:"venue__current",children:o("Current")})]})]})}const oT=Jn({key:"isLocationClicked",default:!1});function Gae({onOpen:e,onClose:t,active:n}){const{t:o}=ya(),l=Re.useRef(null),d=rn(m1),[,g]=Dn(WI),[s,v]=Dn(op),[,E]=Dn(oT),z=F=>{g(!0),v(F.name),O()},O=()=>{n?t():e()};function j(F){z(F),E(!1)}return dt.jsxs(dt.Fragment,{children:[dt.jsx("button",{className:`venue-selector__button ${n?"venue-selector__button--open":""}`,onClick:()=>O(),"aria-label":o("Venues"),children:n?dt.jsx(kx,{}):dt.jsx(Qae,{})}),dt.jsx(Hae,{unmountOnExit:!0,in:n,nodeRef:l,timeout:400,classNames:"venue-selector__content","data-sentry-element":"CSSTransition","data-sentry-source-file":"VenueSelector.jsx",children:dt.jsxs("div",{className:"venue-selector__content",ref:l,children:[dt.jsx("h1",{children:o("Select venue")}),dt.jsx("div",{className:"venue-selector__list",children:d.map(F=>dt.jsx(Yae,{isCurrent:(s==null?void 0:s.toLowerCase())===F.name.toLowerCase(),venue:F,onVenueClicked:()=>j(F)},F.id))})]})})]})}const n7=Re.createContext(),pu=Jn({key:"currentLocation",default:null}),Zae="Left",Wae="Right",qae="Up",Kae="Down",lp={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},sT={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},i7="mousemove",r7="mouseup",Xae="touchend",Jae="touchmove",ele="touchstart";function tle(e,t,n,o){return e>t?n>0?Wae:Zae:o>0?Kae:qae}function o7(e,t){if(t===0)return e;const n=Math.PI/180*t,o=e[0]*Math.cos(n)+e[1]*Math.sin(n),l=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[o,l]}function nle(e,t){const n=z=>{const O="touches"in z;O&&z.touches.length>1||e((j,F)=>{F.trackMouse&&!O&&(document.addEventListener(i7,o),document.addEventListener(r7,g));const{clientX:$,clientY:Y}=O?z.touches[0]:z,ie=o7([$,Y],F.rotationAngle);return F.onTouchStartOrOnMouseDown&&F.onTouchStartOrOnMouseDown({event:z}),Object.assign(Object.assign(Object.assign({},j),sT),{initial:ie.slice(),xy:ie,start:z.timeStamp||0})})},o=z=>{e((O,j)=>{const F="touches"in z;if(F&&z.touches.length>1)return O;if(z.timeStamp-O.start>j.swipeDuration)return O.swiping?Object.assign(Object.assign({},O),{swiping:!1}):O;const{clientX:$,clientY:Y}=F?z.touches[0]:z,[ie,K]=o7([$,Y],j.rotationAngle),J=ie-O.xy[0],te=K-O.xy[1],oe=Math.abs(J),pe=Math.abs(te),me=(z.timeStamp||0)-O.start,he=Math.sqrt(oe*oe+pe*pe)/(me||1),De=[J/(me||1),te/(me||1)],qe=tle(oe,pe,J,te),Te=typeof j.delta=="number"?j.delta:j.delta[qe.toLowerCase()]||lp.delta;if(oe<Te&&pe<Te&&!O.swiping)return O;const ze={absX:oe,absY:pe,deltaX:J,deltaY:te,dir:qe,event:z,first:O.first,initial:O.initial,velocity:he,vxvy:De};ze.first&&j.onSwipeStart&&j.onSwipeStart(ze),j.onSwiping&&j.onSwiping(ze);let ht=!1;return(j.onSwiping||j.onSwiped||j[`onSwiped${qe}`])&&(ht=!0),ht&&j.preventScrollOnSwipe&&j.trackTouch&&z.cancelable&&z.preventDefault(),Object.assign(Object.assign({},O),{first:!1,eventData:ze,swiping:!0})})},l=z=>{e((O,j)=>{let F;if(O.swiping&&O.eventData){if(z.timeStamp-O.start<j.swipeDuration){F=Object.assign(Object.assign({},O.eventData),{event:z}),j.onSwiped&&j.onSwiped(F);const $=j[`onSwiped${F.dir}`];$&&$(F)}}else j.onTap&&j.onTap({event:z});return j.onTouchEndOrOnMouseUp&&j.onTouchEndOrOnMouseUp({event:z}),Object.assign(Object.assign(Object.assign({},O),sT),{eventData:F})})},d=()=>{document.removeEventListener(i7,o),document.removeEventListener(r7,g)},g=z=>{d(),l(z)},s=(z,O)=>{let j=()=>{};if(z&&z.addEventListener){const F=Object.assign(Object.assign({},lp.touchEventOptions),O.touchEventOptions),$=[[ele,n,F],[Jae,o,Object.assign(Object.assign({},F),O.preventScrollOnSwipe?{passive:!1}:{})],[Xae,l,F]];$.forEach(([Y,ie,K])=>z.addEventListener(Y,ie,K)),j=()=>$.forEach(([Y,ie])=>z.removeEventListener(Y,ie))}return j},E={ref:z=>{z!==null&&e((O,j)=>{if(O.el===z)return O;const F={};return O.el&&O.el!==z&&O.cleanUpTouch&&(O.cleanUpTouch(),F.cleanUpTouch=void 0),j.trackTouch&&z&&(F.cleanUpTouch=s(z,j)),Object.assign(Object.assign(Object.assign({},O),{el:z}),F)})}};return t.trackMouse&&(E.onMouseDown=n),[E,s]}function ile(e,t,n,o){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:o(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:o(e.el,t)})}function s7(e){const{trackMouse:t}=e,n=Re.useRef(Object.assign({},sT)),o=Re.useRef(Object.assign({},lp)),l=Re.useRef(Object.assign({},o.current));l.current=Object.assign({},o.current),o.current=Object.assign(Object.assign({},lp),e);let d;for(d in lp)o.current[d]===void 0&&(o.current[d]=lp[d]);const[g,s]=Re.useMemo(()=>nle(v=>n.current=v(n.current,o.current),{trackMouse:t}),[t]);return n.current=ile(n.current,o.current,l.current,s),g}const Sr={MIN:1,FIT:2,MAX:3},m_e="",a7=Jn({key:"isBottomSheetLoaded",default:!1});let aT;function y1({children:e,isOpen:t,minHeight:n,preferredSizeSnapPoint:o,onSwipedToSnapPoint:l}){const d=Re.useRef(),g=Re.useRef(),[s,v]=Re.useState(Sr.FIT),[E,z]=Re.useState(!1),[O,j]=Re.useState(),F=Re.useContext(n7),[$,Y]=Re.useState(),[ie,K]=Re.useState({}),[,J]=Dn(a7);function te(me){me===Sr.MIN&&$<=n||(s===Sr.FIT&&(d.current.style.height=`${$}px`),requestAnimationFrame(()=>{switch(me){case Sr.MAX:K({height:`${F.current.clientHeight}px`});break;case Sr.FIT:K({height:`${$}px`});break;case Sr.MIN:K({height:`${n}px`});break}v(me)}),typeof l=="function"&&d.current.addEventListener("transitionend",()=>{l(me)},{once:!0}))}Re.useEffect(()=>{d.current.addEventListener("transitionend",()=>{J(!0)},{once:!0})},[]),Re.useEffect(()=>{o!==void 0&&(d.current.style.height=`${d.current.clientHeight}px`,requestAnimationFrame(()=>{te(o)}))},[o]);const oe=s7({onSwipeStart:me=>{z(!0),j(me.dir),aT=d.current.clientHeight},onSwiping:me=>{const he=Math.max(aT-me.deltaY,n);K({height:`${he}px`})},onSwiped:me=>{z(!1);const he=Math.max(aT-me.deltaY,n);let De,qe;O.toUpperCase()==="DOWN"?(De=$-60,qe=F.current.clientHeight-60):(De=parseInt(n)+60,qe=$+60);let Te;he<=De?Te=Sr.MIN:he<=qe?Te=Sr.FIT:Te=Sr.MAX,te(Te)},trackMouse:!0,preventScrollOnSwipe:!0});Re.useEffect(()=>{t===!1?(Y(),d.current.style.height=""):Y(g.current.clientHeight)},[e.length,t]);const pe=me=>{oe.ref(me),d.current=me};return dt.jsx("div",{...oe,ref:pe,style:ie,className:`sheet ${t?"sheet--active":""} ${E?"sheet--dragging":""}`,"data-sentry-component":"Sheet","data-sentry-source-file":"Sheet.jsx",children:dt.jsx("div",{ref:g,className:"sheet__content",style:ie,children:e})})}const g_e="",y_e="",rle=(e,t)=>{const[n,o]=Re.useState(void 0),[l,d]=Re.useState(void 0);return Re.useEffect(()=>{const g=(s=!1)=>{var E,z;const v=((E=t.current)==null?void 0:E.scrollHeight)>((z=t.current)==null?void 0:z.clientHeight);o(v),s===!0&&d(v)};g(!0),t.current&&new ResizeObserver(g).observe(t.current)},[e,t]),[n,l]},cp=()=>s7({onSwiping:({event:e})=>e.stopPropagation()});function l7(e){const t=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:t[1],lng:t[0],floor:e.properties.floor}}const Ox=Jn({key:"directionsResponse",default:null}),lT=Jn({key:"hasFoundRoute",default:!0}),c7=(e,t,n,o,l)=>{const[d,g]=Re.useState(),[s,v]=Re.useState(),[E,z]=Dn(lT),[,O]=Dn(Ox),[j,F]=Re.useState();return Re.useEffect(()=>{F(!1),e!=null&&e.geometry&&(t!=null&&t.geometry)&&n.getRoute({origin:l7(e),destination:l7(t),travelMode:o,avoidStairs:l}).then($=>{if($&&$.legs){const Y=$.legs.reduce((K,J)=>K+J.distance.value,0),ie=$.legs.reduce((K,J)=>K+J.duration.value,0);g(Y),v(ie),O({originLocation:e,destinationLocation:t,totalDistance:Y,totalTime:ie,directionsResult:$}),F(!0)}else z(!1)},()=>{z(!1)})},[e,t,n,l,o]),[d,s,E,j]},Yh={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},jx=Jn({key:"travelMode",default:Yh.WALKING}),dc=Jn({key:"kioskLocation",default:null}),Rx=Jn({key:"accessibilityOn",default:!1}),Px=Jn({key:"showExternalIDs",default:!1});function u7(e,t){const n=rn(VI),[o,l]=Re.useState(!1),d=e.getMap();Re.useEffect(()=>{t&&l(!1)},[t]);function g(v,E,z,O){const j=F=>{if(!z)return;E.getMap().queryRenderedFeatures(F.point).length?O(!1):O(!0)};return v.on("click",j),()=>{v.off("click",j)}}function s(v,E,z,O){const j=Y=>{z&&O(!1)},F=Y=>{z&&O(!0)};E.addListener("click",j);const $=v.addListener("click",F);return()=>{E.removeListener("click",j),$.remove()}}return Re.useEffect(()=>{let v;return n===Bo.Mapbox&&(v=g(d,e,t,l)),n===Bo.Google&&(v=s(d,e,t,l)),()=>v==null?void 0:v()},[e,t]),o}function h7({onBack:e,onStartWayfinding:t,onSetSize:n,snapPointSwiped:o,onStartDirections:l,isOpen:d}){const{t:g}=ya(),s=Re.useRef(null),v=Re.useRef(null),E=Re.useRef(null),[z,O]=Re.useState(!1),[j,F]=Re.useState(!1),[$,Y]=Re.useState(!1),[ie,K]=Re.useState(null),J=rn(Zs),te=rn(pu),[oe,pe]=rle(te,E),me=cp(),he=rn(uc),De=rn(dc),qe=rn(FI),[Te,ze]=Re.useState(),[ht,mt]=Re.useState(),vt=$h(),Qe=rn(jx),Fe=rn(Rx),[,,ot]=c7(ht,Te,qe,Qe,Fe),Je=rn(Px),He=u7(J,d);Re.useEffect(()=>()=>{K(null),ze(),mt()},[]),Re.useEffect(()=>{O(!1),F(!1),Y(!1),K(null),te&&(s.current.location=te,K(J.getDisplayRule(te)),ze(te)),De&&mt(De)},[te,J,De]);function Ae(it){typeof n=="function"&&n(it)}Re.useEffect(()=>{o!==void 0&&(O(o===Sr.MAX),o===Sr.MAX?ye():ee())},[o]),Re.useEffect(()=>{He&&e()},[He]);function je(){z===!1?(Ae(Sr.MAX),ye()):(Ae(Sr.FIT),ee())}function ye(){requestAnimationFrame(()=>{O(!0),fe()})}function ee(){O(!1),Ne()}function fe(){requestAnimationFrame(()=>{F(v.current.scrollTop>0),Y(v.current.scrollTop<v.current.scrollHeight-v.current.offsetHeight-1)})}function Ne(){F(!1),Y(!1)}function Ee(){O(!1),F(!1),Y(!1),Ae(Sr.FIT),t()}function Xe(){O(!1),F(!1),Y(!1),Ae(Sr.FIT),l()}function ft(){O(!1),F(!1),Y(!1),Ae(Sr.FIT),e()}return dt.jsx("div",{className:`location-details ${j?"location-details--content-above":""} ${$?"location-details--content-below":""}`,"data-sentry-component":"LocationDetails","data-sentry-source-file":"LocationDetails.jsx",children:te&&dt.jsxs(dt.Fragment,{children:[dt.jsxs("div",{className:"location-info",children:[dt.jsx("div",{className:"location-info__icon",children:ie&&dt.jsx("img",{alt:"",src:ie.icon.src?ie.icon.src:ie.icon})}),dt.jsxs("div",{className:"location-info__content",children:[dt.jsx("div",{className:"location-info__name",children:te.properties.name}),dt.jsx("mi-location-info",{level:g("Level"),ref:s,"show-external-id":Je})]}),dt.jsx("button",{className:"location-info__close",onClick:()=>ft(),children:dt.jsx(kx,{})})]}),dt.jsxs("div",{ref:v,onScroll:it=>fe(),className:"location-details__details",children:[te.properties.imageURL&&dt.jsx("img",{alt:"",src:te.properties.imageURL,className:"location-details__image"}),Object.keys(te.properties.categories).length>0&&dt.jsx("p",{className:"location-details__categories",children:Object.values(te.properties.categories).map((it,ue,Dt)=>dt.jsxs(Yi.Fragment,{children:[it,ue<Dt.length-1&&dt.jsx(dt.Fragment,{children:"・"})]},it))}),te.properties.description&&!z&&dt.jsxs("section",{className:"location-details__description",children:[dt.jsx("div",{ref:E,children:te.properties.description}),(oe||pe)&&dt.jsx("button",{onClick:()=>je(),children:g("Read full description")})]}),te.properties.description&&z&&dt.jsxs("section",{className:"location-details__description location-details__description--full prevent-scroll",...me,children:[dt.jsx("div",{children:te.properties.description}),pe&&dt.jsx("button",{onClick:()=>je(),children:g("Close")})]})]}),De&&vt?dt.jsx("button",{disabled:!ot,onClick:()=>Xe(),className:`location-details__wayfinding ${ot?"":"location-details--no-route"}`,style:{background:he},children:g(ot?"Start directions":"Directions not available")}):dt.jsx("button",{onClick:()=>Ee(),style:{background:he},className:"location-details__wayfinding",children:g("Start wayfinding")})]})})}const __e="",ole=e=>Re.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("g",{clipPath:"url(#clip0_1663_3931)"},Re.createElement("path",{d:"M8 0.5C6.41775 0.5 4.87104 0.969192 3.55544 1.84824C2.23985 2.72729 1.21447 3.97672 0.608967 5.43853C0.00346629 6.90034 -0.15496 8.50887 0.153721 10.0607C0.462403 11.6126 1.22433 13.038 2.34315 14.1569C3.46197 15.2757 4.88743 16.0376 6.43928 16.3463C7.99113 16.655 9.59966 16.4965 11.0615 15.891C12.5233 15.2855 13.7727 14.2602 14.6518 12.9446C15.5308 11.629 16 10.0823 16 8.5C16 6.37827 15.1571 4.34344 13.6569 2.84315C12.1566 1.34285 10.1217 0.5 8 0.5ZM11.4667 11.98C11.4074 12.0452 11.3358 12.098 11.2559 12.1353C11.1761 12.1726 11.0897 12.1937 11.0017 12.1974C10.9136 12.2012 10.8258 12.1874 10.7431 12.1569C10.6604 12.1265 10.5846 12.0799 10.52 12.02L7.18667 8.99333C7.12364 8.92813 7.07457 8.85074 7.04247 8.76591C7.01038 8.68109 6.99592 8.5906 7 8.5V4.83333C7 4.65652 7.07024 4.48695 7.19527 4.36193C7.32029 4.23691 7.48986 4.16667 7.66667 4.16667C7.84348 4.16667 8.01305 4.23691 8.13807 4.36193C8.2631 4.48695 8.33334 4.65652 8.33334 4.83333V8.20667L11.42 11.04C11.5506 11.1586 11.6288 11.3242 11.6375 11.5004C11.6463 11.6765 11.5848 11.849 11.4667 11.98Z",fill:"#707070"})),Re.createElement("defs",null,Re.createElement("clipPath",{id:"clip0_1663_3931"},Re.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),d7=e=>Re.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M9.61194 2.82846C9.61194 3.93033 8.7187 4.82357 7.61683 4.82357C6.51495 4.82357 5.62171 3.93033 5.62171 2.82846C5.62171 1.72659 6.51495 0.833344 7.61683 0.833344C8.7187 0.833344 9.61194 1.72659 9.61194 2.82846Z",fill:"#4B5563"}),Re.createElement("path",{d:"M3.85618 7.89573L2.70342 8.26942C2.51461 8.33063 2.38005 8.49797 2.36081 8.69552L2.15675 10.7898C2.10483 11.3227 1.64157 11.7195 1.10705 11.6891C0.529883 11.6562 0.101401 11.1412 0.174055 10.5677L0.562276 7.5031C0.609594 7.12957 0.863193 6.8145 1.21798 6.68846L5.43314 5.19101C5.91287 4.94642 6.49458 4.90944 7.02868 5.14168C7.58278 5.38261 7.96247 5.86074 8.09808 6.40693C8.10564 6.42543 8.11266 6.44417 8.11911 6.46314L8.13434 6.50792C8.1531 6.56308 8.17666 6.6165 8.20475 6.66755L9.12944 8.34823C9.24374 8.55597 9.4283 8.71621 9.65003 8.80021L11.6264 9.54897C12.2431 9.78262 12.4674 10.5397 12.0776 11.0716C11.8078 11.4397 11.3226 11.5778 10.8994 11.4069L8.27831 10.3486C8.07383 10.266 7.90247 10.118 7.79102 9.92774L7.36282 9.1966L6.28886 11.8906C6.2887 11.8929 6.2885 11.8952 6.28824 11.8974C6.28503 11.9259 6.28989 11.9548 6.30227 11.9807L6.30571 11.9879L9.7205 18.1483C10.0544 18.7506 9.83675 19.5096 9.23443 19.8434C8.6321 20.1773 7.87316 19.9597 7.53929 19.3574L4.94329 14.6741L2.97868 19.1924C2.70407 19.8239 1.96948 20.1133 1.33793 19.8387C0.706382 19.5641 0.417021 18.8295 0.691627 18.1979L3.26686 12.2753L3.30923 12.1729C3.31648 12.1479 3.31685 12.1215 3.3104 12.0965C2.88761 11.4405 2.77915 10.5975 3.08907 9.82005L3.85618 7.89573Z",fill:"#4B5563"})),sle=e=>Re.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M4.48045 5.12001C4.0861 5.12526 3.70969 5.28562 3.4327 5.56636C3.15571 5.84709 3.00042 6.22562 3.00045 6.62001V16.73C3.00045 16.7963 2.97411 16.8599 2.92723 16.9068C2.88035 16.9537 2.81676 16.98 2.75045 16.98H1.48045C1.30245 16.979 1.1274 17.0255 0.973367 17.1147C0.819338 17.2039 0.691916 17.3326 0.60426 17.4876C0.516604 17.6425 0.471891 17.818 0.474737 17.996C0.477584 18.174 0.527887 18.348 0.620453 18.5L3.62045 23.5C3.709 23.6492 3.83484 23.7728 3.98563 23.8587C4.13641 23.9446 4.30694 23.9897 4.48045 23.9897C4.65397 23.9897 4.8245 23.9446 4.97528 23.8587C5.12606 23.7728 5.25191 23.6492 5.34045 23.5L8.34045 18.5C8.42797 18.3484 8.47417 18.1765 8.47444 18.0015C8.4747 17.8265 8.42903 17.6544 8.34197 17.5026C8.25491 17.3508 8.12953 17.2244 7.97834 17.1362C7.82716 17.048 7.65548 17.0011 7.48045 17H6.23045C6.19758 16.9975 6.16554 16.9885 6.13616 16.9735C6.10679 16.9586 6.08066 16.938 6.05928 16.9129C6.03791 16.8878 6.0217 16.8587 6.01161 16.8273C6.00151 16.7959 5.99772 16.7629 6.00045 16.73V6.62001C6.00047 6.42133 5.96102 6.22463 5.88439 6.04132C5.80776 5.85802 5.69548 5.69176 5.55407 5.55221C5.41265 5.41266 5.24493 5.30259 5.06062 5.2284C4.87632 5.1542 4.67911 5.11736 4.48045 5.12001Z",fill:"#707070"}),Re.createElement("path",{d:"M15.5203 18.84C15.9182 18.84 16.2997 18.6819 16.581 18.4006C16.8623 18.1193 17.0203 17.7378 17.0203 17.34V7.22995C17.0254 7.16717 17.0539 7.10861 17.1003 7.06597C17.1466 7.02332 17.2074 6.99975 17.2703 6.99995H18.5203C18.6968 6.99992 18.8702 6.95317 19.0228 6.86446C19.1754 6.77574 19.3018 6.64822 19.3891 6.49485C19.4765 6.34148 19.5217 6.16771 19.5201 5.99122C19.5186 5.81472 19.4704 5.64177 19.3803 5.48995L16.3803 0.48995C16.2918 0.340728 16.1659 0.217112 16.0152 0.131252C15.8644 0.0453926 15.6938 0.000244141 15.5203 0.000244141C15.3468 0.000244141 15.1763 0.0453926 15.0255 0.131252C14.8747 0.217112 14.7489 0.340728 14.6603 0.48995L11.6603 5.48995C11.5703 5.64177 11.5221 5.81472 11.5205 5.99122C11.519 6.16771 11.5642 6.34148 11.6516 6.49485C11.7389 6.64822 11.8653 6.77574 12.0179 6.86446C12.1705 6.95317 12.3438 6.99992 12.5203 6.99995H13.7703C13.8366 6.99995 13.9002 7.02629 13.9471 7.07317C13.994 7.12006 14.0203 7.18365 14.0203 7.24995V17.34C14.0203 17.7378 14.1784 18.1193 14.4597 18.4006C14.741 18.6819 15.1225 18.84 15.5203 18.84Z",fill:"#707070"})),v_e="";function cT({location:e,locationClicked:t,icon:n,isHovered:o}){const{t:l}=ya(),d=Re.useRef(),g=rn(Zs),s=rn(Px);return Re.useEffect(()=>{var j;const v=F=>t(F.detail),E=()=>{var F;((F=e.properties.locationSettings)==null?void 0:F.selectable)!==!1&&g.hoverLocation(e)},z=()=>{var F;(F=e.properties.locationSettings)!=null&&F.selectable||g.unhoverLocation(e)};((j=e.properties.locationSettings)==null?void 0:j.selectable)===!1&&d.current.classList.add("non-selectable");const{current:O}=d;return O.location=e,O.icon=n||g.getDisplayRule(e).icon,O.addEventListener("locationClicked",v),O.addEventListener("mouseover",E),O.addEventListener("mouseout",z),o?d.current.classList.add("hovered"):d.current.classList.remove("hovered"),()=>{O.removeEventListener("locationClicked",v),O.removeEventListener("mouseover",E),O.removeEventListener("mouseout",z)}},[e,t,o]),dt.jsx("mi-list-item-location",{level:l("Level"),ref:d,"show-external-id":s,"data-sentry-element":"mi-list-item-location","data-sentry-component":"ListItemLocation","data-sentry-source-file":"ListItemLocation.jsx"})}const ale=()=>{const[e,t]=Re.useState(),n=rn(Zs),o=rn(KI);return Re.useEffect(()=>{function l(){const d=n.getMapView().getCenter();t(d.lat+","+d.lng)}return n&&o?(n.getMapView().addListener("idle",l),l()):n&&n.getMapView().removeListener("idle",l),()=>{n&&n.getMapView().removeListener("idle",l)}},[n,o]),e},up=Jn({key:"language",default:void 0}),uT=Jn({key:"searchInput",default:void 0}),Ux=Jn({key:"searchAllVenues",default:!1}),hT=Re.forwardRef(({placeholder:e,mapsindoors:t,results:n,clicked:o,cleared:l,changed:d,category:g,google:s,mapbox:v,disabled:E=!1},z)=>{const O=Re.useRef(),j=rn(Ex),F=rn(up),[,$]=Dn(uT),Y=sessionStorage.getItem("mapboxPlacesSessionToken"),ie={longitude:j==null?void 0:j.coords.longitude,latitude:j==null?void 0:j.coords.latitude},K=ale(),J=rn(op),te=rn(Ux);return Re.useImperativeHandle(z,()=>({triggerSearch(){O.current.triggerSearch()},getValue(){return O.current.value},setDisplayText(oe){O.current.setDisplayText(oe)},focusInput(){O.current.focusInput()},clear(){O.current.clear()},getInputField(){return O.current.getInputField().then(oe=>$(oe))}})),Re.useEffect(()=>{const{current:oe}=O;oe.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{oe.triggerSearch()})},[F]),Re.useEffect(()=>{const oe=he=>n(he.detail),{current:pe}=O;t===!0&&(pe.mapsindoors="true");function me(){pe.getValue||pe.focusInput(),l()}return pe.addEventListener("results",oe),pe.addEventListener("click",o),pe.addEventListener("cleared",me),pe.addEventListener("changed",d),()=>{pe.removeEventListener("results",oe),pe.removeEventListener("click",o),pe.removeEventListener("cleared",me),pe.removeEventListener("changed",d)}},[e,t,n,o,l,s,v,d]),dt.jsx("mi-search",{ref:O,"id-attribute":"search",placeholder:e,"session-token":Y,"user-position":ie.latitude!==void 0&&ie.longitude!==void 0?Object.values(ie).join(","):null,"mi-near":K,"mi-categories":g,disabled:E,mapbox:v,google:s,"mi-venue":te?void 0:J,language:F})});function dT(e){const t={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:t,properties:{name:MO("My position"),anchor:t},type:"Feature"}}let fT;function lle(e){return new Promise((t,n)=>{fT||(fT=new window.google.maps.Geocoder),fT.geocode({placeId:e.properties.placeId},o=>{o.length>0?(e.geometry={type:"Point",coordinates:[o[0].geometry.location.lng(),o[0].geometry.location.lat()]},t(e)):n()})})}const cle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAAkCAYAAAApZeciAAARjUlEQVR4Ae2dBXTb2vL1x6GmzJehzBjbKb/YcsrMfJkZyvDS1HbgMTMzM7d9zMzMGCjaTrnxt+e7zvqPpwLLdUpLe62fnFqSZak5W3PmzFHI0/UoT7Nf2t49XJeaY8RT24xY6jXhWPJt+Pn1+Hl3KNa2dE7N8X6Ariwe19XJeHhE6k5OM6KpD4eiidMwnLQVWH/eiCc/F44mDUBXBo/r4iQ8PIxY262Icj7J5uIW7PdZ3h+QBwCBD65YW/GB5ec78H9wxf2ACg0vrmk8PCLRZHUonjri1ngUrdXRxExAHgkKfGjVusCHVqY7qPjQqgcAFRpeXLN4eOBuvdyIJs5e3MVKHcbrq7F+caTuxIjqxrZbquqOD4vUpeYh4mkMxRL/0fuE46kdgMIengHlhwc0ETRmmEvu9ZzYv4SuYnHEEoonzqjczmlONC+qSXcDZMXqmnSZEUs+g/3bXuiGpfYCYjw8A7LFwzOgqppjfWAe/84yn3iqOVzf5geUK5H9yfFIRj8NKIMH8AzIBg/PgHhoXZoPRr4SbCaAPC4dz4A8LPAMiPM5Ou+D3M7dgDwKg2dAHhZ4BoQk6Z6s6CeW+DGl0z5AHoXBMyAPCzwDQu7nJ9kGlLoH0OXmb1VV5S2RyoXNkWBtsxF8c0sk8Ea8bm8OB6ana6gIkCu+RuXnvlK88NyB0tpzB4vfjNc3nj1Ysv3soZK8Pm/qy9u7GvG2ZRj1i4fiyTcit1OH6GaR/83pUkDTG1t7ci4NgOYegDK4NqB/R4L9cd6bWyLBl/J1aDGCdU1GcPk/p07tCsgKyxVQEbgRDAIDgI/cqxzcBAaDG0ERXX0qATeDweAWUEr5qQj0Bj2AL8fj3ZxnIy8S1/UmdV07y4DKwe1gEOhzJadYwIAuZHe/TvQHdLlIrx5T1hwJ7GwO+4+gwaXNaAr7/9hiVK5OE/kA2fIRKjt7oGTnmYOlR84dLE2bU/zH84fKViM48QGyY/VH0sWojXrOqjYqFE3+xYgnZiFy/LnIoX0dUIacDejwvMpeON/XNoeDZ0yvhRFsAQ9YXQdesB7OcCMoBwvBPtAo2A2qc2ygI8BDoF59Ri1YCfoBrfHie0wlawXFdrPJWuPEdn6g1QesBjH1HevAZnALmSugrlcZmAdqxGdsBlr9wFqT48XBRnBjjoY+Xx2L2QcWZtZPKJQBCaO7x+T/8lkwycRsbxXXZzU5SF3PWeQg3MUnZDeoxN8BOTEnevJ2HrZ3AzdkQJL/VPkHtBiB71kZjwZRwNvTVVUlgEz5Gg2AwXwPpHOj+O3YpwSQGRzJoAbqK86Fl4lTMKgTl2JAR6v9d7DR5nYtAm+UJqQNqDHDeLANNNrwvM0dsBisBo0OxMAEIDVArH+arPWUanjFZK7NYrvbTAxyv8N3rLcwwtlim5HgGZN9teGNBlGH49WZ7Kevz3aHz9gKggUyoBgYA+IOx9yg/g+K1Pe8hazlA1v1/5ODAYWzu1/J7wNygosMeXs3cOEioA64O9EUCf7kosYVDqYQAfywJeL/eVPEf06vbzb8bwGkaf8udUWX6yfaZBAJpfD6w3MHin9+5iul50xM6C2ANGyYiGq+bGo20dQv8POf9bp8Dah1+vSeuBa/1+eK6/APXI8DuBa/1uvAHkASXkgDerFofBvBDDAdrAV1YrttoNzkl2k9aBQ8AkJgClgIdot1DWA0kHpWrO9lEUU0KkaaGaEwmJ3qLn2balTPAAMEM69PqM8fa2VAwgwbMvvdAx5TUeIgUKf2CYEgiChDbbA4n+5ghzLw1WAqmA42iAilpkAGVCdMcw9YCCpBFXhYXaM1QGqmWLeSrDVUbPcYILcGhNzGDwA5kJcBherapgDqAF2Jl2Q3KP8p5H+e5FwQIIYjJLz3Kt34YExLAUlgJi+RxgKzOYWu2JOcCwKUYQByQa+6yIQOlC0FJOHCyuxrkzgTrkttkUWZ1ftPDFcmlZcBId/zcnUtmvC6SEY5hw1/Jc7zX6Jbev6wUTkGUAe8kAbE7AQ3A63+YIvYbjmQmqQayDigVQpWie1qQFeLxl0JtF4EGhWrHH6xF8u7s+pizAdFJkY6VWyzB5Tq7yjYYtN9KlYRZTXw6eOp89phEtWtUV2fvkDrZrALNBbCgAQbQRnQmqCMdYzqKu4XvwvlZK6NYv8JgNx2wcLxxD8BOePegMLRE9MBMf+dN2kg7uyn/68xBS80VQcjgMxorg7uUFHSL2XjbP8CDUSkc1pEPRcQDUUAmQFj2qGioF/KfBAnnDPTTzKGkmgPxVILAWmqatIlbEL5GtCxqol9YDgnhbkm8DoCkISNGWb8Snkd8O8PAOqAFyS7HQ4hcz+Rw6gDPUUjkuY02SHsvl9sa8hGJN6/G2g9Lu6WjwsT0w12oficwTLPJN6/zyFZvMrkfLQBRR0SspPFtpscjrdBdYU71Bc0iBya3fFuAQ0FNKCn9LVVmia2fQJILRbrZgCtHsLAdoHiPJPQIHkjIDs4muFowA41ugYSYwAxyOU8ohrSmwBZwaNW3CXLjoIqxgNiMLr1SJahfKX0TYCs4M/jLpmKmMYDAhz9rFbf/d2ArJgdPTWYr2M+BtQaCW5UEd5eaTz/q5oyCDmfxpaw/7BJd/V0c9WYHoAYXpDqzztpsUmUcqPq0jiNmN1qke/xiYghqkZh+oh9XqSihuFA6nnQCPaCIos77hCy151i2/UWBrSc7HW32PZWstdwi6hulorYnLSxgAY0OofRuJ1iexmZ9RNmuMXkdyIk9guRC3HdT/bjNNoeAnSpwKi+JyMINjtAgBvWe7LNJDgNkB3opmyR+7Qa/ocBAY5o3iPNBP+eBsiWQyVb5D4wsYcBMboyHOZSBcgORIXfyseAdFTDxsoGiffn4Zw/i3Nvv3hUMHicu6atc/yjAHXwwkInT50biu7fB1z+0vtEPqhBGc188VkjLPIK/VQ+aIXYTr8vtV0lfeM21ElTlQbk4nrtcXs8HU2ovNogclagQAZUn2OJwEoduQndJdYNVf//20UXrRu5EBrMLtV9+JUesXILPyGRH1ImZsb/FlAHLYb/oGxQGAHqDcgOjJbNz05GB6KAGHS5DkozSR+g3oDsQLdrvtwHRAExMM9PZSXQaxIDANmBfd6clwGFgx9S0WAtXv8E0hpO2qMc4f7/zZ7QHZCGeOEiKtCjVfeY3M0qKTc9JvbpLd6/Xby/RLz/qEnE9LRInhepboE2MBLdR7fskgbkIm/RkOfxtoEOPSTe70POGlogA9qdqx+I400HUkNUF7RDI9RNzJVmxVI3XzQLPpZ4DFC+IILYria2vhJQhqvfgGLJT7utjUKB4psKYEAm+E+1hAPv4iS0Qx1UZqG6Mg66Uf9SqW7CNNJyHk7vKe+OIpm6Hfgy6xtMckYRE/O812aIfr/IpQRcMMHCgMaTverEdwm4QH7u/Sryc9LIAhnQi8lZ+npMMYl0nxYRVS+TEokbgWuxQeihZiPWVgnILTwyxJNZs7p19amJgDqAmbw7y0xm+2cAssWo3JbVBYsEHgLEoNv07qzu1JdLZgCyA/tsy+62lT4EiOHnXavrMQuQPalvuDUgPQKm+FOrEXyeq6IB5QIvpAHNJGdNMBlhmuAiL6KHyWMm+YEl4vMGgmnq3x26Qby/DJSKIfa1No2rAXQh93JrQNtE4yuj/LRS5WScNKuAOaDu5KxNKuLU8qtRwJ6iZOABylPVDUd78wiYGrk6hgrgEKCcwcPKjGjyb/oRrYAkbB7Z3Y7A2wBZkV69urg54v+N3Od/4eBYQAybR3YSuvhtgKxAtXQxXn+TlYQ+VDoWEBOOJzeoc3gbIAtw/U7ewV3OvAzI8K9SEc//msOVcyynixD5rKZk8EIa0OPA5yKxOgaweoj39jpUS+vRqPuB1mCZcBbdkOeA1vNiuHyUqt/RWiHWB8heXUD5JRrQGqeRQaHyDFoVLgYJfODJAhrQDLJXN1ErVGfx/UvAXtGtm60NNV9Vxdqm6ofP88gOktQvzcxxImvSJZy8ltXAGZLh6PGhgCR8V88eeg62c9IVkAW12VMS/D/LGoY/QP0xenVSjGi1Y5RrHiBzSmvVMPzP5DB8pgL6uEyi818FAaTJDMN/Pt9heM7n4PyPyfNjAwJkRiYS/DNyQbMASXih64CCZK0xNvUx94p1S4WRORXVTQJaReKX9hnR/ZoDtOaaFAbGQKnDyNZu0IOstQREwXLQOx8DUvmYnQ4RxXIQBctAL2WEtTrKsFBlgeuAamzyTj5lsBtJy7yrXC/yXD66RIXr2pZkP5pDGEks8S4kWjdF6tqCHOlE6lOT+RGubFAwrn+Y/aUMrF8MyAyYSlxV/Z7hkS6ZYG2ZW3EzVz5fPPzsXwBIAlOJqwroMzzS1f5l6g7o//NFupkrn3l9FoeKFwCS6DwWmzMXJ8pCRDZXmPQXLrUQ0aTOqY3nfPE8OUAA12PaDTxPLMu0jeArpBHrHBBTD0KgRBnCNDVSM1XXoKj1q00a3CBVev+kSB5bRisOZf23mGy3KccIbpvJyFKZGomLgp55GpCuedoC7tDHU3VL+0EPmwLMGAiq61YCQqChEwoRd4Ahyiy6g3VqPttAslYPkykdM6hA4m4XGk0LN6R84UezspkBsiAz+z34fbOkK/g5aoV+ZzYEDV4HSMMVzzCh72tz4YroF2p+in/HkZFej31eB0jDkQ1G7L52sbkkTiLn8zOs+2OhpmKk/f5SFCB+w+Rckxhy/yl3P7lY02k6hp6K8ZiaOPoAuB/UmMz/8eVwB64Hj4F7lfEwexySqiPU9tv1MfWQrkNUJRvPNpM5VHeDh0DU4bOUATmqp4r4mC0Wx2sAEy0iwnvUZ+wF94H71cThxwpkQPuUGW0F94BH1I2GCZCzVqnfrS5UQFW9JHUT/z2wvAwIdUXh/cmxgJw4Pmdqv6ZI4JuqUVljBN7A+SBAZrR/ifqh0PCb0mAceAPngwCZwbkxUxMyMSXZZctzMmpvRIFfc7wGYrhej4rpCGgUWA4aLWgASxweqzFezCmz4jHQ1ylRrRrWQlLSlc8qF+FkCg84fMdabQZ5GhCrF3jY6XgOw/olKiFtxipwZ4EMaBfooyfbKqIOZi81Sg9edIaQFwqEo6n3hqLJlLP5JL8D1rmtIeLZ7Yh4ngVNNkPRv241AosBOcGz21Fo+CyinSZL4/lK8a/PHSxbDMgJjoRwftvAMYtz/zNPM+EJqqLu6Wt5/FWMzLUIPgdaba7Fz2Ha1YA0xAuTBjUIrAPbwT6wBawAt7p4DtBM8ADYAWrBNrABjHbR9x8vqp77k7X6i+0mU27ygRFgLdgKajPG+SgwbPI1d4CZGQYAcnG8kWCdyfHCLorx7gRrwHZQC3aA9aIMoae4FoPIvSrATFApbgSV4EGwF+wDT4O5oCflrnXiJtaPOllohOVcDcwPnIchvYwfyMVD9+FYaifngdT0jbzgbgjPB0OUs4u7WU1G4NX4+ZkWo6JC3+lz4sdUyvPBMNy+i7tZMJ5X4+dnkBuqkAnnXOFKbowUrkAeqB68BdTLB5LBeH5vMfIHA1oexB8nfFMH/o+sngnIij/OG9aF655ADT+cja8H58cwehjU18LpcRyePBVafUXy+W7qXHlKp338Z4cAWTHv1e1d1Aji6wFdbnjR2QbkydNiPSXDU+HFj1hFdPcIulC/5LlhgKzgyCirbqgudS+gyw0WnWZAnjzpWqFngY86RV7Ug5zOH7LqgOLJNYA0s2uSN+D1r2Lbs/weoMsNLzrTgDx5MlSNWSfJE/Jb95kk2t/MU1R4cipPOUHk86j+g46Z/BBdCbDoNAPy5KlUFJTWgFLqVHlREBdfuitDSPxdTVy9rPCiswzIk6cpqiSgc+UpM8Uk9bpczIe7bBwVAbpSYNFpBuTJU28wMEMZebpsCkeTBgoKD+qnRzI8+ZbLEcQUjSsGLwgKZRhInjx5um40s/54X340B08zwZSV6qr6U4Oupr8i+/8Adnj5PFwBRDQAAAAASUVORK5CYII=",f7=e=>Re.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M18.5329 7.19049C18.5118 7.16682 18.4958 7.13909 18.4857 7.109C18.4757 7.07891 18.4719 7.04709 18.4746 7.01549C18.481 6.98424 18.4939 6.9547 18.5126 6.92884C18.5313 6.90298 18.5553 6.88139 18.5829 6.86549L19.2496 6.47383C19.4034 6.39827 19.54 6.29191 19.6509 6.16135C19.7619 6.03079 19.8448 5.87881 19.8945 5.71485C19.9443 5.5509 19.9598 5.37846 19.9401 5.20826C19.9204 5.03806 19.8659 4.87372 19.7801 4.72545C19.6942 4.57719 19.5788 4.44816 19.4409 4.34637C19.3031 4.24459 19.1458 4.17223 18.9789 4.13379C18.8119 4.09534 18.6388 4.09163 18.4703 4.12289C18.3019 4.15415 18.1416 4.21971 17.9996 4.31549L17.1079 4.82383C17.0788 4.84065 17.0457 4.8495 17.0121 4.8495C16.9784 4.8495 16.9454 4.84065 16.9163 4.82383C16.8885 4.81108 16.8638 4.79261 16.8437 4.76963C16.8236 4.74665 16.8085 4.71968 16.7996 4.69049L16.4663 2.69883C16.3686 2.10879 16.0627 1.5733 15.604 1.18953C15.1453 0.805757 14.5643 0.599136 13.9663 0.607159H5.99125C5.39796 0.609722 4.82491 0.823205 4.37454 1.20945C3.92418 1.59569 3.62587 2.12951 3.53292 2.71549L3.19959 4.69049C3.19282 4.72272 3.17879 4.75297 3.15858 4.77896C3.13836 4.80496 3.11249 4.826 3.08292 4.84049C3.05378 4.85731 3.02073 4.86617 2.98709 4.86617C2.95344 4.86617 2.92039 4.85731 2.89125 4.84049L1.99959 4.34049C1.85752 4.24471 1.69729 4.17915 1.52882 4.14789C1.36036 4.11663 1.18727 4.12034 1.0203 4.15879C0.853336 4.19723 0.696054 4.26959 0.558225 4.37137C0.420396 4.47316 0.304963 4.60219 0.219094 4.75045C0.133225 4.89872 0.078754 5.06306 0.0590634 5.23326C0.0393727 5.40346 0.0548829 5.5759 0.104631 5.73985C0.154378 5.90381 0.237302 6.05579 0.348251 6.18635C0.4592 6.31691 0.595806 6.42327 0.749587 6.49883L1.41625 6.89049C1.44391 6.90639 1.46788 6.92798 1.48655 6.95384C1.50523 6.9797 1.51819 7.00924 1.52459 7.04049C1.52727 7.07209 1.52348 7.10391 1.51345 7.134C1.50342 7.16409 1.48736 7.19182 1.46625 7.21549C0.79248 7.90316 0.415458 8.82776 0.416253 9.79049V11.4572C0.416532 11.8754 0.543199 12.2838 0.779646 12.6288C1.01609 12.9738 1.35128 13.2393 1.74125 13.3905C1.78008 13.4055 1.81353 13.4317 1.83729 13.4659C1.86106 13.5001 1.87405 13.5405 1.87459 13.5822V15.2072C1.87459 15.7044 2.07213 16.1814 2.42376 16.533C2.77539 16.8846 3.25231 17.0822 3.74959 17.0822C4.24687 17.0822 4.72378 16.8846 5.07541 16.533C5.42704 16.1814 5.62459 15.7044 5.62459 15.2072V13.7572C5.62455 13.7011 5.64622 13.6472 5.68507 13.6068C5.72392 13.5664 5.77691 13.5426 5.83292 13.5405H14.1663C14.2223 13.5426 14.2753 13.5664 14.3141 13.6068C14.3529 13.6472 14.3746 13.7011 14.3746 13.7572V15.2072C14.3746 15.7044 14.5721 16.1814 14.9238 16.533C15.2754 16.8846 15.7523 17.0822 16.2496 17.0822C16.7469 17.0822 17.2238 16.8846 17.5754 16.533C17.927 16.1814 18.1246 15.7044 18.1246 15.2072V13.5822C18.1251 13.5405 18.1381 13.5001 18.1619 13.4659C18.1856 13.4317 18.2191 13.4055 18.2579 13.3905C18.6479 13.2393 18.9831 12.9738 19.2195 12.6288C19.456 12.2838 19.5826 11.8754 19.5829 11.4572V9.79049C19.5903 8.81911 19.2128 7.88433 18.5329 7.19049ZM6.03292 2.26549H14.0496C14.2493 2.26292 14.4433 2.33219 14.5963 2.46067C14.7493 2.58915 14.851 2.7683 14.8829 2.96549L15.2829 5.35716C15.2878 5.38821 15.2858 5.41994 15.2772 5.45016C15.2686 5.48038 15.2534 5.50836 15.2329 5.53216C15.2131 5.55434 15.1887 5.57183 15.1613 5.58336C15.1339 5.59489 15.1043 5.60017 15.0746 5.59883H4.99959C4.9654 5.60054 4.93125 5.59471 4.89957 5.58175C4.86788 5.56878 4.83944 5.54901 4.81625 5.52383C4.79517 5.4674 4.79517 5.40525 4.81625 5.34883L5.17459 3.02383C5.19879 2.82341 5.29493 2.63859 5.44514 2.50372C5.59534 2.36884 5.7894 2.29307 5.99125 2.29049L6.03292 2.26549ZM16.2913 11.4322C16.044 11.4322 15.8024 11.3588 15.5968 11.2215C15.3912 11.0841 15.231 10.8889 15.1364 10.6605C15.0418 10.4321 15.017 10.1808 15.0653 9.9383C15.1135 9.69582 15.2326 9.47309 15.4074 9.29827C15.5822 9.12346 15.8049 9.00441 16.0474 8.95618C16.2899 8.90795 16.5412 8.9327 16.7696 9.02731C16.998 9.12192 17.1932 9.28213 17.3306 9.4877C17.4679 9.69326 17.5413 9.93493 17.5413 10.1822C17.5447 10.352 17.5136 10.5207 17.4497 10.6781C17.3858 10.8355 17.2905 10.9781 17.1696 11.0975C17.0488 11.2168 16.9048 11.3102 16.7467 11.3721C16.5885 11.4339 16.4193 11.4629 16.2496 11.4572L16.2913 11.4322ZM2.49959 10.2072C2.49959 9.95993 2.5729 9.71826 2.71025 9.5127C2.8476 9.30713 3.04282 9.14692 3.27123 9.05231C3.49964 8.9577 3.75097 8.93295 3.99345 8.98118C4.23593 9.02941 4.45865 9.14846 4.63347 9.32327C4.80829 9.49809 4.92734 9.72082 4.97557 9.9633C5.0238 10.2058 4.99905 10.4571 4.90444 10.6855C4.80983 10.9139 4.64961 11.1091 4.44405 11.2465C4.23849 11.3838 3.99681 11.4572 3.74959 11.4572C3.41807 11.4572 3.10012 11.3255 2.8657 11.091C2.63128 10.8566 2.49959 10.5387 2.49959 10.2072Z",fill:"#4B5563"})),p7=e=>Re.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("g",{clipPath:"url(#clip0_1697_57490)"},Re.createElement("path",{d:"M12.0829 5.05834C13.1783 5.05834 14.0663 4.17037 14.0663 3.07501C14.0663 1.97964 13.1783 1.09167 12.0829 1.09167C10.9876 1.09167 10.0996 1.97964 10.0996 3.07501C10.0996 4.17037 10.9876 5.05834 12.0829 5.05834Z",fill:"#4B5563"}),Re.createElement("path",{d:"M3.75 11.4083C3.00832 11.4083 2.2833 11.6283 1.66661 12.0403C1.04993 12.4524 0.569282 13.038 0.285453 13.7233C0.00162482 14.4085 -0.0726377 15.1625 0.0720569 15.8899C0.216751 16.6173 0.573904 17.2855 1.09835 17.81C1.6228 18.3344 2.29098 18.6916 3.01841 18.8363C3.74584 18.981 4.49984 18.9067 5.18506 18.6229C5.87029 18.339 6.45596 17.8584 6.86801 17.2417C7.28007 16.625 7.5 15.9 7.5 15.1583C7.4978 14.1644 7.10201 13.2119 6.39922 12.5091C5.69644 11.8063 4.74389 11.4105 3.75 11.4083ZM3.75 17.2417C3.33796 17.2417 2.93517 17.1195 2.59256 16.8906C2.24996 16.6616 1.98294 16.3363 1.82525 15.9556C1.66757 15.5749 1.62631 15.156 1.7067 14.7519C1.78708 14.3478 1.9855 13.9765 2.27686 13.6852C2.56822 13.3938 2.93944 13.1954 3.34356 13.115C3.74769 13.0346 4.16658 13.0759 4.54726 13.2336C4.92794 13.3913 5.25331 13.6583 5.48223 14.0009C5.71115 14.3435 5.83333 14.7463 5.83333 15.1583C5.83333 15.4319 5.77945 15.7028 5.67475 15.9556C5.57005 16.2083 5.4166 16.438 5.22314 16.6315C5.02969 16.8249 4.80002 16.9784 4.54726 17.0831C4.2945 17.1878 4.02359 17.2417 3.75 17.2417Z",fill:"#4B5563"}),Re.createElement("path",{d:"M16.25 11.4083C15.5083 11.4083 14.7833 11.6283 14.1666 12.0403C13.5499 12.4524 13.0693 13.038 12.7855 13.7233C12.5016 14.4085 12.4274 15.1625 12.5721 15.8899C12.7168 16.6173 13.0739 17.2855 13.5984 17.81C14.1228 18.3344 14.791 18.6916 15.5184 18.8363C16.2458 18.981 16.9998 18.9067 17.6851 18.6229C18.3703 18.339 18.956 17.8584 19.368 17.2417C19.7801 16.625 20 15.9 20 15.1583C19.9978 14.1644 19.602 13.2119 18.8992 12.5091C18.1964 11.8063 17.2439 11.4105 16.25 11.4083ZM16.25 17.2417C15.838 17.2417 15.4352 17.1195 15.0926 16.8906C14.75 16.6616 14.4829 16.3363 14.3253 15.9556C14.1676 15.5749 14.1263 15.156 14.2067 14.7519C14.2871 14.3478 14.4855 13.9765 14.7769 13.6852C15.0682 13.3938 15.4394 13.1954 15.8436 13.115C16.2477 13.0346 16.6666 13.0759 17.0473 13.2336C17.4279 13.3913 17.7533 13.6583 17.9822 14.0009C18.2112 14.3435 18.3333 14.7463 18.3333 15.1583C18.3333 15.4319 18.2794 15.7028 18.1748 15.9556C18.0701 16.2083 17.9166 16.438 17.7231 16.6315C17.5297 16.8249 17.3 16.9784 17.0473 17.0831C16.7945 17.1878 16.5236 17.2417 16.25 17.2417Z",fill:"#4B5563"}),Re.createElement("path",{d:"M8.93421 9.52501L10.1425 8.14168C11.2897 8.9152 12.6423 9.32736 14.0259 9.32501H14.5842C14.9157 9.32501 15.2337 9.19331 15.4681 8.95889C15.7025 8.72447 15.8342 8.40653 15.8342 8.07501C15.8342 7.74349 15.7025 7.42555 15.4681 7.19113C15.2337 6.95671 14.9157 6.82501 14.5842 6.82501H14.0259C12.8486 6.82097 11.7201 6.35403 10.8842 5.52501C10.7716 5.40452 10.6345 5.30949 10.4821 5.24625C10.3298 5.18302 10.1657 5.15305 10.0009 5.15834C9.82975 5.16377 9.66156 5.2043 9.50675 5.2774C9.35193 5.35051 9.21378 5.45464 9.10087 5.58334L6.18421 8.91668C6.05958 9.04818 5.96401 9.20443 5.90372 9.37528C5.84342 9.54613 5.81973 9.72775 5.83421 9.90834C5.8651 10.0771 5.92973 10.2379 6.02424 10.3811C6.11874 10.5243 6.24118 10.6469 6.38421 10.7417L6.93421 11.1083C7.66321 11.5976 8.22851 12.2944 8.55687 13.1086C8.88523 13.9229 8.96153 14.8169 8.77587 15.675C8.72593 15.8397 8.71053 16.0129 8.73063 16.1838C8.75074 16.3547 8.80592 16.5196 8.89272 16.6682C8.97951 16.8168 9.09606 16.9459 9.23505 17.0474C9.37404 17.1489 9.53249 17.2205 9.70047 17.2579C9.86845 17.2953 10.0423 17.2976 10.2112 17.2647C10.3802 17.2318 10.5404 17.1643 10.6821 17.0666C10.8237 16.9688 10.9436 16.8429 11.0343 16.6966C11.125 16.5504 11.1846 16.387 11.2092 16.2167C11.4704 14.9998 11.3968 13.7349 10.9961 12.5566C10.5955 11.3782 9.88295 10.3305 8.93421 9.52501Z",fill:"#4B5563"})),Re.createElement("defs",null,Re.createElement("clipPath",{id:"clip0_1697_57490"},Re.createElement("rect",{width:20,height:20,fill:"white"})))),ule=e=>Re.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("g",{clipPath:"url(#clip0_3407_1703)"},Re.createElement("path",{d:"M11.3752 20.0001H11.2169C10.9704 19.965 10.7399 19.8576 10.5545 19.6915C10.369 19.5254 10.2371 19.308 10.1752 19.0668L8.33357 11.6668L0.941907 9.82512C0.699196 9.76473 0.479985 9.63338 0.312261 9.44785C0.144536 9.26231 0.0359065 9.031 0.000240204 8.78345C-0.034478 8.53494 0.0136427 8.28191 0.137161 8.06349C0.26068 7.84508 0.452715 7.67344 0.683574 7.57512L18.3336 0.0917817C18.5568 0.00128909 18.802 -0.0208838 19.0378 0.0280732C19.2737 0.0770302 19.4898 0.194913 19.6586 0.366782C19.8232 0.535068 19.9346 0.74804 19.9791 0.979189C20.0235 1.21034 19.999 1.44946 19.9086 1.66678L12.4086 19.2834C12.3263 19.4916 12.1843 19.6707 12.0004 19.7982C11.8165 19.9258 11.599 19.996 11.3752 20.0001Z",fill:"#525252"})),Re.createElement("defs",null,Re.createElement("clipPath",{id:"clip0_3407_1703"},Re.createElement("rect",{width:20,height:20,fill:"white"}))));function hle({selectionChanged:e,children:t}){const n=Re.useRef();return Re.useEffect(()=>{const o=d=>e(d.detail),{current:l}=n;return l.addEventListener("change",o),()=>l.removeEventListener("change",o)},[e]),dt.jsx("mi-dropdown",{ref:n,"data-sentry-element":"mi-dropdown","data-sentry-component":"Dropdown","data-sentry-source-file":"Dropdown.jsx",children:t})}function dle(e,t){const n=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((o,l)=>{const d=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${n}&access_token=${t}`;fetch(d).then(g=>g.status!==200?l():g.json()).then(g=>{e.geometry={type:"Point",coordinates:[g.features[0].geometry.coordinates[0],g.features[0].geometry.coordinates[1]]},o(e)}).catch(()=>{l()})})}const fle=DI({key:"unitSystem",get:({get:e})=>e(up)==="en-US"?"imperial":"metric"}),x_e="";function m7({onAccessibilityChanged:e}){const t=rn(uc),[n,o]=Dn(Rx);function l(d){o(d.target.checked),e&&e()}return dt.jsxs("div",{className:"accessibility","data-sentry-component":"Accessibility","data-sentry-source-file":"Accessibility.jsx",children:[dt.jsx("input",{className:"mi-toggle",type:"checkbox",checked:n,onChange:d=>l(d),style:{backgroundColor:n?t:""}}),dt.jsx("div",{children:MO("Avoid stairs and escalators")})]})}const pT=Jn({key:"searchExternalLocations",default:!0}),go={TO:"TO",FROM:"FROM"},ple="data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";function g7({onStartDirections:e,onBack:t,directionsToLocation:n,directionsFromLocation:o,onSetSize:l,isActive:d}){const{t:g}=ya(),s=Re.useRef(),v=Re.useRef(),E=Re.useRef(),z=Re.useRef(),O=rn(FI),j=rn(Ex),F=rn(pu),$=rn(VI),Y=rn(uc),[ie,K]=Re.useState(),[,J]=Dn(lT),[te,oe]=Re.useState(!0),[pe,me]=Re.useState(!1),[he,De]=Re.useState([]),[qe,Te]=Re.useState(),[ze,ht]=Re.useState(),mt=rn(Rx),vt=cp(),[Qe,Fe]=Re.useState(!1),[ot,Je]=Dn(jx),[He,Ae]=Re.useState(!1),je=rn(Dx),ye=rn(fle),[ee,fe,Ne,Ee]=c7(ze,qe,O,ot,mt),Xe=rn(pT);function ft(dn){return $===Bo.Google&&dn.properties.type==="google_places"?lle(dn):$===Bo.Mapbox&&dn.properties.type==="mapbox_places"?dle(dn,je):Promise.resolve(dn)}function it(dn){ie===go.TO?ft(dn).then(mn=>{Te(mn),E.current.setDisplayText(mn.properties.name)},()=>J(!1)):ie===go.FROM&&ft(dn).then(mn=>{ht(mn),z.current.setDisplayText(mn.properties.name)},()=>J(!1)),Fe(!1),me(!1),De([]),Ae(!1)}function ue(dn,mn){if(K(mn),J(!0),dn.length===0)oe(!1),Fe(!1),De([]);else{oe(!0),De(dn);const ti=dn.filter(Yt=>Yt.properties.type==="google_places").length>0;Fe(ti)}}function Dt(dn){typeof l=="function"&&l(dn)}function Gt(){const dn=dT(j);ie===go.TO?(E.current.setDisplayText(dn.properties.name),Te(dn)):ie===go.FROM&&(z.current.setDisplayText(dn.properties.name),ht(dn)),De([]),J(!0),oe(!0),Fe(!1),me(!1),Ae(!1)}function Et(dn){(ze==null?void 0:ze.id)==="USER_POSITION"&&dn===go.TO||(qe==null?void 0:qe.id)==="USER_POSITION"&&dn===go.FROM?Ae(!1):Ae(!0)}function We(dn){Et(dn)}function Ut(dn){K(dn),Jt(dn),J(!0),Fe(!1),Et(dn)}function wt(dn){Ae(!0),K(dn),en(dn),De([]),J(!0),Fe(!1),oe(!0)}function en(dn){dn===go.TO?Te():dn===go.FROM&&ht()}function Jt(dn){dn===go.TO?(De([]),E.current.getValue()&&(me(!0),E.current.triggerSearch())):dn===go.FROM&&(De([]),z.current.getValue()&&(me(!0),z.current.triggerSearch()))}function Nn(){(qe||ze)&&(ze?E.current.setDisplayText(ze.properties.name):E.current.clear(),qe?z.current.setDisplayText(qe.properties.name):z.current.clear(),Te(ze),ht(qe))}function xn(){ht(),z.current.setDisplayText(""),t()}return Re.useEffect(()=>()=>{De([]),Te(),ht()},[]),Re.useEffect(()=>{var mn;Dt(Sr.MAX);let dn=!1;if((o==null?void 0:o.id)==="USER_POSITION"&&(n==null?void 0:n.id)==="USER_POSITION"&&(n=void 0),n!=null&&n.properties&&!F&&(E.current.setDisplayText(n.properties.name),Te(n)),o!=null&&o.properties?ze||(z.current.setDisplayText(o.properties.name),ht(o),dn=!0):K(go.FROM),d&&!((mn=z.current)!=null&&mn.getValue())){const ti=s.current.closest(".sheet");if(ti?ti.addEventListener("transitionend",()=>{o!=="USER_POSITION_PENDING"&&(n==null?void 0:n.id)!=="USER_POSITION"&&z.current.focusInput()},{once:!0}):o!=="USER_POSITION_PENDING"&&(n==null?void 0:n.id)!=="USER_POSITION"&&z.current.focusInput(),j&&!ze&&(n==null?void 0:n.id)!=="USER_POSITION"&&!dn){const Yt=dT(j);z.current.setDisplayText(Yt.properties.name),ht(Yt),J(!0),oe(!0),De([])}}},[d,n,o]),Re.useEffect(()=>{$===Bo.Mapbox&&(Fe(!1),De(he.filter(dn=>dn.properties.type!=="google_places")))},[$]),Re.useEffect(()=>{F&&(Te(F),E.current.setDisplayText(F.properties.name))},[F]),dt.jsxs("div",{className:"wayfinding",ref:s,"data-sentry-component":"Wayfinding","data-sentry-source-file":"Wayfinding.jsx",children:[dt.jsxs("div",{className:"wayfinding__directions",children:[dt.jsx("div",{className:"wayfinding__title",children:g("Directions")}),dt.jsx("button",{className:"wayfinding__close",onClick:()=>xn(),"aria-label":"Close",children:dt.jsx(kx,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"Wayfinding.jsx"})}),dt.jsxs("div",{className:"wayfinding__locations",children:[dt.jsxs("label",{className:"wayfinding__label",children:[dt.jsx("span",{children:g("Choose departure")}),dt.jsx(hT,{ref:z,mapsindoors:!0,google:$===Bo.Google&&Xe,mapbox:$===Bo.Mapbox&&Xe,placeholder:g("Choose departure"),results:dn=>ue(dn,go.FROM),clicked:()=>Ut(go.FROM),cleared:()=>wt(go.FROM),changed:()=>We(go.FROM),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]}),dt.jsx("button",{onClick:()=>Nn(),"aria-label":g("Switch"),className:"wayfinding__switch",children:dt.jsx(sle,{"data-sentry-element":"SwitchIcon","data-sentry-source-file":"Wayfinding.jsx"})}),dt.jsxs("label",{className:"wayfinding__label",children:[dt.jsx("span",{children:g("Choose destination")}),dt.jsx(hT,{ref:E,mapsindoors:!0,google:$===Bo.Google&&Xe,mapbox:$===Bo.Mapbox&&Xe,placeholder:g("Choose destination"),results:dn=>ue(dn,go.TO),clicked:()=>Ut(go.TO),cleared:()=>wt(go.TO),changed:()=>We(go.TO),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]})]})]}),!Ne&&dt.jsx("p",{className:"wayfinding__error",children:g("No route found")}),!te&&!He&&dt.jsx("p",{className:"wayfinding__error",children:g("Nothing was found")}),j&&He&&dt.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Gt(),children:[dt.jsx(ule,{}),g("My position")]}),he.length>0&&dt.jsx("div",{className:"wayfinding__scrollable",...vt,children:dt.jsxs("div",{className:"wayfinding__results",children:[he.map(dn=>dt.jsx(cT,{icon:dn.properties.type==="google_places"||dn.properties.type==="mapbox_places"?ple:void 0,location:dn,locationClicked:mn=>it(mn)},dn.id)),Qe&&dt.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:cle})]})}),!pe&&!He&&Ne&&!Qe&&ze&&qe&&dt.jsxs("div",{className:"wayfinding__details",ref:v,children:[dt.jsxs("div",{className:"wayfinding__settings",children:[dt.jsx(m7,{}),dt.jsx("div",{className:"wayfinding__travel",children:dt.jsxs(hle,{selectionChanged:dn=>Je(dn[0].value),children:[dt.jsxs("mi-dropdown-item",{selected:!0,value:Yh.WALKING,children:[dt.jsx(d7,{}),g("Walk")]}),dt.jsxs("mi-dropdown-item",{value:Yh.DRIVING,children:[dt.jsx(f7,{}),g("Drive")]}),dt.jsxs("mi-dropdown-item",{value:Yh.BICYCLING,children:[dt.jsx(p7,{}),g("Bike")]})]})})]}),dt.jsx("hr",{}),dt.jsxs("div",{className:"wayfinding__info",children:[dt.jsxs("div",{className:"wayfinding__distance",children:[ot===Yh.WALKING&&dt.jsx(d7,{}),ot===Yh.DRIVING&&dt.jsx(f7,{}),ot===Yh.BICYCLING&&dt.jsx(p7,{}),dt.jsxs("div",{children:[g("Distance"),":"]}),dt.jsx("div",{className:"wayfinding__meters",children:ee&&Ee&&dt.jsx("mi-distance",{unit:ye,meters:ee})})]}),dt.jsxs("div",{className:"wayfinding__time",children:[dt.jsx(ole,{}),dt.jsxs("div",{children:[g("Estimated time"),":"]}),dt.jsx("div",{className:"wayfinding__minutes",children:fe&&Ee&&dt.jsx("mi-time",{translations:JSON.stringify({days:g("d"),hours:g("h"),minutes:g("min")}),seconds:fe})})]})]}),dt.jsx("button",{className:"wayfinding__button",style:{background:Y},onClick:()=>e(),disabled:!Ee,children:g("Go!")})]})]})}const b_e="",mle=e=>Re.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("g",{opacity:.12},Re.createElement("path",{d:"M16.3335 5.36667C16.3335 4.71327 16.3335 4.38657 16.4607 4.13701C16.5725 3.91749 16.7509 3.73901 16.9705 3.62715C17.22 3.5 17.5467 3.5 18.2002 3.5H22.6335C23.2869 3.5 23.6136 3.5 23.8632 3.62715C24.0827 3.73901 24.2611 3.91749 24.373 4.13701C24.5002 4.38657 24.5002 4.71327 24.5002 5.36667V9.8C24.5002 10.4534 24.5002 10.7801 24.373 11.0297C24.2611 11.2492 24.0827 11.4277 23.8632 11.5395C23.6136 11.6667 23.2869 11.6667 22.6335 11.6667H18.2002C17.5467 11.6667 17.22 11.6667 16.9705 11.5395C16.7509 11.4277 16.5725 11.2492 16.4607 11.0297C16.3335 10.7801 16.3335 10.4534 16.3335 9.8V5.36667Z",fill:"#1F2937"}),Re.createElement("path",{d:"M3.5 5.36667C3.5 4.71327 3.5 4.38657 3.62715 4.13701C3.73901 3.91749 3.91749 3.73901 4.13701 3.62715C4.38657 3.5 4.71327 3.5 5.36667 3.5H9.8C10.4534 3.5 10.7801 3.5 11.0297 3.62715C11.2492 3.73901 11.4277 3.91749 11.5395 4.13701C11.6667 4.38657 11.6667 4.71327 11.6667 5.36667V9.8C11.6667 10.4534 11.6667 10.7801 11.5395 11.0297C11.4277 11.2492 11.2492 11.4277 11.0297 11.5395C10.7801 11.6667 10.4534 11.6667 9.8 11.6667H5.36667C4.71327 11.6667 4.38657 11.6667 4.13701 11.5395C3.91749 11.4277 3.73901 11.2492 3.62715 11.0297C3.5 10.7801 3.5 10.4534 3.5 9.8V5.36667Z",fill:"#1F2937"}),Re.createElement("path",{d:"M3.5 18.2C3.5 17.5466 3.5 17.2199 3.62715 16.9704C3.73901 16.7508 3.91749 16.5724 4.13701 16.4605C4.38657 16.3334 4.71327 16.3334 5.36667 16.3334H9.8C10.4534 16.3334 10.7801 16.3334 11.0297 16.4605C11.2492 16.5724 11.4277 16.7508 11.5395 16.9704C11.6667 17.2199 11.6667 17.5466 11.6667 18.2V22.6334C11.6667 23.2868 11.6667 23.6135 11.5395 23.863C11.4277 24.0826 11.2492 24.261 11.0297 24.3729C10.7801 24.5 10.4534 24.5 9.8 24.5H5.36667C4.71327 24.5 4.38657 24.5 4.13701 24.3729C3.91749 24.261 3.73901 24.0826 3.62715 23.863C3.5 23.6135 3.5 23.2868 3.5 22.6334V18.2Z",fill:"#1F2937"})),Re.createElement("path",{d:"M7.58333 7.58333H7.595M20.4167 7.58333H20.4283M7.58333 20.4167H7.595M15.1667 15.1667H15.1783M20.4167 20.4167H20.4283M19.8333 24.5H24.5V19.8333M16.3333 19.25V24.5M24.5 16.3333H19.25M18.2 11.6667H22.6333C23.2868 11.6667 23.6134 11.6667 23.863 11.5395C24.0826 11.4277 24.261 11.2492 24.3728 11.0297C24.5 10.7801 24.5 10.4534 24.5 9.8V5.36667C24.5 4.71327 24.5 4.38657 24.3728 4.13701C24.261 3.91749 24.0826 3.73901 23.863 3.62715C23.6134 3.5 23.2868 3.5 22.6333 3.5H18.2C17.5465 3.5 17.2199 3.5 16.9703 3.62715C16.7508 3.73901 16.5724 3.91749 16.4605 4.13701C16.3333 4.38657 16.3333 4.71327 16.3333 5.36667V9.8C16.3333 10.4534 16.3333 10.7801 16.4605 11.0297C16.5724 11.2492 16.7508 11.4277 16.9703 11.5395C17.2199 11.6667 17.5465 11.6667 18.2 11.6667ZM5.36667 11.6667H9.8C10.4534 11.6667 10.7801 11.6667 11.0297 11.5395C11.2492 11.4277 11.4277 11.2492 11.5395 11.0297C11.6667 10.7801 11.6667 10.4534 11.6667 9.8V5.36667C11.6667 4.71327 11.6667 4.38657 11.5395 4.13701C11.4277 3.91749 11.2492 3.73901 11.0297 3.62715C10.7801 3.5 10.4534 3.5 9.8 3.5H5.36667C4.71327 3.5 4.38657 3.5 4.13701 3.62715C3.91749 3.73901 3.73901 3.91749 3.62715 4.13701C3.5 4.38657 3.5 4.71327 3.5 5.36667V9.8C3.5 10.4534 3.5 10.7801 3.62715 11.0297C3.73901 11.2492 3.91749 11.4277 4.13701 11.5395C4.38657 11.6667 4.71327 11.6667 5.36667 11.6667ZM5.36667 24.5H9.8C10.4534 24.5 10.7801 24.5 11.0297 24.3728C11.2492 24.261 11.4277 24.0826 11.5395 23.863C11.6667 23.6134 11.6667 23.2868 11.6667 22.6333V18.2C11.6667 17.5465 11.6667 17.2199 11.5395 16.9703C11.4277 16.7508 11.2492 16.5724 11.0297 16.4605C10.7801 16.3333 10.4534 16.3333 9.8 16.3333H5.36667C4.71327 16.3333 4.38657 16.3333 4.13701 16.4605C3.91749 16.5724 3.73901 16.7508 3.62715 16.9703C3.5 17.2199 3.5 17.5465 3.5 18.2V22.6333C3.5 23.2868 3.5 23.6134 3.62715 23.863C3.73901 24.0826 3.91749 24.261 4.13701 24.3728C4.38657 24.5 4.71327 24.5 5.36667 24.5Z",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),M_e="",gle=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),yle=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),mT=Jn({key:"activeStep",default:0}),_1=Jn({key:"substepsToggled",default:!1}),_le=Jn({key:"triggerSubsteps",default:!1}),v1=()=>{const e=rn(dc),t=$h();return!(!e||e&&!t)},vle=Re.forwardRef(({totalSteps:e,activeStep:t,previous:n,originLocation:o,directions:l},d)=>{var F;const g=Re.useRef(),{t:s}=ya(),[v,E]=Dn(_1),[,z]=Dn(_le),O=v1();Re.useImperativeHandle(d,()=>({openSubsteps(){g.current.openSubsteps()},closeSubsteps(){g.current.closeSubsteps()}}));const j={walk:s("Walk"),bike:s("Bike"),transit:s("Transit"),drive:s("Drive"),destination:s("You have arrived"),leave:s("Leave"),from:s("From"),park:s("Park"),at:s("at"),building:s("Building"),venue:s("Venue"),takeStaircaseToLevel:s("Take staircase to level"),takeLadderToLevel:s("Take the ladder to level"),takeElevatorToLevel:s("Take elevator to level"),takeEscalatorToLevel:s("Take escalator to level"),takeWheelchairLiftToLevel:s("Take wheelchair lift to level"),takeWheelchairRampToLevel:s("Take wheelchair ramp to level"),exit:s("Exit"),enter:s("Enter"),stops:s("stops"),andContinue:s("and continue"),continueStraightAhead:s("Continue straight ahead"),goLeft:s("Go left"),goSharpLeft:s("Go sharp left"),goSlightLeft:s("Go slight left"),goRight:s("Go right"),goSharpRight:s("Go sharp right"),goSlightRight:s("Go slight right"),turnAround:s("Turn around"),days:s("d"),hours:s("h"),minutes:s("min")};return Re.useEffect(()=>{const{current:$}=g;function Y(){z(!0),E(!v)}return $.addEventListener("substepsToggled",Y),()=>{$.removeEventListener("substepsToggled",Y)}},[v]),dt.jsx("mi-route-instructions-step",{ref:g,"show-toggle-button":!O,step:JSON.stringify(e[t]),translations:JSON.stringify(j),"destination-location":l==null?void 0:l.destinationLocation.properties.name,"from-travel-mode":(n==null?void 0:n.travel_mode)??"","from-route-context":(n==null?void 0:n.route_context)??((F=o==null?void 0:o.properties)==null?void 0:F.name)??""})}),xle=()=>{const e=rn(Zs),t=rn(YI);return()=>{if(e&&t){const o=t.modules.map(l=>l.toLowerCase()).includes("z22");e.setZoom(o?22:21)}}},y7=Jn({key:"isDestinationStep",default:!1});function ble({steps:e,onNextStep:t,onPreviousStep:n,originLocation:o,isOpen:l,onFitCurrentDirections:d}){const{t:g}=ya(),s=cp(),v=Re.useRef(),[E,z]=Re.useState(),[O,j]=Dn(mT),[F,$]=Re.useState(),Y=rn(Ox),ie=rn(Zs),K=rn(_1),[,J]=Dn(y7),te=xle(),oe=v1();Re.useEffect(()=>{const De={...e[e.length-1]};De.travel_mode="DESTINATION",De.steps=null,e.push(De),$(e)},[e]),Re.useEffect(()=>{var he,De;if(l){if(O===(F==null?void 0:F.length)-1&&(Y!=null&&Y.destinationLocation)){J(!0);const qe=Y==null?void 0:Y.destinationLocation,Te=(qe==null?void 0:qe.geometry.type)==="Point"?qe==null?void 0:qe.geometry.coordinates:qe==null?void 0:qe.properties.anchor.coordinates;ie.getMapView().setCenter({lat:Te[1],lng:Te[0]}),te()}else J(!1);K===!1?(he=v.current)==null||he.closeSubsteps():K===!0&&((De=v.current)==null||De.openSubsteps())}},[l,O,F,K]);function pe(){z(F[O]),j(O+1),t()}function me(){z(F[O-2]),j(O-1),O===(F==null?void 0:F.length)-1?d():n()}return dt.jsx("div",{className:"route-instructions prevent-scroll",...s,"data-sentry-component":"RouteInstructions","data-sentry-source-file":"RouteInstructions.jsx",children:F&&dt.jsxs(dt.Fragment,{children:[dt.jsx(vle,{totalSteps:F,activeStep:O,previous:E,directions:Y,originLocation:o,ref:v}),dt.jsx("div",{className:`route-instructions__footer ${oe?"route-instructions__footer--kiosk":""}`,children:dt.jsxs("div",{className:"route-instructions__actions",children:[dt.jsx("button",{className:`route-instructions__button ${oe?"route-instructions__button--kiosk":""}`,onClick:()=>me(),"aria-label":g("Previous"),disabled:O===0,children:dt.jsx(yle,{})}),dt.jsx("div",{className:"route-instructions__overview",children:g("StepYofX",{activeStep:O+1,totalSteps:F.length})}),dt.jsx("button",{className:`route-instructions__button ${oe?"route-instructions__button--kiosk":""}`,onClick:()=>pe(),"aria-label":g("Next"),disabled:O===F.length-1,children:dt.jsx(gle,{})})]})})]})})}const Bx=Jn({key:"showQRCodeDialog",default:!1});let lo;function _7({isOpen:e,onBack:t,onSetSize:n,snapPointSwiped:o,onRouteFinished:l}){const{t:d}=ya(),[g,s]=Re.useState(null),v=Re.useRef(null),[E,z]=Re.useState(),O=rn(Zs),j=rn(jx),F=rn(Ox),[,$]=Dn(mT),[Y,ie]=Dn(_1),K=rn(dc),J=$h(),[,te]=Dn(Bx),oe=rn(y7),pe=rn(uc),me=v1(),he=rn(Px);Re.useEffect(()=>()=>{s(null)},[]),Re.useEffect(()=>{if(s(null),e&&F){z(F.totalTime);const Je=Math.min(window.innerHeight,window.innerWidth)*.06;lo==null||lo.setRoute(null),lo=null,Promise.all([De(Je),qe(Je)]).then(([He,Ae])=>{lo=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:O,fitBoundsPadding:{top:Je,bottom:He,left:Ae,right:Je}}),lo.setRoute(F.directionsResult).then(()=>{lo.setStepIndex(0)}),v.current.location=F.destinationLocation,F.destinationLocation.id==="USER_POSITION"?s(null):s(O.getDisplayRule(F.destinationLocation))})}},[e,F,O,j]);function De(Je){return new Promise(He=>{if(J)K?ZI().then(Ae=>He(Ae)):He(Je);else return $O().then(Ae=>He(Ae))})}function qe(Je){return new Promise(He=>{J?K?He(Je):qI().then(Ae=>He(Ae)):He(Je)})}Re.useEffect(()=>{!e&&lo&&vt()},[e]);function Te(){return F?F.directionsResult.legs.reduce((Je,He)=>{for(const Ae in He.steps){const je=He.steps[Ae];Je.push(je)}return Je},[]):[]}function ze(){lo&&lo.nextStep()}function ht(){lo&&lo.previousStep()}function mt(){lo&&lo.setStepIndex(lo.getStepIndex(),lo.getLegIndex())}function vt(){lo==null||lo.setRoute(null),lo=null}function Qe(){$(0),ie(!1),ot(Sr.FIT)}function Fe(){Qe(),vt(),t()}function ot(Je){typeof n=="function"&&n(Je)}return Re.useEffect(()=>{ot(Y?Sr.MAX:Sr.FIT)},[Y]),Re.useEffect(()=>{e&&o&&ie(o===Sr.MAX)},[e,o]),dt.jsxs("div",{className:"directions",style:{display:me?"block":"grid"},"data-sentry-component":"Directions","data-sentry-source-file":"Directions.jsx",children:[dt.jsxs("div",{className:"directions__steps",children:[dt.jsx("div",{className:"directions__minutes",children:E&&dt.jsx("mi-time",{translations:JSON.stringify({days:d("d"),hours:d("h"),minutes:d("min")}),seconds:E})}),dt.jsx(ble,{steps:Te(),originLocation:F==null?void 0:F.originLocation,onNextStep:()=>ze(),isOpen:e,onPreviousStep:()=>ht(),onFitCurrentDirections:()=>mt(),"data-sentry-element":"RouteInstructions","data-sentry-source-file":"Directions.jsx"})]}),me&&dt.jsxs(dt.Fragment,{children:[dt.jsx("hr",{}),dt.jsxs("div",{className:"directions__kiosk",children:[dt.jsx(m7,{onAccessibilityChanged:()=>Qe()}),dt.jsxs("button",{className:"directions__qr-code",onClick:()=>te(!0),children:[dt.jsx(mle,{}),d("Scan QR code")]})]})]}),dt.jsxs("div",{className:"directions__actions",children:[dt.jsx("div",{className:"directions__details",children:(F==null?void 0:F.destinationLocation)&&dt.jsxs("div",{className:"directions__info",children:[g&&F.destinationLocation.id!=="USER_POSITION"&&dt.jsx("div",{className:"directions__icon",children:dt.jsx("img",{alt:"",src:g.icon.src?g.icon.src:g.icon})}),dt.jsxs("div",{className:"directions__content",children:[dt.jsx("div",{className:"directions__name",children:F==null?void 0:F.destinationLocation.properties.name}),dt.jsx("mi-location-info",{ref:v,"show-external-id":he})]})]})}),oe?dt.jsx("button",{className:"directions__finish",onClick:()=>l(),style:{background:pe},children:d("Finish route")}):dt.jsx("button",{className:"directions__cancel",onClick:()=>Fe(),children:d("Cancel route")})]})]})}const w_e="",v7=Jn({key:"useKeyboard",default:!1}),Mle=Re.forwardRef(({searchInputElement:e},t)=>{const n=Re.useRef(),o=rn(up);return Re.useImperativeHandle(t,()=>({clearInputField(){n.current.clearInputField()}})),Re.useEffect(()=>{const{current:l}=n;e&&(l.inputElement=e)},[e]),dt.jsx("mi-keyboard",{language:o,ref:n})}),Fx=Jn({key:"searchResults",default:[]}),gT=Jn({key:"selectedCategory",default:void 0}),I_e="",wle=e=>Re.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),Ile=e=>Re.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));function Tle(){return new Promise(e=>{const t=document.querySelector(".chip--active");if(t)e(t);else{const n=new MutationObserver(()=>{const o=document.querySelector(".chip--active");o&&(n.disconnect(),e(o))});n.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const x7=Jn({key:"category",default:void 0});function Sle({onSetSize:e,getFilteredLocations:t,searchFieldRef:n,isOpen:o}){const l=Re.useRef(),d=rn(rp),g=$h(),[s,v]=Re.useState(!0),[E,z]=Re.useState(!1),O=rn(uc),[j,F]=Dn(gT),[,$]=Dn(Fx),[,Y]=Dn(Cx),ie=cp(),[K,J]=Re.useState(),te=rn(a7),oe=rn(x7),pe=rn(Zs),me=u7(pe,o);function he(ze){typeof e=="function"&&e(ze)}function De(ze){F(ze),he(Sr.MAX),j===ze?($([]),F(null),Y([]),n.current.getValue()&&n.current.triggerSearch()):n.current.getValue()?n.current.triggerSearch():t(ze)}function qe(){const{scrollLeft:ze,scrollWidth:ht,clientWidth:mt}=(l==null?void 0:l.current)||{};ze===0?v(!0):s&&v(!1),ht-ze===mt?z(!0):ht-ze>mt&&z(!1)}function Te(ze){l==null||l.current.scroll({left:(l==null?void 0:l.current.scrollLeft)+ze,behavior:"smooth"})}return Re.useEffect(()=>{var ze;me&&j&&(F(null),$([]),Y([]),he(Sr.FIT),(ze=n.current)!=null&&ze.getValue()&&n.current.clear())},[me]),Re.useEffect(()=>{const ze=()=>{qe()};let ht;return l.current&&(ht=new ResizeObserver(ze),ht.observe(l.current),l.current.addEventListener("scroll",qe)),()=>{var mt;J(),ht==null||ht.disconnect(),(mt=l.current)==null||mt.removeEventListener("scroll",qe)}},[]),Re.useEffect(()=>{j&&(Tle().then(ze=>J(ze)),he(Sr.MAX))},[j]),Re.useEffect(()=>{K&&oe!==void 0&&(g||!g&&te)&&K.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[K,oe,te]),dt.jsx("div",{className:"categories prevent-scroll",...ie,"data-sentry-component":"Categories","data-sentry-source-file":"Categories.jsx",children:d.length>0&&dt.jsxs(dt.Fragment,{children:[g&&dt.jsx("button",{className:"categories__scroll-button",onClick:()=>Te(-300),disabled:s,children:dt.jsx(Ile,{})}),dt.jsx("div",{ref:l,className:"categories__list",children:d==null?void 0:d.map(([ze,ht])=>dt.jsx("mi-chip",{icon:ht.iconUrl,"background-color":O,content:ht.displayName,active:j===ze,onClick:()=>De(ze)},ze))}),g&&dt.jsx("button",{className:"categories__scroll-button",onClick:()=>Te(300),disabled:E,children:dt.jsx(wle,{})})]})})}const Ele=e=>Re.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{opacity:.12,d:"M3 7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8Z",fill:"#111827",style:{fill:"#111827",fill:"color(display-p3 0.0667 0.0941 0.1529)",fillOpacity:1}}),Re.createElement("path",{d:"M12 16V12M12 8H12.01M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#111827",style:{stroke:"#111827",stroke:"color(display-p3 0.0667 0.0941 0.1529)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Vx=Jn({key:"isLegendDialogVisible",default:!1}),b7=DI({key:"legendFields",get:({get:e})=>{const t=e(dc);if(!(t!=null&&t.properties.fields))return;const n=[];for(const l of Object.keys(t.properties.fields)){const d=parseInt(l.charAt(0));if(!Number.isInteger(d))continue;const g=n.find(E=>E.index===d),s=l.toLowerCase().includes("legendheading"),v=l.toLowerCase().includes("legendcontent");if(g)s?g.heading=t.properties.fields[l].value:v&&(g.content=t.properties.fields[l].value);else{const E={index:d,heading:s?t.properties.fields[l].value:null,content:v?t.properties.fields[l].value:null};n.push(E)}}return n.sort((l,d)=>l.index-d.index)}}),yT=Jn({key:"initialVenueName",default:null});function M7({onSetSize:e,isOpen:t}){const{t:n}=ya(),o=Re.useRef(),l=Re.useRef(),d=Re.useRef(),g=Re.useRef(),s=100,[v,E]=Re.useState(!0),[z,O]=Dn(Fx),j=rn(rp),F=rn(v7),[$,Y]=Re.useState(!1),[ie,K]=Dn(gT),J=cp(),[te,oe]=Re.useState(),pe=rn(Zs),[,me]=Dn(Cx),[,he]=Dn(pu),[,De]=Dn(oT),[qe,Te]=Dn(op),ze=rn(up),ht=$h(),mt=rn(dc),[vt,Qe]=Re.useState(!1),Fe=rn(uT),ot=v1(),[,Je]=Dn(Vx),[He,Ae]=Re.useState(!1),je=rn(b7),ye=rn(Ux),ee=rn(m1),fe=rn(yT);function Ne(wt){var en;window.mapsindoors.services.LocationsService.getLocations({categories:wt,venue:ye||(en=ee.find(Jt=>Jt.name.toLowerCase()===qe.toLowerCase()))==null?void 0:en.name}).then(Jt=>Xe(Jt,!0))}function Ee(wt){typeof e=="function"&&e(wt)}function Xe(wt,en=!1){var Nn;const Jt=wt.slice(0,s);O(Jt),me(Jt),Y(Jt.length===0),wt&&en&&ft(wt),ot&&((Nn=o.current)==null||Nn.addEventListener("transitionend",()=>{var xn;(xn=l==null?void 0:l.current)==null||xn.updateScrollButtons()},{once:!0}))}function ft(wt){if(!pe.goTo)return;const en=pe.getFloor(),Jt={type:"FeatureCollection",features:wt.filter(Nn=>parseInt(Nn.properties.floor,10)===parseInt(en,10)).filter(Nn=>Nn.properties.venueId.toLowerCase()===qe.toLowerCase()).map(Nn=>({type:"Feature",geometry:Nn.geometry,properties:Nn.properties}))};Jt.features.length>0&&Promise.all([Et(),We()]).then(([Nn,xn])=>{pe.goTo(Jt,{maxZoom:22,padding:{bottom:Nn,left:xn,top:0,right:0}})})}function it(){O([]),Y(!1),ie&&Ne(ie),me([]),So(g.current)||g.current.clearInputField()}function ue(){Ee(Sr.MAX),E(!1),d.current.getInputField();const wt=o.current.closest(".sheet");wt?wt.addEventListener("transitionend",()=>{d.current.focusInput()},{once:!0}):d.current.focusInput()}function Dt(wt){oe(wt)}function Gt(wt){he(wt),wt.properties.venueId.toLowerCase()!==qe.toLowerCase()&&(Te(wt.properties.venueId),De(!0));const en=pe.getFloor(),Jt=wt.properties.floor;Jt!==en&&pe.setFloor(Jt),Promise.all([Et(),We()]).then(([Nn,xn])=>{pe.goTo(wt,{maxZoom:22,padding:{bottom:Nn,left:xn,top:0,right:0}})})}function Et(){return new Promise(wt=>{ht?mt?ZI().then(en=>wt(en)):wt(0):wt(200)})}function We(){return new Promise(wt=>{ht?mt?wt(0):qI().then(en=>wt(en)):wt(0)})}function Ut(){if(z.length>0){let wt;return ht?wt=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":wt="100%",{display:"flex",flexDirection:"column",maxHeight:wt,overflow:"hidden"}}else return{minHeight:j.length>0?"136px":"80px"}}return Re.useEffect(()=>()=>{oe()},[]),Re.useEffect(()=>{ie&&qe!==fe&&(O([]),K(null))},[qe]),Re.useEffect(()=>{ie&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{d.current.triggerSearch()})},[ze]),Re.useEffect(()=>(pe==null||pe.on("mouseenter",Dt),()=>{pe==null||pe.off("mouseenter",Dt)}),[pe]),Re.useEffect(()=>{if(t&&ot&&z.length>0){const wt=document.querySelector(".mapsindoors-map .search__results");l.current.scrollContainerElementRef=wt}},[z,t]),Re.useEffect(()=>{if(F){const wt=en=>{en.target.closest("mi-keyboard")||en.target.tagName.toUpperCase()==="MI-SEARCH"||en.target.tagName.toUpperCase()==="INPUT"?Qe(!0):Qe(!1)};return window.addEventListener("click",wt,!1),()=>{window.removeEventListener("click",wt,!1)}}},[F]),Re.useEffect(()=>{ie&&Ne(ie)},[ie]),Re.useEffect(()=>{mt&&Ae(je.length>0)},[mt]),dt.jsxs("div",{className:"search",ref:o,style:Ut(),"data-sentry-component":"Search","data-sentry-source-file":"Search.jsx",children:[dt.jsxs("div",{className:"search__info",style:{gridTemplateColumns:ot&&He?"min-content 1fr":"auto"},children:[ot&&He&&dt.jsx("button",{className:"search__legend",onClick:()=>Je(!0),children:dt.jsx(Ele,{})}),dt.jsxs("label",{className:"search__label",children:[dt.jsx("span",{children:n("Search by name, category, building...")}),dt.jsx(hT,{ref:d,mapsindoors:!0,placeholder:n("Search by name, category, building..."),results:wt=>Xe(wt),clicked:()=>ue(),cleared:()=>it(),category:ie,disabled:v,"data-sentry-element":"SearchField","data-sentry-source-file":"Search.jsx"})]})]}),j.length>0&&dt.jsx(Sle,{onSetSize:e,searchFieldRef:d,getFilteredLocations:wt=>Ne(wt),isOpen:!!ie}),$&&dt.jsxs("p",{className:"search__error",children:[" ",n("Nothing was found")]}),z.length>0&&dt.jsx("div",{className:"search__results prevent-scroll",...J,children:z.map(wt=>dt.jsx(cT,{location:wt,locationClicked:()=>Gt(wt),isHovered:(wt==null?void 0:wt.id)===(te==null?void 0:te.id)},wt.id))}),vt&&ht&&dt.jsx(Mle,{ref:g,searchInputElement:Fe}),t&&ot&&z.length>0&&Z5.createPortal(dt.jsx("div",{className:"search__scroll-buttons",children:dt.jsx("mi-scroll-buttons",{ref:l})}),document.querySelector(".mapsindoors-map"))]})}const T_e="";function w7({onBack:e,onLocationClick:t,locations:n,onSetSize:o}){const{t:l}=ya(),d=cp();function g(s){typeof o=="function"&&o(s)}return Re.useEffect(()=>{g(Sr.FIT)},[]),dt.jsxs("div",{className:"locations-list","data-sentry-component":"LocationsList","data-sentry-source-file":"LocationsList.jsx",children:[dt.jsxs("div",{className:"locations-list__header",children:[dt.jsxs("div",{className:"locations-list__title",children:[n==null?void 0:n.length," ",l("Locations")]}),dt.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":l("Close"),children:dt.jsx(kx,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"LocationsList.jsx"})})]}),dt.jsx("div",{className:"locations-list__scrollable prevent-scroll",...d,children:dt.jsx("div",{className:"locations-list__list",children:n==null?void 0:n.map(s=>dt.jsx(cT,{location:s,locationClicked:v=>t(v)},s.id))})})]})}function Dle({directionsFromLocation:e,directionsToLocation:t,pushAppView:n,currentAppView:o,appViews:l,onRouteFinished:d}){const g=Re.useRef(),[s,v]=Re.useState(),[E,z]=Re.useState(),[O,j]=Re.useState(),[F,$]=Re.useState(),[Y,ie]=Re.useState(),[K,J]=Re.useState(),[te,oe]=Re.useState(),pe=rn(rp),[me,he]=Dn(pu),[De,qe]=Dn(Ax),[,Te]=Dn(Lx);Re.useEffect(()=>{e&&t&&o===l.DIRECTIONS||(e&&t||e?n(l.WAYFINDING):me?n(l.LOCATION_DETAILS,me):(De==null?void 0:De.length)>1?n(l.EXTERNALIDS):(De==null?void 0:De.length)===1?(he(De[0]),Te(De[0].id)):n(l.SEARCH))},[me,e,t,De]);function ze(){(De==null?void 0:De.length)>1?(n(l.EXTERNALIDS),he()):(De==null?void 0:De.length)===1?(n(l.SEARCH),he(),qe([])):(n(l.SEARCH),he())}function ht(){n(l.SEARCH),he(),qe([])}const mt=[dt.jsx(y1,{minHeight:pe.length>0?"136":"80",preferredSizeSnapPoint:K,isOpen:o===l.SEARCH,children:dt.jsx(M7,{onSetSize:vt=>J(vt)})},"A"),dt.jsx(y1,{minHeight:"200",isOpen:o===l.EXTERNALIDS,preferredSizeSnapPoint:te,children:dt.jsx(w7,{onSetSize:vt=>oe(vt),onBack:()=>ht(),locations:De,onLocationClick:vt=>he(vt),onLocationsFiltered:vt=>qe(vt)})},"B"),dt.jsx(y1,{minHeight:"128",preferredSizeSnapPoint:s,isOpen:o===l.LOCATION_DETAILS,onSwipedToSnapPoint:vt=>z(vt),children:dt.jsx(h7,{onSetSize:vt=>v(vt),onStartWayfinding:()=>n(l.WAYFINDING),onBack:()=>ze(),snapPointSwiped:E,onStartDirections:()=>n(l.DIRECTIONS),isOpen:o===l.LOCATION_DETAILS})},"C"),dt.jsx(y1,{minHeight:"238",isOpen:o===l.WAYFINDING,preferredSizeSnapPoint:Y,children:dt.jsx(g7,{onSetSize:vt=>ie(vt),onStartDirections:()=>n(l.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>n(me?l.LOCATION_DETAILS:l.SEARCH),isActive:o===l.WAYFINDING})},"D"),dt.jsx(y1,{minHeight:"220",isOpen:o===l.DIRECTIONS,preferredSizeSnapPoint:O,onSwipedToSnapPoint:vt=>$(vt),children:dt.jsx(_7,{onSetSize:vt=>j(vt),isOpen:o===l.DIRECTIONS,onBack:()=>n(l.WAYFINDING),snapPointSwiped:F,onRouteFinished:()=>d()})},"E")];return dt.jsx("div",{ref:g,className:"bottom-sheets","data-sentry-component":"BottomSheet","data-sentry-source-file":"BottomSheet.jsx",children:dt.jsx(n7.Provider,{value:g,"data-sentry-element":"unknown","data-sentry-source-file":"BottomSheet.jsx",children:mt})})}const Cle={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},Ale=()=>{const[e,t]=Re.useState(void 0),[n,o]=Re.useState(),[l,d]=Re.useState(null);Re.useEffect(()=>{function E(z){var O,j;t((O=z.state)==null?void 0:O.value),o((j=z.state)==null?void 0:j.payload)}return window.addEventListener("popstate",E),()=>{window.removeEventListener("popstate",E)}},[]);const g=(E,z)=>{window.history.pushState({value:E,payload:z},""),t(E),l===null&&d({value:E,payload:z})};return[g,()=>{window.history.back()},e,n,Cle,()=>{g(l.value,l.payload)}]};function Nle(){const e=rn(yT),[,t]=Dn(op),n=Ds(mT),o=Ds(pu),l=Ds(Ox),d=Ds(lT),g=Ds(oT),s=Ds(GI),v=Ds(Bx),E=Ds(_1),z=Ds(jx),O=Ds(Fx),j=Ds(Rx),F=Ds(Vx),$=Ds(GO),Y=Ds(WI);return()=>{n(),o(),l(),d(),g(),s(),v(),E(),z(),O(),j(),F(),$(),Y(),e&&t(e)}}const S_e="";function x1({children:e,isOpen:t}){const[n,o]=Re.useState(!1),l=rn(_1),d=rn(dc),g=Re.useRef(),s=Re.useRef();return Re.useEffect(()=>{if(!s)return;const v=new MutationObserver(()=>{var O;const E=s.current.clientHeight,z=(O=g.current)==null?void 0:O.clientHeight;o(E>z)});return v.observe(s.current,{childList:!0,subtree:!0}),()=>{v.disconnect()}},[s]),dt.jsx("div",{ref:g,className:`modal ${t?"modal--open":""} ${n?"modal--full":""} ${l?"modal--substeps":""} ${d?"modal--kiosk":""}`,"data-sentry-component":"Modal","data-sentry-source-file":"Modal.jsx",children:dt.jsx("div",{ref:s,className:"modal__content",children:e})})}function Lle({directionsFromLocation:e,directionsToLocation:t,pushAppView:n,currentAppView:o,appViews:l,onRouteFinished:d}){const[g,s]=Dn(pu),[v,E]=Dn(Ax),[,z]=Dn(Lx),O=rn(dc);Re.useEffect(()=>{e&&t&&o===l.DIRECTIONS||(e&&t||e?n(l.WAYFINDING):g?n(l.LOCATION_DETAILS,g):(v==null?void 0:v.length)>1?n(l.EXTERNALIDS):(v==null?void 0:v.length)===1?(s(v[0]),z(v[0].id)):n(l.SEARCH))},[g,e,t,v]);function j(){(v==null?void 0:v.length)>1?(n(l.EXTERNALIDS),s()):(v==null?void 0:v.length)===1?(n(l.SEARCH),s(),E([])):(n(l.SEARCH),s())}function F(){n(l.SEARCH),s(),E([])}function $(){n(O?l.LOCATION_DETAILS:l.WAYFINDING)}const Y=[dt.jsx(x1,{isOpen:o===l.SEARCH,children:dt.jsx(M7,{isOpen:o===l.SEARCH})},"A"),dt.jsx(x1,{isOpen:o===l.EXTERNALIDS,children:dt.jsx(w7,{onBack:()=>F(),locations:v,onLocationClick:ie=>s(ie),onLocationsFiltered:ie=>E(ie)})},"B"),dt.jsx(x1,{isOpen:o===l.LOCATION_DETAILS,children:dt.jsx(h7,{onStartWayfinding:()=>n(l.WAYFINDING),onBack:()=>j(),onStartDirections:()=>n(l.DIRECTIONS),isOpen:o===l.LOCATION_DETAILS})},"C"),dt.jsx(x1,{isOpen:o===l.WAYFINDING,children:dt.jsx(g7,{onStartDirections:()=>n(l.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>n(g?l.LOCATION_DETAILS:l.SEARCH),isActive:o===l.WAYFINDING})},"D"),dt.jsx(x1,{isOpen:o===l.DIRECTIONS,children:dt.jsx(_7,{isOpen:o===l.DIRECTIONS,onBack:()=>$(),onRouteFinished:()=>d()})},"E")];return dt.jsx("div",{"data-sentry-component":"Sidebar","data-sentry-source-file":"Sidebar.jsx",children:Y})}const I7=e=>{const[t,n]=Re.useState(),o=rn(Ex),l=rn(BO);return Re.useEffect(()=>{l&&e&&(e==="USER_POSITION"&&!o?(n("USER_POSITION_PENDING"),l.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(d=>n(d)),o&&e==="USER_POSITION"&&n(dT(o)))},[e,o,l]),t},zle=Jn({key:"gmMapId",default:null}),E_e="";function kle(){const e=rn(GI),t=Re.useRef();return Re.useEffect(()=>{var n;(n=t.current)==null||n.classList.add("notification"),e?t.current.push(e.text,e.type,!0):t.current.clearAll()},[e]),dt.jsx("mi-notification",{ref:t,position:"top-center","data-sentry-element":"mi-notification","data-sentry-component":"Notification","data-sentry-source-file":"Notification.jsx"})}const D_e="";var b1={},Ole=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},T7={},Ws={};let _T;const jle=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Ws.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},Ws.getSymbolTotalCodewords=function(t){return jle[t]},Ws.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},Ws.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');_T=t},Ws.isKanjiModeEnabled=function(){return typeof _T<"u"},Ws.toSJIS=function(t){return _T(t)};var $x={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,l){if(e.isValid(o))return o;try{return t(o)}catch{return l}}})($x);function S7(){this.buffer=[],this.length=0}S7.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Rle=S7;function M1(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}M1.prototype.set=function(e,t,n,o){const l=e*this.size+t;this.data[l]=n,o&&(this.reservedBit[l]=!0)},M1.prototype.get=function(e,t){return this.data[e*this.size+t]},M1.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},M1.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ple=M1,E7={};(function(e){const t=Ws.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const l=Math.floor(o/7)+2,d=t(o),g=d===145?26:Math.ceil((d-13)/(2*l-2))*2,s=[d-7];for(let v=1;v<l-1;v++)s[v]=s[v-1]-g;return s.push(6),s.reverse()},e.getPositions=function(o){const l=[],d=e.getRowColCoords(o),g=d.length;for(let s=0;s<g;s++)for(let v=0;v<g;v++)s===0&&v===0||s===0&&v===g-1||s===g-1&&v===0||l.push([d[s],d[v]]);return l}})(E7);var D7={};const Ule=Ws.getSymbolSize,C7=7;D7.getPositions=function(t){const n=Ule(t);return[[0,0],[n-C7,0],[0,n-C7]]};var A7={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(l){return l!=null&&l!==""&&!isNaN(l)&&l>=0&&l<=7},e.from=function(l){return e.isValid(l)?parseInt(l,10):void 0},e.getPenaltyN1=function(l){const d=l.size;let g=0,s=0,v=0,E=null,z=null;for(let O=0;O<d;O++){s=v=0,E=z=null;for(let j=0;j<d;j++){let F=l.get(O,j);F===E?s++:(s>=5&&(g+=t.N1+(s-5)),E=F,s=1),F=l.get(j,O),F===z?v++:(v>=5&&(g+=t.N1+(v-5)),z=F,v=1)}s>=5&&(g+=t.N1+(s-5)),v>=5&&(g+=t.N1+(v-5))}return g},e.getPenaltyN2=function(l){const d=l.size;let g=0;for(let s=0;s<d-1;s++)for(let v=0;v<d-1;v++){const E=l.get(s,v)+l.get(s,v+1)+l.get(s+1,v)+l.get(s+1,v+1);(E===4||E===0)&&g++}return g*t.N2},e.getPenaltyN3=function(l){const d=l.size;let g=0,s=0,v=0;for(let E=0;E<d;E++){s=v=0;for(let z=0;z<d;z++)s=s<<1&2047|l.get(E,z),z>=10&&(s===1488||s===93)&&g++,v=v<<1&2047|l.get(z,E),z>=10&&(v===1488||v===93)&&g++}return g*t.N3},e.getPenaltyN4=function(l){let d=0;const g=l.data.length;for(let v=0;v<g;v++)d+=l.data[v];return Math.abs(Math.ceil(d*100/g/5)-10)*t.N4};function n(o,l,d){switch(o){case e.Patterns.PATTERN000:return(l+d)%2===0;case e.Patterns.PATTERN001:return l%2===0;case e.Patterns.PATTERN010:return d%3===0;case e.Patterns.PATTERN011:return(l+d)%3===0;case e.Patterns.PATTERN100:return(Math.floor(l/2)+Math.floor(d/3))%2===0;case e.Patterns.PATTERN101:return l*d%2+l*d%3===0;case e.Patterns.PATTERN110:return(l*d%2+l*d%3)%2===0;case e.Patterns.PATTERN111:return(l*d%3+(l+d)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(l,d){const g=d.size;for(let s=0;s<g;s++)for(let v=0;v<g;v++)d.isReserved(v,s)||d.xor(v,s,n(l,v,s))},e.getBestMask=function(l,d){const g=Object.keys(e.Patterns).length;let s=0,v=1/0;for(let E=0;E<g;E++){d(E),e.applyMask(E,l);const z=e.getPenaltyN1(l)+e.getPenaltyN2(l)+e.getPenaltyN3(l)+e.getPenaltyN4(l);e.applyMask(E,l),z<v&&(v=z,s=E)}return s}})(A7);var Hx={};const mu=$x,Qx=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Yx=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Hx.getBlocksCount=function(t,n){switch(n){case mu.L:return Qx[(t-1)*4+0];case mu.M:return Qx[(t-1)*4+1];case mu.Q:return Qx[(t-1)*4+2];case mu.H:return Qx[(t-1)*4+3];default:return}},Hx.getTotalCodewordsCount=function(t,n){switch(n){case mu.L:return Yx[(t-1)*4+0];case mu.M:return Yx[(t-1)*4+1];case mu.Q:return Yx[(t-1)*4+2];case mu.H:return Yx[(t-1)*4+3];default:return}};var N7={},Gx={};const w1=new Uint8Array(512),Zx=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)w1[n]=t,Zx[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)w1[n]=w1[n-255]})(),Gx.log=function(t){if(t<1)throw new Error("log("+t+")");return Zx[t]},Gx.exp=function(t){return w1[t]},Gx.mul=function(t,n){return t===0||n===0?0:w1[Zx[t]+Zx[n]]},function(e){const t=Gx;e.mul=function(o,l){const d=new Uint8Array(o.length+l.length-1);for(let g=0;g<o.length;g++)for(let s=0;s<l.length;s++)d[g+s]^=t.mul(o[g],l[s]);return d},e.mod=function(o,l){let d=new Uint8Array(o);for(;d.length-l.length>=0;){const g=d[0];for(let v=0;v<l.length;v++)d[v]^=t.mul(l[v],g);let s=0;for(;s<d.length&&d[s]===0;)s++;d=d.slice(s)}return d},e.generateECPolynomial=function(o){let l=new Uint8Array([1]);for(let d=0;d<o;d++)l=e.mul(l,new Uint8Array([1,t.exp(d)]));return l}}(N7);const L7=N7;function vT(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}vT.prototype.initialize=function(t){this.degree=t,this.genPoly=L7.generateECPolynomial(this.degree)},vT.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const o=L7.mod(n,this.genPoly),l=this.degree-o.length;if(l>0){const d=new Uint8Array(this.degree);return d.set(o,l),d}return o};var Ble=vT,z7={},gu={},xT={};xT.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var bl={};const k7="[0-9]+",Fle="[A-Z $%*+\\-./:]+";let I1="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";I1=I1.replace(/u/g,"\\u");const Vle="(?:(?![A-Z0-9 $%*+\\-./:]|"+I1+`)(?:.|[\r
|
|
2226
2226
|
]))+`;bl.KANJI=new RegExp(I1,"g"),bl.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),bl.BYTE=new RegExp(Vle,"g"),bl.NUMERIC=new RegExp(k7,"g"),bl.ALPHANUMERIC=new RegExp(Fle,"g");const $le=new RegExp("^"+I1+"$"),Hle=new RegExp("^"+k7+"$"),Qle=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");bl.testKanji=function(t){return $le.test(t)},bl.testNumeric=function(t){return Hle.test(t)},bl.testAlphanumeric=function(t){return Qle.test(t)},function(e){const t=xT,n=bl;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(d,g){if(!d.ccBits)throw new Error("Invalid mode: "+d);if(!t.isValid(g))throw new Error("Invalid version: "+g);return g>=1&&g<10?d.ccBits[0]:g<27?d.ccBits[1]:d.ccBits[2]},e.getBestModeForData=function(d){return n.testNumeric(d)?e.NUMERIC:n.testAlphanumeric(d)?e.ALPHANUMERIC:n.testKanji(d)?e.KANJI:e.BYTE},e.toString=function(d){if(d&&d.id)return d.id;throw new Error("Invalid mode")},e.isValid=function(d){return d&&d.bit&&d.ccBits};function o(l){if(typeof l!="string")throw new Error("Param is not a string");switch(l.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+l)}}e.from=function(d,g){if(e.isValid(d))return d;try{return o(d)}catch{return g}}}(gu),function(e){const t=Ws,n=Hx,o=$x,l=gu,d=xT,g=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,s=t.getBCHDigit(g);function v(j,F,$){for(let Y=1;Y<=40;Y++)if(F<=e.getCapacity(Y,$,j))return Y}function E(j,F){return l.getCharCountIndicator(j,F)+4}function z(j,F){let $=0;return j.forEach(function(Y){const ie=E(Y.mode,F);$+=ie+Y.getBitsLength()}),$}function O(j,F){for(let $=1;$<=40;$++)if(z(j,$)<=e.getCapacity($,F,l.MIXED))return $}e.from=function(F,$){return d.isValid(F)?parseInt(F,10):$},e.getCapacity=function(F,$,Y){if(!d.isValid(F))throw new Error("Invalid QR Code version");typeof Y>"u"&&(Y=l.BYTE);const ie=t.getSymbolTotalCodewords(F),K=n.getTotalCodewordsCount(F,$),J=(ie-K)*8;if(Y===l.MIXED)return J;const te=J-E(Y,F);switch(Y){case l.NUMERIC:return Math.floor(te/10*3);case l.ALPHANUMERIC:return Math.floor(te/11*2);case l.KANJI:return Math.floor(te/13);case l.BYTE:default:return Math.floor(te/8)}},e.getBestVersionForData=function(F,$){let Y;const ie=o.from($,o.M);if(Array.isArray(F)){if(F.length>1)return O(F,ie);if(F.length===0)return 1;Y=F[0]}else Y=F;return v(Y.mode,Y.getLength(),ie)},e.getEncodedBits=function(F){if(!d.isValid(F)||F<7)throw new Error("Invalid QR Code version");let $=F<<12;for(;t.getBCHDigit($)-s>=0;)$^=g<<t.getBCHDigit($)-s;return F<<12|$}}(z7);var O7={};const bT=Ws,j7=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,Yle=1<<14|1<<12|1<<10|1<<4|1<<1,R7=bT.getBCHDigit(j7);O7.getEncodedBits=function(t,n){const o=t.bit<<3|n;let l=o<<10;for(;bT.getBCHDigit(l)-R7>=0;)l^=j7<<bT.getBCHDigit(l)-R7;return(o<<10|l)^Yle};var P7={};const Gle=gu;function hp(e){this.mode=Gle.NUMERIC,this.data=e.toString()}hp.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},hp.prototype.getLength=function(){return this.data.length},hp.prototype.getBitsLength=function(){return hp.getBitsLength(this.data.length)},hp.prototype.write=function(t){let n,o,l;for(n=0;n+3<=this.data.length;n+=3)o=this.data.substr(n,3),l=parseInt(o,10),t.put(l,10);const d=this.data.length-n;d>0&&(o=this.data.substr(n),l=parseInt(o,10),t.put(l,d*3+1))};var Zle=hp;const Wle=gu,MT=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function dp(e){this.mode=Wle.ALPHANUMERIC,this.data=e}dp.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},dp.prototype.getLength=function(){return this.data.length},dp.prototype.getBitsLength=function(){return dp.getBitsLength(this.data.length)},dp.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let o=MT.indexOf(this.data[n])*45;o+=MT.indexOf(this.data[n+1]),t.put(o,11)}this.data.length%2&&t.put(MT.indexOf(this.data[n]),6)};var qle=dp,Kle=function(t){for(var n=[],o=t.length,l=0;l<o;l++){var d=t.charCodeAt(l);if(d>=55296&&d<=56319&&o>l+1){var g=t.charCodeAt(l+1);g>=56320&&g<=57343&&(d=(d-55296)*1024+g-56320+65536,l+=1)}if(d<128){n.push(d);continue}if(d<2048){n.push(d>>6|192),n.push(d&63|128);continue}if(d<55296||d>=57344&&d<65536){n.push(d>>12|224),n.push(d>>6&63|128),n.push(d&63|128);continue}if(d>=65536&&d<=1114111){n.push(d>>18|240),n.push(d>>12&63|128),n.push(d>>6&63|128),n.push(d&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const Xle=Kle,Jle=gu;function fp(e){this.mode=Jle.BYTE,typeof e=="string"&&(e=Xle(e)),this.data=new Uint8Array(e)}fp.getBitsLength=function(t){return t*8},fp.prototype.getLength=function(){return this.data.length},fp.prototype.getBitsLength=function(){return fp.getBitsLength(this.data.length)},fp.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var ece=fp;const tce=gu,nce=Ws;function pp(e){this.mode=tce.KANJI,this.data=e}pp.getBitsLength=function(t){return t*13},pp.prototype.getLength=function(){return this.data.length},pp.prototype.getBitsLength=function(){return pp.getBitsLength(this.data.length)},pp.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=nce.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
2227
2227
|
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var ice=pp,U7={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,o,l){var d={},g={};g[o]=0;var s=t.PriorityQueue.make();s.push(o,0);for(var v,E,z,O,j,F,$,Y,ie;!s.empty();){v=s.pop(),E=v.value,O=v.cost,j=n[E]||{};for(z in j)j.hasOwnProperty(z)&&(F=j[z],$=O+F,Y=g[z],ie=typeof g[z]>"u",(ie||Y>$)&&(g[z]=$,s.push(z,$),d[z]=E))}if(typeof l<"u"&&typeof g[l]>"u"){var K=["Could not find a path from ",o," to ",l,"."].join("");throw new Error(K)}return d},extract_shortest_path_from_predecessor_list:function(n,o){for(var l=[],d=o;d;)l.push(d),n[d],d=n[d];return l.reverse(),l},find_path:function(n,o,l){var d=t.single_source_shortest_paths(n,o,l);return t.extract_shortest_path_from_predecessor_list(d,l)},PriorityQueue:{make:function(n){var o=t.PriorityQueue,l={},d;n=n||{};for(d in o)o.hasOwnProperty(d)&&(l[d]=o[d]);return l.queue=[],l.sorter=n.sorter||o.default_sorter,l},default_sorter:function(n,o){return n.cost-o.cost},push:function(n,o){var l={value:n,cost:o};this.queue.push(l),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(U7);var rce=U7.exports;(function(e){const t=gu,n=Zle,o=qle,l=ece,d=ice,g=bl,s=Ws,v=rce;function E(K){return unescape(encodeURIComponent(K)).length}function z(K,J,te){const oe=[];let pe;for(;(pe=K.exec(te))!==null;)oe.push({data:pe[0],index:pe.index,mode:J,length:pe[0].length});return oe}function O(K){const J=z(g.NUMERIC,t.NUMERIC,K),te=z(g.ALPHANUMERIC,t.ALPHANUMERIC,K);let oe,pe;return s.isKanjiModeEnabled()?(oe=z(g.BYTE,t.BYTE,K),pe=z(g.KANJI,t.KANJI,K)):(oe=z(g.BYTE_KANJI,t.BYTE,K),pe=[]),J.concat(te,oe,pe).sort(function(he,De){return he.index-De.index}).map(function(he){return{data:he.data,mode:he.mode,length:he.length}})}function j(K,J){switch(J){case t.NUMERIC:return n.getBitsLength(K);case t.ALPHANUMERIC:return o.getBitsLength(K);case t.KANJI:return d.getBitsLength(K);case t.BYTE:return l.getBitsLength(K)}}function F(K){return K.reduce(function(J,te){const oe=J.length-1>=0?J[J.length-1]:null;return oe&&oe.mode===te.mode?(J[J.length-1].data+=te.data,J):(J.push(te),J)},[])}function $(K){const J=[];for(let te=0;te<K.length;te++){const oe=K[te];switch(oe.mode){case t.NUMERIC:J.push([oe,{data:oe.data,mode:t.ALPHANUMERIC,length:oe.length},{data:oe.data,mode:t.BYTE,length:oe.length}]);break;case t.ALPHANUMERIC:J.push([oe,{data:oe.data,mode:t.BYTE,length:oe.length}]);break;case t.KANJI:J.push([oe,{data:oe.data,mode:t.BYTE,length:E(oe.data)}]);break;case t.BYTE:J.push([{data:oe.data,mode:t.BYTE,length:E(oe.data)}])}}return J}function Y(K,J){const te={},oe={start:{}};let pe=["start"];for(let me=0;me<K.length;me++){const he=K[me],De=[];for(let qe=0;qe<he.length;qe++){const Te=he[qe],ze=""+me+qe;De.push(ze),te[ze]={node:Te,lastCount:0},oe[ze]={};for(let ht=0;ht<pe.length;ht++){const mt=pe[ht];te[mt]&&te[mt].node.mode===Te.mode?(oe[mt][ze]=j(te[mt].lastCount+Te.length,Te.mode)-j(te[mt].lastCount,Te.mode),te[mt].lastCount+=Te.length):(te[mt]&&(te[mt].lastCount=Te.length),oe[mt][ze]=j(Te.length,Te.mode)+4+t.getCharCountIndicator(Te.mode,J))}}pe=De}for(let me=0;me<pe.length;me++)oe[pe[me]].end=0;return{map:oe,table:te}}function ie(K,J){let te;const oe=t.getBestModeForData(K);if(te=t.from(J,oe),te!==t.BYTE&&te.bit<oe.bit)throw new Error('"'+K+'" cannot be encoded with mode '+t.toString(te)+`.
|
|
2228
2228
|
Suggested mode is: `+t.toString(oe));switch(te===t.KANJI&&!s.isKanjiModeEnabled()&&(te=t.BYTE),te){case t.NUMERIC:return new n(K);case t.ALPHANUMERIC:return new o(K);case t.KANJI:return new d(K);case t.BYTE:return new l(K)}}e.fromArray=function(J){return J.reduce(function(te,oe){return typeof oe=="string"?te.push(ie(oe,null)):oe.data&&te.push(ie(oe.data,oe.mode)),te},[])},e.fromString=function(J,te){const oe=O(J,s.isKanjiModeEnabled()),pe=$(oe),me=Y(pe,te),he=v.find_path(me.map,"start","end"),De=[];for(let qe=1;qe<he.length-1;qe++)De.push(me.table[he[qe]].node);return e.fromArray(F(De))},e.rawSplit=function(J){return e.fromArray(O(J,s.isKanjiModeEnabled()))}})(P7);const Wx=Ws,wT=$x,oce=Rle,sce=Ple,ace=E7,lce=D7,IT=A7,TT=Hx,cce=Ble,qx=z7,uce=O7,hce=gu,ST=P7;function dce(e,t){const n=e.size,o=lce.getPositions(t);for(let l=0;l<o.length;l++){const d=o[l][0],g=o[l][1];for(let s=-1;s<=7;s++)if(!(d+s<=-1||n<=d+s))for(let v=-1;v<=7;v++)g+v<=-1||n<=g+v||(s>=0&&s<=6&&(v===0||v===6)||v>=0&&v<=6&&(s===0||s===6)||s>=2&&s<=4&&v>=2&&v<=4?e.set(d+s,g+v,!0,!0):e.set(d+s,g+v,!1,!0))}}function fce(e){const t=e.size;for(let n=8;n<t-8;n++){const o=n%2===0;e.set(n,6,o,!0),e.set(6,n,o,!0)}}function pce(e,t){const n=ace.getPositions(t);for(let o=0;o<n.length;o++){const l=n[o][0],d=n[o][1];for(let g=-2;g<=2;g++)for(let s=-2;s<=2;s++)g===-2||g===2||s===-2||s===2||g===0&&s===0?e.set(l+g,d+s,!0,!0):e.set(l+g,d+s,!1,!0)}}function mce(e,t){const n=e.size,o=qx.getEncodedBits(t);let l,d,g;for(let s=0;s<18;s++)l=Math.floor(s/3),d=s%3+n-8-3,g=(o>>s&1)===1,e.set(l,d,g,!0),e.set(d,l,g,!0)}function ET(e,t,n){const o=e.size,l=uce.getEncodedBits(t,n);let d,g;for(d=0;d<15;d++)g=(l>>d&1)===1,d<6?e.set(d,8,g,!0):d<8?e.set(d+1,8,g,!0):e.set(o-15+d,8,g,!0),d<8?e.set(8,o-d-1,g,!0):d<9?e.set(8,15-d-1+1,g,!0):e.set(8,15-d-1,g,!0);e.set(o-8,8,1,!0)}function gce(e,t){const n=e.size;let o=-1,l=n-1,d=7,g=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let v=0;v<2;v++)if(!e.isReserved(l,s-v)){let E=!1;g<t.length&&(E=(t[g]>>>d&1)===1),e.set(l,s-v,E),d--,d===-1&&(g++,d=7)}if(l+=o,l<0||n<=l){l-=o,o=-o;break}}}function yce(e,t,n){const o=new oce;n.forEach(function(v){o.put(v.mode.bit,4),o.put(v.getLength(),hce.getCharCountIndicator(v.mode,e)),v.write(o)});const l=Wx.getSymbolTotalCodewords(e),d=TT.getTotalCodewordsCount(e,t),g=(l-d)*8;for(o.getLengthInBits()+4<=g&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const s=(g-o.getLengthInBits())/8;for(let v=0;v<s;v++)o.put(v%2?17:236,8);return _ce(o,e,t)}function _ce(e,t,n){const o=Wx.getSymbolTotalCodewords(t),l=TT.getTotalCodewordsCount(t,n),d=o-l,g=TT.getBlocksCount(t,n),s=o%g,v=g-s,E=Math.floor(o/g),z=Math.floor(d/g),O=z+1,j=E-z,F=new cce(j);let $=0;const Y=new Array(g),ie=new Array(g);let K=0;const J=new Uint8Array(e.buffer);for(let he=0;he<g;he++){const De=he<v?z:O;Y[he]=J.slice($,$+De),ie[he]=F.encode(Y[he]),$+=De,K=Math.max(K,De)}const te=new Uint8Array(o);let oe=0,pe,me;for(pe=0;pe<K;pe++)for(me=0;me<g;me++)pe<Y[me].length&&(te[oe++]=Y[me][pe]);for(pe=0;pe<j;pe++)for(me=0;me<g;me++)te[oe++]=ie[me][pe];return te}function vce(e,t,n,o){let l;if(Array.isArray(e))l=ST.fromArray(e);else if(typeof e=="string"){let E=t;if(!E){const z=ST.rawSplit(e);E=qx.getBestVersionForData(z,n)}l=ST.fromString(e,E||40)}else throw new Error("Invalid data");const d=qx.getBestVersionForData(l,n);if(!d)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=d;else if(t<d)throw new Error(`
|
|
2229
2229
|
The chosen QR Code version cannot contain this amount of data.
|
|
2230
2230
|
Minimum version required to store current data is: `+d+`.
|
|
2231
2231
|
`);const g=yce(t,n,l),s=Wx.getSymbolSize(t),v=new sce(s);return dce(v,t),fce(v),pce(v,t),ET(v,n,0),t>=7&&mce(v,t),gce(v,g),isNaN(o)&&(o=IT.getBestMask(v,ET.bind(null,v,n))),IT.applyMask(o,v),ET(v,n,o),{modules:v,version:t,errorCorrectionLevel:n,maskPattern:o,segments:l}}T7.create=function(t,n){if(typeof t>"u"||t==="")throw new Error("No input text");let o=wT.M,l,d;return typeof n<"u"&&(o=wT.from(n.errorCorrectionLevel,wT.M),l=qx.from(n.version),d=IT.from(n.maskPattern),n.toSJISFunc&&Wx.setToSJISFunction(n.toSJISFunc)),vce(t,l,o,d)};var B7={},DT={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let o=n.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+n);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(d){return[d,d]}))),o.length===6&&o.push("F","F");const l=parseInt(o.join(""),16);return{r:l>>24&255,g:l>>16&255,b:l>>8&255,a:l&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const l=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,d=o.width&&o.width>=21?o.width:void 0,g=o.scale||4;return{width:d,scale:d?4:g,margin:l,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,l){return l.width&&l.width>=o+l.margin*2?l.width/(o+l.margin*2):l.scale},e.getImageWidth=function(o,l){const d=e.getScale(o,l);return Math.floor((o+l.margin*2)*d)},e.qrToImageData=function(o,l,d){const g=l.modules.size,s=l.modules.data,v=e.getScale(g,d),E=Math.floor((g+d.margin*2)*v),z=d.margin*v,O=[d.color.light,d.color.dark];for(let j=0;j<E;j++)for(let F=0;F<E;F++){let $=(j*E+F)*4,Y=d.color.light;if(j>=z&&F>=z&&j<E-z&&F<E-z){const ie=Math.floor((j-z)/v),K=Math.floor((F-z)/v);Y=O[s[ie*g+K]?1:0]}o[$++]=Y.r,o[$++]=Y.g,o[$++]=Y.b,o[$]=Y.a}}})(DT),function(e){const t=DT;function n(l,d,g){l.clearRect(0,0,d.width,d.height),d.style||(d.style={}),d.height=g,d.width=g,d.style.height=g+"px",d.style.width=g+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(d,g,s){let v=s,E=g;typeof v>"u"&&(!g||!g.getContext)&&(v=g,g=void 0),g||(E=o()),v=t.getOptions(v);const z=t.getImageWidth(d.modules.size,v),O=E.getContext("2d"),j=O.createImageData(z,z);return t.qrToImageData(j.data,d,v),n(O,E,z),O.putImageData(j,0,0),E},e.renderToDataURL=function(d,g,s){let v=s;typeof v>"u"&&(!g||!g.getContext)&&(v=g,g=void 0),v||(v={});const E=e.render(d,g,v),z=v.type||"image/png",O=v.rendererOpts||{};return E.toDataURL(z,O.quality)}}(B7);var F7={};const xce=DT;function V7(e,t){const n=e.a/255,o=t+'="'+e.hex+'"';return n<1?o+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':o}function CT(e,t,n){let o=e+t;return typeof n<"u"&&(o+=" "+n),o}function bce(e,t,n){let o="",l=0,d=!1,g=0;for(let s=0;s<e.length;s++){const v=Math.floor(s%t),E=Math.floor(s/t);!v&&!d&&(d=!0),e[s]?(g++,s>0&&v>0&&e[s-1]||(o+=d?CT("M",v+n,.5+E+n):CT("m",l,0),l=0,d=!1),v+1<t&&e[s+1]||(o+=CT("h",g),g=0)):l++}return o}F7.render=function(t,n,o){const l=xce.getOptions(n),d=t.modules.size,g=t.modules.data,s=d+l.margin*2,v=l.color.light.a?"<path "+V7(l.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",E="<path "+V7(l.color.dark,"stroke")+' d="'+bce(g,d,l.margin)+'"/>',z='viewBox="0 0 '+s+" "+s+'"',j='<svg xmlns="http://www.w3.org/2000/svg" '+(l.width?'width="'+l.width+'" height="'+l.width+'" ':"")+z+' shape-rendering="crispEdges">'+v+E+`</svg>
|
|
2232
|
-
`;return typeof o=="function"&&o(null,j),j};const Mce=Ole,AT=T7,$7=B7,wce=F7;function NT(e,t,n,o,l){const d=[].slice.call(arguments,1),g=d.length,s=typeof d[g-1]=="function";if(!s&&!Mce())throw new Error("Callback required as last argument");if(s){if(g<2)throw new Error("Too few arguments provided");g===2?(l=n,n=t,t=o=void 0):g===3&&(t.getContext&&typeof l>"u"?(l=o,o=void 0):(l=o,o=n,n=t,t=void 0))}else{if(g<1)throw new Error("Too few arguments provided");return g===1?(n=t,t=o=void 0):g===2&&!t.getContext&&(o=n,n=t,t=void 0),new Promise(function(v,E){try{const z=AT.create(n,o);v(e(z,t,o))}catch(z){E(z)}})}try{const v=AT.create(n,o);l(null,e(v,t,o))}catch(v){l(v)}}b1.create=AT.create,b1.toCanvas=NT.bind(null,$7.render),b1.toDataURL=NT.bind(null,$7.renderToDataURL),b1.toString=NT.bind(null,function(e,t,n){return wce.render(e,n)});function Ice(){const{t:e}=ya(),[,t]=Dn(Bx),n=Re.useRef(),o=rn(uc),l=rn($I),d=rn(eT),g=rn(HI),s=rn(Dx),v=rn(up),E=rn(Ux),z=rn(pT),O=rn(dc),j=rn(pu);return Re.useEffect(()=>{if(O&&j){let F=window.location.origin+window.location.pathname.replace(/\/$/,"");const $=new URLSearchParams(window.location.search),Y=new URLSearchParams;[["gmApiKey",g],["mapboxAccessToken",s],["apiKey",l],["primaryColor",o],["language",v],["searchAllVenues",E],["searchExternalLocations",z],["logo",d]].forEach(([te,oe])=>{if($.has(te)){const pe=$.get(te);Y.append(te,pe)}else oe&&(oe===o?Y.append(te,o.replace("#","")):Y.append(te,oe))});const ie=Y.toString();let K=`${F}?${ie}&directionsFrom=${O.id}&directionsTo=${j.id}`;const J={errorCorrectionLevel:"L",margin:0,width:"225"};b1.toDataURL(K,J).then(te=>{n.current.src=te})}},[O,j]),dt.jsxs(dt.Fragment,{children:[dt.jsx("div",{className:"background"}),dt.jsxs("div",{className:"qr-code",children:[dt.jsx("img",{alt:"",className:"qr-code__image",ref:n}),dt.jsx("p",{children:e("Scan the QR code to see the route on your phone")}),dt.jsx("button",{className:"qr-code__button",style:{background:o},onClick:()=>t(!1),children:e("Done")})]})]})}const Tce=Jn({key:"supportsUrlParameters",default:!1}),C_e="";function Sce(){const{t:e}=ya(),t=rn(uc),n=rn(b7),o=v1(),l=Re.useRef(),d=Re.useRef(),g=Re.useRef(),[s,v]=Dn(Vx),[E,z]=Re.useState(!1),O=Re.useRef();let j=700;return Re.useEffect(()=>{s&&o&&z(O.current.clientHeight>j)},[s,o]),Re.useEffect(()=>{if(s&&o&&E){const F=document.querySelector(".legend__sections");g.current.scrollContainerElementRef=F}},[s,n,E]),dt.jsxs(dt.Fragment,{children:[dt.jsx("div",{className:"legend__background"}),dt.jsxs("div",{className:"legend",ref:l,children:[n.length>0&&dt.jsx("div",{className:`legend__sections ${E?"legend__sections--scrollable":""}`,ref:O,style:{maxHeight:E?`${j}px`:"auto",overflowY:E?"scroll":"auto"},children:n.map((F,$)=>dt.jsxs("div",{className:"legend__section",ref:d,children:[dt.jsx("div",{className:"legend__heading",children:F.heading}),dt.jsx("div",{className:"legend__content",children:F.content})]},$))}),dt.jsx("button",{className:"legend__button",style:{background:t},onClick:()=>v(!1),children:e("Close")}),o&&s&&E&&dt.jsx("div",{className:"scroll-buttons",children:dt.jsx("mi-scroll-buttons",{ref:g})})]})]})}const H7=Jn({key:"appConfig",default:void 0}),Ece=()=>{const[e,t]=Dn(op),n=rn(m1),o=rn(Zs),l=rn(H7),[,d]=Dn(rp),[,g]=Dn(Fx),s=rn(uT),[v,E]=Dn(yT);Re.useEffect(()=>{var j;!e&&n.length&&t((j=z())==null?void 0:j.name)},[e,n]),Re.useEffect(()=>{e&&!v&&E(e)},[e]),Re.useEffect(()=>{o&&n.length&&e&&l&&(o.setVenue(n.find(j=>j.name.toLowerCase()===e.toLowerCase())),O(),g([]),s&&(s.value=""))},[o,e,n,l]);const z=()=>n.length===1?n[0]:[...n].sort(function(j,F){return j.venueInfo.name>F.venueInfo.name?1:F.venueInfo.name>j.venueInfo.name?-1:0})[0],O=()=>{var F;const j=(F=n.find($=>$.name.toLowerCase()===e.toLowerCase()))==null?void 0:F.name;window.mapsindoors.services.LocationsService.getLocations({venue:j}).then($=>{let Y=new Map;for(const K of $){const J=Object.keys(K.properties.categories);for(const te of J){const oe=l==null?void 0:l.menuInfo.mainmenu.find(pe=>pe.categoryKey===te);oe&&Y.set(oe.categoryKey,{displayName:K.properties.categories[te],iconUrl:oe==null?void 0:oe.iconUrl})}}const ie=Array.from(Y).sort((K,J)=>{const te=l.menuInfo.mainmenu.findIndex(pe=>pe.categoryKey===K[0]),oe=l.menuInfo.mainmenu.findIndex(pe=>pe.categoryKey===J[0]);return te-oe});d(ie)})};return[t,O]},Dce=Jn({key:"showRoadNames",default:!0});uO();function Cce({apiKey:e,gmApiKey:t,mapboxAccessToken:n,venue:o,locationId:l,primaryColor:d,logo:g,appUserRoles:s,directionsFrom:v,directionsTo:E,externalIDs:z,tileStyle:O,startZoomLevel:j,bearing:F,pitch:$,gmMapId:Y,useMapProviderModule:ie,kioskOriginLocationId:K,language:J,supportsUrlParameters:te,useKeyboard:oe,timeout:pe,miTransitionLevel:me,category:he,searchAllVenues:De,hideNonMatches:qe,showRoadNames:Te,showExternalIDs:ze,searchExternalLocations:ht}){const[,mt]=Dn($I),[,vt]=Dn(HI),[,Qe]=Dn(Dx),[Fe,ot]=Dn(KI),[Je,He]=Dn(m1),[Ae,je]=Dn(pu),ye=rn(rp),[,ee]=Dn(Lx),[,fe]=Dn(uc),[,Ne]=Dn(eT),[,Ee]=Dn(zle),Xe=rn(Zs),[ft,it]=Dn(up),[,ue]=Dn(dc),[,Dt]=Dn(FO),[,Gt]=Dn(HO),Et=QO(),[,We]=Dn(Tce),[,Ut]=Dn(v7),[,wt]=Dn(WO),[,en]=Dn(gT),[,Jt]=Dn(Ux),[,Nn]=Dn(x7),[,xn]=Dn(ZO),[,dn]=Dn(Px),[,mn]=Dn(Dce),[,ti]=Dn(pT),[Yt,jn]=Re.useState(),[On,fn]=Re.useState(!0),[ei,vi]=Re.useState(!0),Zi=I7(v),ii=I7(E),[Hn,Wi]=Re.useState(!1),[,yr]=Dn(Ax),[Lt,xt]=Dn(Cx),[ln,Wt]=Re.useState(),[Qt,an]=Dn(H7),[,yn]=Dn(YI),[,bn]=Dn(UO),[,An]=Dn(VO),[,ai]=Dn(QI),[,Pi]=Dn(Nx),_r=$h(),gt=YO("(max-width: 991px)"),le=Nle(),[ge,Le,$e,Ue,rt,bt]=Ale(),lt=Re.useRef(),[pt,At]=Re.useState(!1),St=rn(Bx),Bt=rn(Vx),[tn,on]=Re.useState(0),[zn,Rn]=Ece();function Fn(){return new Promise(cn=>{if(window.mapsindoors!==void 0)return cn();const Zn=document.createElement("script");Zn.setAttribute("type","text/javascript"),Zn.setAttribute("src","https://app.mapsindoors.com/mapsindoors/js/sdk/4.38.
|
|
2232
|
+
`;return typeof o=="function"&&o(null,j),j};const Mce=Ole,AT=T7,$7=B7,wce=F7;function NT(e,t,n,o,l){const d=[].slice.call(arguments,1),g=d.length,s=typeof d[g-1]=="function";if(!s&&!Mce())throw new Error("Callback required as last argument");if(s){if(g<2)throw new Error("Too few arguments provided");g===2?(l=n,n=t,t=o=void 0):g===3&&(t.getContext&&typeof l>"u"?(l=o,o=void 0):(l=o,o=n,n=t,t=void 0))}else{if(g<1)throw new Error("Too few arguments provided");return g===1?(n=t,t=o=void 0):g===2&&!t.getContext&&(o=n,n=t,t=void 0),new Promise(function(v,E){try{const z=AT.create(n,o);v(e(z,t,o))}catch(z){E(z)}})}try{const v=AT.create(n,o);l(null,e(v,t,o))}catch(v){l(v)}}b1.create=AT.create,b1.toCanvas=NT.bind(null,$7.render),b1.toDataURL=NT.bind(null,$7.renderToDataURL),b1.toString=NT.bind(null,function(e,t,n){return wce.render(e,n)});function Ice(){const{t:e}=ya(),[,t]=Dn(Bx),n=Re.useRef(),o=rn(uc),l=rn($I),d=rn(eT),g=rn(HI),s=rn(Dx),v=rn(up),E=rn(Ux),z=rn(pT),O=rn(dc),j=rn(pu);return Re.useEffect(()=>{if(O&&j){let F=window.location.origin+window.location.pathname.replace(/\/$/,"");const $=new URLSearchParams(window.location.search),Y=new URLSearchParams;[["gmApiKey",g],["mapboxAccessToken",s],["apiKey",l],["primaryColor",o],["language",v],["searchAllVenues",E],["searchExternalLocations",z],["logo",d]].forEach(([te,oe])=>{if($.has(te)){const pe=$.get(te);Y.append(te,pe)}else oe&&(oe===o?Y.append(te,o.replace("#","")):Y.append(te,oe))});const ie=Y.toString();let K=`${F}?${ie}&directionsFrom=${O.id}&directionsTo=${j.id}`;const J={errorCorrectionLevel:"L",margin:0,width:"225"};b1.toDataURL(K,J).then(te=>{n.current.src=te})}},[O,j]),dt.jsxs(dt.Fragment,{children:[dt.jsx("div",{className:"background"}),dt.jsxs("div",{className:"qr-code",children:[dt.jsx("img",{alt:"",className:"qr-code__image",ref:n}),dt.jsx("p",{children:e("Scan the QR code to see the route on your phone")}),dt.jsx("button",{className:"qr-code__button",style:{background:o},onClick:()=>t(!1),children:e("Done")})]})]})}const Tce=Jn({key:"supportsUrlParameters",default:!1}),C_e="";function Sce(){const{t:e}=ya(),t=rn(uc),n=rn(b7),o=v1(),l=Re.useRef(),d=Re.useRef(),g=Re.useRef(),[s,v]=Dn(Vx),[E,z]=Re.useState(!1),O=Re.useRef();let j=700;return Re.useEffect(()=>{s&&o&&z(O.current.clientHeight>j)},[s,o]),Re.useEffect(()=>{if(s&&o&&E){const F=document.querySelector(".legend__sections");g.current.scrollContainerElementRef=F}},[s,n,E]),dt.jsxs(dt.Fragment,{children:[dt.jsx("div",{className:"legend__background"}),dt.jsxs("div",{className:"legend",ref:l,children:[n.length>0&&dt.jsx("div",{className:`legend__sections ${E?"legend__sections--scrollable":""}`,ref:O,style:{maxHeight:E?`${j}px`:"auto",overflowY:E?"scroll":"auto"},children:n.map((F,$)=>dt.jsxs("div",{className:"legend__section",ref:d,children:[dt.jsx("div",{className:"legend__heading",children:F.heading}),dt.jsx("div",{className:"legend__content",children:F.content})]},$))}),dt.jsx("button",{className:"legend__button",style:{background:t},onClick:()=>v(!1),children:e("Close")}),o&&s&&E&&dt.jsx("div",{className:"scroll-buttons",children:dt.jsx("mi-scroll-buttons",{ref:g})})]})]})}const H7=Jn({key:"appConfig",default:void 0}),Ece=()=>{const[e,t]=Dn(op),n=rn(m1),o=rn(Zs),l=rn(H7),[,d]=Dn(rp),[,g]=Dn(Fx),s=rn(uT),[v,E]=Dn(yT);Re.useEffect(()=>{var j;!e&&n.length&&t((j=z())==null?void 0:j.name)},[e,n]),Re.useEffect(()=>{e&&!v&&E(e)},[e]),Re.useEffect(()=>{o&&n.length&&e&&l&&(o.setVenue(n.find(j=>j.name.toLowerCase()===e.toLowerCase())),O(),g([]),s&&(s.value=""))},[o,e,n,l]);const z=()=>n.length===1?n[0]:[...n].sort(function(j,F){return j.venueInfo.name>F.venueInfo.name?1:F.venueInfo.name>j.venueInfo.name?-1:0})[0],O=()=>{var F;const j=(F=n.find($=>$.name.toLowerCase()===e.toLowerCase()))==null?void 0:F.name;window.mapsindoors.services.LocationsService.getLocations({venue:j}).then($=>{let Y=new Map;for(const K of $){const J=Object.keys(K.properties.categories);for(const te of J){const oe=l==null?void 0:l.menuInfo.mainmenu.find(pe=>pe.categoryKey===te);oe&&Y.set(oe.categoryKey,{displayName:K.properties.categories[te],iconUrl:oe==null?void 0:oe.iconUrl})}}const ie=Array.from(Y).sort((K,J)=>{const te=l.menuInfo.mainmenu.findIndex(pe=>pe.categoryKey===K[0]),oe=l.menuInfo.mainmenu.findIndex(pe=>pe.categoryKey===J[0]);return te-oe});d(ie)})};return[t,O]},Dce=Jn({key:"showRoadNames",default:!0});uO();function Cce({apiKey:e,gmApiKey:t,mapboxAccessToken:n,venue:o,locationId:l,primaryColor:d,logo:g,appUserRoles:s,directionsFrom:v,directionsTo:E,externalIDs:z,tileStyle:O,startZoomLevel:j,bearing:F,pitch:$,gmMapId:Y,useMapProviderModule:ie,kioskOriginLocationId:K,language:J,supportsUrlParameters:te,useKeyboard:oe,timeout:pe,miTransitionLevel:me,category:he,searchAllVenues:De,hideNonMatches:qe,showRoadNames:Te,showExternalIDs:ze,searchExternalLocations:ht}){const[,mt]=Dn($I),[,vt]=Dn(HI),[,Qe]=Dn(Dx),[Fe,ot]=Dn(KI),[Je,He]=Dn(m1),[Ae,je]=Dn(pu),ye=rn(rp),[,ee]=Dn(Lx),[,fe]=Dn(uc),[,Ne]=Dn(eT),[,Ee]=Dn(zle),Xe=rn(Zs),[ft,it]=Dn(up),[,ue]=Dn(dc),[,Dt]=Dn(FO),[,Gt]=Dn(HO),Et=QO(),[,We]=Dn(Tce),[,Ut]=Dn(v7),[,wt]=Dn(WO),[,en]=Dn(gT),[,Jt]=Dn(Ux),[,Nn]=Dn(x7),[,xn]=Dn(ZO),[,dn]=Dn(Px),[,mn]=Dn(Dce),[,ti]=Dn(pT),[Yt,jn]=Re.useState(),[On,fn]=Re.useState(!0),[ei,vi]=Re.useState(!0),Zi=I7(v),ii=I7(E),[Hn,Wi]=Re.useState(!1),[,yr]=Dn(Ax),[Lt,xt]=Dn(Cx),[ln,Wt]=Re.useState(),[Qt,an]=Dn(H7),[,yn]=Dn(YI),[,bn]=Dn(UO),[,An]=Dn(VO),[,ai]=Dn(QI),[,Pi]=Dn(Nx),_r=$h(),gt=YO("(max-width: 991px)"),le=Nle(),[ge,Le,$e,Ue,rt,bt]=Ale(),lt=Re.useRef(),[pt,At]=Re.useState(!1),St=rn(Bx),Bt=rn(Vx),[tn,on]=Re.useState(0),[zn,Rn]=Ece();function Fn(){return new Promise(cn=>{if(window.mapsindoors!==void 0)return cn();const Zn=document.createElement("script");Zn.setAttribute("type","text/javascript"),Zn.setAttribute("src","https://app.mapsindoors.com/mapsindoors/js/sdk/4.38.6/mapsindoors-4.38.6.js.gz"),Zn.setAttribute("integrity","sha384-KgcghquvjXEHX5M0Z6ZxykdoQqrLI7vfijQxuGYuafr1q3NNWaNNiXgFYeb6ZawZ"),Zn.setAttribute("crossorigin","anonymous"),document.body.appendChild(Zn),Zn.onload=()=>{cn()}})}Re.useEffect(()=>{Et&&Ii()},[Et]),Re.useEffect(()=>(Fn().then(()=>{At(!0)}),()=>{Wt()}),[]),Re.useEffect(()=>{if(pt){const cn=J||navigator.language;window.mapsindoors.MapsIndoors.setLanguage(cn.split("-")[0]),window.mapsindoors.services.LocationsService.once("update_completed",()=>{ye.length>0&&Rn(),Je.length>0&&window.mapsindoors.services.VenuesService.getVenues().then(Zn=>{Zn=Zn.map(zi=>(zi.image=Qt.venueImages[zi.name.toLowerCase()],zi)),He(Zn)}),Ae&&window.mapsindoors.services.LocationsService.getLocation(Ae.id).then(Zn=>je(Zn))}),ft?Uo.changeLanguage(cn):vae(cn),it(cn)}},[J,pt]),Re.useEffect(()=>{pt&&(mt(e),ot(!1),window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),Promise.all([window.mapsindoors.services.VenuesService.getVenues(),window.mapsindoors.services.AppConfigService.getConfig().then(cn=>(an(cn),cn)),window.mapsindoors.services.SolutionsService.getSolution().then(cn=>(yn(cn),cn)),new Promise(cn=>setTimeout(cn,3e3))]).then(([cn,Zn])=>{cn=cn.map(zi=>(zi.image=Zn.venueImages[zi.name.toLowerCase()],zi)),He(cn)}),ot(!1))},[e,pt]),Re.useEffect(()=>{var cn,Zn;pt&&Qt&&(Qe(n||((cn=Qt.appSettings)==null?void 0:cn.mapboxAccessToken)),vt(t||((Zn=Qt.appSettings)==null?void 0:Zn.gmKey)))},[t,n,pt,Qt]),Re.useEffect(()=>{pt&&window.mapsindoors.services.SolutionsService.getUserRoles().then(cn=>{const Zn=cn.filter(zi=>s==null?void 0:s.includes(zi.name));window.mapsindoors.MapsIndoors.setUserRoles(Zn)})},[s,pt]),Re.useEffect(()=>{pt&&(z?window.mapsindoors.services.LocationsService.getLocationsByExternalId(z).then(cn=>{yr(cn)}):yr([]))},[z,pt]),Re.useEffect(()=>{pt&&(ee(l),l&&window.mapsindoors.services.LocationsService.getLocation(l).then(cn=>{cn&&(zn(cn.properties.venueId),je(cn))}))},[l,pt,tn]),Re.useEffect(()=>{pt&&Ee(Y)},[Y,pt]),Re.useEffect(()=>{$e===rt.LOCATION_DETAILS&&Ue&&!Ae&&je(Ue),lt.current=$e===rt.DIRECTIONS,lt.current?(Wt(Lt),xt([])):xt(ln)},[$e]),Re.useEffect(()=>{zn(o)},[o]),Re.useEffect(()=>{bn(O)},[O]),Re.useEffect(()=>{fe(d)},[d]),Re.useEffect(()=>{An(j)},[j]),Re.useEffect(()=>{So($)?Yt&&Pi(45):Pi($)},[$,Yt]),Re.useEffect(()=>{ai(F)},[F]),Re.useEffect(()=>{Ne(g)},[g]),Re.useEffect(()=>{wt(me)},[me]),Re.useEffect(()=>{Ae&&Ae.id!==K?Xe!=null&&Xe.selectLocation&&Xe.selectLocation(Ae):Xe!=null&&Xe.deselectLocation&&Xe.deselectLocation()},[Ae]),Re.useEffect(()=>{pt&&(Dt(K),K?window.mapsindoors.services.LocationsService.getLocation(K).then(cn=>{zn(cn.properties.venueId),ue(cn)}):ue(),K&&_r?(fn(!1),vi(!1)):(fn(!0),vi(!0)))},[K,pt]),Re.useEffect(()=>{Gt(pe)},[pe]),Re.useEffect(()=>{We(te)},[te]),Re.useEffect(()=>{oe&&K&&Ut(oe)},[oe,K]),Re.useEffect(()=>{pt&&he&&ye.find(cn=>cn[0]===he)&&en(he)},[he,ye,pt]),Re.useEffect(()=>{Jt(De)},[De]),Re.useEffect(()=>{xn(qe)},[qe]),Re.useEffect(()=>{dn(ze)},[ze]),Re.useEffect(()=>{mn(Te)},[Te]),Re.useEffect(()=>{ti(ht)},[ht]);function Pn(){Fe===!1&&ot(!0)}function wi(cn){lt.current!==!0&&cn.id!==K&&je(cn)}function Ii(){le(),bt(),on(cn=>cn+1)}return Re.useEffect(()=>{pt&&he&&ye.find(cn=>cn[0]===he)&&(en(he),Nn(he))},[he,ye,pt]),dt.jsxs("div",{className:`mapsindoors-map
|
|
2233
2233
|
${lt.current?"mapsindoors-map--hide-elements":"mapsindoors-map--show-elements"}
|
|
2234
2234
|
${Je.length>1&&On?"":"mapsindoors-map--hide-venue-selector"}
|
|
2235
2235
|
${ei?"mapsindoors-map--show-my-position":"mapsindoors-map--hide-my-position"}`,"data-sentry-component":"MapTemplate","data-sentry-source-file":"MapTemplate.jsx",children:[dt.jsx(kle,{"data-sentry-element":"Notification","data-sentry-source-file":"MapTemplate.jsx"}),!Fe&&dt.jsx(Pae,{}),Je.length>1&&On&&dt.jsx(Gae,{onOpen:()=>ge(rt.VENUE_SELECTOR),onClose:()=>Le(),active:$e===rt.VENUE_SELECTOR}),St&&dt.jsx(Ice,{}),Bt&&dt.jsx(Sce,{}),Hn&&dt.jsxs(Re.Fragment,{children:[_r&&dt.jsx(Lle,{directionsFromLocation:Zi,directionsToLocation:ii,pushAppView:ge,currentAppView:$e,appViews:rt,onRouteFinished:()=>Ii()}),gt&&dt.jsx(Dle,{directionsFromLocation:Zi,directionsToLocation:ii,pushAppView:ge,currentAppView:$e,appViews:rt,onRouteFinished:()=>Ii()})]},tn),dt.jsx(jae,{useMapProviderModule:ie,onMapPositionKnown:()=>Pn(),onMapPositionInvestigating:()=>Wi(!0),onLocationClick:cn=>wi(cn),onViewModeSwitchKnown:cn=>jn(cn),resetCount:tn,"data-sentry-element":"MapWrapper","data-sentry-source-file":"MapTemplate.jsx"})]})}function Gh(e,t,n,o){let l;return e===!0&&!So(o)?o===!0||o==="true"?l=!0:(o===!1||o!=="true")&&(l=!1):So(n)?So(t)||(l=t):l=typeof n=="boolean"?n:!1,l}function Ace(e){const[t,n]=Re.useState();return Re.useEffect(()=>{var Ae,je;const o=window.location.search,l=new URLSearchParams(o),d={apiKey:"mapspeople3d",logo:"https://app.mapsindoors.com/mapsindoors/gfx/mapspeople-logo/mapspeople-pin.svg",primaryColor:"#005655",useMapProviderModule:!1,useKeyboard:!1,searchAllVenues:!1,searchExternalLocations:!0,showRoadNames:!0,showExternalIDs:!1,hideNonMatches:!1},g=l.get("apiKey"),s=l.get("venue"),v=l.get("locationId"),E=l.get("logo"),z=l.get("directionsFrom"),O=l.get("directionsTo"),j=l.get("tileStyle"),F=l.get("startZoomLevel"),$=l.get("pitch"),Y=l.get("bearing"),ie=l.get("gmApiKey"),K=l.get("mapboxAccessToken"),J=l.get("primaryColor"),te=(Ae=l.get("appUserRoles"))==null?void 0:Ae.split(","),oe=(je=l.get("externalIDs"))==null?void 0:je.split(","),pe=l.get("gmMapId"),me=l.get("kioskOriginLocationId"),he=l.get("timeout"),De=l.get("language"),qe=l.get("miTransitionLevel"),Te=l.get("category"),ze=l.get("useMapProviderModule"),ht=l.get("useKeyboard"),mt=l.get("searchAllVenues"),vt=l.get("hideNonMatches"),Qe=l.get("showExternalIDs"),Fe=l.get("showRoadNames"),ot=l.get("searchExternalLocations"),Je=e.supportsUrlParameters&&g?g:e.apiKey||d.apiKey;let He=e.supportsUrlParameters&&s?s:e.venue||d.venue;Je==="mapspeople3d"&&!He&&(He="AUSTINOFFICE"),n({apiKey:Je,venue:He,locationId:e.supportsUrlParameters&&v?v:e.locationId,logo:e.supportsUrlParameters&&E?E:e.logo||d.logo,directionsFrom:e.supportsUrlParameters&&z?z:e.directionsFrom,directionsTo:e.supportsUrlParameters&&O?O:e.directionsTo,tileStyle:e.supportsUrlParameters&&j?j:e.tileStyle,startZoomLevel:e.supportsUrlParameters&&F?F:e.startZoomLevel,pitch:e.supportsUrlParameters&&$?$:e.pitch,bearing:e.supportsUrlParameters&&Y?Y:e.bearing,gmApiKey:e.supportsUrlParameters&&ie?ie:e.gmApiKey,mapboxAccessToken:e.supportsUrlParameters&&K?K:e.mapboxAccessToken,primaryColor:e.supportsUrlParameters&&J?"#"+J:e.primaryColor||d.primaryColor,appUserRoles:e.supportsUrlParameters&&te?te:e.appUserRoles,externalIDs:e.supportsUrlParameters&&oe?oe:e.externalIDs,gmMapId:e.supportsUrlParameters&&pe?pe:e.gmMapId,kioskOriginLocationId:e.supportsUrlParameters&&me?me:e.kioskOriginLocationId,timeout:e.supportsUrlParameters&&he?he:e.timeout,language:e.supportsUrlParameters&&De?De:e.language,miTransitionLevel:e.supportsUrlParameters&&qe?qe:e.miTransitionLevel,category:e.supportsUrlParameters&&Te?Te:e.category,useKeyboard:Gh(e.supportsUrlParameters,d.useKeyboard,e.useKeyboard,ht),useMapProviderModule:Gh(e.supportsUrlParameters,d.useMapProviderModule,e.useMapProviderModule,ze),searchAllVenues:Gh(e.supportsUrlParameters,d.searchAllVenues,e.searchAllVenues,mt),hideNonMatches:Gh(e.supportsUrlParameters,d.hideNonMatches,e.hideNonMatches,vt),showRoadNames:Gh(e.supportsUrlParameters,d.showRoadNames,e.showRoadNames,Fe),showExternalIDs:Gh(e.supportsUrlParameters,d.showExternalIDs,e.showExternalIDs,Qe),searchExternalLocations:Gh(e.supportsUrlParameters,d.searchExternalLocations,e.searchExternalLocations,ot),supportsUrlParameters:e.supportsUrlParameters})},[e]),dt.jsx(Koe,{"data-sentry-element":"RecoilRoot","data-sentry-component":"MapsIndoorsMap","data-sentry-source-file":"MapsIndoorsMap.jsx",children:t&&dt.jsx(Cce,{...t})})}Bq({dsn:"https://0ee7fa162023d958c96db25e99c8ff6c@o351128.ingest.sentry.io/4506851619831808",environment:window.location.hostname==="localhost"?"localhost":"production",integrations:[lK({useEffect:Yi.useEffect,useLocation:pf.useLocation,useNavigationType:pf.useNavigationType,createRoutesFromChildren:pf.createRoutesFromChildren,matchRoutes:pf.matchRoutes}),Iq()],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/api\.mapsindoors\.com/],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1});var Nce=Object.defineProperty,Lce=(e,t,n)=>t in e?Nce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kx=(e,t,n)=>(Lce(e,typeof t!="symbol"?t+"":t,n),n);const zce={stringify:e=>e,parse:e=>e},kce={stringify:e=>`${e}`,parse:e=>parseFloat(e)},Oce={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},jce={stringify:e=>e.name,parse:(e,t,n)=>{const o=(()=>{if(typeof window<"u"&&e in window)return window[e];if(typeof global<"u"&&e in global)return global[e]})();return typeof o=="function"?o.bind(n):void 0}},Rce={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},LT={string:zce,number:kce,boolean:Oce,function:jce,json:Rce};function Pce(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,o)=>`${n}-${o.toLowerCase()}`)}const Xx=Symbol.for("r2wc.render"),Jx=Symbol.for("r2wc.connected"),Zh=Symbol.for("r2wc.context"),yu=Symbol.for("r2wc.props");function Uce(e,t,n){var o,l,d;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]);const g=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),s={},v={},E={};for(const O of g){s[O]=Array.isArray(t.props)?"string":t.props[O];const j=Pce(O);v[O]=j,E[j]=O}class z extends HTMLElement{constructor(){super(),Kx(this,o,!0),Kx(this,l),Kx(this,d,{}),Kx(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[yu].container=this.container;for(const j of g){const F=v[j],$=this.getAttribute(F),Y=s[j],ie=Y?LT[Y]:null;ie!=null&&ie.parse&&$&&(this[yu][j]=ie.parse($,F,this))}}static get observedAttributes(){return Object.keys(E)}connectedCallback(){this[Jx]=!0,this[Xx]()}disconnectedCallback(){this[Jx]=!1,this[Zh]&&n.unmount(this[Zh]),delete this[Zh]}attributeChangedCallback(j,F,$){const Y=E[j],ie=s[Y],K=ie?LT[ie]:null;Y in s&&K!=null&&K.parse&&$&&(this[yu][Y]=K.parse($,j,this),this[Xx]())}[(o=Jx,l=Zh,d=yu,Xx)](){this[Jx]&&(this[Zh]?n.update(this[Zh],this[yu]):this[Zh]=n.mount(this.container,e,this[yu]))}}for(const O of g){const j=v[O],F=s[O];Object.defineProperty(z.prototype,O,{enumerable:!0,configurable:!0,get(){return this[yu][O]},set($){this[yu][O]=$;const Y=F?LT[F]:null;if(Y!=null&&Y.stringify){const ie=Y.stringify($,j,this);this.getAttribute(j)!==ie&&this.setAttribute(j,ie)}else this[Xx]()}})}return z}function Bce(e,t,n){const o=qz(e),l=Yi.createElement(t,n);return o.render(l),{root:o,ReactComponent:t}}function Fce({root:e,ReactComponent:t},n){const o=Yi.createElement(t,n);e.render(o)}function Vce({root:e}){e.unmount()}function $ce(e,t={}){return Uce(e,t,{mount:Bce,update:Fce,unmount:Vce})}const Q7=$ce(Ace,{props:{apiKey:"string",gmApiKey:"string",mapboxAccessToken:"string",venue:"string",locationId:"string",primaryColor:"string",logo:"string",appUserRoles:"string",directionsFrom:"string",directionsTo:"string",externalIDs:"json",tileStyle:"string",startZoomLevel:"number",gmMapId:"string",supportsUrlParameters:"boolean",bearing:"number",pitch:"number",kioskOriginLocationId:"string",useMapProviderModule:"boolean",timeout:"number",miTransitionLevel:"number",category:"string",language:"string",searchAllVenues:"boolean",useKeyboard:"boolean",hideNonMatches:"boolean",showExternalIDs:"boolean",showRoadNames:"boolean",searchExternalLocations:"boolean"}});window.customElements.define("mapsindoors-map",Q7);const Hce=Object.freeze(Object.defineProperty({__proto__:null,combo_box_item:class{constructor(e){Bi(this,e),this.selected=!1,this.disabled=!1,this.excludefromall=!1,this.value=void 0,this.text=void 0}get el(){return cc(this)}}},Symbol.toStringTag,{value:"Module"})),Qce=':host{box-sizing:border-box;display:block;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#ffffff;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);border-radius:8px;padding-top:32px;padding-bottom:32px;padding-left:32px;padding-right:32px;margin:24px}',Y7=class{constructor(e){Bi(this,e)}render(){return Ke("slot",null)}};Y7.style=Qce;const Yce=".spinner{display:flex;justify-content:center;align-items:center}.spinner>div{width:16px;height:16px;background-color:#6b7280;margin:4px;border-radius:100%;display:inline-block;animation:bouncedelay 1.4s infinite ease-in-out both}.spinner.inverse>div{background-color:#ffffff}.spinner .bounce1{animation-delay:-0.32s}.spinner .bounce2{animation-delay:-0.16s}@keyframes bouncedelay{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}",G7=class{constructor(e){Bi(this,e),this.inverse=!1}render(){return Ke(ao,null,Ke("div",{class:`spinner ${this.inverse?"inverse":""}`},Ke("div",{class:"bounce1"}),Ke("div",{class:"bounce2"}),Ke("div",{class:"bounce3"})))}};G7.style=Yce;const Gce=Object.freeze(Object.defineProperty({__proto__:null,mi_card:Y7,mi_spinner:G7},Symbol.toStringTag,{value:"Module"})),Zce=':root{--z-index-top:999999;--z-index-popup:950;--z-index-modal:900;--z-index-spinner:800;--z-index-overlay:700;--z-index-dropdown:600;--z-index-toast:500;--z-index-header:400;--z-index-sticky:300;--z-index-mask:200;--z-index-masked:100;--z-index-default:1;--z-index-deep:-999999;--transition-slowly:600ms ease;--transition-quickly:300ms ease;--tailwind-colors-rose-900:#881337;--tailwind-colors-rose-800:#9f1239;--tailwind-colors-rose-700:#be123c;--tailwind-colors-rose-600:#e11d48;--tailwind-colors-rose-500:#f43f5e;--tailwind-colors-rose-400:#fb7185;--tailwind-colors-rose-300:#fda4af;--tailwind-colors-rose-200:#fecdd3;--tailwind-colors-rose-100:#ffe4e6;--tailwind-colors-rose-50:#fff1f2;--tailwind-colors-pink-900:#831843;--tailwind-colors-pink-800:#9d174d;--tailwind-colors-pink-700:#be185d;--tailwind-colors-pink-600:#db2777;--tailwind-colors-pink-500:#ec4899;--tailwind-colors-pink-400:#f472b6;--tailwind-colors-pink-300:#f9a8d4;--tailwind-colors-pink-200:#fbcfe8;--tailwind-colors-pink-100:#fce7f3;--tailwind-colors-pink-50:#fdf2f8;--tailwind-colors-fuchsia-900:#701a75;--tailwind-colors-fuchsia-800:#86198f;--tailwind-colors-fuchsia-700:#a21caf;--tailwind-colors-fuchsia-600:#c026d3;--tailwind-colors-fuchsia-500:#d946ef;--tailwind-colors-fuchsia-400:#e879f9;--tailwind-colors-fuchsia-300:#f0abfc;--tailwind-colors-fuchsia-200:#f5d0fe;--tailwind-colors-fuchsia-100:#fae8ff;--tailwind-colors-fuchsia-50:#fdf4ff;--tailwind-colors-purple-900:#581c87;--tailwind-colors-purple-800:#6b21a8;--tailwind-colors-purple-700:#7e22ce;--tailwind-colors-purple-600:#9333ea;--tailwind-colors-purple-500:#a855f7;--tailwind-colors-purple-400:#c084fc;--tailwind-colors-purple-300:#d8b4fe;--tailwind-colors-purple-200:#e9d5ff;--tailwind-colors-purple-100:#f3e8ff;--tailwind-colors-purple-50:#faf5ff;--tailwind-colors-violet-900:#4c1d95;--tailwind-colors-violet-800:#5b21b6;--tailwind-colors-violet-700:#6d28d9;--tailwind-colors-violet-600:#7c3aed;--tailwind-colors-violet-500:#8b5cf6;--tailwind-colors-violet-400:#a78bfa;--tailwind-colors-violet-300:#c4b5fd;--tailwind-colors-violet-200:#ddd6fe;--tailwind-colors-violet-100:#ede9fe;--tailwind-colors-violet-50:#f5f3ff;--tailwind-colors-indigo-900:#312e81;--tailwind-colors-indigo-800:#3730a3;--tailwind-colors-indigo-700:#4338ca;--tailwind-colors-indigo-600:#4f46e5;--tailwind-colors-indigo-500:#6366f1;--tailwind-colors-indigo-400:#818cf8;--tailwind-colors-indigo-300:#a5b4fc;--tailwind-colors-indigo-200:#c7d2fe;--tailwind-colors-indigo-100:#e0e7ff;--tailwind-colors-indigo-50:#eef2ff;--tailwind-colors-blue-900:#1e3a8a;--tailwind-colors-blue-800:#1e40af;--tailwind-colors-blue-700:#1d4ed8;--tailwind-colors-blue-600:#2563eb;--tailwind-colors-blue-500:#3b82f6;--tailwind-colors-blue-400:#60a5fa;--tailwind-colors-blue-300:#93c5fd;--tailwind-colors-blue-200:#bfdbfe;--tailwind-colors-blue-100:#dbeafe;--tailwind-colors-blue-50:#eff6ff;--tailwind-colors-sky-900:#0c4a6e;--tailwind-colors-sky-800:#075985;--tailwind-colors-sky-700:#0369a1;--tailwind-colors-sky-600:#0284c7;--tailwind-colors-sky-500:#0ea5e9;--tailwind-colors-sky-400:#38bdf8;--tailwind-colors-sky-300:#7dd3fc;--tailwind-colors-sky-200:#bae6fd;--tailwind-colors-sky-100:#e0f2fe;--tailwind-colors-sky-50:#f0f9ff;--tailwind-colors-cyan-900:#164e63;--tailwind-colors-cyan-800:#155e75;--tailwind-colors-cyan-700:#0e7490;--tailwind-colors-cyan-600:#0891b2;--tailwind-colors-cyan-500:#06b6d4;--tailwind-colors-cyan-400:#22d3ee;--tailwind-colors-cyan-300:#67e8f9;--tailwind-colors-cyan-200:#a5f3fc;--tailwind-colors-cyan-100:#cffafe;--tailwind-colors-cyan-50:#ecfeff;--tailwind-colors-teal-900:#134e4a;--tailwind-colors-teal-800:#115e59;--tailwind-colors-teal-700:#0f766e;--tailwind-colors-teal-600:#0d9488;--tailwind-colors-teal-500:#14b8a6;--tailwind-colors-teal-400:#2dd4bf;--tailwind-colors-teal-300:#5eead4;--tailwind-colors-teal-200:#99f6e4;--tailwind-colors-teal-100:#ccfbf1;--tailwind-colors-teal-50:#f0fdfa;--tailwind-colors-emerald-900:#064e3b;--tailwind-colors-emerald-800:#065f46;--tailwind-colors-emerald-700:#047857;--tailwind-colors-emerald-600:#059669;--tailwind-colors-emerald-500:#10b981;--tailwind-colors-emerald-400:#34d399;--tailwind-colors-emerald-300:#6ee7b7;--tailwind-colors-emerald-200:#a7f3d0;--tailwind-colors-emerald-100:#d1fae5;--tailwind-colors-emerald-50:#ecfdf5;--tailwind-colors-green-900:#14532d;--tailwind-colors-green-800:#166534;--tailwind-colors-green-700:#15803d;--tailwind-colors-green-600:#16a34a;--tailwind-colors-green-500:#22c55e;--tailwind-colors-green-400:#4ade80;--tailwind-colors-green-300:#86efac;--tailwind-colors-green-200:#bbf7d0;--tailwind-colors-green-100:#dcfce7;--tailwind-colors-green-50:#f0fdf4;--tailwind-colors-lime-900:#365314;--tailwind-colors-lime-800:#3f6212;--tailwind-colors-lime-700:#4d7c0f;--tailwind-colors-lime-600:#65a30d;--tailwind-colors-lime-500:#84cc16;--tailwind-colors-lime-400:#a3e635;--tailwind-colors-lime-300:#bef264;--tailwind-colors-lime-200:#d9f99d;--tailwind-colors-lime-100:#ecfccb;--tailwind-colors-lime-50:#f7fee7;--tailwind-colors-yellow-900:#713f12;--tailwind-colors-yellow-800:#854d0e;--tailwind-colors-yellow-700:#a16207;--tailwind-colors-yellow-600:#ca8a04;--tailwind-colors-yellow-500:#eab308;--tailwind-colors-yellow-400:#facc15;--tailwind-colors-yellow-300:#fde047;--tailwind-colors-yellow-200:#fef08a;--tailwind-colors-yellow-100:#fef9c3;--tailwind-colors-yellow-50:#fefce8;--tailwind-colors-amber-900:#78350f;--tailwind-colors-amber-800:#92400e;--tailwind-colors-amber-700:#b45309;--tailwind-colors-amber-600:#d97706;--tailwind-colors-amber-500:#f59e0b;--tailwind-colors-amber-400:#fbbf24;--tailwind-colors-amber-300:#fcd34d;--tailwind-colors-amber-200:#fde68a;--tailwind-colors-amber-100:#fef3c7;--tailwind-colors-amber-50:#fffbeb;--tailwind-colors-orange-900:#7c2d12;--tailwind-colors-orange-800:#9a3412;--tailwind-colors-orange-700:#c2410c;--tailwind-colors-orange-600:#ea580c;--tailwind-colors-orange-500:#f97316;--tailwind-colors-orange-400:#fb923c;--tailwind-colors-orange-300:#fdba74;--tailwind-colors-orange-200:#fed7aa;--tailwind-colors-orange-100:#ffedd5;--tailwind-colors-orange-50:#fff7ed;--tailwind-colors-red-900:#7f1d1d;--tailwind-colors-red-800:#991b1b;--tailwind-colors-red-700:#b91c1c;--tailwind-colors-red-600:#dc2626;--tailwind-colors-red-500:#ef4444;--tailwind-colors-red-400:#f87171;--tailwind-colors-red-300:#fca5a5;--tailwind-colors-red-200:#fecaca;--tailwind-colors-red-100:#fee2e2;--tailwind-colors-red-50:#fef2f2;--tailwind-colors-stone-900:#1c1917;--tailwind-colors-stone-800:#292524;--tailwind-colors-stone-700:#44403c;--tailwind-colors-stone-600:#57534e;--tailwind-colors-stone-500:#78716c;--tailwind-colors-stone-400:#a8a29e;--tailwind-colors-stone-300:#d6d3d1;--tailwind-colors-stone-200:#e7e5e4;--tailwind-colors-stone-100:#f5f5f4;--tailwind-colors-stone-50:#fafaf9;--tailwind-colors-neutral-900:#171717;--tailwind-colors-neutral-800:#262626;--tailwind-colors-neutral-700:#404040;--tailwind-colors-neutral-600:#525252;--tailwind-colors-neutral-500:#737373;--tailwind-colors-neutral-400:#a3a3a3;--tailwind-colors-neutral-300:#d4d4d4;--tailwind-colors-neutral-200:#e5e5e5;--tailwind-colors-neutral-100:#f5f5f5;--tailwind-colors-neutral-50:#fafafa;--tailwind-colors-zinc-900:#18181b;--tailwind-colors-zinc-800:#27272a;--tailwind-colors-zinc-700:#3f3f46;--tailwind-colors-zinc-600:#52525b;--tailwind-colors-zinc-500:#71717a;--tailwind-colors-zinc-400:#a1a1aa;--tailwind-colors-zinc-300:#d4d4d8;--tailwind-colors-zinc-200:#e4e4e7;--tailwind-colors-zinc-100:#f4f4f5;--tailwind-colors-zinc-50:#fafafa;--tailwind-colors-gray-900:#111827;--tailwind-colors-gray-800:#1f2937;--tailwind-colors-gray-700:#374151;--tailwind-colors-gray-600:#4b5563;--tailwind-colors-gray-500:#6b7280;--tailwind-colors-gray-400:#9ca3af;--tailwind-colors-gray-300:#d1d5db;--tailwind-colors-gray-200:#e5e7eb;--tailwind-colors-gray-100:#f3f4f6;--tailwind-colors-gray-50:#f9fafb;--tailwind-colors-slate-900:#0f172a;--tailwind-colors-slate-800:#1e293b;--tailwind-colors-slate-700:#334155;--tailwind-colors-slate-600:#475569;--tailwind-colors-slate-500:#64748b;--tailwind-colors-slate-400:#94a3b8;--tailwind-colors-slate-300:#cbd5e1;--tailwind-colors-slate-200:#e2e8f0;--tailwind-colors-slate-100:#f1f5f9;--tailwind-colors-slate-50:#f8fafc;--tailwind-colors-black:#000000;--tailwind-colors-white:#ffffff;--spacing-xxxx-large:64px;--spacing-xxx-large:48px;--spacing-xx-large:40px;--spacing-x-large:32px;--spacing-large:24px;--spacing-medium:16px;--spacing-small:12px;--spacing-x-small:8px;--spacing-xx-small:4px;--spacing-xxx-small:2px;--rounding-circle:50%;--rounding-pill:9999px;--rounding-x-large:16px;--rounding-large:8px;--rounding-medium:4px;--rounding-small:2px;--rounding-x-small:1px;--rounding-xx-small:0px;--opacity-xxx-large:1;--opacity-xx-large:0.88;--opacity-x-large:0.72;--opacity-large:0.48;--opacity-medium:0.24;--opacity-small:0.16;--opacity-x-small:0.08;--opacity-xx-small:0;--icon-size-xx-large:64px;--icon-size-x-large:48px;--icon-size-large:32px;--icon-size-medium:24px;--icon-size-small:16px;--font-measure-large:34rem;--font-measure-medium:30rem;--font-measure-small:20rem;--font-tracking-x-large:.25rem;--font-tracking-large:.1rem;--font-tracking-medium:normal;--font-tracking-small:-.05rem;--font-weight-xx-large:700;--font-weight-x-large:600;--font-weight-large:500;--font-weight-medium:400;--font-weight-small:300;--font-size-xxxx-large:4.5rem;--font-size-xxx-large:3rem;--font-size-xx-large:2.25rem;--font-size-x-large:1.5rem;--font-size-large:1.25rem;--font-size-medium:1rem;--font-size-small:0.875rem;--font-size-x-small:0.75rem;--font-family-serif:Georgia, Times, Times New Roman, serif;--font-family-monospace:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;--font-family-system:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--elevation-x-large:0px 20px 20px rgba(0, 0, 0, 0.2), 0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-large:0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-medium:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);--elevation-small:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);--elevation-x-small:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);--color-transparent-base:rgba(0, 0, 0, 0);--color-white-base:#fcfcfc;--breakpoints-xx-large:only screen and (min-width: 1220px);--breakpoints-x-large:only screen and (min-width: 1025px);--breakpoints-large:only screen and (min-width: 992px);--breakpoints-medium:only screen and (min-width: 768px);--breakpoints-small:only screen and (min-width: 576px);--breakpoints-x-small:only screen and (max-width: 575px);--breakpoints-xx-small:only screen and (max-width: 360px);--brand-colors-black-100:#000000;--brand-colors-black-80:#323232;--brand-colors-black-60:#666666;--brand-colors-black-40:#999999;--brand-colors-black-20:#cccccc;--brand-colors-white-100:#ffffff;--brand-colors-dark-pine-100:#005655;--brand-colors-dark-pine-80:#327676;--brand-colors-dark-pine-60:#669999;--brand-colors-dark-pine-40:#99bbbb;--brand-colors-dark-pine-20:#ccdddd;--brand-colors-sky-blue-100:#abddff;--brand-colors-sky-blue-80:#c3e5ff;--brand-colors-sky-blue-60:#d2ebff;--brand-colors-sky-blue-40:#e1f2ff;--brand-colors-sky-blue-20:#f0f8ff;--brand-colors-sand-100:#ffefd7;--brand-colors-sand-80:#fff2df;--brand-colors-sand-60:#fff5e7;--brand-colors-brand-lime-100:#cdff00;--brand-colors-brand-lime-80:#d7ff32;--brand-colors-brand-lime-60:#e1ff66;--brand-colors-brand-lime-40:#ebff99;--brand-colors-brand-lime-20:#f5ffcc;--brand-colors-electric-purple-100:#7d49f3;--brand-colors-electric-purple-80:#976df5;--brand-colors-electric-purple-60:#b191f7;--brand-colors-electric-purple-40:#cbb6fa;--brand-colors-electric-purple-20:#e5dafc;--font-family-sans-serif:Figtree, var(--font-family-system);--color-dusk-base:var(--tailwind-colors-violet-500);--color-dusk-100:var(--tailwind-colors-violet-900);--color-dusk-90:var(--tailwind-colors-violet-800);--color-dusk-80:var(--tailwind-colors-violet-700);--color-dusk-70:var(--tailwind-colors-violet-600);--color-dusk-60:var(--tailwind-colors-violet-500);--color-dusk-50:var(--tailwind-colors-violet-400);--color-dusk-40:var(--tailwind-colors-violet-300);--color-dusk-30:var(--tailwind-colors-violet-200);--color-dusk-20:var(--tailwind-colors-violet-100);--color-dusk-10:var(--tailwind-colors-violet-50);--color-slate-base:var(--tailwind-colors-slate-500);--color-slate-100:var(--tailwind-colors-slate-900);--color-slate-90:var(--tailwind-colors-slate-800);--color-slate-80:var(--tailwind-colors-slate-700);--color-slate-70:var(--tailwind-colors-slate-600);--color-slate-60:var(--tailwind-colors-slate-500);--color-slate-50:var(--tailwind-colors-slate-400);--color-slate-40:var(--tailwind-colors-slate-300);--color-slate-30:var(--tailwind-colors-slate-200);--color-slate-20:var(--tailwind-colors-slate-100);--color-slate-10:var(--tailwind-colors-slate-50);--color-teal-base:var(--tailwind-colors-teal-500);--color-teal-100:var(--tailwind-colors-teal-900);--color-teal-90:var(--tailwind-colors-teal-800);--color-teal-80:var(--tailwind-colors-teal-700);--color-teal-70:var(--tailwind-colors-teal-600);--color-teal-60:var(--tailwind-colors-teal-500);--color-teal-50:var(--tailwind-colors-teal-400);--color-teal-40:var(--tailwind-colors-teal-300);--color-teal-30:var(--tailwind-colors-teal-200);--color-teal-20:var(--tailwind-colors-teal-100);--color-teal-10:var(--tailwind-colors-teal-50);--color-sky-base:var(--tailwind-colors-sky-500);--color-sky-100:var(--tailwind-colors-sky-900);--color-sky-90:var(--tailwind-colors-sky-800);--color-sky-80:var(--tailwind-colors-sky-700);--color-sky-70:var(--tailwind-colors-sky-600);--color-sky-60:var(--tailwind-colors-sky-500);--color-sky-50:var(--tailwind-colors-sky-400);--color-sky-40:var(--tailwind-colors-sky-300);--color-sky-30:var(--tailwind-colors-sky-200);--color-sky-20:var(--tailwind-colors-sky-100);--color-sky-10:var(--tailwind-colors-sky-50);--color-indigo-base:var(--tailwind-colors-indigo-500);--color-indigo-100:var(--tailwind-colors-indigo-900);--color-indigo-90:var(--tailwind-colors-indigo-800);--color-indigo-80:var(--tailwind-colors-indigo-700);--color-indigo-70:var(--tailwind-colors-indigo-600);--color-indigo-60:var(--tailwind-colors-indigo-500);--color-indigo-50:var(--tailwind-colors-indigo-400);--color-indigo-40:var(--tailwind-colors-indigo-300);--color-indigo-30:var(--tailwind-colors-indigo-200);--color-indigo-20:var(--tailwind-colors-indigo-100);--color-indigo-10:var(--tailwind-colors-indigo-50);--color-magenta-base:var(--tailwind-colors-pink-500);--color-magenta-100:var(--tailwind-colors-pink-900);--color-magenta-90:var(--tailwind-colors-pink-800);--color-magenta-80:var(--tailwind-colors-pink-700);--color-magenta-70:var(--tailwind-colors-pink-600);--color-magenta-60:var(--tailwind-colors-pink-500);--color-magenta-50:var(--tailwind-colors-pink-400);--color-magenta-40:var(--tailwind-colors-pink-300);--color-magenta-30:var(--tailwind-colors-pink-200);--color-magenta-20:var(--tailwind-colors-pink-100);--color-magenta-10:var(--tailwind-colors-pink-50);--color-purple-base:var(--tailwind-colors-purple-500);--color-purple-100:var(--tailwind-colors-purple-900);--color-purple-90:var(--tailwind-colors-purple-800);--color-purple-80:var(--tailwind-colors-purple-700);--color-purple-70:var(--tailwind-colors-purple-600);--color-purple-60:var(--tailwind-colors-purple-500);--color-purple-50:var(--tailwind-colors-purple-400);--color-purple-40:var(--tailwind-colors-purple-300);--color-purple-30:var(--tailwind-colors-purple-200);--color-purple-20:var(--tailwind-colors-purple-100);--color-purple-10:var(--tailwind-colors-purple-50);--color-bronze-base:var(--tailwind-colors-amber-500);--color-bronze-100:var(--tailwind-colors-amber-900);--color-bronze-90:var(--tailwind-colors-amber-800);--color-bronze-80:var(--tailwind-colors-amber-700);--color-bronze-70:var(--tailwind-colors-amber-600);--color-bronze-60:var(--tailwind-colors-amber-500);--color-bronze-50:var(--tailwind-colors-amber-400);--color-bronze-40:var(--tailwind-colors-amber-300);--color-bronze-30:var(--tailwind-colors-amber-200);--color-bronze-20:var(--tailwind-colors-amber-100);--color-bronze-10:var(--tailwind-colors-amber-50);--color-blue-base:var(--tailwind-colors-blue-500);--color-blue-100:var(--tailwind-colors-blue-900);--color-blue-90:var(--tailwind-colors-blue-800);--color-blue-80:var(--tailwind-colors-blue-700);--color-blue-70:var(--tailwind-colors-blue-600);--color-blue-60:var(--tailwind-colors-blue-500);--color-blue-50:var(--tailwind-colors-blue-400);--color-blue-40:var(--tailwind-colors-blue-300);--color-blue-30:var(--tailwind-colors-blue-200);--color-blue-20:var(--tailwind-colors-blue-100);--color-blue-10:var(--tailwind-colors-blue-50);--color-green-base:var(--tailwind-colors-green-500);--color-green-100:var(--tailwind-colors-green-900);--color-green-90:var(--tailwind-colors-green-800);--color-green-80:var(--tailwind-colors-green-700);--color-green-70:var(--tailwind-colors-green-600);--color-green-60:var(--tailwind-colors-green-500);--color-green-50:var(--tailwind-colors-green-400);--color-green-40:var(--tailwind-colors-green-300);--color-green-30:var(--tailwind-colors-green-200);--color-green-20:var(--tailwind-colors-green-100);--color-green-10:var(--tailwind-colors-green-50);--color-red-base:var(--tailwind-colors-red-500);--color-red-100:var(--tailwind-colors-red-900);--color-red-90:var(--tailwind-colors-red-800);--color-red-80:var(--tailwind-colors-red-700);--color-red-70:var(--tailwind-colors-red-600);--color-red-60:var(--tailwind-colors-red-500);--color-red-50:var(--tailwind-colors-red-400);--color-red-40:var(--tailwind-colors-red-300);--color-red-30:var(--tailwind-colors-red-200);--color-red-20:var(--tailwind-colors-red-100);--color-red-10:var(--tailwind-colors-red-50);--color-gray-base:var(--tailwind-colors-gray-500);--color-gray-100:var(--tailwind-colors-gray-900);--color-gray-90:var(--tailwind-colors-gray-800);--color-gray-80:var(--tailwind-colors-gray-700);--color-gray-70:var(--tailwind-colors-gray-600);--color-gray-60:var(--tailwind-colors-gray-500);--color-gray-50:var(--tailwind-colors-gray-400);--color-gray-40:var(--tailwind-colors-gray-300);--color-gray-30:var(--tailwind-colors-gray-200);--color-gray-20:var(--tailwind-colors-gray-100);--color-gray-10:var(--tailwind-colors-gray-50);--color-hotorchid-base:var(--tailwind-colors-pink-500);--color-white-white:var(--tailwind-colors-white);--color-black-black:var(--tailwind-colors-black);--color-black-base:var(--tailwind-colors-stone-900)}.chip{display:flex;background-color:var(--tailwind-colors-gray-50);border:1px solid var(--tailwind-colors-gray-200);padding:0 var(--spacing-xx-small);border-radius:var(--spacing-x-small);align-items:center;color:var(--tailwind-colors-neutral-500);font-family:var(--font-family-system);font-size:var(--font-size-medium);height:var(--spacing-xxx-large);width:-moz-fit-content;width:fit-content;cursor:default}.chip:hover{background-color:var(--tailwind-colors-gray-100)}.chip--active{color:var(--brand-colors-white-100)}.chip--active:hover{filter:brightness(90%)}.chip__content{padding:0 var(--spacing-small);white-space:nowrap}.chip__icon{width:var(--spacing-x-large);height:var(--spacing-x-large)}',Z7=class{constructor(e){Bi(this,e),this.icon=void 0,this.content=void 0,this.backgroundColor="#005655",this.active=!1}render(){const e={background:this.active?this.backgroundColor:""};return Ke("div",{style:e,class:`chip ${this.active?"chip--active":""}`},this.icon&&Ke("img",{class:"chip__icon",src:this.icon}),Ke("div",{class:"chip__content"},this.content))}};Z7.style=Zce;const Wce=Object.freeze(Object.defineProperty({__proto__:null,mi_chip:Z7},Symbol.toStringTag,{value:"Module"})),qce=Object.freeze(Object.defineProperty({__proto__:null,mi_column:class{constructor(e){Bi(this,e),this.clicked=ur(this,"clicked",7),this.monospace=!1,this.alignContent="left",this.label=void 0,this.sortable=void 0,this.sort=void 0,this.binding=void 0,this.fitContent=!1,this.width="auto"}cellContentClickedHandler(e){this.clicked.emit(e.detail)}render(){}}},Symbol.toStringTag,{value:"Module"}));var zT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function W7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function T1(e,t,n){return n={path:t,exports:{},require:function(o,l){return Kce()}},e(n,n.exports),n.exports}function Kce(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var q7=T1(function(e){((t,n)=>{e.exports?e.exports=n():t.fuzzysort=n()})(zT,t=>{var n=(Qe,Fe)=>{if(Qe=="farzher")return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!Qe||!Fe)return ht;var ot=z(Qe);De(Fe)||(Fe=E(Fe));var Je=ot.bitflags;return(Je&Fe._bitflags)!==Je?ht:j(ot,Fe)},o=(Qe,Fe,ot)=>{if(Qe=="farzher")return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:Fe?Fe[0]:ht}];if(!Qe)return ot&&ot.all?O(Qe,Fe,ot):ze;var Je=z(Qe),He=Je.bitflags,Ae=ot&&ot.threshold||Te,je=ot&&ot.limit||qe,ye=0,ee=0,fe=Fe.length;if(ot&&ot.key)for(var Ne=ot.key,Ee=0;Ee<fe;++Ee){var Xe=Fe[Ee],ft=he(Xe,Ne);if(ft&&(De(ft)||(ft=E(ft)),(He&ft._bitflags)===He)){var it=j(Je,ft);it!==ht&&(it.score<Ae||(it={target:it.target,_targetLower:"",_targetLowerCodes:ht,_nextBeginningIndexes:ht,_bitflags:0,score:it.score,_indexes:it._indexes,obj:Xe},ye<je?(vt.add(it),++ye):(++ee,it.score>vt.peek().score&&vt.replaceTop(it))))}}else if(ot&&ot.keys)for(var ue=ot.scoreFn||me,Dt=ot.keys,Gt=Dt.length,Ee=0;Ee<fe;++Ee){for(var Xe=Fe[Ee],Et=new Array(Gt),We=0;We<Gt;++We){var Ne=Dt[We],ft=he(Xe,Ne);if(!ft){Et[We]=ht;continue}De(ft)||(ft=E(ft)),(He&ft._bitflags)!==He?Et[We]=ht:Et[We]=j(Je,ft)}Et.obj=Xe;var Ut=ue(Et);Ut!==ht&&(Ut<Ae||(Et.score=Ut,ye<je?(vt.add(Et),++ye):(++ee,Ut>vt.peek().score&&vt.replaceTop(Et))))}else for(var Ee=0;Ee<fe;++Ee){var ft=Fe[Ee];if(ft&&(De(ft)||(ft=E(ft)),(He&ft._bitflags)===He)){var it=j(Je,ft);it!==ht&&(it.score<Ae||(ye<je?(vt.add(it),++ye):(++ee,it.score>vt.peek().score&&vt.replaceTop(it))))}}if(ye===0)return ze;for(var wt=new Array(ye),Ee=ye-1;Ee>=0;--Ee)wt[Ee]=vt.poll();return wt.total=ye+ee,wt},l=(Qe,Fe,ot)=>{if(typeof Fe=="function")return d(Qe,Fe);if(Qe===ht)return ht;Fe===void 0&&(Fe="<b>"),ot===void 0&&(ot="</b>");var Je="",He=0,Ae=!1,je=Qe.target,ye=je.length,ee=Qe._indexes;ee=ee.slice(0,ee.len).sort((Ee,Xe)=>Ee-Xe);for(var fe=0;fe<ye;++fe){var Ne=je[fe];if(ee[He]===fe){if(++He,Ae||(Ae=!0,Je+=Fe),He===ee.length){Je+=Ne+ot+je.substr(fe+1);break}}else Ae&&(Ae=!1,Je+=ot);Je+=Ne}return Je},d=(fe,Fe)=>{if(fe===ht)return ht;var ot=fe.target,Je=ot.length,He=fe._indexes;He=He.slice(0,He.len).sort((Xe,ft)=>Xe-ft);for(var Ae="",je=0,ye=0,ee=!1,fe=[],Ne=0;Ne<Je;++Ne){var Ee=ot[Ne];if(He[ye]===Ne){if(++ye,ee||(ee=!0,fe.push(Ae),Ae=""),ye===He.length){Ae+=Ee,fe.push(Fe(Ae,je++)),Ae="",fe.push(ot.substr(Ne+1));break}}else ee&&(ee=!1,fe.push(Fe(Ae,je++)),Ae="");Ae+=Ee}return fe},g=Qe=>Qe._indexes.slice(0,Qe._indexes.len).sort((Fe,ot)=>Fe-ot),s=Qe=>{typeof Qe!="string"&&(Qe="");var Fe=$(Qe);return{target:Qe,_targetLower:Fe._lower,_targetLowerCodes:Fe.lowerCodes,_nextBeginningIndexes:ht,_bitflags:Fe.bitflags,score:ht,_indexes:[0],obj:ht}},v=Qe=>{typeof Qe!="string"&&(Qe=""),Qe=Qe.trim();var Fe=$(Qe),ot=[];if(Fe.containsSpace){var Je=Qe.split(/\s+/);Je=[...new Set(Je)];for(var He=0;He<Je.length;He++)if(Je[He]!==""){var Ae=$(Je[He]);ot.push({lowerCodes:Ae.lowerCodes,_lower:Je[He].toLowerCase(),containsSpace:!1})}}return{lowerCodes:Fe.lowerCodes,bitflags:Fe.bitflags,containsSpace:Fe.containsSpace,_lower:Fe._lower,spaceSearches:ot}},E=Qe=>{if(Qe.length>999)return s(Qe);var Fe=J.get(Qe);return Fe!==void 0||(Fe=s(Qe),J.set(Qe,Fe)),Fe},z=Qe=>{if(Qe.length>999)return v(Qe);var Fe=te.get(Qe);return Fe!==void 0||(Fe=v(Qe),te.set(Qe,Fe)),Fe},O=(Qe,Fe,ot)=>{var Je=[];Je.total=Fe.length;var He=ot&&ot.limit||qe;if(ot&&ot.key)for(var Ae=0;Ae<Fe.length;Ae++){var je=Fe[Ae],ye=he(je,ot.key);if(ye){De(ye)||(ye=E(ye)),ye.score=Te,ye._indexes.len=0;var ee=ye;if(ee={target:ee.target,_targetLower:"",_targetLowerCodes:ht,_nextBeginningIndexes:ht,_bitflags:0,score:ye.score,_indexes:ht,obj:je},Je.push(ee),Je.length>=He)return Je}}else if(ot&&ot.keys)for(var Ae=0;Ae<Fe.length;Ae++){for(var je=Fe[Ae],fe=new Array(ot.keys.length),Ne=ot.keys.length-1;Ne>=0;--Ne){var ye=he(je,ot.keys[Ne]);if(!ye){fe[Ne]=ht;continue}De(ye)||(ye=E(ye)),ye.score=Te,ye._indexes.len=0,fe[Ne]=ye}if(fe.obj=je,fe.score=Te,Je.push(fe),Je.length>=He)return Je}else for(var Ae=0;Ae<Fe.length;Ae++){var ye=Fe[Ae];if(ye&&(De(ye)||(ye=E(ye)),ye.score=Te,ye._indexes.len=0,Je.push(ye),Je.length>=He))return Je}return Je},j=(Qe,Fe,ot=!1)=>{if(ot===!1&&Qe.containsSpace)return F(Qe,Fe);for(var Je=Qe._lower,He=Qe.lowerCodes,Ae=He[0],je=Fe._targetLowerCodes,ye=He.length,ee=je.length,Xe=0,fe=0,Ne=0;;){var Ee=Ae===je[fe];if(Ee){if(oe[Ne++]=fe,++Xe,Xe===ye)break;Ae=He[Xe]}if(++fe,fe>=ee)return ht}var Xe=0,ft=!1,it=0,ue=Fe._nextBeginningIndexes;ue===ht&&(ue=Fe._nextBeginningIndexes=ie(Fe.target)),fe=oe[0]===0?0:ue[oe[0]-1];var Dt=0;if(fe!==ee)for(;;)if(fe>=ee){if(Xe<=0||(++Dt,Dt>200))break;--Xe;var Gt=pe[--it];fe=ue[Gt]}else{var Ee=He[Xe]===je[fe];if(Ee){if(pe[it++]=fe,++Xe,Xe===ye){ft=!0;break}++fe}else fe=ue[fe]}var Et=Fe._targetLower.indexOf(Je,oe[0]),We=~Et;if(We&&!ft)for(var Ut=0;Ut<Ne;++Ut)oe[Ut]=Et+Ut;var wt=!1;We&&(wt=Fe._nextBeginningIndexes[Et-1]===Et);{if(ft)var en=pe,Jt=it;else var en=oe,Jt=Ne;for(var Nn=0,xn=0,Ut=1;Ut<ye;++Ut)en[Ut]-en[Ut-1]!==1&&(Nn-=en[Ut],++xn);var dn=en[ye-1]-en[0]-(ye-1);if(Nn-=(12+dn)*xn,en[0]!==0&&(Nn-=en[0]*en[0]*.2),!ft)Nn*=1e3;else{for(var mn=1,Ut=ue[0];Ut<ee;Ut=ue[Ut])++mn;mn>24&&(Nn*=(mn-24)*10)}We&&(Nn/=1+ye*ye*1),wt&&(Nn/=1+ye*ye*1),Nn-=ee-ye,Fe.score=Nn;for(var Ut=0;Ut<Jt;++Ut)Fe._indexes[Ut]=en[Ut];return Fe._indexes.len=Jt,Fe}},F=(Qe,Fe)=>{for(var ot=new Set,Je=0,He=ht,Ae=0,je=Qe.spaceSearches,Ne=0;Ne<je.length;++Ne){var ye=je[Ne];if(He=j(ye,Fe),He===ht)return ht;Je+=He.score,He._indexes[0]<Ae&&(Je-=Ae-He._indexes[0]),Ae=He._indexes[0];for(var ee=0;ee<He._indexes.len;++ee)ot.add(He._indexes[ee])}var fe=j(Qe,Fe,!0);if(fe!==ht&&fe.score>Je)return fe;He.score=Je;var Ne=0;for(let Ee of ot)He._indexes[Ne++]=Ee;return He._indexes.len=Ne,He},$=Qe=>{for(var Fe=Qe.length,ot=Qe.toLowerCase(),Je=[],He=0,Ae=!1,je=0;je<Fe;++je){var ye=Je[je]=ot.charCodeAt(je);if(ye===32){Ae=!0;continue}var ee=ye>=97&&ye<=122?ye-97:ye>=48&&ye<=57?26:ye<=127?30:31;He|=1<<ee}return{lowerCodes:Je,bitflags:He,containsSpace:Ae,_lower:ot}},Y=Qe=>{for(var Fe=Qe.length,ot=[],Je=0,He=!1,Ae=!1,je=0;je<Fe;++je){var ye=Qe.charCodeAt(je),ee=ye>=65&&ye<=90,fe=ee||ye>=97&&ye<=122||ye>=48&&ye<=57,Ne=ee&&!He||!Ae||!fe;He=ee,Ae=fe,Ne&&(ot[Je++]=je)}return ot},ie=Qe=>{for(var Fe=Qe.length,ot=Y(Qe),Je=[],He=ot[0],Ae=0,je=0;je<Fe;++je)He>je?Je[je]=He:(He=ot[++Ae],Je[je]=He===void 0?Fe:He);return Je},K=()=>{J.clear(),te.clear(),oe=[],pe=[]},J=new Map,te=new Map,oe=[],pe=[],me=Qe=>{for(var Fe=Te,ot=Qe.length,Je=0;Je<ot;++Je){var He=Qe[Je];if(He!==ht){var Ae=He.score;Ae>Fe&&(Fe=Ae)}}return Fe===Te?ht:Fe},he=(Qe,Fe)=>{var ot=Qe[Fe];if(ot!==void 0)return ot;var Je=Fe;Array.isArray(Fe)||(Je=Fe.split("."));for(var He=Je.length,Ae=-1;Qe&&++Ae<He;)Qe=Qe[Je[Ae]];return Qe},De=Qe=>typeof Qe=="object",qe=1/0,Te=-qe,ze=[];ze.total=0;var ht=null,mt=Qe=>{var Fe=[],ot=0,Je={},He=Ae=>{for(var je=0,ye=Fe[je],ee=1;ee<ot;){var fe=ee+1;je=ee,fe<ot&&Fe[fe].score<Fe[ee].score&&(je=fe),Fe[je-1>>1]=Fe[je],ee=1+(je<<1)}for(var Ne=je-1>>1;je>0&&ye.score<Fe[Ne].score;Ne=(je=Ne)-1>>1)Fe[je]=Fe[Ne];Fe[je]=ye};return Je.add=Ae=>{var je=ot;Fe[ot++]=Ae;for(var ye=je-1>>1;je>0&&Ae.score<Fe[ye].score;ye=(je=ye)-1>>1)Fe[je]=Fe[ye];Fe[je]=Ae},Je.poll=Ae=>{if(ot!==0){var je=Fe[0];return Fe[0]=Fe[--ot],He(),je}},Je.peek=Ae=>{if(ot!==0)return Fe[0]},Je.replaceTop=Ae=>{Fe[0]=Ae,He()},Je},vt=mt();return{single:n,go:o,highlight:l,prepare:s,indexes:g,cleanup:K}})}),mp;(function(e){e.Asc="asc",e.Desc="desc"})(mp||(mp={}));const Xce=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}combo-box-item{display:none}:host{display:inline-block;position:relative;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg{transform:rotate(180deg)}.input{position:relative;display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem;padding-right:40px;padding-left:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input__svg{margin-left:auto;position:absolute;top:50%;right:-42px}.input__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input__label--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.input:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var Ml;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(Ml||(Ml={}));const K7=class{constructor(e){Bi(this,e),this.change=ur(this,"change",3),this.isFilterSelectionDisabled=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.filterable=!1,this.selected=[],this.noResultsMessage="No results found",this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(t=>t.tagName.toLowerCase()!=="combo-box-item"))throw new Error("Items contains unknown element(s).");if(Object.values(mp).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.filterable){const t=this.currentItems.findIndex(n=>n.selected);this.currentItemIndex=t>-1?t:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((t,n)=>{t.dataset.index=n.toString()}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}checkForClickOutside(e){var t;!this.hostElement.contains(e.target)&&this.noResultsMessage&&(this.clearFilter(),this.filterElement.value=(t=this.selected[0])===null||t===void 0?void 0:t.text,this.open=!1)}onClickExists(e){this.open=!0,e.target.type="text",this.filterElement.select()}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const t=e.target;(!t||!this.hostElement.contains(t))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver(t=>{t.forEach(n=>{n.isIntersecting===!0&&this.filterElement.blur()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",t=>{(t.key===Ml.ArrowDown||t.key===Ml.ArrowUp)&&t.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.filterable||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("combo-box-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.filterable){const t=(e=this.items)===null||e===void 0?void 0:e.findIndex(n=>n.selected);this.selected=[this.items[t>-1?t:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===Ml.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.filterable)switch(e.key){case(Ml.ArrowDown||Ml.ArrowUp):this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case Ml.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case Ml.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===Ml.Esc&&(this.filterable||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,t=!1){var n,o;const l=this.hostElement.shadowRoot.querySelectorAll(".list__item");l.forEach(d=>{d.classList.remove(this.highlightedItemClassName)}),(n=l[e])===null||n===void 0||n.classList.add(this.highlightedItemClassName),t&&((o=l[e])===null||o===void 0||o.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===mp.Asc?e.sort((t,n)=>(t.text||t.innerText).trimStart().toLowerCase().localeCompare((n.text||n.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((t,n)=>(n.text||n.innerText).trimStart().toLowerCase().localeCompare((t.text||t.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}onSelect(e){this.filterable||(this.open=!1,Array.from(this.items).forEach(n=>{n.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.filterable&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,t=this.items.map(g=>g.text||g.innerText),n=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.currentItems=[...this.items];const o={limit:50,allowTypo:!1,threshold:-1e4},d=q7.go(e,t,o).map(g=>this.items.find(s=>(s.text||s.innerText)===g.target));this.currentItems=d,n!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){var e;this.filterElement&&(this.filterElement.value=(e=this.selected[0])===null||e===void 0?void 0:e.text,this.filterElement.blur(),this.currentItems=this.items)}render(){var e;const t=Ke("ul",{class:"list"},this.currentItems.map((n,o)=>this.renderListItem(n,o,this.filterable)));return Ke(ao,{class:{open:this.open}},Ke("input",{type:"text",class:"input",onFocus:n=>this.onClickExists(n),ref:n=>this.filterElement=n,onInput:()=>this.filter(),tabIndex:0,value:(e=this.selected[0])===null||e===void 0?void 0:e.text}),Ke("svg",{role:"button",class:"input__svg",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg",onClick:()=>this.toggleContentWindow()},Ke("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"})),Ke("section",{ref:n=>this.listElement=n,part:"dropdown-container",class:"content"},this.currentItems.length===0?this.renderNoResultsTemplate():t))}renderNoResultsTemplate(){return Ke("div",{class:"empty-page"},Ke("p",{class:"empty-page__header"},this.noResultsMessage))}renderListItem(e,t,n){let o;const l=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?o=Ke("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):o=Ke("div",{class:"label__item",innerHTML:e.text}),Ke("li",{class:"list__item",title:l,onMouseOver:()=>{this.onMouseOver(t)}},Ke("label",{class:"mi-label label",tabindex:"-1"},Ke("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!n,"mi-input":!0},type:"checkbox",value:t,checked:e.selected,onChange:()=>this.onSelect(e)}),o))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:t}=document.documentElement,n=this.hostElement.getBoundingClientRect(),o=this.listElement.getBoundingClientRect(),l=t-n.bottom,d=n.top,g=580,s=12;e<=o.width||n.right-o.width<0&&o.right>e?(this.listElement.style.right=`${s}px`,this.listElement.style.left=`${s}px`,this.listElement.style.minWidth="unset"):o.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-n.right}px`):(this.listElement.style.left=`${n.left}px`,this.listElement.style.right="unset"),d>l?(this.listElement.style.maxHeight=`${Math.min(d,g)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${t-n.top}px`):(this.listElement.style.top=`${n.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(l-s*2,g)}px`)}get hostElement(){return cc(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};K7.style=Xce;const Jce=Object.freeze(Object.defineProperty({__proto__:null,mi_combo_box:K7},Symbol.toStringTag,{value:"Module"}));function X7(e){return e!==null&&e>""&&!isNaN(Number(e))}function eue(e){return Number(e).toLocaleString(void 0,{minimumFractionDigits:0})}function e2(e){return e==null}function t2(){return!!(navigator.userAgent.match(/Trident/g)||navigator.userAgent.match(/MSIE/g))}function tue(e){try{return new URL(e),!0}catch{return!1}}function kT(e,t){if(tue(e)===!1)return;const n=new URL(e),o=n.hostname;if(o==="image.mapsindoors.com"){const l=Math.max(2,window.devicePixelRatio||1),d=t*l,g=t*l;n.searchParams.set("width",d.toString()),n.searchParams.set("height",g.toString()),n.searchParams.set("fitMode","cover")}return["app.mapsindoors.com","v2.mapsindoors.com"].includes(o)&&n.searchParams.set("scale","2"),n.toString()}const nue=`a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-select{display:block;padding-top:8px;padding-bottom:8px;padding-left:8px;padding-right:32px;border-radius:4px;border-width:1px;border-style:solid;border-color:#c8d0e0;color:#1e2025;font-size:1rem;font-weight:500;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#f5f7fa, #ebeff5)}.mi-select:disabled{opacity:0.48;cursor:not-allowed}.mi-select:not(:disabled):hover{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-select:not(:disabled):active{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#dee3ed, #ebeff5)}.mi-toggle{margin:0}.mi-toggle:disabled{cursor:not-allowed}.mi-toggle+.mi-label{margin-left:8px}@supports (appearance: none) or (-moz-appearance: none) or (-webkit-appearance: none){.mi-toggle{padding:2px;box-sizing:border-box;appearance:none;-moz-appearance:none;-webkit-appearance:none;width:48px;height:24px;border-radius:9999px;background-color:#8d98aa;transition:background-color 300ms ease}.mi-toggle:disabled{opacity:0.48}.mi-toggle:checked{background-color:#2a844e}.mi-toggle::after{content:"";display:inline-block;width:20px;height:20px;transform:translateX(0px);border-radius:50%;background-color:#fcfcfc;box-shadow:0 1px 1px rgba(0, 0, 0, 0.125), 0 2px 2px rgba(0, 0, 0, 0.125);transition:300ms ease}.mi-toggle:checked::after{transform:translateX(24px)}}.width-none{width:0}.width-xxx-small{width:2px}.width-xx-small{width:4px}.width-x-small{width:8px}.width-small{width:12px}.width-medium{width:16px}.width-large{width:24px}.width-x-large{width:32px}.width-xx-large{width:40px}.width-xxx-large{width:48px}.width-xxxx-large{width:64px}.min-width-none{min-width:0}.min-width-xxx-small{min-width:2px}.min-width-xx-small{min-width:4px}.min-width-x-small{min-width:8px}.min-width-small{min-width:12px}.min-width-medium{min-width:16px}.min-width-large{min-width:24px}.min-width-x-large{min-width:32px}.min-width-xx-large{min-width:40px}.min-width-xxx-large{min-width:48px}.min-width-xxxx-large{min-width:64px}.max-width-none{max-width:0}.max-width-xxx-small{max-width:2px}.max-width-xx-small{max-width:4px}.max-width-x-small{max-width:8px}.max-width-small{max-width:12px}.max-width-medium{max-width:16px}.max-width-large{max-width:24px}.max-width-x-large{max-width:32px}.max-width-xx-large{max-width:40px}.max-width-xxx-large{max-width:48px}.max-width-xxxx-large{max-width:64px}.height-none{height:0}.height-xxx-small{height:2px}.height-xx-small{height:4px}.height-x-small{height:8px}.height-small{height:12px}.height-medium{height:16px}.height-large{height:24px}.height-x-large{height:32px}.height-xx-large{height:40px}.height-xxx-large{height:48px}.height-xxxx-large{height:64px}.min-height-none{min-height:0}.min-height-xxx-small{min-height:2px}.min-height-xx-small{min-height:4px}.min-height-x-small{min-height:8px}.min-height-small{min-height:12px}.min-height-medium{min-height:16px}.min-height-large{min-height:24px}.min-height-x-large{min-height:32px}.min-height-xx-large{min-height:40px}.min-height-xxx-large{min-height:48px}.min-height-xxxx-large{min-height:64px}.max-height-none{max-height:0}.max-height-xxx-small{max-height:2px}.max-height-xx-small{max-height:4px}.max-height-x-small{max-height:8px}.max-height-small{max-height:12px}.max-height-medium{max-height:16px}.max-height-large{max-height:24px}.max-height-x-large{max-height:32px}.max-height-xx-large{max-height:40px}.max-height-xxx-large{max-height:48px}.max-height-xxxx-large{max-height:64px}.debug *{outline:1px solid gold}.flex{display:flex;flex:1}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.display-block{display:block}.display-inline-block{display:inline-block}.display-inline{display:inline}.display-none{display:none}.text-decoration-none{text-decoration:none}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.margin-auto{margin-left:auto;margin-right:auto}*{box-sizing:border-box}.table{width:100%;border-collapse:collapse;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#ffffff;border-style:solid;border-width:1px;border-color:#d1d5db;border-top:none}.table__header-cell{position:relative;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:48px;font-weight:500;font-size:1rem;line-height:1.25rem;color:#ffffff;background-color:#374151;padding-top:16px;padding-bottom:16px;padding-left:8px;padding-right:8px}.table__header-cell::before,.table__header-cell::after{content:"";display:block;position:absolute;right:16px;top:50%;border:7px solid transparent}.table__header-cell::before{border-bottom-color:#6b7280;margin-top:-15px}.table__header-cell::after{border-top-color:#6b7280;margin-top:3px}.table__header-cell.desc::after{border-top-color:#f9fafb}.table__header-cell.asc::before{border-bottom-color:#f9fafb}.table__header-cell--no-sort::before,.table__header-cell--no-sort::after{border:none}.table__header-cell:not(.table__header-cell--no-sort){padding-right:46px;cursor:pointer}.table__header-cell--fit-content{white-space:nowrap;width:1px}.table__header-cell--align-left{text-align:left}.table__header-cell--align-center{text-align:center}.table__header-cell--align-right{text-align:right}.table__header-cell--sticky{position:sticky;top:0;z-index:1}.table__row:nth-child(even):hover{background-color:#f3f4f6}.table__row:nth-child(odd){background-color:#f9fafb}.table__row:nth-child(odd):hover{background-color:#f3f4f6}.table__data{font-size:1rem;padding-left:8px;padding-right:8px;height:56px;border-right:1px solid #d1d5db}.table__data:last-child{border-right:none}.table__data--fit-content{white-space:nowrap;width:1px}.table__data--align-left{text-align:left}.table__data--align-center{text-align:center}.table__data--align-right{text-align:right}.table__data--monospace-font{font-family:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace}.empty-page{display:flex;align-items:center;flex-direction:column;margin-top:72px;height:345px}.empty-page>*{margin:0}.empty-page__header{font-size:2.25rem}.empty-page__subheader{margin-top:32px;font-size:1.5rem}`,J7=class{constructor(e){Bi(this,e),this.selectionChanged=ur(this,"selectionChanged",7),this.columns=[],this.numberOfSelectedRows=void 0,this.rows=[],this.maxRows=void 0,this.page=void 0,this.selectable=!1,this.selected=new Set,this.emptyPageHeader="No results found",this.emptyPageSubheader=void 0,this.isHeaderSticky=!0,this.tableRows=[],this.currentPage=1,this.sortByColumn=null}onSelectionChangedHandler(){this.selectionChanged.emit(this.selected)}onRowsChangedHandler(){this.tableRows=Array.from(this.rows),this.setHeaderCheckboxState()}onPageChangedHandler(){this.currentPage=this.page,this.renderTableContent()}connectedCallback(){const e=this.el.querySelectorAll("mi-column");this.columns=Array.from(e).map(t=>{const n={alignContent:t.alignContent,monospace:t.monospace,label:e2(t.label)?t.binding:t.label,binding:t.binding||null,sortable:t.sortable,fitContent:!!t.fitContent,template:t.innerHTML.replace(/<!--[\s\S]*?-->/g,""),columnElement:t,width:t.width};return t.sort&&!this.sortByColumn&&(this.sortByColumn={column:n,sortOrder:t.sort==="asc"?"asc":"desc"}),n})}columnHeaderClickHandler(e,t){var n,o;if(!e2(t.sortable)){let l="asc";t===((n=this.sortByColumn)===null||n===void 0?void 0:n.column)&&(l=((o=this.sortByColumn)===null||o===void 0?void 0:o.sortOrder)==="asc"?"desc":"asc"),this.sortByColumn={column:t,sortOrder:l}}}sortTableRows(){var e,t,n;if(this.tableRows.length>0&&this.sortByColumn){let o;const l=(e=this.sortByColumn)===null||e===void 0?void 0:e.column,d=(t=this.sortByColumn)===null||t===void 0?void 0:t.sortOrder;if(l&&d)return((n=l.sortable)===null||n===void 0?void 0:n.toLowerCase())==="date"?o=d==="desc"?sue(l.binding):oue(l.binding):o=d==="desc"?rue(l.binding):iue(l.binding),[...this.tableRows.sort(o)]}return this.tableRows}replaceVars(e,t){return e.replace(/\{(.*?)\}/g,(n,o)=>o.split(".").reduce((d,g)=>d?d[g]:null,t))}removeFalseBooleanAttributes(e,t){return e.replace(/ (checked|disabled|hidden|selected)="\{(.*?)\}"/,(n,o,l)=>t[l]===!1?"":o)}tableRowClicked(e,t){var n;const o=e.target,l=o.closest("td").cellIndex,d=this.selectable?l-1:l;if(o.tagName.toLowerCase()!=="td"&&this.columns[d]){const g={detail:t};(n=this.columns[d])===null||n===void 0||n.columnElement.dispatchEvent(new CustomEvent("cellContentClicked",g))}}async componentWillLoad(){this.rows.length>0&&(this.tableRows=Array.from(this.rows))}render(){return Ke(ao,null,Ke("table",{class:"table"},Ke("thead",null,Ke("tr",null,this.renderSelectHeader(),this.columns.map(e=>{var t;const n=e.fitContent?"":e.width||"auto",o=((t=this.sortByColumn)===null||t===void 0?void 0:t.column)===e?this.sortByColumn.sortOrder:null;return Ke("th",{"data-binding":e.binding,style:{width:n,"max-width":n,"min-width":n},onClick:l=>this.columnHeaderClickHandler(l,e),class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} ${e2(e.sortable)?"table__header-cell--no-sort":""} ${e2(o)?"":o} ${e.fitContent?"table__header-cell--fit-content":""}`},e.label)}))),Ke("tbody",null,this.renderTableContent())),this.tableRows.length===0?this.renderEmptyPage():null)}renderSelectHeader(){if(this.selectable)return Ke("th",{class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} table__header-cell--fit-content table__header-cell--no-sort table__header-cell--align-center`},Ke("input",{type:"checkbox",class:"mi-input",ref:e=>this.selectAllCheckbox=e,onChange:()=>this.selectHeaderOnChangeHandler()}))}renderSelectRow(e){if(this.selectable)return Ke("td",{class:"table__data table__data--align-center"},Ke("input",{class:"mi-input",type:"checkbox",checked:this.selected.has(e),onChange:t=>this.selectOnChangeHandler(t,e)}))}renderTableContent(){let e=this.sortTableRows();return e=X7(this.maxRows)&&this.maxRows>0?e.slice(this.maxRows*(this.currentPage-1),this.maxRows*this.currentPage):e,e.map(t=>this.renderTableRow(t))}renderTableRow(e){const t=[];for(const n of this.columns){let o=n.template;o>""?(o=this.removeFalseBooleanAttributes(o,e),o=this.replaceVars(o,e),t.push(o)):t.push(e[n.binding])}return Ke("tr",{class:"table__row",onClick:n=>this.tableRowClicked(n,e)},this.renderSelectRow(e),t.map((n,o)=>Ke("td",{class:`table__data ${this.columns[o].fitContent?"table__data--fit-content":""} table__data--align-${this.columns[o].alignContent||"left"} ${this.columns[o].monospace?"table__data--monospace-font":""}`,innerHTML:n})))}renderEmptyPage(){return Ke("div",{class:"empty-page"},Ke("p",{class:"empty-page__header"},this.emptyPageHeader),Ke("p",{class:"empty-page__subheader"},this.emptyPageSubheader))}selectOnChangeHandler(e,t){e.target.checked?this.selected.add(t):this.selected.delete(t),this.setHeaderCheckboxState(),this.numberOfSelectedRows=this.selected.size,e.stopPropagation()}setHeaderCheckboxState(){this.selectAllCheckbox&&this.selectable&&(this.selectAllCheckbox.checked=this.selected.size===this.rows.length,this.selectAllCheckbox.indeterminate=this.selected.size>0&&this.selected.size<this.rows.length)}selectHeaderOnChangeHandler(){this.selected.size>0&&this.selected.size<=this.rows.length?(this.selected.clear(),this.selectAllCheckbox.checked=!1):(this.rows.forEach(e=>this.selected.add(e)),this.selectAllCheckbox.checked=!0),this.numberOfSelectedRows=this.selected.size}get el(){return cc(this)}static get watchers(){return{numberOfSelectedRows:["onSelectionChangedHandler"],rows:["onRowsChangedHandler"],page:["onPageChangedHandler"]}}},iue=e=>(t,n)=>`${t[e]||""}`.localeCompare(`${n[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),rue=e=>(t,n)=>`${n[e]||""}`.localeCompare(`${t[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),oue=e=>(t,n)=>{const o=Date.parse(t[e]),l=Date.parse(n[e]);return o>l?1:o<l?-1:0},sue=e=>(t,n)=>{const o=Date.parse(n[e]),l=Date.parse(t[e]);return o>l?1:o<l?-1:0};J7.style=nue;const aue=Object.freeze(Object.defineProperty({__proto__:null,mi_data_table:J7},Symbol.toStringTag,{value:"Module"}));var _a;(function(e){e.Imperial="imperial",e.Metric="metric"})(_a||(_a={}));const lue=class{constructor(e){Bi(this,e),this.meters=void 0,this.unit=navigator.language==="en-US"?_a.Imperial:_a.Metric}getMetricDisplayString(e){return Math.abs(e)<1e3?Math.round(e)>0?`${Math.round(e)} m`:"1 m":`${(e/1e3).toFixed(1)} km`}getImperialDisplayString(e){if(Math.abs(e)<1609.344){const o=e*3.28084;return Math.round(o)>0?`${Math.round(o)} ft`:"1 ft"}return`${(e/1609.344).toFixed(1)} mi`}render(){return this.meters>=0?this.renderDistance():null}renderDistance(){return Ke("span",null,this.unit===_a.Metric?this.getMetricDisplayString(this.meters):this.getImperialDisplayString(this.meters))}},cue=`/* Tool for generating the mask css from SVG: https://yoksel.github.io/url-encoder/ */
|